PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / trunk
Fluent Support – Helpdesk & Customer Support Ticket System vtrunk
2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 68 releases
fluent-support / assets / admin / js / start.js

start.js in Fluent Support – Helpdesk & Customer Support Ticket System trunk, at assets/admin/js/start.js

56 lines 4.1 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var e,t,i,a,n,s=Object.defineProperty,o=(e,t,i)=>((e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i);let r=(o(e=class{static getSystemTheme(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.MODE_DARK:this.MODE_LIGHT}static getSavedTheme(){return localStorage.getItem(this.STORAGE_KEY)}static getCurrentTheme(){const e=this.getSavedTheme();return e===this.MODE_DARK||e===this.MODE_LIGHT?e:this.MODE_SYSTEM}static isDark(){return this.isSystem()?this.getSystemTheme()===this.MODE_DARK:this.getCurrentTheme()===this.MODE_DARK}static isSystem(){const e=this.getSavedTheme();return!e||e.startsWith(this.MODE_SYSTEM)}static apply(e){let t=e;e===this.MODE_SYSTEM&&(t=this.getSystemTheme()),[document.documentElement,document.body].forEach(function(e){e&&("dark"===t?e.classList.add("fs-dark-mode"):e.classList.remove("fs-dark-mode"))}),e===this.MODE_SYSTEM?localStorage.setItem(this.STORAGE_KEY,`${e}:${t}`):localStorage.setItem(this.STORAGE_KEY,e),window.dispatchEvent(new CustomEvent("fs-theme-changed",{detail:{mode:t}}))}listenForSystemChange(){window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.isSystem()&&e.apply(e.MODE_SYSTEM)})}init(){this.listenForSystemChange(),e.apply(e.getCurrentTheme())}},"MODE_LIGHT","light"),o(e,"MODE_DARK","dark"),o(e,"MODE_SYSTEM","system"),o(e,"STORAGE_KEY","fs-theme"),e);(new r).init();const l={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},c="update:modelValue",d="change",u="input",p=["","default","small","large"];
2 /**
3 * @vue/shared v3.5.35
4 * (c) 2018-present Yuxi (Evan) You and Vue contributors
5 * @license MIT
6 **/
7 function h(e){const t=Object.create(null);for(const i of e.split(","))t[i]=1;return e=>e in t}const f={},g=[],m=()=>{},_=()=>!1,v=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith("onUpdate:"),y=Object.assign,x=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},S=Object.prototype.hasOwnProperty,w=(e,t)=>S.call(e,t),C=Array.isArray,E=e=>"[object Map]"===N(e),k=e=>"[object Set]"===N(e),T=e=>"[object Date]"===N(e),A=e=>"function"==typeof e,R=e=>"string"==typeof e,I=e=>"symbol"==typeof e,D=e=>null!==e&&"object"==typeof e,O=e=>(D(e)||A(e))&&A(e.then)&&A(e.catch),M=Object.prototype.toString,N=e=>M.call(e),L=e=>"[object Object]"===N(e),P=e=>R(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=h(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=h("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},V=/-\w/g,U=$(e=>e.replace(V,e=>e.slice(1).toUpperCase())),H=/\B([A-Z])/g,z=$(e=>e.replace(H,"-$1").toLowerCase()),Y=$(e=>e.charAt(0).toUpperCase()+e.slice(1)),G=$(e=>e?`on${Y(e)}`:""),W=(e,t)=>!Object.is(e,t),j=(e,...t)=>{for(let i=0;i<e.length;i++)e[i](...t)},q=(e,t,i,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:i})},K=e=>{const t=parseFloat(e);return isNaN(t)?e:t},X=e=>{const t=R(e)?Number(e):NaN;return isNaN(t)?e:t};let Z;const Q=()=>Z||(Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});const J=h("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function ee(e){if(C(e)){const t={};for(let i=0;i<e.length;i++){const a=e[i],n=R(a)?ne(a):ee(a);if(n)for(const e in n)t[e]=n[e]}return t}if(R(e)||D(e))return e}const te=/;(?![^(]*\))/g,ie=/:([^]+)/,ae=/\/\*[^]*?\*\//g;function ne(e){const t={};return e.replace(ae,"").split(te).forEach(e=>{if(e){const i=e.split(ie);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function se(e){let t="";if(R(e))t=e;else if(C(e))for(let i=0;i<e.length;i++){const a=se(e[i]);a&&(t+=a+" ")}else if(D(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function oe(e){if(!e)return null;let{class:t,style:i}=e;return t&&!R(t)&&(e.class=se(t)),i&&(e.style=ee(i)),e}const re=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),le=h("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),ce=h("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),de=h("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),ue=h("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function pe(e){return!!e||""===e}function he(e,t){if(e===t)return!0;let i=T(e),a=T(t);if(i||a)return!(!i||!a)&&e.getTime()===t.getTime();if(i=I(e),a=I(t),i||a)return e===t;if(i=C(e),a=C(t),i||a)return!(!i||!a)&&function(e,t){if(e.length!==t.length)return!1;let i=!0;for(let a=0;i&&a<e.length;a++)i=he(e[a],t[a]);return i}(e,t);if(i=D(e),a=D(t),i||a){if(!i||!a)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e){const a=e.hasOwnProperty(i),n=t.hasOwnProperty(i);if(a&&!n||!a&&n||!he(e[i],t[i]))return!1}}return String(e)===String(t)}function fe(e,t){return e.findIndex(e=>he(e,t))}const ge=e=>!(!e||!0!==e.__v_isRef),me=e=>R(e)?e:null==e?"":C(e)||D(e)&&(e.toString===M||!A(e.toString))?ge(e)?me(e.value):JSON.stringify(e,_e,2):String(e),_e=(e,t)=>ge(t)?_e(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,i],a)=>(e[ve(t,a)+" =>"]=i,e),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ve(e))}:I(t)?ve(t):!D(t)||C(t)||L(t)?t:String(t),ve=(e,t="")=>{var i;return I(e)?`Symbol(${null!=(i=e.description)?i:t})`:e};function be(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:String(e)}var ye="object"==typeof global&&global&&global.Object===Object&&global,xe="object"==typeof self&&self&&self.Object===Object&&self,Se=ye||xe||Function("return this")(),we=Se.Symbol,Ce=Object.prototype,Ee=Ce.hasOwnProperty,ke=Ce.toString,Te=we?we.toStringTag:void 0;var Ae=Object.prototype.toString;var Re=we?we.toStringTag:void 0;function Ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Re&&Re in Object(e)?function(e){var t=Ee.call(e,Te),i=e[Te];try{e[Te]=void 0;var a=!0}catch(NO){}var n=ke.call(e);return a&&(t?e[Te]=i:delete e[Te]),n}(e):function(e){return Ae.call(e)}(e)}function De(e){return null!=e&&"object"==typeof e}function Oe(e){return"symbol"==typeof e||De(e)&&"[object Symbol]"==Ie(e)}function Me(e,t){for(var i=-1,a=null==e?0:e.length,n=Array(a);++i<a;)n[i]=t(e[i],i,e);return n}var Ne=Array.isArray,Le=we?we.prototype:void 0,Pe=Le?Le.toString:void 0;function Fe(e){if("string"==typeof e)return e;if(Ne(e))return Me(e,Fe)+"";if(Oe(e))return Pe?Pe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Be=/\s/;var $e=/^\s+/;function Ve(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Be.test(e.charAt(t)););return t}(e)+1).replace($e,""):e}function Ue(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var He=/^[-+]0x[0-9a-f]+$/i,ze=/^0b[01]+$/i,Ye=/^0o[0-7]+$/i,Ge=parseInt;function We(e){if("number"==typeof e)return e;if(Oe(e))return NaN;if(Ue(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ue(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ve(e);var i=ze.test(e);return i||Ye.test(e)?Ge(e.slice(2),i?2:8):He.test(e)?NaN:+e}function je(e){return e}function qe(e){if(!Ue(e))return!1;var t=Ie(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Ke,Xe=Se["__core-js_shared__"],Ze=(Ke=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ke:"";var Qe=Function.prototype.toString;function Je(e){if(null!=e){try{return Qe.call(e)}catch(NO){}try{return e+""}catch(NO){}}return""}var et=/^\[object .+?Constructor\]$/,tt=Function.prototype,it=Object.prototype,at=tt.toString,nt=it.hasOwnProperty,st=RegExp("^"+at.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ot(e){return!(!Ue(e)||(t=e,Ze&&Ze in t))&&(qe(e)?st:et).test(Je(e));var t}function rt(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return ot(i)?i:void 0}var lt=rt(Se,"WeakMap"),ct=Object.create,dt=function(){function e(){}return function(t){if(!Ue(t))return{};if(ct)return ct(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();function ut(e,t){var i=-1,a=e.length;for(t||(t=Array(a));++i<a;)t[i]=e[i];return t}var pt=Date.now;var ht,ft,gt,mt=function(){try{var e=rt(Object,"defineProperty");return e({},"",{}),e}catch(NO){}}(),_t=mt?function(e,t){return mt(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:je,vt=(ht=_t,ft=0,gt=0,function(){var e=pt(),t=16-(e-gt);if(gt=e,t>0){if(++ft>=800)return arguments[0]}else ft=0;return ht.apply(void 0,arguments)});var bt=/^(?:0|[1-9]\d*)$/;function yt(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&bt.test(e))&&e>-1&&e%1==0&&e<t}function xt(e,t,i){"__proto__"==t&&mt?mt(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function St(e,t){return e===t||e!=e&&t!=t}var wt=Object.prototype.hasOwnProperty;function Ct(e,t,i){var a=e[t];wt.call(e,t)&&St(a,i)&&(void 0!==i||t in e)||xt(e,t,i)}function Et(e,t,i,a){var n=!i;i||(i={});for(var s=-1,o=t.length;++s<o;){var r=t[s],l=void 0;void 0===l&&(l=e[r]),n?xt(i,r,l):Ct(i,r,l)}return i}var kt=Math.max;function Tt(e,t,i){return t=kt(void 0===t?e.length-1:t,0),function(){for(var a=arguments,n=-1,s=kt(a.length-t,0),o=Array(s);++n<s;)o[n]=a[t+n];n=-1;for(var r=Array(t+1);++n<t;)r[n]=a[n];return r[t]=i(o),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,r)}}function At(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Rt(e){return null!=e&&At(e.length)&&!qe(e)}var It=Object.prototype;function Dt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||It)}function Ot(e){return De(e)&&"[object Arguments]"==Ie(e)}var Mt=Object.prototype,Nt=Mt.hasOwnProperty,Lt=Mt.propertyIsEnumerable,Pt=Ot(function(){return arguments}())?Ot:function(e){return De(e)&&Nt.call(e,"callee")&&!Lt.call(e,"callee")};var Ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,Bt=Ft&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Bt&&Bt.exports===Ft?Se.Buffer:void 0,Vt=($t?$t.isBuffer:void 0)||function(){return!1},Ut={};function Ht(e){return function(t){return e(t)}}Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Arguments]"]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object Boolean]"]=Ut["[object DataView]"]=Ut["[object Date]"]=Ut["[object Error]"]=Ut["[object Function]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut["[object Object]"]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object WeakMap]"]=!1;var zt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yt=zt&&"object"==typeof module&&module&&!module.nodeType&&module,Gt=Yt&&Yt.exports===zt&&ye.process,Wt=function(){try{var e=Yt&&Yt.require&&Yt.require("util").types;return e||Gt&&Gt.binding&&Gt.binding("util")}catch(NO){}}(),jt=Wt&&Wt.isTypedArray,qt=jt?Ht(jt):function(e){return De(e)&&At(e.length)&&!!Ut[Ie(e)]},Kt=Object.prototype.hasOwnProperty;function Xt(e,t){var i=Ne(e),a=!i&&Pt(e),n=!i&&!a&&Vt(e),s=!i&&!a&&!n&&qt(e),o=i||a||n||s,r=o?function(e,t){for(var i=-1,a=Array(e);++i<e;)a[i]=t(i);return a}(e.length,String):[],l=r.length;for(var c in e)!t&&!Kt.call(e,c)||o&&("length"==c||n&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yt(c,l))||r.push(c);return r}function Zt(e,t){return function(i){return e(t(i))}}var Qt=Zt(Object.keys,Object),Jt=Object.prototype.hasOwnProperty;function ei(e){return Rt(e)?Xt(e):function(e){if(!Dt(e))return Qt(e);var t=[];for(var i in Object(e))Jt.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}var ti=Object.prototype.hasOwnProperty;function ii(e){if(!Ue(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=Dt(e),i=[];for(var a in e)("constructor"!=a||!t&&ti.call(e,a))&&i.push(a);return i}function ai(e){return Rt(e)?Xt(e,!0):ii(e)}var ni=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,si=/^\w*$/;function oi(e,t){if(Ne(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!Oe(e))||(si.test(e)||!ni.test(e)||null!=t&&e in Object(t))}var ri=rt(Object,"create");var li=Object.prototype.hasOwnProperty;var ci=Object.prototype.hasOwnProperty;function di(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var a=e[t];this.set(a[0],a[1])}}function ui(e,t){for(var i=e.length;i--;)if(St(e[i][0],t))return i;return-1}di.prototype.clear=function(){this.__data__=ri?ri(null):{},this.size=0},di.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},di.prototype.get=function(e){var t=this.__data__;if(ri){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return li.call(t,e)?t[e]:void 0},di.prototype.has=function(e){var t=this.__data__;return ri?void 0!==t[e]:ci.call(t,e)},di.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ri&&void 0===t?"__lodash_hash_undefined__":t,this};var pi=Array.prototype.splice;function hi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var a=e[t];this.set(a[0],a[1])}}hi.prototype.clear=function(){this.__data__=[],this.size=0},hi.prototype.delete=function(e){var t=this.__data__,i=ui(t,e);return!(i<0)&&(i==t.length-1?t.pop():pi.call(t,i,1),--this.size,!0)},hi.prototype.get=function(e){var t=this.__data__,i=ui(t,e);return i<0?void 0:t[i][1]},hi.prototype.has=function(e){return ui(this.__data__,e)>-1},hi.prototype.set=function(e,t){var i=this.__data__,a=ui(i,e);return a<0?(++this.size,i.push([e,t])):i[a][1]=t,this};var fi=rt(Se,"Map");function gi(e,t){var i,a,n=e.__data__;return("string"==(a=typeof(i=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function mi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var a=e[t];this.set(a[0],a[1])}}mi.prototype.clear=function(){this.size=0,this.__data__={hash:new di,map:new(fi||hi),string:new di}},mi.prototype.delete=function(e){var t=gi(this,e).delete(e);return this.size-=t?1:0,t},mi.prototype.get=function(e){return gi(this,e).get(e)},mi.prototype.has=function(e){return gi(this,e).has(e)},mi.prototype.set=function(e,t){var i=gi(this,e),a=i.size;return i.set(e,t),this.size+=i.size==a?0:1,this};function _i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var a=arguments,n=t?t.apply(this,a):a[0],s=i.cache;if(s.has(n))return s.get(n);var o=e.apply(this,a);return i.cache=s.set(n,o)||s,o};return i.cache=new(_i.Cache||mi),i}_i.Cache=mi;var vi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/\\(\\)?/g,yi=function(e){var t=_i(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vi,function(e,i,a,n){t.push(a?n.replace(bi,"$1"):i||e)}),t});function xi(e,t){return Ne(e)?e:oi(e,t)?[e]:yi(function(e){return null==e?"":Fe(e)}(e))}function Si(e){if("string"==typeof e||Oe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function wi(e,t){for(var i=0,a=(t=xi(t,e)).length;null!=e&&i<a;)e=e[Si(t[i++])];return i&&i==a?e:void 0}function Ci(e,t,i){var a=null==e?void 0:wi(e,t);return void 0===a?i:a}function Ei(e,t){for(var i=-1,a=t.length,n=e.length;++i<a;)e[n+i]=t[i];return e}var ki=we?we.isConcatSpreadable:void 0;function Ti(e){return Ne(e)||Pt(e)||!!(ki&&e&&e[ki])}function Ai(e,t,i,a,n){var s=-1,o=e.length;for(i||(i=Ti),n||(n=[]);++s<o;){var r=e[s];t>0&&i(r)?t>1?Ai(r,t-1,i,a,n):Ei(n,r):a||(n[n.length]=r)}return n}function Ri(e){return(null==e?0:e.length)?Ai(e,1):[]}function Ii(e){return vt(Tt(e,void 0,Ri),e+"")}var Di=Zt(Object.getPrototypeOf,Object),Oi=Function.prototype,Mi=Object.prototype,Ni=Oi.toString,Li=Mi.hasOwnProperty,Pi=Ni.call(Object);function Fi(e){if(!De(e)||"[object Object]"!=Ie(e))return!1;var t=Di(e);if(null===t)return!0;var i=Li.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Ni.call(i)==Pi}function Bi(){if(!arguments.length)return[];var e=arguments[0];return Ne(e)?e:[e]}function $i(e,t,i){return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=We(i))==i?i:0),void 0!==t&&(t=(t=We(t))==t?t:0),function(e,t,i){return e==e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}(We(e),t,i)}function Vi(e){var t=this.__data__=new hi(e);this.size=t.size}Vi.prototype.clear=function(){this.__data__=new hi,this.size=0},Vi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Vi.prototype.get=function(e){return this.__data__.get(e)},Vi.prototype.has=function(e){return this.__data__.has(e)},Vi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof hi){var a=i.__data__;if(!fi||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new mi(a)}return i.set(e,t),this.size=i.size,this};var Ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hi=Ui&&"object"==typeof module&&module&&!module.nodeType&&module,zi=Hi&&Hi.exports===Ui?Se.Buffer:void 0,Yi=zi?zi.allocUnsafe:void 0;function Gi(e,t){if(t)return e.slice();var i=e.length,a=Yi?Yi(i):new e.constructor(i);return e.copy(a),a}function Wi(){return[]}var ji=Object.prototype.propertyIsEnumerable,qi=Object.getOwnPropertySymbols,Ki=qi?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,a=null==e?0:e.length,n=0,s=[];++i<a;){var o=e[i];t(o,i,e)&&(s[n++]=o)}return s}(qi(e),function(t){return ji.call(e,t)}))}:Wi;var Xi=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ei(t,Ki(e)),e=Di(e);return t}:Wi;function Zi(e,t,i){var a=t(e);return Ne(e)?a:Ei(a,i(e))}function Qi(e){return Zi(e,ei,Ki)}function Ji(e){return Zi(e,ai,Xi)}var ea=rt(Se,"DataView"),ta=rt(Se,"Promise"),ia=rt(Se,"Set"),aa="[object Map]",na="[object Promise]",sa="[object Set]",oa="[object WeakMap]",ra="[object DataView]",la=Je(ea),ca=Je(fi),da=Je(ta),ua=Je(ia),pa=Je(lt),ha=Ie;(ea&&ha(new ea(new ArrayBuffer(1)))!=ra||fi&&ha(new fi)!=aa||ta&&ha(ta.resolve())!=na||ia&&ha(new ia)!=sa||lt&&ha(new lt)!=oa)&&(ha=function(e){var t=Ie(e),i="[object Object]"==t?e.constructor:void 0,a=i?Je(i):"";if(a)switch(a){case la:return ra;case ca:return aa;case da:return na;case ua:return sa;case pa:return oa}return t});var fa=Object.prototype.hasOwnProperty;var ga=Se.Uint8Array;function ma(e){var t=new e.constructor(e.byteLength);return new ga(t).set(new ga(e)),t}var _a=/\w*$/;var va=we?we.prototype:void 0,ba=va?va.valueOf:void 0;function ya(e,t){var i=t?ma(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function xa(e,t,i){var a,n,s,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ma(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var i=t?ma(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ya(e,i);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(s=new(n=e).constructor(n.source,_a.exec(n))).lastIndex=n.lastIndex,s;case"[object Symbol]":return a=e,ba?Object(ba.call(a)):{}}}function Sa(e){return"function"!=typeof e.constructor||Dt(e)?{}:dt(Di(e))}var wa=Wt&&Wt.isMap,Ca=wa?Ht(wa):function(e){return De(e)&&"[object Map]"==ha(e)};var Ea=Wt&&Wt.isSet,ka=Ea?Ht(Ea):function(e){return De(e)&&"[object Set]"==ha(e)},Ta="[object Arguments]",Aa="[object Function]",Ra="[object Object]",Ia={};function Da(e,t,i,a,n,s){var o,r=1&t,l=2&t,c=4&t;if(i&&(o=n?i(e,a,n,s):i(e)),void 0!==o)return o;if(!Ue(e))return e;var d=Ne(e);if(d){if(o=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&fa.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!r)return ut(e,o)}else{var u=ha(e),p=u==Aa||"[object GeneratorFunction]"==u;if(Vt(e))return Gi(e,r);if(u==Ra||u==Ta||p&&!n){if(o=l||p?{}:Sa(e),!r)return l?function(e,t){return Et(e,Xi(e),t)}(e,function(e,t){return e&&Et(t,ai(t),e)}(o,e)):function(e,t){return Et(e,Ki(e),t)}(e,function(e,t){return e&&Et(t,ei(t),e)}(o,e))}else{if(!Ia[u])return n?e:{};o=xa(e,u,r)}}s||(s=new Vi);var h=s.get(e);if(h)return h;s.set(e,o),ka(e)?e.forEach(function(a){o.add(Da(a,t,i,a,e,s))}):Ca(e)&&e.forEach(function(a,n){o.set(n,Da(a,t,i,n,e,s))});var f=d?void 0:(c?l?Ji:Qi:l?ai:ei)(e);return function(e,t){for(var i=-1,a=null==e?0:e.length;++i<a&&!1!==t(e[i],i,e););}(f||e,function(a,n){f&&(a=e[n=a]),Ct(o,n,Da(a,t,i,n,e,s))}),o}Ia[Ta]=Ia["[object Array]"]=Ia["[object ArrayBuffer]"]=Ia["[object DataView]"]=Ia["[object Boolean]"]=Ia["[object Date]"]=Ia["[object Float32Array]"]=Ia["[object Float64Array]"]=Ia["[object Int8Array]"]=Ia["[object Int16Array]"]=Ia["[object Int32Array]"]=Ia["[object Map]"]=Ia["[object Number]"]=Ia[Ra]=Ia["[object RegExp]"]=Ia["[object Set]"]=Ia["[object String]"]=Ia["[object Symbol]"]=Ia["[object Uint8Array]"]=Ia["[object Uint8ClampedArray]"]=Ia["[object Uint16Array]"]=Ia["[object Uint32Array]"]=!0,Ia["[object Error]"]=Ia[Aa]=Ia["[object WeakMap]"]=!1;function Oa(e){return Da(e,5)}function Ma(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new mi;++t<i;)this.add(e[t])}function Na(e,t){for(var i=-1,a=null==e?0:e.length;++i<a;)if(t(e[i],i,e))return!0;return!1}Ma.prototype.add=Ma.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ma.prototype.has=function(e){return this.__data__.has(e)};function La(e,t,i,a,n,s){var o=1&i,r=e.length,l=t.length;if(r!=l&&!(o&&l>r))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,h=2&i?new Ma:void 0;for(s.set(e,t),s.set(t,e);++u<r;){var f=e[u],g=t[u];if(a)var m=o?a(g,f,u,t,e,s):a(f,g,u,e,t,s);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!Na(t,function(e,t){if(o=t,!h.has(o)&&(f===e||n(f,e,i,a,s)))return h.push(t);var o})){p=!1;break}}else if(f!==g&&!n(f,g,i,a,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Pa(e){var t=-1,i=Array(e.size);return e.forEach(function(e,a){i[++t]=[a,e]}),i}function Fa(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var Ba=we?we.prototype:void 0,$a=Ba?Ba.valueOf:void 0;var Va=Object.prototype.hasOwnProperty;var Ua="[object Arguments]",Ha="[object Array]",za="[object Object]",Ya=Object.prototype.hasOwnProperty;function Ga(e,t,i,a,n,s){var o=Ne(e),r=Ne(t),l=o?Ha:ha(e),c=r?Ha:ha(t),d=(l=l==Ua?za:l)==za,u=(c=c==Ua?za:c)==za,p=l==c;if(p&&Vt(e)){if(!Vt(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new Vi),o||qt(e)?La(e,t,i,a,n,s):function(e,t,i,a,n,s,o){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new ga(e),new ga(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return St(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var r=Pa;case"[object Set]":var l=1&a;if(r||(r=Fa),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;a|=2,o.set(e,t);var d=La(r(e),r(t),a,n,s,o);return o.delete(e),d;case"[object Symbol]":if($a)return $a.call(e)==$a.call(t)}return!1}(e,t,l,i,a,n,s);if(!(1&i)){var h=d&&Ya.call(e,"__wrapped__"),f=u&&Ya.call(t,"__wrapped__");if(h||f){var g=h?e.value():e,m=f?t.value():t;return s||(s=new Vi),n(g,m,i,a,s)}}return!!p&&(s||(s=new Vi),function(e,t,i,a,n,s){var o=1&i,r=Qi(e),l=r.length;if(l!=Qi(t).length&&!o)return!1;for(var c=l;c--;){var d=r[c];if(!(o?d in t:Va.call(t,d)))return!1}var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<l;){var g=e[d=r[c]],m=t[d];if(a)var _=o?a(m,g,d,t,e,s):a(g,m,d,e,t,s);if(!(void 0===_?g===m||n(g,m,i,a,s):_)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,i,a,n,s))}function Wa(e,t,i,a,n){return e===t||(null==e||null==t||!De(e)&&!De(t)?e!=e&&t!=t:Ga(e,t,i,a,Wa,n))}function ja(e){return e==e&&!Ue(e)}function qa(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}}function Ka(e){var t=function(e){for(var t=ei(e),i=t.length;i--;){var a=t[i],n=e[a];t[i]=[a,n,ja(n)]}return t}(e);return 1==t.length&&t[0][2]?qa(t[0][0],t[0][1]):function(i){return i===e||function(e,t,i,a){var n=i.length,s=n;if(null==e)return!s;for(e=Object(e);n--;){var o=i[n];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++n<s;){var r=(o=i[n])[0],l=e[r],c=o[1];if(o[2]){if(void 0===l&&!(r in e))return!1}else if(!Wa(c,l,3,a,new Vi))return!1}return!0}(i,0,t)}}function Xa(e,t){return null!=e&&t in Object(e)}function Za(e,t){return null!=e&&function(e,t,i){for(var a=-1,n=(t=xi(t,e)).length,s=!1;++a<n;){var o=Si(t[a]);if(!(s=null!=e&&i(e,o)))break;e=e[o]}return s||++a!=n?s:!!(n=null==e?0:e.length)&&At(n)&&yt(o,n)&&(Ne(e)||Pt(e))}(e,t,Xa)}function Qa(e){return oi(e)?(t=Si(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return wi(t,e)}}(e);var t}function Ja(e){return"function"==typeof e?e:null==e?je:"object"==typeof e?Ne(e)?(t=e[0],i=e[1],oi(t)&&ja(i)?qa(Si(t),i):function(e){var a=Ci(e,t);return void 0===a&&a===i?Za(e,t):Wa(i,a,3)}):Ka(e):Qa(e);var t,i}var en=function(e,t,i){for(var a=-1,n=Object(e),s=i(e),o=s.length;o--;){var r=s[++a];if(!1===t(n[r],r,n))break}return e};var tn,an=(tn=function(e,t){return e&&en(e,t,ei)},function(e,t){if(null==e)return e;if(!Rt(e))return tn(e,t);for(var i=e.length,a=-1,n=Object(e);++a<i&&!1!==t(n[a],a,n););return e}),nn=function(){return Se.Date.now()},sn=Math.max,on=Math.min;function rn(e,t,i){var a,n,s,o,r,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var i=a,s=n;return a=n=void 0,c=t,o=e.apply(s,i)}function f(e){var i=e-l;return void 0===l||i>=t||i<0||u&&e-c>=s}function g(){var e=nn();if(f(e))return m(e);r=setTimeout(g,function(e){var i=t-(e-l);return u?on(i,s-(e-c)):i}(e))}function m(e){return r=void 0,p&&a?h(e):(a=n=void 0,o)}function _(){var e=nn(),i=f(e);if(a=arguments,n=this,l=e,i){if(void 0===r)return function(e){return c=e,r=setTimeout(g,t),d?h(e):o}(l);if(u)return clearTimeout(r),r=setTimeout(g,t),h(l)}return void 0===r&&(r=setTimeout(g,t)),o}return t=We(t)||0,Ue(i)&&(d=!!i.leading,s=(u="maxWait"in i)?sn(We(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),_.cancel=function(){void 0!==r&&clearTimeout(r),c=0,a=l=n=r=void 0},_.flush=function(){return void 0===r?o:m(nn())},_}function ln(e,t,i){(void 0!==i&&!St(e[t],i)||void 0===i&&!(t in e))&&xt(e,t,i)}function cn(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function dn(e,t,i,a,n,s,o){var r=cn(e,i),l=cn(t,i),c=o.get(l);if(c)ln(e,i,c);else{var d,u=s?s(r,l,i+"",e,t,o):void 0,p=void 0===u;if(p){var h=Ne(l),f=!h&&Vt(l),g=!h&&!f&&qt(l);u=l,h||f||g?Ne(r)?u=r:De(d=r)&&Rt(d)?u=ut(r):f?(p=!1,u=Gi(l,!0)):g?(p=!1,u=ya(l,!0)):u=[]:Fi(l)||Pt(l)?(u=r,Pt(r)?u=function(e){return Et(e,ai(e))}(r):Ue(r)&&!qe(r)||(u=Sa(l))):p=!1}p&&(o.set(l,u),n(u,l,a,s,o),o.delete(l)),ln(e,i,u)}}function un(e,t,i,a,n){e!==t&&en(t,function(s,o){if(n||(n=new Vi),Ue(s))dn(e,t,o,i,un,a,n);else{var r=a?a(cn(e,o),s,o+"",e,t,n):void 0;void 0===r&&(r=s),ln(e,o,r)}},ai)}function pn(e,t){var i=-1,a=Rt(e)?Array(e.length):[];return an(e,function(e,n,s){a[++i]=t(e,n,s)}),a}function hn(e,t){return Ai(function(e,t){return(Ne(e)?Me:pn)(e,Ja(t))}(e,t),1)}var fn=1/0;function gn(e){for(var t=-1,i=null==e?0:e.length,a={};++t<i;){var n=e[t];xt(a,n[0],n[1])}return a}function mn(e,t){return t.length<2?e:wi(e,function(e,t,i){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(i=i>n?n:i)<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var s=Array(n);++a<n;)s[a]=e[a+t];return s}(t,0,-1))}function _n(e,t){return Wa(e,t)}function vn(e){return null==e}function bn(e){return null===e}function yn(e){return void 0===e}var xn,Sn=(xn=function(e,t,i){un(e,t,i)},function(e,t){return vt(Tt(e,t,je),e+"")}(function(e,t){var i=-1,a=t.length,n=a>1?t[a-1]:void 0,s=a>2?t[2]:void 0;for(n=xn.length>3&&"function"==typeof n?(a--,n):void 0,s&&function(e,t,i){if(!Ue(i))return!1;var a=typeof t;return!!("number"==a?Rt(i)&&yt(t,i.length):"string"==a&&t in i)&&St(i[t],e)}(t[0],t[1],s)&&(n=a<3?void 0:n,a=1),e=Object(e);++i<a;){var o=t[i];o&&xn(e,o,i,n)}return e})),wn=Object.prototype.hasOwnProperty;function Cn(e,t){var i=-1,a=(t=xi(t,e)).length;if(!a)return!0;for(;++i<a;){var n=Si(t[i]);if("__proto__"===n&&!wn.call(e,"__proto__"))return!1;if(("constructor"===n||"prototype"===n)&&i<a-1)return!1}var s=mn(e,t);return null==s||delete s[Si(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function En(e){return Fi(e)?void 0:e}var kn=Ii(function(e,t){var i={};if(null==e)return i;var a=!1;t=Me(t,function(t){return t=xi(t,e),a||(a=t.length>1),t}),Et(e,Ji(e),i),a&&(i=Da(i,7,En));for(var n=t.length;n--;)Cn(i,t[n]);return i});function Tn(e,t,i,a){if(!Ue(e))return e;for(var n=-1,s=(t=xi(t,e)).length,o=s-1,r=e;null!=r&&++n<s;){var l=Si(t[n]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(n!=o){var d=r[l];void 0===(c=void 0)&&(c=Ue(d)?d:yt(t[n+1])?[]:{})}Ct(r,l,c),r=r[l]}return e}function An(e,t){return function(e,t,i){for(var a=-1,n=t.length,s={};++a<n;){var o=t[a],r=wi(e,o);i(r,o)&&Tn(s,xi(o,e),r)}return s}(e,t,function(t,i){return Za(e,i)})}var Rn=Ii(function(e,t){return null==e?{}:An(e,t)});const In=e=>void 0===e,Dn=e=>"boolean"==typeof e,On=e=>"number"==typeof e,Mn=e=>!e&&0!==e||C(e)&&0===e.length||D(e)&&!Object.keys(e).length,Nn=e=>"undefined"!=typeof Element&&e instanceof Element,Ln=e=>vn(e),Pn=e=>Object.keys(e),Fn=e=>Object.entries(e),Bn=(e,t,i)=>({get value(){return Ci(e,t,i)},set value(i){!function(e,t,i){null==e||Tn(e,t,i)}(e,t,i)}});
8 /**
9 * @vue/reactivity v3.5.35
10 * (c) 2018-present Yuxi (Evan) You and Vue contributors
11 * @license MIT
12 **/
13 let $n,Vn;class Un{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&$n&&($n.active?(this.parent=$n,this.index=($n.scopes||($n.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=$n;try{return $n=this,e()}finally{$n=t}}}on(){1===++this._on&&(this.prevScope=$n,$n=this)}off(){if(this._on>0&&0===--this._on){if($n===this)$n=this.prevScope;else{let e=$n;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,i;for(this._active=!1,t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(this.effects.length=0,t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function Hn(e){return new Un(e)}function zn(){return $n}function Yn(e,t=!1){$n&&$n.cleanups.push(e)}const Gn=new WeakSet;class Wn{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$n&&($n.active?$n.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,Gn.has(this)&&(Gn.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||Xn(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,us(this),Jn(this);const e=Vn,t=rs;Vn=this,rs=!0;try{return this.fn()}finally{es(this),Vn=e,rs=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)as(e);this.deps=this.depsTail=void 0,us(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?Gn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ts(this)&&this.run()}get dirty(){return ts(this)}}let jn,qn,Kn=0;function Xn(e,t=!1){if(e.flags|=8,t)return e.next=qn,void(qn=e);e.next=jn,jn=e}function Zn(){Kn++}function Qn(){if(--Kn>0)return;if(qn){let e=qn;for(qn=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;jn;){let i=jn;for(jn=void 0;i;){const a=i.next;if(i.next=void 0,i.flags&=-9,1&i.flags)try{i.trigger()}catch(t){e||(e=t)}i=a}}if(e)throw e}function Jn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function es(e){let t,i=e.depsTail,a=i;for(;a;){const e=a.prevDep;-1===a.version?(a===i&&(i=e),as(a),ns(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=e}e.deps=t,e.depsTail=i}function ts(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(is(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function is(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ps)return;if(e.globalVersion=ps,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ts(e)))return;e.flags|=2;const t=e.dep,i=Vn,a=rs;Vn=e,rs=!0;try{Jn(e);const i=e.fn(e._value);(0===t.version||W(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(n){throw t.version++,n}finally{Vn=i,rs=a,es(e),e.flags&=-3}}function as(e,t=!1){const{dep:i,prevSub:a,nextSub:n}=e;if(a&&(a.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=a,e.nextSub=void 0),i.subs===e&&(i.subs=a,!a&&i.computed)){i.computed.flags&=-5;for(let e=i.computed.deps;e;e=e.nextDep)as(e,!0)}t||--i.sc||!i.map||i.map.delete(i.key)}function ns(e){const{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}function ss(e,t){e.effect instanceof Wn&&(e=e.effect.fn);const i=new Wn(e);t&&y(i,t);try{i.run()}catch(n){throw i.stop(),n}const a=i.run.bind(i);return a.effect=i,a}function os(e){e.effect.stop()}let rs=!0;const ls=[];function cs(){ls.push(rs),rs=!1}function ds(){const e=ls.pop();rs=void 0===e||e}function us(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Vn;Vn=void 0;try{t()}finally{Vn=e}}}let ps=0;class hs{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fs{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Vn||!rs||Vn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Vn)t=this.activeLink=new hs(Vn,this),Vn.deps?(t.prevDep=Vn.depsTail,Vn.depsTail.nextDep=t,Vn.depsTail=t):Vn.deps=Vn.depsTail=t,gs(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Vn.depsTail,t.nextDep=void 0,Vn.depsTail.nextDep=t,Vn.depsTail=t,Vn.deps===t&&(Vn.deps=e)}return t}trigger(e){this.version++,ps++,this.notify(e)}notify(e){Zn();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Qn()}}}function gs(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)gs(e)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}}const ms=new WeakMap,_s=Symbol(""),vs=Symbol(""),bs=Symbol("");function ys(e,t,i){if(rs&&Vn){let t=ms.get(e);t||ms.set(e,t=new Map);let a=t.get(i);a||(t.set(i,a=new fs),a.map=t,a.key=i),a.track()}}function xs(e,t,i,a,n,s){const o=ms.get(e);if(!o)return void ps++;const r=e=>{e&&e.trigger()};if(Zn(),"clear"===t)o.forEach(r);else{const n=C(e),s=n&&P(i);if(n&&"length"===i){const e=Number(a);o.forEach((t,i)=>{("length"===i||i===bs||!I(i)&&i>=e)&&r(t)})}else switch((void 0!==i||o.has(void 0))&&r(o.get(i)),s&&r(o.get(bs)),t){case"add":n?s&&r(o.get("length")):(r(o.get(_s)),E(e)&&r(o.get(vs)));break;case"delete":n||(r(o.get(_s)),E(e)&&r(o.get(vs)));break;case"set":E(e)&&r(o.get(_s))}}Qn()}function Ss(e){const t=uo(e);return t===e?t:(ys(t,0,bs),lo(e)?t:t.map(ho))}function ws(e){return ys(e=uo(e),0,bs),e}function Cs(e,t){return ro(e)?fo(oo(e)?ho(t):t):ho(t)}const Es={__proto__:null,[Symbol.iterator](){return ks(this,Symbol.iterator,e=>Cs(this,e))},concat(...e){return Ss(this).concat(...e.map(e=>C(e)?Ss(e):e))},entries(){return ks(this,"entries",e=>(e[1]=Cs(this,e[1]),e))},every(e,t){return As(this,"every",e,t,void 0,arguments)},filter(e,t){return As(this,"filter",e,t,e=>e.map(e=>Cs(this,e)),arguments)},find(e,t){return As(this,"find",e,t,e=>Cs(this,e),arguments)},findIndex(e,t){return As(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return As(this,"findLast",e,t,e=>Cs(this,e),arguments)},findLastIndex(e,t){return As(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return As(this,"forEach",e,t,void 0,arguments)},includes(...e){return Is(this,"includes",e)},indexOf(...e){return Is(this,"indexOf",e)},join(e){return Ss(this).join(e)},lastIndexOf(...e){return Is(this,"lastIndexOf",e)},map(e,t){return As(this,"map",e,t,void 0,arguments)},pop(){return Ds(this,"pop")},push(...e){return Ds(this,"push",e)},reduce(e,...t){return Rs(this,"reduce",e,t)},reduceRight(e,...t){return Rs(this,"reduceRight",e,t)},shift(){return Ds(this,"shift")},some(e,t){return As(this,"some",e,t,void 0,arguments)},splice(...e){return Ds(this,"splice",e)},toReversed(){return Ss(this).toReversed()},toSorted(e){return Ss(this).toSorted(e)},toSpliced(...e){return Ss(this).toSpliced(...e)},unshift(...e){return Ds(this,"unshift",e)},values(){return ks(this,"values",e=>Cs(this,e))}};function ks(e,t,i){const a=ws(e),n=a[t]();return a===e||lo(e)||(n._next=n.next,n.next=()=>{const e=n._next();return e.done||(e.value=i(e.value)),e}),n}const Ts=Array.prototype;function As(e,t,i,a,n,s){const o=ws(e),r=o!==e&&!lo(e),l=o[t];if(l!==Ts[t]){const t=l.apply(e,s);return r?ho(t):t}let c=i;o!==e&&(r?c=function(t,a){return i.call(this,Cs(e,t),a,e)}:i.length>2&&(c=function(t,a){return i.call(this,t,a,e)}));const d=l.call(o,c,a);return r&&n?n(d):d}function Rs(e,t,i,a){const n=ws(e);let s=i,o=!1;n!==e&&(n!==e&&!lo(e)?(o=0===a.length,s=function(t,a,n){return o&&(o=!1,t=Cs(e,t)),i.call(this,t,Cs(e,a),n,e)}):i.length>3&&(s=function(t,a,n){return i.call(this,t,a,n,e)}));const r=n[t](s,...a);return o?Cs(e,r):r}function Is(e,t,i){const a=uo(e);ys(a,0,bs);const n=a[t](...i);return-1!==n&&!1!==n||!co(i[0])?n:(i[0]=uo(i[0]),a[t](...i))}function Ds(e,t,i=[]){cs(),Zn();const a=uo(e)[t].apply(e,i);return Qn(),ds(),a}const Os=h("__proto__,__v_isRef,__isVue"),Ms=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(I));function Ns(e){I(e)||(e=String(e));const t=uo(this);return ys(t,0,e),t.hasOwnProperty(e)}class Ls{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){if("__v_skip"===t)return e.__v_skip;const a=this._isReadonly,n=this._isShallow;if("__v_isReactive"===t)return!a;if("__v_isReadonly"===t)return a;if("__v_isShallow"===t)return n;if("__v_raw"===t)return i===(a?n?eo:Js:n?Qs:Zs).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const s=C(e);if(!a){let e;if(s&&(e=Es[t]))return e;if("hasOwnProperty"===t)return Ns}const o=Reflect.get(e,t,go(e)?e:i);if(I(t)?Ms.has(t):Os(t))return o;if(a||ys(e,0,t),n)return o;if(go(o)){const e=s&&P(t)?o:o.value;return a&&D(e)?ao(e):e}return D(o)?a?ao(o):to(o):o}}class Ps extends Ls{constructor(e=!1){super(!1,e)}set(e,t,i,a){let n=e[t];const s=C(e)&&P(t);if(!this._isShallow){const e=ro(n);if(lo(i)||ro(i)||(n=uo(n),i=uo(i)),!s&&go(n)&&!go(i))return e||(n.value=i),!0}const o=s?Number(t)<e.length:w(e,t),r=Reflect.set(e,t,i,go(e)?e:a);return e===uo(a)&&(o?W(i,n)&&xs(e,"set",t,i):xs(e,"add",t,i)),r}deleteProperty(e,t){const i=w(e,t);e[t];const a=Reflect.deleteProperty(e,t);return a&&i&&xs(e,"delete",t,void 0),a}has(e,t){const i=Reflect.has(e,t);return I(t)&&Ms.has(t)||ys(e,0,t),i}ownKeys(e){return ys(e,0,C(e)?"length":_s),Reflect.ownKeys(e)}}class Fs extends Ls{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Bs=new Ps,$s=new Fs,Vs=new Ps(!0),Us=new Fs(!0),Hs=e=>e,zs=e=>Reflect.getPrototypeOf(e);function Ys(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Gs(e,t){const i={get(i){const a=this.__v_raw,n=uo(a),s=uo(i);e||(W(i,s)&&ys(n,0,i),ys(n,0,s));const{has:o}=zs(n),r=t?Hs:e?fo:ho;return o.call(n,i)?r(a.get(i)):o.call(n,s)?r(a.get(s)):void(a!==n&&a.get(i))},get size(){const t=this.__v_raw;return!e&&ys(uo(t),0,_s),t.size},has(t){const i=this.__v_raw,a=uo(i),n=uo(t);return e||(W(t,n)&&ys(a,0,t),ys(a,0,n)),t===n?i.has(t):i.has(t)||i.has(n)},forEach(i,a){const n=this,s=n.__v_raw,o=t?Hs:e?fo:ho;return!e&&ys(uo(s),0,_s),s.forEach((e,t)=>i.call(a,o(e),o(t),n))}};y(i,e?{add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear")}:{add(e){const i=uo(this),a=zs(i),n=uo(e),s=t||lo(e)||ro(e)?e:n;return a.has.call(i,s)||W(e,s)&&a.has.call(i,e)||W(n,s)&&a.has.call(i,n)||(i.add(s),xs(i,"add",s,s)),this},set(e,i){t||lo(i)||ro(i)||(i=uo(i));const a=uo(this),{has:n,get:s}=zs(a);let o=n.call(a,e);o||(e=uo(e),o=n.call(a,e));const r=s.call(a,e);return a.set(e,i),o?W(i,r)&&xs(a,"set",e,i):xs(a,"add",e,i),this},delete(e){const t=uo(this),{has:i,get:a}=zs(t);let n=i.call(t,e);n||(e=uo(e),n=i.call(t,e)),a&&a.call(t,e);const s=t.delete(e);return n&&xs(t,"delete",e,void 0),s},clear(){const e=uo(this),t=0!==e.size,i=e.clear();return t&&xs(e,"clear",void 0,void 0),i}});return["keys","values","entries",Symbol.iterator].forEach(a=>{i[a]=function(e,t,i){return function(...a){const n=this.__v_raw,s=uo(n),o=E(s),r="entries"===e||e===Symbol.iterator&&o,l="keys"===e&&o,c=n[e](...a),d=i?Hs:t?fo:ho;return!t&&ys(s,0,l?vs:_s),y(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:r?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(a,e,t)}),i}function Ws(e,t){const i=Gs(e,t);return(t,a,n)=>"__v_isReactive"===a?!e:"__v_isReadonly"===a?e:"__v_raw"===a?t:Reflect.get(w(i,a)&&a in t?i:t,a,n)}const js={get:Ws(!1,!1)},qs={get:Ws(!1,!0)},Ks={get:Ws(!0,!1)},Xs={get:Ws(!0,!0)},Zs=new WeakMap,Qs=new WeakMap,Js=new WeakMap,eo=new WeakMap;function to(e){return ro(e)?e:so(e,!1,Bs,js,Zs)}function io(e){return so(e,!1,Vs,qs,Qs)}function ao(e){return so(e,!0,$s,Ks,Js)}function no(e){return so(e,!0,Us,Xs,eo)}function so(e,t,i,a,n){if(!D(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const s=n.get(e);if(s)return s;const o=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(N(e).slice(8,-1));if(0===o)return e;const r=new Proxy(e,2===o?a:i);return n.set(e,r),r}function oo(e){return ro(e)?oo(e.__v_raw):!(!e||!e.__v_isReactive)}function ro(e){return!(!e||!e.__v_isReadonly)}function lo(e){return!(!e||!e.__v_isShallow)}function co(e){return!!e&&!!e.__v_raw}function uo(e){const t=e&&e.__v_raw;return t?uo(t):e}function po(e){return!w(e,"__v_skip")&&Object.isExtensible(e)&&q(e,"__v_skip",!0),e}const ho=e=>D(e)?to(e):e,fo=e=>D(e)?ao(e):e;function go(e){return!!e&&!0===e.__v_isRef}function mo(e){return vo(e,!1)}function _o(e){return vo(e,!0)}function vo(e,t){return go(e)?e:new bo(e,t)}class bo{constructor(e,t){this.dep=new fs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:uo(e),this._value=t?e:ho(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,i=this.__v_isShallow||lo(e)||ro(e);W(e=i?e:uo(e),t)&&(this._rawValue=e,this._value=i?e:ho(e),this.dep.trigger())}}function yo(e){e.dep&&e.dep.trigger()}function xo(e){return go(e)?e.value:e}function So(e){return A(e)?e():xo(e)}const wo={get:(e,t,i)=>"__v_raw"===t?e:xo(Reflect.get(e,t,i)),set:(e,t,i,a)=>{const n=e[t];return go(n)&&!go(i)?(n.value=i,!0):Reflect.set(e,t,i,a)}};function Co(e){return oo(e)?e:new Proxy(e,wo)}class Eo{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new fs,{get:i,set:a}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=a}get value(){return this._value=this._get()}set value(e){this._set(e)}}function ko(e){return new Eo(e)}function To(e){const t=C(e)?new Array(e.length):{};for(const i in e)t[i]=Do(e,i);return t}class Ao{constructor(e,t,i){this._object=e,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._key=I(t)?t:String(t),this._raw=uo(e);let a=!0,n=e;if(!C(e)||I(this._key)||!P(this._key))do{a=!co(n)||lo(n)}while(a&&(n=n.__v_raw));this._shallow=a}get value(){let e=this._object[this._key];return this._shallow&&(e=xo(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&go(this._raw[this._key])){const t=this._object[this._key];if(go(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const i=ms.get(e);return i&&i.get(t)}(this._raw,this._key)}}class Ro{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Io(e,t,i){return go(e)?e:A(e)?new Ro(e):D(e)&&arguments.length>1?Do(e,t,i):mo(e)}function Do(e,t,i){return new Ao(e,t,i)}class Oo{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new fs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ps-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){if(this.flags|=16,!(8&this.flags)&&Vn!==this)return Xn(this,!0),!0}get value(){const e=this.dep.track();return is(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Mo(e,t,i=!1){let a,n;A(e)?a=e:(a=e.get,n=e.set);return new Oo(a,n,i)}const No={GET:"get",HAS:"has",ITERATE:"iterate"},Lo={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Po={},Fo=new WeakMap;let Bo;function $o(){return Bo}function Vo(e,t=!1,i=Bo){if(i){let t=Fo.get(i);t||Fo.set(i,t=[]),t.push(e)}}function Uo(e,t=1/0,i){if(t<=0||!D(e)||e.__v_skip)return e;if(((i=i||new Map).get(e)||0)>=t)return e;if(i.set(e,t),t--,go(e))Uo(e.value,t,i);else if(C(e))for(let a=0;a<e.length;a++)Uo(e[a],t,i);else if(k(e)||E(e))e.forEach(e=>{Uo(e,t,i)});else if(L(e)){for(const a in e)Uo(e[a],t,i);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Uo(e[a],t,i)}return e}
14 /**
15 * @vue/runtime-core v3.5.35
16 * (c) 2018-present Yuxi (Evan) You and Vue contributors
17 * @license MIT
18 **/const Ho=[];function zo(e,t){}const Yo={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Go={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Wo(e,t,i,a){try{return a?e(...a):e()}catch(n){qo(n,t,i)}}function jo(e,t,i,a){if(A(e)){const n=Wo(e,t,i,a);return n&&O(n)&&n.catch(e=>{qo(e,t,i)}),n}if(C(e)){const n=[];for(let s=0;s<e.length;s++)n.push(jo(e[s],t,i,a));return n}}function qo(e,t,i,a=!0){t&&t.vnode;const{errorHandler:n,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||f;if(t){let a=t.parent;const s=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${i}`;for(;a;){const t=a.ec;if(t)for(let i=0;i<t.length;i++)if(!1===t[i](e,s,o))return;a=a.parent}if(n)return cs(),Wo(n,null,10,[e,s,o]),void ds()}!function(e,t,i,a=!0,n=!1){if(n)throw e}(e,0,0,a,s)}const Ko=[];let Xo=-1;const Zo=[];let Qo=null,Jo=0;const er=Promise.resolve();let tr=null;function ir(e){const t=tr||er;return e?t.then(this?e.bind(this):e):t}function ar(e){if(!(1&e.flags)){const t=lr(e),i=Ko[Ko.length-1];!i||!(2&e.flags)&&t>=lr(i)?Ko.push(e):Ko.splice(function(e){let t=Xo+1,i=Ko.length;for(;t<i;){const a=t+i>>>1,n=Ko[a],s=lr(n);s<e||s===e&&2&n.flags?t=a+1:i=a}return t}(t),0,e),e.flags|=1,nr()}}function nr(){tr||(tr=er.then(cr))}function sr(e){C(e)?Zo.push(...e):Qo&&-1===e.id?Qo.splice(Jo+1,0,e):1&e.flags||(Zo.push(e),e.flags|=1),nr()}function or(e,t,i=Xo+1){for(;i<Ko.length;i++){const t=Ko[i];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Ko.splice(i,1),i--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function rr(e){if(Zo.length){const e=[...new Set(Zo)].sort((e,t)=>lr(e)-lr(t));if(Zo.length=0,Qo)return void Qo.push(...e);for(Qo=e,Jo=0;Jo<Qo.length;Jo++){const e=Qo[Jo];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Qo=null,Jo=0}}const lr=e=>null==e.id?2&e.flags?-1:1/0:e.id;function cr(e){try{for(Xo=0;Xo<Ko.length;Xo++){const e=Ko[Xo];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Wo(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Xo<Ko.length;Xo++){const e=Ko[Xo];e&&(e.flags&=-2)}Xo=-1,Ko.length=0,rr(),tr=null,(Ko.length||Zo.length)&&cr()}}let dr,ur=[];let pr=null,hr=null;function fr(e){const t=pr;return pr=e,hr=e&&e.type.__scopeId||null,t}function gr(e){hr=e}function mr(){hr=null}const _r=e=>vr;function vr(e,t=pr,i){if(!t)return e;if(e._n)return e;const a=(...i)=>{a._d&&Wd(-1);const n=fr(t);let s;try{s=e(...i)}finally{fr(n),a._d&&Wd(1)}return s};return a._n=!0,a._c=!0,a._d=!0,a}function br(e,t){if(null===pr)return e;const i=Mu(pr),a=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[e,s,o,r=f]=t[n];e&&(A(e)&&(e={mounted:e,updated:e}),e.deep&&Uo(s),a.push({dir:e,instance:i,value:s,oldValue:void 0,arg:o,modifiers:r}))}return e}function yr(e,t,i,a){const n=e.dirs,s=t&&t.dirs;for(let o=0;o<n.length;o++){const r=n[o];s&&(r.oldValue=s[o].value);let l=r.dir[a];l&&(cs(),jo(l,i,8,[e.el,r,e,t]),ds())}}function xr(e,t){if(mu){let i=mu.provides;const a=mu.parent&&mu.parent.provides;a===i&&(i=mu.provides=Object.create(a)),i[e]=t}}function Sr(e,t,i=!1){const a=_u();if(a||Gc){let n=Gc?Gc._context.provides:a?null==a.parent||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return i&&A(t)?t.call(a&&a.proxy):t}}function wr(){return!(!_u()&&!Gc)}const Cr=Symbol.for("v-scx"),Er=()=>Sr(Cr);function kr(e,t){return Ir(e,null,t)}function Tr(e,t){return Ir(e,null,{flush:"post"})}function Ar(e,t){return Ir(e,null,{flush:"sync"})}function Rr(e,t,i){return Ir(e,t,i)}function Ir(e,t,i=f){const{immediate:a,deep:n,flush:s,once:o}=i,r=y({},i),l=t&&a||!t&&"post"!==s;let c;if(Eu)if("sync"===s){const e=Er();c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=m,e.resume=m,e.pause=m,e}const d=mu;r.call=(e,t,i)=>jo(e,d,t,i);let u=!1;"post"===s?r.scheduler=e=>{vd(e,d&&d.suspense)}:"sync"!==s&&(u=!0,r.scheduler=(e,t)=>{t?e():ar(e)}),r.augmentJob=e=>{t&&(e.flags|=4),u&&(e.flags|=2,d&&(e.id=d.uid,e.i=d))};const p=function(e,t,i=f){const{immediate:a,deep:n,once:s,scheduler:o,augmentJob:r,call:l}=i,c=e=>n?e:lo(e)||!1===n||0===n?Uo(e,1):Uo(e);let d,u,p,h,g=!1,_=!1;if(go(e)?(u=()=>e.value,g=lo(e)):oo(e)?(u=()=>c(e),g=!0):C(e)?(_=!0,g=e.some(e=>oo(e)||lo(e)),u=()=>e.map(e=>go(e)?e.value:oo(e)?c(e):A(e)?l?l(e,2):e():void 0)):u=A(e)?t?l?()=>l(e,2):e:()=>{if(p){cs();try{p()}finally{ds()}}const t=Bo;Bo=d;try{return l?l(e,3,[h]):e(h)}finally{Bo=t}}:m,t&&n){const e=u,t=!0===n?1/0:n;u=()=>Uo(e(),t)}const v=zn(),b=()=>{d.stop(),v&&v.active&&x(v.effects,d)};if(s&&t){const e=t;t=(...t)=>{e(...t),b()}}let y=_?new Array(e.length).fill(Po):Po;const S=e=>{if(1&d.flags&&(d.dirty||e))if(t){const e=d.run();if(n||g||(_?e.some((e,t)=>W(e,y[t])):W(e,y))){p&&p();const i=Bo;Bo=d;try{const i=[e,y===Po?void 0:_&&y[0]===Po?[]:y,h];y=e,l?l(t,3,i):t(...i)}finally{Bo=i}}}else d.run()};return r&&r(S),d=new Wn(u),d.scheduler=o?()=>o(S,!1):S,h=e=>Vo(e,!1,d),p=d.onStop=()=>{const e=Fo.get(d);if(e){if(l)l(e,4);else for(const t of e)t();Fo.delete(d)}},t?a?S(!0):y=d.run():o?o(S.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}(e,t,r);return Eu&&(c?c.push(p):l&&p()),p}function Dr(e,t,i){const a=this.proxy,n=R(e)?e.includes(".")?Or(a,e):()=>a[e]:e.bind(a,a);let s;A(t)?s=t:(s=t.handler,i=t);const o=yu(this),r=Ir(n,s.bind(a),i);return o(),r}function Or(e,t){const i=t.split(".");return()=>{let t=e;for(let e=0;e<i.length&&t;e++)t=t[i[e]];return t}}const Mr=new WeakMap,Nr=Symbol("_vte"),Lr=e=>e.__isTeleport,Pr=e=>e&&(e.disabled||""===e.disabled),Fr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Br=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,$r=(e,t)=>{const i=e&&e.to;if(R(i)){if(t){return t(i)}return null}return i},Vr={name:"Teleport",__isTeleport:!0,process(e,t,i,a,n,s,o,r,l,c){const{mc:d,pc:u,pbc:p,o:{insert:h,querySelector:f,createText:g,createComment:m,parentNode:_}}=c,v=Pr(t.props);let{dynamicChildren:b}=t;const y=(e,t,i)=>{16&e.shapeFlag&&d(e.children,t,i,n,s,o,r,l)},x=(e=t)=>{const i=Pr(e.props),a=e.target=$r(e.props,f),s=Yr(a,e,g,h);a&&("svg"!==o&&Fr(a)?o="svg":"mathml"!==o&&Br(a)&&(o="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(a),i||(y(e,a,s),zr(e,!1)))},S=e=>{const t=()=>{if(Mr.get(e)===t){if(Mr.delete(e),Pr(e.props)){const t=_(e.el)||i;y(e,t,e.anchor),zr(e,!0)}x(e)}};Mr.set(e,t),vd(t,s)};if(null==e){const e=t.el=g(""),n=t.anchor=g("");if(h(e,i,a),h(n,i,a),(w=t.props)&&(w.defer||""===w.defer)||s&&s.pendingBranch)return void S(t);v&&(y(t,i,n),zr(t,!0)),x()}else{t.el=e.el;const a=t.anchor=e.anchor,d=Mr.get(e);if(d)return d.flags|=8,Mr.delete(e),void S(t);t.targetStart=e.targetStart;const h=t.target=e.target,g=t.targetAnchor=e.targetAnchor,m=Pr(e.props),_=m?i:h,y=m?a:g;if("svg"===o||Fr(h)?o="svg":("mathml"===o||Br(h))&&(o="mathml"),b?(p(e.dynamicChildren,b,_,n,s,o,r),Ed(e,t,!0)):l||u(e,t,_,y,n,s,o,r,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ur(t,i,a,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=$r(t.props,f);e&&Ur(t,e,null,c,0)}else m&&Ur(t,h,g,c,1);zr(t,v)}var w},remove(e,t,i,{um:a,o:{remove:n}},s){const{shapeFlag:o,children:r,anchor:l,targetStart:c,targetAnchor:d,target:u,props:p}=e,h=s||!Pr(p),f=Mr.get(e);if(f&&(f.flags|=8,Mr.delete(e)),u&&(n(c),n(d)),s&&n(l),!f&&16&o)for(let g=0;g<r.length;g++){const e=r[g];a(e,t,i,h,!!e.dynamicChildren)}},move:Ur,hydrate:function(e,t,i,a,n,s,{o:{nextSibling:o,parentNode:r,querySelector:l,insert:c,createText:d}},u){function p(e,i){let a=i;for(;a;){if(a&&8===a.nodeType)if("teleport start anchor"===a.data)t.targetStart=a;else if("teleport anchor"===a.data){t.targetAnchor=a,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}a=o(a)}}function h(e,t){t.anchor=u(o(e),t,r(e),i,a,n,s)}const f=t.target=$r(t.props,l),g=Pr(t.props);if(f){const l=f._lpa||f.firstChild;16&t.shapeFlag&&(g?(h(e,t),p(f,l),t.targetAnchor||Yr(f,t,d,c,r(e)===f?e:null)):(t.anchor=o(e),p(f,l),t.targetAnchor||Yr(f,t,d,c),u(l&&o(l),t,f,i,a,n,s))),zr(t,g)}else g&&16&t.shapeFlag&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}};function Ur(e,t,i,{o:{insert:a},m:n},s=2){0===s&&a(e.targetAnchor,t,i);const{el:o,anchor:r,shapeFlag:l,children:c,props:d}=e,u=2===s;if(u&&a(o,t,i),!Mr.has(e)&&(!u||Pr(d))&&16&l)for(let p=0;p<c.length;p++)n(c[p],t,i,2);u&&a(r,t,i)}const Hr=Vr;function zr(e,t){const i=e.ctx;if(i&&i.ut){let a,n;for(t?(a=e.el,n=e.anchor):(a=e.targetStart,n=e.targetAnchor);a&&a!==n;)1===a.nodeType&&a.setAttribute("data-v-owner",i.uid),a=a.nextSibling;i.ut()}}function Yr(e,t,i,a,n=null){const s=t.targetStart=i(""),o=t.targetAnchor=i("");return s[Nr]=o,e&&(a(s,e,n),a(o,e,n)),o}const Gr=Symbol("_leaveCb"),Wr=Symbol("_enterCb");function jr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zl(()=>{e.isMounted=!0}),Wl(()=>{e.isUnmounting=!0}),e}const qr=[Function,Array],Kr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qr,onEnter:qr,onAfterEnter:qr,onEnterCancelled:qr,onBeforeLeave:qr,onLeave:qr,onAfterLeave:qr,onLeaveCancelled:qr,onBeforeAppear:qr,onAppear:qr,onAfterAppear:qr,onAppearCancelled:qr},Xr=e=>{const t=e.subTree;return t.component?Xr(t.component):t};function Zr(e){let t=e[0];if(e.length>1)for(const i of e)if(i.type!==$d){t=i;break}return t}const Qr={name:"BaseTransition",props:Kr,setup(e,{slots:t}){const i=_u(),a=jr();return()=>{const n=t.default&&nl(t.default(),!0),s=n&&n.length?Zr(n):i.subTree?ru():void 0;if(!s)return;const o=uo(e),{mode:r}=o;if(a.isLeaving)return tl(s);const l=il(s);if(!l)return tl(s);let c=el(l,o,a,i,e=>c=e);l.type!==$d&&al(l,c);let d=i.subTree&&il(i.subTree);if(d&&d.type!==$d&&!Zd(d,l)&&Xr(i).type!==$d){let e=el(d,o,a,i);if(al(d,e),"out-in"===r&&l.type!==$d)return a.isLeaving=!0,e.afterLeave=()=>{a.isLeaving=!1,8&i.job.flags||i.update(),delete e.afterLeave,d=void 0},tl(s);"in-out"===r&&l.type!==$d?e.delayLeave=(e,t,i)=>{Jr(a,d)[String(d.key)]=d,e[Gr]=()=>{t(),e[Gr]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{i(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return s}}};function Jr(e,t){const{leavingVNodes:i}=e;let a=i.get(t.type);return a||(a=Object.create(null),i.set(t.type,a)),a}function el(e,t,i,a,n){const{appear:s,mode:o,persisted:r=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:_,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),x=Jr(i,e),S=(e,t)=>{e&&jo(e,a,9,t)},w=(e,t)=>{const i=t[1];S(e,t),C(e)?e.every(e=>e.length<=1)&&i():e.length<=1&&i()},E={mode:o,persisted:r,beforeEnter(t){let a=l;if(!i.isMounted){if(!s)return;a=m||l}t[Gr]&&t[Gr](!0);const n=x[y];n&&Zd(e,n)&&n.el[Gr]&&n.el[Gr](),S(a,[t])},enter(t){if(x[y]===e)return;let a=c,n=d,o=u;if(!i.isMounted){if(!s)return;a=_||c,n=v||d,o=b||u}let r=!1;t[Wr]=e=>{r||(r=!0,S(e?o:n,[t]),E.delayedLeave&&E.delayedLeave(),t[Wr]=void 0)};const l=t[Wr].bind(null,!1);a?w(a,[t,l]):l()},leave(t,a){const n=String(e.key);if(t[Wr]&&t[Wr](!0),i.isUnmounting)return a();S(p,[t]);let s=!1;t[Gr]=i=>{s||(s=!0,a(),S(i?g:f,[t]),t[Gr]=void 0,x[n]===e&&delete x[n])};const o=t[Gr].bind(null,!1);x[n]=e,h?w(h,[t,o]):o()},clone(e){const s=el(e,t,i,a,n);return n&&n(s),s}};return E}function tl(e){if(Il(e))return(e=nu(e)).children=null,e}function il(e){if(!Il(e))return Lr(e.type)&&e.children?Zr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:i}=e;if(i){if(16&t)return i[0];if(32&t&&A(i.default))return i.default()}}function al(e,t){6&e.shapeFlag&&e.component?(e.transition=t,al(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nl(e,t=!1,i){let a=[],n=0;for(let s=0;s<e.length;s++){let o=e[s];const r=null==i?o.key:String(i)+String(null!=o.key?o.key:s);o.type===Fd?(128&o.patchFlag&&n++,a=a.concat(nl(o.children,t,r))):(t||o.type!==$d)&&a.push(null!=r?nu(o,{key:r}):o)}if(n>1)for(let s=0;s<a.length;s++)a[s].patchFlag=-2;return a}function sl(e,t){return A(e)?(()=>y({name:e.name},t,{setup:e}))():e}function ol(){const e=_u();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function rl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ll(e){const t=_u(),i=_o(null);if(t){const a=t.refs===f?t.refs={}:t.refs;Object.defineProperty(a,e,{enumerable:!0,get:()=>i.value,set:e=>i.value=e})}return i}function cl(e,t){let i;return!(!(i=Object.getOwnPropertyDescriptor(e,t))||i.configurable)}const dl=new WeakMap;function ul(e,t,i,a,n=!1){if(C(e))return void e.forEach((e,s)=>ul(e,t&&(C(t)?t[s]:t),i,a,n));if(Tl(a)&&!n)return void(512&a.shapeFlag&&a.type.__asyncResolved&&a.component.subTree.component&&ul(e,t,i,a.component.subTree));const s=4&a.shapeFlag?Mu(a.component):a.el,o=n?null:s,{i:r,r:l}=e,c=t&&t.r,d=r.refs===f?r.refs={}:r.refs,u=r.setupState,p=uo(u),h=u===f?_:e=>!cl(d,e)&&w(p,e),g=(e,t)=>!t||!cl(d,t);if(null!=c&&c!==l)if(pl(t),R(c))d[c]=null,h(c)&&(u[c]=null);else if(go(c)){const e=t;g(0,e.k)&&(c.value=null),e.k&&(d[e.k]=null)}if(A(l))Wo(l,r,12,[o,d]);else{const t=R(l),a=go(l);if(t||a){const r=()=>{if(e.f){const i=t?h(l)?u[l]:d[l]:g()||!e.k?l.value:d[e.k];if(n)C(i)&&x(i,s);else if(C(i))i.includes(s)||i.push(s);else if(t)d[l]=[s],h(l)&&(u[l]=d[l]);else{const t=[s];g(0,e.k)&&(l.value=t),e.k&&(d[e.k]=t)}}else t?(d[l]=o,h(l)&&(u[l]=o)):a&&(g(0,e.k)&&(l.value=o),e.k&&(d[e.k]=o))};if(o){const t=()=>{r(),dl.delete(e)};t.id=-1,dl.set(e,t),vd(t,i)}else pl(e),r()}}}function pl(e){const t=dl.get(e);t&&(t.flags|=8,dl.delete(e))}let hl=!1;const fl=()=>{hl||(hl=!0)},gl=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},ml=e=>8===e.nodeType;function _l(e){const{mt:t,p:i,o:{patchProp:a,createText:n,nextSibling:s,parentNode:o,remove:r,insert:l,createComment:c}}=e,d=(i,a,r,c,v,b=!1)=>{b=b||!!a.dynamicChildren;const y=ml(i)&&"["===i.data,x=()=>f(i,a,r,c,v,y),{type:S,ref:w,shapeFlag:C,patchFlag:E}=a;let k=i.nodeType;a.el=i,-2===E&&(b=!1,a.dynamicChildren=null);let T=null;switch(S){case Bd:3!==k?""===a.children?(l(a.el=n(""),o(i),i),T=i):T=x():(i.data!==a.children&&(fl(),i.data=a.children),T=s(i));break;case $d:_(i)?(T=s(i),m(a.el=i.content.firstChild,i,r)):T=8!==k||y?x():s(i);break;case Vd:if(y&&(k=(i=s(i)).nodeType),1===k||3===k){T=i;const e=!a.children.length;for(let t=0;t<a.staticCount;t++)e&&(a.children+=1===T.nodeType?T.outerHTML:T.data),t===a.staticCount-1&&(a.anchor=T),T=s(T);return y?s(T):T}x();break;case Fd:T=y?h(i,a,r,c,v,b):x();break;default:if(1&C)T=1===k&&a.type.toLowerCase()===i.tagName.toLowerCase()||_(i)?u(i,a,r,c,v,b):x();else if(6&C){a.slotScopeIds=v;const e=o(i);if(T=y?g(i):ml(i)&&"teleport start"===i.data?g(i,i.data,"teleport end"):s(i),t(a,e,null,r,c,gl(e),b),Tl(a)&&!a.type.__asyncResolved){let t;y?(t=iu(Fd),t.anchor=T?T.previousSibling:e.lastChild):t=3===i.nodeType?su(""):iu("div"),t.el=i,a.component.subTree=t}}else 64&C?T=8!==k?x():a.type.hydrate(i,a,r,c,v,b,e,p):128&C&&(T=a.type.hydrate(i,a,r,c,gl(o(i)),v,b,e,d))}return null!=w&&ul(w,null,c,a),T},u=(e,t,i,n,s,o)=>{o=o||!!t.dynamicChildren;const{type:l,props:c,patchFlag:d,shapeFlag:u,dirs:h,transition:f}=t,g="input"===l||"option"===l;if(g||-1!==d){h&&yr(t,null,i,"created");let l,b=!1;if(_(e)){b=Cd(null,f)&&i&&i.vnode.props&&i.vnode.props.appear;const a=e.content.firstChild;if(b){const e=a.getAttribute("class");e&&(a.$cls=e),f.beforeEnter(a)}m(a,e,i),t.el=e=a}if(16&u&&(!c||!c.innerHTML&&!c.textContent)){let a=p(e.firstChild,t,e,i,n,s,o);for(a&&!yl(e,1)&&fl();a;){const e=a;a=a.nextSibling,r(e)}}else if(8&u){let i=t.children;"\n"!==i[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(i=i.slice(1));const{textContent:a}=e;a!==i&&a!==i.replace(/\r\n|\r/g,"\n")&&(yl(e,0)||fl(),e.textContent=t.children)}if(c)if(g||!o||48&d){const t=e.tagName.includes("-");for(const n in c)(g&&(n.endsWith("value")||"indeterminate"===n)||v(n)&&!F(n)||"."===n[0]||t&&!F(n))&&a(e,n,null,c[n],void 0,i)}else if(c.onClick)a(e,"onClick",null,c.onClick,void 0,i);else if(4&d&&oo(c.style))for(const e in c.style)c.style[e];(l=c&&c.onVnodeBeforeMount)&&pu(l,i,t),h&&yr(t,null,i,"beforeMount"),((l=c&&c.onVnodeMounted)||h||b)&&Ld(()=>{l&&pu(l,i,t),b&&f.enter(e),h&&yr(t,null,i,"mounted")},n)}return e.nextSibling},p=(e,t,a,o,r,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;let f=!1;for(let g=0;g<h;g++){const t=u?p[g]:p[g]=lu(p[g]),m=t.type===Bd;e?(m&&!u&&g+1<h&&lu(p[g+1]).type===Bd&&(l(n(e.data.slice(t.children.length)),a,s(e)),e.data=t.children),e=d(e,t,o,r,c,u)):m&&!t.children?l(t.el=n(""),a):(f||(f=!0,yl(a,1)||fl()),i(null,t,a,null,o,r,gl(a),c))}return e},h=(e,t,i,a,n,r)=>{const{slotScopeIds:d}=t;d&&(n=n?n.concat(d):d);const u=o(e),h=p(s(e),t,u,i,a,n,r);return h&&ml(h)&&"]"===h.data?s(t.anchor=h):(fl(),l(t.anchor=c("]"),u,h),h)},f=(e,t,a,n,l,c)=>{if(yl(e.parentElement,1)||fl(),t.el=null,c){const t=g(e);for(;;){const i=s(e);if(!i||i===t)break;r(i)}}const d=s(e),u=o(e);return r(e),i(null,t,u,d,a,n,gl(u),l),a&&(a.vnode.el=t.el,ad(a,t.el)),d},g=(e,t="[",i="]")=>{let a=0;for(;e;)if((e=s(e))&&ml(e)&&(e.data===t&&a++,e.data===i)){if(0===a)return s(e);a--}return e},m=(e,t,i)=>{const a=t.parentNode;a&&a.replaceChild(e,t);let n=i;for(;n;)n.vnode.el===t&&(n.vnode.el=n.subTree.el=e),n=n.parent},_=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return i(null,e,t),rr(),void(t._vnode=e);d(t.firstChild,e,null,null,null),rr(),t._vnode=e},d]}const vl="data-allow-mismatch",bl={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function yl(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(vl);)e=e.parentElement;const i=e&&e.getAttribute(vl);if(null==i)return!1;if(""===i)return!0;{const e=i.split(",");return!(0!==t||!e.includes("children"))||e.includes(bl[t])}}const xl=Q().requestIdleCallback||(e=>setTimeout(e,1)),Sl=Q().cancelIdleCallback||(e=>clearTimeout(e)),wl=(e=1e4)=>t=>{const i=xl(t,{timeout:e});return()=>Sl(i)};const Cl=e=>(t,i)=>{const a=new IntersectionObserver(e=>{for(const i of e)if(i.isIntersecting){a.disconnect(),t();break}},e);return i(e=>{if(e instanceof Element)return function(e){const{top:t,left:i,bottom:a,right:n}=e.getBoundingClientRect(),{innerHeight:s,innerWidth:o}=window;return(t>0&&t<s||a>0&&a<s)&&(i>0&&i<o||n>0&&n<o)}(e)?(t(),a.disconnect(),!1):void a.observe(e)}),()=>a.disconnect()},El=e=>t=>{if(e){const i=matchMedia(e);if(!i.matches)return i.addEventListener("change",t,{once:!0}),()=>i.removeEventListener("change",t);t()}},kl=(e=[])=>(t,i)=>{R(e)&&(e=[e]);let a=!1;const n=e=>{a||(a=!0,s(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},s=()=>{i(t=>{for(const i of e)t.removeEventListener(i,n)})};return i(t=>{for(const i of e)t.addEventListener(i,n,{once:!0})}),s};const Tl=e=>!!e.type.__asyncLoader;function Al(e){A(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:a,delay:n=200,hydrate:s,timeout:o,suspensible:r=!0,onError:l}=e;let c,d=null,u=0;const p=()=>{let e;return d||(e=d=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,i)=>{l(e,()=>t((u++,d=null,p())),()=>i(e),u+1)});throw e}).then(t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return sl({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(e,t,i){let a=!1;(t.bu||(t.bu=[])).push(()=>a=!0);const n=()=>{a||i()},o=s?()=>{const i=s(n,t=>function(e,t){if(ml(e)&&"["===e.data){let i=1,a=e.nextSibling;for(;a;){if(1===a.nodeType){if(!1===t(a))break}else if(ml(a))if("]"===a.data){if(0===--i)break}else"["===a.data&&i++;a=a.nextSibling}}else t(e)}(e,t));i&&(t.bum||(t.bum=[])).push(i)}:n;c?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return c},setup(){const e=mu;if(rl(e),c)return()=>Rl(c,e);const t=t=>{d=null,qo(t,e,13,!a)};if(r&&e.suspense||Eu)return p().then(t=>()=>Rl(t,e)).catch(e=>(t(e),()=>a?iu(a,{error:e}):null));const s=mo(!1),l=mo(),u=mo(!!n);return n&&setTimeout(()=>{u.value=!1},n),null!=o&&setTimeout(()=>{if(!s.value&&!l.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),l.value=e}},o),p().then(()=>{s.value=!0,e.parent&&Il(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),l.value=e}),()=>s.value&&c?Rl(c,e):l.value&&a?iu(a,{error:l.value}):i&&!u.value?Rl(i,e):void 0}})}function Rl(e,t){const{ref:i,props:a,children:n,ce:s}=t.vnode,o=iu(e,a,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}const Il=e=>e.type.__isKeepAlive,Dl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=_u(),a=i.ctx;if(!a.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const n=new Map,s=new Set;let o=null;const r=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=a,p=u("div");function h(e){Bl(e),d(e,i,r,!0)}function f(e){n.forEach((t,i)=>{const a=Nu(Tl(t)?t.type.__asyncResolved||{}:t.type);a&&!e(a)&&g(i)})}function g(e){const t=n.get(e);!t||o&&Zd(t,o)?o&&Bl(o):h(t),n.delete(e),s.delete(e)}a.activate=(e,t,i,a,n)=>{const s=e.component;c(e,t,i,0,r),l(s.vnode,e,t,i,s,r,a,e.slotScopeIds,n),vd(()=>{s.isDeactivated=!1,s.a&&j(s.a);const t=e.props&&e.props.onVnodeMounted;t&&pu(t,s.parent,e)},r)},a.deactivate=e=>{const t=e.component;Td(t.m),Td(t.a),c(e,p,null,1,r),vd(()=>{t.da&&j(t.da);const i=e.props&&e.props.onVnodeUnmounted;i&&pu(i,t.parent,e),t.isDeactivated=!0},r)},Rr(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>Ml(e,t)),t&&f(e=>!Ml(t,e))},{flush:"post",deep:!0});let m=null;const _=()=>{null!=m&&(Rd(i.subTree.type)?vd(()=>{n.set(m,$l(i.subTree))},i.subTree.suspense):n.set(m,$l(i.subTree)))};return zl(_),Gl(_),Wl(()=>{n.forEach(e=>{const{subTree:t,suspense:a}=i,n=$l(t);if(e.type===n.type&&e.key===n.key){Bl(n);const e=n.component.da;return void(e&&vd(e,a))}h(e)})}),()=>{if(m=null,!t.default)return o=null;const i=t.default(),a=i[0];if(i.length>1)return o=null,i;if(!(Xd(a)&&(4&a.shapeFlag||128&a.shapeFlag)))return o=null,a;let r=$l(a);if(r.type===$d)return o=null,r;const l=r.type,c=Nu(Tl(r)?r.type.__asyncResolved||{}:l),{include:d,exclude:u,max:p}=e;if(d&&(!c||!Ml(d,c))||u&&c&&Ml(u,c))return r.shapeFlag&=-257,o=r,a;const h=null==r.key?l:r.key,f=n.get(h);return r.el&&(r=nu(r),128&a.shapeFlag&&(a.ssContent=r)),m=h,f?(r.el=f.el,r.component=f.component,r.transition&&al(r,r.transition),r.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&g(s.values().next().value)),r.shapeFlag|=256,o=r,Rd(a.type)?a:r}}},Ol=Dl;function Ml(e,t){return C(e)?e.some(e=>Ml(e,t)):R(e)?e.split(",").includes(t):"[object RegExp]"===N(e)&&(e.lastIndex=0,e.test(t))}function Nl(e,t){Pl(e,"a",t)}function Ll(e,t){Pl(e,"da",t)}function Pl(e,t,i=mu){const a=e.__wdc||(e.__wdc=()=>{let t=i;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Vl(t,a,i),i){let e=i.parent;for(;e&&e.parent;)Il(e.parent.vnode)&&Fl(a,t,i,e),e=e.parent}}function Fl(e,t,i,a){const n=Vl(t,e,a,!0);jl(()=>{x(a[t],n)},i)}function Bl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function $l(e){return 128&e.shapeFlag?e.ssContent:e}function Vl(e,t,i=mu,a=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...a)=>{cs();const n=yu(i),s=jo(t,i,e,a);return n(),ds(),s});return a?n.unshift(s):n.push(s),s}}const Ul=e=>(t,i=mu)=>{Eu&&"sp"!==e||Vl(e,(...e)=>t(...e),i)},Hl=Ul("bm"),zl=Ul("m"),Yl=Ul("bu"),Gl=Ul("u"),Wl=Ul("bum"),jl=Ul("um"),ql=Ul("sp"),Kl=Ul("rtg"),Xl=Ul("rtc");function Zl(e,t=mu){Vl("ec",e,t)}const Ql="components";function Jl(e,t){return ac(Ql,e,!0,t)||e}const ec=Symbol.for("v-ndc");function tc(e){return R(e)?ac(Ql,e,!1)||e:e||ec}function ic(e){return ac("directives",e)}function ac(e,t,i=!0,a=!1){const n=pr||mu;if(n){const i=n.type;if(e===Ql){const e=Nu(i,!1);if(e&&(e===t||e===U(t)||e===Y(U(t))))return i}const s=nc(n[e]||i[e],t)||nc(n.appContext[e],t);return!s&&a?i:s}}function nc(e,t){return e&&(e[t]||e[U(t)]||e[Y(U(t))])}function sc(e,t,i,a){let n;const s=i&&i[a],o=C(e);if(o||R(e)){let i=!1,a=!1;o&&oo(e)&&(i=!lo(e),a=ro(e),e=ws(e)),n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(i?a?fo(ho(e[o])):ho(e[o]):e[o],o,void 0,s&&s[o])}else if("number"==typeof e){n=new Array(e);for(let i=0;i<e;i++)n[i]=t(i+1,i,void 0,s&&s[i])}else if(D(e))if(e[Symbol.iterator])n=Array.from(e,(e,i)=>t(e,i,void 0,s&&s[i]));else{const i=Object.keys(e);n=new Array(i.length);for(let a=0,o=i.length;a<o;a++){const o=i[a];n[a]=t(e[o],o,a,s&&s[a])}}else n=[];return i&&(i[a]=n),n}function oc(e,t){for(let i=0;i<t.length;i++){const a=t[i];if(C(a))for(let t=0;t<a.length;t++)e[a[t].name]=a[t].fn;else a&&(e[a.name]=a.key?(...e)=>{const t=a.fn(...e);return t&&(t.key=a.key),t}:a.fn)}return e}function rc(e,t,i={},a,n){if(pr.ce||pr.parent&&Tl(pr.parent)&&pr.parent.ce){const e=Object.keys(i).length>0;return"default"!==t&&(i.name=t),zd(),Kd(Fd,null,[iu("slot",i,a&&a())],e?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),zd();const o=s&&lc(s(i)),r=i.key||o&&o.key,l=Kd(Fd,{key:(r&&!I(r)?r:`_${t}`)+(!o&&a?"_fb":"")},o||(a?a():[]),o&&1===e._?64:-2);return!n&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function lc(e){return e.some(e=>!Xd(e)||e.type!==$d&&!(e.type===Fd&&!lc(e.children)))?e:null}function cc(e,t){const i={};for(const a in e)i[t&&/[A-Z]/.test(a)?`on:${a}`:G(a)]=e[a];return i}const dc=e=>e?Su(e)?Mu(e):dc(e.parent):null,uc=y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dc(e.parent),$root:e=>dc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Nc(e),$forceUpdate:e=>e.f||(e.f=()=>{ar(e.update)}),$nextTick:e=>e.n||(e.n=ir.bind(e.proxy)),$watch:e=>Dr.bind(e)}),pc=(e,t)=>e!==f&&!e.__isScriptSetup&&w(e,t),hc={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:i,setupState:a,data:n,props:s,accessCache:o,type:r,appContext:l}=e;if("$"!==t[0]){const e=o[t];if(void 0!==e)switch(e){case 1:return a[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(pc(a,t))return o[t]=1,a[t];if(n!==f&&w(n,t))return o[t]=2,n[t];if(w(s,t))return o[t]=3,s[t];if(i!==f&&w(i,t))return o[t]=4,i[t];Ic&&(o[t]=0)}}const c=uc[t];let d,u;return c?("$attrs"===t&&ys(e.attrs,0,""),c(e)):(d=r.__cssModules)&&(d=d[t])?d:i!==f&&w(i,t)?(o[t]=4,i[t]):(u=l.config.globalProperties,w(u,t)?u[t]:void 0)},set({_:e},t,i){const{data:a,setupState:n,ctx:s}=e;return pc(n,t)?(n[t]=i,!0):a!==f&&w(a,t)?(a[t]=i,!0):!w(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=i,!0))},has({_:{data:e,setupState:t,accessCache:i,ctx:a,appContext:n,props:s,type:o}},r){let l;return!!(i[r]||e!==f&&"$"!==r[0]&&w(e,r)||pc(t,r)||w(s,r)||w(a,r)||w(uc,r)||w(n.config.globalProperties,r)||(l=o.__cssModules)&&l[r])},defineProperty(e,t,i){return null!=i.get?e._.accessCache[t]=0:w(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},fc=y({},hc,{get(e,t){if(t!==Symbol.unscopables)return hc.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!J(t)});function gc(){return null}function mc(){return null}function _c(e){}function vc(e){}function bc(){return null}function yc(){}function xc(e,t){return null}function Sc(){return Cc().slots}function wc(){return Cc().attrs}function Cc(e){const t=_u();return t.setupContext||(t.setupContext=Ou(t))}function Ec(e){return C(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function kc(e,t){const i=Ec(e);for(const a in t){if(a.startsWith("__skip"))continue;let e=i[a];e?C(e)||A(e)?e=i[a]={type:e,default:t[a]}:e.default=t[a]:null===e&&(e=i[a]={default:t[a]}),e&&t[`__skip_${a}`]&&(e.skipFactory=!0)}return i}function Tc(e,t){return e&&t?C(e)&&C(t)?e.concat(t):y({},Ec(e),Ec(t)):e||t}function Ac(e,t){const i={};for(const a in e)t.includes(a)||Object.defineProperty(i,a,{enumerable:!0,get:()=>e[a]});return i}function Rc(e){const t=_u(),i=Eu;let a=e();xu(),i&&bu(!1);const n=()=>{yu(t),i&&bu(!0)},s=()=>{_u()!==t&&t.scope.off(),xu(),i&&bu(!1)};return O(a)&&(a=a.catch(e=>{throw n(),Promise.resolve().then(()=>Promise.resolve().then(s)),e})),[a,()=>{n(),Promise.resolve().then(s)}]}let Ic=!0;function Dc(e){const t=Nc(e),i=e.proxy,a=e.ctx;Ic=!1,t.beforeCreate&&Oc(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:r,provide:l,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:h,updated:f,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:x,render:S,renderTracked:w,renderTriggered:E,errorCaptured:k,serverPrefetch:T,expose:R,inheritAttrs:I,components:O,directives:M,filters:N}=t;if(c&&function(e,t){C(e)&&(e=Bc(e));for(const i in e){const a=e[i];let n;n=D(a)?"default"in a?Sr(a.from||i,a.default,!0):Sr(a.from||i):Sr(a),go(n)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>n.value,set:e=>n.value=e}):t[i]=n}}(c,a,null),o)for(const m in o){const e=o[m];A(e)&&(a[m]=e.bind(i))}if(n){const t=n.call(i,i);D(t)&&(e.data=to(t))}if(Ic=!0,s)for(const C in s){const e=s[C],t=A(e)?e.bind(i,i):A(e.get)?e.get.bind(i,i):m,n=!A(e)&&A(e.set)?e.set.bind(i):m,o=Lu({get:t,set:n});Object.defineProperty(a,C,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e})}if(r)for(const m in r)Mc(r[m],a,i,m);if(l){const e=A(l)?l.call(i):l;Reflect.ownKeys(e).forEach(t=>{xr(t,e[t])})}function L(e,t){C(t)?t.forEach(t=>e(t.bind(i))):t&&e(t.bind(i))}if(d&&Oc(d,e,"c"),L(Hl,u),L(zl,p),L(Yl,h),L(Gl,f),L(Nl,g),L(Ll,_),L(Zl,k),L(Xl,w),L(Kl,E),L(Wl,b),L(jl,x),L(ql,T),C(R))if(R.length){const t=e.exposed||(e.exposed={});R.forEach(e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===m&&(e.render=S),null!=I&&(e.inheritAttrs=I),O&&(e.components=O),M&&(e.directives=M),T&&rl(e)}function Oc(e,t,i){jo(C(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,i)}function Mc(e,t,i,a){let n=a.includes(".")?Or(i,a):()=>i[a];if(R(e)){const i=t[e];A(i)&&Rr(n,i)}else if(A(e))Rr(n,e.bind(i));else if(D(e))if(C(e))e.forEach(e=>Mc(e,t,i,a));else{const a=A(e.handler)?e.handler.bind(i):t[e.handler];A(a)&&Rr(n,a,e)}}function Nc(e){const t=e.type,{mixins:i,extends:a}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,r=s.get(t);let l;return r?l=r:n.length||i||a?(l={},n.length&&n.forEach(e=>Lc(l,e,o,!0)),Lc(l,t,o)):l=t,D(t)&&s.set(t,l),l}function Lc(e,t,i,a=!1){const{mixins:n,extends:s}=t;s&&Lc(e,s,i,!0),n&&n.forEach(t=>Lc(e,t,i,!0));for(const o in t)if(a&&"expose"===o);else{const a=Pc[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Pc={data:Fc,props:Uc,emits:Uc,methods:Vc,computed:Vc,beforeCreate:$c,created:$c,beforeMount:$c,mounted:$c,beforeUpdate:$c,updated:$c,beforeDestroy:$c,beforeUnmount:$c,destroyed:$c,unmounted:$c,activated:$c,deactivated:$c,errorCaptured:$c,serverPrefetch:$c,components:Vc,directives:Vc,watch:function(e,t){if(!e)return t;if(!t)return e;const i=y(Object.create(null),e);for(const a in t)i[a]=$c(e[a],t[a]);return i},provide:Fc,inject:function(e,t){return Vc(Bc(e),Bc(t))}};function Fc(e,t){return t?e?function(){return y(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function Bc(e){if(C(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function $c(e,t){return e?[...new Set([].concat(e,t))]:t}function Vc(e,t){return e?y(Object.create(null),e,t):t}function Uc(e,t){return e?C(e)&&C(t)?[...new Set([...e,...t])]:y(Object.create(null),Ec(e),Ec(null!=t?t:{})):t}function Hc(){return{app:null,config:{isNativeTag:_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zc=0;function Yc(e,t){return function(i,a=null){A(i)||(i=y({},i)),null==a||D(a)||(a=null);const n=Hc(),s=new WeakSet,o=[];let r=!1;const l=n.app={_uid:zc++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:Vu,get config(){return n.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&A(e.install)?(s.add(e),e.install(l,...t)):A(e)&&(s.add(e),e(l,...t))),l),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),l),component:(e,t)=>t?(n.components[e]=t,l):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,l):n.directives[e],mount(s,o,c){if(!r){const d=l._ceVNode||iu(i,a);return d.appContext=n,!0===c?c="svg":!1===c&&(c=void 0),o&&t?t(d,s):e(d,s,c),r=!0,l._container=s,s.__vue_app__=l,Mu(d.component)}},onUnmount(e){o.push(e)},unmount(){r&&(jo(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(n.provides[e]=t,l),runWithContext(e){const t=Gc;Gc=l;try{return e()}finally{Gc=t}}};return l}}let Gc=null;function Wc(e,t,i=f){const a=_u(),n=U(t),s=z(t),o=jc(e,n),r=ko((o,r)=>{let l,c,d=f;return Ar(()=>{const t=e[n];W(l,t)&&(l=t,r())}),{get:()=>(o(),i.get?i.get(l):l),set(e){const o=i.set?i.set(e):e;if(!(W(o,l)||d!==f&&W(e,d)))return;const u=a.vnode.props;u&&(t in u||n in u||s in u)&&(`onUpdate:${t}`in u||`onUpdate:${n}`in u||`onUpdate:${s}`in u)||(l=e,r()),a.emit(`update:${t}`,o),W(e,o)&&W(e,d)&&!W(o,c)&&r(),d=e,c=o}}});return r[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?o||f:r,done:!1}:{done:!0}}},r}const jc=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${z(t)}Modifiers`];function qc(e,t,...i){if(e.isUnmounted)return;const a=e.vnode.props||f;let n=i;const s=t.startsWith("update:"),o=s&&jc(a,t.slice(7));let r;o&&(o.trim&&(n=i.map(e=>R(e)?e.trim():e)),o.number&&(n=i.map(K)));let l=a[r=G(t)]||a[r=G(U(t))];!l&&s&&(l=a[r=G(z(t))]),l&&jo(l,e,6,n);const c=a[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,jo(c,e,6,n)}}const Kc=new WeakMap;function Xc(e,t,i=!1){const a=i?Kc:t.emitsCache,n=a.get(e);if(void 0!==n)return n;const s=e.emits;let o={},r=!1;if(!A(e)){const a=e=>{const i=Xc(e,t,!0);i&&(r=!0,y(o,i))};!i&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return s||r?(C(s)?s.forEach(e=>o[e]=null):y(o,s),D(e)&&a.set(e,o),o):(D(e)&&a.set(e,null),null)}function Zc(e,t){return!(!e||!v(t))&&(t=t.slice(2).replace(/Once$/,""),w(e,t[0].toLowerCase()+t.slice(1))||w(e,z(t))||w(e,t))}function Qc(e){const{type:t,vnode:i,proxy:a,withProxy:n,propsOptions:[s],slots:o,attrs:r,emit:l,render:c,renderCache:d,props:u,data:p,setupState:h,ctx:f,inheritAttrs:g}=e,m=fr(e);let _,v;try{if(4&i.shapeFlag){const e=n||a,t=e;_=lu(c.call(t,e,d,u,h,p,f)),v=r}else{const e=t;0,_=lu(e.length>1?e(u,{attrs:r,slots:o,emit:l}):e(u,null)),v=t.props?r:Jc(r)}}catch(x){Ud.length=0,qo(x,e,1),_=iu($d)}let y=_;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(s&&e.some(b)&&(v=ed(v,s)),y=nu(y,v,!1,!0))}return i.dirs&&(y=nu(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(i.dirs):i.dirs),i.transition&&al(y,i.transition),_=y,fr(m),_}const Jc=e=>{let t;for(const i in e)("class"===i||"style"===i||v(i))&&((t||(t={}))[i]=e[i]);return t},ed=(e,t)=>{const i={};for(const a in e)b(a)&&a.slice(9)in t||(i[a]=e[a]);return i};function td(e,t,i){const a=Object.keys(t);if(a.length!==Object.keys(e).length)return!0;for(let n=0;n<a.length;n++){const s=a[n];if(id(t,e,s)&&!Zc(i,s))return!0}return!1}function id(e,t,i){const a=e[i],n=t[i];return"style"===i&&D(a)&&D(n)?!he(a,n):a!==n}function ad({vnode:e,parent:t,suspense:i},a){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=a,e=i),i!==e)break;(e=t.vnode).el=a,t=t.parent}i&&i.activeBranch===e&&(i.vnode.el=a)}const nd={},sd=()=>Object.create(nd),od=e=>Object.getPrototypeOf(e)===nd;function rd(e,t,i,a){const[n,s]=e.propsOptions;let o,r=!1;if(t)for(let l in t){if(F(l))continue;const c=t[l];let d;n&&w(n,d=U(l))?s&&s.includes(d)?(o||(o={}))[d]=c:i[d]=c:Zc(e.emitsOptions,l)||l in a&&c===a[l]||(a[l]=c,r=!0)}if(s){const t=uo(i),a=o||f;for(let o=0;o<s.length;o++){const r=s[o];i[r]=ld(n,t,r,a[r],e,!w(a,r))}}return r}function ld(e,t,i,a,n,s){const o=e[i];if(null!=o){const e=w(o,"default");if(e&&void 0===a){const e=o.default;if(o.type!==Function&&!o.skipFactory&&A(e)){const{propsDefaults:s}=n;if(i in s)a=s[i];else{const o=yu(n);a=s[i]=e.call(null,t),o()}}else a=e;n.ce&&n.ce._setProp(i,a)}o[0]&&(s&&!e?a=!1:!o[1]||""!==a&&a!==z(i)||(a=!0))}return a}const cd=new WeakMap;function dd(e,t,i=!1){const a=i?cd:t.propsCache,n=a.get(e);if(n)return n;const s=e.props,o={},r=[];let l=!1;if(!A(e)){const a=e=>{l=!0;const[i,a]=dd(e,t,!0);y(o,i),a&&r.push(...a)};!i&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!l)return D(e)&&a.set(e,g),g;if(C(s))for(let d=0;d<s.length;d++){const e=U(s[d]);ud(e)&&(o[e]=f)}else if(s)for(const d in s){const e=U(d);if(ud(e)){const t=s[d],i=o[e]=C(t)||A(t)?{type:t}:y({},t),a=i.type;let n=!1,l=!0;if(C(a))for(let e=0;e<a.length;++e){const t=a[e],i=A(t)&&t.name;if("Boolean"===i){n=!0;break}"String"===i&&(l=!1)}else n=A(a)&&"Boolean"===a.name;i[0]=n,i[1]=l,(n||w(i,"default"))&&r.push(e)}}const c=[o,r];return D(e)&&a.set(e,c),c}function ud(e){return"$"!==e[0]&&!F(e)}const pd=e=>"_"===e||"_ctx"===e||"$stable"===e,hd=e=>C(e)?e.map(lu):[lu(e)],fd=(e,t,i)=>{if(t._n)return t;const a=vr((...e)=>hd(t(...e)),i);return a._c=!1,a},gd=(e,t,i)=>{const a=e._ctx;for(const n in e){if(pd(n))continue;const i=e[n];if(A(i))t[n]=fd(0,i,a);else if(null!=i){const e=hd(i);t[n]=()=>e}}},md=(e,t)=>{const i=hd(t);e.slots.default=()=>i},_d=(e,t,i)=>{for(const a in t)!i&&pd(a)||(e[a]=t[a])},vd=Ld;function bd(e){return xd(e)}function yd(e){return xd(e,_l)}function xd(e,t){Q().__VUE__=!0;const{insert:i,remove:a,patchProp:n,createElement:s,createText:o,createComment:r,setText:l,setElementText:c,parentNode:d,nextSibling:u,setScopeId:p=m,insertStaticContent:h}=e,_=(e,t,i,a=null,n=null,s=null,o=void 0,r=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Zd(e,t)&&(a=q(e),V(e,n,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case Bd:v(e,t,i,a);break;case $d:b(e,t,i,a);break;case Vd:null==e&&y(t,i,a,o);break;case Fd:R(e,t,i,a,n,s,o,r,l);break;default:1&u?x(e,t,i,a,n,s,o,r,l):6&u?I(e,t,i,a,n,s,o,r,l):(64&u||128&u)&&c.process(e,t,i,a,n,s,o,r,l,Z)}null!=d&&n?ul(d,e&&e.ref,s,t||e,!t):null==d&&e&&null!=e.ref&&ul(e.ref,null,s,e,!0)},v=(e,t,a,n)=>{if(null==e)i(t.el=o(t.children),a,n);else{const i=t.el=e.el;t.children!==e.children&&l(i,t.children)}},b=(e,t,a,n)=>{null==e?i(t.el=r(t.children||""),a,n):t.el=e.el},y=(e,t,i,a)=>{[e.el,e.anchor]=h(e.children,t,i,a,e.el,e.anchor)},x=(e,t,i,a,n,s,o,r,l)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)S(t,i,a,n,s,o,r,l);else{const i=e.el&&e.el._isVueCE?e.el:null;try{i&&i._beginPatch(),k(e,t,n,s,o,r,l)}finally{i&&i._endPatch()}}},S=(e,t,a,o,r,l,d,u)=>{let p,h;const{props:f,shapeFlag:g,transition:m,dirs:_}=e;if(p=e.el=s(e.type,l,f&&f.is,f),8&g?c(p,e.children):16&g&&E(e.children,p,null,o,r,Sd(e,l),d,u),_&&yr(e,null,o,"created"),C(p,e,e.scopeId,d,o),f){for(const e in f)"value"===e||F(e)||n(p,e,null,f[e],l,o);"value"in f&&n(p,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&pu(h,o,e)}_&&yr(e,null,o,"beforeMount");const v=Cd(r,m);v&&m.beforeEnter(p),i(p,t,a),((h=f&&f.onVnodeMounted)||v||_)&&vd(()=>{try{h&&pu(h,o,e),v&&m.enter(p),_&&yr(e,null,o,"mounted")}finally{}},r)},C=(e,t,i,a,n)=>{if(i&&p(e,i),a)for(let s=0;s<a.length;s++)p(e,a[s]);if(n){let i=n.subTree;if(t===i||Rd(i.type)&&(i.ssContent===t||i.ssFallback===t)){const t=n.vnode;C(e,t,t.scopeId,t.slotScopeIds,n.parent)}}},E=(e,t,i,a,n,s,o,r,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=r?cu(e[c]):lu(e[c]);_(null,l,t,i,a,n,s,o,r)}},k=(e,t,i,a,s,o,r)=>{const l=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const h=e.props||f,g=t.props||f;let m;if(i&&wd(i,!1),(m=g.onVnodeBeforeUpdate)&&pu(m,i,t,e),p&&yr(t,e,i,"beforeUpdate"),i&&wd(i,!0),(h.innerHTML&&null==g.innerHTML||h.textContent&&null==g.textContent)&&c(l,""),u?T(e.dynamicChildren,u,l,i,a,Sd(t,s),o):r||L(e,t,l,null,i,a,Sd(t,s),o,!1),d>0){if(16&d)A(l,h,g,i,s);else if(2&d&&h.class!==g.class&&n(l,"class",null,g.class,s),4&d&&n(l,"style",h.style,g.style,s),8&d){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const a=e[t],o=h[a],r=g[a];r===o&&"value"!==a||n(l,a,o,r,s,i)}}1&d&&e.children!==t.children&&c(l,t.children)}else r||null!=u||A(l,h,g,i,s);((m=g.onVnodeUpdated)||p)&&vd(()=>{m&&pu(m,i,t,e),p&&yr(t,e,i,"updated")},a)},T=(e,t,i,a,n,s,o)=>{for(let r=0;r<t.length;r++){const l=e[r],c=t[r],u=l.el&&(l.type===Fd||!Zd(l,c)||198&l.shapeFlag)?d(l.el):i;_(l,c,u,null,a,n,s,o,!0)}},A=(e,t,i,a,s)=>{if(t!==i){if(t!==f)for(const o in t)F(o)||o in i||n(e,o,t[o],null,s,a);for(const o in i){if(F(o))continue;const r=i[o],l=t[o];r!==l&&"value"!==o&&n(e,o,l,r,s,a)}"value"in i&&n(e,"value",t.value,i.value,s)}},R=(e,t,a,n,s,r,l,c,d)=>{const u=t.el=e?e.el:o(""),p=t.anchor=e?e.anchor:o("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(i(u,a,n),i(p,a,n),E(t.children||[],a,p,s,r,l,c,d)):h>0&&64&h&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(T(e.dynamicChildren,f,a,s,r,l,c),(null!=t.key||s&&t===s.subTree)&&Ed(e,t,!0)):L(e,t,a,p,s,r,l,c,d)},I=(e,t,i,a,n,s,o,r,l)=>{t.slotScopeIds=r,null==e?512&t.shapeFlag?n.ctx.activate(t,i,a,o,l):D(t,i,a,n,s,o,l):O(e,t,l)},D=(e,t,i,a,n,s,o)=>{const r=e.component=gu(e,a,n);if(Il(e)&&(r.ctx.renderer=Z),ku(r,!1,o),r.asyncDep){if(n&&n.registerDep(r,M,o),!e.el){const a=r.subTree=iu($d);b(null,a,t,i),e.placeholder=a.el}}else M(r,e,t,i,n,s,o)},O=(e,t,i)=>{const a=t.component=e.component;if(function(e,t,i){const{props:a,children:n,component:s}=e,{props:o,children:r,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(i&&l>=0))return!(!n&&!r||r&&r.$stable)||a!==o&&(a?!o||td(a,o,c):!!o);if(1024&l)return!0;if(16&l)return a?td(a,o,c):!!o;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const i=e[t];if(id(o,a,i)&&!Zc(c,i))return!0}}return!1}(e,t,i)){if(a.asyncDep&&!a.asyncResolved)return void N(a,t,i);a.next=t,a.update()}else t.el=e.el,a.vnode=t},M=(e,t,i,a,n,s,o)=>{e.scope.on();const r=e.effect=new Wn(()=>{if(e.isMounted){let{next:t,bu:i,u:a,parent:r,vnode:c}=e;{const i=kd(e);if(i)return t&&(t.el=c.el,N(e,t,o)),void i.asyncDep.then(()=>{vd(()=>{e.isUnmounted||l()},n)})}let u,p=t;wd(e,!1),t?(t.el=c.el,N(e,t,o)):t=c,i&&j(i),(u=t.props&&t.props.onVnodeBeforeUpdate)&&pu(u,r,t,c),wd(e,!0);const h=Qc(e),f=e.subTree;e.subTree=h,_(f,h,d(f.el),q(f),e,n,s),t.el=h.el,null===p&&ad(e,h.el),a&&vd(a,n),(u=t.props&&t.props.onVnodeUpdated)&&vd(()=>pu(u,r,t,c),n)}else{let o;const{el:r,props:l}=t,{bm:c,m:d,parent:u,root:p,type:h}=e,f=Tl(t);if(wd(e,!1),c&&j(c),!f&&(o=l&&l.onVnodeBeforeMount)&&pu(o,u,t),wd(e,!0),r&&ee){const t=()=>{e.subTree=Qc(e),ee(r,e.subTree,e,n,null)};f&&h.__asyncHydrate?h.__asyncHydrate(r,e,t):t()}else{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(h,e.parent?e.parent.type:void 0);const o=e.subTree=Qc(e);_(null,o,i,a,e,n,s),t.el=o.el}if(d&&vd(d,n),!f&&(o=l&&l.onVnodeMounted)){const e=t;vd(()=>pu(o,u,e),n)}(256&t.shapeFlag||u&&Tl(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&vd(e.a,n),e.isMounted=!0,t=i=a=null}});e.scope.off();const l=e.update=r.run.bind(r),c=e.job=r.runIfDirty.bind(r);c.i=e,c.id=e.uid,r.scheduler=()=>ar(c),wd(e,!0),l()},N=(e,t,i)=>{t.component=e;const a=e.vnode.props;e.vnode=t,e.next=null,function(e,t,i,a){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,r=uo(n),[l]=e.propsOptions;let c=!1;if(!(a||o>0)||16&o){let a;rd(e,t,n,s)&&(c=!0);for(const s in r)t&&(w(t,s)||(a=z(s))!==s&&w(t,a))||(l?!i||void 0===i[s]&&void 0===i[a]||(n[s]=ld(l,r,s,void 0,e,!0)):delete n[s]);if(s!==r)for(const e in s)t&&w(t,e)||(delete s[e],c=!0)}else if(8&o){const i=e.vnode.dynamicProps;for(let a=0;a<i.length;a++){let o=i[a];if(Zc(e.emitsOptions,o))continue;const d=t[o];if(l)if(w(s,o))d!==s[o]&&(s[o]=d,c=!0);else{const t=U(o);n[t]=ld(l,r,t,d,e,!1)}else d!==s[o]&&(s[o]=d,c=!0)}}c&&xs(e.attrs,"set","")}(e,t.props,a,i),((e,t,i)=>{const{vnode:a,slots:n}=e;let s=!0,o=f;if(32&a.shapeFlag){const e=t._;e?i&&1===e?s=!1:_d(n,t,i):(s=!t.$stable,gd(t,n)),o=t}else t&&(md(e,t),o={default:1});if(s)for(const r in n)pd(r)||null!=o[r]||delete n[r]})(e,t.children,i),cs(),or(e),ds()},L=(e,t,i,a,n,s,o,r,l=!1)=>{const d=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void B(d,p,i,a,n,s,o,r,l);if(256&h)return void P(d,p,i,a,n,s,o,r,l)}8&f?(16&u&&W(d,n,s),p!==d&&c(i,p)):16&u?16&f?B(d,p,i,a,n,s,o,r,l):W(d,n,s,!0):(8&u&&c(i,""),16&f&&E(p,i,a,n,s,o,r,l))},P=(e,t,i,a,n,s,o,r,l)=>{t=t||g;const c=(e=e||g).length,d=t.length,u=Math.min(c,d);let p;for(p=0;p<u;p++){const a=t[p]=l?cu(t[p]):lu(t[p]);_(e[p],a,i,null,n,s,o,r,l)}c>d?W(e,n,s,!0,!1,u):E(t,i,a,n,s,o,r,l,u)},B=(e,t,i,a,n,s,o,r,l)=>{let c=0;const d=t.length;let u=e.length-1,p=d-1;for(;c<=u&&c<=p;){const a=e[c],d=t[c]=l?cu(t[c]):lu(t[c]);if(!Zd(a,d))break;_(a,d,i,null,n,s,o,r,l),c++}for(;c<=u&&c<=p;){const a=e[u],c=t[p]=l?cu(t[p]):lu(t[p]);if(!Zd(a,c))break;_(a,c,i,null,n,s,o,r,l),u--,p--}if(c>u){if(c<=p){const e=p+1,u=e<d?t[e].el:a;for(;c<=p;)_(null,t[c]=l?cu(t[c]):lu(t[c]),i,u,n,s,o,r,l),c++}}else if(c>p)for(;c<=u;)V(e[c],n,s,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=p;c++){const e=t[c]=l?cu(t[c]):lu(t[c]);null!=e.key&&m.set(e.key,c)}let v,b=0;const y=p-f+1;let x=!1,S=0;const w=new Array(y);for(c=0;c<y;c++)w[c]=0;for(c=h;c<=u;c++){const a=e[c];if(b>=y){V(a,n,s,!0);continue}let d;if(null!=a.key)d=m.get(a.key);else for(v=f;v<=p;v++)if(0===w[v-f]&&Zd(a,t[v])){d=v;break}void 0===d?V(a,n,s,!0):(w[d-f]=c+1,d>=S?S=d:x=!0,_(a,t[d],i,null,n,s,o,r,l),b++)}const C=x?function(e){const t=e.slice(),i=[0];let a,n,s,o,r;const l=e.length;for(a=0;a<l;a++){const l=e[a];if(0!==l){if(n=i[i.length-1],e[n]<l){t[a]=n,i.push(a);continue}for(s=0,o=i.length-1;s<o;)r=s+o>>1,e[i[r]]<l?s=r+1:o=r;l<e[i[s]]&&(s>0&&(t[a]=i[s-1]),i[s]=a)}}s=i.length,o=i[s-1];for(;s-- >0;)i[s]=o,o=t[o];return i}(w):g;for(v=C.length-1,c=y-1;c>=0;c--){const e=f+c,u=t[e],p=t[e+1],h=e+1<d?p.el||Ad(p):a;0===w[c]?_(null,u,i,h,n,s,o,r,l):x&&(v<0||c!==C[v]?$(u,i,h,2):v--)}}},$=(e,t,n,s,o=null)=>{const{el:r,type:l,transition:c,children:d,shapeFlag:p}=e;if(6&p)return void $(e.component.subTree,t,n,s);if(128&p)return void e.suspense.move(t,n,s);if(64&p)return void l.move(e,t,n,Z);if(l===Fd){i(r,t,n);for(let e=0;e<d.length;e++)$(d[e],t,n,s);return void i(e.anchor,t,n)}if(l===Vd)return void(({el:e,anchor:t},a,n)=>{let s;for(;e&&e!==t;)s=u(e),i(e,a,n),e=s;i(t,a,n)})(e,t,n);if(2!==s&&1&p&&c)if(0===s)c.persisted&&!r[Gr]?i(r,t,n):(c.beforeEnter(r),i(r,t,n),vd(()=>c.enter(r),o));else{const{leave:s,delayLeave:o,afterLeave:l}=c,d=()=>{e.ctx.isUnmounted?a(r):i(r,t,n)},u=()=>{const e=r._isLeaving||!!r[Gr];r._isLeaving&&r[Gr](!0),c.persisted&&!e?d():s(r,()=>{d(),l&&l()})};o?o(r,d,u):u()}else i(r,t,n)},V=(e,t,i,a=!1,n=!1)=>{const{type:s,props:o,ref:r,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p,cacheIndex:h,memo:f}=e;if(-2===u&&(n=!1),null!=r&&(cs(),ul(r,null,i,e,!0),ds()),null!=h&&(t.renderCache[h]=void 0),256&d)return void t.ctx.deactivate(e);const g=1&d&&p,m=!Tl(e);let _;if(m&&(_=o&&o.onVnodeBeforeUnmount)&&pu(_,t,e),6&d)G(e.component,i,a);else{if(128&d)return void e.suspense.unmount(i,a);g&&yr(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,i,Z,a):c&&!c.hasOnce&&(s!==Fd||u>0&&64&u)?W(c,t,i,!1,!0):(s===Fd&&384&u||!n&&16&d)&&W(l,t,i),a&&H(e)}const v=null!=f&&null==h;(m&&(_=o&&o.onVnodeUnmounted)||g||v)&&vd(()=>{_&&pu(_,t,e),g&&yr(e,null,t,"unmounted"),v&&(e.el=null)},i)},H=e=>{const{type:t,el:i,anchor:n,transition:s}=e;if(t===Fd)return void Y(i,n);if(t===Vd)return void(({el:e,anchor:t})=>{let i;for(;e&&e!==t;)i=u(e),a(e),e=i;a(t)})(e);const o=()=>{a(i),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:a}=s,n=()=>t(i,o);a?a(e.el,o,n):n()}else o()},Y=(e,t)=>{let i;for(;e!==t;)i=u(e),a(e),e=i;a(t)},G=(e,t,i)=>{const{bum:a,scope:n,job:s,subTree:o,um:r,m:l,a:c}=e;Td(l),Td(c),a&&j(a),n.stop(),s&&(s.flags|=8,V(o,e,t,i)),r&&vd(r,t),vd(()=>{e.isUnmounted=!0},t)},W=(e,t,i,a=!1,n=!1,s=0)=>{for(let o=s;o<e.length;o++)V(e[o],t,i,a,n)},q=e=>{if(6&e.shapeFlag)return q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=u(e.anchor||e.el),i=t&&t[Nr];return i?u(i):t};let K=!1;const X=(e,t,i)=>{let a;null==e?t._vnode&&(V(t._vnode,null,null,!0),a=t._vnode.component):_(t._vnode||null,e,t,null,null,null,i),t._vnode=e,K||(K=!0,or(a),rr(),K=!1)},Z={p:_,um:V,m:$,r:H,mt:D,mc:E,pc:L,pbc:T,n:q,o:e};let J,ee;return t&&([J,ee]=t(Z)),{render:X,hydrate:J,createApp:Yc(X,J)}}function Sd({type:e,props:t},i){return"svg"===i&&"foreignObject"===e||"mathml"===i&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function wd({effect:e,job:t},i){i?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Cd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ed(e,t,i=!1){const a=e.children,n=t.children;if(C(a)&&C(n))for(let s=0;s<a.length;s++){const e=a[s];let t=n[s];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=n[s]=cu(n[s]),t.el=e.el),i||-2===t.patchFlag||Ed(e,t)),t.type===Bd&&(-1===t.patchFlag&&(t=n[s]=cu(t)),t.el=e.el),t.type!==$d||t.el||(t.el=e.el)}}function kd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kd(t)}function Td(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ad(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ad(t.subTree):null}const Rd=e=>e.__isSuspense;let Id=0;const Dd={name:"Suspense",__isSuspense:!0,process(e,t,i,a,n,s,o,r,l,c){if(null==e)!function(e,t,i,a,n,s,o,r,l){const{p:c,o:{createElement:d}}=l,u=d("div"),p=e.suspense=Md(e,n,a,t,u,i,s,o,r,l);c(null,p.pendingBranch=e.ssContent,u,null,a,p,s,o),p.deps>0?(Od(e,"onPending"),Od(e,"onFallback"),c(null,e.ssFallback,t,i,a,null,s,o),Pd(p,e.ssFallback)):p.resolve(!1,!0)}(t,i,a,n,s,o,r,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,i,a,n,s,o,r,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:_}=u;if(g)u.pendingBranch=p,Zd(g,p)?(l(g,p,u.hiddenContainer,null,n,u,s,o,r),u.deps<=0?u.resolve():m&&(_||(l(f,h,i,a,n,null,s,o,r),Pd(u,h)))):(u.pendingId=Id++,_?(u.isHydrating=!1,u.activeBranch=g):c(g,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),m?(l(null,p,u.hiddenContainer,null,n,u,s,o,r),u.deps<=0?u.resolve():(l(f,h,i,a,n,null,s,o,r),Pd(u,h))):f&&Zd(f,p)?(l(f,p,i,a,n,u,s,o,r),u.resolve(!0)):(l(null,p,u.hiddenContainer,null,n,u,s,o,r),u.deps<=0&&u.resolve()));else if(f&&Zd(f,p))l(f,p,i,a,n,u,s,o,r),Pd(u,p);else if(Od(t,"onPending"),u.pendingBranch=p,512&p.shapeFlag?u.pendingId=p.component.suspenseId:u.pendingId=Id++,l(null,p,u.hiddenContainer,null,n,u,s,o,r),u.deps<=0)u.resolve();else{const{timeout:e,pendingId:t}=u;e>0?setTimeout(()=>{u.pendingId===t&&u.fallback(h)},e):0===e&&u.fallback(h)}}(e,t,i,a,n,o,r,l,c)}},hydrate:function(e,t,i,a,n,s,o,r,l){const c=t.suspense=Md(t,a,i,e.parentNode,document.createElement("div"),null,n,s,o,r,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);0===c.deps&&c.resolve(!1,!0);return d},normalize:function(e){const{shapeFlag:t,children:i}=e,a=32&t;e.ssContent=Nd(a?i.default:i),e.ssFallback=a?Nd(i.fallback):iu($d)}};function Od(e,t){const i=e.props&&e.props[t];A(i)&&i()}function Md(e,t,i,a,n,s,o,r,l,c,d=!1){const{p:u,m:p,um:h,n:f,o:{parentNode:g,remove:m}}=c;let _;const v=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const b=e.props?X(e.props.timeout):void 0,y=s,x={vnode:e,parent:t,parentComponent:i,namespace:o,container:a,hiddenContainer:n,deps:0,pendingId:Id++,timeout:"number"==typeof b?b:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,i=!1){const{vnode:a,activeBranch:n,pendingBranch:o,pendingId:r,effects:l,parentComponent:c,container:d,isInFallback:u}=x;let m=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){m=n&&o.transition&&"out-in"===o.transition.mode;let e=!1;m&&(n.transition.afterLeave=()=>{r===x.pendingId&&(p(o,d,s!==y||e?s:f(n),0),sr(l),u&&a.ssFallback&&(a.ssFallback.el=null))}),n&&!x.isFallbackMountPending&&(g(n.el)===d&&(s=f(n),e=!0),h(n,c,x,!0),!m&&u&&a.ssFallback&&vd(()=>a.ssFallback.el=null,x)),m||p(o,d,s,0)}x.isFallbackMountPending=!1,Pd(x,o),x.pendingBranch=null,x.isInFallback=!1;let b=x.parent,S=!1;for(;b;){if(b.pendingBranch){b.effects.push(...l),S=!0;break}b=b.parent}S||m||sr(l),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,0!==t.deps||i||t.resolve()),Od(a,"onResolve")},fallback(e){if(!x.pendingBranch)return;const{vnode:t,activeBranch:i,parentComponent:a,container:n,namespace:s}=x;Od(t,"onFallback");const o=f(i),c=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(u(null,e,n,o,a,null,s,r,l),Pd(x,e))},d=e.transition&&"out-in"===e.transition.mode;d&&(x.isFallbackMountPending=!0,i.transition.afterLeave=c),x.isInFallback=!0,h(i,a,null,!0),d||c()},move(e,t,i){x.activeBranch&&p(x.activeBranch,e,t,i),x.container=e},next:()=>x.activeBranch&&f(x.activeBranch),registerDep(e,t,i){const a=!!x.pendingBranch;a&&x.deps++;const n=e.vnode.el;e.asyncDep.catch(t=>{qo(t,e,0)}).then(s=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;xu(),e.asyncResolved=!0;const{vnode:r}=e;Tu(e,s,!1),n&&(r.el=n);const l=!n&&e.subTree.el;t(e,r,g(n||e.subTree.el),n?null:f(e.subTree),x,o,i),l&&(r.placeholder=null,m(l)),ad(e,r.el),a&&0===--x.deps&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,i,e,t),x.pendingBranch&&h(x.pendingBranch,i,e,t)}};return x}function Nd(e){let t;if(A(e)){const i=Gd&&e._c;i&&(e._d=!1,zd()),e=e(),i&&(e._d=!0,t=Hd,Yd())}if(C(e)){const t=function(e){let t;for(let i=0;i<e.length;i++){const a=e[i];if(!Xd(a))return;if(a.type!==$d||"v-if"===a.children){if(t)return;t=a}}return t}(e);e=t}return e=lu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ld(e,t){t&&t.pendingBranch?C(e)?t.effects.push(...e):t.effects.push(e):sr(e)}function Pd(e,t){e.activeBranch=t;const{vnode:i,parentComponent:a}=e;let n=t.el;for(;!n&&t.component;)n=(t=t.component.subTree).el;i.el=n,a&&a.subTree===i&&(a.vnode.el=n,ad(a,n))}const Fd=Symbol.for("v-fgt"),Bd=Symbol.for("v-txt"),$d=Symbol.for("v-cmt"),Vd=Symbol.for("v-stc"),Ud=[];let Hd=null;function zd(e=!1){Ud.push(Hd=e?null:[])}function Yd(){Ud.pop(),Hd=Ud[Ud.length-1]||null}let Gd=1;function Wd(e,t=!1){Gd+=e,e<0&&Hd&&t&&(Hd.hasOnce=!0)}function jd(e){return e.dynamicChildren=Gd>0?Hd||g:null,Yd(),Gd>0&&Hd&&Hd.push(e),e}function qd(e,t,i,a,n,s){return jd(tu(e,t,i,a,n,s,!0))}function Kd(e,t,i,a,n){return jd(iu(e,t,i,a,n,!0))}function Xd(e){return!!e&&!0===e.__v_isVNode}function Zd(e,t){return e.type===t.type&&e.key===t.key}function Qd(e){}const Jd=({key:e})=>null!=e?e:null,eu=({ref:e,ref_key:t,ref_for:i})=>("number"==typeof e&&(e=""+e),null!=e?R(e)||go(e)||A(e)?{i:pr,r:e,k:t,f:!!i}:e:null);function tu(e,t=null,i=null,a=0,n=null,s=(e===Fd?0:1),o=!1,r=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jd(t),ref:t&&eu(t),scopeId:hr,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:a,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:pr};return r?(du(l,i),128&s&&e.normalize(l)):i&&(l.shapeFlag|=R(i)?8:16),Gd>0&&!o&&Hd&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Hd.push(l),l}const iu=function(e,t=null,i=null,a=0,n=null,s=!1){e&&e!==ec||(e=$d);if(Xd(e)){const a=nu(e,t,!0);return i&&du(a,i),Gd>0&&!s&&Hd&&(6&a.shapeFlag?Hd[Hd.indexOf(e)]=a:Hd.push(a)),a.patchFlag=-2,a}o=e,A(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=au(t);let{class:e,style:i}=t;e&&!R(e)&&(t.class=se(e)),D(i)&&(co(i)&&!C(i)&&(i=y({},i)),t.style=ee(i))}const r=R(e)?1:Rd(e)?128:Lr(e)?64:D(e)?4:A(e)?2:0;return tu(e,t,i,a,n,r,s,!0)};function au(e){return e?co(e)||od(e)?y({},e):e:null}function nu(e,t,i=!1,a=!1){const{props:n,ref:s,patchFlag:o,children:r,transition:l}=e,c=t?uu(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Jd(c),ref:t&&t.ref?i&&s?C(s)?s.concat(eu(t)):[s,eu(t)]:eu(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fd?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nu(e.ssContent),ssFallback:e.ssFallback&&nu(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&a&&al(d,l.clone(d)),d}function su(e=" ",t=0){return iu(Bd,null,e,t)}function ou(e,t){const i=iu(Vd,null,e);return i.staticCount=t,i}function ru(e="",t=!1){return t?(zd(),Kd($d,null,e)):iu($d,null,e)}function lu(e){return null==e||"boolean"==typeof e?iu($d):C(e)?iu(Fd,null,e.slice()):Xd(e)?cu(e):iu(Bd,null,String(e))}function cu(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:nu(e)}function du(e,t){let i=0;const{shapeFlag:a}=e;if(null==t)t=null;else if(C(t))i=16;else if("object"==typeof t){if(65&a){const i=t.default;return void(i&&(i._c&&(i._d=!1),du(e,i()),i._c&&(i._d=!0)))}{i=32;const a=t._;a||od(t)?3===a&&pr&&(1===pr.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=pr}}else A(t)?(t={default:t,_ctx:pr},i=32):(t=String(t),64&a?(i=16,t=[su(t)]):i=8);e.children=t,e.shapeFlag|=i}function uu(...e){const t={};for(let i=0;i<e.length;i++){const a=e[i];for(const e in a)if("class"===e)t.class!==a.class&&(t.class=se([t.class,a.class]));else if("style"===e)t.style=ee([t.style,a.style]);else if(v(e)){const i=t[e],n=a[e];!n||i===n||C(i)&&i.includes(n)?null!=n||null!=i||b(e)||(t[e]=n):t[e]=i?[].concat(i,n):n}else""!==e&&(t[e]=a[e])}return t}function pu(e,t,i,a=null){jo(e,t,7,[i,a])}const hu=Hc();let fu=0;function gu(e,t,i){const a=e.type,n=(t?t.appContext:e.appContext)||hu,s={uid:fu++,vnode:e,type:a,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Un(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dd(a,n),emitsOptions:Xc(a,n),emit:null,emitted:null,propsDefaults:f,inheritAttrs:a.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,setupContext:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=qc.bind(null,s),e.ce&&e.ce(s),s}let mu=null;const _u=()=>mu||pr;let vu,bu;{const e=Q(),t=(t,i)=>{let a;return(a=e[t])||(a=e[t]=[]),a.push(i),e=>{a.length>1?a.forEach(t=>t(e)):a[0](e)}};vu=t("__VUE_INSTANCE_SETTERS__",e=>mu=e),bu=t("__VUE_SSR_SETTERS__",e=>Eu=e)}const yu=e=>{const t=mu;return vu(e),e.scope.on(),()=>{e.scope.off(),vu(t)}},xu=()=>{mu&&mu.scope.off(),vu(null)};function Su(e){return 4&e.vnode.shapeFlag}let wu,Cu,Eu=!1;function ku(e,t=!1,i=!1){t&&bu(t);const{props:a,children:n}=e.vnode,s=Su(e);!function(e,t,i,a=!1){const n={},s=sd();e.propsDefaults=Object.create(null),rd(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=a?n:io(n):e.type.props?e.props=n:e.props=s,e.attrs=s}(e,a,s,t),((e,t,i)=>{const a=e.slots=sd();if(32&e.vnode.shapeFlag){const e=t._;e?(_d(a,t,i),i&&q(a,"_",e,!0)):gd(t,a)}else t&&md(e,t)})(e,n,i||t);const o=s?function(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hc);const{setup:a}=i;if(a){cs();const i=e.setupContext=a.length>1?Ou(e):null,n=yu(e),s=Wo(a,e,0,[e.props,i]),o=O(s);if(ds(),n(),!o&&!e.sp||Tl(e)||rl(e),o){if(s.then(xu,xu),t)return s.then(i=>{Tu(e,i,t)}).catch(t=>{qo(t,e,0)});e.asyncDep=s}else Tu(e,s,t)}else Iu(e,t)}(e,t):void 0;return t&&bu(!1),o}function Tu(e,t,i){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:D(t)&&(e.setupState=Co(t)),Iu(e,i)}function Au(e){wu=e,Cu=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,fc))}}const Ru=()=>!wu;function Iu(e,t,i){const a=e.type;if(!e.render){if(!t&&wu&&!a.render){const t=a.template||Nc(e).template;if(t){const{isCustomElement:i,compilerOptions:n}=e.appContext.config,{delimiters:s,compilerOptions:o}=a,r=y(y({isCustomElement:i,delimiters:s},n),o);a.render=wu(t,r)}}e.render=a.render||m,Cu&&Cu(e)}{const t=yu(e);cs();try{Dc(e)}finally{ds(),t()}}}const Du={get:(e,t)=>(ys(e,0,""),e[t])};function Ou(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Du),slots:e.slots,emit:e.emit,expose:t}}function Mu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Co(po(e.exposed)),{get:(t,i)=>i in t?t[i]:i in uc?uc[i](e):void 0,has:(e,t)=>t in e||t in uc})):e.proxy}function Nu(e,t=!0){return A(e)?e.displayName||e.name:e.name||t&&e.__name}const Lu=(e,t)=>Mo(e,0,Eu);function Pu(e,t,i){try{Wd(-1);const a=arguments.length;return 2===a?D(t)&&!C(t)?Xd(t)?iu(e,null,[t]):iu(e,t):iu(e,null,t):(a>3?i=Array.prototype.slice.call(arguments,2):3===a&&Xd(i)&&(i=[i]),iu(e,t,i))}finally{Wd(1)}}function Fu(){}function Bu(e,t,i,a){const n=i[a];if(n&&$u(n,e))return n;const s=t();return s.memo=e.slice(),s.cacheIndex=a,i[a]=s}function $u(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let a=0;a<i.length;a++)if(W(i[a],t[a]))return!1;return Gd>0&&Hd&&Hd.push(e),!0}const Vu="3.5.35",Uu=m,Hu=Go,zu=dr,Yu=function e(t,i){var a,n;if(dr=t,dr)dr.enabled=!0,ur.forEach(({event:e,args:t})=>dr.emit(e,...t)),ur=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(n=null==(a=window.navigator)?void 0:a.userAgent)?void 0:n.includes("jsdom"))){(i.__VUE_DEVTOOLS_HOOK_REPLAY__=i.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,i)}),setTimeout(()=>{dr||(i.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ur=[])},3e3)}else ur=[]},Gu={createComponentInstance:gu,setupComponent:ku,renderComponentRoot:Qc,setCurrentRenderingInstance:fr,isVNode:Xd,normalizeVNode:lu,getComponentPublicInstance:Mu,ensureValidVNode:lc,pushWarningContext:function(e){Ho.push(e)},popWarningContext:function(){Ho.pop()}};
19 /**
20 * @vue/runtime-dom v3.5.35
21 * (c) 2018-present Yuxi (Evan) You and Vue contributors
22 * @license MIT
23 **/
24 let Wu;const ju="undefined"!=typeof window&&window.trustedTypes;if(ju)try{Wu=ju.createPolicy("vue",{createHTML:e=>e})}catch(NO){}const qu=Wu?e=>Wu.createHTML(e):e=>e,Ku="undefined"!=typeof document?document:null,Xu=Ku&&Ku.createElement("template"),Zu={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,a)=>{const n="svg"===t?Ku.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ku.createElementNS("http://www.w3.org/1998/Math/MathML",e):i?Ku.createElement(e,{is:i}):Ku.createElement(e);return"select"===e&&a&&null!=a.multiple&&n.setAttribute("multiple",a.multiple),n},createText:e=>Ku.createTextNode(e),createComment:e=>Ku.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ku.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,a,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),n!==s&&(n=n.nextSibling););else{Xu.innerHTML=qu("svg"===a?`<svg>${e}</svg>`:"mathml"===a?`<math>${e}</math>`:e);const n=Xu.content;if("svg"===a||"mathml"===a){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}t.insertBefore(n,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},Qu="transition",Ju="animation",ep=Symbol("_vtc"),tp={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},ip=y({},Kr,tp),ap=e=>(e.displayName="Transition",e.props=ip,e),np=ap((e,{slots:t})=>Pu(Qr,rp(e),t)),sp=(e,t=[])=>{C(e)?e.forEach(e=>e(...t)):e&&e(...t)},op=e=>!!e&&(C(e)?e.some(e=>e.length>1):e.length>1);function rp(e){const t={};for(const y in e)y in tp||(t[y]=e[y]);if(!1===e.css)return t;const{name:i="v",type:a,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:r=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=r,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:p=`${i}-leave-active`,leaveToClass:h=`${i}-leave-to`}=e,f=function(e){if(null==e)return null;if(D(e))return[lp(e.enter),lp(e.leave)];{const t=lp(e);return[t,t]}}(n),g=f&&f[0],m=f&&f[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:w=_,onAppear:C=v,onAppearCancelled:E=b}=t,k=(e,t,i,a)=>{e._enterCancelled=a,dp(e,t?d:r),dp(e,t?c:o),i&&i()},T=(e,t)=>{e._isLeaving=!1,dp(e,u),dp(e,h),dp(e,p),t&&t()},A=e=>(t,i)=>{const n=e?C:v,o=()=>k(t,e,i);sp(n,[t,o]),up(()=>{dp(t,e?l:s),cp(t,e?d:r),op(n)||hp(t,a,g,o)})};return y(t,{onBeforeEnter(e){sp(_,[e]),cp(e,s),cp(e,o)},onBeforeAppear(e){sp(w,[e]),cp(e,l),cp(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){e._isLeaving=!0;const i=()=>T(e,t);cp(e,u),e._enterCancelled?(cp(e,p),_p(e)):(_p(e),cp(e,p)),up(()=>{e._isLeaving&&(dp(e,u),cp(e,h),op(x)||hp(e,a,m,i))}),sp(x,[e,i])},onEnterCancelled(e){k(e,!1,void 0,!0),sp(b,[e])},onAppearCancelled(e){k(e,!0,void 0,!0),sp(E,[e])},onLeaveCancelled(e){T(e),sp(S,[e])}})}function lp(e){return X(e)}function cp(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[ep]||(e[ep]=new Set)).add(t)}function dp(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const i=e[ep];i&&(i.delete(t),i.size||(e[ep]=void 0))}function up(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pp=0;function hp(e,t,i,a){const n=e._endId=++pp,s=()=>{n===e._endId&&a()};if(null!=i)return setTimeout(s,i);const{type:o,timeout:r,propCount:l}=fp(e,t);if(!o)return a();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,p),s()},p=t=>{t.target===e&&++d>=l&&u()};setTimeout(()=>{d<l&&u()},r+1),e.addEventListener(c,p)}function fp(e,t){const i=window.getComputedStyle(e),a=e=>(i[e]||"").split(", "),n=a(`${Qu}Delay`),s=a(`${Qu}Duration`),o=gp(n,s),r=a(`${Ju}Delay`),l=a(`${Ju}Duration`),c=gp(r,l);let d=null,u=0,p=0;t===Qu?o>0&&(d=Qu,u=o,p=s.length):t===Ju?c>0&&(d=Ju,u=c,p=l.length):(u=Math.max(o,c),d=u>0?o>c?Qu:Ju:null,p=d?d===Qu?s.length:l.length:0);return{type:d,timeout:u,propCount:p,hasTransform:d===Qu&&/\b(?:transform|all)(?:,|$)/.test(a(`${Qu}Property`).toString())}}function gp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,i)=>mp(t)+mp(e[i])))}function mp(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function _p(e){return(e?e.ownerDocument:document).body.offsetHeight}const vp=Symbol("_vod"),bp=Symbol("_vsh"),yp={name:"show",beforeMount(e,{value:t},{transition:i}){e[vp]="none"===e.style.display?"":e.style.display,i&&t?i.beforeEnter(e):xp(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:a}){!t!=!i&&(a?t?(a.beforeEnter(e),xp(e,!0),a.enter(e)):a.leave(e,()=>{xp(e,!1)}):xp(e,t))},beforeUnmount(e,{value:t}){xp(e,t)}};function xp(e,t){e.style.display=t?e[vp]:"none",e[bp]=!t}const Sp=Symbol("");function Cp(e){const t=_u();if(!t)return;const i=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>kp(e,i))},a=()=>{const a=e(t.proxy);t.ce?kp(t.ce,a):Ep(t.subTree,a),i(a)};Yl(()=>{sr(a)}),zl(()=>{Rr(a,m,{flush:"post"});const e=new MutationObserver(a);e.observe(t.subTree.el.parentNode,{childList:!0}),jl(()=>e.disconnect())})}function Ep(e,t){if(128&e.shapeFlag){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{Ep(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)kp(e.el,t);else if(e.type===Fd)e.children.forEach(e=>Ep(e,t));else if(e.type===Vd){let{el:i,anchor:a}=e;for(;i&&(kp(i,t),i!==a);)i=i.nextSibling}}function kp(e,t){if(1===e.nodeType){const i=e.style;let a="";for(const e in t){const n=be(t[e]);i.setProperty(`--${e}`,n),a+=`--${e}: ${n};`}i[Sp]=a}}const Tp=/(?:^|;)\s*display\s*:/;const Ap=/\s*!important$/;function Rp(e,t,i){if(C(i))i.forEach(i=>Rp(e,t,i));else if(null==i&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const a=function(e,t){const i=Dp[t];if(i)return i;let a=U(t);if("filter"!==a&&a in e)return Dp[t]=a;a=Y(a);for(let n=0;n<Ip.length;n++){const i=Ip[n]+a;if(i in e)return Dp[t]=i}return t}(e,t);Ap.test(i)?e.setProperty(z(a),i.replace(Ap,""),"important"):e[a]=i}}const Ip=["Webkit","Moz","ms"],Dp={};function Op(e,t,i,a){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&R(a)&&i===a}const Mp="http://www.w3.org/1999/xlink";function Np(e,t,i,a,n,s=ue(t)){a&&t.startsWith("xlink:")?null==i?e.removeAttributeNS(Mp,t.slice(6,t.length)):e.setAttributeNS(Mp,t,i):null==i||s&&!pe(i)?e.removeAttribute(t):e.setAttribute(t,s?"":I(i)?String(i):i)}function Lp(e,t,i,a,n){if("innerHTML"===t||"textContent"===t)return void(null!=i&&(e[t]="innerHTML"===t?qu(i):i));const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const a="OPTION"===s?e.getAttribute("value")||"":e.value,n=null==i?"checkbox"===e.type?"on":"":String(i);return a===n&&"_value"in e||(e.value=n),null==i&&e.removeAttribute(t),void(e._value=i)}let o=!1;if(""===i||null==i){const a=typeof e[t];"boolean"===a?i=pe(i):null==i&&"string"===a?(i="",o=!0):"number"===a&&(i=0,o=!0)}try{e[t]=i}catch(NO){}o&&e.removeAttribute(n||t)}function Pp(e,t,i,a){e.addEventListener(t,i,a)}const Fp=Symbol("_vei");function Bp(e,t,i,a,n=null){const s=e[Fp]||(e[Fp]={}),o=s[t];if(a&&o)o.value=a;else{const[i,r]=function(e){let t;if($p.test(e)){let i;for(t={};i=e.match($p);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}const i=":"===e[2]?e.slice(3):z(e.slice(2));return[i,t]}(t);if(a){const o=s[t]=function(e,t){const i=e=>{if(e._vts){if(e._vts<=i.attached)return}else e._vts=Date.now();const a=i.value;if(C(a)){const i=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0};const n=a.slice(),s=[e];for(let a=0;a<n.length&&!e._stopped;a++){const e=n[a];e&&jo(e,t,5,s)}}else jo(a,t,5,[e])};return i.value=e,i.attached=Hp(),i}(a,n);Pp(e,i,o,r)}else o&&(!function(e,t,i,a){e.removeEventListener(t,i,a)}(e,i,o,r),s[t]=void 0)}}const $p=/(?:Once|Passive|Capture)$/;let Vp=0;const Up=Promise.resolve(),Hp=()=>Vp||(Up.then(()=>Vp=0),Vp=Date.now());const zp=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yp=(e,t,i,a,n,s)=>{const o="svg"===n;"class"===t?function(e,t,i){const a=e[ep];a&&(t=(t?[t,...a]:[...a]).join(" ")),null==t?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}(e,a,o):"style"===t?function(e,t,i){const a=e.style,n=R(i);let s=!1;if(i&&!n){if(t)if(R(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==i[t]&&Rp(a,t,"")}else for(const e in t)null==i[e]&&Rp(a,e,"");for(const n in i){"display"===n&&(s=!0);const o=i[n];null!=o?Op(e,n,!R(t)&&t?t[n]:void 0,o)||Rp(a,n,o):Rp(a,n,"")}}else if(n){if(t!==i){const e=a[Sp];e&&(i+=";"+e),a.cssText=i,s=Tp.test(i)}}else t&&e.removeAttribute("style");vp in e&&(e[vp]=s?a.display:"",e[bp]&&(a.display="none"))}(e,i,a):v(t)?b(t)||Bp(e,t,0,a,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,i,a){if(a)return"innerHTML"===t||"textContent"===t||!!(t in e&&zp(t)&&A(i));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(zp(t)&&R(i))return!1;return t in e}(e,t,a,o))?(Lp(e,t,a),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Np(e,t,a,o,0,"value"!==t)):e._isVueCE&&(function(e,t){const i=e._def.props;if(!i)return!1;const a=U(t);return Array.isArray(i)?i.some(e=>U(e)===a):Object.keys(i).some(e=>U(e)===a)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!R(a)))?Lp(e,U(t),a,0,t):("true-value"===t?e._trueValue=a:"false-value"===t&&(e._falseValue=a),Np(e,t,a,o))};const Gp={};function Wp(e,t,i){let a=sl(e,t);L(a)&&(a=y({},a,t));class n extends Kp{constructor(e){super(a,e,i)}}return n.def=a,n}const jp=(e,t)=>Wp(e,t,$h),qp="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kp extends qp{constructor(e,t={},i=Bh){super(),this._def=e,this._props=t,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&i!==Bh?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(y({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof Kp){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:a}=e;let n;if(i&&!C(i))for(const s in i){const e=i[s];(e===Number||e&&e.type===Number)&&(s in this._props&&(this._props[s]=X(this._props[s])),(n||(n=Object.create(null)))[U(s)]=!0)}this._numberProps=n,this._resolveProps(e),this.shadowRoot&&this._applyStyles(a),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const i in t)w(this,i)||Object.defineProperty(this,i,{get:()=>xo(t[i])})}_resolveProps(e){const{props:t}=e,i=C(t)?t:Object.keys(t||{});for(const a of Object.keys(this))"_"!==a[0]&&i.includes(a)&&this._setProp(a,this[a]);for(const a of i.map(U))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(e){this._setProp(a,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let i=t?this.getAttribute(e):Gp;const a=U(e);t&&this._numberProps&&this._numberProps[a]&&(i=X(i)),this._setProp(a,i,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,i=!0,a=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Gp?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),a&&this._instance&&this._update(),i)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),!0===t?this.setAttribute(z(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(z(e),t+""):t||this.removeAttribute(z(e)),i&&i.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Ph(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=iu(this._def,y(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,L(t[0])?y({detail:t},t[0]):{detail:t}))};e.emit=(e,...i)=>{t(e,i),z(e)!==e&&t(z(e),i)},this._setParent()}),t}_applyStyles(e,t,i){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const a=this._nonce,n=this.shadowRoot,s=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(n);let o=null;for(let r=e.length-1;r>=0;r--){const l=document.createElement("style");a&&l.setAttribute("nonce",a),l.textContent=e[r],n.insertBefore(l,o||s),o=l,0===r&&(i||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes[t];if(!(i instanceof HTMLStyleElement))return i}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const i=1===t.nodeType&&t.getAttribute("slot")||"default";(e[i]||(e[i]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let i=0;i<e.length;i++){const a=e[i],n=a.getAttribute("name")||"default",s=this._slots[n],o=a.parentNode;if(s)for(const e of s){if(t&&1===e.nodeType){const i=t+"-s",a=document.createTreeWalker(e,1);let n;for(e.setAttribute(i,"");n=a.nextNode();)n.setAttribute(i,"")}o.insertBefore(e,a)}else for(;a.firstChild;)o.insertBefore(a.firstChild,a);o.removeChild(a)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const i of e){const e=i.querySelectorAll("slot");for(let i=0;i<e.length;i++)t.add(e[i])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}function Xp(e){const t=_u(),i=t&&t.ce;return i||null}function Zp(){const e=Xp();return e&&e.shadowRoot}function Qp(e="$style"){{const t=_u();if(!t)return f;const i=t.type.__cssModules;if(!i)return f;const a=i[e];return a||f}}const Jp=new WeakMap,eh=new WeakMap,th=Symbol("_moveCb"),ih=Symbol("_enterCb"),ah=e=>(delete e.props.mode,e),nh=ah({name:"TransitionGroup",props:y({},ip,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=_u(),a=jr();let n,s;return Gl(()=>{if(!n.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,i){const a=e.cloneNode(),n=e[ep];n&&n.forEach(e=>{e.split(/\s+/).forEach(e=>e&&a.classList.remove(e))});i.split(/\s+/).forEach(e=>e&&a.classList.add(e)),a.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(a);const{hasTransform:o}=fp(a);return s.removeChild(a),o}(n[0].el,i.vnode.el,t))return void(n=[]);n.forEach(oh),n.forEach(rh);const a=n.filter(lh);_p(i.vnode.el),a.forEach(e=>{const i=e.el,a=i.style;cp(i,t),a.transform=a.webkitTransform=a.transitionDuration="";const n=i[th]=e=>{e&&e.target!==i||e&&!e.propertyName.endsWith("transform")||(i.removeEventListener("transitionend",n),i[th]=null,dp(i,t))};i.addEventListener("transitionend",n)}),n=[]}),()=>{const o=uo(e),r=rp(o);let l=o.tag||Fd;if(n=[],s)for(let e=0;e<s.length;e++){const t=s[e];t.el&&t.el instanceof Element&&(n.push(t),al(t,el(t,r,a,i)),Jp.set(t,ch(t.el)))}s=t.default?nl(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&al(t,el(t,r,a,i))}return iu(l,null,s)}}}),sh=nh;function oh(e){const t=e.el;t[th]&&t[th](),t[ih]&&t[ih]()}function rh(e){eh.set(e,ch(e.el))}function lh(e){const t=Jp.get(e),i=eh.get(e),a=t.left-i.left,n=t.top-i.top;if(a||n){const t=e.el,i=t.style,s=t.getBoundingClientRect();let o=1,r=1;return t.offsetWidth&&(o=s.width/t.offsetWidth),t.offsetHeight&&(r=s.height/t.offsetHeight),Number.isFinite(o)&&0!==o||(o=1),Number.isFinite(r)&&0!==r||(r=1),Math.abs(o-1)<.01&&(o=1),Math.abs(r-1)<.01&&(r=1),i.transform=i.webkitTransform=`translate(${a/o}px,${n/r}px)`,i.transitionDuration="0s",e}}function ch(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const dh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return C(t)?e=>j(t,e):t};function uh(e){e.target.composing=!0}function ph(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hh=Symbol("_assign");function fh(e,t,i){return t&&(e=e.trim()),i&&(e=K(e)),e}const gh={created(e,{modifiers:{lazy:t,trim:i,number:a}},n){e[hh]=dh(n);const s=a||n.props&&"number"===n.props.type;Pp(e,t?"change":"input",t=>{t.target.composing||e[hh](fh(e.value,i,s))}),(i||s)&&Pp(e,"change",()=>{e.value=fh(e.value,i,s)}),t||(Pp(e,"compositionstart",uh),Pp(e,"compositionend",ph),Pp(e,"change",ph))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:a,trim:n,number:s}},o){if(e[hh]=dh(o),e.composing)return;const r=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:K(e.value))===r)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(a&&t===i)return;if(n&&e.value.trim()===r)return}e.value=r}},mh={deep:!0,created(e,t,i){e[hh]=dh(i),Pp(e,"change",()=>{const t=e._modelValue,i=xh(e),a=e.checked,n=e[hh];if(C(t)){const e=fe(t,i),s=-1!==e;if(a&&!s)n(t.concat(i));else if(!a&&s){const i=[...t];i.splice(e,1),n(i)}}else if(k(t)){const e=new Set(t);a?e.add(i):e.delete(i),n(e)}else n(Sh(e,a))})},mounted:_h,beforeUpdate(e,t,i){e[hh]=dh(i),_h(e,t,i)}};function _h(e,{value:t,oldValue:i},a){let n;if(e._modelValue=t,C(t))n=fe(t,a.props.value)>-1;else if(k(t))n=t.has(a.props.value);else{if(t===i)return;n=he(t,Sh(e,!0))}e.checked!==n&&(e.checked=n)}const vh={created(e,{value:t},i){e.checked=he(t,i.props.value),e[hh]=dh(i),Pp(e,"change",()=>{e[hh](xh(e))})},beforeUpdate(e,{value:t,oldValue:i},a){e[hh]=dh(a),t!==i&&(e.checked=he(t,a.props.value))}},bh={deep:!0,created(e,{value:t,modifiers:{number:i}},a){const n=k(t);Pp(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>i?K(xh(e)):xh(e));e[hh](e.multiple?n?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[hh]=dh(a)},mounted(e,{value:t}){yh(e,t)},beforeUpdate(e,t,i){e[hh]=dh(i)},updated(e,{value:t}){e._assigning||yh(e,t)}};function yh(e,t){const i=e.multiple,a=C(t);if(!i||a||k(t)){for(let n=0,s=e.options.length;n<s;n++){const s=e.options[n],o=xh(s);if(i)if(a){const e=typeof o;s.selected="string"===e||"number"===e?t.some(e=>String(e)===String(o)):fe(t,o)>-1}else s.selected=t.has(o);else if(he(xh(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}i||-1===e.selectedIndex||(e.selectedIndex=-1)}}function xh(e){return"_value"in e?e._value:e.value}function Sh(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const wh={created(e,t,i){Eh(e,t,i,null,"created")},mounted(e,t,i){Eh(e,t,i,null,"mounted")},beforeUpdate(e,t,i,a){Eh(e,t,i,a,"beforeUpdate")},updated(e,t,i,a){Eh(e,t,i,a,"updated")}};function Ch(e,t){switch(e){case"SELECT":return bh;case"TEXTAREA":return gh;default:switch(t){case"checkbox":return mh;case"radio":return vh;default:return gh}}}function Eh(e,t,i,a,n){const s=Ch(e.tagName,i.props&&i.props.type)[n];s&&s(e,t,i,a)}const kh=["ctrl","shift","alt","meta"],Th={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>kh.some(i=>e[`${i}Key`]&&!t.includes(i))},Ah=(e,t)=>{if(!e)return e;const i=e._withMods||(e._withMods={}),a=t.join(".");return i[a]||(i[a]=(i,...a)=>{for(let e=0;e<t.length;e++){const a=Th[t[e]];if(a&&a(i,t))return}return e(i,...a)})},Rh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ih=(e,t)=>{const i=e._withKeys||(e._withKeys={}),a=t.join(".");return i[a]||(i[a]=i=>{if(!("key"in i))return;const a=z(i.key);return t.some(e=>e===a||Rh[e]===a)?e(i):void 0})},Dh=y({patchProp:Yp},Zu);let Oh,Mh=!1;function Nh(){return Oh||(Oh=bd(Dh))}function Lh(){return Oh=Mh?Oh:yd(Dh),Mh=!0,Oh}const Ph=(...e)=>{Nh().render(...e)},Fh=(...e)=>{Lh().hydrate(...e)},Bh=(...e)=>{const t=Nh().createApp(...e),{mount:i}=t;return t.mount=e=>{const a=Uh(e);if(!a)return;const n=t._component;A(n)||n.render||n.template||(n.template=a.innerHTML),1===a.nodeType&&(a.textContent="");const s=i(a,!1,Vh(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),s},t},$h=(...e)=>{const t=Lh().createApp(...e),{mount:i}=t;return t.mount=e=>{const t=Uh(e);if(t)return i(t,!0,Vh(t))},t};function Vh(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Uh(e){if(R(e)){return document.querySelector(e)}return e}let Hh=!1;const zh=()=>{Hh||(Hh=!0,gh.getSSRProps=({value:e})=>({value:e}),vh.getSSRProps=({value:e},t)=>{if(t.props&&he(t.props.value,e))return{checked:!0}},mh.getSSRProps=({value:e},t)=>{if(C(e)){if(t.props&&fe(e,t.props.value)>-1)return{checked:!0}}else if(k(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},wh.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const i=Ch(t.type.toUpperCase(),t.props&&t.props.type);return i.getSSRProps?i.getSSRProps(e,t):void 0},yp.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Yh=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Qr,BaseTransitionPropsValidators:Kr,Comment:$d,DeprecationTypes:null,EffectScope:Un,ErrorCodes:Yo,ErrorTypeStrings:Hu,Fragment:Fd,KeepAlive:Ol,ReactiveEffect:Wn,Static:Vd,Suspense:Dd,Teleport:Hr,Text:Bd,TrackOpTypes:No,Transition:np,TransitionGroup:sh,TriggerOpTypes:Lo,VueElement:Kp,assertNumber:zo,callWithAsyncErrorHandling:jo,callWithErrorHandling:Wo,camelize:U,capitalize:Y,cloneVNode:nu,compatUtils:null,computed:Lu,createApp:Bh,createBlock:Kd,createCommentVNode:ru,createElementBlock:qd,createElementVNode:tu,createHydrationRenderer:yd,createPropsRestProxy:Ac,createRenderer:bd,createSSRApp:$h,createSlots:oc,createStaticVNode:ou,createTextVNode:su,createVNode:iu,customRef:ko,defineAsyncComponent:Al,defineComponent:sl,defineCustomElement:Wp,defineEmits:mc,defineExpose:_c,defineModel:yc,defineOptions:vc,defineProps:gc,defineSSRCustomElement:jp,defineSlots:bc,devtools:zu,effect:ss,effectScope:Hn,getCurrentInstance:_u,getCurrentScope:zn,getCurrentWatcher:$o,getTransitionRawChildren:nl,guardReactiveProps:au,h:Pu,handleError:qo,hasInjectionContext:wr,hydrate:Fh,hydrateOnIdle:wl,hydrateOnInteraction:kl,hydrateOnMediaQuery:El,hydrateOnVisible:Cl,initCustomFormatter:Fu,initDirectivesForSSR:zh,inject:Sr,isMemoSame:$u,isProxy:co,isReactive:oo,isReadonly:ro,isRef:go,isRuntimeOnly:Ru,isShallow:lo,isVNode:Xd,markRaw:po,mergeDefaults:kc,mergeModels:Tc,mergeProps:uu,nextTick:ir,nodeOps:Zu,normalizeClass:se,normalizeProps:oe,normalizeStyle:ee,onActivated:Nl,onBeforeMount:Hl,onBeforeUnmount:Wl,onBeforeUpdate:Yl,onDeactivated:Ll,onErrorCaptured:Zl,onMounted:zl,onRenderTracked:Xl,onRenderTriggered:Kl,onScopeDispose:Yn,onServerPrefetch:ql,onUnmounted:jl,onUpdated:Gl,onWatcherCleanup:Vo,openBlock:zd,patchProp:Yp,popScopeId:mr,provide:xr,proxyRefs:Co,pushScopeId:gr,queuePostFlushCb:sr,reactive:to,readonly:ao,ref:mo,registerRuntimeCompiler:Au,render:Ph,renderList:sc,renderSlot:rc,resolveComponent:Jl,resolveDirective:ic,resolveDynamicComponent:tc,resolveFilter:null,resolveTransitionHooks:el,setBlockTracking:Wd,setDevtoolsHook:Yu,setTransitionHooks:al,shallowReactive:io,shallowReadonly:no,shallowRef:_o,ssrContextKey:Cr,ssrUtils:Gu,stop:os,toDisplayString:me,toHandlerKey:G,toHandlers:cc,toRaw:uo,toRef:Io,toRefs:To,toValue:So,transformVNodeArgs:Qd,triggerRef:yo,unref:xo,useAttrs:wc,useCssModule:Qp,useCssVars:Cp,useHost:Xp,useId:ol,useModel:Wc,useSSRContext:Er,useShadowRoot:Zp,useSlots:Sc,useTemplateRef:ll,useTransitionState:jr,vModelCheckbox:mh,vModelDynamic:wh,vModelRadio:vh,vModelSelect:bh,vModelText:gh,vShow:yp,version:Vu,warn:Uu,watch:Rr,watchEffect:kr,watchPostEffect:Tr,watchSyncEffect:Ar,withAsyncContext:Rc,withCtx:vr,withDefaults:xc,withDirectives:br,withKeys:Ih,withMemo:Bu,withModifiers:Ah,withScopeId:_r},Symbol.toStringTag,{value:"Module"})),Gh=Symbol(""),Wh=Symbol(""),jh=Symbol(""),qh=Symbol(""),Kh=Symbol(""),Xh=Symbol(""),Zh=Symbol(""),Qh=Symbol(""),Jh=Symbol(""),ef=Symbol(""),tf=Symbol(""),af=Symbol(""),nf=Symbol(""),sf=Symbol(""),of=Symbol(""),rf=Symbol(""),lf=Symbol(""),cf=Symbol(""),df=Symbol(""),uf=Symbol(""),pf=Symbol(""),hf=Symbol(""),ff=Symbol(""),gf=Symbol(""),mf=Symbol(""),_f=Symbol(""),vf=Symbol(""),bf=Symbol(""),yf=Symbol(""),xf=Symbol(""),Sf=Symbol(""),wf=Symbol(""),Cf=Symbol(""),Ef=Symbol(""),kf=Symbol(""),Tf=Symbol(""),Af=Symbol(""),Rf=Symbol(""),If=Symbol(""),Df={[Gh]:"Fragment",[Wh]:"Teleport",[jh]:"Suspense",[qh]:"KeepAlive",[Kh]:"BaseTransition",[Xh]:"openBlock",[Zh]:"createBlock",[Qh]:"createElementBlock",[Jh]:"createVNode",[ef]:"createElementVNode",[tf]:"createCommentVNode",[af]:"createTextVNode",[nf]:"createStaticVNode",[sf]:"resolveComponent",[of]:"resolveDynamicComponent",[rf]:"resolveDirective",[lf]:"resolveFilter",[cf]:"withDirectives",[df]:"renderList",[uf]:"renderSlot",[pf]:"createSlots",[hf]:"toDisplayString",[ff]:"mergeProps",[gf]:"normalizeClass",[mf]:"normalizeStyle",[_f]:"normalizeProps",[vf]:"guardReactiveProps",[bf]:"toHandlers",[yf]:"camelize",[xf]:"capitalize",[Sf]:"toHandlerKey",[wf]:"setBlockTracking",[Cf]:"pushScopeId",[Ef]:"popScopeId",[kf]:"withCtx",[Tf]:"unref",[Af]:"isRef",[Rf]:"withMemo",[If]:"isMemoSame"};const Of={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Mf(e,t,i,a,n,s,o,r=!1,l=!1,c=!1,d=Of){return e&&(r?(e.helper(Xh),e.helper(zf(e.inSSR,c))):e.helper(Hf(e.inSSR,c)),o&&e.helper(cf)),{type:13,tag:t,props:i,children:a,patchFlag:n,dynamicProps:s,directives:o,isBlock:r,disableTracking:l,isComponent:c,loc:d}}function Nf(e,t=Of){return{type:17,loc:t,elements:e}}function Lf(e,t=Of){return{type:15,loc:t,properties:e}}function Pf(e,t){return{type:16,loc:Of,key:R(e)?Ff(e,!0):e,value:t}}function Ff(e,t=!1,i=Of,a=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:a}}function Bf(e,t=Of){return{type:8,loc:t,children:e}}function $f(e,t=[],i=Of){return{type:14,loc:i,callee:e,arguments:t}}function Vf(e,t=void 0,i=!1,a=!1,n=Of){return{type:18,params:e,returns:t,newline:i,isSlot:a,loc:n}}function Uf(e,t,i,a=!0){return{type:19,test:e,consequent:t,alternate:i,newline:a,loc:Of}}function Hf(e,t){return e||t?Jh:ef}function zf(e,t){return e||t?Zh:Qh}function Yf(e,{helper:t,removeHelper:i,inSSR:a}){e.isBlock||(e.isBlock=!0,i(Hf(a,e.isComponent)),t(Xh),t(zf(a,e.isComponent)))}const Gf=new Uint8Array([123,123]),Wf=new Uint8Array([125,125]);function jf(e){return e>=97&&e<=122||e>=65&&e<=90}function qf(e){return 32===e||10===e||9===e||12===e||13===e}function Kf(e){return 47===e||62===e||qf(e)}function Xf(e){const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}const Zf={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function Qf(e,{compatConfig:t}){const i=t&&t[e];return"MODE"===e?i||3:i}function Jf(e,t){const i=Qf("MODE",t),a=Qf(e,t);return 3===i?!0===a:!1!==a}function eg(e,t,i,...a){return Jf(e,t)}function tg(e){throw e}function ig(e){}function ag(e,t,i,a){const n=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return n.code=e,n.loc=t,n}const ng=e=>4===e.type&&e.isStatic;function sg(e){switch(e){case"Teleport":case"teleport":return Wh;case"Suspense":case"suspense":return jh;case"KeepAlive":case"keep-alive":return qh;case"BaseTransition":case"base-transition":return Kh}}const og=/^$|^\d|[^\$\w\xA0-\uFFFF]/,rg=e=>!og.test(e),lg=/[A-Za-z_$\xA0-\uFFFF]/,cg=/[\.\?\w$\xA0-\uFFFF]/,dg=/\s+[.[]\s*|\s*[.[]\s+/g,ug=e=>4===e.type?e.content:e.loc.source,pg=e=>{const t=ug(e).trim().replace(dg,e=>e.trim());let i=0,a=[],n=0,s=0,o=null;for(let r=0;r<t.length;r++){const e=t.charAt(r);switch(i){case 0:if("["===e)a.push(i),i=1,n++;else if("("===e)a.push(i),i=2,s++;else if(!(0===r?lg:cg).test(e))return!1;break;case 1:"'"===e||'"'===e||"`"===e?(a.push(i),i=3,o=e):"["===e?n++:"]"===e&&(--n||(i=a.pop()));break;case 2:if("'"===e||'"'===e||"`"===e)a.push(i),i=3,o=e;else if("("===e)s++;else if(")"===e){if(r===t.length-1)return!1;--s||(i=a.pop())}break;case 3:e===o&&(i=a.pop(),o=null)}}return!n&&!s},hg=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,fg=e=>hg.test(ug(e));function gg(e,t,i=!1){for(let a=0;a<e.props.length;a++){const n=e.props[a];if(7===n.type&&(i||n.exp)&&(R(t)?n.name===t:t.test(n.name)))return n}}function mg(e,t,i=!1,a=!1){for(let n=0;n<e.props.length;n++){const s=e.props[n];if(6===s.type){if(i)continue;if(s.name===t&&(s.value||a))return s}else if("bind"===s.name&&(s.exp||a)&&_g(s.arg,t))return s}}function _g(e,t){return!(!e||!ng(e)||e.content!==t)}function vg(e){return 5===e.type||2===e.type}function bg(e){return 7===e.type&&"pre"===e.name}function yg(e){return 7===e.type&&"slot"===e.name}function xg(e){return 1===e.type&&3===e.tagType}function Sg(e){return 1===e.type&&2===e.tagType}const wg=new Set([_f,vf]);function Cg(e,t=[]){if(e&&!R(e)&&14===e.type){const i=e.callee;if(!R(i)&&wg.has(i))return Cg(e.arguments[0],t.concat(e))}return[e,t]}function Eg(e,t,i){let a,n,s=13===e.type?e.props:e.arguments[2],o=[];if(s&&!R(s)&&14===s.type){const e=Cg(s);s=e[0],o=e[1],n=o[o.length-1]}if(null==s||R(s))a=Lf([t]);else if(14===s.type){const e=s.arguments[0];R(e)||15!==e.type?s.callee===bf?a=$f(i.helper(ff),[Lf([t]),s]):s.arguments.unshift(Lf([t])):kg(t,e)||e.properties.unshift(t),!a&&(a=s)}else 15===s.type?(kg(t,s)||s.properties.unshift(t),a=s):(a=$f(i.helper(ff),[Lf([t]),s]),n&&n.callee===vf&&(n=o[o.length-2]));13===e.type?n?n.arguments[0]=a:e.props=a:n?n.arguments[0]=a:e.arguments[2]=a}function kg(e,t){let i=!1;if(4===e.key.type){const a=e.key.content;i=t.properties.some(e=>4===e.key.type&&e.key.content===a)}return i}function Tg(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,i)=>"-"===t?"_":e.charCodeAt(i).toString())}`}const Ag=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Rg(e){for(let t=0;t<e.length;t++)if(!qf(e.charCodeAt(t)))return!1;return!0}function Ig(e){return 2===e.type&&Rg(e.content)||12===e.type&&Ig(e.content)}function Dg(e){return 3===e.type||Ig(e)}const Og={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:_,isPreTag:_,isIgnoreNewlineTag:_,isCustomElement:_,onError:tg,onWarn:ig,comments:!1,prefixIdentifiers:!1};let Mg=Og,Ng=null,Lg="",Pg=null,Fg=null,Bg="",$g=-1,Vg=-1,Ug=0,Hg=!1,zg=null;const Yg=[],Gg=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Gf,this.delimiterClose=Wf,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Gf,this.delimiterClose=Wf}getPos(e){let t=1,i=e+1;const a=this.newlines.length;let n=-1;if(a>100){let t=-1,i=a;for(;t+1<i;){const a=t+i>>>1;this.newlines[a]<e?t=a:i=a}n=t}else for(let s=a-1;s>=0;s--)if(e>this.newlines[s]){n=s;break}return n>=0&&(t=n+2,i=e-this.newlines[n]),{column:i,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Kf(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||qf(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Zf.TitleEnd||this.currentSequence===Zf.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Zf.Cdata[this.sequenceIndex]?++this.sequenceIndex===Zf.Cdata.length&&(this.state=28,this.currentSequence=Zf.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Zf.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):jf(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Kf(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Kf(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Xf("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){qf(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=jf(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||qf(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):qf(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):qf(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Kf(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Kf(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Kf(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Kf(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Kf(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):qf(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):qf(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){qf(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Zf.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Zf.ScriptEnd[3]?this.startSpecial(Zf.ScriptEnd,4):e===Zf.StyleEnd[3]?this.startSpecial(Zf.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Zf.TitleEnd[3]?this.startSpecial(Zf.TitleEnd,4):e===Zf.TextareaEnd[3]?this.startSpecial(Zf.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&33!==this.state&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Zf.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Yg,{onerr:um,ontext(e,t){Xg(qg(e,t),e,t)},ontextentity(e,t,i){Xg(e,t,i)},oninterpolation(e,t){if(Hg)return Xg(qg(e,t),e,t);let i=e+Gg.delimiterOpen.length,a=t-Gg.delimiterClose.length;for(;qf(Lg.charCodeAt(i));)i++;for(;qf(Lg.charCodeAt(a-1));)a--;let n=qg(i,a);n.includes("&")&&(n=Mg.decodeEntities(n,!1)),sm({type:5,content:dm(n,!1,om(i,a)),loc:om(e,t)})},onopentagname(e,t){const i=qg(e,t);Pg={type:1,tag:i,ns:Mg.getNamespace(i,Yg[0],Mg.ns),tagType:0,props:[],children:[],loc:om(e-1,t),codegenNode:void 0}},onopentagend(e){Kg(e)},onclosetag(e,t){const i=qg(e,t);if(!Mg.isVoidTag(i)){let a=!1;for(let e=0;e<Yg.length;e++){if(Yg[e].tag.toLowerCase()===i.toLowerCase()){a=!0,e>0&&um(24,Yg[0].loc.start.offset);for(let i=0;i<=e;i++){Zg(Yg.shift(),t,i<e)}break}}a||um(23,Qg(e,60))}},onselfclosingtag(e){const t=Pg.tag;Pg.isSelfClosing=!0,Kg(e),Yg[0]&&Yg[0].tag===t&&Zg(Yg.shift(),e)},onattribname(e,t){Fg={type:6,name:qg(e,t),nameLoc:om(e,t),value:void 0,loc:om(e)}},ondirname(e,t){const i=qg(e,t),a="."===i||":"===i?"bind":"@"===i?"on":"#"===i?"slot":i.slice(2);if(Hg||""!==a||um(26,e),Hg||""===a)Fg={type:6,name:i,nameLoc:om(e,t),value:void 0,loc:om(e)};else if(Fg={type:7,name:a,rawName:i,exp:void 0,arg:void 0,modifiers:"."===i?[Ff("prop")]:[],loc:om(e)},"pre"===a){Hg=Gg.inVPre=!0,zg=Pg;const e=Pg.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=cm(e[t]))}},ondirarg(e,t){if(e===t)return;const i=qg(e,t);if(Hg&&!bg(Fg))Fg.name+=i,lm(Fg.nameLoc,t);else{const a="["!==i[0];Fg.arg=dm(a?i:i.slice(1,-1),a,om(e,t),a?3:0)}},ondirmodifier(e,t){const i=qg(e,t);if(Hg&&!bg(Fg))Fg.name+="."+i,lm(Fg.nameLoc,t);else if("slot"===Fg.name){const e=Fg.arg;e&&(e.content+="."+i,lm(e.loc,t))}else{const a=Ff(i,!0,om(e,t));Fg.modifiers.push(a)}},onattribdata(e,t){Bg+=qg(e,t),$g<0&&($g=e),Vg=t},onattribentity(e,t,i){Bg+=e,$g<0&&($g=t),Vg=i},onattribnameend(e){const t=Fg.loc.start.offset,i=qg(t,e);7===Fg.type&&(Fg.rawName=i),Pg.props.some(e=>(7===e.type?e.rawName:e.name)===i)&&um(2,t)},onattribend(e,t){if(Pg&&Fg){if(lm(Fg.loc,t),0!==e)if(Bg.includes("&")&&(Bg=Mg.decodeEntities(Bg,!0)),6===Fg.type)"class"===Fg.name&&(Bg=nm(Bg).trim()),1!==e||Bg||um(13,t),Fg.value={type:2,content:Bg,loc:1===e?om($g,Vg):om($g-1,Vg+1)},Gg.inSFCRoot&&"template"===Pg.tag&&"lang"===Fg.name&&Bg&&"html"!==Bg&&Gg.enterRCDATA(Xf("</template"),0);else{let e=0;Fg.exp=dm(Bg,!1,om($g,Vg),0,e),"for"===Fg.name&&(Fg.forParseResult=function(e){const t=e.loc,i=e.content,a=i.match(Ag);if(!a)return;const[,n,s]=a,o=(e,i,a=!1)=>{const n=t.start.offset+i;return dm(e,!1,om(n,n+e.length),0,a?1:0)},r={source:o(s.trim(),i.indexOf(s,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=n.trim().replace(jg,"").trim();const c=n.indexOf(l),d=l.match(Wg);if(d){l=l.replace(Wg,"").trim();const e=d[1].trim();let t;if(e&&(t=i.indexOf(e,c+l.length),r.key=o(e,t,!0)),d[2]){const a=d[2].trim();a&&(r.index=o(a,i.indexOf(a,r.key?t+e.length:c+l.length),!0))}}l&&(r.value=o(l,c,!0));return r}(Fg.exp));let t=-1;"bind"===Fg.name&&(t=Fg.modifiers.findIndex(e=>"sync"===e.content))>-1&&eg("COMPILER_V_BIND_SYNC",Mg,Fg.loc,Fg.arg.loc.source)&&(Fg.name="model",Fg.modifiers.splice(t,1))}7===Fg.type&&"pre"===Fg.name||Pg.props.push(Fg)}Bg="",$g=Vg=-1},oncomment(e,t){Mg.comments&&sm({type:3,content:qg(e,t),loc:om(e-4,t+3)})},onend(){const e=Lg.length;for(let t=0;t<Yg.length;t++)Zg(Yg[t],e-1),um(24,Yg[t].loc.start.offset)},oncdata(e,t){0!==Yg[0].ns?Xg(qg(e,t),e,t):um(1,e-9)},onprocessinginstruction(e){0===(Yg[0]?Yg[0].ns:Mg.ns)&&um(21,e-1)}}),Wg=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,jg=/^\(|\)$/g;function qg(e,t){return Lg.slice(e,t)}function Kg(e){Gg.inSFCRoot&&(Pg.innerLoc=om(e+1,e+1)),sm(Pg);const{tag:t,ns:i}=Pg;0===i&&Mg.isPreTag(t)&&Ug++,Mg.isVoidTag(t)?Zg(Pg,e):(Yg.unshift(Pg),1!==i&&2!==i||(Gg.inXML=!0)),Pg=null}function Xg(e,t,i){{const t=Yg[0]&&Yg[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Mg.decodeEntities(e,!1))}const a=Yg[0]||Ng,n=a.children[a.children.length-1];n&&2===n.type?(n.content+=e,lm(n.loc,i)):a.children.push({type:2,content:e,loc:om(t,i)})}function Zg(e,t,i=!1){lm(e.loc,i?Qg(t,60):function(e,t){let i=e;for(;Lg.charCodeAt(i)!==t&&i<Lg.length-1;)i++;return i}(t,62)+1),Gg.inSFCRoot&&(e.children.length?e.innerLoc.end=y({},e.children[e.children.length-1].loc.end):e.innerLoc.end=y({},e.innerLoc.start),e.innerLoc.source=qg(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:a,ns:n,children:s}=e;if(Hg||("slot"===a?e.tagType=2:em(e)?e.tagType=3:function({tag:e,props:t}){if(Mg.isCustomElement(e))return!1;if("component"===e||(i=e.charCodeAt(0),i>64&&i<91)||sg(e)||Mg.isBuiltInComponent&&Mg.isBuiltInComponent(e)||Mg.isNativeTag&&!Mg.isNativeTag(e))return!0;var i;for(let a=0;a<t.length;a++){const e=t[a];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;if(eg("COMPILER_IS_ON_ELEMENT",Mg,e.loc))return!0}}else if("bind"===e.name&&_g(e.arg,"is")&&eg("COMPILER_IS_ON_ELEMENT",Mg,e.loc))return!0}return!1}(e)&&(e.tagType=1)),Gg.inRCDATA||(e.children=im(s)),0===n&&Mg.isIgnoreNewlineTag(a)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===n&&Mg.isPreTag(a)&&Ug--,zg===e&&(Hg=Gg.inVPre=!1,zg=null),Gg.inXML&&0===(Yg[0]?Yg[0].ns:Mg.ns)&&(Gg.inXML=!1);{const t=e.props;if(!Gg.inSFCRoot&&Jf("COMPILER_NATIVE_TEMPLATE",Mg)&&"template"===e.tag&&!em(e)){const t=Yg[0]||Ng,i=t.children.indexOf(e);t.children.splice(i,1,...e.children)}const i=t.find(e=>6===e.type&&"inline-template"===e.name);i&&eg("COMPILER_INLINE_TEMPLATE",Mg,i.loc)&&e.children.length&&(i.value={type:2,content:qg(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:i.loc})}}function Qg(e,t){let i=e;for(;Lg.charCodeAt(i)!==t&&i>=0;)i--;return i}const Jg=new Set(["if","else","else-if","for","slot"]);function em({tag:e,props:t}){if("template"===e)for(let i=0;i<t.length;i++)if(7===t[i].type&&Jg.has(t[i].name))return!0;return!1}const tm=/\r\n/g;function im(e){const t="preserve"!==Mg.whitespace;let i=!1;for(let a=0;a<e.length;a++){const n=e[a];if(2===n.type)if(Ug)n.content=n.content.replace(tm,"\n");else if(Rg(n.content)){const s=e[a-1]&&e[a-1].type,o=e[a+1]&&e[a+1].type;!s||!o||t&&(3===s&&(3===o||1===o)||1===s&&(3===o||1===o&&am(n.content)))?(i=!0,e[a]=null):n.content=" "}else t&&(n.content=nm(n.content))}return i?e.filter(Boolean):e}function am(e){for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);if(10===i||13===i)return!0}return!1}function nm(e){let t="",i=!1;for(let a=0;a<e.length;a++)qf(e.charCodeAt(a))?i||(t+=" ",i=!0):(t+=e[a],i=!1);return t}function sm(e){(Yg[0]||Ng).children.push(e)}function om(e,t){return{start:Gg.getPos(e),end:null==t?t:Gg.getPos(t),source:null==t?t:qg(e,t)}}function rm(e){return om(e.start.offset,e.end.offset)}function lm(e,t){e.end=Gg.getPos(t),e.source=qg(e.start.offset,t)}function cm(e){const t={type:6,name:e.rawName,nameLoc:om(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const i=e.exp.loc;i.end.offset<e.loc.end.offset&&(i.start.offset--,i.start.column--,i.end.offset++,i.end.column++),t.value={type:2,content:e.exp.content,loc:i}}return t}function dm(e,t=!1,i,a=0,n=0){return Ff(e,t,i,a)}function um(e,t,i){Mg.onError(ag(e,om(t,t)))}function pm(e,t){if(Gg.reset(),Pg=null,Fg=null,Bg="",$g=-1,Vg=-1,Yg.length=0,Lg=e,Mg=y({},Og),t){let e;for(e in t)null!=t[e]&&(Mg[e]=t[e])}Gg.mode="html"===Mg.parseMode?1:"sfc"===Mg.parseMode?2:0,Gg.inXML=1===Mg.ns||2===Mg.ns;const i=t&&t.delimiters;i&&(Gg.delimiterOpen=Xf(i[0]),Gg.delimiterClose=Xf(i[1]));const a=Ng=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Of}}([],e);return Gg.parse(Lg),a.loc=om(0,e.length),a.children=im(a.children),Ng=null,a}function hm(e,t){gm(e,void 0,t,!!fm(e))}function fm(e){const t=e.children.filter(e=>3!==e.type);return 1!==t.length||1!==t[0].type||Sg(t[0])?null:t[0]}function gm(e,t,i,a=!1,n=!1){const{children:s}=e,o=[];for(let d=0;d<s.length;d++){const t=s[d];if(1===t.type&&0===t.tagType){const e=a?0:mm(t,i);if(e>0){if(e>=2){t.codegenNode.patchFlag=-1,o.push(t);continue}}else{const e=t.codegenNode;if(13===e.type){const a=e.patchFlag;if((void 0===a||512===a||1===a)&&bm(t,i)>=2){const a=ym(t);a&&(e.props=i.hoist(a))}e.dynamicProps&&(e.dynamicProps=i.hoist(e.dynamicProps))}}}else if(12===t.type){if((a?0:mm(t,i))>=2){14===t.codegenNode.type&&t.codegenNode.arguments.length>0&&t.codegenNode.arguments.push("-1"),o.push(t);continue}}if(1===t.type){const a=1===t.tagType;a&&i.scopes.vSlot++,gm(t,e,i,!1,n),a&&i.scopes.vSlot--}else if(11===t.type)gm(t,e,i,1===t.children.length,!0);else if(9===t.type)for(let a=0;a<t.branches.length;a++)gm(t.branches[a],e,i,1===t.branches[a].children.length,n)}let r=!1;if(o.length===s.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&C(e.codegenNode.children))e.codegenNode.children=l(Nf(e.codegenNode.children)),r=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!C(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=l(Nf(t.returns)),r=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!C(t.codegenNode.children)&&15===t.codegenNode.children.type){const i=gg(e,"slot",!0),a=i&&i.arg&&c(t.codegenNode,i.arg);a&&(a.returns=l(Nf(a.returns)),r=!0)}if(!r)for(const d of o)d.codegenNode=i.cache(d.codegenNode);function l(e){const t=i.cache(e);return t.needArraySpread=!0,t}function c(e,t){if(e.children&&!C(e.children)&&15===e.children.type){const i=e.children.properties.find(e=>e.key===t||e.key.content===t);return i&&i.value}}o.length&&i.transformHoist&&i.transformHoist(s,i,e)}function mm(e,t){const{constantCache:i}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const a=i.get(e);if(void 0!==a)return a;const n=e.codegenNode;if(13!==n.type)return 0;if(n.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===n.patchFlag){let a=3;const s=bm(e,t);if(0===s)return i.set(e,0),0;s<a&&(a=s);for(let n=0;n<e.children.length;n++){const s=mm(e.children[n],t);if(0===s)return i.set(e,0),0;s<a&&(a=s)}if(a>1)for(let n=0;n<e.props.length;n++){const s=e.props[n];if(7===s.type&&"bind"===s.name&&s.exp){const n=mm(s.exp,t);if(0===n)return i.set(e,0),0;n<a&&(a=n)}}if(n.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return i.set(e,0),0}t.removeHelper(Xh),t.removeHelper(zf(t.inSSR,n.isComponent)),n.isBlock=!1,t.helper(Hf(t.inSSR,n.isComponent))}return i.set(e,a),a}return i.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return mm(e.content,t);case 4:return e.constType;case 8:let s=3;for(let i=0;i<e.children.length;i++){const a=e.children[i];if(R(a)||I(a))continue;const n=mm(a,t);if(0===n)return 0;n<s&&(s=n)}return s;case 20:return 2}}const _m=new Set([gf,mf,_f,vf]);function vm(e,t){if(14===e.type&&!R(e.callee)&&_m.has(e.callee)){const i=e.arguments[0];if(4===i.type)return mm(i,t);if(14===i.type)return vm(i,t)}return 0}function bm(e,t){let i=3;const a=ym(e);if(a&&15===a.type){const{properties:e}=a;for(let a=0;a<e.length;a++){const{key:n,value:s}=e[a],o=mm(n,t);if(0===o)return o;let r;if(o<i&&(i=o),r=4===s.type?mm(s,t):14===s.type?vm(s,t):0,0===r)return r;r<i&&(i=r)}}return i}function ym(e){const t=e.codegenNode;if(13===t.type)return t.props}function xm(e,{filename:t="",prefixIdentifiers:i=!1,hoistStatic:a=!1,hmr:n=!1,cacheHandlers:s=!1,nodeTransforms:o=[],directiveTransforms:r={},transformHoist:l=null,isBuiltInComponent:c=m,isCustomElement:d=m,expressionPlugins:u=[],scopeId:p=null,slotted:h=!0,ssr:g=!1,inSSR:_=!1,ssrCssVars:v="",bindingMetadata:b=f,inline:y=!1,isTS:x=!1,onError:S=tg,onWarn:w=ig,compatConfig:C}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:E&&Y(U(E[1])),prefixIdentifiers:i,hoistStatic:a,hmr:n,cacheHandlers:s,nodeTransforms:o,directiveTransforms:r,transformHoist:l,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:u,scopeId:p,slotted:h,ssr:g,inSSR:_,ssrCssVars:v,bindingMetadata:b,inline:y,isTS:x,onError:S,onWarn:w,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=k.helpers.get(e)||0;return k.helpers.set(e,t+1),e},removeHelper(e){const t=k.helpers.get(e);if(t){const i=t-1;i?k.helpers.set(e,i):k.helpers.delete(e)}},helperString:e=>`_${Df[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,i=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>i&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(i,1)},onNodeRemoved:m,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){R(e)&&(e=Ff(e)),k.hoists.push(e);const t=Ff(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,i=!1){const a=function(e,t,i=!1,a=!1){return{type:20,index:e,value:t,needPauseTracking:i,inVOnce:a,needArraySpread:!1,loc:Of}}(k.cached.length,e,t,i);return k.cached.push(a),a}};return k.filters=new Set,k}function Sm(e,t){const i=xm(e,t);wm(e,i),t.hoistStatic&&hm(e,i),t.ssr||function(e,t){const{helper:i}=t,{children:a}=e;if(1===a.length){const i=fm(e);if(i&&i.codegenNode){const a=i.codegenNode;13===a.type&&Yf(a,t),e.codegenNode=a}else e.codegenNode=a[0]}else if(a.length>1){let a=64;e.codegenNode=Mf(t,i(Gh),void 0,e.children,a,void 0,void 0,!0,void 0,!1)}}(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function wm(e,t){t.currentNode=e;const{nodeTransforms:i}=t,a=[];for(let s=0;s<i.length;s++){const n=i[s](e,t);if(n&&(C(n)?a.push(...n):a.push(n)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(tf);break;case 5:t.ssr||t.helper(hf);break;case 9:for(let i=0;i<e.branches.length;i++)wm(e.branches[i],t);break;case 10:case 11:case 1:case 0:!function(e,t){let i=0;const a=()=>{i--};for(;i<e.children.length;i++){const n=e.children[i];R(n)||(t.grandParent=t.parent,t.parent=e,t.childIndex=i,t.onNodeRemoved=a,wm(n,t))}}(e,t)}t.currentNode=e;let n=a.length;for(;n--;)a[n]()}function Cm(e,t){const i=R(e)?t=>t===e:t=>e.test(t);return(e,a)=>{if(1===e.type){const{props:n}=e;if(3===e.tagType&&n.some(yg))return;const s=[];for(let o=0;o<n.length;o++){const r=n[o];if(7===r.type&&i(r.name)){n.splice(o,1),o--;const i=t(e,r,a);i&&s.push(i)}}return s}}}const Em="/*@__PURE__*/",km=e=>`${Df[e]}: _${Df[e]}`;function Tm(e,t={}){const i=function(e,{mode:t="function",prefixIdentifiers:i="module"===t,sourceMap:a=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:r="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:i,sourceMap:a,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:r,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Df[e]}`,push(e,t=-2,i){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:a,push:n,prefixIdentifiers:s,indent:o,deindent:r,newline:l,scopeId:c,ssr:d}=i,u=Array.from(e.helpers),p=u.length>0,h=!s&&"module"!==a;!function(e,t){const{ssr:i,prefixIdentifiers:a,push:n,newline:s,runtimeModuleName:o,runtimeGlobalName:r,ssrRuntimeModuleName:l}=t,c=r,d=Array.from(e.helpers);if(d.length>0&&(n(`const _Vue = ${c}\n`,-1),e.hoists.length)){n(`const { ${[Jh,ef,tf,af,nf].filter(e=>d.includes(e)).map(km).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:i,newline:a}=t;a();for(let n=0;n<e.length;n++){const s=e[n];s&&(i(`const _hoisted_${n+1} = `),Dm(s,t),a())}t.pure=!1})(e.hoists,t),s(),n("return ")}(e,i);if(n(`function ${d?"ssrRender":"render"}(${(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),o(),h&&(n("with (_ctx) {"),o(),p&&(n(`const { ${u.map(km).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(Am(e.components,"component",i),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Am(e.directives,"directive",i),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Am(e.filters,"filter",i),l()),e.temps>0){n("let ");for(let t=0;t<e.temps;t++)n(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(n("\n",0),l()),d||n("return "),e.codegenNode?Dm(e.codegenNode,i):n("null"),h&&(r(),n("}")),r(),n("}"),{ast:e,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function Am(e,t,{helper:i,push:a,newline:n,isTS:s}){const o=i("filter"===t?lf:"component"===t?sf:rf);for(let r=0;r<e.length;r++){let i=e[r];const l=i.endsWith("__self");l&&(i=i.slice(0,-6)),a(`const ${Tg(i,t)} = ${o}(${JSON.stringify(i)}${l?", true":""})${s?"!":""}`),r<e.length-1&&n()}}function Rm(e,t){const i=e.length>3||!1;t.push("["),i&&t.indent(),Im(e,t,i),i&&t.deindent(),t.push("]")}function Im(e,t,i=!1,a=!0){const{push:n,newline:s}=t;for(let o=0;o<e.length;o++){const r=e[o];R(r)?n(r,-3):C(r)?Rm(r,t):Dm(r,t),o<e.length-1&&(i?(a&&n(","),s()):a&&n(", "))}}function Dm(e,t){if(R(e))t.push(e,-3);else if(I(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Dm(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:Om(e,t);break;case 5:!function(e,t){const{push:i,helper:a,pure:n}=t;n&&i(Em);i(`${a(hf)}(`),Dm(e.content,t),i(")")}(e,t);break;case 8:Mm(e,t);break;case 3:!function(e,t){const{push:i,helper:a,pure:n}=t;n&&i(Em);i(`${a(tf)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:i,helper:a,pure:n}=t,{tag:s,props:o,children:r,patchFlag:l,dynamicProps:c,directives:d,isBlock:u,disableTracking:p,isComponent:h}=e;let f;l&&(f=String(l));d&&i(a(cf)+"(");u&&i(`(${a(Xh)}(${p?"true":""}), `);n&&i(Em);const g=u?zf(t.inSSR,h):Hf(t.inSSR,h);i(a(g)+"(",-2,e),Im(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([s,o,r,f,c]),t),i(")"),u&&i(")");d&&(i(", "),Dm(d,t),i(")"))}(e,t);break;case 14:!function(e,t){const{push:i,helper:a,pure:n}=t,s=R(e.callee)?e.callee:a(e.callee);n&&i(Em);i(s+"(",-2,e),Im(e.arguments,t),i(")")}(e,t);break;case 15:!function(e,t){const{push:i,indent:a,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length)return void i("{}",-2,e);const r=o.length>1||!1;i(r?"{":"{ "),r&&a();for(let l=0;l<o.length;l++){const{key:e,value:a}=o[l];Nm(e,t),i(": "),Dm(a,t),l<o.length-1&&(i(","),s())}r&&n(),i(r?"}":" }")}(e,t);break;case 17:!function(e,t){Rm(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:i,indent:a,deindent:n}=t,{params:s,returns:o,body:r,newline:l,isSlot:c}=e;c&&i(`_${Df[kf]}(`);i("(",-2,e),C(s)?Im(s,t):s&&Dm(s,t);i(") => "),(l||r)&&(i("{"),a());o?(l&&i("return "),C(o)?Rm(o,t):Dm(o,t)):r&&Dm(r,t);(l||r)&&(n(),i("}"));c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}(e,t);break;case 19:!function(e,t){const{test:i,consequent:a,alternate:n,newline:s}=e,{push:o,indent:r,deindent:l,newline:c}=t;if(4===i.type){const e=!rg(i.content);e&&o("("),Om(i,t),e&&o(")")}else o("("),Dm(i,t),o(")");s&&r(),t.indentLevel++,s||o(" "),o("? "),Dm(a,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=19===n.type;d||t.indentLevel++;Dm(n,t),d||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:i,helper:a,indent:n,deindent:s,newline:o}=t,{needPauseTracking:r,needArraySpread:l}=e;l&&i("[...(");i(`_cache[${e.index}] || (`),r&&(n(),i(`${a(wf)}(-1`),e.inVOnce&&i(", true"),i("),"),o(),i("("));i(`_cache[${e.index}] = `),Dm(e.value,t),r&&(i(`).cacheIndex = ${e.index},`),o(),i(`${a(wf)}(1),`),o(),i(`_cache[${e.index}]`),s());i(")"),l&&i(")]")}(e,t);break;case 21:Im(e.body,t,!0,!1)}}function Om(e,t){const{content:i,isStatic:a}=e;t.push(a?JSON.stringify(i):i,-3,e)}function Mm(e,t){for(let i=0;i<e.children.length;i++){const a=e.children[i];R(a)?t.push(a,-3):Dm(a,t)}}function Nm(e,t){const{push:i}=t;if(8===e.type)i("["),Mm(e,t),i("]");else if(e.isStatic){i(rg(e.content)?e.content:JSON.stringify(e.content),-2,e)}else i(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Lm=Cm(/^(?:if|else|else-if)$/,(e,t,i)=>function(e,t,i,a){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const a=t.exp?t.exp.loc:e.loc;i.onError(ag(28,t.loc)),t.exp=Ff("true",!1,a)}if("if"===t.name){const n=Pm(e,t),s={type:9,loc:rm(e.loc),branches:[n]};if(i.replaceNode(s),a)return a(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-- >=-1;){const o=n[s];if(!o||!Dg(o)){if(o&&9===o.type){"else-if"!==t.name&&"else"!==t.name||void 0!==o.branches[o.branches.length-1].condition||i.onError(ag(30,e.loc)),i.removeNode();const n=Pm(e,t);o.branches.push(n);const s=a&&a(o,n,!1);wm(n,i),s&&s(),i.currentNode=null}else i.onError(ag(30,e.loc));break}i.removeNode(o)}}}(e,t,i,(e,t,a)=>{const n=i.parent.children;let s=n.indexOf(e),o=0;for(;s-- >=0;){const e=n[s];e&&9===e.type&&(o+=e.branches.length)}return()=>{if(a)e.codegenNode=Fm(t,o,i);else{const a=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);a.alternate=Fm(t,o+e.branches.length-1,i)}}}));function Pm(e,t){const i=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:i&&!gg(e,"for")?e.children:[e],userKey:mg(e,"key"),isTemplateIf:i}}function Fm(e,t,i){return e.condition?Uf(e.condition,Bm(e,t,i),$f(i.helper(tf),['""',"true"])):Bm(e,t,i)}function Bm(e,t,i){const{helper:a}=i,n=Pf("key",Ff(`${t}`,!1,Of,2)),{children:s}=e,o=s[0];if(1!==s.length||1!==o.type){if(1===s.length&&11===o.type){const e=o.codegenNode;return Eg(e,n,i),e}{let t=64;return Mf(i,a(Gh),Lf([n]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=o.codegenNode,t=14===(r=e).type&&r.callee===Rf?r.arguments[1].returns:r;return 13===t.type&&Yf(t,i),Eg(t,n,i),e}var r}const $m=Cm("for",(e,t,i)=>{const{helper:a,removeHelper:n}=i;return function(e,t,i,a){if(!t.exp)return void i.onError(ag(31,t.loc));const n=t.forParseResult;if(!n)return void i.onError(ag(32,t.loc));Vm(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:r}=i,{source:l,value:c,key:d,index:u}=n,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:xg(e)?e.children:[e]};i.replaceNode(p),r.vFor++;const h=a&&a(p);return()=>{r.vFor--,h&&h()}}(e,t,i,t=>{const s=$f(a(df),[t.source]),o=xg(e),r=gg(e,"memo"),l=mg(e,"key",!1,!0);l&&l.type;let c=l&&(6===l.type?l.value?Ff(l.value.content,!0):void 0:l.exp);const d=c?Pf("key",c):null,u=4===t.source.type&&t.source.constType>0,p=u?64:l?128:256;return t.codegenNode=Mf(i,a(Gh),void 0,s,p,void 0,void 0,!0,!u,!1,e.loc),()=>{let l;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=Sg(e)?e:o&&1===e.children.length&&Sg(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,o&&d&&Eg(l,d,i)):h?l=Mf(i,a(Gh),d?Lf([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,o&&d&&Eg(l,d,i),l.isBlock!==!u&&(l.isBlock?(n(Xh),n(zf(i.inSSR,l.isComponent))):n(Hf(i.inSSR,l.isComponent))),l.isBlock=!u,l.isBlock?(a(Xh),a(zf(i.inSSR,l.isComponent))):a(Hf(i.inSSR,l.isComponent))),r){const e=Vf(Um(t.parseResult,[Ff("_cached")]));e.body={type:21,body:[Bf(["const _memo = (",r.exp,")"]),Bf(["if (_cached && _cached.el",...c?[" && _cached.key === ",c]:[],` && ${i.helperString(If)}(_cached, _memo)) return _cached`]),Bf(["const _item = ",l]),Ff("_item.memo = _memo"),Ff("return _item")],loc:Of},s.arguments.push(e,Ff("_cache"),Ff(String(i.cached.length))),i.cached.push(null)}else s.arguments.push(Vf(Um(t.parseResult),l,!0))}})});function Vm(e,t){e.finalized||(e.finalized=!0)}function Um({value:e,key:t,index:i},a=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||Ff("_".repeat(t+1),!1))}([e,t,i,...a])}const Hm=Ff("undefined",!1),zm=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const i=gg(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Ym=(e,t,i,a)=>Vf(e,i,!1,!0,i.length?i[0].loc:a);function Gm(e,t,i=Ym){t.helper(kf);const{children:a,loc:n}=e,s=[],o=[];let r=t.scopes.vSlot>0||t.scopes.vFor>0;const l=gg(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!ng(e)&&(r=!0),s.push(Pf(e||Ff("default",!0),i(t,void 0,a,n)))}let c=!1,d=!1;const u=[],p=new Set;let h=0;for(let m=0;m<a.length;m++){const e=a[m];let n;if(!xg(e)||!(n=gg(e,"slot",!0))){3!==e.type&&u.push(e);continue}if(l){t.onError(ag(37,n.loc));break}c=!0;const{children:f,loc:g}=e,{arg:_=Ff("default",!0),exp:v,loc:b}=n;let y;ng(_)?y=_?_.content:"default":r=!0;const x=gg(e,"for"),S=i(v,x,f,g);let w,C;if(w=gg(e,"if"))r=!0,o.push(Uf(w.exp,Wm(_,S,h++),Hm));else if(C=gg(e,/^else(?:-if)?$/,!0)){let e,i=m;for(;i--&&(e=a[i],Dg(e)););if(e&&xg(e)&&gg(e,/^(?:else-)?if$/)){let e=o[o.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=C.exp?Uf(C.exp,Wm(_,S,h++),Hm):Wm(_,S,h++)}else t.onError(ag(30,C.loc))}else if(x){r=!0;const e=x.forParseResult;e?(Vm(e),o.push($f(t.helper(df),[e.source,Vf(Um(e),Wm(_,S),!0)]))):t.onError(ag(32,x.loc))}else{if(y){if(p.has(y)){t.onError(ag(38,b));continue}p.add(y),"default"===y&&(d=!0)}s.push(Pf(_,S))}}if(!l){const e=(e,a)=>{const s=i(e,void 0,a,n);return t.compatConfig&&(s.isNonScopedSlot=!0),Pf("default",s)};c?u.length&&!u.every(Ig)&&(d?t.onError(ag(39,u[0].loc)):s.push(e(void 0,u))):s.push(e(void 0,a))}const f=r?2:jm(e.children)?3:1;let g=Lf(s.concat(Pf("_",Ff(f+"",!1))),n);return o.length&&(g=$f(t.helper(pf),[g,Nf(o)])),{slots:g,hasDynamicSlots:r}}function Wm(e,t,i){const a=[Pf("name",e),Pf("fn",t)];return null!=i&&a.push(Pf("key",Ff(String(i),!0))),Lf(a)}function jm(e){for(let t=0;t<e.length;t++){const i=e[t];switch(i.type){case 1:if(2===i.tagType||jm(i.children))return!0;break;case 9:if(jm(i.branches))return!0;break;case 10:case 11:if(jm(i.children))return!0}}return!1}const qm=new WeakMap,Km=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:i,props:a}=e,n=1===e.tagType;let s=n?function(e,t,i=!1){let{tag:a}=e;const n=Jm(a),s=mg(e,"is",!1,!0);if(s)if(n||Jf("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&Ff(s.value.content,!0):(e=s.exp,e||(e=Ff("is",!1,s.arg.loc))),e)return $f(t.helper(of),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(a=s.value.content.slice(4));const o=sg(a)||t.isBuiltInComponent(a);if(o)return i||t.helper(o),o;return t.helper(sf),t.components.add(a),Tg(a,"component")}(e,t):`"${i}"`;const o=D(s)&&s.callee===of;let r,l,c,d,u,p=0,h=o||s===Wh||s===jh||!n&&("svg"===i||"foreignObject"===i||"math"===i);if(a.length>0){const i=Xm(e,t,void 0,n,o);r=i.props,p=i.patchFlag,d=i.dynamicPropNames;const a=i.directives;u=a&&a.length?Nf(a.map(e=>function(e,t){const i=[],a=qm.get(e);a?i.push(t.helperString(a)):(t.helper(rf),t.directives.add(e.name),i.push(Tg(e.name,"directive")));const{loc:n}=e;e.exp&&i.push(e.exp);e.arg&&(e.exp||i.push("void 0"),i.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||i.push("void 0"),i.push("void 0"));const t=Ff("true",!1,n);i.push(Lf(e.modifiers.map(e=>Pf(e,t)),n))}return Nf(i,e.loc)}(e,t))):void 0,i.shouldUseBlock&&(h=!0)}if(e.children.length>0){s===qh&&(h=!0,p|=1024);if(n&&s!==Wh&&s!==qh){const{slots:i,hasDynamicSlots:a}=Gm(e,t);l=i,a&&(p|=1024)}else if(1===e.children.length&&s!==Wh){const i=e.children[0],a=i.type,n=5===a||8===a;n&&0===mm(i,t)&&(p|=1),l=n||2===a?i:e.children}else l=e.children}d&&d.length&&(c=function(e){let t="[";for(let i=0,a=e.length;i<a;i++)t+=JSON.stringify(e[i]),i<a-1&&(t+=", ");return t+"]"}(d)),e.codegenNode=Mf(t,s,r,l,0===p?void 0:p,c,u,!!h,!1,n,e.loc)};function Xm(e,t,i=e.props,a,n,s=!1){const{tag:o,loc:r,children:l}=e;let c=[];const d=[],u=[],p=l.length>0;let h=!1,f=0,g=!1,m=!1,_=!1,b=!1,y=!1,x=!1;const S=[],w=e=>{c.length&&(d.push(Lf(Zm(c),r)),c=[]),e&&d.push(e)},C=()=>{t.scopes.vFor>0&&c.push(Pf(Ff("ref_for",!0),Ff("true")))},E=({key:e,value:i})=>{if(ng(e)){const s=e.content,o=v(s);if(!o||a&&!n||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||F(s)||(b=!0),o&&F(s)&&(x=!0),o&&14===i.type&&(i=i.arguments[0]),20===i.type||(4===i.type||8===i.type)&&mm(i,t)>0)return;"ref"===s?g=!0:"class"===s?m=!0:"style"===s?_=!0:"key"===s||S.includes(s)||S.push(s),!a||"class"!==s&&"style"!==s||S.includes(s)||S.push(s)}else y=!0};for(let v=0;v<i.length;v++){const n=i[v];if(6===n.type){const{loc:e,name:i,nameLoc:a,value:s}=n;let r=!0;if("ref"===i&&(g=!0,C()),"is"===i&&(Jm(o)||s&&s.content.startsWith("vue:")||Jf("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Pf(Ff(i,!0,a),Ff(s?s.content:"",r,s?s.loc:e)))}else{const{name:i,arg:l,exp:g,loc:m,modifiers:_}=n,v="bind"===i,b="on"===i;if("slot"===i){a||t.onError(ag(40,m));continue}if("once"===i||"memo"===i)continue;if("is"===i||v&&_g(l,"is")&&(Jm(o)||Jf("COMPILER_IS_ON_ELEMENT",t)))continue;if(b&&s)continue;if((v&&_g(l,"key")||b&&p&&_g(l,"vue:before-update"))&&(h=!0),v&&_g(l,"ref")&&C(),!l&&(v||b)){if(y=!0,g)if(v){if(w(),Jf("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(g);continue}C(),w(),d.push(g)}else w({type:14,loc:m,callee:t.helper(bf),arguments:a?[g]:[g,"true"]});else t.onError(ag(v?34:35,m));continue}v&&_.some(e=>"prop"===e.content)&&(f|=32);const x=t.directiveTransforms[i];if(x){const{props:i,needRuntime:a}=x(n,e,t);!s&&i.forEach(E),b&&l&&!ng(l)?w(Lf(i,r)):c.push(...i),a&&(u.push(n),I(a)&&qm.set(n,a))}else B(i)||(u.push(n),p&&(h=!0))}}let k;if(d.length?(w(),k=d.length>1?$f(t.helper(ff),d,r):d[0]):c.length&&(k=Lf(Zm(c),r)),y?f|=16:(m&&!a&&(f|=2),_&&!a&&(f|=4),S.length&&(f|=8),b&&(f|=32)),h||0!==f&&32!==f||!(g||x||u.length>0)||(f|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,i=-1,a=!1;for(let t=0;t<k.properties.length;t++){const n=k.properties[t].key;ng(n)?"class"===n.content?e=t:"style"===n.content&&(i=t):n.isHandlerKey||(a=!0)}const n=k.properties[e],s=k.properties[i];a?k=$f(t.helper(_f),[k]):(n&&!ng(n.value)&&(n.value=$f(t.helper(gf),[n.value])),s&&(_||4===s.value.type&&"["===s.value.content.trim()[0]||17===s.value.type)&&(s.value=$f(t.helper(mf),[s.value])));break;case 14:break;default:k=$f(t.helper(_f),[$f(t.helper(vf),[k])])}return{props:k,directives:u,patchFlag:f,dynamicPropNames:S,shouldUseBlock:h}}function Zm(e){const t=new Map,i=[];for(let a=0;a<e.length;a++){const n=e[a];if(8===n.key.type||!n.key.isStatic){i.push(n);continue}const s=n.key.content,o=t.get(s);o?("style"===s||"class"===s||v(s))&&Qm(o,n):(t.set(s,n),i.push(n))}return i}function Qm(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Nf([e.value,t.value],e.loc)}function Jm(e){return"component"===e||"Component"===e}const e_=(e,t)=>{if(Sg(e)){const{children:i,loc:a}=e,{slotName:n,slotProps:s}=function(e,t){let i,a='"default"';const n=[];for(let s=0;s<e.props.length;s++){const t=e.props[s];if(6===t.type)t.value&&("name"===t.name?a=JSON.stringify(t.value.content):(t.name=U(t.name),n.push(t)));else if("bind"===t.name&&_g(t.arg,"name")){if(t.exp)a=t.exp;else if(t.arg&&4===t.arg.type){const e=U(t.arg.content);a=t.exp=Ff(e,!1,t.arg.loc)}}else"bind"===t.name&&t.arg&&ng(t.arg)&&(t.arg.content=U(t.arg.content)),n.push(t)}if(n.length>0){const{props:a,directives:s}=Xm(e,t,n,!1,!1);i=a,s.length&&t.onError(ag(36,s[0].loc))}return{slotName:a,slotProps:i}}(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let r=2;s&&(o[2]=s,r=3),i.length&&(o[3]=Vf([],i,!1,!1,a),r=4),t.scopeId&&!t.slotted&&(r=5),o.splice(r),e.codegenNode=$f(t.helper(uf),o,a)}};const t_=(e,t,i,a)=>{const{loc:n,modifiers:s,arg:o}=e;let r;if(e.exp||s.length||i.onError(ag(35,n)),4===o.type)if(o.isStatic){let e=o.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);r=Ff(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?G(U(e)):`on:${e}`,!0,o.loc)}else r=Bf([`${i.helperString(Sf)}(`,o,")"]);else r=o,r.children.unshift(`${i.helperString(Sf)}(`),r.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const e=pg(l),t=!(e||fg(l)),i=l.content.includes(";");(t||c&&e)&&(l=Bf([`${t?"$event":"(...args)"} => ${i?"{":"("}`,l,i?"}":")"]))}let d={props:[Pf(r,l||Ff("() => {}",!1,n))]};return a&&(d=a(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(e=>e.key.isHandlerKey=!0),d},i_=(e,t,i)=>{const{modifiers:a,loc:n}=e,s=e.arg;let{exp:o}=e;return o&&4===o.type&&!o.content.trim()&&(o=void 0),4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=s.content?`${s.content} || ""`:'""'),a.some(e=>"camel"===e.content)&&(4===s.type?s.isStatic?s.content=U(s.content):s.content=`${i.helperString(yf)}(${s.content})`:(s.children.unshift(`${i.helperString(yf)}(`),s.children.push(")"))),i.inSSR||(a.some(e=>"prop"===e.content)&&a_(s,"."),a.some(e=>"attr"===e.content)&&a_(s,"^")),{props:[Pf(s,o)]}},a_=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},n_=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const i=e.children;let a,n=!1;for(let e=0;e<i.length;e++){const t=i[e];if(vg(t)){n=!0;for(let n=e+1;n<i.length;n++){const s=i[n];if(!vg(s)){a=void 0;break}a||(a=i[e]=Bf([t],t.loc)),a.children.push(" + ",s),i.splice(n,1),n--}}}if(n&&(1!==i.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find(e=>7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e<i.length;e++){const a=i[e];if(vg(a)||8===a.type){const n=[];2===a.type&&" "===a.content||n.push(a),t.ssr||0!==mm(a,t)||n.push("1"),i[e]={type:12,content:a,loc:a.loc,codegenNode:$f(t.helper(af),n)}}}}},s_=new WeakSet,o_=(e,t)=>{if(1===e.type&&gg(e,"once",!0)){if(s_.has(e)||t.inVOnce||t.inSSR)return;return s_.add(e),t.inVOnce=!0,t.helper(wf),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},r_=(e,t,i)=>{const{exp:a,arg:n}=e;if(!a)return i.onError(ag(41,e.loc)),l_();const s=a.loc.source.trim(),o=4===a.type?a.content:s,r=i.bindingMetadata[s];if("props"===r||"props-aliased"===r)return i.onError(ag(44,a.loc)),l_();if("literal-const"===r||"setup-const"===r)return i.onError(ag(45,a.loc)),l_();if(!o.trim()||!pg(a))return i.onError(ag(42,a.loc)),l_();const l=n||Ff("modelValue",!0),c=n?ng(n)?`onUpdate:${U(n.content)}`:Bf(['"onUpdate:" + ',n]):"onUpdate:modelValue";let d;d=Bf([`${i.isTS?"($event: any)":"$event"} => ((`,a,") = $event)"]);const u=[Pf(l,e.exp),Pf(c,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(rg(e)?e:JSON.stringify(e))+": true").join(", "),i=n?ng(n)?`${n.content}Modifiers`:Bf([n,' + "Modifiers"']):"modelModifiers";u.push(Pf(i,Ff(`{ ${t} }`,!1,e.loc,2)))}return l_(u)};function l_(e=[]){return{props:e}}const c_=/[\w).+\-_$\]]/,d_=(e,t)=>{Jf("COMPILER_FILTERS",t)&&(5===e.type?u_(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&u_(e.exp,t)}))};function u_(e,t){if(4===e.type)p_(e,t);else for(let i=0;i<e.children.length;i++){const a=e.children[i];"object"==typeof a&&(4===a.type?p_(a,t):8===a.type?u_(e,t):5===a.type&&u_(a.content,t))}}function p_(e,t){const i=e.content;let a,n,s,o,r=!1,l=!1,c=!1,d=!1,u=0,p=0,h=0,f=0,g=[];for(s=0;s<i.length;s++)if(n=a,a=i.charCodeAt(s),r)39===a&&92!==n&&(r=!1);else if(l)34===a&&92!==n&&(l=!1);else if(c)96===a&&92!==n&&(c=!1);else if(d)47===a&&92!==n&&(d=!1);else if(124!==a||124===i.charCodeAt(s+1)||124===i.charCodeAt(s-1)||u||p||h){switch(a){case 34:l=!0;break;case 39:r=!0;break;case 96:c=!0;break;case 40:h++;break;case 41:h--;break;case 91:p++;break;case 93:p--;break;case 123:u++;break;case 125:u--}if(47===a){let e,t=s-1;for(;t>=0&&(e=i.charAt(t)," "===e);t--);e&&c_.test(e)||(d=!0)}}else void 0===o?(f=s+1,o=i.slice(0,s).trim()):m();function m(){g.push(i.slice(f,s).trim()),f=s+1}if(void 0===o?o=i.slice(0,s).trim():0!==f&&m(),g.length){for(s=0;s<g.length;s++)o=h_(o,g[s],t);e.content=o,e.ast=void 0}}function h_(e,t,i){i.helper(lf);const a=t.indexOf("(");if(a<0)return i.filters.add(t),`${Tg(t,"filter")}(${e})`;{const n=t.slice(0,a),s=t.slice(a+1);return i.filters.add(n),`${Tg(n,"filter")}(${e}${")"!==s?","+s:s}`}}const f_=new WeakSet,g_=(e,t)=>{if(1===e.type){const i=gg(e,"memo");if(!i||f_.has(e)||t.inSSR)return;return f_.add(e),()=>{const a=e.codegenNode||t.currentNode.codegenNode;a&&13===a.type&&(1!==e.tagType&&Yf(a,t),e.codegenNode=$f(t.helper(Rf),[i.exp,Vf(void 0,a),"_cache",String(t.cached.length)]),t.cached.push(null))}}},m_=(e,t)=>{if(1===e.type)for(const i of e.props)if(7===i.type&&"bind"===i.name&&(!i.exp||4===i.exp.type&&!i.exp.content.trim())&&i.arg){const e=i.arg;if(4===e.type&&e.isStatic){const t=U(e.content);(lg.test(t[0])||"-"===t[0])&&(i.exp=Ff(t,!1,e.loc))}else t.onError(ag(53,e.loc)),i.exp=Ff("",!0,e.loc)}};function __(e,t={}){const i=t.onError||tg,a="module"===t.mode;!0===t.prefixIdentifiers?i(ag(48)):a&&i(ag(49));t.cacheHandlers&&i(ag(50)),t.scopeId&&!a&&i(ag(51));const n=y({},t,{prefixIdentifiers:!1}),s=R(e)?pm(e,n):e,[o,r]=[[m_,o_,Lm,g_,$m,d_,e_,Km,zm,n_],{on:t_,bind:i_,model:r_}];return Sm(s,y({},n,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:y({},r,t.directiveTransforms||{})})),Tm(s,n)}const v_=Symbol(""),b_=Symbol(""),y_=Symbol(""),x_=Symbol(""),S_=Symbol(""),w_=Symbol(""),C_=Symbol(""),E_=Symbol(""),k_=Symbol(""),T_=Symbol("");
25 /**
26 * @vue/compiler-dom v3.5.35
27 * (c) 2018-present Yuxi (Evan) You and Vue contributors
28 * @license MIT
29 **/var A_;let R_;A_={[v_]:"vModelRadio",[b_]:"vModelCheckbox",[y_]:"vModelText",[x_]:"vModelSelect",[S_]:"vModelDynamic",[w_]:"withModifiers",[C_]:"withKeys",[E_]:"vShow",[k_]:"Transition",[T_]:"TransitionGroup"},Object.getOwnPropertySymbols(A_).forEach(e=>{Df[e]=A_[e]});const I_={parseMode:"html",isVoidTag:de,isNativeTag:e=>re(e)||le(e)||ce(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return R_||(R_=document.createElement("div")),t?(R_.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,R_.children[0].getAttribute("foo")):(R_.innerHTML=e,R_.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?k_:"TransitionGroup"===e||"transition-group"===e?T_:void 0,getNamespace(e,t,i){let a=t?t.ns:i;if(t&&2===a)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(a=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(a=0);else t&&1===a&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(a=0));if(0===a){if("svg"===e)return 1;if("math"===e)return 2}return a}},D_=(e,t)=>{const i=ne(e);return Ff(JSON.stringify(i),!1,t,3)};function O_(e,t){return ag(e,t)}const M_=h("passive,once,capture"),N_=h("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),L_=h("left,right"),P_=h("onkeyup,onkeydown,onkeypress"),F_=(e,t)=>ng(e)&&"onclick"===e.content.toLowerCase()?Ff(t,!0):4!==e.type?Bf(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,B_=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},$_=[e=>{1===e.type&&e.props.forEach((t,i)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[i]={type:7,name:"bind",arg:Ff("style",!0,t.loc),exp:D_(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],V_={cloak:()=>({props:[]}),html:(e,t,i)=>{const{exp:a,loc:n}=e;return a||i.onError(O_(54,n)),t.children.length&&(i.onError(O_(55,n)),t.children.length=0),{props:[Pf(Ff("innerHTML",!0,n),a||Ff("",!0))]}},text:(e,t,i)=>{const{exp:a,loc:n}=e;return a||i.onError(O_(56,n)),t.children.length&&(i.onError(O_(57,n)),t.children.length=0),{props:[Pf(Ff("textContent",!0),a?mm(a,i)>0?a:$f(i.helperString(hf),[a],n):Ff("",!0))]}},model:(e,t,i)=>{const a=r_(e,t,i);if(!a.props.length||1===t.tagType)return a;e.arg&&i.onError(O_(59,e.arg.loc));const{tag:n}=t,s=i.isCustomElement(n);if("input"===n||"textarea"===n||"select"===n||s){let o=y_,r=!1;if("input"===n||s){const a=mg(t,"type");if(a){if(7===a.type)o=S_;else if(a.value)switch(a.value.content){case"radio":o=v_;break;case"checkbox":o=b_;break;case"file":r=!0,i.onError(O_(60,e.loc))}}else(function(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))})(t)&&(o=S_)}else"select"===n&&(o=x_);r||(a.needRuntime=i.helper(o))}else i.onError(O_(58,e.loc));return a.props=a.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),a},on:(e,t,i)=>t_(e,t,i,t=>{const{modifiers:a}=e;if(!a.length)return t;let{key:n,value:s}=t.props[0];const{keyModifiers:o,nonKeyModifiers:r,eventOptionModifiers:l}=((e,t,i)=>{const a=[],n=[],s=[];for(let o=0;o<t.length;o++){const r=t[o].content;"native"===r&&eg("COMPILER_V_ON_NATIVE",i)||M_(r)?s.push(r):L_(r)?ng(e)?P_(e.content.toLowerCase())?a.push(r):n.push(r):(a.push(r),n.push(r)):N_(r)?n.push(r):a.push(r)}return{keyModifiers:a,nonKeyModifiers:n,eventOptionModifiers:s}})(n,a,i,e.loc);if(r.includes("right")&&(n=F_(n,"onContextmenu")),r.includes("middle")&&(n=F_(n,"onMouseup")),r.length&&(s=$f(i.helper(w_),[s,JSON.stringify(r)])),!o.length||ng(n)&&!P_(n.content.toLowerCase())||(s=$f(i.helper(C_),[s,JSON.stringify(o)])),l.length){const e=l.map(Y).join("");n=ng(n)?Ff(`${n.content}${e}`,!0):Bf(["(",n,`) + "${e}"`])}return{props:[Pf(n,s)]}}),show:(e,t,i)=>{const{exp:a,loc:n}=e;return a||i.onError(O_(62,n)),{props:[],needRuntime:i.helper(E_)}}};
30 /**
31 * vue v3.5.35
32 * (c) 2018-present Yuxi (Evan) You and Vue contributors
33 * @license MIT
34 **/
35 const U_=Object.create(null);function H_(e,t){if(!R(e)){if(!e.nodeType)return m;e=e.innerHTML}const i=function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)}(e,t),a=U_[i];if(a)return a;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const n=y({hoistStatic:!0,onError:void 0,onWarn:m},t);n.isCustomElement||"undefined"==typeof customElements||(n.isCustomElement=e=>!!customElements.get(e));const{code:s}=function(e,t={}){return __(e,y({},I_,t,{nodeTransforms:[B_,...$_,...t.nodeTransforms||[]],directiveTransforms:y({},V_,t.directiveTransforms||{}),transformHoist:null}))}(e,n),o=new Function("Vue",s)(Yh);return o._rc=!0,U_[i]=o}Au(H_);const z_=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Qr,BaseTransitionPropsValidators:Kr,Comment:$d,DeprecationTypes:null,EffectScope:Un,ErrorCodes:Yo,ErrorTypeStrings:Hu,Fragment:Fd,KeepAlive:Ol,ReactiveEffect:Wn,Static:Vd,Suspense:Dd,Teleport:Hr,Text:Bd,TrackOpTypes:No,Transition:np,TransitionGroup:sh,TriggerOpTypes:Lo,VueElement:Kp,assertNumber:zo,callWithAsyncErrorHandling:jo,callWithErrorHandling:Wo,camelize:U,capitalize:Y,cloneVNode:nu,compatUtils:null,compile:H_,computed:Lu,createApp:Bh,createBlock:Kd,createCommentVNode:ru,createElementBlock:qd,createElementVNode:tu,createHydrationRenderer:yd,createPropsRestProxy:Ac,createRenderer:bd,createSSRApp:$h,createSlots:oc,createStaticVNode:ou,createTextVNode:su,createVNode:iu,customRef:ko,defineAsyncComponent:Al,defineComponent:sl,defineCustomElement:Wp,defineEmits:mc,defineExpose:_c,defineModel:yc,defineOptions:vc,defineProps:gc,defineSSRCustomElement:jp,defineSlots:bc,devtools:zu,effect:ss,effectScope:Hn,getCurrentInstance:_u,getCurrentScope:zn,getCurrentWatcher:$o,getTransitionRawChildren:nl,guardReactiveProps:au,h:Pu,handleError:qo,hasInjectionContext:wr,hydrate:Fh,hydrateOnIdle:wl,hydrateOnInteraction:kl,hydrateOnMediaQuery:El,hydrateOnVisible:Cl,initCustomFormatter:Fu,initDirectivesForSSR:zh,inject:Sr,isMemoSame:$u,isProxy:co,isReactive:oo,isReadonly:ro,isRef:go,isRuntimeOnly:Ru,isShallow:lo,isVNode:Xd,markRaw:po,mergeDefaults:kc,mergeModels:Tc,mergeProps:uu,nextTick:ir,nodeOps:Zu,normalizeClass:se,normalizeProps:oe,normalizeStyle:ee,onActivated:Nl,onBeforeMount:Hl,onBeforeUnmount:Wl,onBeforeUpdate:Yl,onDeactivated:Ll,onErrorCaptured:Zl,onMounted:zl,onRenderTracked:Xl,onRenderTriggered:Kl,onScopeDispose:Yn,onServerPrefetch:ql,onUnmounted:jl,onUpdated:Gl,onWatcherCleanup:Vo,openBlock:zd,patchProp:Yp,popScopeId:mr,provide:xr,proxyRefs:Co,pushScopeId:gr,queuePostFlushCb:sr,reactive:to,readonly:ao,ref:mo,registerRuntimeCompiler:Au,render:Ph,renderList:sc,renderSlot:rc,resolveComponent:Jl,resolveDirective:ic,resolveDynamicComponent:tc,resolveFilter:null,resolveTransitionHooks:el,setBlockTracking:Wd,setDevtoolsHook:Yu,setTransitionHooks:al,shallowReactive:io,shallowReadonly:no,shallowRef:_o,ssrContextKey:Cr,ssrUtils:Gu,stop:os,toDisplayString:me,toHandlerKey:G,toHandlers:cc,toRaw:uo,toRef:Io,toRefs:To,toValue:So,transformVNodeArgs:Qd,triggerRef:yo,unref:xo,useAttrs:wc,useCssModule:Qp,useCssVars:Cp,useHost:Xp,useId:ol,useModel:Wc,useSSRContext:Er,useShadowRoot:Zp,useSlots:Sc,useTemplateRef:ll,useTransitionState:jr,vModelCheckbox:mh,vModelDynamic:wh,vModelRadio:vh,vModelSelect:bh,vModelText:gh,vShow:yp,version:Vu,warn:Uu,watch:Rr,watchEffect:kr,watchPostEffect:Tr,watchSyncEffect:Ar,withAsyncContext:Rc,withCtx:vr,withDefaults:xc,withDirectives:br,withKeys:Ih,withMemo:Bu,withModifiers:Ah,withScopeId:_r},Symbol.toStringTag,{value:"Module"})),Y_="__epPropKey",G_=(e,t)=>{if(!D(e)||D(i=e)&&i.__epPropKey)return e;var i;const{values:a,required:n,default:s,type:o,validator:r}=e,l={type:o,required:!!n,validator:a||r?i=>{let n=!1,o=[];if(a&&(o=Array.from(a),w(e,"default")&&o.push(s),n||(n=o.includes(i))),r&&(n||(n=r(i))),!n&&o.length>0){const e=[...new Set(o)].map(e=>JSON.stringify(e)).join(", ");Uu(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(i)}.`)}return n}:void 0,[Y_]:!0};return w(e,"default")&&(l.default=s),l},W_=e=>gn(Object.entries(e).map(([e,t])=>[e,G_(t,e)]));var j_=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function q_(e,t){throw new j_(`[${e}] ${t}`)}function K_(e,t){R(e)&&new j_(`[${e}] ${t}`)}const X_=["class","style"],Z_=/^on[A-Z]/,Q_=(e={})=>{const{excludeListeners:t=!1,excludeKeys:i}=e,a=Lu(()=>((null==i?void 0:i.value)||[]).concat(X_)),n=_u();return n?Lu(()=>{var e;return gn(Object.entries(null==(e=n.proxy)?void 0:e.$attrs).filter(([e])=>!(a.value.includes(e)||t&&Z_.test(e))))}):(K_("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),Lu(()=>({})))};function J_(e,t){var i;const a=_o();return kr(()=>{a.value=e()},{...t,flush:null!==(i=null==t?void 0:t.flush)&&void 0!==i?i:"sync"}),ao(a)}function ev(e,t){return!!zn()&&(Yn(e,t),!0)}const tv=new WeakMap,iv=(...e)=>{var t;const i=e[0],a=null===(t=_u())||void 0===t?void 0:t.proxy,n=null!=a?a:zn();if(null==n&&!wr())throw new Error("injectLocal must be called in setup");return n&&tv.has(n)&&i in tv.get(n)?tv.get(n)[i]:Sr(...e)},av="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const nv=e=>null!=e,sv=Object.prototype.toString,ov=(e,t,i)=>Math.min(i,Math.max(t,e)),rv=()=>{};function lv(e,t){return function(...i){return new Promise((a,n)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(a).catch(n)})}}function cv(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function dv(e){return Array.isArray(e)?e:[e]}function uv(e){return to(go(t=Lu(e))?new Proxy({},{get:(e,i,a)=>xo(Reflect.get(t.value,i,a)),set:(e,i,a)=>(go(t.value[i])&&!go(a)?t.value[i].value=a:t.value[i]=a,!0),deleteProperty:(e,i)=>Reflect.deleteProperty(t.value,i),has:(e,i)=>Reflect.has(t.value,i),ownKeys:()=>Object.keys(t.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})}):t);var t}function pv(e,t=200,i={}){return lv(function(e,t={}){let i,a,n=rv;const s=e=>{clearTimeout(e),n(),n=rv};let o;return r=>{const l=So(e),c=So(t.maxWait);return i&&s(i),l<=0||void 0!==c&&c<=0?(a&&(s(a),a=void 0),Promise.resolve(r())):new Promise((e,d)=>{n=t.rejectOnCancel?d:e,o=r,c&&!a&&(a=setTimeout(()=>{i&&s(i),a=void 0,e(o())},c)),i=setTimeout(()=>{a&&s(a),a=void 0,e(r())},l)})}}(t,i),e)}function hv(e,t=!0,i){_u()?zl(e,i):t?e():ir(e)}function fv(e,t,i={}){const{immediate:a=!0,immediateCallback:n=!1}=i,s=_o(!1);let o;function r(){o&&(clearTimeout(o),o=void 0)}function l(){s.value=!1,r()}function c(...i){n&&e(),r(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=void 0,e(...i)},So(t))}return a&&(s.value=!0,av&&c()),ev(l),{isPending:no(s),start:c,stop:l}}const gv=av?window:void 0,mv=av?window.document:void 0;function _v(e){var t;const i=So(e);return null!==(t=null==i?void 0:i.$el)&&void 0!==t?t:i}function vv(...e){const t=Lu(()=>{const t=dv(So(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return i=([e,t,i,a],n,s)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==i?void 0:i.length))return;const o=(r=a,"[object Object]"===sv.call(r)?{...a}:a);var r;const l=e.flatMap(e=>t.flatMap(t=>i.map(i=>((e,t,i,a)=>(e.addEventListener(t,i,a),()=>e.removeEventListener(t,i,a)))(e,t,i,o))));s(()=>{l.forEach(e=>e())})},a={flush:"post"},Rr(()=>{var i,a;return[null!==(i=null===(a=t.value)||void 0===a?void 0:a.map(e=>_v(e)))&&void 0!==i?i:[gv].filter(e=>null!=e),dv(So(t.value?e[1]:e[0])),dv(xo(t.value?e[2]:e[1])),So(t.value?e[3]:e[2])]},i,{...a,immediate:!0});var i,a}function bv(e,t,i={}){const{window:a=gv,ignore:n=[],capture:s=!0,detectIframe:o=!1,controls:r=!1}=i;if(!a)return r?{stop:rv,cancel:rv,trigger:rv}:rv;let l=!0;const c=e=>So(n).some(t=>{if("string"==typeof t)return Array.from(a.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const i=_v(t);return i&&(e.target===i||e.composedPath().includes(i))}});const d=i=>{const a=_v(e);null!=i.target&&(a instanceof Element||!function(e){const t=So(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const i=So(e),a=i.$.subTree&&i.$.subTree.children;return!(null==a||!Array.isArray(a))&&a.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,i))&&a&&a!==i.target&&!i.composedPath().includes(a)&&("detail"in i&&0===i.detail&&(l=!c(i)),l?t(i):l=!0)};let u=!1;const p=[vv(a,"click",e=>{u||(u=!0,setTimeout(()=>{u=!1},0),d(e))},{passive:!0,capture:s}),vv(a,"pointerdown",t=>{const i=_v(e);l=!c(t)&&!(!i||t.composedPath().includes(i))},{passive:!0}),o&&vv(a,"blur",i=>{setTimeout(()=>{const n=_v(e);let s=a.document.activeElement;for(;null==s?void 0:s.shadowRoot;)s=s.shadowRoot.activeElement;"IFRAME"!==(null==s?void 0:s.tagName)||(null==n?void 0:n.contains(a.document.activeElement))||t(i)},0)},{passive:!0})].filter(Boolean),h=()=>p.forEach(e=>e());return r?{stop:h,cancel:()=>{l=!1},trigger:e=>{l=!0,d(e),l=!1}}:h}function yv(){const e=_o(!1),t=_u();return t&&zl(()=>{e.value=!0},t),e}function xv(e){const t=yv();return Lu(()=>(t.value,Boolean(e())))}function Sv(e,t,i={}){const{window:a=gv,...n}=i;let s;const o=xv(()=>a&&"MutationObserver"in a),r=()=>{s&&(s.disconnect(),s=void 0)},l=Rr(Lu(()=>{const t=dv(So(e)).map(_v).filter(nv);return new Set(t)}),e=>{r(),o.value&&e.size&&(s=new MutationObserver(t),e.forEach(e=>s.observe(e,n)))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return ev(c),{isSupported:o,stop:c,takeRecords:()=>null==s?void 0:s.takeRecords()}}const wv=Symbol("vueuse-ssr-width");function Cv(){const e=wr()?iv(wv,null):null;return"number"==typeof e?e:void 0}function Ev(e={}){const{document:t=mv}=e;if(!t)return _o("visible");const i=_o(t.visibilityState);return vv(t,"visibilitychange",()=>{i.value=t.visibilityState},{passive:!0}),i}function kv(e,t,i={}){const{window:a=gv,...n}=i;let s;const o=xv(()=>a&&"ResizeObserver"in a),r=()=>{s&&(s.disconnect(),s=void 0)},l=Rr(Lu(()=>{const t=So(e);return Array.isArray(t)?t.map(e=>_v(e)):[_v(t)]}),e=>{if(r(),o.value&&a){s=new ResizeObserver(t);for(const t of e)t&&s.observe(t,n)}},{immediate:!0,flush:"post"}),c=()=>{r(),l()};return ev(c),{isSupported:o,stop:c}}function Tv(e,t={width:0,height:0},i={}){const{window:a=gv,box:n="content-box"}=i,s=Lu(()=>{var t;return null===(t=_v(e))||void 0===t||null===(t=t.namespaceURI)||void 0===t?void 0:t.includes("svg")}),o=_o(t.width),r=_o(t.height),{stop:l}=kv(e,([t])=>{const i="border-box"===n?t.borderBoxSize:"content-box"===n?t.contentBoxSize:t.devicePixelContentBoxSize;if(a&&s.value){const t=_v(e);if(t){const e=t.getBoundingClientRect();o.value=e.width,r.value=e.height}}else if(i){const e=dv(i);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),r.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,r.value=t.contentRect.height},i);hv(()=>{const i=_v(e);i&&(o.value="offsetWidth"in i?i.offsetWidth:t.width,r.value="offsetHeight"in i?i.offsetHeight:t.height)});const c=Rr(()=>_v(e),e=>{o.value=e?t.width:0,r.value=e?t.height:0});return{width:o,height:r,stop:function(){l(),c()}}}function Av(e,t,i,a={}){var n,s;const{clone:o=!1,passive:r=!1,eventName:l,deep:c=!1,defaultValue:d,shouldEmit:u}=a,p=_u(),h=i||(null==p?void 0:p.emit)||(null==p||null===(n=p.$emit)||void 0===n?void 0:n.bind(p))||(null==p||null===(s=p.proxy)||void 0===s||null===(s=s.$emit)||void 0===s?void 0:s.bind(null==p?void 0:p.proxy));let f=l;t||(t="modelValue"),f=f||`update:${t.toString()}`;const g=e=>{return o?"function"==typeof o?o(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},m=()=>void 0!==e[t]?g(e[t]):d,_=e=>{u?u(e)&&h(f,e):h(f,e)};if(r){const i=mo(m());let a=!1;return Rr(()=>e[t],e=>{a||(a=!0,i.value=g(e),ir(()=>a=!1))}),Rr(i,i=>{a||i===e[t]&&!c||_(i)},{deep:c}),i}return Lu({get:()=>m(),set(e){_(e)}})}function Rv(e={}){const{window:t=gv}=e;if(!t)return _o(!1);const i=_o(t.document.hasFocus()),a={passive:!0};return vv(t,"blur",()=>{i.value=!1},a),vv(t,"focus",()=>{i.value=!0},a),i}function Iv(e={}){const{window:t=gv,initialWidth:i=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:s=!0,type:o="inner"}=e,r=_o(i),l=_o(a),c=()=>{if(t)if("outer"===o)r.value=t.outerWidth,l.value=t.outerHeight;else if("visual"===o&&t.visualViewport){const{width:e,height:i,scale:a}=t.visualViewport;r.value=Math.round(e*a),l.value=Math.round(i*a)}else s?(r.value=t.innerWidth,l.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};c(),hv(c);const d={passive:!0};return vv("resize",c,d),t&&"visual"===o&&t.visualViewport&&vv(t.visualViewport,"resize",c,d),n&&Rr(function(e,t={}){const{window:i=gv,ssrWidth:a=Cv()}=t,n=xv(()=>i&&"matchMedia"in i&&"function"==typeof i.matchMedia),s=_o("number"==typeof a),o=_o(),r=_o(!1);return kr(()=>{if(s.value)return s.value=!n.value,void(r.value=So(e).split(",").some(e=>{const t=e.includes("not all"),i=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),n=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let s=Boolean(i||n);return i&&s&&(s=a>=cv(i[1])),n&&s&&(s=a<=cv(n[1])),t?!s:s}));n.value&&(o.value=i.matchMedia(So(e)),r.value=o.value.matches)}),vv(o,"change",e=>{r.value=e.matches},{passive:!0}),Lu(()=>r.value)}("(orientation: portrait)"),()=>c()),{width:r,height:l}}const Dv=({from:e,replacement:t,scope:i,version:a,ref:n,type:s="API"},o)=>{Rr(()=>xo(o),o=>{o&&K_(i,`[${s}] ${e} is about to be deprecated in version ${a}, please use ${t} instead.\nFor more detail, please visit: ${n}\n`)},{immediate:!0})},Ov=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot,Mv=e=>"undefined"!=typeof Element&&e instanceof Element,Nv=e=>Array.from(e.querySelectorAll('a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])')).filter(e=>Lv(e)&&(e=>"fixed"!==getComputedStyle(e).position&&null!==e.offsetParent)(e)),Lv=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Pv=e=>!e.getAttribute("aria-owns"),Fv=(e,t)=>{if(!e||!e.focus)return;let i=!1;!Mv(e)||Lv(e)||e.getAttribute("tabindex")||(e.setAttribute("tabindex","-1"),i=!0),e.focus(t),Mv(e)&&i&&e.removeAttribute("tabindex")},Bv=e=>{e&&(Fv(e),!Pv(e)&&e.click())},$v=()=>av&&/firefox/i.test(window.navigator.userAgent),Vv=e=>Y(e),Uv=(e="")=>e.split(" ").filter(e=>!!e.trim()),Hv=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},zv=(e,t)=>{e&&t.trim()&&e.classList.add(...Uv(t))},Yv=(e,t)=>{e&&t.trim()&&e.classList.remove(...Uv(t))},Gv=(e,t)=>{var i;if(!av||!e||!t||Ov(e))return"";let a=U(t);"float"===a&&(a="cssFloat");try{const t=e.style[a];if(t)return t;const n=null==(i=document.defaultView)?void 0:i.getComputedStyle(e,"");return n?n[a]:""}catch{return e.style[a]}};function Wv(e,t="px"){return e||0===e?On(e)||R(i=e)&&!Number.isNaN(Number(i))?`${e}${t}`:R(e)?e:void K_("utils/dom/style","binding value must be a string or number"):"";var i}const jv=(e,t,i,a)=>{const n={offsetX:0,offsetY:0},s=mo(!1),o=(t,i)=>{if(e.value){const{offsetX:s,offsetY:o}=n,r=e.value.getBoundingClientRect(),l=Math.max(r.left,0),c=Math.max(r.top,0),d=r.width,u=r.height,p=document.documentElement.clientWidth,h=document.documentElement.clientHeight,f=-l+s,g=-c+o,m=p-l-d+s,_=h-c-(u<h?u:0)+o;(null==a?void 0:a.value)||(t=$i(t,f,m),i=$i(i,g,_)),n.offsetX=t,n.offsetY=i,e.value.style.transform=`translate(${Wv(t)}, ${Wv(i)})`}},r=e=>{const t=e.clientX,i=e.clientY,{offsetX:a,offsetY:r}=n,l=e=>{s.value||(s.value=!0),o(a+e.clientX-t,r+e.clientY-i)},c=()=>{s.value=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",r),window.removeEventListener("resize",c))},c=()=>{const{offsetX:e,offsetY:t}=n;o(e,t)};return zl(()=>{kr(()=>{i.value?t.value&&e.value&&(t.value.addEventListener("mousedown",r),window.addEventListener("resize",c)):l()})}),Wl(()=>{l()}),{isDragging:s,resetPosition:()=>{n.offsetX=0,n.offsetY=0,e.value&&(e.value.style.transform="")},updatePosition:c}};var qv={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const Kv=e=>(t,i)=>Xv(t,i,xo(e)),Xv=(e,t,i)=>Ci(i,e,e).replace(/\{(\w+)\}/g,(e,i)=>`${(null==t?void 0:t[i])??`{${i}}`}`),Zv=Symbol("localeContextKey"),Qv=e=>{const t=e||Sr(Zv,mo());return(e=>({lang:Lu(()=>xo(e).name),locale:go(e)?e:mo(e),t:Kv(e)}))(Lu(()=>t.value||qv))},Jv=(e,t,i,a,n)=>{let s=`${e}-${t}`;return i&&(s+=`-${i}`),a&&(s+=`__${a}`),n&&(s+=`--${n}`),s},eb=Symbol("namespaceContextKey"),tb=e=>{const t=e||(_u()?Sr(eb,mo("el")):mo("el"));return Lu(()=>xo(t)||"el")},ib=(e,t)=>{const i=tb(t);return{namespace:i,b:(t="")=>Jv(i.value,e,t,"",""),e:t=>t?Jv(i.value,e,"",t,""):"",m:t=>t?Jv(i.value,e,"","",t):"",be:(t,a)=>t&&a?Jv(i.value,e,t,a,""):"",em:(t,a)=>t&&a?Jv(i.value,e,"",t,a):"",bm:(t,a)=>t&&a?Jv(i.value,e,t,"",a):"",bem:(t,a,n)=>t&&a&&n?Jv(i.value,e,t,a,n):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const t={};for(const a in e)e[a]&&(t[`--${i.value}-${a}`]=e[a]);return t},cssVarName:e=>`--${i.value}-${e}`,cssVarBlock:t=>{const a={};for(const n in t)t[n]&&(a[`--${i.value}-${e}-${n}`]=t[n]);return a},cssVarBlockName:t=>`--${i.value}-${e}-${t}`}};const ab=e=>av?window.requestAnimationFrame(e):setTimeout(e,16),nb=e=>av?window.cancelAnimationFrame(e):clearTimeout(e);let sb;function ob(e,t){if(!av)return;if(!t)return void(e.scrollTop=0);const i=[];let a=t.offsetParent;for(;null!==a&&e!==a&&e.contains(a);)i.push(a),a=a.offsetParent;const n=t.offsetTop+i.reduce((e,t)=>e+t.offsetTop,0),s=n+t.offsetHeight,o=e.scrollTop,r=o+e.clientHeight;n<o?e.scrollTop=n:s>r&&(e.scrollTop=s-e.clientHeight)}const rb=(e,t={})=>{go(e)||q_("[useLockscreen]","You need to pass a ref param to this function");const i=t.ns||ib("popup"),a=Lu(()=>i.bm("parent","hidden"));let n=0,s=!1,o="0",r=!1;const l=()=>{r||(r=!0,setTimeout(()=>{"undefined"!=typeof document&&s&&document&&(document.body.style.width=o,Yv(document.body,a.value))},200))};Rr(e,e=>{if(!e)return void l();r=!1,s=!Hv(document.body,a.value),s&&(o=document.body.style.width,zv(document.body,a.value)),n=(e=>{var t;if(!av)return 0;if(void 0!==sb)return sb;const i=document.createElement("div");i.className=`${e}-scrollbar__wrap`,i.style.visibility="hidden",i.style.width="100px",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const a=i.offsetWidth;i.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",i.appendChild(n);const s=n.offsetWidth;return null==(t=i.parentNode)||t.removeChild(i),sb=a-s,sb})(i.namespace.value);const t=document.documentElement.clientHeight<document.body.scrollHeight,c=Gv(document.body,"overflowY");n>0&&(t||"scroll"===c)&&s&&(document.body.style.width=`calc(100% - ${n}px)`)}),Yn(()=>l())},lb=(e,t,{checkForDefaultPrevented:i=!0}={})=>a=>{const n=null==e?void 0:e(a);if(!1===i||!n)return null==t?void 0:t(a)},cb=e=>t=>"mouse"===t.pointerType?e(t):void 0,db=e=>{if(e.code&&"Unidentified"!==e.code)return e.code;const t=ub(e);return t?Object.values(l).includes(t)?t:" "===t?l.space:"":""},ub=e=>{let t=e.key&&"Unidentified"!==e.key?e.key:"";if(!t&&"keyup"===e.type&&av&&/android/i.test(window.navigator.userAgent)){const i=e.target;t=i.value.charAt(i.selectionStart-1)}return t},pb=G_({type:Boolean,default:null}),hb=G_({type:Function}),fb=e=>{const t=_u();return Lu(()=>{var i,a;return null==(a=null==(i=null==t?void 0:t.proxy)?void 0:i.$props)?void 0:a[e]})};var gb="top",mb="bottom",_b="right",vb="left",bb="auto",yb=[gb,mb,_b,vb],xb="start",Sb="end",wb="viewport",Cb="popper",Eb=yb.reduce(function(e,t){return e.concat([t+"-"+xb,t+"-"+Sb])},[]),kb=[].concat(yb,[bb]).reduce(function(e,t){return e.concat([t,t+"-"+xb,t+"-"+Sb])},[]),Tb=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ab(e){return e?(e.nodeName||"").toLowerCase():null}function Rb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ib(e){return e instanceof Rb(e).Element||e instanceof Element}function Db(e){return e instanceof Rb(e).HTMLElement||e instanceof HTMLElement}function Ob(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Rb(e).ShadowRoot||e instanceof ShadowRoot)}var Mb={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},a=t.attributes[e]||{},n=t.elements[e];!Db(n)||!Ab(n)||(Object.assign(n.style,i),Object.keys(a).forEach(function(e){var t=a[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var a=t.elements[e],n=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});!Db(a)||!Ab(a)||(Object.assign(a.style,s),Object.keys(n).forEach(function(e){a.removeAttribute(e)}))})}},requires:["computeStyles"]};function Nb(e){return e.split("-")[0]}var Lb=Math.max,Pb=Math.min,Fb=Math.round;function Bb(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $b(){return!/^((?!chrome|android).)*safari/i.test(Bb())}function Vb(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),n=1,s=1;t&&Db(e)&&(n=e.offsetWidth>0&&Fb(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Fb(a.height)/e.offsetHeight||1);var o=(Ib(e)?Rb(e):window).visualViewport,r=!$b()&&i,l=(a.left+(r&&o?o.offsetLeft:0))/n,c=(a.top+(r&&o?o.offsetTop:0))/s,d=a.width/n,u=a.height/s;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Ub(e){var t=Vb(e),i=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:a}}function Hb(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ob(i)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function zb(e){return Rb(e).getComputedStyle(e)}function Yb(e){return["table","td","th"].indexOf(Ab(e))>=0}function Gb(e){return((Ib(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wb(e){return"html"===Ab(e)?e:e.assignedSlot||e.parentNode||(Ob(e)?e.host:null)||Gb(e)}function jb(e){return Db(e)&&"fixed"!==zb(e).position?e.offsetParent:null}function qb(e){for(var t=Rb(e),i=jb(e);i&&Yb(i)&&"static"===zb(i).position;)i=jb(i);return i&&("html"===Ab(i)||"body"===Ab(i)&&"static"===zb(i).position)?t:i||function(e){var t=/firefox/i.test(Bb());if(/Trident/i.test(Bb())&&Db(e)&&"fixed"===zb(e).position)return null;var i=Wb(e);for(Ob(i)&&(i=i.host);Db(i)&&["html","body"].indexOf(Ab(i))<0;){var a=zb(i);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return i;i=i.parentNode}return null}(e)||t}function Kb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xb(e,t,i){return Lb(e,Pb(t,i))}function Zb(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Qb(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}var Jb={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,a=e.name,n=e.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,r=Nb(i.placement),l=Kb(r),c=[vb,_b].indexOf(r)>=0?"height":"width";if(s&&o){var d=function(e,t){return Zb("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Qb(e,yb))}(n.padding,i),u=Ub(s),p="y"===l?gb:vb,h="y"===l?mb:_b,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],g=o[l]-i.rects.reference[l],m=qb(s),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,b=d[p],y=_-u[c]-d[h],x=_/2-u[c]/2+v,S=Xb(b,x,y),w=l;i.modifiersData[a]=((t={})[w]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,i=e.options.element,a=void 0===i?"[data-popper-arrow]":i;null!=a&&("string"==typeof a&&!(a=t.elements.popper.querySelector(a))||Hb(t.elements.popper,a)&&(t.elements.arrow=a))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ey(e){return e.split("-")[1]}var ty={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iy(e){var t,i=e.popper,a=e.popperRect,n=e.placement,s=e.variation,o=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=o.x,h=void 0===p?0:p,f=o.y,g=void 0===f?0:f,m="function"==typeof d?d({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var _=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),b=vb,y=gb,x=window;if(c){var S=qb(i),w="clientHeight",C="clientWidth";if(S===Rb(i)&&("static"!==zb(S=Gb(i)).position&&"absolute"===r&&(w="scrollHeight",C="scrollWidth")),n===gb||(n===vb||n===_b)&&s===Sb)y=mb,g-=(u&&S===x&&x.visualViewport?x.visualViewport.height:S[w])-a.height,g*=l?1:-1;if(n===vb||(n===gb||n===mb)&&s===Sb)b=_b,h-=(u&&S===x&&x.visualViewport?x.visualViewport.width:S[C])-a.width,h*=l?1:-1}var E,k=Object.assign({position:r},c&&ty),T=!0===d?function(e,t){var i=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:Fb(i*n)/n||0,y:Fb(a*n)/n||0}}({x:h,y:g},Rb(i)):{x:h,y:g};return h=T.x,g=T.y,l?Object.assign({},k,((E={})[y]=v?"0":"",E[b]=_?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",E)):Object.assign({},k,((t={})[y]=v?g+"px":"",t[b]=_?h+"px":"",t.transform="",t))}var ay={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,a=i.gpuAcceleration,n=void 0===a||a,s=i.adaptive,o=void 0===s||s,r=i.roundOffsets,l=void 0===r||r,c={placement:Nb(t.placement),variation:ey(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,iy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,iy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ny={passive:!0};var sy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,a=e.options,n=a.scroll,s=void 0===n||n,o=a.resize,r=void 0===o||o,l=Rb(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",i.update,ny)}),r&&l.addEventListener("resize",i.update,ny),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",i.update,ny)}),r&&l.removeEventListener("resize",i.update,ny)}},data:{}},oy={left:"right",right:"left",bottom:"top",top:"bottom"};function ry(e){return e.replace(/left|right|bottom|top/g,function(e){return oy[e]})}var ly={start:"end",end:"start"};function cy(e){return e.replace(/start|end/g,function(e){return ly[e]})}function dy(e){var t=Rb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function uy(e){return Vb(Gb(e)).left+dy(e).scrollLeft}function py(e){var t=zb(e),i=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+a)}function hy(e){return["html","body","#document"].indexOf(Ab(e))>=0?e.ownerDocument.body:Db(e)&&py(e)?e:hy(Wb(e))}function fy(e,t){var i;void 0===t&&(t=[]);var a=hy(e),n=a===(null==(i=e.ownerDocument)?void 0:i.body),s=Rb(a),o=n?[s].concat(s.visualViewport||[],py(a)?a:[]):a,r=t.concat(o);return n?r:r.concat(fy(Wb(o)))}function gy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function my(e,t,i){return t===wb?gy(function(e,t){var i=Rb(e),a=Gb(e),n=i.visualViewport,s=a.clientWidth,o=a.clientHeight,r=0,l=0;if(n){s=n.width,o=n.height;var c=$b();(c||!c&&"fixed"===t)&&(r=n.offsetLeft,l=n.offsetTop)}return{width:s,height:o,x:r+uy(e),y:l}}(e,i)):Ib(t)?function(e,t){var i=Vb(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):gy(function(e){var t,i=Gb(e),a=dy(e),n=null==(t=e.ownerDocument)?void 0:t.body,s=Lb(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Lb(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-a.scrollLeft+uy(e),l=-a.scrollTop;return"rtl"===zb(n||i).direction&&(r+=Lb(i.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:r,y:l}}(Gb(e)))}function _y(e,t,i,a){var n="clippingParents"===t?function(e){var t=fy(Wb(e)),i=["absolute","fixed"].indexOf(zb(e).position)>=0&&Db(e)?qb(e):e;return Ib(i)?t.filter(function(e){return Ib(e)&&Hb(e,i)&&"body"!==Ab(e)}):[]}(e):[].concat(t),s=[].concat(n,[i]),o=s[0],r=s.reduce(function(t,i){var n=my(e,i,a);return t.top=Lb(n.top,t.top),t.right=Pb(n.right,t.right),t.bottom=Pb(n.bottom,t.bottom),t.left=Lb(n.left,t.left),t},my(e,o,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function vy(e){var t,i=e.reference,a=e.element,n=e.placement,s=n?Nb(n):null,o=n?ey(n):null,r=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2;switch(s){case gb:t={x:r,y:i.y-a.height};break;case mb:t={x:r,y:i.y+i.height};break;case _b:t={x:i.x+i.width,y:l};break;case vb:t={x:i.x-a.width,y:l};break;default:t={x:i.x,y:i.y}}var c=s?Kb(s):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case xb:t[c]=t[c]-(i[d]/2-a[d]/2);break;case Sb:t[c]=t[c]+(i[d]/2-a[d]/2)}}return t}function by(e,t){void 0===t&&(t={});var i=t,a=i.placement,n=void 0===a?e.placement:a,s=i.strategy,o=void 0===s?e.strategy:s,r=i.boundary,l=void 0===r?"clippingParents":r,c=i.rootBoundary,d=void 0===c?wb:c,u=i.elementContext,p=void 0===u?Cb:u,h=i.altBoundary,f=void 0!==h&&h,g=i.padding,m=void 0===g?0:g,_=Zb("number"!=typeof m?m:Qb(m,yb)),v=p===Cb?"reference":Cb,b=e.rects.popper,y=e.elements[f?v:p],x=_y(Ib(y)?y:y.contextElement||Gb(e.elements.popper),l,d,o),S=Vb(e.elements.reference),w=vy({reference:S,element:b,placement:n}),C=gy(Object.assign({},b,w)),E=p===Cb?C:S,k={top:x.top-E.top+_.top,bottom:E.bottom-x.bottom+_.bottom,left:x.left-E.left+_.left,right:E.right-x.right+_.right},T=e.modifiersData.offset;if(p===Cb&&T){var A=T[n];Object.keys(k).forEach(function(e){var t=[_b,mb].indexOf(e)>=0?1:-1,i=[gb,mb].indexOf(e)>=0?"y":"x";k[e]+=A[i]*t})}return k}var yy={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=i.mainAxis,s=void 0===n||n,o=i.altAxis,r=void 0===o||o,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,g=i.allowedAutoPlacements,m=t.options.placement,_=Nb(m),v=l||(_===m||!f?[ry(m)]:function(e){if(Nb(e)===bb)return[];var t=ry(e);return[cy(e),t,cy(t)]}(m)),b=[m].concat(v).reduce(function(e,i){return e.concat(Nb(i)===bb?function(e,t){void 0===t&&(t={});var i=t,a=i.placement,n=i.boundary,s=i.rootBoundary,o=i.padding,r=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?kb:l,d=ey(a),u=d?r?Eb:Eb.filter(function(e){return ey(e)===d}):yb,p=u.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=u);var h=p.reduce(function(t,i){return t[i]=by(e,{placement:i,boundary:n,rootBoundary:s,padding:o})[Nb(i)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)},[]),y=t.rects.reference,x=t.rects.popper,S=new Map,w=!0,C=b[0],E=0;E<b.length;E++){var k=b[E],T=Nb(k),A=ey(k)===xb,R=[gb,mb].indexOf(T)>=0,I=R?"width":"height",D=by(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),O=R?A?_b:vb:A?mb:gb;y[I]>x[I]&&(O=ry(O));var M=ry(O),N=[];if(s&&N.push(D[T]<=0),r&&N.push(D[O]<=0,D[M]<=0),N.every(function(e){return e})){C=k,w=!1;break}S.set(k,N)}if(w)for(var L=function(e){var t=b.find(function(t){var i=S.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},P=f?3:1;P>0;P--){if("break"===L(P))break}t.placement!==C&&(t.modifiersData[a]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xy(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Sy(e){return[gb,_b,mb,vb].some(function(t){return e[t]>=0})}var wy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,a=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=by(t,{elementContext:"reference"}),r=by(t,{altBoundary:!0}),l=xy(o,a),c=xy(r,n,s),d=Sy(l),u=Sy(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};var Cy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,a=e.name,n=i.offset,s=void 0===n?[0,0]:n,o=kb.reduce(function(e,i){return e[i]=function(e,t,i){var a=Nb(e),n=[vb,gb].indexOf(a)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=s[0],r=s[1];return o=o||0,r=(r||0)*n,[vb,_b].indexOf(a)>=0?{x:r,y:o}:{x:o,y:r}}(i,t.rects,s),e},{}),r=o[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=o}};var Ey={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=vy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var ky={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,a=e.name,n=i.mainAxis,s=void 0===n||n,o=i.altAxis,r=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,p=i.tether,h=void 0===p||p,f=i.tetherOffset,g=void 0===f?0:f,m=by(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),_=Nb(t.placement),v=ey(t.placement),b=!v,y=Kb(_),x=function(e){return"x"===e?"y":"x"}(y),S=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(s){var R,I="y"===y?gb:vb,D="y"===y?mb:_b,O="y"===y?"height":"width",M=S[y],N=M+m[I],L=M-m[D],P=h?-C[O]/2:0,F=v===xb?w[O]:C[O],B=v===xb?-C[O]:-w[O],$=t.elements.arrow,V=h&&$?Ub($):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[I],z=U[D],Y=Xb(0,w[O],V[O]),G=b?w[O]/2-P-Y-H-k.mainAxis:F-Y-H-k.mainAxis,W=b?-w[O]/2+P+Y+z+k.mainAxis:B+Y+z+k.mainAxis,j=t.elements.arrow&&qb(t.elements.arrow),q=j?"y"===y?j.clientTop||0:j.clientLeft||0:0,K=null!=(R=null==T?void 0:T[y])?R:0,X=M+W-K,Z=Xb(h?Pb(N,M+G-K-q):N,M,h?Lb(L,X):L);S[y]=Z,A[y]=Z-M}if(r){var Q,J="x"===y?gb:vb,ee="x"===y?mb:_b,te=S[x],ie="y"===x?"height":"width",ae=te+m[J],ne=te-m[ee],se=-1!==[gb,vb].indexOf(_),oe=null!=(Q=null==T?void 0:T[x])?Q:0,re=se?ae:te-w[ie]-C[ie]-oe+k.altAxis,le=se?te+w[ie]+C[ie]-oe-k.altAxis:ne,ce=h&&se?function(e,t,i){var a=Xb(e,t,i);return a>i?i:a}(re,te,le):Xb(h?re:ae,te,h?le:ne);S[x]=ce,A[x]=ce-te}t.modifiersData[a]=A}},requiresIfExists:["offset"]};function Ty(e,t,i){void 0===i&&(i=!1);var a=Db(t),n=Db(t)&&function(e){var t=e.getBoundingClientRect(),i=Fb(t.width)/e.offsetWidth||1,a=Fb(t.height)/e.offsetHeight||1;return 1!==i||1!==a}(t),s=Gb(t),o=Vb(e,n,i),r={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!i)&&(("body"!==Ab(t)||py(s))&&(r=function(e){return e!==Rb(e)&&Db(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):dy(e)}(t)),Db(t)?((l=Vb(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=uy(s))),{x:o.left+r.scrollLeft-l.x,y:o.top+r.scrollTop-l.y,width:o.width,height:o.height}}function Ay(e){var t=new Map,i=new Set,a=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var a=t.get(e);a&&n(a)}}),a.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||n(e)}),a}function Ry(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var Iy={placement:"bottom",modifiers:[],strategy:"absolute"};function Dy(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Oy(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,a=void 0===i?[]:i,n=t.defaultOptions,s=void 0===n?Iy:n;return function(e,t,i){void 0===i&&(i=s);var n={placement:"bottom",orderedModifiers:[],options:Object.assign({},Iy,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],r=!1,l={state:n,setOptions:function(i){var r="function"==typeof i?i(n.options):i;c(),n.options=Object.assign({},s,n.options,r),n.scrollParents={reference:Ib(e)?fy(e):e.contextElement?fy(e.contextElement):[],popper:fy(t)};var d=function(e){var t=Ay(e);return Tb.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}(function(e){var t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(a,n.options.modifiers)));return n.orderedModifiers=d.filter(function(e){return e.enabled}),n.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,a=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var r=s({state:n,name:t,instance:l,options:a}),c=function(){};o.push(r||c)}}),l.update()},forceUpdate:function(){if(!r){var e=n.elements,t=e.reference,i=e.popper;if(Dy(t,i)){n.rects={reference:Ty(t,qb(i),"fixed"===n.options.strategy),popper:Ub(i)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var a=0;a<n.orderedModifiers.length;a++)if(!0!==n.reset){var s=n.orderedModifiers[a],o=s.fn,c=s.options,d=void 0===c?{}:c,u=s.name;"function"==typeof o&&(n=o({state:n,options:d,name:u,instance:l})||n)}else n.reset=!1,a=-1}}},update:Ry(function(){return new Promise(function(e){l.forceUpdate(),e(n)})}),destroy:function(){c(),r=!0}};if(!Dy(e,t))return l;function c(){o.forEach(function(e){return e()}),o=[]}return l.setOptions(i).then(function(e){!r&&i.onFirstUpdate&&i.onFirstUpdate(e)}),l}}Oy(),Oy({defaultModifiers:[sy,Ey,ay,Mb]});var My=Oy({defaultModifiers:[sy,Ey,ay,Mb,Cy,yy,ky,Jb,wy]});const Ny=(e,t,i={})=>{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements);return{styles:gn(t.map(t=>[t,e.styles[t]||{}])),attributes:gn(t.map(t=>[t,e.attributes[t]]))}}(e);Object.assign(o.value,t)},requires:["computeStyles"]},n=Lu(()=>{const{onFirstUpdate:e,placement:t,strategy:n,modifiers:s}=xo(i);return{onFirstUpdate:e,placement:t||"bottom",strategy:n||"absolute",modifiers:[...s||[],a,{name:"applyStyles",enabled:!1}]}}),s=_o(),o=mo({styles:{popper:{position:xo(n).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),r=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Rr(n,e=>{const t=xo(s);t&&t.setOptions(e)},{deep:!0}),Rr([e,t],([e,t])=>{r(),e&&t&&(s.value=My(e,t,xo(n)))}),Wl(()=>{r()}),{state:Lu(()=>{var e;return{...(null==(e=xo(s))?void 0:e.state)||{}}}),styles:Lu(()=>xo(o).styles),attributes:Lu(()=>xo(o).attributes),update:()=>{var e;return null==(e=xo(s))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=xo(s))?void 0:e.forceUpdate()},instanceRef:Lu(()=>xo(s))}};const Ly=e=>{if(!e)return{onClick:m,onMousedown:m,onMouseup:m};let t=!1,i=!1;return{onClick:a=>{t&&i&&e(a),t=i=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{i=e.target===e.currentTarget}}};function Py(){let e;const t=()=>{void 0!==e&&(globalThis.clearTimeout(e),e=void 0)};return ev(()=>t()),{registerTimeout:(i,a)=>{t(),e=globalThis.setTimeout(i,a)},cancelTimeout:t}}const Fy={prefix:Math.floor(1e4*Math.random()),current:0},By=Symbol("elIdInjection"),$y=()=>_u()?Sr(By,Fy):Fy,Vy=e=>{const t=$y();av||t!==Fy||K_("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const i=tb();return J_(()=>xo(e)||`${i.value}-id-${t.prefix}-${t.current++}`)};let Uy=[];const Hy=e=>{db(e)===l.esc&&Uy.forEach(t=>t(e))},zy=()=>{const e=tb(),t=$y(),i=Lu(()=>`${e.value}-popper-container-${t.prefix}`);return{id:i,selector:Lu(()=>`#${i.value}`)}},Yy=()=>{const{id:e,selector:t}=zy();return Hl(()=>{av&&(document.body.querySelector(t.value)||(e=>{const t=document.createElement("div");t.id=e,document.body.appendChild(t)})(e.value))}),{id:e,selector:t}},Gy=W_({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Wy=Symbol("elForwardRef"),jy={current:0},qy=mo(0),Ky=Symbol("elZIndexContextKey"),Xy=Symbol("zIndexContextKey"),Zy=e=>{const t=_u()?Sr(Ky,jy):jy,i=e||(_u()?Sr(Xy,void 0):void 0),a=Lu(()=>{const e=xo(i);return On(e)?e:2e3}),n=Lu(()=>a.value+qy.value);return av||Sr(Ky)||K_("ZIndexInjection","Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })"),{initialZIndex:a,currentZIndex:n,nextZIndex:()=>(t.current++,qy.value=t.current,n.value)}};const Qy=e=>{const t=C(e)?e:[e],i=[];return t.forEach(e=>{var t;C(e)?i.push(...Qy(e)):Xd(e)&&(null==(t=e.component)?void 0:t.subTree)?i.push(e,...Qy(e.component.subTree)):Xd(e)&&C(e.children)?i.push(...Qy(e.children)):Xd(e)&&2===e.shapeFlag?i.push(...Qy(e.type())):i.push(e)}),i},Jy=(e,t)=>{const i=_o({}),a=_o([]),n=new WeakMap,s=()=>{a.value=((e,t,i)=>Qy(e.subTree).filter(e=>{var i;return Xd(e)&&(null==(i=e.type)?void 0:i.name)===t&&!!e.component}).map(e=>e.component.uid).map(e=>i[e]).filter(e=>!!e))(e,t,i.value)},o=e=>e.render();return{children:a,addChild:e=>{i.value[e.uid]=e,yo(i),zl(()=>{const t=e.getVnode().el,a=t.parentNode;if(!n.has(a)){n.set(a,[]);const e=a.insertBefore.bind(a);a.insertBefore=(t,s)=>(n.get(a).some(e=>t===e||s===e)&&yo(i),e(t,s))}n.get(a).push(t)})},removeChild:e=>{delete i.value[e.uid],yo(i);const t=e.getVnode().el,a=t.parentNode,s=n.get(a),o=s.indexOf(t);s.splice(o,1)},ChildrenSorter:sl({setup:(e,{slots:t})=>()=>(s(),t.default?Pu(o,{render:t.default}):null)})}},ex=G_({type:String,values:p,required:!1}),tx=Symbol("size"),ix=()=>{const e=Sr(tx,{});return Lu(()=>xo(e.size)||"")};function ax(e,{disabled:t,beforeFocus:i,afterFocus:a,beforeBlur:n,afterBlur:s}={}){const{emit:o}=_u(),r=_o(),l=mo(!1),c=e=>{const n=!!A(i)&&i(e);xo(t)||l.value||n||(l.value=!0,o("focus",e),null==a||a())},d=e=>{var i;const a=!!A(n)&&n(e);xo(t)||e.relatedTarget&&(null==(i=r.value)?void 0:i.contains(e.relatedTarget))||a||(l.value=!1,o("blur",e),null==s||s())};return Rr([r,()=>xo(t)],([e,t])=>{e&&(t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),vv(r,"focus",c,!0),vv(r,"blur",d,!0),vv(r,"click",i=>{var a,n;xo(t)||Lv(i.target)||(null==(a=r.value)?void 0:a.contains(document.activeElement))&&r.value!==document.activeElement||null==(n=e.value)||n.focus()},!0),{isFocused:l,wrapperRef:r,handleFocus:c,handleBlur:d}}function nx({afterComposition:e,emit:t}){const i=mo(!1),a=e=>{null==t||t("compositionupdate",e),i.value=!0},n=a=>{null==t||t("compositionend",a),i.value&&(i.value=!1,ir(()=>e(a)))};return{isComposing:i,handleComposition:e=>{"compositionend"===e.type?n(e):a(e)},handleCompositionStart:e=>{null==t||t("compositionstart",e),i.value=!0},handleCompositionUpdate:a,handleCompositionEnd:n}}const sx=Symbol("emptyValuesContextKey"),ox=["",void 0,null],rx=W_({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>(e=A(e)?e():e,C(e)?e.every(e=>!e):!e)}}),lx=(e,t)=>{const i=_u()?Sr(sx,mo({})):mo({}),a=Lu(()=>e.emptyValues||i.value.emptyValues||ox),n=Lu(()=>A(e.valueOnClear)?e.valueOnClear():void 0!==e.valueOnClear?e.valueOnClear:A(i.value.valueOnClear)?i.value.valueOnClear():void 0!==i.value.valueOnClear?i.value.valueOnClear:void 0!==t?t:void 0),s=e=>{let t=!0;return t=C(e)?a.value.some(t=>_n(e,t)):a.value.includes(e),t};return s(n.value)||K_("use-empty-values","value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:n,isEmptyValue:s}},cx=W_({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),dx=e=>Rn(cx,e),ux=e=>{const t=e.props,i=C(t)?gn(t.map(e=>[e,{}])):t;e.setPropsDefaults=t=>{if(i){for(const[e,a]of Object.entries(t)){const t=i[e];w(i,e)&&(Fi(t)?i[e]={...t,default:a}:i[e]={type:t,default:a})}e.props=i}}},px=(e,t)=>{if(e.install=i=>{for(const a of[e,...Object.values(t??{})])i.component(a.name,a)},t)for(const[i,a]of Object.entries(t))e[i]=a;return ux(e),e},hx=(e,t)=>(e.install=i=>{e._context=i._context,i.config.globalProperties[t]=e},e),fx=e=>(e.install=m,ux(e),e);var gx=sl({name:"Aim",__name:"aim",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),tu("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}),mx=sl({name:"AlarmClock",__name:"alarm-clock",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),tu("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}),_x=sl({name:"ArrowDown",__name:"arrow-down",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}),vx=sl({name:"ArrowLeft",__name:"arrow-left",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}),bx=sl({name:"ArrowRight",__name:"arrow-right",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}),yx=sl({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),xx=sl({name:"Box",__name:"box",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),tu("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),tu("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}),Sx=sl({name:"Calendar",__name:"calendar",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}),Cx=sl({name:"Camera",__name:"camera",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}),Ex=sl({name:"CaretBottom",__name:"caret-bottom",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}),kx=sl({name:"CaretRight",__name:"caret-right",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}),Tx=sl({name:"CaretTop",__name:"caret-top",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}),Ax=sl({name:"ChatLineRound",__name:"chat-line-round",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),tu("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}),Rx=sl({name:"ChatLineSquare",__name:"chat-line-square",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),tu("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}),Ix=sl({name:"Check",__name:"check",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}),Dx=sl({name:"CircleCheck",__name:"circle-check",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),tu("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}),Ox=sl({name:"CircleCloseFilled",__name:"circle-close-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}),Mx=sl({name:"CircleClose",__name:"circle-close",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),tu("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),Nx=sl({name:"Clock",__name:"clock",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),tu("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),tu("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}),Lx=sl({name:"Close",__name:"close",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}),Px=sl({name:"CollectionTag",__name:"collection-tag",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}),Fx=sl({name:"Connection",__name:"connection",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),tu("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}),Bx=sl({name:"Cpu",__name:"cpu",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),tu("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}),$x=sl({name:"DArrowLeft",__name:"d-arrow-left",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}),Vx=sl({name:"DArrowRight",__name:"d-arrow-right",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}),Ux=sl({name:"DataAnalysis",__name:"data-analysis",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}),Hx=sl({name:"Delete",__name:"delete",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}),zx=sl({name:"DocumentCopy",__name:"document-copy",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}),Yx=sl({name:"Document",__name:"document",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}),Gx=sl({name:"Download",__name:"download",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}),Wx=sl({name:"EditPen",__name:"edit-pen",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}),jx=sl({name:"Filter",__name:"filter",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}),qx=sl({name:"Finished",__name:"finished",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}),Kx=sl({name:"Flag",__name:"flag",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}),Xx=sl({name:"FolderAdd",__name:"folder-add",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}),Zx=sl({name:"FolderChecked",__name:"folder-checked",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}),Qx=sl({name:"FolderOpened",__name:"folder-opened",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}),Jx=sl({name:"Folder",__name:"folder",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}),eS=sl({name:"Goods",__name:"goods",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}),tS=sl({name:"Hide",__name:"hide",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),tu("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}),iS=sl({name:"InfoFilled",__name:"info-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}),aS=sl({name:"Key",__name:"key",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}),nS=sl({name:"Lightning",__name:"lightning",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),tu("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}),sS=sl({name:"Link",__name:"link",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}),oS=sl({name:"Loading",__name:"loading",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}),rS=sl({name:"Lock",__name:"lock",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),tu("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}),lS=sl({name:"MagicStick",__name:"magic-stick",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}),cS=sl({name:"Menu",__name:"menu",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}),dS=sl({name:"Message",__name:"message",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),tu("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}),uS=sl({name:"MoreFilled",__name:"more-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}),pS=sl({name:"More",__name:"more",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}),hS=sl({name:"MuteNotification",__name:"mute-notification",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),tu("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}),fS=sl({name:"Notebook",__name:"notebook",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),tu("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}),gS=sl({name:"OfficeBuilding",__name:"office-building",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),tu("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),tu("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}),mS=sl({name:"Paperclip",__name:"paperclip",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}),_S=sl({name:"PictureFilled",__name:"picture-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}),vS=sl({name:"Plus",__name:"plus",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}),bS=sl({name:"PriceTag",__name:"price-tag",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),tu("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}),yS=sl({name:"QuestionFilled",__name:"question-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}),xS=sl({name:"RefreshRight",__name:"refresh-right",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}),SS=sl({name:"Refresh",__name:"refresh",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}),wS=sl({name:"Remove",__name:"remove",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),tu("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),CS=sl({name:"Search",__name:"search",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),ES=sl({name:"Select",__name:"select",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}),kS=sl({name:"Service",__name:"service",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}),TS=sl({name:"Setting",__name:"setting",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}),AS=sl({name:"ShoppingBag",__name:"shopping-bag",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),tu("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}),RS=sl({name:"ShoppingCart",__name:"shopping-cart",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}),IS=sl({name:"Star",__name:"star",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}),DS=sl({name:"Stopwatch",__name:"stopwatch",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),tu("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}),OS=sl({name:"SuccessFilled",__name:"success-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}),MS=sl({name:"Tickets",__name:"tickets",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}),NS=sl({name:"Timer",__name:"timer",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),tu("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),tu("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}),LS=sl({name:"TopLeft",__name:"top-left",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),tu("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}),PS=sl({name:"Unlock",__name:"unlock",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),tu("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}),FS=sl({name:"UploadFilled",__name:"upload-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}),BS=sl({name:"Upload",__name:"upload",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}),$S=sl({name:"UserFilled",__name:"user-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}),VS=sl({name:"User",__name:"user",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}),US=sl({name:"View",__name:"view",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}),HS=sl({name:"WarningFilled",__name:"warning-filled",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}),zS=sl({name:"ZoomIn",__name:"zoom-in",setup:e=>(e,t)=>(zd(),qd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))});const YS=[String,Object,Function],GS={Close:Lx},WS={Close:Lx,SuccessFilled:OS,InfoFilled:iS,WarningFilled:HS,CircleCloseFilled:Ox},jS={primary:iS,success:OS,warning:HS,error:Ox,info:iS},qS={validating:oS,success:Dx,error:Mx};const KS=px(sl({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:W_({size:{type:[Number,String]},color:{type:String}}),setup(e){const t=e,i=ib("icon"),a=Lu(()=>{const{size:e,color:i}=t,a=Wv(e);return a||i?{fontSize:a,"--color":i}:{}});return(e,t)=>(zd(),qd("i",uu({class:xo(i).b(),style:a.value},e.$attrs),[rc(e.$slots,"default")],16))}})),XS=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ZS=W_({role:{type:String,values:XS,default:"tooltip"}}),QS=Symbol("popper"),JS=Symbol("popperContent");var ew=sl({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const i=ib("popper"),{arrowRef:a,arrowStyle:n}=Sr(JS,void 0);return Wl(()=>{a.value=void 0}),t({arrowRef:a}),(e,t)=>(zd(),qd("span",{ref_key:"arrowRef",ref:a,class:se(xo(i).e("arrow")),style:ee(xo(n)),"data-popper-arrow":""},null,6))}});const tw=W_({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),iw="ElOnlyChild",aw=sl({name:iw,setup(e,{slots:t,attrs:i}){var a;const n=(s=(null==(a=Sr(Wy))?void 0:a.setForwardRef)??m,{mounted(e){s(e)},updated(e){s(e)},unmounted(){s(null)}});var s;return()=>{var e;const a=null==(e=t.default)?void 0:e.call(t,i);if(!a)return null;const[s,o]=nw(a);return s?(o>1&&K_(iw,"requires exact only one valid child."),br(nu(s,i),[[n]])):(K_(iw,"no valid child node found"),null)}}});function nw(e){if(!e)return[null,0];const t=e,i=t.filter(e=>e.type!==$d).length;for(const a of t){if(D(a))switch(a.type){case $d:continue;case Bd:case"svg":return[sw(a),i];case Fd:return nw(a.children);default:return[a,i]}return[sw(a),i]}return[null,0]}function sw(e){return iu("span",{class:ib("only-child").e("content")},[e])}var ow=sl({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:tw,setup(e,{expose:t}){const i=e,{role:a,triggerRef:n}=Sr(QS,void 0);var s;s=n,xr(Wy,{setForwardRef:e=>{s.value=e}});const o=Lu(()=>l.value?i.id:void 0),r=Lu(()=>{if(a&&"tooltip"===a.value)return i.open&&i.id?i.id:void 0}),l=Lu(()=>{if(a&&"tooltip"!==a.value)return a.value}),c=Lu(()=>l.value?`${i.open}`:void 0);let d;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return zl(()=>{Rr(()=>i.virtualRef,e=>{e&&(n.value=_v(e))},{immediate:!0}),Rr(n,(e,t)=>{null==d||d(),d=void 0,Nn(t)&&u.forEach(e=>{const a=i[e];a&&t.removeEventListener(e.slice(2).toLowerCase(),a,["onFocus","onBlur"].includes(e))}),Nn(e)&&(u.forEach(t=>{const a=i[t];a&&e.addEventListener(t.slice(2).toLowerCase(),a,["onFocus","onBlur"].includes(t))}),Lv(e)&&(d=Rr([o,r,l,c],t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((i,a)=>{vn(t[a])?e.removeAttribute(i):e.setAttribute(i,t[a])})},{immediate:!0}))),Nn(t)&&Lv(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(e=>t.removeAttribute(e))},{immediate:!0})}),Wl(()=>{if(null==d||d(),d=void 0,n.value&&Nn(n.value)){const e=n.value;u.forEach(t=>{const a=i[t];a&&e.removeEventListener(t.slice(2).toLowerCase(),a,["onFocus","onBlur"].includes(t))}),n.value=void 0}}),t({triggerRef:n}),(t,i)=>e.virtualTriggering?ru("v-if",!0):(zd(),Kd(xo(aw),uu({key:0},t.$attrs,{"aria-controls":o.value,"aria-describedby":r.value,"aria-expanded":c.value,"aria-haspopup":l.value}),{default:vr(()=>[rc(t.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});const rw=W_({arrowOffset:{type:Number,default:5}}),lw=W_({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:kb,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),cw=W_({...lw,...rw,id:String,style:{type:[String,Array,Object,Boolean],default:void 0},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object,Boolean],default:void 0},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...dx(["ariaLabel"]),loop:Boolean}),dw={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},uw=W_({size:{type:String,values:p},disabled:Boolean}),pw=W_({...uw,model:Object,rules:{type:Object},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean],default:!0}}),hw={validate:(e,t,i)=>(C(e)||R(e))&&Dn(t)&&R(i)},fw=Symbol("formContextKey"),gw=Symbol("formItemContextKey"),mw=(e,t={})=>{const i=mo(void 0),a=t.prop?i:fb("size"),n=t.global?i:ix(),s=t.form?{size:void 0}:Sr(fw,void 0),o=t.formItem?{size:void 0}:Sr(gw,void 0);return Lu(()=>a.value||xo(e)||(null==o?void 0:o.size)||(null==s?void 0:s.size)||n.value||"")},_w=e=>{const t=fb("disabled"),i=Sr(fw,void 0);return Lu(()=>t.value??xo(e)??(null==i?void 0:i.disabled)??!1)},vw=()=>({form:Sr(fw,void 0),formItem:Sr(gw,void 0)}),bw=(e,{formItemContext:t,disableIdGeneration:i,disableIdManagement:a})=>{i||(i=mo(!1)),a||(a=mo(!1));const n=_u(),s=mo();let o;const r=Lu(()=>{var i;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(i=t.inputIds)?void 0:i.length)<=1)});return zl(()=>{o=Rr([Io(e,"id"),i],([e,i])=>{const o=e??(i?void 0:Vy().value);o!==s.value&&((null==t?void 0:t.removeInputId)&&!(()=>{let e=null==n?void 0:n.parent;for(;e;){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1})()&&(s.value&&t.removeInputId(s.value),(null==a?void 0:a.value)||i||!o||t.addInputId(o)),s.value=o)},{immediate:!0})}),jl(()=>{o&&o(),(null==t?void 0:t.removeInputId)&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:r,inputId:s}},yw=W_({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:[String,Array]},required:{type:Boolean,default:void 0},rules:{type:[Object,Array]},error:String,validateStatus:{type:String,values:["","error","validating","success"]},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:p}}),xw=e=>[...new Set(e)],Sw=e=>C(e)?e[0]:e,ww=e=>e||0===e?C(e)?e:[e]:[];function Cw(){const e=mo([]),t=Lu(()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?`${t}px`:""});function i(i){const a=e.value.indexOf(i);return-1===a&&"0"===t.value&&K_("ElForm",`unexpected width ${i}`),a}return{autoLabelWidth:t,registerLabelWidth:function(t,a){if(t&&a){const n=i(a);e.value.splice(n,1,t)}else t&&e.value.push(t)},deregisterLabelWidth:function(t){const a=i(t);a>-1&&e.value.splice(a,1)}}}const Ew=(e,t)=>{const i=Bi(t).map(e=>C(e)?e.join("."):e);return i.length>0?e.filter(e=>e.propString&&i.includes(e.propString)):e},kw="ElForm";var Tw=sl({name:kw,__name:"form",props:pw,emits:hw,setup(e,{expose:t,emit:i}){const a=e,n=i,s=mo(),o=to([]),r=new Map,l=mw(),c=ib("form"),d=Lu(()=>{const{labelPosition:e,inline:t}=a;return[c.b(),c.m(l.value||"default"),{[c.m(`label-${e}`)]:e,[c.m("inline")]:t}]}),u=e=>Ew(o,[e])[0],p=e=>{if(a.model)if(e){for(const t of r.keys())r.set(t,Oa(Bn(e,t).value));o.forEach(t=>{t.prop&&t.setInitialValue(Bn(e,t.prop).value)})}else K_(kw,"initModel is required for setInitialValues to work.");else K_(kw,"model is required for setInitialValues to work.")},h=(e=[])=>{if(!a.model)return void K_(kw,"model is required for resetFields to work.");Ew(o,e).forEach(e=>e.resetField());const t=new Set(o.map(e=>e.propString).filter(Boolean)),i=e.length>0?Bi(e).map(e=>C(e)?e.join("."):e):[...r.keys()];for(const n of i)!t.has(n)&&r.has(n)&&(Bn(a.model,n).value=Oa(r.get(n)))},f=(e=[])=>{Ew(o,e).forEach(e=>e.clearValidate())},g=Lu(()=>{const e=!!a.model;return e||K_(kw,"model is required for validate to work."),e}),_=async e=>b(void 0,e),v=async(e=[])=>{if(!g.value)return!1;const t=(e=>{if(0===o.length)return[];const t=Ew(o,e);return t.length?t:(K_(kw,"please pass correct props!"),[])})(e);if(0===t.length)return!0;let i={};for(const n of t)try{await n.validate(""),"error"!==n.validateState||n.error||n.resetField()}catch(a){i={...i,...a}}return 0===Object.keys(i).length||Promise.reject(i)},b=async(e=[],t)=>{var i;let n=!1;const o=!A(t);try{return n=await v(e),!0===n&&await(null==t?void 0:t(n)),n}catch(NO){if(NO instanceof Error)throw NO;const r=NO;return a.scrollToError&&s.value&&(null==(i=s.value.querySelector(`.${c.b()}-item.is-error`))||i.scrollIntoView(a.scrollIntoViewOptions)),!n&&await(null==t?void 0:t(!1,r)),o&&Promise.reject(r)}};return Rr(()=>a.rules,()=>{a.validateOnRuleChange&&_().catch(m)},{deep:!0,flush:"post"}),xr(fw,to({...To(a),emit:n,resetFields:h,clearValidate:f,validateField:b,getField:u,addField:e=>{o.includes(e)||o.push(e),e.propString&&(r.has(e.propString)?e.setInitialValue(r.get(e.propString)):r.set(e.propString,Oa(e.fieldValue)))},removeField:(e,t)=>{if(t)return void r.delete(t);const i=o.indexOf(e);i>-1&&(o.splice(i,1),e.propString&&r.set(e.propString,Oa(e.getInitialValue())))},setInitialValues:p,...Cw()})),t({validate:_,validateField:b,resetFields:h,clearValidate:f,scrollToField:e=>{var t;const i=u(e);i&&(null==(t=i.$el)||t.scrollIntoView(a.scrollIntoViewOptions))},getField:u,fields:o,setInitialValues:p}),(e,t)=>(zd(),qd("form",{ref_key:"formRef",ref:s,class:se(d.value)},[rc(e.$slots,"default")],2))}}),Aw=Tw;const Rw="ElLabelWrap";var Iw=sl({name:Rw,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const i=Sr(fw,void 0),a=Sr(gw);a||q_(Rw,"usage: <el-form-item><label-wrap /></el-form-item>");const n=ib("form"),s=mo(),o=mo(0),r=(a="update")=>{ir(()=>{t.default&&e.isAutoWidth&&("update"===a?o.value=(()=>{var e;if(null==(e=s.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0})():"remove"===a&&(null==i||i.deregisterLabelWidth(o.value)))})},l=()=>r("update");return zl(()=>{l()}),Wl(()=>{r("remove")}),Gl(()=>l()),Rr(o,(t,a)=>{e.updateAll&&(null==i||i.registerLabelWidth(t,a))}),kv(Lu(()=>{var e;return(null==(e=s.value)?void 0:e.firstElementChild)??null}),l),()=>{var r,l;if(!t)return null;const{isAutoWidth:c}=e;if(c){const e=null==i?void 0:i.autoLabelWidth,l={};if((null==a?void 0:a.hasLabel)&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-o.value),n="left"===(a.labelPosition||i.labelPosition)?"marginRight":"marginLeft";t&&(l[n]=`${t}px`)}return iu("div",{ref:s,class:[n.be("item","label-wrap")],style:l},[null==(r=t.default)?void 0:r.call(t)])}return iu(Fd,{ref:s},[null==(l=t.default)?void 0:l.call(t)])}}});function Dw(){return Dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},Dw.apply(this,arguments)}function Ow(e){return(Ow=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mw(e,t){return(Mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nw(e,t,i){return(Nw=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(NO){return!1}}()?Reflect.construct.bind():function(e,t,i){var a=[null];a.push.apply(a,t);var n=new(Function.bind.apply(e,a));return i&&Mw(n,i.prototype),n}).apply(null,arguments)}function Lw(e){var t="function"==typeof Map?new Map:void 0;return Lw=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return Nw(e,arguments,Ow(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Mw(a,e)},Lw(e)}var Pw=/%[sdj%]/g;function Fw(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var i=e.field;t[i]=t[i]||[],t[i].push(e)}),t}function Bw(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];var n=0,s=i.length;return"function"==typeof e?e.apply(null,i):"string"==typeof e?e.replace(Pw,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}break;default:return e}}):e}function $w(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function Vw(e,t,i){var a=0,n=e.length;!function s(o){if(o&&o.length)i(o);else{var r=a;a+=1,r<n?t(e[r],s):i([])}}([])}var Uw=function(e){var t,i;function a(t,i){var a;return(a=e.call(this,"Async Validation Error")||this).errors=t,a.fields=i,a}return i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,Mw(t,i),a}(Lw(Error));function Hw(e,t,i,a,n){if(t.first){var s=new Promise(function(t,s){var o=function(e){var t=[];return Object.keys(e).forEach(function(i){t.push.apply(t,e[i]||[])}),t}(e);Vw(o,i,function(e){return a(e),e.length?s(new Uw(e,Fw(e))):t(n)})});return s.catch(function(e){return e}),s}var o=!0===t.firstFields?Object.keys(e):t.firstFields||[],r=Object.keys(e),l=r.length,c=0,d=[],u=new Promise(function(t,s){var u=function(e){if(d.push.apply(d,e),++c===l)return a(d),d.length?s(new Uw(d,Fw(d))):t(n)};r.length||(a(d),t(n)),r.forEach(function(t){var a=e[t];-1!==o.indexOf(t)?Vw(a,i,u):function(e,t,i){var a=[],n=0,s=e.length;function o(e){a.push.apply(a,e||[]),++n===s&&i(a)}e.forEach(function(e){t(e,o)})}(a,i,u)})});return u.catch(function(e){return e}),u}function zw(e,t){return function(i){var a,n;return a=e.fullFields?function(e,t){for(var i=e,a=0;a<t.length;a++){if(null==i)return i;i=i[t[a]]}return i}(t,e.fullFields):t[i.field||e.fullField],(n=i)&&void 0!==n.message?(i.field=i.field||e.fullField,i.fieldValue=a,i):{message:"function"==typeof i?i():i,fieldValue:a,field:i.field||e.fullField}}}function Yw(e,t){if(t)for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];"object"==typeof a&&"object"==typeof e[i]?e[i]=Dw({},e[i],a):e[i]=a}return e}var Gw,Ww=function(e,t,i,a,n,s){!e.required||i.hasOwnProperty(e.field)&&!$w(t,s||e.type)||a.push(Bw(n.messages.required,e.fullField))},jw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,qw=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Kw={integer:function(e){return Kw.number(e)&&parseInt(e,10)===e},float:function(e){return Kw.number(e)&&!Kw.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(NO){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Kw.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(jw)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Gw)return Gw;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},i="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",a="[a-fA-F\\d]{1,4}",n=("\n(?:\n(?:"+a+":){7}(?:"+a+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+a+":){6}(?:"+i+"|:"+a+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+a+":){5}(?::"+i+"|(?::"+a+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+a+":){4}(?:(?::"+a+"){0,1}:"+i+"|(?::"+a+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+a+":){3}(?:(?::"+a+"){0,2}:"+i+"|(?::"+a+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+a+":){2}(?:(?::"+a+"){0,3}:"+i+"|(?::"+a+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+a+":){1}(?:(?::"+a+"){0,4}:"+i+"|(?::"+a+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+a+"){0,5}:"+i+"|(?::"+a+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+i+"$)|(?:^"+n+"$)"),o=new RegExp("^"+i+"$"),r=new RegExp("^"+n+"$"),l=function(e){return e&&e.exact?s:new RegExp("(?:"+t(e)+i+t(e)+")|(?:"+t(e)+n+t(e)+")","g")};l.v4=function(e){return e&&e.exact?o:new RegExp(""+t(e)+i+t(e),"g")},l.v6=function(e){return e&&e.exact?r:new RegExp(""+t(e)+n+t(e),"g")};var c=l.v4().source,d=l.v6().source;return Gw=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+d+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(qw)}},Xw="enum",Zw={required:Ww,whitespace:function(e,t,i,a,n){(/^\s+$/.test(t)||""===t)&&a.push(Bw(n.messages.whitespace,e.fullField))},type:function(e,t,i,a,n){if(e.required&&void 0===t)Ww(e,t,i,a,n);else{var s=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(s)>-1?Kw[s](t)||a.push(Bw(n.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&a.push(Bw(n.messages.types[s],e.fullField,e.type))}},range:function(e,t,i,a,n){var s="number"==typeof e.len,o="number"==typeof e.min,r="number"==typeof e.max,l=t,c=null,d="number"==typeof t,u="string"==typeof t,p=Array.isArray(t);if(d?c="number":u?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),u&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),s?l!==e.len&&a.push(Bw(n.messages[c].len,e.fullField,e.len)):o&&!r&&l<e.min?a.push(Bw(n.messages[c].min,e.fullField,e.min)):r&&!o&&l>e.max?a.push(Bw(n.messages[c].max,e.fullField,e.max)):o&&r&&(l<e.min||l>e.max)&&a.push(Bw(n.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,i,a,n){e[Xw]=Array.isArray(e[Xw])?e[Xw]:[],-1===e[Xw].indexOf(t)&&a.push(Bw(n.messages[Xw],e.fullField,e[Xw].join(", ")))},pattern:function(e,t,i,a,n){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||a.push(Bw(n.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||a.push(Bw(n.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Qw=function(e,t,i,a,n){var s=e.type,o=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t,s)&&!e.required)return i();Zw.required(e,t,a,o,n,s),$w(t,s)||Zw.type(e,t,a,o,n)}i(o)},Jw={string:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t,"string")&&!e.required)return i();Zw.required(e,t,a,s,n,"string"),$w(t,"string")||(Zw.type(e,t,a,s,n),Zw.range(e,t,a,s,n),Zw.pattern(e,t,a,s,n),!0===e.whitespace&&Zw.whitespace(e,t,a,s,n))}i(s)},method:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&Zw.type(e,t,a,s,n)}i(s)},number:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if(""===t&&(t=void 0),$w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&(Zw.type(e,t,a,s,n),Zw.range(e,t,a,s,n))}i(s)},boolean:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&Zw.type(e,t,a,s,n)}i(s)},regexp:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),$w(t)||Zw.type(e,t,a,s,n)}i(s)},integer:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&(Zw.type(e,t,a,s,n),Zw.range(e,t,a,s,n))}i(s)},float:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&(Zw.type(e,t,a,s,n),Zw.range(e,t,a,s,n))}i(s)},array:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if(null==t&&!e.required)return i();Zw.required(e,t,a,s,n,"array"),null!=t&&(Zw.type(e,t,a,s,n),Zw.range(e,t,a,s,n))}i(s)},object:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&Zw.type(e,t,a,s,n)}i(s)},enum:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n),void 0!==t&&Zw.enum(e,t,a,s,n)}i(s)},pattern:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t,"string")&&!e.required)return i();Zw.required(e,t,a,s,n),$w(t,"string")||Zw.pattern(e,t,a,s,n)}i(s)},date:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t,"date")&&!e.required)return i();var o;if(Zw.required(e,t,a,s,n),!$w(t,"date"))o=t instanceof Date?t:new Date(t),Zw.type(e,o,a,s,n),o&&Zw.range(e,o.getTime(),a,s,n)}i(s)},url:Qw,hex:Qw,email:Qw,required:function(e,t,i,a,n){var s=[],o=Array.isArray(t)?"array":typeof t;Zw.required(e,t,a,s,n,o),i(s)},any:function(e,t,i,a,n){var s=[];if(e.required||!e.required&&a.hasOwnProperty(e.field)){if($w(t)&&!e.required)return i();Zw.required(e,t,a,s,n)}i(s)}};function eC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var tC=eC(),iC=function(){function e(e){this.rules=null,this._messages=tC,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(i){var a=e[i];t.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(e){return e&&(this._messages=Yw(eC(),e)),this._messages},t.validate=function(t,i,a){var n=this;void 0===i&&(i={}),void 0===a&&(a=function(){});var s=t,o=i,r=a;if("function"==typeof o&&(r=o,o={}),!this.rules||0===Object.keys(this.rules).length)return r&&r(null,s),Promise.resolve(s);if(o.messages){var l=this.messages();l===tC&&(l=eC()),Yw(l,o.messages),o.messages=l}else o.messages=this.messages();var c={};(o.keys||Object.keys(this.rules)).forEach(function(e){var i=n.rules[e],a=s[e];i.forEach(function(i){var o=i;"function"==typeof o.transform&&(s===t&&(s=Dw({},s)),a=s[e]=o.transform(a)),(o="function"==typeof o?{validator:o}:Dw({},o)).validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),c[e]=c[e]||[],c[e].push({rule:o,value:a,source:s,field:e}))})});var d={};return Hw(c,o,function(t,i){var a,n=t.rule,r=!("object"!==n.type&&"array"!==n.type||"object"!=typeof n.fields&&"object"!=typeof n.defaultField);function l(e,t){return Dw({},t,{fullField:n.fullField+"."+e,fullFields:n.fullFields?[].concat(n.fullFields,[e]):[e]})}function c(a){void 0===a&&(a=[]);var c=Array.isArray(a)?a:[a];!o.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==n.message&&(c=[].concat(n.message));var u=c.map(zw(n,s));if(o.first&&u.length)return d[n.field]=1,i(u);if(r){if(n.required&&!t.value)return void 0!==n.message?u=[].concat(n.message).map(zw(n,s)):o.error&&(u=[o.error(n,Bw(o.messages.required,n.field))]),i(u);var p={};n.defaultField&&Object.keys(t.value).map(function(e){p[e]=n.defaultField}),p=Dw({},p,t.rule.fields);var h={};Object.keys(p).forEach(function(e){var t=p[e],i=Array.isArray(t)?t:[t];h[e]=i.map(l.bind(null,e))});var f=new e(h);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,u),e&&e.length&&t.push.apply(t,e),i(t.length?t:null)})}else i(u)}if(r=r&&(n.required||!n.required&&t.value),n.field=t.field,n.asyncValidator)a=n.asyncValidator(n,t.value,c,t.source,o);else if(n.validator){try{a=n.validator(n,t.value,c,t.source,o)}catch(u){console.error,o.suppressValidatorError||setTimeout(function(){throw u},0),c(u.message)}!0===a?c():!1===a?c("function"==typeof n.message?n.message(n.fullField||n.field):n.message||(n.fullField||n.field)+" fails"):a instanceof Array?c(a):a instanceof Error&&c(a.message)}a&&a.then&&a.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){var t=[],i={};function a(e){var i;Array.isArray(e)?t=(i=t).concat.apply(i,e):t.push(e)}for(var n=0;n<e.length;n++)a(e[n]);t.length?(i=Fw(t),r(t,i)):r(null,s)}(e)},s)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Jw.hasOwnProperty(e.type))throw new Error(Bw("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),i=t.indexOf("message");return-1!==i&&t.splice(i,1),1===t.length&&"required"===t[0]?Jw.required:Jw[this.getType(e)]||void 0},e}();iC.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Jw[e]=t},iC.warning=function(){},iC.messages=tC,iC.validators=Jw;const aC=["role","aria-labelledby"];var nC=sl({name:"ElFormItem",__name:"form-item",props:yw,setup(e,{expose:t}){const i=e,a=Sc(),n=Sr(fw,void 0),s=Sr(gw,void 0),o=mw(void 0,{formItem:!1}),r=ib("form-item"),l=Vy().value,c=mo([]),d=mo(""),u=function(e,t=200,i={}){const a=mo(So(e)),n=pv(()=>{a.value=e.value},t,i);return Rr(e,()=>n()),no(a)}(d,100),p=mo(""),h=mo();let f,g=!1;const m=Lu(()=>i.labelPosition||(null==n?void 0:n.labelPosition)),_=Lu(()=>"top"===m.value?{}:{width:Wv(i.labelWidth??(null==n?void 0:n.labelWidth))}),v=Lu(()=>{if("top"===m.value||(null==n?void 0:n.inline))return{};if(!i.label&&!i.labelWidth&&T)return{};const e=Wv(i.labelWidth??(null==n?void 0:n.labelWidth));return i.label||a.label?{}:{marginLeft:e}}),b=Lu(()=>[r.b(),r.m(o.value),r.is("error","error"===d.value),r.is("validating","validating"===d.value),r.is("success","success"===d.value),r.is("required",O.value||i.required),r.is("no-asterisk",null==n?void 0:n.hideRequiredAsterisk),"right"===(null==n?void 0:n.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[r.m("feedback")]:null==n?void 0:n.statusIcon,[r.m(`label-${m.value}`)]:m.value}]),y=Lu(()=>Dn(i.inlineMessage)?i.inlineMessage:(null==n?void 0:n.inlineMessage)||!1),x=Lu(()=>[r.e("error"),{[r.em("error","inline")]:y.value}]),S=Lu(()=>i.prop?C(i.prop)?i.prop.join("."):i.prop:""),w=Lu(()=>!(!i.label&&!a.label)),E=Lu(()=>i.for??(1===c.value.length?c.value[0]:void 0)),k=Lu(()=>!E.value&&w.value),T=!!s,R=Lu(()=>{const e=null==n?void 0:n.model;if(e&&i.prop)return Bn(e,i.prop).value}),I=Lu(()=>{const{required:e}=i,t=[];i.rules&&t.push(...Bi(i.rules));const a=null==n?void 0:n.rules;if(a&&i.prop){const e=Bn(a,i.prop).value;e&&t.push(...Bi(e))}if(void 0!==e){const i=t.map((e,t)=>[e,t]).filter(([e])=>"required"in e);if(i.length>0)for(const[a,n]of i)a.required!==e&&(t[n]={...a,required:e});else t.push({required:e})}return t}),D=Lu(()=>I.value.length>0),O=Lu(()=>I.value.some(e=>e.required)),M=Lu(()=>"error"===u.value&&i.showMessage&&((null==n?void 0:n.showMessage)??!0)),N=Lu(()=>`${i.label||""}${(null==n?void 0:n.labelSuffix)||""}`),L=e=>{d.value=e},P=async e=>{const t=S.value;return new iC({[t]:e}).validate({[t]:R.value},{firstFields:!0}).then(()=>(L("success"),null==n||n.emit("validate",i.prop,!0,""),!0)).catch(e=>((e=>{var t;const{errors:a,fields:s}=e;L("error"),p.value=a?(null==(t=null==a?void 0:a[0])?void 0:t.message)??`${i.prop} is required`:"",null==n||n.emit("validate",i.prop,!1,p.value)})(e),Promise.reject(e)))},F=async(e,t)=>{if(g||!i.prop)return!1;const a=A(t);if(!D.value)return null==t||t(!1),!1;const n=(e=>I.value.filter(t=>!t.trigger||!e||(C(t.trigger)?t.trigger.includes(e):t.trigger===e)).map(({trigger:e,...t})=>t))(e);return 0===n.length?(null==t||t(!0),!0):(L("validating"),P(n).then(()=>(null==t||t(!0),!0)).catch(e=>{const{fields:i}=e;return null==t||t(!1,i),!a&&Promise.reject(i)}))},B=()=>{L(""),p.value="",g=!1},$=async()=>{const e=null==n?void 0:n.model;if(!e||!i.prop)return;const t=Bn(e,i.prop);g=!0,t.value=Oa(f),await ir(),B(),g=!1},V=e=>{f=Oa(e)};Rr(()=>i.error,e=>{p.value=e||"",L(e?"error":"")},{immediate:!0}),Rr(()=>i.validateStatus,e=>L(e||""));const U=to({...To(i),$el:h,size:o,validateMessage:p,validateState:d,labelId:l,inputIds:c,isGroup:k,hasLabel:w,fieldValue:R,addInputId:e=>{c.value.includes(e)||c.value.push(e)},removeInputId:e=>{c.value=c.value.filter(t=>t!==e)},resetField:$,clearValidate:B,validate:F,propString:S,setInitialValue:V,getInitialValue:()=>f});return xr(gw,U),Rr(S,(e,t)=>{n&&t&&(n.removeField(U,t),e&&(V(R.value),n.addField(U)))}),zl(()=>{i.prop&&(V(R.value),null==n||n.addField(U))}),Wl(()=>{null==n||n.removeField(U)}),t({size:o,validateMessage:p,validateState:d,validate:F,clearValidate:B,resetField:$,setInitialValue:V}),(t,i)=>{var a;return zd(),qd("div",{ref_key:"formItemRef",ref:h,class:se(b.value),role:k.value?"group":void 0,"aria-labelledby":k.value?xo(l):void 0},[iu(xo(Iw),{"is-auto-width":"auto"===_.value.width,"update-all":"auto"===(null==(a=xo(n))?void 0:a.labelWidth)},{default:vr(()=>[e.label||t.$slots.label?(zd(),Kd(tc(E.value?"label":"div"),{key:0,id:xo(l),for:E.value,class:se(xo(r).e("label")),style:ee(_.value)},{default:vr(()=>[rc(t.$slots,"label",{label:N.value},()=>[su(me(N.value),1)])]),_:3},8,["id","for","class","style"])):ru("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),tu("div",{class:se(xo(r).e("content")),style:ee(v.value)},[rc(t.$slots,"default"),iu(sh,{name:`${xo(r).namespace.value}-zoom-in-top`},{default:vr(()=>[M.value?rc(t.$slots,"error",{key:0,error:p.value},()=>[tu("div",{class:se(x.value)},me(p.value),3)]):ru("v-if",!0)]),_:3},8,["name"])],6)],10,aC)}}});const sC=px(Aw,{FormItem:nC}),oC=fx(nC),rC="focus-trap.focus-after-trapped",lC="focus-trap.focus-after-released",cC={cancelable:!0,bubbles:!1},dC={cancelable:!0,bubbles:!1},uC="focusAfterTrapped",pC="focusAfterReleased",hC=Symbol("elFocusTrap"),fC=mo(),gC=mo(0),mC=mo(0);let _C=0;const vC=e=>{const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t},bC=(e,t)=>{for(const i of e)if(!yC(i,t))return i},yC=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},xC=(e,t)=>{if(e){const i=document.activeElement;Fv(e,{preventScroll:!0}),mC.value=window.performance.now(),e!==i&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function SC(e,t){const i=[...e],a=e.indexOf(t);return-1!==a&&i.splice(a,1),i}const wC=(()=>{let e=[];return{push:t=>{const i=e[0];i&&t!==i&&i.pause(),e=SC(e,t),e.unshift(t)},remove:t=>{var i,a;e=SC(e,t),null==(a=null==(i=e[0])?void 0:i.resume)||a.call(i)}}})(),CC=()=>{fC.value="pointer",gC.value=window.performance.now()},EC=()=>{fC.value="keyboard",gC.value=window.performance.now()},kC=e=>new CustomEvent("focus-trap.focusout-prevented",{...dC,detail:e});var TC=sl({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[uC,pC,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const i=mo();let a,n;const{focusReason:s}=(zl(()=>{0===_C&&(document.addEventListener("mousedown",CC),document.addEventListener("touchstart",CC),document.addEventListener("keydown",EC)),_C++}),Wl(()=>{_C--,_C<=0&&(document.removeEventListener("mousedown",CC),document.removeEventListener("touchstart",CC),document.removeEventListener("keydown",EC))}),{focusReason:fC,lastUserFocusTimestamp:gC,lastAutomatedFocusTimestamp:mC});var o;o=i=>{e.trapped&&!r.paused&&t("release-requested",i)},zl(()=>{0===Uy.length&&document.addEventListener("keydown",Hy),av&&Uy.push(o)}),Wl(()=>{Uy=Uy.filter(e=>e!==o),0===Uy.length&&av&&document.removeEventListener("keydown",Hy)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=i=>{if(!e.loop&&!e.trapped)return;if(r.paused)return;const{altKey:a,ctrlKey:n,metaKey:o,currentTarget:c,shiftKey:d}=i,{loop:u}=e,p=db(i)===l.tab&&!a&&!n&&!o,h=document.activeElement;if(p&&h){const e=c,[a,n]=(e=>{const t=vC(e);return[bC(t,e),bC(t.reverse(),e)]})(e);if(a&&n)if(d||h!==n){if(d&&[a,e].includes(h)){const e=kC({focusReason:s.value});t("focusout-prevented",e),e.defaultPrevented||(i.preventDefault(),u&&xC(n,!0))}}else{const e=kC({focusReason:s.value});t("focusout-prevented",e),e.defaultPrevented||(i.preventDefault(),u&&xC(a,!0))}else if(h===e){const e=kC({focusReason:s.value});t("focusout-prevented",e),e.defaultPrevented||i.preventDefault()}}};xr(hC,{focusTrapRef:i,onKeydown:c}),Rr(()=>e.focusTrapEl,e=>{e&&(i.value=e)},{immediate:!0}),Rr([i],([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",p),e.addEventListener("focusout",h)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",p),t.removeEventListener("focusout",h))});const d=e=>{t(uC,e)},u=e=>t(pC,e),p=s=>{const o=xo(i);if(!o)return;const l=s.target,c=s.relatedTarget,d=l&&o.contains(l);e.trapped||c&&o.contains(c)||(a=c),d&&t("focusin",s),r.paused||e.trapped&&(d?n=l:xC(n,!0))},h=a=>{const o=xo(i);if(!r.paused&&o)if(e.trapped){const i=a.relatedTarget;vn(i)||o.contains(i)||setTimeout(()=>{if(!r.paused&&e.trapped){const e=kC({focusReason:s.value});t("focusout-prevented",e),e.defaultPrevented||xC(n,!0)}},0)}else{const e=a.target;e&&o.contains(e)||t("focusout",a)}};async function f(){await ir();const t=xo(i);if(t){wC.push(r);const i=t.contains(document.activeElement)?a:document.activeElement;if(a=i,!t.contains(i)){const a=new Event(rC,cC);t.addEventListener(rC,d),t.dispatchEvent(a),a.defaultPrevented||ir(()=>{let a=e.focusStartEl;R(a)||(xC(a),document.activeElement!==a&&(a="first")),"first"===a&&((e,t=!1)=>{const i=document.activeElement;for(const a of e)if(xC(a,t),document.activeElement!==i)return})(vC(t),!0),document.activeElement!==i&&"container"!==a||xC(t)})}}}function g(){const e=xo(i);if(e){e.removeEventListener(rC,d);const t=new CustomEvent(lC,{...cC,detail:{focusReason:s.value}});e.addEventListener(lC,u),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=s.value&&gC.value>mC.value&&!e.contains(document.activeElement)||xC(a??document.body),e.removeEventListener(lC,u),wC.remove(r),a=null,n=null}}return zl(()=>{e.trapped&&f(),Rr(()=>e.trapped,e=>{e?f():g()})}),Wl(()=>{e.trapped&&g(),i.value&&(i.value.removeEventListener("keydown",c),i.value.removeEventListener("focusin",p),i.value.removeEventListener("focusout",h),i.value=void 0),a=null,n=null}),{onKeydown:c}}}),AC=(e,t)=>{const i=e.__vccOpts||e;for(const[a,n]of t)i[a]=n;return i};var RC=AC(TC,[["render",function(e,t,i,a,n,s){return rc(e.$slots,"default",{handleKeydown:e.onKeydown})}]]);const IC=(e,t=[])=>{const{placement:i,strategy:a,popperOptions:n}=e,s={placement:i,strategy:a,...n,modifiers:[...DC(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}(s,null==n?void 0:n.modifiers),s};function DC(e){const{offset:t,gpuAcceleration:i,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:i}}]}const OC=e=>{const{popperInstanceRef:t,contentRef:i,triggerRef:a,role:n}=Sr(QS,void 0),s=mo(),o=Lu(()=>e.arrowOffset),r=Lu(()=>({name:"eventListeners",enabled:!!e.visible})),l=Lu(()=>{const e=xo(s),t=xo(o)??0;return{name:"arrow",enabled:!yn(e),options:{element:e,padding:t}}}),c=Lu(()=>({onFirstUpdate:()=>{f()},...IC(e,[xo(l),xo(r)])})),d=Lu(()=>(e=>{if(av)return _v(e)})(e.referenceEl)||xo(a)),{attributes:u,state:p,styles:h,update:f,forceUpdate:g,instanceRef:m}=Ny(d,i,c);let _;return Rr(m,e=>t.value=e,{flush:"sync"}),zl(()=>{Rr(()=>{var e,t;return null==(t=null==(e=xo(d))?void 0:e.getBoundingClientRect)?void 0:t.call(e)},()=>{f()})}),Rr(()=>e.visible,e=>{null==_||_(),_=void 0,e&&(_=kv(i,f).stop)}),Wl(()=>{t.value=void 0,null==_||_(),_=void 0}),{attributes:u,arrowRef:s,contentRef:i,instanceRef:m,state:p,styles:h,role:n,forceUpdate:g,update:f}};var MC=sl({name:"ElPopperContent",__name:"content",props:cw,emits:dw,setup(e,{expose:t,emit:i}){const a=i,n=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:r,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:u}=((e,t)=>{const i=mo(!1),a=mo();return Wl(()=>{a.value=void 0}),{focusStartRef:a,trapped:i,onFocusAfterReleased:e=>{var i;"pointer"!==(null==(i=e.detail)?void 0:i.focusReason)&&(a.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!i.value&&(t.target&&(a.value=t.target),i.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),i.value=!1)},onReleaseRequested:()=>{i.value=!1,t("close")}}})(n,a),{attributes:p,arrowRef:h,contentRef:f,styles:g,instanceRef:_,role:v,update:b}=OC(n),{ariaModal:y,arrowStyle:x,contentAttrs:S,contentClass:w,contentStyle:C,updateZIndex:E}=((e,{attributes:t,styles:i,role:a})=>{const{nextZIndex:n}=Zy(),s=ib("popper"),o=Lu(()=>xo(t).popper),r=mo(On(e.zIndex)?e.zIndex:n()),l=Lu(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),c=Lu(()=>[{zIndex:xo(r)},xo(i).popper,e.popperStyle||{}]);return{ariaModal:Lu(()=>"dialog"===a.value?"false":void 0),arrowStyle:Lu(()=>xo(i).arrow||{}),contentAttrs:o,contentClass:l,contentStyle:c,contentZIndex:r,updateZIndex:()=>{r.value=On(e.zIndex)?e.zIndex:n()}}})(n,{styles:g,attributes:p,role:v}),k=Sr(gw,void 0);let T;xr(JS,{arrowStyle:x,arrowRef:h}),k&&xr(gw,{...k,addInputId:m,removeInputId:m});const A=(e=!0)=>{b(),e&&E()},R=()=>{A(!1),n.visible&&n.focusOnShow?o.value=!0:!1===n.visible&&(o.value=!1)};return zl(()=>{Rr(()=>n.triggerTargetEl,(e,t)=>{null==T||T(),T=void 0;const i=xo(e||f.value),a=xo(t||f.value);Nn(i)&&(T=Rr([v,()=>n.ariaLabel,y,()=>n.id],e=>{["role","aria-label","aria-modal","id"].forEach((t,a)=>{vn(e[a])?i.removeAttribute(t):i.setAttribute(t,e[a])})},{immediate:!0})),a!==i&&Nn(a)&&["role","aria-label","aria-modal","id"].forEach(e=>{a.removeAttribute(e)})},{immediate:!0}),Rr(()=>n.visible,R,{immediate:!0})}),Wl(()=>{null==T||T(),T=void 0,f.value=void 0}),t({popperContentRef:f,popperInstanceRef:_,updatePopper:A,contentStyle:C}),(t,i)=>(zd(),qd("div",uu({ref_key:"contentRef",ref:f},xo(S),{style:xo(C),class:xo(w),tabindex:"-1",onMouseenter:i[0]||(i[0]=e=>t.$emit("mouseenter",e)),onMouseleave:i[1]||(i[1]=e=>t.$emit("mouseleave",e))}),[iu(xo(RC),{loop:e.loop,trapped:xo(o),"trap-on-focus-in":!0,"focus-trap-el":xo(f),"focus-start-el":xo(s),onFocusAfterTrapped:xo(l),onFocusAfterReleased:xo(r),onFocusin:xo(c),onFocusoutPrevented:xo(d),onReleaseRequested:xo(u)},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),NC=MC;const LC=px(sl({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:ZS,setup(e,{expose:t}){const i=e,a={triggerRef:mo(),popperInstanceRef:mo(),contentRef:mo(),referenceRef:mo(),role:Lu(()=>i.role)};return t(a),xr(QS,a),(e,t)=>rc(e.$slots,"default")}})),PC=W_({...Gy,...cw,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...dx(["ariaLabel"])}),FC=W_({...tw,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[l.enter,l.numpadEnter,l.space]},focusOnTarget:Boolean}),{useModelToggleProps:BC,useModelToggleEmits:$C,useModelToggle:VC}=(e=>{const t=`update:${e}`,i=`onUpdate:${e}`,a=[t];return{useModelToggle:({indicator:a,toggleReason:n,shouldHideWhenRouteChanges:s,shouldProceed:o,onShow:r,onHide:l})=>{const c=_u(),{emit:d}=c,u=c.props,p=Lu(()=>A(u[i])),h=Lu(()=>null===u[e]),f=e=>{!0!==a.value&&(a.value=!0,n&&(n.value=e),A(r)&&r(e))},g=e=>{!1!==a.value&&(a.value=!1,n&&(n.value=e),A(l)&&l(e))},m=e=>{if(!0===u.disabled||A(o)&&!o())return;const i=p.value&&av;i&&d(t,!0),!h.value&&i||f(e)},_=e=>{if(!0===u.disabled||!av)return;const i=p.value&&av;i&&d(t,!1),!h.value&&i||g(e)},v=e=>{Dn(e)&&(u.disabled&&e?p.value&&d(t,!1):a.value!==e&&(e?f():g()))};return Rr(()=>u[e],v),s&&void 0!==c.appContext.config.globalProperties.$route&&Rr(()=>({...c.proxy.$route}),()=>{s.value&&a.value&&_()}),zl(()=>{v(u[e])}),{hide:_,show:m,toggle:()=>{a.value?_():m()},hasUpdateHandler:p}},useModelToggleProps:{[e]:pb,[i]:hb},useModelToggleEmits:a}})("visible"),UC=W_({...ZS,...BC,...PC,...FC,...rw,showArrow:{type:Boolean,default:!0}}),HC=[...$C,"before-show","before-hide","show","hide","open","close"],zC=Symbol("elTooltip"),YC=(e,t)=>C(e)?e.includes(t):e===t,GC=(e,t,i)=>a=>{YC(xo(e),t)&&i(a)};var WC=sl({name:"ElTooltipTrigger",__name:"trigger",props:FC,setup(e,{expose:t}){const i=e,a=ib("tooltip"),{controlled:n,id:s,open:o,onOpen:r,onClose:l,onToggle:c}=Sr(zC,void 0),d=mo(null),u=()=>{if(xo(n)||i.disabled)return!0},p=Io(i,"trigger"),h=lb(u,GC(p,"hover",e=>{r(e),i.focusOnTarget&&e.target&&ir(()=>{Fv(e.target,{preventScroll:!0})})})),f=lb(u,GC(p,"hover",l)),g=lb(u,GC(p,"click",e=>{0===e.button&&c(e)})),m=lb(u,GC(p,"focus",r)),_=lb(u,GC(p,"focus",l)),v=lb(u,GC(p,"contextmenu",e=>{e.preventDefault(),c(e)})),b=lb(u,e=>{const t=db(e);i.triggerKeys.includes(t)&&(e.preventDefault(),c(e))});return t({triggerRef:d}),(t,i)=>(zd(),Kd(xo(ow),{id:xo(s),"virtual-ref":e.virtualRef,open:xo(o),"virtual-triggering":e.virtualTriggering,class:se(xo(a).e("trigger")),onBlur:xo(_),onClick:xo(g),onContextmenu:xo(v),onFocus:xo(m),onMouseenter:xo(h),onMouseleave:xo(f),onKeydown:xo(b)},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),jC=WC,qC=sl({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:PC,setup(e,{expose:t}){const i=e,{selector:a}=zy(),n=ib("tooltip"),s=mo(),o=J_(()=>{var e;return null==(e=s.value)?void 0:e.popperContentRef});let r;const{controlled:l,id:c,open:d,trigger:u,onClose:p,onOpen:h,onShow:f,onHide:g,onBeforeShow:m,onBeforeHide:_}=Sr(zC,void 0),v=Lu(()=>i.transition||`${n.namespace.value}-fade-in-linear`),b=Lu(()=>i.persistent);Wl(()=>{null==r||r()});const y=Lu(()=>!!xo(b)||xo(d)),x=Lu(()=>!i.disabled&&xo(d)),S=Lu(()=>i.appendTo||a.value),w=Lu(()=>i.style??{}),C=mo(!0),E=()=>{g(),M()&&Fv(document.body,{preventScroll:!0}),C.value=!0},k=()=>{if(xo(l))return!0},T=lb(k,()=>{i.enterable&&YC(xo(u),"hover")&&h()}),A=lb(k,()=>{YC(xo(u),"hover")&&p()}),R=()=>{var e,t;null==(t=null==(e=s.value)?void 0:e.updatePopper)||t.call(e),null==m||m()},I=()=>{null==_||_()},D=()=>{f()},O=()=>{i.virtualTriggering||p()},M=e=>{var t;const i=null==(t=s.value)?void 0:t.popperContentRef,a=(null==e?void 0:e.relatedTarget)||document.activeElement;return null==i?void 0:i.contains(a)};return Rr(()=>xo(d),e=>{e?(C.value=!1,r=bv(o,()=>{xo(l)||ww(xo(u)).every(e=>"hover"!==e&&"focus"!==e)&&p()},{detectIframe:!0})):null==r||r()},{flush:"post"}),t({contentRef:s,isFocusInsideContent:M}),(t,i)=>(zd(),Kd(Hr,{disabled:!e.teleported,to:S.value},[y.value||!C.value?(zd(),Kd(np,{key:0,name:v.value,appear:!b.value,onAfterLeave:E,onBeforeEnter:R,onAfterEnter:D,onBeforeLeave:I,persisted:""},{default:vr(()=>[br(iu(xo(NC),uu({id:xo(c),ref_key:"contentRef",ref:s},t.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":C.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,w.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:x.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:xo(T),onMouseleave:xo(A),onBlur:O,onClose:xo(p)}),{default:vr(()=>[rc(t.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[yp,x.value]])]),_:3},8,["name","appear"])):ru("v-if",!0)],8,["disabled","to"]))}});const KC=["innerHTML"],XC={key:1};const ZC=px(sl({name:"ElTooltip",__name:"tooltip",props:UC,emits:HC,setup(e,{expose:t,emit:i}){const a=e,n=i;Yy();const s=ib("tooltip"),o=Vy(),r=mo(),l=mo(),c=()=>{var e;const t=xo(r);t&&(null==(e=t.popperInstanceRef)||e.update())},d=mo(!1),u=mo(),{show:p,hide:h,hasUpdateHandler:f}=VC({indicator:d,toggleReason:u}),{onOpen:g,onClose:m}=(({showAfter:e,hideAfter:t,autoClose:i,open:a,close:n})=>{const{registerTimeout:s}=Py(),{registerTimeout:o,cancelTimeout:r}=Py();return{onOpen:(t,r=xo(e))=>{s(()=>{a(t);const e=xo(i);On(e)&&e>0&&o(()=>{n(t)},e)},r)},onClose:(e,i=xo(t))=>{r(),s(()=>{n(e)},i)}}})({showAfter:Io(a,"showAfter"),hideAfter:Io(a,"hideAfter"),autoClose:Io(a,"autoClose"),open:p,close:h}),_=Lu(()=>Dn(a.visible)&&!f.value),v=Lu(()=>[s.b(),a.popperClass]);xr(zC,{controlled:_,id:o,open:ao(d),trigger:Io(a,"trigger"),onOpen:g,onClose:m,onToggle:e=>{xo(d)?m(e):g(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:c}),Rr(()=>a.disabled,e=>{e&&d.value&&(d.value=!1),!e&&Dn(a.visible)&&(d.value=a.visible)});return Ll(()=>d.value&&h()),Wl(()=>{u.value=void 0}),t({popperRef:r,contentRef:l,isFocusInsideContent:e=>{var t;return null==(t=l.value)?void 0:t.isFocusInsideContent(e)},updatePopper:c,onOpen:g,onClose:m,hide:h}),(t,i)=>(zd(),Kd(xo(LC),{ref_key:"popperRef",ref:r,role:e.role},{default:vr(()=>[iu(jC,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:vr(()=>[t.$slots.default?rc(t.$slots,"default",{key:0}):ru("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),iu(qC,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":v.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:vr(()=>[rc(t.$slots,"content",{},()=>[e.rawContent?(zd(),qd("span",{key:0,innerHTML:e.content},null,8,KC)):(zd(),qd("span",XC,me(e.content),1))]),e.showArrow?(zd(),Kd(xo(ew),{key:0})):ru("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}})),QC=W_({id:{type:String,default:void 0},size:ex,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Object],default:""},modelModifiers:{type:Object,default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:YS,default:Mx},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:YS},prefixIcon:{type:YS},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String,Boolean],default:()=>({})},countGraphemes:{type:Function},autofocus:Boolean,rows:{type:Number,default:2},...dx(["ariaLabel"]),inputmode:{type:String,default:void 0},name:String}),JC={[c]:e=>R(e),input:e=>R(e),change:(e,t)=>R(e)&&(t instanceof Event||void 0===t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>void 0===e||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};let eE;po(Mx);const tE={height:"0",visibility:"hidden",overflow:$v()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},iE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],aE=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function nE(e,t=1,i){var a;if(!eE){eE=document.createElement("textarea");let t=document.body;!$v()&&e.parentNode&&(t=e.parentNode),t.appendChild(eE)}const{paddingSize:n,borderSize:s,boxSizing:o,contextStyle:r}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),n=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:iE.map(e=>[e,t.getPropertyValue(e)]),paddingSize:a,borderSize:n,boxSizing:i}}(e);r.forEach(([e,t])=>null==eE?void 0:eE.style.setProperty(e,t)),Object.entries(tE).forEach(([e,t])=>null==eE?void 0:eE.style.setProperty(e,t,"important")),eE.value=e.value||e.placeholder||"";let l=eE.scrollHeight;const c={};"border-box"===o?l+=s:"content-box"===o&&(l-=n),eE.value="";const d=eE.scrollHeight-n;if(On(t)){let e=d*t;"border-box"===o&&(e=e+n+s),l=Math.max(e,l),c.minHeight=`${e}px`}if(On(i)){let e=d*i;"border-box"===o&&(e=e+n+s),l=Math.min(e,l)}return c.height=`${l}px`,null==(a=eE.parentNode)||a.removeChild(eE),eE=void 0,c}const sE=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],oE=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],rE="ElInput";var lE=sl({name:rE,inheritAttrs:!1,__name:"input",props:QC,emits:JC,setup(e,{expose:t,emit:i}){const a=e,n=i,s=wc(),o=Sc(),r=Lu(()=>["textarea"===a.type?x.b():y.b(),y.m(v.value),y.is("disabled",b.value),y.is("exceed",K.value),{[y.b("group")]:o.prepend||o.append,[y.m("prefix")]:o.prefix||a.prefixIcon,[y.m("suffix")]:o.suffix||a.suffixIcon||a.clearable||a.showPassword,[y.bm("suffix","password-clear")]:G.value&&W.value,[y.b("hidden")]:"hidden"===a.type},s.class]),l=Lu(()=>[y.e("wrapper"),y.is("focus",N.value)]),p=Q_(),h=Lu(()=>{var e;return null==(e=a.maxlength)?void 0:e.toString()}),{form:f,formItem:g}=vw(),{inputId:_}=bw(a,{formItemContext:g}),v=mw(),b=_w(),y=ib("input"),x=ib("textarea"),S=_o(),w=_o(),C=mo(!1),E=mo(!1),k=mo(),T=mo(),A=_o(a.inputStyle),R=mo(""),I=mo(),O=Lu(()=>S.value||w.value),{wrapperRef:M,isFocused:N,handleFocus:L,handleBlur:P}=ax(O,{disabled:b,afterBlur(){var e;a.validateEvent&&(null==(e=null==g?void 0:g.validate)||e.call(g,"blur").catch(m))}}),F=Lu(()=>(null==f?void 0:f.statusIcon)??!1),B=Lu(()=>(null==g?void 0:g.validateState)||""),$=Lu(()=>B.value&&qS[B.value]),V=Lu(()=>E.value?US:tS),U=Lu(()=>[s.style]),H=Lu(()=>[a.inputStyle,A.value,{resize:a.resize},I.value?{height:I.value}:void 0]),z=Lu(()=>vn(a.modelValue)?"":String(a.modelValue)),Y=Lu(()=>a.clearable&&!b.value&&!a.readonly),G=Lu(()=>Y.value&&!!z.value&&(N.value||C.value)),W=Lu(()=>a.showPassword&&!b.value&&!!z.value),j=Lu(()=>a.showWordLimit&&!!h.value&&("text"===a.type||"textarea"===a.type)&&!b.value&&!a.readonly&&!a.showPassword),q=Lu(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(z.value):z.value.length),K=Lu(()=>!!j.value&&q.value>Number(h.value)),X=Lu(()=>!!o.suffix||!!a.suffixIcon||a.clearable||a.showPassword||j.value||!!B.value&&F.value),Z=Lu(()=>!!Object.keys(a.modelModifiers).length),[Q,J]=function(e){let t;return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:a,value:n}=e.value;null!=i&&null!=a&&(t={selectionStart:i,selectionEnd:a,value:n,beforeTxt:n.slice(0,Math.max(0,i)),afterTxt:n.slice(Math.max(0,a))})},function(){if(null==e.value||null==t)return;const{value:i}=e.value,{beforeTxt:a,afterTxt:n,selectionStart:s}=t;if(null==a||null==n||null==s)return;let o=i.length;if(i.endsWith(n))o=i.length-n.length;else if(i.startsWith(a))o=a.length;else{const e=a[s-1],t=i.indexOf(e,s-1);-1!==t&&(o=t+1)}e.value.setSelectionRange(o,o)}]}(S);let te;kv(w,e=>{if(ae(),!j.value&&!Y.value||"both"!==a.resize&&"horizontal"!==a.resize)return;const{width:t}=e[0].target.getBoundingClientRect();te&&nb(te),te=ab(()=>{te=void 0,k.value={right:`calc(100% - ${t-10}px)`},T.value={right:`calc(100% - ${t-11}px)`}})});const ie=()=>{const{type:e,autosize:t}=a;if(av&&"textarea"===e&&w.value)if(t){const e=D(t)?t.minRows:void 0,i=D(t)?t.maxRows:void 0,a=nE(w.value,e,i);A.value={overflowY:"hidden",...a},ir(()=>{w.value.offsetHeight,A.value=a})}else A.value={minHeight:nE(w.value).minHeight}},ae=(e=>{let t=!1;return()=>{var i;!t&&a.autosize?null!==(null==(i=w.value)?void 0:i.offsetParent)&&(setTimeout(e),t=!0):"none"!==a.resize&&setTimeout(()=>{var e;I.value=null==(e=w.value)?void 0:e.style.height})}})(ie),ne=()=>{const e=O.value,t=a.formatter?a.formatter(z.value):z.value;e&&e.value!==t&&"file"!==a.type&&(e.value=t)},oe=e=>{const{trim:t,number:i}=a.modelModifiers;return t&&(e=e.trim()),i&&(e=`${aE(e)}`),a.formatter&&a.parser&&(e=a.parser(e)),e},re=async e=>{if(ce.value)return;const{lazy:t}=a.modelModifiers;let{value:i}=e.target,s=!1;if(t)n(u,i);else{if(i=oe(i),a.countGraphemes&&null!=h.value){const e=Number(h.value),t=a.countGraphemes(i),n=a.countGraphemes(R.value);if(t>e&&t>n)if(n>e)i=R.value,s=!0;else{const t=R.value,o=i;let r=0;for(;r<t.length&&r<o.length&&t[r]===o[r];)r++;let l=t.length,c=o.length;for(;l>r&&c>r&&t[l-1]===o[c-1];)l--,c--;const d=o.slice(0,r),u=t.slice(r,l),p=o.slice(r,c),h=o.slice(c),f=n-a.countGraphemes(u),g=Math.max(0,e-f);let m="";if(g>0)if("undefined"!=typeof Intl&&"Segmenter"in Intl){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:t}of e.segment(p)){const e=m+t;if(a.countGraphemes(e)>g)break;m=e}}else for(const e of Array.from(p)){const t=m+e;if(a.countGraphemes(t)>g)break;m=t}i=d+m+h,s=!0}}if(String(i)!==z.value)R.value=i,Q(),n(c,i),n(u,i),await ir(),(a.formatter&&a.parser||!Z.value)&&ne(),J();else if(a.formatter||s){const t=e.target,i=t.value,a=t.selectionStart,n=t.selectionEnd;if(ne(),s&&O.value&&null!=a&&null!=n){const e=O.value.value,t=i.slice(Math.max(0,n));let s=Math.min(a,e.length);t&&e.endsWith(t)&&(s=e.length-t.length),O.value.setSelectionRange(s,s)}}}},le=async e=>{let{value:t}=e.target;t=oe(t),a.modelModifiers.lazy&&n(c,t),n(d,t,e),await ir(),ne()},{isComposing:ce,handleCompositionStart:de,handleCompositionUpdate:ue,handleCompositionEnd:pe}=nx({emit:n,afterComposition:re}),he=()=>{E.value=!E.value},fe=e=>{C.value=!1,n("mouseleave",e)},ge=e=>{C.value=!0,n("mouseenter",e)},_e=e=>{n("keydown",e)},ve=e=>{n(c,""),n(d,""),n("clear",e),n(u,"")};return Rr(()=>a.modelValue,()=>{var e;ir(()=>{ie(),a.autosize&&(I.value=void 0)}),a.validateEvent&&(null==(e=null==g?void 0:g.validate)||e.call(g,"change").catch(m))}),Rr(()=>z.value,e=>{R.value=e},{immediate:!0}),Rr(z,e=>{if(!O.value)return;const{trim:t,number:i}=a.modelModifiers,n=O.value.value,s=!i&&"number"!==a.type||/^0\d/.test(n)?n:`${aE(n)}`;s!==e&&(document.activeElement===O.value&&"range"!==O.value.type&&t&&s.trim()===e||ne())}),Rr(()=>a.type,async()=>{await ir(),ne(),ie()}),zl(()=>{!a.formatter&&a.parser&&K_(rE,"If you set the parser, you also need to set the formatter."),ne(),ir(ie)}),Wl(()=>{te&&nb(te)}),t({input:S,textarea:w,ref:O,textareaStyle:H,autosize:Io(a,"autosize"),isComposing:ce,passwordVisible:E,focus:()=>{var e;return null==(e=O.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=O.value)?void 0:e.blur()},select:()=>{var e;null==(e=O.value)||e.select()},clear:ve,resizeTextarea:ie}),(t,i)=>(zd(),qd("div",{class:se([r.value,{[xo(y).bm("group","append")]:t.$slots.append,[xo(y).bm("group","prepend")]:t.$slots.prepend}]),style:ee(U.value),onMouseenter:ge,onMouseleave:fe},[ru(" input "),"textarea"!==e.type?(zd(),qd(Fd,{key:0},[ru(" prepend slot "),t.$slots.prepend?(zd(),qd("div",{key:0,class:se(xo(y).be("group","prepend"))},[rc(t.$slots,"prepend")],2)):ru("v-if",!0),tu("div",{ref_key:"wrapperRef",ref:M,class:se(l.value)},[ru(" prefix slot "),t.$slots.prefix||e.prefixIcon?(zd(),qd("span",{key:0,class:se(xo(y).e("prefix"))},[tu("span",{class:se(xo(y).e("prefix-inner"))},[rc(t.$slots,"prefix"),e.prefixIcon?(zd(),Kd(xo(KS),{key:0,class:se(xo(y).e("icon"))},{default:vr(()=>[(zd(),Kd(tc(e.prefixIcon)))]),_:1},8,["class"])):ru("v-if",!0)],2)],2)):ru("v-if",!0),tu("input",uu({id:xo(_),ref_key:"input",ref:S,class:xo(y).e("inner")},xo(p),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:h.value,type:e.showPassword?E.value?"text":"password":e.type,disabled:xo(b),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:i[0]||(i[0]=(...e)=>xo(de)&&xo(de)(...e)),onCompositionupdate:i[1]||(i[1]=(...e)=>xo(ue)&&xo(ue)(...e)),onCompositionend:i[2]||(i[2]=(...e)=>xo(pe)&&xo(pe)(...e)),onInput:re,onChange:le,onKeydown:_e}),null,16,sE),ru(" suffix slot "),X.value?(zd(),qd("span",{key:1,class:se(xo(y).e("suffix"))},[tu("span",{class:se(xo(y).e("suffix-inner"))},[Y.value?(zd(),Kd(xo(KS),{key:0,class:se([xo(y).e("icon"),xo(y).e("clear")]),style:ee({visibility:G.value?"visible":"hidden"}),onMousedown:Ah(xo(m),["prevent"]),onClick:ve},{default:vr(()=>[(zd(),Kd(tc(e.clearIcon)))]),_:1},8,["class","style","onMousedown"])):ru("v-if",!0),G.value&&W.value&&j.value?ru("v-if",!0):(zd(),qd(Fd,{key:1},[rc(t.$slots,"suffix"),e.suffixIcon?(zd(),Kd(xo(KS),{key:0,class:se(xo(y).e("icon"))},{default:vr(()=>[(zd(),Kd(tc(e.suffixIcon)))]),_:1},8,["class"])):ru("v-if",!0)],64)),W.value?(zd(),Kd(xo(KS),{key:2,class:se([xo(y).e("icon"),xo(y).e("password")]),onClick:he,onMousedown:Ah(xo(m),["prevent"]),onMouseup:Ah(xo(m),["prevent"])},{default:vr(()=>[rc(t.$slots,"password-icon",{visible:E.value},()=>[(zd(),Kd(tc(V.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):ru("v-if",!0),j.value?(zd(),qd("span",{key:3,class:se([xo(y).e("count"),xo(y).is("outside","outside"===e.wordLimitPosition)])},[tu("span",{class:se(xo(y).e("count-inner"))},me(q.value)+" / "+me(h.value),3)],2)):ru("v-if",!0),B.value&&$.value&&F.value?(zd(),Kd(xo(KS),{key:4,class:se([xo(y).e("icon"),xo(y).e("validateIcon"),xo(y).is("loading","validating"===B.value)])},{default:vr(()=>[(zd(),Kd(tc($.value)))]),_:1},8,["class"])):ru("v-if",!0)],2)],2)):ru("v-if",!0)],2),ru(" append slot "),t.$slots.append?(zd(),qd("div",{key:1,class:se(xo(y).be("group","append"))},[rc(t.$slots,"append")],2)):ru("v-if",!0)],64)):(zd(),qd(Fd,{key:1},[ru(" textarea "),tu("textarea",uu({id:xo(_),ref_key:"textarea",ref:w,class:[xo(x).e("inner"),xo(y).is("focus",xo(N)),xo(x).is("clearable",e.clearable)]},xo(p),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:h.value,tabindex:e.tabindex,disabled:xo(b),readonly:e.readonly,autocomplete:e.autocomplete,style:H.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:i[3]||(i[3]=(...e)=>xo(de)&&xo(de)(...e)),onCompositionupdate:i[4]||(i[4]=(...e)=>xo(ue)&&xo(ue)(...e)),onCompositionend:i[5]||(i[5]=(...e)=>xo(pe)&&xo(pe)(...e)),onInput:re,onFocus:i[6]||(i[6]=(...e)=>xo(L)&&xo(L)(...e)),onBlur:i[7]||(i[7]=(...e)=>xo(P)&&xo(P)(...e)),onChange:le,onKeydown:_e}),null,16,oE),G.value?(zd(),Kd(xo(KS),{key:0,class:se([xo(x).e("icon"),xo(x).e("clear")]),style:ee(T.value),onMousedown:Ah(xo(m),["prevent"]),onClick:ve},{default:vr(()=>[(zd(),Kd(tc(e.clearIcon)))]),_:1},8,["class","style","onMousedown"])):ru("v-if",!0),j.value?(zd(),qd("span",{key:1,style:ee(k.value),class:se([xo(y).e("count"),xo(y).is("outside","outside"===e.wordLimitPosition)])},me(q.value)+" / "+me(h.value),7)):ru("v-if",!0)],64))],38))}});const cE=px(lE),dE=W_({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:[String,Object,Array,Boolean],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Object,Array,Boolean],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...dx(["ariaLabel","ariaOrientation"])}),uE={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(On)},pE={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},hE=W_({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),fE=Symbol("scrollbarContextKey");function gE(e,t,i=.03){return e-t>i}const mE=W_({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var _E=sl({__name:"thumb",props:hE,setup(e){const t=e,i=Sr(fE),a=ib("scrollbar");i||q_("Thumb","can not inject scrollbar context");const n=mo(),s=mo(),o=mo({}),r=mo(!1);let l=!1,c=!1,d=0,u=0,p=av?document.onselectstart:null;const h=Lu(()=>pE[t.vertical?"vertical":"horizontal"]),f=Lu(()=>(({move:e,size:t,bar:i})=>({[i.size]:t,transform:`translate${i.axis}(${e}%)`}))({size:t.size,move:t.move,bar:h.value})),g=Lu(()=>n.value[h.value.offset]**2/i.wrapElement[h.value.scrollSize]/t.ratio/s.value[h.value.offset]),m=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),v(e);const i=e.currentTarget;i&&(o.value[h.value.axis]=i[h.value.offset]-(e[h.value.client]-i.getBoundingClientRect()[h.value.direction]))},_=e=>{if(!s.value||!n.value||!i.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[h.value.direction]-e[h.value.client])-s.value[h.value.offset]/2)*g.value/n.value[h.value.offset];i.wrapElement[h.value.scroll]=t*i.wrapElement[h.value.scrollSize]/100},v=e=>{e.stopImmediatePropagation(),l=!0,d=i.wrapElement.scrollHeight,u=i.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),p=document.onselectstart,document.onselectstart=()=>!1},b=e=>{if(!n.value||!s.value)return;if(!1===l)return;const t=o.value[h.value.axis];if(!t)return;const a=100*(-1*(n.value.getBoundingClientRect()[h.value.direction]-e[h.value.client])-(s.value[h.value.offset]-t))*g.value/n.value[h.value.offset];"scrollLeft"===h.value.scroll?i.wrapElement[h.value.scroll]=a*u/100:i.wrapElement[h.value.scroll]=a*d/100},y=()=>{l=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y),x(),c&&(r.value=!1)};Wl(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return vv(Io(i,"scrollbarElement"),"mousemove",()=>{c=!1,r.value=!!t.size}),vv(Io(i,"scrollbarElement"),"mouseleave",()=>{c=!0,r.value=l}),(t,i)=>(zd(),Kd(np,{name:xo(a).b("fade"),persisted:""},{default:vr(()=>[br(tu("div",{ref_key:"instance",ref:n,class:se([xo(a).e("bar"),xo(a).is(h.value.key)]),onMousedown:_,onClick:i[0]||(i[0]=Ah(()=>{},["stop"]))},[tu("div",{ref_key:"thumb",ref:s,class:se(xo(a).e("thumb")),style:ee(f.value),onMousedown:m},null,38)],34),[[yp,e.always||r.value]])]),_:1},8,["name"]))}}),vE=_E,bE=sl({__name:"bar",props:mE,setup(e,{expose:t}){const i=e,a=Sr(fE),n=mo(0),s=mo(0),o=mo(""),r=mo(""),l=mo(1),c=mo(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,i=e.offsetWidth-4;s.value=100*e.scrollTop/t*l.value,n.value=100*e.scrollLeft/i*c.value}},update:()=>{const e=null==a?void 0:a.wrapElement;if(!e)return;const t=e.offsetHeight-4,n=e.offsetWidth-4,s=t**2/e.scrollHeight,d=n**2/e.scrollWidth,u=Math.max(s,i.minSize),p=Math.max(d,i.minSize);l.value=s/(t-s)/(u/(t-u)),c.value=d/(n-d)/(p/(n-p)),r.value=u+4<t?`${u}px`:"",o.value=p+4<n?`${p}px`:""}}),(t,i)=>(zd(),qd(Fd,null,[iu(vE,{move:n.value,ratio:c.value,size:o.value,always:e.always},null,8,["move","ratio","size","always"]),iu(vE,{move:s.value,ratio:l.value,size:r.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});const yE=["tabindex"],xE="ElScrollbar";const SE=px(sl({name:xE,__name:"scrollbar",props:dE,emits:uE,setup(e,{expose:t,emit:i}){const a=e,n=i,s=ib("scrollbar");let o,r,l,c=0,d=0,u="";const p={bottom:!1,top:!1,right:!1,left:!1},h=mo(),f=mo(),g=mo(),m=mo(),_=Lu(()=>{const e={},t=Wv(a.height),i=Wv(a.maxHeight);return t&&(e.height=t),i&&(e.maxHeight=i),[a.wrapStyle,e]}),v=Lu(()=>[a.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!a.native}]),b=Lu(()=>[s.e("view"),a.viewClass]),y={top:"bottom",bottom:"top",left:"right",right:"left"},x=()=>{var e;if(f.value){null==(e=m.value)||e.handleScroll(f.value);const t=c,i=d;c=f.value.scrollTop,d=f.value.scrollLeft;const s={bottom:!gE(f.value.scrollHeight-a.distance,f.value.clientHeight+c),top:c<=a.distance&&0!==t,right:!gE(f.value.scrollWidth-a.distance,f.value.clientWidth+d)&&i!==d,left:d<=a.distance&&0!==i};if(n("scroll",{scrollTop:c,scrollLeft:d}),t!==c&&(u=c>t?"bottom":"top"),i!==d&&(u=d>i?"right":"left"),a.distance>0){if(p[u])return;(e=>{const t=y[u];if(!t)return;const i=e[u],a=e[t];i&&!p[u]&&(p[u]=!0),!a&&p[t]&&(p[t]=!1)})(s)}s[u]&&n("end-reached",u)}};const S=()=>{var e,t;null==(e=m.value)||e.update(),p[u]=!1,f.value&&(null==(t=m.value)||t.handleScroll(f.value))};return Rr(()=>a.noresize,e=>{e?(null==o||o(),null==r||r(),null==l||l()):(({stop:o}=kv(g,S)),({stop:r}=kv(f,S)),l=vv("resize",S))},{immediate:!0}),Rr(()=>[a.maxHeight,a.height],()=>{a.native||ir(()=>{S()})}),xr(fE,to({scrollbarElement:h,wrapElement:f})),Nl(()=>{f.value&&(f.value.scrollTop=c,f.value.scrollLeft=d)}),zl(()=>{a.native||ir(()=>{S()})}),Gl(()=>S()),t({wrapRef:f,update:S,scrollTo:function(e,t){D(e)?f.value.scrollTo(e):On(e)&&On(t)&&f.value.scrollTo(e,t)},setScrollTop:e=>{On(e)?f.value.scrollTop=e:K_(xE,"value must be a number")},setScrollLeft:e=>{On(e)?f.value.scrollLeft=e:K_(xE,"value must be a number")},handleScroll:x}),(t,i)=>(zd(),qd("div",{ref_key:"scrollbarRef",ref:h,class:se(xo(s).b())},[tu("div",{ref_key:"wrapRef",ref:f,class:se(v.value),style:ee(_.value),tabindex:e.tabindex,onScroll:x},[(zd(),Kd(tc(e.tag),{id:e.id,ref_key:"resizeRef",ref:g,class:se(b.value),style:ee(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,yE),e.native?ru("v-if",!0):(zd(),Kd(bE,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}})),wE=W_({size:{type:[Number,String],values:p,validator:e=>On(e)},shape:{type:String,values:["circle","square"]},icon:{type:YS},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:String,default:"cover"}}),CE={error:e=>e instanceof Event},EE=Symbol("avatarGroupContextKey"),kE={size:{type:[Number,String],values:p,validator:e=>On(e)},shape:{type:String,values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:String,default:"light"},placement:{type:String,values:kb,default:"top"},popperClass:PC.popperClass,popperStyle:PC.popperStyle,collapseClass:String,collapseStyle:{type:[String,Array,Object,Boolean],default:void 0}},TE=["src","alt","srcset"];var AE=sl({name:"ElAvatar",__name:"avatar",props:wE,emits:CE,setup(e,{emit:t}){const i=e,a=t,n=Sr(EE,void 0),s=ib("avatar"),o=mo(!1),r=Lu(()=>i.size??(null==n?void 0:n.size)),l=Lu(()=>i.shape??(null==n?void 0:n.shape)??"circle"),c=Lu(()=>{const{icon:e}=i,t=[s.b()];return R(r.value)&&t.push(s.m(r.value)),e&&t.push(s.m("icon")),l.value&&t.push(s.m(l.value)),t}),d=Lu(()=>On(r.value)?s.cssVarBlock({size:Wv(r.value)}):void 0),u=Lu(()=>({objectFit:i.fit}));function p(e){o.value=!0,a("error",e)}return Rr(()=>[i.src,i.srcSet],()=>o.value=!1),(t,i)=>(zd(),qd("span",{class:se(c.value),style:ee(d.value)},[!e.src&&!e.srcSet||o.value?e.icon?(zd(),Kd(xo(KS),{key:1},{default:vr(()=>[(zd(),Kd(tc(e.icon)))]),_:1})):rc(t.$slots,"default",{key:2}):(zd(),qd("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:ee(u.value),onError:p},null,44,TE))],6))}}),RE=AE,IE=sl({name:"ElAvatarGroup",props:kE,setup(e,{slots:t}){const i=ib("avatar-group");return xr(EE,to({size:Io(e,"size"),shape:Io(e,"shape")})),()=>{var a;const n=Qy((null==(a=t.default)?void 0:a.call(t))??[]);let s=n;if(e.collapseAvatars&&n.length>e.maxCollapseAvatars){s=n.slice(0,e.maxCollapseAvatars);const t=n.slice(e.maxCollapseAvatars);s.push(iu(ZC,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>iu(RE,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[su("+ "),t.length]}),content:()=>iu("div",{class:i.e("collapse-avatars")},[t.map((e,t)=>Xd(e)?nu(e,{key:e.key??t}):e)])}))}return iu("div",{class:i.b()},[s])}}});const DE=px(RE,{AvatarGroup:IE});fx(IE);const OE=px(sl({name:"ElBadge",__name:"badge",props:W_({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:[String,Object,Array,Boolean],default:void 0},offset:{type:Array,default:()=>[0,0]},badgeClass:{type:String}}),setup(e,{expose:t}){const i=e,a=ib("badge"),n=Lu(()=>i.isDot?"":On(i.value)&&On(i.max)&&i.max<i.value?`${i.max}+`:`${i.value}`),s=Lu(()=>[{backgroundColor:i.color,marginRight:Wv(-i.offset[0]),marginTop:Wv(i.offset[1])},i.badgeStyle??{}]);return t({content:n}),(t,i)=>(zd(),qd("div",{class:se(xo(a).b())},[rc(t.$slots,"default"),iu(np,{name:`${xo(a).namespace.value}-zoom-in-center`},{default:vr(()=>[!e.hidden&&(n.value||e.isDot||t.$slots.content)?(zd(),qd("sup",{key:0,class:se([xo(a).e("content"),xo(a).em("content",e.type),xo(a).is("fixed",!!t.$slots.default),xo(a).is("dot",e.isDot),xo(a).is("hide-zero",!e.showZero&&0===e.value),e.badgeClass]),style:ee(s.value)},[rc(t.$slots,"content",{value:n.value},()=>[su(me(n.value),1)])],6)):ru("v-if",!0)]),_:3},8,["name"])],2))}})),ME=W_({separator:{type:String,default:"/"},separatorIcon:{type:YS}}),NE=Symbol("breadcrumbKey"),LE=W_({to:{type:[String,Object],default:""},replace:Boolean}),PE=["aria-label"];var FE=sl({name:"ElBreadcrumb",__name:"breadcrumb",props:ME,setup(e){const{t:t}=Qv(),i=e,a=ib("breadcrumb"),n=mo();return xr(NE,i),zl(()=>{const e=n.value.querySelectorAll(`.${a.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")}),(e,i)=>(zd(),qd("div",{ref_key:"breadcrumb",ref:n,class:se(xo(a).b()),"aria-label":xo(t)("el.breadcrumb.label"),role:"navigation"},[rc(e.$slots,"default")],10,PE))}}),BE=FE,$E=sl({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:LE,setup(e){const t=e,i=_u(),a=Sr(NE,void 0),n=ib("breadcrumb"),s=i.appContext.config.globalProperties.$router,o=()=>{t.to&&s&&(t.replace?s.replace(t.to):s.push(t.to))};return(t,i)=>{var s,r;return zd(),qd("span",{class:se(xo(n).e("item"))},[tu("span",{class:se([xo(n).e("inner"),xo(n).is("link",!!e.to)]),role:"link",onClick:o},[rc(t.$slots,"default")],2),(null==(s=xo(a))?void 0:s.separatorIcon)?(zd(),Kd(xo(KS),{key:0,class:se(xo(n).e("separator"))},{default:vr(()=>[(zd(),Kd(tc(xo(a).separatorIcon)))]),_:1},8,["class"])):(zd(),qd("span",{key:1,class:se(xo(n).e("separator")),role:"presentation"},me(null==(r=xo(a))?void 0:r.separator),3))],2)}}});const VE=px(BE,{BreadcrumbItem:$E}),UE=fx($E),HE=["default","primary","success","warning","info","danger","text",""],zE=W_({size:ex,disabled:{type:Boolean,default:void 0},type:{type:String,values:HE,default:""},icon:{type:YS},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:YS,default:()=>oS},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:[String,Object],default:"button"}}),YE={click:e=>e instanceof MouseEvent},GE=Symbol(),WE=mo();function jE(e,t=void 0){const i=_u()?Sr(GE,WE):WE;return e?Lu(()=>{var a;return(null==(a=i.value)?void 0:a[e])??t}):i}function qE(e,t){const i=jE(),a=ib(e,Lu(()=>{var e;return(null==(e=i.value)?void 0:e.namespace)||"el"})),n=Qv(Lu(()=>{var e;return null==(e=i.value)?void 0:e.locale})),s=Zy(Lu(()=>{var e;const t=null==(e=i.value)?void 0:e.zIndex;return vn(t)||Number.isNaN(t)?2e3:t})),o=Lu(()=>{var e;return xo(t)||(null==(e=i.value)?void 0:e.size)||""});return KE(Lu(()=>xo(i)||{})),{ns:a,locale:n,zIndex:s,size:o}}const KE=(e,t,i=!1)=>{const a=!!_u(),n=a?jE():void 0,s=a?xr:void 0;if(!s)return void K_("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const o=Lu(()=>{const t=xo(e);return(null==n?void 0:n.value)?XE(n.value,t):t});return s(GE,o),s(Zv,Lu(()=>o.value.locale)),s(eb,Lu(()=>o.value.namespace)),s(Xy,Lu(()=>o.value.zIndex)),s(tx,{size:Lu(()=>o.value.size||"")}),s(sx,Lu(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),!i&&WE.value||(WE.value=o.value),o},XE=(e,t)=>{const i=[...new Set([...Pn(e),...Pn(t)])],a={};for(const n of i)a[n]=void 0!==t[n]?t[n]:e[n];return a},ZE=(W_({a11y:{type:Boolean,default:!0},locale:{type:Object},size:ex,button:{type:Object},card:{type:Object},dialog:{type:Object},link:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"},table:{type:Object},...rx}),{placement:"top"}),QE=Symbol("buttonGroupContextKey");function JE(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");const i=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function ek(e){return Math.min(1,Math.max(0,e))}function tk(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ik(e){return Number(e)<=1?100*Number(e)+"%":e}function ak(e){return 1===e.length?"0"+e:String(e)}function nk(e,t,i){e=JE(e,255),t=JE(t,255),i=JE(i,255);const a=Math.max(e,t,i),n=Math.min(e,t,i);let s=0,o=0;const r=(a+n)/2;if(a===n)o=0,s=0;else{const l=a-n;switch(o=r>.5?l/(2-a-n):l/(a+n),a){case e:s=(t-i)/l+(t<i?6:0);break;case t:s=(i-e)/l+2;break;case i:s=(e-t)/l+4}s/=6}return{h:s,s:o,l:r}}function sk(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*i*(t-e):i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function ok(e,t,i){e=JE(e,255),t=JE(t,255),i=JE(i,255);const a=Math.max(e,t,i),n=Math.min(e,t,i);let s=0;const o=a,r=a-n,l=0===a?0:r/a;if(a===n)s=0;else{switch(a){case e:s=(t-i)/r+(t<i?6:0);break;case t:s=(i-e)/r+2;break;case i:s=(e-t)/r+4}s/=6}return{h:s,s:l,v:o}}function rk(e,t,i,a){const n=[ak(Math.round(e).toString(16)),ak(Math.round(t).toString(16)),ak(Math.round(i).toString(16))];return a&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function lk(e,t,i){let a=1-e/255,n=1-t/255,s=1-i/255,o=Math.min(a,n,s);return 1===o?(a=0,n=0,s=0):(a=(a-o)/(1-o)*100,n=(n-o)/(1-o)*100,s=(s-o)/(1-o)*100),o*=100,{c:Math.round(a),m:Math.round(n),y:Math.round(s),k:Math.round(o)}}function ck(e){return dk(e)/255}function dk(e){return parseInt(e,16)}const uk={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function pk(e){let t={r:0,g:0,b:0},i=1,a=null,n=null,s=null,o=!1,r=!1;var l,c,d;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;let t=!1;if(uk[e])e=uk[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};let i=mk.rgb.exec(e);if(i)return{r:i[1],g:i[2],b:i[3]};if(i=mk.rgba.exec(e),i)return{r:i[1],g:i[2],b:i[3],a:i[4]};if(i=mk.hsl.exec(e),i)return{h:i[1],s:i[2],l:i[3]};if(i=mk.hsla.exec(e),i)return{h:i[1],s:i[2],l:i[3],a:i[4]};if(i=mk.hsv.exec(e),i)return{h:i[1],s:i[2],v:i[3]};if(i=mk.hsva.exec(e),i)return{h:i[1],s:i[2],v:i[3],a:i[4]};if(i=mk.cmyk.exec(e),i)return{c:i[1],m:i[2],y:i[3],k:i[4]};if(i=mk.hex8.exec(e),i)return{r:dk(i[1]),g:dk(i[2]),b:dk(i[3]),a:ck(i[4]),format:t?"name":"hex8"};if(i=mk.hex6.exec(e),i)return{r:dk(i[1]),g:dk(i[2]),b:dk(i[3]),format:t?"name":"hex"};if(i=mk.hex4.exec(e),i)return{r:dk(i[1]+i[1]),g:dk(i[2]+i[2]),b:dk(i[3]+i[3]),a:ck(i[4]+i[4]),format:t?"name":"hex8"};if(i=mk.hex3.exec(e),i)return{r:dk(i[1]+i[1]),g:dk(i[2]+i[2]),b:dk(i[3]+i[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(_k(e.r)&&_k(e.g)&&_k(e.b)?(l=e.r,c=e.g,d=e.b,t={r:255*JE(l,255),g:255*JE(c,255),b:255*JE(d,255)},o=!0,r="%"===String(e.r).substr(-1)?"prgb":"rgb"):_k(e.h)&&_k(e.s)&&_k(e.v)?(a=ik(e.s),n=ik(e.v),t=function(e,t,i){e=6*JE(e,360),t=JE(t,100),i=JE(i,100);const a=Math.floor(e),n=e-a,s=i*(1-t),o=i*(1-n*t),r=i*(1-(1-n)*t),l=a%6;return{r:255*[i,o,s,s,r,i][l],g:255*[r,i,i,o,s,s][l],b:255*[s,s,r,i,i,o][l]}}(e.h,a,n),o=!0,r="hsv"):_k(e.h)&&_k(e.s)&&_k(e.l)?(a=ik(e.s),s=ik(e.l),t=function(e,t,i){let a,n,s;if(e=JE(e,360),t=JE(t,100),i=JE(i,100),0===t)n=i,s=i,a=i;else{const o=i<.5?i*(1+t):i+t-i*t,r=2*i-o;a=sk(r,o,e+1/3),n=sk(r,o,e),s=sk(r,o,e-1/3)}return{r:255*a,g:255*n,b:255*s}}(e.h,a,s),o=!0,r="hsl"):_k(e.c)&&_k(e.m)&&_k(e.y)&&_k(e.k)&&(t=function(e,t,i,a){const n=a/100;return{r:255*(1-e/100)*(1-n),g:255*(1-t/100)*(1-n),b:255*(1-i/100)*(1-n)}}(e.c,e.m,e.y,e.k),o=!0,r="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=tk(i),{ok:o,format:e.format||r,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:i}}const hk="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",fk="[\\s|\\(]+("+hk+")[,|\\s]+("+hk+")[,|\\s]+("+hk+")\\s*\\)?",gk="[\\s|\\(]+("+hk+")[,|\\s]+("+hk+")[,|\\s]+("+hk+")[,|\\s]+("+hk+")\\s*\\)?",mk={CSS_UNIT:new RegExp(hk),rgb:new RegExp("rgb"+fk),rgba:new RegExp("rgba"+gk),hsl:new RegExp("hsl"+fk),hsla:new RegExp("hsla"+gk),hsv:new RegExp("hsv"+fk),hsva:new RegExp("hsva"+gk),cmyk:new RegExp("cmyk"+gk),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function _k(e){return"number"==typeof e?!Number.isNaN(e):mk.CSS_UNIT.test(e)}class vk{constructor(e="",t={}){if(e instanceof vk)return e;"number"==typeof e&&(e=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(e)),this.originalInput=e;const i=pk(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??i.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3}getLuminance(){const e=this.toRgb();let t,i,a;const n=e.r/255,s=e.g/255,o=e.b/255;return t=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),i=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),a=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),.2126*t+.7152*i+.0722*a}getAlpha(){return this.a}setAlpha(e){return this.a=tk(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return 0===e}toHsv(){const e=ok(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=ok(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),a=Math.round(100*e.v);return 1===this.a?`hsv(${t}, ${i}%, ${a}%)`:`hsva(${t}, ${i}%, ${a}%, ${this.roundA})`}toHsl(){const e=nk(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}}toHslString(){const e=nk(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),a=Math.round(100*e.l);return 1===this.a?`hsl(${t}, ${i}%, ${a}%)`:`hsla(${t}, ${i}%, ${a}%, ${this.roundA})`}toHex(e=!1){return rk(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return function(e,t,i,a,n){const s=[ak(Math.round(e).toString(16)),ak(Math.round(t).toString(16)),ak(Math.round(i).toString(16)),ak((o=a,Math.round(255*parseFloat(o)).toString(16)))];var o;return n&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return 1===this.a?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return 1===this.a?`rgb(${e}, ${t}, ${i})`:`rgba(${e}, ${t}, ${i}, ${this.roundA})`}toPercentageRgb(){const e=e=>`${Math.round(100*JE(e,255))}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=e=>Math.round(100*JE(e,255));return 1===this.a?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...lk(this.r,this.g,this.b)}}toCmykString(){const{c:e,m:t,y:i,k:a}=lk(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${i}, ${a})`}toName(){if(0===this.a)return"transparent";if(this.a<1)return!1;const e="#"+rk(this.r,this.g,this.b,!1);for(const[t,i]of Object.entries(uk))if(e===i)return t;return!1}toString(e){const t=Boolean(e);e=e??this.format;let i=!1;const a=this.a<1&&this.a>=0;return t||!a||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(i=this.toRgbString()),"prgb"===e&&(i=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(i=this.toHexString()),"hex3"===e&&(i=this.toHexString(!0)),"hex4"===e&&(i=this.toHex8String(!0)),"hex8"===e&&(i=this.toHex8String()),"name"===e&&(i=this.toName()),"hsl"===e&&(i=this.toHslString()),"hsv"===e&&(i=this.toHsvString()),"cmyk"===e&&(i=this.toCmykString()),i||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new vk(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=ek(t.l),new vk(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new vk(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=ek(t.l),new vk(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=ek(t.s),new vk(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=ek(t.s),new vk(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),i=(t.h+e)%360;return t.h=i<0?360+i:i,new vk(t)}mix(e,t=50){const i=this.toRgb(),a=new vk(e).toRgb(),n=t/100,s={r:(a.r-i.r)*n+i.r,g:(a.g-i.g)*n+i.g,b:(a.b-i.b)*n+i.b,a:(a.a-i.a)*n+i.a};return new vk(s)}analogous(e=6,t=30){const i=this.toHsl(),a=360/t,n=[this];for(i.h=(i.h-(a*e>>1)+720)%360;--e;)i.h=(i.h+a)%360,n.push(new vk(i));return n}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new vk(e)}monochromatic(e=6){const t=this.toHsv(),{h:i}=t,{s:a}=t;let{v:n}=t;const s=[],o=1/e;for(;e--;)s.push(new vk({h:i,s:a,v:n})),n=(n+o)%1;return s}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new vk({h:(t+72)%360,s:e.s,l:e.l}),new vk({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),i=new vk(e).toRgb(),a=t.a+i.a*(1-t.a);return new vk({r:(t.r*t.a+i.r*i.a*(1-t.a))/a,g:(t.g*t.a+i.g*i.a*(1-t.a))/a,b:(t.b*t.a+i.b*i.a*(1-t.a))/a,a:a})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:i}=t,a=[this],n=360/e;for(let s=1;s<e;s++)a.push(new vk({h:(i+s*n)%360,s:t.s,l:t.l}));return a}equals(e){const t=new vk(e);return"cmyk"===this.format||"cmyk"===t.format?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}}function bk(e,t=20){return e.mix("#141414",t).toString()}var yk=sl({name:"ElButton",__name:"button",props:zE,emits:YE,setup(e,{expose:t,emit:i}){const a=e,n=i,s=function(e){const t=_w(),i=ib("button");return Lu(()=>{let a={},n=e.color;if(n){const s=n.match(/var\((.*?)\)/);s&&(n=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const o=new vk(n),r=e.dark?o.tint(20).toString():bk(o,20);if(e.plain)a=i.cssVarBlock({"bg-color":e.dark?bk(o,90):o.tint(90).toString(),"text-color":n,"border-color":e.dark?bk(o,50):o.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":n,"hover-border-color":n,"active-bg-color":r,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":r}),t.value&&(a[i.cssVarBlockName("disabled-bg-color")]=e.dark?bk(o,90):o.tint(90).toString(),a[i.cssVarBlockName("disabled-text-color")]=e.dark?bk(o,50):o.tint(50).toString(),a[i.cssVarBlockName("disabled-border-color")]=e.dark?bk(o,80):o.tint(80).toString());else if(e.link||e.text){const s=e.dark?bk(o,30):o.tint(30).toString();if(a=i.cssVarBlock({"text-color":n,"hover-text-color":s,"active-text-color":r}),e.link&&(a[i.cssVarBlockName("hover-link-text-color")]=s,a[i.cssVarBlockName("active-color")]=r),t.value){const t=e.dark?bk(o,50):o.tint(50).toString();a[i.cssVarBlockName("disabled-bg-color")]="transparent",a[i.cssVarBlockName("disabled-text-color")]=t,a[i.cssVarBlockName("disabled-border-color")]="transparent"}}else{const s=e.dark?bk(o,30):o.tint(30).toString(),l=o.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(a=i.cssVarBlock({"bg-color":n,"text-color":l,"border-color":n,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":r,"active-border-color":r}),t.value){const t=e.dark?bk(o,50):o.tint(50).toString();a[i.cssVarBlockName("disabled-bg-color")]=t,a[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,a[i.cssVarBlockName("disabled-border-color")]=t}}}return a})}(a),o=ib("button"),{_ref:r,_size:l,_type:c,_disabled:d,_props:u,_plain:p,_round:h,_text:f,_dashed:g,shouldAddSpace:m,handleClick:_}=((e,t)=>{Dv({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},Lu(()=>"text"===e.type));const i=Sr(QE,void 0),a=jE("button"),{form:n}=vw(),s=mw(Lu(()=>null==i?void 0:i.size)),o=_w(),r=mo(),l=Sc(),c=Lu(()=>{var t;return e.type||(null==i?void 0:i.type)||(null==(t=a.value)?void 0:t.type)||""}),d=Lu(()=>{var t;return e.autoInsertSpace??(null==(t=a.value)?void 0:t.autoInsertSpace)??!1}),u=Lu(()=>{var t;return e.plain??(null==(t=a.value)?void 0:t.plain)??!1}),p=Lu(()=>{var t;return e.round??(null==(t=a.value)?void 0:t.round)??!1}),h=Lu(()=>{var t;return e.text??(null==(t=a.value)?void 0:t.text)??!1}),f=Lu(()=>{var t;return e.dashed??(null==(t=a.value)?void 0:t.dashed)??!1}),g=Lu(()=>"button"===e.tag?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=Lu(()=>{var e;const t=null==(e=l.default)?void 0:e.call(l);if(d.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===Bd){const t=e.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(t.trim())}}return!1});return{_disabled:o,_size:s,_type:c,_ref:r,_props:g,_plain:u,_round:p,_text:h,_dashed:f,shouldAddSpace:m,handleClick:i=>{o.value||e.loading?i.stopPropagation():("reset"===e.nativeType&&(null==n||n.resetFields()),t("click",i))}}})(a,n),v=Lu(()=>[o.b(),o.m(c.value),o.m(l.value),o.is("disabled",d.value),o.is("loading",a.loading),o.is("plain",p.value),o.is("round",h.value),o.is("circle",a.circle),o.is("text",f.value),o.is("dashed",g.value),o.is("link",a.link),o.is("has-bg",a.bg)]);return t({ref:r,size:l,type:c,disabled:d,shouldAddSpace:m}),(t,i)=>(zd(),Kd(tc(e.tag),uu({ref_key:"_ref",ref:r},xo(u),{class:v.value,style:xo(s),onClick:xo(_)}),{default:vr(()=>[e.loading?(zd(),qd(Fd,{key:0},[t.$slots.loading?rc(t.$slots,"loading",{key:0}):(zd(),Kd(xo(KS),{key:1,class:se(xo(o).is("loading"))},{default:vr(()=>[(zd(),Kd(tc(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||t.$slots.icon?(zd(),Kd(xo(KS),{key:1},{default:vr(()=>[e.icon?(zd(),Kd(tc(e.icon),{key:0})):rc(t.$slots,"icon",{key:1})]),_:3})):ru("v-if",!0),t.$slots.default?(zd(),qd("span",{key:2,class:se({[xo(o).em("text","expand")]:xo(m)})},[rc(t.$slots,"default")],2)):ru("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var xk=sl({name:"ElButtonGroup",__name:"button-group",props:{size:zE.size,type:zE.type,direction:{type:String,values:["horizontal","vertical"],default:"horizontal"}},setup(e){const t=e;xr(QE,to({size:Io(t,"size"),type:Io(t,"type")}));const i=ib("button");return(e,a)=>(zd(),qd("div",{class:se([xo(i).b("group"),xo(i).bm("group",t.direction)])},[rc(e.$slots,"default")],2))}});const Sk=px(yk,{ButtonGroup:xk}),wk=(fx(xk),["hours","minutes","seconds"]),Ck="EP_PICKER_BASE",Ek="ElPopperOptions",kk=Symbol("commonPickerContextKey"),Tk="HH:mm:ss",Ak="YYYY-MM-DD",Rk={date:Ak,dates:Ak,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Ak} ${Tk}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Ak,datetimerange:`${Ak} ${Tk}`};var Ik="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Dk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ok(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}),i}var Mk,Nk={exports:{}};function Lk(){return Mk||(Mk=1,Nk.exports=function(){var e=1e3,t=6e4,i=36e5,a="millisecond",n="second",s="minute",o="hour",r="day",l="week",c="month",d="quarter",u="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},_=function(e,t,i){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(i)+e},v={s:_,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),a=Math.floor(i/60),n=i%60;return(t<=0?"+":"-")+_(a,2,"0")+":"+_(n,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var a=12*(i.year()-t.year())+(i.month()-t.month()),n=t.clone().add(a,c),s=i-n<0,o=t.clone().add(a+(s?-1:1),c);return+(-(a+(i-n)/(s?n-o:o-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:r,D:p,h:o,m:s,s:n,ms:a,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var x="$isDayjsObject",S=function(e){return e instanceof k||!(!e||!e[x])},w=function e(t,i,a){var n;if(!t)return b;if("string"==typeof t){var s=t.toLowerCase();y[s]&&(n=s),i&&(y[s]=i,n=s);var o=t.split("-");if(!n&&o.length>1)return e(o[0])}else{var r=t.name;y[r]=t,n=r}return!a&&n&&(b=n),n||!a&&b},C=function(e,t){if(S(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new k(i)},E=v;E.l=w,E.i=S,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=m.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var n=a[2]-1||0,s=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return E},_.isValid=function(){return!(this.$d.toString()===h)},_.isSame=function(e,t){var i=C(e);return this.startOf(t)<=i&&i<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,i){return E.u(e)?this[t]:this.set(i,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var i=this,a=!!E.u(t)||t,d=E.p(e),h=function(e,t){var n=E.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return a?n:n.endOf(r)},f=function(e,t){return E.w(i.toDate()[e].apply(i.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},g=this.$W,m=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case u:return a?h(1,0):h(31,11);case c:return a?h(1,m):h(0,m+1);case l:var b=this.$locale().weekStart||0,y=(g<b?g+7:g)-b;return h(a?_-y:_+(6-y),m);case r:case p:return f(v+"Hours",0);case o:return f(v+"Minutes",1);case s:return f(v+"Seconds",2);case n:return f(v+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var i,l=E.p(e),d="set"+(this.$u?"UTC":""),h=(i={},i[r]=d+"Date",i[p]=d+"Date",i[c]=d+"Month",i[u]=d+"FullYear",i[o]=d+"Hours",i[s]=d+"Minutes",i[n]=d+"Seconds",i[a]=d+"Milliseconds",i)[l],f=l===r?this.$D+(t-this.$W):t;if(l===c||l===u){var g=this.clone().set(p,1);g.$d[h](f),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[E.p(e)]()},_.add=function(a,d){var p,h=this;a=Number(a);var f=E.p(d),g=function(e){var t=C(h);return E.w(t.date(t.date()+Math.round(e*a)),h)};if(f===c)return this.set(c,this.$M+a);if(f===u)return this.set(u,this.$y+a);if(f===r)return g(1);if(f===l)return g(7);var m=(p={},p[s]=t,p[o]=i,p[n]=e,p)[f]||1,_=this.$d.getTime()+a*m;return E.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||h;var a=e||"YYYY-MM-DDTHH:mm:ssZ",n=E.z(this),s=this.$H,o=this.$m,r=this.$M,l=i.weekdays,c=i.months,d=i.meridiem,u=function(e,i,n,s){return e&&(e[i]||e(t,a))||n[i].slice(0,s)},p=function(e){return E.s(s%12||12,e,"0")},f=d||function(e,t,i){var a=e<12?"AM":"PM";return i?a.toLowerCase():a};return a.replace(g,function(e,a){return a||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return r+1;case"MM":return E.s(r+1,2,"0");case"MMM":return u(i.monthsShort,r,c,3);case"MMMM":return u(c,r);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(i.weekdaysMin,t.$W,l,2);case"ddd":return u(i.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(s);case"HH":return E.s(s,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(s,o,!0);case"A":return f(s,o,!1);case"m":return String(o);case"mm":return E.s(o,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(a,p,h){var f,g=this,m=E.p(p),_=C(a),v=(_.utcOffset()-this.utcOffset())*t,b=this-_,y=function(){return E.m(g,_)};switch(m){case u:f=y()/12;break;case c:f=y();break;case d:f=y()/3;break;case l:f=(b-v)/6048e5;break;case r:f=(b-v)/864e5;break;case o:f=b/i;break;case s:f=b/t;break;case n:f=b/e;break;default:f=b}return h?f:E.a(f)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return y[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),a=w(e,t,!0);return a&&(i.$L=a),i},_.clone=function(){return E.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},m}(),T=k.prototype;return C.prototype=T,[["$ms",a],["$s",n],["$m",s],["$H",o],["$W",r],["$M",c],["$y",u],["$D",p]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,k,C),e.$i=!0),C},C.locale=w,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C}()),Nk.exports}const Pk=Dk(Lk()),Fk=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Bk=e=>Array.from(Array.from({length:e}).keys()),$k=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Vk=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Uk=function(e,t){const i=T(e),a=T(t);return i&&a?e.getTime()===t.getTime():!i&&!a&&e===t},Hk=function(e,t){const i=C(e),a=C(t);return i&&a?e.length===t.length&&e.every((e,i)=>Uk(e,t[i])):!i&&!a&&Uk(e,t)},zk=function(e,t,i){const a=Mn(t)||"x"===t?Pk(e).locale(i):Pk(e,t).locale(i);return a.isValid()?a:void 0},Yk=function(e,t,i){return Mn(t)?e:"x"===t?+e:Pk(e).locale(i).format(t)},Gk=(e,t)=>{const i=[],a=null==t?void 0:t();for(let n=0;n<e;n++)i.push((null==a?void 0:a.includes(n))??!1);return i},Wk=e=>C(e)?e.map(e=>e.toDate()):e.toDate(),jk=W_({disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function}}),qk=W_({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Kk=W_({automaticDropdown:{type:Boolean,default:!0},id:{type:[Array,String]},name:{type:[Array,String]},popperClass:PC.popperClass,popperStyle:PC.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Mx},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:[String,Object],default:""},size:ex,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},modelValue:{type:[Date,Array,String,Number],default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:[Date,Array]},defaultTime:{type:[Date,Array]},isRange:Boolean,...jk,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,singlePanel:Boolean,placement:{type:String,values:kb,default:"bottom"},fallbackPlacements:{type:Array,default:["bottom","top","right","left"]},...rx,...dx(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),Xk=W_({id:{type:Array},name:{type:Array},modelValue:{type:[Array,String]},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),Zk=(e,t)=>{const{lang:i}=Qv(),a=mo(!1),n=mo(!1),s=mo(null),o=Lu(()=>{const{modelValue:t}=e;return!t||C(t)&&!t.filter(Boolean).length}),r=a=>{if(!Hk(e.modelValue,a)){let n;C(a)?n=a.map(t=>Yk(t,e.valueFormat,i.value)):a&&(n=Yk(a,e.valueFormat,i.value)),t(c,a?n:a,i.value)}},l=Lu(()=>{let t;if(o.value?d.value.getDefaultValue&&(t=d.value.getDefaultValue()):t=C(e.modelValue)?e.modelValue.map(t=>zk(t,e.valueFormat,i.value)):zk(e.modelValue??"",e.valueFormat,i.value),d.value.getRangeAvailableTime){const e=d.value.getRangeAvailableTime(t);_n(e,t)||(t=e,o.value||r(Wk(t)))}return C(t)&&t.some(e=>!e)&&(t=[]),t}),d=mo({});return{parsedValue:l,pickerActualVisible:n,pickerOptions:d,pickerVisible:a,userInput:s,valueIsEmpty:o,emitInput:r,onCalendarChange:e=>{t("calendar-change",e)},onPanelChange:(e,i,a)=>{t("panel-change",e,i,a)},onPick:(e="",t=!1)=>{let i;a.value=t,i=C(e)?e.map(e=>e.toDate()):e?e.toDate():e,s.value=null,r(i)},onSetPickerOption:e=>{d.value[e[0]]=e[1],d.value.panelReady=!0}}},Qk=["id","name","placeholder","value","disabled"],Jk=["id","name","placeholder","value","disabled"];var eT=sl({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:Xk,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:i}){const a=e,n=i,{formItem:s}=vw(),{inputId:o}=bw(to({id:Lu(()=>{var e;return null==(e=a.id)?void 0:e[0]})}),{formItemContext:s}),r=Q_(),l=ib("date"),c=ib("range"),d=mo(),u=mo(),{wrapperRef:p,isFocused:h}=ax(d,{disabled:Lu(()=>a.disabled)}),f=e=>{n("click",e)},g=e=>{n("mouseenter",e)},m=e=>{n("mouseleave",e)},_=e=>{n("touchstart",e)},v=e=>{n("startInput",e)},b=e=>{n("endInput",e)},y=e=>{n("startChange",e)},x=e=>{n("endChange",e)};return t({focus:()=>{var e;null==(e=d.value)||e.focus()},blur:()=>{var e,t;null==(e=d.value)||e.blur(),null==(t=u.value)||t.blur()}}),(e,t)=>(zd(),qd("div",{ref_key:"wrapperRef",ref:p,class:se([xo(l).is("active",xo(h)),e.$attrs.class]),style:ee(e.$attrs.style),onClick:f,onMouseenter:g,onMouseleave:m,onTouchstartPassive:_},[rc(e.$slots,"prefix"),tu("input",uu(xo(r),{id:xo(o),ref_key:"inputRef",ref:d,name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:e.modelValue&&e.modelValue[0],class:xo(c).b("input"),disabled:e.disabled,onInput:v,onChange:y}),null,16,Qk),rc(e.$slots,"range-separator"),tu("input",uu(xo(r),{id:e.id&&e.id[1],ref_key:"endInputRef",ref:u,name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:e.modelValue&&e.modelValue[1],class:xo(c).b("input"),disabled:e.disabled,onInput:b,onChange:x}),null,16,Jk),rc(e.$slots,"suffix")],38))}}),tT=sl({name:"Picker",__name:"picker",props:Kk,emits:[c,d,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:i}){const a=e,n=i,s=wc(),o=ib("date"),r=ib("input"),c=ib("range"),{formItem:u}=vw(),p=Sr(Ek,{}),h=lx(a,null),f=mo(),g=mo(),_=mo(null);let v=!1;const b=_w(),y=Zk(a,n),{parsedValue:x,pickerActualVisible:S,userInput:w,pickerVisible:E,pickerOptions:k,valueIsEmpty:T,emitInput:A,onPick:R,onSetPickerOption:I,onCalendarChange:D,onPanelChange:O}=y,{isFocused:M,handleFocus:N,handleBlur:L}=ax(g,{disabled:b,beforeFocus:()=>a.readonly,afterFocus(){a.automaticDropdown&&(E.value=!0)},beforeBlur(e){var t;return!v&&(null==(t=f.value)?void 0:t.isFocusInsideContent(e))},afterBlur(){var e,t;j.value&&!a.saveOnBlur?T.value||null==(t=(e=k.value).handleCancel)||t.call(e):de(),E.value=!1,v=!1,a.validateEvent&&(null==u||u.validate("blur").catch(m))}}),P=mo(!1),F=Lu(()=>[o.b("editor"),o.bm("editor",a.type),r.e("wrapper"),o.is("disabled",b.value),o.is("active",E.value),c.b("editor"),re?c.bm("editor",re.value):"",s.class]),B=Lu(()=>[r.e("icon"),c.e("close-icon"),Q.value?"":c.em("close-icon","hidden")]);Rr(E,e=>{e?ir(()=>{e&&(_.value=a.modelValue)}):(w.value=null,ir(()=>{$(a.modelValue)}))});const $=(e,t)=>{!t&&Hk(e,_.value)||(n(d,e),t&&(_.value=e),a.validateEvent&&(null==u||u.validate("change").catch(m)))},V=Lu(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),U=(e,t,i)=>{const a=V.value;a.length&&(i&&"min"!==i?"max"===i&&(a[1].setSelectionRange(e,t),a[1].focus()):(a[0].setSelectionRange(e,t),a[0].focus()))},H=()=>{S.value=!0},z=()=>{n("visible-change",!0)},Y=()=>{S.value=!1,E.value=!1,n("visible-change",!1)},G=Lu(()=>{const e=pe(x.value);return C(w.value)?[w.value[0]??(e&&e[0])??"",w.value[1]??(e&&e[1])??""]:null!==w.value?w.value:j.value&&T.value&&!a.saveOnBlur||!j.value&&T.value||!E.value&&T.value?"":e?q.value||K.value||X.value?e.join(", "):e:""}),W=Lu(()=>a.type.includes("time")),j=Lu(()=>a.type.startsWith("time")),q=Lu(()=>"dates"===a.type),K=Lu(()=>"months"===a.type),X=Lu(()=>"years"===a.type),Z=Lu(()=>a.prefixIcon||(W.value?Nx:Sx)),Q=Lu(()=>a.clearable&&!b.value&&!a.readonly&&!T.value&&(P.value||M.value)),J=e=>{a.readonly||b.value||(Q.value&&(null==e||e.stopPropagation(),k.value.handleClear?k.value.handleClear():A(h.valueOnClear.value),$(h.valueOnClear.value,!0),Y()),n("clear"))},te=async e=>{var t;a.readonly||b.value||"INPUT"===(null==(t=e.target)?void 0:t.tagName)&&!M.value&&a.automaticDropdown||(E.value=!0)},ie=()=>{a.readonly||b.value||!T.value&&a.clearable&&(P.value=!0)},ae=()=>{P.value=!1},ne=e=>{var t;a.readonly||b.value||"INPUT"===(null==(t=e.touches[0].target)?void 0:t.tagName)&&!M.value&&a.automaticDropdown||(E.value=!0)},oe=Lu(()=>a.type.includes("range")),re=mw(),le=Lu(()=>{var e,t;return null==(t=null==(e=xo(f))?void 0:e.popperRef)?void 0:t.contentRef}),ce=bv(g,e=>{const t=xo(le),i=_v(g);t&&(e.target===t||e.composedPath().includes(t))||e.target===i||i&&e.composedPath().includes(i)||(E.value=!1)});Wl(()=>{null==ce||ce()});const de=()=>{if(j.value&&!a.saveOnBlur)return;const e=C(w.value)&&w.value.every(e=>""===e);if(w.value&&!e){const e=ue(G.value);e&&(he(e)&&A(Wk(e)),w.value=null)}(""===w.value||e)&&(A(h.valueOnClear.value),$(h.valueOnClear.value,!0),w.value=null)},ue=e=>e?k.value.parseUserInput(e):null,pe=e=>e?C(e)?e.map(e=>e.format(a.format)):e.format(a.format):null,he=e=>k.value.isValidValue(e),fe=async e=>{if(a.readonly||b.value)return;const t=db(e);if(n("keydown",e),t!==l.esc)if(t===l.down&&(k.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),!1===E.value&&(E.value=!0,await ir()),k.value.handleFocusPicker))k.value.handleFocusPicker();else{if(t!==l.tab)return t===l.enter||t===l.numpadEnter?(E.value?(null===w.value||""===w.value||he(ue(G.value)))&&(de(),E.value=!1):E.value=!0,e.preventDefault(),void e.stopPropagation()):void(w.value?e.stopPropagation():k.value.handleKeydownInput&&k.value.handleKeydownInput(e));v=!0}else!0===E.value&&(E.value=!1,e.preventDefault(),e.stopPropagation())},ge=e=>{w.value=e,E.value||(E.value=!0)},_e=e=>{const t=e.target;w.value?w.value=[t.value,w.value[1]]:w.value=[t.value,null]},ve=e=>{const t=e.target;w.value?w.value=[w.value[0],t.value]:w.value=[null,t.value]},be=()=>{var e;const t=w.value,i=ue(t&&t[0]),a=xo(x);if(i&&i.isValid()){w.value=[pe(i),(null==(e=G.value)?void 0:e[1])||null];const t=[i,a&&(a[1]||null)];he(t)&&(A(Wk(t)),w.value=null)}},ye=()=>{var e;const t=xo(w),i=ue(t&&t[1]),a=xo(x);if(i&&i.isValid()){w.value=[(null==(e=xo(G))?void 0:e[0])||null,pe(i)];const t=[a&&a[0],i];he(t)&&(A(Wk(t)),w.value=null)}};return xr(Ck,{props:a,emptyValues:h}),xr(kk,y),t({focus:()=>{var e;null==(e=g.value)||e.focus()},blur:()=>{var e;null==(e=g.value)||e.blur()},handleOpen:()=>{E.value=!0},handleClose:()=>{E.value=!1},onPick:R}),(e,t)=>(zd(),Kd(xo(ZC),uu({ref_key:"refPopper",ref:f,visible:xo(E),effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:`${xo(o).namespace.value}-zoom-in-top`,"popper-class":[`${xo(o).namespace.value}-picker__popper`,e.popperClass],"popper-style":e.popperStyle,"popper-options":xo(p),"fallback-placements":e.fallbackPlacements,"gpu-acceleration":!1,placement:e.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:H,onShow:z,onHide:Y}),{default:vr(()=>[oe.value?(zd(),Kd(eT,{key:1,id:e.id,ref_key:"inputRef",ref:g,"model-value":G.value,name:e.name,disabled:xo(b),readonly:!e.editable||e.readonly,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,class:se(F.value),style:ee(e.$attrs.style),"aria-label":e.ariaLabel,tabindex:e.tabindex,autocomplete:"off",role:"combobox",onClick:te,onFocus:xo(N),onBlur:xo(L),onStartInput:_e,onStartChange:be,onEndInput:ve,onEndChange:ye,onMousedown:te,onMouseenter:ie,onMouseleave:ae,onTouchstartPassive:ne,onKeydown:fe},{prefix:vr(()=>[Z.value?(zd(),Kd(xo(KS),{key:0,class:se([xo(r).e("icon"),xo(c).e("icon")])},{default:vr(()=>[(zd(),Kd(tc(Z.value)))]),_:1},8,["class"])):ru("v-if",!0)]),"range-separator":vr(()=>[rc(e.$slots,"range-separator",{},()=>[tu("span",{class:se(xo(c).b("separator"))},me(e.rangeSeparator),3)])]),suffix:vr(()=>[e.clearIcon?(zd(),Kd(xo(KS),{key:0,class:se(B.value),onMousedown:Ah(xo(m),["prevent"]),onClick:J},{default:vr(()=>[(zd(),Kd(tc(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ru("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(zd(),Kd(xo(cE),{key:0,id:e.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":G.value,name:e.name,size:xo(re),disabled:xo(b),placeholder:e.placeholder,class:se([xo(o).b("editor"),xo(o).bm("editor",e.type),xo(o).is("focus",xo(E)),e.$attrs.class]),style:ee(e.$attrs.style),readonly:!e.editable||e.readonly||q.value||K.value||X.value||"week"===e.type,"aria-label":e.ariaLabel,tabindex:e.tabindex,"validate-event":!1,onInput:ge,onFocus:xo(N),onBlur:xo(L),onKeydown:fe,onChange:de,onMousedown:te,onMouseenter:ie,onMouseleave:ae,onTouchstartPassive:ne,onClick:t[0]||(t[0]=Ah(()=>{},["stop"]))},{prefix:vr(()=>[Z.value?(zd(),Kd(xo(KS),{key:0,class:se(xo(r).e("icon")),onMousedown:Ah(te,["prevent"]),onTouchstartPassive:ne},{default:vr(()=>[(zd(),Kd(tc(Z.value)))]),_:1},8,["class"])):ru("v-if",!0)]),suffix:vr(()=>[Q.value&&e.clearIcon?(zd(),Kd(xo(KS),{key:0,class:se(`${xo(r).e("icon")} clear-icon`),onMousedown:Ah(xo(m),["prevent"]),onClick:J},{default:vr(()=>[(zd(),Kd(tc(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ru("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:vr(()=>[rc(e.$slots,"default",{visible:xo(E),actualVisible:xo(S),parsedValue:xo(x),format:e.format,dateFormat:e.dateFormat,timeFormat:e.timeFormat,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,showNow:e.showNow,showConfirm:e.showConfirm,showFooter:e.showFooter,showWeekNumber:e.showWeekNumber,singlePanel:e.singlePanel,onPick:t[1]||(t[1]=(...e)=>xo(R)&&xo(R)(...e)),onSelectRange:U,onSetPickerOption:t[2]||(t[2]=(...e)=>xo(I)&&xo(I)(...e)),onCalendarChange:t[3]||(t[3]=(...e)=>xo(D)&&xo(D)(...e)),onClear:J,onPanelChange:t[4]||(t[4]=(...e)=>xo(O)&&xo(O)(...e)),onMousedown:t[5]||(t[5]=Ah(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),iT=tT;const aT=new Map;if(av){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const i of aT.values())for(const{documentHandler:a}of i)a(t,e);e=void 0}})}function nT(e,t){let i=[];return C(t.arg)?i=t.arg:Nn(t.arg)&&i.push(t.arg),function(a,n){const s=t.instance.popperRef,o=a.target,r=null==n?void 0:n.target,l=!t||!t.instance,c=!o||!r,d=e.contains(o)||e.contains(r),u=e===o,p=i.length&&i.some(e=>null==e?void 0:e.contains(o))||i.length&&i.includes(r),h=s&&(s.contains(o)||s.contains(r));l||c||d||u||p||h||t.value(a,n)}}const sT={beforeMount(e,t){aT.has(e)||aT.set(e,[]),aT.get(e).push({documentHandler:nT(e,t),bindingFn:t.value})},updated(e,t){aT.has(e)||aT.set(e,[]);const i=aT.get(e),a=i.findIndex(e=>e.bindingFn===t.oldValue),n={documentHandler:nT(e,t),bindingFn:t.value};a>=0?i.splice(a,1,n):i.push(n)},unmounted(e){aT.delete(e)}},oT="_RepeatClick",rT={beforeMount(e,t){const i=t.value,{interval:a=100,delay:n=600}=A(i)?{}:i;let s,o;const r=()=>A(i)?i():i.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),s&&(clearInterval(s),s=void 0)},c=e=>{0===e.button&&(l(),r(),document.addEventListener("mouseup",l,{once:!0}),o=setTimeout(()=>{s=setInterval(()=>{r()},a)},n))};e[oT]={start:c,clear:l},e.addEventListener("mousedown",c)},unmounted(e){if(!e[oT])return;const{start:t,clear:i}=e[oT];t&&e.removeEventListener("mousedown",t),i&&(i(),document.removeEventListener("mouseup",i)),e[oT]=null}},lT="_trap-focus-children",cT=[],dT=e=>{if(0===cT.length)return;const t=db(e),i=cT[cT.length-1][lT];if(i.length>0&&t===l.tab){if(1===i.length)return e.preventDefault(),void(document.activeElement!==i[0]&&i[0].focus());const t=e.shiftKey,a=e.target===i[0],n=e.target===i[i.length-1];a&&t&&(e.preventDefault(),i[i.length-1].focus()),n&&!t&&(e.preventDefault(),i[0].focus())}},uT={beforeMount(e){e[lT]=Nv(e),cT.push(e),cT.length<=1&&document.addEventListener("keydown",dT)},updated(e){ir(()=>{e[lT]=Nv(e)})},unmounted(){cT.shift(),0===cT.length&&document.removeEventListener("keydown",dT)}};var pT,hT,fT,gT,mT,_T,vT,bT,yT,xT,ST,wT,CT,ET,kT,TT=!1;function AT(){if(!TT){TT=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(wT=/\b(iPhone|iP[ao]d)/.exec(e),CT=/\b(iP[ao]d)/.exec(e),xT=/Android/i.exec(e),ET=/FBAN\/\w+;/i.exec(e),kT=/Mobile/i.exec(e),ST=!!/Win64/.exec(e),t){(pT=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(pT=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);_T=a?parseFloat(a[1])+4:pT,hT=t[2]?parseFloat(t[2]):NaN,fT=t[3]?parseFloat(t[3]):NaN,(gT=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),mT=t&&t[1]?parseFloat(t[1]):NaN):mT=NaN}else pT=hT=fT=mT=gT=NaN;if(i){if(i[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);vT=!n||parseFloat(n[1].replace("_","."))}else vT=!1;bT=!!i[2],yT=!!i[3]}else vT=bT=yT=!1}}var RT,IT={ie:function(){return AT()||pT},ieCompatibilityMode:function(){return AT()||_T>pT},ie64:function(){return IT.ie()&&ST},firefox:function(){return AT()||hT},opera:function(){return AT()||fT},webkit:function(){return AT()||gT},safari:function(){return IT.webkit()},chrome:function(){return AT()||mT},windows:function(){return AT()||bT},osx:function(){return AT()||vT},linux:function(){return AT()||yT},iphone:function(){return AT()||wT},mobile:function(){return AT()||wT||CT||xT||kT},nativeApp:function(){return AT()||ET},android:function(){return AT()||xT},ipad:function(){return AT()||CT}},DT=IT,OT={canUseDOM:!!(typeof window<"u"&&window.document&&window.document.createElement)};OT.canUseDOM&&(RT=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var MT=function(e,t){if(!OT.canUseDOM||t&&!("addEventListener"in document))return!1;var i="on"+e,a=i in document;if(!a){var n=document.createElement("div");n.setAttribute(i,"return;"),a="function"==typeof n[i]}return!a&&RT&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a};function NT(e){var t=0,i=0,a=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),a=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||n)&&e.deltaMode&&(1==e.deltaMode?(a*=40,n*=40):(a*=800,n*=800)),a&&!t&&(t=a<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:a,pixelY:n}}NT.getEventType=function(){return DT.firefox()?"DOMMouseScroll":MT("wheel")?"wheel":"mousewheel"};var LT=NT;
36 /**
37 * Checks if an event is supported in the current execution environment.
38 *
39 * NOTE: This will not work correctly for non-generic events such as `change`,
40 * `reset`, `load`, `error`, and `select`.
41 *
42 * Borrows from Modernizr.
43 *
44 * @param {string} eventNameSuffix Event name, e.g. "click".
45 * @param {?boolean} capture Check if the capture phase is supported.
46 * @return {boolean} True if the event is supported.
47 * @internal
48 * @license Modernizr 3.0.0pre (Custom Build) | MIT
49 */const PT="_Mousewheel",FT=function(e,t){if(e&&e.addEventListener){BT(e);const i=function(e){const i=LT(e);t&&Reflect.apply(t,this,[e,i])};e[PT]={wheelHandler:i},e.addEventListener("wheel",i,{passive:!0})}},BT=e=>{var t;(null==(t=e._Mousewheel)?void 0:t.wheelHandler)&&(e.removeEventListener("wheel",e[PT].wheelHandler),e[PT]=null)},$T={beforeMount(e,t){FT(e,t.value)},unmounted(e){BT(e)},updated(e,t){t.value!==t.oldValue&&FT(e,t.value)}},VT=W_({...qk,datetimeRole:String,parsedValue:{type:Object}}),UT=e=>e.map((e,t)=>e||t).filter(e=>!0!==e),HT=(e,t,i)=>({getHoursList:(t,i)=>Gk(24,e&&(()=>null==e?void 0:e(t,i))),getMinutesList:(e,i,a)=>Gk(60,t&&(()=>null==t?void 0:t(e,i,a))),getSecondsList:(e,t,a,n)=>Gk(60,i&&(()=>null==i?void 0:i(e,t,a,n)))}),zT=W_({role:{type:String,required:!0},spinnerDate:{type:Object,required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""},...jk}),YT=["onClick"],GT=["onMouseenter"];var WT=sl({__name:"basic-time-spinner",props:zT,emits:[d,"select-range","set-option"],setup(e,{emit:t}){const i=e,{isRange:a,format:n,saveOnBlur:s}=Sr(Ck).props,o=t,r=ib("time"),{getHoursList:l,getMinutesList:c,getSecondsList:u}=HT(i.disabledHours,i.disabledMinutes,i.disabledSeconds);let p=!1;const h={hours:!1,minutes:!1,seconds:!1},f=mo(),g={hours:mo(),minutes:mo(),seconds:mo()},m=Lu(()=>i.showSeconds?wk:wk.slice(0,2)),_=Lu(()=>{const{spinnerDate:e}=i;return{hours:e.hour(),minutes:e.minute(),seconds:e.second()}}),v=Lu(()=>{const{hours:e,minutes:t}=xo(_),{role:n,spinnerDate:s}=i,o=a?void 0:s;return{hours:l(n,o),minutes:c(e,n,o),seconds:u(e,t,n,o)}}),b=Lu(()=>{const{hours:e,minutes:t,seconds:i}=xo(_);return{hours:Fk(e,23),minutes:Fk(t,59),seconds:Fk(i,59)}}),y=rn(e=>{p=!1,w(e)},200),x=e=>{if(!i.amPmMode)return"";let t=e<12?" am":" pm";return"A"===i.amPmMode&&(t=t.toUpperCase()),t},S=e=>{let t=[0,0];const i=n||"HH:mm:ss",a=i.indexOf("HH"),s=i.indexOf("mm"),r=i.indexOf("ss");switch(e){case"hours":-1!==a&&(t=[a,a+2]);break;case"minutes":-1!==s&&(t=[s,s+2]);break;case"seconds":-1!==r&&(t=[r,r+2])}const[l,c]=t;o("select-range",l,c),f.value=e},w=e=>{k(e,xo(_)[e])},C=()=>{w("hours"),w("minutes"),w("seconds")},E=e=>e.querySelector(`.${r.namespace.value}-scrollbar__wrap`),k=(e,t)=>{if(i.arrowControl)return;const a=xo(g[e]);a&&a.$el&&(s||(h[e]=!0,ab(()=>{h[e]=!1})),E(a.$el).scrollTop=Math.max(0,t*T(e)))},T=e=>{var t;const i=null==(t=xo(g[e]))?void 0:t.$el.querySelector("li");return i&&Number.parseFloat(Gv(i,"height"))||0},A=()=>{I(1)},R=()=>{I(-1)},I=e=>{f.value||S("hours");const t=f.value,i=xo(_)[t],a=D(t,i,e,"hours"===f.value?24:60);O(t,a),k(t,a),ir(()=>S(t))},D=(e,t,i,a)=>{let n=(t+i+a)%a;const s=xo(v)[e];for(;s[n]&&n!==t;)n=(n+i+a)%a;return n},O=(e,t)=>{if(xo(v)[e][t])return;const{hours:a,minutes:n,seconds:s}=xo(_);let r;switch(e){case"hours":r=i.spinnerDate.hour(t).minute(n).second(s);break;case"minutes":r=i.spinnerDate.hour(a).minute(t).second(s);break;case"seconds":r=i.spinnerDate.hour(a).minute(n).second(t)}o(d,r)},M=e=>xo(g[e]).$el.offsetHeight,N=()=>{const e=e=>{const t=xo(g[e]);t&&t.$el&&(E(t.$el).onscroll=()=>{(e=>{if(!s&&h[e])return;const t=xo(g[e]);t&&(p=!0,y(e),O(e,Math.min(Math.round((E(t.$el).scrollTop-(.5*M(e)-10)/T(e)+3)/T(e)),"hours"===e?23:59)))})(e)})};e("hours"),e("minutes"),e("seconds")};zl(()=>{ir(()=>{!i.arrowControl&&N(),C(),"start"===i.role&&S("hours")})});return o("set-option",[`${i.role}_scrollDown`,I]),o("set-option",[`${i.role}_emitSelectRange`,S]),Rr(()=>i.spinnerDate,()=>{p||C()}),(e,t)=>(zd(),qd("div",{class:se([xo(r).b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?ru("v-if",!0):(zd(!0),qd(Fd,{key:0},sc(m.value,t=>(zd(),Kd(xo(SE),{key:t,ref_for:!0,ref:e=>((e,t)=>{g[t].value=e??void 0})(e,t),class:se(xo(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":xo(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:e=>S(t),onMousemove:e=>w(t)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(v.value[t],(i,a)=>(zd(),qd("li",{key:a,class:se([xo(r).be("spinner","item"),xo(r).is("active",a===_.value[t]),xo(r).is("disabled",i)]),onClick:e=>((e,{value:t,disabled:i})=>{i||(O(e,t),S(e),k(e,t))})(t,{value:a,disabled:i})},["hours"===t?(zd(),qd(Fd,{key:0},[su(me(("0"+(e.amPmMode?a%12||12:a)).slice(-2))+me(x(a)),1)],64)):(zd(),qd(Fd,{key:1},[su(me(("0"+a).slice(-2)),1)],64))],10,YT))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),e.arrowControl?(zd(!0),qd(Fd,{key:1},sc(m.value,t=>(zd(),qd("div",{key:t,class:se([xo(r).be("spinner","wrapper"),xo(r).is("arrow")]),onMouseenter:e=>S(t)},[br((zd(),Kd(xo(KS),{class:se(["arrow-up",xo(r).be("spinner","arrow")])},{default:vr(()=>[iu(xo(yx))]),_:1},8,["class"])),[[xo(rT),R]]),br((zd(),Kd(xo(KS),{class:se(["arrow-down",xo(r).be("spinner","arrow")])},{default:vr(()=>[iu(xo(_x))]),_:1},8,["class"])),[[xo(rT),A]]),tu("ul",{class:se(xo(r).be("spinner","list"))},[(zd(!0),qd(Fd,null,sc(b.value[t],(i,a)=>(zd(),qd("li",{key:a,class:se([xo(r).be("spinner","item"),xo(r).is("active",i===_.value[t]),xo(r).is("disabled",v.value[t][i])])},[xo(On)(i)?(zd(),qd(Fd,{key:0},["hours"===t?(zd(),qd(Fd,{key:0},[su(me(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+me(x(i)),1)],64)):(zd(),qd(Fd,{key:1},[su(me(("0"+i).slice(-2)),1)],64))],64)):ru("v-if",!0)],2))),128))],2)],42,GT))),128)):ru("v-if",!0)],2))}}),jT=sl({__name:"panel-time-pick",props:VT,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const i=e,a=t,n=Sr(Ck),{arrowControl:s,disabledHours:o,disabledMinutes:r,disabledSeconds:c,defaultValue:d}=n.props,{getAvailableHours:u,getAvailableMinutes:p,getAvailableSeconds:h}=((e,t,i)=>{const{getHoursList:a,getMinutesList:n,getSecondsList:s}=HT(e,t,i);return{getAvailableHours:(e,t)=>UT(a(e,t)),getAvailableMinutes:(e,t,i)=>UT(n(e,t,i)),getAvailableSeconds:(e,t,i,a)=>UT(s(e,t,i,a))}})(o,r,c),f=ib("time"),{t:g,lang:m}=Qv(),_=mo([0,2]),v=((e,t)=>{const i=mo(e.parsedValue);return Rr(()=>e.visible,a=>{const n=So(t.modelValue),s=So(t.valueOnClear);a&&n===s?i.value=s:a||(i.value=e.parsedValue)}),i})(i,{modelValue:Lu(()=>n.props.modelValue),valueOnClear:Lu(()=>(null==n?void 0:n.emptyValues)?n.emptyValues.valueOnClear.value:null)}),b=Lu(()=>In(i.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),y=Lu(()=>i.format.includes("ss")),x=Lu(()=>i.format.includes("A")?"A":i.format.includes("a")?"a":""),S=()=>{const e=v.value;a("pick",e,!1),ir(()=>{v.value=e})},w=e=>{i.visible&&a("pick",A(e).millisecond(0),!0)},C=(e,t)=>{a("select-range",e,t),_.value=[e,t]},{timePickerOptions:E,onSetOption:k,getAvailableTime:T}=(({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:i})=>{const a={};return{timePickerOptions:a,getAvailableTime:(a,n,s,o)=>{const r={hour:e,minute:t,second:i};let l=a;return["hour","minute","second"].forEach(e=>{if(r[e]){let t;const i=r[e];switch(e){case"minute":t=i(l.hour(),n,o);break;case"second":t=i(l.hour(),l.minute(),n,o);break;default:t=i(n,o)}if((null==t?void 0:t.length)&&!t.includes(l[e]())){const i=s?0:t.length-1;l=l[e](t[i])}}}),l},onSetOption:([e,t])=>{a[e]=t}}})({getAvailableHours:u,getAvailableMinutes:p,getAvailableSeconds:h}),A=e=>T(e,i.datetimeRole||"",!0);return a("set-picker-option",["isValidValue",e=>{const t=Pk(e).locale(m.value),i=A(t);return t.isSame(i)}]),a("set-picker-option",["parseUserInput",e=>e?Pk(e,i.format).locale(m.value):null]),a("set-picker-option",["handleKeydownInput",e=>{const t=db(e),{left:a,right:n,up:s,down:o}=l;if([a,n].includes(t))return(e=>{const t=i.format,a=t.indexOf("HH"),n=t.indexOf("mm"),s=t.indexOf("ss"),o=[],r=[];-1!==a&&(o.push(a),r.push("hours")),-1!==n&&(o.push(n),r.push("minutes")),-1!==s&&y.value&&(o.push(s),r.push("seconds"));const l=(o.indexOf(_.value[0])+e+o.length)%o.length;E.start_emitSelectRange(r[l])})(t===a?-1:1),void e.preventDefault();if([s,o].includes(t)){const i=t===s?-1:1;return E.start_scrollDown(i),void e.preventDefault()}}]),a("set-picker-option",["getRangeAvailableTime",A]),a("set-picker-option",["getDefaultValue",()=>Pk(d).locale(m.value)]),a("set-picker-option",["handleCancel",S]),(e,t)=>(zd(),Kd(np,{name:b.value},{default:vr(()=>[e.actualVisible||e.visible?(zd(),qd("div",{key:0,class:se(xo(f).b("panel"))},[tu("div",{class:se([xo(f).be("panel","content"),{"has-seconds":y.value}])},[iu(WT,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":xo(s),"show-seconds":y.value,"am-pm-mode":x.value,"spinner-date":e.parsedValue,"disabled-hours":xo(o),"disabled-minutes":xo(r),"disabled-seconds":xo(c),onChange:w,onSetOption:xo(k),onSelectRange:C},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),tu("div",{class:se(xo(f).be("panel","footer"))},[tu("button",{type:"button",class:se([xo(f).be("panel","btn"),"cancel"]),onClick:S},me(xo(g)("el.datepicker.cancel")),3),tu("button",{type:"button",class:se([xo(f).be("panel","btn"),"confirm"]),onClick:t[0]||(t[0]=e=>((e=!1,t=!1)=>{t||a("pick",i.parsedValue,e)})())},me(xo(g)("el.datepicker.confirm")),3)],2)],2)):ru("v-if",!0)]),_:1},8,["name"]))}}),qT=jT,KT={exports:{}};KT.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,o={},r=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),i=60*t[1]+(+t[2]||0);return 0===i?0:"+"===t[0]?-i:i}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var i,a=o.meridiem;if(a){for(var n=1;n<=24;n+=1)if(e.indexOf(a(n,0,t))>-1){i=n>12;break}}else i=e===(t?"pm":"PM");return i},p={A:[s,function(e){this.afternoon=u(e,!1)}],a:[s,function(e){this.afternoon=u(e,!0)}],Q:[i,function(e){this.month=3*(e-1)+1}],S:[i,function(e){this.milliseconds=100*+e}],SS:[a,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,l("seconds")],ss:[n,l("seconds")],m:[n,l("minutes")],mm:[n,l("minutes")],H:[n,l("hours")],h:[n,l("hours")],HH:[n,l("hours")],hh:[n,l("hours")],D:[n,l("day")],DD:[a,l("day")],Do:[s,function(e){var t=o.ordinal,i=e.match(/\d+/);if(this.day=i[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],w:[n,l("week")],ww:[a,l("week")],M:[n,l("month")],MM:[a,l("month")],MMM:[s,function(e){var t=d("months"),i=(d("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[s,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(e){this.year=r(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(i){var a,n;a=i,n=o&&o.formats;for(var s=(i=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,i,a){var s=a&&a.toUpperCase();return i||n[a]||e[a]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})})).match(t),r=s.length,l=0;l<r;l+=1){var c=s[l],d=p[c],u=d&&d[0],h=d&&d[1];s[l]=h?{regex:u,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},i=0,a=0;i<r;i+=1){var n=s[i];if("string"==typeof n)a+=n.length;else{var o=n.regex,l=n.parser,c=e.slice(a),d=o.exec(c)[0];l.call(t,d),e=e.replace(d,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var i=e.hours;t?i<12&&(e.hours+=12):12===i&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,i){i.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(r=e.parseTwoDigitYear);var a=t.prototype,n=a.parse;a.parse=function(e){var t=e.date,a=e.utc,s=e.args;this.$u=a;var r=s[1];if("string"==typeof r){var l=!0===s[2],c=!0===s[3],d=l||c,u=s[2];c&&(u=s[2]),o=this.$locale(),!l&&u&&(o=i.Ls[u]),this.$d=function(e,t,i,a){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=h(t)(e),s=n.year,o=n.month,r=n.day,l=n.hours,c=n.minutes,d=n.seconds,u=n.milliseconds,p=n.zone,f=n.week,g=new Date,m=r||(s||o?1:g.getDate()),_=s||g.getFullYear(),v=0;s&&!o||(v=o>0?o-1:g.getMonth());var b,y=l||0,x=c||0,S=d||0,w=u||0;return p?new Date(Date.UTC(_,v,m,y,x,S,w+60*p.offset*1e3)):i?new Date(Date.UTC(_,v,m,y,x,S,w)):(b=new Date(_,v,m,y,x,S,w),f&&(b=a(b).week(f).toDate()),b)}catch(C){return new Date("")}}(t,r,a,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(r)&&(this.$d=new Date("")),o={}}else if(r instanceof Array)for(var p=r.length,f=1;f<=p;f+=1){s[1]=r[f-1];var g=i.apply(this,s);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===p&&(this.$d=new Date(""))}else n.call(this,e)}}}();const XT=Dk(KT.exports),ZT=W_({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:p},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),QT=["aria-label"],JT=["aria-label"];var eA=sl({name:"ElTag",__name:"tag",props:ZT,emits:{close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},setup(e,{emit:t}){const i=e,a=t,n=mw(),{t:s}=Qv(),o=ib("tag"),r=Lu(()=>{const{type:e,hit:t,effect:a,closable:s,round:r}=i;return[o.b(),o.is("closable",s),o.m(e||"primary"),o.m(n.value),o.m(a),o.is("hit",t),o.is("round",r)]}),l=e=>{a("close",e)},c=e=>{a("click",e)},d=e=>{var t,i,a;(null==(a=null==(i=null==(t=null==e?void 0:e.component)?void 0:t.subTree)?void 0:i.component)?void 0:a.bum)&&(e.component.subTree.component.bum=null)};return(t,i)=>e.disableTransitions?(zd(),qd("span",{key:0,class:se(r.value),style:ee({backgroundColor:e.color}),onClick:c},[tu("span",{class:se(xo(o).e("content"))},[rc(t.$slots,"default")],2),e.closable?(zd(),qd("button",{key:0,"aria-label":xo(s)("el.tag.close"),class:se(xo(o).e("close")),type:"button",onClick:Ah(l,["stop"])},[iu(xo(KS),null,{default:vr(()=>[iu(xo(Lx))]),_:1})],10,QT)):ru("v-if",!0)],6)):(zd(),Kd(np,{key:1,name:`${xo(o).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:vr(()=>[tu("span",{class:se(r.value),style:ee({backgroundColor:e.color}),onClick:c},[tu("span",{class:se(xo(o).e("content"))},[rc(t.$slots,"default")],2),e.closable?(zd(),qd("button",{key:0,"aria-label":xo(s)("el.tag.close"),class:se(xo(o).e("close")),type:"button",onClick:Ah(l,["stop"])},[iu(xo(KS),null,{default:vr(()=>[iu(xo(Lx))]),_:1})],10,JT)):ru("v-if",!0)],6)]),_:3},8,["name"]))}});const tA=px(eA),iA=Symbol("ElSelectGroup"),aA=Symbol("ElSelect"),nA={label:"label",value:"value",disabled:"disabled",options:"options"};const sA=W_({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ex,effect:{type:String,default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:[String,Object]},popperOptions:{type:Object,default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:Function},filterMethod:{type:Function},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:Object,default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:PC.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:YS,default:Mx},fitInputWidth:Boolean,suffixIcon:{type:YS,default:_x},tagType:{...ZT.type,default:"info"},tagEffect:{...ZT.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:kb,default:"bottom-start"},fallbackPlacements:{type:Array,default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:PC.appendTo,options:{type:Array},props:{type:Object,default:()=>nA},...rx,...dx(["ariaLabel"])}),oA={[c]:e=>!0,[d]:e=>!0,"popup-scroll":uE.scroll,"end-reached":uE["end-reached"],"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},rA="ElOption",lA=W_({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});var cA=sl({name:rA,componentName:rA,props:lA,setup(e){const t=ib("select"),i=Vy(),a=Lu(()=>[t.be("dropdown","item"),t.is("disabled",xo(r)),t.is("selected",xo(o)),t.is("hovering",xo(p))]),n=to({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:o,isDisabled:r,select:l,hoverItem:c,updateOption:d}=function(e,t){const i=Sr(aA);i||q_(rA,"usage: <el-select><el-option /></el-select/>");const a=Sr(iA,{disabled:!1}),n=Lu(()=>d(Bi(i.props.modelValue),e.value)),s=Lu(()=>{if(i.props.multiple){const e=Bi(i.props.modelValue??[]);return!n.value&&e.length>=i.props.multipleLimit&&i.props.multipleLimit>0}return!1}),o=Lu(()=>e.label??(D(e.value)?"":e.value)),r=Lu(()=>e.value||e.label||""),l=Lu(()=>e.disabled||t.groupDisabled||s.value),c=_u(),d=(t=[],a)=>{if(D(e.value)){const e=i.props.valueKey;return t&&t.some(t=>uo(Ci(t,e))===Ci(a,e))}return t&&t.includes(a)};return Rr(()=>o.value,()=>{e.created||i.props.remote||i.setSelected()}),Rr(()=>e.value,(t,a)=>{const{remote:n,valueKey:s}=i.props;if((n?t===a:_n(t,a))||(i.onOptionDestroy(a,c.proxy),i.onOptionCreate(c.proxy)),!e.created&&!n){if(s&&D(t)&&D(a)&&t[s]===a[s])return;i.setSelected()}}),Rr(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:i,currentLabel:o,currentValue:r,itemSelected:n,isDisabled:l,hoverItem:()=>{l.value||(i.states.hoveringIndex=i.optionsArray.indexOf(c.proxy))},updateOption:i=>{t.visible=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(i),"i").test(String(o.value))||e.created}}}(e,n),{visible:u,hover:p}=To(n),h=_u().proxy;l.onOptionCreate(h),Wl(()=>{const e=h.value;ir(()=>{const{selected:t}=l.states,i=t.some(e=>e.value===h.value);l.states.cachedOptions.get(e)!==h||i||l.states.cachedOptions.delete(e)}),l.onOptionDestroy(e,h)});return{ns:t,id:i,containerKls:a,currentLabel:s,itemSelected:o,isDisabled:r,select:l,visible:u,hover:p,states:n,mouseMoveEventName:"mousemove",hoverItem:c,handleMousedown:e=>{let t=e.target;const i=e.currentTarget;for(;t&&t!==i;){if(Lv(t))return;t=t.parentElement}e.preventDefault()},updateOption:d,selectOptionClick:function(){r.value||l.handleOptionSelect(h)}}}});const dA=["id","aria-disabled","aria-selected"];var uA=AC(cA,[["render",function(e,t,i,a,n,s){return br((zd(),qd("li",uu({id:e.id,class:e.containerKls,role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected},{[G(e.mouseMoveEventName)]:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t))},{onMousedown:t[1]||(t[1]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onClick:t[2]||(t[2]=Ah((...t)=>e.selectOptionClick&&e.selectOptionClick(...t),["stop"]))}),[rc(e.$slots,"default",{},()=>[tu("span",null,me(e.currentLabel),1)])],16,dA)),[[yp,e.visible]])}]]);var pA=AC(sl({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ib("select"),i=mo(),a=_u(),n=mo([]);xr(iA,to({...To(e)}));const s=Lu(()=>n.value.some(e=>!0===e.visible)),o=e=>{const t=Bi(e),i=[];return t.forEach(e=>{var t;Xd(e)&&((e=>{var t;return"ElOption"===e.type.name&&!!(null==(t=e.component)?void 0:t.proxy)})(e)?i.push(e.component.proxy):C(e.children)&&e.children.length?i.push(...o(e.children)):(null==(t=e.component)?void 0:t.subTree)&&i.push(...o(e.component.subTree)))}),i},r=()=>{n.value=o(a.subTree)};return zl(()=>{r()}),Sv(i,r,{attributes:!0,subtree:!0,childList:!0}),{groupRef:i,visible:s,ns:t}}}),[["render",function(e,t,i,a,n,s){return br((zd(),qd("ul",{ref:"groupRef",class:se(e.ns.be("group","wrap"))},[tu("li",{class:se(e.ns.be("group","title"))},me(e.label),3),tu("li",null,[tu("ul",{class:se(e.ns.b("group"))},[rc(e.$slots,"default")],2)])],2)),[[yp,e.visible]])}]]);var hA=AC(sl({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Sr(aA),t=ib("select"),i=Lu(()=>e.props.popperClass),a=Lu(()=>e.props.multiple),n=Lu(()=>e.props.fitInputWidth),s=mo("");function o(){var t;const i=null==(t=e.selectRef)?void 0:t.offsetWidth;s.value=i?i-2+"px":""}return zl(()=>{o(),kv(e.selectRef,o)}),{ns:t,minWidth:s,popperClass:i,isMultiple:a,isFitInputWidth:n}}}),[["render",function(e,t,i,a,n,s){return zd(),qd("div",{class:se([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ee({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(zd(),qd("div",{key:0,class:se(e.ns.be("dropdown","header"))},[rc(e.$slots,"header")],2)):ru("v-if",!0),rc(e.$slots,"default"),e.$slots.footer?(zd(),qd("div",{key:1,class:se(e.ns.be("dropdown","footer"))},[rc(e.$slots,"footer")],2)):ru("v-if",!0)],6)}]]);const fA=(e,t)=>{const{t:i}=Qv(),a=Sc(),n=Vy(),s=ib("select"),o=ib("input"),r=to({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=mo(),p=mo(),h=mo(),f=mo(),g=mo(),_=mo(),v=mo(),b=mo(),y=mo(),x=mo(),S=mo(),w=mo(!1),E=mo(),k=mo(!1),{form:T,formItem:R}=vw(),{inputId:I}=bw(e,{formItemContext:R}),{valueOnClear:O,isEmptyValue:M}=lx(e),{isComposing:N,handleCompositionStart:P,handleCompositionUpdate:F,handleCompositionEnd:B}=nx({afterComposition:e=>_e(e)}),$=_w(),{wrapperRef:V,isFocused:U,handleBlur:H}=ax(g,{disabled:$,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,r.menuVisibleOnFocus=!0)},beforeBlur(e){var t,i;return(null==(t=h.value)?void 0:t.isFocusInsideContent(e))||(null==(i=f.value)?void 0:i.isFocusInsideContent(e))},afterBlur(){var t;w.value=!1,r.menuVisibleOnFocus=!1,e.validateEvent&&(null==(t=null==R?void 0:R.validate)||t.call(R,"blur").catch(m))}}),z=Lu(()=>C(e.modelValue)?e.modelValue.length>0:!M(e.modelValue)),Y=Lu(()=>(null==T?void 0:T.statusIcon)??!1),G=Lu(()=>e.clearable&&!$.value&&z.value&&(U.value||r.inputHovering)),W=Lu(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),j=Lu(()=>s.is("reverse",!(!W.value||!w.value))),q=Lu(()=>(null==R?void 0:R.validateState)||""),K=Lu(()=>q.value&&qS[q.value]),X=Lu(()=>e.remote?e.debounce:0),Z=Lu(()=>e.remote&&!r.inputValue&&0===r.options.size),Q=Lu(()=>e.loading?e.loadingText||i("el.select.loading"):e.filterable&&r.inputValue&&r.options.size>0&&0===J.value?e.noMatchText||i("el.select.noMatch"):0===r.options.size?e.noDataText||i("el.select.noData"):null),J=Lu(()=>ee.value.filter(e=>e.visible).length),ee=Lu(()=>{const e=Array.from(r.options.values()),t=[];return r.optionValues.forEach(i=>{const a=e.findIndex(e=>e.value===i);a>-1&&t.push(e[a])}),t.length>=e.length?t:e}),te=Lu(()=>Array.from(r.cachedOptions.values())),ie=Lu(()=>{const t=ee.value.filter(e=>!e.created).some(e=>e.currentLabel===r.inputValue);return e.filterable&&e.allowCreate&&""!==r.inputValue&&!t}),ae=()=>{e.filterable&&A(e.filterMethod)||e.filterable&&e.remote&&A(e.remoteMethod)||ee.value.forEach(e=>{var t;null==(t=e.updateOption)||t.call(e,r.inputValue)})},ne=mw(),se=Lu(()=>["small"].includes(ne.value)?"small":"default"),oe=Lu({get:()=>w.value&&(e.loading||!Z.value||e.remote&&!!a.empty)&&(!k.value||!Mn(r.previousQuery)||r.options.size>0),set(e){w.value=e}}),re=Lu(()=>{if(e.multiple&&!In(e.modelValue))return 0===Bi(e.modelValue).length&&!r.inputValue;const t=C(e.modelValue)?e.modelValue[0]:e.modelValue;return!e.filterable&&!In(t)||!r.inputValue}),le=Lu(()=>{const t=e.placeholder??i("el.select.placeholder");return e.multiple||!z.value?t:r.selectedLabel});Rr(()=>e.modelValue,(t,i)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(r.inputValue="",ce("")),ue(),!_n(t,i)&&e.validateEvent&&(null==R||R.validate("change").catch(m))},{flush:"post",deep:!0}),Rr(()=>w.value,e=>{e?ce(r.inputValue):(r.inputValue="",r.previousQuery=null,r.isBeforeHide=!0,r.menuVisibleOnFocus=!1)}),Rr(()=>r.options.entries(),()=>{av&&(ue(),e.defaultFirstOption&&(e.filterable||e.remote)&&J.value&&de())},{flush:"post"}),Rr([()=>r.hoveringIndex,ee],([e])=>{On(e)&&e>-1?E.value=ee.value[e]||{}:E.value={},ee.value.forEach(e=>{e.hover=E.value===e})}),kr(()=>{r.isBeforeHide||ae()});const ce=t=>{r.previousQuery===t||N.value||(r.previousQuery=t,e.filterable&&A(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&A(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&J.value?ir(de):ir(he))},de=()=>{const e=ee.value.filter(e=>e.visible&&!e.disabled&&!e.states.groupDisabled),t=e.find(e=>e.created),i=e[0];r.hoveringIndex=Ce(ee.value.map(e=>e.value),t||i)},ue=()=>{if(!e.multiple){const t=pe(C(e.modelValue)?e.modelValue[0]:e.modelValue);return r.selectedLabel=t.currentLabel,void(r.selected=[t])}r.selectedLabel="";const t=[];In(e.modelValue)||Bi(e.modelValue).forEach(e=>{t.push(pe(e))}),r.selected=t},pe=t=>{let i;const a=L(t);for(let s=r.cachedOptions.size-1;s>=0;s--){const n=te.value[s];if(a?Ci(n.value,e.valueKey)===Ci(t,e.valueKey):n.value===t){i={index:ee.value.filter(e=>!e.created).indexOf(n),value:t,currentLabel:n.currentLabel,get isDisabled(){return n.isDisabled}};break}}if(i)return i;const n=r.selected.find(i=>a?Ci(i.value,e.valueKey)===Ci(t,e.valueKey):i.value===t);return{index:-1,value:t,currentLabel:a?t.label:n?n.currentLabel:t??""}},he=()=>{const e=r.selected.length;if(e>0){const t=r.selected[e-1];r.hoveringIndex=ee.value.findIndex(e=>De(t)===De(e))}else r.hoveringIndex=-1},fe=()=>{var e,t;null==(t=null==(e=h.value)?void 0:e.updatePopper)||t.call(e)},ge=()=>{var e,t;null==(t=null==(e=f.value)?void 0:e.updatePopper)||t.call(e)},me=()=>{r.inputValue.length>0&&!w.value&&(w.value=!0),ce(r.inputValue)},_e=t=>{if(r.inputValue=t.target.value,!e.remote)return me();k.value=!0,ve()},ve=pv(()=>{me(),k.value=!1},X),be=i=>{_n(e.modelValue,i)||t(d,i)},ye=e=>function(e,t){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return function(e,t,i,a){for(var n=e.length,s=i+(a?1:-1);a?s--:++s<n;)if(t(e[s],s,e))return s;return-1}(e,Ja(t),a,!0)}(e,e=>{const t=r.cachedOptions.get(e);return!(null==t?void 0:t.disabled)&&!(null==t?void 0:t.states.groupDisabled)}),xe=i=>{const a=db(i);if(e.multiple&&a!==l.delete&&i.target.value.length<=0){const i=Bi(e.modelValue).slice(),a=ye(i);if(a<0)return;const n=i[a];i.splice(a,1),t(c,i),be(i),t("remove-tag",n)}},Se=i=>{i.stopPropagation();const a=e.multiple?[]:O.value;if(e.multiple)for(const e of r.selected)e.isDisabled&&a.push(e.value);t(c,a),be(a),r.hoveringIndex=-1,w.value=!1,t("clear"),Te()},we=i=>{if(e.multiple){const a=Bi(e.modelValue??[]).slice(),n=Ce(a,i);n>-1?a.splice(n,1):(e.multipleLimit<=0||a.length<e.multipleLimit)&&a.push(i.value),t(c,a),be(a),i.created&&ce(""),!e.filterable||!i.created&&e.reserveKeyword||(r.inputValue="")}else!_n(e.modelValue,i.value)&&t("update:modelValue",i.value),be(i.value),w.value=!1;Te(),w.value||ir(()=>{Ee(i)})},Ce=(t,i)=>In(i)?-1:D(i.value)?t.findIndex(t=>_n(Ci(t,e.valueKey),De(i))):t.indexOf(i.value),Ee=e=>{var t,i,a,n,o;const r=C(e)?e[e.length-1]:e;let l=null;if(!vn(null==r?void 0:r.value)){const e=ee.value.filter(e=>e.value===r.value);e.length>0&&(l=e[0].$el)}if(h.value&&l){const e=null==(n=null==(a=null==(i=null==(t=h.value)?void 0:t.popperRef)?void 0:i.contentRef)?void 0:a.querySelector)?void 0:n.call(a,`.${s.be("dropdown","wrap")}`);e&&ob(e,l)}null==(o=S.value)||o.handleScroll()},ke=Lu(()=>{var e,t;return null==(t=null==(e=h.value)?void 0:e.popperRef)?void 0:t.contentRef}),Te=()=>{var e;null==(e=g.value)||e.focus()},Ae=()=>{r.inputValue.length>0?r.inputValue="":w.value=!1},Re=t=>{var i;$.value||e.filterable&&w.value&&t&&!(null==(i=v.value)?void 0:i.contains(t.target))||(r.menuVisibleOnFocus?r.menuVisibleOnFocus=!1:w.value=!w.value)},Ie=()=>{if(w.value){const e=ee.value[r.hoveringIndex];e&&!e.isDisabled&&we(e)}else Re()},De=t=>D(t.value)?Ci(t.value,e.valueKey):t.value,Oe=Lu(()=>ee.value.filter(e=>e.visible).every(e=>e.isDisabled)),Me=Lu(()=>e.multiple?e.collapseTags?r.selected.slice(0,e.maxCollapseTags):r.selected:[]),Ne=Lu(()=>e.multiple&&e.collapseTags?r.selected.slice(e.maxCollapseTags):[]),Le=e=>{if(w.value){if(0!==r.options.size&&0!==J.value&&!N.value&&!Oe.value){"next"===e?(r.hoveringIndex++,r.hoveringIndex===r.options.size&&(r.hoveringIndex=0)):"prev"===e&&(r.hoveringIndex--,r.hoveringIndex<0&&(r.hoveringIndex=r.options.size-1));const t=ee.value[r.hoveringIndex];!t.isDisabled&&t.visible||Le(e),ir(()=>Ee(E.value))}}else w.value=!0},Pe=(e,t,i,a)=>{for(let n=t;n>=0&&n<a;n+=i){const t=e[n];if(!(null==t?void 0:t.isDisabled)&&(null==t?void 0:t.visible))return n}return null},Fe=(e,t)=>{const i=r.options.size;if(0===i)return;const a=$i(e,0,i-1),n=ee.value,s="up"===t?-1:1,o=Pe(n,a,s,i)??Pe(n,a-s,-s,i);null!=o&&(r.hoveringIndex=o,ir(()=>Ee(E.value)))},Be=Lu(()=>{const t=(()=>{if(!p.value)return 0;const e=window.getComputedStyle(p.value);return Number.parseFloat(e.gap||"6px")})(),i=e.filterable?t+11:0;return{maxWidth:(x.value&&1===e.maxCollapseTags?r.selectionWidth-r.collapseItemWidth-t-i:r.selectionWidth-i)+"px"}}),$e=Lu(()=>({maxWidth:`${r.selectionWidth}px`}));let Ve;return kv(p,()=>{r.selectionWidth=Number.parseFloat(window.getComputedStyle(p.value).width)}),kv(V,fe),kv(y,ge),kv(x,()=>{r.collapseItemWidth=x.value.getBoundingClientRect().width}),Rr(()=>oe.value,e=>{e?Ve=kv(b,fe).stop:(null==Ve||Ve(),Ve=void 0),t("visible-change",e)}),zl(()=>{ue()}),{inputId:I,contentId:n,nsSelect:s,nsInput:o,states:r,isFocused:U,expanded:w,optionsArray:ee,hoverOption:E,selectSize:ne,filteredOptionsCount:J,updateTooltip:fe,updateTagTooltip:ge,debouncedOnInputChange:ve,onInput:_e,deletePrevTag:xe,deleteTag:(i,a)=>{const n=r.selected.indexOf(a);if(n>-1&&!$.value){const i=Bi(e.modelValue).slice();i.splice(n,1),t(c,i),be(i),t("remove-tag",a.value)}i.stopPropagation(),Te()},deleteSelected:Se,handleOptionSelect:we,scrollToOption:Ee,hasModelValue:z,shouldShowPlaceholder:re,currentPlaceholder:le,mouseEnterEventName:"mouseenter",needStatusIcon:Y,showClearBtn:G,iconComponent:W,iconReverse:j,validateState:q,validateIcon:K,showNewOption:ie,updateOptions:ae,collapseTagSize:se,setSelected:ue,selectDisabled:$,emptyText:Q,handleCompositionStart:P,handleCompositionUpdate:F,handleCompositionEnd:B,handleKeydown:e=>{let t=!0;switch(db(e)){case l.up:Le("prev");break;case l.down:Le("next");break;case l.enter:case l.numpadEnter:N.value||Ie();break;case l.esc:Ae();break;case l.backspace:return t=!1,void xe(e);case l.home:if(!w.value)return;Fe(0,"down");break;case l.end:if(!w.value)return;Fe(r.options.size-1,"up");break;case l.pageUp:if(!w.value)return;Fe(r.hoveringIndex-10,"up");break;case l.pageDown:if(!w.value)return;Fe(r.hoveringIndex+10,"down");break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())},onOptionCreate:e=>{r.options.set(e.value,e),r.cachedOptions.set(e.value,e)},onOptionDestroy:(e,t)=>{r.options.get(e)===t&&r.options.delete(e)},handleMenuEnter:()=>{r.isBeforeHide=!1,ir(()=>{var e;null==(e=S.value)||e.update(),Ee(r.selected)})},focus:Te,blur:()=>{var e;if(w.value)return w.value=!1,void ir(()=>{var e;return null==(e=g.value)?void 0:e.blur()});null==(e=g.value)||e.blur()},handleClearClick:e=>{Se(e)},handleClickOutside:e=>{if(w.value=!1,U.value){const t=new FocusEvent("blur",e);ir(()=>H(t))}},handleEsc:Ae,toggleMenu:Re,selectOption:Ie,getValueKey:De,navigateOptions:Le,dropdownMenuVisible:oe,showTagList:Me,collapseTagList:Ne,popupScroll:e=>{t("popup-scroll",e)},getOption:pe,endReached:e=>{t("end-reached",e)},tagStyle:Be,collapseTagStyle:$e,popperRef:ke,inputRef:g,tooltipRef:h,tagTooltipRef:f,prefixRef:_,suffixRef:v,selectRef:u,wrapperRef:V,selectionRef:p,scrollbarRef:S,menuRef:b,tagMenuRef:y,collapseItemRef:x}};var gA=sl({name:"ElOptions",setup(e,{slots:t}){const i=Sr(aA);let a=[];return()=>{var e,n;const s=null==(e=t.default)?void 0:e.call(t),o=[];return s.length&&function e(t){C(t)&&t.forEach(t=>{var i,a,n,s;const r=null==(i=(null==t?void 0:t.type)||{})?void 0:i.name;"ElOptionGroup"===r?e(R(t.children)||C(t.children)||!A(null==(a=t.children)?void 0:a.default)?t.children:null==(n=t.children)?void 0:n.default()):"ElOption"===r?o.push(null==(s=t.props)?void 0:s.value):C(t.children)&&e(t.children)})}(null==(n=s[0])?void 0:n.children),_n(o,a)||(a=o,i&&(i.states.optionValues=o)),s}}});const mA="ElSelect",_A=new WeakMap,vA=e=>(...t)=>{var i,a;const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&(null==(i=t[2])?void 0:i.includes("ElTreeSelect")))return;const s=null==(a=_A.get(e))?void 0:a.originalWarnHandler;s&&s(...t)};const bA=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],yA=["textContent"],xA={key:1};const SA=px(AC(sl({name:mA,componentName:mA,components:{ElSelectMenu:hA,ElOption:uA,ElOptions:gA,ElOptionGroup:pA,ElTag:tA,ElScrollbar:SE,ElTooltip:ZC,ElIcon:KS},directives:{ClickOutside:sT},props:sA,emits:oA,setup(e,{emit:t,slots:i}){const a=_u(),n=(e=>{let t=_A.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:vA(e),count:0},_A.set(e,t)),t})(a.appContext);n.count+=1,a.appContext.config.warnHandler=n.handler;const s=Lu(()=>{const{modelValue:t,multiple:i}=e,a=i?[]:void 0;return C(t)?i?t:a:i?a:t}),o=to({...To(e),modelValue:s}),r=fA(o,t),{calculatorRef:l,inputStyle:c}=function(){const e=_o(),t=mo(0),i=Lu(()=>({minWidth:`${Math.max(t.value,11)}px`}));return kv(e,()=>{var i;t.value=(null==(i=e.value)?void 0:i.getBoundingClientRect().width)??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:i}}(),{getLabel:d,getValue:u,getOptions:p,getDisabled:h}=function(e){const t=mo({...nA,...e.props});let i={...e.props};return Rr(()=>e.props,e=>{_n(e,i)||(t.value={...nA,...e},i={...e})},{deep:!0}),{aliasProps:t,getLabel:e=>Ci(e,t.value.label),getValue:e=>Ci(e,t.value.value),getDisabled:e=>Ci(e,t.value.disabled),getOptions:e=>Ci(e,t.value.options)}}(e),f=e=>e.reduce((e,t)=>(e.push(t),t.children&&t.children.length>0&&e.push(...f(t.children)),e),[]);Rr(()=>{var t;return[e.persistent||r.expanded.value||!i.default||null==(t=i.default)?void 0:t.call(i),s.value]},()=>{var t,a;e.persistent||r.expanded.value||i.default&&(r.states.options.clear(),a=null==(t=i.default)?void 0:t.call(i),Qy(a||[]).forEach(e=>{var t;if(D(e)&&("ElOption"===e.type.name||"ElTree"===e.type.name)){const i=e.type.name;if("ElTree"===i)f((null==(t=e.props)?void 0:t.data)||[]).forEach(e=>{e.currentLabel=e.label??(D(e.value)?"":e.value),r.onOptionCreate(e)});else if("ElOption"===i){const t={...e.props};t.currentLabel=t.label??(D(t.value)?"":t.value),r.onOptionCreate(t)}}}))},{immediate:!0}),xr(aA,to({props:o,states:r.states,selectRef:r.selectRef,optionsArray:r.optionsArray,setSelected:r.setSelected,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy}));const g=Lu(()=>e.multiple?r.states.selected.map(e=>e.currentLabel):r.states.selectedLabel);return Wl(()=>{const e=_A.get(a.appContext);e&&(e.count-=1,e.count<=0&&(a.appContext.config.warnHandler=e.originalWarnHandler,_A.delete(a.appContext)))}),{...r,modelValue:s,selectedLabel:g,calculatorRef:l,inputStyle:c,getLabel:d,getValue:u,getOptions:p,getDisabled:h,getOptionProps:e=>({label:d(e),value:u(e),disabled:h(e)})}}}),[["render",function(e,t,i,a,n,s){const o=Jl("el-tag"),r=Jl("el-tooltip"),l=Jl("el-icon"),c=Jl("el-option"),d=Jl("el-option-group"),u=Jl("el-options"),p=Jl("el-scrollbar"),h=Jl("el-select-menu"),f=ic("click-outside");return br((zd(),qd("div",uu({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[G(e.mouseEnterEventName)]:t[11]||(t[11]=t=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=t=>e.states.inputHovering=!1)}),[iu(r,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=t=>e.states.isBeforeHide=!1)},{default:vr(()=>{var i;return[tu("div",{ref:"wrapperRef",class:se([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Ah((...t)=>e.toggleMenu&&e.toggleMenu(...t),["prevent"]))},[e.$slots.prefix?(zd(),qd("div",{key:0,ref:"prefixRef",class:se(e.nsSelect.e("prefix"))},[rc(e.$slots,"prefix")],2)):ru("v-if",!0),tu("div",{ref:"selectionRef",class:se([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?rc(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var t,i,a,n,s,l,c,d,u,p,h,f,g;return[(zd(!0),qd(Fd,null,sc(e.showTagList,t=>(zd(),qd("div",{key:e.getValueKey(t),class:se(e.nsSelect.e("selected-item"))},[iu(o,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ee(e.tagStyle),onClose:i=>e.deleteTag(i,t)},{default:vr(()=>[tu("span",{class:se(e.nsSelect.e("tags-text"))},[rc(e.$slots,"label",{index:t.index,label:t.currentLabel,value:t.value},()=>[su(me(t.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(zd(),Kd(r,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":(null==(t=e.tagTooltip)?void 0:t.fallbackPlacements)??["bottom","top","right","left"],effect:(null==(i=e.tagTooltip)?void 0:i.effect)??e.effect,placement:(null==(a=e.tagTooltip)?void 0:a.placement)??"bottom","popper-class":(null==(n=e.tagTooltip)?void 0:n.popperClass)??e.popperClass,"popper-style":(null==(s=e.tagTooltip)?void 0:s.popperStyle)??e.popperStyle,teleported:(null==(l=e.tagTooltip)?void 0:l.teleported)??e.teleported,"append-to":(null==(c=e.tagTooltip)?void 0:c.appendTo)??e.appendTo,"popper-options":(null==(d=e.tagTooltip)?void 0:d.popperOptions)??e.popperOptions,transition:null==(u=e.tagTooltip)?void 0:u.transition,"show-after":null==(p=e.tagTooltip)?void 0:p.showAfter,"hide-after":null==(h=e.tagTooltip)?void 0:h.hideAfter,"auto-close":null==(f=e.tagTooltip)?void 0:f.autoClose,offset:null==(g=e.tagTooltip)?void 0:g.offset},{default:vr(()=>[tu("div",{ref:"collapseItemRef",class:se(e.nsSelect.e("selected-item"))},[iu(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ee(e.collapseTagStyle)},{default:vr(()=>[tu("span",{class:se(e.nsSelect.e("tags-text"))}," + "+me(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:vr(()=>[tu("div",{ref:"tagMenuRef",class:se(e.nsSelect.e("selection"))},[(zd(!0),qd(Fd,null,sc(e.collapseTagList,t=>(zd(),qd("div",{key:e.getValueKey(t),class:se(e.nsSelect.e("selected-item"))},[iu(o,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:i=>e.deleteTag(i,t)},{default:vr(()=>[tu("span",{class:se(e.nsSelect.e("tags-text"))},[rc(e.$slots,"label",{index:t.index,label:t.currentLabel,value:t.value},()=>[su(me(t.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):ru("v-if",!0)]}):ru("v-if",!0),tu("div",{class:se([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[tu("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:se([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ee(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null==(i=e.hoverOption)?void 0:i.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onCompositionstart:t[1]||(t[1]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[2]||(t[2]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[3]||(t[3]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onInput:t[4]||(t[4]=(...t)=>e.onInput&&e.onInput(...t)),onChange:t[5]||(t[5]=Ah(()=>{},["stop"])),onClick:t[6]||(t[6]=Ah((...t)=>e.toggleMenu&&e.toggleMenu(...t),["stop"]))},null,46,bA),e.filterable?(zd(),qd("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:se(e.nsSelect.e("input-calculator")),textContent:me(e.states.inputValue)},null,10,yA)):ru("v-if",!0)],2),e.shouldShowPlaceholder?(zd(),qd("div",{key:1,class:se([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?rc(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[tu("span",null,me(e.currentPlaceholder),1)]):(zd(),qd("span",xA,me(e.currentPlaceholder),1))],2)):ru("v-if",!0)],2),tu("div",{ref:"suffixRef",class:se(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(zd(),Kd(l,{key:0,class:se([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:vr(()=>[(zd(),Kd(tc(e.iconComponent)))]),_:1},8,["class"])):ru("v-if",!0),e.showClearBtn&&e.clearIcon?(zd(),Kd(l,{key:1,class:se([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:vr(()=>[(zd(),Kd(tc(e.clearIcon)))]),_:1},8,["class","onClick"])):ru("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(zd(),Kd(l,{key:2,class:se([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading","validating"===e.validateState)])},{default:vr(()=>[(zd(),Kd(tc(e.validateIcon)))]),_:1},8,["class"])):ru("v-if",!0)],2)],2)]}),content:vr(()=>[iu(h,{ref:"menuRef"},{default:vr(()=>[e.$slots.header?(zd(),qd("div",{key:0,class:se(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Ah(()=>{},["stop"]))},[rc(e.$slots,"header")],2)):ru("v-if",!0),br(iu(p,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:se([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll,onEndReached:e.endReached},{default:vr(()=>[e.showNewOption?(zd(),Kd(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ru("v-if",!0),iu(u,null,{default:vr(()=>[rc(e.$slots,"default",{},()=>[(zd(!0),qd(Fd,null,sc(e.options,(t,i)=>{var a;return zd(),qd(Fd,{key:i},[(null==(a=e.getOptions(t))?void 0:a.length)?(zd(),Kd(d,{key:0,label:e.getLabel(t),disabled:e.getDisabled(t)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.getOptions(t),t=>(zd(),Kd(c,uu({key:e.getValue(t)},{ref_for:!0},e.getOptionProps(t)),null,16))),128))]),_:2},1032,["label","disabled"])):(zd(),Kd(c,uu({key:1,ref_for:!0},e.getOptionProps(t)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll","onEndReached"]),[[yp,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(zd(),qd("div",{key:1,class:se(e.nsSelect.be("dropdown","loading"))},[rc(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?(zd(),qd("div",{key:2,class:se(e.nsSelect.be("dropdown","empty"))},[rc(e.$slots,"empty",{},()=>[tu("span",null,me(e.emptyText),1)])],2)):ru("v-if",!0),e.$slots.footer?(zd(),qd("div",{key:3,class:se(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Ah(()=>{},["stop"]))},[rc(e.$slots,"footer")],2)):ru("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[f,e.handleClickOutside,e.popperRef]])}]]),{Option:uA,OptionGroup:pA}),wA=fx(uA),CA=fx(pA);var EA={exports:{}};EA.exports=function(e,t,i){var a=t.prototype,n=function(e){return e&&(e.indexOf?e:e.s)},s=function(e,t,i,a,s){var o=e.name?e:e.$locale(),r=n(o[t]),l=n(o[i]),c=r||l.map(function(e){return e.slice(0,a)});if(!s)return c;var d=o.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},o=function(){return i.Ls[i.locale()]},r=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):s(e,"months")},monthsShort:function(t){return t?t.format("MMM"):s(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):s(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):s(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):s(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return l.bind(this)()},i.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},i.months=function(){return s(o(),"months")},i.monthsShort=function(){return s(o(),"monthsShort","months",3)},i.weekdays=function(e){return s(o(),"weekdays",null,null,e)},i.weekdaysShort=function(e){return s(o(),"weekdaysShort","weekdays",3,e)},i.weekdaysMin=function(e){return s(o(),"weekdaysMin","weekdays",2,e)}};const kA=Dk(EA.exports);const TA=px(sl({name:"ElCard",__name:"card",props:W_({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:[String,Object,Array,Boolean],default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),setup(e){const t=jE("card"),i=ib("card");return(a,n)=>{var s;return zd(),qd("div",{class:se([xo(i).b(),xo(i).is(`${e.shadow||(null==(s=xo(t))?void 0:s.shadow)||"always"}-shadow`)])},[a.$slots.header||e.header?(zd(),qd("div",{key:0,class:se([xo(i).e("header"),e.headerClass])},[rc(a.$slots,"header",{},()=>[su(me(e.header),1)])],2)):ru("v-if",!0),tu("div",{class:se([xo(i).e("body"),e.bodyClass]),style:ee(e.bodyStyle)},[rc(a.$slots,"default")],6),a.$slots.footer||e.footer?(zd(),qd("div",{key:1,class:se([xo(i).e("footer"),e.footerClass])},[rc(a.$slots,"footer",{},()=>[su(me(e.footer),1)])],2)):ru("v-if",!0)],2)}}})),AA=W_({modelValue:{type:[Number,String,Array,Object]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})},virtualScroll:Boolean,itemSize:{type:Number,default:34},height:{type:Number,default:204}}),RA={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:m,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},IA=W_({...AA,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),DA=e=>!0,OA={[c]:DA,[d]:DA,close:()=>!0,"expand-change":e=>e},MA="itemRendered",NA="scroll",LA="end-reached",PA="forward",FA="auto",BA="center",$A="horizontal",VA="vertical",UA="negative",HA="positive-ascending",zA="positive-descending",YA={[$A]:"left",[VA]:"top"},GA=G_({type:[Number,Function],required:!0}),WA=G_({type:Number}),jA=G_({type:Number,default:2}),qA=G_({type:String,values:["ltr","rtl"],default:"ltr"}),KA=G_({type:Number,default:0}),XA=G_({type:Number,required:!0}),ZA=G_({type:String,values:["horizontal","vertical"],default:VA}),QA=W_({className:{type:String,default:""},containerElement:{type:[String,Object],default:"div"},data:{type:Array,default:()=>[]},direction:qA,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:Object,default:()=>({})},style:{type:[Object,String,Array,Boolean],default:void 0},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},innerWidth:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),JA=W_({cache:jA,estimatedItemSize:WA,layout:ZA,initScrollOffset:KA,total:XA,itemSize:GA,...QA}),eR={type:Number,default:6},tR={type:Number,default:0},iR={type:Number,default:2},aR=(W_({columnCache:jA,columnWidth:GA,estimatedColumnWidth:WA,estimatedRowHeight:WA,initScrollLeft:KA,initScrollTop:KA,itemKey:{type:Function,default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:jA,rowHeight:GA,totalColumn:XA,totalRow:XA,hScrollbarSize:eR,vScrollbarSize:eR,scrollbarStartGap:tR,scrollbarEndGap:iR,role:String,...QA}),W_({alwaysOn:Boolean,class:String,layout:ZA,total:XA,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:eR,startGap:tR,endGap:iR,visible:Boolean})),nR=e=>"ltr"===e||"rtl"===e||"horizontal"===e;let sR=null;function oR(e=!1){if(null===sR||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),a=i.style;return a.width="100px",a.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?sR=zA:(e.scrollLeft=1,sR=0===e.scrollLeft?UA:HA),document.body.removeChild(e),sR}return sR}var rR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function lR(e,t){return e===t||!(!rR(e)||!rR(t))}function cR(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!lR(e[i],t[i]))return!1;return!0}const dR=()=>{const e=_u().proxy.$props;return Lu(()=>{const t=(e,t,i)=>({});return e.perfMode?_i(t):function(e,t){void 0===t&&(t=cR);var i=null;function a(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];if(i&&i.lastThis===this&&t(a,i.lastArgs))return i.lastResult;var s=e.apply(this,a);return i={lastResult:s,lastArgs:a,lastThis:this},s}return a.clear=function(){i=null},a}(t)})},uR=({atEndEdge:e,atStartEdge:t,layout:i},a)=>{let n,s=0;const o=i=>i<0&&t.value||i>0&&e.value;return{hasReachedEdge:o,onWheel:e=>{nb(n);let{deltaX:t,deltaY:r}=e;e.shiftKey&&0!==r&&(t=r,r=0);const l="horizontal"===i.value?t:r;o(l)||(s+=l,$v()||0===l||e.preventDefault(),n=ab(()=>{a(s),s=0}))}}},pR=sl({name:"ElVirtualScrollBar",props:aR,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const i=Lu(()=>e.startGap+e.endGap),a=ib("virtual-scrollbar"),n=ib("scrollbar"),s=mo(),o=mo();let r=null,l=null;const c=to({isDragging:!1,traveled:0}),d=Lu(()=>pE[e.layout]),u=Lu(()=>e.clientSize-xo(i)),p=Lu(()=>({position:"absolute",width:`${"horizontal"===e.layout?u.value:e.scrollbarSize}px`,height:`${"horizontal"===e.layout?e.scrollbarSize:u.value}px`,[YA[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=Lu(()=>{const t=e.ratio;if(t>=100)return Number.POSITIVE_INFINITY;if(t>=50)return t*u.value/100;const i=u.value/3;return Math.floor(Math.min(Math.max(t*u.value/100,20),i))}),f=Lu(()=>{if(!Number.isFinite(h.value))return{display:"none"};const t=`${h.value}px`;return function({move:e,size:t,bar:i},a){const n={},s=`translate${i.axis}(${e}px)`;return n[i.size]=t,n.transform=s,"horizontal"===a?n.height="100%":n.width="100%",n}({bar:d.value,size:t,move:c.traveled},e.layout)}),g=Lu(()=>Math.ceil(e.clientSize-h.value-xo(i))),m=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",v),document.onselectstart=l,l=null;const e=xo(o);e&&(e.removeEventListener("touchmove",b),e.removeEventListener("touchend",v))},_=e=>{e.stopImmediatePropagation(),e.ctrlKey||[1,2].includes(e.button)||(c.isDragging=!0,c[d.value.axis]=e.currentTarget[d.value.offset]-(e[d.value.client]-e.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),(()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",v);const e=xo(o);e&&(l=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",b,{passive:!0}),e.addEventListener("touchend",v))})())},v=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),m()},b=e=>{const{isDragging:i}=c;if(!i)return;if(!o.value||!s.value)return;const a=c[d.value.axis];if(!a)return;nb(r);const n=-1*(s.value.getBoundingClientRect()[d.value.direction]-e[d.value.client])-(o.value[d.value.offset]-a);r=ab(()=>{c.traveled=Math.max(0,Math.min(n,g.value)),t("scroll",n,g.value)})},y=e=>{const i=Math.abs(e.target.getBoundingClientRect()[d.value.direction]-e[d.value.client])-o.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(i,g.value)),t("scroll",i,g.value)};return Rr(()=>e.scrollFrom,e=>{c.isDragging||(c.traveled=Math.ceil(e*g.value))}),Wl(()=>{m()}),()=>Pu("div",{role:"presentation",ref:s,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:p.value,onMousedown:Ah(y,["stop","prevent"]),onTouchstartPrevent:_},Pu("div",{ref:o,class:n.e("thumb"),style:f.value,onMousedown:_},[]))}}),hR=(({name:e,getOffset:t,getItemSize:i,getItemOffset:a,getEstimatedTotalSize:n,getStartIndexForOffset:s,getStopIndexForStartIndex:o,initCache:r,clearCache:l,validateProps:c})=>sl({name:e??"ElVirtualList",props:JA,emits:[MA,NA,LA],setup(e,{emit:d,expose:u}){c(e);const p=_u(),h=ib("vl"),f=mo(r(e,p)),g=dR(),m=mo(),_=mo(),v=mo(),b=mo({isScrolling:!1,scrollDir:PA,scrollOffset:On(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1}),y=Lu(()=>{const{total:t,cache:i}=e,{isScrolling:a,scrollDir:n,scrollOffset:r}=xo(b);if(0===t)return[0,0,0,0];const l=s(e,r,xo(f)),c=o(e,l,r,xo(f)),d=a&&"backward"!==n?1:Math.max(1,i),u=a&&"forward"!==n?1:Math.max(1,i);return[Math.max(0,l-d),Math.max(0,Math.min(t-1,c+u)),l,c]}),x=Lu(()=>n(e,xo(f))),S=Lu(()=>nR(e.layout)),C=Lu(()=>[{position:"relative",["overflow-"+(S.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:On(e.height)?`${e.height}px`:e.height,width:On(e.width)?`${e.width}px`:e.width},e.style]),E=Lu(()=>{const t=xo(x),i=xo(S),a=e.innerWidth;return{height:i?"100%":`${t}px`,pointerEvents:xo(b).isScrolling?"none":void 0,width:i?`${t}px`:void 0!==a?On(a)?`${a}px`:a:"100%",margin:0,boxSizing:"border-box"}}),k=Lu(()=>S.value?e.width:e.height),T=Lu(()=>Math.max(0,x.value-k.value)),A=e=>ov(e,0,T.value),R=e=>({start:!gE(e,0,1),end:!gE(T.value,e,1)}),I=Lu(()=>A(b.value.scrollOffset)),D=Lu(()=>R(I.value));let O=D.value;const{onWheel:M}=uR({atStartEdge:Lu(()=>D.value.start),atEndEdge:Lu(()=>D.value.end),layout:Lu(()=>e.layout)},e=>{var t,i;null==(i=(t=v.value).onMouseUp)||i.call(t),P(Math.min(b.value.scrollOffset+e,T.value))});vv(m,"wheel",M,{passive:!1});const N=()=>{const{total:t}=e;if(t>0){const[e,t,i,a]=xo(y);d(MA,e,t,i,a)}const{scrollDir:i,scrollOffset:a,updateRequested:n}=xo(b);d(NA,i,a,n)},L=(t,{isScrolling:i,updateRequested:a})=>{const n=xo(b),s=Math.max(t,0);if(s===n.scrollOffset)return;const o=n.scrollOffset<s?PA:"backward";b.value={...n,isScrolling:i,scrollDir:o,scrollOffset:s,updateRequested:a},((t,i)=>{const a=R(i),n="rtl"===e.direction?"left":"right",s="rtl"===e.direction?"right":"left";"forward"===t&&a.end&&!O.end&&d(LA,S.value?n:"bottom"),"backward"===t&&a.start&&!O.start&&d(LA,S.value?s:"top"),O=a})(o,A(s)),ir(B)},P=e=>{L(e,{isScrolling:xo(b).isScrolling,updateRequested:!0})},F=(i,a=FA)=>{const{scrollOffset:n}=xo(b);i=Math.max(0,Math.min(i,e.total-1)),P(t(e,i,a,n,xo(f)))},B=()=>{b.value.isScrolling=!1,ir(()=>{g.value(-1,null,null)})},$=()=>{const e=m.value;e&&(e.scrollTop=0)};zl(()=>{if(!av)return;const{initScrollOffset:t}=e,i=xo(m);On(t)&&i&&(xo(S)?i.scrollLeft=t:i.scrollTop=t),N()}),Gl(()=>{const{direction:t,layout:i}=e,{scrollOffset:a,updateRequested:n}=xo(b),s=xo(m);if(n&&s)if("horizontal"===i)if("rtl"===t)switch(oR()){case UA:s.scrollLeft=-a;break;case HA:s.scrollLeft=a;break;default:{const{clientWidth:e,scrollWidth:t}=s;s.scrollLeft=t-e-a;break}}else s.scrollLeft=a;else s.scrollTop=a}),Nl(()=>{xo(m).scrollTop=xo(b).scrollOffset}),Rr(T,()=>{O=D.value});const V={ns:h,clientSize:k,estimatedTotalSize:x,windowStyle:C,windowRef:m,innerRef:_,innerStyle:E,itemsToRender:y,scrollbarRef:v,states:b,getItemStyle:t=>{const{direction:n,itemSize:s,layout:o}=e,r=g.value(l&&s,l&&o,l&&n);let c;if(w(r,String(t)))c=r[t];else{const s=a(e,t,xo(f)),o=i(e,t,xo(f)),l=xo(S),d="rtl"===n,u=l?s:0;r[t]=c={position:"absolute",left:d?void 0:`${u}px`,right:d?`${u}px`:void 0,top:l?0:`${s}px`,height:l?"100%":`${o}px`,width:l?`${o}px`:"100%"}}return c},onScroll:t=>{xo(S)?(t=>{const{clientWidth:i,scrollLeft:a,scrollWidth:n}=t.currentTarget;if(xo(b).scrollOffset===a)return;const{direction:s}=e;let o=a;if("rtl"===s)switch(oR()){case UA:o=-a;break;case zA:o=n-i-a}L(Math.min(o,n-i),{isScrolling:!0,updateRequested:!1})})(t):(e=>{const{clientHeight:t,scrollHeight:i,scrollTop:a}=e.currentTarget;xo(b).scrollOffset!==a&&L(Math.min(a,i-t),{isScrolling:!0,updateRequested:!1})})(t),N()},onScrollbarScroll:(e,t)=>{const i=T.value/t*e;P(Math.min(T.value,i))},onWheel:M,scrollTo:P,scrollToItem:F,resetScrollTop:$};return u({windowRef:m,innerRef:_,getItemStyleCache:g,scrollTo:P,scrollToItem:F,resetScrollTop:$,states:b}),V},render(e){var t;const{$slots:i,className:a,clientSize:n,containerElement:s,data:o,getItemStyle:r,innerElement:l,itemsToRender:c,innerStyle:d,layout:u,scrollbarAlwaysOn:p,total:h,onScroll:f,onScrollbarScroll:g,states:m,useIsScrolling:_,windowStyle:v,ns:b}=e,[y,x]=c,S=tc(s),w=tc(l),C=[];if(h>0)for(let A=y;A<=x;A++)C.push(Pu(Fd,{key:A},null==(t=i.default)?void 0:t.call(i,{data:o,index:A,isScrolling:_?m.isScrolling:void 0,style:r(A)})));const E=[Pu(w,uu(e.innerProps,{style:d,ref:"innerRef"}),R(w)?C:{default:()=>C})],k=Pu(pR,{ref:"scrollbarRef",clientSize:n,layout:u,onScroll:g,ratio:100*n/this.estimatedTotalSize,scrollFrom:m.scrollOffset/(this.estimatedTotalSize-n),total:h,alwaysOn:p}),T=Pu(S,{class:[b.e("window"),a],style:v,onScroll:f,ref:"windowRef",key:0},R(S)?[E]:{default:()=>[E]});return Pu("div",{key:0,class:[b.e("wrapper"),p?"always-on":""]},[T,k])}}))({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:i,layout:a,width:n},s,o,r)=>{const l=nR(a)?n:e;R(l)&&q_("[ElVirtualList]","\n You should set\n width/height\n to number when your layout is\n horizontal/vertical\n ");const c=Math.max(0,t*i-l),d=Math.min(c,s*i),u=Math.max(0,(s+1)*i-l);switch("smart"===o&&(o=r>=u-l&&r<=d+l?FA:BA),o){case"start":return d;case"end":return u;case BA:{const e=Math.round(u+(d-u)/2);return e<Math.ceil(l/2)?0:e>c+Math.floor(l/2)?c:e}default:return r>=u&&r<=d?r:r<u?u:d}},getStartIndexForOffset:({total:e,itemSize:t},i)=>Math.max(0,Math.min(e-1,Math.floor(i/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:i,layout:a,width:n},s,o)=>{const r=s*i,l=nR(a)?n:e,c=Math.ceil((l+o-r)/i);return Math.max(0,Math.min(t-1,s+c-1))},initCache(){},clearCache:!0,validateProps(){}}),fR={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ex,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...dx(["ariaControls"])},gR={[c]:e=>R(e)||On(e)||Dn(e),change:e=>R(e)||On(e)||Dn(e)},mR=Symbol("checkboxGroupContextKey"),_R=W_({modelValue:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:ex,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Array},props:{type:Object,default:()=>bR},type:{type:String,values:["checkbox","button"],default:"checkbox"},...dx(["ariaLabel"])}),vR={[c]:e=>C(e),change:e=>C(e)},bR={label:"label",value:"value",disabled:"disabled"},yR=(e,{model:t,isLimitExceeded:i,hasOwnLabel:a,isDisabled:n,isLabeledByFormItem:s})=>{const o=Sr(mR,void 0),{formItem:r}=vw(),{emit:l}=_u();function c(t){return[!0,e.trueValue,e.trueLabel].includes(t)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}const u=Lu(()=>(null==o?void 0:o.validateEvent)||e.validateEvent);return Rr(()=>e.modelValue,()=>{u.value&&(null==r||r.validate("change").catch(m))}),{handleChange:function(e){if(i.value)return;const t=e.target;l(d,c(t.checked),e)},onClickRoot:async function(o){i.value||a.value||n.value||!s.value||o.composedPath().some(e=>"LABEL"===e.tagName)||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await ir(),function(e,t){l(d,c(e),t)}(t.value,o))}}},xR=(e,t)=>{const{formItem:i}=vw(),{model:a,isGroup:n,isLimitExceeded:s}=(e=>{const t=mo(!1),{emit:i,vnode:a}=_u(),n=Sr(mR,void 0),s=Lu(()=>!1===In(n)),o=mo(!1),r=Lu(()=>{const e=a.props??{};return"modelValue"in e||"model-value"in e}),l=Lu({get(){var i;return s.value?null==(i=null==n?void 0:n.modelValue)?void 0:i.value:r.value?e.modelValue:t.value},set(e){var a,r;s.value&&C(e)?(o.value=void 0!==(null==(a=null==n?void 0:n.max)?void 0:a.value)&&e.length>(null==n?void 0:n.max.value)&&e.length>l.value.length,!1===o.value&&(null==(r=null==n?void 0:n.changeEvent)||r.call(n,e))):(i(c,e),t.value=e)}});return{model:l,isGroup:s,isLimitExceeded:o}})(e),{isFocused:o,isChecked:r,checkboxButtonSize:l,checkboxSize:d,hasOwnLabel:u,actualValue:p}=((e,t,{model:i})=>{const a=Sr(mR,void 0),n=mo(!1),s=Lu(()=>Ln(e.value)?e.label:e.value),o=Lu(()=>{const t=i.value;return Dn(t)?t:C(t)?D(s.value)?t.map(uo).some(e=>_n(e,s.value)):t.map(uo).includes(s.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t});return{checkboxButtonSize:mw(Lu(()=>{var e;return null==(e=null==a?void 0:a.size)?void 0:e.value}),{prop:!0}),isChecked:o,isFocused:n,checkboxSize:mw(Lu(()=>{var e;return null==(e=null==a?void 0:a.size)?void 0:e.value})),hasOwnLabel:Lu(()=>!!t.default||!Ln(s.value)),actualValue:s}})(e,t,{model:a}),{isDisabled:h}=(({model:e,isChecked:t})=>{const i=Sr(mR,void 0),a=Sr(fw,void 0),n=Lu(()=>{var a,n;const s=null==(a=null==i?void 0:i.max)?void 0:a.value,o=null==(n=null==i?void 0:i.min)?void 0:n.value;return!In(s)&&e.value.length>=s&&!t.value||!In(o)&&e.value.length<=o&&t.value});return{isDisabled:_w(Lu(()=>{var e;return void 0===i?(null==a?void 0:a.disabled)??n.value:(null==(e=i.disabled)?void 0:e.value)||n.value})),isLimitDisabled:n}})({model:a,isChecked:r}),{inputId:f,isLabeledByFormItem:g}=bw(e,{formItemContext:i,disableIdGeneration:u,disableIdManagement:n}),{handleChange:m,onClickRoot:_}=yR(e,{model:a,isLimitExceeded:s,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:g});return e.checked&&(C(a.value)&&!a.value.includes(p.value)?a.value.push(p.value):a.value=e.trueValue??e.trueLabel??!0),Dv({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},Lu(()=>n.value&&Ln(e.value))),Dv({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},Lu(()=>!!e.trueLabel)),Dv({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},Lu(()=>!!e.falseLabel)),{inputId:f,isLabeledByFormItem:g,isChecked:r,isDisabled:h,isFocused:o,checkboxButtonSize:l,checkboxSize:d,hasOwnLabel:u,model:a,actualValue:p,handleChange:m,onClickRoot:_}},SR=["id","indeterminate","name","tabindex","disabled"];var wR=sl({name:"ElCheckbox",__name:"checkbox",props:fR,emits:gR,setup(e){const t=e,{inputId:i,isLabeledByFormItem:a,isChecked:n,isDisabled:s,isFocused:o,checkboxSize:r,hasOwnLabel:l,model:c,actualValue:d,handleChange:u,onClickRoot:p}=xR(t,Sc()),h=Lu(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),f=ib("checkbox"),g=Lu(()=>[f.b(),f.m(r.value),f.is("disabled",s.value),f.is("bordered",t.border),f.is("checked",n.value)]),m=Lu(()=>[f.e("input"),f.is("disabled",s.value),f.is("checked",n.value),f.is("indeterminate",t.indeterminate),f.is("focus",o.value)]);return(t,n)=>(zd(),Kd(tc(!xo(l)&&xo(a)?"span":"label"),{for:!xo(l)&&xo(a)?null:xo(i),class:se(g.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:xo(p)},{default:vr(()=>[tu("span",{class:se(m.value)},[br(tu("input",uu({id:xo(i),"onUpdate:modelValue":n[0]||(n[0]=e=>go(c)?c.value=e:null),class:xo(f).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:xo(s)},h.value,{onChange:n[1]||(n[1]=(...e)=>xo(u)&&xo(u)(...e)),onFocus:n[2]||(n[2]=e=>o.value=!0),onBlur:n[3]||(n[3]=e=>o.value=!1),onClick:n[4]||(n[4]=Ah(()=>{},["stop"]))}),null,16,SR),[[mh,xo(c)]]),tu("span",{class:se(xo(f).e("inner"))},null,2)],2),xo(l)?(zd(),qd("span",{key:0,class:se(xo(f).e("label"))},[rc(t.$slots,"default"),t.$slots.default?ru("v-if",!0):(zd(),qd(Fd,{key:0},[su(me(e.label),1)],64))],2)):ru("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});const CR=["name","tabindex","disabled"];var ER=sl({name:"ElCheckboxButton",__name:"checkbox-button",props:fR,emits:gR,setup(e){const t=e,{isFocused:i,isChecked:a,isDisabled:n,checkboxButtonSize:s,model:o,actualValue:r,handleChange:l}=xR(t,Sc()),c=Lu(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:r.value}),d=Sr(mR,void 0),u=ib("checkbox"),p=Lu(()=>{var e,t;const i=(null==(e=null==d?void 0:d.fill)?void 0:e.value)??"";return{backgroundColor:i,borderColor:i,color:(null==(t=null==d?void 0:d.textColor)?void 0:t.value)??"",boxShadow:i?`-1px 0 0 0 ${i}`:void 0}}),h=Lu(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",n.value),u.is("checked",a.value),u.is("focus",i.value)]);return(t,s)=>(zd(),qd("label",{class:se(h.value)},[br(tu("input",uu({"onUpdate:modelValue":s[0]||(s[0]=e=>go(o)?o.value=e:null),class:xo(u).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:xo(n)},c.value,{onChange:s[1]||(s[1]=(...e)=>xo(l)&&xo(l)(...e)),onFocus:s[2]||(s[2]=e=>i.value=!0),onBlur:s[3]||(s[3]=e=>i.value=!1),onClick:s[4]||(s[4]=Ah(()=>{},["stop"]))}),null,16,CR),[[mh,xo(o)]]),t.$slots.default||e.label?(zd(),qd("span",{key:0,class:se(xo(u).be("button","inner")),style:ee(xo(a)?p.value:void 0)},[rc(t.$slots,"default",{},()=>[su(me(e.label),1)])],6)):ru("v-if",!0)],2))}}),kR=sl({name:"ElCheckboxGroup",__name:"checkbox-group",props:_R,emits:vR,setup(e,{emit:t}){const i=e,a=t,n=ib("checkbox"),s=_w(),{formItem:o}=vw(),{inputId:r,isLabeledByFormItem:l}=bw(i,{formItemContext:o}),u=async e=>{a(c,e),await ir(),a(d,e)},p=Lu({get:()=>i.modelValue,set(e){u(e)}}),h=Lu(()=>({...bR,...i.props})),f=Lu(()=>"button"===i.type?ER:wR);return xr(mR,{...Rn(To(i),["size","min","max","validateEvent","fill","textColor"]),disabled:s,modelValue:p,changeEvent:u}),Rr(()=>i.modelValue,(e,t)=>{i.validateEvent&&!_n(e,t)&&(null==o||o.validate("change").catch(m))}),(t,i)=>{var a;return zd(),Kd(tc(e.tag),{id:xo(r),class:se(xo(n).b("group")),role:"group","aria-label":xo(l)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":xo(l)?null==(a=xo(o))?void 0:a.labelId:void 0},{default:vr(()=>[rc(t.$slots,"default",{},()=>[(zd(!0),qd(Fd,null,sc(e.options,(e,t)=>(zd(),Kd(tc(f.value),uu({key:t},{ref_for:!0},(e=>{const{label:t,value:i,disabled:a}=h.value,n={label:e[t],value:e[i],disabled:e[a]};return{...kn(e,[t,i,a]),...n}})(e)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),TR=kR;const AR=px(wR,{CheckboxButton:ER,CheckboxGroup:TR});fx(ER);const RR=fx(TR),IR=W_({modelValue:{type:[String,Number,Boolean],default:void 0},size:ex,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),DR=W_({...IR,border:Boolean}),OR={[c]:e=>R(e)||On(e)||Dn(e),[d]:e=>R(e)||On(e)||Dn(e)},MR=Symbol("radioGroupKey"),NR=W_({...IR}),LR={label:"label",value:"value",disabled:"disabled"},PR=W_({id:{type:String,default:void 0},size:ex,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:Array},props:{type:Object,default:()=>LR},type:{type:String,values:["radio","button"],default:"radio"},...dx(["ariaLabel"])}),FR=OR,BR=(e,t)=>{const i=mo(),a=Sr(MR,void 0),n=Lu(()=>!!a),s=Lu(()=>Ln(e.value)?e.label:e.value),o=Lu({get:()=>n.value?a.modelValue:e.modelValue,set(o){n.value?a.changeEvent(o):t&&t("update:modelValue",o),i.value.checked=e.modelValue===s.value}}),r=mw(Lu(()=>null==a?void 0:a.size)),l=_w(Lu(()=>null==a?void 0:a.disabled)),c=mo(!1),d=Lu(()=>l.value||n.value&&o.value!==s.value?-1:0);return Dv({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},Lu(()=>n.value&&Ln(e.value))),{radioRef:i,isGroup:n,radioGroup:a,focus:c,size:r,disabled:l,tabIndex:d,modelValue:o,actualValue:s}},$R=["value","name","disabled","checked"];var VR=sl({name:"ElRadio",__name:"radio",props:DR,emits:OR,setup(e,{emit:t}){const i=e,a=t,n=ib("radio"),{radioRef:s,radioGroup:o,focus:r,size:l,disabled:c,modelValue:u,actualValue:p}=BR(i,a);function h(){ir(()=>a(d,u.value))}return(t,i)=>{var a;return zd(),qd("label",{class:se([xo(n).b(),xo(n).is("disabled",xo(c)),xo(n).is("focus",xo(r)),xo(n).is("bordered",e.border),xo(n).is("checked",xo(u)===xo(p)),xo(n).m(xo(l))])},[tu("span",{class:se([xo(n).e("input"),xo(n).is("disabled",xo(c)),xo(n).is("checked",xo(u)===xo(p))])},[br(tu("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":i[0]||(i[0]=e=>go(u)?u.value=e:null),class:se(xo(n).e("original")),value:xo(p),name:e.name||(null==(a=xo(o))?void 0:a.name),disabled:xo(c),checked:xo(u)===xo(p),type:"radio",onFocus:i[1]||(i[1]=e=>r.value=!0),onBlur:i[2]||(i[2]=e=>r.value=!1),onChange:h,onClick:i[3]||(i[3]=Ah(()=>{},["stop"]))},null,42,$R),[[vh,xo(u)]]),tu("span",{class:se(xo(n).e("inner"))},null,2)],2),tu("span",{class:se(xo(n).e("label")),onKeydown:i[4]||(i[4]=Ah(()=>{},["stop"]))},[rc(t.$slots,"default",{},()=>[su(me(e.label),1)])],34)],2)}}});const UR=["value","name","disabled"];var HR=sl({name:"ElRadioButton",__name:"radio-button",props:NR,setup(e){const t=e,i=ib("radio"),{radioRef:a,focus:n,size:s,disabled:o,modelValue:r,radioGroup:l,actualValue:c}=BR(t),d=Lu(()=>({backgroundColor:(null==l?void 0:l.fill)||"",borderColor:(null==l?void 0:l.fill)||"",boxShadow:(null==l?void 0:l.fill)?`-1px 0 0 0 ${l.fill}`:"",color:(null==l?void 0:l.textColor)||""}));return(t,u)=>{var p;return zd(),qd("label",{class:se([xo(i).b("button"),xo(i).is("active",xo(r)===xo(c)),xo(i).is("disabled",xo(o)),xo(i).is("focus",xo(n)),xo(i).bm("button",xo(s))])},[br(tu("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":u[0]||(u[0]=e=>go(r)?r.value=e:null),class:se(xo(i).be("button","original-radio")),value:xo(c),type:"radio",name:e.name||(null==(p=xo(l))?void 0:p.name),disabled:xo(o),onFocus:u[1]||(u[1]=e=>n.value=!0),onBlur:u[2]||(u[2]=e=>n.value=!1),onClick:u[3]||(u[3]=Ah(()=>{},["stop"]))},null,42,UR),[[vh,xo(r)]]),tu("span",{class:se(xo(i).be("button","inner")),style:ee(xo(r)===xo(c)?d.value:{}),onKeydown:u[4]||(u[4]=Ah(()=>{},["stop"]))},[rc(t.$slots,"default",{},()=>[su(me(e.label),1)])],38)],2)}}});const zR=["id","aria-label","aria-labelledby"];var YR=sl({name:"ElRadioGroup",__name:"radio-group",props:PR,emits:FR,setup(e,{emit:t}){const i=e,a=t,n=ib("radio"),s=Vy(),o=mo(),{formItem:r}=vw(),{inputId:l,isLabeledByFormItem:u}=bw(i,{formItemContext:r});zl(()=>{const e=o.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some(e=>e.checked)&&t&&(t.tabIndex=0)});const p=Lu(()=>i.name||s.value),h=Lu(()=>({...LR,...i.props})),f=Lu(()=>"button"===i.type?HR:VR);return xr(MR,to({...To(i),changeEvent:e=>{a(c,e),ir(()=>a(d,e))},name:p})),Rr(()=>i.modelValue,(e,t)=>{i.validateEvent&&!_n(e,t)&&(null==r||r.validate("change").catch(m))}),(t,i)=>(zd(),qd("div",{id:xo(l),ref_key:"radioGroupRef",ref:o,class:se(xo(n).b("group")),role:"radiogroup","aria-label":xo(u)?void 0:e.ariaLabel||"radio-group","aria-labelledby":xo(u)?xo(r).labelId:void 0},[rc(t.$slots,"default",{},()=>[(zd(!0),qd(Fd,null,sc(e.options,(e,t)=>(zd(),Kd(tc(f.value),uu({key:t},{ref_for:!0},(e=>{const{label:t,value:i,disabled:a}=h.value,n={label:e[t],value:e[i],disabled:e[a]};return{...kn(e,[t,i,a]),...n}})(e)),null,16))),128))])],10,zR))}}),GR=YR;const WR=px(VR,{RadioButton:HR,RadioGroup:GR}),jR=fx(GR),qR=fx(HR),KR=Symbol();var XR=sl({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ib("cascader-node"),{renderLabelFn:i}=Sr(KR),{node:a}=e,{data:n,label:s}=a,o=()=>{const e=null==i?void 0:i({node:a,data:n});return(C(t=e)?t.every(({type:e})=>e===$d):(null==t?void 0:t.type)===$d)?s:e??s;var t};return()=>iu("span",{class:t.e("label")},[o()])}});const ZR=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var QR=sl({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:{type:String,required:!1}},emits:["expand"],setup(e,{emit:t}){const i=e,a=t,n=Sr(KR),s=ib("cascader-node"),o=Lu(()=>n.isHoverMenu),r=Lu(()=>n.config.multiple),l=Lu(()=>n.config.checkStrictly),c=Lu(()=>n.config.showPrefix),d=Lu(()=>{var e;return null==(e=n.checkedNodes[0])?void 0:e.uid}),u=Lu(()=>i.node.isDisabled),p=Lu(()=>i.node.isLeaf),h=Lu(()=>l.value&&!p.value||!u.value),f=Lu(()=>m(n.expandingNode)),g=Lu(()=>l.value&&n.checkedNodes.some(m)),m=e=>{var t;const{level:a,uid:n}=i.node;return(null==(t=null==e?void 0:e.pathNodes[a-1])?void 0:t.uid)===n},_=()=>{f.value||n.expandNode(i.node)},v=e=>{const{node:t}=i;e!==t.checked&&n.handleCheckChange(t,e)},b=()=>{n.lazyLoad(i.node,()=>{p.value||_()})},y=e=>{o.value&&(x(),!p.value&&a("expand",e))},x=()=>{const{node:e}=i;h.value&&!e.loading&&(e.loaded?_():b())},S=()=>{!p.value||u.value||l.value||r.value?(n.config.checkOnClickNode&&(r.value||l.value)||p.value&&n.config.checkOnClickLeaf)&&!u.value?w(!i.node.checked):o.value||x():C(!0)},w=e=>{l.value?(v(e),i.node.loaded&&_()):C(e)},C=e=>{i.node.loaded?(v(e),!l.value&&_()):b()};return(t,i)=>(zd(),qd("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!p.value,"aria-owns":p.value?void 0:e.menuId,"aria-expanded":f.value,tabindex:h.value?-1:void 0,class:se([xo(s).b(),xo(s).is("selectable",l.value),xo(s).is("active",e.node.checked),xo(s).is("disabled",!h.value),f.value&&"in-active-path",g.value&&"in-checked-path"]),onMouseenter:y,onFocus:y,onClick:S},[ru(" prefix "),r.value&&c.value?(zd(),Kd(xo(AR),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:u.value,onClick:i[0]||(i[0]=Ah(()=>{},["stop"])),"onUpdate:modelValue":w},null,8,["model-value","indeterminate","disabled"])):l.value&&c.value?(zd(),Kd(xo(WR),{key:1,"model-value":d.value,label:e.node.uid,disabled:u.value,"onUpdate:modelValue":w,onClick:i[1]||(i[1]=Ah(()=>{},["stop"]))},{default:vr(()=>[ru("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),i[2]||(i[2]=tu("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(zd(),Kd(xo(KS),{key:2,class:se(xo(s).e("prefix"))},{default:vr(()=>[iu(xo(Ix))]),_:1},8,["class"])):ru("v-if",!0),ru(" content "),iu(xo(XR),{node:e.node},null,8,["node"]),ru(" postfix "),p.value?ru("v-if",!0):(zd(),qd(Fd,{key:3},[e.node.loading?(zd(),Kd(xo(KS),{key:0,class:se([xo(s).is("loading"),xo(s).e("postfix")])},{default:vr(()=>[iu(xo(oS))]),_:1},8,["class"])):(zd(),Kd(xo(KS),{key:1,class:se(["arrow-right",xo(s).e("postfix")])},{default:vr(()=>[iu(xo(bx))]),_:1},8,["class"]))],64))],42,ZR))}}),JR=QR,eI=sl({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const i=e,a=_u(),n=ib("cascader-menu"),{t:s}=Qv(),o=Vy();let r,l;const c=Sr(KR),d=mo(),u=mo(),p=Lu(()=>!i.nodes.length),h=Lu(()=>!c.initialLoaded),f=Lu(()=>`${o.value}-${i.index}`),g=e=>{var t;const a=$i(e,0,i.nodes.length-1);null==(t=u.value)||t.scrollToItem(a)},m=e=>{r=e.target},_=e=>{var t,s,o;if(c.isHoverMenu&&r&&d.value)if(r.contains(e.target)){v();const l=a.vnode.el,{left:c}=l.getBoundingClientRect(),{offsetWidth:p,offsetHeight:h}=l,f=e.clientX-c,g=r.offsetTop,m=g+r.offsetHeight,_=i.virtualScroll?(null==(s=null==(t=u.value)?void 0:t.states)?void 0:s.scrollOffset)||0:(null==(o=l.querySelector(`.${n.e("wrap")}`))?void 0:o.scrollTop)||0;d.value.innerHTML=`\n <path style="pointer-events: auto;" fill="transparent" d="M${f} ${g} L${p} ${_} V${g} Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M${f} ${m} L${p} ${h+_} V${m} Z" />\n `}else l||(l=window.setTimeout(b,c.config.hoverThreshold))},v=()=>{l&&(clearTimeout(l),l=void 0)},b=()=>{d.value&&(d.value.innerHTML="",v())};return t({getActiveNodeIndex:()=>{var e,t,a,n;let s;if(c.expandingNode){const{level:n,pathNodes:o}=c.expandingNode;i.index<n?s=null==(e=o[i.index])?void 0:e.uid:i.index===n&&c.checkedNodes.length>0&&(s=null==(a=null==(t=c.checkedNodes[0])?void 0:t.pathNodes[i.index])?void 0:a.uid)}else c.checkedNodes.length>0&&i.index<c.checkedNodes[0].pathNodes.length&&(s=null==(n=c.checkedNodes[0].pathNodes[i.index])?void 0:n.uid);return void 0!==s?i.nodes.findIndex(e=>e.uid===s):-1},getNodeIndexById:e=>e?i.nodes.findIndex(t=>`${f.value}-${t.uid}`===e):-1,scrollToItem:g,focusNodeAt:e=>{if(!i.nodes.length)return;const t=$i(e,0,i.nodes.length-1);g(t),ir(()=>{var e;const n=null==(e=a.vnode.el)?void 0:e.querySelector(`#${f.value}-${i.nodes[t].uid}`);n&&Bv(n)})},virtualListRef:u,get $el(){return a.vnode.el}}),(t,i)=>{var a;return e.virtualScroll?(zd(),qd("div",{key:f.value,class:se(xo(n).b()),onMousemove:_,onMouseleave:b},[iu(xo(hR),{ref_key:"virtualListRef",ref:u,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":xo(n).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:xo(n).is("empty",p.value)}},{default:vr(({data:e,index:t,style:i})=>[(zd(),Kd(JR,{key:e[t].uid,node:e[t],"menu-id":f.value,style:ee(i),onExpand:m},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),h.value?(zd(),qd("div",{key:0,class:se(xo(n).e("empty-text"))},[iu(xo(KS),{size:14,class:se(xo(n).is("loading"))},{default:vr(()=>[iu(xo(oS))]),_:1},8,["class"]),su(" "+me(xo(s)("el.cascader.loading")),1)],2)):p.value?(zd(),qd("div",{key:1,class:se(xo(n).e("empty-text"))},[rc(t.$slots,"empty",{},()=>[su(me(xo(s)("el.cascader.noData")),1)])],2)):(null==(a=xo(c))?void 0:a.isHoverMenu)?(zd(),qd(Fd,{key:2},[ru(" eslint-disable vue/html-self-closing "),(zd(),qd("svg",{ref_key:"hoverZone",ref:d,class:se(xo(n).e("hover-zone"))},null,2))],2112)):ru("v-if",!0),ru(" eslint-enable vue/html-self-closing ")],34)):(zd(),Kd(xo(SE),{key:f.value,tag:"ul",role:"menu",class:se(xo(n).b()),"wrap-class":xo(n).e("wrap"),"view-class":[xo(n).e("list"),xo(n).is("empty",p.value)],onMousemove:_,onMouseleave:b},{default:vr(()=>{var i;return[(zd(!0),qd(Fd,null,sc(e.nodes,e=>(zd(),Kd(JR,{key:e.uid,node:e,"menu-id":f.value,onExpand:m},null,8,["node","menu-id"]))),128)),h.value?(zd(),qd("div",{key:0,class:se(xo(n).e("empty-text"))},[iu(xo(KS),{size:14,class:se(xo(n).is("loading"))},{default:vr(()=>[iu(xo(oS))]),_:1},8,["class"]),su(" "+me(xo(s)("el.cascader.loading")),1)],2)):p.value?(zd(),qd("div",{key:1,class:se(xo(n).e("empty-text"))},[rc(t.$slots,"empty",{},()=>[su(me(xo(s)("el.cascader.noData")),1)])],2)):(null==(i=xo(c))?void 0:i.isHoverMenu)?(zd(),qd(Fd,{key:2},[ru(" eslint-disable vue/html-self-closing "),(zd(),qd("svg",{ref_key:"hoverZone",ref:d,class:se(xo(n).e("hover-zone"))},null,2))],2112)):ru("v-if",!0),ru(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),tI=eI;let iI=0;var aI=class e{constructor(t,i,a,n=!1){this.data=t,this.config=i,this.parent=a,this.root=n,this.uid=iI++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:s,label:o,children:r}=i,l=t[r],c=(e=>{const t=[e];let{parent:i}=e;for(;i;)t.unshift(i),i=i.parent;return t})(this);this.level=n?0:a?a.level+1:1,this.value=t[s],this.label=t[o],this.pathNodes=c,this.pathValues=c.map(e=>e.value),this.pathLabels=c.map(e=>e.label),this.childrenData=l,this.children=(l||[]).map(t=>new e(t,i,this)),this.loaded=!i.lazy||this.isLeaf||!Mn(l),this.text=""}get isDisabled(){const{data:e,parent:t,config:i}=this,{disabled:a,checkStrictly:n}=i;return(A(a)?a(e,this):!!e[a])||!n&&!!(null==t?void 0:t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:i,loaded:a}=this,{lazy:n,leaf:s}=t,o=A(s)?s(e,this):e[s];return In(o)?!(n&&!a)&&!(C(i)&&i.length):!!o}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:i,children:a}=this,n=new e(t,this.config,this);return C(i)?i.push(t):this.childrenData=[t],a.push(n),n}calcText(e,t){const i=e?this.pathLabels.join(t):this.label;return this.text=i,i}broadcast(e){this.children.forEach(t=>{var i;t&&(t.broadcast(e),null==(i=t.onParentCheck)||i.call(t,e))})}emit(){var e;const{parent:t}=this;t&&(null==(e=t.onChildCheck)||e.call(t),t.emit())}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,t=e.filter(e=>!e.isDisabled),i=!!t.length&&t.every(e=>e.checked);this.setCheckState(i)}setCheckState(e){const t=this.children.length,i=this.children.reduce((e,t)=>e+(t.checked?1:t.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(e=>!e.isDisabled).every(e=>e.loaded&&e.checked)&&e,this.indeterminate=this.loaded&&i!==t&&i>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:t,multiple:i}=this.config;t||!i?this.checked=e:(this.broadcast(e),this.setCheckState(e),this.emit())}};const nI=(e,t)=>e.reduce((e,i)=>(i.isLeaf?e.push(i):(!t&&e.push(i),e=e.concat(nI(i.children,t))),e),[]);var sI=class{constructor(e,t){this.config=t;const i=(e||[]).map(e=>new aI(e,this.config));this.nodes=i,this.allNodes=nI(i,!1),this.leafNodes=nI(i,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const i=t?t.appendChild(e):new aI(e,this.config);t||this.nodes.push(i),this.appendAllNodesAndLeafNodes(i)}appendNodes(e,t){e.length>0?e.forEach(e=>this.appendNode(e,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(e=>{this.appendAllNodesAndLeafNodes(e)})}getNodeByValue(e,t=!1){return Ln(e)?null:this.getFlattedNodes(t).find(t=>_n(t.value,e)||_n(t.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:i})=>_n(e.value,t)&&e.level===i)||null}};const oI=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])};var rI=sl({name:"ElCascaderPanel",__name:"index",props:IA,emits:OA,setup(e,{expose:t,emit:i}){const a=e,n=i;let s=!1;const o=ib("cascader"),r=(e=>Lu(()=>({...RA,...e.props})))(a),u=Sc();let p;const h=mo(!0),f=mo(!1),g=mo([]),m=mo(),_=mo([]),v=mo(),b=mo([]),y=Lu(()=>"hover"===r.value.expandTrigger),x=Lu(()=>a.renderLabel||u.default),S=Lu(()=>a.virtualScroll),w=Lu(()=>a.itemSize),C=Lu(()=>a.height),E=()=>{const{options:e}=a,t=r.value;s=!1,p=new sI(e,t),_.value=[p.getNodes()],t.lazy&&Mn(a.options)?(h.value=!1,k(void 0,e=>{e&&(p=new sI(e,t),_.value=[p.getNodes()]),h.value=!0,M(!1,!0)})):M(!1,!0)},k=(e,t)=>{const i=r.value;(e=e||new aI({},i,void 0,!0)).loading=!0;i.lazyLoad(e,i=>{const a=e,n=a.root?null:a;a.loading=!1,a.loaded=!0,a.childrenData=a.childrenData||[],i&&(null==p||p.appendNodes(i,n)),i&&(null==t||t(i)),0===e.level&&(f.value=!0)},()=>{e.loading=!1,e.loaded=!1,0===e.level&&(h.value=!0)})},T=(e,t)=>{var i;const{level:a}=e,s=_.value.slice(0,a);let o;e.isLeaf?o=e.pathNodes[a-2]:(o=e,s.push(e.children)),(null==(i=v.value)?void 0:i.uid)!==(null==o?void 0:o.uid)&&(v.value=e,_.value=s,!t&&n("expand-change",(null==e?void 0:e.pathValues)||[]))},A=(e,t,i=!0)=>{const{checkStrictly:a,multiple:o}=r.value,l=b.value[0];s=!0,!o&&(null==l||l.doCheck(!1)),e.doCheck(t),O(),i&&!o&&!a&&n("close"),!i&&!o&&R(e)},R=e=>{e&&(e=e.parent,R(e),e&&T(e))},I=e=>null==p?void 0:p.getFlattedNodes(e),D=e=>{var t;return null==(t=I(e))?void 0:t.filter(({checked:e})=>!1!==e)},O=()=>{const{checkStrictly:e,multiple:t}=r.value,i=((e,t)=>{const i=t.slice(0),a=i.map(e=>e.uid),n=e.reduce((e,t)=>{const n=a.indexOf(t.uid);return n>-1&&(e.push(t),i.splice(n,1),a.splice(n,1)),e},[]);return n.push(...i),n})(b.value,D(!e)),a=i.map(e=>e.valueByOption);b.value=i,m.value=t?a:a[0]??null},M=(e=!1,t=!1)=>{const{modelValue:i}=a,{lazy:n,multiple:o,checkStrictly:l}=r.value,c=!l;var d;if(h.value&&!s&&(t||!_n(i,m.value)))if(n&&!e){const e=xw((d=ww(i),null!=d&&d.length?Ai(d,fn):[])).map(e=>null==p?void 0:p.getNodeByValue(e)).filter(e=>!!e&&!e.loaded&&!e.loading);e.length?e.forEach(e=>{k(e,()=>M(!1,t))}):M(!0,t)}else N(xw((o?ww(i):[i]).map(e=>null==p?void 0:p.getNodeByValue(e,c))),t),m.value=Oa(i??void 0)},N=(e,t=!0)=>{const{checkStrictly:i}=r.value,a=b.value,n=e.filter(e=>!!e&&(i||e.isLeaf)),s=null==p?void 0:p.getSameNode(v.value),o=t&&s||n[0];o?o.pathNodes.forEach(e=>T(e,!0)):v.value=void 0,a.forEach(e=>e.doCheck(!1)),to(n).forEach(e=>e.doCheck(!0)),b.value=n,ir(L)},L=()=>{av&&g.value.forEach(e=>{var t,i;const a=null==e?void 0:e.$el;if(a)if(S.value){const a=null==(t=null==e?void 0:e.getActiveNodeIndex)?void 0:t.call(e);void 0!==a&&a>=0&&(null==(i=null==e?void 0:e.scrollToItem)||i.call(e,a))}else{const e=a.querySelector(`.${o.namespace.value}-scrollbar__wrap`);let t=a.querySelector(`.${o.b("node")}.in-active-path`);if(!t){const e=a.querySelectorAll(`.${o.b("node")}.${o.is("active")}`);t=e[e.length-1]}ob(e,t)}})},P=e=>{var t,i;const a=e.target,n=db(e);switch(n){case l.up:case l.down:{e.preventDefault();const t=n===l.up?-1:1;if(S.value){const e=oI(a),i=g.value[e];if(i){const n=i.getNodeIndexById(a.id);if(n>=0){const a=_.value[e]??[],s=a.length;let o=n+t;for(;o>=0&&o<s;){if(!a[o].isDisabled)return void i.focusNodeAt(o);o+=t}}}}Bv(((e,t,i)=>{const{parentNode:a}=e;if(!a)return null;const n=a.querySelectorAll(i);return n[Array.prototype.indexOf.call(n,e)+t]||null})(a,t,`.${o.b("node")}[tabindex="-1"]`));break}case l.left:{e.preventDefault();const i=null==(t=g.value[oI(a)-1])?void 0:t.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);Bv(i);break}case l.right:{e.preventDefault();const t=null==(i=g.value[oI(a)+1])?void 0:i.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);Bv(t);break}case l.enter:case l.numpadEnter:(e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Pv(e)&&e.click()})(a)}};xr(KR,to({config:r,expandingNode:v,checkedNodes:b,isHoverMenu:y,initialLoaded:h,renderLabelFn:x,virtualScroll:S,itemSize:w,height:C,lazyLoad:k,expandNode:T,handleCheckChange:A})),Rr(r,(e,t)=>{_n(e,t)||E()},{immediate:!0}),Rr(()=>a.options,E,{deep:!0}),Rr(()=>a.modelValue,()=>{s=!1,M()},{deep:!0}),Rr(()=>m.value,e=>{_n(e,a.modelValue)||(n(c,e),n(d,e))});return Yl(()=>g.value=[]),zl(()=>!Mn(a.modelValue)&&M()),t({menuList:g,menus:_,checkedNodes:b,handleKeyDown:P,handleCheckChange:A,getFlattedNodes:I,getCheckedNodes:D,clearCheckedNodes:()=>{b.value.forEach(e=>e.doCheck(!1)),O(),_.value=_.value.slice(0,1),v.value=void 0,n("expand-change",[])},calculateCheckedValue:O,scrollToExpandingNode:L,loadLazyRootNodes:()=>{!f.value&&h.value&&E()}}),(t,i)=>(zd(),qd("div",{class:se([xo(o).b("panel"),xo(o).is("bordered",e.border)]),onKeydown:P},[(zd(!0),qd(Fd,null,sc(_.value,(e,i)=>(zd(),Kd(tI,{key:i,ref_for:!0,ref:e=>g.value[i]=e,index:i,nodes:[...e],"virtual-scroll":S.value,"item-size":w.value,height:C.value},{empty:vr(()=>[rc(t.$slots,"empty")]),_:3},8,["index","nodes","virtual-scroll","item-size","height"]))),128))],34))}});const lI=px(rI),cI=W_({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:[Number,Object],default:()=>({})},sm:{type:[Number,Object],default:()=>({})},md:{type:[Number,Object],default:()=>({})},lg:{type:[Number,Object],default:()=>({})},xl:{type:[Number,Object],default:()=>({})}}),dI=W_({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),uI=Symbol("rowContextKey");const pI=px(sl({name:"ElRow",__name:"row",props:dI,setup(e){const t=e,i=ib("row");xr(uI,{gutter:Lu(()=>t.gutter)});const a=Lu(()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e}),n=Lu(()=>[i.b(),i.is(`justify-${t.justify}`,"start"!==t.justify),i.is(`align-${t.align}`,!!t.align)]);return(t,i)=>(zd(),Kd(tc(e.tag),{class:se(n.value),style:ee(a.value)},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["class","style"]))}}));const hI=px(sl({name:"ElCol",__name:"col",props:cI,setup(e){const t=e,{gutter:i}=Sr(uI,{gutter:Lu(()=>0)}),a=ib("col"),n=Lu(()=>{const e={};return i.value&&(e.paddingLeft=e.paddingRight=i.value/2+"px"),e}),s=Lu(()=>{const e=[];return["span","offset","pull","push"].forEach(i=>{const n=t[i];On(n)&&("span"===i?e.push(a.b(`${t[i]}`)):n>0&&e.push(a.b(`${i}-${t[i]}`)))}),["xs","sm","md","lg","xl"].forEach(i=>{On(t[i])?e.push(a.b(`${i}-${t[i]}`)):D(t[i])&&Object.entries(t[i]).forEach(([t,n])=>{e.push("span"!==t?a.b(`${i}-${t}-${n}`):a.b(`${i}-${n}`))})}),i.value&&e.push(a.is("guttered")),[a.b(),e]});return(t,i)=>(zd(),Kd(tc(e.tag),{class:se(s.value),style:ee(n.value)},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["class","style"]))}})),fI=e=>On(e)||R(e)||C(e),gI=W_({accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]},expandIconPosition:{type:[String],default:"right"},beforeCollapse:{type:Function}}),mI={[c]:fI,[d]:fI},_I=Symbol("collapseContextKey"),vI=W_({title:{type:String,default:""},name:{type:[String,Number],default:void 0},icon:{type:YS,default:bx},disabled:Boolean});const bI=px(sl({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ib("collapse-transition"),i=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},a={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){i(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){i(e)},leaveCancelled(e){i(e)}};return(e,i)=>(zd(),Kd(np,uu({name:xo(t).b()},cc(a)),{default:vr(()=>[rc(e.$slots,"default")]),_:3},16,["name"]))}})),yI="ElCollapse";var xI=sl({name:"ElCollapse",__name:"collapse",props:gI,emits:mI,setup(e,{expose:t,emit:i}){const a=e,{activeNames:n,setActiveNames:s}=((e,t)=>{const i=mo(Bi(e.modelValue)),a=a=>{i.value=a;const n=e.accordion?i.value[0]:i.value;t(c,n),t(d,n)},n=t=>{if(e.accordion)a([i.value[0]===t?"":t]);else{const e=[...i.value],n=e.indexOf(t);n>-1?e.splice(n,1):e.push(t),a(e)}};return Rr(()=>e.modelValue,()=>i.value=Bi(e.modelValue),{deep:!0}),xr(_I,{activeNames:i,handleItemClick:async t=>{const{beforeCollapse:i}=e;if(!i)return void n(t);const a=i(t);[O(a),Dn(a)].includes(!0)||q_(yI,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),O(a)?a.then(e=>{!1!==e&&n(t)}).catch(e=>{K_(yI,`some error occurred: ${e}`)}):a&&n(t)}}),{activeNames:i,setActiveNames:a}})(a,i),{rootKls:o}=(e=>{const t=ib("collapse");return{rootKls:Lu(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}})(a);return t({activeNames:n,setActiveNames:s}),(e,t)=>(zd(),qd("div",{class:se(xo(o))},[rc(e.$slots,"default")],2))}}),SI=xI;const wI=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],CI=["id","aria-hidden","aria-labelledby"];var EI=sl({name:"ElCollapseItem",__name:"collapse-item",props:vI,setup(e,{expose:t}){const i=e,{focusing:a,id:n,isActive:s,handleFocus:o,handleHeaderClick:r,handleEnterClick:l}=(e=>{const t=Sr(_I),{namespace:i}=ib("collapse"),a=mo(!1),n=mo(!1),s=$y(),o=Lu(()=>s.current++),r=Lu(()=>e.name??`${i.value}-id-${s.prefix}-${xo(o)}`),l=Lu(()=>null==t?void 0:t.activeNames.value.includes(xo(r)));return{focusing:a,id:o,isActive:l,handleFocus:()=>{setTimeout(()=>{n.value?n.value=!1:a.value=!0},50)},handleHeaderClick:i=>{var s;e.disabled||(null==(s=i.target)?void 0:s.closest("input, textarea, select"))||(null==t||t.handleItemClick(xo(r)),a.value=!1,n.value=!0)},handleEnterClick:e=>{var i;(null==(i=e.target)?void 0:i.closest("input, textarea, select"))||(e.preventDefault(),null==t||t.handleItemClick(xo(r)))}}})(i),{arrowKls:c,headKls:d,rootKls:u,itemTitleKls:p,itemWrapperKls:h,itemContentKls:f,scopedContentId:g,scopedHeadId:m}=((e,{focusing:t,isActive:i,id:a})=>{const n=ib("collapse"),s=Lu(()=>[n.b("item"),n.is("active",xo(i)),n.is("disabled",e.disabled)]),o=Lu(()=>[n.be("item","header"),n.is("active",xo(i)),{focusing:xo(t)&&!e.disabled}]),r=Lu(()=>[n.be("item","arrow"),n.is("active",xo(i))]);return{itemTitleKls:Lu(()=>[n.be("item","title")]),arrowKls:r,headKls:o,rootKls:s,itemWrapperKls:Lu(()=>n.be("item","wrap")),itemContentKls:Lu(()=>n.be("item","content")),scopedContentId:Lu(()=>n.b(`content-${xo(a)}`)),scopedHeadId:Lu(()=>n.b(`head-${xo(a)}`))}})(i,{focusing:a,isActive:s,id:n});return t({isActive:s}),(t,i)=>(zd(),qd("div",{class:se(xo(u))},[tu("div",{id:xo(m),class:se(xo(d)),"aria-expanded":xo(s),"aria-controls":xo(g),"aria-describedby":xo(g),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:i[0]||(i[0]=(...e)=>xo(r)&&xo(r)(...e)),onKeydown:i[1]||(i[1]=Ih(Ah((...e)=>xo(l)&&xo(l)(...e),["stop"]),["space","enter"])),onFocus:i[2]||(i[2]=(...e)=>xo(o)&&xo(o)(...e)),onBlur:i[3]||(i[3]=e=>a.value=!1)},[tu("span",{class:se(xo(p))},[rc(t.$slots,"title",{isActive:xo(s)},()=>[su(me(e.title),1)])],2),rc(t.$slots,"icon",{isActive:xo(s)},()=>[iu(xo(KS),{class:se(xo(c))},{default:vr(()=>[(zd(),Kd(tc(e.icon)))]),_:1},8,["class"])])],42,wI),iu(xo(bI),null,{default:vr(()=>[br(tu("div",{id:xo(g),role:"region",class:se(xo(h)),"aria-hidden":!xo(s),"aria-labelledby":xo(m)},[tu("div",{class:se(xo(f))},[rc(t.$slots,"default")],2)],10,CI),[[yp,xo(s)]])]),_:3})],2))}}),kI=EI;const TI=px(SI,{CollapseItem:kI}),AI=fx(kI),RI=W_({modelValue:{type:String,default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:String},disabled:Boolean,predefine:{type:Array},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:[String,Array,Object]},hueSliderStyle:{type:[String,Array,Object,Boolean],default:void 0}}),II={[c]:e=>R(e)||vn(e)},DI=Symbol("colorCommonPickerKey"),OI=Symbol("colorPickerPanelContextKey"),MI=W_({color:{type:Object,required:!0},vertical:Boolean,disabled:Boolean}),NI=MI,LI=e=>{let t,i;return"touchend"===e.type?(i=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(i=e.touches[0].clientY,t=e.touches[0].clientX):(i=e.clientY,t=e.clientX),{clientX:t,clientY:i}};let PI=!1;function FI(e,t){if(!av)return;const i=function(e){var i;null==(i=t.drag)||i.call(t,e)},a=function(e){var n;document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,PI=!1,null==(n=t.end)||n.call(t,e)},n=function(e){var n;PI||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),document.addEventListener("touchmove",i),document.addEventListener("touchend",a),PI=!0,null==(n=t.start)||n.call(t,e))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!1})}const BI=(e,{key:t,minValue:i,maxValue:a})=>{const n=_u(),s=_o(),o=_o(),r=Lu(()=>e.color.get(t));function c(i){if(!o.value||!s.value||e.disabled)return;const r=n.vnode.el.getBoundingClientRect(),{clientX:l,clientY:c}=LI(i);let d;if(e.vertical){let e=c-r.top;e=Math.max(s.value.offsetHeight/2,e),e=Math.min(e,r.height-s.value.offsetHeight/2),d=Math.round((e-s.value.offsetHeight/2)/(r.height-s.value.offsetHeight)*a)}else{let e=l-r.left;e=Math.max(s.value.offsetWidth/2,e),e=Math.min(e,r.width-s.value.offsetWidth/2),d=Math.round((e-s.value.offsetWidth/2)/(r.width-s.value.offsetWidth)*a)}e.color.set(t,d)}function d(n){let s=r.value+n;s=s<i?i:s>a?a:s,e.color.set(t,s)}return{thumb:s,bar:o,currentValue:r,handleDrag:c,handleClick:function(t){var i;e.disabled||(t.target!==s.value&&c(t),null==(i=s.value)||i.focus())},handleKeydown:function(n){if(e.disabled)return;const{shiftKey:s}=n,o=db(n),r=s?10:1,c="hue"===t?-1:1;let u=!0;switch(o){case l.left:case l.down:d(-r*c);break;case l.right:case l.up:d(r*c);break;case l.home:e.color.set(t,"hue"===t?a:i);break;case l.end:e.color.set(t,"hue"===t?i:a);break;case l.pageDown:d(-4*c);break;case l.pageUp:d(4*c);break;default:u=!1}u&&n.preventDefault()}}},$I=(e,{namespace:t,maxValue:i,bar:a,thumb:n,currentValue:s,handleDrag:o,getBackground:r})=>{const l=_u(),c=ib(t),d=mo(0),u=mo(0),p=mo();function h(){d.value=function(){if(!n.value)return 0;if(e.vertical)return 0;const t=l.vnode.el,a=s.value;return t?Math.round(a*(t.offsetWidth-n.value.offsetWidth/2)/i):0}(),u.value=function(){if(!n.value)return 0;const t=l.vnode.el;if(!e.vertical)return 0;const a=s.value;return t?Math.round(a*(t.offsetHeight-n.value.offsetHeight/2)/i):0}(),p.value=null==r?void 0:r()}zl(()=>{if(!a.value||!n.value)return;const e={drag:e=>{o(e)},end:e=>{o(e)}};FI(a.value,e),FI(n.value,e),h()}),Rr(s,()=>h()),Rr(()=>e.color.value,()=>h());const f=Lu(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),g=Lu(()=>c.e("bar")),m=Lu(()=>c.e("thumb"));return{rootKls:f,barKls:g,barStyle:Lu(()=>({background:p.value})),thumbKls:m,thumbStyle:Lu(()=>({left:Wv(d.value),top:Wv(u.value)})),thumbLeft:d,thumbTop:u,update:h}},VI=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"];var UI=sl({name:"ElColorAlphaSlider",__name:"alpha-slider",props:MI,setup(e,{expose:t}){const i=e,{currentValue:a,bar:n,thumb:s,handleDrag:o,handleClick:r,handleKeydown:l}=BI(i,{key:"alpha",minValue:0,maxValue:100}),{rootKls:c,barKls:d,barStyle:u,thumbKls:p,thumbStyle:h,update:f}=$I(i,{namespace:"color-alpha-slider",maxValue:100,currentValue:a,bar:n,thumb:s,handleDrag:o,getBackground:function(){if(i.color&&i.color.value){const{r:e,g:t,b:a}=i.color.toRgb();return`linear-gradient(to right, rgba(${e}, ${t}, ${a}, 0) 0%, rgba(${e}, ${t}, ${a}, 1) 100%)`}return""}}),{t:g}=Qv(),m=Lu(()=>g("el.colorpicker.alphaLabel")),_=Lu(()=>g("el.colorpicker.alphaDescription",{alpha:a.value,color:i.color.value}));return t({update:f,bar:n,thumb:s}),(t,i)=>(zd(),qd("div",{class:se(xo(c))},[tu("div",{ref_key:"bar",ref:n,class:se(xo(d)),style:ee(xo(u)),onClick:i[0]||(i[0]=(...e)=>xo(r)&&xo(r)(...e))},null,6),tu("div",{ref_key:"thumb",ref:s,class:se(xo(p)),style:ee(xo(h)),"aria-label":m.value,"aria-valuenow":xo(a),"aria-valuetext":_.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":0,"aria-valuemax":100,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:i[1]||(i[1]=(...e)=>xo(l)&&xo(l)(...e))},null,46,VI)],2))}}),HI=UI;const zI=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"];var YI=sl({name:"ElColorHueSlider",__name:"hue-slider",props:NI,setup(e,{expose:t}){const i=e,{currentValue:a,bar:n,thumb:s,handleDrag:o,handleClick:r,handleKeydown:l}=BI(i,{key:"hue",minValue:0,maxValue:360}),{rootKls:c,barKls:d,thumbKls:u,thumbStyle:p,thumbTop:h,update:f}=$I(i,{namespace:"color-hue-slider",maxValue:360,currentValue:a,bar:n,thumb:s,handleDrag:o}),{t:g}=Qv(),m=Lu(()=>g("el.colorpicker.hueLabel")),_=Lu(()=>g("el.colorpicker.hueDescription",{hue:a.value,color:i.color.value}));return t({bar:n,thumb:s,thumbTop:h,update:f}),(t,i)=>(zd(),qd("div",{class:se(xo(c))},[tu("div",{ref_key:"bar",ref:n,class:se(xo(d)),onClick:i[0]||(i[0]=(...e)=>xo(r)&&xo(r)(...e))},null,2),tu("div",{ref_key:"thumb",ref:s,class:se(xo(u)),style:ee(xo(p)),"aria-label":m.value,"aria-valuenow":xo(a),"aria-valuetext":_.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":0,"aria-valuemax":360,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:i[1]||(i[1]=(...e)=>xo(l)&&xo(l)(...e))},null,46,zI)],2))}}),GI=YI;const WI=W_({colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var jI=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new vk,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)w(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!=typeof e)this[`_${e}`]=t,this._isValid=!0,this.doOnChange();else for(const i in e)w(e,i)&&this.set(i,e[i])}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new vk(e);if(this._isValid=t.isValid,t.isValid){const{h:e,s:i,v:a,a:n}=t.toHsv();this._hue=e,this._saturation=100*i,this._value=100*a,this._alpha=100*n}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new vk({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:i,_alpha:a,format:n,enableAlpha:s}=this;let o=n||(s?"rgb":"hex");"hex"===n&&s&&(o="hex8"),this._tiny=new vk({h:e,s:t/100,v:i/100,a:a/100}),this.value=this._isValid?this._tiny.toString(o):""}};const qI=["disabled","aria-label","onClick"];var KI=sl({name:"ElColorPredefine",__name:"predefine",props:WI,setup(e){const t=e,{rgbaColors:i,handleSelect:a}=(e=>{const{currentColor:t}=Sr(OI),i=mo(a(e.colors,e.color));function a(t,i){return t.map(t=>{const a=new jI({value:t,enableAlpha:e.enableAlpha});return a.selected=a.compare(i),a})}return Rr(()=>t.value,t=>{const a=new jI({value:t,enableAlpha:e.enableAlpha});i.value.forEach(e=>{e.selected=a.compare(e)})}),kr(()=>{i.value=a(e.colors,e.color)}),{rgbaColors:i,handleSelect:function(t){e.color.fromString(e.colors[t])}}})(t),{rootKls:n,colorsKls:s,colorSelectorKls:o}=(e=>{const t=ib("color-predefine");return{rootKls:Lu(()=>[t.b(),t.is("disabled",e.disabled)]),colorsKls:Lu(()=>t.e("colors")),colorSelectorKls:function(e){return[t.e("color-selector"),t.is("alpha",e.get("alpha")<100),{selected:e.selected}]}}})(t),{t:r}=Qv();return(t,l)=>(zd(),qd("div",{class:se(xo(n))},[tu("div",{class:se(xo(s))},[(zd(!0),qd(Fd,null,sc(xo(i),(t,i)=>{return zd(),qd("button",{key:e.colors[i],type:"button",disabled:e.disabled,"aria-label":(n=t.value,r("el.colorpicker.predefineDescription",{value:n})),class:se(xo(o)(t)),onClick:e=>xo(a)(i)},[tu("div",{style:ee({backgroundColor:t.value})},null,4)],10,qI);var n}),128))],2)],2))}}),XI=KI;const ZI=W_({color:{type:Object,required:!0},disabled:Boolean}),QI=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var JI=sl({name:"ElSvPanel",__name:"sv-panel",props:ZI,setup(e,{expose:t}){const i=e,{cursorRef:a,cursorTop:n,cursorLeft:s,background:o,saturation:r,brightness:c,handleClick:d,handleDrag:u,handleKeydown:p}=(e=>{const t=_u(),i=mo(),a=mo(0),n=mo(0),s=mo("hsl(0, 100%, 50%)"),o=Lu(()=>e.color.get("saturation")),r=Lu(()=>e.color.get("value")),c=Lu(()=>e.color.get("hue"));function d(i){if(e.disabled)return;const s=t.vnode.el.getBoundingClientRect(),{clientX:o,clientY:r}=LI(i);let l=o-s.left,c=r-s.top;l=Math.max(0,l),l=Math.min(l,s.width),c=Math.max(0,c),c=Math.min(c,s.height),n.value=l,a.value=c,e.color.set({saturation:l/s.width*100,value:100-c/s.height*100})}function u(t){let i=o.value+t;i=i<0?0:i>100?100:i,e.color.set("saturation",i)}function p(t){let i=r.value+t;i=i<0?0:i>100?100:i,e.color.set("value",i)}return{cursorRef:i,cursorTop:a,cursorLeft:n,background:s,saturation:o,brightness:r,hue:c,handleClick:function(t){var a;e.disabled||(t.target!==i.value&&d(t),null==(a=i.value)||a.focus({preventScroll:!0}))},handleDrag:d,handleKeydown:function(t){if(e.disabled)return;const{shiftKey:i}=t,a=i?10:1;let n=!0;switch(db(t)){case l.left:u(-a);break;case l.right:u(a);break;case l.up:p(a);break;case l.down:p(-a);break;default:n=!1}n&&t.preventDefault()}}})(i),{rootKls:h,cursorKls:f,rootStyle:g,cursorStyle:m,update:_}=((e,{cursorTop:t,cursorLeft:i,background:a,handleDrag:n})=>{const s=_u(),o=ib("color-svpanel");function r(){const n=e.color.get("saturation"),o=e.color.get("value"),{clientWidth:r,clientHeight:l}=s.vnode.el;i.value=n*r/100,t.value=(100-o)*l/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return zl(()=>{FI(s.vnode.el,{drag:e=>{n(e)},end:e=>{n(e)}}),r()}),Rr([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>r()),{rootKls:Lu(()=>o.b()),cursorKls:Lu(()=>o.e("cursor")),rootStyle:Lu(()=>({backgroundColor:a.value})),cursorStyle:Lu(()=>({top:Wv(t.value),left:Wv(i.value)})),update:r}})(i,{cursorTop:n,cursorLeft:s,background:o,handleDrag:u}),{t:v}=Qv(),b=Lu(()=>v("el.colorpicker.svLabel")),y=Lu(()=>v("el.colorpicker.svDescription",{saturation:r.value,brightness:c.value,color:i.color.value}));return t({update:_}),(t,i)=>(zd(),qd("div",{class:se(xo(h)),style:ee(xo(g)),onClick:i[1]||(i[1]=(...e)=>xo(d)&&xo(d)(...e))},[tu("div",{ref_key:"cursorRef",ref:a,class:se(xo(f)),style:ee(xo(m)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${xo(r)},${xo(c)}`,"aria-valuetext":y.value,onKeydown:i[0]||(i[0]=(...e)=>xo(p)&&xo(p)(...e))},null,46,QI)],6))}}),eD=JI;const tD=(e,t)=>{const i=to(new jI({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return Rr(()=>[e.colorFormat,e.showAlpha],()=>{i.enableAlpha=e.showAlpha,i.format=e.colorFormat||i.format,i.doOnChange(),t(c,i.value)}),{color:i}};const iD=px(sl({name:"ElColorPickerPanel",__name:"color-picker-panel",props:RI,emits:II,setup(e,{expose:t,emit:i}){const a=e,n=i,s=ib("color-picker-panel"),{formItem:o}=vw(),r=_w(),l=mo(),d=mo(),u=mo(),p=mo(),h=mo(""),{color:f}=Sr(DI,()=>tD(a,n),!0);function g(){f.fromString(h.value),f.value!==h.value&&(h.value=f.value)}function _(){var e;a.validateEvent&&(null==(e=null==o?void 0:o.validate)||e.call(o,"blur").catch(m))}function v(){var e,t,i;null==(e=l.value)||e.update(),null==(t=d.value)||t.update(),null==(i=u.value)||i.update()}return zl(()=>{a.modelValue&&(h.value=f.value),ir(v)}),Rr(()=>a.modelValue,e=>{e!==f.value&&(e?f.fromString(e):f.clear())}),Rr(()=>f.value,e=>{n(c,e),h.value=e,a.validateEvent&&(null==o||o.validate("change").catch(m))}),xr(OI,{currentColor:Lu(()=>f.value)}),t({color:f,inputRef:p,update:v}),(t,i)=>(zd(),qd("div",{class:se([xo(s).b(),xo(s).is("disabled",xo(r)),xo(s).is("border",e.border)]),onFocusout:_},[tu("div",{class:se(xo(s).e("wrapper"))},[iu(GI,{ref_key:"hueRef",ref:l,color:xo(f),vertical:"",disabled:xo(r),class:se(["hue-slider",e.hueSliderClass]),style:ee(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),iu(eD,{ref_key:"svRef",ref:d,color:xo(f),disabled:xo(r)},null,8,["color","disabled"])],2),e.showAlpha?(zd(),Kd(HI,{key:0,ref_key:"alphaRef",ref:u,color:xo(f),disabled:xo(r)},null,8,["color","disabled"])):ru("v-if",!0),e.predefine?(zd(),Kd(XI,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:xo(f),colors:e.predefine,disabled:xo(r)},null,8,["enable-alpha","color","colors","disabled"])):ru("v-if",!0),tu("div",{class:se(xo(s).e("footer"))},[iu(xo(cE),{ref_key:"inputRef",ref:p,modelValue:h.value,"onUpdate:modelValue":i[0]||(i[0]=e=>h.value=e),"validate-event":!1,size:"small",disabled:xo(r),onChange:g},null,8,["modelValue","disabled"]),rc(t.$slots,"footer")],2)],34))}})),aD=W_({persistent:{type:Boolean,default:!0},modelValue:{type:String,default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:String},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:ex,popperClass:PC.popperClass,popperStyle:PC.popperStyle,tabindex:{type:[String,Number],default:0},teleported:PC.teleported,appendTo:PC.appendTo,predefine:{type:Array},validateEvent:{type:Boolean,default:!0},...rx,...dx(["ariaLabel"])}),nD=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var sD=sl({name:"ElColorPicker",__name:"color-picker",props:aD,emits:{[c]:e=>R(e)||vn(e),[d]:e=>R(e)||vn(e),activeChange:e=>R(e)||vn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},setup(e,{expose:t,emit:i}){const a=e,n=i,{t:s}=Qv(),o=ib("color"),{formItem:r}=vw(),u=mw(),p=_w(),{valueOnClear:h,isEmptyValue:f}=lx(a,null),g=tD(a,n),{inputId:_,isLabeledByFormItem:v}=bw(a,{formItemContext:r}),b=mo(),y=mo(),x=mo(),S=mo(!1),w=mo(!1);let C=!0;const{isFocused:E,handleFocus:k,handleBlur:T}=ax(y,{disabled:p,beforeBlur(e){var t;return null==(t=b.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){var e;L(!1),$(),a.validateEvent&&(null==(e=null==r?void 0:r.validate)||e.call(r,"blur").catch(m))}}),A=uv(()=>{var e;return(null==(e=x.value)?void 0:e.color)??g.color}),R=Lu(()=>Rn(a,Object.keys(RI))),I=Lu(()=>a.modelValue||w.value?function(e,t){const{r:i,g:a,b:n,a:s}=e.toRgb();return t?`rgba(${i}, ${a}, ${n}, ${s})`:`rgb(${i}, ${a}, ${n})`}(A,a.showAlpha):"transparent"),D=Lu(()=>a.modelValue||w.value?A.value:""),O=Lu(()=>v.value?void 0:a.ariaLabel||s("el.colorpicker.defaultLabel")),M=Lu(()=>v.value?null==r?void 0:r.labelId:void 0),N=Lu(()=>[o.b("picker"),o.is("disabled",p.value),o.bm("picker",u.value),o.is("focused",E.value)]);function L(e){S.value=e}const P=rn(L,100,{leading:!0});function F(){p.value||L(!0)}function B(){P(!1),$()}function $(){ir(()=>{a.modelValue?A.fromString(a.modelValue):(A.value="",ir(()=>{w.value=!1}))})}function V(){p.value||(S.value&&$(),P(!S.value))}function U(){const e=f(A.value)?h.value:A.value;n(c,e),n(d,e),a.validateEvent&&(null==r||r.validate("change").catch(m)),P(!1),ir(()=>{const e=new jI({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});A.compare(e)||$()})}function H(){P(!1),n(c,h.value),n(d,h.value),a.modelValue!==h.value&&a.validateEvent&&(null==r||r.validate("change").catch(m)),$(),n("clear")}function z(){var e,t;null==(t=null==(e=null==x?void 0:x.value)?void 0:e.inputRef)||t.focus()}function Y(){S.value&&(B(),E.value&&j())}function G(e){e.preventDefault(),e.stopPropagation(),L(!1),$()}function W(e){switch(db(e)){case l.enter:case l.numpadEnter:case l.space:e.preventDefault(),e.stopPropagation(),F();break;case l.esc:G(e)}}function j(){y.value.focus()}return Rr(()=>D.value,e=>{C&&n("activeChange",e),C=!0}),Rr(()=>A.value,()=>{a.modelValue||w.value||(w.value=!0)}),Rr(()=>a.modelValue,e=>{e?e&&e!==A.value&&(C=!1,A.fromString(e)):w.value=!1}),Rr(()=>S.value,()=>{x.value&&ir(x.value.update)}),xr(DI,g),t({color:A,show:F,hide:B,focus:j,blur:function(){y.value.blur()}}),(t,i)=>(zd(),Kd(xo(ZC),{ref_key:"popper",ref:b,visible:S.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[xo(o).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${xo(o).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:z,onHide:i[2]||(i[2]=e=>L(!1))},{content:vr(()=>[br((zd(),Kd(xo(iD),uu({ref_key:"pickerPanelRef",ref:x},R.value,{border:!1,"validate-event":!1,onKeydown:Ih(G,["esc"])}),{footer:vr(()=>[tu("div",null,[e.clearable?(zd(),Kd(xo(Sk),{key:0,class:se(xo(o).be("footer","link-btn")),text:"",size:"small",onClick:H},{default:vr(()=>[su(me(xo(s)("el.colorpicker.clear")),1)]),_:1},8,["class"])):ru("v-if",!0),iu(xo(Sk),{plain:"",size:"small",class:se(xo(o).be("footer","btn")),onClick:U},{default:vr(()=>[su(me(xo(s)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[xo(sT),Y,y.value]])]),default:vr(()=>[tu("div",uu({id:xo(_),ref_key:"triggerRef",ref:y},t.$attrs,{class:N.value,role:"button","aria-label":O.value,"aria-labelledby":M.value,"aria-description":xo(s)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":xo(p),tabindex:xo(p)?void 0:e.tabindex,onKeydown:W,onFocus:i[0]||(i[0]=(...e)=>xo(k)&&xo(k)(...e)),onBlur:i[1]||(i[1]=(...e)=>xo(T)&&xo(T)(...e))}),[tu("div",{class:se(xo(o).be("picker","trigger")),onClick:V},[tu("span",{class:se([xo(o).be("picker","color"),xo(o).is("alpha",e.showAlpha)])},[tu("span",{class:se(xo(o).be("picker","color-inner")),style:ee({backgroundColor:I.value})},[br(iu(xo(KS),{class:se([xo(o).be("picker","icon"),xo(o).is("icon-arrow-down")])},{default:vr(()=>[iu(xo(_x))]),_:1},8,["class"]),[[yp,e.modelValue||w.value]]),br(iu(xo(KS),{class:se([xo(o).be("picker","empty"),xo(o).is("icon-close")])},{default:vr(()=>[iu(xo(Lx))]),_:1},8,["class"]),[[yp,!e.modelValue&&!w.value]])],6)],2)],2)],16,nD)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});const oD=px(sD),rD=W_({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:[Date,Array,String,Number],default:""},defaultValue:{type:[Date,Array]},defaultTime:{type:[Date,Array]},isRange:Boolean,...jk,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:String,default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),lD=Symbol("rootPickerContextKey"),cD="ElIsDefaultFormat",dD=["date","dates","year","years","month","months","week","range"],uD=W_({cellClassName:{type:Function},disabledDate:{type:Function},date:{type:Object,required:!0},minDate:{type:Object},maxDate:{type:Object},parsedValue:{type:[Object,Array]},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),pD=W_({type:{type:String,required:!0,values:["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"]},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),hD=W_({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:Array},singlePanel:Boolean}),fD=e=>({type:String,values:dD,default:e}),gD=W_({...pD,parsedValue:{type:[Object,Array]},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),mD=e=>{if(!C(e))return!1;const[t,i]=e;return Pk.isDayjs(t)&&Pk.isDayjs(i)&&Pk(t).isValid()&&Pk(i).isValid()&&t.isSameOrBefore(i)},_D=(e,{lang:t,step:i=1,unit:a,unlinkPanels:n})=>{let s;if(C(e)){let[s,o]=e.map(e=>Pk(e).locale(t));return n||(o=s.add(i,a)),[s,o]}return s=e?Pk(e):Pk(),s=s.locale(t),[s,s.add(i,a)]},vD=(e,t,i,a)=>{const n=Pk().locale(a).startOf("month").month(i).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return Bk(n.daysInMonth()).map(e=>n.add(e,"day").toDate())},bD=(e,t,i,a,n)=>{const s=Pk().year(t).month(i).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),o=vD(e,t,i,a).find(e=>!(null==n?void 0:n(e)));return o?Pk(o).locale(a):s.locale(a)},yD=(e,t,i)=>{const a=e.year();if(!(null==i?void 0:i(e.toDate())))return e.locale(t);const n=e.month();if(!vD(e,a,n,t).every(i))return bD(e,a,n,t,i);for(let s=0;s<12;s++)if(!vD(e,a,s,t).every(i))return bD(e,a,s,t,i);return e},xD=(e,t,i,a)=>{if(C(e))return e.map(e=>xD(e,t,i,a));if(R(e)){const i=(null==a?void 0:a.value)?Pk(e):Pk(e,t);if(!i.isValid())return i}return Pk(e,t).locale(i)},SD=W_({...uD,showWeekNumber:Boolean,selectionMode:fD("date")}),wD=(e="")=>["normal","today"].includes(e),CD=(e,t)=>{const{lang:i}=Qv(),a=mo(),n=mo(),s=mo(),o=mo(),r=mo([[],[],[],[],[],[]]);let l=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(e=>e.toLowerCase()),u=Lu(()=>c>3?7-c:-c),p=Lu(()=>{const t=e.date.startOf("month");return t.subtract(t.day()||7,"day")}),h=Lu(()=>d.concat(d).slice(c,c+7)),f=Lu(()=>Ri(xo(b)).some(e=>e.isCurrent)),g=Lu(()=>{const t=e.date.startOf("month");return{startOfMonthDay:t.day()||7,dateCountOfMonth:t.daysInMonth(),dateCountOfLastMonth:t.subtract(1,"month").daysInMonth()}}),m=Lu(()=>"dates"===e.selectionMode?ww(e.parsedValue):[]),_=(t,{columnIndex:i,rowIndex:a},n)=>{const{disabledDate:s,cellClassName:o}=e,r=xo(m),l=((e,{count:t,rowIndex:i,columnIndex:a})=>{const{startOfMonthDay:n,dateCountOfMonth:s,dateCountOfLastMonth:o}=xo(g),r=xo(u);if(!(i>=0&&i<=1))return t<=s?e.text=t:(e.text=t-s,e.type="next-month"),!0;{const s=n+r<0?7+n+r:n+r;if(a+7*i>=s)return e.text=t,!0;e.text=o-(s-a%7)+1+7*i,e.type="prev-month"}return!1})(t,{count:n,rowIndex:a,columnIndex:i}),c=t.dayjs.toDate();return t.selected=r.find(e=>e.isSame(t.dayjs,"day")),t.isSelected=!!t.selected,t.isCurrent=x(t),t.disabled=null==s?void 0:s(c),t.customClass=null==o?void 0:o(c),l},v=t=>{if("week"===e.selectionMode){const[i,a]=e.showWeekNumber?[1,7]:[0,6],n=k(t[i+1]);t[i].inRange=n,t[i].start=n,t[a].inRange=n,t[a].end=n}},b=Lu(()=>{const{minDate:t,maxDate:a,rangeState:n,showWeekNumber:s}=e,o=xo(u),l=xo(r),c="day";let d=1;if(((e,t,{columnIndexOffset:i,startDate:a,nextEndDate:n,now:s,unit:o,relativeDateGetter:r,setCellMetadata:l,setRowMetadata:c})=>{for(let d=0;d<e.row;d++){const u=t[d];for(let t=0;t<e.column;t++){let c=u[t+i];c||(c={row:d,column:t,type:"normal",inRange:!1,start:!1,end:!1});const p=r(d*e.column+t);c.dayjs=p,c.date=p.toDate(),c.timestamp=p.valueOf(),c.type="normal",c.inRange=!!(a&&p.isSameOrAfter(a,o)&&n&&p.isSameOrBefore(n,o))||!!(a&&p.isSameOrBefore(a,o)&&n&&p.isSameOrAfter(n,o)),(null==a?void 0:a.isSameOrAfter(n))?(c.start=!!n&&p.isSame(n,o),c.end=a&&p.isSame(a,o)):(c.start=!!a&&p.isSame(a,o),c.end=!!n&&p.isSame(n,o)),p.isSame(s,o)&&(c.type="today"),null==l||l(c,{rowIndex:d,columnIndex:t}),u[t+i]=c}null==c||c(u)}})({row:6,column:7},l,{startDate:t,columnIndexOffset:s?1:0,nextEndDate:n.endDate||a||n.selecting&&t||null,now:Pk().locale(xo(i)).startOf(c),unit:c,relativeDateGetter:e=>xo(p).add(e-o,c),setCellMetadata:(...e)=>{_(...e,d)&&(d+=1)},setRowMetadata:v}),s)for(let e=0;e<6;e++)l[e][1].dayjs&&(l[e][0]={type:"week",text:l[e][1].dayjs.week()});return l});Rr(()=>e.date,async()=>{var e;(null==(e=xo(a))?void 0:e.contains(document.activeElement))&&(await ir(),await y())});const y=async()=>{var e;return null==(e=xo(n))?void 0:e.focus()},x=t=>"date"===e.selectionMode&&wD(t.type)&&S(t,e.parsedValue),S=(t,a)=>!!a&&Pk(a).locale(xo(i)).isSame(e.date.date(Number(t.text)),"day"),w=(t,i)=>{const a=xo(g).startOfMonthDay,n=xo(u),s=a+n<0?7+a+n:a+n,o=7*t+(i-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(s,"day").add(o,"day")},E=(i,a=!1)=>{if(e.disabled)return;const n=i.target.closest("td");if(!n)return;const s=n.parentNode.rowIndex-1,o=n.cellIndex,r=xo(b)[s][o];if(r.disabled||"week"===r.type)return;const l=w(s,o);switch(e.selectionMode){case"range":(i=>{e.rangeState.selecting&&e.minDate?(i>=e.minDate?t("pick",{minDate:e.minDate,maxDate:i}):t("pick",{minDate:i,maxDate:e.minDate}),t("select",!1)):(t("pick",{minDate:i,maxDate:null}),t("select",!0))})(l);break;case"date":t("pick",l,a);break;case"week":(e=>{const i=e.week(),a=`${e.year()}w${i}`;t("pick",{year:e.year(),week:i,value:a,date:e.startOf("week")})})(l);break;case"dates":((i,a)=>{t("pick",a?ww(e.parsedValue).filter(e=>(null==e?void 0:e.valueOf())!==i.valueOf()):ww(e.parsedValue).concat([i]))})(l,!!r.selected)}},k=t=>{if("week"!==e.selectionMode)return!1;let i=e.date.startOf("day");if("prev-month"===t.type&&(i=i.subtract(1,"month")),"next-month"===t.type&&(i=i.add(1,"month")),i=i.date(Number.parseInt(t.text,10)),e.parsedValue&&!C(e.parsedValue)){const t=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(t,"day").isSame(i,"day")}return!1};return{WEEKS:h,rows:b,tbodyRef:a,currentCellRef:n,focus:y,isCurrent:x,isWeekActive:k,isSelectedCell:e=>!xo(f)&&1===(null==e?void 0:e.text)&&wD(e.type)||e.isCurrent,handlePickDate:E,handleMouseUp:e=>{e.target.closest("td")&&(l=!1)},handleMouseDown:e=>{e.target.closest("td")&&(l=!0)},handleMouseMove:i=>{var a;if(!e.rangeState.selecting)return;let n=i.target;if("SPAN"===n.tagName&&(n=null==(a=n.parentNode)?void 0:a.parentNode),"DIV"===n.tagName&&(n=n.parentNode),"TD"!==n.tagName)return;const r=n.parentNode.rowIndex-1,l=n.cellIndex;xo(b)[r][l].disabled||r===xo(s)&&l===xo(o)||(s.value=r,o.value=l,t("changerange",{selecting:!0,endDate:w(r,l)}))},handleFocus:t=>{l||xo(f)||"date"!==e.selectionMode||E(t,!0)}}};var ED=sl({name:"ElDatePickerCell",props:W_({cell:{type:Object}}),setup(e){const t=ib("date-table-cell"),{slots:i}=Sr(lD);return()=>{const{cell:a}=e;return rc(i,"default",{...a},()=>[iu("div",{class:t.b()},[iu("span",{class:t.e("text")},[(null==a?void 0:a.renderText)??(null==a?void 0:a.text)])])])}}});const kD=["aria-label"],TD=["aria-label"],AD=["aria-current","aria-selected","tabindex","aria-disabled"];var RD=sl({__name:"basic-date-table",props:SD,emits:["changerange","pick","select"],setup(e,{expose:t,emit:i}){const a=e,{WEEKS:n,rows:s,tbodyRef:o,currentCellRef:r,focus:l,isCurrent:c,isWeekActive:d,isSelectedCell:u,handlePickDate:p,handleMouseUp:h,handleMouseDown:f,handleMouseMove:g,handleFocus:m}=CD(a,i),{tableLabel:_,tableKls:v,getCellClasses:b,getRowKls:y,weekHeaderClass:x,t:S}=((e,{isCurrent:t,isWeekActive:i})=>{const a=ib("date-table"),{t:n}=Qv();return{tableKls:Lu(()=>[a.b(),a.is("week-mode","week"===e.selectionMode&&!e.disabled)]),tableLabel:Lu(()=>n("el.datepicker.dateTablePrompt")),weekHeaderClass:a.e("week-header"),getCellClasses:i=>{const a=[];return wD(i.type)&&!i.disabled?(a.push("available"),"today"===i.type&&a.push("today")):a.push(i.type),t(i)&&a.push("current"),i.inRange&&(wD(i.type)||"week"===e.selectionMode)&&(a.push("in-range"),i.start&&a.push("start-date"),i.end&&a.push("end-date")),(i.disabled||e.disabled)&&a.push("disabled"),i.selected&&a.push("selected"),i.customClass&&a.push(i.customClass),a.join(" ")},getRowKls:e=>[a.e("row"),{current:i(e)}],t:n}})(a,{isCurrent:c,isWeekActive:d});let w=!1;return Wl(()=>{w=!0}),t({focus:l}),(e,t)=>(zd(),qd("table",{"aria-label":xo(_),class:se(xo(v)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:t[1]||(t[1]=(...e)=>xo(p)&&xo(p)(...e)),onMousemove:t[2]||(t[2]=(...e)=>xo(g)&&xo(g)(...e)),onMousedown:t[3]||(t[3]=(...e)=>xo(f)&&xo(f)(...e)),onMouseup:t[4]||(t[4]=(...e)=>xo(h)&&xo(h)(...e))},[tu("tbody",{ref_key:"tbodyRef",ref:o},[tu("tr",null,[e.showWeekNumber?(zd(),qd("th",{key:0,scope:"col",class:se(xo(x))},null,2)):ru("v-if",!0),(zd(!0),qd(Fd,null,sc(xo(n),(e,t)=>(zd(),qd("th",{key:t,"aria-label":xo(S)("el.datepicker.weeksFull."+e),scope:"col"},me(xo(S)("el.datepicker.weeks."+e)),9,TD))),128))]),(zd(!0),qd(Fd,null,sc(xo(s),(i,a)=>(zd(),qd("tr",{key:a,class:se(xo(y)(e.showWeekNumber?i[2]:i[1]))},[(zd(!0),qd(Fd,null,sc(i,(i,n)=>(zd(),qd("td",{key:`${a}.${n}`,ref_for:!0,ref:e=>!xo(w)&&xo(u)(i)&&(r.value=e),class:se(xo(b)(i)),"aria-current":i.isCurrent?"date":void 0,"aria-selected":i.isCurrent,tabindex:e.disabled?void 0:xo(u)(i)?0:-1,"aria-disabled":e.disabled,onFocus:t[0]||(t[0]=(...e)=>xo(m)&&xo(m)(...e))},[iu(xo(ED),{cell:i},null,8,["cell"])],42,AD))),128))],2))),128))],512)],42,kD))}}),ID=RD;const DD=W_({...uD,selectionMode:fD("month")}),OD=["aria-label"],MD=["aria-selected","aria-label","tabindex","onKeydown"];var ND=sl({__name:"basic-month-table",props:DD,emits:["changerange","pick","select"],setup(e,{expose:t,emit:i}){const a=e,n=i,s=ib("month-table"),{t:o,lang:r}=Qv(),l=mo(),c=mo(),d=mo(a.date.locale("en").localeData().monthsShort().map(e=>e.toLowerCase())),u=mo([[],[],[]]),p=mo(),h=mo(),f=Lu(()=>{var e,t,i;const n=u.value,s=Pk().locale(r.value).startOf("month");for(let o=0;o<3;o++){const r=n[o];for(let n=0;n<4;n++){const l=r[n]||(r[n]={row:o,column:n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});l.type="normal";const c=4*o+n,d=a.date.startOf("year").month(c),u=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;l.inRange=!!(a.minDate&&d.isSameOrAfter(a.minDate,"month")&&u&&d.isSameOrBefore(u,"month"))||!!(a.minDate&&d.isSameOrBefore(a.minDate,"month")&&u&&d.isSameOrAfter(u,"month")),(null==(e=a.minDate)?void 0:e.isSameOrAfter(u))?(l.start=!(!u||!d.isSame(u,"month")),l.end=a.minDate&&d.isSame(a.minDate,"month")):(l.start=!(!a.minDate||!d.isSame(a.minDate,"month")),l.end=!(!u||!d.isSame(u,"month"))),s.isSame(d)&&(l.type="today");const p=d.toDate();l.text=c,l.disabled=(null==(t=a.disabledDate)?void 0:t.call(a,p))||!1,l.date=p,l.customClass=null==(i=a.cellClassName)?void 0:i.call(a,p),l.dayjs=d,l.timestamp=d.valueOf(),l.isSelected=m(l)}}return n}),g=e=>{const t={},i=a.date.year(),n=new Date,s=e.text;return t.disabled=a.disabled||!!a.disabledDate&&vD(a.date,i,s,r.value).every(a.disabledDate),t.current=ww(a.parsedValue).some(e=>Pk.isDayjs(e)&&e.year()===i&&e.month()===s),t.today=n.getFullYear()===i&&n.getMonth()===s,e.customClass&&(t[e.customClass]=!0),e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},m=e=>{const t=a.date.year(),i=e.text;return ww(a.date).some(e=>e.year()===t&&e.month()===i)},_=e=>{var t;if(!a.rangeState.selecting)return;let i=e.target;if("SPAN"===i.tagName&&(i=null==(t=i.parentNode)?void 0:t.parentNode),"DIV"===i.tagName&&(i=i.parentNode),"TD"!==i.tagName)return;const s=i.parentNode.rowIndex,o=i.cellIndex;f.value[s][o].disabled||s===p.value&&o===h.value||(p.value=s,h.value=o,n("changerange",{selecting:!0,endDate:a.date.startOf("year").month(4*s+o)}))},v=e=>{var t;if(a.disabled)return;const i=null==(t=e.target)?void 0:t.closest("td");if("TD"!==(null==i?void 0:i.tagName))return;if(Hv(i,"disabled"))return;const s=i.cellIndex,o=4*i.parentNode.rowIndex+s,l=a.date.startOf("year").month(o);if("months"===a.selectionMode){if("keydown"===e.type)return void n("pick",ww(a.parsedValue),!1);const t=bD(a.date,a.date.year(),o,r.value,a.disabledDate);n("pick",Hv(i,"current")?ww(a.parsedValue).filter(e=>(null==e?void 0:e.year())!==t.year()||(null==e?void 0:e.month())!==t.month()):ww(a.parsedValue).concat([Pk(t)]))}else"range"===a.selectionMode?a.rangeState.selecting?(a.minDate&&l>=a.minDate?n("pick",{minDate:a.minDate,maxDate:l}):n("pick",{minDate:l,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:l,maxDate:null}),n("select",!0)):n("pick",o)};return Rr(()=>a.date,async()=>{var e,t;(null==(e=l.value)?void 0:e.contains(document.activeElement))&&(await ir(),null==(t=c.value)||t.focus())}),t({focus:()=>{var e;null==(e=c.value)||e.focus()}}),(e,t)=>(zd(),qd("table",{role:"grid","aria-label":xo(o)("el.datepicker.monthTablePrompt"),class:se(xo(s).b()),onClick:v,onMousemove:_},[tu("tbody",{ref_key:"tbodyRef",ref:l},[(zd(!0),qd(Fd,null,sc(f.value,(e,t)=>(zd(),qd("tr",{key:t},[(zd(!0),qd(Fd,null,sc(e,(e,t)=>(zd(),qd("td",{key:t,ref_for:!0,ref:t=>e.isSelected&&(c.value=t),class:se(g(e)),"aria-selected":!!e.isSelected,"aria-label":xo(o)("el.datepicker.month"+(+e.text+1)),tabindex:e.isSelected?0:-1,onKeydown:[Ih(Ah(v,["prevent","stop"]),["space"]),Ih(Ah(v,["prevent","stop"]),["enter"])]},[iu(xo(ED),{cell:{...e,renderText:xo(o)("el.datepicker.months."+d.value[e.text])}},null,8,["cell"])],42,MD))),128))]))),128))],512)],42,OD))}}),LD=ND;const PD=W_({...uD,selectionMode:fD("year")}),FD=["aria-label"],BD=["aria-selected","aria-label","tabindex","onKeydown"];var $D=sl({__name:"basic-year-table",props:PD,emits:["changerange","pick","select"],setup(e,{expose:t,emit:i}){const a=e,n=i,s=ib("year-table"),{t:o,lang:r}=Qv(),l=mo(),c=mo(),d=Lu(()=>10*Math.floor(a.date.year()/10)),u=mo([[],[],[]]),p=mo(),h=mo(),f=Lu(()=>{var e,t,i;const n=u.value,s=Pk().locale(r.value).startOf("year");for(let o=0;o<3;o++){const r=n[o];for(let n=0;n<4&&!(4*o+n>=10);n++){let l=r[n];l||(l={row:o,column:n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),l.type="normal";const c=4*o+n+d.value,u=Pk().year(c),p=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;l.inRange=!!(a.minDate&&u.isSameOrAfter(a.minDate,"year")&&p&&u.isSameOrBefore(p,"year"))||!!(a.minDate&&u.isSameOrBefore(a.minDate,"year")&&p&&u.isSameOrAfter(p,"year")),(null==(e=a.minDate)?void 0:e.isSameOrAfter(p))?(l.start=!(!p||!u.isSame(p,"year")),l.end=!(!a.minDate||!u.isSame(a.minDate,"year"))):(l.start=!(!a.minDate||!u.isSame(a.minDate,"year")),l.end=!(!p||!u.isSame(p,"year"))),s.isSame(u)&&(l.type="today"),l.text=c;const h=u.toDate();l.disabled=(null==(t=a.disabledDate)?void 0:t.call(a,h))||!1,l.date=h,l.customClass=null==(i=a.cellClassName)?void 0:i.call(a,h),l.dayjs=u,l.timestamp=u.valueOf(),l.isSelected=m(l),r[n]=l}}return n}),g=e=>{const t={},i=Pk().locale(r.value),n=e.text;return t.disabled=a.disabled||!!a.disabledDate&&((e,t)=>{const i=Pk(String(e)).locale(t).startOf("year");return Bk(i.endOf("year").dayOfYear()).map(e=>i.add(e,"day").toDate())})(n,r.value).every(a.disabledDate),t.today=i.year()===n,t.current=ww(a.parsedValue).some(e=>e.year()===n),e.customClass&&(t[e.customClass]=!0),e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},m=e=>{const t=e.text;return ww(a.date).some(e=>e.year()===t)},_=e=>{var t;if(a.disabled)return;const i=null==(t=e.target)?void 0:t.closest("td");if(!i||!i.textContent||Hv(i,"disabled"))return;const s=i.cellIndex,o=4*i.parentNode.rowIndex+s+d.value,l=Pk().year(o);if("range"===a.selectionMode)a.rangeState.selecting?(a.minDate&&l>=a.minDate?n("pick",{minDate:a.minDate,maxDate:l}):n("pick",{minDate:l,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:l,maxDate:null}),n("select",!0));else if("years"===a.selectionMode){if("keydown"===e.type)return void n("pick",ww(a.parsedValue),!1);const t=yD(l.startOf("year"),r.value,a.disabledDate);n("pick",Hv(i,"current")?ww(a.parsedValue).filter(e=>(null==e?void 0:e.year())!==o):ww(a.parsedValue).concat([t]))}else n("pick",o)},v=e=>{var t;if(!a.rangeState.selecting)return;const i=null==(t=e.target)?void 0:t.closest("td");if(!i)return;const s=i.parentNode.rowIndex,o=i.cellIndex;f.value[s][o].disabled||s===p.value&&o===h.value||(p.value=s,h.value=o,n("changerange",{selecting:!0,endDate:Pk().year(d.value).add(4*s+o,"year")}))};return Rr(()=>a.date,async()=>{var e,t;(null==(e=l.value)?void 0:e.contains(document.activeElement))&&(await ir(),null==(t=c.value)||t.focus())}),t({focus:()=>{var e;null==(e=c.value)||e.focus()}}),(e,t)=>(zd(),qd("table",{role:"grid","aria-label":xo(o)("el.datepicker.yearTablePrompt"),class:se(xo(s).b()),onClick:_,onMousemove:v},[tu("tbody",{ref_key:"tbodyRef",ref:l},[(zd(!0),qd(Fd,null,sc(f.value,(e,t)=>(zd(),qd("tr",{key:t},[(zd(!0),qd(Fd,null,sc(e,(e,i)=>(zd(),qd("td",{key:`${t}_${i}`,ref_for:!0,ref:t=>e.isSelected&&(c.value=t),class:se(["available",g(e)]),"aria-selected":e.isSelected,"aria-label":String(e.text),tabindex:e.isSelected?0:-1,onKeydown:[Ih(Ah(_,["prevent","stop"]),["space"]),Ih(Ah(_,["prevent","stop"]),["enter"])]},[iu(xo(ED),{cell:e},null,8,["cell"])],42,BD))),128))]))),128))],512)],42,FD))}}),VD=$D;const UD=["disabled","onClick"],HD=["aria-label","disabled"],zD=["aria-label","disabled"],YD=["tabindex","aria-disabled"],GD=["tabindex","aria-disabled"],WD=["aria-label","disabled"],jD=["aria-label","disabled"];var qD=sl({__name:"panel-date-pick",props:gD,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const i=e,a=t,n=ib("picker-panel"),s=ib("date-picker"),o=wc(),r=Sc(),{t:c,lang:d}=Qv(),u=Sr(Ck),p=Sr(cD,void 0),{shortcuts:h,disabledDate:f,cellClassName:g,defaultTime:m}=u.props,_=Io(u.props,"defaultValue"),v=mo(),b=mo(Pk().locale(d.value)),y=mo(!1);let x=!1;const S=Lu(()=>Pk(m).locale(d.value)),w=Lu(()=>b.value.month()),E=Lu(()=>b.value.year()),k=mo([]),T=mo(null),R=mo(null),I=e=>!(k.value.length>0)||(k.value,i.format,!0),D=e=>!m||te.value||y.value||x?W.value?e.millisecond(0):e.startOf("day"):S.value.year(e.year()).month(e.month()).date(e.date()),O=(e,...t)=>{e?C(e)?a("pick",e.map(D),...t):a("pick",D(e),...t):a("pick",e,...t),T.value=null,R.value=null,y.value=!1,x=!1},M=async(e,t)=>{if("date"===B.value&&Pk.isDayjs(e)){const a=Sw(i.parsedValue);let n=a?a.year(e.year()).month(e.month()).date(e.date()):e;I(),b.value=n,O(n,W.value||t)}else"week"===B.value?O(e.date):"dates"===B.value&&O(e,!0)},N=e=>{const t=e?"add":"subtract";b.value=b.value[t](1,"month"),ge("month")},L=e=>{const t=b.value,i=e?"add":"subtract";b.value="year"===P.value?t[i](10,"year"):t[i](1,"year"),ge("year")},P=mo("date"),F=Lu(()=>{const e=c("el.datepicker.year");if("year"===P.value){const t=10*Math.floor(E.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${E.value} ${e}`}),B=Lu(()=>{const{type:e}=i;return["week","month","months","year","years","dates"].includes(e)?e:"date"}),$=Lu(()=>"dates"===B.value||"months"===B.value||"years"===B.value),V=Lu(()=>"date"===B.value?P.value:B.value),U=Lu(()=>!!h.length),H=async(e,t)=>{"month"===B.value?(b.value=bD(b.value,b.value.year(),e,d.value,f),O(b.value,!1)):"months"===B.value?O(e,t??!0):(b.value=bD(b.value,b.value.year(),e,d.value,f),P.value="date",["month","year","date","week"].includes(B.value)&&(O(b.value,!0),await ir(),pe())),ge("month")},z=async(e,t)=>{"year"===B.value?(b.value=yD(b.value.startOf("year").year(e),d.value,f),O(b.value,!1)):"years"===B.value?O(e,t??!0):(b.value=yD(b.value.year(e),d.value,f),P.value="month",["month","year","date","week"].includes(B.value)&&(O(b.value,!0),await ir(),pe())),ge("year")},Y=_w(),G=async e=>{Y.value||(P.value=e,await ir(),pe())},W=Lu(()=>"datetime"===i.type||"datetimerange"===i.type),j=Lu(()=>{const e=W.value||"dates"===B.value,t="years"===B.value,i="months"===B.value,a="date"===P.value,n="year"===P.value,s="month"===P.value;return e&&a||t&&n||i&&s}),q=Lu(()=>!$.value&&i.showNow||i.showConfirm),K=Lu(()=>!!f&&(!i.parsedValue||(C(i.parsedValue)?f(i.parsedValue[0].toDate()):f(i.parsedValue.toDate())))),X=()=>{if($.value)O(i.parsedValue);else{let e=Sw(i.parsedValue);if(!e){const t=Pk(m).locale(d.value),i=ue();e=t.year(i.year()).month(i.month()).date(i.date())}b.value=e,O(e)}},Z=Lu(()=>!!f&&f(Pk().locale(d.value).toDate())),Q=()=>{const e=Pk().locale(d.value).toDate();y.value=!0,f&&f(e)||!I()||(b.value=Pk().locale(d.value),O(b.value))},J=Lu(()=>i.timeFormat||Vk(i.format)||"HH:mm:ss"),ee=Lu(()=>i.dateFormat||$k(i.format)||"YYYY-MM-DD"),te=Lu(()=>R.value?R.value:i.parsedValue||_.value?(Sw(i.parsedValue)||b.value).format(J.value):void 0),ie=Lu(()=>T.value?T.value:i.parsedValue||_.value?(Sw(i.parsedValue)||b.value).format(ee.value):void 0),ae=mo(!1),ne=()=>{ae.value=!0},oe=()=>{ae.value=!1},re=e=>({hour:e.hour(),minute:e.minute(),second:e.second(),year:e.year(),month:e.month(),date:e.date()}),le=(e,t,a)=>{const{hour:n,minute:s,second:o}=re(e),r=Sw(i.parsedValue);b.value=r?r.hour(n).minute(s).second(o):e,O(b.value,!0),a||(ae.value=t)},ce=e=>{const t=Pk(e,J.value).locale(d.value);if(t.isValid()&&I()){const{year:e,month:i,date:a}=re(b.value);b.value=t.year(e).month(i).date(a),R.value=null,ae.value=!1,O(b.value,!0)}},de=e=>{const t=xD(e,ee.value,d.value,p);if(t.isValid()){if(f&&f(t.toDate()))return;const{hour:e,minute:i,second:a}=re(b.value);b.value=t.hour(e).minute(i).second(a),T.value=null,O(b.value,!0)}},ue=()=>{const e=Pk(_.value).locale(d.value);if(!_.value){const e=S.value;return Pk().hour(e.hour()).minute(e.minute()).second(e.second()).locale(d.value)}return e},pe=()=>{var e;["week","month","year","date"].includes(B.value)&&(null==(e=v.value)||e.focus())},he=e=>{const t=db(e);[l.up,l.down,l.left,l.right,l.home,l.end,l.pageUp,l.pageDown].includes(t)&&(fe(t),e.stopPropagation(),e.preventDefault()),[l.enter,l.space,l.numpadEnter].includes(t)&&null===T.value&&null===R.value&&(e.preventDefault(),O(b.value,!1))},fe=e=>{const{up:t,down:i,left:n,right:s,home:o,end:r,pageUp:c,pageDown:u}=l,p={year:{[t]:-4,[i]:4,[n]:-1,[s]:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{[t]:-4,[i]:4,[n]:-1,[s]:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{[t]:-1,[i]:1,[n]:-1,[s]:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},date:{[t]:-7,[i]:7,[n]:-1,[s]:1,[o]:e=>-e.getDay(),[r]:e=>6-e.getDay(),[c]:e=>-new Date(e.getFullYear(),e.getMonth(),0).getDate(),[u]:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),offset:(e,t)=>e.setDate(e.getDate()+t)}},h=b.value.toDate();for(;Math.abs(b.value.diff(h,"year",!0))<1;){const t=p[V.value];if(!t)return;if(t.offset(h,A(t[e])?t[e](h):t[e]??0),f&&f(h))break;const i=Pk(h).locale(d.value);b.value=i,a("pick",i,!0);break}},ge=e=>{a("panel-change",b.value.toDate(),e,P.value)};return Rr(()=>B.value,e=>{["month","year"].includes(e)?P.value=e:P.value="years"!==e?"months"!==e?"date":"month":"year"},{immediate:!0}),Rr(()=>_.value,e=>{e&&(b.value=ue())},{immediate:!0}),Rr(()=>i.parsedValue,e=>{if(e){if($.value)return;if(C(e))return;b.value=e}else b.value=ue()},{immediate:!0}),a("set-picker-option",["isValidValue",e=>Pk.isDayjs(e)&&e.isValid()&&(!f||!f(e.toDate()))]),a("set-picker-option",["parseUserInput",e=>xD(e,i.format,d.value,p)]),a("set-picker-option",["handleFocusPicker",()=>{pe(),"week"===B.value&&fe(l.down)}]),(e,t)=>(zd(),qd("div",{class:se([xo(n).b(),xo(s).b(),xo(n).is("border",e.border),xo(n).is("disabled",xo(Y)),{"has-sidebar":e.$slots.sidebar||U.value,"has-time":W.value}])},[tu("div",{class:se(xo(n).e("body-wrapper"))},[rc(e.$slots,"sidebar",{class:se(xo(n).e("sidebar"))}),U.value?(zd(),qd("div",{key:0,class:se(xo(n).e("sidebar"))},[(zd(!0),qd(Fd,null,sc(xo(h),(e,t)=>(zd(),qd("button",{key:t,type:"button",disabled:xo(Y),class:se(xo(n).e("shortcut")),onClick:t=>(e=>{const t=A(e.value)?e.value():e.value;if(t)return x=!0,void O(Pk(t).locale(d.value));e.onClick&&e.onClick({attrs:o,slots:r,emit:a})})(e)},me(e.text),11,UD))),128))],2)):ru("v-if",!0),tu("div",{class:se(xo(n).e("body"))},[W.value?(zd(),qd("div",{key:0,class:se(xo(s).e("time-header"))},[tu("span",{class:se(xo(s).e("editor-wrap"))},[iu(xo(cE),{placeholder:xo(c)("el.datepicker.selectDate"),"model-value":ie.value,size:"small","validate-event":!1,disabled:xo(Y),readonly:!e.editable,onInput:t[0]||(t[0]=e=>T.value=e),onChange:de},null,8,["placeholder","model-value","disabled","readonly"])],2),br((zd(),qd("span",{class:se(xo(s).e("editor-wrap"))},[iu(xo(cE),{placeholder:xo(c)("el.datepicker.selectTime"),"model-value":te.value,size:"small","validate-event":!1,disabled:xo(Y),readonly:!e.editable,onFocus:ne,onInput:t[1]||(t[1]=e=>R.value=e),onChange:ce},null,8,["placeholder","model-value","disabled","readonly"]),iu(xo(qT),{visible:ae.value,format:J.value,"parsed-value":b.value,onPick:le},null,8,["visible","format","parsed-value"])],2)),[[xo(sT),oe]])],2)):ru("v-if",!0),br(tu("div",{class:se([xo(s).e("header"),("year"===P.value||"month"===P.value)&&xo(s).em("header","bordered")])},[tu("span",{class:se(xo(s).e("prev-btn"))},[tu("button",{type:"button","aria-label":xo(c)("el.datepicker.prevYear"),class:se(["d-arrow-left",xo(n).e("icon-btn")]),disabled:xo(Y),onClick:t[2]||(t[2]=e=>L(!1))},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,HD),br(tu("button",{type:"button","aria-label":xo(c)("el.datepicker.prevMonth"),class:se([xo(n).e("icon-btn"),"arrow-left"]),disabled:xo(Y),onClick:t[3]||(t[3]=e=>N(!1))},[rc(e.$slots,"prev-month",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(vx))]),_:1})])],10,zD),[[yp,"date"===P.value]])],2),tu("span",{role:"button",class:se(xo(s).e("header-label")),"aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:t[4]||(t[4]=Ih(e=>G("year"),["enter"])),onClick:t[5]||(t[5]=e=>G("year"))},me(F.value),43,YD),br(tu("span",{role:"button","aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,class:se([xo(s).e("header-label"),{active:"month"===P.value}]),onKeydown:t[6]||(t[6]=Ih(e=>G("month"),["enter"])),onClick:t[7]||(t[7]=e=>G("month"))},me(xo(c)(`el.datepicker.month${w.value+1}`)),43,GD),[[yp,"date"===P.value]]),tu("span",{class:se(xo(s).e("next-btn"))},[br(tu("button",{type:"button","aria-label":xo(c)("el.datepicker.nextMonth"),class:se([xo(n).e("icon-btn"),"arrow-right"]),disabled:xo(Y),onClick:t[8]||(t[8]=e=>N(!0))},[rc(e.$slots,"next-month",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(bx))]),_:1})])],10,WD),[[yp,"date"===P.value]]),tu("button",{type:"button","aria-label":xo(c)("el.datepicker.nextYear"),class:se([xo(n).e("icon-btn"),"d-arrow-right"]),disabled:xo(Y),onClick:t[9]||(t[9]=e=>L(!0))},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,jD)],2)],2),[[yp,"time"!==P.value]]),tu("div",{class:se(xo(n).e("content")),onKeydown:he},["date"===P.value?(zd(),Kd(ID,{key:0,ref_key:"currentViewRef",ref:v,"selection-mode":B.value,date:b.value,"parsed-value":e.parsedValue,"disabled-date":xo(f),disabled:xo(Y),"cell-class-name":xo(g),"show-week-number":e.showWeekNumber,onPick:M},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):ru("v-if",!0),"year"===P.value?(zd(),Kd(VD,{key:1,ref_key:"currentViewRef",ref:v,"selection-mode":B.value,date:b.value,"disabled-date":xo(f),disabled:xo(Y),"parsed-value":e.parsedValue,"cell-class-name":xo(g),onPick:z},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):ru("v-if",!0),"month"===P.value?(zd(),Kd(LD,{key:2,ref_key:"currentViewRef",ref:v,"selection-mode":B.value,date:b.value,"parsed-value":e.parsedValue,"disabled-date":xo(f),disabled:xo(Y),"cell-class-name":xo(g),onPick:H},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):ru("v-if",!0)],34)],2)],2),e.showFooter&&j.value&&q.value?(zd(),qd("div",{key:0,class:se(xo(n).e("footer"))},[br(iu(xo(Sk),{text:"",size:"small",class:se(xo(n).e("link-btn")),disabled:Z.value,onClick:Q},{default:vr(()=>[su(me(xo(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[yp,!$.value&&e.showNow]]),e.showConfirm?(zd(),Kd(xo(Sk),{key:0,plain:"",size:"small",class:se(xo(n).e("link-btn")),disabled:K.value,onClick:X},{default:vr(()=>[su(me(xo(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ru("v-if",!0)],2)):ru("v-if",!0)],2))}}),KD=qD;const XD=W_({...pD,...hD}),ZD=(e,{defaultValue:t,defaultTime:i,leftDate:a,rightDate:n,step:s,unit:o,sortDates:r})=>{const{emit:l}=_u(),{pickerNs:c}=Sr(lD),d=ib("date-range-picker"),{t:u,lang:p}=Qv(),h=(e=>{const{emit:t}=_u(),i=wc(),a=Sc();return n=>{const s=A(n.value)?n.value():n.value;s?t("pick",[Pk(s[0]).locale(e.value),Pk(s[1]).locale(e.value)]):n.onClick&&n.onClick({attrs:i,slots:a,emit:t})}})(p),f=mo(),g=mo(),m=mo({endDate:null,selecting:!1}),_=e=>{if(C(e)&&2===e.length){const[t,i]=e;f.value=t,a.value=t,g.value=i,r(xo(f),xo(g))}else v()},v=()=>{let[r,l]=_D(xo(t),{lang:xo(p),step:s,unit:o,unlinkPanels:e.unlinkPanels});const c=e=>e.diff(e.startOf("d"),"ms"),d=xo(i);if(d){let e=0,t=0;if(C(d)){const[i,a]=d.map(Pk);e=c(i),t=c(a)}else{const i=c(Pk(d));e=i,t=i}r=r.startOf("d").add(e,"ms"),l=l.startOf("d").add(t,"ms")}f.value=void 0,g.value=void 0,a.value=r,n.value=l};return Rr(t,e=>{e&&v()},{immediate:!0}),Rr(()=>e.parsedValue,e=>{(null==e?void 0:e.length)&&_n(e,[f.value,g.value])||_(e)},{immediate:!0}),Rr(()=>e.visible,()=>{e.visible&&_(e.parsedValue)},{immediate:!0}),{minDate:f,maxDate:g,rangeState:m,lang:p,ppNs:c,drpNs:d,handleChangeRange:e=>{m.value=e},handleRangeConfirm:(e=!1)=>{const t=xo(f),i=xo(g);mD([t,i])&&l("pick",[t,i],e)},handleShortcutClick:h,onSelect:e=>{m.value.selecting=e,e||(m.value.endDate=null)},parseValue:_,t:u}},QD=["disabled","onClick"],JD=["aria-label","disabled"],eO=["aria-label","disabled"],tO=["disabled","aria-label"],iO=["disabled","aria-label"],aO=["tabindex","aria-disabled"],nO=["tabindex","aria-disabled"],sO=["disabled","aria-label"],oO=["disabled","aria-label"],rO=["aria-label","disabled"],lO=["disabled","aria-label"],cO=["tabindex","aria-disabled"],dO=["tabindex","aria-disabled"],uO="month";var pO=sl({__name:"panel-date-range",props:XD,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const i=e,a=t,n=Sr(Ck),s=Sr(cD,void 0),{disabledDate:o,cellClassName:r,defaultTime:l,clearable:c}=n.props,d=Io(n.props,"format"),u=Io(n.props,"shortcuts"),p=Io(n.props,"defaultValue"),{lang:h}=Qv(),f=mo(Pk().locale(h.value)),g=mo(Pk().locale(h.value).add(1,uO)),{minDate:m,maxDate:_,rangeState:v,ppNs:b,drpNs:y,handleChangeRange:x,handleRangeConfirm:S,handleShortcutClick:w,onSelect:C,parseValue:E,t:k}=ZD(i,{defaultValue:p,defaultTime:l,leftDate:f,rightDate:g,unit:uO,sortDates:Ie});Rr(()=>i.visible,e=>{!e&&v.value.selecting&&(E(i.parsedValue),C(!1))});const T=mo({min:null,max:null}),A=mo({min:null,max:null}),{leftCurrentView:R,rightCurrentView:I,leftCurrentViewRef:D,rightCurrentViewRef:O,leftYear:M,rightYear:N,leftMonth:L,rightMonth:P,leftYearLabel:F,rightYearLabel:B,showLeftPicker:$,showRightPicker:V,handleLeftYearPick:U,handleRightYearPick:H,handleLeftMonthPick:z,handleRightMonthPick:Y,handlePanelChange:G,adjustDateByView:W}=((e,t,i,a)=>{const n=mo("date"),s=mo(),o=mo("date"),r=mo(),{disabledDate:l}=Sr(Ck).props,{t:c,lang:d}=Qv(),u=Lu(()=>i.value.year()),p=Lu(()=>i.value.month()),h=Lu(()=>a.value.year()),f=Lu(()=>a.value.month());function g(e,t){const i=c("el.datepicker.year");if("year"===e.value){const e=10*Math.floor(t.value/10);return i?`${e} ${i} - ${e+9} ${i}`:`${e} - ${e+9}`}return`${t.value} ${i}`}function m(e){null==e||e.focus()}async function _(t,i){if(e.disabled)return;const a="left"===t?s:r;("left"===t?n:o).value=i,await ir(),m(a.value)}async function v(t,c,u){if(e.disabled)return;const p="left"===c,h=p?i:a,f=p?a:i,g=p?n:o,_=p?s:r;"year"===t&&(h.value=yD(h.value.year(u),d.value,l)),"month"===t&&(h.value=bD(h.value,h.value.year(),u,d.value,l)),e.unlinkPanels||(f.value="left"===c?h.value.add(1,"month"):h.value.subtract(1,"month")),g.value="year"===t?"month":"date",await ir(),m(_.value),b(t)}function b(e){t("panel-change",[i.value.toDate(),a.value.toDate()],e)}return{leftCurrentView:n,rightCurrentView:o,leftCurrentViewRef:s,rightCurrentViewRef:r,leftYear:u,rightYear:h,leftMonth:p,rightMonth:f,leftYearLabel:Lu(()=>g(n,u)),rightYearLabel:Lu(()=>g(o,h)),showLeftPicker:e=>_("left",e),showRightPicker:e=>_("right",e),handleLeftYearPick:e=>v("year","left",e),handleRightYearPick:e=>v("year","right",e),handleLeftMonthPick:e=>v("month","left",e),handleRightMonthPick:e=>v("month","right",e),handlePanelChange:b,adjustDateByView:function(e,t,i){const a=i?"add":"subtract";return"year"===e?t[a](10,"year"):t[a](1,"year")}}})(i,a,f,g),j=Lu(()=>!!u.value.length),q=Lu(()=>null!==T.value.min?T.value.min:m.value?m.value.format(J.value):""),K=Lu(()=>null!==T.value.max?T.value.max:_.value||m.value?(_.value||m.value).format(J.value):""),X=Lu(()=>null!==A.value.min?A.value.min:m.value?m.value.format(Q.value):""),Z=Lu(()=>null!==A.value.max?A.value.max:_.value||m.value?(_.value||m.value).format(Q.value):""),Q=Lu(()=>i.timeFormat||Vk(d.value||"")||"HH:mm:ss"),J=Lu(()=>i.dateFormat||$k(d.value||"")||"YYYY-MM-DD"),ee=()=>{f.value=W(R.value,f.value,!1),i.unlinkPanels||(g.value=f.value.add(1,"month")),G("year")},te=()=>{f.value=f.value.subtract(1,"month"),i.unlinkPanels||(g.value=f.value.add(1,"month")),G("month")},ie=()=>{i.unlinkPanels?g.value=W(I.value,g.value,!0):(f.value=W(I.value,f.value,!0),g.value=f.value.add(1,"month")),G("year")},ae=()=>{i.unlinkPanels?g.value=g.value.add(1,"month"):(f.value=f.value.add(1,"month"),g.value=f.value.add(1,"month")),G("month")},ne=()=>{f.value=W(R.value,f.value,!0),G("year")},oe=()=>{f.value=f.value.add(1,"month"),G("month")},re=()=>{g.value=W(I.value,g.value,!1),G("year")},le=()=>{g.value=g.value.subtract(1,"month"),G("month")},ce=Lu(()=>{const e=(L.value+1)%12,t=L.value+1>=12?1:0;return i.singlePanel||i.unlinkPanels&&new Date(M.value+t,e)<new Date(N.value,P.value)}),de=Lu(()=>i.singlePanel||i.unlinkPanels&&12*N.value+P.value-(12*M.value+L.value+1)>=12),ue=_w(),pe=Lu(()=>!(m.value&&_.value&&!v.value.selecting&&mD([m.value,_.value])&&!ue.value)),he=Lu(()=>"datetime"===i.type||"datetimerange"===i.type),fe=(e,t)=>{if(e)return l?Pk(l[t]||l).locale(h.value).year(e.year()).month(e.month()).date(e.date()):e},ge=(e,t=!0)=>{const i=e.minDate,n=e.maxDate,s=fe(i,0),o=fe(n,1);_.value===o&&m.value===s||(a("calendar-change",[i.toDate(),n&&n.toDate()]),_.value=o,m.value=s,!he.value&&t&&(t=!s||!o),S(t))},_e=mo(!1),ve=mo(!1),be=()=>{_e.value=!1},ye=()=>{ve.value=!1},xe=(e,t)=>{if(!o||!o(e.toDate()))return e;const i=e.isBefore(t);let a=e;for(;i?a.isBefore(t):a.isAfter(t);)if(a=i?a.add(1,"day"):a.subtract(1,"day"),!o(a.toDate()))return a;return e},Se=(e,t)=>{T.value[t]=e;const a=Pk(e,J.value).locale(h.value);if(a.isValid()){if(o&&o(a.toDate()))return;if("min"===t){if(f.value=a,m.value=(m.value||f.value).year(a.year()).month(a.month()).date(a.date()),!i.unlinkPanels&&!_.value){const e=xe(m.value.add(1,"month"),m.value);g.value=e,_.value=e}}else if(g.value=a,_.value=(_.value||g.value).year(a.year()).month(a.month()).date(a.date()),!i.unlinkPanels&&!m.value){const e=xe(_.value.subtract(1,"month"),_.value);f.value=e,m.value=e}Ie(m.value,_.value),S(!0)}},we=(e,t)=>{if(T.value[t]=null,"min"===t){if(!i.unlinkPanels&&_.value&&m.value&&_.value.isBefore(m.value)){const e=xe(m.value.add(1,"month"),m.value);g.value=e,_.value=e}}else if(!i.unlinkPanels&&m.value&&_.value&&m.value.isAfter(_.value)){const e=xe(_.value.subtract(1,"month"),_.value);f.value=e,m.value=e}Ie(m.value,_.value),S(!0)},Ce=(e,t)=>{A.value[t]=e;const i=Pk(e,Q.value).locale(h.value);i.isValid()&&("min"===t?(_e.value=!0,m.value=(m.value||f.value).hour(i.hour()).minute(i.minute()).second(i.second()),f.value=m.value):(ve.value=!0,_.value=(_.value||g.value).hour(i.hour()).minute(i.minute()).second(i.second()),g.value=_.value))},Ee=(e,t)=>{A.value[t]=null,"min"===t?(f.value=m.value,_e.value=!1,_.value&&!_.value.isBefore(m.value)||(_.value=m.value)):(g.value=_.value,ve.value=!1,_.value&&_.value.isBefore(m.value)&&(m.value=_.value)),S(!0)},ke=(e,t,a)=>{A.value.min||(e&&(m.value=(m.value||f.value).hour(e.hour()).minute(e.minute()).second(e.second())),a||(_e.value=t),_.value&&!_.value.isBefore(m.value)||(_.value=m.value,g.value=e,ir(()=>{E(i.parsedValue)})),S(!0))},Te=(e,t,i)=>{A.value.max||(e&&(_.value=(_.value||g.value).hour(e.hour()).minute(e.minute()).second(e.second())),i||(ve.value=t),_.value&&_.value.isBefore(m.value)&&(m.value=_.value),S(!0))},Ae=()=>{Re(),a("clear")},Re=()=>{let e=null;(null==n?void 0:n.emptyValues)&&(e=n.emptyValues.valueOnClear.value),f.value=_D(xo(p),{lang:xo(h),unit:"month",unlinkPanels:i.unlinkPanels})[0],g.value=f.value.add(1,"month"),_.value=void 0,m.value=void 0,S(!0),a("pick",e)};function Ie(e,t){if(i.unlinkPanels&&t){const i=(null==e?void 0:e.year())||0,a=(null==e?void 0:e.month())||0,n=t.year(),s=t.month();g.value=i===n&&a===s?t.add(1,uO):t}else g.value=f.value.add(1,uO),t&&(g.value=g.value.hour(t.hour()).minute(t.minute()).second(t.second()))}return a("set-picker-option",["isValidValue",e=>mD(e)&&(!o||!o(e[0].toDate())&&!o(e[1].toDate()))]),a("set-picker-option",["parseUserInput",e=>xD(e,d.value||"",h.value,s)]),a("set-picker-option",["handleClear",Re]),(e,t)=>(zd(),qd("div",{class:se([xo(b).b(),xo(y).b(),xo(b).is("border",e.border),xo(b).is("disabled",xo(ue)),{"has-sidebar":e.$slots.sidebar||j.value,"has-time":he.value,"single-panel":e.singlePanel}])},[tu("div",{class:se(xo(b).e("body-wrapper"))},[rc(e.$slots,"sidebar",{class:se(xo(b).e("sidebar"))}),j.value?(zd(),qd("div",{key:0,class:se(xo(b).e("sidebar"))},[(zd(!0),qd(Fd,null,sc(u.value,(e,t)=>(zd(),qd("button",{key:t,type:"button",disabled:xo(ue),class:se(xo(b).e("shortcut")),onClick:t=>xo(w)(e)},me(e.text),11,QD))),128))],2)):ru("v-if",!0),tu("div",{class:se(xo(b).e("body"))},[he.value?(zd(),qd("div",{key:0,class:se(xo(y).e("time-header"))},[tu("span",{class:se(xo(y).e("editors-wrap"))},[tu("span",{class:se(xo(y).e("time-picker-wrap"))},[iu(xo(cE),{size:"small",disabled:xo(v).selecting||xo(ue),placeholder:xo(k)("el.datepicker.startDate"),class:se(xo(y).e("editor")),"model-value":q.value,"validate-event":!1,readonly:!e.editable,onInput:t[0]||(t[0]=e=>Se(e,"min")),onChange:t[1]||(t[1]=e=>we(0,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),br((zd(),qd("span",{class:se(xo(y).e("time-picker-wrap"))},[iu(xo(cE),{size:"small",class:se(xo(y).e("editor")),disabled:xo(v).selecting||xo(ue),placeholder:xo(k)("el.datepicker.startTime"),"model-value":X.value,"validate-event":!1,readonly:!e.editable,onFocus:t[2]||(t[2]=e=>_e.value=!0),onInput:t[3]||(t[3]=e=>Ce(e,"min")),onChange:t[4]||(t[4]=e=>Ee(0,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),iu(xo(qT),{visible:_e.value,format:Q.value,"datetime-role":"start","parsed-value":xo(m)||f.value,onPick:ke},null,8,["visible","format","parsed-value"])],2)),[[xo(sT),be]])],2),tu("span",null,[iu(xo(KS),null,{default:vr(()=>[iu(xo(bx))]),_:1})]),tu("span",{class:se([xo(y).e("editors-wrap"),"is-right"])},[tu("span",{class:se(xo(y).e("time-picker-wrap"))},[iu(xo(cE),{size:"small",class:se(xo(y).e("editor")),disabled:xo(v).selecting||xo(ue),placeholder:xo(k)("el.datepicker.endDate"),"model-value":K.value,readonly:!xo(m)||!e.editable,"validate-event":!1,onInput:t[5]||(t[5]=e=>Se(e,"max")),onChange:t[6]||(t[6]=e=>we(0,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),br((zd(),qd("span",{class:se(xo(y).e("time-picker-wrap"))},[iu(xo(cE),{size:"small",class:se(xo(y).e("editor")),disabled:xo(v).selecting||xo(ue),placeholder:xo(k)("el.datepicker.endTime"),"model-value":Z.value,readonly:!xo(m)||!e.editable,"validate-event":!1,onFocus:t[7]||(t[7]=e=>xo(m)&&(ve.value=!0)),onInput:t[8]||(t[8]=e=>Ce(e,"max")),onChange:t[9]||(t[9]=e=>Ee(0,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),iu(xo(qT),{"datetime-role":"end",visible:ve.value,format:Q.value,"parsed-value":xo(_)||g.value,onPick:Te},null,8,["visible","format","parsed-value"])],2)),[[xo(sT),ye]])],2)],2)):ru("v-if",!0),tu("div",{class:se([xo(b).e("content"),xo(y).e("content"),xo(y).is("left",!e.singlePanel)])},[tu("div",{class:se(xo(y).e("header"))},[tu("button",{type:"button",class:se([xo(b).e("icon-btn"),"d-arrow-left"]),"aria-label":xo(k)("el.datepicker.prevYear"),disabled:xo(ue),onClick:ee},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,JD),br(tu("button",{type:"button",class:se([xo(b).e("icon-btn"),"arrow-left"]),"aria-label":xo(k)("el.datepicker.prevMonth"),disabled:xo(ue),onClick:te},[rc(e.$slots,"prev-month",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(vx))]),_:1})])],10,eO),[[yp,"date"===xo(R)]]),e.unlinkPanels||e.singlePanel?(zd(),qd("button",{key:0,type:"button",disabled:!de.value||xo(ue),class:se([[xo(b).e("icon-btn"),xo(b).is("disabled",!de.value||xo(ue))],"d-arrow-right"]),"aria-label":xo(k)("el.datepicker.nextYear"),onClick:ne},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,tO)):ru("v-if",!0),e.unlinkPanels&&"date"===xo(R)||e.singlePanel?(zd(),qd("button",{key:1,type:"button",disabled:!ce.value||xo(ue),class:se([[xo(b).e("icon-btn"),xo(b).is("disabled",!ce.value||xo(ue))],"arrow-right"]),"aria-label":xo(k)("el.datepicker.nextMonth"),onClick:oe},[rc(e.$slots,"next-month",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(bx))]),_:1})])],10,iO)):ru("v-if",!0),tu("div",null,[tu("span",{role:"button",class:se(xo(y).e("header-label")),"aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:t[10]||(t[10]=Ih(e=>xo($)("year"),["enter"])),onClick:t[11]||(t[11]=e=>xo($)("year"))},me(xo(F)),43,aO),br(tu("span",{role:"button","aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,class:se([xo(y).e("header-label"),{active:"month"===xo(R)}]),onKeydown:t[12]||(t[12]=Ih(e=>xo($)("month"),["enter"])),onClick:t[13]||(t[13]=e=>xo($)("month"))},me(xo(k)(`el.datepicker.month${f.value.month()+1}`)),43,nO),[[yp,"date"===xo(R)]])])],2),"date"===xo(R)?(zd(),Kd(ID,{key:0,ref_key:"leftCurrentViewRef",ref:D,"selection-mode":"range",date:f.value,"min-date":xo(m),"max-date":xo(_),"range-state":xo(v),"disabled-date":xo(o),"cell-class-name":xo(r),"show-week-number":e.showWeekNumber,disabled:xo(ue),onChangerange:xo(x),onPick:ge,onSelect:xo(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ru("v-if",!0),"year"===xo(R)?(zd(),Kd(VD,{key:1,ref_key:"leftCurrentViewRef",ref:D,"selection-mode":"year",date:f.value,"disabled-date":xo(o),"parsed-value":e.parsedValue,disabled:xo(ue),onPick:xo(U)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ru("v-if",!0),"month"===xo(R)?(zd(),Kd(LD,{key:2,ref_key:"leftCurrentViewRef",ref:D,"selection-mode":"month",date:f.value,"parsed-value":e.parsedValue,"disabled-date":xo(o),disabled:xo(ue),onPick:xo(z)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ru("v-if",!0)],2),e.singlePanel?ru("v-if",!0):(zd(),qd("div",{key:1,class:se([[xo(b).e("content"),xo(y).e("content")],"is-right"])},[tu("div",{class:se(xo(y).e("header"))},[e.unlinkPanels?(zd(),qd("button",{key:0,type:"button",disabled:!de.value||xo(ue),class:se([[xo(b).e("icon-btn"),xo(b).is("disabled",!de.value||xo(ue))],"d-arrow-left"]),"aria-label":xo(k)("el.datepicker.prevYear"),onClick:re},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,sO)):ru("v-if",!0),e.unlinkPanels&&"date"===xo(I)?(zd(),qd("button",{key:1,type:"button",disabled:!ce.value||xo(ue),class:se([[xo(b).e("icon-btn"),xo(b).is("disabled",!ce.value||xo(ue))],"arrow-left"]),"aria-label":xo(k)("el.datepicker.prevMonth"),onClick:le},[rc(e.$slots,"prev-month",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(vx))]),_:1})])],10,oO)):ru("v-if",!0),tu("button",{type:"button","aria-label":xo(k)("el.datepicker.nextYear"),class:se([xo(b).e("icon-btn"),"d-arrow-right"]),disabled:xo(ue),onClick:ie},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,rO),br(tu("button",{type:"button",class:se([xo(b).e("icon-btn"),"arrow-right"]),disabled:xo(ue),"aria-label":xo(k)("el.datepicker.nextMonth"),onClick:ae},[rc(e.$slots,"next-month",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(bx))]),_:1})])],10,lO),[[yp,"date"===xo(I)]]),tu("div",null,[tu("span",{role:"button",class:se(xo(y).e("header-label")),"aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:t[14]||(t[14]=Ih(e=>xo(V)("year"),["enter"])),onClick:t[15]||(t[15]=e=>xo(V)("year"))},me(xo(B)),43,cO),br(tu("span",{role:"button","aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,class:se([xo(y).e("header-label"),{active:"month"===xo(I)}]),onKeydown:t[16]||(t[16]=Ih(e=>xo(V)("month"),["enter"])),onClick:t[17]||(t[17]=e=>xo(V)("month"))},me(xo(k)(`el.datepicker.month${g.value.month()+1}`)),43,dO),[[yp,"date"===xo(I)]])])],2),"date"===xo(I)?(zd(),Kd(ID,{key:0,ref_key:"rightCurrentViewRef",ref:O,"selection-mode":"range",date:g.value,"min-date":xo(m),"max-date":xo(_),"range-state":xo(v),"disabled-date":xo(o),"cell-class-name":xo(r),"show-week-number":e.showWeekNumber,disabled:xo(ue),onChangerange:xo(x),onPick:ge,onSelect:xo(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ru("v-if",!0),"year"===xo(I)?(zd(),Kd(VD,{key:1,ref_key:"rightCurrentViewRef",ref:O,"selection-mode":"year",date:g.value,"disabled-date":xo(o),"parsed-value":e.parsedValue,disabled:xo(ue),onPick:xo(H)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ru("v-if",!0),"month"===xo(I)?(zd(),Kd(LD,{key:2,ref_key:"rightCurrentViewRef",ref:O,"selection-mode":"month",date:g.value,"parsed-value":e.parsedValue,"disabled-date":xo(o),disabled:xo(ue),onPick:xo(Y)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ru("v-if",!0)],2))],2)],2),e.showFooter&&he.value&&(e.showConfirm||xo(c))?(zd(),qd("div",{key:0,class:se(xo(b).e("footer"))},[xo(c)?(zd(),Kd(xo(Sk),{key:0,text:"",size:"small",class:se(xo(b).e("link-btn")),onClick:Ae},{default:vr(()=>[su(me(xo(k)("el.datepicker.clear")),1)]),_:1},8,["class"])):ru("v-if",!0),e.showConfirm?(zd(),Kd(xo(Sk),{key:1,plain:"",size:"small",class:se(xo(b).e("link-btn")),disabled:pe.value,onClick:t[18]||(t[18]=e=>xo(S)(!1))},{default:vr(()=>[su(me(xo(k)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ru("v-if",!0)],2)):ru("v-if",!0)],2))}}),hO=pO;const fO=W_({...hD}),gO=["disabled","onClick"],mO=["disabled"],_O=["disabled"],vO=["disabled"],bO=["disabled"],yO="year";var xO=sl({name:"DatePickerMonthRange",__name:"panel-month-range",props:fO,emits:["pick","set-picker-option","calendar-change"],setup(e,{emit:t}){const i=e,a=t,{lang:n}=Qv(),s=Sr(Ck),o=Sr(cD,void 0),{shortcuts:r,disabledDate:l,cellClassName:c}=s.props,d=Io(s.props,"format"),u=Io(s.props,"defaultValue"),p=mo(Pk().locale(n.value)),h=mo(Pk().locale(n.value).add(1,yO)),{minDate:f,maxDate:g,rangeState:m,ppNs:_,drpNs:v,handleChangeRange:b,handleRangeConfirm:y,handleShortcutClick:x,onSelect:S,parseValue:w}=ZD(i,{defaultValue:u,leftDate:p,rightDate:h,unit:yO,sortDates:function(e,t){i.unlinkPanels&&t?h.value=((null==e?void 0:e.year())||0)===t.year()?t.add(1,yO):t:h.value=p.value.add(1,yO)}}),C=Lu(()=>!!r.length),{leftPrevYear:E,rightNextYear:k,leftNextYear:T,rightPrevYear:A,leftLabel:R,rightLabel:I,leftYear:D,rightYear:O}=(({unlinkPanels:e,leftDate:t,rightDate:i})=>{const{t:a}=Qv();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(i.value=i.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),i.value=i.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{i.value=i.value.subtract(1,"year")},leftLabel:Lu(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:Lu(()=>`${i.value.year()} ${a("el.datepicker.year")}`),leftYear:Lu(()=>t.value.year()),rightYear:Lu(()=>i.value.year()===t.value.year()?t.value.year()+1:i.value.year())}})({unlinkPanels:Io(i,"unlinkPanels"),leftDate:p,rightDate:h}),M=Lu(()=>i.singlePanel||i.unlinkPanels&&O.value>D.value+1),N=(e,t=!0)=>{const i=e.minDate,n=e.maxDate;g.value===n&&f.value===i||(a("calendar-change",[i.toDate(),n&&n.toDate()]),g.value=n,f.value=i,t&&y())};const L=_w();return Rr(()=>i.visible,e=>{!e&&m.value.selecting&&(w(i.parsedValue),S(!1))}),a("set-picker-option",["isValidValue",mD]),a("set-picker-option",["parseUserInput",e=>xD(e,d.value,n.value,o)]),a("set-picker-option",["handleClear",()=>{let e=null;(null==s?void 0:s.emptyValues)&&(e=s.emptyValues.valueOnClear.value),p.value=_D(xo(u),{lang:xo(n),unit:"year",unlinkPanels:i.unlinkPanels})[0],h.value=p.value.add(1,"year"),a("pick",e)}]),(e,t)=>(zd(),qd("div",{class:se([xo(_).b(),xo(v).b(),xo(_).is("border",e.border),xo(_).is("disabled",xo(L)),{"has-sidebar":Boolean(e.$slots.sidebar)||C.value,"single-panel":e.singlePanel}])},[tu("div",{class:se(xo(_).e("body-wrapper"))},[rc(e.$slots,"sidebar",{class:se(xo(_).e("sidebar"))}),C.value?(zd(),qd("div",{key:0,class:se(xo(_).e("sidebar"))},[(zd(!0),qd(Fd,null,sc(xo(r),(e,t)=>(zd(),qd("button",{key:t,type:"button",class:se(xo(_).e("shortcut")),disabled:xo(L),onClick:t=>xo(x)(e)},me(e.text),11,gO))),128))],2)):ru("v-if",!0),tu("div",{class:se(xo(_).e("body"))},[tu("div",{class:se([xo(_).e("content"),xo(v).e("content"),xo(v).is("left",!e.singlePanel)])},[tu("div",{class:se(xo(v).e("header"))},[tu("button",{type:"button",class:se([xo(_).e("icon-btn"),"d-arrow-left"]),disabled:xo(L),onClick:t[0]||(t[0]=(...e)=>xo(E)&&xo(E)(...e))},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,mO),e.unlinkPanels||e.singlePanel?(zd(),qd("button",{key:0,type:"button",disabled:!M.value||xo(L),class:se([[xo(_).e("icon-btn"),xo(_).is("disabled",!M.value||xo(L))],"d-arrow-right"]),onClick:t[1]||(t[1]=(...e)=>xo(T)&&xo(T)(...e))},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,_O)):ru("v-if",!0),tu("div",null,me(xo(R)),1)],2),iu(LD,{"selection-mode":"range",date:p.value,"min-date":xo(f),"max-date":xo(g),"range-state":xo(m),"disabled-date":xo(l),disabled:xo(L),"cell-class-name":xo(c),onChangerange:xo(b),onPick:N,onSelect:xo(S)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),e.singlePanel?ru("v-if",!0):(zd(),qd("div",{key:0,class:se([[xo(_).e("content"),xo(v).e("content")],"is-right"])},[tu("div",{class:se(xo(v).e("header"))},[e.unlinkPanels?(zd(),qd("button",{key:0,type:"button",disabled:!M.value||xo(L),class:se([[xo(_).e("icon-btn"),xo(_).is("disabled",!M.value||xo(L))],"d-arrow-left"]),onClick:t[2]||(t[2]=(...e)=>xo(A)&&xo(A)(...e))},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,vO)):ru("v-if",!0),tu("button",{type:"button",class:se([xo(_).e("icon-btn"),"d-arrow-right"]),disabled:xo(L),onClick:t[3]||(t[3]=(...e)=>xo(k)&&xo(k)(...e))},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,bO),tu("div",null,me(xo(I)),1)],2),iu(LD,{"selection-mode":"range",date:h.value,"min-date":xo(f),"max-date":xo(g),"range-state":xo(m),"disabled-date":xo(l),disabled:xo(L),"cell-class-name":xo(c),onChangerange:xo(b),onPick:N,onSelect:xo(S)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2))],2)],2)],2))}}),SO=xO;const wO=W_({...hD}),CO=["disabled","onClick"],EO=["disabled"],kO=["disabled"],TO=["disabled"],AO=["disabled"],RO=10,IO="year";var DO=sl({name:"DatePickerYearRange",__name:"panel-year-range",props:wO,emits:["pick","set-picker-option","calendar-change"],setup(e,{emit:t}){const i=e,a=t,{lang:n}=Qv(),s=mo(Pk().locale(n.value)),o=mo(Pk().locale(n.value).add(RO,IO)),r=Sr(cD,void 0),l=Sr(Ck),{shortcuts:c,disabledDate:d,cellClassName:u}=l.props,p=Io(l.props,"format"),h=Io(l.props,"defaultValue"),{minDate:f,maxDate:g,rangeState:m,ppNs:_,drpNs:v,handleChangeRange:b,handleRangeConfirm:y,handleShortcutClick:x,onSelect:S,parseValue:w}=ZD(i,{defaultValue:h,leftDate:s,rightDate:o,step:RO,unit:IO,sortDates:function(e,t){if(i.unlinkPanels&&t){const i=(null==e?void 0:e.year())||0,a=t.year();o.value=i+RO>a?t.add(RO,IO):t}else o.value=s.value.add(RO,IO)}}),{leftPrevYear:C,rightNextYear:E,leftNextYear:k,rightPrevYear:T,leftLabel:A,rightLabel:R,leftYear:I,rightYear:D}=(({unlinkPanels:e,leftDate:t,rightDate:i})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(i.value=i.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),i.value=i.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{i.value=i.value.subtract(10,"year")},leftLabel:Lu(()=>{const e=10*Math.floor(t.value.year()/10);return`${e}-${e+9}`}),rightLabel:Lu(()=>{const e=10*Math.floor(i.value.year()/10);return`${e}-${e+9}`}),leftYear:Lu(()=>10*Math.floor(t.value.year()/10)+9),rightYear:Lu(()=>10*Math.floor(i.value.year()/10))}))({unlinkPanels:Io(i,"unlinkPanels"),leftDate:s,rightDate:o}),O=_w(),M=Lu(()=>!!c.length),N=Lu(()=>[_.b(),v.b(),_.is("border",i.border),_.is("disabled",O.value),{"has-sidebar":Boolean(Sc().sidebar)||M.value,"single-panel":i.singlePanel}]),L=Lu(()=>({content:[_.e("content"),v.e("content"),v.is("left",!i.singlePanel)],arrowLeftBtn:[_.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[_.e("icon-btn"),_.is("disabled",!F.value||O.value),"d-arrow-right"]})),P=Lu(()=>({content:[_.e("content"),v.e("content"),"is-right"],arrowLeftBtn:[_.e("icon-btn"),_.is("disabled",!F.value||O.value),"d-arrow-left"],arrowRightBtn:[_.e("icon-btn"),"d-arrow-right"]})),F=Lu(()=>i.singlePanel||i.unlinkPanels&&D.value>I.value+1),B=(e,t=!0)=>{const i=e.minDate,n=e.maxDate;g.value===n&&f.value===i||(a("calendar-change",[i.toDate(),n&&n.toDate()]),g.value=n,f.value=i,t&&y())};return Rr(()=>i.visible,e=>{!e&&m.value.selecting&&(w(i.parsedValue),S(!1))}),a("set-picker-option",["isValidValue",e=>mD(e)&&(!d||!d(e[0].toDate())&&!d(e[1].toDate()))]),a("set-picker-option",["parseUserInput",e=>xD(e,p.value,n.value,r)]),a("set-picker-option",["handleClear",()=>{let e=null;(null==l?void 0:l.emptyValues)&&(e=l.emptyValues.valueOnClear.value);const t=_D(xo(h),{lang:xo(n),step:RO,unit:IO,unlinkPanels:i.unlinkPanels});s.value=t[0],o.value=t[1],a("pick",e)}]),(e,t)=>(zd(),qd("div",{class:se(N.value)},[tu("div",{class:se(xo(_).e("body-wrapper"))},[rc(e.$slots,"sidebar",{class:se(xo(_).e("sidebar"))}),M.value?(zd(),qd("div",{key:0,class:se(xo(_).e("sidebar"))},[(zd(!0),qd(Fd,null,sc(xo(c),(e,t)=>(zd(),qd("button",{key:t,type:"button",class:se(xo(_).e("shortcut")),disabled:xo(O),onClick:t=>xo(x)(e)},me(e.text),11,CO))),128))],2)):ru("v-if",!0),tu("div",{class:se(xo(_).e("body"))},[tu("div",{class:se(L.value.content)},[tu("div",{class:se(xo(v).e("header"))},[tu("button",{type:"button",class:se(L.value.arrowLeftBtn),disabled:xo(O),onClick:t[0]||(t[0]=(...e)=>xo(C)&&xo(C)(...e))},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,EO),e.unlinkPanels||e.singlePanel?(zd(),qd("button",{key:0,type:"button",disabled:!F.value||xo(O),class:se(L.value.arrowRightBtn),onClick:t[1]||(t[1]=(...e)=>xo(k)&&xo(k)(...e))},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,kO)):ru("v-if",!0),tu("div",null,me(xo(A)),1)],2),iu(VD,{"selection-mode":"range",date:s.value,"min-date":xo(f),"max-date":xo(g),"range-state":xo(m),"disabled-date":xo(d),disabled:xo(O),"cell-class-name":xo(u),onChangerange:xo(b),onPick:B,onSelect:xo(S)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),e.singlePanel?ru("v-if",!0):(zd(),qd("div",{key:0,class:se(P.value.content)},[tu("div",{class:se(xo(v).e("header"))},[e.unlinkPanels?(zd(),qd("button",{key:0,type:"button",disabled:!F.value||xo(O),class:se(P.value.arrowLeftBtn),onClick:t[2]||(t[2]=(...e)=>xo(T)&&xo(T)(...e))},[rc(e.$slots,"prev-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo($x))]),_:1})])],10,TO)):ru("v-if",!0),tu("button",{type:"button",class:se(P.value.arrowRightBtn),disabled:xo(O),onClick:t[3]||(t[3]=(...e)=>xo(E)&&xo(E)(...e))},[rc(e.$slots,"next-year",{},()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(Vx))]),_:1})])],10,AO),tu("div",null,me(xo(R)),1)],2),iu(VD,{"selection-mode":"range",date:o.value,"min-date":xo(f),"max-date":xo(g),"range-state":xo(m),"disabled-date":xo(d),disabled:xo(O),"cell-class-name":xo(u),onChangerange:xo(b),onPick:B,onSelect:xo(S)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2))],2)],2)],2))}});var OO={exports:{}};OO.exports=function(e,t){var i=t.prototype,a=i.format;i.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return a.bind(this)(e);var n=this.$utils(),s=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return i.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return i.ordinal(t.week(),"W");case"w":case"ww":return n.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return n.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return n.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return a.bind(this)(s)}};const MO=Dk(OO.exports);var NO,LO,PO={exports:{}};const FO=Dk(PO.exports=(NO="week",LO="year",function(e,t,i){var a=t.prototype;a.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=i(this).startOf(LO).add(1,LO).date(t),n=i(this).endOf(NO);if(a.isBefore(n))return 1}var s=i(this).startOf(LO).date(t).startOf(NO).subtract(1,"millisecond"),o=this.diff(s,NO,!0);return o<0?i(this).startOf("week").week():Math.ceil(o)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}));var BO={exports:{}};BO.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),i=this.year();return 1===t&&11===e?i+1:0===e&&t>=52?i-1:i}};const $O=Dk(BO.exports);var VO={exports:{}};VO.exports=function(e,t,i){t.prototype.dayOfYear=function(e){var t=Math.round((i(this).startOf("day")-i(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}};const UO=Dk(VO.exports);var HO={exports:{}};HO.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}};const zO=Dk(HO.exports);var YO={exports:{}};const GO=Dk(YO.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}});Pk.extend(kA),Pk.extend(MO),Pk.extend(XT),Pk.extend(FO),Pk.extend($O),Pk.extend(UO),Pk.extend(zO),Pk.extend(GO);const WO=px(sl({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:rD,emits:[c,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:i,attrs:a}){const n=ib("picker-panel");In(Sr("EP_PICKER_BASE",void 0))&&xr(Ck,{props:to({...To(e)})}),xr(lD,{slots:t,pickerNs:n});const{parsedValue:s,onCalendarChange:o,onPanelChange:r,onSetPickerOption:l,onPick:c}=Sr(kk,()=>Zk(e,i),!0);return()=>{return iu(function(e){switch(e){case"daterange":case"datetimerange":return hO;case"monthrange":return SO;case"yearrange":return DO;default:return KD}}(e.type),uu(kn(a,"onPick"),e,{parsedValue:s.value,"onSet-picker-option":l,"onCalendar-change":o,"onPanel-change":r,onClear:()=>i("clear"),onPick:c}),"function"==typeof(n=t)||"[object Object]"===Object.prototype.toString.call(n)&&!Xd(n)?t:{default:()=>[t]});var n}}}));const jO=px(sl({name:"ElDatePicker",install:null,props:W_({...Kk,type:{type:String,default:"date"}}),emits:[c],setup(e,{expose:t,emit:i,slots:a}){xr(cD,Lu(()=>!e.format)),xr(Ek,to(Io(e,"popperOptions")));const n=mo();t({focus:()=>{var e;null==(e=n.value)||e.focus()},blur:()=>{var e;null==(e=n.value)||e.blur()},handleOpen:()=>{var e;null==(e=n.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=n.value)||e.handleClose()}});const s=e=>{i(c,e)};return()=>iu(iT,uu(e,{format:e.format??(Rk[e.type]||"YYYY-MM-DD"),type:e.type,ref:n,"onUpdate:modelValue":s}),{default:t=>{return iu(WO,uu({disabled:e.disabled,editable:e.editable,border:!1},t),"function"==typeof(i=a)||"[object Object]"===Object.prototype.toString.call(i)&&!Xd(i)?a:{default:()=>[a]});var i},"range-separator":a["range-separator"]})}})),qO=W_({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:YS},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),KO=W_({...qO,appendToBody:Boolean,appendTo:{type:[String,Object],default:"body"},beforeClose:{type:Function},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:[String,Object],default:void 0}}),XO={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[c]:e=>Dn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},ZO=W_({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}});var QO=sl({name:"ElOverlay",props:ZO,emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:i}){const a=ib("overlay"),{onClick:n,onMousedown:s,onMouseup:o}=Ly(e.customMaskEvent?void 0:e=>{i("click",e)});return()=>e.mask?iu("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:n,onMousedown:s,onMouseup:o},[rc(t,"default")],14,["onClick","onMouseup","onMousedown"]):Pu("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[rc(t,"default")])}});const JO=QO,eM=Symbol("dialogInjectionKey"),tM="dialog-fade",iM=(e,t)=>{const i=_u().emit,{nextZIndex:a}=Zy();let n="";const s=Vy(),o=Vy(),r=mo(!1),l=mo(!1),d=mo(!1),u=mo(e.zIndex??a()),p=mo(!1);let h,f;const g=jE(),m=Lu(()=>{var e;return(null==(e=g.value)?void 0:e.namespace)??"el"}),_=Lu(()=>{var e;return null==(e=g.value)?void 0:e.dialog}),v=Lu(()=>{const t={},i=`--${m.value}-dialog`;if(!e.fullscreen){e.top&&(t[`${i}-margin-top`]=e.top);const a=Wv(e.width);a&&(t[`${i}-width`]=a)}return t}),b=Lu(()=>{var t;return(e.draggable??(null==(t=_.value)?void 0:t.draggable)??!1)&&!e.fullscreen}),y=Lu(()=>{var t;return e.alignCenter??(null==(t=_.value)?void 0:t.alignCenter)??!1}),x=Lu(()=>{var t;return e.overflow??(null==(t=_.value)?void 0:t.overflow)??!1}),S=Lu(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),w=Lu(()=>y.value?{display:"flex"}:{}),E=Lu(()=>{var t;const i=e.transition??(null==(t=_.value)?void 0:t.transition)??"dialog-fade",a={name:i,onAfterEnter:k,onBeforeLeave:R,onAfterLeave:T};if(D(i)){const e={...i},t=(e,t)=>i=>{C(e)?e.forEach(e=>{A(e)&&e(i)}):A(e)&&e(i),t()};return e.onAfterEnter=t(e.onAfterEnter,k),e.onBeforeLeave=t(e.onBeforeLeave,R),e.onAfterLeave=t(e.onAfterLeave,T),e.name||(e.name=tM,K_("ElDialog",`transition.name is missing when using object syntax, fallback to '${tM}'`)),e}return a});function k(){i("opened")}function T(){i("closed"),i(c,!1),e.destroyOnClose&&(d.value=!1),p.value=!1}function R(){p.value=!0,i("close")}function I(){null==f||f(),null==h||h(),e.openDelay&&e.openDelay>0?({stop:h}=fv(()=>N(),e.openDelay)):N()}function O(){null==h||h(),null==f||f(),e.closeDelay&&e.closeDelay>0?({stop:f}=fv(()=>L(),e.closeDelay)):L()}function M(){e.beforeClose?e.beforeClose(function(e){e||(l.value=!0,r.value=!1)}):O()}function N(){av&&(r.value=!0)}function L(){r.value=!1}return e.lockScroll&&rb(r),Rr(()=>e.zIndex,()=>{u.value=e.zIndex??a()}),Rr(()=>e.modelValue,n=>{n?(l.value=!1,p.value=!1,I(),d.value=!0,u.value=e.zIndex??a(),ir(()=>{i("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):r.value&&O()}),Rr(()=>e.fullscreen,e=>{t.value&&(e?(n=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=n)}),zl(()=>{e.modelValue&&(r.value=!0,d.value=!0,I())}),{afterEnter:k,afterLeave:T,beforeLeave:R,handleClose:M,onModalClick:function(){e.closeOnClickModal&&M()},close:O,doClose:L,onOpenAutoFocus:function(){i("openAutoFocus")},onCloseAutoFocus:function(){i("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&M()},onFocusoutPrevented:function(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()},bringToFront:function(){r.value&&S.value&&void 0===e.zIndex&&(u.value=a())},titleId:s,bodyId:o,closed:l,style:v,overlayDialogStyle:w,rendered:d,visible:r,zIndex:u,transitionConfig:E,_draggable:b,_alignCenter:y,_overflow:x,closing:p,penetrable:S}},aM=(...e)=>t=>{e.forEach(e=>{e.value=t})},nM=["aria-level"],sM=["aria-label"],oM=["id"];var rM=sl({name:"ElDialogContent",__name:"dialog-content",props:qO,emits:{close:()=>!0},setup(e,{expose:t}){const{t:i}=Qv(),{Close:a}=GS,n=e,{dialogRef:s,headerRef:o,bodyId:r,ns:l,style:c}=Sr(eM),{focusTrapRef:d}=Sr(hC),u=aM(d,s),p=Lu(()=>!!n.draggable),{resetPosition:h,updatePosition:f,isDragging:g}=jv(s,o,p,Lu(()=>!!n.overflow)),m=Lu(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",p.value),l.is("dragging",g.value),l.is("align-center",!!n.alignCenter),{[l.m("center")]:n.center}]);return t({resetPosition:h,updatePosition:f}),(t,n)=>(zd(),qd("div",{ref:xo(u),class:se(m.value),style:ee(xo(c)),tabindex:"-1"},[tu("header",{ref_key:"headerRef",ref:o,class:se([xo(l).e("header"),e.headerClass,{"show-close":e.showClose}])},[rc(t.$slots,"header",{},()=>[tu("span",{role:"heading","aria-level":e.ariaLevel,class:se(xo(l).e("title"))},me(e.title),11,nM)]),e.showClose?(zd(),qd("button",{key:0,"aria-label":xo(i)("el.dialog.close"),class:se(xo(l).e("headerbtn")),type:"button",onClick:n[0]||(n[0]=e=>t.$emit("close"))},[iu(xo(KS),{class:se(xo(l).e("close"))},{default:vr(()=>[(zd(),Kd(tc(e.closeIcon||xo(a))))]),_:1},8,["class"])],10,sM)):ru("v-if",!0)],2),tu("div",{id:xo(r),class:se([xo(l).e("body"),e.bodyClass])},[rc(t.$slots,"default")],10,oM),t.$slots.footer?(zd(),qd("footer",{key:0,class:se([xo(l).e("footer"),e.footerClass])},[rc(t.$slots,"footer")],2)):ru("v-if",!0)],6))}}),lM=rM;const cM=["aria-label","aria-labelledby","aria-describedby"];const dM=px(sl({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:KO,emits:XO,setup(e,{expose:t}){const i=e,a=Sc();Dv({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},Lu(()=>!!a.title));const n=ib("dialog"),s=mo(),o=mo(),r=mo(),{visible:l,titleId:c,bodyId:d,style:u,overlayDialogStyle:p,rendered:h,transitionConfig:f,zIndex:g,_draggable:m,_alignCenter:_,_overflow:v,penetrable:b,handleClose:y,onModalClick:x,onOpenAutoFocus:S,onCloseAutoFocus:w,onCloseRequested:C,onFocusoutPrevented:E,bringToFront:k,closing:T}=iM(i,s);xr(eM,{dialogRef:s,headerRef:o,bodyId:d,ns:n,rendered:h,style:u});const A=Ly(x);return t({visible:l,dialogContentRef:r,resetPosition:()=>{var e;null==(e=r.value)||e.resetPosition()},handleClose:y}),(t,i)=>(zd(),Kd(Hr,{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},[iu(np,uu(xo(f),{persisted:""}),{default:vr(()=>[br(iu(xo(JO),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${xo(n).namespace.value}-modal-dialog`,xo(n).is("penetrable",xo(b))],"z-index":xo(g)},{default:vr(()=>[tu("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:xo(c),"aria-describedby":xo(d),class:se([`${xo(n).namespace.value}-overlay-dialog`,xo(n).is("closing",xo(T))]),style:ee(xo(p)),onClick:i[0]||(i[0]=(...e)=>xo(A).onClick&&xo(A).onClick(...e)),onMousedown:i[1]||(i[1]=(...e)=>xo(A).onMousedown&&xo(A).onMousedown(...e)),onMouseup:i[2]||(i[2]=(...e)=>xo(A).onMouseup&&xo(A).onMouseup(...e))},[iu(xo(RC),{loop:"",trapped:xo(l),"focus-start-el":"container",onFocusAfterTrapped:xo(S),onFocusAfterReleased:xo(w),onFocusoutPrevented:xo(E),onReleaseRequested:xo(C)},{default:vr(()=>[xo(h)?(zd(),Kd(lM,uu({key:0,ref_key:"dialogContentRef",ref:r},t.$attrs,{center:e.center,"align-center":xo(_),"close-icon":e.closeIcon,draggable:xo(m),overflow:xo(v),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:xo(y),onMousedown:xo(k)}),oc({header:vr(()=>[t.$slots.title?rc(t.$slots,"title",{key:1}):rc(t.$slots,"header",{key:0,close:xo(y),titleId:xo(c),titleClass:xo(n).e("title")})]),default:vr(()=>[rc(t.$slots,"default")]),_:2},[t.$slots.footer?{name:"footer",fn:vr(()=>[rc(t.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):ru("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,cM)]),_:3},8,["mask","overlay-class","z-index"]),[[yp,xo(l)]])]),_:3},16)],8,["to","disabled"]))}})),uM=W_({...KO,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),pM={...XO,"resize-start":(e,t)=>e instanceof MouseEvent&&"number"==typeof t,resize:(e,t)=>e instanceof MouseEvent&&"number"==typeof t,"resize-end":(e,t)=>e instanceof MouseEvent&&"number"==typeof t};function hM(e,t,i){const{width:a,height:n}=Iv(),s=Lu(()=>["ltr","rtl"].includes(e.direction)),o=Lu(()=>["ltr","ttb"].includes(e.direction)?1:-1),r=Lu(()=>s.value?a.value:n.value),l=Lu(()=>ov(c.value+o.value*d.value,4,r.value)),c=mo(0),d=mo(0),u=mo(!1),p=mo(!1);let h=[],f=[];Rr(()=>[e.size,e.resizable],()=>{p.value=!1,c.value=0,d.value=0,m()});const g=e=>{const{pageX:t,pageY:a}=e,n=t-h[0],o=a-h[1];d.value=s.value?n:o,i("resize",e,l.value)},m=e=>{u.value&&(h=[],c.value=l.value,d.value=0,u.value=!1,f.forEach(e=>null==e?void 0:e()),f=[],e&&i("resize-end",e,c.value))},_=vv(t,"mousedown",a=>{e.resizable&&(p.value||(c.value=(()=>{var e;const i=null==(e=t.value)?void 0:e.closest('[aria-modal="true"]');return i?s.value?i.offsetWidth:i.offsetHeight:100})(),p.value=!0),h=[a.pageX,a.pageY],u.value=!0,i("resize-start",a,c.value),f.push(vv(window,"mouseup",m),vv(window,"mousemove",g)))});return Wl(()=>{_(),m()}),{size:Lu(()=>p.value?`${l.value}px`:Wv(e.size)),isResizing:u,isHorizontal:s}}const fM=["aria-label","aria-labelledby","aria-describedby"],gM=["id","aria-level"],mM=["aria-label"],_M=["id"];var vM=sl({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:uM,emits:pM,setup(e,{expose:t,emit:i}){const a=e,n=i,s=Sc();Dv({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Lu(()=>!!s.title));const o=mo(),r=mo(),l=mo(),c=ib("drawer"),{t:d}=Qv(),{afterEnter:u,afterLeave:p,beforeLeave:h,visible:f,rendered:g,titleId:m,bodyId:_,zIndex:v,onModalClick:b,onOpenAutoFocus:y,onCloseAutoFocus:x,onFocusoutPrevented:S,onCloseRequested:w,handleClose:C}=iM(a,o),{isHorizontal:E,size:k,isResizing:T}=hM(a,l,n),A=Lu(()=>a.modalPenetrable&&!a.modal);return t({handleClose:C}),(t,i)=>(zd(),Kd(Hr,{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},[iu(np,{name:xo(c).b("fade"),onAfterEnter:xo(u),onAfterLeave:xo(p),onBeforeLeave:xo(h),persisted:""},{default:vr(()=>[br(iu(xo(JO),{mask:e.modal,"overlay-class":[xo(c).is("drawer"),e.modalClass??"",`${xo(c).namespace.value}-modal-drawer`,xo(c).is("penetrable",A.value)],"z-index":xo(v),onClick:xo(b)},{default:vr(()=>[iu(xo(RC),{loop:"",trapped:xo(f),"focus-trap-el":o.value,"focus-start-el":r.value,onFocusAfterTrapped:xo(y),onFocusAfterReleased:xo(x),onFocusoutPrevented:xo(S),onReleaseRequested:xo(w)},{default:vr(()=>[tu("div",uu({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:xo(m),"aria-describedby":xo(_)},t.$attrs,{class:[xo(c).b(),e.direction,xo(f)&&"open",xo(c).is("dragging",xo(T))],style:{[xo(E)?"width":"height"]:xo(k)},role:"dialog",onClick:i[1]||(i[1]=Ah(()=>{},["stop"]))}),[tu("span",{ref_key:"focusStartRef",ref:r,class:se(xo(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(zd(),qd("header",{key:0,class:se([xo(c).e("header"),e.headerClass])},[t.$slots.title?rc(t.$slots,"title",{key:1},()=>[ru(" DEPRECATED SLOT ")]):rc(t.$slots,"header",{key:0,close:xo(C),titleId:xo(m),titleClass:xo(c).e("title")},()=>[tu("span",{id:xo(m),role:"heading","aria-level":e.headerAriaLevel,class:se(xo(c).e("title"))},me(e.title),11,gM)]),e.showClose?(zd(),qd("button",{key:2,"aria-label":xo(d)("el.drawer.close"),class:se(xo(c).e("close-btn")),type:"button",onClick:i[0]||(i[0]=(...e)=>xo(C)&&xo(C)(...e))},[iu(xo(KS),{class:se(xo(c).e("close"))},{default:vr(()=>[iu(xo(Lx))]),_:1},8,["class"])],10,mM)):ru("v-if",!0)],2)):ru("v-if",!0),xo(g)?(zd(),qd("div",{key:1,id:xo(_),class:se([xo(c).e("body"),e.bodyClass])},[rc(t.$slots,"default")],10,_M)):ru("v-if",!0),t.$slots.footer?(zd(),qd("div",{key:2,class:se([xo(c).e("footer"),e.footerClass])},[rc(t.$slots,"footer")],2)):ru("v-if",!0),e.resizable?(zd(),qd("div",{key:3,ref_key:"draggerRef",ref:l,style:ee({zIndex:xo(v)}),class:se(xo(c).e("dragger"))},null,6)):ru("v-if",!0)],16,fM)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[yp,xo(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});const bM=px(vM),yM=W_({trigger:{...FC.trigger,type:[String,Array]},triggerKeys:{type:Array,default:()=>[l.enter,l.numpadEnter,l.space,l.down]},virtualTriggering:FC.virtualTriggering,virtualRef:FC.virtualRef,effect:{...PC.effect,default:"light"},type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:PC.popperClass,popperStyle:PC.popperStyle,disabled:Boolean,role:{type:String,values:XS,default:"menu"},buttonProps:{type:Object},teleported:PC.teleported,appendTo:PC.appendTo,persistent:{type:Boolean,default:!0}}),xM=W_({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:YS}}),SM=W_({onKeydown:{type:Function}}),wM=Symbol("elDropdown"),CM="elDropdown";var EM=AC(sl({inheritAttrs:!1}),[["render",function(e,t,i,a,n,s){return rc(e.$slots,"default")}]]);var kM=AC(sl({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,i,a,n,s){return rc(e.$slots,"default")}]]);const TM="data-el-collection-item",AM=W_({style:{type:[String,Array,Object,Boolean],default:void 0},currentTabId:{type:String},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:String},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:RM,ElCollectionItem:IM,COLLECTION_INJECTION_KEY:DM,COLLECTION_ITEM_INJECTION_KEY:OM}=(e=>{const t=`El${e}Collection`,i=`${t}Item`,a=Symbol(t),n=Symbol(i);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:n,ElCollection:Object.assign({},EM,{name:t,setup(){const e=mo(),t=new Map;xr(a,{itemMap:t,getItems:()=>{const i=xo(e);if(!i)return[];const a=Array.from(i.querySelectorAll(`[${TM}]`));return[...t.values()].sort((e,t)=>a.indexOf(e.ref)-a.indexOf(t.ref))},collectionRef:e})}}),ElCollectionItem:Object.assign({},kM,{name:i,setup(e,{attrs:t}){const i=mo(),s=Sr(a,void 0);xr(n,{collectionItemRef:i}),zl(()=>{const e=xo(i);e&&s.itemMap.set(e,{ref:e,...t})}),Wl(()=>{const e=xo(i);s.itemMap.delete(e)})}})}})("RovingFocusGroup"),MM=Symbol("elRovingFocusGroup"),NM=Symbol("elRovingFocusGroupItem"),LM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},PM=e=>{const{activeElement:t}=document;for(const i of e){if(i===t)return;if(i.focus(),t!==document.activeElement)return}},FM="currentTabIdChange",BM="rovingFocusGroup.entryFocus",$M={bubbles:!1,cancelable:!0};var VM=sl({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:AM,emits:[FM,"entryFocus"],setup(e,{emit:t}){const i=mo((e.currentTabId||e.defaultCurrentTabId)??null),a=mo(!1),n=mo(!1),s=mo(),{getItems:o}=Sr(DM,void 0),r=Lu(()=>[{outline:"none"},e.style]),l=lb(t=>{var i;null==(i=e.onMousedown)||i.call(e,t)},()=>{n.value=!0}),c=lb(t=>{var i;null==(i=e.onFocus)||i.call(e,t)},e=>{const t=!xo(n),{target:s,currentTarget:r}=e;if(s===r&&t&&!xo(a)){const e=new Event(BM,$M);if(null==r||r.dispatchEvent(e),!e.defaultPrevented){const e=o().filter(e=>e.focusable);PM([e.find(e=>e.active),e.find(e=>e.id===xo(i)),...e].filter(Boolean).map(e=>e.ref))}}n.value=!1}),d=lb(t=>{var i;null==(i=e.onBlur)||i.call(e,t)},()=>{a.value=!1});xr(MM,{currentTabbedId:ao(i),loop:Io(e,"loop"),tabIndex:Lu(()=>xo(a)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:r,orientation:Io(e,"orientation"),dir:Io(e,"dir"),onItemFocus:e=>{t(FM,e)},onItemShiftTab:()=>{a.value=!0},onBlur:d,onFocus:c,onMousedown:l,onKeydown:t=>{const i=(e=>{const t=db(e);return LM[t]})(t);if(i){t.preventDefault();let s=o().filter(e=>e.focusable).map(e=>e.ref);switch(i){case"last":s.reverse();break;case"prev":case"next":{"prev"===i&&s.reverse();const o=s.indexOf(t.currentTarget);s=e.loop?(n=o+1,(a=s).map((e,t)=>a[(t+n)%a.length])):s.slice(o+1);break}}ir(()=>{PM(s)})}var a,n}}),Rr(()=>e.currentTabId,e=>{i.value=e??null}),vv(s,BM,(...e)=>{t("entryFocus",...e)})}});var UM=AC(sl({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:RM,ElRovingFocusGroupImpl:AC(VM,[["render",function(e,t,i,a,n,s){return rc(e.$slots,"default")}]])}}),[["render",function(e,t,i,a,n,s){const o=Jl("el-roving-focus-group-impl"),r=Jl("el-focus-group-collection");return zd(),Kd(r,null,{default:vr(()=>[iu(o,oe(au(e.$attrs)),{default:vr(()=>[rc(e.$slots,"default")]),_:3},16)]),_:3})}]]),HM=sl({components:{ElRovingFocusCollectionItem:IM},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:i,onItemFocus:a,onItemShiftTab:n,onKeydown:s}=Sr(MM,void 0),o=Vy(),r=mo(),c=lb(e=>{t("mousedown",e)},t=>{e.focusable?a(xo(o)):t.preventDefault()}),d=lb(e=>{t("focus",e)},()=>{a(xo(o))}),u=lb(e=>{t("keydown",e)},e=>{const{shiftKey:t,target:i,currentTarget:a}=e;db(e)===l.tab&&t?n():i===a&&s(e)}),p=Lu(()=>i.value===xo(o));return xr(NM,{rovingFocusGroupItemRef:r,tabIndex:Lu(()=>xo(p)?0:-1),handleMousedown:c,handleFocus:d,handleKeydown:u}),{id:o,handleKeydown:u,handleFocus:d,handleMousedown:c}}});var zM=AC(HM,[["render",function(e,t,i,a,n,s){const o=Jl("el-roving-focus-collection-item");return zd(),Kd(o,{id:e.id,focusable:e.focusable,active:e.active},{default:vr(()=>[rc(e.$slots,"default")]),_:3},8,["id","focusable","active"])}]]),YM=UM;const{ButtonGroup:GM}=Sk;var WM=sl({name:"ElDropdown",components:{ElButton:Sk,ElButtonGroup:GM,ElScrollbar:SE,ElTooltip:ZC,ElRovingFocusGroup:YM,ElOnlyChild:aw,ElIcon:KS,ArrowDown:_x},props:yM,emits:["visible-change","click","command"],setup(e,{emit:t}){const i=_u(),a=ib("dropdown"),{t:n}=Qv(),s=mo(),o=mo(),r=mo(),l=mo(),c=mo(null),d=mo(null),u=mo(!1),p=Lu(()=>({maxHeight:Wv(e.maxHeight)})),h=Lu(()=>[a.m(v.value)]),f=Lu(()=>Bi(e.trigger)),g=Vy().value,m=Lu(()=>e.id||g);function _(){var e;null==(e=r.value)||e.onClose()}const v=mw();xr(wM,{contentRef:l,role:Lu(()=>e.role),triggerId:m,isUsingKeyboard:u,onItemEnter:function(){},onItemLeave:function(){const e=xo(l);f.value.includes("hover")&&(null==e||e.focus({preventScroll:!0})),d.value=null},handleClose:_}),xr(CM,{instance:i,dropdownSize:v,handleClick:function(){var e;null==(e=r.value)||e.onClose(void 0,0)},commandHandler:function(...e){t("command",...e)},trigger:Io(e,"trigger"),hideOnClick:Io(e,"hideOnClick")});return{t:n,ns:a,scrollbar:c,wrapStyle:p,dropdownTriggerKls:h,dropdownSize:v,triggerId:m,currentTabId:d,handleCurrentTabIdChange:function(e){d.value=e},handlerMainButtonClick:e=>{t("click",e)},handleClose:_,handleOpen:function(){var e;null==(e=r.value)||e.onOpen()},handleBeforeShowTooltip:function(){t("visible-change",!0)},handleShowTooltip:function(e){var t;u.value="keydown"===(null==e?void 0:e.type),null==(t=l.value)||t.focus()},handleBeforeHideTooltip:function(){t("visible-change",!1)},popperRef:r,contentRef:l,triggeringElementRef:s,referenceElementRef:o}}});var jM=AC(WM,[["render",function(e,t,i,a,n,s){const o=Jl("el-roving-focus-group"),r=Jl("el-scrollbar"),l=Jl("el-only-child"),c=Jl("el-tooltip"),d=Jl("el-button"),u=Jl("arrow-down"),p=Jl("el-icon"),h=Jl("el-button-group");return zd(),qd("div",{class:se([e.ns.b(),e.ns.is("disabled",e.disabled)])},[iu(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":"hover"===e.trigger?e.showTimeout:0,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},oc({content:vr(()=>[iu(r,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:vr(()=>[iu(o,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:vr(()=>[rc(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:vr(()=>[iu(l,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:vr(()=>[rc(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(zd(),Kd(h,{key:0},{default:vr(()=>[iu(d,uu({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:vr(()=>[rc(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),iu(d,uu({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:vr(()=>[iu(p,{class:se(e.ns.e("icon"))},{default:vr(()=>[iu(u)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ru("v-if",!0)],2)}]]),qM=sl({name:"DropdownItemImpl",components:{ElIcon:KS},props:xM,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const i=ib("dropdown"),{role:a}=Sr(wM,void 0),{collectionItemRef:n}=Sr(OM,void 0),{rovingFocusGroupItemRef:s,tabIndex:o,handleFocus:r,handleKeydown:c,handleMousedown:d}=Sr(NM,void 0),u=aM(n,s),p=Lu(()=>"menu"===a.value?"menuitem":"navigation"===a.value?"link":"button"),h=lb(e=>{const i=db(e);if([l.enter,l.numpadEnter,l.space].includes(i))return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0},c);return{ns:i,itemRef:u,dataset:{[TM]:""},role:p,tabIndex:o,handleFocus:r,handleKeydown:h,handleMousedown:d}}});const KM=["aria-disabled","tabindex","role"];var XM=AC(qM,[["render",function(e,t,i,a,n,s){const o=Jl("el-icon");return zd(),qd(Fd,null,[e.divided?(zd(),qd("li",{key:0,role:"separator",class:se(e.ns.bem("menu","item","divided"))},null,2)):ru("v-if",!0),tu("li",uu({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=Ah((...t)=>e.handleKeydown&&e.handleKeydown(...t),["self"])),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon||e.$slots.icon?(zd(),Kd(o,{key:0},{default:vr(()=>[rc(e.$slots,"icon",{},()=>[(zd(),Kd(tc(e.icon)))])]),_:3})):ru("v-if",!0),rc(e.$slots,"default")],16,KM)],64)}]]);const ZM=()=>{const e=Sr(CM,{});return{elDropdown:e,_elDropdownSize:Lu(()=>null==e?void 0:e.dropdownSize)}};var QM=sl({name:"ElDropdownItem",components:{ElRovingFocusItem:zM,ElDropdownItemImpl:XM},inheritAttrs:!1,props:xM,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:i}){const{elDropdown:a}=ZM(),n=_u(),{onItemEnter:s,onItemLeave:o}=Sr(wM,void 0),r=lb(e=>(t("pointermove",e),e.defaultPrevented),cb(t=>{if(e.disabled)return void o(t);const i=t.currentTarget;i===document.activeElement||i.contains(document.activeElement)||(s(t),t.defaultPrevented||null==i||i.focus({preventScroll:!0}))})),l=lb(e=>(t("pointerleave",e),e.defaultPrevented),cb(o));return{handleClick:lb(i=>{if(!e.disabled)return t("click",i),"keydown"!==i.type&&i.defaultPrevented},t=>{var i,s,o;e.disabled?t.stopImmediatePropagation():((null==(i=null==a?void 0:a.hideOnClick)?void 0:i.value)&&(null==(s=a.handleClick)||s.call(a)),null==(o=a.commandHandler)||o.call(a,e.command,n,t))}),handlePointerMove:r,handlePointerLeave:l,propsAndAttrs:Lu(()=>({...e,...i}))}}});var JM=AC(QM,[["render",function(e,t,i,a,n,s){const o=Jl("el-dropdown-item-impl"),r=Jl("el-roving-focus-item");return zd(),Kd(r,{focusable:!e.disabled},{default:vr(()=>[iu(o,uu(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),oc({default:vr(()=>[rc(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:vr(()=>[rc(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}]]),eN=sl({name:"ElDropdownMenu",props:SM,setup(e){const t=ib("dropdown"),{_elDropdownSize:i}=ZM(),a=i.value,{contentRef:n,role:s,triggerId:o,isUsingKeyboard:r,handleClose:c}=Sr(wM,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:u,onBlur:p,onFocus:h,onKeydown:f,onMousedown:g}=Sr(MM,void 0),{collectionRef:m}=Sr(DM,void 0),_=Lu(()=>[t.b("menu"),t.bm("menu",null==a?void 0:a.value)]),v=aM(n,d,m),b=lb(t=>{var i;null==(i=e.onKeydown)||i.call(e,t)},e=>{const{currentTarget:t,target:i}=e,a=db(e);if(t.contains(i),l.tab===a)return c();f(e)});return{size:a,rovingFocusGroupRootStyle:u,dropdownKls:_,role:s,triggerId:o,dropdownListWrapperRef:v,handleKeydown:b,onBlur:p,handleFocus:function(e){r.value&&h(e)},onMousedown:g}}});const tN=["role","aria-labelledby"];var iN=AC(eN,[["render",function(e,t,i,a,n,s){return zd(),qd("ul",{ref:e.dropdownListWrapperRef,class:se(e.dropdownKls),style:ee(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onFocusout:t[1]||(t[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onKeydown:t[2]||(t[2]=Ah((...t)=>e.handleKeydown&&e.handleKeydown(...t),["self"])),onMousedown:t[3]||(t[3]=Ah((...t)=>e.onMousedown&&e.onMousedown(...t),["self"]))},[rc(e.$slots,"default")],46,tN)}]]);const aN=px(jM,{DropdownItem:JM,DropdownMenu:iN}),nN=fx(JM),sN=fx(iN),oN=W_({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),rN={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},lN=["id"],cN=["stop-color"],dN=["stop-color"],uN=["id"],pN=["stop-color"],hN=["stop-color"],fN=["id"],gN={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},mN={transform:"translate(-1268.000000, -535.000000)"},_N={transform:"translate(1268.000000, 535.000000)"},vN=["fill"],bN=["fill"],yN={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},xN=["fill"],SN=["fill"],wN=["fill"],CN=["fill"],EN=["fill"],kN={transform:"translate(53.000000, 45.000000)"},TN=["fill","xlink:href"],AN=["fill","mask"],RN=["fill"];var IN=sl({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ib("empty"),i=Vy();return(e,a)=>(zd(),qd("svg",rN,[tu("defs",null,[tu("linearGradient",{id:`linearGradient-1-${xo(i)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[tu("stop",{"stop-color":`var(${xo(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,cN),tu("stop",{"stop-color":`var(${xo(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,dN)],8,lN),tu("linearGradient",{id:`linearGradient-2-${xo(i)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[tu("stop",{"stop-color":`var(${xo(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,pN),tu("stop",{"stop-color":`var(${xo(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,hN)],8,uN),tu("rect",{id:`path-3-${xo(i)}`,x:"0",y:"0",width:"17",height:"36"},null,8,fN)]),tu("g",gN,[tu("g",mN,[tu("g",_N,[tu("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${xo(t).cssVarBlockName("fill-color-3")})`},null,8,vN),tu("polygon",{fill:`var(${xo(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,bN),tu("g",yN,[tu("polygon",{fill:`var(${xo(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,xN),tu("polygon",{fill:`var(${xo(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,SN),tu("rect",{fill:`url(#linearGradient-1-${xo(i)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,wN),tu("polygon",{fill:`var(${xo(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,CN)]),tu("rect",{fill:`url(#linearGradient-2-${xo(i)})`,x:"13",y:"45",width:"40",height:"36"},null,8,EN),tu("g",kN,[tu("use",{fill:`var(${xo(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${xo(i)}`},null,8,TN),tu("polygon",{fill:`var(${xo(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${xo(i)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,AN)]),tu("polygon",{fill:`var(${xo(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,RN)])])])]))}});const DN=["src"],ON={key:1};var MN=sl({name:"ElEmpty",__name:"empty",props:oN,setup(e){const t=e,{t:i}=Qv(),a=ib("empty"),n=Lu(()=>t.description||i("el.table.emptyText")),s=Lu(()=>({width:Wv(t.imageSize)}));return(t,i)=>(zd(),qd("div",{class:se(xo(a).b())},[tu("div",{class:se(xo(a).e("image")),style:ee(s.value)},[e.image?(zd(),qd("img",{key:0,src:e.image,ondragstart:"return false"},null,8,DN)):rc(t.$slots,"image",{key:1},()=>[iu(IN)])],6),tu("div",{class:se(xo(a).e("description"))},[t.$slots.description?rc(t.$slots,"description",{key:0}):(zd(),qd("p",ON,me(n.value),1))],2),t.$slots.default?(zd(),qd("div",{key:0,class:se(xo(a).e("bottom"))},[rc(t.$slots,"default")],2)):ru("v-if",!0)],2))}});const NN=px(MN),LN=Symbol("elPaginationKey"),PN=W_({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:YS}}),FN=["disabled","aria-label","aria-disabled"],BN={key:0};var $N=sl({name:"ElPaginationPrev",__name:"prev",props:PN,emits:{click:e=>e instanceof MouseEvent},setup(e){const t=e,{t:i}=Qv(),a=Lu(()=>t.disabled||t.currentPage<=1);return(e,t)=>(zd(),qd("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":e.prevText||xo(i)("el.pagination.prev"),"aria-disabled":a.value,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?(zd(),qd("span",BN,me(e.prevText),1)):(zd(),Kd(xo(KS),{key:1},{default:vr(()=>[(zd(),Kd(tc(e.prevIcon)))]),_:1}))],8,FN))}}),VN=$N;const UN=W_({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:YS}}),HN=["disabled","aria-label","aria-disabled"],zN={key:0};var YN=sl({name:"ElPaginationNext",__name:"next",props:UN,emits:["click"],setup(e){const t=e,{t:i}=Qv(),a=Lu(()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount);return(e,t)=>(zd(),qd("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":e.nextText||xo(i)("el.pagination.next"),"aria-disabled":a.value,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?(zd(),qd("span",zN,me(e.nextText),1)):(zd(),Kd(xo(KS),{key:1},{default:vr(()=>[(zd(),Kd(tc(e.nextIcon)))]),_:1}))],8,HN))}}),GN=YN;const WN=()=>Sr(LN,{});var jN=sl({name:"ElPaginationSizes",__name:"sizes",props:W_({pageSize:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},popperClass:{type:String},popperStyle:{type:[String,Object]},disabled:Boolean,teleported:Boolean,size:{type:String,values:p},appendSizeTo:String}),emits:["page-size-change"],setup(e,{emit:t}){const i=e,a=t,{t:n}=Qv(),s=ib("pagination"),o=WN(),r=mo(i.pageSize);Rr(()=>i.pageSizes,(e,t)=>{_n(e,t)||C(e)&&a("page-size-change",e.includes(i.pageSize)?i.pageSize:i.pageSizes[0])}),Rr(()=>i.pageSize,e=>{r.value=e});const l=Lu(()=>i.pageSizes);function c(e){var t;e!==r.value&&(r.value=e,null==(t=o.handleSizeChange)||t.call(o,Number(e)))}return(e,t)=>(zd(),qd("span",{class:se(xo(s).e("sizes"))},[iu(xo(SA),{"model-value":r.value,disabled:e.disabled,"popper-class":e.popperClass,"popper-style":e.popperStyle,size:e.size,teleported:e.teleported,"validate-event":!1,"append-to":e.appendSizeTo,onChange:c},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(l.value,e=>(zd(),Kd(xo(wA),{key:e,value:e,label:e+xo(n)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),qN=jN;const KN=W_({size:{type:String,values:p}}),XN=["disabled"];var ZN=sl({name:"ElPaginationJumper",__name:"jumper",props:KN,setup(e){const{t:t}=Qv(),i=ib("pagination"),{pageCount:a,disabled:n,currentPage:s,changeEvent:o}=WN(),r=mo(),l=Lu(()=>r.value??(null==s?void 0:s.value));function c(e){r.value=e?+e:""}function d(e){e=Math.trunc(+e),null==o||o(e),r.value=void 0}return(e,s)=>(zd(),qd("span",{class:se(xo(i).e("jump")),disabled:xo(n)},[tu("span",{class:se([xo(i).e("goto")])},me(xo(t)("el.pagination.goto")),3),iu(xo(cE),{size:e.size,class:se([xo(i).e("editor"),xo(i).is("in-pagination")]),min:1,max:xo(a),disabled:xo(n),"model-value":l.value,"validate-event":!1,"aria-label":xo(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),tu("span",{class:se([xo(i).e("classifier")])},me(xo(t)("el.pagination.pageClassifier")),3)],10,XN))}}),QN=ZN;const JN=W_({total:{type:Number,default:1e3}}),eL=["disabled"];var tL=sl({name:"ElPaginationTotal",__name:"total",props:JN,setup(e){const{t:t}=Qv(),i=ib("pagination"),{disabled:a}=WN();return(e,n)=>(zd(),qd("span",{class:se(xo(i).e("total")),disabled:xo(a)},me(xo(t)("el.pagination.total",{total:e.total})),11,eL))}}),iL=tL;const aL=W_({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),nL=["aria-current","aria-label","tabindex"],sL=["tabindex","aria-label"],oL=["aria-current","aria-label","tabindex"],rL=["tabindex","aria-label"],lL=["aria-current","aria-label","tabindex"];var cL=sl({name:"ElPaginationPager",__name:"pager",props:aL,emits:[d],setup(e,{emit:t}){const i=e,a=t,n=ib("pager"),s=ib("icon"),{t:o}=Qv(),r=mo(!1),l=mo(!1),c=mo(!1),u=mo(!1),p=mo(!1),h=mo(!1),f=Lu(()=>{const e=i.pagerCount,t=(e-1)/2,a=Number(i.currentPage),n=Number(i.pageCount);let s=!1,o=!1;n>e&&(a>e-t&&(s=!0),a<n-t&&(o=!0));const r=[];if(s&&!o){for(let t=n-(e-2);t<n;t++)r.push(t)}else if(!s&&o)for(let i=2;i<e;i++)r.push(i);else if(s&&o){const t=Math.floor(e/2)-1;for(let e=a-t;e<=a+t;e++)r.push(e)}else for(let i=2;i<n;i++)r.push(i);return r}),g=Lu(()=>["more","btn-quickprev",s.b(),n.is("disabled",i.disabled)]),m=Lu(()=>["more","btn-quicknext",s.b(),n.is("disabled",i.disabled)]),_=Lu(()=>i.disabled?-1:0);function v(e=!1){i.disabled||(e?c.value=!0:u.value=!0)}function b(e=!1){e?p.value=!0:h.value=!0}function y(e){const t=e.target;if("li"===t.tagName.toLowerCase()&&Array.from(t.classList).includes("number")){const e=Number(t.textContent);e!==i.currentPage&&a(d,e)}else"li"===t.tagName.toLowerCase()&&Array.from(t.classList).includes("more")&&x(e)}function x(e){const t=e.target;if("ul"===t.tagName.toLowerCase()||i.disabled)return;let n=Number(t.textContent);const s=i.pageCount,o=i.currentPage,r=i.pagerCount-2;t.className.includes("more")&&(t.className.includes("quickprev")?n=o-r:t.className.includes("quicknext")&&(n=o+r)),Number.isNaN(+n)||(n<1&&(n=1),n>s&&(n=s)),n!==o&&a(d,n)}return Rr(()=>[i.pageCount,i.pagerCount,i.currentPage],([e,t,i])=>{const a=(t-1)/2;let n=!1,s=!1;e>t&&(n=i>t-a,s=i<e-a),c.value&&(c.value=n),u.value&&(u.value=s),r.value=n,l.value=s},{immediate:!0}),(e,t)=>(zd(),qd("ul",{class:se(xo(n).b()),onClick:x,onKeyup:Ih(y,["enter"])},[e.pageCount>0?(zd(),qd("li",{key:0,class:se([[xo(n).is("active",1===e.currentPage),xo(n).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":xo(o)("el.pagination.currentPage",{pager:1}),tabindex:_.value}," 1 ",10,nL)):ru("v-if",!0),r.value?(zd(),qd("li",{key:1,class:se(g.value),tabindex:_.value,"aria-label":xo(o)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:t[0]||(t[0]=e=>v(!0)),onMouseleave:t[1]||(t[1]=e=>c.value=!1),onFocus:t[2]||(t[2]=e=>b(!0)),onBlur:t[3]||(t[3]=e=>p.value=!1)},[!c.value&&!p.value||e.disabled?(zd(),Kd(xo(uS),{key:1})):(zd(),Kd(xo($x),{key:0}))],42,sL)):ru("v-if",!0),(zd(!0),qd(Fd,null,sc(f.value,t=>(zd(),qd("li",{key:t,class:se([[xo(n).is("active",e.currentPage===t),xo(n).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":xo(o)("el.pagination.currentPage",{pager:t}),tabindex:_.value},me(t),11,oL))),128)),l.value?(zd(),qd("li",{key:2,class:se(m.value),tabindex:_.value,"aria-label":xo(o)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:t[4]||(t[4]=e=>v()),onMouseleave:t[5]||(t[5]=e=>u.value=!1),onFocus:t[6]||(t[6]=e=>b()),onBlur:t[7]||(t[7]=e=>h.value=!1)},[!u.value&&!h.value||e.disabled?(zd(),Kd(xo(uS),{key:1})):(zd(),Kd(xo(Vx),{key:0}))],42,rL)):ru("v-if",!0),e.pageCount>1?(zd(),qd("li",{key:3,class:se([[xo(n).is("active",e.currentPage===e.pageCount),xo(n).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":xo(o)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:_.value},me(e.pageCount),11,lL)):ru("v-if",!0)],34))}}),dL=cL;const uL=e=>"number"!=typeof e,pL=W_({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>On(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2==1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},popperClass:{type:String,default:""},popperStyle:{type:[String,Object]},prevText:{type:String,default:""},prevIcon:{type:YS,default:()=>vx},nextText:{type:String,default:""},nextIcon:{type:YS,default:()=>bx},teleported:{type:Boolean,default:!0},small:Boolean,size:ex,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),hL="ElPagination";var fL=sl({name:hL,props:pL,emits:{"update:current-page":e=>On(e),"update:page-size":e=>On(e),"size-change":e=>On(e),change:(e,t)=>On(e)&&On(t),"current-change":e=>On(e),"prev-click":e=>On(e),"next-click":e=>On(e)},setup(e,{emit:t,slots:i}){const{t:a}=Qv(),n=ib("pagination"),s=_u().vnode.props||{},o=ix(),r=Lu(()=>e.small?"small":e.size??o.value);Dv({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},Lu(()=>!!e.small));const l="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,c="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,u=Lu(()=>{if(uL(e.total)&&uL(e.pageCount))return!1;if(!uL(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes"))if(uL(e.pageCount)){if(!uL(e.total)&&!uL(e.pageSize)&&!c)return!1}else if(!c)return!1;return!0}),p=mo(uL(e.defaultPageSize)?10:e.defaultPageSize),h=mo(uL(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=Lu({get:()=>uL(e.pageSize)?p.value:e.pageSize,set(i){uL(e.pageSize)&&(p.value=i),c&&(t("update:page-size",i),t("size-change",i))}}),g=Lu(()=>{let t=0;return uL(e.pageCount)?uL(e.total)||(t=Math.max(1,Math.ceil(e.total/f.value))):t=e.pageCount,t}),m=Lu({get:()=>uL(e.currentPage)?h.value:e.currentPage,set(i){let a=i;i<1?a=1:i>g.value&&(a=g.value),uL(e.currentPage)&&(h.value=a),l&&(t("update:current-page",a),t("current-change",a))}});function _(e){m.value=e}function v(){e.disabled||(m.value-=1,t("prev-click",m.value))}function b(){e.disabled||(m.value+=1,t("next-click",m.value))}function y(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return Rr(g,e=>{m.value>e&&(m.value=e)}),Rr([m,f],e=>{t(d,...e)},{flush:"post"}),xr(LN,{pageCount:g,disabled:Lu(()=>e.disabled),currentPage:m,changeEvent:_,handleSizeChange:function(e){f.value=e;const t=g.value;m.value>t&&(m.value=t)}}),()=>{var t;if(!u.value)return K_(hL,a("el.pagination.deprecationWarning")),null;if(!e.layout)return null;if(e.hideOnSinglePage&&g.value<=1)return null;const s=[],o=[],l=Pu("div",{class:n.e("rightwrapper")},o),c={prev:Pu(VN,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:v}),jumper:Pu(QN,{size:r.value}),pager:Pu(dL,{currentPage:m.value,pageCount:g.value,pagerCount:e.pagerCount,onChange:_,disabled:e.disabled}),next:Pu(GN,{disabled:e.disabled,currentPage:m.value,pageCount:g.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:Pu(qN,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:r.value,appendSizeTo:e.appendSizeTo}),slot:(null==(t=null==i?void 0:i.default)?void 0:t.call(i))??null,total:Pu(iL,{total:uL(e.total)?0:e.total})},d=e.layout.split(",").map(e=>e.trim());let p=!1;return d.forEach(e=>{"->"!==e?p?o.push(c[e]):s.push(c[e]):p=!0}),y(s[0],n.is("first")),y(s[s.length-1],n.is("last")),p&&o.length>0&&(y(o[0],n.is("first")),y(o[o.length-1],n.is("last")),s.push(l)),Pu("div",{class:[n.b(),n.is("background",e.background),n.m(r.value)]},s)}}});const gL=px(fL),mL={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var _L=sl({name:"ElPopconfirm",__name:"popconfirm",props:W_({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:HE,default:"primary"},cancelButtonType:{type:String,values:HE,default:"text"},icon:{type:YS,default:()=>yS},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...PC.effect,default:"light"},teleported:PC.teleported,persistent:PC.persistent,width:{type:[String,Number],default:150},virtualTriggering:FC.virtualTriggering,virtualRef:FC.virtualRef}),emits:mL,setup(e,{expose:t,emit:i}){const a=e,n=i,{t:s}=Qv(),o=ib("popconfirm"),r=mo(),l=mo(),c=Lu(()=>{var e;return null==(e=xo(r))?void 0:e.popperRef}),d=()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.focus)||t.call(e)},u=()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.onClose)||t.call(e)},p=Lu(()=>({width:Wv(a.width)})),h=e=>{n("confirm",e),u()},f=e=>{n("cancel",e),u()},g=Lu(()=>a.confirmButtonText||s("el.popconfirm.confirmButtonText")),m=Lu(()=>a.cancelButtonText||s("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:u}),(t,i)=>(zd(),Kd(xo(ZC),uu({ref_key:"tooltipRef",ref:r,trigger:"click",effect:e.effect},t.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${xo(o).namespace.value}-popover`,"popper-style":p.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:vr(()=>[tu("div",{ref_key:"rootRef",ref:l,tabindex:"-1",class:se(xo(o).b())},[tu("div",{class:se(xo(o).e("main"))},[!e.hideIcon&&e.icon?(zd(),Kd(xo(KS),{key:0,class:se(xo(o).e("icon")),style:ee({color:e.iconColor})},{default:vr(()=>[(zd(),Kd(tc(e.icon)))]),_:1},8,["class","style"])):ru("v-if",!0),su(" "+me(e.title),1)],2),tu("div",{class:se(xo(o).e("action"))},[rc(t.$slots,"actions",{confirm:h,cancel:f},()=>[iu(xo(Sk),{size:"small",type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,onClick:f},{default:vr(()=>[su(me(m.value),1)]),_:1},8,["type","text"]),iu(xo(Sk),{size:"small",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,onClick:h},{default:vr(()=>[su(me(g.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:vr(()=>[t.$slots.reference?rc(t.$slots,"reference",{key:0}):ru("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});const vL=px(_L),bL=W_({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Function,default:e=>`${e}%`}}),yL=["aria-valuenow"],xL={viewBox:"0 0 100 100"},SL=["d","stroke","stroke-linecap","stroke-width"],wL=["d","stroke","opacity","stroke-linecap","stroke-width"],CL={key:0};const EL=px(sl({name:"ElProgress",__name:"progress",props:bL,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},i=e,a=ib("progress"),n=Lu(()=>{const e={width:`${i.percentage}%`,animationDuration:`${i.duration}s`},t=_(i.percentage);return t.includes("gradient")?e.background=t:e.backgroundColor=t,e}),s=Lu(()=>(i.strokeWidth/i.width*100).toFixed(1)),o=Lu(()=>["circle","dashboard"].includes(i.type)?Number.parseInt(""+(50-Number.parseFloat(s.value)/2),10):0),r=Lu(()=>{const e=o.value,t="dashboard"===i.type;return`\n M 50 50\n m 0 ${t?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${t?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${t?"":"-"}${2*e}\n `}),l=Lu(()=>2*Math.PI*o.value),c=Lu(()=>"dashboard"===i.type?.75:1),d=Lu(()=>-1*l.value*(1-c.value)/2+"px"),u=Lu(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:d.value})),p=Lu(()=>({strokeDasharray:`${l.value*c.value*(i.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=Lu(()=>{let e;return e=i.color?_(i.percentage):t[i.status]||t.default,e}),f=Lu(()=>"warning"===i.status?HS:"line"===i.type?"success"===i.status?Dx:Mx:"success"===i.status?Ix:Lx),g=Lu(()=>"line"===i.type?12+.4*i.strokeWidth:.111111*i.width+2),m=Lu(()=>i.format(i.percentage));const _=e=>{var t;const{color:a}=i;if(A(a))return a(e);if(R(a))return a;{const i=function(e){const t=100/e.length;return e.map((e,i)=>R(e)?{color:e,percentage:(i+1)*t}:e).sort((e,t)=>e.percentage-t.percentage)}(a);for(const t of i)if(t.percentage>e)return t.color;return null==(t=i[i.length-1])?void 0:t.color}};return(t,i)=>(zd(),qd("div",{class:se([xo(a).b(),xo(a).m(e.type),xo(a).is(e.status),{[xo(a).m("without-text")]:!e.showText,[xo(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?(zd(),qd("div",{key:0,class:se(xo(a).b("bar"))},[tu("div",{class:se(xo(a).be("bar","outer")),style:ee({height:`${e.strokeWidth}px`})},[tu("div",{class:se([xo(a).be("bar","inner"),{[xo(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[xo(a).bem("bar","inner","striped")]:e.striped},{[xo(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:ee(n.value)},[(e.showText||t.$slots.default)&&e.textInside?(zd(),qd("div",{key:0,class:se(xo(a).be("bar","innerText"))},[rc(t.$slots,"default",{percentage:e.percentage},()=>[tu("span",null,me(m.value),1)])],2)):ru("v-if",!0)],6)],6)],2)):(zd(),qd("div",{key:1,class:se(xo(a).b("circle")),style:ee({height:`${e.width}px`,width:`${e.width}px`})},[(zd(),qd("svg",xL,[tu("path",{class:se(xo(a).be("circle","track")),d:r.value,stroke:`var(${xo(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":s.value,fill:"none",style:ee(u.value)},null,14,SL),tu("path",{class:se(xo(a).be("circle","path")),d:r.value,stroke:h.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":s.value,style:ee(p.value)},null,14,wL)]))],6)),!e.showText&&!t.$slots.default||e.textInside?ru("v-if",!0):(zd(),qd("div",{key:2,class:se(xo(a).e("text")),style:ee({fontSize:`${g.value}px`})},[rc(t.$slots,"default",{percentage:e.percentage},()=>[e.status?(zd(),Kd(xo(KS),{key:1},{default:vr(()=>[(zd(),Kd(tc(f.value)))]),_:1})):(zd(),qd("span",CL,me(m.value),1))])],6))],10,yL))}})),kL=W_({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:[Number,Object]}});var TL=sl({name:"ElSkeletonItem",__name:"skeleton-item",props:W_({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),setup(e){const t=ib("skeleton");return(i,a)=>(zd(),qd("div",{class:se([xo(t).e("item"),xo(t).e(e.variant)])},["image"===e.variant?(zd(),Kd(xo(_S),{key:0})):ru("v-if",!0)],2))}});const AL=px(sl({name:"ElSkeleton",__name:"skeleton",props:kL,setup(e,{expose:t}){const i=e,a=ib("skeleton"),n=((e,t=0)=>{if(0===t)return e;const i=mo(D(t)&&Boolean(t.initVal));let a=null;const n=t=>{In(t)?i.value=e.value:(a&&clearTimeout(a),a=setTimeout(()=>{i.value=e.value},t))},s=e=>{"leading"===e?On(t)?n(t):n(t.leading):D(t)?n(t.trailing):i.value=!1};return zl(()=>s("leading")),Rr(()=>e.value,e=>{s(e?"leading":"trailing")}),i})(Io(i,"loading"),i.throttle);return t({uiLoading:n}),(t,i)=>xo(n)?(zd(),qd("div",uu({key:0,class:[xo(a).b(),xo(a).is("animated",e.animated)]},t.$attrs),[(zd(!0),qd(Fd,null,sc(e.count,i=>(zd(),qd(Fd,{key:i},[xo(n)?rc(t.$slots,"template",{key:i},()=>[iu(TL,{class:se(xo(a).is("first")),variant:"p"},null,8,["class"]),(zd(!0),qd(Fd,null,sc(e.rows,t=>(zd(),Kd(TL,{key:t,class:se([xo(a).e("paragraph"),xo(a).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ru("v-if",!0)],64))),128))],16)):rc(t.$slots,"default",oe(uu({key:1},t.$attrs)))}}),{SkeletonItem:TL});fx(TL);const RL=e=>["",...p].includes(e),IL=W_({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:RL},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:YS},activeActionIcon:{type:YS},activeIcon:{type:YS},inactiveIcon:{type:YS},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Function},id:String,tabindex:{type:[String,Number]},...dx(["ariaLabel"])}),DL=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],OL=["aria-hidden"],ML={key:1},NL={key:1},LL=["aria-hidden"],PL="ElSwitch";var FL=sl({name:PL,__name:"switch",props:IL,emits:{[c]:e=>Dn(e)||R(e)||On(e),[d]:e=>Dn(e)||R(e)||On(e),[u]:e=>Dn(e)||R(e)||On(e)},setup(e,{expose:t,emit:i}){const a=e,n=i,{formItem:s}=vw(),o=mw(),r=ib("switch"),{inputId:l}=bw(a,{formItemContext:s}),p=_w(Lu(()=>{if(a.loading)return!0})),h=mo(!1!==a.modelValue),f=_o(),g=Lu(()=>[r.b(),r.m(o.value),r.is("disabled",p.value),r.is("checked",x.value)]),_=Lu(()=>[r.e("label"),r.em("label","left"),r.is("active",!x.value)]),v=Lu(()=>[r.e("label"),r.em("label","right"),r.is("active",x.value)]),b=Lu(()=>({width:Wv(a.width)}));Rr(()=>a.modelValue,()=>{h.value=!0});const y=Lu(()=>!!h.value&&a.modelValue),x=Lu(()=>y.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(y.value)||(n(c,a.inactiveValue),n(d,a.inactiveValue),n(u,a.inactiveValue)),Rr(x,e=>{var t;f.value.checked=e,a.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"change").catch(m))});const S=()=>{const e=x.value?a.inactiveValue:a.activeValue;n(c,e),n(d,e),n(u,e),ir(()=>{f.value.checked=x.value})},w=()=>{if(p.value)return;const{beforeChange:e}=a;if(!e)return void S();const t=e();[O(t),Dn(t)].includes(!0)||q_(PL,"beforeChange must return type `Promise<boolean>` or `boolean`"),O(t)?t.then(e=>{e&&S()}).catch(e=>{K_(PL,`some error occurred: ${e}`)}):t&&S()};return zl(()=>{f.value.checked=x.value}),t({focus:()=>{var e,t;null==(t=null==(e=f.value)?void 0:e.focus)||t.call(e)},checked:x}),(t,i)=>(zd(),qd("div",{class:se(g.value),onClick:Ah(w,["prevent"])},[tu("input",{id:xo(l),ref_key:"input",ref:f,class:se(xo(r).e("input")),type:"checkbox",role:"switch","aria-checked":x.value,"aria-disabled":xo(p),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:xo(p),tabindex:e.tabindex,onChange:S,onKeydown:Ih(w,["enter"])},null,42,DL),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||t.$slots.inactive)?(zd(),qd("span",{key:0,class:se(_.value)},[rc(t.$slots,"inactive",{},()=>[e.inactiveIcon?(zd(),Kd(xo(KS),{key:0},{default:vr(()=>[(zd(),Kd(tc(e.inactiveIcon)))]),_:1})):ru("v-if",!0),!e.inactiveIcon&&e.inactiveText?(zd(),qd("span",{key:1,"aria-hidden":x.value},me(e.inactiveText),9,OL)):ru("v-if",!0)])],2)):ru("v-if",!0),tu("span",{class:se(xo(r).e("core")),style:ee(b.value)},[e.inlinePrompt?(zd(),qd("div",{key:0,class:se(xo(r).e("inner"))},[x.value?(zd(),qd("div",{key:1,class:se(xo(r).e("inner-wrapper"))},[rc(t.$slots,"active",{},()=>[e.activeIcon?(zd(),Kd(xo(KS),{key:0},{default:vr(()=>[(zd(),Kd(tc(e.activeIcon)))]),_:1})):ru("v-if",!0),!e.activeIcon&&e.activeText?(zd(),qd("span",NL,me(e.activeText),1)):ru("v-if",!0)])],2)):(zd(),qd("div",{key:0,class:se(xo(r).e("inner-wrapper"))},[rc(t.$slots,"inactive",{},()=>[e.inactiveIcon?(zd(),Kd(xo(KS),{key:0},{default:vr(()=>[(zd(),Kd(tc(e.inactiveIcon)))]),_:1})):ru("v-if",!0),!e.inactiveIcon&&e.inactiveText?(zd(),qd("span",ML,me(e.inactiveText),1)):ru("v-if",!0)])],2))],2)):ru("v-if",!0),tu("div",{class:se(xo(r).e("action"))},[e.loading?(zd(),Kd(xo(KS),{key:0,class:se(xo(r).is("loading"))},{default:vr(()=>[iu(xo(oS))]),_:1},8,["class"])):x.value?rc(t.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(zd(),Kd(xo(KS),{key:0},{default:vr(()=>[(zd(),Kd(tc(e.activeActionIcon)))]),_:1})):ru("v-if",!0)]):x.value?ru("v-if",!0):rc(t.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(zd(),Kd(xo(KS),{key:0},{default:vr(()=>[(zd(),Kd(tc(e.inactiveActionIcon)))]),_:1})):ru("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||t.$slots.active)?(zd(),qd("span",{key:1,class:se(v.value)},[rc(t.$slots,"active",{},()=>[e.activeIcon?(zd(),Kd(xo(KS),{key:0},{default:vr(()=>[(zd(),Kd(tc(e.activeIcon)))]),_:1})):ru("v-if",!0),!e.activeIcon&&e.activeText?(zd(),qd("span",{key:1,"aria-hidden":!x.value},me(e.activeText),9,LL)):ru("v-if",!0)])],2)):ru("v-if",!0)],2))}});const BL=px(FL),$L={data:{type:Array,default:()=>[]},size:ex,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array,Boolean],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};let VL=1,UL=1;const HL=function(e){var t;return null==(t=e.target)?void 0:t.closest("td")},zL=function(e,t,i,a,n){if(!t&&!a&&(!n||C(n)&&!n.length))return e;i=R(i)?"descending"===i?-1:1:i&&i<0?-1:1;const s=a?null:function(i,a){return n?hn(Bi(n),t=>R(t)?Ci(i,t):t(i,a,e)):("$key"!==t&&D(i)&&"$value"in i&&(i=i.$value),[D(i)?t?Ci(i,t):null:i])};return e.map((e,t)=>({value:e,index:t,key:s?s(e,t):null})).sort((e,t)=>{let n=function(e,t){var i,n,s,o,r;if(a)return a(e.value,t.value);for(let a=0,l=(null==(i=e.key)?void 0:i.length)??0;a<l;a++){if((null==(n=e.key)?void 0:n[a])<(null==(s=t.key)?void 0:s[a]))return-1;if((null==(o=e.key)?void 0:o[a])>(null==(r=t.key)?void 0:r[a]))return 1}return 0}(e,t);return n||(n=e.index-t.index),n*+i}).map(e=>e.value)},YL=function(e,t){let i=null;return e.columns.forEach(e=>{e.id===t&&(i=e)}),i},GL=function(e,t,i){const a=(t.className||"").match(new RegExp(`${i}-table_[^\\s]+`,"gm"));return a?YL(e,a[0]):null},WL=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(R(t)){if(!t.includes("."))return`${e[t]}`;const i=t.split(".");let a=e;for(const e of i)a=a[e];return`${a}`}return A(t)?t.call(null,e):""},jL=function(e,t,i=!1,a="children"){const n={};return(e||[]).forEach((e,s)=>{if(n[WL(e,t)]={row:e,index:s},i){const i=e[a];C(i)&&Object.assign(n,jL(i,t,!0,a))}}),n};function qL(e){return""===e||In(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function KL(e){return""===e||In(e)||(e=qL(e),Number.isNaN(e)&&(e=80)),e}function XL(e,t,i,a,n,s,o){let r=s??0,l=!1;const c=(()=>{if(!o)return e.indexOf(t);const i=WL(t,o);return e.findIndex(e=>WL(e,o)===i)})(),d=-1!==c,u=null==n?void 0:n.call(null,t,r),p=i=>{"add"===i?e.push(t):e.splice(c,1),l=!0},h=e=>{let t=0;const i=(null==a?void 0:a.children)&&e[a.children];return i&&C(i)&&(t+=i.length,i.forEach(e=>{t+=h(e)})),t};return n&&!u||(Dn(i)?i&&!d?p("add"):!i&&d&&p("remove"):p(d?"remove":"add")),!(null==a?void 0:a.checkStrictly)&&(null==a?void 0:a.children)&&C(t[a.children])&&t[a.children].forEach(t=>{const s=XL(e,t,i??!d,a,n,r+1,o);r+=h(t)+1,s&&(l=s)}),l}function ZL(e,t,i="children",a="hasChildren",n=!1){const s=e=>!(C(e)&&e.length);function o(e,r,l){t(e,r,l),r.forEach(e=>{if(e[a]&&n)return void t(e,null,l+1);const r=e[i];s(r)||o(e,r,l+1)})}e.forEach(e=>{if(e[a]&&n)return void t(e,null,0);const r=e[i];s(r)||o(e,r,0)})}let QL=null;function JL(e,t,i,a,n,s){var o;const r=((e,t,i,a)=>{const n=A(null==a?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:i,column:a,cellValue:Bn(i,a.property).value}):void 0;return Xd(n)?{slotContent:n,content:null,strategy:"fixed",...e}:{slotContent:null,content:n??t,strategy:"fixed",...e}})(e,t,i,a),l={...r,slotContent:void 0};if((null==QL?void 0:QL.trigger)===n){const e=null==(o=QL.vm)?void 0:o.component;return Sn(null==e?void 0:e.props,l),void(e&&r.slotContent&&(e.slots.content=()=>[r.slotContent]))}null==QL||QL();const c=null==s?void 0:s.refs.tableWrapper,d=null==c?void 0:c.dataset.prefix,u=iu(ZC,{virtualTriggering:!0,virtualRef:n,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...l},r.slotContent?{content:()=>r.slotContent}:void 0);u.appContext={...s.appContext,...s};const p=document.createElement("div");Ph(u,p),u.component.exposed.onOpen();const h=null==c?void 0:c.querySelector(`.${d}-scrollbar__wrap`);QL=()=>{var e,t;(null==(t=null==(e=u.component)?void 0:e.exposed)?void 0:t.onClose)&&u.component.exposed.onClose(),Ph(null,p);const i=QL;null==h||h.removeEventListener("scroll",i),i.trigger=void 0,i.vm=void 0,QL=null},QL.trigger=n??void 0,QL.vm=u,null==h||h.addEventListener("scroll",QL)}function eP(e){return e.children?hn(e.children,eP):[e]}function tP(e,t){return e+t.colSpan}const iP=(e,t,i,a)=>{let n=0,s=e;const o=i.states.columns.value;if(a){const t=eP(a[e]);n=o.slice(0,o.indexOf(t[0])).reduce(tP,0),s=n+t.reduce(tP,0)-1}else n=e;let r;switch(t){case"left":s<i.states.fixedLeafColumnsLength.value&&(r="left");break;case"right":n>=o.length-i.states.rightFixedLeafColumnsLength.value&&(r="right");break;default:s<i.states.fixedLeafColumnsLength.value?r="left":n>=o.length-i.states.rightFixedLeafColumnsLength.value&&(r="right")}return r?{direction:r,start:n,after:s}:{}},aP=(e,t,i,a,n,s=0)=>{const o=[],{direction:r,start:l,after:c}=iP(t,i,a,n);if(r){const t="left"===r;o.push(`${e}-fixed-column--${r}`),t&&c+s===a.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):t||l-s!==a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value||o.push("is-first-column")}return o};function nP(e,t){return e+(bn(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const sP=(e,t,i,a)=>{const{direction:n,start:s=0,after:o=0}=iP(e,t,i,a);if(!n)return;const r={},l="left"===n,c=i.states.columns.value;return l?r.left=c.slice(0,s).reduce(nP,0):r.right=c.slice(o+1).reverse().reduce(nP,0),r},oP=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function rP(e){return e.some(e=>!Xd(e)||e.type!==$d&&!(e.type===Fd&&!rP(e.children)))?e:null}const lP=e=>{const t=[];return e.forEach(e=>{e.children&&e.children.length>0?t.push.apply(t,lP(e.children)):t.push(e)}),t};function cP(){var e;const t=_u(),{size:i}=To(null==(e=t.proxy)?void 0:e.$props),a=mo(null),n=mo([]),s=mo([]),o=mo(!1),r=mo([]),l=mo([]),c=mo([]),d=mo([]),u=mo([]),p=mo([]),h=mo([]),f=mo([]),g=mo(0),m=mo(0),_=mo(0),v=mo(!1),b=mo([]),y=mo({}),x=mo(!1),S=mo(!1),E=mo(null),k=mo(null),T=mo({}),A=mo(null),I=mo(null),D=mo(null),O=mo(null),M=mo(null),N=Lu(()=>a.value?jL(b.value,a.value):void 0),L=e=>{var i;const{childrenColumnName:n,lazyTreeNodeMap:s}=t.store.states,o=e[n.value]??[];if(!a.value)return o;const r=WL(e,a.value);return[...(null==(i=s.value)?void 0:i[r])??[],...o]};Rr(n,()=>{var e;t.state&&(B(!1),"auto"===t.props.tableLayout&&(null==(e=t.refs.tableHeaderRef)||e.updateFixedColumnStyle()))},{deep:!0});const P=e=>{var t;null==(t=e.children)||t.forEach(t=>{t.fixed=e.fixed,P(t)})},F=()=>{r.value.forEach(e=>{P(e)}),d.value=r.value.filter(e=>[!0,"left"].includes(e.fixed));const e=r.value.find(e=>"selection"===e.type);let t;e&&"right"!==e.fixed&&!d.value.includes(e)&&0===r.value.indexOf(e)&&d.value.length&&(d.value.unshift(e),t=!0),u.value=r.value.filter(e=>"right"===e.fixed);const i=r.value.filter(e=>!(t&&"selection"===e.type||e.fixed));l.value=Array.from(d.value).concat(i).concat(u.value);const a=lP(i),n=lP(d.value),s=lP(u.value);g.value=a.length,m.value=n.length,_.value=s.length,c.value=Array.from(n).concat(a).concat(s),o.value=d.value.length>0||u.value.length>0},B=(e,i=!1)=>{e&&F(),i?t.state.doLayout():t.state.debouncedUpdateLayout()},$=e=>N.value?!!N.value[WL(e,a.value)]:b.value.includes(e),V=Lu(()=>{const e=new Map;if(!a.value||!E.value)return e;let t=0;const i=n=>{C(n)&&n.forEach(n=>{const s=WL(n,a.value);e.set(s,t),t+=1;const o=L(n);o.length&&i(o)})};return i(n.value||[]),e}),U=(e={})=>{const{emitChange:i=!0}=e;if(ne.checkStrictly.value||!a.value)return void(y.value={});const s=a.value,o=e.rowIndexMap??V.value,r=E.value,l=new WeakMap,c=e=>{const t=l.get(e);if(t)return t;const i=WL(e,s);return l.set(e,i),i},d={},u=new Set(b.value.map(e=>c(e))),p=[];let h=!1;const f=e=>{let t=0,i=0;return C(e)?(e.forEach(e=>{const a=c(e),n=L(e);let s=0,l=0;if(n.length){const e=f(n);s=e.selectedCount,l=e.selectableCount}const g=!r||r.call(null,e,o.get(a)??0);if(g&&l>0){const t=s===l;t||0===s||(d[a]=!0),((e,t,i)=>{const a=u.has(t);i&&!a?(p.push(e),u.add(t),h=!0):!i&&a&&(u.delete(t),h=!0)})(e,a,t)}g&&(i+=1,u.has(a)&&(t+=1)),t+=s,i+=l}),{selectedCount:t,selectableCount:i}):{selectedCount:t,selectableCount:i}};if(f(n.value||[]),h){const e=b.value.filter(e=>u.has(c(e)));p.forEach(t=>{u.has(c(t))&&e.push(t)}),b.value=e}y.value=d,h&&i&&t.emit("selection-change",b.value?b.value.slice():[])},H=(e,i,n)=>{var s;if(!a.value||ne.checkStrictly.value||!ne.lazy.value)return;const{lazyTreeNodeMap:o,childrenColumnName:r}=t.store.states,l=WL(e,a.value),c=(null==(s=o.value)?void 0:s[l])??[],d=e[r.value]??[],u={children:r.value,checkStrictly:!1};for(const t of c){const e=n.get(WL(t,a.value))??0;XL(b.value,t,i,u,E.value,e,a.value),H(t,i,n)}for(const t of d)H(t,i,n)},z=()=>{var e;if(0===(null==(e=n.value)?void 0:e.length))return void(v.value=!1);let t=0,i=0;const a=e=>{for(const n of e){const e=E.value&&E.value.call(null,n,t);if($(n))i++;else if(!E.value||e)return!1;t++;const s=L(n);if(s.length&&!a(s))return!1}return!0},s=a(n.value||[]);v.value=0!==i&&s},Y=e=>{var i;if(!t||!t.store)return 0;const{treeData:a}=t.store.states;let n=0;const s=null==(i=a.value[e])?void 0:i.children;return s&&(n+=s.length,s.forEach(e=>{n+=Y(e)})),n},G=(e,t,i)=>{I.value&&I.value!==e&&(I.value.order=null),I.value=e,D.value=t,O.value=i},W=()=>{let e=xo(s);Object.keys(T.value).forEach(t=>{const i=T.value[t];if(!i||0===i.length)return;const a=YL({columns:c.value},t);a&&a.filterMethod&&(e=e.filter(e=>i.some(t=>a.filterMethod.call(null,t,e,a))))}),A.value=e},j=()=>{n.value=((e,t)=>{const i=t.sortingColumn;return!i||R(i.sortable)?e:zL(e,t.sortProp,t.sortOrder,i.sortMethod,i.sortBy)})(A.value??[],{sortingColumn:I.value,sortProp:D.value,sortOrder:O.value})},{setExpandRowKeys:q,toggleRowExpansion:K,updateExpandRows:X,states:Z,isRowExpanded:Q}=function(e){const t=_u(),i=mo(!1),a=mo([]),n=(e,i)=>{const a=t.store.states.rowExpandable.value;return(null==a?void 0:a(e,i))??!0};return{updateExpandRows:()=>{const s=e.data.value||[],o=e.rowKey.value;if(i.value)a.value=t.store.states.rowExpandable.value?s.filter(n):s.slice();else if(o){const e=jL(a.value,o);a.value=s.filter((t,i)=>!!e[WL(t,o)]&&n(t,i))}else a.value=[]},toggleRowExpansion:(i,s)=>{const o=(e.data.value||[]).indexOf(i);o>-1&&!n(i,o)||XL(a.value,i,s,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",i,a.value.slice())},setExpandRowKeys:i=>{t.store.assertRowKey();const s=e.data.value||[],o=e.rowKey.value,r=jL(s,o);a.value=i.reduce((e,t)=>{const i=r[t];return i&&n(i.row,i.index)&&e.push(i.row),e},[])},isRowExpanded:t=>{const i=e.rowKey.value;return i?!!jL(a.value,i)[WL(t,i)]:a.value.includes(t)},states:{expandRows:a,defaultExpandAll:i}}}({data:n,rowKey:a}),{updateTreeExpandKeys:J,toggleTreeExpansion:ee,updateTreeData:te,updateKeyChildren:ie,loadOrToggle:ae,states:ne}=function(e){const t=mo([]),i=mo({}),a=mo(16),n=mo(!1),s=mo({}),o=mo("hasChildren"),r=mo("children"),l=mo(!1),c=_u(),d=Lu(()=>e.rowKey.value?p(e.data.value||[]):{}),u=Lu(()=>{const t=e.rowKey.value,i=Object.keys(s.value),a={};return i.length?(i.forEach(e=>{if(s.value[e].length){const i={children:[]};s.value[e].forEach(e=>{const n=WL(e,t);i.children.push(n),e[o.value]&&!a[n]&&(a[n]={children:[]})}),a[e]=i}}),a):a}),p=t=>{const i=e.rowKey.value,a={};return ZL(t,(e,t,s)=>{const o=WL(e,i);C(t)?a[o]={children:t.map(e=>WL(e,i)),level:s}:n.value&&(a[o]={children:[],lazy:!0,level:s})},r.value,o.value,n.value),a},h=(e=!1,a)=>{var s,o;a||(a=null==(s=c.store)?void 0:s.states.defaultExpandAll.value);const r=d.value,l=u.value,p=Object.keys(r),h={};if(p.length){const s=xo(i),o=[],c=(i,n)=>{if(e)return t.value?a||t.value.includes(n):!(!a&&!(null==i?void 0:i.expanded));{const e=a||t.value&&t.value.includes(n);return!(!(null==i?void 0:i.expanded)&&!e)}};p.forEach(e=>{const t=s[e],i={...r[e]};if(i.expanded=c(t,e),i.lazy){const{loaded:a=!1,loading:n=!1}=t||{};i.loaded=!!a,i.loading=!!n,o.push(e)}h[e]=i});const d=Object.keys(l);n.value&&d.length&&o.length&&d.forEach(e=>{var t;const i=s[e],a=l[e].children;if(o.includes(e)){if(0!==(null==(t=h[e].children)?void 0:t.length))throw new Error("[ElTable]children must be an empty array.");h[e].children=a}else{const{loaded:t=!1,loading:n=!1}=i||{};h[e]={lazy:!0,loaded:!!t,loading:!!n,expanded:c(i,e),children:a,level:void 0}}})}i.value=h,null==(o=c.store)||o.updateTableScrollY()};Rr(()=>t.value,()=>{h(!0)},{deep:!0}),Rr(()=>d.value,()=>{h()}),Rr(()=>u.value,()=>{h()});const f=e=>n.value&&e&&"loaded"in e&&!e.loaded,g=(t,a)=>{c.store.assertRowKey();const n=e.rowKey.value,s=WL(t,n),o=s&&i.value[s];if(s&&o&&"expanded"in o){const e=o.expanded;a=In(a)?!o.expanded:a,i.value[s].expanded=a,e!==a&&c.emit("expand-change",t,a),a&&f(o)&&m(t,s,o),c.store.updateTableScrollY()}},m=(e,t,a)=>{const{load:n}=c.props;n&&!i.value[t].loaded&&(i.value[t].loading=!0,n(e,a,a=>{if(!C(a))throw new TypeError("[ElTable] data must be an array");i.value[t].loading=!1,i.value[t].loaded=!0,i.value[t].expanded=!0,a.length&&(s.value={...s.value,[t]:a}),c.emit("expand-change",e,!0)}))};return{loadData:m,loadOrToggle:t=>{c.store.assertRowKey();const a=e.rowKey.value,n=WL(t,a),s=i.value[n];f(s)?m(t,n,s):g(t,void 0)},toggleTreeExpansion:g,updateTreeExpandKeys:e=>{t.value=e,h()},updateTreeData:h,updateKeyChildren:(e,t)=>{const{lazy:i,rowKey:a}=c.props;if(i){if(!a)throw new Error("[Table] rowKey is required in updateKeyChild");s.value[e]&&(s.value={...s.value,[e]:t})}},normalize:p,states:{expandRowKeys:t,treeData:i,indent:a,lazy:n,lazyTreeNodeMap:s,lazyColumnIdentifier:o,childrenColumnName:r,checkStrictly:l}}}({data:n,rowKey:a}),{updateCurrentRowData:se,updateCurrentRow:oe,setCurrentRowKey:re,states:le}=function(e){const t=_u(),i=mo(null),a=mo(null),n=()=>{i.value=null},s=i=>{const{data:n,rowKey:s}=e,o=a.value;let r=null;s.value&&(r=(xo(n)||[]).find(e=>WL(e,s.value)===i)??null),a.value=r??null,t.emit("current-change",a.value,o)};return{setCurrentRowKey:e=>{t.store.assertRowKey(),i.value=e,s(e)},restoreCurrentRowKey:n,setCurrentRowByKey:s,updateCurrentRow:e=>{const i=a.value;if(e&&e!==i)return a.value=e,void t.emit("current-change",a.value,i);!e&&i&&(a.value=null,t.emit("current-change",null,i))},updateCurrentRowData:()=>{const o=e.rowKey.value,r=e.data.value||[],l=a.value;l&&!r.includes(l)?o?s(WL(l,o)):(a.value=null,t.emit("current-change",null,l)):i.value&&(s(i.value),n())},states:{_currentRowKey:i,currentRow:a}}}({data:n,rowKey:a});return Rr(()=>ne.checkStrictly.value,e=>{e?y.value={}:U({emitChange:!1}),z()}),Rr(()=>ne.lazyTreeNodeMap.value,()=>{var e;if(!ne.lazy.value||ne.checkStrictly.value||!a.value)return;const i=V.value,n=b.value.length;for(const t of Object.keys(ne.lazyTreeNodeMap.value))(null==(e=N.value)?void 0:e[t])&&H(N.value[t].row,!0,i);const s=b.value.length!==n;U({emitChange:!s,rowIndexMap:i}),z(),s&&t.emit("selection-change",[...b.value])}),{assertRowKey:()=>{if(!a.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:F,scheduleLayout:B,isSelected:$,clearSelection:()=>{v.value=!1;const e=b.value;b.value=[],y.value={},e.length&&t.emit("selection-change",[])},cleanSelection:()=>{var e,i;let s;if(a.value){s=[];const o=null==(i=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:i.childrenColumnName.value,r=jL(n.value,a.value,!0,o),{lazyTreeNodeMap:l}=t.store.states;l.value&&Object.entries(l.value).forEach(([e,t])=>{r[e]&&t.forEach(e=>{const t=WL(e,a.value);r[t]||(r[t]={row:e,index:-1})})});for(const e in N.value)w(N.value,e)&&!r[e]&&s.push(N.value[e].row)}else s=b.value.filter(e=>!n.value.includes(e));if(s.length){const e=b.value.filter(e=>!s.includes(e));b.value=e,U({emitChange:!1}),t.emit("selection-change",[...e])}},getSelectionRows:()=>(b.value||[]).slice(),toggleRowSelection:(e,i,s=!0,o=!1)=>{var r,l,c,d;const u={children:null==(l=null==(r=null==t?void 0:t.store)?void 0:r.states)?void 0:l.childrenColumnName.value,checkStrictly:null==(d=null==(c=null==t?void 0:t.store)?void 0:c.states)?void 0:d.checkStrictly.value};if(XL(b.value,e,i,u,o?void 0:E.value,n.value.indexOf(e),a.value)){ne.lazy.value&&!ne.checkStrictly.value?(H(e,i??$(e),V.value),U({emitChange:!1,rowIndexMap:V.value})):U({emitChange:!1});const a=(b.value||[]).slice();s&&t.emit("select",a,e),t.emit("selection-change",a)}},_toggleAllSelection:()=>{var e,i;const a=S.value?!v.value:!(v.value||b.value.length);v.value=a;let s=!1,o=0;const r=null==(i=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:i.rowKey.value,{childrenColumnName:l}=t.store.states,c={children:l.value,checkStrictly:!1};n.value.forEach((e,t)=>{const i=t+o;XL(b.value,e,a,c,E.value,i,r)&&(s=!0),o+=Y(WL(e,r))});const d=V.value;if(ne.lazy.value&&!ne.checkStrictly.value&&r)for(const t of Object.values(ne.lazyTreeNodeMap.value))for(const e of t){const t=d.get(WL(e,r))??0;XL(b.value,e,a,c,E.value,t,r)&&(s=!0),H(e,a,d)}U({emitChange:!1,rowIndexMap:d}),s&&t.emit("selection-change",b.value?[...b.value]:[]),t.emit("select-all",(b.value||[]).slice())},toggleAllSelection:null,updateAllSelected:z,updateSelectionByChildren:U,getRowIndeterminate:e=>{if(!a.value)return!1;const t=WL(e,a.value);return!!y.value[t]},updateFilters:(e,t)=>{const i={};return Bi(e).forEach(e=>{T.value[e.id]=t,i[e.columnKey||e.id]=t}),i},updateCurrentRow:oe,updateSort:G,execFilter:W,execSort:j,execQuery:(e=void 0)=>{(null==e?void 0:e.filter)||W(),j()},clearFilter:e=>{const{tableHeaderRef:i}=t.refs;if(!i)return;const a=Object.assign({},i.filterPanels),n=Object.keys(a);if(n.length)if(R(e)&&(e=[e]),C(e)){const i=e.map(e=>function(e,t){let i=null;for(let a=0;a<e.columns.length;a++){const n=e.columns[a];if(n.columnKey===t){i=n;break}}return i||q_("ElTable",`No column matching with column-key: ${t}`),i}({columns:c.value},e));n.forEach(e=>{const t=i.find(t=>t.id===e);t&&(t.filteredValue=[])}),t.store.commit("filterChange",{column:i,values:[],silent:!0,multi:!0})}else n.forEach(e=>{const t=c.value.find(t=>t.id===e);t&&(t.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:()=>{I.value&&(G(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:K,setExpandRowKeysAdapter:e=>{q(e),J(e)},setCurrentRowKey:re,toggleRowExpansionAdapter:(e,t)=>{c.value.some(({type:e})=>"expand"===e)?K(e,t):ee(e,t)},isRowExpanded:Q,updateExpandRows:X,updateCurrentRowData:se,loadOrToggle:ae,updateTreeData:te,updateKeyChildren:ie,states:{tableSize:i,rowKey:a,data:n,_data:s,isComplex:o,_columns:r,originColumns:l,columns:c,fixedColumns:d,rightFixedColumns:u,leafColumns:p,fixedLeafColumns:h,rightFixedLeafColumns:f,updateOrderFns:[],leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:_,isAllSelected:v,selection:b,selectionIndeterminate:y,reserveSelection:x,selectOnIndeterminate:S,selectable:E,rowExpandable:k,filters:T,filteredData:A,sortingColumn:I,sortProp:D,sortOrder:O,hoverRow:M,...Z,...ne,...le}}}function dP(e,t){return e.map(e=>{var i;return e.id===t.id?t:((null==(i=e.children)?void 0:i.length)&&(e.children=dP(e.children,t)),e)})}function uP(e){e.forEach(e=>{var t,i;e.no=null==(t=e.getColumnIndex)?void 0:t.call(e),(null==(i=e.children)?void 0:i.length)&&uP(e.children)}),e.sort((e,t)=>e.no-t.no)}const pP={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function hP(e,t){if(!e)throw new Error("Table is required.");const i=function(){const e=_u(),t=cP(),i=ib("table"),{t:a}=Qv();return{ns:i,t:a,...t,mutations:{setData(t,i){const a=xo(t._data)!==i;t.data.value=i,t._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),xo(t.reserveSelection)?e.store.assertRowKey():a?e.store.clearSelection():e.store.cleanSelection(),e.store.updateSelectionByChildren({emitChange:!1}),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,i,a,n){var s;const o=xo(t._columns);let r=[];a?(a&&!a.children&&(a.children=[]),null==(s=a.children)||s.push(i),r=dP(o,a)):(o.push(i),r=o),uP(r),t._columns.value=r,t.updateOrderFns.push(n),"selection"===i.type&&(t.selectable.value=i.selectable,t.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,i){var a;(null==(a=i.getColumnIndex)?void 0:a.call(i))!==i.no&&(uP(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,i,a,n){var s;const o=xo(t._columns)||[];if(a)null==(s=a.children)||s.splice(a.children.findIndex(e=>e.id===i.id),1),ir(()=>{var e;0===(null==(e=a.children)?void 0:e.length)&&delete a.children}),t._columns.value=dP(o,a);else{const e=o.indexOf(i);e>-1&&(o.splice(e,1),t._columns.value=o)}const r=t.updateOrderFns.indexOf(n);r>-1&&t.updateOrderFns.splice(r,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,i){const{prop:a,order:n,init:s}=i;if(a){const i=xo(t.columns).find(e=>e.property===a);i&&(i.order=n,e.store.updateSort(i,a,n),e.store.commit("changeSortCondition",{init:s}))}},changeSortCondition(t,i){const{sortingColumn:a,sortProp:n,sortOrder:s}=t,o=xo(a),r=xo(n),l=xo(s);bn(l)&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),i&&(i.silent||i.init)||e.emit("sort-change",{column:o,prop:r,order:l}),e.store.updateTableScrollY()},filterChange(t,i){const{column:a,values:n,silent:s}=i,o=e.store.updateFilters(a,n);e.store.execQuery(),s||e.emit("filter-change",o),e.store.updateTableScrollY()},toggleAllSelection(){var t,i;null==(i=(t=e.store).toggleAllSelection)||i.call(t)},rowSelectedChanged(t,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,i){e.store.updateCurrentRow(i)}},commit:function(t,...i){const a=e.store.mutations;if(!a[t])throw new Error(`Action not found: ${t}`);a[t].apply(e,[e.store.states,...i])},updateTableScrollY:function(){ir(()=>e.layout.updateScrollY.apply(e.layout))}}}();return i.toggleAllSelection=rn(i._toggleAllSelection,10),Object.keys(pP).forEach(e=>{fP(gP(t,e),e,i)}),function(e,t){Object.keys(pP).forEach(i=>{Rr(()=>gP(t,i),t=>{fP(t,i,e)})})}(i,t),i}function fP(e,t,i){let a=e,n=pP[t];D(n)&&(a=a||n.default,n=n.key),i.states[n].value=a}function gP(e,t){if(t.includes(".")){const i=t.split(".");let a=e;return i.forEach(e=>{a=a[e]}),a}return e[t]}var mP=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.heightMap={},this.height=mo(null),this.scrollX=mo(!1),this.scrollY=mo(!1),this.bodyWidth=mo(null),this.fixedWidth=mo(null),this.rightFixedWidth=mo(null),this.gutterWidth=0;for(const t in e)w(e,t)&&(go(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(bn(this.height.value))return!1;const e=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==e?void 0:e.wrapRef)){let t=!0;const i=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,i!==t}return!1}setHeight(e,t="height"){if(!av)return;const i=this.table.vnode.el;var a;e=On(a=e)?a:R(a)?/^\d+(?:px)?$/.test(a)?Number.parseInt(a,10):a:null,this.height.value=Number(e),this.heightMap[t]=e,i||!e&&0!==e?i&&On(e)?(i.style[t]=`${e}px`,this.updateElsHeight()):i&&R(e)&&(i.style[t]=e,this.updateElsHeight()):ir(()=>{this.heightMap[t]===e&&this.setHeight(e,t)})}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){var e;if(!av)return;const t=this.fit,i=null==(e=this.table.vnode.el)?void 0:e.clientWidth;let a=0;const n=this.getFlattenColumns(),s=n.filter(e=>!On(e.width));if(n.forEach(e=>{On(e.width)&&e.realWidth&&(e.realWidth=null)}),s.length>0&&t){if(n.forEach(e=>{a+=Number(e.width||e.minWidth||80)}),a<=i){this.scrollX.value=!1;const e=i-a;if(1===s.length)s[0].realWidth=Number(s[0].minWidth||80)+e;else{const t=e/s.reduce((e,t)=>e+Number(t.minWidth||80),0);let i=0;s.forEach((e,a)=>{if(0===a)return;const n=Math.floor(Number(e.minWidth||80)*t);i+=n,e.realWidth=Number(e.minWidth||80)+n}),s[0].realWidth=Number(s[0].minWidth||80)+e-i}}else this.scrollX.value=!0,s.forEach(e=>{e.realWidth=Number(e.minWidth)});this.bodyWidth.value=Math.max(a,i),this.table.state.resizeState.value.width=this.bodyWidth.value}else n.forEach(e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,a+=e.realWidth}),this.scrollX.value=a>i,this.bodyWidth.value=a;const o=this.store.states.fixedColumns.value;if(o.length>0){let e=0;o.forEach(t=>{e+=Number(t.realWidth||t.width)}),this.fixedWidth.value=e}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let e=0;r.forEach(t=>{e+=Number(t.realWidth||t.width)}),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{var i,a;switch(e){case"columns":null==(i=t.state)||i.onColumnsChange(this);break;case"scrollable":null==(a=t.state)||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const _P=Symbol("ElTable"),vP=e=>{const t=[];return e.forEach(e=>{e.children?(t.push(e),t.push.apply(t,vP(e.children))):t.push(e)}),t},bP=e=>{let t=1;const i=(e,a)=>{if(a&&(e.level=a.level+1,t<e.level&&(t=e.level)),e.children){let t=0;e.children.forEach(a=>{i(a,e),t+=a.colSpan}),e.colSpan=t}else e.colSpan=1};e.forEach(e=>{e.level=1,i(e,void 0)});const a=[];for(let n=0;n<t;n++)a.push([]);return vP(e).forEach(e=>{e.children?(e.rowSpan=1,e.children.forEach(e=>e.isSubColumn=!0)):e.rowSpan=t-e.level+1,a[e.level-1].push(e)}),a};var yP=sl({name:"ElTableFilterPanel",components:{ElCheckbox:AR,ElCheckboxGroup:RR,ElScrollbar:SE,ElTooltip:ZC,ElIcon:KS,ArrowDown:_x,ArrowUp:yx},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:PC.appendTo},setup(e){const t=_u(),{t:i}=Qv(),a=ib("table-filter"),n=null==t?void 0:t.parent;e.column&&!n.filterPanels.value[e.column.id]&&(n.filterPanels.value[e.column.id]=t);const s=mo(null),o=mo(null),r=mo(0),c=Lu(()=>e.column&&e.column.filters),d=Lu(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),u=Lu({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{p.value&&(Ln(e)?p.value.splice(0,1):p.value.splice(0,1,e))}}),p=Lu({get:()=>e.column&&e.column.filteredValue||[],set(t){var i;e.column&&(null==(i=e.upDataColumn)||i.call(e,"filteredValue",t))}}),h=Lu(()=>!e.column||e.column.filterMultiple),f=()=>{var e;null==(e=s.value)||e.onClose()},g=(e,t)=>{u.value=e,r.value=t,Ln(e)?m([]):m(p.value),f()},m=t=>{var i,a;null==(i=e.store)||i.commit("filterChange",{column:e.column,values:t}),null==(a=e.store)||a.updateAllSelected()},_=()=>{if(Ln(u))return void(r.value=0);const e=(c.value||[]).findIndex(e=>e.value===u.value);r.value=e>=0?e+1:0};return{multiple:h,filterClassName:d,filteredValue:p,filterValue:u,filters:c,handleConfirm:()=>{m(p.value),f()},handleReset:()=>{p.value=[],m(p.value),f()},handleSelect:g,isPropAbsent:Ln,isActive:e=>e.value===u.value,t:i,ns:a,tooltipRef:s,rootRef:o,checkedIndex:r,handleShowTooltip:()=>{var t,i;null==(t=o.value)||t.focus(),!h.value&&_(),e.column&&(null==(i=e.upDataColumn)||i.call(e,"filterOpened",!0))},handleHideTooltip:()=>{var t;e.column&&(null==(t=e.upDataColumn)||t.call(e,"filterOpened",!1))},handleKeydown:e=>{var t,i;const n=db(e),s=(c.value?c.value.length:0)+1;let d=r.value,u=!0;switch(n){case l.down:case l.right:d=(d+1)%s;break;case l.up:case l.left:d=(d-1+s)%s;break;case l.tab:f(),u=!1;break;case l.enter:case l.space:if(0===d)g(null,0);else{const e=(c.value||[])[d-1];e.value&&g(e.value,d)}break;default:u=!1}u&&e.preventDefault(),r.value=d,null==(i=null==(t=o.value)?void 0:t.querySelector(`.${a.e("list-item")}:nth-child(${d+1})`))||i.focus()}}}});const xP=["disabled"],SP=["tabindex","aria-checked"],wP=["tabindex","aria-checked","onClick"],CP=["aria-label"];var EP=AC(yP,[["render",function(e,t,i,a,n,s){const o=Jl("el-checkbox"),r=Jl("el-checkbox-group"),l=Jl("el-scrollbar"),c=Jl("arrow-up"),d=Jl("arrow-down"),u=Jl("el-icon"),p=Jl("el-tooltip");return zd(),Kd(p,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:vr(()=>[e.multiple?(zd(),qd("div",{key:0,ref:"rootRef",tabindex:"-1",class:se(e.ns.e("multiple"))},[tu("div",{class:se(e.ns.e("content"))},[iu(l,{"wrap-class":e.ns.e("wrap")},{default:vr(()=>[iu(r,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:se(e.ns.e("checkbox-group"))},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.filters,e=>(zd(),Kd(o,{key:e.value,value:e.value},{default:vr(()=>[su(me(e.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),tu("div",{class:se(e.ns.e("bottom"))},[tu("button",{class:se(e.ns.is("disabled",0===e.filteredValue.length)),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=(...t)=>e.handleConfirm&&e.handleConfirm(...t))},me(e.t("el.table.confirmFilter")),11,xP),tu("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},me(e.t("el.table.resetFilter")),1)],2)],2)):(zd(),qd("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:se(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[tu("li",{role:"radio",class:se([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:0===e.checkedIndex?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=t=>e.handleSelect(null,0))},me(e.t("el.table.clearFilter")),11,SP),(zd(!0),qd(Fd,null,sc(e.filters,(t,i)=>(zd(),qd("li",{key:t.value,role:"radio",class:se([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),tabindex:e.checkedIndex===i+1?0:-1,"aria-checked":e.isActive(t),onClick:a=>e.handleSelect(t.value,i+1)},me(t.text),11,wP))),128))],34))]),default:vr(()=>{var t;return[tu("button",{type:"button",class:se(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:(null==(t=e.column)?void 0:t.label)||""})},[iu(u,null,{default:vr(()=>[rc(e.$slots,"filter-icon",{},()=>{var t;return[(null==(t=e.column)?void 0:t.filterOpened)?(zd(),Kd(c,{key:0})):(zd(),Kd(d,{key:1}))]})]),_:3})],10,CP)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}]]);function kP(e){const t=_u();Hl(()=>{i.value.addObserver(t)}),zl(()=>{a(i.value),n(i.value)}),Gl(()=>{a(i.value),n(i.value)}),jl(()=>{i.value.removeObserver(t)});const i=Lu(()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t}),a=t=>{var i;const a=(null==(i=e.vnode.el)?void 0:i.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const n=t.getFlattenColumns(),s={};n.forEach(e=>{s[e.id]=e});for(let e=0,o=a.length;e<o;e++){const t=a[e],i=s[t.getAttribute("name")];i&&t.setAttribute("width",i.realWidth||i.width)}},n=t=>{var i,a;const n=(null==(i=e.vnode.el)?void 0:i.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,o=n.length;e<o;e++)n[e].setAttribute("width",t.scrollY.value?t.gutterWidth:"0");const s=(null==(a=e.vnode.el)?void 0:a.querySelectorAll("th.gutter"))||[];for(let e=0,o=s.length;e<o;e++){const i=s[e];i.style.width=t.scrollY.value?`${t.gutterWidth}px`:"0",i.style.display=t.scrollY.value?"":"none"}};return{tableLayout:i.value,onColumnsChange:a,onScrollableChange:n}}var TP=sl({name:"ElTableHeader",components:{ElCheckbox:AR},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const i=_u(),a=Sr(_P),n=ib("table"),s=mo({}),{onColumnsChange:o,onScrollableChange:r}=kP(a),l="auto"===(null==a?void 0:a.props.tableLayout),c=to(new Map),d=mo();let u;const p=()=>{u=setTimeout(()=>{c.size>0&&(c.forEach((e,t)=>{const i=d.value.querySelector(`.${t.replace(/\s/g,".")}`);i&&(e.width=i.getBoundingClientRect().width||e.width)}),c.clear())})};Rr(c,p),Wl(()=>{u&&(clearTimeout(u),u=void 0)}),zl(async()=>{await ir(),await ir();const{prop:t,order:i}=e.defaultSort;null==a||a.store.commit("sort",{prop:t,order:i,init:!0}),p()});const{handleHeaderClick:h,handleHeaderContextMenu:f,handleMouseDown:g,handleMouseMove:m,handleMouseOut:_,handleSortClick:v,handleFilterClick:b}=function(e,t){const i=_u(),a=Sr(_P),n=e=>{e.stopPropagation()},s=mo(null),o=mo(!1),r=mo(),l=(t,i,n)=>{var s;t.stopPropagation();const o=i.order===n?null:n||(({order:e,sortOrders:t})=>{if(""===e)return t[0];const i=t.indexOf(e||null);return t[i>t.length-2?0:i+1]})(i),r=null==(s=t.target)?void 0:s.closest("th");if(r&&Hv(r,"noclick"))return void Yv(r,"noclick");if(!i.sortable)return;const l=t.currentTarget;if(["ascending","descending"].some(e=>Hv(l,e)&&!i.sortOrders.includes(e)))return;const c=e.store.states;let d,u=c.sortProp.value;const p=c.sortingColumn.value;(p!==i||p===i&&bn(p.order))&&(p&&(p.order=null),c.sortingColumn.value=i,u=i.property??null),d=i.order=o||null,c.sortProp.value=u,c.sortOrder.value=d,null==a||a.store.commit("changeSortCondition")};return{handleHeaderClick:(e,t)=>{!t.filters&&t.sortable?l(e,t,!1):t.filterable&&!t.sortable&&n(e),null==a||a.emit("header-click",t,e)},handleHeaderContextMenu:(e,t)=>{null==a||a.emit("header-contextmenu",t,e)},handleMouseDown:(n,l)=>{var c,d,u;if(av&&!(l.children&&l.children.length>0)&&s.value&&e.border&&s.value.id===l.id){o.value=!0;const p=a;t("set-drag-visible",!0);const h=null==(c=null==p?void 0:p.vnode.el)?void 0:c.getBoundingClientRect().left,f=null==(u=null==(d=null==i?void 0:i.vnode)?void 0:d.el)?void 0:u.querySelector(`th.${l.id}`),g=f.getBoundingClientRect(),m=g.left-h+30;zv(f,"noclick"),r.value={startMouseLeft:n.clientX,startLeft:g.right-h,startColumnLeft:g.left-h,tableLeft:h};const _=null==p?void 0:p.refs.resizeProxy;_.style.left=`${r.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const v=e=>{const t=e.clientX-r.value.startMouseLeft,i=r.value.startLeft+t;_.style.left=`${Math.max(m,i)}px`},b=()=>{if(o.value){const{startColumnLeft:i,startLeft:a}=r.value;l.width=l.realWidth=Number.parseInt(_.style.left,10)-i,null==p||p.emit("header-dragend",l.width,a-i,l,n),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",o.value=!1,s.value=null,r.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Yv(f,"noclick")},0)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",b)}},handleMouseMove:(t,i)=>{var a;if(!e.border||i.children&&i.children.length>0)return;const n=t.target,r=Nn(n)?n.closest("th"):null;if(!r)return;const l=Hv(r,"is-sortable");if(l){const e=o.value?"col-resize":"";r.style.cursor=e;const t=r.querySelector(".caret-wrapper");t&&(t.style.cursor=e)}if(!i.resizable||o.value)return void(s.value=null);const c=r.getBoundingClientRect(),d=(null==(a=r.parentNode)?void 0:a.lastElementChild)===r,u=e.allowDragLastColumn||!d,p=c.width>12&&c.right-t.clientX<8&&u,h=p?"col-resize":"";document.body.style.cursor=h,s.value=p?i:null,l&&(r.style.cursor=h)},handleMouseOut:()=>{av&&!o.value&&(document.body.style.cursor="")},handleSortClick:l,handleFilterClick:n}}(e,t),{getHeaderRowStyle:y,getHeaderRowClass:x,getHeaderCellStyle:S,getHeaderCellClass:w}=function(e){const t=Sr(_P),i=ib("table");return{getHeaderRowStyle:e=>{const i=null==t?void 0:t.props.headerRowStyle;return A(i)?i.call(null,{rowIndex:e}):i},getHeaderRowClass:e=>{const i=[],a=null==t?void 0:t.props.headerRowClassName;return R(a)?i.push(a):A(a)&&i.push(a.call(null,{rowIndex:e})),i.join(" ")},getHeaderCellStyle:(i,a,n,s)=>{let o=(null==t?void 0:t.props.headerCellStyle)??{};A(o)&&(o=o.call(null,{rowIndex:i,columnIndex:a,row:n,column:s}));const r=sP(a,s.fixed,e.store,n);return oP(r,"left"),oP(r,"right"),Object.assign({},o,r)},getHeaderCellClass:(a,n,s,o)=>{const r=aP(i.b(),n,o.fixed,e.store,s),l=[o.id,o.order,o.headerAlign,o.className,o.labelClassName,...r];o.children||l.push("is-leaf"),o.sortable&&l.push("is-sortable");const c=null==t?void 0:t.props.headerCellClassName;return R(c)?l.push(c):A(c)&&l.push(c.call(null,{rowIndex:a,columnIndex:n,row:s,column:o})),l.push(i.e("cell")),l.filter(e=>Boolean(e)).join(" ")}}}(e),{isGroup:C,toggleAllSelection:E,columnRows:k}=function(e){const t=Sr(_P),i=Lu(()=>bP(e.store.states.originColumns.value));return{isGroup:Lu(()=>{const e=i.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e}),toggleAllSelection:e=>{e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:i}}(e),{t:T}=Qv();return i.state={onColumnsChange:o,onScrollableChange:r},i.filterPanels=s,{ns:n,t:T,filterPanels:s,onColumnsChange:o,onScrollableChange:r,columnRows:k,getHeaderRowClass:x,getHeaderRowStyle:y,getHeaderCellClass:w,getHeaderCellStyle:S,handleHeaderClick:h,handleHeaderContextMenu:f,handleMouseDown:g,handleMouseMove:m,handleMouseOut:_,handleSortClick:v,handleFilterClick:b,isGroup:C,toggleAllSelection:E,saveIndexSelection:c,isTableLayoutAuto:l,theadRef:d,updateFixedColumnStyle:p}},render(){const{ns:e,t:t,isGroup:i,columnRows:a,getHeaderCellStyle:n,getHeaderCellClass:s,getHeaderRowClass:o,getHeaderRowStyle:r,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:u,handleSortClick:p,handleMouseOut:h,store:f,$parent:g,saveIndexSelection:m,isTableLayoutAuto:_}=this;let v=1;return Pu("thead",{ref:"theadRef",class:e.is("group",i)},a.map((e,i)=>Pu("tr",{class:o(i),key:i,style:r(i)},e.map((a,o)=>{a.rowSpan>v&&(v=a.rowSpan);const r=s(i,o,e,a);return _&&a.fixed&&m.set(r,a),Pu("th",{class:r,colspan:a.colSpan,key:`${a.id}-thead`,rowspan:a.rowSpan,scope:a.colSpan>1?"colgroup":"col",ariaSort:a.sortable?a.order:void 0,style:n(i,o,e,a),onClick:e=>{var t;(null==(t=e.currentTarget)?void 0:t.classList.contains("noclick"))||l(e,a)},onContextmenu:e=>c(e,a),onMousedown:e=>d(e,a),onMousemove:e=>u(e,a),onMouseout:h},[Pu("div",{class:["cell",a.filteredValue&&a.filteredValue.length>0?"highlight":""]},[a.renderHeader?a.renderHeader({column:a,$index:o,store:f,_self:g}):a.label,a.sortable&&Pu("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:a.label||""}),onClick:e=>p(e,a)},[Pu("i",{onClick:e=>p(e,a,"ascending"),class:"sort-caret ascending"}),Pu("i",{onClick:e=>p(e,a,"descending"),class:"sort-caret descending"})]),a.filterable&&Pu(EP,{store:f,placement:a.filterPlacement||"bottom-start",appendTo:null==g?void 0:g.appendFilterPanelTo,column:a,upDataColumn:(e,t)=>{a[e]=t}},{"filter-icon":()=>a.renderFilterIcon?a.renderFilterIcon({filterOpened:a.filterOpened}):null})])])}))))}});function AP(e){const t=Sr(_P),i=mo(""),a=mo(Pu("div")),n=(i,a,n)=>{var s,o;const r=t,l=HL(i);let c=null;const d=null==(s=null==r?void 0:r.vnode.el)?void 0:s.dataset.prefix;l&&(c=GL({columns:(null==(o=e.store)?void 0:o.states.columns.value)??[]},l,d),c&&(null==r||r.emit(`cell-${n}`,a,c,l,i))),null==r||r.emit(`row-${n}`,a,c,i)},s=rn(t=>{var i;null==(i=e.store)||i.commit("setHoverRow",t)},30),o=rn(()=>{var t;null==(t=e.store)||t.commit("setHoverRow",null)},30),r=(e,t,i)=>{var a;let n=null==(a=null==t?void 0:t.target)?void 0:a.parentNode;for(;e>1&&(n=null==n?void 0:n.nextSibling,n&&"TR"===n.nodeName);)i(n,"hover-row hover-fixed-row"),e--};return{handleDoubleClick:(e,t)=>{n(e,t,"dblclick")},handleClick:(t,i)=>{var a;null==(a=e.store)||a.commit("setCurrentRow",i),n(t,i,"click")},handleContextMenu:(e,t)=>{n(e,t,"contextmenu")},handleMouseEnter:s,handleMouseLeave:o,handleCellMouseEnter:(i,a,n)=>{var s,o,l;if(!t)return;const c=t,d=HL(i),u=null==(s=null==c?void 0:c.vnode.el)?void 0:s.dataset.prefix;let p=null;if(d){if(p=GL({columns:(null==(o=e.store)?void 0:o.states.columns.value)??[]},d,u),!p)return;d.rowSpan>1&&r(d.rowSpan,i,zv);const t=c.hoverState={cell:d,column:p,row:a};null==c||c.emit("cell-mouse-enter",t.row,t.column,t.cell,i)}if(!n)return void((null==QL?void 0:QL.trigger)===d&&(null==QL||QL()));const h=i.target.querySelector(".cell");if(!(Hv(h,`${u}-tooltip`)&&h.childNodes.length&&(null==(l=h.textContent)?void 0:l.trim())))return;const f=document.createRange();f.setStart(h,0),f.setEnd(h,h.childNodes.length);const{width:g,height:m}=f.getBoundingClientRect(),{width:_,height:v}=h.getBoundingClientRect(),{top:b,left:y,right:x,bottom:S}=(e=>{const t=window.getComputedStyle(e,null);return{left:Number.parseInt(t.paddingLeft,10)||0,right:Number.parseInt(t.paddingRight,10)||0,top:Number.parseInt(t.paddingTop,10)||0,bottom:Number.parseInt(t.paddingBottom,10)||0}})(h),w=b+S;gE(g+(y+x),_)||gE(m+w,v)||gE(h.scrollWidth,_)?JL(n,((null==d?void 0:d.innerText)||(null==d?void 0:d.textContent))??"",a,p,d,c):(null==QL?void 0:QL.trigger)===d&&(null==QL||QL())},handleCellMouseLeave:e=>{const i=HL(e);if(!i)return;i.rowSpan>1&&r(i.rowSpan,e,Yv);const a=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==a?void 0:a.row,null==a?void 0:a.column,null==a?void 0:a.cell,e)},tooltipContent:i,tooltipTrigger:a}}const RP=["colspan","rowspan"];var IP=sl({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup:e=>(t,i)=>(zd(),qd("td",{colspan:e.colspan,rowspan:e.rowspan},[rc(t.$slots,"default")],8,RP))});function DP(e){const t=Sr(_P),i=ib("table"),{handleDoubleClick:a,handleClick:n,handleContextMenu:s,handleMouseEnter:o,handleMouseLeave:r,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:u}=AP(e),{getRowStyle:p,getRowClass:h,getCellStyle:f,getCellClass:g,getSpan:m,getColspanRealWidth:_}=function(e){const t=Sr(_P),i=ib("table");return{getRowStyle:(e,i)=>{const a=null==t?void 0:t.props.rowStyle;return A(a)?a.call(null,{row:e,rowIndex:i}):a||null},getRowClass:(a,n,s)=>{var o;const r=[i.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&a===(null==(o=e.store)?void 0:o.states.currentRow.value)&&r.push("current-row"),e.stripe&&s%2==1&&r.push(i.em("row","striped"));const l=null==t?void 0:t.props.rowClassName;return R(l)?r.push(l):A(l)&&r.push(l.call(null,{row:a,rowIndex:n})),r},getCellStyle:(i,a,n,s)=>{const o=null==t?void 0:t.props.cellStyle;let r=o??{};A(o)&&(r=o.call(null,{rowIndex:i,columnIndex:a,row:n,column:s}));const l=sP(a,null==e?void 0:e.fixed,e.store);return oP(l,"left"),oP(l,"right"),Object.assign({},r,l)},getCellClass:(a,n,s,o,r)=>{const l=aP(i.b(),n,null==e?void 0:e.fixed,e.store,void 0,r),c=[o.id,o.align,o.className,...l],d=null==t?void 0:t.props.cellClassName;return R(d)?c.push(d):A(d)&&c.push(d.call(null,{rowIndex:a,columnIndex:n,row:s,column:o})),c.push(i.e("cell")),c.filter(e=>Boolean(e)).join(" ")},getSpan:(e,i,a,n)=>{let s=1,o=1;const r=null==t?void 0:t.props.spanMethod;if(A(r)){const t=r({row:e,column:i,rowIndex:a,columnIndex:n});C(t)?(s=t[0],o=t[1]):D(t)&&(s=t.rowspan,o=t.colspan)}return{rowspan:s,colspan:o}},getColspanRealWidth:(e,t,i)=>{if(t<1)return e[i].realWidth;const a=e.map(({realWidth:e,width:t})=>e||t).slice(i,i+t);return Number(a.reduce((e,t)=>Number(e)+Number(t),-1))}}}(e);let v=-1;const b=Lu(()=>{var t;return null==(t=e.store)?void 0:t.states.columns.value.findIndex(({type:e})=>"default"===e)}),y=(e,i)=>{var a;const n=null==(a=null==t?void 0:t.props)?void 0:a.rowKey;return n?WL(e,n):i},x=(d,u,x,w=!1)=>{const{tooltipEffect:C,tooltipOptions:E,store:k}=e,{indent:T,columns:A}=k.states,R=[];let I=!0;return x&&(R.push(i.em("row",`level-${x.level}`)),I=!!x.display),0===u&&(v=-1),e.stripe&&I&&v++,R.push(...h(d,u,v)),Pu("tr",{style:[I?null:{display:"none"},p(d,u)],class:R,key:y(d,u),onDblclick:e=>a(e,d),onClick:e=>n(e,d),onContextmenu:e=>s(e,d),onMouseenter:()=>o(u),onMouseleave:r},A.value.map((i,a)=>{const{rowspan:n,colspan:s}=m(d,i,u,a);if(!n||!s)return null;const o=Object.assign({},i);o.realWidth=_(A.value,s,a);const r={store:k,_self:e.context||t,column:o,row:d,$index:u,cellIndex:a,expanded:w};a===b.value&&x&&(r.treeNode={indent:x.level&&x.level*T.value,level:x.level},Dn(x.expanded)&&(r.treeNode.expanded=x.expanded,"loading"in x&&(r.treeNode.loading=x.loading),"noLazyChildren"in x&&(r.treeNode.noLazyChildren=x.noLazyChildren)));const p=`${y(d,u)},${a}`,h=o.columnKey||o.rawColumnKey||"",v=i.showOverflowTooltip&&Sn({effect:C},E,i.showOverflowTooltip);return Pu(IP,{style:f(u,a,d,i),class:g(u,a,d,i,s-1),key:`${h}${p}`,rowspan:n,colspan:s,onMouseenter:e=>l(e,d,v),onMouseleave:c},{default:()=>S(a,i,r)})}))},S=(e,t,i)=>t.renderCell(i);return{wrappedRowRender:(a,n)=>{const s=e.store,{isRowExpanded:o,assertRowKey:r}=s,{treeData:l,lazyTreeNodeMap:c,childrenColumnName:d,rowKey:u}=s.states,p=s.states.columns.value;if(p.some(({type:e})=>"expand"===e)){const e=o(a),r=x(a,n,void 0,e),l=null==t?void 0:t.renderExpanded;if(!l)return r;const c=[[r]];return(t.props.preserveExpandedContent||e)&&c[0].push(Pu("tr",{key:`expanded-row__${r.key}`,style:{display:e?"":"none"}},[Pu("td",{colspan:p.length,class:`${i.e("cell")} ${i.e("expanded-cell")}`},[l({row:a,$index:n,store:s,expanded:e})])])),c}if(Object.keys(l.value).length){r();const e=WL(a,u.value);let t=l.value[e],i=null;t&&(i={expanded:t.expanded,level:t.level,display:!0,noLazyChildren:void 0,loading:void 0},Dn(t.lazy)&&(i&&Dn(t.loaded)&&t.loaded&&(i.noLazyChildren=!(t.children&&t.children.length)),i.loading=t.loading));const s=[x(a,n,i??void 0)];if(t){let i=0;const o=(e,a)=>{e&&e.length&&a&&e.forEach(e=>{const r={display:a.display&&a.expanded,level:a.level+1,expanded:!1,noLazyChildren:!1,loading:!1},p=WL(e,u.value);if(Ln(p))throw new Error("For nested data item, row-key is required.");t={...l.value[p]},t&&(r.expanded=t.expanded,t.level=t.level||r.level,t.display=!(!t.expanded||!r.display),Dn(t.lazy)&&(Dn(t.loaded)&&t.loaded&&(r.noLazyChildren=!(t.children&&t.children.length)),r.loading=t.loading)),i++,s.push(x(e,n+i,r)),t&&o(c.value[p]||e[d.value],t)})};t.display=!0,o(c.value[e]||a[d.value],t)}return s}return x(a,n,void 0)},tooltipContent:d,tooltipTrigger:u}}var OP=sl({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){var t;const i=_u(),a=Sr(_P),n=ib("table"),{wrappedRowRender:s,tooltipContent:o,tooltipTrigger:r}=DP(e),{onColumnsChange:l,onScrollableChange:c}=kP(a),d=[];return Rr(null==(t=e.store)?void 0:t.states.hoverRow,(t,a)=>{var s,o;const r=null==i?void 0:i.vnode.el,l=Array.from((null==r?void 0:r.children)||[]).filter(e=>null==e?void 0:e.classList.contains(`${n.e("row")}`));let c=t;const u=null==(s=l[c])?void 0:s.childNodes;if(null==u?void 0:u.length){let e=0;Array.from(u).reduce((t,i,a)=>{var n,s;return(null==(n=u[a])?void 0:n.colSpan)>1&&(e=null==(s=u[a])?void 0:s.colSpan),"TD"!==i.nodeName&&0===e&&t.push(a),e>0&&e--,t},[]).forEach(e=>{var i;for(c=t;c>0;){const t=null==(i=l[c-1])?void 0:i.childNodes;if(t[e]&&"TD"===t[e].nodeName&&t[e].rowSpan>1){zv(t[e],"hover-cell"),d.push(t[e]);break}c--}})}else d.forEach(e=>Yv(e,"hover-cell")),d.length=0;(null==(o=e.store)?void 0:o.states.isComplex.value)&&av&&ab(()=>{const e=l[a],i=l[t];e&&!e.classList.contains("hover-fixed-row")&&Yv(e,"hover-row"),i&&zv(i,"hover-row")})}),jl(()=>{null==QL||QL()}),{ns:n,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:s,tooltipContent:o,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this;return Pu("tbody",{tabIndex:-1},[((null==t?void 0:t.states.data.value)||[]).reduce((t,i)=>t.concat(e(i,t.length)),[])])}});function MP(e){const{columns:t}=function(){var e;const t=null==(e=Sr(_P))?void 0:e.store;return{leftFixedLeafCount:Lu(()=>(null==t?void 0:t.states.fixedLeafColumnsLength.value)??0),rightFixedLeafCount:Lu(()=>(null==t?void 0:t.states.rightFixedColumns.value.length)??0),columnsCount:Lu(()=>(null==t?void 0:t.states.columns.value.length)??0),leftFixedCount:Lu(()=>(null==t?void 0:t.states.fixedColumns.value.length)??0),rightFixedCount:Lu(()=>(null==t?void 0:t.states.rightFixedColumns.value.length)??0),columns:Lu(()=>(null==t?void 0:t.states.columns.value)??[])}}(),i=ib("table");return{getCellClasses:(t,a)=>{const n=t[a],s=[i.e("cell"),n.id,n.align,n.labelClassName,...aP(i.b(),a,n.fixed,e.store)];return n.className&&s.push(n.className),n.children||s.push(i.is("leaf")),s},getCellStyles:(t,i)=>{const a=sP(i,t.fixed,e.store);return oP(a,"left"),oP(a,"right"),a},columns:t}}var NP=sl({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Sr(_P),i=ib("table"),{getCellClasses:a,getCellStyles:n,columns:s}=MP(e),{onScrollableChange:o,onColumnsChange:r}=kP(t);return{ns:i,onScrollableChange:o,onColumnsChange:r,getCellClasses:a,getCellStyles:n,columns:s}},render(){const{columns:e,getCellStyles:t,getCellClasses:i,summaryMethod:a,sumText:n}=this,s=this.store.states.data.value;let o=[];return a?o=a({columns:e,data:s}):e.forEach((e,t)=>{if(0===t)return void(o[t]=n);const i=s.map(t=>Number(t[e.property])),a=[];let r=!0;i.forEach(e=>{if(!Number.isNaN(+e)){r=!1;const t=`${e}`.split(".")[1];a.push(t?t.length:0)}});const l=Math.max.apply(null,a);o[t]=r?"":i.reduce((e,t)=>{const i=Number(t);return Number.isNaN(+i)?e:Number.parseFloat((e+t).toFixed(Math.min(l,20)))},0)}),Pu(Pu("tfoot",[Pu("tr",{},[...e.map((a,n)=>Pu("td",{key:n,colspan:a.colSpan,rowspan:a.rowSpan,class:i(e,n),style:t(a,n)},[Pu("div",{class:["cell",a.labelClassName]},[o[n]])]))])]))}});function LP(e,t,i,a){const n=mo(!1),s=mo(null),o=mo(!1),r=mo({width:null,height:null,headerHeight:null}),l=mo(!1),c=mo(),d=mo(0),u=mo(0),p=mo(0),h=mo(0),f=mo(0);Rr(()=>e.height,e=>{t.setHeight(e??null)},{immediate:!0}),Rr(()=>e.maxHeight,e=>{t.setMaxHeight(e??null)},{immediate:!0}),Rr(()=>[e.currentRowKey,i.states.rowKey],([e,t])=>{xo(t)&&xo(e)&&i.setCurrentRowKey(`${e}`)},{immediate:!0}),Rr(()=>e.data,e=>{a.store.commit("setData",e)},{immediate:!0,deep:!0}),kr(()=>{e.expandRowKeys&&i.setExpandRowKeysAdapter(e.expandRowKeys)});const g=Lu(()=>e.height||e.maxHeight||i.states.fixedColumns.value.length>0||i.states.rightFixedColumns.value.length>0),m=Lu(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),_=()=>{g.value&&t.updateElsHeight(),t.updateColumnsWidth(),"undefined"!=typeof window&&requestAnimationFrame(b)};zl(async()=>{await ir(),i.updateColumns(),y(),requestAnimationFrame(_);const t=a.vnode.el,n=a.refs.headerWrapper;e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),r.value={width:c.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&n?n.offsetHeight:null},i.states.columns.value.forEach(e=>{e.filteredValue&&e.filteredValue.length&&a.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})}),a.$ready=!0});const v=e=>{const{tableWrapper:i}=a.refs;((e,i)=>{if(!e)return;const a=Array.from(e.classList).filter(e=>!e.startsWith("is-scrolling-"));a.push(t.scrollX.value?i:"is-scrolling-none"),e.className=a.join(" ")})(i,e)},b=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void((e=>{const{tableWrapper:t}=a.refs;return!(!t||!t.classList.contains(e))})(e)||v(e))}const e=a.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:i,offsetWidth:n,scrollWidth:s}=e,{headerWrapper:o,footerWrapper:r}=a.refs;o&&(o.scrollLeft=i),r&&(r.scrollLeft=i),v(i>=s-n-1?"is-scrolling-right":0===i?"is-scrolling-left":"is-scrolling-middle")},y=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&vv(a.refs.scrollBarRef.wrapRef,"scroll",b,{passive:!0}),e.fit?kv(a.vnode.el,x):vv(window,"resize",x),kv(a.refs.tableInnerWrapper,()=>{var e,t;x(),null==(t=null==(e=a.refs)?void 0:e.scrollBarRef)||t.update()}))},x=()=>{var t,i,n,s;const o=a.vnode.el;if(!a.$ready||!o)return;let l=!1;const{width:m,height:v,headerHeight:b}=r.value,y=c.value=o.offsetWidth;m!==y&&(l=!0);const x=o.offsetHeight;(e.height||g.value)&&v!==x&&(l=!0);const S="fixed"===e.tableLayout?a.refs.headerWrapper:null==(t=a.refs.tableHeaderRef)?void 0:t.$el;e.showHeader&&(null==S?void 0:S.offsetHeight)!==b&&(l=!0),d.value=(null==(i=a.refs.tableWrapper)?void 0:i.scrollHeight)||0,p.value=(null==S?void 0:S.scrollHeight)||0,h.value=(null==(n=a.refs.footerWrapper)?void 0:n.offsetHeight)||0,f.value=(null==(s=a.refs.appendWrapper)?void 0:s.offsetHeight)||0,u.value=d.value-p.value-h.value-f.value,l&&(r.value={width:y,height:x,headerHeight:e.showHeader&&(null==S?void 0:S.offsetHeight)||0},_())},S=mw(),w=Lu(()=>{const{bodyWidth:e,scrollY:i,gutterWidth:a}=t;return e.value?e.value-(i.value?a:0)+"px":""}),C=Lu(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:n,renderExpanded:s,setDragVisible:e=>{o.value=e},isGroup:l,handleMouseLeave:()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},handleHeaderFooterMousewheel:(e,t)=>{const{pixelX:i,pixelY:n}=t;Math.abs(i)>=Math.abs(n)&&(a.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:S,emptyBlockStyle:Lu(()=>{if(e.data&&e.data.length)return;let t="100%";e.height&&u.value&&(t=`${u.value}px`);const i=c.value;return{width:i?`${i}px`:"",height:t}}),resizeProxyVisible:o,bodyWidth:w,resizeState:r,doLayout:_,tableBodyStyles:m,tableLayout:C,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},scrollbarStyle:Lu(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+h.value}px)`}:{maxHeight:+e.maxHeight-p.value-h.value+"px"}:{})}}function PP(e){let t;zl(()=>{(()=>{const i=e.vnode.el.querySelector(".hidden-columns"),a=e.store.states.updateOrderFns;t=new MutationObserver(()=>{a.forEach(e=>e())}),t.observe(i,{childList:!0,subtree:!0})})()}),jl(()=>{null==t||t.disconnect()})}function FP(e){const t="auto"===e.tableLayout;let i=e.columns||[];t&&i.every(({width:e})=>In(e))&&(i=[]);return Pu("colgroup",{},i.map(i=>Pu("col",(i=>{const a={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?a.style={width:`${i.width}px`}:a.name=i.id,a})(i))))}FP.props=["columns","tableLayout"];const BP=["data-prefix"],$P={ref:"hiddenColumns",class:"hidden-columns"};var VP=sl({name:"ElTable",__name:"table",props:$L,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-dblclick","cell-contextmenu","cell-click","row-dblclick","row-click","row-contextmenu","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e,{expose:t}){const i=e,{t:a}=Qv(),n=ib("table"),s=jE("table"),o=_u();xr(_P,o);const r=hP(o,i);o.store=r;const l=new mP({store:o.store,table:o,fit:i.fit,showHeader:i.showHeader});o.layout=l;const c=Lu(()=>0===(r.states.data.value||[]).length),{setCurrentRow:d,getSelectionRows:u,toggleRowSelection:p,clearSelection:h,clearFilter:f,toggleAllSelection:g,toggleRowExpansion:m,clearSort:_,sort:v,updateKeyChildren:b}=function(e){return{setCurrentRow:t=>{e.commit("setCurrentRow",t)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(t,i,a=!0)=>{e.toggleRowSelection(t,i,!1,a),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:t=>{e.clearFilter(t)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(t,i)=>{e.toggleRowExpansionAdapter(t,i)},clearSort:()=>{e.clearSort()},sort:(t,i)=>{e.commit("sort",{prop:t,order:i})},updateKeyChildren:(t,i)=>{e.updateKeyChildren(t,i)}}}(r),{isHidden:y,renderExpanded:x,setDragVisible:S,isGroup:w,handleMouseLeave:C,handleHeaderFooterMousewheel:E,tableSize:k,emptyBlockStyle:T,resizeProxyVisible:A,bodyWidth:R,resizeState:I,doLayout:D,tableBodyStyles:O,tableLayout:M,scrollbarViewStyle:N,scrollbarStyle:L}=LP(i,l,r,o),{scrollBarRef:P,scrollTo:F,setScrollLeft:B,setScrollTop:$}=(()=>{const e=mo(),t=(t,i)=>{const a=e.value;a&&On(i)&&["Top","Left"].includes(t)&&a[`setScroll${t}`](i)};return{scrollBarRef:e,scrollTo:(t,i)=>{const a=e.value;a&&a.scrollTo(t,i)},setScrollTop:e=>t("Top",e),setScrollLeft:e=>t("Left",e)}})(),V=rn(D,50),U=`${n.namespace.value}-table_${VL++}`;const H=o;o.tableId=U,o.state={isGroup:w,resizeState:I,doLayout:D,debouncedUpdateLayout:V};const z=Lu(()=>i.sumText??a("el.table.sumText")),Y=Lu(()=>i.emptyText??a("el.table.emptyText")),G=Lu(()=>{var e;return i.tooltipEffect??(null==(e=s.value)?void 0:e.tooltipEffect)}),W=Lu(()=>{var e;return i.tooltipOptions??(null==(e=s.value)?void 0:e.tooltipOptions)}),j=Lu(()=>bP(r.states.originColumns.value)[0]);return PP(o),Wl(()=>{V.cancel()}),t({ns:n,layout:l,store:r,columns:j,handleHeaderFooterMousewheel:E,handleMouseLeave:C,tableId:U,tableSize:k,isHidden:y,isEmpty:c,renderExpanded:x,resizeProxyVisible:A,resizeState:I,isGroup:w,bodyWidth:R,tableBodyStyles:O,emptyBlockStyle:T,debouncedUpdateLayout:V,setCurrentRow:d,getSelectionRows:u,toggleRowSelection:p,clearSelection:h,clearFilter:f,toggleAllSelection:g,toggleRowExpansion:m,clearSort:_,doLayout:D,sort:v,updateKeyChildren:b,t:a,setDragVisible:S,context:H,computedSumText:z,computedEmptyText:Y,computedTooltipEffect:G,computedTooltipOptions:W,tableLayout:M,scrollbarViewStyle:N,scrollbarStyle:L,scrollBarRef:P,scrollTo:F,setScrollLeft:B,setScrollTop:$,allowDragLastColumn:i.allowDragLastColumn}),(t,i)=>(zd(),qd("div",{ref:"tableWrapper",class:se([{[xo(n).m("fit")]:e.fit,[xo(n).m("striped")]:e.stripe,[xo(n).m("border")]:e.border||xo(w),[xo(n).m("hidden")]:xo(y),[xo(n).m("group")]:xo(w),[xo(n).m("fluid-height")]:e.maxHeight,[xo(n).m("scrollable-x")]:xo(l).scrollX.value,[xo(n).m("scrollable-y")]:xo(l).scrollY.value,[xo(n).m("enable-row-hover")]:!xo(r).states.isComplex.value,[xo(n).m("enable-row-transition")]:0!==(xo(r).states.data.value||[]).length&&(xo(r).states.data.value||[]).length<100,"has-footer":e.showSummary},xo(n).m(xo(k)),e.className,xo(n).b(),xo(n).m(`layout-${xo(M)}`)]),style:ee(e.style),"data-prefix":xo(n).namespace.value,onMouseleave:i[1]||(i[1]=(...e)=>xo(C)&&xo(C)(...e))},[tu("div",{ref:"tableInnerWrapper",class:se(xo(n).e("inner-wrapper"))},[tu("div",$P,[rc(t.$slots,"default")],512),e.showHeader&&"fixed"===xo(M)?br((zd(),qd("div",{key:0,ref:"headerWrapper",class:se(xo(n).e("header-wrapper"))},[tu("table",{ref:"tableHeader",class:se(xo(n).e("header")),style:ee(xo(O)),border:"0",cellpadding:"0",cellspacing:"0"},[iu(xo(FP),{columns:xo(r).states.columns.value,"table-layout":xo(M)},null,8,["columns","table-layout"]),iu(xo(TP),{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:xo(r),"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:xo(S)},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[xo($T),xo(E)]]):ru("v-if",!0),tu("div",{ref:"bodyWrapper",class:se(xo(n).e("body-wrapper"))},[iu(xo(SE),{ref_key:"scrollBarRef",ref:P,"view-style":xo(N),"wrap-style":xo(L),always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:i[0]||(i[0]=e=>t.$emit("scroll",e))},{default:vr(()=>[tu("table",{ref:"tableBody",class:se(xo(n).e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ee({width:xo(R),tableLayout:xo(M)})},[iu(xo(FP),{columns:xo(r).states.columns.value,"table-layout":xo(M)},null,8,["columns","table-layout"]),e.showHeader&&"auto"===xo(M)?(zd(),Kd(xo(TP),{key:0,ref:"tableHeaderRef",class:se(xo(n).e("body-header")),border:e.border,"default-sort":e.defaultSort,store:xo(r),"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:xo(S)},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ru("v-if",!0),iu(xo(OP),{context:xo(H),highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":G.value,"tooltip-options":W.value,"row-style":e.rowStyle,store:xo(r),stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===xo(M)?(zd(),Kd(xo(NP),{key:1,class:se(xo(n).e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:xo(r),"sum-text":z.value,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ru("v-if",!0)],6),c.value?(zd(),qd("div",{key:0,ref:"emptyBlock",style:ee(xo(T)),class:se(xo(n).e("empty-block"))},[tu("span",{class:se(xo(n).e("empty-text"))},[rc(t.$slots,"empty",{},()=>[su(me(Y.value),1)])],2)],6)):ru("v-if",!0),t.$slots.append?(zd(),qd("div",{key:1,ref:"appendWrapper",class:se(xo(n).e("append-wrapper"))},[rc(t.$slots,"append")],2)):ru("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&"fixed"===xo(M)?br((zd(),qd("div",{key:1,ref:"footerWrapper",class:se(xo(n).e("footer-wrapper"))},[tu("table",{class:se(xo(n).e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:ee(xo(O))},[iu(xo(FP),{columns:xo(r).states.columns.value,"table-layout":xo(M)},null,8,["columns","table-layout"]),iu(xo(NP),{border:e.border,"default-sort":e.defaultSort,store:xo(r),"sum-text":z.value,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[yp,!c.value],[xo($T),xo(E)]]):ru("v-if",!0),e.border||xo(w)?(zd(),qd("div",{key:2,class:se(xo(n).e("border-left-patch"))},null,2)):ru("v-if",!0)],2),br(tu("div",{ref:"resizeProxy",class:se(xo(n).e("column-resize-proxy"))},null,2),[[yp,xo(A)]])],46,BP))}}),UP=VP;const HP={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(e=>["ascending","descending",null].includes(e))}},zP={selection:"table-column--selection",expand:"table__expand-column"},YP={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},GP={selection:{renderHeader:({store:e})=>Pu(AR,{disabled:e.states.data.value&&0===e.states.data.value.length,size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")}),renderCell:({row:e,column:t,store:i,$index:a})=>Pu(AR,{disabled:!!t.selectable&&!t.selectable.call(null,e,a),size:i.states.tableSize.value,onChange:()=>{i.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:i.isSelected(e),indeterminate:i.getRowIndeterminate(e),ariaLabel:i.t("el.table.selectRowLabel")}),sortable:!1,resizable:!1},index:{renderHeader:({column:e})=>e.label||"#",renderCell({column:e,$index:t}){let i=t+1;const a=e.index;return On(a)?i=t+a:A(a)&&(i=a(t)),Pu("div",{},[i])},sortable:!1},expand:{renderHeader:({column:e})=>e.label||"",renderCell({column:e,row:t,store:i,expanded:a,$index:n}){var s,o;const{ns:r}=i,l=[r.e("expand-icon")];!e.renderExpand&&a&&l.push(r.em("expand-icon","expanded"));const c=(null==(o=(s=i.states.rowExpandable).value)?void 0:o.call(s,t,n))??!0;return c||l.push(r.is("disabled")),Pu("button",{type:"button",disabled:!c,"aria-label":i.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:l,onClick:function(e){e.stopPropagation(),i.toggleRowExpansion(t)}},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:c})]:[Pu(KS,null,{default:()=>[Pu(bx)]})]})},sortable:!1,resizable:!1}};function WP({row:e,column:t,$index:i}){var a;const n=t.property,s=n&&Bn(e,n).value;return t&&t.formatter?t.formatter(e,t,s,i):(null==(a=null==s?void 0:s.toString)?void 0:a.call(s))||""}function jP(e,t){return e.reduce((e,t)=>(e[t]=t,e),t)}function qP(e,t,i){const a=_u(),n=mo(""),s=mo(!1),o=mo(),r=mo(),l=ib("table");kr(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),kr(()=>{r.value=e.headerAlign?`is-${e.headerAlign}`:o.value,r.value});const c=Lu(()=>{let e=a.vnode.vParent||a.parent;for(;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e}),d=Lu(()=>{const{store:e}=a.parent;if(!e)return!1;const{treeData:t}=e.states,i=t.value;return i&&Object.keys(i).length>0}),u=mo(qL(e.width)),p=mo(KL(e.minWidth));return{columnId:n,realAlign:o,isSubColumn:s,realHeaderAlign:r,columnOrTableParent:c,setColumnWidth:e=>(u.value&&(e.width=u.value),p.value&&(e.minWidth=p.value),!u.value&&p.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(In(e.width)?e.minWidth:e.width),e),setColumnForcedProps:e=>{const t=e.type,i=GP[t]||{};Object.keys(i).forEach(t=>{const a=i[t];"className"===t||In(a)||(e[t]=a)});const a=(e=>zP[e]||"")(t);if(a){const t=`${xo(l.namespace)}-${a}`;e.className=e.className?`${e.className} ${t}`:t}return e},setColumnRenders:n=>{e.renderHeader?K_("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==n.type&&(n.renderHeader=e=>{if(a.columnConfig.value.label,t.header){const i=t.header(e);if(rP(i))return Pu(Fd,i)}return su(n.label)}),t["filter-icon"]&&(n.renderFilterIcon=e=>rc(t,"filter-icon",e)),t.expand&&(n.renderExpand=e=>rc(t,"expand",e));let s=n.renderCell;return"expand"===n.type?(n.renderCell=e=>Pu("div",{class:"cell"},[s(e)]),i.value.renderExpanded=e=>t.default?t.default(e):t.default):(s=s||WP,n.renderCell=e=>{let o=null;if(t.default){const i=t.default(e);o=i.some(e=>e.type!==$d)?i:s(e)}else o=s(e);const{columns:r}=i.value.store.states,c=r.value.findIndex(e=>"default"===e.type),u=function({row:e,treeNode:t,store:i},a=!1){const{ns:n}=i;if(!t)return a?[Pu("span",{class:n.e("placeholder")})]:null;const s=[],o=function(a){a.stopPropagation(),t.loading||i.loadOrToggle(e)};if(t.indent&&s.push(Pu("span",{class:n.e("indent"),style:{"padding-left":`${t.indent}px`}})),Dn(t.expanded)&&!t.noLazyChildren){const e=[n.e("expand-icon"),t.expanded?n.em("expand-icon","expanded"):""];let a=bx;t.loading&&(a=oS),s.push(Pu("button",{type:"button","aria-label":i.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:e,onClick:o},{default:()=>[Pu(KS,{class:n.is("loading",t.loading)},{default:()=>[Pu(a)]})]}))}else s.push(Pu("span",{class:n.e("placeholder")}));return s}(e,d.value&&e.cellIndex===c),p={class:"cell",style:{}};return n.showOverflowTooltip&&(p.class=`${p.class} ${xo(l.namespace)}-tooltip`,p.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),(e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=a)}C(e)?e.forEach(e=>t(e)):t(e)})(o),Pu("div",p,[u,o])}),n},getPropsData:(...t)=>t.reduce((t,i)=>(C(i)&&i.forEach(i=>{t[i]=e[i]}),t),{}),getColumnElIndex:(e,t)=>Array.prototype.indexOf.call(e,t),updateColumnOrder:()=>{i.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var KP=sl({name:"ElTableColumn",__name:"index",props:HP,setup(e){const t=e,i=Sc(),a=_u(),n=jE("table"),s=mo({}),o=Lu(()=>{let e=a.parent;for(;e&&!e.tableId;)e=e.parent;return e}),{registerNormalWatchers:r,registerComplexWatchers:l}=function(e,t){const i=_u();return{registerComplexWatchers:()=>{const a={realWidth:"width",realMinWidth:"minWidth"},n=jP(["fixed"],a);Object.keys(n).forEach(n=>{const s=a[n];w(t,s)&&Rr(()=>t[s],t=>{let a=t;"width"===s&&"realWidth"===n&&(a=qL(t)),"minWidth"===s&&"realMinWidth"===n&&(a=KL(t)),i.columnConfig.value[s]=a,i.columnConfig.value[n]=a;const o="fixed"===s;e.value.store.scheduleLayout(o)})})},registerNormalWatchers:()=>{const a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},n=jP(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],a);Object.keys(n).forEach(e=>{const n=a[e];w(t,n)&&Rr(()=>t[n],t=>{i.columnConfig.value[e]=t,"filters"!==e&&"filterMethod"!==e||(i.columnConfig.value.filterable=!(!i.columnConfig.value.filters&&!i.columnConfig.value.filterMethod))})}),["showOverflowTooltip"].forEach(a=>{w(e.value.props,a)&&Rr(()=>e.value.props[a],e=>{"selection"!==i.columnConfig.value.type&&In(t[a])&&(i.columnConfig.value[a]=e)})});const s=jE("table");s.value&&w(s.value,"showOverflowTooltip")&&Rr(()=>{var e;return null==(e=s.value)?void 0:e.showOverflowTooltip},a=>{"selection"!==i.columnConfig.value.type&&In(t.showOverflowTooltip)&&In(e.value.props.showOverflowTooltip)&&(i.columnConfig.value.showOverflowTooltip=a)})}}}(o,t),{columnId:c,isSubColumn:d,realHeaderAlign:u,columnOrTableParent:p,setColumnWidth:h,setColumnForcedProps:f,setColumnRenders:g,getPropsData:m,getColumnElIndex:_,realAlign:v,updateColumnOrder:b}=qP(t,i,o),y=p.value;c.value=`${"tableId"in y?y.tableId:y.columnId}_column_${UL++}`,Hl(()=>{var e,i;d.value=o.value!==y;const p=t.type||"default",_=""===t.sortable||t.sortable,b="selection"!==p&&(In(t.showOverflowTooltip)?y.props.showOverflowTooltip??(null==(e=n.value)?void 0:e.showOverflowTooltip):t.showOverflowTooltip),x=In(t.tooltipFormatter)?y.props.tooltipFormatter??(null==(i=n.value)?void 0:i.tooltipFormatter):t.tooltipFormatter,S={...YP[p],id:c.value,type:p,property:t.prop||t.property,align:v,headerAlign:u,showOverflowTooltip:b,tooltipFormatter:x,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:t.index,rawColumnKey:a.vnode.key};let C=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);C=function(e,t){const i={};let a;for(a in e)i[a]=e[a];for(a in t)if(w(t,a)){const e=t[a];In(e)||(i[a]=e)}return i}(S,C),C=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...i)=>e(t(...i)))}(g,h,f)(C),s.value=C,r(),l()}),zl(()=>{var e,t;const i=p.value,n=d.value?null==(e=i.vnode.el)?void 0:e.children:null==(t=i.refs.hiddenColumns)?void 0:t.children,r=()=>_(n||[],a.vnode.el);s.value.getColumnIndex=r,r()>-1&&o.value.store.commit("insertColumn",s.value,d.value?"columnConfig"in i&&i.columnConfig.value:null,b)}),Wl(()=>{const e=s.value.getColumnIndex;(e?e():-1)>-1&&o.value.store.commit("removeColumn",s.value,d.value?"columnConfig"in y&&y.columnConfig.value:null,b)}),a.columnId=c.value,a.columnConfig=s;const x=()=>{var e,t;try{const a=null==(e=i.default)?void 0:e.call(i,{row:{},column:{},$index:-1}),n=[];if(C(a))for(const e of a)"ElTableColumn"===(null==(t=e.type)?void 0:t.name)||2&e.shapeFlag?n.push(e):e.type===Fd&&C(e.children)&&e.children.forEach(e=>{1024===(null==e?void 0:e.patchFlag)||R(null==e?void 0:e.children)||n.push(e)});return Pu("div",n)}catch{return Pu("div",[])}};return(e,t)=>(zd(),Kd(x))}});const XP=px(UP,{TableColumn:KP}),ZP=fx(KP),QP=Symbol("tabsRootContextKey"),JP=W_({tabs:{type:Array,default:()=>[]},tabRefs:{type:Object,default:()=>({})}}),eF="ElTabBar";var tF=sl({name:eF,__name:"tab-bar",props:JP,setup(e,{expose:t}){const i=e,a=Sr(QP);a||q_(eF,"<el-tabs><el-tab-bar /></el-tabs>");const n=ib("tabs"),s=mo(),o=mo(),r=Lu(()=>{var e;return In(a.props.defaultValue)||Boolean(null==(e=o.value)?void 0:e.transform)}),l=()=>o.value=(()=>{let e=0,t=0;const n=["top","bottom"].includes(a.props.tabPosition)?"width":"height",s="width"===n?"x":"y",o="x"===s?"left":"top";return i.tabs.every(a=>{if(In(a.paneName))return!1;const s=i.tabRefs[a.paneName];if(!s)return!1;if(!a.active)return!0;e=s[`offset${Vv(o)}`],t=s[`client${Vv(n)}`];const r=window.getComputedStyle(s);return"width"===n&&(t-=Number.parseFloat(r.paddingLeft)+Number.parseFloat(r.paddingRight),e+=Number.parseFloat(r.paddingLeft)),!1}),{[n]:`${t}px`,transform:`translate${Vv(s)}(${e}px)`}})(),c=[];Rr(()=>i.tabs,async()=>{await ir(),l(),c.forEach(e=>e.stop()),c.length=0,Object.values(i.tabRefs).forEach(e=>{c.push(kv(e,l))})},{immediate:!0});const d=kv(s,()=>l());return Wl(()=>{c.forEach(e=>e.stop()),c.length=0,d.stop()}),t({ref:s,update:l}),(e,t)=>r.value?(zd(),qd("div",{key:0,ref_key:"barRef",ref:s,class:se([xo(n).e("active-bar"),xo(n).is(xo(a).props.tabPosition)]),style:ee(o.value)},null,6)):ru("v-if",!0)}});const iF=W_({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),aF="ElTabNav",nF=sl({name:aF,props:iF,emits:{tabClick:(e,t,i)=>i instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:i}){const a=Sr(QP);a||q_(aF,"<el-tabs><tab-nav /></el-tabs>");const n=ib("tabs"),s=Ev(),o=Rv(),r=mo(),c=mo(),d=mo(),u=mo({}),p=mo(),h=mo(!1),f=mo(0),g=mo(!1),m=mo(!0),_=mo(!1),v=_o(),b=Lu(()=>["top","bottom"].includes(a.props.tabPosition)),y=Lu(()=>b.value?"width":"height"),x=Lu(()=>{const e="width"===y.value?"X":"Y";return{transition:_.value||I.value?"none":void 0,transform:`translate${e}(-${f.value}px)`}}),{width:S,height:w}=Tv(r),{width:C,height:E}=Tv(c,{width:0,height:0},{box:"border-box"}),k=Lu(()=>b.value?S.value:w.value),T=Lu(()=>b.value?C.value:E.value),{onWheel:A}=uR({atStartEdge:Lu(()=>f.value<=0),atEndEdge:Lu(()=>T.value-f.value<=k.value),layout:Lu(()=>b.value?"horizontal":"vertical")},e=>{f.value=$i(f.value+e,0,T.value-k.value)}),R=e=>{_.value=!0,A(e),ab(()=>{_.value=!1})},{isTouchScrolling:I,handleTouchStart:D,handleTouchMove:O,handleTouchEnd:M}=(({scrollable:e,navOffset:t,navSize:i,navContainerSize:a,isHorizontal:n})=>{const s=mo(!1),o=Lu(()=>Math.max(i.value-a.value,0));let r,l;const c=()=>{r=void 0,l=void 0,s.value=!1};return{isTouchScrolling:s,handleTouchStart:i=>{if(!e.value||1!==i.touches.length)return;const{clientX:a,clientY:n}=LI(i);r={startX:a,startY:n,startOffset:t.value},l=void 0},handleTouchMove:i=>{if(!r||!e.value)return;if(1!==i.touches.length)return void c();const{clientX:a,clientY:d}=LI(i),u=r.startX-a,p=r.startY-d,h=n.value?u:p,f=n.value?p:u,g=Math.abs(h),m=Math.abs(f);if(yn(l)){if(Math.max(g,m)<=5)return;l=g>m}if(!l)return;const _=$i(r.startOffset+h,0,o.value);o.value<=0||_===t.value||!i.cancelable||(i.preventDefault(),s.value=!0,t.value=_)},handleTouchEnd:c}})({scrollable:h,navOffset:f,navSize:T,navContainerSize:k,isHorizontal:b}),N=()=>{if(!r.value)return;const e=r.value.getBoundingClientRect()[y.value],t=f.value;t&&(f.value=t>e?t-e:0)},L=()=>{if(!r.value||!c.value)return;const e=c.value.getBoundingClientRect()[y.value],t=r.value.getBoundingClientRect()[y.value],i=f.value;gE(e-i,t)&&(f.value=e-i>2*t?i+t:e-t)},P=async()=>{const t=c.value;if(!(h.value&&d.value&&r.value&&t))return;await ir();const i=u.value[e.currentName];if(!i)return;const a=r.value,n=i.getBoundingClientRect(),s=a.getBoundingClientRect(),o=s.left+1,l=s.right-1,p=t.getBoundingClientRect(),g=b.value?p.width-s.width:p.height-s.height,m=f.value;let _=m;b.value?(n.left<o&&(_=m-(o-n.left)),n.right>l&&(_=m+n.right-l)):(n.top<s.top&&(_=m-(s.top-n.top)),n.bottom>s.bottom&&(_=m+(n.bottom-s.bottom))),_=Math.max(_,0),f.value=Math.min(_,g)},F=()=>{var t;if(!c.value||!r.value)return;e.stretch&&(null==(t=p.value)||t.update());const i=c.value.getBoundingClientRect()[y.value],a=r.value.getBoundingClientRect()[y.value],n=f.value;a<i?(h.value=h.value||{},h.value.prev=n,h.value.next=gE(i,n+a),gE(a,i-n)&&(f.value=i-a)):(h.value=!1,n>0&&(f.value=0))},B=e=>{let t=0;switch(db(e)){case l.left:case l.up:t=-1;break;case l.right:case l.down:t=1;break;default:return}const i=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let a=i.indexOf(e.target)+t;a<0?a=i.length-1:a>=i.length&&(a=0),i[a].focus({preventScroll:!0}),i[a].click(),$()},$=()=>{m.value&&(g.value=!0)},V=()=>g.value=!1;return Rr(s,e=>{"hidden"===e?m.value=!1:"visible"===e&&setTimeout(()=>m.value=!0,50)}),Rr(o,e=>{e?setTimeout(()=>m.value=!0,50):m.value=!1}),kv(d,()=>{ab(F)}),zl(()=>setTimeout(()=>P(),0)),Gl(()=>F()),t({scrollToActiveTab:P,removeFocus:V,focusActiveTab:async()=>{var t;await ir(),null==(t=u.value[e.currentName])||t.focus({preventScroll:!0})},tabListRef:c,tabBarRef:p,scheduleRender:()=>yo(v)}),()=>{const t=h.value?[iu("span",{class:[n.e("nav-prev"),n.is("disabled",!h.value.prev)],onClick:N},[iu(KS,null,{default:()=>[iu(vx,null,null)]})]),iu("span",{class:[n.e("nav-next"),n.is("disabled",!h.value.next)],onClick:L},[iu(KS,null,{default:()=>[iu(bx,null,null)]})])]:null,s=e.panes.map((t,s)=>{var o,r;const c=t.uid,d=t.props.disabled,p=t.props.name??t.index??`${s}`,h=!d&&(t.isClosable||!1!==t.props.closable&&e.editable);t.index=`${s}`;const f=h?iu(KS,{class:"is-icon-close",onClick:e=>i("tabRemove",t,e)},{default:()=>[iu(Lx,null,null)]}):null,m=(null==(r=(o=t.slots).label)?void 0:r.call(o))||t.props.label,_=!d&&t.active?e.tabindex??a.props.tabindex:-1;return iu("div",{ref:e=>((e,t)=>{u.value[t]=e})(e,p),class:[n.e("item"),n.is(a.props.tabPosition),n.is("active",t.active),n.is("disabled",d),n.is("closable",h),n.is("focus",g.value)],id:`tab-${p}`,key:`tab-${c}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:_,onFocus:()=>$(),onBlur:()=>V(),onClick:e=>{V(),i("tabClick",t,p,e)},onKeydown:e=>{const a=db(e);!h||a!==l.delete&&a!==l.backspace||i("tabRemove",t,e)}},[m,f])});return v.value,iu("div",{ref:d,class:[n.e("nav-wrap"),n.is("scrollable",!!h.value),n.is(a.props.tabPosition)]},[t,iu("div",{class:n.e("nav-scroll"),ref:r},[e.panes.length>0?iu("div",{class:[n.e("nav"),n.is(a.props.tabPosition),n.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:c,style:x.value,role:"tablist",onKeydown:B,onWheel:R,onTouchstart:D,onTouchmove:O,onTouchend:M,onTouchcancel:M},[e.type?null:iu(tF,{ref:p,tabs:[...e.panes],tabRefs:u.value},null),s]):null])])}}}),sF=W_({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),oF=e=>R(e)||On(e),rF={[c]:e=>oF(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>oF(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>oF(e),tabAdd:()=>!0},lF=sl({name:"ElTabs",props:sF,emits:rF,setup(e,{emit:t,slots:i,expose:a}){const n=ib("tabs"),s=Lu(()=>["left","right"].includes(e.tabPosition)),{children:o,addChild:r,removeChild:d,ChildrenSorter:u}=Jy(_u(),"ElTabPane"),p=mo(),h=mo((In(e.modelValue)?e.defaultValue:e.modelValue)??"0"),f=async(i,a=!1)=>{var n,s,r,l;if(h.value!==i&&!In(i))try{let d;if(e.beforeLeave){const t=e.beforeLeave(i,h.value);d=t instanceof Promise?await t:t}else d=!0;if(!1!==d){const e=null==(n=o.value.find(e=>e.paneName===h.value))?void 0:n.isFocusInsidePane();h.value=i,a&&(t(c,i),t("tabChange",i)),null==(r=null==(s=p.value)?void 0:s.removeFocus)||r.call(s),e&&(null==(l=p.value)||l.focusActiveTab())}}catch{}},g=(e,i,a)=>{e.props.disabled||(t("tabClick",e,a),f(i,!0))},m=(e,i)=>{e.props.disabled||In(e.props.name)||(i.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},_=()=>{t("edit",void 0,"add"),t("tabAdd")},v=e=>{const t=db(e);[l.enter,l.numpadEnter].includes(t)&&_()},b=t=>{const i=t.el.firstChild,a=["bottom","right"].includes(e.tabPosition)?t.children[0].el:t.children[1].el;i!==a&&i.before(a)};return Rr(()=>e.modelValue,e=>f(e)),Rr(h,async()=>{var e;await ir(),null==(e=p.value)||e.scrollToActiveTab()}),xr(QP,{props:e,currentName:h,registerPane:r,unregisterPane:d,nav$:p}),a({currentName:h,get tabNavRef(){return kn(p.value,["scheduleRender"])}}),()=>{const t=i["add-icon"],a=e.editable||e.addable?iu("div",{class:[n.e("new-tab"),s.value&&n.e("new-tab-vertical")],tabindex:e.tabindex,onClick:_,onKeydown:v},[t?rc(i,"add-icon"):iu(KS,{class:n.is("icon-plus")},{default:()=>[iu(vS,null,null)]})]):null,r=iu("div",{class:[n.e("header"),s.value&&n.e("header-vertical"),n.is(e.tabPosition)]},[iu(u,null,{default:()=>iu(nF,{ref:p,currentName:h.value,editable:e.editable,type:e.type,panes:o.value,stretch:e.stretch,onTabClick:g,onTabRemove:m},null),$stable:!0}),a]),l=iu("div",{class:n.e("content")},[rc(i,"default")]);return iu("div",{class:[n.b(),n.m(e.tabPosition),{[n.m("card")]:"card"===e.type,[n.m("border-card")]:"border-card"===e.type}],onVnodeMounted:b,onVnodeUpdated:b},[l,r])}}}),cF=W_({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),dF=["id","aria-hidden","aria-labelledby"],uF="ElTabPane";var pF=sl({name:uF,__name:"tab-pane",props:cF,setup(e){const t=e,i=_u(),a=Sc(),n=Sr(QP);n||q_(uF,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const s=ib("tab-pane"),o=mo(),r=mo(),l=Lu(()=>t.closable??n.props.closable),c=Lu(()=>n.currentName.value===(t.name??r.value)),d=mo(c.value),u=Lu(()=>t.name??r.value),p=Lu(()=>!t.lazy||d.value||c.value);Rr(c,e=>{e&&(d.value=!0)});const h=to({uid:i.uid,getVnode:()=>i.vnode,slots:a,props:t,paneName:u,active:c,index:r,isClosable:l,isFocusInsidePane:()=>{var e;return null==(e=o.value)?void 0:e.contains(document.activeElement)}});return n.registerPane(h),Wl(()=>{n.unregisterPane(h)}),Yl(()=>{var e;a.label&&(null==(e=n.nav$.value)||e.scheduleRender())}),(e,t)=>p.value?br((zd(),qd("div",{key:0,id:`pane-${u.value}`,ref_key:"paneRef",ref:o,class:se(xo(s).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${u.value}`},[rc(e.$slots,"default")],10,dF)),[[yp,c.value]]):ru("v-if",!0)}});const hF=px(lF,{TabPane:pF}),fF=fx(pF);const gF=px(sl({name:"ElText",__name:"text",props:W_({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:p,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),setup(e){const t=e,i=wc(),a=mo(),n=mw(),s=ib("text"),o=Lu(()=>[s.b(),s.m(t.type),s.m(n.value),s.is("truncated",t.truncated),s.is("line-clamp",!In(t.lineClamp))]),r=async()=>{var e,n,s,o,r,l,c;if(await ir(),i.title)return;let d=!1;const u=(null==(e=a.value)?void 0:e.textContent)||"";if(t.truncated){const e=null==(n=a.value)?void 0:n.offsetWidth,t=null==(s=a.value)?void 0:s.scrollWidth;e&&t&&t>e&&(d=!0)}else if(!In(t.lineClamp)){const e=null==(o=a.value)?void 0:o.offsetHeight,t=null==(r=a.value)?void 0:r.scrollHeight;e&&t&&t>e&&(d=!0)}d?null==(l=a.value)||l.setAttribute("title",u):null==(c=a.value)||c.removeAttribute("title")};return zl(r),Gl(r),(t,i)=>(zd(),Kd(tc(e.tag),{ref_key:"textRef",ref:a,class:se(o.value),style:ee({"-webkit-line-clamp":e.lineClamp})},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["class","style"]))}})),mF="00:30",_F=W_({format:{type:String,default:"HH:mm"},modelValue:{type:String},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:ex,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:mF},minTime:{type:String},maxTime:{type:String},includeEndTime:Boolean,name:String,prefixIcon:{type:[String,Object],default:()=>Nx},clearIcon:{type:[String,Object],default:()=>Mx},popperClass:{type:String,default:""},popperStyle:{type:[String,Object]},...rx}),vF=e=>{const t=(e||"").split(":");if(t.length>=2){let i=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),n=e.toUpperCase();return n.includes("AM")&&12===i?i=0:n.includes("PM")&&12!==i&&(i+=12),{hours:i,minutes:a}}return null},bF=(e,t)=>{const i=vF(e);if(!i)return-1;const a=vF(t);if(!a)return-1;const n=i.minutes+60*i.hours,s=a.minutes+60*a.hours;return n===s?0:n>s?1:-1},yF=e=>`${e}`.padStart(2,"0"),xF=e=>`${yF(e.hours)}:${yF(e.minutes)}`,SF=(e,t)=>{const i=vF(e);if(!i)return"";const a=vF(t);if(!a)return"";const n={hours:i.hours,minutes:i.minutes};return n.minutes+=a.minutes,n.hours+=a.hours,n.hours+=Math.floor(n.minutes/60),n.minutes=n.minutes%60,xF(n)};const wF=px(sl({name:"ElTimeSelect",__name:"time-select",props:_F,emits:[d,"blur","focus","clear",c],setup(e,{expose:t}){Pk.extend(XT);const{Option:i}=SA,a=e,n=ib("input"),s=mo(),o=_w(),{lang:r}=Qv(),l=Lu(()=>a.modelValue),c=Lu(()=>{const e=vF(a.start);return e?xF(e):null}),d=Lu(()=>{const e=vF(a.end);return e?xF(e):null}),u=Lu(()=>{const e=vF(a.minTime||"");return e?xF(e):null}),p=Lu(()=>{const e=vF(a.maxTime||"");return e?xF(e):null}),h=Lu(()=>{const e=vF(a.step),t=!e||e.hours<0||e.minutes<0||Number.isNaN(e.hours)||Number.isNaN(e.minutes)||0===e.hours&&0===e.minutes;return t&&K_("ElTimeSelect",`invalid step, fallback to default step (${mF}).`),t?mF:xF(e)}),f=Lu(()=>{var e;const t=[],i=(e,i)=>{t.push({value:e,rawValue:i,disabled:bF(i,u.value||"-1:-1")<=0||bF(i,p.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let n,s=c.value;for(;s&&d.value&&bF(s,d.value)<=0;)n=Pk(s,"HH:mm").locale(r.value).format(a.format),i(n,s),s=SF(s,h.value);a.includeEndTime&&d.value&&(null==(e=t[t.length-1])?void 0:e.rawValue)!==d.value&&i(Pk(d.value,"HH:mm").locale(r.value).format(a.format),d.value)}return t});return t({blur:()=>{var e,t;null==(t=null==(e=s.value)?void 0:e.blur)||t.call(e)},focus:()=>{var e,t;null==(t=null==(e=s.value)?void 0:e.focus)||t.call(e)}}),(t,a)=>(zd(),Kd(xo(SA),{ref_key:"select",ref:s,name:e.name,"model-value":l.value,disabled:xo(o),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":a[0]||(a[0]=e=>t.$emit(xo("update:modelValue"),e)),onChange:a[1]||(a[1]=e=>t.$emit(xo("change"),e)),onBlur:a[2]||(a[2]=e=>t.$emit("blur",e)),onFocus:a[3]||(a[3]=e=>t.$emit("focus",e)),onClear:a[4]||(a[4]=()=>t.$emit("clear"))},{prefix:vr(()=>[e.prefixIcon?(zd(),Kd(xo(KS),{key:0,class:se(xo(n).e("prefix-icon"))},{default:vr(()=>[(zd(),Kd(tc(e.prefixIcon)))]),_:1},8,["class"])):ru("v-if",!0)]),default:vr(()=>[(zd(!0),qd(Fd,null,sc(f.value,e=>(zd(),Kd(xo(i),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}})),CF="left-check-change",EF="right-check-change",kF=W_({data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:String,filterMethod:{type:Function},leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:{type:Function},modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:Boolean,props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),TF=(e,t)=>[e,t].every(C)||C(e)&&vn(t),AF={[d]:(e,t,i)=>[e,i].every(C)&&["left","right"].includes(t),[c]:e=>C(e),[CF]:TF,[EF]:TF},RF=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Lu(()=>({...t,...e.props}))},IF="checked-change",DF=W_({data:kF.data,optionRender:{type:Function},placeholder:String,title:String,filterable:Boolean,format:kF.format,filterMethod:kF.filterMethod,defaultChecked:kF.leftDefaultChecked,props:kF.props});var OF=sl({name:"ElTransferPanel",__name:"transfer-panel",props:DF,emits:{[IF]:TF},setup(e,{expose:t,emit:i}){const a=e,n=i,s=Sc(),o=({option:e})=>e,{t:r}=Qv(),l=ib("transfer"),c=to({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=RF(a),{filteredData:u,checkedSummary:p,isIndeterminate:h,handleAllCheckedChange:f}=((e,t,i)=>{const a=RF(e),n=Lu(()=>e.data.filter(i=>A(e.filterMethod)?e.filterMethod(t.query,i):String(i[a.value.label]||i[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),s=Lu(()=>n.value.filter(e=>!e[a.value.disabled])),o=Lu(()=>{const i=t.checked.length,a=e.data.length,{noChecked:n,hasChecked:s}=e.format;return n&&s?i>0?s.replace(/\${checked}/g,i.toString()).replace(/\${total}/g,a.toString()):n.replace(/\${total}/g,a.toString()):`${i}/${a}`}),r=Lu(()=>{const e=t.checked.length;return e>0&&e<s.value.length}),l=()=>{const e=s.value.map(e=>e[a.value.key]);t.allChecked=e.length>0&&e.every(e=>t.checked.includes(e))};return Rr(()=>t.checked,(e,a)=>{l(),t.checkChangeByUser?i(IF,e,e.concat(a).filter(t=>!e.includes(t)||!a.includes(t))):(i(IF,e),t.checkChangeByUser=!0)}),Rr(s,()=>{l()}),Rr(()=>e.data,()=>{const e=[],i=n.value.map(e=>e[a.value.key]);t.checked.forEach(t=>{i.includes(t)&&e.push(t)}),t.checkChangeByUser=!1,t.checked=e}),Rr(()=>e.defaultChecked,(e,i)=>{if(i&&e.length===i.length&&e.every(e=>i.includes(e)))return;const n=[],o=s.value.map(e=>e[a.value.key]);e.forEach(e=>{o.includes(e)&&n.push(e)}),t.checkChangeByUser=!1,t.checked=n},{immediate:!0}),{filteredData:n,checkableData:s,checkedSummary:o,isIndeterminate:r,updateAllChecked:l,handleAllCheckedChange:e=>{t.checked=e?s.value.map(e=>e[a.value.key]):[]}}})(a,c,n),g=Lu(()=>!Mn(c.query)&&Mn(u.value)),m=Lu(()=>!Mn(s.default()[0].children)),{checked:_,allChecked:v,query:b}=To(c);return t({query:b}),(t,i)=>(zd(),qd("div",{class:se(xo(l).b("panel"))},[tu("p",{class:se(xo(l).be("panel","header"))},[iu(xo(AR),{modelValue:xo(v),"onUpdate:modelValue":i[0]||(i[0]=e=>go(v)?v.value=e:null),indeterminate:xo(h),"validate-event":!1,onChange:xo(f)},{default:vr(()=>[tu("span",{class:se(xo(l).be("panel","header-title"))},me(e.title),3),tu("span",{class:se(xo(l).be("panel","header-count"))},me(xo(p)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),tu("div",{class:se([xo(l).be("panel","body"),xo(l).is("with-footer",m.value)])},[e.filterable?(zd(),Kd(xo(cE),{key:0,modelValue:xo(b),"onUpdate:modelValue":i[1]||(i[1]=e=>go(b)?b.value=e:null),class:se(xo(l).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":xo(CS),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ru("v-if",!0),br(iu(xo(RR),{modelValue:xo(_),"onUpdate:modelValue":i[2]||(i[2]=e=>go(_)?_.value=e:null),"validate-event":!1,class:se([xo(l).is("filterable",e.filterable),xo(l).be("panel","list")])},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(xo(u),t=>(zd(),Kd(xo(AR),{key:t[xo(d).key],class:se(xo(l).be("panel","item")),value:t[xo(d).key],disabled:t[xo(d).disabled],"validate-event":!1},{default:vr(()=>{var i;return[iu(o,{option:null==(i=e.optionRender)?void 0:i.call(e,t)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[yp,!g.value&&!xo(Mn)(e.data)]]),br(tu("div",{class:se(xo(l).be("panel","empty"))},[rc(t.$slots,"empty",{},()=>[su(me(g.value?xo(r)("el.transfer.noMatch"):xo(r)("el.transfer.noData")),1)])],2),[[yp,g.value||xo(Mn)(e.data)]])],2),m.value?(zd(),qd("p",{key:0,class:se(xo(l).be("panel","footer"))},[rc(t.$slots,"default")],2)):ru("v-if",!0)],2))}}),MF=OF;const NF={key:0},LF={key:0};var PF=sl({name:"ElTransfer",__name:"transfer",props:kF,emits:AF,setup(e,{expose:t,emit:i}){const a=e,n=i,s=Sc(),{t:o}=Qv(),r=ib("transfer"),{formItem:l}=vw(),u=to({leftChecked:[],rightChecked:[]}),p=RF(a),{sourceData:h,targetData:f}=(e=>{const t=RF(e),i=Lu(()=>e.data.reduce((e,i)=>(e[i[t.value.key]]=i,e),{}));return{sourceData:Lu(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),targetData:Lu(()=>"original"===e.targetOrder?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((e,t)=>{const a=i.value[t];return a&&e.push(a),e},[]))}})(a),{onSourceCheckedChange:g,onTargetCheckedChange:_}=((e,t)=>({onSourceCheckedChange:(i,a)=>{e.leftChecked=i,a&&t(CF,i,a)},onTargetCheckedChange:(i,a)=>{e.rightChecked=i,a&&t(EF,i,a)}}))(u,n),{addToLeft:v,addToRight:b}=((e,t,i)=>{const a=RF(e),n=(e,t,a)=>{i(c,e),i(d,e,t,a)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(e=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)}),n(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const s=e.data.filter(i=>{const n=i[a.value.key];return t.leftChecked.includes(n)&&!e.modelValue.includes(n)}).map(e=>e[a.value.key]);i="unshift"===e.targetOrder?s.concat(i):i.concat(s),"original"===e.targetOrder&&(i=e.data.filter(e=>i.includes(e[a.value.key])).map(e=>e[a.value.key])),n(i,"right",t.leftChecked)}}})(a,u,n),y=mo(),x=mo(),S=Lu(()=>2===a.buttonTexts.length),w=Lu(()=>a.titles[0]||o("el.transfer.titles.0")),C=Lu(()=>a.titles[1]||o("el.transfer.titles.1")),E=Lu(()=>a.filterPlaceholder||o("el.transfer.filterPlaceholder"));Rr(()=>a.modelValue,()=>{var e;a.validateEvent&&(null==(e=null==l?void 0:l.validate)||e.call(l,"change").catch(m))});const k=Lu(()=>e=>{var t;if(a.renderContent)return a.renderContent(Pu,e);const i=((null==(t=s.default)?void 0:t.call(s,{option:e}))||[]).filter(e=>e.type!==$d);return i.length?i:Pu("span",e[p.value.label]||e[p.value.key])});return t({clearQuery:e=>{switch(e){case"left":y.value.query="";break;case"right":x.value.query=""}},leftPanel:y,rightPanel:x}),(t,i)=>(zd(),qd("div",{class:se(xo(r).b())},[iu(MF,{ref_key:"leftPanel",ref:y,data:xo(h),"option-render":k.value,placeholder:E.value,title:w.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:xo(g)},{empty:vr(()=>[rc(t.$slots,"left-empty")]),default:vr(()=>[rc(t.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),tu("div",{class:se(xo(r).e("buttons"))},[iu(xo(Sk),{type:"primary",class:se([xo(r).e("button"),xo(r).is("with-texts",S.value)]),disabled:xo(Mn)(u.rightChecked),onClick:xo(v)},{default:vr(()=>[iu(xo(KS),null,{default:vr(()=>[iu(xo(vx))]),_:1}),xo(In)(e.buttonTexts[0])?ru("v-if",!0):(zd(),qd("span",NF,me(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),iu(xo(Sk),{type:"primary",class:se([xo(r).e("button"),xo(r).is("with-texts",S.value)]),disabled:xo(Mn)(u.leftChecked),onClick:xo(b)},{default:vr(()=>[xo(In)(e.buttonTexts[1])?ru("v-if",!0):(zd(),qd("span",LF,me(e.buttonTexts[1]),1)),iu(xo(KS),null,{default:vr(()=>[iu(xo(bx))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),iu(MF,{ref_key:"rightPanel",ref:x,data:xo(f),"option-render":k.value,placeholder:E.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:C.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:xo(_)},{empty:vr(()=>[rc(t.$slots,"right-empty")]),default:vr(()=>[rc(t.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});const FF=px(PF),BF="RootTree",$F="NodeInstance",VF="TreeNodeMap",UF=W_({data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:Function},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:Function},allowDrop:{type:Function},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:YS}}),HF={"check-change":(e,t,i)=>e&&Dn(t)&&Dn(i),"current-change":(e,t)=>!0,"node-click":(e,t,i,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,i,a)=>e instanceof Event&&t&&i,"node-collapse":(e,t,i)=>e&&t,"node-expand":(e,t,i)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,i,a)=>e&&a,"node-drop":(e,t,i,a)=>e&&t&&a,"node-drag-leave":(e,t,i)=>e&&t&&i,"node-drag-enter":(e,t,i)=>e&&t&&i,"node-drag-over":(e,t,i)=>e&&t&&i},zF="$treeNodeId",YF=function(e,t){t&&!t.$treeNodeId&&Object.defineProperty(t,zF,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},GF=(e,t)=>null==t?void 0:t[e||"$treeNodeId"],WF=(e,t,i)=>{const a=e.value.currentNode;i();const n=e.value.currentNode;a!==n&&t("current-change",n?n.data:null,n)},jF=e=>{let t=!0,i=!0,a=!0,n=!0;for(let s=0,o=e.length;s<o;s++){const o=e[s];(!0!==o.checked||o.indeterminate)&&(t=!1,o.disabled||(a=!1)),(!1!==o.checked||o.indeterminate)&&(i=!1),o.isEffectivelyChecked||(n=!1)}return{all:t,none:i,allWithoutDisable:a,half:!t&&!i,isEffectivelyChecked:n}},qF=function(e){if(0===e.childNodes.length||e.loading)return void(e.isEffectivelyChecked=e.disabled||e.checked);const{all:t,none:i,half:a,isEffectivelyChecked:n}=jF(e.childNodes);e.isEffectivelyChecked=n,t?(e.checked=!0,e.indeterminate=!1):a?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);const s=e.parent;s&&0!==s.level&&(e.store.checkStrictly||qF(s))},KF=function(e,t){const i=e.store.props,a=e.data||{},n=i[t];if(A(n))return n(a,e);if(R(n))return a[n];if(In(n)){const e=a[t];return In(e)?"":e}},XF=function(e,t){e.forEach(e=>{e.canFocus=t,XF(e.childNodes,t)})};let ZF=0;var QF=class e{constructor(e){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=ZF++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)w(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var e;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const i=t.props;if(i&&void 0!==i.isLeaf){const e=KF(this,"isLeaf");Dn(e)&&(this.isLeafByUser=e)}if(!0!==t.lazy&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),C(this.data)||YF(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,n=t.key;n&&!vn(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),n&&void 0!==t.currentNodeKey&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),1!==this.level&&!0!==(null==(e=this.parent)?void 0:e.expanded)||(this.canFocus=!0)}setData(e){let t;C(e)||YF(this,e),this.data=e,this.childNodes=[],t=0===this.level&&C(this.data)?this.data:KF(this,"children")||[];for(let i=0,a=t.length;i<a;i++)this.insertChild({data:t[i]})}get label(){return KF(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return KF(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some(i=>i===e||t&&i.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(t,i,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof e)){if(!a){const e=this.getChildren(!0);(null==e?void 0:e.includes(t.data))||(In(i)||i<0?null==e||e.push(t.data):null==e||e.splice(i,0,t.data))}Object.assign(t,{parent:this,store:this.store}),(t=to(new e(t)))instanceof e&&t.initialize()}t.level=this.level+1,In(i)||i<0?this.childNodes.push(t):this.childNodes.splice(i,0,t),this.updateLeafState()}insertBefore(e,t){let i;t&&(i=this.childNodes.indexOf(t)),this.insertChild(e,i)}insertAfter(e,t){let i;t&&(i=this.childNodes.indexOf(t),-1!==i&&(i+=1)),this.insertChild(e,i)}removeChild(e){const t=this.getChildren()||[],i=t.indexOf(e.data);i>-1&&t.splice(i,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){const t=this.childNodes.find(t=>t.data===e);t&&this.removeChild(t)}expand(e,t){const i=()=>{if(t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),XF(this.childNodes,!0)};this.shouldLoadData()?this.loadData(e=>{C(e)&&(this.store.checkStrictly||(this.checked?this.setChecked(!0,!0):qF(this)),i())}):i()}doCreateChildren(e,t={}){e.forEach(e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)})}collapse(){this.expanded=!1,XF(this.childNodes,!1)}shouldLoadData(){return Boolean(!0===this.store.lazy&&this.store.load&&!this.loaded)}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return this.isLeaf=this.isLeafByUser,void(this.isEffectivelyChecked=this.isLeaf&&this.disabled);const e=this.childNodes;if(!this.store.lazy||!0===this.store.lazy&&!0===this.loaded)return this.isLeaf=!e||0===e.length,void(this.isEffectivelyChecked=this.isLeaf&&this.disabled);this.isLeaf=!1}setChecked(e,t,i,a){if(this.indeterminate="half"===e,this.checked=!0===e,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly&&!t)return;if(!this.shouldLoadData()||this.store.checkDescendants){const i=()=>{if(t){const i=this.childNodes;for(let r=0,l=i.length;r<l;r++){const n=i[r];a=a||!1!==e;const s=n.disabled&&n.isLeaf?n.checked:a;n.setChecked(s,t,!0,a)}const{half:n,all:s,isEffectivelyChecked:o}=jF(i);s||(this.checked=s,this.indeterminate=n),this.isEffectivelyChecked=this.childNodes.length?o:this.disabled||this.checked}};if(this.shouldLoadData())return void this.loadData(()=>{i(),qF(this)},{checked:!1!==e});i()}const n=this.parent;n&&0!==n.level&&(i||this.store.checkStrictly||qF(n))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const i=this.store.props;let a="children";return i&&(a=i.children||"children"),In(t[a])&&(t[a]=null),e&&!t[a]&&(t[a]=[]),t[a]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map(e=>e.data),i={},a=[];e.forEach((e,n)=>{const s=e[zF];s&&t.some(e=>(null==e?void 0:e.$treeNodeId)===s)?i[s]={index:n,data:e}:a.push({index:n,data:e})}),this.store.lazy||t.forEach(e=>{i[null==e?void 0:e.$treeNodeId]||this.removeChildByData(e)}),a.forEach(({index:e,data:t})=>{this.insertChild({data:t},e)}),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const i=i=>{this.childNodes=[],this.doCreateChildren(i,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,i)},a=()=>{this.loading=!1};this.store.load(this,i,a)}}eachNode(e){const t=[this];for(;t.length;){const i=t.shift();t.unshift(...i.childNodes),e(i)}}reInitChecked(){this.store.checkStrictly||qF(this)}},JF=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)w(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new QF({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()},m)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,i=this.lazy,a=async function(n){const s=n.root?n.root.childNodes:n.childNodes;for(const[i,o]of s.entries())o.visible=!!(null==t?void 0:t.call(o,e,o.data,o)),i%80==0&&i>0&&await ir(),await a(o);if(!n.visible&&s.length){let e=!0;e=!s.some(e=>e.visible),n.root?n.root.visible=!1===e:n.visible=!1===e}e&&n.visible&&!n.isLeaf&&(i&&!n.loaded||n.expand())};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof QF)return e;const t=D(e)?GF(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var i;const a=this.getNode(t);null==(i=a.parent)||i.insertBefore({data:e},a)}insertAfter(e,t){var i;const a=this.getNode(t);null==(i=a.parent)||i.insertAfter({data:e},a)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const i=Ln(t)?this.root:this.getNode(t);i&&i.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(e=>{const i=t[e];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!vn(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;vn(t)||(this.nodesMap[t]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach(e=>{this.deregisterNode(e)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const i=[],a=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(n=>{(n.checked||t&&n.indeterminate)&&(!e||e&&n.isLeaf)&&i.push(n.data),a(n)})};return a(this),i}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(e=>(e||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),t(i)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const i in t)w(t,i)&&e.push(t[i]);return e}updateChildren(e,t){const i=this.nodesMap[e];if(!i)return;const a=i.childNodes;for(let n=a.length-1;n>=0;n--){const e=a[n];this.remove(e.data)}for(let n=0,s=t.length;n<s;n++){const e=t[n];this.append(e,i.data)}}_setCheckedKeys(e,t=!1,i){const a=this._getAllNodes().sort((e,t)=>e.level-t.level),n=Object.create(null),s=Object.keys(i);a.forEach(e=>e.setChecked(!1,!1));const o=t=>{t.childNodes.forEach(t=>{var i;n[t.data[e]]=!0,(null==(i=t.childNodes)?void 0:i.length)&&o(t)})};for(let r=0,l=a.length;r<l;r++){const i=a[r],l=i.data[e].toString();if(s.includes(l)){if(i.childNodes.length&&o(i),i.isLeaf||this.checkStrictly)i.setChecked(!0,!1);else if(i.setChecked(!0,!0),t){i.setChecked(!1,!1,!0);const e=function(t){t.childNodes.forEach(t=>{t.isLeaf||t.setChecked(!1,!1,!0),e(t)}),t.reInitChecked()};e(i)}}else i.checked&&!n[l]&&i.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const i=this.key,a={};e.forEach(e=>{a[(e||{})[i]]=!0}),this._setCheckedKeys(i,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const i=this.key,a={};e.forEach(e=>{a[e]=!0}),this._setCheckedKeys(i,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)})}setChecked(e,t,i){const a=this.getNode(e);a&&a.setChecked(!!t,i)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var i;const a=e[this.key],n=this.nodesMap[a];this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0))}setCurrentNodeKey(e,t=!0){var i;if(this.currentNodeKey=e,Ln(e))return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const a=this.getNode(e);a&&(this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0)))}};function eB(e){const t=Sr(VF,null);let i={treeNodeExpand:t=>{var i;e.node!==t&&(null==(i=e.node)||i.collapse())},children:new Set};return t&&t.children.add(i),Wl(()=>{t&&t.children.delete(i),i=null}),xr(VF,i),{broadcastExpanded:t=>{if(e.accordion)for(const e of i.children)e.treeNodeExpand(t)}}}const tB=Symbol("dragEvents");var iB=sl({name:"ElTreeNode",components:{ElCollapseTransition:bI,ElCheckbox:AR,NodeContent:sl({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ib("tree"),i=Sr($F),a=Sr(BF);return()=>{const n=e.node,{data:s,store:o}=n;return e.renderContent?e.renderContent(Pu,{_self:i,node:n,data:s,store:o}):rc(a.ctx.slots,"default",{node:n,data:s},()=>[Pu(gF,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[n.label])])}}}),ElIcon:KS,Loading:oS},props:{node:{type:QF,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const i=ib("tree"),{broadcastExpanded:a}=eB(e),n=Sr(BF),s=mo(!1),o=mo(!1),r=mo(),l=mo(),c=mo(),d=Sr(tB),u=_u();xr($F,u),n||K_("Tree","Can not find node's tree."),e.node.expanded&&(s.value=!0,o.value=!0);const p=n.props.props.children||"children";Rr(()=>{var t;const i=null==(t=e.node.data)?void 0:t[p];return i&&[...i]},()=>{e.node.updateChildren()}),Rr(()=>e.node.indeterminate,t=>{f(e.node.checked,t)}),Rr(()=>e.node.checked,t=>{f(t,e.node.indeterminate)}),Rr(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),Rr(()=>e.node.expanded,e=>{ir(()=>s.value=e),e&&(o.value=!0)});const h=e=>n.props.nodeKey?GF(n.props.nodeKey,e.data):e.id,f=(t,i)=>{r.value===t&&l.value===i||n.ctx.emit("check-change",e.node.data,t,i),r.value=t,l.value=i},g=()=>{e.node.isLeaf||(s.value?(n.ctx.emit("node-collapse",e.node.data,e.node,u),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,u)}))},m=t=>{const i=null==n?void 0:n.props.checkStrictly,a=e.node.childNodes;!i&&a.length&&(t=a.some(e=>!e.isEffectivelyChecked)),e.node.setChecked(t,!i),ir(()=>{const t=n.store.value;n.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})};return{ns:i,node$:c,tree:n,expanded:s,childNodeRendered:o,oldChecked:r,oldIndeterminate:l,getNodeKey:h,getNodeClass:t=>{const i=e.props.class;if(!i)return{};let a;if(A(i)){const{data:e}=t;a=i(e,t)}else a=i;return R(a)?{[a]:!0}:a},handleSelectChange:f,handleClick:t=>{WF(n.store,n.ctx.emit,()=>{var t;if(null==(t=null==n?void 0:n.props)?void 0:t.nodeKey){const t=h(e.node);n.store.value.setCurrentNodeKey(t)}else n.store.value.setCurrentNode(e.node)}),n.currentNode.value=e.node,n.props.expandOnClickNode&&g(),(n.props.checkOnClickNode||e.node.isLeaf&&n.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&m(!e.node.checked),n.ctx.emit("node-click",e.node.data,e.node,u,t)},handleContextMenu:t=>{var i;(null==(i=n.instance.vnode.props)?void 0:i.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),n.ctx.emit("node-contextmenu",t,e.node.data,e.node,u)},handleExpandIconClick:g,handleCheckChange:m,handleChildNodeExpand:(e,t,i)=>{a(t),n.ctx.emit("node-expand",e,t,i)},handleDragStart:t=>{n.props.draggable&&d.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),n.props.draggable&&d.treeNodeDragOver({event:t,treeNode:{$el:c.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{n.props.draggable&&d.treeNodeDragEnd(e)},CaretRight:kx}}});const aB=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],nB=["aria-expanded"];var sB=sl({name:"ElTree",components:{ElTreeNode:AC(iB,[["render",function(e,t,i,a,n,s){const o=Jl("el-icon"),r=Jl("el-checkbox"),l=Jl("loading"),c=Jl("node-content"),d=Jl("el-tree-node"),u=Jl("el-collapse-transition");return br((zd(),qd("div",{ref:"node$",class:se([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Ah((...t)=>e.handleClick&&e.handleClick(...t),["stop"])),onContextmenu:t[3]||(t[3]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[4]||(t[4]=Ah((...t)=>e.handleDragStart&&e.handleDragStart(...t),["stop"])),onDragover:t[5]||(t[5]=Ah((...t)=>e.handleDragOver&&e.handleDragOver(...t),["stop"])),onDragend:t[6]||(t[6]=Ah((...t)=>e.handleDragEnd&&e.handleDragEnd(...t),["stop"])),onDrop:t[7]||(t[7]=Ah((...t)=>e.handleDrop&&e.handleDrop(...t),["stop"]))},[tu("div",{class:se(e.ns.be("node","content")),style:ee({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(zd(),Kd(o,{key:0,class:se([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ah(e.handleExpandIconClick,["stop"])},{default:vr(()=>[(zd(),Kd(tc(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ru("v-if",!0),e.showCheckbox?(zd(),Kd(r,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Ah(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ru("v-if",!0),e.node.loading?(zd(),Kd(o,{key:2,class:se([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:vr(()=>[iu(l)]),_:1},8,["class"])):ru("v-if",!0),iu(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),iu(u,null,{default:vr(()=>[!e.renderAfterExpand||e.childNodeRendered?br((zd(),qd("div",{key:0,class:se(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Ah(()=>{},["stop"]))},[(zd(!0),qd(Fd,null,sc(e.node.childNodes,t=>(zd(),Kd(d,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,nB)),[[yp,e.expanded]]):ru("v-if",!0)]),_:1})],42,aB)),[[yp,e.node.visible]])}]])},props:UF,emits:HF,setup(e,t){const{t:i}=Qv(),a=ib("tree"),n=mo(new JF({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));n.value.initialize();const s=mo(n.value.root),o=mo(null),r=mo(null),c=mo(null),{broadcastExpanded:d}=eB(e),{dragState:u}=function({props:e,ctx:t,el$:i,dropIndicator$:a,store:n}){const s=ib("tree"),o=mo({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return xr(tB,{treeNodeDragStart:({event:i,treeNode:a})=>{if(i.dataTransfer){if(A(e.allowDrag)&&!e.allowDrag(a.node))return i.preventDefault(),!1;i.dataTransfer.effectAllowed="move";try{i.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=a,t.emit("node-drag-start",a.node,i)}},treeNodeDragOver:({event:n,treeNode:r})=>{if(!n.dataTransfer)return;const l=r,c=o.value.dropNode;c&&c.node.id!==l.node.id&&Yv(c.$el,s.is("drop-inner"));const d=o.value.draggingNode;if(!d||!l)return;let u=!0,p=!0,h=!0,f=!0;A(e.allowDrop)&&(u=e.allowDrop(d.node,l.node,"prev"),f=p=e.allowDrop(d.node,l.node,"inner"),h=e.allowDrop(d.node,l.node,"next")),n.dataTransfer.dropEffect=p||u||h?"move":"none",(u||p||h)&&(null==c?void 0:c.node.id)!==l.node.id&&(c&&t.emit("node-drag-leave",d.node,c.node,n),t.emit("node-drag-enter",d.node,l.node,n)),o.value.dropNode=u||p||h?l:null,l.node.nextSibling===d.node&&(h=!1),l.node.previousSibling===d.node&&(u=!1),l.node.contains(d.node,!1)&&(p=!1),(d.node===l.node||d.node.contains(l.node))&&(u=!1,p=!1,h=!1);const g=l.$el,m=g.querySelector(`.${s.be("node","content")}`).getBoundingClientRect(),_=i.value.getBoundingClientRect(),v=i.value.scrollTop;let b;const y=u?p?.25:h?.45:1:Number.NEGATIVE_INFINITY,x=h?p?.75:u?.55:0:Number.POSITIVE_INFINITY;let S=-9999;const w=n.clientY-m.top;b=w<m.height*y?"before":w>m.height*x?"after":p?"inner":"none";const C=g.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),E=a.value;"before"===b?S=C.top-_.top+v:"after"===b&&(S=C.bottom-_.top+v),E.style.top=`${S}px`,E.style.left=C.right-_.left+"px","inner"===b?zv(g,s.is("drop-inner")):Yv(g,s.is("drop-inner")),o.value.showDropIndicator="before"===b||"after"===b,o.value.allowDrop=o.value.showDropIndicator||f,o.value.dropType=b,t.emit("node-drag-over",d.node,l.node,n)},treeNodeDragEnd:e=>{var i,a;const{draggingNode:r,dropType:l,dropNode:c}=o.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),(null==r?void 0:r.node.data)&&c){const o={data:r.node.data};"none"!==l&&r.node.remove(),"before"===l?null==(i=c.node.parent)||i.insertBefore(o,c.node):"after"===l?null==(a=c.node.parent)||a.insertAfter(o,c.node):"inner"===l&&c.node.insertChild(o),"none"!==l&&(n.value.registerNode(o),n.value.key&&r.node.eachNode(e=>{var t;null==(t=n.value.nodesMap[e.data[n.value.key]])||t.setChecked(e.checked,!n.value.checkStrictly)})),Yv(c.$el,s.is("drop-inner")),t.emit("node-drag-end",r.node,c.node,l,e),"none"!==l&&t.emit("node-drop",r.node,c.node,l,e)}r&&!c&&t.emit("node-drag-end",r.node,null,l,e),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}({props:e,ctx:t,el$:r,dropIndicator$:c,store:n});!function({el$:e},t){const i=ib("tree");function a(e,i){var a,n;const s=t.value.getNode(e[i].dataset.key);return s.canFocus&&s.visible&&((null==(a=s.parent)?void 0:a.expanded)||0===(null==(n=s.parent)?void 0:n.level))}zl(()=>{n()}),Gl(()=>{var t;null==(t=e.value)||t.querySelectorAll("input[type=checkbox]").forEach(e=>{e.setAttribute("tabindex","-1")})}),vv(e,"keydown",t=>{const n=t.target;if(!n.className.includes(i.b("node")))return;const s=db(t),o=Array.from(e.value.querySelectorAll(`.${i.is("focusable")}[role=treeitem]`)),r=o.indexOf(n);let c;if([l.up,l.down].includes(s)){if(t.preventDefault(),s===l.up){c=-1===r?0:0!==r?r-1:o.length-1;const e=c;for(;!a(o,c);){if(c--,c===e){c=-1;break}c<0&&(c=o.length-1)}}else{c=-1===r?0:r<o.length-1?r+1:0;const e=c;for(;!a(o,c);){if(c++,c===e){c=-1;break}c>=o.length&&(c=0)}}-1!==c&&o[c].focus()}[l.left,l.right].includes(s)&&(t.preventDefault(),n.click());const d=n.querySelector('[type="checkbox"]');[l.enter,l.numpadEnter,l.space].includes(s)&&d&&(t.preventDefault(),d.click())});const n=()=>{var t;if(!e.value)return;const a=Array.from(e.value.querySelectorAll(`.${i.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")});const n=e.value.querySelectorAll(`.${i.is("checked")}[role=treeitem]`);n.length?n[0].setAttribute("tabindex","0"):null==(t=a[0])||t.setAttribute("tabindex","0")}}({el$:r},n);const p=_u(),h=Lu(()=>{let e=null==p?void 0:p.parent;for(;e;){if("ElTreeSelect"===e.type.name)return!0;e=e.parent}return!1}),f=Lu(()=>{const{childNodes:e}=s.value;return(!e||0===e.length||e.every(({visible:e})=>!e))&&!h.value});Rr(()=>e.currentNodeKey,e=>{n.value.setCurrentNodeKey(e??null)}),Rr(()=>e.defaultCheckedKeys,(e,t)=>{_n(e,t)||n.value.setDefaultCheckedKey(e??[])}),Rr(()=>e.defaultExpandedKeys,e=>{n.value.setDefaultExpandedKeys(e??[])}),Rr(()=>e.data,e=>{n.value.setData(e)},{deep:!0}),Rr(()=>e.checkStrictly,e=>{n.value.checkStrictly=e});const g=t=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${t}`)},m=()=>{const e=n.value.getCurrentNode();return e?e.data:null};return xr(BF,{ctx:t,props:e,store:n,root:s,currentNode:o,instance:p}),xr(gw,void 0),{ns:a,store:n,root:s,currentNode:o,dragState:u,el$:r,dropIndicator$:c,isEmpty:f,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");n.value.filter(t)},getNodeKey:t=>e.nodeKey?GF(e.nodeKey,t.data):t.id,getNodePath:e=>{g("getNodePath");const t=n.value.getNode(e);if(!t)return[];const i=[t.data];let a=t.parent;for(;a&&a!==s.value;)i.push(a.data),a=a.parent;return i.reverse()},getCheckedNodes:(e,t)=>n.value.getCheckedNodes(e,t),getCheckedKeys:e=>n.value.getCheckedKeys(e),getCurrentNode:m,getCurrentKey:()=>{g("getCurrentKey");const t=m();return t?t[e.nodeKey]:null},setCheckedNodes:(e,t)=>{g("setCheckedNodes"),n.value.setCheckedNodes(e,t)},setCheckedKeys:(e,t)=>{g("setCheckedKeys"),n.value.setCheckedKeys(e,t)},setChecked:(e,t,i=!1)=>{n.value.setChecked(e,t,i)},getHalfCheckedNodes:()=>n.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>n.value.getHalfCheckedKeys(),setCurrentNode:(e,i=!0)=>{g("setCurrentNode"),WF(n,t.emit,()=>{d(e),n.value.setUserCurrentNode(e,i)})},setCurrentKey:(e=null,i=!0)=>{g("setCurrentKey"),WF(n,t.emit,()=>{d(),n.value.setCurrentNodeKey(e,i)})},t:i,getNode:e=>n.value.getNode(e),remove:e=>{n.value.remove(e)},append:(e,t)=>{n.value.append(e,t)},insertBefore:(e,t)=>{n.value.insertBefore(e,t)},insertAfter:(e,t)=>{n.value.insertAfter(e,t)},handleNodeExpand:(e,i,a)=>{d(i),t.emit("node-expand",e,i,a)},updateKeyChildren:(e,t)=>{g("updateKeyChildren"),n.value.updateChildren(e,t)}}}});const oB=px(AC(sB,[["render",function(e,t,i,a,n,s){const o=Jl("el-tree-node");return zd(),qd("div",{ref:"el$",class:se([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(zd(!0),qd(Fd,null,sc(e.root.childNodes,t=>(zd(),Kd(o,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(zd(),qd("div",{key:0,class:se(e.ns.e("empty-block"))},[rc(e.$slots,"empty",{},()=>[tu("span",{class:se(e.ns.e("empty-text"))},me(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):ru("v-if",!0),br(tu("div",{ref:"dropIndicator$",class:se(e.ns.e("drop-indicator"))},null,2),[[yp,e.dragState.showDropIndicator]])],2)}]]));var rB=class extends Error{constructor(e,t,i,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=i,this.url=a}};function lB(e,t,i){let a;return a=i.response?`${i.response.error||i.response}`:i.responseText?`${i.responseText}`:`fail to ${t.method} ${e} ${i.status}`,new rB(a,i.status,t.method,e)}const cB=["text","picture","picture-card"];let dB=1;const uB=()=>Date.now()+dB++,pB=W_({action:{type:String,default:"#"},headers:{type:Object},method:{type:String,default:"post"},data:{type:[Object,Function,Promise],default:()=>({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:cB,default:"text"},httpRequest:{type:Function,default:e=>{"undefined"==typeof XMLHttpRequest&&q_("ElUpload","XMLHttpRequest is undefined");const t=new XMLHttpRequest,i=e.action;t.upload&&t.upload.addEventListener("progress",t=>{const i=t;i.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(i)});const a=new FormData;if(e.data)for(const[s,o]of Object.entries(e.data))C(o)?2===o.length&&o[0]instanceof Blob&&R(o[1])?a.append(s,o[0],o[1]):o.forEach(e=>{a.append(s,e)}):a.append(s,o);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(lB(i,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(lB(i,e,t));e.onSuccess(function(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}(t))}),t.open(e.method,i,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const n=e.headers||{};if(n instanceof Headers)n.forEach((e,i)=>t.setRequestHeader(i,e));else for(const[s,o]of Object.entries(n))vn(o)||t.setRequestHeader(s,String(o));return t.send(a),t}},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),hB=W_({...pB,beforeUpload:{type:Function,default:m},beforeRemove:{type:Function},onRemove:{type:Function,default:m},onChange:{type:Function,default:m},onPreview:{type:Function,default:m},onSuccess:{type:Function,default:m},onProgress:{type:Function,default:m},onError:{type:Function,default:m},onExceed:{type:Function,default:m},crossorigin:{type:String}}),fB=Symbol("uploadContextKey"),gB=W_({files:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},handlePreview:{type:Function,default:m},listType:{type:String,values:cB,default:"text"},crossorigin:{type:String}}),mB=W_({...pB,beforeUpload:{type:Function,default:m},onRemove:{type:Function,default:m},onStart:{type:Function,default:m},onSuccess:{type:Function,default:m},onProgress:{type:Function,default:m},onError:{type:Function,default:m},onExceed:{type:Function,default:m}}),_B=W_({disabled:{type:Boolean,default:void 0},directory:Boolean}),vB={file:e=>C(e)},bB=["tabindex","aria-disabled","onKeydown"],yB=["src","crossorigin"],xB=["onClick"],SB=["title"],wB=["onClick"],CB=["onClick"];var EB=sl({name:"ElUploadList",__name:"upload-list",props:gB,emits:{remove:e=>!!e},setup(e,{emit:t}){const i=e,a=t,{t:n}=Qv(),s=ib("upload"),o=ib("icon"),r=ib("list"),l=_w(),c=mo(!1),d=Lu(()=>[s.b("list"),s.bm("list",i.listType),s.is("disabled",l.value)]),u=e=>{a("remove",e)};return(t,i)=>(zd(),Kd(sh,{tag:"ul",class:se(d.value),name:xo(r).b()},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.files,(a,r)=>(zd(),qd("li",{key:a.uid||a.name,class:se([xo(s).be("list","item"),xo(s).is(a.status),{focusing:c.value}]),tabindex:xo(l)?void 0:0,"aria-disabled":xo(l),role:"button",onKeydown:Ih(e=>!xo(l)&&u(a),["delete"]),onFocus:i[0]||(i[0]=e=>c.value=!0),onBlur:i[1]||(i[1]=e=>c.value=!1),onClick:i[2]||(i[2]=e=>c.value=!1)},[rc(t.$slots,"default",{file:a,index:r},()=>["picture"===e.listType||"uploading"!==a.status&&"picture-card"===e.listType?(zd(),qd("img",{key:0,class:se(xo(s).be("list","item-thumbnail")),src:a.url,crossorigin:e.crossorigin,alt:""},null,10,yB)):ru("v-if",!0),"uploading"===a.status||"picture-card"!==e.listType?(zd(),qd("div",{key:1,class:se(xo(s).be("list","item-info"))},[tu("a",{class:se(xo(s).be("list","item-name")),onClick:Ah(t=>e.handlePreview(a),["prevent"])},[iu(xo(KS),{class:se(xo(o).m("document"))},{default:vr(()=>[iu(xo(Yx))]),_:1},8,["class"]),tu("span",{class:se(xo(s).be("list","item-file-name")),title:a.name},me(a.name),11,SB)],10,xB),"uploading"===a.status?(zd(),Kd(xo(EL),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(a.percentage),style:ee("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ru("v-if",!0)],2)):ru("v-if",!0),tu("label",{class:se(xo(s).be("list","item-status-label"))},["text"===e.listType?(zd(),Kd(xo(KS),{key:0,class:se([xo(o).m("upload-success"),xo(o).m("circle-check")])},{default:vr(()=>[iu(xo(Dx))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(zd(),Kd(xo(KS),{key:1,class:se([xo(o).m("upload-success"),xo(o).m("check")])},{default:vr(()=>[iu(xo(Ix))]),_:1},8,["class"])):ru("v-if",!0)],2),xo(l)?ru("v-if",!0):(zd(),Kd(xo(KS),{key:2,class:se(xo(o).m("close")),"aria-label":xo(n)("el.upload.delete"),role:"button",tabindex:"0",onClick:e=>u(a),onKeydown:Ih(Ah(e=>u(a),["prevent"]),["enter","space"])},{default:vr(()=>[iu(xo(Lx))]),_:1},8,["class","aria-label","onClick","onKeydown"])),xo(l)?ru("v-if",!0):(zd(),qd("i",{key:3,class:se(xo(o).m("close-tip"))},me(xo(n)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(zd(),qd("span",{key:4,class:se(xo(s).be("list","item-actions"))},[tu("span",{class:se(xo(s).be("list","item-preview")),onClick:t=>e.handlePreview(a)},[iu(xo(KS),{class:se(xo(o).m("zoom-in"))},{default:vr(()=>[iu(xo(zS))]),_:1},8,["class"])],10,wB),xo(l)?ru("v-if",!0):(zd(),qd("span",{key:0,class:se(xo(s).be("list","item-delete")),onClick:e=>u(a)},[iu(xo(KS),{class:se(xo(o).m("delete"))},{default:vr(()=>[iu(xo(Hx))]),_:1},8,["class"])],10,CB))],2)):ru("v-if",!0)])],42,bB))),128)),rc(t.$slots,"append")]),_:3},8,["class","name"]))}}),kB=EB;const TB="ElUploadDrag";var AB=sl({name:TB,__name:"upload-dragger",props:_B,emits:vB,setup(e,{emit:t}){const i=e,a=t;Sr(fB)||q_(TB,"usage: <el-upload><el-upload-dragger /></el-upload>");const n=ib("upload"),s=mo(!1),o=_w(),r=async e=>{try{if(e.isFile){const t=await(e=>new Promise((t,i)=>e.file(t,i)))(e);return t.isDirectory=!1,[t]}if(e.isDirectory){const t=e.createReader(),i=()=>new Promise((e,i)=>t.readEntries(e,i)),a=[];let n=await i();for(;n.length>0;)a.push(...n),n=await i();const s=a.map(e=>r(e).catch(()=>[]));return Ri(await Promise.all(s))}}catch{return[]}return[]},l=async e=>{if(o.value)return;s.value=!1,e.stopPropagation();const t=Array.from(e.dataTransfer.files),n=e.dataTransfer.items||[];if(i.directory){const e=Array.from(n).map(e=>{var t;return null==(t=null==e?void 0:e.webkitGetAsEntry)?void 0:t.call(e)}).filter(e=>e);return void a("file",Ri(await Promise.all(e.map(r))))}t.forEach((e,t)=>{var i,a;const s=null==(a=null==(i=n[t])?void 0:i.webkitGetAsEntry)?void 0:a.call(i);s&&(e.isDirectory=s.isDirectory)}),a("file",t)},c=()=>{o.value||(s.value=!0)},d=e=>{e.currentTarget.contains(e.relatedTarget)||(s.value=!1)};return(e,t)=>(zd(),qd("div",{class:se([xo(n).b("dragger"),xo(n).is("dragover",s.value)]),onDrop:Ah(l,["prevent"]),onDragover:Ah(c,["prevent"]),onDragleave:Ah(d,["prevent"])},[rc(e.$slots,"default")],34))}}),RB=AB;const IB=["tabindex","aria-disabled","onKeydown"],DB=["name","disabled","multiple","accept","webkitdirectory"];var OB=sl({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:mB,setup(e,{expose:t}){const i=e,a=ib("upload"),n=_w(),s=_o({}),o=_o(),r=e=>{if(0===e.length)return;const{autoUpload:t,limit:a,fileList:n,multiple:s,onStart:o,onExceed:r}=i;if(a&&n.length+e.length>a)r(e,n);else{s||(e=e.slice(0,1));for(const i of e){const e=i;e.uid=uB(),o(e),t&&l(e)}}},l=async e=>{if(o.value.value="",!i.beforeUpload)return c(e);let t,a={};try{const n=i.data,s=i.beforeUpload(e);a=L(i.data)?Oa(i.data):i.data,t=await s,L(i.data)&&_n(n,a)&&(a=Oa(i.data))}catch{t=!1}if(!1===t)return void i.onRemove(e);let n=e;t instanceof Blob&&(n=t instanceof File?t:new File([t],e.name,{type:e.type})),c(Object.assign(n,{uid:e.uid}),a)},c=async(e,t)=>{const{headers:a,data:n,method:o,withCredentials:r,name:l,action:c,onProgress:d,onSuccess:u,onError:p,httpRequest:h}=i;try{t=await(async(e,t)=>A(e)?e(t):e)(t??n,e)}catch{return void i.onRemove(e)}const{uid:f}=e,g={headers:a||{},withCredentials:r,file:e,data:t,method:o,filename:l,action:c,onProgress:t=>{d(t,e)},onSuccess:t=>{u(t,e),delete s.value[f]},onError:t=>{p(t,e),delete s.value[f]}},m=h(g);s.value[f]=m,m instanceof Promise&&m.then(g.onSuccess,g.onError)},d=e=>{const t=e.target.files;t&&r(Array.from(t))},u=()=>{n.value||(o.value.value="",o.value.click())},p=()=>{u()};return t({abort:e=>{Fn(s.value).filter(e?([t])=>String(e.uid)===t:()=>!0).forEach(([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete s.value[e]})},upload:l}),(t,i)=>(zd(),qd("div",{class:se([xo(a).b(),xo(a).m(e.listType),xo(a).is("drag",e.drag),xo(a).is("disabled",xo(n))]),tabindex:xo(n)?void 0:0,"aria-disabled":xo(n),role:"button",onClick:u,onKeydown:Ih(Ah(p,["self"]),["enter","space"])},[e.drag?(zd(),Kd(RB,{key:0,disabled:xo(n),directory:e.directory,onFile:r},{default:vr(()=>[rc(t.$slots,"default")]),_:3},8,["disabled","directory"])):rc(t.$slots,"default",{key:1}),tu("input",{ref_key:"inputRef",ref:o,class:se(xo(a).e("input")),name:e.name,disabled:xo(n),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:d,onClick:i[0]||(i[0]=Ah(()=>{},["stop"]))},null,42,DB)],42,IB))}}),MB=OB;const NB="ElUpload",LB=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)};const PB=px(sl({name:"ElUpload",__name:"upload",props:hB,setup(e,{expose:t}){const i=e,a=_w(),n=_o(),{abort:s,submit:o,clearFiles:r,uploadFiles:l,handleStart:c,handleError:d,handleRemove:u,handleSuccess:p,handleProgress:h,revokeFileObjectURL:f}=((e,t)=>{const i=Av(e,"fileList",void 0,{passive:!0}),a=e=>i.value.find(t=>t.uid===e.uid);function n(e){var i;null==(i=t.value)||i.abort(e)}function s(e){i.value=i.value.filter(t=>t.uid!==e.uid)}const o=t=>{ir(()=>e.onChange(t,i.value))};return Rr(()=>e.listType,t=>{"picture-card"!==t&&"picture"!==t||(i.value=i.value.map(t=>{const{raw:a,url:n}=t;if(!n&&a)try{t.url=URL.createObjectURL(a)}catch(s){e.onError(s,t,i.value)}return t}))}),Rr(i,e=>{for(const t of e)t.uid||(t.uid=uB()),t.status||(t.status="success")},{immediate:!0,deep:!0}),{uploadFiles:i,abort:n,clearFiles:function(e=["ready","uploading","success","fail"]){i.value=i.value.filter(t=>!e.includes(t.status))},handleError:(t,n)=>{const r=a(n);r&&(r.status="fail",s(r),e.onError(t,r,i.value),o(r))},handleProgress:(t,n)=>{const s=a(n);s&&(e.onProgress(t,s,i.value),s.status="uploading",s.percentage=Math.round(t.percent))},handleStart:t=>{vn(t.uid)&&(t.uid=uB());const a={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{a.url=URL.createObjectURL(t)}catch(n){K_(NB,n.message),e.onError(n,a,i.value)}i.value=[...i.value,a],o(a)},handleSuccess:(t,n)=>{const s=a(n);s&&(s.status="success",s.response=t,e.onSuccess(t,s,i.value),o(s))},handleRemove:async t=>{const o=t instanceof File?a(t):t;o||q_(NB,"file to be removed not found");const r=t=>{n(t),s(t),e.onRemove(t,i.value),LB(t)};e.beforeRemove?!1!==await e.beforeRemove(o,i.value)&&r(o):r(o)},submit:function(){i.value.filter(({status:e})=>"ready"===e).forEach(({raw:e})=>{var i;return e&&(null==(i=t.value)?void 0:i.upload(e))})},revokeFileObjectURL:LB}})(i,n),g=Lu(()=>"picture-card"===i.listType),m=Lu(()=>({...i,fileList:l.value,onStart:c,onProgress:h,onSuccess:p,onError:d,onRemove:u}));return Wl(()=>{l.value.forEach(f)}),xr(fB,{accept:Io(i,"accept")}),t({abort:s,submit:o,clearFiles:r,handleStart:c,handleRemove:u}),(t,i)=>(zd(),qd("div",null,[g.value&&e.showFileList?(zd(),Kd(kB,{key:0,disabled:xo(a),"list-type":e.listType,files:xo(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:xo(u)},oc({append:vr(()=>[iu(MB,uu({ref_key:"uploadRef",ref:n},m.value),{default:vr(()=>[t.$slots.trigger?rc(t.$slots,"trigger",{key:0}):ru("v-if",!0),!t.$slots.trigger&&t.$slots.default?rc(t.$slots,"default",{key:1}):ru("v-if",!0)]),_:3},16)]),_:2},[t.$slots.file?{name:"default",fn:vr(({file:e,index:i})=>[rc(t.$slots,"file",{file:e,index:i})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ru("v-if",!0),!g.value||g.value&&!e.showFileList?(zd(),Kd(MB,uu({key:1,ref_key:"uploadRef",ref:n},m.value),{default:vr(()=>[t.$slots.trigger?rc(t.$slots,"trigger",{key:0}):ru("v-if",!0),!t.$slots.trigger&&t.$slots.default?rc(t.$slots,"default",{key:1}):ru("v-if",!0)]),_:3},16)):ru("v-if",!0),t.$slots.trigger?rc(t.$slots,"default",{key:2}):ru("v-if",!0),rc(t.$slots,"tip"),!g.value&&e.showFileList?(zd(),Kd(kB,{key:3,disabled:xo(a),"list-type":e.listType,files:xo(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:xo(u)},oc({_:2},[t.$slots.file?{name:"default",fn:vr(({file:e,index:i})=>[rc(t.$slots,"file",{file:e,index:i})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ru("v-if",!0)]))}}));function FB(e,t){let i;const a=mo(!1),n=to({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(){var e,t;null==(t=null==(e=l.$el)?void 0:e.parentNode)||t.removeChild(l.$el)}function o(){if(!a.value)return;const e=n.parent;a.value=!1,e.vLoadingAddClassList=void 0,function(){const e=n.parent,t=l.ns;if(!e.vLoadingAddClassList){let i=e.getAttribute("loading-number");i=Number.parseInt(i)-1,i?e.setAttribute("loading-number",i.toString()):(Yv(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),Yv(e,t.bm("parent","hidden"))}s(),r.unmount()}()}const r=Bh(sl({name:"ElLoading",setup(e,{expose:t}){const{ns:i,zIndex:a}=qE("loading");return t({ns:i,zIndex:a}),()=>{const e=n.spinner||n.svg,t=Pu("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[Pu("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),a=n.text?Pu("p",{class:i.b("text")},[n.text]):void 0;return Pu(np,{name:i.b("fade"),onAfterLeave:o},{default:vr(()=>[br(iu("div",{style:{backgroundColor:n.background||""},class:[i.b("mask"),n.customClass,i.is("fullscreen",n.fullscreen)]},[Pu("div",{class:i.b("spinner")},[t,a])]),[[yp,n.visible]])])})}}}));Object.assign(r._context,t??{});const l=r.mount(document.createElement("div"));return{...To(n),setText:function(e){n.text=e},removeElLoadingChild:s,close:function(){var t;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(i),i=setTimeout(o,400),n.visible=!1,null==(t=e.closed)||t.call(e))},handleAfterLeave:o,vm:l,get $el(){return l.$el}}}let BB;const $B=function(e={},t){if(!av)return;const i=VB(e);if(i.fullscreen&&BB)return BB;const a=FB({...i,closed:()=>{var e;null==(e=i.closed)||e.call(i),i.fullscreen&&(BB=void 0)}},t??$B._context);UB(i,i.parent,a),HB(i,i.parent,a),i.parent.vLoadingAddClassList=()=>HB(i,i.parent,a);let n=i.parent.getAttribute("loading-number");return n=n?`${Number.parseInt(n)+1}`:"1",i.parent.setAttribute("loading-number",n),i.parent.appendChild(a.$el),ir(()=>a.visible.value=i.visible),i.fullscreen&&(BB=a),a},VB=e=>{let t;return t=R(e.target)?document.querySelector(e.target)??document.body:e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},UB=async(e,t,i)=>{const{nextZIndex:a}=i.vm.zIndex||i.vm._.exposed.zIndex,n={};if(e.fullscreen)i.originalPosition.value=Gv(document.body,"position"),i.originalOverflow.value=Gv(document.body,"overflow"),n.zIndex=a();else if(e.parent===document.body){i.originalPosition.value=Gv(document.body,"position"),await ir();for(const t of["top","left"]){const i="top"===t?"scrollTop":"scrollLeft";n[t]=e.target.getBoundingClientRect()[t]+document.body[i]+document.documentElement[i]-Number.parseInt(Gv(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])n[t]=`${e.target.getBoundingClientRect()[t]}px`}else i.originalPosition.value=Gv(t,"position");for(const[s,o]of Object.entries(n))i.$el.style[s]=o},HB=(e,t,i)=>{const a=i.vm.ns||i.vm._.exposed.ns;["absolute","fixed","sticky"].includes(i.originalPosition.value)?Yv(t,a.bm("parent","relative")):zv(t,a.bm("parent","relative")),e.fullscreen&&e.lock?zv(t,a.bm("parent","hidden")):Yv(t,a.bm("parent","hidden"))};$B._context=null;const zB=Symbol("ElLoading"),YB=e=>`element-loading-${z(e)}`,GB=(e,t)=>{const i=t.instance,a=e=>D(t.value)?t.value[e]:void 0,n=t=>{return n=a(t)||e.getAttribute(YB(t)),mo(R(n)&&(null==i?void 0:i[n])||n);var n},s=a("fullscreen")??t.modifiers.fullscreen,o={text:n("text"),svg:n("svg"),svgViewBox:n("svgViewBox"),spinner:n("spinner"),background:n("background"),customClass:n("customClass"),fullscreen:s,target:a("target")??(s?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},r=$B(o);r._context=WB._context,e[zB]={options:o,instance:r}},WB={mounted(e,t){t.value&&GB(e,t)},updated(e,t){const i=e[zB];if(!t.value)return null==i||i.instance.close(),void(e[zB]=null);i?((e,t)=>{for(const i of Object.keys(e))go(e[i])&&(e[i].value=t[i])})(i.options,D(t.value)?t.value:{text:e.getAttribute(YB("text")),svg:e.getAttribute(YB("svg")),svgViewBox:e.getAttribute(YB("svgViewBox")),spinner:e.getAttribute(YB("spinner")),background:e.getAttribute(YB("background")),customClass:e.getAttribute(YB("customClass"))}):GB(e,t)},unmounted(e){var t;null==(t=e[zB])||t.instance.close(),e[zB]=null},_context:null},jB={install(e){$B._context=e._context,WB._context=e._context,e.directive("loading",WB),e.config.globalProperties.$loading=$B},directive:WB,service:$B},qB=["primary","success","info","warning","error"],KB=["top","top-left","top-right","bottom","bottom-left","bottom-right"],XB={customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:av?document.body:void 0},ZB=W_({customClass:{type:String,default:XB.customClass},dangerouslyUseHTMLString:{type:Boolean,default:XB.dangerouslyUseHTMLString},duration:{type:Number,default:XB.duration},icon:{type:YS,default:XB.icon},id:{type:String,default:XB.id},message:{type:[String,Object,Function],default:XB.message},onClose:{type:Function,default:XB.onClose},showClose:{type:Boolean,default:XB.showClose},type:{type:String,values:qB,default:XB.type},plain:{type:Boolean,default:XB.plain},offset:{type:Number,default:XB.offset},placement:{type:String,values:KB,default:XB.placement},zIndex:{type:Number,default:XB.zIndex},grouping:{type:Boolean,default:XB.grouping},repeatNum:{type:Number,default:XB.repeatNum}}),QB=io({}),JB=(e,t)=>{const{prev:i}=((e,t)=>{const i=QB[t]||[],a=i.findIndex(t=>t.id===e),n=i[a];let s;return a>0&&(s=i[a-1]),{current:n,prev:s}})(e,t);return i?i.vm.exposed.bottom.value:0},e$=["id"],t$=["innerHTML"];var i$=sl({name:"ElMessage",__name:"message",props:ZB,emits:{destroy:()=>!0},setup(e,{expose:t,emit:i}){const{Close:a}=WS,n=e,s=i,o=mo(!1),{ns:r,zIndex:c}=qE("message"),{currentZIndex:d,nextZIndex:u}=c,p=mo(),h=mo(!1),f=mo(0);let g;const m=Lu(()=>n.type?"error"===n.type?"danger":n.type:"info"),_=Lu(()=>{const e=n.type;return{[r.bm("icon",e)]:e&&jS[e]}}),v=Lu(()=>n.icon||jS[n.type]||""),b=Lu(()=>n.placement||"top"),y=Lu(()=>JB(n.id,b.value)),x=Lu(()=>Math.max(((e,t,i)=>(QB[i]||[]).findIndex(t=>t.id===e)>0?16:t)(n.id,n.offset,b.value)+y.value,n.offset)),S=Lu(()=>f.value+x.value),w=Lu(()=>b.value.includes("left")?r.is("left"):b.value.includes("right")?r.is("right"):r.is("center")),C=Lu(()=>b.value.startsWith("top")?"top":"bottom"),E=Lu(()=>({[C.value]:`${x.value}px`,zIndex:d.value}));function k(){0!==n.duration&&({stop:g}=fv(()=>{A()},n.duration))}function T(){null==g||g()}function A(){h.value=!1,ir(()=>{var e;o.value||(null==(e=n.onClose)||e.call(n),s("destroy"))})}return zl(()=>{k(),u(),h.value=!0}),Rr(()=>n.repeatNum,()=>{T(),k()}),vv(document,"keydown",function(e){db(e)===l.esc&&A()}),kv(p,()=>{f.value=p.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:A}),(t,i)=>(zd(),Kd(np,{name:xo(r).b("fade"),onBeforeEnter:i[0]||(i[0]=e=>o.value=!0),onBeforeLeave:e.onClose,onAfterLeave:i[1]||(i[1]=e=>t.$emit("destroy")),persisted:""},{default:vr(()=>[br(tu("div",{id:e.id,ref_key:"messageRef",ref:p,class:se([xo(r).b(),{[xo(r).m(e.type)]:e.type},xo(r).is("closable",e.showClose),xo(r).is("plain",e.plain),xo(r).is("bottom","bottom"===C.value),w.value,e.customClass]),style:ee(E.value),role:"alert",onMouseenter:T,onMouseleave:k},[e.repeatNum>1?(zd(),Kd(xo(OE),{key:0,value:e.repeatNum,type:m.value,class:se(xo(r).e("badge"))},null,8,["value","type","class"])):ru("v-if",!0),v.value?(zd(),Kd(xo(KS),{key:1,class:se([xo(r).e("icon"),_.value])},{default:vr(()=>[(zd(),Kd(tc(v.value)))]),_:1},8,["class"])):ru("v-if",!0),!e.dangerouslyUseHTMLString||t.$slots.default?(zd(),qd("p",{key:2,class:se(xo(r).e("content"))},[rc(t.$slots,"default",{},()=>[su(me(e.message),1)])],2)):(zd(),qd(Fd,{key:3},[ru(" Caution here, message could've been compromised, never use user's input as message "),tu("p",{class:se(xo(r).e("content")),innerHTML:e.message},null,10,t$)],2112)),e.showClose?(zd(),Kd(xo(KS),{key:4,class:se(xo(r).e("closeBtn")),onClick:Ah(A,["stop"])},{default:vr(()=>[iu(xo(a))]),_:1},8,["class"])):ru("v-if",!0)],46,e$),[[yp,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});let a$=1;const n$=e=>{const t=!e||R(e)||Xd(e)||A(e)?{message:e}:e,i={...XB,...t};return(e=>{if(e.appendTo){if(R(e.appendTo)){let t=document.querySelector(e.appendTo);Nn(t)||(K_("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}}else e.appendTo=document.body})(i),(e=>{!e.placement&&R(ZE.placement)&&ZE.placement&&(e.placement=ZE.placement),e.placement||(e.placement="top"),KB.includes(e.placement)||(K_("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")})(i),Dn(ZE.grouping)&&!i.grouping&&(i.grouping=ZE.grouping),On(ZE.duration)&&3e3===i.duration&&(i.duration=ZE.duration),On(ZE.offset)&&16===i.offset&&(i.offset=ZE.offset),Dn(ZE.showClose)&&!i.showClose&&(i.showClose=ZE.showClose),Dn(ZE.plain)&&!i.plain&&(i.plain=ZE.plain),i},s$=({appendTo:e,...t},i)=>{const a="message_"+a$++,n=t.onClose,s=document.createElement("div"),o={...t,id:a,onClose:()=>{null==n||n(),(e=>{const t=QB[e.props.placement||"top"],i=t.indexOf(e);if(-1===i)return;t.splice(i,1);const{handler:a}=e;a.close()})(c)},onDestroy:()=>{Ph(null,s)}},r=iu(i$,o,A(o.message)||Xd(o.message)?{default:A(o.message)?o.message:()=>o.message}:null);r.appContext=i||o$._context,Ph(r,s),e.appendChild(s.firstElementChild);const l=r.component,c={id:a,vnode:r,vm:l,handler:{close:()=>{l.exposed.close()}},props:r.component.props};return c},o$=(e={},t)=>{if(!av)return{close:()=>{}};const i=n$(e),a=(n=i.placement||"top",QB[n]||(QB[n]=io([])),QB[n]);var n;if(i.grouping&&a.length){const e=a.find(({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===i.message});if(e)return e.props.repeatNum+=1,e.props.type=i.type,e.handler}if(On(ZE.max)&&a.length>=ZE.max)return{close:()=>{}};const s=s$(i,t);return a.push(s),s.handler};qB.forEach(e=>{o$[e]=(t={},i)=>o$({...n$(t),type:e},i)}),o$.closeAll=function(e){for(const t in QB)if(w(QB,t)){const i=[...QB[t]];for(const t of i)e&&e!==t.props.type||t.handler.close()}},o$.closeAllByPlacement=function(e){QB[e]&&[...QB[e]].forEach(e=>e.handler.close())},o$._context=null;const r$=hx(o$,"$message");var l$=sl({name:"ElMessageBox",directives:{TrapFocus:uT},components:{ElButton:Sk,ElFocusTrap:RC,ElInput:cE,ElOverlay:JO,ElIcon:KS,...WS},inheritAttrs:!1,props:{buttonSize:{type:String,validator:RL},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:i,zIndex:a,ns:n,size:s}=qE("message-box",Lu(()=>e.buttonSize)),{t:o}=i,{nextZIndex:r}=a,l=mo(!1),c=to({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:po(oS),cancelButtonLoadingIcon:po(oS),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:r()}),d=Lu(()=>{const e=c.type;return{[n.bm("icon",e)]:e&&jS[e]}}),u=Vy(),p=Vy(),h=Lu(()=>{const e=c.type;return c.icon||e&&jS[e]||""}),f=Lu(()=>!!c.message),g=mo(),m=mo(),_=mo(),v=mo(),b=mo(),y=Lu(()=>c.confirmButtonClass);Rr(()=>c.inputValue,async t=>{await ir(),"prompt"===e.boxType&&t&&k()},{immediate:!0}),Rr(()=>l.value,t=>{var i;t&&("prompt"!==e.boxType&&(c.autofocus?_.value=(null==(i=b.value)?void 0:i.$el)??g.value:_.value=g.value),c.zIndex=r()),"prompt"===e.boxType&&(t?ir().then(()=>{v.value&&v.value.$el&&(c.autofocus?_.value=T()??g.value:_.value=g.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:x}=jv(g,m,Lu(()=>e.draggable),Lu(()=>e.overflow));function S(){l.value&&(l.value=!1,ir(()=>{c.action&&t("action",c.action)}))}zl(async()=>{await ir(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),Wl(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});const w=()=>{e.closeOnClickModal&&E(c.distinguishCancelAndClose?"close":"cancel")},C=Ly(w),E=t=>{var i;("prompt"!==e.boxType||"confirm"!==t||k())&&(c.action=t,c.beforeClose?null==(i=c.beforeClose)||i.call(c,t,c,S):S())},k=()=>{if("prompt"===e.boxType){const e=c.inputPattern;if(e&&!e.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||o("el.messagebox.error"),c.validateError=!0,!1;const t=c.inputValidator;if(A(t)){const e=t(c.inputValue);if(!1===e)return c.editorErrorMessage=c.inputErrorMessage||o("el.messagebox.error"),c.validateError=!0,!1;if(R(e))return c.editorErrorMessage=e,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},T=()=>{var e;const t=null==(e=v.value)?void 0:e.$refs;return(null==t?void 0:t.input)??(null==t?void 0:t.textarea)},I=()=>{E("close")};return e.lockScroll&&rb(l,{ns:n}),{...To(c),ns:n,overlayEvent:C,visible:l,hasMessage:f,typeClass:d,contentId:u,inputId:p,btnSize:s,iconComponent:h,confirmButtonClasses:y,rootRef:g,focusStartRef:_,headerRef:m,inputRef:v,isDragging:x,confirmRef:b,doClose:S,handleClose:I,onCloseRequested:()=>{e.closeOnPressEscape&&I()},handleWrapperClick:w,handleInputEnter:e=>{var t;if("textarea"!==c.inputType&&!(null==(t=v.value)?void 0:t.isComposing))return e.preventDefault(),E("confirm")},handleAction:E,t:o}}});const c$=["aria-label","aria-describedby"],d$=["aria-label"],u$=["id"];var p$=AC(l$,[["render",function(e,t,i,a,n,s){const o=Jl("el-icon"),r=Jl("el-input"),l=Jl("el-button"),c=Jl("el-focus-trap"),d=Jl("el-overlay");return zd(),Kd(np,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:vr(()=>[br(iu(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:vr(()=>[tu("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:se(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[iu(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:vr(()=>[tu("div",{ref:"rootRef",class:se([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:ee(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Ah(()=>{},["stop"]))},[null!==e.title&&void 0!==e.title?(zd(),qd("div",{key:0,ref:"headerRef",class:se([e.ns.e("header"),{"show-close":e.showClose}])},[tu("div",{class:se(e.ns.e("title"))},[e.iconComponent&&e.center?(zd(),Kd(o,{key:0,class:se([e.ns.e("status"),e.typeClass])},{default:vr(()=>[(zd(),Kd(tc(e.iconComponent)))]),_:1},8,["class"])):ru("v-if",!0),tu("span",null,me(e.title),1)],2),e.showClose?(zd(),qd("button",{key:0,type:"button",class:se(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ih(Ah(t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[iu(o,{class:se(e.ns.e("close"))},{default:vr(()=>[(zd(),Kd(tc(e.closeIcon||"close")))]),_:1},8,["class"])],42,d$)):ru("v-if",!0)],2)):ru("v-if",!0),tu("div",{id:e.contentId,class:se(e.ns.e("content"))},[tu("div",{class:se(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(zd(),Kd(o,{key:0,class:se([e.ns.e("status"),e.typeClass])},{default:vr(()=>[(zd(),Kd(tc(e.iconComponent)))]),_:1},8,["class"])):ru("v-if",!0),e.hasMessage?(zd(),qd("div",{key:1,class:se(e.ns.e("message"))},[rc(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(zd(),Kd(tc(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(zd(),Kd(tc(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:me(e.message)},null,8,["for","textContent"]))])],2)):ru("v-if",!0)],2),br(tu("div",{class:se(e.ns.e("input"))},[iu(r,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:se({invalid:e.validateError}),onKeydown:Ih(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),tu("div",{class:se(e.ns.e("errormsg")),style:ee({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[yp,e.showInput]])],10,u$),e.showCancelButton||e.showConfirmButton?(zd(),qd("div",{key:1,class:se(e.ns.e("btns"))},[e.showCancelButton?(zd(),Kd(l,{key:0,type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:se([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ih(Ah(t=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:vr(()=>[su(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):ru("v-if",!0),br(iu(l,{ref:"confirmRef",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:se([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ih(Ah(t=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:vr(()=>[su(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[yp,e.showConfirmButton]])],2)):ru("v-if",!0)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,c$)]),_:3},8,["z-index","overlay-class","mask"]),[[yp,e.visible]])]),_:3})}]]);const h$=new Map,f$=(e,t)=>{var i;const a=null==(i=e.component)?void 0:i.proxy;return()=>a.handleAction(t)},g$=(e,t,i=null)=>{const a=iu(p$,e,A(e.message)||Xd(e.message)?{default:A(e.message)?()=>e.message({confirm:f$(a,"confirm"),cancel:f$(a,"cancel"),close:f$(a,"close")}):()=>e.message}:null);return a.appContext=i,Ph(a,t),(e=>{let t=document.body;return e.appendTo&&(R(e.appendTo)&&(t=document.querySelector(e.appendTo)),Nn(e.appendTo)&&(t=e.appendTo),Nn(t)||(K_("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t})(e).appendChild(t.firstElementChild),a.component},m$=(e,t)=>{const i=document.createElement("div");e.onVanish=()=>{Ph(null,i),h$.delete(n)},e.onAction=t=>{const i=h$.get(n);let s;s=e.showInput?{value:n.inputValue,action:t}:t,e.callback?e.callback(s,a.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?i.reject("close"):i.reject("cancel"):i.resolve(s)};const a=g$(e,i,t),n=a.proxy;for(const s in e)w(e,s)&&!w(n.$props,s)&&("closeIcon"===s&&D(e[s])?n[s]=po(e[s]):n[s]=e[s]);return n.visible=!0,n};function _$(e,t=null){if(!av)return Promise.reject();let i;return R(e)||Xd(e)?e={message:e}:i=e.callback,new Promise((a,n)=>{const s=m$(e,t??_$._context);h$.set(s,{options:e,callback:i,resolve:a,reject:n})})}const v$={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};["alert","confirm","prompt"].forEach(e=>{_$[e]=function(e){return(t,i,a,n)=>{let s="";return D(i)?(a=i,s=""):s=In(i)?"":i,_$(Object.assign({title:s,message:t,type:"",...v$[e]},a,{boxType:e}),n)}}(e)}),_$.close=()=>{h$.forEach((e,t)=>{t.doClose()}),h$.clear()},_$._context=null;const b$=_$;b$.install=e=>{b$._context=e._context,e.config.globalProperties.$msgbox=b$,e.config.globalProperties.$messageBox=b$,e.config.globalProperties.$alert=b$.alert,e.config.globalProperties.$confirm=b$.confirm,e.config.globalProperties.$prompt=b$.prompt};const y$=b$,x$=["primary","success","info","warning","error"],S$=W_({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:YS},id:{type:String,default:""},message:{type:[String,Object,Function],default:""},offset:{type:Number,default:0},onClick:{type:Function,default:()=>{}},onClose:{type:Function,required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...x$,""],default:""},zIndex:Number,closeIcon:{type:YS,default:Lx}}),w$=["id"],C$=["textContent"],E$={key:0},k$=["innerHTML"];var T$=sl({name:"ElNotification",__name:"notification",props:S$,emits:{destroy:()=>!0},setup(e,{expose:t}){const i=e,{ns:a,zIndex:n}=qE("notification"),{nextZIndex:s,currentZIndex:o}=n,r=mo(!1);let c;const d=Lu(()=>{const e=i.type;return e&&jS[i.type]?a.m(e):""}),u=Lu(()=>i.type&&jS[i.type]||i.icon),p=Lu(()=>i.position.endsWith("right")?"right":"left"),h=Lu(()=>i.position.startsWith("top")?"top":"bottom"),f=Lu(()=>({[h.value]:`${i.offset}px`,zIndex:i.zIndex??o.value}));function g(){i.duration>0&&({stop:c}=fv(()=>{r.value&&_()},i.duration))}function m(){null==c||c()}function _(){r.value=!1}return zl(()=>{g(),s(),r.value=!0}),vv(document,"keydown",function(e){switch(db(e)){case l.delete:case l.backspace:m();break;case l.esc:r.value&&_();break;default:g()}}),t({visible:r,close:_}),(t,i)=>(zd(),Kd(np,{name:xo(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:i[1]||(i[1]=e=>t.$emit("destroy")),persisted:""},{default:vr(()=>[br(tu("div",{id:e.id,class:se([xo(a).b(),e.customClass,p.value]),style:ee(f.value),role:"alert",onMouseenter:m,onMouseleave:g,onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t))},[u.value?(zd(),Kd(xo(KS),{key:0,class:se([xo(a).e("icon"),d.value])},{default:vr(()=>[(zd(),Kd(tc(u.value)))]),_:1},8,["class"])):ru("v-if",!0),tu("div",{class:se(xo(a).e("group"))},[tu("h2",{class:se(xo(a).e("title")),textContent:me(e.title)},null,10,C$),br(tu("div",{class:se(xo(a).e("content")),style:ee(e.title?void 0:{margin:0})},[rc(t.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(zd(),qd(Fd,{key:1},[ru(" Caution here, message could've been compromised, never use user's input as message "),tu("p",{innerHTML:e.message},null,8,k$)],2112)):(zd(),qd("p",E$,me(e.message),1))])],6),[[yp,e.message]]),e.showClose?(zd(),Kd(xo(KS),{key:0,class:se(xo(a).e("closeBtn")),onClick:Ah(_,["stop"])},{default:vr(()=>[(zd(),Kd(tc(e.closeIcon)))]),_:1},8,["class"])):ru("v-if",!0)],2)],46,w$),[[yp,r.value]])]),_:3},8,["name","onBeforeLeave"]))}});const A$={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let R$=1;const I$=function(e={},t){if(!av)return{close:()=>{}};(R(e)||Xd(e))&&(e={message:e});const i=e.position||"top-right";let a=e.offset||0;A$[i].forEach(({vm:e})=>{var t;a+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+16}),a+=16;const n="notification_"+R$++,s=e.onClose,o={...e,offset:a,id:n,onClose:()=>{!function(e,t,i){const a=A$[t],n=a.findIndex(({vm:t})=>{var i;return(null==(i=t.component)?void 0:i.props.id)===e});if(-1===n)return;const{vm:s}=a[n];if(!s)return;null==i||i(s);const o=s.el.offsetHeight,r=t.split("-")[0];a.splice(n,1);const l=a.length;if(l<1)return;for(let c=n;c<l;c++){const{el:e,component:t}=a[c].vm,i=Number.parseInt(e.style[r],10)-o-16;t.props.offset=i}}(n,i,s)}};let r=document.body;Nn(e.appendTo)?r=e.appendTo:R(e.appendTo)&&(r=document.querySelector(e.appendTo)),Nn(r)||(K_("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body);const l=document.createElement("div"),c=iu(T$,o,A(o.message)?o.message:Xd(o.message)?()=>o.message:null);return c.appContext=In(t)?I$._context:t,c.props.onDestroy=()=>{Ph(null,l)},Ph(c,l),A$[i].push({vm:c}),r.appendChild(l.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};x$.forEach(e=>{I$[e]=(t={},i)=>((R(t)||Xd(t))&&(t={message:t}),I$({...t,type:e},i))}),I$.closeAll=function(){for(const e of Object.values(A$))e.forEach(({vm:e})=>{e.component.exposed.visible.value=!1})},I$.updateOffsets=function(e="top-right"){var t,i,a,n;let s=(null==(a=null==(i=null==(t=A$[e][0])?void 0:t.vm.component)?void 0:i.props)?void 0:a.offset)||0;for(const{vm:o}of A$[e])o.component.props.offset=s,s+=((null==(n=o.el)?void 0:n.offsetHeight)||0)+16},I$._context=null;const D$=hx(I$,"$notify"),O$=W_({trigger:FC.trigger,triggerKeys:FC.triggerKeys,placement:yM.placement,disabled:FC.disabled,visible:PC.visible,transition:PC.transition,popperOptions:yM.popperOptions,tabindex:yM.tabindex,content:PC.content,popperStyle:PC.popperStyle,popperClass:PC.popperClass,enterable:{...PC.enterable,default:!0},effect:{...PC.effect,default:"light"},teleported:PC.teleported,appendTo:PC.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}});const M$=(e,t)=>{var i;const a=null==(i=t.arg||t.value)?void 0:i.popperRef;a&&(a.triggerRef=e)};var N$,L$;const P$=px(sl({name:"ElPopover",__name:"popover",props:O$,emits:{"update:visible":e=>Dn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},setup(e,{expose:t,emit:i}){const a=e,n=i,s=Lu(()=>a["onUpdate:visible"]),o=ib("popover"),r=mo(),l=Lu(()=>{var e;return null==(e=xo(r))?void 0:e.popperRef}),c=Lu(()=>[{width:Wv(a.width)},a.popperStyle]),d=Lu(()=>[o.b(),a.popperClass,{[o.m("plain")]:!!a.content}]),u=Lu(()=>a.transition===`${o.namespace.value}-fade-in-linear`),p=()=>{var e;null==(e=r.value)||e.hide()},h=()=>{n("before-enter")},f=()=>{n("before-leave")},g=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:p}),(t,i)=>(zd(),Kd(xo(ZC),uu({ref_key:"tooltipRef",ref:r},t.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":u.value,"onUpdate:visible":s.value,onBeforeShow:h,onBeforeHide:f,onShow:g,onHide:m}),{content:vr(()=>[e.title?(zd(),qd("div",{key:0,class:se(xo(o).e("title")),role:"title"},me(e.title),3)):ru("v-if",!0),rc(t.$slots,"default",{hide:p},()=>[su(me(e.content),1)])]),default:vr(()=>[t.$slots.reference?rc(t.$slots,"reference",{key:0}):ru("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),{directive:(L$="popover",(N$={mounted(e,t){M$(e,t)},updated(e,t){M$(e,t)}}).install=e=>{e.directive(L$,N$)},N$)});var F$={exports:{}};const B$=Ok(z_);
50 /**!
51 * Sortable 1.14.0
52 * @author RubaXa <trash@rubaxa.org>
53 * @author owenm <owen23355@gmail.com>
54 * @license MIT
55 */function $$(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function V$(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$$(Object(i),!0).forEach(function(t){H$(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$$(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function U$(e){return(U$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H$(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function z$(){return z$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},z$.apply(this,arguments)}function Y$(e,t){if(null==e)return{};var i,a,n=function(e,t){if(null==e)return{};var i,a,n={},s=Object.keys(e);for(a=0;a<s.length;a++)i=s[a],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)i=s[a],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function G$(e){return function(e){if(Array.isArray(e))return W$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return W$(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return W$(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W$(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function j$(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var q$=j$(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),K$=j$(/Edge/i),X$=j$(/firefox/i),Z$=j$(/safari/i)&&!j$(/chrome/i)&&!j$(/android/i),Q$=j$(/iP(ad|od|hone)/i),J$=j$(/chrome/i)&&j$(/android/i),eV={capture:!1,passive:!1};function tV(e,t,i){e.addEventListener(t,i,!q$&&eV)}function iV(e,t,i){e.removeEventListener(t,i,!q$&&eV)}function aV(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(i){return!1}return!1}}function nV(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function sV(e,t,i,a){if(e){i=i||document;do{if(null!=t&&(">"===t[0]?e.parentNode===i&&aV(e,t):aV(e,t))||a&&e===i)return e;if(e===i)break}while(e=nV(e))}return null}var oV,rV=/\s+/g;function lV(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(rV," ").replace(" "+t+" "," ");e.className=(a+(i?" "+t:"")).replace(rV," ")}}function cV(e,t,i){var a=e&&e.style;if(a){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),void 0===t?i:i[t];t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=i+("string"==typeof i?"":"px")}}function dV(e,t){var i="";if("string"==typeof e)i=e;else do{var a=cV(e,"transform");a&&"none"!==a&&(i=a+" "+i)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(i)}function uV(e,t,i){if(e){var a=e.getElementsByTagName(t),n=0,s=a.length;if(i)for(;n<s;n++)i(a[n],n);return a}return[]}function pV(){var e=document.scrollingElement;return e||document.documentElement}function hV(e,t,i,a,n){if(e.getBoundingClientRect||e===window){var s,o,r,l,c,d,u;if(e!==window&&e.parentNode&&e!==pV()?(o=(s=e.getBoundingClientRect()).top,r=s.left,l=s.bottom,c=s.right,d=s.height,u=s.width):(o=0,r=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||i)&&e!==window&&(n=n||e.parentNode,!q$))do{if(n&&n.getBoundingClientRect&&("none"!==cV(n,"transform")||i&&"static"!==cV(n,"position"))){var p=n.getBoundingClientRect();o-=p.top+parseInt(cV(n,"border-top-width")),r-=p.left+parseInt(cV(n,"border-left-width")),l=o+s.height,c=r+s.width;break}}while(n=n.parentNode);if(a&&e!==window){var h=dV(n||e),f=h&&h.a,g=h&&h.d;h&&(l=(o/=g)+(d/=g),c=(r/=f)+(u/=f))}return{top:o,left:r,bottom:l,right:c,width:u,height:d}}}function fV(e,t,i){for(var a=bV(e,!0),n=hV(e)[t];a;){if(!(n>=hV(a)[i]))return a;if(a===pV())break;a=bV(a,!1)}return!1}function gV(e,t,i,a){for(var n=0,s=0,o=e.children;s<o.length;){if("none"!==o[s].style.display&&o[s]!==EU.ghost&&(a||o[s]!==EU.dragged)&&sV(o[s],i.draggable,e,!1)){if(n===t)return o[s];n++}s++}return null}function mV(e,t){for(var i=e.lastElementChild;i&&(i===EU.ghost||"none"===cV(i,"display")||t&&!aV(i,t));)i=i.previousElementSibling;return i||null}function _V(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===EU.clone||t&&!aV(e,t)||i++;return i}function vV(e){var t=0,i=0,a=pV();if(e)do{var n=dV(e),s=n.a,o=n.d;t+=e.scrollLeft*s,i+=e.scrollTop*o}while(e!==a&&(e=e.parentNode));return[t,i]}function bV(e,t){if(!e||!e.getBoundingClientRect)return pV();var i=e,a=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var n=cV(i);if(i.clientWidth<i.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!i.getBoundingClientRect||i===document.body)return pV();if(a||t)return i;a=!0}}}while(i=i.parentNode);return pV()}function yV(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function xV(e,t){return function(){if(!oV){var i=arguments;1===i.length?e.call(this,i[0]):e.apply(this,i),oV=setTimeout(function(){oV=void 0},t)}}}function SV(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function wV(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function CV(e,t){cV(e,"position","absolute"),cV(e,"top",t.top),cV(e,"left",t.left),cV(e,"width",t.width),cV(e,"height",t.height)}function EV(e){cV(e,"position",""),cV(e,"top",""),cV(e,"left",""),cV(e,"width",""),cV(e,"height","")}var kV="Sortable"+(new Date).getTime();function TV(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(e){if("none"!==cV(e,"display")&&e!==EU.ghost){t.push({target:e,rect:hV(e)});var i=V$({},t[t.length-1].rect);if(e.thisAnimationDuration){var a=dV(e,!0);a&&(i.top-=a.f,i.left-=a.e)}e.fromRect=i}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var i in e)if(e.hasOwnProperty(i))for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[i][a])return Number(i);return-1}(t,{target:e}),1)},animateAll:function(i){var a=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof i&&i());var n=!1,s=0;t.forEach(function(e){var t=0,i=e.target,o=i.fromRect,r=hV(i),l=i.prevFromRect,c=i.prevToRect,d=e.rect,u=dV(i,!0);u&&(r.top-=u.f,r.left-=u.e),i.toRect=r,i.thisAnimationDuration&&yV(l,r)&&!yV(o,r)&&(d.top-r.top)/(d.left-r.left)===(o.top-r.top)/(o.left-r.left)&&(t=function(e,t,i,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*a.animation}(d,l,c,a.options)),yV(r,o)||(i.prevFromRect=o,i.prevToRect=r,t||(t=a.options.animation),a.animate(i,d,r,t)),t&&(n=!0,s=Math.max(s,t),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout(function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null},t),i.thisAnimationDuration=t)}),clearTimeout(e),n?e=setTimeout(function(){"function"==typeof i&&i()},s):"function"==typeof i&&i(),t=[]},animate:function(e,t,i,a){if(a){cV(e,"transition",""),cV(e,"transform","");var n=dV(this.el),s=n&&n.a,o=n&&n.d,r=(t.left-i.left)/(s||1),l=(t.top-i.top)/(o||1);e.animatingX=!!r,e.animatingY=!!l,cV(e,"transform","translate3d("+r+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),cV(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),cV(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){cV(e,"transition",""),cV(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},a)}}}}var AV=[],RV={initializeByDefault:!0},IV={mount:function(e){for(var t in RV)RV.hasOwnProperty(t)&&!(t in e)&&(e[t]=RV[t]);AV.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),AV.push(e)},pluginEvent:function(e,t,i){var a=this;this.eventCanceled=!1,i.cancel=function(){a.eventCanceled=!0};var n=e+"Global";AV.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][n]&&t[a.pluginName][n](V$({sortable:t},i)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](V$({sortable:t},i)))})},initializePlugins:function(e,t,i,a){for(var n in AV.forEach(function(a){var n=a.pluginName;if(e.options[n]||a.initializeByDefault){var s=new a(e,t,e.options);s.sortable=e,s.options=e.options,e[n]=s,z$(i,s.defaults)}}),e.options)if(e.options.hasOwnProperty(n)){var s=this.modifyOption(e,n,e.options[n]);void 0!==s&&(e.options[n]=s)}},getEventProperties:function(e,t){var i={};return AV.forEach(function(a){"function"==typeof a.eventProperties&&z$(i,a.eventProperties.call(t[a.pluginName],e))}),i},modifyOption:function(e,t,i){var a;return AV.forEach(function(n){e[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[t]&&(a=n.optionListeners[t].call(e[n.pluginName],i))}),a}};function DV(e){var t=e.sortable,i=e.rootEl,a=e.name,n=e.targetEl,s=e.cloneEl,o=e.toEl,r=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,f=e.extraEventProperties;if(t=t||i&&i[kV]){var g,m=t.options,_="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||q$||K$?(g=document.createEvent("Event")).initEvent(a,!0,!0):g=new CustomEvent(a,{bubbles:!0,cancelable:!0}),g.to=o||i,g.from=r||i,g.item=n||i,g.clone=s,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=u,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var v=V$(V$({},f),IV.getEventProperties(a,t));for(var b in v)g[b]=v[b];i&&i.dispatchEvent(g),m[_]&&m[_].call(t,g)}}var OV=["evt"],MV=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.evt,n=Y$(i,OV);IV.pluginEvent.bind(EU)(e,t,V$({dragEl:LV,parentEl:PV,ghostEl:FV,rootEl:BV,nextEl:$V,lastDownEl:VV,cloneEl:UV,cloneHidden:HV,dragStarted:tU,putSortable:qV,activeSortable:EU.active,originalEvent:a,oldIndex:zV,oldDraggableIndex:GV,newIndex:YV,newDraggableIndex:WV,hideGhostForTarget:xU,unhideGhostForTarget:SU,cloneNowHidden:function(){HV=!0},cloneNowShown:function(){HV=!1},dispatchSortableEvent:function(e){NV({sortable:t,name:e,originalEvent:a})}},n))};function NV(e){DV(V$({putSortable:qV,cloneEl:UV,targetEl:LV,rootEl:BV,oldIndex:zV,oldDraggableIndex:GV,newIndex:YV,newDraggableIndex:WV},e))}var LV,PV,FV,BV,$V,VV,UV,HV,zV,YV,GV,WV,jV,qV,KV,XV,ZV,QV,JV,eU,tU,iU,aU,nU,sU,oU=!1,rU=!1,lU=[],cU=!1,dU=!1,uU=[],pU=!1,hU=[],fU="undefined"!=typeof document,gU=Q$,mU=K$||q$?"cssFloat":"float",_U=fU&&!J$&&!Q$&&"draggable"in document.createElement("div"),vU=function(){if(fU){if(q$)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),bU=function(e,t){var i=cV(e),a=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),n=gV(e,0,t),s=gV(e,1,t),o=n&&cV(n),r=s&&cV(s),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+hV(n).width,c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+hV(s).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&o.float&&"none"!==o.float){var d="left"===o.float?"left":"right";return!s||"both"!==r.clear&&r.clear!==d?"horizontal":"vertical"}return n&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=a&&"none"===i[mU]||s&&"none"===i[mU]&&l+c>a)?"vertical":"horizontal"},yU=function(e){function t(e,i){return function(a,n,s,o){var r=a.options.group.name&&n.options.group.name&&a.options.group.name===n.options.group.name;if(null==e&&(i||r))return!0;if(null==e||!1===e)return!1;if(i&&"clone"===e)return e;if("function"==typeof e)return t(e(a,n,s,o),i)(a,n,s,o);var l=(i?a:n).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},a=e.group;a&&"object"==U$(a)||(a={name:a}),i.name=a.name,i.checkPull=t(a.pull,!0),i.checkPut=t(a.put),i.revertClone=a.revertClone,e.group=i},xU=function(){!vU&&FV&&cV(FV,"display","none")},SU=function(){!vU&&FV&&cV(FV,"display","")};fU&&document.addEventListener("click",function(e){if(rU)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),rU=!1,!1},!0);var wU=function(e){if(LV){e=e.touches?e.touches[0]:e;var t=(n=e.clientX,s=e.clientY,lU.some(function(e){var t=e[kV].options.emptyInsertThreshold;if(t&&!mV(e)){var i=hV(e),a=n>=i.left-t&&n<=i.right+t,r=s>=i.top-t&&s<=i.bottom+t;return a&&r?o=e:void 0}}),o);if(t){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[kV]._onDragOver(i)}}var n,s,o},CU=function(e){LV&&LV.parentNode[kV]._isOutsideThisEl(e.target)};function EU(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=z$({},t),e[kV]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return bU(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==EU.supportPointer&&"PointerEvent"in window&&!Z$,emptyInsertThreshold:5};for(var a in IV.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var n in yU(t),this)"_"===n.charAt(0)&&"function"==typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&_U,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?tV(e,"pointerdown",this._onTapStart):(tV(e,"mousedown",this._onTapStart),tV(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(tV(e,"dragover",this),tV(e,"dragenter",this)),lU.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),z$(this,TV())}function kU(e,t,i,a,n,s,o,r){var l,c,d=e[kV],u=d.options.onMove;return!window.CustomEvent||q$||K$?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=i,l.draggedRect=a,l.related=n||t,l.relatedRect=s||hV(t),l.willInsertAfter=r,l.originalEvent=o,e.dispatchEvent(l),u&&(c=u.call(d,l,o)),c}function TU(e){e.draggable=!1}function AU(){pU=!1}function RU(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,a=0;i--;)a+=t.charCodeAt(i);return a.toString(36)}function IU(e){return setTimeout(e,0)}function DU(e){return clearTimeout(e)}EU.prototype={constructor:EU,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(iU=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,LV):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,i=this.el,a=this.options,n=a.preventOnFilter,s=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,r=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||r,c=a.filter;if(function(e){hU.length=0;var t=e.getElementsByTagName("input"),i=t.length;for(;i--;){var a=t[i];a.checked&&hU.push(a)}}(i),!LV&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||a.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Z$||!r||"SELECT"!==r.tagName.toUpperCase())&&!((r=sV(r,a.draggable,i,!1))&&r.animated||VV===r)){if(zV=_V(r),GV=_V(r,a.draggable),"function"==typeof c){if(c.call(this,e,r,this))return NV({sortable:t,rootEl:l,name:"filter",targetEl:r,toEl:i,fromEl:i}),MV("filter",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(a){if(a=sV(l,a.trim(),i,!1))return NV({sortable:t,rootEl:a,name:"filter",targetEl:r,fromEl:i,toEl:i}),MV("filter",t,{evt:e}),!0})))return void(n&&e.cancelable&&e.preventDefault());a.handle&&!sV(l,a.handle,i,!1)||this._prepareDragStart(e,o,r)}}},_prepareDragStart:function(e,t,i){var a,n=this,s=n.el,o=n.options,r=s.ownerDocument;if(i&&!LV&&i.parentNode===s){var l=hV(i);if(BV=s,PV=(LV=i).parentNode,$V=LV.nextSibling,VV=i,jV=o.group,EU.dragged=LV,KV={target:LV,clientX:(t||e).clientX,clientY:(t||e).clientY},JV=KV.clientX-l.left,eU=KV.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,LV.style["will-change"]="all",a=function(){MV("delayEnded",n,{evt:e}),EU.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!X$&&n.nativeDraggable&&(LV.draggable=!0),n._triggerDragStart(e,t),NV({sortable:n,name:"choose",originalEvent:e}),lV(LV,o.chosenClass,!0))},o.ignore.split(",").forEach(function(e){uV(LV,e.trim(),TU)}),tV(r,"dragover",wU),tV(r,"mousemove",wU),tV(r,"touchmove",wU),tV(r,"mouseup",n._onDrop),tV(r,"touchend",n._onDrop),tV(r,"touchcancel",n._onDrop),X$&&this.nativeDraggable&&(this.options.touchStartThreshold=4,LV.draggable=!0),MV("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(K$||q$))a();else{if(EU.eventCanceled)return void this._onDrop();tV(r,"mouseup",n._disableDelayedDrag),tV(r,"touchend",n._disableDelayedDrag),tV(r,"touchcancel",n._disableDelayedDrag),tV(r,"mousemove",n._delayedDragTouchMoveHandler),tV(r,"touchmove",n._delayedDragTouchMoveHandler),o.supportPointer&&tV(r,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(a,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){LV&&TU(LV),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;iV(e,"mouseup",this._disableDelayedDrag),iV(e,"touchend",this._disableDelayedDrag),iV(e,"touchcancel",this._disableDelayedDrag),iV(e,"mousemove",this._delayedDragTouchMoveHandler),iV(e,"touchmove",this._delayedDragTouchMoveHandler),iV(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?tV(document,"pointermove",this._onTouchMove):tV(document,t?"touchmove":"mousemove",this._onTouchMove):(tV(LV,"dragend",this),tV(BV,"dragstart",this._onDragStart));try{document.selection?IU(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(e,t){if(oU=!1,BV&&LV){MV("dragStarted",this,{evt:t}),this.nativeDraggable&&tV(document,"dragover",CU);var i=this.options;!e&&lV(LV,i.dragClass,!1),lV(LV,i.ghostClass,!0),EU.active=this,e&&this._appendGhost(),NV({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(XV){this._lastX=XV.clientX,this._lastY=XV.clientY,xU();for(var e=document.elementFromPoint(XV.clientX,XV.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(XV.clientX,XV.clientY))!==t;)t=e;if(LV.parentNode[kV]._isOutsideThisEl(e),t)do{if(t[kV]){if(t[kV]._onDragOver({clientX:XV.clientX,clientY:XV.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);SU()}},_onTouchMove:function(e){if(KV){var t=this.options,i=t.fallbackTolerance,a=t.fallbackOffset,n=e.touches?e.touches[0]:e,s=FV&&dV(FV,!0),o=FV&&s&&s.a,r=FV&&s&&s.d,l=gU&&sU&&vV(sU),c=(n.clientX-KV.clientX+a.x)/(o||1)+(l?l[0]-uU[0]:0)/(o||1),d=(n.clientY-KV.clientY+a.y)/(r||1)+(l?l[1]-uU[1]:0)/(r||1);if(!EU.active&&!oU){if(i&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}if(FV){s?(s.e+=c-(ZV||0),s.f+=d-(QV||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");cV(FV,"webkitTransform",u),cV(FV,"mozTransform",u),cV(FV,"msTransform",u),cV(FV,"transform",u),ZV=c,QV=d,XV=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!FV){var e=this.options.fallbackOnBody?document.body:BV,t=hV(LV,!0,gU,!0,e),i=this.options;if(gU){for(sU=e;"static"===cV(sU,"position")&&"none"===cV(sU,"transform")&&sU!==document;)sU=sU.parentNode;sU!==document.body&&sU!==document.documentElement?(sU===document&&(sU=pV()),t.top+=sU.scrollTop,t.left+=sU.scrollLeft):sU=pV(),uU=vV(sU)}lV(FV=LV.cloneNode(!0),i.ghostClass,!1),lV(FV,i.fallbackClass,!0),lV(FV,i.dragClass,!0),cV(FV,"transition",""),cV(FV,"transform",""),cV(FV,"box-sizing","border-box"),cV(FV,"margin",0),cV(FV,"top",t.top),cV(FV,"left",t.left),cV(FV,"width",t.width),cV(FV,"height",t.height),cV(FV,"opacity","0.8"),cV(FV,"position",gU?"absolute":"fixed"),cV(FV,"zIndex","100000"),cV(FV,"pointerEvents","none"),EU.ghost=FV,e.appendChild(FV),cV(FV,"transform-origin",JV/parseInt(FV.style.width)*100+"% "+eU/parseInt(FV.style.height)*100+"%")}},_onDragStart:function(e,t){var i=this,a=e.dataTransfer,n=i.options;MV("dragStart",this,{evt:e}),EU.eventCanceled?this._onDrop():(MV("setupClone",this),EU.eventCanceled||((UV=wV(LV)).draggable=!1,UV.style["will-change"]="",this._hideClone(),lV(UV,this.options.chosenClass,!1),EU.clone=UV),i.cloneId=IU(function(){MV("clone",i),EU.eventCanceled||(i.options.removeCloneOnHide||BV.insertBefore(UV,LV),i._hideClone(),NV({sortable:i,name:"clone"}))}),!t&&lV(LV,n.dragClass,!0),t?(rU=!0,i._loopId=setInterval(i._emulateDragOver,50)):(iV(document,"mouseup",i._onDrop),iV(document,"touchend",i._onDrop),iV(document,"touchcancel",i._onDrop),a&&(a.effectAllowed="move",n.setData&&n.setData.call(i,a,LV)),tV(document,"drop",i),cV(LV,"transform","translateZ(0)")),oU=!0,i._dragStartId=IU(i._dragStarted.bind(i,t,e)),tV(document,"selectstart",i),tU=!0,Z$&&cV(document.body,"user-select","none"))},_onDragOver:function(e){var t,i,a,n,s=this.el,o=e.target,r=this.options,l=r.group,c=EU.active,d=jV===l,u=r.sort,p=qV||c,h=this,f=!1;if(!pU){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),o=sV(o,r.draggable,s,!0),R("dragOver"),EU.eventCanceled)return f;if(LV.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||h._ignoreWhileAnimating===o)return D(!1);if(rU=!1,c&&!r.disabled&&(d?u||(a=PV!==BV):qV===this||(this.lastPutMode=jV.checkPull(this,c,LV,e))&&l.checkPut(this,c,LV,e))){if(n="vertical"===this._getDirection(e,o),t=hV(LV),R("dragOverValid"),EU.eventCanceled)return f;if(a)return PV=BV,I(),this._hideClone(),R("revert"),EU.eventCanceled||($V?BV.insertBefore(LV,$V):BV.appendChild(LV)),D(!0);var g=mV(s,r.draggable);if(!g||function(e,t,i){var a=hV(mV(i.el,i.options.draggable)),n=10;return t?e.clientX>a.right+n||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+n}(e,n,this)&&!g.animated){if(g===LV)return D(!1);if(g&&s===e.target&&(o=g),o&&(i=hV(o)),!1!==kU(BV,s,LV,t,o,i,e,!!o))return I(),s.appendChild(LV),PV=s,O(),D(!0)}else if(g&&function(e,t,i){var a=hV(gV(i.el,0,i.options,!0)),n=10;return t?e.clientX<a.left-n||e.clientY<a.top&&e.clientX<a.right:e.clientY<a.top-n||e.clientY<a.bottom&&e.clientX<a.left}(e,n,this)){var m=gV(s,0,r,!0);if(m===LV)return D(!1);if(i=hV(o=m),!1!==kU(BV,s,LV,t,o,i,e,!1))return I(),s.insertBefore(LV,m),PV=s,O(),D(!0)}else if(o.parentNode===s){i=hV(o);var _,v,b,y=LV.parentNode!==s,x=!function(e,t,i){var a=i?e.left:e.top,n=i?e.right:e.bottom,s=i?e.width:e.height,o=i?t.left:t.top,r=i?t.right:t.bottom,l=i?t.width:t.height;return a===o||n===r||a+s/2===o+l/2}(LV.animated&&LV.toRect||t,o.animated&&o.toRect||i,n),S=n?"top":"left",w=fV(o,"top","top")||fV(LV,"top","top"),C=w?w.scrollTop:void 0;if(iU!==o&&(v=i[S],cU=!1,dU=!x&&r.invertSwap||y),_=function(e,t,i,a,n,s,o,r){var l=a?e.clientY:e.clientX,c=a?i.height:i.width,d=a?i.top:i.left,u=a?i.bottom:i.right,p=!1;if(!o)if(r&&nU<c*n){if(!cU&&(1===aU?l>d+c*s/2:l<u-c*s/2)&&(cU=!0),cU)p=!0;else if(1===aU?l<d+nU:l>u-nU)return-aU}else if(l>d+c*(1-n)/2&&l<u-c*(1-n)/2)return function(e){return _V(LV)<_V(e)?1:-1}(t);if((p=p||o)&&(l<d+c*s/2||l>u-c*s/2))return l>d+c/2?1:-1;return 0}(e,o,i,n,x?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,dU,iU===o),0!==_){var E=_V(LV);do{E-=_,b=PV.children[E]}while(b&&("none"===cV(b,"display")||b===FV))}if(0===_||b===o)return D(!1);iU=o,aU=_;var k=o.nextElementSibling,T=!1,A=kU(BV,s,LV,t,o,i,e,T=1===_);if(!1!==A)return 1!==A&&-1!==A||(T=1===A),pU=!0,setTimeout(AU,30),I(),T&&!k?s.appendChild(LV):o.parentNode.insertBefore(LV,T?k:o),w&&SV(w,0,C-w.scrollTop),PV=LV.parentNode,void 0===v||dU||(nU=Math.abs(v-hV(o)[S])),O(),D(!0)}if(s.contains(LV))return D(!1)}return!1}function R(r,l){MV(r,h,V$({evt:e,isOwner:d,axis:n?"vertical":"horizontal",revert:a,dragRect:t,targetRect:i,canSort:u,fromSortable:p,target:o,completed:D,onMove:function(i,a){return kU(BV,s,LV,t,i,hV(i),e,a)},changed:O},l))}function I(){R("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function D(t){return R("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(lV(LV,qV?qV.options.ghostClass:c.options.ghostClass,!1),lV(LV,r.ghostClass,!0)),qV!==h&&h!==EU.active?qV=h:h===EU.active&&qV&&(qV=null),p===h&&(h._ignoreWhileAnimating=o),h.animateAll(function(){R("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===LV&&!LV.animated||o===s&&!o.animated)&&(iU=null),r.dragoverBubble||e.rootEl||o===document||(LV.parentNode[kV]._isOutsideThisEl(e.target),!t&&wU(e)),!r.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function O(){YV=_V(LV),WV=_V(LV,r.draggable),NV({sortable:h,name:"change",toEl:s,newIndex:YV,newDraggableIndex:WV,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){iV(document,"mousemove",this._onTouchMove),iV(document,"touchmove",this._onTouchMove),iV(document,"pointermove",this._onTouchMove),iV(document,"dragover",wU),iV(document,"mousemove",wU),iV(document,"touchmove",wU)},_offUpEvents:function(){var e=this.el.ownerDocument;iV(e,"mouseup",this._onDrop),iV(e,"touchend",this._onDrop),iV(e,"pointerup",this._onDrop),iV(e,"touchcancel",this._onDrop),iV(document,"selectstart",this)},_onDrop:function(e){var t=this.el,i=this.options;YV=_V(LV),WV=_V(LV,i.draggable),MV("drop",this,{evt:e}),PV=LV&&LV.parentNode,YV=_V(LV),WV=_V(LV,i.draggable),EU.eventCanceled||(oU=!1,dU=!1,cU=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),DU(this.cloneId),DU(this._dragStartId),this.nativeDraggable&&(iV(document,"drop",this),iV(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Z$&&cV(document.body,"user-select",""),cV(LV,"transform",""),e&&(tU&&(e.cancelable&&e.preventDefault(),!i.dropBubble&&e.stopPropagation()),FV&&FV.parentNode&&FV.parentNode.removeChild(FV),(BV===PV||qV&&"clone"!==qV.lastPutMode)&&UV&&UV.parentNode&&UV.parentNode.removeChild(UV),LV&&(this.nativeDraggable&&iV(LV,"dragend",this),TU(LV),LV.style["will-change"]="",tU&&!oU&&lV(LV,qV?qV.options.ghostClass:this.options.ghostClass,!1),lV(LV,this.options.chosenClass,!1),NV({sortable:this,name:"unchoose",toEl:PV,newIndex:null,newDraggableIndex:null,originalEvent:e}),BV!==PV?(YV>=0&&(NV({rootEl:PV,name:"add",toEl:PV,fromEl:BV,originalEvent:e}),NV({sortable:this,name:"remove",toEl:PV,originalEvent:e}),NV({rootEl:PV,name:"sort",toEl:PV,fromEl:BV,originalEvent:e}),NV({sortable:this,name:"sort",toEl:PV,originalEvent:e})),qV&&qV.save()):YV!==zV&&YV>=0&&(NV({sortable:this,name:"update",toEl:PV,originalEvent:e}),NV({sortable:this,name:"sort",toEl:PV,originalEvent:e})),EU.active&&(null!=YV&&-1!==YV||(YV=zV,WV=GV),NV({sortable:this,name:"end",toEl:PV,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){MV("nulling",this),BV=LV=PV=FV=$V=UV=VV=HV=KV=XV=tU=YV=WV=zV=GV=iU=aU=qV=jV=EU.dragged=EU.ghost=EU.clone=EU.active=null,hU.forEach(function(e){e.checked=!0}),hU.length=ZV=QV=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":LV&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],i=this.el.children,a=0,n=i.length,s=this.options;a<n;a++)sV(e=i[a],s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||RU(e));return t},sort:function(e,t){var i={},a=this.el;this.toArray().forEach(function(e,t){var n=a.children[t];sV(n,this.options.draggable,a,!1)&&(i[e]=n)},this),t&&this.captureAnimationState(),e.forEach(function(e){i[e]&&(a.removeChild(i[e]),a.appendChild(i[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return sV(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(void 0===t)return i[e];var a=IV.modifyOption(this,e,t);i[e]=void 0!==a?a:t,"group"===e&&yU(i)},destroy:function(){MV("destroy",this);var e=this.el;e[kV]=null,iV(e,"mousedown",this._onTapStart),iV(e,"touchstart",this._onTapStart),iV(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(iV(e,"dragover",this),iV(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),lU.splice(lU.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!HV){if(MV("hideClone",this),EU.eventCanceled)return;cV(UV,"display","none"),this.options.removeCloneOnHide&&UV.parentNode&&UV.parentNode.removeChild(UV),HV=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(HV){if(MV("showClone",this),EU.eventCanceled)return;LV.parentNode!=BV||this.options.group.revertClone?$V?BV.insertBefore(UV,$V):BV.appendChild(UV):BV.insertBefore(UV,LV),this.options.group.revertClone&&this.animate(LV,UV),cV(UV,"display",""),HV=!1}}else this._hideClone()}},fU&&tV(document,"touchmove",function(e){(EU.active||oU)&&e.cancelable&&e.preventDefault()}),EU.utils={on:tV,off:iV,css:cV,find:uV,is:function(e,t){return!!sV(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},throttle:xV,closest:sV,toggleClass:lV,clone:wV,index:_V,nextTick:IU,cancelNextTick:DU,detectDirection:bU,getChild:gV},EU.get=function(e){return e[kV]},EU.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(EU.utils=V$(V$({},EU.utils),e.utils)),IV.mount(e)})},EU.create=function(e,t){return new EU(e,t)},EU.version="1.14.0";var OU,MU,NU,LU,PU,FU,BU=[],$U=!1;function VU(){BU.forEach(function(e){clearInterval(e.pid)}),BU=[]}function UU(){clearInterval(FU)}var HU,zU=xV(function(e,t,i,a){if(t.scroll){var n,s=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,l=t.scrollSpeed,c=pV(),d=!1;MU!==i&&(MU=i,VU(),OU=t.scroll,n=t.scrollFn,!0===OU&&(OU=bV(i,!0)));var u=0,p=OU;do{var h=p,f=hV(h),g=f.top,m=f.bottom,_=f.left,v=f.right,b=f.width,y=f.height,x=void 0,S=void 0,w=h.scrollWidth,C=h.scrollHeight,E=cV(h),k=h.scrollLeft,T=h.scrollTop;h===c?(x=b<w&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),S=y<C&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(x=b<w&&("auto"===E.overflowX||"scroll"===E.overflowX),S=y<C&&("auto"===E.overflowY||"scroll"===E.overflowY));var A=x&&(Math.abs(v-s)<=r&&k+b<w)-(Math.abs(_-s)<=r&&!!k),R=S&&(Math.abs(m-o)<=r&&T+y<C)-(Math.abs(g-o)<=r&&!!T);if(!BU[u])for(var I=0;I<=u;I++)BU[I]||(BU[I]={});BU[u].vx==A&&BU[u].vy==R&&BU[u].el===h||(BU[u].el=h,BU[u].vx=A,BU[u].vy=R,clearInterval(BU[u].pid),0==A&&0==R||(d=!0,BU[u].pid=setInterval(function(){a&&0===this.layer&&EU.active._onTouchMove(PU);var t=BU[this.layer].vy?BU[this.layer].vy*l:0,i=BU[this.layer].vx?BU[this.layer].vx*l:0;"function"==typeof n&&"continue"!==n.call(EU.dragged.parentNode[kV],i,t,e,PU,BU[this.layer].el)||SV(BU[this.layer].el,i,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=bV(p,!1)));$U=d}},30),YU=function(e){var t=e.originalEvent,i=e.putSortable,a=e.dragEl,n=e.activeSortable,s=e.dispatchSortableEvent,o=e.hideGhostForTarget,r=e.unhideGhostForTarget;if(t){var l=i||n;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);r(),l&&!l.el.contains(d)&&(s("spill"),this.onSpill({dragEl:a,putSortable:i}))}};function GU(){}function WU(){}GU.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,i=e.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var a=gV(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:YU},z$(GU,{pluginName:"revertOnSpill"}),WU.prototype={onSpill:function(e){var t=e.dragEl,i=e.putSortable||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:YU},z$(WU,{pluginName:"removeOnSpill"});var jU,qU,KU,XU,ZU,QU=[],JU=[],eH=!1,tH=!1,iH=!1;function aH(e,t){JU.forEach(function(i,a){var n=t.children[i.sortableIndex+(e?Number(a):0)];n?t.insertBefore(i,n):t.appendChild(i)})}function nH(){QU.forEach(function(e){e!==KU&&e.parentNode&&e.parentNode.removeChild(e)})}EU.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?tV(document,"dragover",this._handleAutoScroll):this.options.supportPointer?tV(document,"pointermove",this._handleFallbackAutoScroll):t.touches?tV(document,"touchmove",this._handleFallbackAutoScroll):tV(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?iV(document,"dragover",this._handleAutoScroll):(iV(document,"pointermove",this._handleFallbackAutoScroll),iV(document,"touchmove",this._handleFallbackAutoScroll),iV(document,"mousemove",this._handleFallbackAutoScroll)),UU(),VU(),clearTimeout(oV),oV=void 0},nulling:function(){PU=MU=OU=$U=FU=NU=LU=null,BU.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var i=this,a=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(a,n);if(PU=e,t||this.options.forceAutoScrollFallback||K$||q$||Z$){zU(e,this.options,s,t);var o=bV(s,!0);!$U||FU&&a===NU&&n===LU||(FU&&UU(),FU=setInterval(function(){var s=bV(document.elementFromPoint(a,n),!0);s!==o&&(o=s,VU()),zU(e,i.options,s,t)},10),NU=a,LU=n)}else{if(!this.options.bubbleScroll||bV(s,!0)===pV())return void VU();zU(e,this.options,bV(s,!1),!1)}}},z$(e,{pluginName:"scroll",initializeByDefault:!0})}),EU.mount(WU,GU);const sH=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?tV(document,"pointerup",this._deselectMultiDrag):(tV(document,"mouseup",this._deselectMultiDrag),tV(document,"touchend",this._deselectMultiDrag)),tV(document,"keydown",this._checkKeyDown),tV(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,i){var a="";QU.length&&qU===e?QU.forEach(function(e,t){a+=(t?", ":"")+e.textContent}):a=i.textContent,t.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;KU=t},delayEnded:function(){this.isMultiDrag=~QU.indexOf(KU)},setupClone:function(e){var t=e.sortable,i=e.cancel;if(this.isMultiDrag){for(var a=0;a<QU.length;a++)JU.push(wV(QU[a])),JU[a].sortableIndex=QU[a].sortableIndex,JU[a].draggable=!1,JU[a].style["will-change"]="",lV(JU[a],this.options.selectedClass,!1),QU[a]===KU&&lV(JU[a],this.options.chosenClass,!1);t._hideClone(),i()}},clone:function(e){var t=e.sortable,i=e.rootEl,a=e.dispatchSortableEvent,n=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||QU.length&&qU===t&&(aH(!0,i),a("clone"),n()))},showClone:function(e){var t=e.cloneNowShown,i=e.rootEl,a=e.cancel;this.isMultiDrag&&(aH(!1,i),JU.forEach(function(e){cV(e,"display","")}),t(),ZU=!1,a())},hideClone:function(e){var t=this;e.sortable;var i=e.cloneNowHidden,a=e.cancel;this.isMultiDrag&&(JU.forEach(function(e){cV(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),i(),ZU=!0,a())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&qU&&qU.multiDrag._deselectMultiDrag(),QU.forEach(function(e){e.sortableIndex=_V(e)}),QU=QU.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),iH=!0},dragStarted:function(e){var t=this,i=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){QU.forEach(function(e){e!==KU&&cV(e,"position","absolute")});var a=hV(KU,!1,!0,!0);QU.forEach(function(e){e!==KU&&CV(e,a)}),tH=!0,eH=!0}i.animateAll(function(){tH=!1,eH=!1,t.options.animation&&QU.forEach(function(e){EV(e)}),t.options.sort&&nH()})}},dragOver:function(e){var t=e.target,i=e.completed,a=e.cancel;tH&&~QU.indexOf(t)&&(i(!1),a())},revert:function(e){var t=e.fromSortable,i=e.rootEl,a=e.sortable,n=e.dragRect;QU.length>1&&(QU.forEach(function(e){a.addAnimationState({target:e,rect:tH?hV(e):n}),EV(e),e.fromRect=n,t.removeAnimationState(e)}),tH=!1,function(e,t){QU.forEach(function(i,a){var n=t.children[i.sortableIndex+(e?Number(a):0)];n?t.insertBefore(i,n):t.appendChild(i)})}(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(e){var t=e.sortable,i=e.isOwner,a=e.insertion,n=e.activeSortable,s=e.parentEl,o=e.putSortable,r=this.options;if(a){if(i&&n._hideClone(),eH=!1,r.animation&&QU.length>1&&(tH||!i&&!n.options.sort&&!o)){var l=hV(KU,!1,!0,!0);QU.forEach(function(e){e!==KU&&(CV(e,l),s.appendChild(e))}),tH=!0}if(!i)if(tH||nH(),QU.length>1){var c=ZU;n._showClone(t),n.options.animation&&!ZU&&c&&JU.forEach(function(e){n.addAnimationState({target:e,rect:XU}),e.fromRect=XU,e.thisAnimationDuration=null})}else n._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,i=e.isOwner,a=e.activeSortable;if(QU.forEach(function(e){e.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){XU=z$({},t);var n=dV(KU,!0);XU.top-=n.f,XU.left-=n.e}},dragOverAnimationComplete:function(){tH&&(tH=!1,nH())},drop:function(e){var t=e.originalEvent,i=e.rootEl,a=e.parentEl,n=e.sortable,s=e.dispatchSortableEvent,o=e.oldIndex,r=e.putSortable,l=r||this.sortable;if(t){var c=this.options,d=a.children;if(!iH)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),lV(KU,c.selectedClass,!~QU.indexOf(KU)),~QU.indexOf(KU))QU.splice(QU.indexOf(KU),1),jU=null,DV({sortable:n,rootEl:i,name:"deselect",targetEl:KU});else{if(QU.push(KU),DV({sortable:n,rootEl:i,name:"select",targetEl:KU}),t.shiftKey&&jU&&n.el.contains(jU)){var u,p,h=_V(jU),f=_V(KU);if(~h&&~f&&h!==f)for(f>h?(p=h,u=f):(p=f,u=h+1);p<u;p++)~QU.indexOf(d[p])||(lV(d[p],c.selectedClass,!0),QU.push(d[p]),DV({sortable:n,rootEl:i,name:"select",targetEl:d[p]}))}else jU=KU;qU=l}if(iH&&this.isMultiDrag){if(tH=!1,(a[kV].options.sort||a!==i)&&QU.length>1){var g=hV(KU),m=_V(KU,":not(."+this.options.selectedClass+")");if(!eH&&c.animation&&(KU.thisAnimationDuration=null),l.captureAnimationState(),!eH&&(c.animation&&(KU.fromRect=g,QU.forEach(function(e){if(e.thisAnimationDuration=null,e!==KU){var t=tH?hV(e):g;e.fromRect=t,l.addAnimationState({target:e,rect:t})}})),nH(),QU.forEach(function(e){d[m]?a.insertBefore(e,d[m]):a.appendChild(e),m++}),o===_V(KU))){var _=!1;QU.forEach(function(e){e.sortableIndex===_V(e)||(_=!0)}),_&&s("update")}QU.forEach(function(e){EV(e)}),l.animateAll()}qU=l}(i===a||r&&"clone"!==r.lastPutMode)&&JU.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=iH=!1,JU.length=0},destroyGlobal:function(){this._deselectMultiDrag(),iV(document,"pointerup",this._deselectMultiDrag),iV(document,"mouseup",this._deselectMultiDrag),iV(document,"touchend",this._deselectMultiDrag),iV(document,"keydown",this._checkKeyDown),iV(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==iH&&iH||qU!==this.sortable||e&&sV(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;QU.length;){var t=QU[0];lV(t,this.options.selectedClass,!1),QU.shift(),DV({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},z$(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[kV];t&&t.options.multiDrag&&!~QU.indexOf(e)&&(qU&&qU!==t&&(qU.multiDrag._deselectMultiDrag(),qU=t),lV(e,t.options.selectedClass,!0),QU.push(e))},deselect:function(e){var t=e.parentNode[kV],i=QU.indexOf(e);t&&t.options.multiDrag&&~i&&(lV(e,t.options.selectedClass,!1),QU.splice(i,1))}},eventProperties:function(){var e=this,t=[],i=[];return QU.forEach(function(a){var n;t.push({multiDragElement:a,index:a.sortableIndex}),n=tH&&a!==KU?-1:tH?_V(a,":not(."+e.options.selectedClass+")"):_V(a),i.push({multiDragElement:a,index:n})}),{items:G$(QU),clones:[].concat(JU),oldIndicies:t,newIndicies:i}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:EU,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;HU=t},dragOverValid:function(e){var t=e.completed,i=e.target,a=e.onMove,n=e.activeSortable,s=e.changed,o=e.cancel;if(n.options.swap){var r=this.sortable.el,l=this.options;if(i&&i!==r){var c=HU;!1!==a(i)?(lV(i,l.swapClass,!0),HU=i):HU=null,c&&c!==HU&&lV(c,l.swapClass,!1)}s(),t(!0),o()}},drop:function(e){var t=e.activeSortable,i=e.putSortable,a=e.dragEl,n=i||this.sortable,s=this.options;HU&&lV(HU,s.swapClass,!1),HU&&(s.swap||i&&i.options.swap)&&a!==HU&&(n.captureAnimationState(),n!==t&&t.captureAnimationState(),function(e,t){var i,a,n=e.parentNode,s=t.parentNode;if(!n||!s||n.isEqualNode(t)||s.isEqualNode(e))return;i=_V(e),a=_V(t),n.isEqualNode(s)&&i<a&&a++;n.insertBefore(t,n.children[i]),s.insertBefore(e,s.children[a])}(a,HU),n.animateAll(),n!==t&&t.animateAll())},nulling:function(){HU=null}},z$(e,{pluginName:"swap",eventProperties:function(){return{swapItem:HU}}})},default:EU},Symbol.toStringTag,{value:"Module"}));var oH;"undefined"!=typeof self&&self,oH=function(e,t){return function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="fb15")}({"00ee":function(e,t,i){var a={};a[i("b622")("toStringTag")]="z",e.exports="[object z]"===String(a)},"0366":function(e,t,i){var a=i("1c0b");e.exports=function(e,t,i){if(a(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,i){var a=i("fc6a"),n=i("241c").f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==s.call(e)?function(e){try{return n(e)}catch(t){return o.slice()}}(e):n(a(e))}},"06cf":function(e,t,i){var a=i("83ab"),n=i("d1e7"),s=i("5c6c"),o=i("fc6a"),r=i("c04e"),l=i("5135"),c=i("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=a?d:function(e,t){if(e=o(e),t=r(t,!0),c)try{return d(e,t)}catch(i){}if(l(e,t))return s(!n.f.call(e,t),e[t])}},"0cfb":function(e,t,i){var a=i("83ab"),n=i("d039"),s=i("cc12");e.exports=!a&&!n(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"13d5":function(e,t,i){var a=i("23e7"),n=i("d58f").left,s=i("a640"),o=i("ae40"),r=s("reduce"),l=o("reduce",{1:0});a({target:"Array",proto:!0,forced:!r||!l},{reduce:function(e){return n(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,i){var a=i("c6b6"),n=i("9263");e.exports=function(e,t){var i=e.exec;if("function"==typeof i){var s=i.call(e,t);if("object"!=typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==a(e))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},"159b":function(e,t,i){var a=i("da84"),n=i("fdbc"),s=i("17c2"),o=i("9112");for(var r in n){var l=a[r],c=l&&l.prototype;if(c&&c.forEach!==s)try{o(c,"forEach",s)}catch(d){c.forEach=s}}},"17c2":function(e,t,i){var a=i("b727").forEach,n=i("a640"),s=i("ae40"),o=n("forEach"),r=s("forEach");e.exports=o&&r?[].forEach:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,i){var a=i("d066");e.exports=a("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,i){var a=i("b622")("iterator"),n=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){n=!0}};o[a]=function(){return this},Array.from(o,function(){throw 2})}catch(r){}e.exports=function(e,t){if(!t&&!n)return!1;var i=!1;try{var s={};s[a]=function(){return{next:function(){return{done:i=!0}}}},e(s)}catch(r){}return i}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,i){var a=i("d039"),n=i("b622"),s=i("2d00"),o=n("species");e.exports=function(e){return s>=51||!a(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"23cb":function(e,t,i){var a=i("a691"),n=Math.max,s=Math.min;e.exports=function(e,t){var i=a(e);return i<0?n(i+t,0):s(i,t)}},"23e7":function(e,t,i){var a=i("da84"),n=i("06cf").f,s=i("9112"),o=i("6eeb"),r=i("ce4e"),l=i("e893"),c=i("94ca");e.exports=function(e,t){var i,d,u,p,h,f=e.target,g=e.global,m=e.stat;if(i=g?a:m?a[f]||r(f,{}):(a[f]||{}).prototype)for(d in t){if(p=t[d],u=e.noTargetGet?(h=n(i,d))&&h.value:i[d],!c(g?d:f+(m?".":"#")+d,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(e.sham||u&&u.sham)&&s(p,"sham",!0),o(i,d,p,e)}}},"241c":function(e,t,i){var a=i("ca84"),n=i("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,n)}},"25f0":function(e,t,i){var a=i("6eeb"),n=i("825a"),s=i("d039"),o=i("ad6d"),r="toString",l=RegExp.prototype,c=l[r],d=s(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),u=c.name!=r;(d||u)&&a(RegExp.prototype,r,function(){var e=n(this),t=String(e.source),i=e.flags;return"/"+t+"/"+String(void 0===i&&e instanceof RegExp&&!("flags"in l)?o.call(e):i)},{unsafe:!0})},"2ca0":function(e,t,i){var a,n=i("23e7"),s=i("06cf").f,o=i("50c4"),r=i("5a34"),l=i("1d80"),c=i("ab13"),d=i("c430"),u="".startsWith,p=Math.min,h=c("startsWith");n({target:"String",proto:!0,forced:!(!d&&!h&&(a=s(String.prototype,"startsWith"),a&&!a.writable)||h)},{startsWith:function(e){var t=String(l(this));r(e);var i=o(p(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return u?u.call(t,a,i):t.slice(i,i+a.length)===a}})},"2d00":function(e,t,i){var a,n,s=i("da84"),o=i("342f"),r=s.process,l=r&&r.versions,c=l&&l.v8;c?n=(a=c.split("."))[0]+a[1]:o&&(!(a=o.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/))&&(n=a[1]),e.exports=n&&+n},"342f":function(e,t,i){var a=i("d066");e.exports=a("navigator","userAgent")||""},"35a1":function(e,t,i){var a=i("f5df"),n=i("3f8c"),s=i("b622")("iterator");e.exports=function(e){if(null!=e)return e[s]||e["@@iterator"]||n[a(e)]}},"37e8":function(e,t,i){var a=i("83ab"),n=i("9bf2"),s=i("825a"),o=i("df75");e.exports=a?Object.defineProperties:function(e,t){s(e);for(var i,a=o(t),r=a.length,l=0;r>l;)n.f(e,i=a[l++],t[i]);return e}},"3bbe":function(e,t,i){var a=i("861d");e.exports=function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,i){var a=i("6547").charAt,n=i("69f3"),s=i("7dd0"),o="String Iterator",r=n.set,l=n.getterFor(o);s(String,"String",function(e){r(this,{type:o,string:String(e),index:0})},function(){var e,t=l(this),i=t.string,n=t.index;return n>=i.length?{value:void 0,done:!0}:(e=a(i,n),t.index+=e.length,{value:e,done:!1})})},"3f8c":function(e,t){e.exports={}},4160:function(e,t,i){var a=i("23e7"),n=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},"428f":function(e,t,i){var a=i("da84");e.exports=a},"44ad":function(e,t,i){var a=i("d039"),n=i("c6b6"),s="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==n(e)?s.call(e,""):Object(e)}:Object},"44d2":function(e,t,i){var a=i("b622"),n=i("7c73"),s=i("9bf2"),o=a("unscopables"),r=Array.prototype;null==r[o]&&s.f(r,o,{configurable:!0,value:n(null)}),e.exports=function(e){r[o][e]=!0}},"44e7":function(e,t,i){var a=i("861d"),n=i("c6b6"),s=i("b622")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==n(e))}},4930:function(e,t,i){var a=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(e,t,i){var a=i("fc6a"),n=i("50c4"),s=i("23cb"),o=function(e){return function(t,i,o){var r,l=a(t),c=n(l.length),d=s(o,c);if(e&&i!=i){for(;c>d;)if((r=l[d++])!=r)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===i)return e||d||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,t,i){var a=i("23e7"),n=i("b727").filter,s=i("1dde"),o=i("ae40"),r=s("filter"),l=o("filter");a({target:"Array",proto:!0,forced:!r||!l},{filter:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,i){var a=i("0366"),n=i("7b0b"),s=i("9bdd"),o=i("e95a"),r=i("50c4"),l=i("8418"),c=i("35a1");e.exports=function(e){var t,i,d,u,p,h,f=n(e),g="function"==typeof this?this:Array,m=arguments.length,_=m>1?arguments[1]:void 0,v=void 0!==_,b=c(f),y=0;if(v&&(_=a(_,m>2?arguments[2]:void 0,2)),null==b||g==Array&&o(b))for(i=new g(t=r(f.length));t>y;y++)h=v?_(f[y],y):f[y],l(i,y,h);else for(p=(u=b.call(f)).next,i=new g;!(d=p.call(u)).done;y++)h=v?s(u,_,[d.value,y],!0):d.value,l(i,y,h);return i.length=y,i}},"4fad":function(e,t,i){var a=i("23e7"),n=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(e){return n(e)}})},"50c4":function(e,t,i){var a=i("a691"),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},5135:function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},5319:function(e,t,i){var a=i("d784"),n=i("825a"),s=i("7b0b"),o=i("50c4"),r=i("a691"),l=i("1d80"),c=i("8aa5"),d=i("14c3"),u=Math.max,p=Math.min,h=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};a("replace",2,function(e,t,i,a){var _=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=a.REPLACE_KEEPS_$0,b=_?"$":"$0";return[function(i,a){var n=l(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,n,a):t.call(String(n),i,a)},function(e,a){if(!_&&v||"string"==typeof a&&-1===a.indexOf(b)){var s=i(t,e,this,a);if(s.done)return s.value}var l=n(e),h=String(this),f="function"==typeof a;f||(a=String(a));var g=l.global;if(g){var x=l.unicode;l.lastIndex=0}for(var S=[];;){var w=d(l,h);if(null===w)break;if(S.push(w),!g)break;""===String(w[0])&&(l.lastIndex=c(h,o(l.lastIndex),x))}for(var C="",E=0,k=0;k<S.length;k++){w=S[k];for(var T=String(w[0]),A=u(p(r(w.index),h.length),0),R=[],I=1;I<w.length;I++)R.push(m(w[I]));var D=w.groups;if(f){var O=[T].concat(R,A,h);void 0!==D&&O.push(D);var M=String(a.apply(void 0,O))}else M=y(T,h,A,R,D,a);A>=E&&(C+=h.slice(E,A)+M,E=A+T.length)}return C+h.slice(E)}];function y(e,i,a,n,o,r){var l=a+e.length,c=n.length,d=g;return void 0!==o&&(o=s(o),d=f),t.call(r,d,function(t,s){var r;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,a);case"'":return i.slice(l);case"<":r=o[s.slice(1,-1)];break;default:var d=+s;if(0===d)return t;if(d>c){var u=h(d/10);return 0===u?t:u<=c?void 0===n[u-1]?s.charAt(1):n[u-1]+s.charAt(1):t}r=n[d-1]}return void 0===r?"":r})}})},5692:function(e,t,i){var a=i("c430"),n=i("c6cd");(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,i){var a=i("d066"),n=i("241c"),s=i("7418"),o=i("825a");e.exports=a("Reflect","ownKeys")||function(e){var t=n.f(o(e)),i=s.f;return i?t.concat(i(e)):t}},"5a34":function(e,t,i){var a=i("44e7");e.exports=function(e){if(a(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,i){var a=i("23e7"),n=i("a2bf"),s=i("7b0b"),o=i("50c4"),r=i("1c0b"),l=i("65f0");a({target:"Array",proto:!0},{flatMap:function(e){var t,i=s(this),a=o(i.length);return r(e),(t=l(i,0)).length=n(t,i,i,a,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,i){var a=i("a691"),n=i("1d80"),s=function(e){return function(t,i){var s,o,r=String(n(t)),l=a(i),c=r.length;return l<0||l>=c?e?"":void 0:(s=r.charCodeAt(l))<55296||s>56319||l+1===c||(o=r.charCodeAt(l+1))<56320||o>57343?e?r.charAt(l):s:e?r.slice(l,l+2):o-56320+(s-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},"65f0":function(e,t,i){var a=i("861d"),n=i("e8b5"),s=i("b622")("species");e.exports=function(e,t){var i;return n(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!n(i.prototype)?a(i)&&null===(i=i[s])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)}},"69f3":function(e,t,i){var a,n,s,o=i("7f9a"),r=i("da84"),l=i("861d"),c=i("9112"),d=i("5135"),u=i("f772"),p=i("d012"),h=r.WeakMap;if(o){var f=new h,g=f.get,m=f.has,_=f.set;a=function(e,t){return _.call(f,e,t),t},n=function(e){return g.call(f,e)||{}},s=function(e){return m.call(f,e)}}else{var v=u("state");p[v]=!0,a=function(e,t){return c(e,v,t),t},n=function(e){return d(e,v)?e[v]:{}},s=function(e){return d(e,v)}}e.exports={set:a,get:n,has:s,enforce:function(e){return s(e)?n(e):a(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=n(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}}},"6eeb":function(e,t,i){var a=i("da84"),n=i("9112"),s=i("5135"),o=i("ce4e"),r=i("8925"),l=i("69f3"),c=l.get,d=l.enforce,u=String(String).split("String");(e.exports=function(e,t,i,r){var l=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,p=!!r&&!!r.noTargetGet;"function"==typeof i&&("string"!=typeof t||s(i,"name")||n(i,"name",t),d(i).source=u.join("string"==typeof t?t:"")),e!==a?(l?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=i:n(e,t,i)):c?e[t]=i:o(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||r(this)})},"6f53":function(e,t,i){var a=i("83ab"),n=i("df75"),s=i("fc6a"),o=i("d1e7").f,r=function(e){return function(t){for(var i,r=s(t),l=n(r),c=l.length,d=0,u=[];c>d;)i=l[d++],a&&!o.call(r,i)||u.push(e?[i,r[i]]:r[i]);return u}};e.exports={entries:r(!0),values:r(!1)}},"73d9":function(e,t,i){i("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,i){var a=i("428f"),n=i("5135"),s=i("e538"),o=i("9bf2").f;e.exports=function(e){var t=a.Symbol||(a.Symbol={});n(t,e)||o(t,e,{value:s.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,i){var a=i("1d80");e.exports=function(e){return Object(a(e))}},"7c73":function(e,t,i){var a,n=i("825a"),s=i("37e8"),o=i("7839"),r=i("d012"),l=i("1be4"),c=i("cc12"),d=i("f772"),u="prototype",p="script",h=d("IE_PROTO"),f=function(){},g=function(e){return"<"+p+">"+e+"</"+p+">"},m=function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch(s){}var e,t,i;m=a?function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t}(a):(t=c("iframe"),i="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var n=o.length;n--;)delete m[u][o[n]];return m()};r[h]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[u]=n(e),i=new f,f[u]=null,i[h]=e):i=m(),void 0===t?i:s(i,t)}},"7dd0":function(e,t,i){var a=i("23e7"),n=i("9ed3"),s=i("e163"),o=i("d2bb"),r=i("d44e"),l=i("9112"),c=i("6eeb"),d=i("b622"),u=i("c430"),p=i("3f8c"),h=i("ae93"),f=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,m=d("iterator"),_="keys",v="values",b="entries",y=function(){return this};e.exports=function(e,t,i,d,h,x,S){n(i,t,d);var w,C,E,k=function(e){if(e===h&&D)return D;if(!g&&e in R)return R[e];switch(e){case _:case v:case b:return function(){return new i(this,e)}}return function(){return new i(this)}},T=t+" Iterator",A=!1,R=e.prototype,I=R[m]||R["@@iterator"]||h&&R[h],D=!g&&I||k(h),O="Array"==t&&R.entries||I;if(O&&(w=s(O.call(new e)),f!==Object.prototype&&w.next&&(u||s(w)===f||(o?o(w,f):"function"!=typeof w[m]&&l(w,m,y)),r(w,T,!0,!0),u&&(p[T]=y))),h==v&&I&&I.name!==v&&(A=!0,D=function(){return I.call(this)}),u&&!S||R[m]===D||l(R,m,D),p[t]=D,h)if(C={values:k(v),keys:x?D:k(_),entries:k(b)},S)for(E in C)(g||A||!(E in R))&&c(R,E,C[E]);else a({target:t,proto:!0,forced:g||A},C);return C}},"7f9a":function(e,t,i){var a=i("da84"),n=i("8925"),s=a.WeakMap;e.exports="function"==typeof s&&/native code/.test(n(s))},"825a":function(e,t,i){var a=i("861d");e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,i){var a=i("d039");e.exports=!a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},8418:function(e,t,i){var a=i("c04e"),n=i("9bf2"),s=i("5c6c");e.exports=function(e,t,i){var o=a(t);o in e?n.f(e,o,s(0,i)):e[o]=i}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,i){var a,n,s;"undefined"!=typeof self&&self,n=[],void 0===(s="function"==typeof(a=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var i,a,n,s=/@([^@]*):(\d+):(\d+)\s*$/gi,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(p.stack)||s.exec(p.stack),r=o&&o[1]||!1,l=o&&o[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");r===c&&(i=document.documentElement.outerHTML,a=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=i.replace(a,"$1").trim());for(var u=0;u<d.length;u++){if("interactive"===d[u].readyState)return d[u];if(d[u].src===r)return d[u];if(r===c&&d[u].innerHTML&&d[u].innerHTML.trim()===n)return d[u]}return null}}return e})?a.apply(t,n):a)||(e.exports=s)},8925:function(e,t,i){var a=i("c6cd"),n=Function.toString;"function"!=typeof a.inspectSource&&(a.inspectSource=function(e){return n.call(e)}),e.exports=a.inspectSource},"8aa5":function(e,t,i){var a=i("6547").charAt;e.exports=function(e,t,i){return t+(i?a(e,t).length:1)}},"8bbf":function(t,i){t.exports=e},"90e3":function(e,t){var i=0,a=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++i+a).toString(36)}},9112:function(e,t,i){var a=i("83ab"),n=i("9bf2"),s=i("5c6c");e.exports=a?function(e,t,i){return n.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},9263:function(e,t,i){var a,n,s=i("ad6d"),o=i("9f7f"),r=RegExp.prototype.exec,l=String.prototype.replace,c=r,d=(a=/a/,n=/b*/g,r.call(a,"a"),r.call(n,"a"),0!==a.lastIndex||0!==n.lastIndex),u=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(d||p||u)&&(c=function(e){var t,i,a,n,o=this,c=u&&o.sticky,h=s.call(o),f=o.source,g=0,m=e;return c&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),m=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(f="(?: "+f+")",m=" "+m,g++),i=new RegExp("^(?:"+f+")",h)),p&&(i=new RegExp("^"+f+"$(?!\\s)",h)),d&&(t=o.lastIndex),a=r.call(c?i:o,m),c?a?(a.input=a.input.slice(g),a[0]=a[0].slice(g),a.index=o.lastIndex,o.lastIndex+=a[0].length):o.lastIndex=0:d&&a&&(o.lastIndex=o.global?a.index+a[0].length:t),p&&a&&a.length>1&&l.call(a[0],i,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(a[n]=void 0)}),a}),e.exports=c},"94ca":function(e,t,i){var a=i("d039"),n=/#|\.prototype\./,s=function(e,t){var i=r[o(e)];return i==c||i!=l&&("function"==typeof t?a(t):!!t)},o=s.normalize=function(e){return String(e).replace(n,".").toLowerCase()},r=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},"99af":function(e,t,i){var a=i("23e7"),n=i("d039"),s=i("e8b5"),o=i("861d"),r=i("7b0b"),l=i("50c4"),c=i("8418"),d=i("65f0"),u=i("1dde"),p=i("b622"),h=i("2d00"),f=p("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",_=h>=51||!n(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),v=u("concat"),b=function(e){if(!o(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)};a({target:"Array",proto:!0,forced:!_||!v},{concat:function(e){var t,i,a,n,s,o=r(this),u=d(o,0),p=0;for(t=-1,a=arguments.length;t<a;t++)if(b(s=-1===t?o:arguments[t])){if(p+(n=l(s.length))>g)throw TypeError(m);for(i=0;i<n;i++,p++)i in s&&c(u,p,s[i])}else{if(p>=g)throw TypeError(m);c(u,p++,s)}return u.length=p,u}})},"9bdd":function(e,t,i){var a=i("825a");e.exports=function(e,t,i,n){try{return n?t(a(i)[0],i[1]):t(i)}catch(o){var s=e.return;throw void 0!==s&&a(s.call(e)),o}}},"9bf2":function(e,t,i){var a=i("83ab"),n=i("0cfb"),s=i("825a"),o=i("c04e"),r=Object.defineProperty;t.f=a?r:function(e,t,i){if(s(e),t=o(t,!0),s(i),n)try{return r(e,t,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},"9ed3":function(e,t,i){var a=i("ae93").IteratorPrototype,n=i("7c73"),s=i("5c6c"),o=i("d44e"),r=i("3f8c"),l=function(){return this};e.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=n(a,{next:s(1,i)}),o(e,c,!1,!0),r[c]=l,e}},"9f7f":function(e,t,i){var a=i("d039");function n(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=a(function(){var e=n("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=a(function(){var e=n("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},a2bf:function(e,t,i){var a=i("e8b5"),n=i("50c4"),s=i("0366"),o=function(e,t,i,r,l,c,d,u){for(var p,h=l,f=0,g=!!d&&s(d,u,3);f<r;){if(f in i){if(p=g?g(i[f],f,t):i[f],c>0&&a(p))h=o(e,t,p,n(p.length),h,c-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=p}h++}f++}return h};e.exports=o},a352:function(e,i){e.exports=t},a434:function(e,t,i){var a=i("23e7"),n=i("23cb"),s=i("a691"),o=i("50c4"),r=i("7b0b"),l=i("65f0"),c=i("8418"),d=i("1dde"),u=i("ae40"),p=d("splice"),h=u("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,g=Math.min;a({target:"Array",proto:!0,forced:!p||!h},{splice:function(e,t){var i,a,d,u,p,h,m=r(this),_=o(m.length),v=n(e,_),b=arguments.length;if(0===b?i=a=0:1===b?(i=0,a=_-v):(i=b-2,a=g(f(s(t),0),_-v)),_+i-a>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(m,a),u=0;u<a;u++)(p=v+u)in m&&c(d,u,m[p]);if(d.length=a,i<a){for(u=v;u<_-a;u++)h=u+i,(p=u+a)in m?m[h]=m[p]:delete m[h];for(u=_;u>_-a+i;u--)delete m[u-1]}else if(i>a)for(u=_-a;u>v;u--)h=u+i-1,(p=u+a-1)in m?m[h]=m[p]:delete m[h];for(u=0;u<i;u++)m[u+v]=arguments[u+2];return m.length=_-a+i,d}})},a4d3:function(e,t,i){var a=i("23e7"),n=i("da84"),s=i("d066"),o=i("c430"),r=i("83ab"),l=i("4930"),c=i("fdbf"),d=i("d039"),u=i("5135"),p=i("e8b5"),h=i("861d"),f=i("825a"),g=i("7b0b"),m=i("fc6a"),_=i("c04e"),v=i("5c6c"),b=i("7c73"),y=i("df75"),x=i("241c"),S=i("057f"),w=i("7418"),C=i("06cf"),E=i("9bf2"),k=i("d1e7"),T=i("9112"),A=i("6eeb"),R=i("5692"),I=i("f772"),D=i("d012"),O=i("90e3"),M=i("b622"),N=i("e538"),L=i("746f"),P=i("d44e"),F=i("69f3"),B=i("b727").forEach,$=I("hidden"),V="Symbol",U="prototype",H=M("toPrimitive"),z=F.set,Y=F.getterFor(V),G=Object[U],W=n.Symbol,j=s("JSON","stringify"),q=C.f,K=E.f,X=S.f,Z=k.f,Q=R("symbols"),J=R("op-symbols"),ee=R("string-to-symbol-registry"),te=R("symbol-to-string-registry"),ie=R("wks"),ae=n.QObject,ne=!ae||!ae[U]||!ae[U].findChild,se=r&&d(function(){return 7!=b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?function(e,t,i){var a=q(G,t);a&&delete G[t],K(e,t,i),a&&e!==G&&K(G,t,a)}:K,oe=function(e,t){var i=Q[e]=b(W[U]);return z(i,{type:V,tag:e,description:t}),r||(i.description=t),i},re=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,i){e===G&&le(J,t,i),f(e);var a=_(t,!0);return f(i),u(Q,a)?(i.enumerable?(u(e,$)&&e[$][a]&&(e[$][a]=!1),i=b(i,{enumerable:v(0,!1)})):(u(e,$)||K(e,$,v(1,{})),e[$][a]=!0),se(e,a,i)):K(e,a,i)},ce=function(e,t){f(e);var i=m(t),a=y(i).concat(he(i));return B(a,function(t){r&&!de.call(i,t)||le(e,t,i[t])}),e},de=function(e){var t=_(e,!0),i=Z.call(this,t);return!(this===G&&u(Q,t)&&!u(J,t))&&(!(i||!u(this,t)||!u(Q,t)||u(this,$)&&this[$][t])||i)},ue=function(e,t){var i=m(e),a=_(t,!0);if(i!==G||!u(Q,a)||u(J,a)){var n=q(i,a);return!n||!u(Q,a)||u(i,$)&&i[$][a]||(n.enumerable=!0),n}},pe=function(e){var t=X(m(e)),i=[];return B(t,function(e){u(Q,e)||u(D,e)||i.push(e)}),i},he=function(e){var t=e===G,i=X(t?J:m(e)),a=[];return B(i,function(e){!u(Q,e)||t&&!u(G,e)||a.push(Q[e])}),a};l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),i=function(e){this===G&&i.call(J,e),u(this,$)&&u(this[$],t)&&(this[$][t]=!1),se(this,t,v(1,e))};return r&&ne&&se(G,t,{configurable:!0,set:i}),oe(t,e)},A(W[U],"toString",function(){return Y(this).tag}),A(W,"withoutSetter",function(e){return oe(O(e),e)}),k.f=de,E.f=le,C.f=ue,x.f=S.f=pe,w.f=he,N.f=function(e){return oe(M(e),e)},r&&(K(W[U],"description",{configurable:!0,get:function(){return Y(this).description}}),o||A(G,"propertyIsEnumerable",de,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),B(y(ie),function(e){L(e)}),a({target:V,stat:!0,forced:!l},{for:function(e){var t=String(e);if(u(ee,t))return ee[t];var i=W(t);return ee[t]=i,te[i]=t,i},keyFor:function(e){if(!re(e))throw TypeError(e+" is not a symbol");if(u(te,e))return te[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),a({target:"Object",stat:!0,forced:!l,sham:!r},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:ue}),a({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),a({target:"Object",stat:!0,forced:d(function(){w.f(1)})},{getOwnPropertySymbols:function(e){return w.f(g(e))}}),j&&a({target:"JSON",stat:!0,forced:!l||d(function(){var e=W();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})},{stringify:function(e,t,i){for(var a,n=[e],s=1;arguments.length>s;)n.push(arguments[s++]);if(a=t,(h(t)||void 0!==e)&&!re(e))return p(t)||(t=function(e,t){if("function"==typeof a&&(t=a.call(this,e,t)),!re(t))return t}),n[1]=t,j.apply(null,n)}}),W[U][H]||T(W[U],H,W[U].valueOf),P(W,V),D[$]=!0},a630:function(e,t,i){var a=i("23e7"),n=i("4df4");a({target:"Array",stat:!0,forced:!i("1c7e")(function(e){Array.from(e)})},{from:n})},a640:function(e,t,i){var a=i("d039");e.exports=function(e,t){var i=[][e];return!!i&&a(function(){i.call(null,t||function(){throw 1},1)})}},a691:function(e,t){var i=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:i)(e)}},ab13:function(e,t,i){var a=i("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(NO){try{return t[a]=!1,"/./"[e](t)}catch(i){}}return!1}},ac1f:function(e,t,i){var a=i("23e7"),n=i("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},ad6d:function(e,t,i){var a=i("825a");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,i){var a=i("83ab"),n=i("d039"),s=i("5135"),o=Object.defineProperty,r={},l=function(e){throw e};e.exports=function(e,t){if(s(r,e))return r[e];t||(t={});var i=[][e],c=!!s(t,"ACCESSORS")&&t.ACCESSORS,d=s(t,0)?t[0]:l,u=s(t,1)?t[1]:void 0;return r[e]=!!i&&!n(function(){if(c&&!a)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,i.call(e,d,u)})}},ae93:function(e,t,i){var a,n,s,o=i("e163"),r=i("9112"),l=i("5135"),c=i("b622"),d=i("c430"),u=c("iterator"),p=!1;[].keys&&("next"in(s=[].keys())?(n=o(o(s)))!==Object.prototype&&(a=n):p=!0),null==a&&(a={}),d||l(a,u)||r(a,u,function(){return this}),e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,i){var a=i("00ee"),n=i("f5df");e.exports=a?{}.toString:function(){return"[object "+n(this)+"]"}},b0c0:function(e,t,i){var a=i("83ab"),n=i("9bf2").f,s=Function.prototype,o=s.toString,r=/^\s*function ([^ (]*)/,l="name";a&&!(l in s)&&n(s,l,{configurable:!0,get:function(){try{return o.call(this).match(r)[1]}catch(e){return""}}})},b622:function(e,t,i){var a=i("da84"),n=i("5692"),s=i("5135"),o=i("90e3"),r=i("4930"),l=i("fdbf"),c=n("wks"),d=a.Symbol,u=l?d:d&&d.withoutSetter||o;e.exports=function(e){return s(c,e)||(r&&s(d,e)?c[e]=d[e]:c[e]=u("Symbol."+e)),c[e]}},b64b:function(e,t,i){var a=i("23e7"),n=i("7b0b"),s=i("df75");a({target:"Object",stat:!0,forced:i("d039")(function(){s(1)})},{keys:function(e){return s(n(e))}})},b727:function(e,t,i){var a=i("0366"),n=i("44ad"),s=i("7b0b"),o=i("50c4"),r=i("65f0"),l=[].push,c=function(e){var t=1==e,i=2==e,c=3==e,d=4==e,u=6==e,p=5==e||u;return function(h,f,g,m){for(var _,v,b=s(h),y=n(b),x=a(f,g,3),S=o(y.length),w=0,C=m||r,E=t?C(h,S):i?C(h,0):void 0;S>w;w++)if((p||w in y)&&(v=x(_=y[w],w,b),e))if(t)E[w]=v;else if(v)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:l.call(E,_)}else if(d)return!1;return u?-1:c||d?d:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},c04e:function(e,t,i){var a=i("861d");e.exports=function(e,t){if(!a(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!a(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!a(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!a(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},c6cd:function(e,t,i){var a=i("da84"),n=i("ce4e"),s="__core-js_shared__",o=a[s]||n(s,{});e.exports=o},c740:function(e,t,i){var a=i("23e7"),n=i("b727").findIndex,s=i("44d2"),o=i("ae40"),r="findIndex",l=!0,c=o(r);r in[]&&Array(1)[r](function(){l=!1}),a({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),s(r)},c8ba:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(NO){"object"==typeof window&&(i=window)}e.exports=i},c975:function(e,t,i){var a=i("23e7"),n=i("4d64").indexOf,s=i("a640"),o=i("ae40"),r=[].indexOf,l=!!r&&1/[1].indexOf(1,-0)<0,c=s("indexOf"),d=o("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:l||!c||!d},{indexOf:function(e){return l?r.apply(this,arguments)||0:n(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,i){var a=i("5135"),n=i("fc6a"),s=i("4d64").indexOf,o=i("d012");e.exports=function(e,t){var i,r=n(e),l=0,c=[];for(i in r)!a(o,i)&&a(r,i)&&c.push(i);for(;t.length>l;)a(r,i=t[l++])&&(~s(c,i)||c.push(i));return c}},caad:function(e,t,i){var a=i("23e7"),n=i("4d64").includes,s=i("44d2");a({target:"Array",proto:!0,forced:!i("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cc12:function(e,t,i){var a=i("da84"),n=i("861d"),s=a.document,o=n(s)&&n(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},ce4e:function(e,t,i){var a=i("da84"),n=i("9112");e.exports=function(e,t){try{n(a,e,t)}catch(i){a[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,i){var a=i("428f"),n=i("da84"),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(a[e])||s(n[e]):a[e]&&a[e][t]||n[e]&&n[e][t]}},d1e7:function(e,t,i){var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!a.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},d28b:function(e,t,i){i("746f")("iterator")},d2bb:function(e,t,i){var a=i("825a"),n=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(s){}return function(i,s){return a(i),n(s),t?e.call(i,s):i.__proto__=s,i}}():void 0)},d3b7:function(e,t,i){var a=i("00ee"),n=i("6eeb"),s=i("b041");a||n(Object.prototype,"toString",s,{unsafe:!0})},d44e:function(e,t,i){var a=i("9bf2").f,n=i("5135"),s=i("b622")("toStringTag");e.exports=function(e,t,i){e&&!n(e=i?e:e.prototype,s)&&a(e,s,{configurable:!0,value:t})}},d58f:function(e,t,i){var a=i("1c0b"),n=i("7b0b"),s=i("44ad"),o=i("50c4"),r=function(e){return function(t,i,r,l){a(i);var c=n(t),d=s(c),u=o(c.length),p=e?u-1:0,h=e?-1:1;if(r<2)for(;;){if(p in d){l=d[p],p+=h;break}if(p+=h,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=h)p in d&&(l=i(l,d[p],p,c));return l}};e.exports={left:r(!1),right:r(!0)}},d784:function(e,t,i){i("ac1f");var a=i("6eeb"),n=i("d039"),s=i("b622"),o=i("9263"),r=i("9112"),l=s("species"),c=!n(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d="$0"==="a".replace(/./,"$0"),u=s("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),h=!n(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]});e.exports=function(e,t,i,u){var f=s(e),g=!n(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),m=g&&!n(function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[l]=function(){return i},i.flags="",i[f]=/./[f]),i.exec=function(){return t=!0,null},i[f](""),!t});if(!g||!m||"replace"===e&&(!c||!d||p)||"split"===e&&!h){var _=/./[f],v=i(f,""[e],function(e,t,i,a,n){return t.exec===o?g&&!n?{done:!0,value:_.call(t,i,a)}:{done:!0,value:e.call(i,t,a)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=v[0],y=v[1];a(String.prototype,e,b),a(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}u&&r(RegExp.prototype[f],"sham",!0)}},d81d:function(e,t,i){var a=i("23e7"),n=i("b727").map,s=i("1dde"),o=i("ae40"),r=s("map"),l=o("map");a({target:"Array",proto:!0,forced:!r||!l},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,i){(function(t){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(e,t,i){var a=i("23e7"),n=i("83ab"),s=i("56ef"),o=i("fc6a"),r=i("06cf"),l=i("8418");a({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(e){for(var t,i,a=o(e),n=r.f,c=s(a),d={},u=0;c.length>u;)void 0!==(i=n(a,t=c[u++]))&&l(d,t,i);return d}})},dbf1:function(e,t,i){(function(e){i.d(t,"a",function(){return a});var a="undefined"!=typeof window?window.console:e.console}).call(this,i("c8ba"))},ddb0:function(e,t,i){var a=i("da84"),n=i("fdbc"),s=i("e260"),o=i("9112"),r=i("b622"),l=r("iterator"),c=r("toStringTag"),d=s.values;for(var u in n){var p=a[u],h=p&&p.prototype;if(h){if(h[l]!==d)try{o(h,l,d)}catch(g){h[l]=d}if(h[c]||o(h,c,u),n[u])for(var f in s)if(h[f]!==s[f])try{o(h,f,s[f])}catch(g){h[f]=s[f]}}}},df75:function(e,t,i){var a=i("ca84"),n=i("7839");e.exports=Object.keys||function(e){return a(e,n)}},e01a:function(e,t,i){var a=i("23e7"),n=i("83ab"),s=i("da84"),o=i("5135"),r=i("861d"),l=i("9bf2").f,c=i("e893"),d=s.Symbol;if(n&&"function"==typeof d&&(!("description"in d.prototype)||void 0!==d().description)){var u={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new d(e):void 0===e?d():d(e);return""===e&&(u[t]=!0),t};c(p,d);var h=p.prototype=d.prototype;h.constructor=p;var f=h.toString,g="Symbol(test)"==String(d("test")),m=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=r(this)?this.valueOf():this,t=f.call(e);if(o(u,e))return"";var i=g?t.slice(7,-1):t.replace(m,"$1");return""===i?void 0:i}}),a({global:!0,forced:!0},{Symbol:p})}},e163:function(e,t,i){var a=i("5135"),n=i("7b0b"),s=i("f772"),o=i("e177"),r=s("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=n(e),a(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,i){var a=i("d039");e.exports=!a(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},e260:function(e,t,i){var a=i("fc6a"),n=i("44d2"),s=i("3f8c"),o=i("69f3"),r=i("7dd0"),l="Array Iterator",c=o.set,d=o.getterFor(l);e.exports=r(Array,"Array",function(e,t){c(this,{type:l,target:a(e),index:0,kind:t})},function(){var e=d(this),t=e.target,i=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:a,done:!1}:"values"==i?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},e439:function(e,t,i){var a=i("23e7"),n=i("d039"),s=i("fc6a"),o=i("06cf").f,r=i("83ab"),l=n(function(){o(1)});a({target:"Object",stat:!0,forced:!r||l,sham:!r},{getOwnPropertyDescriptor:function(e,t){return o(s(e),t)}})},e538:function(e,t,i){var a=i("b622");t.f=a},e893:function(e,t,i){var a=i("5135"),n=i("56ef"),s=i("06cf"),o=i("9bf2");e.exports=function(e,t){for(var i=n(t),r=o.f,l=s.f,c=0;c<i.length;c++){var d=i[c];a(e,d)||r(e,d,l(t,d))}}},e8b5:function(e,t,i){var a=i("c6b6");e.exports=Array.isArray||function(e){return"Array"==a(e)}},e95a:function(e,t,i){var a=i("b622"),n=i("3f8c"),s=a("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[s]===e)}},f5df:function(e,t,i){var a=i("00ee"),n=i("c6b6"),s=i("b622")("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=a?n:function(e){var t,i,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(i){}}(t=Object(e),s))?i:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},f772:function(e,t,i){var a=i("5692"),n=i("90e3"),s=a("keys");e.exports=function(e){return s[e]||(s[e]=n(e))}},fb15:function(e,t,i){if(i.r(t),"undefined"!=typeof window){var a=window.document.currentScript,n=i("8875");a=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var s=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);s&&(i.p=s[1])}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach(function(t){o(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],a=!0,n=!1,s=void 0;try{for(var o,r=e[Symbol.iterator]();!(a=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(l){n=!0,s=l}finally{try{a||null==r.return||r.return()}finally{if(n)throw s}}return i}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b"),i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0"),i("a630"),i("fb6a"),i("b0c0"),i("25f0");var h=i("a352"),f=i.n(h);function g(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function m(e,t,i){var a=0===i?e.children[0]:e.children[i-1].nextSibling;e.insertBefore(t,a)}var _=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");var v,b,y=/-(\w)/g,x=(v=function(e){return e.replace(y,function(e,t){return t.toUpperCase()})},b=Object.create(null),function(e){return b[e]||(b[e]=v(e))});i("5db7"),i("73d9");var S=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],C=["Move"],E=[C,S,w].flatMap(function(e){return e}).map(function(e){return"on".concat(e)}),k={manage:C,manageAndEmit:S,emit:w};i("caad"),i("2ca0");var T=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function A(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function R(e){return e.reduce(function(e,t){var i=u(t,2),a=i[0],n=i[1];return e[a]=n,e},{})}function I(e){return Object.entries(e).filter(function(e){var t=u(e,2),i=t[0];return t[1],!A(i)}).map(function(e){var t=u(e,2),i=t[0],a=t[1];return[x(i),a]}).filter(function(e){var t,i=u(e,2),a=i[0];return i[1],t=a,!(-1!==E.indexOf(t))})}function D(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}i("c740");var O=function(e){return e.el},M=function(e){return e.__draggable_context},N=function(){function e(t){var i=t.nodes,a=i.header,n=i.default,s=i.footer,o=t.root,r=t.realList;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultNodes=n,this.children=[].concat(p(a),p(n),p(s)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=r}return D(e,[{key:"render",value:function(e,t){var i=this.tag,a=this.children;return e(i,t,this._isRootComponent?{default:function(){return a}}:a)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,i){var a,n;a=O(e),n={element:t[i],index:i},a.__draggable_context=n})}},{key:"getUnderlyingVm",value:function(e){return M(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var i=this.defaultNodes,a=i.length,n=t.children,s=n.item(e);if(null===s)return a;var o=M(s);if(o)return o.index;if(0===a)return 0;var r=O(i[0]);return e<p(n).findIndex(function(e){return e===r})?0:a}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),L=i("8bbf");function P(e){var t=function(e){return["transition-group","TransitionGroup"].includes(e)}(e),i=!function(e){return T.includes(e)}(e)&&!t;return{transition:t,externalComponent:i,tag:i?Object(L.resolveComponent)(e):t?L.TransitionGroup:e}}function F(e){var t=e.$slots,i=e.tag,a=e.realList,n=function(e){var t=e.$slots,i=e.realList,a=e.getKey,n=i||[],s=["header","footer"].map(function(e){return(i=t[e])?i():[];var i}),o=u(s,2),r=o[0],c=o[1],d=t.item;if(!d)throw new Error("draggable element must have an item slot");var p=n.flatMap(function(e,t){return d({element:e,index:t}).map(function(t){return t.key=a(e),t.props=l(l({},t.props||{}),{},{"data-draggable":!0}),t})});if(p.length!==n.length)throw new Error("Item slot must have only one child");return{header:r,footer:c,default:p}}({$slots:t,realList:a,getKey:e.getKey}),s=P(i);return new N({nodes:n,root:s,realList:a})}function B(e,t){var i=this;Object(L.nextTick)(function(){return i.$emit(e.toLowerCase(),t)})}function $(e){var t=this;return function(i,a){if(null!==t.realList)return t["onDrag".concat(e)](i,a)}}function V(e){var t=this,i=$.call(this,e);return function(a,n){i.call(t,a,n),B.call(t,e,a)}}var U=null,H={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},z=["update:modelValue","change"].concat(p([].concat(p(k.manageAndEmit),p(k.emit)).map(function(e){return e.toLowerCase()}))),Y=Object(L.defineComponent)({name:"draggable",inheritAttrs:!1,props:H,emits:z,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,i=this.tag,a=this.componentData,n=F({$slots:e,tag:i,realList:this.realList,getKey:this.getKey});this.componentStructure=n;var s=function(e){var t=e.$attrs,i=e.componentData,a=void 0===i?{}:i;return l(l({},R(Object.entries(t).filter(function(e){var t=u(e,2),i=t[0];return t[1],A(i)}))),a)}({$attrs:t,componentData:a});return n.render(L.h,s)}catch(o){return this.error=!0,Object(L.h)("pre",{style:{color:"red"}},o.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&_.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,i=this.$el;this.componentStructure.updated();var a=function(e){var t=e.$attrs,i=e.callBackBuilder,a=R(I(t));Object.entries(i).forEach(function(e){var t=u(e,2),i=t[0],n=t[1];k[i].forEach(function(e){a["on".concat(e)]=n(e)})});var n="[data-draggable]".concat(a.draggable||"");return l(l({},a),{},{draggable:n})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return V.call(e,t)},emit:function(t){return B.bind(e,t)},manage:function(t){return $.call(e,t)}}}),n=1===i.nodeType?i:i.parentElement;this._sortable=new f.a(n,a),this.targetDomElement=n,n.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&I(e).forEach(function(e){var i=u(e,2),a=i[0],n=i[1];t.option(a,n)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(L.nextTick)(function(){return t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=p(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,p(e))})},updatePosition:function(e,t){this.alterList(function(i){return i.splice(t,0,i.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,i=e.related,a=this.getUnderlyingPotencialDraggableComponent(t);if(!a)return{component:a};var n=a.realList,s={list:n,component:a};return t!==i&&n?l(l({},a.getUnderlyingVm(i)||{}),s):s},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),U=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){g(e.item);var i=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(i,0,t);var a={element:t,newIndex:i};this.emitChanges({added:a})}},onDragRemove:function(e){if(m(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,i=t.index,a=t.element;this.spliceList(i,1);var n={element:a,oldIndex:i};this.emitChanges({removed:n})}else g(e.clone)},onDragUpdate:function(e){g(e.item),m(e.from,e.item,e.oldIndex);var t=this.context.index,i=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,i);var a={element:this.context.element,oldIndex:t,newIndex:i};this.emitChanges({moved:a})},computeFutureIndex:function(e,t){if(!e.element)return 0;var i=p(t.to.children).filter(function(e){return"none"!==e.style.display}),a=i.indexOf(t.related),n=e.component.getVmIndexFromDomIndex(a);return-1===i.indexOf(U)&&t.willInsertAfter?n+1:n},onDragMove:function(e,t){var i=this.move,a=this.realList;if(!i||!a)return!0;var n=this.getRelatedContextFromMoveEvent(e),s=this.computeFutureIndex(n,e),o=l(l({},this.context),{},{futureIndex:s});return i(l(l({},e),{},{relatedContext:n,draggedContext:o}),t)},onDragEnd:function(){U=null}}}),G=Y;t.default=G},fb6a:function(e,t,i){var a=i("23e7"),n=i("861d"),s=i("e8b5"),o=i("23cb"),r=i("50c4"),l=i("fc6a"),c=i("8418"),d=i("b622"),u=i("1dde"),p=i("ae40"),h=u("slice"),f=p("slice",{ACCESSORS:!0,0:0,1:2}),g=d("species"),m=[].slice,_=Math.max;a({target:"Array",proto:!0,forced:!h||!f},{slice:function(e,t){var i,a,d,u=l(this),p=r(u.length),h=o(e,p),f=o(void 0===t?p:t,p);if(s(u)&&("function"!=typeof(i=u.constructor)||i!==Array&&!s(i.prototype)?n(i)&&null===(i=i[g])&&(i=void 0):i=void 0,i===Array||void 0===i))return m.call(u,h,f);for(a=new(void 0===i?Array:i)(_(f-h,0)),d=0;h<f;h++,d++)h in u&&c(a,d,u[h]);return a.length=d,a}})},fc6a:function(e,t,i){var a=i("44ad"),n=i("1d80");e.exports=function(e){return a(n(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,i){var a=i("4930");e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default};const rH=Dk(F$.exports=oH(B$,Ok(sH))),lH=(e,t)=>{const i=e.__vccOpts||e;for(const[a,n]of t)i[a]=n;return i},cH={name:"ticketTags",props:["ticket_id","tags","creatable","mode"],data:()=>({doing_action:!1,adding_tag:!1}),computed:{available_tags(){if(!this.creatable)return[];const e=this.tags.map(e=>parseInt(e.id));return this.appVars.ticket_tags.filter(t=>-1===e.indexOf(parseInt(t.id)))}},methods:{removeTag(e,t){this.doing_action=!0,this.$del(`tickets/${this.ticket_id}/tags/${t.id}`).then(t=>{this.tags.splice(e,1),this.$notify({message:t.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.doing_action=!1})},attachTag(e){this.adding_tag=!0,this.$post(`tickets/${this.ticket_id}/tags`,{tag_id:e.id}).then(t=>{this.tags.push(e),this.$notify({message:t.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.adding_tag=!1})}}},dH={key:0,class:"fs_tag_item"},uH=["src"],pH={class:"fs_tag_text"},hH={class:"fs_tag_count"},fH=["src"],gH={class:"fs_tag_text"},mH={style:{cursor:"pointer"},class:"fs_add_tag_icon fs_tag_item"},_H={class:"fs_tags_add_wrapper"},vH={key:0},bH=["onClick"],yH={key:1};const xH=lH(cH,[["render",function(e,t,i,a,n,s){const o=ZC,r=Jl("Close"),l=KS,c=Jl("Plus"),d=P$,u=WB;return e.appVars.ticket_tags.length?br((zd(),qd("div",{key:0,class:se(["fs_tags",{fs_ticket_tags_mode:!0}])},["ticket_list"===i.mode&&i.tags&&i.tags.length?(zd(),qd("div",dH,[tu("img",{src:e.appVars.asset_url+"images/tags.svg",alt:""},null,8,uH),tu("span",pH,me(i.tags[0].title),1),i.tags.length>1?(zd(),Kd(o,{key:0,effect:"dark",placement:"top","popper-class":"fc-tooltip"},{content:vr(()=>[(zd(!0),qd(Fd,null,sc(i.tags.slice(1),e=>(zd(),qd("div",{key:e.id},me(e.title),1))),128))]),default:vr(()=>[tu("span",hH,"+"+me(i.tags.length-1),1)],void 0),_:1})):ru("",!0)])):(zd(),qd(Fd,{key:1},[(zd(!0),qd(Fd,null,sc(i.tags,(t,a)=>(zd(),qd("div",{class:"fs_tag_item",key:t.id},[tu("img",{src:e.appVars.asset_url+"images/tags.svg",alt:""},null,8,fH),tu("div",gH,me(t.title),1),i.creatable?(zd(),Kd(l,{key:0,class:"fs_tag_close_icon",onClick:e=>s.removeTag(a,t)},{default:vr(()=>[iu(r)],void 0),_:1},8,["onClick"])):ru("",!0)]))),128)),i.creatable?(zd(),Kd(d,{key:0,placement:"bottom",trigger:"click"},{reference:vr(()=>[tu("span",mH,[iu(l,null,{default:vr(()=>[iu(c)],void 0),_:1})])]),default:vr(()=>[tu("div",_H,[tu("h3",null,me(e.$t("Add Tags")),1),s.available_tags.length?br((zd(),qd("ul",vH,[(zd(!0),qd(Fd,null,sc(s.available_tags,e=>(zd(),qd("li",{key:e.id,onClick:t=>s.attachTag(e)},[iu(l,null,{default:vr(()=>[iu(c)],void 0),_:1}),su(" "+me(e.title),1)],8,bH))),128))])),[[u,n.adding_tag]]):(zd(),qd("p",yH,me(e.$t("No available tags found")),1))])],void 0),_:1})):ru("",!0)],64))])),[[u,n.doing_action]]):ru("",!0)}]]),SH=["width","height"],wH=["width","height"],CH=["width","height"],EH={key:3,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},kH=["width","height"],TH=["width","height"],AH=["width","height"],RH=["width","height"],IH=["width","height"],DH=["width","height"],OH=["width","height"],MH={key:11,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none"},NH={key:12,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none"},LH={key:13,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"19",viewBox:"0 0 15 19",fill:"none"},PH={key:14,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"19",viewBox:"0 0 15 19",fill:"none"},FH={key:15,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"17",viewBox:"0 0 15 17",fill:"none"},BH={key:16,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"19",viewBox:"0 0 15 19",fill:"none"},$H={key:17,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},VH=["width","height"],UH=["fill"],HH=["width","height"],zH={key:20,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none"},YH=["width","height"],GH={key:22,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},WH={key:23,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},jH=["width","height"],qH={key:25,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},KH={key:26,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},XH={key:27,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},ZH={key:28,xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"0 0 11 13",fill:"none"},QH={key:29,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"11",viewBox:"0 0 14 11",fill:"none"},JH=["width","height"],ez=["width","height"],tz=["width","height"],iz=["width","height"],az=["width","height"],nz=["width","height","fill"],sz=["fill"],oz=["width","height","fill"],rz=["fill"],lz=["width","height","fill"],cz=["fill"],dz=["width","height","fill"],uz=["fill"],pz=["width","height"],hz=["width","height"],fz=["width","height"],gz=["width","height"],mz=["width","height"],_z=["width","height"],vz=["width","height"],bz={key:46,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},yz=["width","height"],xz=["width","height"],Sz=["width","height"],wz=["width","height"],Cz=["width","height"],Ez=["width","height"],kz=["width","height"],Tz=["width","height"],Az=["width","height"],Rz=["width","height"],Iz=["fill"],Dz=["width","height"],Oz=["width","height"],Mz=["width","height"],Nz={key:60,width:"16",height:"16",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lz=["width","height"],Pz=["width","height"],Fz={key:63,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bz={key:64,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$z={key:65,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vz=["width","height"],Uz=["width","height"],Hz=["width","height"],zz=["width","height"],Yz=["width","height"],Gz=["width","height"],Wz=["width","height"],jz=["width","height"],qz=["width","height"],Kz=["width","height"],Xz=["width","height"],Zz=["width","height"],Qz=["width","height"],Jz=["width","height"],eY=["width","height"],tY=["width","height"],iY=["width","height"],aY=["width","height"],nY=["width","height"],sY=["width","height"],oY=["width","height"],rY=["width","height"],lY=["width","height"],cY=["width","height"];const dY=lH({name:"ChatEditorAccordionsIconPack",props:{iconKey:{type:String,required:!0},width:{type:[String,Number],default:15},height:{type:[String,Number],default:14},fill:{type:String,default:""}}},[["render",function(e,t,i,a,n,s){return"new_tickets"===i.iconKey?(zd(),qd("svg",{key:0,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[tu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75Z",fill:"#525866"},null,-1)])],8,SH)):"open_tickets"===i.iconKey?(zd(),qd("svg",{key:1,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[tu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75ZM13 7.75V12.25H7V7.75H13Z",fill:"#525866"},null,-1)])],8,wH)):"closed_tickets"===i.iconKey?(zd(),qd("svg",{key:2,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[tu("path",{d:"M9.7015 11.3201L10.7605 12.3791L17.11 6.02962L18.1705 7.09012L10.7605 14.5001L5.9875 9.72712L7.048 8.66663L8.64175 10.2604L9.7015 11.3194V11.3201ZM9.703 9.19913L13.417 5.48438L14.4745 6.54187L10.7605 10.2566L9.703 9.19913ZM7.58275 13.4404L6.523 14.5001L1.75 9.72712L2.8105 8.66663L3.87025 9.72638L3.8695 9.72712L7.58275 13.4404V13.4404Z",fill:"#525866"},null,-1)])],8,CH)):"active_agents"===i.iconKey?(zd(),qd("svg",EH,[...t[3]||(t[3]=[tu("path",{d:"M17.0442 6.29903H18C18.4774 6.29903 18.9352 6.48867 19.2728 6.82624C19.6104 7.16381 19.8 7.62164 19.8 8.09903V11.699C19.8 12.1764 19.6104 12.6343 19.2728 12.9718C18.9352 13.3094 18.4774 13.499 18 13.499H17.0442C16.8248 15.239 15.9779 16.8391 14.6626 17.999C13.3472 19.159 11.6537 19.799 9.9 19.799V17.999C11.3322 17.999 12.7057 17.4301 13.7184 16.4174C14.7311 15.4047 15.3 14.0312 15.3 12.599V7.19903C15.3 5.76686 14.7311 4.39335 13.7184 3.38066C12.7057 2.36796 11.3322 1.79903 9.9 1.79903C8.46783 1.79903 7.09432 2.36796 6.08162 3.38066C5.06893 4.39335 4.5 5.76686 4.5 7.19903V13.499H1.8C1.32261 13.499 0.864773 13.3094 0.527208 12.9718C0.189642 12.6343 0 12.1764 0 11.699V8.09903C0 7.62164 0.189642 7.16381 0.527208 6.82624C0.864773 6.48867 1.32261 6.29903 1.8 6.29903H2.7558C2.97543 4.55924 3.82237 2.95938 5.13772 1.79964C6.45306 0.639902 8.1464 0 9.9 0C11.6536 0 13.3469 0.639902 14.6623 1.79964C15.9776 2.95938 16.8246 4.55924 17.0442 6.29903ZM1.8 8.09903V11.699H2.7V8.09903H1.8ZM17.1 8.09903V11.699H18V8.09903H17.1ZM6.084 13.3055L7.038 11.7791C7.89577 12.3165 8.88783 12.6007 9.9 12.599C10.9122 12.6007 11.9042 12.3165 12.762 11.7791L13.716 13.3055C12.5723 14.0221 11.2496 14.4011 9.9 14.399C8.55041 14.4011 7.22767 14.0221 6.084 13.3055Z",fill:"#525866"},null,-1)])])):"active_tickets"===i.iconKey?(zd(),qd("svg",{key:4,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[4]||(t[4]=[tu("path",{d:"M8.5 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H8.5C8.5 3.64782 8.65804 4.02936 8.93934 4.31066C9.22064 4.59196 9.60218 4.75 10 4.75C10.3978 4.75 10.7794 4.59196 11.0607 4.31066C11.342 4.02936 11.5 3.64782 11.5 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H11.5C11.5 16.3522 11.342 15.9706 11.0607 15.6893C10.7794 15.408 10.3978 15.25 10 15.25C9.60218 15.25 9.22064 15.408 8.93934 15.6893C8.65804 15.9706 8.5 16.3522 8.5 16.75ZM7.40125 15.25C7.6645 14.7937 8.04329 14.4149 8.4995 14.1516C8.95571 13.8882 9.47325 13.7497 10 13.75C11.11 13.75 12.0798 14.353 12.5988 15.25H16V4.75H12.5988C12.3355 5.20626 11.9567 5.58512 11.5005 5.84845C11.0443 6.11177 10.5268 6.25027 10 6.25C9.47325 6.25027 8.95571 6.11177 8.4995 5.84845C8.04329 5.58512 7.6645 5.20626 7.40125 4.75H4V15.25H7.40125ZM5.5 7H7V13H5.5V7ZM13 7H14.5V13H13V7Z",fill:"#525866"},null,-1)])],8,kH)):"responses"===i.iconKey?(zd(),qd("svg",{key:5,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[5]||(t[5]=[tu("path",{d:"M5.84125 15.25L2.5 17.875V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V14.5C17.5 14.6989 17.421 14.8897 17.2803 15.0303C17.1397 15.171 16.9489 15.25 16.75 15.25H5.84125ZM5.32225 13.75H16V4.75H4V14.7887L5.32225 13.75ZM9.25 8.5H10.75V10H9.25V8.5ZM6.25 8.5H7.75V10H6.25V8.5ZM12.25 8.5H13.75V10H12.25V8.5Z",fill:"#525866"},null,-1)])],8,TH)):"interactions"===i.iconKey?(zd(),qd("svg",{key:6,width:i.width,height:i.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[6]||(t[6]=[tu("path",{d:"M15.75 7.5C15.3358 7.5 15 7.16421 15 6.75C15 6.33579 15.3358 6 15.75 6C16.1642 6 16.5 6.33579 16.5 6.75C16.5 7.16421 16.1642 7.5 15.75 7.5ZM15.75 9C16.9927 9 18 7.99264 18 6.75C18 5.50736 16.9927 4.5 15.75 4.5C14.5073 4.5 13.5 5.50736 13.5 6.75C13.5 7.99264 14.5073 9 15.75 9ZM8.25 5.25C6.59314 5.25 5.25 6.59314 5.25 8.25V9.75H6.75V8.25C6.75 7.42157 7.42157 6.75 8.25 6.75H10.5V5.25H8.25ZM15.75 18.75C17.4068 18.75 18.75 17.4068 18.75 15.75V14.25H17.25V15.75C17.25 16.5785 16.5785 17.25 15.75 17.25H13.5V18.75H15.75ZM9 12.75C9 12.3358 8.66421 12 8.25 12C7.83579 12 7.5 12.3358 7.5 12.75C7.5 13.1642 7.83579 13.5 8.25 13.5C8.66421 13.5 9 13.1642 9 12.75ZM10.5 12.75C10.5 13.9927 9.49264 15 8.25 15C7.00736 15 6 13.9927 6 12.75C6 11.5073 7.00736 10.5 8.25 10.5C9.49264 10.5 10.5 11.5073 10.5 12.75ZM15.75 11.25C14.9215 11.25 14.25 11.9215 14.25 12.75H12.75C12.75 11.0932 14.0932 9.75 15.75 9.75C17.4068 9.75 18.75 11.0932 18.75 12.75H17.25C17.25 11.9215 16.5785 11.25 15.75 11.25ZM6.75 18.75C6.75 17.9215 7.42157 17.25 8.25 17.25C9.07843 17.25 9.75 17.9215 9.75 18.75H11.25C11.25 17.0932 9.90686 15.75 8.25 15.75C6.59314 15.75 5.25 17.0932 5.25 18.75H6.75Z",fill:"#525866"},null,-1)])],8,AH)):"unassigned_tickets"===i.iconKey?(zd(),qd("svg",{key:7,width:i.width,height:i.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[7]||(t[7]=[tu("path",{d:"M13.8 14.0269V15.9079C12.9855 15.6199 12.1137 15.5316 11.2579 15.6503C10.4021 15.769 9.58733 16.0914 8.88194 16.5903C8.17655 17.0892 7.60116 17.75 7.2041 18.5174C6.80703 19.2847 6.59988 20.1361 6.60005 21.0001L4.80005 20.9992C4.79977 19.9002 5.05108 18.8157 5.53472 17.8289C6.01836 16.842 6.72149 15.9789 7.59024 15.3058C8.459 14.6327 9.47031 14.1674 10.5467 13.9456C11.6231 13.7237 12.7359 13.7512 13.8 14.026V14.0269ZM12 12.9001C9.01655 12.9001 6.60005 10.4836 6.60005 7.5001C6.60005 4.5166 9.01655 2.1001 12 2.1001C14.9835 2.1001 17.4 4.5166 17.4 7.5001C17.4 10.4836 14.9835 12.9001 12 12.9001ZM12 11.1001C13.989 11.1001 15.6 9.4891 15.6 7.5001C15.6 5.5111 13.989 3.9001 12 3.9001C10.011 3.9001 8.40005 5.5111 8.40005 7.5001C8.40005 9.4891 10.011 11.1001 12 11.1001ZM18.3 17.0275L20.209 15.1177L21.4824 16.3912L19.5726 18.3001L21.4824 20.209L20.209 21.4825L18.3 19.5727L16.3911 21.4825L15.1176 20.209L17.0274 18.3001L15.1176 16.3912L16.3911 15.1177L18.3 17.0275Z",fill:"#525866"},null,-1)])],8,RH)):"user_unfollow_line"===i.iconKey?(zd(),qd("svg",{key:8,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[8]||(t[8]=[tu("path",{d:"M11.5 11.689V13.2565C10.8212 13.0165 10.0947 12.9429 9.38155 13.0418C8.6684 13.1408 7.9894 13.4094 7.40157 13.8252C6.81375 14.2409 6.33426 14.7916 6.00337 15.4311C5.67249 16.0705 5.49986 16.78 5.5 17.5L4 17.4993C3.99977 16.5834 4.20919 15.6797 4.61222 14.8573C5.01526 14.0349 5.6012 13.3157 6.32516 12.7548C7.04912 12.1939 7.89188 11.8061 8.78886 11.6212C9.68585 11.4364 10.6132 11.4593 11.5 11.6883V11.689ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4863 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4863 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25ZM15.25 14.1895L16.8408 12.598L17.902 13.6593L16.3105 15.25L17.902 16.8408L16.8408 17.902L15.25 16.3105L13.6592 17.902L12.598 16.8408L14.1895 15.25L12.598 13.6593L13.6592 12.598L15.25 14.1895Z",fill:"currentColor"},null,-1)])],8,IH)):"history_line"===i.iconKey?(zd(),qd("svg",{key:9,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[9]||(t[9]=[tu("path",{d:"M10 2.5C14.1422 2.5 17.5 5.85775 17.5 10C17.5 14.1422 14.1422 17.5 10 17.5C5.85775 17.5 2.5 14.1422 2.5 10H4C4 13.3135 6.6865 16 10 16C13.3135 16 16 13.3135 16 10C16 6.6865 13.3135 4 10 4C7.9375 4 6.118 5.04025 5.03875 6.625H7V8.125H2.5V3.625H4V5.5C5.368 3.6775 7.54675 2.5 10 2.5ZM10.75 6.25V9.68875L13.1823 12.121L12.121 13.1823L9.25 10.3098V6.25H10.75Z",fill:"currentColor"},null,-1)])],8,DH)):"info_custom_fill"===i.iconKey?(zd(),qd("svg",{key:10,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[10]||(t[10]=[tu("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25ZM11.1158 13.2086L11.2156 12.8006C11.164 12.8249 11.0807 12.8526 10.9665 12.8841C10.852 12.9157 10.7489 12.9318 10.6583 12.9318C10.4654 12.9318 10.3295 12.9001 10.2507 12.8366C10.1724 12.773 10.1333 12.6534 10.1333 12.4783C10.1333 12.4089 10.1451 12.3054 10.1697 12.17C10.1936 12.0337 10.2211 11.9126 10.2516 11.8067L10.6242 10.4876C10.6607 10.3665 10.6857 10.2334 10.6992 10.0882C10.7129 9.94325 10.7193 9.84185 10.7193 9.78429C10.7193 9.50614 10.6218 9.28041 10.4268 9.10629C10.2317 8.93229 9.95393 8.84529 9.59396 8.84529C9.39365 8.84529 9.18188 8.88088 8.95776 8.95201C8.73363 9.02294 8.49933 9.1084 8.25421 9.2082L8.15415 9.6165C8.22719 9.58949 8.31419 9.56043 8.41598 9.53034C8.51732 9.50038 8.61674 9.48489 8.71347 9.48489C8.91096 9.48489 9.04399 9.51856 9.1137 9.58488C9.18342 9.65139 9.21844 9.7697 9.21844 9.93883C9.21844 10.0324 9.20736 10.1363 9.18438 10.2492C9.16172 10.3628 9.13342 10.483 9.10013 10.6098L8.72595 11.9342C8.69266 12.0734 8.66834 12.1979 8.65304 12.3084C8.63786 12.4189 8.63057 12.5272 8.63057 12.6326C8.63057 12.9048 8.73114 13.1292 8.93222 13.3063C9.13329 13.4826 9.41523 13.5714 9.77769 13.5714C10.0137 13.5714 10.2209 13.5406 10.3992 13.4785C10.5773 13.4167 10.8164 13.3268 11.1158 13.2086ZM11.0495 7.8502C11.2235 7.68882 11.3101 7.49254 11.3101 7.26272C11.3101 7.03341 11.2236 6.83675 11.0495 6.67331C10.8758 6.51032 10.6666 6.42857 10.4219 6.42857C10.1765 6.42857 9.96635 6.51013 9.79107 6.67331C9.61579 6.83675 9.52796 7.03334 9.52796 7.26272C9.52796 7.49254 9.61579 7.68875 9.79107 7.8502C9.96667 8.01217 10.1764 8.09321 10.4219 8.09321C10.6666 8.09321 10.8758 8.01217 11.0495 7.8502Z",fill:"#CACFD8"},null,-1)])],8,OH)):"upward_chevron"===i.iconKey?(zd(),qd("svg",MH,[...t[11]||(t[11]=[tu("path",{d:"M4.773 2.121L1.0605 5.8335L0 4.773L4.773 0L9.546 4.773L8.4855 5.8335L4.773 2.121Z",fill:"#525866"},null,-1)])])):"downward_chevron"===i.iconKey?(zd(),qd("svg",NH,[...t[12]||(t[12]=[tu("path",{d:"M4.773 3.879L1.0605 0.1665L0 1.227L4.773 6L9.546 1.227L8.4855 0.1665L4.773 3.879Z",fill:"#525866"},null,-1)])])):"bookmark"===i.iconKey?(zd(),qd("svg",LH,[...t[13]||(t[13]=[tu("path",{d:"M0.9 0H13.5C13.7387 0 13.9676 0.0948211 14.1364 0.263604C14.3052 0.432387 14.4 0.661305 14.4 0.9V18.1287C14.4001 18.2092 14.3786 18.2882 14.3378 18.3575C14.297 18.4269 14.2383 18.484 14.1679 18.523C14.0975 18.5619 14.018 18.5813 13.9375 18.5791C13.8571 18.5769 13.7787 18.5531 13.7106 18.5103L7.2 14.427L0.6894 18.5094C0.621331 18.5522 0.543049 18.5759 0.462692 18.5782C0.382335 18.5805 0.302838 18.5612 0.232466 18.5223C0.162094 18.4834 0.103416 18.4264 0.0625345 18.3572C0.0216529 18.288 5.98238e-05 18.2091 0 18.1287V0.9C0 0.661305 0.0948213 0.432387 0.263604 0.263604C0.432387 0.0948211 0.661305 0 0.9 0ZM12.6 1.8H1.8V15.6888L7.2 12.3039L12.6 15.6888V1.8Z",fill:"#525866"},null,-1)])])):"lightbulb"===i.iconKey?(zd(),qd("svg",PH,[...t[14]||(t[14]=[tu("path",{d:"M5.37588 14.3991H6.30018V9.8991H8.10018V14.3991H9.02448C9.14328 13.3173 9.69498 12.4245 10.5905 11.4498C10.6922 11.34 11.3393 10.6695 11.4158 10.5741C12.0514 9.77997 12.4499 8.82244 12.5652 7.81179C12.6805 6.80115 12.508 5.77848 12.0676 4.86156C11.6272 3.94465 10.9367 3.17077 10.0758 2.62906C9.21482 2.08734 8.21836 1.79982 7.20116 1.79961C6.18395 1.79939 5.18737 2.08648 4.32618 2.62783C3.46499 3.16918 2.77421 3.94276 2.3334 4.85949C1.89259 5.77621 1.71967 6.79881 1.83456 7.8095C1.94944 8.8202 2.34747 9.77789 2.98278 10.5723C3.06018 10.6686 3.70908 11.34 3.80898 11.4489C4.70538 12.4245 5.25708 13.3173 5.37588 14.3991ZM5.40018 16.1991V17.0991H9.00018V16.1991H5.40018ZM1.57878 11.6991C0.731155 10.6401 0.199937 9.36312 0.0463215 8.01537C-0.107294 6.66762 0.122944 5.30389 0.710512 4.08127C1.29808 2.85865 2.21907 1.82688 3.3674 1.10482C4.51573 0.382763 5.84468 -0.000217118 7.20116 9.2343e-08C8.55763 0.000217303 9.88646 0.383623 11.0346 1.10605C12.1827 1.82848 13.1033 2.86054 13.6905 4.08335C14.2777 5.30615 14.5075 6.66996 14.3534 8.01766C14.1994 9.36536 13.6678 10.6421 12.8198 11.7009C12.2618 12.3957 10.8002 13.4991 10.8002 14.8491V17.0991C10.8002 17.5765 10.6105 18.0343 10.273 18.3719C9.93541 18.7095 9.47757 18.8991 9.00018 18.8991H5.40018C4.92279 18.8991 4.46496 18.7095 4.12739 18.3719C3.78983 18.0343 3.60018 17.5765 3.60018 17.0991V14.8491C3.60018 13.4991 2.13768 12.3957 1.57878 11.6991Z",fill:"#525866"},null,-1)])])):"box"===i.iconKey?(zd(),qd("svg",FH,[...t[15]||(t[15]=[tu("path",{d:"M7.125 0L14.25 4.125V12.375L7.125 16.5L0 12.375V4.125L7.125 0ZM2.24541 4.55828L7.12508 7.3833L12.0047 4.55831L7.125 1.73325L2.24541 4.55828ZM1.5 5.85997V11.5102L6.37508 14.3326V8.68237L1.5 5.85997ZM7.87508 14.3325L12.75 11.5102V5.86003L7.87508 8.68237V14.3325Z",fill:"#525866"},null,-1)])])):"user_avatar"===i.iconKey?(zd(),qd("svg",BH,[...t[16]||(t[16]=[tu("path",{d:"M0 18.9C0 16.9904 0.758569 15.1591 2.10883 13.8088C3.45909 12.4586 5.29044 11.7 7.2 11.7C9.10956 11.7 10.9409 12.4586 12.2912 13.8088C13.6414 15.1591 14.4 16.9904 14.4 18.9H12.6C12.6 17.4678 12.0311 16.0943 11.0184 15.0816C10.0057 14.0689 8.63217 13.5 7.2 13.5C5.76783 13.5 4.39432 14.0689 3.38162 15.0816C2.36893 16.0943 1.8 17.4678 1.8 18.9H0ZM7.2 10.8C4.2165 10.8 1.8 8.3835 1.8 5.4C1.8 2.4165 4.2165 0 7.2 0C10.1835 0 12.6 2.4165 12.6 5.4C12.6 8.3835 10.1835 10.8 7.2 10.8ZM7.2 9C9.189 9 10.8 7.389 10.8 5.4C10.8 3.411 9.189 1.8 7.2 1.8C5.211 1.8 3.6 3.411 3.6 5.4C3.6 7.389 5.211 9 7.2 9Z",fill:"#525866"},null,-1)])])):"search"===i.iconKey?(zd(),qd("svg",$H,[...t[17]||(t[17]=[tu("path",{d:"M14.5232 13.4627L17.7355 16.6742L16.6742 17.7355L13.4627 14.5232C12.2678 15.4812 10.7815 16.0022 9.25 16C5.524 16 2.5 12.976 2.5 9.25C2.5 5.524 5.524 2.5 9.25 2.5C12.976 2.5 16 5.524 16 9.25C16.0022 10.7815 15.4812 12.2678 14.5232 13.4627ZM13.0187 12.9062C13.9706 11.9274 14.5021 10.6153 14.5 9.25C14.5 6.349 12.1502 4 9.25 4C6.349 4 4 6.349 4 9.25C4 12.1502 6.349 14.5 9.25 14.5C10.6153 14.5021 11.9274 13.9706 12.9062 13.0187L13.0187 12.9062V12.9062Z",fill:"#525866"},null,-1)])])):"close"===i.iconKey?(zd(),qd("svg",{key:18,xmlns:"http://www.w3.org/2000/svg",width:i.width,height:i.height,viewBox:"0 0 10 10",fill:"none"},[tu("path",{d:"M4.773 3.7125L8.4855 0L9.546 1.0605L5.8335 4.773L9.546 8.4855L8.4855 9.546L4.773 5.8335L1.0605 9.546L0 8.4855L3.7125 4.773L0 1.0605L1.0605 0L4.773 3.7125Z",fill:i.fill||"#525866"},null,8,UH)],8,VH)):"total_replies"===i.iconKey?(zd(),qd("svg",{key:19,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[18]||(t[18]=[tu("path",{d:"M9.25 16L1.75 10L9.25 4V7.75C13.3922 7.75 16.75 11.1078 16.75 15.25C16.75 15.4548 16.7425 15.6572 16.726 15.8575C15.6288 13.777 13.4785 12.3393 10.9847 12.2538L10.75 12.25H9.25V16ZM7.75 10.75H10.7755L11.0357 10.7552C11.9995 10.7875 12.9287 10.9877 13.7927 11.3297C12.6925 10.0562 11.065 9.25 9.25 9.25H7.75V7.12075L4.1515 10L7.75 12.8792V10.75Z",fill:"#525866"},null,-1)])],8,HH)):"reply"===i.iconKey?(zd(),qd("svg",zH,[...t[19]||(t[19]=[tu("path",{d:"M3.34125 12L0 14.625V0.75C0 0.551088 0.0790176 0.360322 0.21967 0.21967C0.360322 0.0790176 0.551088 0 0.75 0H14.25C14.4489 0 14.6397 0.0790176 14.7803 0.21967C14.921 0.360322 15 0.551088 15 0.75V11.25C15 11.4489 14.921 11.6397 14.7803 11.7803C14.6397 11.921 14.4489 12 14.25 12H3.34125ZM2.82225 10.5H13.5V1.5H1.5V11.5387L2.82225 10.5ZM6.75 5.25H8.25V6.75H6.75V5.25ZM3.75 5.25H5.25V6.75H3.75V5.25ZM9.75 5.25H11.25V6.75H9.75V5.25Z",fill:"#99A0AE"},null,-1)])])):"agent"===i.iconKey?(zd(),qd("svg",{key:21,xmlns:"http://www.w3.org/2000/svg",width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none"},[...t[20]||(t[20]=[tu("path",{d:"M15.9535 6.99919H16.75C17.1478 6.99919 17.5294 7.15723 17.8107 7.43853C18.092 7.71984 18.25 8.10137 18.25 8.49919V11.4992C18.25 11.897 18.092 12.2785 17.8107 12.5599C17.5294 12.8412 17.1478 12.9992 16.75 12.9992H15.9535C15.7707 14.4492 15.0649 15.7826 13.9688 16.7492C12.8727 17.7158 11.4615 18.2492 10 18.2492V16.7492C11.1935 16.7492 12.3381 16.2751 13.182 15.4312C14.0259 14.5873 14.5 13.4427 14.5 12.2492V7.74919C14.5 6.55572 14.0259 5.41113 13.182 4.56721C12.3381 3.7233 11.1935 3.24919 10 3.24919C8.80653 3.24919 7.66193 3.7233 6.81802 4.56721C5.97411 5.41113 5.5 6.55572 5.5 7.74919V12.9992H3.25C2.85218 12.9992 2.47064 12.8412 2.18934 12.5599C1.90804 12.2785 1.75 11.897 1.75 11.4992V8.49919C1.75 8.10137 1.90804 7.71984 2.18934 7.43853C2.47064 7.15723 2.85218 6.99919 3.25 6.99919H4.0465C4.22952 5.54936 4.93531 4.21615 6.03143 3.2497C7.12755 2.28325 8.53866 1.75 10 1.75C11.4613 1.75 12.8724 2.28325 13.9686 3.2497C15.0647 4.21615 15.7705 5.54936 15.9535 6.99919ZM3.25 8.49919V11.4992H4V8.49919H3.25ZM16 8.49919V11.4992H16.75V8.49919H16ZM6.82 12.8379L7.615 11.5659C8.32981 12.0137 9.15652 12.2506 10 12.2492C10.8435 12.2506 11.6702 12.0137 12.385 11.5659L13.18 12.8379C12.2269 13.4351 11.1247 13.7509 10 13.7492C8.87534 13.7509 7.77306 13.4351 6.82 12.8379Z",fill:"#99A0AE"},null,-1)])],8,YH)):"workflow"===i.iconKey?(zd(),qd("svg",GH,[...t[21]||(t[21]=[tu("path",{d:"M10.75 7.75H16.75L9.25 19V12.25H4L10.75 1V7.75ZM9.25 9.25V6.415L6.649 10.75H10.75V14.0455L13.9473 9.25H9.25Z",fill:"#99A0AE"},null,-1)])])):"tags"===i.iconKey?(zd(),qd("svg",WH,[...t[22]||(t[22]=[tu("path",{d:"M10.6412 5.17807L10.0045 5.81437L9.6863 5.49622L7.7774 7.40513L7.45925 8.99632L6.8225 9.63262L4.9136 7.72327L2.6861 9.95077L2.0498 9.31447L4.2773 7.08697L2.36795 5.17807L3.00425 4.54132L4.5959 4.22318L6.5048 2.31428L6.18665 1.99613L6.82295 1.35938L10.6412 5.17807Z",fill:"#99A0AE"},null,-1)])])):"clock"===i.iconKey?(zd(),qd("svg",{key:24,xmlns:"http://www.w3.org/2000/svg",width:i.width,height:i.height,viewBox:"0 0 16 16",fill:"none"},[...t[23]||(t[23]=[tu("path",{d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8 12.8C9.27304 12.8 10.4939 12.2943 11.3941 11.3941C12.2943 10.4939 12.8 9.27304 12.8 8C12.8 6.72696 12.2943 5.50606 11.3941 4.60589C10.4939 3.70571 9.27304 3.2 8 3.2C6.72696 3.2 5.50606 3.70571 4.60589 4.60589C3.70571 5.50606 3.2 6.72696 3.2 8C3.2 9.27304 3.70571 10.4939 4.60589 11.3941C5.50606 12.2943 6.72696 12.8 8 12.8ZM8.6 8H11V9.2H7.4V5H8.6V8Z",fill:"#99A0AE"},null,-1)])],8,jH)):"closeTicket"===i.iconKey?(zd(),qd("svg",qH,[...t[24]||(t[24]=[tu("path",{d:"M9.7015 11.3201L10.7605 12.3791L17.11 6.02962L18.1705 7.09012L10.7605 14.5001L5.9875 9.72712L7.048 8.66663L8.64175 10.2604L9.7015 11.3194V11.3201ZM9.703 9.19913L13.417 5.48438L14.4745 6.54187L10.7605 10.2566L9.703 9.19913ZM7.58275 13.4404L6.523 14.5001L1.75 9.72712L2.8105 8.66663L3.87025 9.72638L3.8695 9.72712L7.58275 13.4404Z",fill:"#99A0AE"},null,-1)])])):"delete"===i.iconKey?(zd(),qd("svg",KH,[...t[25]||(t[25]=[tu("path",{d:"M13.75 5.5H17.5V7H16V16.75C16 16.9489 15.921 17.1397 15.7803 17.2803C15.6397 17.421 15.4489 17.5 15.25 17.5H4.75C4.55109 17.5 4.36032 17.421 4.21967 17.2803C4.07902 17.1397 4 16.9489 4 16.75V7H2.5V5.5H6.25V3.25C6.25 3.05109 6.32902 2.86032 6.46967 2.71967C6.61032 2.57902 6.80109 2.5 7 2.5H13C13.1989 2.5 13.3897 2.57902 13.5303 2.71967C13.671 2.86032 13.75 3.05109 13.75 3.25V5.5ZM14.5 7H5.5V16H14.5V7ZM7.75 9.25H9.25V13.75H7.75V9.25ZM10.75 9.25H12.25V13.75H10.75V9.25ZM7.75 4V5.5H12.25V4H7.75Z",fill:"#99A0AE"},null,-1)])])):"ticketCount"===i.iconKey?(zd(),qd("svg",XH,[...t[26]||(t[26]=[tu("path",{d:"M2.673 9.6L0 11.7V0.6C0 0.44087 0.0632141 0.288258 0.175736 0.175736C0.288258 0.0632141 0.44087 0 0.6 0H11.4C11.5591 0 11.7117 0.0632141 11.8243 0.175736C11.9368 0.288258 12 0.44087 12 0.6V9C12 9.15913 11.9368 9.31174 11.8243 9.42426C11.7117 9.53679 11.5591 9.6 11.4 9.6H2.673ZM2.2578 8.4H10.8V1.2H1.2V9.231L2.2578 8.4ZM3.6 4.2H8.4V5.4H3.6V4.2Z",fill:"#99A0AE"},null,-1)])])):"productIcon"===i.iconKey?(zd(),qd("svg",ZH,[...t[27]||(t[27]=[tu("path",{d:"M2.4 4.2V3C2.4 2.20435 2.71607 1.44129 3.27868 0.87868C3.84129 0.31607 4.60435 0 5.4 0C6.19565 0 6.95871 0.31607 7.52132 0.87868C8.08393 1.44129 8.4 2.20435 8.4 3V4.2H10.2C10.3591 4.2 10.5117 4.26321 10.6243 4.37574C10.7368 4.48826 10.8 4.64087 10.8 4.8V12C10.8 12.1591 10.7368 12.3117 10.6243 12.4243C10.5117 12.5368 10.3591 12.6 10.2 12.6H0.6C0.44087 12.6 0.288258 12.5368 0.175736 12.4243C0.0632141 12.3117 0 12.1591 0 12V4.8C0 4.64087 0.0632141 4.48826 0.175736 4.37574C0.288258 4.26321 0.44087 4.2 0.6 4.2H2.4ZM2.4 5.4H1.2V11.4H9.6V5.4H8.4V6.6H7.2V5.4H3.6V6.6H2.4V5.4ZM3.6 4.2H7.2V3C7.2 2.52261 7.01036 2.06477 6.67279 1.72721C6.33523 1.38964 5.87739 1.2 5.4 1.2C4.92261 1.2 4.46477 1.38964 4.12721 1.72721C3.78964 2.06477 3.6 2.52261 3.6 3V4.2Z",fill:"#99A0AE"},null,-1)])])):"businessBoxIcon"===i.iconKey?(zd(),qd("svg",QH,[...t[28]||(t[28]=[tu("path",{d:"M12 9.6H13.2V10.8H0V9.6H1.2V0.6C1.2 0.44087 1.26321 0.288258 1.37574 0.175736C1.48826 0.0632141 1.64087 0 1.8 0H7.8C7.95913 0 8.11174 0.0632141 8.22426 0.175736C8.33679 0.288258 8.4 0.44087 8.4 0.6V9.6H10.8V4.8H9.6V3.6H11.4C11.5591 3.6 11.7117 3.66321 11.8243 3.77574C11.9368 3.88826 12 4.04087 12 4.2V9.6ZM2.4 1.2V9.6H7.2V1.2H2.4ZM3.6 4.8H6V6H3.6V4.8ZM3.6 2.4H6V3.6H3.6V2.4Z",fill:"#99A0AE"},null,-1)])])):"like"===i.iconKey?(zd(),qd("svg",{key:30,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[29]||(t[29]=[tu("path",{d:"M11.95 6.99981H16.75C17.1478 6.99981 17.5294 7.15784 17.8107 7.43915C18.092 7.72045 18.25 8.10198 18.25 8.4998V10.0778C18.2502 10.2738 18.212 10.468 18.1375 10.6493L15.8162 16.2856C15.7596 16.423 15.6634 16.5405 15.5399 16.6231C15.4164 16.7058 15.2711 16.7499 15.1225 16.7498H2.5C2.30109 16.7498 2.11032 16.6708 1.96967 16.5301C1.82902 16.3895 1.75 16.1987 1.75 15.9998V8.4998C1.75 8.30089 1.82902 8.11013 1.96967 7.96948C2.11032 7.82882 2.30109 7.7498 2.5 7.7498H5.1115C5.23157 7.74984 5.3499 7.72104 5.45653 7.66583C5.56315 7.61062 5.65497 7.53062 5.72425 7.43256L9.814 1.63731C9.8657 1.56404 9.94194 1.51173 10.0289 1.48985C10.1159 1.46797 10.2078 1.47798 10.288 1.51806L11.6485 2.19831C12.0314 2.38968 12.3372 2.70629 12.5153 3.09554C12.6933 3.48479 12.7329 3.92325 12.6273 4.33806L11.95 6.99981ZM6.25 8.94081V15.2498H14.62L16.75 10.0778V8.4998H11.95C11.7215 8.49977 11.4961 8.44756 11.2909 8.34715C11.0857 8.24674 10.9062 8.10078 10.766 7.92042C10.6257 7.74006 10.5286 7.53005 10.4819 7.30642C10.4352 7.0828 10.4402 6.85146 10.4965 6.63006L11.1737 3.96906C11.1949 3.88605 11.1871 3.79829 11.1515 3.72038C11.1159 3.64246 11.0546 3.57909 10.978 3.54081L10.4823 3.29331L6.94975 8.2973C6.76225 8.5628 6.52225 8.78031 6.25 8.94081ZM4.75 9.2498H3.25V15.2498H4.75V9.2498Z",fill:"#525866"},null,-1)])],8,JH)):"dislike"===i.iconKey?(zd(),qd("svg",{key:31,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[30]||(t[30]=[tu("path",{d:"M11.95 13L16.75 13C17.1478 13 17.5294 12.842 17.8107 12.5607C18.092 12.2794 18.25 11.8978 18.25 11.5L18.25 9.922C18.2502 9.72598 18.212 9.53182 18.1375 9.3505L15.8155 3.715C15.759 3.57756 15.663 3.46 15.5396 3.37721C15.4163 3.29442 15.2711 3.25015 15.1225 3.25L2.5 3.25C2.30109 3.25 2.11032 3.32902 1.96967 3.46967C1.82902 3.61032 1.75 3.80109 1.75 4L1.75 11.5C1.75 11.6989 1.82901 11.8897 1.96967 12.0303C2.11032 12.171 2.30109 12.25 2.5 12.25L5.1115 12.25C5.23157 12.25 5.34989 12.2788 5.45652 12.334C5.56315 12.3892 5.65497 12.4692 5.72425 12.5672L9.814 18.3617C9.8657 18.435 9.94194 18.4873 10.0289 18.5092C10.1159 18.5311 10.2078 18.5211 10.288 18.481L11.6485 17.8C12.0314 17.6086 12.3372 17.292 12.5153 16.9028C12.6933 16.5135 12.7329 16.0751 12.6272 15.6603L11.95 13ZM6.25 11.059L6.25 4.75L14.62 4.75L16.75 9.922L16.75 11.5L11.95 11.5C11.7215 11.5 11.4961 11.5522 11.2909 11.6527C11.0857 11.7531 10.9062 11.899 10.766 12.0794C10.6257 12.2597 10.5286 12.4698 10.4819 12.6934C10.4352 12.917 10.4402 13.1483 10.4965 13.3697L11.1737 16.0307C11.1949 16.1138 11.1871 16.2015 11.1515 16.2794C11.1159 16.3573 11.0546 16.4207 10.978 16.459L10.4822 16.7065L6.94975 11.7025C6.76225 11.437 6.52225 11.2195 6.25 11.059ZM4.75 10.75L3.25 10.75L3.25 4.75L4.75 4.75L4.75 10.75Z",fill:"#525866"},null,-1)])],8,ez)):"max_waiting"===i.iconKey?(zd(),qd("svg",{key:32,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[31]||(t[31]=[tu("path",{d:"M6.25 5H5V3.75H15V5H13.75V6.25C13.75 7.25964 13.2399 8.07168 12.5976 8.73542C12.1582 9.18937 11.6237 9.6075 11.0818 10C11.6237 10.3925 12.1582 10.8106 12.5976 11.2646C13.2399 11.9283 13.75 12.7404 13.75 13.75V15H15V16.25H5V15H6.25V13.75C6.25 12.7404 6.7601 11.9283 7.40244 11.2646C7.84176 10.8106 8.37626 10.3925 8.91819 10C8.37626 9.6075 7.84176 9.18937 7.40244 8.73542C6.7601 8.07168 6.25 7.25964 6.25 6.25V5ZM7.5 5V6.25C7.5 6.80286 7.77115 7.31895 8.30069 7.86614C8.755 8.33562 9.34675 8.77488 10 9.23631C10.6533 8.77488 11.245 8.33562 11.6993 7.86614C12.2289 7.31895 12.5 6.80286 12.5 6.25V5H7.5ZM10 10.7637C9.34675 11.2251 8.755 11.6644 8.30069 12.1339C7.77115 12.6811 7.5 13.1971 7.5 13.75V15H12.5V13.75C12.5 13.1971 12.2289 12.6811 11.6993 12.1339C11.245 11.6644 10.6533 11.2251 10 10.7637Z",fill:"#525866"},null,-1)])],8,tz)):"average_waiting"===i.iconKey?(zd(),qd("svg",{key:33,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[32]||(t[32]=[tu("path",{d:"M10 2.5C14.1422 2.5 17.5 5.85775 17.5 10C17.5 14.1422 14.1422 17.5 10 17.5C5.85775 17.5 2.5 14.1422 2.5 10H4C4 13.3135 6.6865 16 10 16C13.3135 16 16 13.3135 16 10C16 6.6865 13.3135 4 10 4C7.9375 4 6.118 5.04025 5.03875 6.625H7V8.125H2.5V3.625H4V5.5C5.368 3.6775 7.54675 2.5 10 2.5ZM10.75 6.25V9.68875L13.1823 12.121L12.121 13.1823L9.25 10.3098V6.25H10.75Z",fill:"#525866"},null,-1)])],8,iz)):"waiting_tickets"===i.iconKey?(zd(),qd("svg",{key:34,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[33]||(t[33]=[tu("path",{d:"M10 2.5C14.14 2.5 17.5 5.86 17.5 10C17.5 14.14 14.14 17.5 10 17.5C5.86 17.5 2.5 14.14 2.5 10C2.5 5.86 5.86 2.5 10 2.5ZM10 16C13.315 16 16 13.315 16 10C16 6.685 13.315 4 10 4C6.685 4 4 6.685 4 10C4 13.315 6.685 16 10 16ZM12.652 6.2875L13.7125 7.348L10 11.0605L8.9395 10L12.652 6.2875Z",fill:"#525866"},null,-1)])],8,az)):"Tickets"===i.iconKey?(zd(),qd("svg",{key:35,width:i.width,height:i.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:i.fill},[tu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75Z",fill:i.fill},null,8,sz)],8,nz)):"User"===i.iconKey?(zd(),qd("svg",{key:36,width:i.width,height:i.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:i.fill},[tu("path",{d:"M10.3105 4.75H16.75C16.9489 4.75 17.1397 4.82902 17.2803 4.96967C17.421 5.11032 17.5 5.30109 17.5 5.5V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H8.8105L10.3105 4.75ZM4 4.75V15.25H16V6.25H9.6895L8.1895 4.75H4ZM7 14.5C7 13.7044 7.31607 12.9413 7.87868 12.3787C8.44129 11.8161 9.20435 11.5 10 11.5C10.7956 11.5 11.5587 11.8161 12.1213 12.3787C12.6839 12.9413 13 13.7044 13 14.5H7ZM10 10.75C9.50272 10.75 9.02581 10.5525 8.67417 10.2008C8.32254 9.8492 8.125 9.37228 8.125 8.875C8.125 8.37772 8.32254 7.90081 8.67417 7.54918C9.02581 7.19754 9.50272 7 10 7C10.4973 7 10.9742 7.19754 11.3258 7.54918C11.6775 7.90081 11.875 8.37772 11.875 8.875C11.875 9.37228 11.6775 9.8492 11.3258 10.2008C10.9742 10.5525 10.4973 10.75 10 10.75Z",fill:i.fill},null,8,rz)],8,oz)):"View"===i.iconKey?(zd(),qd("svg",{key:37,width:i.width,height:i.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:i.fill},[tu("path",{d:"M11.5 11.689V13.2565C10.8212 13.0165 10.0947 12.9429 9.38155 13.0418C8.6684 13.1408 7.9894 13.4094 7.40157 13.8252C6.81375 14.2409 6.33426 14.7916 6.00337 15.4311C5.67249 16.0705 5.49986 16.78 5.5 17.5L4 17.4993C3.99977 16.5834 4.20919 15.6797 4.61222 14.8573C5.01526 14.0349 5.6012 13.3157 6.32516 12.7548C7.04912 12.1939 7.89188 11.8061 8.78887 11.6212C9.68585 11.4364 10.6132 11.4593 11.5 11.6883V11.689ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4862 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4862 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25ZM15.25 14.1895L16.8407 12.598L17.902 13.6593L16.3105 15.25L17.902 16.8408L16.8407 17.902L15.25 16.3105L13.6593 17.902L12.598 16.8408L14.1895 15.25L12.598 13.6593L13.6593 12.598L15.25 14.1895Z",fill:i.fill},null,8,cz)],8,lz)):"CollectionTag"===i.iconKey?(zd(),qd("svg",{key:38,width:i.width,height:i.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:i.fill},[tu("path",{d:"M4.75 2.5H15.25C15.4489 2.5 15.6397 2.57902 15.7803 2.71967C15.921 2.86032 16 3.05109 16 3.25V17.6073C16.0001 17.6743 15.9822 17.7402 15.9482 17.7979C15.9142 17.8557 15.8653 17.9033 15.8066 17.9358C15.7479 17.9683 15.6816 17.9844 15.6146 17.9826C15.5476 17.9807 15.4823 17.9609 15.4255 17.9252L10 14.5225L4.5745 17.9245C4.51778 17.9601 4.45254 17.9799 4.38558 17.9818C4.31861 17.9837 4.25236 17.9676 4.19372 17.9352C4.13508 17.9029 4.08618 17.8554 4.05211 17.7977C4.01804 17.74 4.00005 17.6742 4 17.6073V3.25C4 3.05109 4.07902 2.86032 4.21967 2.71967C4.36032 2.57902 4.55109 2.5 4.75 2.5ZM14.5 4H5.5V15.574L10 12.7533L14.5 15.574V4Z",fill:i.fill},null,8,uz)],8,dz)):"warning"===i.iconKey?(zd(),qd("svg",{key:39,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[34]||(t[34]=[tu("path",{d:"M10 2L2 18H18L10 2Z",fill:"#f97316"},null,-1),tu("path",{d:"M10 7V11M10 13H10.01",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])],8,pz)):"clock"===i.iconKey?(zd(),qd("svg",{key:40,width:i.width,height:i.height,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[35]||(t[35]=[tu("path",{d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8 12.8C9.27304 12.8 10.4939 12.2943 11.3941 11.3941C12.2943 10.4939 12.8 9.27304 12.8 8C12.8 6.72696 12.2943 5.50606 11.3941 4.60589C10.4939 3.70571 9.27304 3.2 8 3.2C6.72696 3.2 5.50606 3.70571 4.60589 4.60589C3.70571 5.50606 3.2 6.72696 3.2 8C3.2 9.27304 3.70571 10.4939 4.60589 11.3941C5.50606 12.2943 6.72696 12.8 8 12.8ZM8.6 8H11V9.2H7.4V5H8.6V8Z",fill:"#99A0AE"},null,-1)])],8,hz)):"businessBoxIcon"===i.iconKey?(zd(),qd("svg",{key:41,width:i.width,height:i.height,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[36]||(t[36]=[tu("path",{d:"M13.3999 12.1996H14.5999V13.3996H1.3999V12.1996H2.5999V3.19961C2.5999 3.04048 2.66312 2.88787 2.77564 2.77535C2.88816 2.66961 3.1999 2.59961H9.1999C9.35903 2.59961 9.51164 2.66282 9.62417 2.77535C9.73669 2.88787 9.7999 3.04048 9.7999 3.19961V12.1996H12.1999V7.39961H10.9999V6.19961H12.7999C12.959 6.19961 13.1116 6.26282 13.2242 6.37535C13.3367 6.48787 13.3999 6.64048 13.3999 6.79961V12.1996ZM3.7999 3.79961V12.1996H8.5999V3.79961H3.7999ZM4.9999 7.39961H7.3999V8.59961H4.9999V7.39961ZM4.9999 4.99961H7.3999V6.19961H4.9999V4.99961Z",fill:"#99A0AE"},null,-1)])],8,fz)):"calendar"===i.iconKey?(zd(),qd("svg",{key:42,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[37]||(t[37]=[tu("path",{d:"M13.75 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H6.25V1.75H7.75V3.25H12.25V1.75H13.75V3.25ZM12.25 4.75H7.75V6.25H6.25V4.75H4V7.75H16V4.75H13.75V6.25H12.25V4.75ZM16 9.25H4V15.25H16V9.25Z",fill:"#525866"},null,-1)])],8,gz)):"call_meeting"===i.iconKey?(zd(),qd("svg",{key:43,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[38]||(t[38]=[tu("path",{d:"M16.5 12.3175L12.1169 17L9.60483 14.5389L10.5049 13.6573L12.0774 15.1967L15.5611 11.4747L16.5 12.3175ZM14.9633 9.23725H4.77321V15.4745H9.23167V16.7222H3.5V4.24701H6.36584V3H7.63904V4.24701H12.0975V3H13.3707V4.24701H16.2366V10.7964H14.9633V9.23725ZM12.0975 5.49475H7.63904V6.74249H6.36584V5.49475H4.77321V7.98951H14.9633V5.49475H13.3707V6.74249H12.0975V5.49475Z",fill:"#525866"},null,-1)])],8,mz)):"refresh"===i.iconKey?(zd(),qd("svg",{key:44,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[39]||(t[39]=[tu("path",{d:"M5.09725 4.32476C6.45817 3.1455 8.19924 2.4975 10 2.50001C14.1423 2.50001 17.5 5.85776 17.5 10C17.5 11.602 16.9975 13.087 16.1425 14.305L13.75 10H16C16.0001 8.82373 15.6544 7.67336 15.006 6.69195C14.3576 5.71054 13.4349 4.94138 12.3529 4.4801C11.2708 4.01882 10.077 3.88578 8.91997 4.09752C7.7629 4.30926 6.69359 4.85643 5.845 5.67101L5.09725 4.32476ZM14.9028 15.6753C13.5418 16.8545 11.8008 17.5025 10 17.5C5.85775 17.5 2.5 14.1423 2.5 10C2.5 8.39801 3.0025 6.91301 3.8575 5.69501L6.25 10H4C3.9999 11.1763 4.34556 12.3267 4.994 13.3081C5.64244 14.2895 6.56505 15.0586 7.64712 15.5199C8.72918 15.9812 9.92296 16.1142 11.08 15.9025C12.2371 15.6908 13.3064 15.1436 14.155 14.329L14.9028 15.6753Z",fill:"#525866"},null,-1)])],8,_z)):"filtersAgentIcon"===i.iconKey?(zd(),qd("svg",{key:45,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[40]||(t[40]=[tu("path",{d:"M15.9535 6.99919H16.75C17.1478 6.99919 17.5294 7.15723 17.8107 7.43853C18.092 7.71984 18.25 8.10137 18.25 8.49919V11.4992C18.25 11.897 18.092 12.2785 17.8107 12.5599C17.5294 12.8412 17.1478 12.9992 16.75 12.9992H15.9535C15.7707 14.4492 15.0649 15.7826 13.9688 16.7492C12.8727 17.7158 11.4615 18.2492 10 18.2492V16.7492C11.1935 16.7492 12.3381 16.2751 13.182 15.4312C14.0259 14.5873 14.5 13.4427 14.5 12.2492V7.74919C14.5 6.55572 14.0259 5.41113 13.182 4.56721C12.3381 3.7233 11.1935 3.24919 10 3.24919C8.80653 3.24919 7.66193 3.7233 6.81802 4.56721C5.97411 5.41113 5.5 6.55572 5.5 7.74919V12.9992H3.25C2.85218 12.9992 2.47064 12.8412 2.18934 12.5599C1.90804 12.2785 1.75 11.897 1.75 11.4992V8.49919C1.75 8.10137 1.90804 7.71984 2.18934 7.43853C2.47064 7.15723 2.85218 6.99919 3.25 6.99919H4.0465C4.22952 5.54936 4.93531 4.21615 6.03143 3.2497C7.12755 2.28325 8.53866 1.75 10 1.75C11.4613 1.75 12.8724 2.28325 13.9686 3.2497C15.0647 4.21615 15.7705 5.54936 15.9535 6.99919ZM3.25 8.49919V11.4992H4V8.49919H3.25ZM16 8.49919V11.4992H16.75V8.49919H16ZM6.82 12.8379L7.615 11.5659C8.32981 12.0137 9.15652 12.2506 10 12.2492C10.8435 12.2506 11.6702 12.0137 12.385 11.5659L13.18 12.8379C12.2269 13.4351 11.1247 13.7509 10 13.7492C8.87534 13.7509 7.77306 13.4351 6.82 12.8379Z",fill:"#525866"},null,-1)])],8,vz)):"agentGroupIcon"===i.iconKey?(zd(),qd("svg",bz,[...t[41]||(t[41]=[tu("path",{d:"M10 9.25C10.9946 9.25 11.9484 9.64509 12.6517 10.3483C13.3549 11.0516 13.75 12.0054 13.75 13V17.5H12.25V13C12.25 12.4261 12.0308 11.8739 11.637 11.4563C11.2433 11.0387 10.7049 10.7874 10.132 10.7538L10 10.75C9.42609 10.75 8.87386 10.9692 8.4563 11.363C8.03874 11.7567 7.78742 12.2951 7.75375 12.868L7.75 13V17.5H6.25V13C6.25 12.0054 6.64509 11.0516 7.34835 10.3483C8.05161 9.64509 9.00544 9.25 10 9.25ZM5.125 11.5C5.33425 11.5 5.5375 11.5247 5.7325 11.5705C5.60427 11.9523 5.52833 12.3496 5.50675 12.7517L5.5 13V13.0645C5.41379 13.0337 5.32412 13.0135 5.233 13.0045L5.125 13C4.84534 13 4.57571 13.1042 4.36869 13.2922C4.16166 13.4802 4.0321 13.7386 4.00525 14.017L4 14.125V17.5H2.5V14.125C2.5 13.4288 2.77656 12.7611 3.26884 12.2688C3.76113 11.7766 4.42881 11.5 5.125 11.5V11.5ZM14.875 11.5C15.5712 11.5 16.2389 11.7766 16.7312 12.2688C17.2234 12.7611 17.5 13.4288 17.5 14.125V17.5H16V14.125C16 13.8453 15.8958 13.5757 15.7078 13.3687C15.5198 13.1617 15.2614 13.0321 14.983 13.0052L14.875 13C14.7438 13 14.6178 13.0225 14.5 13.0637V13C14.5 12.5005 14.419 12.0205 14.2682 11.572C14.4625 11.5247 14.6657 11.5 14.875 11.5ZM5.125 7C5.62228 7 6.09919 7.19754 6.45083 7.54917C6.80246 7.90081 7 8.37772 7 8.875C7 9.37228 6.80246 9.84919 6.45083 10.2008C6.09919 10.5525 5.62228 10.75 5.125 10.75C4.62772 10.75 4.15081 10.5525 3.79917 10.2008C3.44754 9.84919 3.25 9.37228 3.25 8.875C3.25 8.37772 3.44754 7.90081 3.79917 7.54917C4.15081 7.19754 4.62772 7 5.125 7V7ZM14.875 7C15.3723 7 15.8492 7.19754 16.2008 7.54917C16.5525 7.90081 16.75 8.37772 16.75 8.875C16.75 9.37228 16.5525 9.84919 16.2008 10.2008C15.8492 10.5525 15.3723 10.75 14.875 10.75C14.3777 10.75 13.9008 10.5525 13.5492 10.2008C13.1975 9.84919 13 9.37228 13 8.875C13 8.37772 13.1975 7.90081 13.5492 7.54917C13.9008 7.19754 14.3777 7 14.875 7V7ZM5.125 8.5C5.02554 8.5 4.93016 8.53951 4.85984 8.60983C4.78951 8.68016 4.75 8.77554 4.75 8.875C4.75 8.97446 4.78951 9.06984 4.85984 9.14017C4.93016 9.21049 5.02554 9.25 5.125 9.25C5.22446 9.25 5.31984 9.21049 5.39016 9.14017C5.46049 9.06984 5.5 8.97446 5.5 8.875C5.5 8.77554 5.46049 8.68016 5.39016 8.60983C5.31984 8.53951 5.22446 8.5 5.125 8.5ZM14.875 8.5C14.7755 8.5 14.6802 8.53951 14.6098 8.60983C14.5395 8.68016 14.5 8.77554 14.5 8.875C14.5 8.97446 14.5395 9.06984 14.6098 9.14017C14.6802 9.21049 14.7755 9.25 14.875 9.25C14.9745 9.25 15.0698 9.21049 15.1402 9.14017C15.2105 9.06984 15.25 8.97446 15.25 8.875C15.25 8.77554 15.2105 8.68016 15.1402 8.60983C15.0698 8.53951 14.9745 8.5 14.875 8.5ZM10 2.5C10.7956 2.5 11.5587 2.81607 12.1213 3.37868C12.6839 3.94129 13 4.70435 13 5.5C13 6.29565 12.6839 7.05871 12.1213 7.62132C11.5587 8.18393 10.7956 8.5 10 8.5C9.20435 8.5 8.44129 8.18393 7.87868 7.62132C7.31607 7.05871 7 6.29565 7 5.5C7 4.70435 7.31607 3.94129 7.87868 3.37868C8.44129 2.81607 9.20435 2.5 10 2.5V2.5ZM10 4C9.60218 4 9.22064 4.15804 8.93934 4.43934C8.65804 4.72064 8.5 5.10218 8.5 5.5C8.5 5.89782 8.65804 6.27936 8.93934 6.56066C9.22064 6.84196 9.60218 7 10 7C10.3978 7 10.7794 6.84196 11.0607 6.56066C11.342 6.27936 11.5 5.89782 11.5 5.5C11.5 5.10218 11.342 4.72064 11.0607 4.43934C10.7794 4.15804 10.3978 4 10 4V4Z",fill:"#525866"},null,-1)])])):"filter"===i.iconKey?(zd(),qd("svg",{key:47,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[42]||(t[42]=[tu("path",{d:"M16.75 4V5.5H16L12.25 11.125V17.5H7.75V11.125L4 5.5H3.25V4H16.75ZM5.803 5.5L9.25 10.6705V16H10.75V10.6705L14.197 5.5H5.803Z",fill:"#525866"},null,-1)])],8,yz)):"labelSearch"===i.iconKey?(zd(),qd("svg",{key:48,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[43]||(t[43]=[tu("path",{d:"M6.25 15.25V10.75H13.75V15.25H15.25V6.871L13.129 4.75H4.75V15.25H6.25ZM4 3.25H13.75L16.75 6.25V16C16.75 16.1989 16.671 16.3897 16.5303 16.5303C16.3897 16.671 16.1989 16.75 16 16.75H4C3.80109 16.75 3.61032 16.671 3.46967 16.5303C3.32902 16.3897 3.25 16.1989 3.25 16V4C3.25 3.80109 3.32902 3.61032 3.46967 3.46967C3.61032 3.32902 3.80109 3.25 4 3.25ZM7.75 12.25V15.25H12.25V12.25H7.75Z",fill:"#525866"},null,-1)])],8,xz)):"filtersBusinessBox"===i.iconKey?(zd(),qd("svg",{key:49,xmlns:"http://www.w3.org/2000/svg",width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none"},[...t[44]||(t[44]=[tu("path",{d:"M3.25 3.75H16.75C16.9489 3.75 17.1397 3.82902 17.2803 3.96967C17.421 4.11032 17.5 4.30109 17.5 4.5V15.5C17.5 15.6989 17.421 15.8897 17.2803 16.0303C17.1397 16.171 16.9489 16.25 16.75 16.25H3.25C3.05109 16.25 2.86032 16.171 2.71967 16.0303C2.57902 15.8897 2.5 15.6989 2.5 15.5V4.5C2.5 4.30109 2.57902 4.11032 2.71967 3.96967C2.86032 3.82902 3.05109 3.75 3.25 3.75ZM16 6.9285L10.054 12.2535L4 6.912V14.75H16V6.9285ZM4.38325 5.25L10.0457 10.2465L15.6265 5.25H4.38325Z",fill:"#525866"},null,-1)])],8,Sz)):"filtersProduct"===i.iconKey?(zd(),qd("svg",{key:50,xmlns:"http://www.w3.org/2000/svg",width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none"},[...t[45]||(t[45]=[tu("path",{d:"M16.75 9.7345V16.75C16.75 16.9489 16.671 17.1397 16.5303 17.2803C16.3897 17.421 16.1989 17.5 16 17.5H4C3.80109 17.5 3.61033 17.421 3.46967 17.2803C3.32902 17.1397 3.25 16.9489 3.25 16.75V9.7345C2.76574 9.18697 2.49892 8.48096 2.5 7.75V3.25C2.5 3.05109 2.57902 2.86032 2.71967 2.71967C2.86033 2.57902 3.05109 2.5 3.25 2.5H16.75C16.9489 2.5 17.1397 2.57902 17.2803 2.71967C17.421 2.86032 17.5 3.05109 17.5 3.25V7.75C17.5 8.5105 17.2165 9.205 16.75 9.7345ZM15.25 10.6555C14.7136 10.7933 14.1496 10.7802 13.6202 10.6177C13.0908 10.4552 12.6167 10.1495 12.25 9.7345C11.9688 10.0541 11.6226 10.3099 11.2346 10.4851C10.8466 10.6602 10.4257 10.7505 10 10.75C9.57431 10.7505 9.15342 10.6602 8.76541 10.4851C8.37741 10.3099 8.03124 10.0541 7.75 9.7345C7.38424 10.1507 6.9101 10.4572 6.38042 10.6198C5.85073 10.7824 5.2863 10.7948 4.75 10.6555V16H15.25V10.6555V10.6555ZM11.5 7.75C11.5 7.55109 11.579 7.36032 11.7197 7.21967C11.8603 7.07902 12.0511 7 12.25 7C12.4489 7 12.6397 7.07902 12.7803 7.21967C12.921 7.36032 13 7.55109 13 7.75C13 8.14782 13.158 8.52936 13.4393 8.81066C13.7206 9.09196 14.1022 9.25 14.5 9.25C14.8978 9.25 15.2794 9.09196 15.5607 8.81066C15.842 8.52936 16 8.14782 16 7.75V4H4V7.75C4 8.14782 4.15804 8.52936 4.43934 8.81066C4.72065 9.09196 5.10218 9.25 5.5 9.25C5.89783 9.25 6.27936 9.09196 6.56066 8.81066C6.84197 8.52936 7 8.14782 7 7.75C7 7.55109 7.07902 7.36032 7.21967 7.21967C7.36033 7.07902 7.55109 7 7.75 7C7.94892 7 8.13968 7.07902 8.28033 7.21967C8.42099 7.36032 8.5 7.55109 8.5 7.75C8.5 8.14782 8.65804 8.52936 8.93934 8.81066C9.22065 9.09196 9.60218 9.25 10 9.25C10.3978 9.25 10.7794 9.09196 11.0607 8.81066C11.342 8.52936 11.5 8.14782 11.5 7.75Z",fill:"#525866"},null,-1)])],8,wz)):"filtersAdminPriority"===i.iconKey?(zd(),qd("svg",{key:51,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[46]||(t[46]=[tu("path",{d:"M10 11.5V13C8.80653 13 7.66193 13.4741 6.81802 14.318C5.97411 15.1619 5.5 16.3065 5.5 17.5H4C4 15.9087 4.63214 14.3826 5.75736 13.2574C6.88258 12.1321 8.4087 11.5 10 11.5ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4862 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4862 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25ZM11.9462 15.109C11.8512 14.7088 11.8512 14.2919 11.9462 13.8917L11.2022 13.462L11.9522 12.163L12.6962 12.5927C12.9949 12.3099 13.3558 12.1013 13.75 11.9838V11.125H15.25V11.9838C15.649 12.1023 16.009 12.3138 16.3037 12.5927L17.0477 12.163L17.7977 13.462L17.0537 13.8917C17.1487 14.2917 17.1487 14.7083 17.0537 15.1083L17.7977 15.538L17.0477 16.837L16.3037 16.4072C16.0051 16.6901 15.6442 16.8987 15.25 17.0162V17.875H13.75V17.0162C13.3558 16.8987 12.9949 16.6901 12.6962 16.4072L11.9522 16.837L11.2022 15.538L11.9462 15.109ZM14.5 15.625C14.7984 15.625 15.0845 15.5065 15.2955 15.2955C15.5065 15.0845 15.625 14.7984 15.625 14.5C15.625 14.2016 15.5065 13.9155 15.2955 13.7045C15.0845 13.4935 14.7984 13.375 14.5 13.375C14.2016 13.375 13.9155 13.4935 13.7045 13.7045C13.4935 13.9155 13.375 14.2016 13.375 14.5C13.375 14.7984 13.4935 15.0845 13.7045 15.2955C13.9155 15.5065 14.2016 15.625 14.5 15.625Z",fill:"#525866"},null,-1)])],8,Cz)):"filtersCustomerPriority"===i.iconKey?(zd(),qd("svg",{key:52,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[47]||(t[47]=[tu("path",{d:"M2.5 17.5C2.5 15.9087 3.13214 14.3826 4.25736 13.2574C5.38258 12.1321 6.9087 11.5 8.5 11.5C10.0913 11.5 11.6174 12.1321 12.7426 13.2574C13.8679 14.3826 14.5 15.9087 14.5 17.5H13C13 16.3065 12.5259 15.1619 11.682 14.318C10.8381 13.4741 9.69347 13 8.5 13C7.30653 13 6.16193 13.4741 5.31802 14.318C4.47411 15.1619 4 16.3065 4 17.5H2.5ZM8.5 10.75C6.01375 10.75 4 8.73625 4 6.25C4 3.76375 6.01375 1.75 8.5 1.75C10.9862 1.75 13 3.76375 13 6.25C13 8.73625 10.9862 10.75 8.5 10.75ZM8.5 9.25C10.1575 9.25 11.5 7.9075 11.5 6.25C11.5 4.5925 10.1575 3.25 8.5 3.25C6.8425 3.25 5.5 4.5925 5.5 6.25C5.5 7.9075 6.8425 9.25 8.5 9.25ZM14.713 12.0273C15.767 12.5019 16.6615 13.2709 17.2889 14.2418C17.9164 15.2126 18.2501 16.344 18.25 17.5H16.75C16.7502 16.633 16.4999 15.7844 16.0293 15.0562C15.5587 14.328 14.8878 13.7512 14.0972 13.3953L14.7123 12.0273H14.713ZM14.197 3.55975C14.9526 3.87122 15.5987 4.40015 16.0533 5.07942C16.5078 5.75869 16.7503 6.55768 16.75 7.375C16.7503 8.40425 16.3658 9.39642 15.6719 10.1566C14.978 10.9168 14.025 11.3901 13 11.4835V9.97375C13.5557 9.89416 14.0713 9.63851 14.471 9.24434C14.8707 8.85017 15.1335 8.33824 15.2209 7.7837C15.3082 7.22916 15.2155 6.66122 14.9563 6.16327C14.6971 5.66531 14.2851 5.26356 13.7808 5.017L14.197 3.55975Z",fill:"#525866"},null,-1)])],8,Ez)):"filtersTagIcon"===i.iconKey?(zd(),qd("svg",{key:53,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[48]||(t[48]=[tu("path",{d:"M9.17489 2.57422L16.5991 3.63547L17.6596 11.0605L10.7656 17.9545C10.625 18.0951 10.4343 18.1741 10.2354 18.1741C10.0365 18.1741 9.84578 18.0951 9.70514 17.9545L2.28014 10.5295C2.13953 10.3888 2.06055 10.1981 2.06055 9.99922C2.06055 9.80035 2.13953 9.60962 2.28014 9.46897L9.17489 2.57422ZM9.70514 4.16572L3.87089 9.99922L10.2354 16.363L16.0689 10.5295L15.2739 4.96072L9.70514 4.16572ZM11.2951 8.93872C11.0138 8.65726 10.8557 8.27555 10.8558 7.87758C10.8559 7.68052 10.8947 7.4854 10.9701 7.30336C11.0456 7.12131 11.1561 6.95591 11.2955 6.81659C11.4349 6.67728 11.6003 6.56678 11.7824 6.4914C11.9645 6.41602 12.1596 6.37724 12.3567 6.37727C12.7546 6.37735 13.1363 6.53551 13.4176 6.81697C13.699 7.09843 13.857 7.48013 13.857 7.87811C13.8569 8.27608 13.6987 8.65773 13.4173 8.93909C13.1358 9.22046 12.7541 9.37848 12.3561 9.37841C11.9581 9.37834 11.5765 9.22018 11.2951 8.93872Z",fill:"#525866"},null,-1)])],8,kz)):"backIcon"===i.iconKey?(zd(),qd("svg",{key:54,width:i.width,height:i.height,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[49]||(t[49]=[tu("path",{d:"M6.184 8.32515H14.4001V9.67515H6.184L9.8047 13.2958L8.85025 14.2503L3.6001 9.00015L8.85025 3.75L9.8047 4.70445L6.184 8.32515Z",fill:"#525866"},null,-1)])],8,Tz)):"sort"===i.iconKey?(zd(),qd("svg",{key:55,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[50]||(t[50]=[tu("path",{d:"M9.9626 6.9625L8.9021 8.023L7.0001 6.121V16H5.5001V6.121L3.59885 8.023L2.5376 6.9625L6.2501 3.25L9.9626 6.9625ZM17.4626 13.0375L13.7501 16.75L10.0376 13.0375L11.0981 11.977L13.0008 13.879L13.0001 4H14.5001V13.879L16.4021 11.977L17.4626 13.0375Z",fill:"#525866"},null,-1)])],8,Az)):"layoutView"===i.iconKey?(zd(),qd("svg",{key:56,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M9.25 4.75H4.75V15.25H9.25V4.75ZM10.75 4.75V15.25H15.25V4.75H10.75ZM4 3.25H16C16.1989 3.25 16.3897 3.32902 16.5303 3.46967C16.671 3.61032 16.75 3.80109 16.75 4V16C16.75 16.1989 16.671 16.3897 16.5303 16.5303C16.3897 16.671 16.1989 16.75 16 16.75H4C3.80109 16.75 3.61032 16.671 3.46967 16.5303C3.32902 16.3897 3.25 16.1989 3.25 16V4C3.25 3.80109 3.32902 3.61032 3.46967 3.46967C3.61032 3.32902 3.80109 3.25 4 3.25V3.25Z",fill:i.fill||"#525866"},null,8,Iz)],8,Rz)):"theme_light"===i.iconKey?(zd(),qd("svg",{key:57,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[51]||(t[51]=[tu("path",{d:"M8.15361 10.4991C7.81992 10.0496 7.52001 9.57734 7.25389 9.08222C7.13939 9.2999 7.05215 9.52861 6.99215 9.76835C6.93216 10.008 6.90216 10.2541 6.90216 10.5068C6.91337 11.499 7.26591 12.3428 7.9598 13.0381C8.65369 13.7334 9.49675 14.0866 10.489 14.0978C10.7417 14.0978 10.9836 14.0685 11.2147 14.0099C11.4458 13.9514 11.6729 13.8634 11.8961 13.7461C11.4011 13.48 10.9317 13.1794 10.4881 12.8443C10.0443 12.5093 9.62771 12.1471 9.23822 11.7576C8.84885 11.3681 8.48731 10.9486 8.15361 10.4991ZM12.3313 12.3339C13.0878 12.7847 13.896 13.1329 14.756 13.3784C14.2718 14.0912 13.6562 14.6461 12.9091 15.0431C12.162 15.44 11.3589 15.6385 10.5 15.6385C9.0702 15.6385 7.85633 15.1395 6.85839 14.1416C5.86045 13.1437 5.36148 11.9298 5.36148 10.5C5.36148 9.64492 5.56288 8.83998 5.96567 8.08516C6.36847 7.33023 6.92627 6.71069 7.63906 6.22654C7.88464 7.09819 8.22989 7.91224 8.67482 8.66869C9.11975 9.42526 9.65128 10.1126 10.2694 10.7306C10.8874 11.3487 11.5747 11.8832 12.3313 12.3339ZM15.3351 12.228C15.0922 12.172 14.8533 12.1055 14.6183 12.0284C14.3833 11.9514 14.1523 11.8597 13.9254 11.7534C14.0049 11.5394 14.0652 11.3272 14.1062 11.1168C14.1473 10.9064 14.1679 10.6887 14.1679 10.4638C14.1679 9.45088 13.8158 8.59242 13.1116 7.88837C12.4076 7.18421 11.5487 6.83213 10.535 6.83213C10.3267 6.83213 10.1134 6.84906 9.89511 6.88291C9.67673 6.91675 9.46821 6.97342 9.26956 7.0529C9.15587 6.82659 9.06203 6.59934 8.98803 6.37115C8.91403 6.14309 8.84785 5.90767 8.7895 5.66489C9.0702 5.56813 9.35208 5.49338 9.63512 5.44062C9.91816 5.38786 10.2065 5.36148 10.5 5.36148C11.9298 5.36148 13.1437 5.86045 14.1416 6.85839C15.1395 7.85633 15.6385 9.0702 15.6385 10.5C15.6385 10.7895 15.6151 11.0797 15.5681 11.3707C15.5212 11.6615 15.4435 11.9473 15.3351 12.228ZM9.77343 4.10093V2H11.2266V4.10093H9.77343ZM9.77343 19V16.8991H11.2266V19H9.77343ZM15.5361 6.49493L14.5093 5.4639L15.9974 3.97154L17.0243 5.00257L15.5361 6.49493ZM5.00257 17.0285L3.97575 15.9974L5.4639 14.5051L6.49073 15.5361L5.00257 17.0285ZM16.8991 11.2266V9.77343H19V11.2266H16.8991ZM2 11.2266V9.77343H4.10093V11.2266H2ZM15.9974 17.0243L14.5093 15.5403L15.5403 14.5135L17.0285 15.9974L15.9974 17.0243ZM5.4639 6.49073L3.97154 5.00257L5.00257 3.97575L6.49493 5.4639L5.4639 6.49073Z",fill:"currentColor"},null,-1)])],8,Dz)):"theme_dark"===i.iconKey?(zd(),qd("svg",{key:58,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[52]||(t[52]=[tu("path",{d:"M8.5 6.25C8.49985 7.29298 8.81035 8.31237 9.39192 9.17816C9.97348 10.0439 10.7997 10.7169 11.7653 11.1112C12.7309 11.5055 13.7921 11.6032 14.8134 11.3919C15.8348 11.1807 16.7701 10.67 17.5 9.925V10C17.5 14.1423 14.1423 17.5 10 17.5C5.85775 17.5 2.5 14.1423 2.5 10C2.5 5.85775 5.85775 2.5 10 2.5H10.075C9.57553 2.98834 9.17886 3.57172 8.90836 4.21576C8.63786 4.8598 8.49902 5.55146 8.5 6.25ZM4 10C3.99945 11.3387 4.44665 12.6392 5.27042 13.6945C6.09419 14.7497 7.24723 15.4992 8.54606 15.8236C9.84489 16.148 11.2149 16.0287 12.4381 15.4847C13.6614 14.9407 14.6675 14.0033 15.2965 12.8215C14.1771 13.0852 13.0088 13.0586 11.9026 12.744C10.7964 12.4295 9.78888 11.8376 8.97566 11.0243C8.16244 10.2111 7.57048 9.20361 7.25596 8.09738C6.94144 6.99116 6.91477 5.82292 7.1785 4.7035C6.21818 5.2151 5.41509 5.97825 4.85519 6.91123C4.2953 7.84422 3.99968 8.91191 4 10Z",fill:"currentColor"},null,-1)])],8,Oz)):"theme_system"===i.iconKey?(zd(),qd("svg",{key:59,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[53]||(t[53]=[tu("path",{d:"M6.875 4.375V6.25H4.375V7.5H6.875V9.375H8.125V4.375H6.875ZM9.375 7.5H15.625V6.25H9.375V7.5ZM13.125 10.625V12.5H15.625V13.75H13.125V15.625H11.875V10.625H13.125ZM10.625 13.75H4.375V12.5H10.625V13.75Z",fill:"currentColor"},null,-1)])],8,Mz)):"cancel"===i.iconKey?(zd(),qd("svg",Nz,[...t[54]||(t[54]=[tu("path",{d:"M9.5 2.5L2.5 9.5M2.5 2.5L9.5 9.5",stroke:"#696778","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):"arrow_down"===i.iconKey?(zd(),qd("svg",{key:61,width:i.width,height:i.height,viewBox:"-4.18 -5.73 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[55]||(t[55]=[tu("path",{d:"M3.8184 2.97L6.7884 0L7.6368 0.8484L3.8184 4.6668L0 0.8484L0.8484 0L3.8184 2.97Z",fill:"currentColor"},null,-1)])],8,Lz)):"arrow_right_close"===i.iconKey?(zd(),qd("svg",{key:62,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[56]||(t[56]=[tu("path",{d:"M13.5914 9.30589L10.3575 6.07193L11.3395 5.08984L16.25 10.0003L11.3395 14.9107L10.3575 13.9287L13.5914 10.6948L7.22208 10.6948L7.22206 9.30595L13.5914 9.30589ZM4.44434 14.8614V5.13916H5.83322V14.8614H4.44434Z",fill:"#525866"},null,-1)])],8,Pz)):"arrow_left_open"===i.iconKey?(zd(),qd("svg",Fz,[...t[57]||(t[57]=[tu("path",{d:"M8.66049 5.08984L9.64257 6.07193L6.40861 9.30589L12.778 9.30595V10.6948L6.40865 10.6948L9.64257 13.9287L8.66049 14.9107L3.75 10.0003L8.66049 5.08984ZM14.1668 14.8614V5.13916H15.5557V14.8614H14.1668Z",fill:"#525866"},null,-1)])])):"agent_icon"===i.iconKey?(zd(),qd("svg",Bz,[...t[58]||(t[58]=[tu("path",{d:"M12.7628 5.59975H13.4C13.7183 5.59975 14.0235 5.72617 14.2485 5.95122C14.4736 6.17626 14.6 6.48148 14.6 6.79974V9.19974C14.6 9.518 14.4736 9.82323 14.2485 10.0483C14.0235 10.2733 13.7183 10.3997 13.4 10.3997H12.7628C12.6165 11.5597 12.052 12.6265 11.175 13.3997C10.2981 14.173 9.16916 14.5997 7.99999 14.5997V13.3997C8.95477 13.3997 9.87045 13.0205 10.5456 12.3453C11.2207 11.6702 11.6 10.7545 11.6 9.79974V6.19975C11.6 5.24497 11.2207 4.32929 10.5456 3.65416C9.87045 2.97903 8.95477 2.59974 7.99999 2.59974C7.04521 2.59974 6.12954 2.97903 5.45441 3.65416C4.77928 4.32929 4.39999 5.24497 4.39999 6.19975V10.3997H2.59999C2.28173 10.3997 1.97651 10.2733 1.75147 10.0483C1.52642 9.82323 1.39999 9.518 1.39999 9.19974V6.79974C1.39999 6.48148 1.52642 6.17626 1.75147 5.95122C1.97651 5.72617 2.28173 5.59975 2.59999 5.59975H3.23719C3.38361 4.43988 3.94824 3.37331 4.82514 2.60015C5.70203 1.82699 6.83093 1.40039 7.99999 1.40039C9.16906 1.40039 10.298 1.82699 11.1748 2.60015C12.0517 3.37331 12.6164 4.43988 12.7628 5.59975ZM2.59999 6.79974V9.19974H3.19999V6.79974H2.59999ZM12.8 6.79974V9.19974H13.4V6.79974H12.8ZM5.45599 10.2707L6.09199 9.25314C6.66384 9.61137 7.32521 9.80083 7.99999 9.79974C8.67477 9.80083 9.33615 9.61137 9.90799 9.25314L10.544 10.2707C9.78155 10.7484 8.89972 11.0011 7.99999 10.9997C7.10027 11.0011 6.21844 10.7484 5.45599 10.2707Z",fill:"#0B4627"},null,-1)])])):"user_icon"===i.iconKey?(zd(),qd("svg",$z,[...t[59]||(t[59]=[tu("path",{d:"M12.8 14.0004H11.6V12.8004C11.6 12.323 11.4104 11.8652 11.0728 11.5276C10.7352 11.19 10.2774 11.0004 9.80001 11.0004H6.20001C5.72262 11.0004 5.26479 11.19 4.92722 11.5276C4.58965 11.8652 4.40001 12.323 4.40001 12.8004V14.0004H3.20001V12.8004C3.20001 12.0047 3.51608 11.2417 4.07869 10.6791C4.6413 10.1165 5.40436 9.80039 6.20001 9.80039H9.80001C10.5957 9.80039 11.3587 10.1165 11.9213 10.6791C12.4839 11.2417 12.8 12.0047 12.8 12.8004V14.0004ZM8.00001 8.60039C7.52725 8.60039 7.05912 8.50727 6.62235 8.32636C6.18558 8.14544 5.78872 7.88027 5.45443 7.54597C5.12014 7.21168 4.85496 6.81482 4.67405 6.37805C4.49313 5.94128 4.40001 5.47315 4.40001 5.00039C4.40001 4.52763 4.49313 4.0595 4.67405 3.62273C4.85496 3.18596 5.12014 2.7891 5.45443 2.45481C5.78872 2.12052 6.18558 1.85534 6.62235 1.67442C7.05912 1.49351 7.52725 1.40039 8.00001 1.40039C8.95479 1.40039 9.87047 1.77968 10.5456 2.45481C11.2207 3.12994 11.6 4.04561 11.6 5.00039C11.6 5.95517 11.2207 6.87084 10.5456 7.54597C9.87047 8.22111 8.95479 8.60039 8.00001 8.60039ZM8.00001 7.40039C8.63653 7.40039 9.24698 7.14753 9.69707 6.69745C10.1472 6.24736 10.4 5.63691 10.4 5.00039C10.4 4.36387 10.1472 3.75342 9.69707 3.30333C9.24698 2.85325 8.63653 2.60039 8.00001 2.60039C7.36349 2.60039 6.75304 2.85325 6.30296 3.30333C5.85287 3.75342 5.60001 4.36387 5.60001 5.00039C5.60001 5.63691 5.85287 6.24736 6.30296 6.69745C6.75304 7.14753 7.36349 7.40039 8.00001 7.40039Z",fill:"#122368"},null,-1)])])):"reports_nav_icon"===i.iconKey?(zd(),qd("svg",{key:66,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[60]||(t[60]=[tu("path",{d:"M16.6789 5.19727C16.6789 4.73702 16.3172 4.36364 15.8713 4.36364H8.82557V16.6364H15.8713C16.3172 16.6364 16.6789 16.263 16.6789 15.8027V5.19727ZM5.59598 8.30273C5.96069 8.30273 6.25636 8.60813 6.25652 8.98455C6.25652 9.36111 5.96078 9.66637 5.59598 9.66637H4.86233C4.49753 9.66637 4.2018 9.36111 4.2018 8.98455C4.20195 8.60813 4.49762 8.30273 4.86233 8.30273H5.59598ZM5.59598 6.03001C5.96069 6.03001 6.25636 6.3354 6.25652 6.71183C6.25652 7.08838 5.96078 7.39364 5.59598 7.39364H4.86233C4.49753 7.39364 4.2018 7.08838 4.2018 6.71183C4.20195 6.3354 4.49762 6.03001 4.86233 6.03001H5.59598ZM3.32108 15.8027C3.32108 16.263 3.68281 16.6364 4.12869 16.6364H7.50449V4.36364H4.12869C3.68282 4.36364 3.32108 4.73703 3.32108 5.19727V15.8027ZM18 15.8027C18 17.0161 17.0468 18 15.8713 18H4.12869C2.95321 18 2 17.0161 2 15.8027V5.19727C2 3.98391 2.9532 3 4.12869 3H15.8713C17.0468 3 18 3.98392 18 5.19727V15.8027Z",fill:"currentColor"},null,-1)])],8,Vz)):"personal_reports"===i.iconKey?(zd(),qd("svg",{key:67,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[61]||(t[61]=[tu("path",{d:"M4 17.5C4 15.9087 4.63214 14.3826 5.75736 13.2574C6.88258 12.1321 8.4087 11.5 10 11.5C11.5913 11.5 13.1174 12.1321 14.2426 13.2574C15.3679 14.3826 16 15.9087 16 17.5H14.5C14.5 16.3065 14.0259 15.1619 13.182 14.318C12.3381 13.4741 11.1935 13 10 13C8.80653 13 7.66193 13.4741 6.81802 14.318C5.97411 15.1619 5.5 16.3065 5.5 17.5H4ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4863 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4863 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25Z",fill:"currentColor"},null,-1)])],8,Uz)):"agent_reports"===i.iconKey?(zd(),qd("svg",{key:68,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[62]||(t[62]=[tu("path",{d:"M10.3105 4.75H16.75C16.9489 4.75 17.1397 4.82902 17.2803 4.96967C17.421 5.11032 17.5 5.30109 17.5 5.5V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H8.8105L10.3105 4.75ZM4 4.75V15.25H16V6.25H9.6895L8.1895 4.75H4ZM7 14.5C7 13.7044 7.31607 12.9413 7.87868 12.3787C8.44129 11.8161 9.20435 11.5 10 11.5C10.7956 11.5 11.5587 11.8161 12.1213 12.3787C12.6839 12.9413 13 13.7044 13 14.5H7ZM10 10.75C9.50272 10.75 9.02581 10.5525 8.67417 10.2008C8.32254 9.8492 8.125 9.37228 8.125 8.875C8.125 8.37772 8.32254 7.90081 8.67417 7.54918C9.02581 7.19754 9.50272 7 10 7C10.4973 7 10.9742 7.19754 11.3258 7.54918C11.6775 7.90081 11.875 8.37772 11.875 8.875C11.875 9.37228 11.6775 9.8492 11.3258 10.2008C10.9742 10.5525 10.4973 10.75 10 10.75V10.75Z",fill:"currentColor"},null,-1)])],8,Hz)):"product_reports"===i.iconKey?(zd(),qd("svg",{key:69,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[63]||(t[63]=[tu("path",{d:"M5.875 2.5H14.125C14.2414 2.5 14.3563 2.52711 14.4604 2.57918C14.5646 2.63125 14.6551 2.70685 14.725 2.8L16.75 5.5V16.75C16.75 16.9489 16.671 17.1397 16.5303 17.2803C16.3897 17.421 16.1989 17.5 16 17.5H4C3.80109 17.5 3.61032 17.421 3.46967 17.2803C3.32902 17.1397 3.25 16.9489 3.25 16.75V5.5L5.275 2.8C5.34486 2.70685 5.43545 2.63125 5.53959 2.57918C5.64373 2.52711 5.75857 2.5 5.875 2.5ZM15.25 7H4.75V16H15.25V7ZM14.875 5.5L13.75 4H6.25L5.125 5.5H14.875ZM7.75 8.5V10C7.75 10.5967 7.98705 11.169 8.40901 11.591C8.83097 12.0129 9.40326 12.25 10 12.25C10.5967 12.25 11.169 12.0129 11.591 11.591C12.0129 11.169 12.25 10.5967 12.25 10V8.5H13.75V10C13.75 10.9946 13.3549 11.9484 12.6517 12.6517C11.9484 13.3549 10.9946 13.75 10 13.75C9.00544 13.75 8.05161 13.3549 7.34835 12.6517C6.64509 11.9484 6.25 10.9946 6.25 10V8.5H7.75Z",fill:"currentColor"},null,-1)])],8,zz)):"business_boxes_report"===i.iconKey?(zd(),qd("svg",{key:70,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[64]||(t[64]=[tu("path",{d:"M6.25 4.75V2.5C6.25 2.30109 6.32902 2.11032 6.46967 1.96967C6.61032 1.82902 6.80109 1.75 7 1.75H13C13.1989 1.75 13.3897 1.82902 13.5303 1.96967C13.671 2.11032 13.75 2.30109 13.75 2.5V4.75H16.75C16.9489 4.75 17.1397 4.82902 17.2803 4.96967C17.421 5.11032 17.5 5.30109 17.5 5.5V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V5.5C2.5 5.30109 2.57902 5.11032 2.71967 4.96967C2.86032 4.82902 3.05109 4.75 3.25 4.75H6.25ZM4 13V15.25H16V13H4ZM4 11.5H16V6.25H4V11.5ZM7.75 3.25V4.75H12.25V3.25H7.75ZM9.25 9.25H10.75V10.75H9.25V9.25Z",fill:"currentColor"},null,-1)])],8,Yz)):"activity_reports"===i.iconKey?(zd(),qd("svg",{key:71,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[65]||(t[65]=[tu("path",{d:"M7.75 6.65425L12.25 17.1542L14.9943 10.75H18.25V9.25H14.0057L12.25 13.3457L7.75 2.84575L5.00575 9.25H1.75V10.75H5.99425L7.75 6.65425Z",fill:"currentColor"},null,-1)])],8,Gz)):"time_sheet"===i.iconKey?(zd(),qd("svg",{key:72,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[66]||(t[66]=[tu("path",{d:"M10 17.5C5.85775 17.5 2.5 14.1422 2.5 10C2.5 5.85775 5.85775 2.5 10 2.5C14.1422 2.5 17.5 5.85775 17.5 10C17.5 14.1422 14.1422 17.5 10 17.5ZM10 16C11.5913 16 13.1174 15.3679 14.2426 14.2426C15.3679 13.1174 16 11.5913 16 10C16 8.4087 15.3679 6.88258 14.2426 5.75736C13.1174 4.63214 11.5913 4 10 4C8.4087 4 6.88258 4.63214 5.75736 5.75736C4.63214 6.88258 4 8.4087 4 10C4 11.5913 4.63214 13.1174 5.75736 14.2426C6.88258 15.3679 8.4087 16 10 16V16ZM10.75 10H13.75V11.5H9.25V6.25H10.75V10Z",fill:"currentColor"},null,-1)])],8,Wz)):"ticket_overview"===i.iconKey?(zd(),qd("svg",{key:73,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[67]||(t[67]=[tu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75Z",fill:"currentColor"},null,-1)])],8,jz)):"agent_performance"===i.iconKey?(zd(),qd("svg",{key:74,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[68]||(t[68]=[tu("path",{d:"M10 11.5V13C8.80653 13 7.66193 13.4741 6.81802 14.318C5.97411 15.1619 5.5 16.3065 5.5 17.5H4C4 15.9087 4.63214 14.3826 5.75736 13.2574C6.88258 12.1321 8.4087 11.5 10 11.5V11.5ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4863 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4863 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25ZM14.5 17.125L12.2957 18.2837L12.7165 15.8298L10.9337 14.0912L13.3983 13.7327L14.5 11.5L15.6025 13.7327L18.0662 14.0912L16.2835 15.8298L16.7035 18.2837L14.5 17.125Z",fill:"currentColor"},null,-1)])],8,qz)):"team_performance"===i.iconKey?(zd(),qd("svg",{key:75,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[69]||(t[69]=[tu("path",{d:"M2.5 17.5C2.5 15.9087 3.13214 14.3826 4.25736 13.2574C5.38258 12.1321 6.9087 11.5 8.5 11.5C10.0913 11.5 11.6174 12.1321 12.7426 13.2574C13.8679 14.3826 14.5 15.9087 14.5 17.5H13C13 16.3065 12.5259 15.1619 11.682 14.318C10.8381 13.4741 9.69347 13 8.5 13C7.30653 13 6.16193 13.4741 5.31802 14.318C4.47411 15.1619 4 16.3065 4 17.5H2.5ZM8.5 10.75C6.01375 10.75 4 8.73625 4 6.25C4 3.76375 6.01375 1.75 8.5 1.75C10.9863 1.75 13 3.76375 13 6.25C13 8.73625 10.9863 10.75 8.5 10.75ZM8.5 9.25C10.1575 9.25 11.5 7.9075 11.5 6.25C11.5 4.5925 10.1575 3.25 8.5 3.25C6.8425 3.25 5.5 4.5925 5.5 6.25C5.5 7.9075 6.8425 9.25 8.5 9.25ZM14.713 12.0272C15.767 12.5019 16.6615 13.2709 17.2889 14.2418C17.9164 15.2126 18.2501 16.344 18.25 17.5H16.75C16.7502 16.633 16.4999 15.7844 16.0293 15.0562C15.5587 14.328 14.8878 13.7512 14.0972 13.3953L14.7123 12.0272H14.713ZM14.197 3.55975C14.9526 3.87122 15.5987 4.40015 16.0533 5.07942C16.5078 5.75869 16.7503 6.55768 16.75 7.375C16.7503 8.40425 16.3658 9.39642 15.6719 10.1566C14.978 10.9168 14.025 11.3901 13 11.4835V9.97375C13.5557 9.89416 14.0713 9.63851 14.471 9.24434C14.8707 8.85017 15.1335 8.33824 15.2209 7.7837C15.3082 7.22916 15.2155 6.66122 14.9563 6.16327C14.6971 5.66531 14.2851 5.26356 13.7808 5.017L14.197 3.55975V3.55975Z",fill:"currentColor"},null,-1)])],8,Kz)):"workload_health"===i.iconKey?(zd(),qd("svg",{key:76,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[70]||(t[70]=[tu("path",{d:"M13.375 3.25C15.6535 3.25 17.5 5.125 17.5 7.75C17.5 13 11.875 16 10 17.125C8.51725 16.2355 4.68775 14.1723 3.15175 10.7508L1.75 10.75V9.25H2.6575C2.5555 8.773 2.5 8.2735 2.5 7.75C2.5 5.125 4.375 3.25 6.625 3.25C8.02 3.25 9.25 4 10 4.75C10.75 4 11.98 3.25 13.375 3.25ZM13.375 4.75C12.568 4.75 11.695 5.1775 11.0605 5.8105L10 6.871L8.9395 5.8105C8.305 5.1775 7.432 4.75 6.625 4.75C5.17 4.75 4 5.992 4 7.75C4 8.26375 4.0675 8.764 4.20025 9.25H5.8255L7.375 6.667L9.625 10.417L10.3255 9.25H13.75V10.75H11.1745L9.625 13.333L7.375 9.583L6.6745 10.75H4.831C5.4235 11.7805 6.31975 12.751 7.48375 13.6772C8.0425 14.1212 8.63875 14.536 9.2995 14.9523C9.52375 15.094 9.74575 15.2297 10 15.3812C10.2542 15.2297 10.4762 15.094 10.7005 14.953C11.3612 14.536 11.9575 14.1212 12.5155 13.6772C14.7512 11.8997 16 9.95725 16 7.75C16 5.98 14.8472 4.75 13.375 4.75Z",fill:"currentColor"},null,-1)])],8,Xz)):"product_support"===i.iconKey?(zd(),qd("svg",{key:77,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[71]||(t[71]=[tu("path",{d:"M15.9535 7H16.75C17.1478 7 17.5294 7.15804 17.8107 7.43934C18.092 7.72064 18.25 8.10218 18.25 8.5V11.5C18.25 11.8978 18.092 12.2794 17.8107 12.5607C17.5294 12.842 17.1478 13 16.75 13H15.9535C15.7707 14.45 15.0649 15.7834 13.9688 16.75C12.8727 17.7166 11.4615 18.25 10 18.25V16.75C11.1935 16.75 12.3381 16.2759 13.182 15.432C14.0259 14.5881 14.5 13.4435 14.5 12.25V7.75C14.5 6.55653 14.0259 5.41193 13.182 4.56802C12.3381 3.72411 11.1935 3.25 10 3.25C8.80653 3.25 7.66193 3.72411 6.81802 4.56802C5.97411 5.41193 5.5 6.55653 5.5 7.75V13H3.25C2.85218 13 2.47064 12.842 2.18934 12.5607C1.90804 12.2794 1.75 11.8978 1.75 11.5V8.5C1.75 8.10218 1.90804 7.72064 2.18934 7.43934C2.47064 7.15804 2.85218 7 3.25 7H4.0465C4.22952 5.55017 4.93531 4.21695 6.03143 3.25051C7.12755 2.28406 8.53866 1.75081 10 1.75081C11.4613 1.75081 12.8724 2.28406 13.9686 3.25051C15.0647 4.21695 15.7705 5.55017 15.9535 7V7ZM3.25 8.5V11.5H4V8.5H3.25ZM16 8.5V11.5H16.75V8.5H16ZM6.82 12.8387L7.615 11.5667C8.32981 12.0145 9.15652 12.2514 10 12.25C10.8435 12.2514 11.6702 12.0145 12.385 11.5667L13.18 12.8387C12.2269 13.4359 11.1247 13.7517 10 13.75C8.87534 13.7517 7.77306 13.4359 6.82 12.8387Z",fill:"currentColor"},null,-1)])],8,Zz)):"response_activity"===i.iconKey?(zd(),qd("svg",{key:78,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[72]||(t[72]=[tu("path",{d:"M5.84125 15.25L2.5 17.875V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V14.5C17.5 14.6989 17.421 14.8897 17.2803 15.0303C17.1397 15.171 16.9489 15.25 16.75 15.25H5.84125ZM5.32225 13.75H16V4.75H4V14.7887L5.32225 13.75ZM7 8.5H13V10H7V8.5Z",fill:"currentColor"},null,-1)])],8,Qz)):"ai_ticket_audit"===i.iconKey?(zd(),qd("svg",{key:79,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[73]||(t[73]=[tu("path",{d:"M11.125 2.5C11.125 2.83319 10.9802 3.13254 10.75 3.33854V4.75H14.5C15.7427 4.75 16.75 5.75736 16.75 7V14.5C16.75 15.7427 15.7427 16.75 14.5 16.75H5.5C4.25736 16.75 3.25 15.7427 3.25 14.5V7C3.25 5.75736 4.25736 4.75 5.5 4.75H9.25V3.33854C9.01983 3.13254 8.875 2.83319 8.875 2.5C8.875 1.87868 9.3787 1.375 10 1.375C10.6213 1.375 11.125 1.87868 11.125 2.5ZM5.5 6.25C5.08579 6.25 4.75 6.58579 4.75 7V14.5C4.75 14.9142 5.08579 15.25 5.5 15.25H14.5C14.9142 15.25 15.25 14.9142 15.25 14.5V7C15.25 6.58579 14.9142 6.25 14.5 6.25H10.75H9.25H5.5ZM2.5 8.5H1V13H2.5V8.5ZM17.5 8.5H19V13H17.5V8.5ZM7.75 11.875C8.37132 11.875 8.875 11.3713 8.875 10.75C8.875 10.1287 8.37132 9.625 7.75 9.625C7.12868 9.625 6.625 10.1287 6.625 10.75C6.625 11.3713 7.12868 11.875 7.75 11.875ZM12.25 11.875C12.8713 11.875 13.375 11.3713 13.375 10.75C13.375 10.1287 12.8713 9.625 12.25 9.625C11.6287 9.625 11.125 10.1287 11.125 10.75C11.125 11.3713 11.6287 11.875 12.25 11.875Z",fill:"currentColor"},null,-1)])],8,Jz)):"error_warning_line"===i.iconKey?(zd(),qd("svg",{key:80,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[74]||(t[74]=[tu("path",{d:"M10 17.5C5.85775 17.5 2.5 14.1422 2.5 10C2.5 5.85775 5.85775 2.5 10 2.5C14.1422 2.5 17.5 5.85775 17.5 10C17.5 14.1422 14.1422 17.5 10 17.5ZM10 16C11.5913 16 13.1174 15.3679 14.2426 14.2426C15.3679 13.1174 16 11.5913 16 10C16 8.4087 15.3679 6.88258 14.2426 5.75736C13.1174 4.63214 11.5913 4 10 4C8.4087 4 6.88258 4.63214 5.75736 5.75736C4.63214 6.88258 4 8.4087 4 10C4 11.5913 4.63214 13.1174 5.75736 14.2426C6.88258 15.3679 8.4087 16 10 16V16ZM9.25 12.25H10.75V13.75H9.25V12.25ZM9.25 6.25H10.75V10.75H9.25V6.25Z",fill:"currentColor"},null,-1)])],8,eY)):"alert_fill"===i.iconKey?(zd(),qd("svg",{key:81,width:i.width,height:i.height,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[75]||(t[75]=[tu("path",{d:"M8.49364 2.6216L13.9236 12.1351C13.9737 12.2228 14 12.3222 14 12.4234C14 12.5246 13.9737 12.6241 13.9236 12.7117C13.8736 12.7994 13.8017 12.8721 13.715 12.9227C13.6283 12.9734 13.5301 13 13.43 13H2.57C2.46995 13 2.37165 12.9734 2.285 12.9227C2.19835 12.8721 2.12639 12.7994 2.07636 12.7117C2.02634 12.6241 2 12.5246 2 12.4234C2 12.3222 2.02634 12.2228 2.07637 12.1351L7.50636 2.6216C7.5564 2.53395 7.62835 2.46117 7.715 2.41057C7.80165 2.35997 7.89995 2.33333 8 2.33333C8.10005 2.33333 8.19835 2.35997 8.285 2.41057C8.37165 2.46117 8.4436 2.53395 8.49364 2.6216V2.6216ZM7.42998 10.1171V11.2703H8.57002V10.1171H7.42998ZM7.42998 6.08106V8.96395H8.57002V6.08106H7.42998Z",fill:"currentColor"},null,-1)])],8,tY)):"shopping_bag_line"===i.iconKey?(zd(),qd("svg",{key:82,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[76]||(t[76]=[tu("path",{d:"M6.25 7V5.5C6.25 4.50544 6.64509 3.55161 7.34835 2.84835C8.05161 2.14509 9.00544 1.75 10 1.75C10.9946 1.75 11.9484 2.14509 12.6517 2.84835C13.3549 3.55161 13.75 4.50544 13.75 5.5V7H16C16.1989 7 16.3897 7.07902 16.5303 7.21967C16.671 7.36032 16.75 7.55109 16.75 7.75V16.75C16.75 16.9489 16.671 17.1397 16.5303 17.2803C16.3897 17.421 16.1989 17.5 16 17.5H4C3.80109 17.5 3.61032 17.421 3.46967 17.2803C3.32902 17.1397 3.25 16.9489 3.25 16.75V7.75C3.25 7.55109 3.32902 7.36032 3.46967 7.21967C3.61032 7.07902 3.80109 7 4 7H6.25ZM6.25 8.5H4.75V16H15.25V8.5H13.75V10H12.25V8.5H7.75V10H6.25V8.5ZM7.75 7H12.25V5.5C12.25 4.90326 12.0129 4.33097 11.591 3.90901C11.169 3.48705 10.5967 3.25 10 3.25C9.40326 3.25 8.83097 3.48705 8.40901 3.90901C7.98705 4.33097 7.75 4.90326 7.75 5.5V7Z",fill:"currentColor"},null,-1)])],8,iY)):"chat_off_line"===i.iconKey?(zd(),qd("svg",{key:83,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[77]||(t[77]=[tu("path",{d:"M3.106 2.04475L17.9552 16.8947L16.894 17.9552L14.188 15.2492L5.84125 15.25L2.5 17.875V4C2.5 3.8725 2.5315 3.75325 2.587 3.64825L2.04475 3.106L3.106 2.04475V2.04475ZM3.99925 5.05975L4 14.7887L5.32225 13.75H12.688L4 5.059L3.99925 5.05975ZM16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V14.3387L16 12.8387V4.75L7.90975 4.74925L6.4105 3.25H16.75Z",fill:"currentColor"},null,-1)])],8,aY)):"chat_check_line"===i.iconKey?(zd(),qd("svg",{key:84,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[78]||(t[78]=[tu("path",{d:"M5.84125 15.25L2.5 17.875V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V14.5C17.5 14.6989 17.421 14.8897 17.2803 15.0303C17.1397 15.171 16.9489 15.25 16.75 15.25H5.84125ZM5.32225 13.75H16V4.75H4V14.7887L5.32225 13.75ZM9.46975 10.0907L12.652 6.90925L13.7125 7.96975L9.46975 12.2125L6.55225 9.295L7.6135 8.2345L9.46975 10.0907V10.0907Z",fill:"currentColor"},null,-1)])],8,nY)):"camera_line"===i.iconKey?(zd(),qd("svg",{key:85,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[79]||(t[79]=[tu("path",{d:"M8.371 4.75L6.871 6.25H4V15.25H16V6.25H13.129L11.629 4.75H8.371ZM7.75 3.25H12.25L13.75 4.75H16.75C16.9489 4.75 17.1397 4.82902 17.2803 4.96967C17.421 5.11032 17.5 5.30109 17.5 5.5V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V5.5C2.5 5.30109 2.57902 5.11032 2.71967 4.96967C2.86032 4.82902 3.05109 4.75 3.25 4.75H6.25L7.75 3.25ZM10 14.5C8.90598 14.5 7.85677 14.0654 7.08318 13.2918C6.3096 12.5182 5.875 11.469 5.875 10.375C5.875 9.28098 6.3096 8.23177 7.08318 7.45818C7.85677 6.6846 8.90598 6.25 10 6.25C11.094 6.25 12.1432 6.6846 12.9168 7.45818C13.6904 8.23177 14.125 9.28098 14.125 10.375C14.125 11.469 13.6904 12.5182 12.9168 13.2918C12.1432 14.0654 11.094 14.5 10 14.5ZM10 13C10.6962 13 11.3639 12.7234 11.8562 12.2312C12.3484 11.7389 12.625 11.0712 12.625 10.375C12.625 9.67881 12.3484 9.01113 11.8562 8.51885C11.3639 8.02656 10.6962 7.75 10 7.75C9.30381 7.75 8.63613 8.02656 8.14384 8.51885C7.65156 9.01113 7.375 9.67881 7.375 10.375C7.375 11.0712 7.65156 11.7389 8.14384 12.2312C8.63613 12.7234 9.30381 13 10 13V13Z",fill:"currentColor"},null,-1)])],8,sY)):"pulse_line"===i.iconKey?(zd(),qd("svg",{key:86,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[80]||(t[80]=[tu("path",{d:"M7.75 6.5585L12.25 17.0585L14.9943 10.6543H18.25V9.1543H14.0057L12.25 13.25L7.75 2.75L5.00575 9.1543H1.75V10.6543H5.99425L7.75 6.5585Z",fill:"currentColor"},null,-1)])],8,oY)):"line_chart_line"===i.iconKey?(zd(),qd("svg",{key:87,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[81]||(t[81]=[tu("path",{d:"M4.75 3.25V15.25H16.75V16.75H3.25V3.25H4.75ZM16.2197 5.71975L17.2803 6.78025L13 11.0605L10.75 8.81125L7.53025 12.0303L6.46975 10.9697L10.75 6.6895L13 8.93875L16.2197 5.71975V5.71975Z",fill:"currentColor"},null,-1)])],8,rY)):"user_line"===i.iconKey?(zd(),qd("svg",{key:88,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[82]||(t[82]=[tu("path",{d:"M10 10.75C7.92893 10.75 6.25 9.07107 6.25 7C6.25 4.92893 7.92893 3.25 10 3.25C12.0711 3.25 13.75 4.92893 13.75 7C13.75 9.07107 12.0711 10.75 10 10.75ZM10 9.25C11.2426 9.25 12.25 8.24264 12.25 7C12.25 5.75736 11.2426 4.75 10 4.75C8.75736 4.75 7.75 5.75736 7.75 7C7.75 8.24264 8.75736 9.25 10 9.25ZM10 11.5C13.3137 11.5 16 12.9645 16 15.25V16.75H4V15.25C4 12.9645 6.68629 11.5 10 11.5ZM10 13C7.35169 13 5.5 14.0261 5.5 15.25H14.5C14.5 14.0261 12.6483 13 10 13Z",fill:"currentColor"},null,-1)])],8,lY)):"hourglass_line"===i.iconKey?(zd(),qd("svg",{key:89,width:i.width,height:i.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[83]||(t[83]=[tu("path",{d:"M5.5 2.5H14.5V4H13.75V4.86091C13.75 5.85506 13.3549 6.80828 12.6517 7.51154L11.0607 9.1025C10.9973 9.16593 10.9973 9.26407 11.0607 9.32751L12.6517 10.9185C13.3549 11.6217 13.75 12.5749 13.75 13.5691V14.5H14.5V16H5.5V14.5H6.25V13.5691C6.25 12.5749 6.64509 11.6217 7.34835 10.9185L8.93934 9.32751C9.00277 9.26407 9.00277 9.16593 8.93934 9.1025L7.34835 7.51154C6.64509 6.80828 6.25 5.85506 6.25 4.86091V4H5.5V2.5ZM7.75 4V4.86091C7.75 5.45703 7.98705 6.02893 8.40901 6.45089L10 8.04188L11.591 6.45089C12.0129 6.02893 12.25 5.45703 12.25 4.86091V4H7.75ZM10 11.958L8.40901 13.5491C7.98705 13.9711 7.75 14.543 7.75 15.1391V14.5H12.25V15.1391C12.25 14.543 12.0129 13.9711 11.591 13.5491L10 11.958Z",fill:"currentColor"},null,-1)])],8,cY)):ru("",!0)}]]),uY={name:"Ticket",components:{TicketTags:xH,IconPack:dY},props:{ticket:{type:Object,required:!0},showCheckbox:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},assetUrl:{type:String,default:"/wp-content/plugins/fluent-support-dev/assets/"}},methods:{handleTicketClick(){this.$emit("ticket-click",this.ticket,event)},handleSelection(e){this.$emit("ticket-select",this.ticket.id,e)}}},pY={class:"fs_ticket_title_row"},hY={class:"fs_ticket_title"},fY={key:1,class:"fs_ticket_author"},gY={class:"fs_ticket_id"},mY={key:2,class:"fs_status_dot fs_status_dot_new"},_Y={class:"fs_ticket_source"},vY=["src","alt"],bY={key:1,class:"fs_ticket_source_text"},yY={class:"fs_ticket_meta_row"},xY={class:"fs_ticket_meta_left"},SY={class:"fs_priority_indicator"},wY={class:"fs_priority_text"},CY={class:"fs_waiting_time"},EY={class:"fs_waiting_text"},kY={class:"fs_ticket_meta_right"};const TY=lH(uY,[["render",function(e,t,i,a,n,s){const o=AR,r=ZC,l=Jl("IconPack"),c=Jl("ticket-tags");return zd(),qd("div",{class:"fs_ticket_item",onClick:t[2]||(t[2]=(...e)=>s.handleTicketClick&&s.handleTicketClick(...e)),style:{cursor:"pointer"}},[tu("div",pY,[i.showCheckbox?(zd(),Kd(o,{key:0,onClick:t[0]||(t[0]=Ah(()=>{},["stop"])),"model-value":i.isSelected,onChange:s.handleSelection,class:"fs_ticket_checkbox"},null,8,["model-value","onChange"])):ru("",!0),tu("h3",hY,me(i.ticket.title),1),i.ticket.customer?(zd(),qd("span",fY,"by "+me(i.ticket.customer.first_name||i.ticket.customer.email),1)):ru("",!0),tu("span",gY,"#"+me(i.ticket.id),1),"new"===i.ticket.status?(zd(),qd("span",mY)):ru("",!0),i.ticket.source?(zd(),Kd(r,{key:3,effect:"dark",content:e.ucFirst(i.ticket.source),placement:"top"},{default:vr(()=>[tu("span",_Y,[e.$getSourceIcon(i.ticket.source)?(zd(),qd("img",{key:0,src:e.$getSourceIcon(i.ticket.source),alt:e.ucFirst(i.ticket.source)},null,8,vY)):(zd(),qd("span",bY,me(e.ucFirst(i.ticket.source)),1))])],void 0),_:1},8,["content"])):ru("",!0)]),tu("div",yY,[tu("div",xY,["new"!==i.ticket.status?(zd(),Kd(r,{key:0,effect:"dark",content:e.$t("Status")+": "+(e.appVars.ticket_statuses[i.ticket.status]||i.ticket.status),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",{class:se(["fs_status_badge",`fs_status_${(i.ticket.status||"").toLowerCase()}`])},me(e.appVars.ticket_statuses[i.ticket.status]||i.ticket.status),3)],void 0),_:1},8,["content"])):ru("",!0),i.ticket.client_priority?(zd(),Kd(r,{key:1,effect:"dark",content:e.$t("Client Priority")+": "+(e.appVars.client_priorities[i.ticket.client_priority]||i.ticket.client_priority),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",SY,[tu("span",{class:se(["fs_priority_dot",`fs_priority_dot_${(i.ticket.client_priority||"normal").toLowerCase()}`])},null,2),tu("span",wY,me(e.appVars.client_priorities[i.ticket.client_priority]||i.ticket.client_priority),1)])],void 0),_:1},8,["content"])):ru("",!0),i.ticket.waiting_since?(zd(),Kd(r,{key:2,effect:"dark",content:e.$t("Waiting Time")+": "+i.ticket.waiting_since,placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",CY,[iu(l,{iconKey:"clock",width:16,height:16}),tu("span",EY,me(e.$timeDiff(i.ticket.waiting_since)),1)])],void 0),_:1},8,["content"])):ru("",!0)]),tu("div",kY,[i.ticket.tags&&i.ticket.tags.length?(zd(),Kd(c,{key:0,tags:i.ticket.tags,ticket_id:i.ticket.id,mode:"ticket_list",class:"fs_ticket_tags",onClick:t[1]||(t[1]=Ah(()=>{},["stop"]))},null,8,["tags","ticket_id"])):ru("",!0)])])])}]]),AY={class:"fs_all_tickets"},RY={key:0,class:"fs_box_body"},IY={class:"fs_tickets_list"},DY={key:0,class:"fs_ticket_divider"},OY={key:1,class:"fs_no_book_tk"},MY={key:2,class:"fs_stats_info"},NY={class:"fs_stat_helper"};const LY=lH({name:"SuggestedTicket",components:{DashboardTicket:TY},props:{component_data:{type:Object,default:()=>({})}},emits:["navigate-to-ticket"],methods:{navigateToTicket(e){this.$emit("navigate-to-ticket",e)}}},[["render",function(e,t,i,a,n,s){const o=Jl("DashboardTicket");return zd(),qd("div",AY,[i.component_data.suggested_tickets.length?(zd(),qd("div",RY,[tu("div",IY,[(zd(!0),qd(Fd,null,sc(i.component_data.suggested_tickets,(e,t)=>(zd(),qd(Fd,{key:e.id},[iu(o,{ticket:e,"show-checkbox":!1,onTicketClick:s.navigateToTicket},null,8,["ticket","onTicketClick"]),t<i.component_data.suggested_tickets.length-1?(zd(),qd("div",DY)):ru("",!0)],64))),128))])])):(zd(),qd("div",OY,[tu("span",null,[su(me(e.$t("dashboard_all_catch_up"))+" ",1),tu("b",null,me(e.$t("Good Job"))+", "+me(e.appVars.me.full_name)+"!",1)])])),i.component_data.overall_stats?(zd(),qd("div",MY,[tu("p",NY,[tu("span",null,me(i.component_data.overall_stats.waiting_tickets)+" "+me(e.$t("tickets")),1),su(" "+me(e.$t("are waiting for reply with"))+" ",1),tu("span",null,me(e.$t("average"))+" "+me(i.component_data.overall_stats.average_waiting)+" "+me(e.$t("wait time")),1),su(" & "+me(e.$t("max wait time"))+" ",1),tu("span",null,me(i.component_data.overall_stats.max_waiting),1)])])):ru("",!0)])}]]),PY={key:0,class:"fs_all_tickets"},FY={key:0,class:"fs_box_body"},BY={class:"fs_tickets_list"},$Y={key:0,class:"fs_ticket_divider"},VY={key:1,class:"fs_no_book_tk"},UY={key:1,class:"fs_all_tickets"},HY={class:"fs_no_book_tk"},zY=["href"];const YY=lH({name:"MentionedTicket",components:{DashboardTicket:TY},props:{component_data:{type:Array,default:()=>[]}},emits:["navigate-to-ticket"],computed:{upgradeUrl(){return this.$upgradeUrl("feature_lock_bookmarked_tickets")}},methods:{navigateToTicket(e){this.$emit("navigate-to-ticket",e)}}},[["render",function(e,t,i,a,n,s){const o=Jl("DashboardTicket");return e.has_pro?(zd(),qd("div",PY,[i.component_data.length?(zd(),qd("div",FY,[tu("div",BY,[(zd(!0),qd(Fd,null,sc(i.component_data,(e,t)=>(zd(),qd(Fd,{key:e.id},[iu(o,{ticket:e,"show-checkbox":!1,onTicketClick:s.navigateToTicket},null,8,["ticket","onTicketClick"]),t<i.component_data.length-1?(zd(),qd("div",$Y)):ru("",!0)],64))),128))])])):(zd(),qd("div",VY,[tu("span",null,me(e.$t("no_bookmarked_ticket")),1)]))])):(zd(),qd("div",UY,[tu("div",HY,[tu("span",null,[su(me(e.$t("bookmarked_ticket_pro_feature"))+" ",1),tu("a",{href:s.upgradeUrl,target:"_blank",rel:"noopener noreferrer"},me(e.$t("upgrade_now")),9,zY)])])]))}]]),GY={class:"fs_tickets_by_product"},WY={key:0,class:"fs_product_grid"},jY={class:"fs_product_label"},qY={class:"fs_product_count"},KY={key:1,class:"fs_no_products"};const XY=lH({name:"TicketsByProduct",props:{component_data:{type:Object,default:()=>({})}},computed:{hasData(){return this.component_data&&"object"==typeof this.component_data&&Object.keys(this.component_data).length>0}}},[["render",function(e,t,i,a,n,s){return zd(),qd("div",GY,[s.hasData?(zd(),qd("div",WY,[(zd(!0),qd(Fd,null,sc(i.component_data,(e,t)=>(zd(),qd("div",{key:t,class:"fs_product_item"},[tu("p",jY,me(e.title),1),tu("p",qY,me(e.count),1)]))),128))])):(zd(),qd("div",KY,[tu("span",null,me(e.$t("No product data available")),1)]))])}]]),ZY={name:"AgentPerformance",components:{IconPack:dY},data:()=>({fetching:!1,todayStats:[]}),methods:{async fetchAgentPerformance(){this.fetching=!0;try{const e=await this.$get("tickets/agent_performance");this.todayStats=e.agent_today_stats}catch(e){this.$handleError(e)}finally{this.fetching=!1}},getDefaultAvatar:e=>`https://ui-avatars.com/api/?name=${encodeURIComponent(e)}&size=40&background=f0f0f0&color=525866&font-size=0.33`,formatWaitingTime:e=>0===e?"0 days":1===e?"1 day":`${e} days`},mounted(){this.fetchAgentPerformance()}},QY={key:0,class:"fs_box_body"},JY={class:"fs_agent_performance_list"},eG={class:"fs_agent_info_row"},tG={class:"fs_agent_info"},iG={class:"fs_agent_avatar"},aG=["src","alt"],nG={class:"fs_agent_details"},sG={class:"fs_agent_name"},oG={class:"fs_agent_email"},rG={class:"fs_agent_stats_column"},lG={class:"fs_closed_badge"},cG={class:"fs_agent_stats_row"},dG={class:"fs_agent_stat"},uG={class:"fs_agent_stat"},pG={key:0,class:"fs_agent_divider"},hG={key:1,class:"fs_no_agents_data"};const fG={name:"DashboardDraggableContent",components:{draggable:rH,SuggestedTicket:LY,MentionedTicket:YY,TicketsByProduct:XY,AgentPerformance:lH(ZY,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack");return n.todayStats.length?(zd(),qd("div",QY,[tu("div",JY,[(zd(!0),qd(Fd,null,sc(n.todayStats,(e,t)=>(zd(),qd("div",{key:e.agent_id,class:"fs_agent_performance_item"},[tu("div",eG,[tu("div",tG,[tu("div",iG,[tu("img",{src:e.avatar||s.getDefaultAvatar(e.agent_name),alt:e.agent_name,class:"fs_avatar_image"},null,8,aG)]),tu("div",nG,[tu("p",sG,me(e.agent_name.trim().length>0?e.agent_name:"No name"),1),tu("p",oG,me(e.agent_email||"agent@example.com"),1)])]),tu("div",rG,[tu("div",lG,[iu(o,{"icon-key":"closed_tickets"}),tu("span",null,"Closed "+me(e.stats.closed_tickets.count)+" tickets",1)]),tu("div",cG,[tu("div",dG,[iu(o,{iconKey:"clock",width:16,height:16,class:"fs_meta_icon"}),tu("span",null,me(s.formatWaitingTime(e.stats.waiting_today.count)),1)]),tu("div",uG,[iu(o,{iconKey:"responses",width:16,height:16,class:"fs_meta_icon"}),tu("span",null,me(e.stats.responses.count)+" responses",1)])])])]),t<n.todayStats.length-1?(zd(),qd("div",pG)):ru("",!0)]))),128))])])):(zd(),qd("div",hG,[tu("span",null,me(e.$t("No agent performance data available")),1)]))}]]),IconPack:dY},props:{loading:{type:Boolean,required:!0},dashboard_notice:{type:String,default:""},dashboard_param:{type:Object,required:!0},active_names:{type:Object,required:!0},total_data:{type:Object,required:!0}},emits:["change"],methods:{handleChange(){this.$emit("change")},navigateToTicket(e){this.$router.push({name:"view_ticket",params:{ticket_id:e.id}})}}},gG={key:0,class:"dashboard fs_box_wrapper"},mG={key:0,class:"draggable"},_G={class:"draggable_component"},vG={class:"fs_component_header fs_label_medium fs_dashboard_component_header"},bG={key:0,class:"draggable"},yG={class:"draggable_component"},xG={class:"fs_component_header"},SG={key:1,class:"fs_padded_20"},wG={class:"fs_component_skeleton"},CG={class:"fs_component_skeleton"};const EG=lH(fG,[["render",function(e,t,i,a,n,s){const o=AI,r=TI,l=Jl("draggable"),c=hI,d=pI,u=AL;return i.loading?(zd(),qd("div",SG,[iu(d,{gutter:20},{default:vr(()=>[iu(c,{span:12},{default:vr(()=>[tu("div",wG,[iu(u,{rows:6,animated:""})])],void 0),_:1}),iu(c,{span:12},{default:vr(()=>[tu("div",CG,[iu(u,{rows:6,animated:""})])],void 0),_:1})],void 0),_:1})])):(zd(),qd("div",gG,[iu(d,{gutter:20},{default:vr(()=>[iu(c,{span:12},{default:vr(()=>[iu(l,{modelValue:i.dashboard_param.first_column,"onUpdate:modelValue":t[0]||(t[0]=e=>i.dashboard_param.first_column=e),"ghost-class":"ghost",group:"dashboard_component","item-key":"id",handle:".fs_component_header"},oc({_:2},[i.loading?void 0:{name:"item",fn:vr(({element:e})=>[e.show?(zd(),qd("div",mG,[tu("div",_G,[iu(r,{modelValue:i.active_names[e.active_names],"onUpdate:modelValue":t=>i.active_names[e.active_names]=t,onChange:s.handleChange},{default:vr(()=>[iu(o,{name:e.active_names,class:"fs_box_board"},{title:vr(()=>[tu("div",vG,me(e.heading),1)]),default:vr(()=>[(zd(),Kd(tc(e.component),{component_data:i.total_data[e.component],onNavigateToTicket:s.navigateToTicket},null,40,["component_data","onNavigateToTicket"]))],void 0),_:2},1032,["name"])],void 0),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):ru("",!0)]),key:"0"}]),1032,["modelValue"])],void 0),_:1}),iu(c,{span:12},{default:vr(()=>[iu(l,{modelValue:i.dashboard_param.second_column,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dashboard_param.second_column=e),"ghost-class":"ghost",group:"dashboard_component","item-key":"id",handle:".fs_component_header"},{item:vr(({element:e})=>[e.show?(zd(),qd("div",bG,[tu("div",yG,[iu(r,{modelValue:i.active_names[e.active_names],"onUpdate:modelValue":t=>i.active_names[e.active_names]=t,onChange:s.handleChange},{default:vr(()=>[iu(o,{name:e.active_names,class:"fs_box_board"},{title:vr(()=>[tu("div",xG,me(e.heading),1)]),default:vr(()=>[(zd(),Kd(tc(e.component),{component_data:i.total_data[e.component],onNavigateToTicket:s.navigateToTicket},null,40,["component_data","onNavigateToTicket"]))],void 0),_:2},1032,["name"])],void 0),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):ru("",!0)]),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1})]))}]]),kG={class:"fs_dashboard_statistics"},TG={class:"fs_stats_grid"},AG={class:"fs_stat_icon"},RG={class:"fs_stat_content"},IG={class:"fs_stat_label"},DG={class:"fs_stat_number"};const OG=lH({name:"DashboardStatistics",components:{IconPack:dY},props:{stats:{type:Object,default:()=>({})}},methods:{getIconKey:e=>({new_tickets:"new_tickets",open_tickets:"open_tickets",active_tickets:"open_tickets",closed_tickets:"closed_tickets",active_agents:"active_agents",responses:"responses",interactions:"interactions",unassigned_tickets:"unassigned_tickets"}[e]||"new_tickets")}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack");return zd(),qd("div",kG,[tu("div",TG,[(zd(!0),qd(Fd,null,sc(i.stats,(e,t)=>(zd(),qd("div",{key:t,class:"fs_stat_card"},[tu("div",AG,[iu(o,{iconKey:s.getIconKey(t),width:24,height:24},null,8,["iconKey"])]),tu("div",RG,[tu("p",IG,me(e.title),1),tu("p",DG,me(e.count),1)])]))),128))])])}]]),MG={name:"DashboardSettingsDrawer",components:{Close:Lx,Search:CS,Plus:vS,Check:Ix,Message:dS,Star:IS,DataAnalysis:Ux,Box:xx,User:VS,IconPack:dY},props:{modelValue:{type:Boolean,default:!1},dashboardParam:{type:Object,required:!0}},emits:["update:modelValue","close","widget-toggled"],data:()=>({searchQuery:"",greetingImage:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjQiIGN5PSIyNCIgcj0iMjQiIGZpbGw9IiNFMUU0RUEiLz4KPHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHlsZT0idHJhbnNmb3JtOiB0cmFuc2xhdGUoMTJweCwgMTJweCk7Ij4KPHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyQzIgMTcuNTIgNi40OCAyMiAxMiAyMkMxNy41MiAyMiAyMiAxNy41MiAyMiAxMkMyMiA2LjQ4IDE3LjUyIDIgMTIgMloiIGZpbGw9IiM5OUEwQUUiLz4KPC9zdmc+Cjwvc3ZnPgo="}),computed:{isOpen:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},isGreetingVisible(){return!this.searchQuery||this.$t("Greeting Message").toLowerCase().includes(this.searchQuery.toLowerCase())}},methods:{handleClose(){this.$emit("close"),this.isOpen=!1},toggleWidget(e,t="greeting"){"greeting"===t?this.dashboardParam.greetingMessage=!this.dashboardParam.greetingMessage:e.show=!e.show,this.$emit("widget-toggled",{widget:e,type:t})},getWidgetIcon:e=>({MentionedTicket:"Star",SuggestedTicket:"Lightbulb",TicketsByProduct:"Box",AgentPerformance:"User",TicketStatistics:"DataAnalysis"}[e]||"Star"),getWidgetDisplayName:e=>({MentionedTicket:"Bookmarked Tickets",SuggestedTicket:"Suggested Tickets",TicketsByProduct:"Tickets by Products",AgentPerformance:"Agent Performance",TicketStatistics:"Tickets Statistic"}[e]||e),isWidgetVisible(e){if(!this.searchQuery)return!0;const t=this.getWidgetDisplayName(e.component);return this.$t(t).toLowerCase().includes(this.searchQuery.toLowerCase())}}},NG={class:"fs_drawer_header"},LG={class:"fs_drawer_header_content"},PG={class:"fs_drawer_title"},FG={class:"fs_drawer_search"},BG={class:"fs_drawer_content"},$G={class:"fs_widget_header"},VG={class:"fs_widget_info"},UG={class:"fs_widget_title"},HG={class:"fs_widget_preview"},zG={class:"fs_widget_skeleton"},YG=["src"];const GG={name:"DynamicDashboard",components:{DashboardDraggableContent:EG,DashboardStatistics:OG,DashboardSettingsDrawer:lH(MG,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=Sk,l=cE,c=Jl("Check"),d=Jl("Plus"),u=KS,p=bM;return zd(),Kd(p,{class:"fs_dashboard_settings",modelValue:s.isOpen,"onUpdate:modelValue":t[1]||(t[1]=e=>s.isOpen=e),"with-header":!1,size:"400px"},{default:vr(()=>[tu("div",NG,[tu("div",LG,[tu("div",PG,[tu("h2",null,me(e.$t("All Widgets")),1)]),iu(r,{class:"fs_drawer_close_btn",onClick:s.handleClose,text:"",circle:""},{default:vr(()=>[iu(o,{"icon-key":"close"})],void 0),_:1},8,["onClick"])])]),tu("div",FG,[iu(l,{modelValue:n.searchQuery,"onUpdate:modelValue":t[0]||(t[0]=e=>n.searchQuery=e),class:"fs_text_input",placeholder:e.$t("Search Widget..."),clearable:""},{prefix:vr(()=>[iu(o,{"icon-key":"search",class:"fs_search_icon"})]),_:1},8,["modelValue","placeholder"])]),tu("div",BG,[(zd(!0),qd(Fd,null,sc(i.dashboardParam,t=>(zd(),qd(Fd,{key:t},[(zd(!0),qd(Fd,null,sc(t,t=>br((zd(),qd("div",{key:t.id,class:"fs_widget_card"},[tu("div",$G,[tu("div",VG,[iu(o,{"icon-key":t.icon,class:"fs_widget_icon"},null,8,["icon-key"]),tu("span",UG,me(e.$t(s.getWidgetDisplayName(t.component))),1)]),iu(r,{class:se(["fs_widget_action_btn",{added:t.show}]),onClick:e=>s.toggleWidget(t,"component"),size:"small"},{default:vr(()=>[iu(u,null,{default:vr(()=>[t.show?(zd(),Kd(c,{key:0})):(zd(),Kd(d,{key:1}))],void 0),_:2},1024),tu("span",null,me(t.show?e.$t("Added"):e.$t("Add to home")),1)],void 0),_:2},1032,["class","onClick"])]),tu("div",HG,[tu("div",zG,[tu("img",{src:e.appVars.asset_url+t.image,class:"fs_widget_preview_image"},null,8,YG)])])])),[[yp,s.isWidgetVisible(t)]])),128))],64))),128))])],void 0),_:1},8,["modelValue"])}]])},data(){return{drawer:!1,me:this.appVars.me,can_access_unassigned_tickets:!1,loading:!1,dashboard_notice:"",total_data:{MentionedTicket:{},TicketStatistics:{stats:{},individual_stat:{}},SuggestedTicket:{suggested_tickets:[],overall_stats:{}},TicketsByProduct:{},AgentPerformance:{}},dashboard_param:{},dashboard_settings_data:{first_column:[{id:1,component:"MentionedTicket",icon:"bookmark",show:!0,heading:this.$t("Your Bookmarked Tickets"),active_names:"mentionedTicket",image:"/images/dashboard_drawer_bookmark.png"},{id:4,component:"TicketsByProduct",show:!0,icon:"box",heading:this.$t("active_tickets_by_products"),active_names:"ticketsByProduct",image:"/images/dashboard_drawer_product_wise_tickets.png"}],second_column:[{id:3,component:"SuggestedTicket",show:!0,icon:"lightbulb",heading:this.$t("Here Are A Few Tickets You May Want To Take A Look At"),active_names:"suggestedTicket",image:"/images/dashboard_drawer_suggested_tickets.png"},{id:5,component:"AgentPerformance",icon:"user_avatar",show:this.appVars.me.permissions.includes("fst_agent_today_performance"),heading:this.$t("Agent Performance (Today)"),active_names:"agentPerformance",image:"/images/dashboard_drawer_agent_performance.png"}],greetingMessage:!0},settings_data:{},app_ready:!1,active_names:{},default_active_names:{mentionedTicket:["mentionedTicket"],suggestedTicket:["suggestedTicket"],ticketsByProduct:["ticketsByProduct"],agentPerformance:["agentPerformance"]}}},computed:{canManageSettings(){return this.appVars.me.permissions.includes("fst_manage_settings")},greetingTime(){const e=this.$dayjs();let t=null;if(!e||!e.isValid())return;const i=parseFloat(e.format("HH"));return t=i>=12&&i<=17?this.$t("afternoon"):i>=17?this.$t("evening"):this.$t("morning"),t}},watch:{dashboard_param:{handler(e,t){this.$saveData("dashboard_settings_data",e),this.$saveData("prev_dashboard_default_settings",this.dashboard_settings_data)},deep:!0}},mounted(){!this.appVars.has_mailboxes&&this.canManageSettings&&this.$router.push({name:"setup",query:{t:Date.now()}}),this.can_access_unassigned_tickets=this.appVars.me.permissions.indexOf("fst_manage_unassigned_tickets")>-1,this.migrateDashboardSettings(),this.fetchStat(),this.getDashboardSettings(),this.getComponentState(),jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()},methods:{migrateDashboardSettings(){var e,t;if(this.$getData("dashboard_migration_v2_done"))return;const i=this.$getData("dashboard_settings_data");if(!i)return void this.$saveData("dashboard_migration_v2_done",!0);const a=null==(e=i.first_column)?void 0:e.some(e=>"TicketStatistics"===e.component),n=null==(t=i.second_column)?void 0:t.some(e=>"TicketStatistics"===e.component);if(a||n){const e={first_column:(i.first_column||[]).filter(e=>"TicketStatistics"!==e.component),second_column:(i.second_column||[]).filter(e=>"TicketStatistics"!==e.component),greetingMessage:!1!==i.greetingMessage};e.first_column=e.first_column.map(e=>({...e,icon:e.icon||this.getIconForComponent(e.component),image:e.image||this.getImageForComponent(e.component)})),e.second_column=e.second_column.map(e=>({...e,icon:e.icon||this.getIconForComponent(e.component),image:e.image||this.getImageForComponent(e.component)})),e.first_column.forEach((e,t)=>{e.id=t+1}),e.second_column.forEach((t,i)=>{t.id=e.first_column.length+i+1}),this.$saveData("dashboard_settings_data",e),this.$saveData("prev_dashboard_default_settings",this.dashboard_settings_data);const t=this.$getData("component_collapse_data");t&&t.ticketStatistics&&(delete t.ticketStatistics,this.$saveData("component_collapse_data",t))}this.$saveData("dashboard_migration_v2_done",!0)},getIconForComponent:e=>({MentionedTicket:"bookmark",SuggestedTicket:"lightbulb",TicketsByProduct:"box",AgentPerformance:"user_avatar"}[e]||"box"),getImageForComponent:e=>({MentionedTicket:"/images/dashboard_drawer_bookmark.png",SuggestedTicket:"/images/dashboard_drawer_suggested_tickets.png",TicketsByProduct:"/images/dashboard_drawer_product_wise_tickets.png",AgentPerformance:"/images/dashboard_drawer_agent_performance.png"}[e]||"/images/dashboard_drawer_bookmark.png"),handleChange(){this.$saveData("component_collapse_data",this.active_names)},defalutSettings(){this.$saveData("dashboard_settings_data",this.dashboard_settings_data),this.$saveData("component_collapse_data",this.default_active_names),this.getComponentState(),this.getDashboardSettings()},cancelClick(){this.drawer=!1},handleWidgetToggle(e){this.$saveData("dashboard_settings_data",this.dashboard_param)},checkMove(e){window.console.log("Future index: "+e.draggedContext.futureIndex)},getComponentState(){let e=this.$getData("component_collapse_data");this.active_names=e||this.default_active_names},getDashboardSettings(){let e=this.$getData("prev_dashboard_default_settings");this.settings_data=this.$getData("dashboard_settings_data"),JSON.stringify(e)===JSON.stringify(this.dashboard_settings_data)?this.dashboard_param=this.settings_data:(this.$saveData("prev_dashboard_default_settings",this.dashboard_settings_data),this.dashboard_param=this.$getData("prev_dashboard_default_settings"))},fetchStat(){this.loading=!0;let e=["suggested_tickets","overall_stats","individual_stat","ticket_to_watch","tickets_by_products"];this.appVars.me.permissions.includes("fst_agent_today_performance")&&e.push("agent_today_stats"),this.$get("tickets/my_stats",{with:e}).then(e=>{this.dashboard_notice=e.dashboard_notice,this.total_data.MentionedTicket=e.ticket_to_watch,this.total_data.SuggestedTicket.suggested_tickets=e.suggested_tickets,this.total_data.SuggestedTicket.overall_stats=e.overall_stats,this.total_data.TicketStatistics.stats=e.stats,this.total_data.TicketStatistics.individual_stat=e.individual_stat,this.total_data.TicketsByProduct=e.tickets_by_product,e.agent_today_stats&&(this.total_data.AgentPerformance=e.agent_today_stats),this.app_ready=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},WG={class:"fs_box_wrapper"},jG={class:"fs_dashboard_wrapper"},qG=["innerHTML"],KG={class:"fs_head_section"},XG={class:"fs_user_greetings_section"},ZG={class:"fs_greetings_content"},QG={class:"fs_user_avatar"},JG=["src","alt"],eW={class:"fs_greetings_text"},tW={class:"fs_greeting_main"},iW={class:"fs_page_title fs_page_title_secondary_color"},aW={class:"fs_page_title"},nW={class:"fs_page_subtitle"},sW={class:"fs_button_group"},oW={class:"fs_button_group_inner"};const rW=lH(GG,[["render",function(e,t,i,a,n,s){const o=Jl("DashboardStatistics"),r=Jl("DashboardDraggableContent"),l=Jl("DashboardSettingsDrawer");return zd(),qd("div",WG,[tu("div",jG,[tu("div",{innerHTML:n.dashboard_notice},null,8,qG),tu("div",KG,[tu("div",XG,[tu("div",ZG,[tu("div",QG,[tu("img",{src:n.me.photo,alt:n.me.full_name},null,8,JG)]),tu("div",eW,[tu("h1",tW,[tu("span",iW,me(e.$t("Good"))+" "+me(s.greetingTime),1),tu("span",aW,", "+me(n.me.full_name)+" 👋🏻",1)]),tu("p",nW,me(e.$t("Welcome back to Fluent Support")),1)])])]),t[5]||(t[5]=tu("div",null,null,-1)),tu("div",sW,[tu("div",oW,[tu("button",{onClick:t[0]||(t[0]=e=>n.drawer=!0),class:"fs_settings_button"},[...t[3]||(t[3]=[tu("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M3.26954 5.72492C3.38204 5.48742 3.51329 5.26242 3.66329 5.04367L3.63829 3.41867C3.63829 3.26867 3.70079 3.12492 3.81954 3.02492C4.40079 2.53742 5.06329 2.14367 5.79454 1.88117C5.93829 1.83117 6.09454 1.84367 6.21954 1.92492L7.61329 2.76242C7.87579 2.74367 8.13829 2.74367 8.40079 2.76242L9.79454 1.92492C9.92579 1.84992 10.082 1.83117 10.2258 1.88117C10.9383 2.13742 11.607 2.51867 12.2008 3.01867C12.3133 3.11242 12.382 3.26242 12.3758 3.41242L12.3508 5.03742C12.5008 5.25617 12.632 5.48117 12.7445 5.71867L14.1633 6.50617C14.2945 6.58117 14.3883 6.70617 14.4133 6.85617C14.5445 7.59992 14.5508 8.37492 14.4133 9.13117C14.3883 9.28117 14.2945 9.40617 14.1633 9.48117L12.7445 10.2687C12.632 10.5062 12.5008 10.7312 12.3508 10.9499L12.3758 12.5749C12.3758 12.7249 12.3133 12.8687 12.1945 12.9687C11.6133 13.4562 10.9508 13.8499 10.2195 14.1124C10.0758 14.1624 9.91954 14.1499 9.79454 14.0687L8.40079 13.2312C8.13829 13.2499 7.87579 13.2499 7.61329 13.2312L6.21954 14.0687C6.08829 14.1437 5.93204 14.1624 5.78829 14.1124C5.07579 13.8562 4.40704 13.4749 3.81329 12.9749C3.70079 12.8812 3.63204 12.7312 3.63829 12.5812L3.66329 10.9562C3.51329 10.7374 3.38204 10.5124 3.26954 10.2749L1.85079 9.48742C1.71954 9.41242 1.62579 9.28742 1.60079 9.13742C1.46954 8.39367 1.46329 7.61867 1.60079 6.86242C1.62579 6.71242 1.71954 6.58742 1.85079 6.51242L3.26954 5.72492Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),tu("path",{d:"M8.00073 10.9999C9.65759 10.9999 11.0007 9.65679 11.0007 7.99994C11.0007 6.34308 9.65759 4.99994 8.00073 4.99994C6.34388 4.99994 5.00073 6.34308 5.00073 7.99994C5.00073 9.65679 6.34388 10.9999 8.00073 10.9999Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),tu("button",{class:"fs_refresh_button",onClick:t[1]||(t[1]=e=>s.defalutSettings())},[t[4]||(t[4]=tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),tu("span",null,me(e.$t("Reset")),1)])])])]),iu(o,{stats:n.total_data.TicketStatistics.stats},null,8,["stats"]),iu(r,{loading:n.loading,dashboard_notice:n.dashboard_notice,dashboard_param:n.dashboard_param,active_names:n.active_names,total_data:n.total_data,onChange:s.handleChange},null,8,["loading","dashboard_notice","dashboard_param","active_names","total_data","onChange"]),iu(l,{modelValue:n.drawer,"onUpdate:modelValue":t[2]||(t[2]=e=>n.drawer=e),"dashboard-param":n.dashboard_param,onClose:s.cancelClick,onWidgetToggled:s.handleWidgetToggle},null,8,["modelValue","dashboard-param","onClose","onWidgetToggled"])])])}]]),lW={class:"fs_logo_section"},cW={class:"fs_brand_logo"},dW=["src"];const uW={class:"fs_setup"},pW={class:"fs_box_wrapper"},hW={class:"fs_card fs_table_container"},fW={class:"fs_table_wrapper"},gW={class:"fs_setup_header"},mW={class:"fs_header_content"},_W={class:"fs_step_indicator"},vW={class:"fs_setup_content"},bW={class:"fs_welcome_section"},yW={class:"fs_welcome_title"},xW={class:"fs_welcome_subtitle"},SW={class:"fs_form_section"},wW={style:{float:"left"}},CW={style:{float:"right",color:"#8492a6","font-size":"13px"}},EW={class:"fs_shortcode_info"},kW={class:"fs_shortcode_text"},TW={class:"fs_setup_header"},AW={class:"fs_header_content"},RW={class:"fs_step_indicator"},IW={class:"fs_setup_content"},DW={class:"fs_welcome_section"},OW={class:"fs_welcome_title"},MW={class:"fs_welcome_subtitle"},NW={class:"fs_form_section fs_maintenance_form"},LW={class:"fs_newsletter_section"},PW={class:"fs_section_header"},FW={class:"fs_section_title"},BW={class:"fs_section_subtitle"},$W={class:"fs_input_group"},VW={class:"fs_essentials_section"},UW={class:"fs_section_header"},HW={class:"fs_section_title"},zW={class:"fs_section_subtitle"},YW={class:"fs_checkbox_group"},GW={key:0,class:"fs_essential_details"},WW={key:0},jW={class:"fs_setup_header"},qW={class:"fs_header_content"},KW={class:"fs_step_indicator"},XW={class:"fs_setup_content"},ZW={class:"fs_welcome_section"},QW={class:"fs_welcome_title"},JW={class:"fs_welcome_subtitle"},ej={class:"fs_form_section fs_completion_section"},tj={class:"fs_section_header"},ij={class:"fs_section_title"},aj={class:"fs_section_subtitle"},nj={class:"fs_quick_actions_grid"},sj={class:"fs_action_icon"},oj={class:"fs_action_content"},rj={class:"fs_action_title"},lj={class:"fs_action_description"},cj={class:"fs_action_arrow"},dj={class:"fs_action_icon"},uj={class:"fs_action_content"},pj={class:"fs_action_title"},hj={class:"fs_action_description"},fj={class:"fs_action_arrow"},gj={class:"fs_action_icon"},mj={class:"fs_action_content"},_j={class:"fs_action_title"},vj={class:"fs_action_description"},bj={class:"fs_action_arrow"},yj={class:"fs_action_icon"},xj={class:"fs_action_content"},Sj={class:"fs_action_title"},wj={class:"fs_action_description"},Cj={class:"fs_action_arrow"},Ej={class:"fs_sticky_footer"},kj={class:"fs_footer_content"},Tj={class:"fs_help_section"},Aj={class:"fs_help_text"},Rj={href:"https://fluentsupport.com/docs/",target:"_blank",rel:"noopener noreferrer",class:"fs_doc_link"},Ij={key:0,class:"fs_footer_actions"},Dj={key:1,class:"fs_footer_actions"},Oj={key:2,class:"fs_footer_actions"},Mj={class:"fs_dialog_footer"};const Nj=lH({name:"FluentSupportSetup",components:{BrandLogo:lH({name:"BrandLogo",props:{assetUrl:{type:String,required:!0}},data:()=>({isDark:document.body.classList.contains("fs-dark-mode")}),computed:{logoSrc(){const e=this.isDark?"dashboard_onboarding_logo_dark.png":"dashboard_onboarding_logo.png";return this.assetUrl+"images/"+e}},mounted(){this.observer=new MutationObserver(()=>{this.isDark=document.body.classList.contains("fs-dark-mode")}),this.observer.observe(document.body,{attributes:!0,attributeFilter:["class"]})},beforeUnmount(){this.observer&&this.observer.disconnect()}},[["render",function(e,t,i,a,n,s){return zd(),qd("div",lW,[tu("span",cW,[tu("img",{src:s.logoSrc},null,8,dW)])])}]])},data:()=>({global_settings:{portal_page_id:"",create_portal_page:"no"},mailbox:{name:"",email:"",box_type:"web",is_default:"yes"},created_box:{},step:"mailbox",pages:[],loading_pages:!1,saving:!1,has_fluentform:!1,install_fluentforms:"no",share_essentials:"no",show_essential:!1,email_address:"",show_essential_modal:!1}),computed:{canManageSettings(){return this.appVars.me.permissions.includes("fst_manage_settings")}},methods:{fetchPages(){this.loading_pages=!0,this.$get("settings/pages").then(e=>{this.pages=e.pages}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading_pages=!1})},completeSetup(){this.saving=!0,this.$post("settings/setup",{mailbox:this.mailbox,global_settings:this.global_settings}).then(e=>{this.created_box=e.mailbox,this.appVars.mailboxes=e.mailboxes,this.appVars.has_mailboxes=!0,this.has_fluentform=e.has_fluentform,this.step="maintenance"}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},handleDataShare(e){this.share_essentials=e,this.show_essential_modal=!1,this.completeTrack(!0)},completeTrack(e=!1){"yes"===this.share_essentials||e?(this.saving=!0,this.$post("settings/setup-installation",{install_fluentform:this.install_fluentforms,share_essentials:this.share_essentials,optin_email:this.email_address}).then(e=>{this.$notify({type:"success",title:this.$t("Great!"),message:e.message,offset:19})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1,this.step="completed"})):this.show_essential_modal=!0},showNavbar(){const e=document.querySelector(".fs_main_navbar");e&&e.style.removeProperty("display")},hideNavbar(){const e=document.querySelector(".fs_main_navbar");e&&(e.style.display="none")}},mounted(){this.appVars.has_mailboxes||!this.canManageSettings?this.$router.push({name:"dashboard",query:{t:Date.now()}}):this.fetchPages(),this.hideNavbar()},beforeUnmount(){this.showNavbar()}},[["render",function(e,t,i,a,n,s){const o=Jl("BrandLogo"),r=cE,l=oC,c=wA,d=SA,u=AR,p=sC,h=Jl("Message"),f=KS,g=Jl("ArrowRight"),m=Jl("router-link"),_=Jl("Box"),v=Jl("UserFilled"),b=Jl("Setting"),y=Sk,x=dM,S=WB;return zd(),qd("div",uW,[tu("div",pW,[tu("div",hW,[tu("div",fW,["mailbox"===n.step?(zd(),qd(Fd,{key:0},[tu("div",gW,[tu("div",mW,[iu(o,{"asset-url":e.appVars.asset_url},null,8,["asset-url"]),tu("div",_W,[tu("span",null,me(e.$t("Step 1 of 2")),1)])]),t[16]||(t[16]=tu("div",{class:"fs_progress_container"},[tu("div",{class:"fs_progress_track"}),tu("div",{class:"fs_progress_fill"})],-1))]),tu("div",vW,[tu("div",bW,[tu("h1",yW,me(e.$t("Welcome aboard!"))+"👋🏻",1),tu("p",xW,me(e.$t("Please setup your support portal first")),1)]),tu("div",SW,[iu(p,{data:n.mailbox,"label-position":"top"},{default:vr(()=>[iu(l,{label:e.$t("Business name"),class:"fs_form_item"},{default:vr(()=>[iu(r,{placeholder:e.$t("eg: Awesome Business Inc"),type:"text",modelValue:n.mailbox.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.mailbox.name=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(l,{label:e.$t("Business Email"),class:"fs_form_item"},{default:vr(()=>[iu(r,{placeholder:e.$t("From Email Address"),type:"email",modelValue:n.mailbox.email,"onUpdate:modelValue":t[1]||(t[1]=e=>n.mailbox.email=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(l,{label:e.$t("Support Portal Page (For Customers)"),class:"fs_form_item"},{default:vr(()=>[br((zd(),Kd(d,{disabled:"yes"===n.global_settings.create_portal_page,clearable:"",filterable:"",placeholder:e.$t("Select a Page"),modelValue:n.global_settings.portal_page_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.global_settings.portal_page_id=e),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.pages,e=>(zd(),Kd(c,{key:e.id,label:e.title,value:e.id},{default:vr(()=>[tu("span",wW,me(e.title),1),tu("span",CW,me(e.id),1)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["disabled","placeholder","modelValue"])),[[S,n.loading_pages]]),tu("div",EW,[tu("span",kW,me(e.$t("Use Shortcode")),1),t[17]||(t[17]=tu("code",{class:"fs_shortcode_badge"},"[fluent_support_portal]",-1)),t[18]||(t[18]=tu("span",{class:"fs_shortcode_text"},"in the selected page",-1))])],void 0),_:1},8,["label"]),tu("div",null,[n.global_settings.portal_page_id?ru("",!0):(zd(),Kd(u,{key:0,"true-label":"yes","false-label":"no",modelValue:n.global_settings.create_portal_page,"onUpdate:modelValue":t[3]||(t[3]=e=>n.global_settings.create_portal_page=e),class:"fs_auto_page_checkbox"},{default:vr(()=>[su(me(e.$t("Create a page automatically with the shortcode")),1)],void 0),_:1},8,["modelValue"]))])],void 0),_:1},8,["data"])])])],64)):"maintenance"===n.step?(zd(),qd(Fd,{key:1},[tu("div",TW,[tu("div",AW,[iu(o,{"asset-url":e.appVars.asset_url},null,8,["asset-url"]),tu("div",RW,[tu("span",null,me(e.$t("Step 2 of 2")),1)])]),t[19]||(t[19]=tu("div",{class:"fs_progress_container"},[tu("div",{class:"fs_progress_track"}),tu("div",{class:"fs_progress_fill fs_progress_complete"})],-1))]),tu("div",IW,[tu("div",DW,[tu("h1",OW,me(e.$t("You're Almost There!"))+"👏🏻",1),tu("p",MW,me(e.$t("Please setup your support portal first")),1)]),tu("div",NW,[tu("div",LW,[tu("div",PW,[tu("h3",FW,me(e.$t("Subscribe to our Bi-Monthly newsletter")),1),tu("p",BW,me(e.$t("We will send tips and advanced usage of FluentSupport (monthly)")),1)]),tu("div",$W,[iu(r,{placeholder:e.$t("Email address for bi-monthly newsletter"),type:"email",modelValue:n.email_address,"onUpdate:modelValue":t[4]||(t[4]=e=>n.email_address=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])])]),tu("div",VW,[tu("div",UW,[tu("h3",HW,me(e.$t("Help us to make FluentSupport better")),1),tu("p",zW,[su(me(e.$t("Allow Fluent Support to collect non-sensitive data and usage information."))+" ",1),tu("span",{class:"fs_link_text",onClick:t[5]||(t[5]=e=>n.show_essential=!n.show_essential)},me(e.$t("What we collect")),1)])]),tu("div",YW,[iu(u,{"true-label":"yes","false-label":"no",modelValue:n.share_essentials,"onUpdate:modelValue":t[6]||(t[6]=e=>n.share_essentials=e),class:"fs_share_checkbox"},{default:vr(()=>[su(me(e.$t("Share Essentials")),1)],void 0),_:1},8,["modelValue"])]),n.show_essential?(zd(),qd("div",GW,[...t[20]||(t[20]=[tu("p",null," Server environment details (php, mysql, server, WordPress versions), Site language, Number of active plugins, Site name and url, Your name and email address. No sensitive data is tracked. ",-1)])])):ru("",!0)]),n.has_fluentform?ru("",!0):(zd(),qd("div",WW,[iu(u,{"true-label":"yes","false-label":"no",modelValue:n.install_fluentforms,"onUpdate:modelValue":t[7]||(t[7]=e=>n.install_fluentforms=e)},{default:vr(()=>[su(me(e.$t("Install Fluent Forms Plugin for custom Ticket Forms.")),1)],void 0),_:1},8,["modelValue"])]))])])],64)):(zd(),qd(Fd,{key:2},[tu("div",jW,[tu("div",qW,[iu(o,{"asset-url":e.appVars.asset_url},null,8,["asset-url"]),tu("div",KW,[tu("span",null,me(e.$t("Step 2 of 2")),1)])]),t[21]||(t[21]=tu("div",{class:"fs_progress_container"},[tu("div",{class:"fs_progress_track"}),tu("div",{class:"fs_progress_fill fs_progress_complete"})],-1))]),tu("div",XW,[tu("div",ZW,[tu("h1",QW,me(e.$t("Congrats! Your Support Portal"))+" 🎉",1),tu("p",JW,me(e.$t("Your support portal is now configured and ready to help your customers.")),1)]),tu("div",ej,[tu("div",tj,[tu("h3",ij,me(e.$t("Quick Setup Options")),1),tu("p",aj,me(e.$t("Configure these settings to get the most out of FluentSupport")),1)]),tu("div",nj,[iu(m,{to:{name:"email_settings",params:{box_id:n.created_box.id}},class:"fs_action_card"},{default:vr(()=>[tu("div",sj,[iu(f,null,{default:vr(()=>[iu(h)],void 0),_:1})]),tu("div",oj,[tu("h4",rj,me(e.$t("Ticket Email Settings")),1),tu("p",lj,me(e.$t("Configure email notifications and responses")),1)]),tu("div",cj,[iu(f,null,{default:vr(()=>[iu(g)],void 0),_:1})])],void 0),_:1},8,["to"]),iu(m,{to:{name:"products"},class:"fs_action_card"},{default:vr(()=>[tu("div",dj,[iu(f,null,{default:vr(()=>[iu(_)],void 0),_:1})]),tu("div",uj,[tu("h4",pj,me(e.$t("Products & Services")),1),tu("p",hj,me(e.$t("Setup products/services for ticket categorization")),1)]),tu("div",fj,[iu(f,null,{default:vr(()=>[iu(g)],void 0),_:1})])],void 0),_:1}),iu(m,{to:{name:"support-staffs"},class:"fs_action_card"},{default:vr(()=>[tu("div",gj,[iu(f,null,{default:vr(()=>[iu(v)],void 0),_:1})]),tu("div",mj,[tu("h4",_j,me(e.$t("Support Staff")),1),tu("p",vj,me(e.$t("Add team members to handle support tickets")),1)]),tu("div",bj,[iu(f,null,{default:vr(()=>[iu(g)],void 0),_:1})])],void 0),_:1}),iu(m,{to:{name:"global_settings"},class:"fs_action_card"},{default:vr(()=>[tu("div",yj,[iu(f,null,{default:vr(()=>[iu(b)],void 0),_:1})]),tu("div",xj,[tu("h4",Sj,me(e.$t("Global Settings")),1),tu("p",wj,me(e.$t("Customize your support portal preferences")),1)]),tu("div",Cj,[iu(f,null,{default:vr(()=>[iu(g)],void 0),_:1})])],void 0),_:1})])])])],64)),tu("div",Ej,[tu("div",kj,[tu("div",Tj,[tu("span",Aj,me(e.$t("Need Help?")),1),tu("a",Rj,me(e.$t("Read Documentation")),1)]),"mailbox"===n.step?(zd(),qd("div",Ij,[br((zd(),Kd(y,{disabled:n.saving,onClick:t[8]||(t[8]=e=>s.completeSetup()),class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Next Step")),1)],void 0),_:1},8,["disabled"])),[[S,n.saving]])])):"maintenance"===n.step?(zd(),qd("div",Dj,[iu(y,{onClick:t[9]||(t[9]=e=>n.step="mailbox"),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Back")),1)],void 0),_:1}),br((zd(),Kd(y,{disabled:n.saving,onClick:t[10]||(t[10]=e=>s.completeTrack()),class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Finish")),1)],void 0),_:1},8,["disabled"])),[[S,n.saving]])])):"completed"===n.step?(zd(),qd("div",Oj,[iu(y,{onClick:t[11]||(t[11]=e=>n.step="maintenance"),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Go Back")),1)],void 0),_:1}),iu(y,{class:"fs_filled_btn",onClick:t[12]||(t[12]=t=>e.$router.push({name:"dashboard"}))},{default:vr(()=>[su(me(e.$t("Go to Dashboard")),1)],void 0),_:1})])):ru("",!0)])])])])]),iu(x,{title:e.$t("Build a better Fluent Support"),"close-on-click-modal":!1,"show-close":!1,"append-to-body":!0,top:"30vh","custom-class":"fc_essential_modal",modelValue:n.show_essential_modal,"onUpdate:modelValue":t[15]||(t[15]=e=>n.show_essential_modal=e),class:"fs_dialog",width:"90%",style:{"max-width":"420px"}},{footer:vr(()=>[tu("span",Mj,[iu(y,{class:"fs_outline_btn",onClick:t[13]||(t[13]=e=>s.handleDataShare("no"))},{default:vr(()=>[su(me(e.$t("No Thanks")),1)],void 0),_:1}),iu(y,{class:"fs_filled_btn",onClick:t[14]||(t[14]=e=>s.handleDataShare("yes"))},{default:vr(()=>[su(me(e.$t("Yes, Count me in!")),1)],void 0),_:1})])]),default:vr(()=>[t[22]||(t[22]=tu("p",null," Get improved features and faster fixes by sharing non-sensitive data via usage tracking that shows us how FluentSupport is used. No personal data is tracked or stored. ",-1))],void 0),_:1},8,["title","modelValue"])])}]]);let Lj;const Pj=e=>Lj=e,Fj=Symbol();function Bj(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var $j,Vj;(Vj=$j||($j={})).direct="direct",Vj.patchObject="patch object",Vj.patchFunction="patch function";const Uj=()=>{};function Hj(e,t,i,a=Uj){e.add(t);const n=()=>{e.delete(t)&&a()};return!i&&zn()&&Yn(n),n}function zj(e,...t){e.forEach(e=>{e(...t)})}const Yj=e=>e(),Gj=Symbol(),Wj=Symbol();function jj(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,i)=>e.set(i,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const i in t){if(!t.hasOwnProperty(i))continue;const a=t[i],n=e[i];Bj(n)&&Bj(a)&&e.hasOwnProperty(i)&&!go(a)&&!oo(a)?e[i]=jj(n,a):e[i]=a}return e}const qj=Symbol();function Kj(e){return!Bj(e)||!Object.prototype.hasOwnProperty.call(e,qj)}const{assign:Xj}=Object;function Zj(e){return!(!go(e)||!e.effect)}function Qj(e,t,i={},a,n,s){let o;const r=Xj({actions:{}},i),l={deep:!0};let c,d,u,p=new Set,h=new Set;const f=a.state.value[e];let g;function m(t){let i;c=d=!1,"function"==typeof t?(t(a.state.value[e]),i={type:$j.patchFunction,storeId:e,events:u}):(jj(a.state.value[e],t),i={type:$j.patchObject,payload:t,storeId:e,events:u});const n=g=Symbol();ir().then(()=>{g===n&&(c=!0)}),d=!0,zj(p,i,a.state.value[e])}s||f||(a.state.value[e]={});const _=s?function(){const{state:e}=i,t=e?e():{};this.$patch(e=>{Xj(e,t)})}:Uj;const v=(t,i="")=>{if(Gj in t)return t[Wj]=i,t;const n=function(){Pj(a);const i=Array.from(arguments),s=new Set,o=new Set;let r;zj(h,{args:i,name:n[Wj],store:b,after:function(e){s.add(e)},onError:function(e){o.add(e)}});try{r=t.apply(this&&this.$id===e?this:b,i)}catch(l){throw zj(o,l),l}return r instanceof Promise?r.then(e=>(zj(s,e),e)).catch(e=>(zj(o,e),Promise.reject(e))):(zj(s,r),r)};return n[Gj]=!0,n[Wj]=i,n},b=to({_p:a,$id:e,$onAction:Hj.bind(null,h),$patch:m,$reset:_,$subscribe(t,i={}){const n=Hj(p,t,i.detached,()=>s()),s=o.run(()=>Rr(()=>a.state.value[e],a=>{("sync"===i.flush?d:c)&&t({storeId:e,type:$j.direct,events:u},a)},Xj({},l,i)));return n},$dispose:function(){o.stop(),p.clear(),h.clear(),a._s.delete(e)}});a._s.set(e,b);const y=(a._a&&a._a.runWithContext||Yj)(()=>a._e.run(()=>(o=Hn()).run(()=>t({action:v}))));for(const x in y){const t=y[x];if(go(t)&&!Zj(t)||oo(t))s||(f&&Kj(t)&&(go(t)?t.value=f[x]:jj(t,f[x])),a.state.value[e][x]=t);else if("function"==typeof t){const e=v(t,x);y[x]=e,r.actions[x]=t}}return Xj(b,y),Xj(uo(b),y),Object.defineProperty(b,"$state",{get:()=>a.state.value[e],set:e=>{m(t=>{Xj(t,e)})}}),a._p.forEach(e=>{Xj(b,o.run(()=>e({store:b,app:a._a,pinia:a,options:r})))}),f&&s&&i.hydrate&&i.hydrate(b.$state,f),c=!0,d=!0,b}function Jj(e,t,i){let a;const n="function"==typeof t;function s(i,s){const o=wr();(i=i||(o?Sr(Fj,null):null))&&Pj(i),(i=Lj)._s.has(e)||(n?Qj(e,t,a,i):function(e,t,i){const{state:a,actions:n,getters:s}=t,o=i.state.value[e];let r;r=Qj(e,function(){o||(i.state.value[e]=a?a():{});const t=To(i.state.value[e]);return Xj(t,n,Object.keys(s||{}).reduce((t,a)=>(t[a]=po(Lu(()=>{Pj(i);const t=i._s.get(e);return s[a].call(t,t)})),t),{}))},t,i,0,!0)}(e,a,i));return i._s.get(e)}return a=n?i:t,s.$id=e,s}function eq(e,t){return Array.isArray(t)?t.reduce((t,i)=>(t[i]=function(){return e(this.$pinia)[i]},t),{}):Object.keys(t).reduce((i,a)=>(i[a]=function(){const i=e(this.$pinia),n=t[a];return"function"==typeof n?n.call(this,i):i[n]},i),{})}const tq=function(e,t,i={},a=null){const n=`${a||window.fluentSupportAdmin.rest.url}/${t}`,s={"X-WP-Nonce":window.fluentSupportAdmin.rest.nonce};return-1!==["PUT","PATCH","DELETE"].indexOf(e.toUpperCase())&&(s["X-HTTP-Method-Override"]=e,e="POST"),window.jQuery.ajax({url:n,type:e,data:i,headers:s})},iq={get:(e,t={},i=null)=>tq("GET",e,t,i),post:(e,t={},i=null)=>tq("POST",e,t,i),delete:(e,t={},i=null)=>tq("DELETE",e,t,i),put:(e,t={},i=null)=>tq("PUT",e,t,i),patch:(e,t={},i=null)=>tq("PATCH",e,t,i)};jQuery(document).ajaxSuccess((e,t,i)=>{const a=t.getResponseHeader("X-WP-Nonce");a&&(window.fluentSupportAdmin.rest.nonce=a)}),jQuery(e=>{e.ajaxSetup({success:function(e,t,i){const a=i.getResponseHeader("X-WP-Nonce");a&&(window.fluentSupportAdmin.rest.nonce=a)},error:function(e,t,i){e.responseJSON&&"rest_cookie_invalid_nonce"==e.responseJSON.code&&jQuery.post(window.fluentSupportAdmin.ajaxurl,{action:"fluent_support_renew_rest_nonce"}).then(e=>{window.fluentSupportAdmin.rest.nonce=e.nonce})}})});const aq={fetchList:e=>iq.get("tickets",e),bulkAction:e=>iq.post("tickets/bulk-actions",e),bulkClose:e=>iq.post("tickets/bulk-actions",{...e,bulk_action:"close_tickets"}),bulkDelete:e=>iq.post("tickets/bulk-actions",{...e,bulk_action:"delete_tickets"}),saveLabelSearch:e=>iq.post("tickets/label-search",e),fetchLabelSearches:()=>iq.get("tickets/label-search"),deleteLabelSearch:e=>iq.delete("tickets/"+e+"/label-search")};function nq(e){var t,i;try{return JSON.stringify({filters:"advanced"!==e.filter_type?e.filters:null,search:"advanced"!==e.filter_type?e.search:null,filter_type:e.filter_type,advanced_filters:"advanced"===e.filter_type?e.advanced_filters:null,order_by:e.order_by,order_type:e.order_type,page:(null==(t=e.pagination)?void 0:t.current_page)||1,per_page:(null==(i=e.pagination)?void 0:i.per_page)||10})}catch(NO){return""}}const sq=Jj("ticketList",{state:()=>({tickets:[],pagination:{current_page:1,total:0,per_page:10},ticket_statuses_group:{},filters:{status_type:"open",product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],waiting_for_reply:"",ticket_tags:[],mailbox_id:[],watcher:""},search:"",searchActive:!1,order_by:"last_customer_response",order_type:"ASC",filter_type:"simple",advanced_filters:[[]],label_search_id:"",label_search_name:"",labelSearchList:[],ticket_selections:[],loading:!1,first_time_loading:!0,app_ready:!1,appReady:!1,doing_bulk:!1,fieldVisibility:{title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!0,agent:!0,status:!0,client_priority:!0,waiting_time:!0},gridFieldVisibility:{title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!1,agent:!0,status:!1,client_priority:!0,waiting_time:!0},ticketLayout:"default",viewMode:"list",cache_metadata:{last_fetch_time:null,cache_key_hash:null,is_stale:!1},_fetchId:0}),getters:{activeFilters(e){if(!e.filters)return{};const t={};return e.filters.product_id&&e.filters.product_id.length>0&&(t.product_id=e.filters.product_id),e.filters.agent_id&&e.filters.agent_id.length>0&&(t.agent_id=e.filters.agent_id),e.filters.priority&&e.filters.priority.length>0&&(t.priority=e.filters.priority),e.filters.client_priority&&e.filters.client_priority.length>0&&(t.client_priority=e.filters.client_priority),e.filters.ticket_tags&&e.filters.ticket_tags.length>0&&(t.ticket_tags=e.filters.ticket_tags),e.filters.mailbox_id&&e.filters.mailbox_id.length>0&&(t.mailbox_id=e.filters.mailbox_id),e.filters.agent_group&&e.filters.agent_group.length>0&&(t.agent_group=e.filters.agent_group),t},selectAllChecked:e=>e.tickets.length>0&&e.ticket_selections.length===e.tickets.length,isIndeterminate:e=>e.ticket_selections.length>0&&e.ticket_selections.length<e.tickets.length,isCacheValid:e=>!(!e.cache_metadata.last_fetch_time||e.cache_metadata.is_stale)&&Date.now()-e.cache_metadata.last_fetch_time<3e5,filterHash:e=>nq({filters:e.filters,search:e.search,filter_type:e.filter_type,advanced_filters:e.advanced_filters,order_by:e.order_by,order_type:e.order_type,pagination:e.pagination}),hasCachedDataForCurrentFilters:e=>!!e.cache_metadata.cache_key_hash&&e.cache_metadata.cache_key_hash===nq({filters:e.filters,search:e.search,filter_type:e.filter_type,advanced_filters:e.advanced_filters,order_by:e.order_by,order_type:e.order_type,pagination:e.pagination}),shouldShowCache(){return this.isCacheValid&&this.hasCachedDataForCurrentFilters&&this.tickets.length>0}},actions:{async fetchTickets(e=!1,t=!1){if(!e&&this.shouldShowCache)return;const i=++this._fetchId;this.ticket_selections=[],t||(this.loading=!0);try{const e=this._buildQuery(),t=await aq.fetchList(e);if(i!==this._fetchId)return;if(t.tickets.total&&!t.tickets.from&&this.pagination.current_page>1)return this.pagination.current_page=1,this.fetchTickets(!0);this.tickets=t.tickets.data,this.pagination.total=t.tickets.total,this.cache_metadata.last_fetch_time=Date.now(),this.cache_metadata.cache_key_hash=this.filterHash,this.cache_metadata.is_stale=!1}catch(a){throw a}finally{i===this._fetchId&&(this.loading=!1,this.first_time_loading=!1)}},_buildQuery(){var e;const t={page:this.pagination.current_page,per_page:this.pagination.per_page,order_by:this.order_by,order_type:this.order_type,filter_type:this.filter_type},i=null==(e=window.fluentSupportAdmin)?void 0:e.has_pro;return"advanced"===this.filter_type&&i?t.advanced_filters=JSON.stringify(this.advanced_filters):(t.filters=this.filters,t.search=this.search,i||(t.filter_type="simple",this.filter_type="simple")),t},invalidateCache(){this.cache_metadata.is_stale=!0,this.cache_metadata.last_fetch_time=null,this.cache_metadata.cache_key_hash=null},setStatus(e){this.filters.status_type=e},resetFilters(e){this.filters={status_type:"open",product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],waiting_for_reply:"",ticket_tags:[],mailbox_id:[],watcher:""},this.search="",this.order_type="ASC",this.order_by="last_customer_response",this.pagination.current_page=1,e&&e.agent_id&&(this.filters.agent_id=e.agent_id),e&&e.watcher&&(this.filters.watcher=e.watcher),e&&e.product_id&&(this.filters.product_id=Array.isArray(e.product_id)?e.product_id:[e.product_id])},resetWithOutFetch(){this.filters={status_type:"open",product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],waiting_for_reply:"",ticket_tags:[],mailbox_id:[],watcher:""},this.search="",this.pagination.current_page=1},clearAllFilters(){this.filters={...this.filters,status_type:"open",mailbox_id:[],product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],ticket_tags:[],waiting_for_reply:"",watcher:""}},resetAdvancedFilters(){this.advanced_filters=[[]]},handleCustomFilter(e,t){switch(e){case"status":this.filters.status_type=t;break;case"priority":this.filters.priority=Array.isArray(t)?t:[t];break;case"client_priority":this.filters.client_priority=Array.isArray(t)?t:[t];break;case"agent_id":this.filters.agent_id=Array.isArray(t)?t:[t];break;case"product_id":this.filters.product_id=Array.isArray(t)?t:[t];break;case"mailbox_id":this.filters.mailbox_id=Array.isArray(t)?t:[t];break;case"ticket_tags":this.filters.ticket_tags=Array.isArray(t)?t.map(e=>parseInt(e)):[parseInt(t)];break;case"agent_group":this.filters.agent_group=Array.isArray(t)?t.map(e=>parseInt(e)):[parseInt(t)]}},handleSelectAll(e){this.ticket_selections=e?this.tickets.map(e=>e.id):[]},handleTicketSelection(e){const t=this.ticket_selections.indexOf(e);t>-1?this.ticket_selections.splice(t,1):this.ticket_selections.push(e)},deleteSelected(){if(this.ticket_selections.length)return this.doing_bulk=!0,aq.bulkDelete({ticket_ids:this.ticket_selections}).then(()=>{this.invalidateCache()}).always(()=>{this.doing_bulk=!1})},closeSelected(){return this.doing_bulk=!0,aq.bulkClose({ticket_ids:this.ticket_selections,bulk_action:"close_tickets"}).then(()=>{this.invalidateCache()}).always(()=>{this.doing_bulk=!1})},handleSaveSearch:e=>aq.saveLabelSearch({query:e}),fetchLabelSearches(){return aq.fetchLabelSearches().then(e=>{this.labelSearchList=e})},handleLabelSearchDelete(e){return aq.deleteLabelSearch(e).then(t=>(t&&(this.label_search_id===e&&(this.label_search_id=null),this.labelSearchList=this.labelSearchList.filter(t=>t.id!==e)),t))},handleAdvanceSearch(e){this.advanced_filters=JSON.parse(e.advanced_filters),this.filter_type=e.filter_type,this.label_search_name="",this.label_search_id=""},handleLabelSearchEdit(e){this.advanced_filters=JSON.parse(e.advanced_filters),this.filter_type=e.filter_type,this.label_search_name=e.label_search_name,this.label_search_id=e.id}}}),oq={name:"TicketsMenu",components:{IconPack:dY},props:{isCollapsed:{type:Boolean,default:!1}},emits:["toggle-collapse"],data(){return{isMobile:!1,dynamicRoutes:[{name:"allTickets",label:this.$t("All Tickets"),to:{name:"tickets"},icon:"Tickets",onClick:()=>this.saveRoutes()},{name:"myTickets",label:this.$t("My Tickets"),to:{name:"tickets",query:{agent_id:this.appVars.me.id}},icon:"User",onClick:()=>this.saveRoutes({agent_id:this.appVars.me.id})},{name:"unassignedTickets",label:this.$t("Unassigned"),to:{name:"tickets",query:{agent_id:"unassigned"}},icon:"View",onClick:()=>this.saveRoutes({agent_id:"unassigned"})},...this.has_pro?[{name:"mentionedTickets",label:this.$t("Bookmarks"),to:{name:"tickets",query:{watcher:"watcher",agent_id:this.appVars.me.id}},icon:"CollectionTag",onClick:()=>this.saveRoutes({watcher:"watcher",agent_id:this.appVars.me.id})}]:[]]}},computed:{...eq(sq,{storeTickets:"tickets"}),currentTickets(){return"view_ticket"===this.$route.name&&this.storeTickets&&this.storeTickets.length?this.storeTickets:null},isViewingTicket(){return"view_ticket"===this.$route.name},hasViewRoute(){return this.$route.name&&this.$route.name.includes("view")},isAll(){return this.$route.query.agent_id},isMine(){return!("watcher"!==this.$route.query.watcher&&this.appVars.me.id===parseInt(this.$route.query.agent_id))},isUnassigned(){return!("unassigned"===this.$route.query.agent_id&&!this.$route.query.watcher)},isMentioned(){return!("watcher"===this.$route.query.watcher&&this.appVars.me.id===parseInt(this.$route.query.agent_id))}},methods:{getExcerpt(e){let t=e.preview_response?e.preview_response.content:e.content;return t?(t=t.replace(/<\/?("[^"]*"|'[^']*'|[^>])*(>|$)/g,""),t.substring(0,100)):""},isCurrentRouteMatched(e){const t={allTickets:this.isAll,myTickets:this.isMine,unassignedTickets:this.isUnassigned,mentionedTickets:this.isMentioned};return e in t&&t[e]},isRouteActive(e){return!this.isCurrentRouteMatched(e)},saveRoutes(e={}){this.$saveData("routesData",JSON.stringify(e))},handleKeydown(e){const{metaKey:t,shiftKey:i,code:a}=e;if(!t||!i)return;const n={KeyA:()=>this.$router.push(this.dynamicRoutes[0].to),KeyM:()=>this.$router.push(this.dynamicRoutes[1].to),KeyU:()=>this.$router.push(this.dynamicRoutes[2].to),KeyB:()=>{var e;return this.$router.push(null==(e=this.dynamicRoutes[3])?void 0:e.to)}}[a];n&&(e.preventDefault(),n())}},mounted(){this.isMobile=window.innerWidth<768,"yes"===this.appVars.keyboard_shortcuts&&window.addEventListener("keydown",this.handleKeydown)},unmounted(){"yes"===this.appVars.keyboard_shortcuts&&window.removeEventListener("keydown",this.handleKeydown)}},rq={class:"fs_ticket_nav"},lq=["title","alt","src"],cq={class:"fs_ticket_content"},dq={class:"fs_ticket_title_row"},uq={class:"fs_ticket_title_text"},pq={class:"fs_ticket_meta_row"},hq={class:"fs_ticket_excerpt"},fq=["data-ticket-time"],gq={key:0,class:"fs_sidebar_header"},mq={class:"fs_sidebar_title"},_q=["src"],vq={class:"fs_sidebar_items"},bq={key:2,class:"fs_sidebar_label"};const yq={name:"ticketsView",components:{TicketsMenu:lH(oq,[["render",function(e,t,i,a,n,s){const o=Jl("router-link"),r=bI,l=Sk,c=Jl("IconPack"),d=ZC;return s.currentTickets&&!n.isMobile?(zd(),qd("div",{key:0,class:se(["fs_tickets_tiny_nav",{"is-collapsed":i.isCollapsed}])},[iu(r,null,{default:vr(()=>[br(tu("div",rq,[(zd(!0),qd(Fd,null,sc(s.currentTickets,t=>(zd(),Kd(o,{key:t.id,to:{name:"view_ticket",params:{ticket_id:t.id}},class:"fs_ticket_card"},{default:vr(()=>[t.customer?(zd(),qd("img",{key:0,title:t.customer.email+" - "+t.customer.full_name,alt:t.customer.full_name,class:"fs_ticket_avatar",src:t.customer.photo},null,8,lq)):ru("",!0),tu("div",cq,[tu("div",dq,[tu("p",uq,me(t.title),1)]),tu("div",pq,[tu("p",hq,me(s.getExcerpt(t)),1),tu("p",{class:"fs_ticket_time","data-ticket-time":t.updated_at||t.created_at},me(e.$timeDiff(t.updated_at||t.created_at)),9,fq)])])],void 0),_:2},1032,["to"]))),128))],512),[[yp,!i.isCollapsed]])],void 0),_:1})],2)):(zd(),qd("div",{key:1,class:se(["fs_tk_inner_sidebar",{"is-collapsed":i.isCollapsed,"has-view-route":s.hasViewRoute}])},[s.isViewingTicket?ru("",!0):(zd(),qd("div",gq,[tu("h3",mq,me(e.$t("Ticket Filters")),1),iu(l,{class:se(["fs_tickets_collapse_btn",{collapsed:i.isCollapsed}]),onClick:t[0]||(t[0]=t=>e.$emit("toggle-collapse")),title:e.$t(i.isCollapsed?"Expand Sidebar":"Collapse Sidebar"),text:""},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/arrowLeftLine.svg",alt:""},null,8,_q)],void 0),_:1},8,["class","title"])])),tu("div",vq,[tu("ul",null,[(zd(!0),qd(Fd,null,sc(n.dynamicRoutes,(e,t)=>(zd(),qd("li",{key:`${e.name}-${t}`},[iu(o,{class:se({router_not_exactly_matched:s.isCurrentRouteMatched(e.name)}),to:e.to,onClick:e.onClick},{default:vr(()=>[i.isCollapsed?(zd(),Kd(d,{key:0,content:e.label,placement:"right",enterable:!0,"popper-class":e.name},{default:vr(()=>[iu(c,{"icon-key":e.icon,class:"fs_sidebar_icons",width:20,height:20,fill:s.isRouteActive(e.name)?"var(--fs-text-primary)":"var(--fs-text-secondary)"},null,8,["icon-key","fill"])],void 0),_:2},1032,["content","popper-class"])):(zd(),Kd(c,{key:1,"icon-key":e.icon,class:"fs_sidebar_icons",width:20,height:20,fill:s.isRouteActive(e.name)?"var(--fs-text-primary)":"var(--fs-text-secondary)"},null,8,["icon-key","fill"])),i.isCollapsed?ru("",!0):(zd(),qd("span",bq,me(e.label),1))],void 0),_:2},1032,["class","to","onClick"])]))),128))])])],2))}]])},data(){let e=!1;try{if("function"==typeof this.$getData)e=this.$getData("ticketsMenuCollapsed");else{const t=window.localStorage.getItem("__fluentsupport_data");if(t){const i=JSON.parse(t);i&&i.ticketsMenuCollapsed&&(e=i.ticketsMenuCollapsed)}}}catch(NO){e=!1}return{isSidebarCollapsed:"yes"===e,viewedTicket:null}},computed:{...eq(sq,{storeTickets:"tickets"}),isViewingTicket(){return"view_ticket"===this.$route.name},currentTicketId(){return this.$route.params.ticket_id||""},currentTicket(){const e=String(this.currentTicketId||""),t=this.viewedTicket;return!t||String(t.id)!==e&&String(t.serial_number||"")!==e?(this.storeTickets||[]).find(t=>String(t.id)===e||String(t.serial_number||"")===e):t},currentTicketNumber(){const e=this.currentTicket;return e?e.display_ticket_number||e.serial_number||e.id:this.currentTicketId},currentActualTicketNumber(){const e=this.currentTicket;return e?e.id:this.currentTicketId},currentTickets(){return"view_ticket"!==this.$route.name?null:this.storeTickets&&this.storeTickets.length>0?this.storeTickets:null}},watch:{"$route.name"(){this.loadRouteDataFromLocalStorage()},currentTicketId(){this.viewedTicket=null}},methods:{toggleSidebar(){this.isSidebarCollapsed=!this.isSidebarCollapsed,this.$saveData("ticketsMenuCollapsed",this.isSidebarCollapsed?"yes":"no")},loadRouteDataFromLocalStorage(){const e=this.$route.name,t=this.$getData("routesData");if("tickets"!==e||!t||0===Object.keys(t).length)return;const i="string"==typeof t?JSON.parse(t):t;"agent_id"in i&&"unassigned"!==i.agent_id&&(i.agent_id=this.appVars.me.id),this.$router.replace({name:"tickets",query:i})},setViewedTicket(e){const t=e&&e.detail&&e.detail.response&&e.detail.response.ticket;t&&(this.viewedTicket=t)}},mounted(){document.body.addEventListener("fs_ticket_viewed",this.setViewedTicket),this.loadRouteDataFromLocalStorage()},beforeUnmount(){document.body.removeEventListener("fs_ticket_viewed",this.setViewedTicket)}},xq={class:"fs_tickets_view_wrapper"},Sq={key:0,class:"fs_combined_top_bar"},wq={class:"fs_top_bar_left"},Cq={class:"fs_filtered_tickets_section"},Eq={key:0,class:"fs_filtered_tickets_title"},kq={key:1,class:"fs_filtered_tickets_title"},Tq=["src"],Aq={key:0,class:"fs_top_bar_right"},Rq={class:"fs_breadcrumbs_group"},Iq={class:"fs_breadcrumb_item"},Dq={class:"fs_breadcrumb_separator"},Oq={class:"fs_breadcrumb_item"},Mq={class:"fs_breadcrumb_current"},Nq={class:"fs_tk_inner_body"};const Lq=lH(yq,[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("router-link"),l=Jl("ArrowRight"),c=KS,d=ZC,u=Jl("tickets-menu"),p=Jl("router-view");return zd(),qd("div",xq,[s.isViewingTicket?(zd(),qd("div",Sq,[tu("div",wq,[tu("div",Cq,[s.currentTickets&&s.currentTickets.length?(zd(),qd("h3",Eq,me(e.$t("Filtered Tickets")),1)):(zd(),qd("h3",kq,me(e.$t("Ticket Filters")),1)),iu(o,{class:se(["fs_tickets_collapse_btn",{collapsed:n.isSidebarCollapsed}]),onClick:s.toggleSidebar,title:e.$t(n.isSidebarCollapsed?"Expand Sidebar":"Collapse Sidebar"),text:""},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/arrowLeftLine.svg",alt:""},null,8,Tq)],void 0),_:1},8,["class","onClick","title"])])]),s.isViewingTicket?(zd(),qd("div",Aq,[tu("div",Rq,[tu("div",Iq,[iu(r,{to:"/tickets",class:"fs_breadcrumb_link"},{default:vr(()=>[su(me(e.$t("All Tickets")),1)],void 0),_:1})]),tu("div",Dq,[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1})]),tu("div",Oq,[iu(d,{effect:"dark",content:e.$t("Internal Ticket ID")+": #"+s.currentActualTicketNumber,placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",Mq,"#"+me(s.currentTicketNumber),1)],void 0),_:1},8,["content"])])]),t[0]||(t[0]=tu("div",{id:"fs_top_bar_actions_slot",class:"fs_top_bar_actions"},null,-1))])):ru("",!0)])):ru("",!0),tu("div",{class:se(["fs_tickets_view",{"sidebar-collapsed":n.isSidebarCollapsed}])},[iu(u,{"is-collapsed":n.isSidebarCollapsed,onToggleCollapse:s.toggleSidebar},null,8,["is-collapsed","onToggleCollapse"]),tu("div",Nq,[iu(p,{key:"tickets_view"})])],2)])}]]);const Pq=lH({name:"Pagination",props:{pagination:{required:!0,type:Object},layout:{type:String,default:"total, sizes, prev, pager, next"},background:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1}},emits:["fetch"],computed:{page_sizes:()=>[10,20,50,80,100,120,150]},methods:{changePage(e){this.pagination.current_page=e,this.$emit("fetch")},changeSize(e){this.pagination.per_page=e,this.pagination.current_page=1,this.$emit("fetch")}}},[["render",function(e,t,i,a,n,s){const o=gL;return zd(),Kd(o,{background:i.background,disabled:i.disabled,layout:i.layout,onCurrentChange:s.changePage,onSizeChange:s.changeSize,"hide-on-single-page":!1,"current-page":i.pagination.current_page,"page-sizes":s.page_sizes,"page-size":i.pagination.per_page,total:i.pagination.total},null,8,["background","disabled","layout","onCurrentChange","onSizeChange","current-page","page-sizes","page-size","total"])}]]);var Fq=function(e,t){for(var i=-1,a=null==e?0:e.length;++i<a&&!1!==t(e[i],i,e););return e};var Bq=function(e){return function(t,i,a){for(var n=-1,s=Object(t),o=a(t),r=o.length;r--;){var l=o[e?r:++n];if(!1===i(s[l],l,s))break}return t}}();var $q=function(e,t){for(var i=-1,a=Array(e);++i<e;)a[i]=t(i);return a},Vq="object"==typeof Ik&&Ik&&Ik.Object===Object&&Ik,Uq=Vq,Hq="object"==typeof self&&self&&self.Object===Object&&self,zq=Uq||Hq||Function("return this")(),Yq=zq.Symbol,Gq=Yq,Wq=Object.prototype,jq=Wq.hasOwnProperty,qq=Wq.toString,Kq=Gq?Gq.toStringTag:void 0;var Xq=function(e){var t=jq.call(e,Kq),i=e[Kq];try{e[Kq]=void 0;var a=!0}catch(NO){}var n=qq.call(e);return a&&(t?e[Kq]=i:delete e[Kq]),n},Zq=Object.prototype.toString;var Qq=Xq,Jq=function(e){return Zq.call(e)},eK=Yq?Yq.toStringTag:void 0;var tK=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":eK&&eK in Object(e)?Qq(e):Jq(e)};var iK=function(e){return null!=e&&"object"==typeof e},aK=tK,nK=iK;var sK=function(e){return nK(e)&&"[object Arguments]"==aK(e)},oK=iK,rK=Object.prototype,lK=rK.hasOwnProperty,cK=rK.propertyIsEnumerable,dK=sK(function(){return arguments}())?sK:function(e){return oK(e)&&lK.call(e,"callee")&&!cK.call(e,"callee")},uK=Array.isArray;const pK=Dk(uK);var hK,fK,gK,mK,_K,vK,bK,yK,xK={exports:{}};hK=xK,gK=zq,mK=function(){return!1},_K=(fK=xK.exports)&&!fK.nodeType&&fK,vK=_K&&hK&&!hK.nodeType&&hK,bK=vK&&vK.exports===_K?gK.Buffer:void 0,yK=(bK?bK.isBuffer:void 0)||mK,hK.exports=yK;var SK=xK.exports,wK=/^(?:0|[1-9]\d*)$/;var CK=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&wK.test(e))&&e>-1&&e%1==0&&e<t};var EK=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},kK=tK,TK=EK,AK=iK,RK={};RK["[object Float32Array]"]=RK["[object Float64Array]"]=RK["[object Int8Array]"]=RK["[object Int16Array]"]=RK["[object Int32Array]"]=RK["[object Uint8Array]"]=RK["[object Uint8ClampedArray]"]=RK["[object Uint16Array]"]=RK["[object Uint32Array]"]=!0,RK["[object Arguments]"]=RK["[object Array]"]=RK["[object ArrayBuffer]"]=RK["[object Boolean]"]=RK["[object DataView]"]=RK["[object Date]"]=RK["[object Error]"]=RK["[object Function]"]=RK["[object Map]"]=RK["[object Number]"]=RK["[object Object]"]=RK["[object RegExp]"]=RK["[object Set]"]=RK["[object String]"]=RK["[object WeakMap]"]=!1;var IK=function(e){return AK(e)&&TK(e.length)&&!!RK[kK(e)]};var DK=function(e){return function(t){return e(t)}},OK={exports:{}};!function(e,t){var i=Vq,a=t&&!t.nodeType&&t,n=a&&e&&!e.nodeType&&e,s=n&&n.exports===a&&i.process,o=function(){try{var e=n&&n.require&&n.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(NO){}}();e.exports=o}(OK,OK.exports);var MK=OK.exports,NK=IK,LK=DK,PK=MK&&MK.isTypedArray,FK=PK?LK(PK):NK,BK=$q,$K=dK,VK=uK,UK=SK,HK=CK,zK=FK,YK=Object.prototype.hasOwnProperty;var GK=function(e,t){var i=VK(e),a=!i&&$K(e),n=!i&&!a&&UK(e),s=!i&&!a&&!n&&zK(e),o=i||a||n||s,r=o?BK(e.length,String):[],l=r.length;for(var c in e)!t&&!YK.call(e,c)||o&&("length"==c||n&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||HK(c,l))||r.push(c);return r},WK=Object.prototype;var jK=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||WK)};var qK=function(e,t){return function(i){return e(t(i))}},KK=qK(Object.keys,Object),XK=jK,ZK=KK,QK=Object.prototype.hasOwnProperty;var JK=function(e){if(!XK(e))return ZK(e);var t=[];for(var i in Object(e))QK.call(e,i)&&"constructor"!=i&&t.push(i);return t};var eX=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},tX=tK,iX=eX;var aX=function(e){if(!iX(e))return!1;var t=tX(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},nX=aX,sX=EK;var oX=function(e){return null!=e&&sX(e.length)&&!nX(e)},rX=GK,lX=JK,cX=oX;var dX=Bq,uX=function(e){return cX(e)?rX(e):lX(e)};var pX=oX;var hX=function(e,t){return function(i,a){if(null==i)return i;if(!pX(i))return e(i,a);for(var n=i.length,s=t?n:-1,o=Object(i);(t?s--:++s<n)&&!1!==a(o[s],s,o););return i}},fX=hX(function(e,t){return e&&dX(e,t,uX)});var gX=function(e){return e};var mX=Fq,_X=fX,vX=function(e){return"function"==typeof e?e:gX},bX=uK;const yX=Dk(function(e,t){return(bX(e)?mX:_X)(e,vX(t))});const xX=lH({name:"ImagePasteUploader",data(){return{upload_url:this.appVars.rest.url+"/ticket_file_upload",upload_data:{ticket_id:"",intended_ticket_hash:this.appVars.intended_ticket_hash,is_agent:""},file_lists:[],requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},error_message:"",dialogImageUrl:"",dialogImageTitle:"",dialogVisible:!1}},methods:{handleImagePaste(e,t,i){this.upload_data.ticket_id=t,this.upload_data.is_agent=i;const a=e.clipboardData||window.clipboardData;if(a&&a.items)for(let n=0;n<a.items.length;n++){const t=a.items[n];if("file"===t.kind&&-1!==t.type.indexOf("image")){const i=t.getAsFile();if(i){const e=new File([i],i.name,{type:i.type});this.uploadImage(e)}e.preventDefault()}else this.$notify({message:this.$t("Invalid image"),type:"error"})}},uploadImage(e){const t=new FormData;(e instanceof Blob||e instanceof File)&&(t.append("file",e),t.append("ticket_id",this.upload_data.ticket_id),t.append("is_agent",this.upload_data.is_agent),t.append("intended_ticket_hash",this.appVars.intended_ticket_hash),t.append("type","direct_paste"),fetch(this.upload_url,{method:"POST",body:t,headers:{"X-WP-Nonce":this.appVars.rest.nonce}}).then(e=>e.ok?e.json():e.json().then(e=>{throw new Error(e.file.mimetypes||"Upload failed")})).then(e=>{this.$notify({message:this.$t("Image successfully uploaded."),type:"success"}),this.$emit("imagePath",e.attachments)}).catch(e=>{this.$notify({message:e,type:"error"})}))}}},[["render",function(e,t,i,a,n,s){return zd(),qd("div")}],["__scopeId","data-v-2c3a2f0a"]]),SX={class:"fs_template_inserter"},wX={class:"fs_template_filters"},CX={class:"fs_filter_item"},EX={class:"fs_filter_label"},kX={class:"fs_filter_item"},TX={class:"fs_filter_label"},AX={class:"doc_blocks fs_saved_blocks"},RX={key:0,class:"fs_saved_replies"},IX=["onClick"],DX={class:"fs_reply_title"},OX={key:0,class:"fs_reply_badge"},MX={class:"fs_reply_excerpt"},NX={key:1,class:"fs_template_empty"},LX={key:2,class:"fs_pagination_wrapper"},PX={class:"fs_pagination_left"},FX={class:"fs_pagination_right"};const BX=lH({name:"TemplateInserter",components:{Pagination:Pq},data(){return{selected_product:"",search:"",products:this.appVars.support_products,replies:[],visible:!1,loading:!1,pagination:{per_page:10,current_page:1,total:0}}},methods:{async searchTemplates(){this.loading=!0;try{const e=await this.$get("saved-replies",{page:this.pagination.current_page,product_id:this.selected_product,search:this.search,per_page:this.pagination.per_page});window.fst_last_replies=e.replies,window.fst_last_replies.product_id=this.selected_product,window.fst_last_replies.search=this.search,this.replies=e.replies.data,this.pagination.total=e.replies.total}catch(e){this.$handleError(e)}finally{this.loading=!1}},initModal(){this.visible=!this.visible,this.visible&&!window.fst_last_replies&&this.searchTemplates()},insertReply(e){this.$emit("insert",e.content),this.visible=!1},getExcerpt:(e,t=200)=>e?e.replace(/<\/?("[^"]*"|'[^']*'|[^>])*(>|$)/g,"").substring(0,t)+"...":""},mounted(){window.fst_last_replies&&(this.selected_product=window.fst_last_replies.product_id,this.search=window.fst_last_replies.search,this.replies=window.fst_last_replies.data,this.pagination.total=window.fst_last_replies.total,this.pagination.current_page=window.fst_last_replies.current_page)}},[["render",function(e,t,i,a,n,s){const o=Jl("ArrowDown"),r=KS,l=Sk,c=wA,d=SA,u=Jl("Search"),p=cE,h=Jl("pagination"),f=P$,g=WB;return zd(),Kd(f,{placement:"bottom-start",width:640,trigger:"manual",visible:n.visible,"popper-class":"fs_popover fs_template_popover"},{reference:vr(()=>[iu(l,{class:"fs_text_btn",onClick:t[0]||(t[0]=e=>s.initModal()),size:"small",type:"default"},{default:vr(()=>[su(me(e.$t("Templates"))+" ",1),iu(r,{class:"el-icon--right"},{default:vr(()=>[iu(o)],void 0),_:1})],void 0),_:1})]),default:vr(()=>[tu("div",SX,[tu("div",wX,[tu("div",CX,[tu("label",EX,me(e.$t("Product")),1),iu(d,{onChange:t[1]||(t[1]=e=>s.searchTemplates()),clearable:"",modelValue:n.selected_product,"onUpdate:modelValue":t[2]||(t[2]=e=>n.selected_product=e),placeholder:e.$t("All Products"),class:"fs_select_field fs_template_select"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.products,e=>(zd(),Kd(c,{label:e.title,value:e.id,key:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])]),tu("div",kX,[tu("label",TX,me(e.$t("Search")),1),iu(p,{onKeyup:t[3]||(t[3]=Ih(e=>s.searchTemplates(),["enter"])),onClear:t[4]||(t[4]=e=>s.searchTemplates()),clearable:"",placeholder:e.$t("Search replies"),modelValue:n.search,"onUpdate:modelValue":t[5]||(t[5]=e=>n.search=e),class:"fs_text_input fs_table_search_input fs_template_search_input"},{prefix:vr(()=>[iu(r,{class:"el-input__icon"},{default:vr(()=>[iu(u)],void 0),_:1})]),_:1},8,["placeholder","modelValue"])])]),br((zd(),qd("div",AX,[n.replies.length?(zd(),qd("ul",RX,[(zd(!0),qd(Fd,null,sc(n.replies,e=>{var t;return zd(),qd("li",{class:"fs_saved_reply_item",onClick:t=>s.insertReply(e),key:e.id},[tu("div",DX,[tu("span",null,me(e.title),1),(null==(t=e.product)?void 0:t.title)?(zd(),qd("span",OX,me(e.product.title),1)):ru("",!0)]),tu("p",MX,me(s.getExcerpt(e.content)),1)],8,IX)}),128))])):(zd(),qd("div",NX,[tu("p",null,me(e.$t("No saved replies found.")),1)])),n.pagination.total?(zd(),qd("div",LX,[tu("span",PX,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(h,{onFetch:t[6]||(t[6]=e=>s.searchTemplates()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",FX,[iu(h,{onFetch:t[7]||(t[7]=e=>s.searchTemplates()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])),[[g,n.loading]])])],void 0),_:1},8,["visible"])}]]);function $X(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var VX={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function UX(e){VX=e}var HX={exec:()=>null};function zX(e,t=""){let i="string"==typeof e?e:e.source,a={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(GX.caret,"$1"),i=i.replace(e,n),a},getRegex:()=>new RegExp(i,t)};return a}var YX=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),GX={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},WX=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jX=/(?:[*+-]|\d{1,9}[.)])/,qX=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,KX=zX(qX).replace(/bull/g,jX).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),XX=zX(qX).replace(/bull/g,jX).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ZX=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,QX=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,JX=zX(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",QX).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eZ=zX(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jX).getRegex(),tZ="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",iZ=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,aZ=zX("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",iZ).replace("tag",tZ).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nZ=zX(ZX).replace("hr",WX).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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tZ).getRegex(),sZ={blockquote:zX(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nZ).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:JX,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:WX,html:aZ,lheading:KX,list:eZ,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:nZ,table:HX,text:/^[^\n]+/},oZ=zX("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",WX).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tZ).getRegex(),rZ={...sZ,lheading:XX,table:oZ,paragraph:zX(ZX).replace("hr",WX).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",oZ).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tZ).getRegex()},lZ={...sZ,html:zX("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",iZ).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:HX,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zX(ZX).replace("hr",WX).replace("heading"," *#{1,6} *[^\n]").replace("lheading",KX).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cZ=/^( {2,}|\\)\n(?!\s*$)/,dZ=/[\p{P}\p{S}]/u,uZ=/[\s\p{P}\p{S}]/u,pZ=/[^\s\p{P}\p{S}]/u,hZ=zX(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,uZ).getRegex(),fZ=/(?!~)[\p{P}\p{S}]/u,gZ=zX(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",YX?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),mZ=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_Z=zX(mZ,"u").replace(/punct/g,dZ).getRegex(),vZ=zX(mZ,"u").replace(/punct/g,fZ).getRegex(),bZ="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",yZ=zX(bZ,"gu").replace(/notPunctSpace/g,pZ).replace(/punctSpace/g,uZ).replace(/punct/g,dZ).getRegex(),xZ=zX(bZ,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,fZ).getRegex(),SZ=zX("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,pZ).replace(/punctSpace/g,uZ).replace(/punct/g,dZ).getRegex(),wZ=zX(/\\(punct)/,"gu").replace(/punct/g,dZ).getRegex(),CZ=zX(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),EZ=zX(iZ).replace("(?:--\x3e|$)","--\x3e").getRegex(),kZ=zX("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",EZ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),TZ=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,AZ=zX(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",TZ).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),RZ=zX(/^!?\[(label)\]\[(ref)\]/).replace("label",TZ).replace("ref",QX).getRegex(),IZ=zX(/^!?\[(ref)\](?:\[\])?/).replace("ref",QX).getRegex(),DZ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,OZ={_backpedal:HX,anyPunctuation:wZ,autolink:CZ,blockSkip:gZ,br:cZ,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:HX,emStrongLDelim:_Z,emStrongRDelimAst:yZ,emStrongRDelimUnd:SZ,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:AZ,nolink:IZ,punctuation:hZ,reflink:RZ,reflinkSearch:zX("reflink|nolink(?!\\()","g").replace("reflink",RZ).replace("nolink",IZ).getRegex(),tag:kZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:HX},MZ={...OZ,link:zX(/^!?\[(label)\]\((.*?)\)/).replace("label",TZ).getRegex(),reflink:zX(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",TZ).getRegex()},NZ={...OZ,emStrongRDelimAst:xZ,emStrongLDelim:vZ,url:zX(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",DZ).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:zX(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",DZ).getRegex()},LZ={...NZ,br:zX(cZ).replace("{2,}","*").getRegex(),text:zX(NZ.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},PZ={normal:sZ,gfm:rZ,pedantic:lZ},FZ={normal:OZ,gfm:NZ,breaks:LZ,pedantic:MZ},BZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$Z=e=>BZ[e];function VZ(e,t){if(t){if(GX.escapeTest.test(e))return e.replace(GX.escapeReplace,$Z)}else if(GX.escapeTestNoEncode.test(e))return e.replace(GX.escapeReplaceNoEncode,$Z);return e}function UZ(e){try{e=encodeURI(e).replace(GX.percentDecode,"%")}catch{return null}return e}function HZ(e,t){var i;let a=e.replace(GX.findPipe,(e,t,i)=>{let a=!1,n=t;for(;--n>=0&&"\\"===i[n];)a=!a;return a?"|":" |"}).split(GX.splitPipe),n=0;if(a[0].trim()||a.shift(),a.length>0&&!(null==(i=a.at(-1))?void 0:i.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;n<a.length;n++)a[n]=a[n].trim().replace(GX.slashPipe,"|");return a}function zZ(e,t,i){let a=e.length;if(0===a)return"";let n=0;for(;n<a;){if(e.charAt(a-n-1)!==t)break;n++}return e.slice(0,a-n)}function YZ(e,t,i,a,n){let s=t.href,o=t.title||null,r=e[1].replace(n.other.outputLinkReplace,"$1");a.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:i,href:s,title:o,text:r,tokens:a.inlineTokens(r)};return a.state.inLink=!1,l}var GZ=class{constructor(e){o(this,"options"),o(this,"rules"),o(this,"lexer"),this.options=e||VX}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:zZ(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],i=function(e,t,i){let a=e.match(i.other.indentCodeCompensation);if(null===a)return t;let n=a[1];return t.split("\n").map(e=>{let t=e.match(i.other.beginningSpace);if(null===t)return e;let[a]=t;return a.length>=n.length?e.slice(n.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=zZ(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:zZ(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=zZ(t[0],"\n").split("\n"),i="",a="",n=[];for(;e.length>0;){let t,s=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),s=!0;else{if(s)break;o.push(e[t])}e=e.slice(t);let r=o.join("\n"),l=r.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}\n${r}`:r,a=a?`${a}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,n,!0),this.lexer.state.top=c,0===e.length)break;let d=n.at(-1);if("code"===(null==d?void 0:d.type))break;if("blockquote"===(null==d?void 0:d.type)){let t=d,s=t.raw+"\n"+e.join("\n"),o=this.blockquote(s);n[n.length-1]=o,i=i.substring(0,i.length-t.raw.length)+o.raw,a=a.substring(0,a.length-t.text.length)+o.text;break}if("list"===(null==d?void 0:d.type)){let t=d,s=t.raw+"\n"+e.join("\n"),o=this.list(s);n[n.length-1]=o,i=i.substring(0,i.length-d.raw.length)+o.raw,a=a.substring(0,a.length-t.raw.length)+o.raw,e=s.substring(n.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:i,tokens:n,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),a=i.length>1,n={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let s=this.rules.other.listItemRegex(i),o=!1;for(;e;){let i=!1,a="",r="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],d=!l.trim(),u=0;if(this.options.pedantic?(u=2,r=l.trimStart()):d?u=t[1].length+1:(u=t[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,r=l.slice(u),u+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(a+=c+"\n",e=e.substring(c.length+1),i=!0),!i){let t=this.rules.other.nextBulletRegex(u),i=this.rules.other.hrRegex(u),n=this.rules.other.fencesBeginRegex(u),s=this.rules.other.headingBeginRegex(u),o=this.rules.other.htmlBeginRegex(u);for(;e;){let p,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),n.test(c)||s.test(c)||o.test(c)||t.test(c)||i.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())r+="\n"+p.slice(u);else{if(d||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||n.test(l)||s.test(l)||i.test(l))break;r+="\n"+c}!d&&!c.trim()&&(d=!0),a+=h+"\n",e=e.substring(h.length+1),l=p.slice(u)}}n.loose||(o?n.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(o=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(r),h&&(p="[ ] "!==h[0],r=r.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:a,task:!!h,checked:p,loose:!1,text:r,tokens:[]}),n.raw+=a}let r=n.items.at(-1);if(!r)return;r.raw=r.raw.trimEnd(),r.text=r.text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){let t=n.items[e].tokens.filter(e=>"space"===e.type),i=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:a}}}table(e){var t;let i=this.rules.block.table.exec(e);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let a=HZ(i[1]),n=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(null==(t=i[3])?void 0:t.trim())?i[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:i[0],header:[],align:[],rows:[]};if(a.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<a.length;e++)o.header.push({text:a[e],tokens:this.lexer.inline(a[e]),header:!0,align:o.align[e]});for(let e of s)o.rows.push(HZ(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=zZ(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let i=0;for(let a=0;a<e.length;a++)if("\\"===e[a])a++;else if(e[a]===t[0])i++;else if(e[a]===t[1]&&(i--,i<0))return a;return i>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],a="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?i.slice(1):i.slice(1,-1)),YZ(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let e=t[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return YZ(i,e,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!a[1]&&!a[2]||!i||this.rules.inline.punctuation.exec(i))){let i,n,s=[...a[0]].length-1,o=s,r=0,l="*"===a[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+s);null!=(a=l.exec(t));){if(i=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!i)continue;if(n=[...i].length,a[3]||a[4]){o+=n;continue}if((a[5]||a[6])&&s%3&&!((s+n)%3)){r+=n;continue}if(o-=n,o>0)continue;n=Math.min(n,n+o+r);let t=[...a[0]][0].length,l=e.slice(0,s+a.index+t+n);if(Math.min(s,n)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(e),a=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return i&&a&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,i;return"@"===t[2]?(e=t[1],i="mailto:"+e):(e=t[1],i=e),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let i;if(i=this.rules.inline.url.exec(e)){let e,a;if("@"===i[2])e=i[0],a="mailto:"+e;else{let n;do{n=i[0],i[0]=(null==(t=this.rules.inline._backpedal.exec(i[0]))?void 0:t[0])??""}while(n!==i[0]);e=i[0],a="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:a,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},WZ=class e{constructor(e){o(this,"tokens"),o(this,"options"),o(this,"state"),o(this,"tokenizer"),o(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||VX,this.options.tokenizer=this.options.tokenizer||new GZ,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:GX,block:PZ.normal,inline:FZ.normal};this.options.pedantic?(t.block=PZ.pedantic,t.inline=FZ.pedantic):this.options.gfm&&(t.block=PZ.gfm,this.options.breaks?t.inline=FZ.breaks:t.inline=FZ.gfm),this.tokenizer.rules=t}static get rules(){return{block:PZ,inline:FZ}}static lex(t,i){return new e(i).lex(t)}static lexInline(t,i){return new e(i).inlineTokens(t)}lex(e){e=e.replace(GX.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){var a,n,s;for(this.options.pedantic&&(e=e.replace(GX.tabCharGlobal," ").replace(GX.spaceLine,""));e;){let o;if(null==(n=null==(a=this.options.extensions)?void 0:a.block)?void 0:n.some(i=>!!(o=i.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let i=t.at(-1);1===o.raw.length&&void 0!==i?i.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let i=t.at(-1);"paragraph"===(null==i?void 0:i.type)||"text"===(null==i?void 0:i.type)?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+o.raw,i.text+="\n"+o.text,this.inlineQueue.at(-1).src=i.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let i=t.at(-1);"paragraph"===(null==i?void 0:i.type)||"text"===(null==i?void 0:i.type)?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+o.raw,i.text+="\n"+o.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let r=e;if(null==(s=this.options.extensions)?void 0:s.startBlock){let t,i=1/0,a=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},a),"number"==typeof t&&t>=0&&(i=Math.min(i,t))}),i<1/0&&i>=0&&(r=e.substring(0,i+1))}if(this.state.top&&(o=this.tokenizer.paragraph(r))){let a=t.at(-1);i&&"paragraph"===(null==a?void 0:a.type)?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+o.raw,a.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(o),i=r.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let i=t.at(-1);"text"===(null==i?void 0:i.type)?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+o.raw,i.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var i,a,n,s,o;let r,l=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,c.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(l));)r=c[2]?c[2].length:0,l=l.slice(0,c.index+r)+"["+"a".repeat(c[0].length-r-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=(null==(a=null==(i=this.options.hooks)?void 0:i.emStrongMask)?void 0:a.call({lexer:this},l))??l;let d=!1,u="";for(;e;){let i;if(d||(u=""),d=!1,null==(s=null==(n=this.options.extensions)?void 0:n.inline)?void 0:s.some(a=>!!(i=a.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length);let a=t.at(-1);"text"===i.type&&"text"===(null==a?void 0:a.type)?(a.raw+=i.raw,a.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,l,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(null==(o=this.options.extensions)?void 0:o.startInline){let t,i=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(i=Math.min(i,t))}),i<1/0&&i>=0&&(a=e.substring(0,i+1))}if(i=this.tokenizer.inlineText(a)){e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(u=i.raw.slice(-1)),d=!0;let a=t.at(-1);"text"===(null==a?void 0:a.type)?(a.raw+=i.raw,a.text+=i.text):t.push(i);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},jZ=class{constructor(e){o(this,"options"),o(this,"parser"),this.options=e||VX}space(e){return""}code({text:e,lang:t,escaped:i}){var a;let n=null==(a=(t||"").match(GX.notSpaceStart))?void 0:a[0],s=e.replace(GX.endingNewline,"")+"\n";return n?'<pre><code class="language-'+VZ(n)+'">'+(i?s:VZ(s,!0))+"</code></pre>\n":"<pre><code>"+(i?s:VZ(s,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,i=e.start,a="";for(let s=0;s<e.items.length;s++){let t=e.items[s];a+=this.listitem(t)}let n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+a+"</"+n+">\n"}listitem(e){var t;let i="";if(e.task){let a=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=a+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=a+" "+VZ(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):i+=a+" "}return i+=this.parser.parse(e.tokens,!!e.loose),`<li>${i}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);t+=this.tablerow({text:i});let a="";for(let n=0;n<e.rows.length;n++){let t=e.rows[n];i="";for(let e=0;e<t.length;e++)i+=this.tablecell(t[e]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+a+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${VZ(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let a=this.parser.parseInline(i),n=UZ(e);if(null===n)return a;let s='<a href="'+(e=n)+'"';return t&&(s+=' title="'+VZ(t)+'"'),s+=">"+a+"</a>",s}image({href:e,title:t,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let n=UZ(e);if(null===n)return VZ(i);let s=`<img src="${e=n}" alt="${i}"`;return t&&(s+=` title="${VZ(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:VZ(e.text)}},qZ=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},KZ=class e{constructor(e){o(this,"options"),o(this,"renderer"),o(this,"textRenderer"),this.options=e||VX,this.options.renderer=this.options.renderer||new jZ,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qZ}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(e,t=!0){var i,a;let n="";for(let s=0;s<e.length;s++){let o=e[s];if(null==(a=null==(i=this.options.extensions)?void 0:i.renderers)?void 0:a[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){n+=t||"";continue}}let r=o;switch(r.type){case"space":n+=this.renderer.space(r);continue;case"hr":n+=this.renderer.hr(r);continue;case"heading":n+=this.renderer.heading(r);continue;case"code":n+=this.renderer.code(r);continue;case"table":n+=this.renderer.table(r);continue;case"blockquote":n+=this.renderer.blockquote(r);continue;case"list":n+=this.renderer.list(r);continue;case"html":n+=this.renderer.html(r);continue;case"def":n+=this.renderer.def(r);continue;case"paragraph":n+=this.renderer.paragraph(r);continue;case"text":{let i=r,a=this.renderer.text(i);for(;s+1<e.length&&"text"===e[s+1].type;)i=e[++s],a+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){var i,a;let n="";for(let s=0;s<e.length;s++){let o=e[s];if(null==(a=null==(i=this.options.extensions)?void 0:i.renderers)?void 0:a[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}let r=o;switch(r.type){case"escape":case"text":n+=t.text(r);break;case"html":n+=t.html(r);break;case"link":n+=t.link(r);break;case"image":n+=t.image(r);break;case"strong":n+=t.strong(r);break;case"em":n+=t.em(r);break;case"codespan":n+=t.codespan(r);break;case"br":n+=t.br(r);break;case"del":n+=t.del(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return n}},XZ=(t=class{constructor(e){o(this,"options"),o(this,"block"),this.options=e||VX}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?WZ.lex:WZ.lexInline}provideParser(){return this.block?KZ.parse:KZ.parseInline}},o(t,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),o(t,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),t),ZZ=new class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",KZ),o(this,"Renderer",jZ),o(this,"TextRenderer",qZ),o(this,"Lexer",WZ),o(this,"Tokenizer",GZ),o(this,"Hooks",XZ),this.use(...e)}walkTokens(e,t){var i,a;let n=[];for(let s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{let e=s;for(let i of e.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of e.rows)for(let e of i)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=s;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=s;(null==(a=null==(i=this.defaults.extensions)?void 0:i.childTokens)?void 0:a[e.type])?this.defaults.extensions.childTokens[e.type].forEach(i=>{let a=e[i].flat(1/0);n=n.concat(this.walkTokens(a,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let a=e.renderer.apply(this,t);return!1===a&&(a=i.apply(this,t)),a}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),i.extensions=t),e.renderer){let t=this.defaults.renderer||new jZ(this.defaults);for(let i in e.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let a=i,n=e.renderer[a],s=t[a];t[a]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=s.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new GZ(this.defaults);for(let i in e.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let a=i,n=e.tokenizer[a],s=t[a];t[a]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=s.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new XZ;for(let i in e.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let a=i,n=e.hooks[a],s=t[a];XZ.passThroughHooks.has(i)?t[a]=e=>{if(this.defaults.async&&XZ.passThroughHooksRespectAsync.has(i))return(async()=>{let i=await n.call(t,e);return s.call(t,i)})();let a=n.call(t,e);return s.call(t,a)}:t[a]=(...e)=>{if(this.defaults.async)return(async()=>{let i=await n.apply(t,e);return!1===i&&(i=await s.apply(t,e)),i})();let i=n.apply(t,e);return!1===i&&(i=s.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,a=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(a.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return WZ.lex(e,t??this.defaults)}parser(e,t){return KZ.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let a={...i},n={...this.defaults,...a},s=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===a.async)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let i=n.hooks?await n.hooks.preprocess(t):t,a=await(n.hooks?await n.hooks.provideLexer():e?WZ.lex:WZ.lexInline)(i,n),s=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(s,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():e?KZ.parse:KZ.parseInline)(s,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(s);try{n.hooks&&(t=n.hooks.preprocess(t));let i=(n.hooks?n.hooks.provideLexer():e?WZ.lex:WZ.lexInline)(t,n);n.hooks&&(i=n.hooks.processAllTokens(i)),n.walkTokens&&this.walkTokens(i,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():e?KZ.parse:KZ.parseInline)(i,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+VZ(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}};function QZ(e,t){return ZZ.parse(e,t)}function JZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=Array(t);i<t;i++)a[i]=e[i];return a}function eQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,n,s,o,r=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t);else for(;!(l=(a=s.call(i)).done)&&(r.push(a.value),r.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw n}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return JZ(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?JZ(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}QZ.options=QZ.setOptions=function(e){return ZZ.setOptions(e),QZ.defaults=ZZ.defaults,UX(QZ.defaults),QZ},QZ.getDefaults=$X,QZ.defaults=VX,QZ.use=function(...e){return ZZ.use(...e),QZ.defaults=ZZ.defaults,UX(QZ.defaults),QZ},QZ.walkTokens=function(e,t){return ZZ.walkTokens(e,t)},QZ.parseInline=ZZ.parseInline,QZ.Parser=KZ,QZ.parser=KZ.parse,QZ.Renderer=jZ,QZ.TextRenderer=qZ,QZ.Lexer=WZ,QZ.lexer=WZ.lex,QZ.Tokenizer=GZ,QZ.Hooks=XZ,QZ.parse=QZ,QZ.options,QZ.setOptions,QZ.use,QZ.walkTokens,QZ.parseInline,KZ.parse,WZ.lex;const tQ=Object.entries,iQ=Object.setPrototypeOf,aQ=Object.isFrozen,nQ=Object.getPrototypeOf,sQ=Object.getOwnPropertyDescriptor;let oQ=Object.freeze,rQ=Object.seal,lQ=Object.create,cQ="undefined"!=typeof Reflect&&Reflect,dQ=cQ.apply,uQ=cQ.construct;oQ||(oQ=function(e){return e}),rQ||(rQ=function(e){return e}),dQ||(dQ=function(e,t){for(var i=arguments.length,a=new Array(i>2?i-2:0),n=2;n<i;n++)a[n-2]=arguments[n];return e.apply(t,a)}),uQ||(uQ=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return new e(...i)});const pQ=MQ(Array.prototype.forEach),hQ=MQ(Array.prototype.lastIndexOf),fQ=MQ(Array.prototype.pop),gQ=MQ(Array.prototype.push),mQ=MQ(Array.prototype.splice),_Q=Array.isArray,vQ=MQ(String.prototype.toLowerCase),bQ=MQ(String.prototype.toString),yQ=MQ(String.prototype.match),xQ=MQ(String.prototype.replace),SQ=MQ(String.prototype.indexOf),wQ=MQ(String.prototype.trim),CQ=MQ(Number.prototype.toString),EQ=MQ(Boolean.prototype.toString),kQ="undefined"==typeof BigInt?null:MQ(BigInt.prototype.toString),TQ="undefined"==typeof Symbol?null:MQ(Symbol.prototype.toString),AQ=MQ(Object.prototype.hasOwnProperty),RQ=MQ(Object.prototype.toString),IQ=MQ(RegExp.prototype.test),DQ=(OQ=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return uQ(OQ,t)});var OQ;function MQ(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return dQ(e,t,a)}}function NQ(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vQ;if(iQ&&iQ(e,null),!_Q(t))return e;let a=t.length;for(;a--;){let n=t[a];if("string"==typeof n){const e=i(n);e!==n&&(aQ(t)||(t[a]=e),n=e)}e[n]=!0}return e}function LQ(e){for(let t=0;t<e.length;t++){AQ(e,t)||(e[t]=null)}return e}function PQ(e){const t=lQ(null);for(const a of tQ(e)){var i=eQ(a,2);const n=i[0],s=i[1];AQ(e,n)&&(_Q(s)?t[n]=LQ(s):s&&"object"==typeof s&&s.constructor===Object?t[n]=PQ(s):t[n]=s)}return t}function FQ(e,t){for(;null!==e;){const i=sQ(e,t);if(i){if(i.get)return MQ(i.get);if("function"==typeof i.value)return MQ(i.value)}e=nQ(e)}return function(){return null}}const BQ=oQ(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$Q=oQ(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),VQ=oQ(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),UQ=oQ(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),HQ=oQ(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zQ=oQ(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),YQ=oQ(["#text"]),GQ=oQ(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),WQ=oQ(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),jQ=oQ(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qQ=oQ(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),KQ=rQ(/{{[\w\W]*|^[\w\W]*}}/g),XQ=rQ(/<%[\w\W]*|^[\w\W]*%>/g),ZQ=rQ(/\${[\w\W]*/g),QQ=rQ(/^data-[\-\w.\u00B7-\uFFFF]+$/),JQ=rQ(/^aria-[\-\w]+$/),eJ=rQ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tJ=rQ(/^(?:\w+script|data):/i),iJ=rQ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aJ=rQ(/^html$/i),nJ=rQ(/^[a-z][.\w]*(-[.\w]+)+$/i),sJ=rQ(/<[/\w!]/g),oJ=rQ(/<[/\w]/g),rJ=rQ(/<\/no(script|embed|frames)/i),lJ=rQ(/\/>/i),cJ=1,dJ=3,uJ=7,pJ=8,hJ=9,fJ=11,gJ=function(e,t,i,a){return AQ(e,t)&&_Q(e[t])?NQ(a.base?PQ(a.base):{},e[t],a.transform):i};var mJ=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const i=t=>e(t);if(i.version="3.4.13",i.removed=[],!t||!t.document||t.document.nodeType!==hJ||!t.Element)return i.isSupported=!1,i;let a=t.document;const n=a,s=n.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,r=t.Node,l=t.Element,c=t.NodeFilter,d=t.NamedNodeMap;void 0===d&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const u=t.DOMParser,p=t.trustedTypes,h=l.prototype,f=FQ(h,"cloneNode"),g=FQ(h,"remove"),m=FQ(h,"nextSibling"),_=FQ(h,"childNodes"),v=FQ(h,"parentNode"),b=FQ(h,"shadowRoot"),y=FQ(h,"attributes"),x=r&&r.prototype?FQ(r.prototype,"nodeType"):null,S=r&&r.prototype?FQ(r.prototype,"nodeName"):null,w=r&&r.prototype?FQ(r.prototype,"ownerDocument"):null;if("function"==typeof o){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let C,E,k="",T=!1,A=0;const R=function(){if(A>0)throw DQ('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},I=function(e){R(),A++;try{return C.createHTML(e)}finally{A--}},D=a,O=D.implementation,M=D.createNodeIterator,N=D.createDocumentFragment,L=D.getElementsByTagName,P=n.importNode;let F={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof tQ&&"function"==typeof v&&O&&void 0!==O.createHTMLDocument;const B=KQ,$=XQ,V=ZQ,U=QQ,H=JQ,z=tJ,Y=iJ,G=nJ;let W=eJ,j=null;const q=NQ({},[...BQ,...$Q,...VQ,...HQ,...YQ]);let K=null;const X=NQ({},[...GQ,...WQ,...jQ,...qQ]);let Z=Object.seal(lQ(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}})),Q=null,J=null;const ee=Object.seal(lQ(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let te=!0,ie=!0,ae=!1,ne=!0,se=!1,oe=!0,re=!1,le=!1,ce=null,de=null,ue=!1,pe=!1,he=!1,fe=!1,ge=!0,me=!1;const _e="user-content-";let ve=!0,be=!1,ye={},xe=null;const Se=NQ({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let we=null;const Ce=NQ({},["audio","video","img","source","image","track"]);let Ee=null;const ke=NQ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Te="http://www.w3.org/1998/Math/MathML",Ae="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let Ie=Re,De=!1,Oe=null;const Me=NQ({},[Te,Ae,Re],bQ),Ne=oQ(["mi","mo","mn","ms","mtext"]);let Le=NQ({},Ne);const Pe=oQ(["annotation-xml"]);let Fe=NQ({},Pe);const Be=NQ({},["title","style","font","a","script"]);let $e=null;const Ve=["application/xhtml+xml","text/html"];let Ue=null,He=null;const ze=a.createElement("form"),Ye=function(e){return e instanceof RegExp||e instanceof Function},Ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(He&&He===e)return;e&&"object"==typeof e||(e={}),e=PQ(e),$e=-1===Ve.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ue="application/xhtml+xml"===$e?bQ:vQ,j=gJ(e,"ALLOWED_TAGS",q,{transform:Ue}),K=gJ(e,"ALLOWED_ATTR",X,{transform:Ue}),Oe=gJ(e,"ALLOWED_NAMESPACES",Me,{transform:bQ}),Ee=gJ(e,"ADD_URI_SAFE_ATTR",ke,{transform:Ue,base:ke}),we=gJ(e,"ADD_DATA_URI_TAGS",Ce,{transform:Ue,base:Ce}),xe=gJ(e,"FORBID_CONTENTS",Se,{transform:Ue}),Q=gJ(e,"FORBID_TAGS",PQ({}),{transform:Ue}),J=gJ(e,"FORBID_ATTR",PQ({}),{transform:Ue}),ye=!!AQ(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?PQ(e.USE_PROFILES):e.USE_PROFILES),te=!1!==e.ALLOW_ARIA_ATTR,ie=!1!==e.ALLOW_DATA_ATTR,ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,se=e.SAFE_FOR_TEMPLATES||!1,oe=!1!==e.SAFE_FOR_XML,re=e.WHOLE_DOCUMENT||!1,pe=e.RETURN_DOM||!1,he=e.RETURN_DOM_FRAGMENT||!1,fe=e.RETURN_TRUSTED_TYPE||!1,ue=e.FORCE_BODY||!1,ge=!1!==e.SANITIZE_DOM,me=e.SANITIZE_NAMED_PROPS||!1,ve=!1!==e.KEEP_CONTENT,be=e.IN_PLACE||!1,W=function(e){try{return IQ(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:eJ,Ie="string"==typeof e.NAMESPACE?e.NAMESPACE:Re,Le=AQ(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?PQ(e.MATHML_TEXT_INTEGRATION_POINTS):NQ({},Ne),Fe=AQ(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?PQ(e.HTML_INTEGRATION_POINTS):NQ({},Pe);const t=AQ(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?PQ(e.CUSTOM_ELEMENT_HANDLING):lQ(null);if(Z=lQ(null),AQ(t,"tagNameCheck")&&Ye(t.tagNameCheck)&&(Z.tagNameCheck=t.tagNameCheck),AQ(t,"attributeNameCheck")&&Ye(t.attributeNameCheck)&&(Z.attributeNameCheck=t.attributeNameCheck),AQ(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Z.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),rQ(Z),se&&(ie=!1),he&&(pe=!0),ye&&(j=NQ({},YQ),K=lQ(null),!0===ye.html&&(NQ(j,BQ),NQ(K,GQ)),!0===ye.svg&&(NQ(j,$Q),NQ(K,WQ),NQ(K,qQ)),!0===ye.svgFilters&&(NQ(j,VQ),NQ(K,WQ),NQ(K,qQ)),!0===ye.mathMl&&(NQ(j,HQ),NQ(K,jQ),NQ(K,qQ))),ee.tagCheck=null,ee.attributeCheck=null,AQ(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?ee.tagCheck=e.ADD_TAGS:_Q(e.ADD_TAGS)&&(j===q&&(j=PQ(j)),NQ(j,e.ADD_TAGS,Ue))),AQ(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?ee.attributeCheck=e.ADD_ATTR:_Q(e.ADD_ATTR)&&(K===X&&(K=PQ(K)),NQ(K,e.ADD_ATTR,Ue))),AQ(e,"ADD_URI_SAFE_ATTR")&&_Q(e.ADD_URI_SAFE_ATTR)&&NQ(Ee,e.ADD_URI_SAFE_ATTR,Ue),AQ(e,"FORBID_CONTENTS")&&_Q(e.FORBID_CONTENTS)&&(xe===Se&&(xe=PQ(xe)),NQ(xe,e.FORBID_CONTENTS,Ue)),AQ(e,"ADD_FORBID_CONTENTS")&&_Q(e.ADD_FORBID_CONTENTS)&&(xe===Se&&(xe=PQ(xe)),NQ(xe,e.ADD_FORBID_CONTENTS,Ue)),ve&&(j["#text"]=!0),re&&NQ(j,["html","head","body"]),j.table&&(NQ(j,["tbody"]),delete Q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw DQ('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw DQ('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=C;C=e.TRUSTED_TYPES_POLICY;try{k=I("")}catch(i){throw C=t,i}}else null===e.TRUSTED_TYPES_POLICY?(C=void 0,k=""):(void 0===C&&(T||(E=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(i=t.getAttribute(a));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(s){return null}}(p,s),T=!0),C=E),C&&"string"==typeof k&&(k=I("")));oQ&&oQ(e),He=e},We=NQ({},[...$Q,...VQ,...UQ]),je=NQ({},[...HQ,...zQ]),qe=function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ie,tagName:"template"});const i=vQ(e.tagName),a=vQ(t.tagName);return!!Oe[e.namespaceURI]&&(e.namespaceURI===Ae?function(e,t,i){return t.namespaceURI===Re?"svg"===e:t.namespaceURI===Te?"svg"===e&&("annotation-xml"===i||Le[i]):Boolean(We[e])}(i,t,a):e.namespaceURI===Te?function(e,t,i){return t.namespaceURI===Re?"math"===e:t.namespaceURI===Ae?"math"===e&&Fe[i]:Boolean(je[e])}(i,t,a):e.namespaceURI===Re?function(e,t,i){return!(t.namespaceURI===Ae&&!Fe[i])&&!(t.namespaceURI===Te&&!Le[i])&&!je[e]&&(Be[e]||!We[e])}(i,t,a):!("application/xhtml+xml"!==$e||!Oe[e.namespaceURI]))},Ke=function(e){gQ(i.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(g(e),!v(e))throw DQ("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Xe=function(e){Je(e);const t=_(e);if(t){const e=[];pQ(t,t=>{gQ(e,t)}),pQ(e,e=>{try{g(e)}catch(t){}})}const i=y(e);if(i)for(let n=i.length-1;n>=0;--n){const t=i[n],s=t&&t.name;if("string"==typeof s)try{e.removeAttribute(s)}catch(a){}}},Ze=function(e,t){try{gQ(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(a){gQ(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(pe||he)try{Ke(t)}catch(a){}else try{t.setAttribute(e,"")}catch(a){}},Qe=function(e){const t=y(e);if(t)for(let a=t.length-1;a>=0;--a){const n=t[a],s=n&&n.name;if("string"==typeof s&&!K[Ue(s)])try{e.removeAttribute(s)}catch(i){}}},Je=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(x?x(e):e.nodeType)===cJ&&Qe(e);const i=_(e);if(i)for(let a=i.length-1;a>=0;--a)t.push(i[a])}},et=function(e){let t=null,i=null;if(ue)e="<remove></remove>"+e;else{const t=yQ(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===$e&&Ie===Re&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=C?I(e):e;if(Ie===Re)try{t=(new u).parseFromString(n,$e)}catch(o){}if(!t||!t.documentElement){t=O.createDocument(Ie,"template",null);try{t.documentElement.innerHTML=De?k:n}catch(o){}}const s=t.body||t.documentElement;return e&&i&&s.insertBefore(a.createTextNode(i),s.childNodes[0]||null),Ie===Re?L.call(t,re?"html":"body")[0]:re?t.documentElement:s},tt=function(e){const t=w?w(e):e.ownerDocument;return M.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},it=function(e){return e=xQ(e,B," "),e=xQ(e,$," "),e=xQ(e,V," ")},at=function(e){var t;e.normalize();const i=w?w(e):e.ownerDocument,a=M.call(i||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=a.nextNode();for(;n;)n.data=it(n.data),n=a.nextNode();const s=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");s&&pQ(s,e=>{st(e.content)&&at(e.content)})},nt=function(e){const t=S?S(e):null;return"string"==typeof t&&("form"===Ue(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==x(e)||e.childNodes!==_(e)))},st=function(e){if(!x||"object"!=typeof e||null===e)return!1;try{return x(e)===fJ}catch(t){return!1}},ot=function(e){if(!x||"object"!=typeof e||null===e)return!1;try{return"number"==typeof x(e)}catch(t){return!1}};function rt(e,t,a){0!==e.length&&pQ(e,e=>{e.call(i,t,a,He)})}const lt=function(e,t,i,a){return 0===e.length?t:t===i||t===a?PQ(t):t},ct=function(e,t){if(rt(F.beforeSanitizeElements,e,null),e!==t&&null===v(e))return be&&Je(e),!0;if(nt(e))return Ke(e),!0;const a=Ue(S?S(e):e.nodeName);if(j=lt(F.uponSanitizeElement,j,q,ce),rt(F.uponSanitizeElement,e,{tagName:a,allowedTags:j}),e!==t&&null===v(e))return be&&Je(e),!0;if(function(e,t){return!!(oe&&e.hasChildNodes()&&!ot(e.firstElementChild)&&IQ(sJ,e.textContent)&&IQ(sJ,e.innerHTML))||!(!oe||e.namespaceURI!==Re||"style"!==t||!ot(e.firstElementChild))||e.nodeType===uJ||!(!oe||e.nodeType!==pJ||!IQ(oJ,e.data))}(e,a))return Ke(e),!0;if(Q[a]||!(ee.tagCheck instanceof Function&&ee.tagCheck(a))&&!j[a]){const i=function(e,t,i){if(!Q[t]&&pt(t)){if(Z.tagNameCheck instanceof RegExp&&IQ(Z.tagNameCheck,t))return!1;if(Z.tagNameCheck instanceof Function&&Z.tagNameCheck(t))return!1}if(ve&&!xe[t]){const t=v(e),a=_(e);if(a&&t)for(let n=a.length-1;n>=0;--n){const s=e===i?f(a[n],!0):a[n];t.insertBefore(s,m(e))}}return Ke(e),!0}(e,a,t);return!1===i&&rt(F.afterSanitizeElements,e,null),i}if((x?x(e):e.nodeType)===cJ&&!qe(e))return Ke(e),!0;if(("noscript"===a||"noembed"===a||"noframes"===a)&&IQ(rJ,e.innerHTML))return Ke(e),!0;if(se&&e.nodeType===dJ){const t=it(e.textContent);e.textContent!==t&&(gQ(i.removed,{element:e.cloneNode()}),e.textContent=t)}return rt(F.afterSanitizeElements,e,null),!1},dt=function(e,t,i){if(J[t])return!1;if(oe&&"patchsrc"===t)return!1;if(oe&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(ge&&("id"===t||"name"===t)&&(i in a||i in ze))return!1;const n=K[t]||ee.attributeCheck instanceof Function&&ee.attributeCheck(t,e);if(ie&&IQ(U,t));else if(te&&IQ(H,t));else if(n)if(Ee[t]);else if(IQ(W,xQ(i,Y,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==SQ(i,"data:")||!we[e]){if(ae&&!IQ(z,xQ(i,Y,"")));else if(i)return!1}else;else if(!(pt(e)&&(Z.tagNameCheck instanceof RegExp&&IQ(Z.tagNameCheck,e)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(e))&&(Z.attributeNameCheck instanceof RegExp&&IQ(Z.attributeNameCheck,t)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(t,e))||"is"===t&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&IQ(Z.tagNameCheck,i)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(i))))return!1;return!0},ut=NQ({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pt=function(e){return!ut[vQ(e)]&&IQ(G,e)},ht=function(e,t,i,a){if(C&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!i)switch(p.getAttributeType(e,t)){case"TrustedHTML":return I(a);case"TrustedScriptURL":return function(e){R(),A++;try{return C.createScriptURL(e)}finally{A--}}(a)}return a},ft=function(e,t,a,n){try{a?e.setAttributeNS(a,t,n):e.setAttribute(t,n),nt(e)?Ke(e):fQ(i.removed)}catch(s){Ze(t,e)}},gt=function(e){rt(F.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||nt(e))return;K=lt(F.uponSanitizeAttribute,K,X,de);const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let a=t.length;const n=Ue(e.nodeName);for(;a--;){const s=t[a],o=s.name,r=s.namespaceURI,l=s.value,c=Ue(o),d=l;let u="value"===o?d:wQ(d);i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,rt(F.uponSanitizeAttribute,e,i),u=i.attrValue,!me||"id"!==c&&"name"!==c||0===SQ(u,_e)||(Ze(o,e),u=_e+u),oe&&IQ(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)?Ze(o,e):"attributename"===c&&yQ(u,"href")?Ze(o,e):i.forceKeepAttr||(i.keepAttr&&(ne||!IQ(lJ,u))?(se&&(u=it(u)),dt(n,c,u)?(u=ht(n,c,r,u),u!==d&&ft(e,o,r,u)):Ze(o,e)):Ze(o,e))}rt(F.afterSanitizeAttributes,e,null)},mt=function(e){let t=null;const i=tt(e);for(rt(F.beforeSanitizeShadowDOM,e,null);t=i.nextNode();){rt(F.uponSanitizeShadowNode,t,null),ct(t,e),gt(t),st(t.content)&&mt(t.content);if((x?x(t):t.nodeType)===cJ){const e=b(t);st(e)&&(_t(e),mt(e))}}rt(F.afterSanitizeShadowDOM,e,null)},_t=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){mt(e.shadow);continue}const i=e.node,a=(x?x(i):i.nodeType)===cJ,n=_(i);if(n)for(let s=n.length-1;s>=0;--s)t.push({node:n[s],shadow:null});if(a){const e=S?S(i):null;if("string"==typeof e&&"template"===Ue(e)){const e=i.content;st(e)&&t.push({node:e,shadow:null})}}if(a){const e=b(i);st(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,s=null,o=null,r=null;if(De=!e,De&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ot(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return CQ(e);case"boolean":return EQ(e);case"bigint":return kQ?kQ(e):"0";case"symbol":return TQ?TQ(e):"Symbol()";case"undefined":default:return RQ(e);case"function":case"object":{if(null===e)return RQ(e);const t=e,i=FQ(t,"toString");if("function"==typeof i){const e=i(t);return"string"==typeof e?e:RQ(e)}return RQ(e)}}}(e)))throw DQ("dirty is not a string, aborting");if(!i.isSupported)return e;le?(j=ce,K=de):Ge(t),(F.uponSanitizeElement.length>0||F.uponSanitizeAttribute.length>0)&&(j=PQ(j)),F.uponSanitizeAttribute.length>0&&(K=PQ(K)),i.removed=[];const l=be&&"string"!=typeof e&&ot(e);if(l){!function(e){if(!oe)return;const t=[e];for(;t.length>0;){const e=t.pop(),a=x?x(e):e.nodeType;if(a===uJ||a===pJ&&IQ(oJ,e.data)){try{g(e)}catch(i){}continue}if(a===cJ){const t=e,a=Ue(S?S(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==a&&"output"!==a&&t.removeAttribute("for")}catch(i){}}const n=_(e);if(n)for(let i=n.length-1;i>=0;--i)t.push(n[i])}}(e);const t=S?S(e):e.nodeName;if("string"==typeof t){const i=Ue(t);if(!j[i]||Q[i])throw Xe(e),DQ("root node is forbidden and cannot be sanitized in-place")}if(nt(e))throw Xe(e),DQ("root node is clobbered and cannot be sanitized in-place");try{_t(e)}catch(u){throw Xe(e),u}}else if(ot(e))a=et("\x3c!----\x3e"),s=a.ownerDocument.importNode(e,!0),s.nodeType===cJ&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s),_t(s);else{if(!pe&&!se&&!re&&-1===e.indexOf("<"))return C&&fe?I(e):e;if(a=et(e),!a)return pe?null:fe?k:""}a&&ue&&Ke(a.firstChild);const c=l?e:a;try{const e=tt(c);for(;o=e.nextNode();)ct(o,c),gt(o),st(o.content)&&mt(o.content)}catch(u){throw l&&(Xe(e),pQ(i.removed,e=>{e.element&&Je(e.element)})),u}if(l)return pQ(i.removed,e=>{e.element&&Je(e.element)}),se&&at(e),e;if(pe){if(se&&at(a),he)for(r=N.call(a.ownerDocument);a.firstChild;)r.appendChild(a.firstChild);else r=a;return(K.shadowroot||K.shadowrootmode)&&(r=P.call(n,r,!0)),r}let d=re?a.outerHTML:a.innerHTML;return re&&j["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&IQ(aJ,a.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+d),se&&(d=it(d)),C&&fe?I(d):d},i.setConfig=function(){Ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),le=!0,ce=j,de=K},i.clearConfig=function(){He=null,le=!1,ce=null,de=null,C=E,k=""},i.isValidAttribute=function(e,t,i){He||Ge({});const a=Ue(e),n=Ue(t);return dt(a,n,i)},i.addHook=function(e,t){"function"==typeof t&&AQ(F,e)&&gQ(F[e],t)},i.removeHook=function(e,t){if(AQ(F,e)){if(void 0!==t){const i=hQ(F[e],t);return-1===i?void 0:mQ(F[e],i,1)[0]}return fQ(F[e])}},i.removeHooks=function(e){AQ(F,e)&&(F[e]=[])},i.removeAllHooks=function(){F={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();function _J(e){e&&!e.__fsStripReservedElClassHook&&(e.addHook("uponSanitizeAttribute",(e,t)=>{"class"===t.attrName&&t.attrValue&&(t.attrValue=t.attrValue.split(/\s+/).filter(e=>!/^el-/.test(e)).join(" "))}),e.__fsStripReservedElClassHook=!0)}_J(mJ);const vJ={gfm:!0,breaks:!0};function bJ(e){if(!e)return"";try{return mJ.sanitize(QZ.parse(e,vJ))}catch(NO){return mJ.sanitize(e.replace(/\n/g,"<br>"))}}const yJ={class:"fs_container"},xJ={class:"fs_ai_header_section"},SJ={class:"fs_icon_container"},wJ=["src"],CJ={class:"fs_text_container"},EJ={class:"fs_header_text"},kJ={class:"fs_description_text"},TJ={class:"fs_close"},AJ=["src"],RJ={key:0,class:"fs_draft"},IJ=["src"],DJ={class:"fs_draft_widget"},OJ=["onClick"],MJ={class:"fs_response_section"},NJ={key:0,class:"fs_response_container"},LJ={class:"fs_response_header"},PJ={class:"fs_resize"},FJ=["src"],BJ={class:"fs_response_actions"},$J={class:"fs_copy_text"},VJ=["src"],UJ={class:"fs_regenerate"},HJ=["src"],zJ={class:"fs_response_insert_button"},YJ=["innerHTML"],GJ={key:1,class:"fs_ai_response_loading"},WJ={class:"fs_main_content"},jJ={class:"fs_prompt_wrapper"},qJ=["placeholder"],KJ={class:"fs_prompt_button"},XJ=["src"],ZJ={key:0,class:"fs_error_message"},QJ={class:"fs_prompt_subtitle"},JJ={class:"fs_prompt_options_container"},e0=["onClick"],t0={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i0=["fill"],a0={class:"fs_prompt_option_text"};const n0=lH({name:"AIResponseGenerator",props:["selectedText","type"],data:()=>({prompt:"",presetPrompt:"",errorMessage:"",aiResponse:"",loading:!1,ticketID:0,selectedPrompt:"",isFullSize:!1,presetPrompts:[],draftData:[],showDraft:!1,finalPrompts:[]}),computed:{title(){return"modifyResponse"===this.type?"Enhance Responses with AI":"Generate Responses with AI"},description(){return"modifyResponse"===this.type?"Refine ticket responses with AI to enhance clarity and precision.":"Let AI generate ticket responses to enhance support efficiency."},formattedResponse(){return bJ(this.aiResponse)}},methods:{saveDraft(){const e="modifyResponse"===this.type?"modifyResponseDraft":"createResponseDraft",t=JSON.parse(this.$getData(e)||"[]")||[];t.length>=3&&t.shift(),t.push(this.aiResponse),this.$saveData(e,JSON.stringify(t)),this.draftData=t},generateResponse(e){if(!e.trim())return void(this.errorMessage="Prompt is required.");this.errorMessage="",this.loading=!0;const t={content:e,id:this.ticketID,type:this.type};"createResponse"!==this.type&&(t.selectedText=this.selectedText,t.type=this.type),this.$post(`ai/${this.ticketID}/generate-response`,t).then(t=>{this.aiResponse=t,this.loading=!1,this.finalPrompts=e,(this.prompt||this.aiResponse)&&(this.selectedPrompt="",this.saveDraft())}).catch(e=>{this.loading=!1,this.$handleError(e)})},selectPresetPrompt(e){this.selectedPrompt=e;const t=this.presetPrompts.find(t=>t.text===e.text);this.presetPrompt=`${t.description}`,this.prompt="",this.generateResponse(this.presetPrompt)},isSelected(e){return this.selectedPrompt===e},closeModal(){this.removeDraft(),this.$emit("close"),this.resetData()},async copyText(){try{await navigator.clipboard.writeText(this.aiResponse),this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}catch(e){this.$notify({message:this.$t("Something went wrong"),type:"danger",position:"bottom-right"})}},resetData(){this.aiResponse="",this.selectedPrompt="",this.prompt="",this.removeDraft()},insertReply(){this.$emit("insert",this.formattedResponse),this.resetData()},fetchPresets(){this.$get("ai/preset-prompts",{type:this.type}).then(e=>{this.presetPrompts=e}).catch(e=>{this.$handleError(e)})},removeDraft(){const e="modifyResponse"===this.type?"modifyResponseDraft":"createResponseDraft";this.removeData(e),this.draftData=[]},removeData(e){let t=this.$getData("__fluentsupport_data");t&&(t=JSON.parse(t),delete t[e],this.$saveData("__fluentsupport_data",JSON.stringify(t)))},getSnippet:e=>e.length>30?e.substring(0,30)+"...":e,selectDraft(e){this.aiResponse=e}},mounted(){this.ticketID=parseInt(this.$route.params.ticket_id),this.fetchPresets(),this.removeDraft()}},[["render",function(e,t,i,a,n,s){const o=Sk,r=bI,l=AL,c=WB;return zd(),qd("div",yJ,[tu("div",xJ,[tu("div",SJ,[tu("img",{loading:"lazy",src:e.appVars.asset_url+"images/aiMagicIcon.svg",class:"fs_icon"},null,8,wJ)]),tu("div",CJ,[tu("div",EJ,me(e.$t(s.title)),1),tu("div",kJ,me(e.$t(s.description)),1)]),tu("div",TJ,[iu(o,{class:"fs_close_button",onClick:s.closeModal},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:""},null,8,AJ)],void 0),_:1},8,["onClick"])])]),n.draftData.length>1?(zd(),qd("div",RJ,[iu(o,{class:"fs_draft_button",onClick:t[0]||(t[0]=e=>n.showDraft=!n.showDraft)},{default:vr(()=>[tu("span",null,me(e.$t("Draft")),1),tu("img",{class:se(["fs_draft_arrow",{"rotate-down":n.showDraft}]),src:e.appVars.asset_url+"images/arrowRight.svg",alt:""},null,10,IJ)],void 0),_:1}),tu("div",null,[iu(r,null,{default:vr(()=>[br(tu("div",DJ,[(zd(!0),qd(Fd,null,sc(n.draftData,(e,t)=>(zd(),qd("div",{key:t,class:"fs_draft_item",onClick:t=>s.selectDraft(e)},[tu("h3",null,"Draft "+me(t+1),1),tu("p",null,me(s.getSnippet(e)),1)],8,OJ))),128))],512),[[yp,n.showDraft]])],void 0),_:1})])])):ru("",!0),tu("div",MJ,[n.aiResponse&&!n.loading?br((zd(),qd("div",NJ,[tu("div",LJ,[tu("div",PJ,[iu(o,{class:"fs_resize_button",text:"",onClick:t[1]||(t[1]=e=>n.isFullSize=!n.isFullSize)},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/resize.svg",alt:""},null,8,FJ)],void 0),_:1})]),tu("div",BJ,[tu("div",$J,[iu(o,{class:"fs_copy_text_button",text:"",onClick:s.copyText},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/copyText.svg",alt:""},null,8,VJ)],void 0),_:1},8,["onClick"])]),tu("div",UJ,[iu(o,{class:"fs_regenerate_button",onClick:t[2]||(t[2]=e=>s.generateResponse(n.finalPrompts))},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/regenerate.svg",alt:""},null,8,HJ)],void 0),_:1})]),tu("div",zJ,[iu(o,{class:"fs_insert_button",onClick:t[3]||(t[3]=e=>s.insertReply())},{default:vr(()=>[su(me(e.$t("Insert Content")),1)],void 0),_:1})])])]),tu("div",{class:se(["fs_response_content",{"full-size":n.isFullSize}])},[tu("div",{innerHTML:s.formattedResponse},null,8,YJ)],2)])),[[c,n.loading]]):ru("",!0),n.loading?(zd(),qd("div",GJ,[iu(l,{rows:4,animated:""})])):ru("",!0)]),tu("div",WJ,[tu("div",jJ,[br(tu("textarea",{"onUpdate:modelValue":t[4]||(t[4]=e=>n.prompt=e),rows:"3",placeholder:e.$t("Enter your prompt here..."),class:"fs_textarea",required:""},null,8,qJ),[[gh,n.prompt]]),tu("div",KJ,[iu(o,{class:"fs_prompt_submit",onClick:t[5]||(t[5]=e=>s.generateResponse(n.prompt))},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/aiPromptSubmitButton.svg",alt:""},null,8,XJ)],void 0),_:1})])]),n.errorMessage?(zd(),qd("div",ZJ,me(n.errorMessage),1)):ru("",!0),tu("div",null,[tu("div",QJ,me(e.$t("Some General Prompts")),1),tu("div",JJ,[(zd(!0),qd(Fd,null,sc(n.presetPrompts,e=>(zd(),qd("div",{key:e.text,class:se(["fs_prompt_option",{fs_prompt_option_selected:e===n.selectedPrompt}]),onClick:t=>s.selectPresetPrompt(e)},[(zd(),qd("svg",t0,[tu("circle",{cx:"8",cy:"8",r:"2",fill:s.isSelected(e)?"#FFF":"#717784"},null,8,i0)])),tu("div",a0,me(e.label),1)],10,e0))),128))])])])])}]]);function s0(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],a=typeof i;"object"!==a&&"function"!==a||Object.isFrozen(i)||s0(i)}),e}class o0{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r0(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l0(e,...t){const i=Object.create(null);for(const a in e)i[a]=e[a];return t.forEach(function(e){for(const t in e)i[t]=e[t]}),i}const c0=e=>!!e.scope;class d0{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=r0(e)}openNode(e){if(!c0(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){c0(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const u0=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class p0{constructor(){this.rootNode=u0(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=u0({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{p0._collapse(e)}))}}class h0 extends p0{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new d0(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function f0(e){return e?"string"==typeof e?e:e.source:null}function g0(e){return v0("(?=",e,")")}function m0(e){return v0("(?:",e,")*")}function _0(e){return v0("(?:",e,")?")}function v0(...e){return e.map(e=>f0(e)).join("")}function b0(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map(e=>f0(e)).join("|")+")"}function y0(e){return new RegExp(e.toString()+"|").exec("").length-1}const x0=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function S0(e,{joinWith:t}){let i=0;return e.map(e=>{i+=1;const t=i;let a=f0(e),n="";for(;a.length>0;){const e=x0.exec(a);if(!e){n+=a;break}n+=a.substring(0,e.index),a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?n+="\\"+String(Number(e[1])+t):(n+=e[0],"("===e[0]&&i++)}return n}).map(e=>`(${e})`).join(t)}const w0="[a-zA-Z]\\w*",C0="[a-zA-Z_]\\w*",E0="\\b\\d+(\\.\\d+)?",k0="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",T0="\\b(0b[01]+)",A0={begin:"\\\\[\\s\\S]",relevance:0},R0={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A0]},I0={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A0]},D0=function(e,t,i={}){const a=l0({scope:"comment",begin:e,end:t,contains:[]},i);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const n=b0("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:v0(/[ ]+/,"(",n,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},O0=D0("//","$"),M0=D0("/\\*","\\*/"),N0=D0("#","$"),L0={scope:"number",begin:E0,relevance:0},P0={scope:"number",begin:k0,relevance:0},F0={scope:"number",begin:T0,relevance:0},B0={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A0,{begin:/\[/,end:/\]/,relevance:0,contains:[A0]}]},$0={scope:"title",begin:w0,relevance:0},V0={scope:"title",begin:C0,relevance:0},U0={begin:"\\.\\s*"+C0,relevance:0};var H0=Object.freeze({__proto__:null,APOS_STRING_MODE:R0,BACKSLASH_ESCAPE:A0,BINARY_NUMBER_MODE:F0,BINARY_NUMBER_RE:T0,COMMENT:D0,C_BLOCK_COMMENT_MODE:M0,C_LINE_COMMENT_MODE:O0,C_NUMBER_MODE:P0,C_NUMBER_RE:k0,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:N0,IDENT_RE:w0,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:U0,NUMBER_MODE:L0,NUMBER_RE:E0,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:I0,REGEXP_MODE:B0,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=v0(t,/.*\b/,e.binary,/\b.*/)),l0({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:$0,UNDERSCORE_IDENT_RE:C0,UNDERSCORE_TITLE_MODE:V0});function z0(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function Y0(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function G0(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=z0,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function W0(e,t){Array.isArray(e.illegal)&&(e.illegal=b0(...e.illegal))}function j0(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function q0(e,t){void 0===e.relevance&&(e.relevance=1)}const K0=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=i.keywords,e.begin=v0(i.beforeMatch,g0(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},X0=["of","and","for","in","not","or","if","then","parent","list","value"];function Z0(e,t,i="keyword"){const a=Object.create(null);return"string"==typeof e?n(i,e.split(" ")):Array.isArray(e)?n(i,e):Object.keys(e).forEach(function(i){Object.assign(a,Z0(e[i],t,i))}),a;function n(e,i){t&&(i=i.map(e=>e.toLowerCase())),i.forEach(function(t){const i=t.split("|");a[i[0]]=[e,Q0(i[0],i[1])]})}}function Q0(e,t){return t?Number(t):function(e){return X0.includes(e.toLowerCase())}(e)?0:1}const J0={},e1=(e,t)=>{J0[`${e}/${t}`]||(J0[`${e}/${t}`]=!0)},t1=new Error;function i1(e,t,{key:i}){let a=0;const n=e[i],s={},o={};for(let r=1;r<=t.length;r++)o[r+a]=n[r],s[r+a]=!0,a+=y0(t[r-1]);e[i]=o,e[i]._emit=s,e[i]._multi=!0}function a1(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw t1;if("object"!=typeof e.beginScope||null===e.beginScope)throw t1;i1(e,e.begin,{key:"beginScope"}),e.begin=S0(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw t1;if("object"!=typeof e.endScope||null===e.endScope)throw t1;i1(e,e.end,{key:"endScope"}),e.end=S0(e.end,{joinWith:""})}}(e)}function n1(e){function t(t,i){return new RegExp(f0(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(i?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=y0(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(S0(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const i=t.findIndex((e,t)=>t>0&&void 0!==e),a=this.matchIndexes[i];return t.splice(0,i),Object.assign(t,a)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i;return this.rules.slice(e).forEach(([e,i])=>t.addRule(e,i)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let i=t.exec(e);if(this.resumingScanAtSamePosition())if(i&&i.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,i=t.exec(e)}return i&&(this.regexIndex+=i.position+1,this.regexIndex===this.count&&this.considerAll()),i}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l0(e.classNameAliases||{}),function i(n,s){const o=n;if(n.isCompiled)return o;[Y0,j0,a1,K0].forEach(e=>e(n,s)),e.compilerExtensions.forEach(e=>e(n,s)),n.__beforeBegin=null,[G0,W0,q0].forEach(e=>e(n,s)),n.isCompiled=!0;let r=null;return"object"==typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),r=n.keywords.$pattern,delete n.keywords.$pattern),r=r||/\w+/,n.keywords&&(n.keywords=Z0(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(r,!0),s&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=f0(o.end)||"",n.endsWithParent&&s.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+s.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return l0(e,{variants:null},t)}));if(e.cachedVariants)return e.cachedVariants;if(s1(e))return l0(e,{starts:e.starts?l0(e.starts):null});if(Object.isFrozen(e))return l0(e);return e}("self"===e?n:e)})),n.contains.forEach(function(e){i(e,o)}),n.starts&&i(n.starts,s),o.matcher=function(e){const t=new a;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function s1(e){return!!e&&(e.endsWithParent||s1(e.starts))}class o1 extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const r1=r0,l1=l0,c1=Symbol("nomatch"),d1=function(e){const t=Object.create(null),i=Object.create(null),a=[];let n=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:h0};function l(e){return r.noHighlightRe.test(e)}function c(e,t,i){let a="",n="";"object"==typeof t?(a=e,i=t.ignoreIllegals,n=t.language):(e1("10.7.0","highlight(lang, code, ...args) has been deprecated."),e1("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),n=e,a=t),void 0===i&&(i=!0);const s={code:a,language:n};v("before:highlight",s);const o=s.result?s.result:d(s.language,s.code,i);return o.code=s.code,v("after:highlight",o),o}function d(e,i,a,o){const l=Object.create(null);function c(e,t){return e.keywords[t]}function p(){if(!k.keywords)return void A.addText(R);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(R),i="";for(;t;){i+=R.substring(e,t.index);const a=w.case_insensitive?t[0].toLowerCase():t[0],n=c(k,a);if(n){const[e,s]=n;if(A.addText(i),i="",l[a]=(l[a]||0)+1,l[a]<=7&&(I+=s),e.startsWith("_"))i+=t[0];else{const i=w.classNameAliases[e]||e;f(t[0],i)}}else i+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(R)}i+=R.substring(e),A.addText(i)}function h(){null!=k.subLanguage?function(){if(""===R)return;let e=null;if("string"==typeof k.subLanguage){if(!t[k.subLanguage])return void A.addText(R);e=d(k.subLanguage,R,!0,T[k.subLanguage]),T[k.subLanguage]=e._top}else e=u(R,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(I+=e.relevance),A.__addSublanguage(e._emitter,e.language)}():p(),R=""}function f(e,t){""!==e&&(A.startScope(t),A.addText(e),A.endScope())}function m(e,t){let i=1;const a=t.length-1;for(;i<=a;){if(!e._emit[i]){i++;continue}const a=w.classNameAliases[e[i]]||e[i],n=t[i];a?f(n,a):(R=n,p(),R=""),i++}}function _(e,t){return e.scope&&"string"==typeof e.scope&&A.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(f(R,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),R=""):e.beginScope._multi&&(m(e.beginScope,t),R="")),k=Object.create(e,{parent:{value:k}}),k}function v(e,t,i){let a=function(e,t){const i=e&&e.exec(t);return i&&0===i.index}(e.endRe,i);if(a){if(e["on:end"]){const i=new o0(e);e["on:end"](t,i),i.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,i)}function b(e){return 0===k.matcher.regexIndex?(R+=e[0],1):(M=!0,0)}function y(e){const t=e[0],a=i.substring(e.index),n=v(k,e,a);if(!n)return c1;const s=k;k.endScope&&k.endScope._wrap?(h(),f(t,k.endScope._wrap)):k.endScope&&k.endScope._multi?(h(),m(k.endScope,e)):s.skip?R+=t:(s.returnEnd||s.excludeEnd||(R+=t),h(),s.excludeEnd&&(R=t));do{k.scope&&A.closeNode(),k.skip||k.subLanguage||(I+=k.relevance),k=k.parent}while(k!==n.parent);return n.starts&&_(n.starts,e),s.returnEnd?0:t.length}let x={};function S(t,s){const o=s&&s[0];if(R+=t,null==o)return h(),0;if("begin"===x.type&&"end"===s.type&&x.index===s.index&&""===o){if(R+=i.slice(s.index,s.index+1),!n){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=x.rule,t}return 1}if(x=s,"begin"===s.type)return function(e){const t=e[0],i=e.rule,a=new o0(i),n=[i.__beforeBegin,i["on:begin"]];for(const s of n)if(s&&(s(e,a),a.isMatchIgnored))return b(t);return i.skip?R+=t:(i.excludeBegin&&(R+=t),h(),i.returnBegin||i.excludeBegin||(R=t)),_(i,e),i.returnBegin?0:t.length}(s);if("illegal"===s.type&&!a){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(k.scope||"<unnamed>")+'"');throw e.mode=k,e}if("end"===s.type){const e=y(s);if(e!==c1)return e}if("illegal"===s.type&&""===o)return R+="\n",1;if(O>1e5&&O>3*s.index){throw new Error("potential infinite loop, way more iterations than matches")}return R+=o,o.length}const w=g(e);if(!w)throw s.replace("{}",e),new Error('Unknown language: "'+e+'"');const C=n1(w);let E="",k=o||C;const T={},A=new r.__emitter(r);!function(){const e=[];for(let t=k;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>A.openNode(e))}();let R="",I=0,D=0,O=0,M=!1;try{if(w.__emitTokens)w.__emitTokens(i,A);else{for(k.matcher.considerAll();;){O++,M?M=!1:k.matcher.considerAll(),k.matcher.lastIndex=D;const e=k.matcher.exec(i);if(!e)break;const t=S(i.substring(D,e.index),e);D=e.index+t}S(i.substring(D))}return A.finalize(),E=A.toHTML(),{language:e,value:E,relevance:I,illegal:!1,_emitter:A,_top:k}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:e,value:r1(i),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:D,context:i.slice(D-100,D+100),mode:N.mode,resultSoFar:E},_emitter:A};if(n)return{language:e,value:r1(i),illegal:!1,relevance:0,errorRaised:N,_emitter:A,_top:k};throw N}}function u(e,i){i=i||r.languages||Object.keys(t);const a=function(e){const t={value:r1(e),illegal:!1,relevance:0,_top:o,_emitter:new r.__emitter(r)};return t._emitter.addText(e),t}(e),n=i.filter(g).filter(_).map(t=>d(t,e,!1));n.unshift(a);const s=n.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(g(e.language).supersetOf===t.language)return 1;if(g(t.language).supersetOf===e.language)return-1}return 0}),[l,c]=s,u=l;return u.secondBest=c,u}function p(e){let t=null;const a=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const i=r.languageDetectRe.exec(t);if(i){const e=g(i[1]);return e||s.replace("{}",i[1]),e?i[1]:"no-highlight"}return t.split(/\s+/).find(e=>l(e)||g(e))}(e);if(l(a))return;if(v("before:highlightElement",{el:e,language:a}),e.dataset.highlighted)return;if(e.children.length>0&&(r.ignoreUnescapedHTML,r.throwUnescapedHTML)){throw new o1("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const n=t.textContent,o=a?c(n,{language:a,ignoreIllegals:!0}):u(n);e.innerHTML=o.value,e.dataset.highlighted="yes",function(e,t,a){const n=t&&i[t]||a;e.classList.add("hljs"),e.classList.add(`language-${n}`)}(e,a,o.language),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),v("after:highlightElement",{el:e,result:o,text:n})}let h=!1;function f(){if("loading"===document.readyState)return h||window.addEventListener("DOMContentLoaded",function(){f()},!1),void(h=!0);document.querySelectorAll(r.cssSelector).forEach(p)}function g(e){return e=(e||"").toLowerCase(),t[e]||t[i[e]]}function m(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function _(e){const t=g(e);return t&&!t.disableAutodetect}function v(e,t){const i=e;a.forEach(function(e){e[i]&&e[i](t)})}Object.assign(e,{highlight:c,highlightAuto:u,highlightAll:f,highlightElement:p,highlightBlock:function(e){return e1("10.7.0","highlightBlock will be removed entirely in v12.0"),e1("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){r=l1(r,e)},initHighlighting:()=>{f(),e1("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){f(),e1("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(i,a){let s=null;try{s=a(e)}catch(r){if("Language definition for '{}' could not be registered.".replace("{}",i),!n)throw r;s=o}s.name||(s.name=i),t[i]=s,s.rawDefinition=a.bind(null,e),s.aliases&&m(s.aliases,{languageName:i})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(i))i[t]===e&&delete i[t]},listLanguages:function(){return Object.keys(t)},getLanguage:g,registerAliases:m,autoDetection:_,inherit:l1,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),a.push(e)},removePlugin:function(e){const t=a.indexOf(e);-1!==t&&a.splice(t,1)}}),e.debugMode=function(){n=!1},e.safeMode=function(){n=!0},e.versionString="11.11.1",e.regex={concat:v0,lookahead:g0,either:b0,optional:_0,anyNumberOfTimes:m0};for(const b in H0)"object"==typeof H0[b]&&s0(H0[b]);return Object.assign(e,H0),e},u1=d1({});u1.newInstance=()=>d1({});var p1,h1,f1,g1,m1,_1,v1,b1,y1,x1,S1,w1,C1,E1,k1,T1,A1,R1,I1,D1,O1,M1,N1,L1,P1,F1,B1,$1,V1,U1,H1,z1,Y1,G1,W1,j1,q1,K1,X1,Z1,Q1,J1,e2,t2,i2,a2,n2,s2,o2,r2,l2,c2,d2,u2,p2,h2,f2,g2,m2,_2,v2,b2,y2,x2,S2,w2,C2,E2,k2,T2,A2,R2,I2,D2,O2,M2,N2,L2,P2,F2,B2,$2,V2,U2,H2,z2,Y2,G2,W2,j2,q2,K2,X2,Z2,Q2,J2,e5,t5,i5,a5,n5,s5,o5,r5,l5,c5,d5,u5,p5,h5,f5,g5,m5,_5,v5,b5,y5,x5,S5,w5,C5,E5,k5,T5,A5,R5,I5,D5,O5,M5,N5,L5,P5,F5,B5,$5,V5,U5,H5,z5,Y5,G5,W5,j5,q5,K5,X5,Z5,Q5,J5,e3,t3,i3,a3,n3,s3,o3,r3,l3,c3,d3,u3,p3,h3,f3,g3,m3,_3,v3,b3,y3,x3,S3,w3,C3,E3,k3,T3,A3,R3,I3,D3,O3,M3,N3,L3,P3,F3,B3,$3,V3,U3,H3,z3,Y3,G3,W3,j3,q3,K3,X3,Z3,Q3,J3,e4,t4,i4,a4,n4,s4,o4,r4,l4,c4,d4,u4,p4,h4,f4,g4,m4,_4,v4,b4,y4,x4,S4,w4,C4,E4,k4,T4,A4,R4,I4,D4,O4,M4,N4,L4,P4,F4,B4,$4,V4,U4,H4,z4,Y4,G4,W4,j4,q4,K4,X4,Z4,Q4,J4,e8,t8,i8,a8,n8,s8,o8,r8,l8,c8,d8,u8,p8,h8,f8,g8,m8,_8,v8,b8,y8,x8,S8,w8,C8,E8,k8,T8,A8,R8,I8,D8,O8,M8,N8,L8,P8,F8,B8,$8,V8,U8,H8,z8,Y8,G8,W8,j8,q8,K8,X8,Z8,Q8,J8,e6,t6,i6,a6,n6,s6,o6,r6,l6,c6,d6,u6,p6,h6,f6,g6,m6,_6,v6,b6,y6,x6,S6,w6,C6,E6,k6,T6,A6,R6,I6,D6,O6,M6,N6,L6,P6,F6,B6,$6,V6,U6,H6,z6,Y6,G6,W6,j6,q6,K6,X6,Z6,Q6,J6,e9,t9,i9,a9,n9,s9,o9,r9,l9,c9,d9,u9,p9,h9,f9,g9,m9,_9,v9=u1;u1.HighlightJS=u1,u1.default=u1;var b9=v9;b9.registerLanguage("1c",h1?p1:(h1=1,p1=function(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",a="null истина ложь неопределено",n=e.inherit(e.NUMBER_MODE),s={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},o={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},r=e.inherit(e.C_LINE_COMMENT_MODE);return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:"разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",class:"webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",type:"comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",literal:a},contains:[{className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+"загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "},contains:[r]},{className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:a},contains:[n,s,o]},r]},e.inherit(e.TITLE_MODE,{begin:t})]},r,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},n,s,o,{match:/[;()+\-:=,]/,className:"punctuation",relevance:0}]}})),b9.registerLanguage("abnf",g1?f1:(g1=1,f1=function(e){const t=e.regex,i=e.COMMENT(/;/,/$/);return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],contains:[{scope:"operator",match:/=\/?/},{scope:"attribute",match:t.concat(/^[a-zA-Z][a-zA-Z0-9-]*/,/(?=\s*=)/)},i,{scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:"symbol",match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}})),b9.registerLanguage("accesslog",_1?m1:(_1=1,m1=function(e){const t=e.regex,i=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...i)),end:/"/,keywords:i,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}})),b9.registerLanguage("actionscript",b1?v1:(b1=1,v1=function(e){const t=e.regex,i=/[a-zA-Z_$][a-zA-Z0-9_$]*/,a=t.concat(i,t.concat("(\\.",i,")*")),n={className:"rest_arg",begin:/[.]{3}/,end:i,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},{begin:t.concat(/:\s*/,/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/)}]},e.METHOD_GUARD],illegal:/#/}})),b9.registerLanguage("ada",x1?y1:(x1=1,y1=function(e){const t="\\d(_|\\d)*",i="[eE][-+]?"+t,a="\\b("+t+"#\\w+(\\.\\w+)?#("+i+")?|"+t+"(\\."+t+")?("+i+")?)",n="[A-Za-z](_?[A-Za-z0-9.])*",s="[]\\{\\}%#'\"",o=e.COMMENT("--","$"),r={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:s,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:n,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[o,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+n},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:s},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[o,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:s},r,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:s}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:s},r]}})),b9.registerLanguage("angelscript",w1?S1:(w1=1,S1=function(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},a={className:"keyword",begin:"<",end:">",contains:[t,i]};return t.contains=[a],i.contains=[a],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,i,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}})),b9.registerLanguage("apache",E1?C1:(E1=1,C1=function(e){const t={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[t,{className:"number",begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]},t,{className:"number",begin:/\b\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}})),b9.registerLanguage("applescript",T1?k1:(T1=1,k1=function(e){const t=e.regex,i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,i]},n=e.COMMENT(/--/,/$/),s=[n,e.COMMENT(/\(\*/,/\*\)/,{contains:["self",n]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[i,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,a]},...s],illegal:/\/\/|->|=>|\[\[/}})),b9.registerLanguage("arcade",R1?A1:(R1=1,A1=function(e){const t="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},a={className:"symbol",begin:"\\$"+e.regex.either("aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view")},n={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},o={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,n,e.REGEXP_MODE];const r=s.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,n,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:r}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:r}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}})),b9.registerLanguage("arduino",D1?I1:(D1=1,I1=function(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=function(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",n="[a-zA-Z_]\\w*::",s="(?!struct)("+a+"|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},r={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0},u=t.optional(n)+e.IDENT_RE+"\\s*\\(",p={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[h,c,o,i,e.C_BLOCK_COMMENT_MODE,l,r],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:f.concat([{begin:/\(/,end:/\)/,keywords:p,contains:f.concat(["self"]),relevance:0}]),relevance:0},m={className:"function",begin:"("+s+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:p,relevance:0},{begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[r,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,r,l,o,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,r,l,o]}]},o,i,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(g,m,h,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:p,contains:["self",o]},{begin:e.IDENT_RE+"::",keywords:p},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}(e),a=i.keywords;return a.type=[...a.type,...t.type],a.literal=[...a.literal,...t.literal],a.built_in=[...a.built_in,...t.built_in],a._hints=t._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i})),b9.registerLanguage("armasm",M1?O1:(M1=1,O1=function(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}})),b9.registerLanguage("xml",L1?N1:(L1=1,N1=function(e){const t=e.regex,i=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(n,{begin:/\(/,end:/\)/}),o=e.inherit(e.APOS_STRING_MODE,{className:"string"}),r=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[n,r,o,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,s,r,o]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[r]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(i,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})),b9.registerLanguage("asciidoc",F1?P1:(F1=1,P1=function(e){const t=e.regex,i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}];return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/},...i,...a,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}})),b9.registerLanguage("aspectj",$1?B1:($1=1,B1=function(e){const t=e.regex,i=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],a=["get","set","args","call"];return{name:"AspectJ",keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:i.concat(a),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:i,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:i.concat(a),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:i,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}})),b9.registerLanguage("autohotkey",U1?V1:(U1=1,V1=function(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}})),b9.registerLanguage("autoit",z1?H1:(z1=1,H1=function(e){const t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},i={begin:"\\$[A-z0-9_]+"},a={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",literal:"True False And Null Not Or Default"},contains:[t,i,a,n,{className:"meta",begin:"#",end:"$",keywords:{keyword:["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"]},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[a,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},a,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[i,a,n]}]}]}})),b9.registerLanguage("avrasm",G1?Y1:(G1=1,Y1=function(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}})),b9.registerLanguage("awk",j1?W1:(j1=1,W1=function(e){return{name:"Awk",keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}})),b9.registerLanguage("axapta",K1?q1:(K1=1,q1=function(e){const t=e.UNDERSCORE_IDENT_RE,i={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i};return{name:"X++",aliases:["x++"],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}})),b9.registerLanguage("bash",Z1?X1:(Z1=1,X1=function(e){const t=e.regex,i={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const n={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,n]};n.contains.push(r);const l={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[c,e.SHEBANG(),d,l,s,o,{match:/(\/[a-z._-]+)+/},r,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},i]}})),b9.registerLanguage("basic",J1?Q1:(J1=1,Q1=function(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}})),b9.registerLanguage("bnf",t2?e2:(t2=1,e2=function(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}})),b9.registerLanguage("brainfuck",a2?i2:(a2=1,i2=function(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}})),b9.registerLanguage("c",s2?n2:(s2=1,n2=function(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",n="[a-zA-Z_]\\w*::",s="("+a+"|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},r={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0},u=t.optional(n)+e.IDENT_RE+"\\s*\\(",p={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[c,o,i,e.C_BLOCK_COMMENT_MODE,l,r],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:h.concat([{begin:/\(/,end:/\)/,keywords:p,contains:h.concat(["self"]),relevance:0}]),relevance:0},g={begin:"("+s+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:p,relevance:0},{begin:u,returnBegin:!0,contains:[e.inherit(d,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,r,l,o,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,r,l,o]}]},o,i,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:p,disableAutodetect:!0,illegal:"</",contains:[].concat(f,g,h,[c,{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:r,keywords:p}}})),b9.registerLanguage("cal",r2?o2:(r2=1,o2=function(e){const t=e.regex,i=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],n={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},o={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:[n,s,e.NUMBER_MODE]},...a]},r={match:[/OBJECT/,/\s+/,t.either("Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:i,literal:"false true"},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},n,s,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,r,o]}})),b9.registerLanguage("capnproto",c2?l2:(c2=1,l2=function(e){const t={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],type:["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},t]}})),b9.registerLanguage("ceylon",u2?d2:(u2=1,d2=function(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=a,{name:"Ceylon",keywords:{keyword:t.concat(["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"]),meta:["doc","by","license","see","throws","tagged"]},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(a)}})),b9.registerLanguage("clean",h2?p2:(h2=1,p2=function(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}})),b9.registerLanguage("clojure",g2?f2:(g2=1,f2=function(e){const t="a-zA-Z_\\-!.?+*=<>&'",i="[#]?["+t+"]["+t+"0-9/;:$#]*",a="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",n={$pattern:i,built_in:a+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:i,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},r={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},u=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},h={begin:"\\[|(#::?"+i+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",begin:"[:]{1,2}"+i},g={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},_={keywords:n,className:"name",begin:i,relevance:0,starts:m},v=[d,g,r,l,c,u,f,h,o,p,s],b={beginKeywords:a,keywords:{$pattern:i,keyword:a},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(v)};return g.contains=[b,_,m],m.contains=v,h.contains=v,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,g,r,l,c,u,f,h,o,p]}})),b9.registerLanguage("clojure-repl",_2?m2:(_2=1,m2=function(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}})),b9.registerLanguage("cmake",b2?v2:(b2=1,v2=function(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}})),b9.registerLanguage("coffeescript",function(){if(x2)return y2;x2=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],i=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return y2=function(a){const n={keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((s=["var","const","let","function","static"],e=>!s.includes(e))),literal:t.concat(["yes","no","on","off"]),built_in:i.concat(["npm","print"])};var s;const o="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:n},l=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,r]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[r,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+o},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];r.contains=l;const c=a.inherit(a.TITLE_MODE,{begin:o}),d="(\\(.*\\)\\s*)?\\B[-=]>",u={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(l)}]},p={variants:[{match:[/class\s+/,o,/\s+extends\s+/,o]},{match:[/class\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:n};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:n,illegal:/\/\*/,contains:[...l,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+o+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,contains:[c,u]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:d,end:"[-=]>",returnBegin:!0,contains:[u]}]},p,{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}}()),b9.registerLanguage("coq",w2?S2:(w2=1,S2=function(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}})),b9.registerLanguage("cos",E2?C2:(E2=1,C2=function(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}})),b9.registerLanguage("cpp",T2?k2:(T2=1,k2=function(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",n="[a-zA-Z_]\\w*::",s="(?!struct)("+a+"|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},r={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0},u=t.optional(n)+e.IDENT_RE+"\\s*\\(",p={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[h,c,o,i,e.C_BLOCK_COMMENT_MODE,l,r],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:f.concat([{begin:/\(/,end:/\)/,keywords:p,contains:f.concat(["self"]),relevance:0}]),relevance:0},m={className:"function",begin:"("+s+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:p,relevance:0},{begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[r,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,r,l,o,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,r,l,o]}]},o,i,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(g,m,h,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:p,contains:["self",o]},{begin:e.IDENT_RE+"::",keywords:p},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}})),b9.registerLanguage("crmsh",R2?A2:(R2=1,A2=function(e){const t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}})),b9.registerLanguage("crystal",D2?I2:(D2=1,I2=function(e){const t="(_?[ui](8|16|32|64|128))?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",n={$pattern:"[a-zA-Z_]\\w*[!?=]?",keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:n},o={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},r={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:n};function l(e,t){const i=[{begin:e,end:t}];return i[0].contains=i,i}const c={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:l("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:l("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:l(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:l("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:l("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:l("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:l(/\{/,/\}/)},{begin:"%q<",end:">",contains:l("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},u={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},p=[r,c,d,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:l("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:l("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:l(/\{/,/\}/)},{begin:"%r<",end:">",contains:l("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},u,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},o,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[c,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return s.contains=p,r.contains=p.slice(1),{name:"Crystal",aliases:["cr"],keywords:n,contains:p}})),b9.registerLanguage("csharp",M2?O2:(M2=1,O2=function(e){const t={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},i=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},n={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},s=e.inherit(n,{illegal:/\n/}),o={className:"subst",begin:/\{/,end:/\}/,keywords:t},r=e.inherit(o,{illegal:/\n/}),l={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,r]},c={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},o]},d=e.inherit(c,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},r]});o.contains=[c,l,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],r.contains=[d,l,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const u={variants:[{className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c,l,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},i]},h=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",f={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},u,a,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},i,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+h+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[u,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f]}})),b9.registerLanguage("csp",L2?N2:(L2=1,N2=function(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}})),b9.registerLanguage("css",function(){if(F2)return P2;F2=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),n=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();return P2=function(s){const o=s.regex,r=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(s),l=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+a.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+n.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:o.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}}()),b9.registerLanguage("d",$2?B2:($2=1,B2=function(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},i="(0|[1-9][\\d_]*)",a="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",n="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",s="([eE][+-]?"+a+")",o="("+i+"|0[bB][01_]+|0[xX]"+n+")",r="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",l={className:"number",begin:"\\b"+o+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},c={className:"number",begin:"\\b(((0[xX]("+n+"\\."+n+"|\\.?"+n+")[pP][+-]?"+a+")|("+a+"(\\.\\d*|"+s+")|\\d+\\."+a+"|\\."+i+s+"?))([fF]|L|i|[fF]i|Li)?|"+o+"(i|[fF]i|Li))",relevance:0},d={className:"string",begin:"'("+r+"|.)",end:"'",illegal:"."},u={className:"string",begin:'"',contains:[{begin:r,relevance:0}],end:'"[cwd]?'},p=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},u,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},c,l,d,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}})),b9.registerLanguage("markdown",U2?V2:(U2=1,V2=function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},a={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},n={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},s=e.inherit(a,{contains:[]}),o=e.inherit(n,{contains:[]});a.contains.push(o),n.contains.push(s);let r=[t,i];return[a,n,s,o].forEach(e=>{e.contains=e.contains.concat(r)}),r=r.concat(a,n),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:r},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:r}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a,n,{className:"quote",begin:"^>\\s+",contains:r,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},i,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}})),b9.registerLanguage("dart",(z2||(z2=1,H2=function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},a={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},n={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,i]}]};i.contains=[a,n];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(e=>`${e}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[n,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},a,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}),H2)),b9.registerLanguage("delphi",G2?Y2:(G2=1,Y2=function(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],a={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},n={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},o={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},r={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[n,s,a].concat(i)},a].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[n,s,{className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o,r,a].concat(i)}})),b9.registerLanguage("diff",j2?W2:(j2=1,W2=function(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}})),b9.registerLanguage("django",K2?q2:(K2=1,q2=function(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}})),b9.registerLanguage("dns",Z2?X2:(Z2=1,X2=function(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}})),b9.registerLanguage("dockerfile",J2?Q2:(J2=1,Q2=function(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}})),b9.registerLanguage("dos",t5?e5:(t5=1,e5=function(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}})),b9.registerLanguage("dsconfig",a5?i5:(a5=1,i5=function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}})),b9.registerLanguage("dts",s5?n5:(s5=1,n5=function(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},i={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},a={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(t,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n={className:"variable",begin:/&[a-z\d_]*\b/};return{name:"Device Tree",contains:[{className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},n,{className:"keyword",begin:"/[a-z][a-z\\d-]*/"},{className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},{className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},{className:"params",relevance:0,begin:"<",end:">",contains:[i,n]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,t,a,{scope:"punctuation",relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+"::",keywords:""}]}})),b9.registerLanguage("dust",r5?o5:(r5=1,o5=function(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}})),b9.registerLanguage("ebnf",c5?l5:(c5=1,l5=function(e){const t=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}})),b9.registerLanguage("elixir",u5?d5:(u5=1,d5=function(e){const t=e.regex,i="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",a={$pattern:i,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},n={className:"subst",begin:/#\{/,end:/\}/,keywords:a},s={match:/\\[\s\S]/,scope:"char.escape",relevance:0},o="[/|([{<\"']",r=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],l=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),c={className:"string",begin:"~[a-z](?="+o+")",contains:r.map(t=>e.inherit(t,{contains:[l(t.end),s,n]}))},d={className:"string",begin:"~[A-Z](?="+o+")",contains:r.map(t=>e.inherit(t,{contains:[l(t.end)]}))},u={className:"regex",variants:[{begin:"~r(?="+o+")",contains:r.map(i=>e.inherit(i,{end:t.concat(i.end,/[uismxfU]{0,7}/),contains:[l(i.end),s,n]}))},{begin:"~R(?="+o+")",contains:r.map(i=>e.inherit(i,{end:t.concat(i.end,/[uismxfU]{0,7}/),contains:[l(i.end)]}))}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},h={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},f=e.inherit(h,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),g=[p,u,d,c,e.HASH_COMMENT_MODE,f,h,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:i+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return n.contains=g,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:g}})),b9.registerLanguage("elm",h5?p5:(h5=1,p5=function(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[a,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[a,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,a,{begin:/\{/,end:/\}/,contains:a.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}})),b9.registerLanguage("ruby",g5?f5:(g5=1,f5=function(e){const t=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),n=t.concat(a,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[o]}),e.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},u="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${u}))?([eE][+-]?(${u})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},f=[d,{variants:[{match:[/class\s+/,n,/\s+<\s+/,n]},{match:[/\b(class|module)\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,n],scope:{2:"title.class"},keywords:s},{relevance:0,match:[n,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:i}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r,l),relevance:0}].concat(r,l);c.contains=f,h.contains=f;const g=[{begin:/^\s*=>/,starts:{end:"$",contains:f}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:s,contains:f}}];return l.unshift(r),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(g).concat(l).concat(f)}})),b9.registerLanguage("erb",_5?m5:(_5=1,m5=function(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}})),b9.registerLanguage("erlang-repl",b5?v5:(b5=1,v5=function(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}})),b9.registerLanguage("erlang",x5?y5:(x5=1,y5=function(e){const t="[a-z'][a-zA-Z0-9_']*",i="("+t+":"+t+"|"+t+")",a={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},n=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},r={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},h={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},f={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?</,end:/>/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:a};g.contains=[n,o,e.inherit(e.APOS_STRING_MODE,{className:""}),g,r,f,h,e.QUOTE_STRING_MODE,s,l,c,d,u,p];const m=[n,o,g,r,f,h,e.QUOTE_STRING_MODE,s,l,c,d,u,p];r.contains[1].contains=m,l.contains=m,u.contains[1].contains=m;const _={className:"params",begin:"\\(",end:"\\)",contains:m};return{name:"Erlang",aliases:["erl"],keywords:a,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:a,contains:m}},n,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"].map(e=>`${e}|1.5`).join(" ")},contains:[_,f,h,e.QUOTE_STRING_MODE]},s,f,h,e.QUOTE_STRING_MODE,u,c,d,l,p,{begin:/\.$/}]}})),b9.registerLanguage("excel",w5?S5:(w5=1,S5=function(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}})),b9.registerLanguage("fix",E5?C5:(E5=1,C5=function(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}})),b9.registerLanguage("flix",T5?k5:(T5=1,k5=function(e){const t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}})),b9.registerLanguage("fortran",R5?A5:(R5=1,A5=function(e){const t=e.regex,i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,n=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,n,a)},{begin:t.concat(/\b\d+/,n,a)},{begin:t.concat(/\.\d+/,n,a)}],relevance:0},o={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[{className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},o,{begin:/^C\s*=(?!=)/,relevance:0},i,s]}})),b9.registerLanguage("fsharp",function(){if(D5)return I5;function e(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function t(e){return e?"string"==typeof e?e:e.source:null}function i(e){return a("(?=",e,")")}function a(...e){return e.map(e=>t(e)).join("")}function n(...e){const i=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(i.capture?"":"?:")+e.map(e=>t(e)).join("|")+")"}return D5=1,I5=function(t){const s={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},o=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],r={keyword:["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],literal:["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"]},l={variants:[t.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),t.C_LINE_COMMENT_MODE]},c={scope:"variable",begin:/``/,end:/``/},d=/\B('|\^)/,u={scope:"symbol",variants:[{match:a(d,/``.*?``/)},{match:a(d,t.UNDERSCORE_IDENT_RE)}],relevance:0},p=function({includeEqual:t}){let s;s=t?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const o=a("[",...Array.from(s).map(e),"]"),r=n(o,/\./),l=a(r,i(r)),c=n(a(l,r,"*"),a(o,"+"));return{scope:"operator",match:n(c,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},h=p({includeEqual:!0}),f=p({includeEqual:!1}),g=function(e,s){return{begin:a(e,i(a(/\s*/,n(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:s,end:i(n(/\n/,/=/)),relevance:0,keywords:t.inherit(r,{type:o}),contains:[l,u,t.inherit(c,{scope:null}),f]}},m=g(/:/,"operator"),_=g(/\bof\b/,"keyword"),v={begin:[/(^|\s+)/,/type/,/\s+/,/[a-zA-Z_](\w|')*/],beginScope:{2:"keyword",4:"title.class"},end:i(/\(|=|$/),keywords:r,contains:[l,t.inherit(c,{scope:null}),u,{scope:"operator",match:/<|>/},m]},b={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},y={begin:[/^\s*/,a(/#/,n("if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit")),/\b/],beginScope:{2:"meta"},end:i(/\s|$/)},x={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},S={scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},w={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},t.BACKSLASH_ESCAPE]},C={scope:"string",begin:/"""/,end:/"""/,relevance:2},E={scope:"subst",begin:/\{/,end:/\}/,keywords:r},k={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},t.BACKSLASH_ESCAPE,E]},T={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},t.BACKSLASH_ESCAPE,E]},A={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},E],relevance:2},R={scope:"string",match:a(/'/,n(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return E.contains=[T,k,w,S,R,s,l,c,m,b,y,x,u,h],{name:"F#",aliases:["fs","f#"],keywords:r,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[s,{variants:[A,T,k,C,w,S,R]},l,c,v,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[c,C,w,S,R,x]},_,m,b,y,x,u,h]}}}()),b9.registerLanguage("gams",M5?O5:(M5=1,O5=function(e){const t=e.regex,i={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},a={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},n={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},s={begin:"/",end:"/",keywords:i,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},o=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,r={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[n,s,{className:"comment",begin:t.concat(o,t.anyNumberOfTimes(t.concat(/[ ]+/,o))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:i,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s,r]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[r]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},a]},e.C_NUMBER_MODE,a]}})),b9.registerLanguage("gauss",L5?N5:(L5=1,N5=function(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},i=e.COMMENT("@","@"),a={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i]},n={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,n]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},r=function(t,a,n){const r=e.inherit({className:"function",beginKeywords:t,end:a,excludeEnd:!0,contains:[].concat(s)},{});return r.contains.push(o),r.contains.push(e.C_NUMBER_MODE),r.contains.push(e.C_BLOCK_COMMENT_MODE),r.contains.push(i),r},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},u={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,l,d,c,"self"]};return d.contains.push(u),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,c,a,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},r("proc keyword",";"),r("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,i,u]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,n]}})),b9.registerLanguage("gcode",F5?P5:(F5=1,P5=function(e){const t=e.regex,i=/\b/;function a(e,t){if(0===e.index)return;const i=e.input[e.index-1];i>="0"&&i<="9"||"_"!==i&&t.ignoreMatch()}const n=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,s=/[GM]\s*\d+(\.\d+)?/,o=/T\s*\d+/,r=/O\s*\d+/,l=/O<.+>/,c=/[ABCUVWXYZ]\s*/,d=/[FHIJKPQRS]\s*/;return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:{$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(i,s)},{begin:s,"on:begin":a},{match:t.concat(i,o)},{begin:o,"on:begin":a}]},{scope:"symbol",variants:[{match:t.concat(i,r)},{begin:r,"on:begin":a},{match:t.concat(i,l)},{begin:l,"on:begin":a},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(i,c,n)},{begin:t.concat(c,n),"on:begin":a}]},{scope:"params",variants:[{match:t.concat(i,d,n)},{begin:t.concat(d,n),"on:begin":a}]}]}})),b9.registerLanguage("gherkin",$5?B5:($5=1,B5=function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}})),b9.registerLanguage("glsl",U5?V5:(U5=1,V5=function(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex 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_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}})),b9.registerLanguage("gml",z5?H5:(z5=1,H5=function(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),b9.registerLanguage("go",G5?Y5:(G5=1,Y5=function(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}})),b9.registerLanguage("golo",j5?W5:(j5=1,W5=function(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}})),b9.registerLanguage("gradle",K5?q5:(K5=1,q5=function(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}})),b9.registerLanguage("graphql",Z5?X5:(Z5=1,X5=function(e){const t=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}})),b9.registerLanguage("groovy",function(){if(J5)return Q5;function e(e,t={}){return t.variants=e,t}return J5=1,Q5=function(t){const i=t.regex,a="[A-Za-z0-9_$]+",n=e([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),s={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},o=e([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),r=e([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),n,r,s,o,l,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:a+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[n,r,s,o,"self"]},{className:"symbol",begin:"^[ \t]*"+i.lookahead(a+":"),excludeBegin:!0,end:a+":",relevance:0}],illegal:/#|<\//}}}()),b9.registerLanguage("haml",t3?e3:(t3=1,e3=function(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}})),b9.registerLanguage("handlebars",a3?i3:(a3=1,i3=function(e){const t=e.regex,i={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},a=/\[\]|\[[^\]]+\]/,n=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,s=t.either(/""|"[^"]+"/,/''|'[^']+'/,a,n),o=t.concat(t.optional(/\.|\.\/|\//),s,t.anyNumberOfTimes(t.concat(/(\.|\/)/,s))),r=t.concat("(",a,"|",n,")(?==)"),l={begin:o},c=e.inherit(l,{keywords:{$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]}}),d={begin:/\(/,end:/\)/},u={className:"attr",begin:r,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,c,d]}}},p={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},u,c,d],returnEnd:!0},h=e.inherit(l,{className:"name",keywords:i,starts:e.inherit(p,{end:/\)/})});d.contains=[h];const f=e.inherit(l,{keywords:i,className:"name",starts:e.inherit(p,{end:/\}\}/})}),g=e.inherit(l,{keywords:i,className:"name"}),m=e.inherit(l,{className:"name",keywords:i,starts:e.inherit(p,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[f],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[g]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[f]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[g]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[m]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[m]}]}})),b9.registerLanguage("haskell",s3?n3:(s3=1,n3=function(e){const t="([0-9]_*)+",i="([0-9a-fA-F]_*)+",a="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",n={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},s={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={begin:"\\(",end:"\\)",illegal:'"',contains:[s,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),n]},c={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${i})(\\.(${i}))?([pP][+-]?(${t}))?\\b`},{match:"\\b0[oO](([0-7]_*)+)\\b"},{match:"\\b0[bB](([01]_*)+)\\b"}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[l,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[l,n],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,l,n]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[s,r,l,{begin:/\{/,end:/\}/,contains:l.contains},n]},{beginKeywords:"default",end:"$",contains:[r,l,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,n]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},s,o,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,c,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${a}--+|--+(?!-)${a}`},n,{begin:"->|<-"}]}})),b9.registerLanguage("haxe",r3?o3:(r3=1,o3=function(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:"variable",begin:"\\$[a-zA-Z_$][a-zA-Z0-9_$]*"},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}})),b9.registerLanguage("hsp",c3?l3:(c3=1,l3=function(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}})),b9.registerLanguage("http",u3?d3:(u3=1,d3=function(e){const t="HTTP/([32]|1\\.[01])",i={className:"attribute",begin:e.regex.concat("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},a=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+t+" \\d{3})",end:/$/,contains:[{className:"meta",begin:t},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},{begin:"(?=^[A-Z]+ (.*?) "+t+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:t},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},e.inherit(i,{relevance:0})]}})),b9.registerLanguage("hy",h3?p3:(h3=1,p3=function(e){const t="a-zA-Z_\\-!.?+*=<>&#'",i="["+t+"]["+t+"0-9/;:]*",a={$pattern:i,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},n={begin:i,relevance:0},s={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r=e.COMMENT(";","$",{relevance:0}),l={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},d={className:"comment",begin:"\\^"+i},u=e.COMMENT("\\^\\{","\\}"),p={className:"symbol",begin:"[:]{1,2}"+i},h={begin:"\\(",end:"\\)"},f={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:a,begin:i,starts:f},m=[h,o,d,u,r,p,c,s,l,n];return h.contains=[e.COMMENT("comment",""),g,f],f.contains=m,c.contains=m,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),h,o,d,u,r,p,c,s,l]}})),b9.registerLanguage("inform7",g3?f3:(g3=1,f3=function(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}})),b9.registerLanguage("ini",_3?m3:(_3=1,m3=function(e){const t=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const n={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={begin:/\[/,end:/\]/,contains:[a,s,n,o,i,"self"],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:t.concat(l,"(\\s*\\.\\s*",l,")*",t.lookahead(/\s*=\s*[^#\s]/)),className:"attr",starts:{end:/$/,contains:[a,r,s,n,o,i]}}]}})),b9.registerLanguage("irpf90",b3?v3:(b3=1,v3=function(e){const t=e.regex,i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,n={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:t.concat(/\b\d+/,a,i)},{begin:t.concat(/\.\d+/,a,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),n]}})),b9.registerLanguage("isbl",x3?y3:(x3=1,y3=function(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i={className:"number",begin:e.NUMBER_RE,relevance:0},a={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},n={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},s={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,n]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,n]}]},o={$pattern:t,keyword:"and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",literal:"null true false nil "},r={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},l={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},c={className:"variable",keywords:o,begin:t,relevance:0,contains:[l,r]},d="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(";return{name:"ISBL",case_insensitive:!0,keywords:o,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:d,end:"\\)$",returnBegin:!0,keywords:o,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:"AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр "},begin:d,end:"\\(",returnBegin:!0,excludeEnd:!0},r,c,a,i,s]},l,r,c,a,i,s]}})),b9.registerLanguage("java",function(){if(w3)return S3;w3=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function n(e,t,i){return-1===i?"":e.replace(t,a=>n(e,t,i-1))}return S3=function(e){const t=e.regex,i="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",s=i+n("(?:<"+i+"~~~(?:\\s*,\\s*"+i+"~~~)*>)?",/~~~/g,2),o={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},r={className:"meta",begin:"@"+i,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},l={className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:o,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,i),/\s+/,i,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,i],className:{1:"keyword",3:"title.class"},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+s+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,r]}}}()),b9.registerLanguage("javascript",function(){if(E3)return C3;E3=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],r=[].concat(s,a,n);return C3=function(l){const c=l.regex,d=e,u="<>",p="</>",h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const i=e[0].length+e.index,a=e.input[i];if("<"===a||","===a)return void t.ignoreMatch();let n;">"===a&&(((e,{after:t})=>{const i="</"+e[0].slice(1);return-1!==e.input.indexOf(i,t)})(e,{after:i})||t.ignoreMatch());const s=e.input.substring(i);((n=s.match(/^\s*=/))||(n=s.match(/^\s+extends\s+/))&&0===n.index)&&t.ignoreMatch()}},f={$pattern:e,keyword:t,literal:i,built_in:r,"variable.language":o},g="[0-9](_?[0-9])*",m=`\\.(${g})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${_})((${m})|\\.)?|(${m}))[eE][+-]?(${g})\\b`},{begin:`\\b(${_})\\b((${m})\\b|\\.)?|(${m})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,b],subLanguage:"css"}},S={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,b]},C={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},E=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,x,S,w,{match:/\$\d+/},v];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(E)});const k=[].concat(C,b.contains),T=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(k)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...n]}},D={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},O={match:c.concat(/\b/,(M=[...s,"super","import"].map(e=>`${e}\\s*\\(`),c.concat("(?!",M.join("|"),")")),d,c.lookahead(/\s*\(/)),className:"title.function",relevance:0};var M;const N={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},L={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",F={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,x,S,w,C,{match:/\$\d+/},v,I,{scope:"attr",match:d+c.lookahead(":"),relevance:0},F,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,l.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u,end:p},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,l.inherit(l.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},N,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},O,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},R,L,{match:/\$[(.]/}]}}}()),b9.registerLanguage("jboss-cli",T3?k3:(T3=1,k3=function(e){const t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B([\/.])[\w\-.\/=]+/},t]}})),b9.registerLanguage("json",R3?A3:(R3=1,A3=function(e){const t=["true","false","null"],i={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}})),b9.registerLanguage("julia",D3?I3:(D3=1,I3=function(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",i={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},a={keywords:i,illegal:/<\//},n={className:"subst",begin:/\$\(/,end:/\)/,keywords:i},s={className:"variable",begin:"\\$"+t},o={className:"string",contains:[e.BACKSLASH_ESCAPE,n,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},r={className:"string",contains:[e.BACKSLASH_ESCAPE,n,s],begin:"`",end:"`"},l={className:"meta",begin:"@"+t};return a.name="Julia",a.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o,r,l,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],n.contains=a.contains,a})),b9.registerLanguage("julia-repl",M3?O3:(M3=1,O3=function(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}})),b9.registerLanguage("kotlin",function(){if(L3)return N3;L3=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};return N3=function(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},n={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,n]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,n]}]};n.contains.push(o);const r={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=a,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=u;return p.variants[1].contains=[u],u.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i,r,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,r,l,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},r,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},c]}}}()),b9.registerLanguage("lasso",F3?P3:(F3=1,P3=function(e){const t="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",a="\\]|\\?>",n={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},r={className:"meta",begin:"\\[/noprocess|"+i},l={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:n,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[s]}},o,r,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:n,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[s]}},o,r].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}})),b9.registerLanguage("latex",$3?B3:($3=1,B3=function(e){const t=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],i=[{className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(e=>e+"(?![a-zA-Z@:_])"))},{endsParent:!0,begin:new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(e=>e+"(?![a-zA-Z:_])").join("|"))},{endsParent:!0,variants:t},{endsParent:!0,relevance:0,variants:[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}]}]},{className:"params",relevance:0,begin:/#+\d?/},{variants:t},{className:"built_in",relevance:0,begin:/[$&^_]/},{className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},e.COMMENT("%","$",{relevance:0})],a={begin:/\{/,end:/\}/,relevance:0,contains:["self",...i]},n=e.inherit(a,{relevance:0,endsParent:!0,contains:[a,...i]}),s={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[a,...i]},o={begin:/\s+/,relevance:0},r=[n],l=[s],c=function(e,t){return{contains:[o],starts:{relevance:0,contains:e,starts:t}}},d=function(e,t){return{begin:"\\\\"+e+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+e},relevance:0,contains:[o],starts:t}},u=function(t,i){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+t+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},c(r,i))},p=(t="string")=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),h=function(e){return{className:"string",end:"(?=\\\\end\\{"+e+"\\})"}},f=(e="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}});return{name:"LaTeX",aliases:["tex"],contains:[...["verb","lstinline"].map(e=>d(e,{contains:[p()]})),d("mint",c(r,{contains:[p()]})),d("mintinline",c(r,{contains:[f(),p()]})),d("url",{contains:[f("link"),f("link")]}),d("hyperref",{contains:[f("link")]}),d("href",c(l,{contains:[f("link")]})),...[].concat(...["","\\*"].map(e=>[u("verbatim"+e,h("verbatim"+e)),u("filecontents"+e,c(r,h("filecontents"+e))),...["","B","L"].map(t=>u(t+"Verbatim"+e,c(l,h(t+"Verbatim"+e))))])),u("minted",c(l,c(r,h("minted")))),...i]}})),b9.registerLanguage("ldif",U3?V3:(U3=1,V3=function(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}})),b9.registerLanguage("leaf",z3?H3:(z3=1,H3=function(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},a={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(a),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}})),b9.registerLanguage("less",function(){if(G3)return Y3;G3=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),n=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),s=i.concat(a).sort().reverse();return Y3=function(o){const r=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(o),l=s,c="[\\w-]+",d="("+c+"|@\\{"+c+"\\})",u=[],p=[],h=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},f=function(e,t,i){return{className:e,begin:t,relevance:i}},g={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},m={begin:"\\(",end:"\\)",contains:p,keywords:g,relevance:0};p.push(o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,h("'"),h('"'),r.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r.HEXCOLOR,m,f("variable","@@?"+c,10),f("variable","@\\{"+c+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:c+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},r.IMPORTANT,{beginKeywords:"and not"},r.FUNCTION_DISPATCH);const _=p.concat({begin:/\{/,end:/\}/,contains:u}),v={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(p)},b={begin:d+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+n.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:p}}]},y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:g,returnEnd:!0,contains:p,relevance:0}},x={className:"variable",variants:[{begin:"@"+c+"\\s*:",relevance:15},{begin:"@"+c}],starts:{end:"[;}]",returnEnd:!0,contains:_}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,v,f("keyword","all\\b"),f("variable","@\\{"+c+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},r.CSS_NUMBER_MODE,f("selector-tag",d,0),f("selector-id","#"+d),f("selector-class","\\."+d,0),f("selector-tag","&",0),r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+a.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:"!important"},r.FUNCTION_DISPATCH]},w={begin:c+`:(:)?(${l.join("|")})`,returnBegin:!0,contains:[S]};return u.push(o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,y,x,w,b,S,v,r.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:u}},Y3}()),b9.registerLanguage("lisp",j3?W3:(j3=1,W3=function(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",a="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",n={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:a,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+a+" +"+a,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},d={begin:t,relevance:0},u={begin:i},p={contains:[s,o,l,c,{begin:"\\(",end:"\\)",contains:["self",n,o,s,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},f={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return f.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:i}]},g],g.contains=[p,h,f,n,s,o,r,l,c,u,d],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),n,o,r,p,h,f,d]}})),b9.registerLanguage("livecodeserver",K3?q3:(K3=1,q3=function(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],a=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),n=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[n,a],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a].concat(i),illegal:";$|^\\[|^=|&|\\{"}})),b9.registerLanguage("livescript",function(){if(Z3)return X3;Z3=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],i=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return X3=function(a){const n={keyword:e.concat(["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"]),literal:t.concat(["yes","no","on","off","it","that","void"]),built_in:i.concat(["npm","print"])},s="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",o=a.inherit(a.TITLE_MODE,{begin:s}),r={className:"subst",begin:/#\{/,end:/\}/,keywords:n},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:n},c=[a.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,r,l]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[r,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+s},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];r.contains=c;const d={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(c)}]},u={variants:[{match:[/class\s+/,s,/\s+extends\s+/,s]},{match:[/class\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:n};return{name:"LiveScript",aliases:["ls"],keywords:n,illegal:/\/\*/,contains:c.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|!->)"},{className:"function",contains:[o,d],returnBegin:!0,variants:[{begin:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+s+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},u,{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}()),b9.registerLanguage("llvm",J3?Q3:(J3=1,Q3=function(e){const t=e.regex,i=/([-a-zA-Z$._][\w$.-]*)/,a={className:"variable",variants:[{begin:t.concat(/%/,i)},{begin:/%\d+/},{begin:/#\d+/}]},n={className:"title",variants:[{begin:t.concat(/@/,i)},{begin:/@\d+/},{begin:t.concat(/!/,i)},{begin:t.concat(/!\d+/,i)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[{className:"type",begin:/\bi\d+(?=\s|\b)/},e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},n,{className:"punctuation",relevance:0,begin:/,/},{className:"operator",relevance:0,begin:/=/},a,{className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},{className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0}]}})),b9.registerLanguage("lsl",t4?e4:(t4=1,e4=function(e){const t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}})),b9.registerLanguage("lua",a4?i4:(a4=1,i4=function(e){const t="\\[=*\\[",i="\\]=*\\]",a={begin:t,end:i,contains:["self"]},n=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,i,{contains:[a],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:n.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:n}].concat(n)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:i,contains:[a],relevance:5}])}})),b9.registerLanguage("makefile",s4?n4:(s4=1,n4=function(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},a={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,i]},n={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,i,a,n,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s]}})),b9.registerLanguage("mathematica",function(){if(r4)return o4;r4=1;const e=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];return o4=function(t){const i=t.regex,a=i.either(i.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),n=i.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),s={className:"number",relevance:0,begin:i.concat(a,i.optional(n),i.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,r=new Set(e),l={variants:[{className:"builtin-symbol",begin:o,"on:begin":(e,t)=>{r.has(e[0])||t.ignoreMatch()}},{className:"symbol",relevance:0,begin:o}]},c={className:"message-name",relevance:0,begin:i.concat("::",o)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),{className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},{className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},c,l,{className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},t.QUOTE_STRING_MODE,s,{className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},{className:"brace",relevance:0,begin:/[[\](){}]/}]}}}()),b9.registerLanguage("matlab",c4?l4:(c4=1,l4=function(e){const t="('|\\.')+",i={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:i},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}})),b9.registerLanguage("maxima",u4?d4:(u4=1,d4=function(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}})),b9.registerLanguage("mel",h4?p4:(h4=1,p4=function(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),b9.registerLanguage("mercury",g4?f4:(g4=1,f4=function(e){const t=e.COMMENT("%","$"),i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains=a.contains.slice(),a.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{name:"Mercury",aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}})),b9.registerLanguage("mipsasm",_4?m4:(_4=1,m4=function(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}})),b9.registerLanguage("mizar",b4?v4:(b4=1,v4=function(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}})),b9.registerLanguage("perl",x4?y4:(x4=1,y4=function(e){const t=e.regex,i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"].join(" ")},n={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},s={begin:/->\{/,end:/\}/},o={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},r={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[o]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},c=[e.BACKSLASH_ESCAPE,n,r],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(e,a,n="\\1")=>{const s="\\1"===n?n:t.concat(n,a);return t.concat(t.concat("(?:",e,")"),a,/(?:\\.|[^\\\/])*?/,s,/(?:\\.|[^\\\/])*?/,n,i)},p=(e,a,n)=>t.concat(t.concat("(?:",e,")"),a,/(?:\\.|[^\\\/])*?/,n,i),h=[r,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...d,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,o]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,o,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return n.contains=h,s.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:h}})),b9.registerLanguage("mojolicious",w4?S4:(w4=1,S4=function(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}})),b9.registerLanguage("monkey",E4?C4:(E4=1,C4=function(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},i={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},a={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),i,a,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}})),b9.registerLanguage("moonscript",T4?k4:(T4=1,k4=function(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},i="[A-Za-z$_][0-9A-Za-z$_]*",a={className:"subst",begin:/#\{/,end:/\}/,keywords:t},n=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];a.contains=n;const s=e.inherit(e.TITLE_MODE,{begin:i}),o="(\\(.*\\)\\s*)?\\B[-=]>",r={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(n)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:n.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,r]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[r]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}})),b9.registerLanguage("n1ql",R4?A4:(R4=1,A4=function(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}})),b9.registerLanguage("nestedtext",D4?I4:(D4=1,I4=function(e){return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}}]}})),b9.registerLanguage("nginx",M4?O4:(M4=1,O4=function(e){const t=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},a={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:a.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}\\{]"}})),b9.registerLanguage("nim",L4?N4:(L4=1,N4=function(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}})),b9.registerLanguage("nix",F4?P4:(F4=1,P4=function(e){const t=e.regex,i={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},a={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(e=>`builtins\\.${e}`)),relevance:10},n="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${n}(/${n})*>`)},o="[A-Za-z0-9_\\+\\.-]+",r={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},l=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(l,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},u={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[l,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${n}(\\.${n})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${n}(\\.${n})*(?=\\s*=)`),relevance:.2}]},h={scope:"subst",begin:/\$\{/,end:/\}/,keywords:i},f={scope:"char.escape",match:/\\(?!\$)./},g={scope:"string",variants:[{begin:"''",end:"''",contains:[{scope:"char.escape",match:/''\$/},h,{scope:"char.escape",match:/'''/},f]},{begin:'"',end:'"',contains:[{scope:"char.escape",match:/\\\$/},h,f]}]},m={scope:"params",match:new RegExp(`${n}\\s*:(?=\\s)`)},_=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),a,g,s,r,m,p,u,c];return h.contains=_,{name:"Nix",aliases:["nixos"],keywords:i,contains:_.concat([{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}})),b9.registerLanguage("node-repl",$4?B4:($4=1,B4=function(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}})),b9.registerLanguage("nsis",U4?V4:(U4=1,V4=function(e){const t=e.regex,i={className:"variable.constant",begin:t.concat(/\$/,t.either("ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},n={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},s={className:"variable",begin:/\$+\([\w^.:!-]+\)/},o={className:"params",begin:t.either("ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY")},r={className:"keyword",begin:t.concat(/!/,t.either("addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"))},l={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"char.escape",begin:/\$(\\[nrt]|\$)/},i,a,n,s]},c={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},d={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],literal:["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"]},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),d,c,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},l,r,a,n,s,o,{className:"title.function",begin:/\w+::\w+/},e.NUMBER_MODE]}})),b9.registerLanguage("objectivec",z4?H4:(z4=1,H4=function(e){const t=/[a-zA-Z@][a-zA-Z0-9_]*/,i={$pattern:t,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:t,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+i.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}})),b9.registerLanguage("ocaml",G4?Y4:(G4=1,Y4=function(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}})),b9.registerLanguage("openscad",j4?W4:(j4=1,W4=function(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),n={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",i,a,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a,t,{begin:"[*!#%]",relevance:0},n]}})),b9.registerLanguage("oxygene",K4?q4:(K4=1,q4=function(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},i=e.COMMENT(/\{/,/\}/,{relevance:0}),a=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),n={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[n,s]},i,a]};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[i,a,e.C_LINE_COMMENT_MODE,n,s,e.NUMBER_MODE,o,{scope:"punctuation",match:/;/,relevance:0}]}})),b9.registerLanguage("parser3",Z4?X4:(Z4=1,X4=function(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}})),b9.registerLanguage("pf",J4?Q4:(J4=1,Q4=function(e){return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:"variable",begin:/<(?!\/)/,end:/>/}]}})),b9.registerLanguage("pgsql",t8?e8:(t8=1,e8=function(e){const t=e.COMMENT("--","$"),i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",n=a.trim().split(" ").map(function(e){return e.split("|")[0]}).join("|"),s="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(e){return e.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+s+")\\s*\\("},{begin:"\\.("+n+")\\b"},{begin:"\\b("+n+")\\s+PATH\\b",keywords:{keyword:"PATH",type:a.replace("PATH ","")}},{className:"type",begin:"\\b("+n+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}})),b9.registerLanguage("php",a8?i8:(a8=1,i8=function(e){const t=e.regex,i=/(?![A-Za-z0-9])(?![$])/,a=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),n=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),s=t.concat(/[A-Z]+/,i),o={scope:"variable",match:"\\$+"+a},r={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c="[ \t\n]",d={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(r)}),l,{begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(r),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},u={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},p=["false","null","true"],h=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],f=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],g={keyword:h,literal:(e=>{const t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(p),built_in:f},m=e=>e.map(e=>e.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(c,"+"),t.concat("(?!",m(f).join("\\b|"),"\\b)"),n],scope:{1:"keyword",4:"title.class"}}]},v=t.concat(a,"\\b(?!\\()"),b={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[n,t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{1:"title.class",3:"variable.constant"}},{match:[n,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[n,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},y={scope:"attr",match:t.concat(a,t.lookahead(":"),t.lookahead(/(?!::)/))},x={relevance:0,begin:/\(/,end:/\)/,keywords:g,contains:[y,o,b,e.C_BLOCK_COMMENT_MODE,d,u,_]},S={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",m(h).join("\\b|"),"|",m(f).join("\\b|"),"\\b)"),a,t.concat(c,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[x]};x.contains.push(S);const w=[y,b,e.C_BLOCK_COMMENT_MODE,d,u,_],C={begin:t.concat(/#\[\s*\\?/,t.either(n,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:p,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:p,keyword:["new","array"]},contains:["self",...w]},...w,{scope:"meta",variants:[{match:n},{match:s}]}]};return{case_insensitive:!1,keywords:g,contains:[C,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},o,S,b,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",C,o,b,e.C_BLOCK_COMMENT_MODE,d,u]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},d,u]}})),b9.registerLanguage("php-template",s8?n8:(s8=1,n8=function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}})),b9.registerLanguage("plaintext",r8?o8:(r8=1,o8=function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}})),b9.registerLanguage("pony",c8?l8:(c8=1,l8=function(e){return{name:"Pony",keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),b9.registerLanguage("powershell",u8?d8:(u8=1,d8=function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},i={begin:"`[\\s\\S]",relevance:0},a={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},n={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},s={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},o=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),r={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},l={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},c={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[a]}]},d={begin:/using\s/,end:/$/,returnBegin:!0,contains:[n,s,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},u={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},p={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},h=[p,o,i,e.NUMBER_MODE,n,s,r,a,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],f={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",h,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return p.contains.unshift(f),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:t,contains:h.concat(l,c,d,u,f)}})),b9.registerLanguage("processing",h8?p8:(h8=1,p8=function(e){const t=e.regex,i=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],a=e.IDENT_RE,n={variants:[{match:t.concat(t.either(...i),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,a,t.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,a],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,a],className:{2:"property"}},r={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,a]},{match:[/class/,/\s+/,a]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}};return{name:"Processing",aliases:["pde"],keywords:{keyword:["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...i,"BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"],type:["boolean","byte","char","color","double","float","int","long","short"]},contains:[r,s,n,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),b9.registerLanguage("profile",g8?f8:(g8=1,f8=function(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}})),b9.registerLanguage("prolog",_8?m8:(_8=1,m8=function(e){const t={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},n={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},i,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,{className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/},e.C_NUMBER_MODE];return t.contains=s,i.contains=s,{name:"Prolog",contains:s.concat([{begin:/\.$/}])}})),b9.registerLanguage("properties",b8?v8:(b8=1,v8=function(e){const t="[ \\t\\f]*",i=t+"[:=]"+t,a="[ \\t\\f]+",n="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:"("+i+"|"+a+")",relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:n+i},{begin:n+a}],contains:[{className:"attr",begin:n,endsParent:!0}],starts:s},{className:"attr",begin:n+t+"$"}]}})),b9.registerLanguage("protobuf",x8?y8:(x8=1,y8=function(e){const t={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:["package","import","option","optional","required","repeated","group","oneof"],type:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}})),b9.registerLanguage("puppet",w8?S8:(w8=1,S8=function(e){const t=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:i}),n={className:"variable",begin:"\\$"+i},s={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[t,n,s,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[s,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},n]}],relevance:0}]}})),b9.registerLanguage("purebasic",E8?C8:(E8=1,C8=function(e){return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}})),b9.registerLanguage("python",T8?k8:(T8=1,k8=function(e){const t=e.regex,i=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],n={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},o={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},r={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,r,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,u=`\\b|${a.join("|")}`,p={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${u})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${u})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${u})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${u})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${u})`},{begin:`\\b(${c})[jJ](?=${u})`}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:n,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},f={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:["self",s,p,l,e.HASH_COMMENT_MODE]}]};return o.contains=[l,p,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:n,illegal:/(<\/|\?)|=>/,contains:[s,p,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[f]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,f,l]}]}})),b9.registerLanguage("python-repl",R8?A8:(R8=1,A8=function(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}})),b9.registerLanguage("q",D8?I8:(D8=1,I8=function(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),b9.registerLanguage("qml",M8?O8:(M8=1,O8=function(e){const t="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},a={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},n={begin:e.regex.concat(t,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},i,a,n],illegal:/#/}})),b9.registerLanguage("r",L8?N8:(L8=1,N8=function(e){const t=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),n=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:i},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[n,a]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[s,a]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:n},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}})),b9.registerLanguage("reasonml",F8?P8:(F8=1,P8=function(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}})),b9.registerLanguage("rib",$8?B8:($8=1,B8=function(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}})),b9.registerLanguage("roboconf",U8?V8:(U8=1,V8=function(e){const t="[a-zA-Z-_][^\\n{]+\\{",i={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[i,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",i,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[i,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}})),b9.registerLanguage("routeros",z8?H8:(z8=1,H8=function(e){const t="foreach do while for if from to step else on-error and or not in",i="true false yes no nothing nil null",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},s={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:i,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),n,s,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[n,s,a,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}})),b9.registerLanguage("rsl",G8?Y8:(G8=1,Y8=function(e){const t={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:["while","for","if","do","return","else","break","extern","continue"],built_in:["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],type:["matrix","float","color","point","normal","vector"]},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},t,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}})),b9.registerLanguage("ruleslanguage",j8?W8:(j8=1,W8=function(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}})),b9.registerLanguage("rust",K8?q8:(K8=1,q8=function(e){const t=e.regex,i=/(r#)?/,a=t.concat(i,e.UNDERSCORE_IDENT_RE),n=t.concat(i,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,n,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",r=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,a],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,a],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,a,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:r,type:l}},{className:"punctuation",begin:"->"},s]}})),b9.registerLanguage("sas",Z8?X8:(Z8=1,X8=function(e){const t=e.regex;return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"]},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either("bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window")},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either("abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate")+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}})),b9.registerLanguage("scala",J8?Q8:(J8=1,Q8=function(e){const t=e.regex,i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},a={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},n={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},s={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},o={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s]},r={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[s]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,n,r,o,e.C_NUMBER_MODE,{begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},{begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"},{begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}},{className:"meta",begin:"@[A-Za-z]+"}]}})),b9.registerLanguage("scheme",t6?e6:(t6=1,e6=function(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",a={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},n={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},s={className:"number",variants:[{begin:i,relevance:0},{begin:i+"[+\\-]"+i+"i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},o=e.QUOTE_STRING_MODE,r=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],l={begin:t,relevance:0},c={className:"symbol",begin:"'"+t},d={endsWithParent:!0,relevance:0},u={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",n,o,s,l,c]}]},p={className:"name",relevance:0,begin:t,keywords:a},h={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[p,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[l]}]},p,d]};return d.contains=[n,s,o,l,c,u,h].concat(r),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),s,o,c,u,h].concat(r)}})),b9.registerLanguage("scilab",a6?i6:(a6=1,i6=function(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}})),b9.registerLanguage("scss",function(){if(s6)return n6;s6=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),n=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();return n6=function(s){const o=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(s),r=a,l=i,c="@[a-z-]+",d={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,o.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},o.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},d,{begin:/\(/,end:/\)/,contains:[o.CSS_NUMBER_MODE]},o.CSS_VARIABLE,{className:"attribute",begin:"\\b("+n.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[o.BLOCK_COMMENT,d,o.HEXCOLOR,o.CSS_NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,o.IMPORTANT,o.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:c,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:c,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},d,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,o.HEXCOLOR,o.CSS_NUMBER_MODE]},o.FUNCTION_DISPATCH]}}}()),b9.registerLanguage("shell",r6?o6:(r6=1,o6=function(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}})),b9.registerLanguage("smali",c6?l6:(c6=1,l6=function(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}})),b9.registerLanguage("smalltalk",u6?d6:(u6=1,d6=function(e){const t="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},a={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,a,i,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,i,e.C_NUMBER_MODE,a]}]}})),b9.registerLanguage("sml",h6?p6:(h6=1,p6=function(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}})),b9.registerLanguage("sqf",g6?f6:(g6=1,f6=function(e){const t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(t,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],built_in:["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],literal:["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},t,i],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}})),b9.registerLanguage("sql",_6?m6:(_6=1,m6=function(e){const t=e.regex,i=e.COMMENT("--","$"),a=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],n=a,s=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(e=>!a.includes(e)),o={match:t.concat(/\b/,t.either(...n),/\s*\(/),relevance:0,keywords:{built_in:n}};function r(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}const l={scope:"keyword",match:r(["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"]),relevance:0};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:i}={}){const a=i;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:a(e)?`${e}|0`:e)}(s,{when:e=>e.length<3}),literal:["true","false","unknown"],type:["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{scope:"type",match:r(["double precision","large object","with timezone","without timezone"])},l,o,{scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},{scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},{begin:/"/,end:/"/,contains:[{match:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,{scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}})),b9.registerLanguage("stan",b6?v6:(b6=1,v6=function(e){const t=e.regex,i=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],a=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),n={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},s=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:["functions","model","data","parameters","quantities","transformed","generated"],type:["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],keyword:["for","in","if","else","while","break","continue","return"],built_in:["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"]},contains:[e.C_LINE_COMMENT_MODE,n,e.HASH_COMMENT_MODE,a,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...s),/\s*=/),keywords:s},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...i),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:i,begin:t.concat(/\w*/,t.either(...i),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...i),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...i)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}})),b9.registerLanguage("stata",x6?y6:(x6=1,y6=function(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),b9.registerLanguage("step21",w6?S6:(w6=1,S6=function(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}})),b9.registerLanguage("stylus",function(){if(E6)return C6;E6=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),n=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();return C6=function(s){const o=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(s),r={className:"variable",begin:"\\$"+s.IDENT_RE},l="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,o.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+l,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+l,className:"selector-id"},{begin:"\\b("+e.join("|")+")"+l,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+l},{className:"selector-pseudo",begin:"&?:(:)?("+a.join("|")+")"+l},o.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[o.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"].join("|")+"))\\b"},r,o.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[o.HEXCOLOR,r,s.APOS_STRING_MODE,o.CSS_NUMBER_MODE,s.QUOTE_STRING_MODE]}]},o.CSS_VARIABLE,{className:"attribute",begin:"\\b("+n.join("|")+")\\b",starts:{end:/;|$/,contains:[o.HEXCOLOR,r,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,o.CSS_NUMBER_MODE,s.C_BLOCK_COMMENT_MODE,o.IMPORTANT,o.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},o.FUNCTION_DISPATCH]}}}()),b9.registerLanguage("subunit",T6?k6:(T6=1,k6=function(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}})),b9.registerLanguage("swift",function(){if(R6)return A6;function e(e){return e?"string"==typeof e?e:e.source:null}function t(e){return i("(?=",e,")")}function i(...t){return t.map(t=>e(t)).join("")}function a(...t){const i=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(t);return"("+(i.capture?"":"?:")+t.map(t=>e(t)).join("|")+")"}R6=1;const n=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(n),o=["init","self"].map(n),r=["Any","Self"],l=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],c=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],u=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],h=a(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),f=a(h,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),g=i(h,f,"*"),m=a(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),_=a(m,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=i(m,_,"*"),b=i(/[A-Z]/,_,"*"),y=["attached","autoclosure",i(/convention\(/,a("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",i(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],x=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];return A6=function(e){const h={match:/\s+/,relevance:0},m=e.COMMENT("/\\*","\\*/",{contains:["self"]}),S=[e.C_LINE_COMMENT_MODE,m],w={match:[/\./,a(...s,...o)],className:{2:"keyword"}},C={match:i(/\./,a(...l)),relevance:0},E=l.filter(e=>"string"==typeof e).concat(["_|0"]),k={variants:[{className:"keyword",match:a(...l.filter(e=>"string"!=typeof e).concat(r).map(n),...o)}]},T={$pattern:a(/\b\w+/,/#\w+/),keyword:E.concat(u),literal:c},A=[w,C,k],R=[{match:i(/\./,a(...p)),relevance:0},{className:"built_in",match:i(/\b/,a(...p),/(?=\()/)}],I={match:/->/,relevance:0},D=[I,{className:"operator",relevance:0,variants:[{match:g},{match:`\\.(\\.|${f})+`}]}],O="([0-9]_*)+",M="([0-9a-fA-F]_*)+",N={className:"number",relevance:0,variants:[{match:`\\b(${O})(\\.(${O}))?([eE][+-]?(${O}))?\\b`},{match:`\\b0x(${M})(\\.(${M}))?([pP][+-]?(${O}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},L=(e="")=>({className:"subst",variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),P=(e="")=>({className:"subst",match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),F=(e="")=>({className:"subst",label:"interpol",begin:i(/\\/,e,/\(/),end:/\)/}),B=(e="")=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[L(e),P(e),F(e)]}),$=(e="")=>({begin:i(e,/"/),end:i(/"/,e),contains:[L(e),F(e)]}),V={className:"string",variants:[B(),B("#"),B("##"),B("###"),$(),$("#"),$("##"),$("###")]},U=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],H={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:U},z=e=>{const t=i(e,/\//),a=i(/\//,e);return{begin:t,end:a,contains:[...U,{scope:"comment",begin:`#(?!.*${a})`,end:/$/}]}},Y={scope:"regexp",variants:[z("###"),z("##"),z("#"),H]},G={match:i(/`/,v,/`/)},W=[G,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${_}+`}],j=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:x,contains:[...D,N,V]}]}},{scope:"keyword",match:i(/@/,a(...y),t(a(/\(/,/\s+/)))},{scope:"meta",match:i(/@/,v)}],q={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,_,"+")},{className:"type",match:b,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,t(b)),relevance:0}]},K={begin:/</,end:/>/,keywords:T,contains:[...S,...A,...j,I,q]};q.contains.push(K);const X={begin:/\(/,end:/\)/,relevance:0,keywords:T,contains:["self",{match:i(v,/\s*:/),keywords:"_|0",relevance:0},...S,Y,...A,...R,...D,N,V,...W,...j,q]},Z={begin:/</,end:/>/,keywords:"repeat each",contains:[...S,q]},Q={begin:/\(/,end:/\)/,keywords:T,contains:[{begin:a(t(i(v,/\s*:/)),t(i(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},...S,...A,...D,N,V,...j,q,X],endsParent:!0,illegal:/["']/},J={match:[/(func|macro)/,/\s+/,a(G.match,v,g)],className:{1:"keyword",3:"title.function"},contains:[Z,Q,h],illegal:[/\[/,/%/]},ee={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Z,Q,h],illegal:/\[|%/},te={match:[/operator/,/\s+/,g],className:{1:"keyword",3:"title"}},ie={begin:[/precedencegroup/,/\s+/,b],className:{1:"keyword",3:"title"},contains:[q],keywords:[...d,...c],end:/}/},ae={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,v,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:T,contains:[Z,...A,{begin:/:/,end:/\{/,keywords:T,contains:[{scope:"title.class.inherited",match:b},...A],relevance:0}]};for(const t of V.variants){const e=t.contains.find(e=>"interpol"===e.label);e.keywords=T;const i=[...A,...R,...D,N,V,...W];e.contains=[...i,{begin:/\(/,end:/\)/,contains:["self",...i]}]}return{name:"Swift",keywords:T,contains:[...S,J,ee,{match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},{match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ae,te,ie,{beginKeywords:"import",end:/$/,contains:[...S],relevance:0},Y,...A,...R,...D,N,V,...W,...j,q,X]}}}()),b9.registerLanguage("taggerscript",D6?I6:(D6=1,I6=function(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}})),b9.registerLanguage("yaml",M6?O6:(M6=1,O6=function(e){const t="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},n=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},r={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},s,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},r,l,{className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a],d=[...c];return d.pop(),d.push(n),o.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}})),b9.registerLanguage("tap",L6?N6:(L6=1,N6=function(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}})),b9.registerLanguage("tcl",F6?P6:(F6=1,P6=function(e){const t=e.regex,i=/[a-zA-Z_][a-zA-Z0-9_]*/,a={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),i,"(::",i,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[a]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},a]}})),b9.registerLanguage("thrift",$6?B6:($6=1,B6=function(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}})),b9.registerLanguage("tp",U6?V6:(U6=1,V6=function(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,i]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,i]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}})),b9.registerLanguage("twig",(z6||(z6=1,H6=function(e){const t=e.regex,i=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"];let a=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];a=a.concat(a.map(e=>`end${e}`));const n={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},s={scope:"number",match:/\d+/},o={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[n,s]},r={beginKeywords:i.join(" "),keywords:{name:i},relevance:0,contains:[o]},l={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"]}]},c=(e,{relevance:i})=>({beginScope:{1:"template-tag",3:"name"},relevance:i||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:"in",contains:[l,r,n,s]}),d=c(a,{relevance:2}),u=c([/[a-z_]+/],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),d,u,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",l,r,n,s]}]}}),H6)),b9.registerLanguage("typescript",function(){if(G6)return Y6;G6=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],r=[].concat(s,a,n);return Y6=function(l){const c=l.regex,d=function(l){const c=l.regex,d=e,u="<>",p="</>",h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const i=e[0].length+e.index,a=e.input[i];if("<"===a||","===a)return void t.ignoreMatch();let n;">"===a&&(((e,{after:t})=>{const i="</"+e[0].slice(1);return-1!==e.input.indexOf(i,t)})(e,{after:i})||t.ignoreMatch());const s=e.input.substring(i);((n=s.match(/^\s*=/))||(n=s.match(/^\s+extends\s+/))&&0===n.index)&&t.ignoreMatch()}},f={$pattern:e,keyword:t,literal:i,built_in:r,"variable.language":o},g="[0-9](_?[0-9])*",m=`\\.(${g})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${_})((${m})|\\.)?|(${m}))[eE][+-]?(${g})\\b`},{begin:`\\b(${_})\\b((${m})\\b|\\.)?|(${m})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,b],subLanguage:"css"}},S={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,b]},C={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},E=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,x,S,w,{match:/\$\d+/},v];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(E)});const k=[].concat(C,b.contains),T=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(k)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...n]}},D={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},O={match:c.concat(/\b/,(M=[...s,"super","import"].map(e=>`${e}\\s*\\(`),c.concat("(?!",M.join("|"),")")),d,c.lookahead(/\s*\(/)),className:"title.function",relevance:0};var M;const N={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},L={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",F={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,x,S,w,C,{match:/\$\d+/},v,I,{scope:"attr",match:d+c.lookahead(":"),relevance:0},F,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,l.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u,end:p},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,l.inherit(l.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},N,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},O,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},R,L,{match:/\$[(.]/}]}}(l),u=e,p=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},f={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:p},contains:[d.exports.CLASS_REFERENCE]},g={$pattern:e,keyword:t.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:i,built_in:r.concat(p),"variable.language":o},m={className:"meta",begin:"@"+u},_=(e,t,i)=>{const a=e.contains.findIndex(e=>e.label===t);if(-1===a)throw new Error("can not find mode to replace");e.contains.splice(a,1,i)};Object.assign(d.keywords,g),d.exports.PARAMS_CONTAINS.push(m);const v=d.contains.find(e=>"attr"===e.scope),b=Object.assign({},v,{match:c.concat(u,c.lookahead(/\s*\?:/))});return d.exports.PARAMS_CONTAINS.push([d.exports.CLASS_REFERENCE,v,b]),d.contains=d.contains.concat([m,h,f,b]),_(d,"shebang",l.SHEBANG()),_(d,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),d.contains.find(e=>"func.def"===e.label).relevance=0,Object.assign(d,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),d}}()),b9.registerLanguage("vala",j6?W6:(j6=1,W6=function(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}})),b9.registerLanguage("vbnet",K6?q6:(K6=1,q6=function(e){const t=e.regex,i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,n=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,o={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,n,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(n,s),/ *#/)}]},r=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),l=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},r,l,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[l]}]}})),b9.registerLanguage("vbscript",Z6?X6:(Z6=1,X6=function(e){const t=e.regex,i=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"];return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[{begin:t.concat(t.either(...i),"\\s*\\("),relevance:0,keywords:{built_in:i}},e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}})),b9.registerLanguage("vbscript-html",J6?Q6:(J6=1,Q6=function(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}})),b9.registerLanguage("verilog",t9?e9:(t9=1,e9=function(e){const t=e.regex,i=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either("__FILE__","__LINE__"))},{scope:"meta",begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}})),b9.registerLanguage("vhdl",a9?i9:(a9=1,i9=function(e){const t="\\d(_|\\d)*",i="[eE][-+]?"+t,a="\\b("+t+"#\\w+(\\.\\w+)?#("+i+")?|"+t+"(\\."+t+")?("+i+")?)";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}})),b9.registerLanguage("vim",s9?n9:(s9=1,n9=function(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}})),b9.registerLanguage("wasm",r9?o9:(r9=1,o9=function(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);return t.contains.push("self"),{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"]},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},{className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}})),b9.registerLanguage("wren",c9?l9:(c9=1,l9=function(e){const t=e.regex,i=/[a-zA-Z]\w*/,a=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],n=["true","false","null"],s=["this","super"],o=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],r={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,i,/(?=\s*[({])/),className:"title.function"},l={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,i),t.either(...o)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:i}]}]}},c={variants:[{match:[/class\s+/,i,/\s+is\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},d={relevance:0,match:t.either(...o),className:"operator"},u={className:"property",begin:t.concat(/\./,t.lookahead(i)),end:i,excludeBegin:!0,relevance:0},p={relevance:0,match:t.concat(/\b_/,i),scope:"variable"},h={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"]}},f=e.C_NUMBER_MODE,g={match:[i,/\s*/,/=/,/\s*/,/\(/,i,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},m=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),_={scope:"subst",begin:/%\(/,end:/\)/,contains:[f,h,r,p,d]},v={scope:"string",begin:/"/,end:/"/,contains:[_,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};_.contains.push(v);const b=[...a,...s,...n],y={relevance:0,match:t.concat("\\b(?!",b.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:a,"variable.language":s,literal:n},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:n},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},f,v,{className:"string",begin:/"""/,end:/"""/},m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c,g,l,r,d,p,u,y]}})),b9.registerLanguage("x86asm",u9?d9:(u9=1,d9=function(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}})),b9.registerLanguage("xl",h9?p9:(h9=1,p9=function(e){const t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],literal:["true","false","nil"],built_in:["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"].concat(["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"])},i={className:"string",begin:'"',end:'"',illegal:"\\n"},a={beginKeywords:"import",end:"$",keywords:t,contains:[i]},n={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:"XL",aliases:["tao"],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},n,a,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}})),b9.registerLanguage("xquery",g9?f9:(g9=1,f9=function(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}})),b9.registerLanguage("zephir",_9?m9:(_9=1,m9=function(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i=e.UNDERSCORE_TITLE_MODE,a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},n="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[i,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:["self",e.C_BLOCK_COMMENT_MODE,t,a]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},t,a]}})),b9.HighlightJS=b9,b9.default=b9;const y9=Dk(b9);function x9(e){const t=window.fluentSupportAdmin&&window.fluentSupportAdmin.i18n;return t&&t[e]||e}const S9=[{max:.05,tone:"neutral",range:x9("0.0 — Deterministic"),behavior:x9("Same prompt gives near-identical answers. Tightest grounding in your documents, but terse and formulaic."),risk:x9("can repeat itself, and keeps one framing even when that framing is wrong."),fit:x9("knowledge-base answers, extraction, classification.")},{max:.35,tone:"safe",recommended:!0,range:x9("0.1–0.3 — Grounded"),behavior:x9("Still tightly grounded, with slight wording variation between runs. Reads noticeably less robotic."),risk:x9("almost nothing. Safest natural-sounding band."),fit:x9("support replies, ticket summaries.")},{max:.75,tone:"neutral",range:x9("0.4–0.7 — Balanced"),behavior:x9("Clear rewording run to run. Starts paraphrasing your sources instead of quoting them."),risk:x9("mild fact drift — it will smooth over gaps in the context instead of flagging them."),fit:x9("general assistant chat, copy drafting.")},{max:1.05,tone:"caution",range:x9("0.8–1.0 — Creative"),behavior:x9("Varied structure and wording. Will volunteer information that is not in your documents."),risk:x9("made-up details climb clearly, and tool arguments get sloppy."),fit:x9("brainstorming, marketing copy.")},{max:1.55,tone:"warning",range:x9("1.1–1.5 — Divergent"),behavior:x9("Strong divergence. Novel phrasings and unusual analogies."),risk:x9("formatting breaks down and the answer can contradict its own context."),fit:x9("idea generation only.")},{max:1/0,tone:"danger",range:x9("1.6–2.0 — Unstable"),behavior:x9("Rare tokens appear often and coherence degrades fast."),risk:x9("word salad, unexpected language switching, runaway repetition."),fit:x9("not usable for customer-facing replies.")}],w9={name:"FluentBotAIResponseGenerator",components:{Plus:vS,Clock:Nx},props:["aiProvider","ticketId","productID","addContextId","ticketResponses"],emits:["close","insert","contextAdded"],data(){return{prompt:"",presetPrompt:"",errorMessage:"",aiResponse:"",loading:!1,selectedPrompt:"",isFullSize:!0,presetPrompts:[],draftData:[],showDraft:!1,finalPrompts:"",products:[],hasGeneralBot:!1,selectedProduct:this.productID?parseInt(this.productID):0,chatId:null,isStreaming:!1,streamingChatId:null,streamingEpoch:null,streamStatus:null,streamBuffer:"",displayedText:"",typingQueue:[],messages:[],nextCursor:null,loadingMessages:!1,pendingSources:null,feedbackDialogVisible:!1,feedbackComment:"",pendingFeedbackMessageId:null,pastDialogVisible:!1,pastConversations:[],activeChatId:null,loadingPast:!1,switchingConversation:!1,pendingMessageId:null,ticketConversations:[],selectedContextIds:[],showContextPicker:!1,showTempPicker:!1,contextSearchQuery:"",includeTicketContent:!0,webSearch:!1,temperature:(()=>{const e=parseFloat(localStorage.getItem("fs_fluentbot_temperature"));return Number.isFinite(e)?Math.min(2,Math.max(0,e)):0})(),contextReady:!1,botSwitchDialogVisible:!1,pendingProductSwitch:null,seedMessages:null,configReady:!1}},created(){this._isRevertingProduct=!1,this._streamAbort=null,this._resumeAbort=null,this._requestEpoch=0,this._historyFetch=null,this._streamToken=0,this._turnPrompt=null,this._pendingChatReset=!1,this._streamBuffer="",this._streamRafId=null,this._configuredProductIds=new Set},computed:{turnBelongsHere(){return null!==this.streamingChatId?this.streamingChatId===this.chatId:this.streamingEpoch===this._requestEpoch},isGeneratingHere(){return this.isStreaming&&this.turnBelongsHere},streamStatusText(){const e=this.streamStatus;if(e&&e.label)return String(e.label);const t={searching:this.$t("Searching the knowledge base"),web_searching:this.$t("Searching the web"),reading_sources:this.$t("Reading sources"),calling_tool:this.$t("Working")};return e&&t[e.stage]||this.$t("Generating")},isAwaitingHere(){return this.loading&&!this.isStreaming&&!this.aiResponse&&this.turnBelongsHere},hasLiveActivityHere(){return this.isGeneratingHere||this.isAwaitingHere},ticketResponseIds(){return(this.ticketResponses||[]).filter(e=>"response"===e.conversation_type).map(e=>e.id).join(",")},filteredContextConversations(){if(!this.contextSearchQuery.trim())return this.ticketConversations;const e=this.contextSearchQuery.toLowerCase();return this.ticketConversations.filter(t=>t.preview&&t.preview.toLowerCase().includes(e)||t.name&&t.name.toLowerCase().includes(e)||t.role&&t.role.toLowerCase().includes(e))},title:()=>"Generate Responses with FluentBot",noBotAvailable(){return this.configReady&&!this.hasGeneralBot&&0===this.products.length},noBotForThisProduct(){if(!this.configReady||this.hasGeneralBot||0===this.products.length)return!1;const e=parseInt(this.selectedProduct)||0;return 0===e||!this._configuredProductIds.has(e)},composerDisabled(){return this.noBotAvailable||this.noBotForThisProduct},composerPlaceholder(){return this.noBotAvailable?this.$t("Configure a bot in FluentBot settings to start chatting"):this.noBotForThisProduct?this.$t("Pick a configured product from the dropdown to start chatting"):this.$t("Enter your prompt here...")},contextPickerTooltip(){const e=this.ticketConversations.length;if(0===e)return this.$t("No prior replies on this ticket yet — nothing to pick as context");const t=this.selectedContextIds.length;return t===e?this.$t("All ticket replies sent as context"):0===t?this.$t("No ticket replies sent as context"):this.$t("{0} of {1} ticket replies sent as context").replace("{0}",t).replace("{1}",e)},temperatureGuide(){return{...S9.find(e=>this.temperature<e.max)}},canManageBotSettings(){var e,t,i;return!!(null==(i=null==(t=null==(e=this.appVars)?void 0:e.me)?void 0:t.permissions)?void 0:i.includes("fst_manage_settings"))},description:()=>"Let FluentBot generate ticket responses to enhance support efficiency.",formattedResponse(){return bJ(this.aiResponse)}},watch:{ticketId(e,t){e!==t&&this.resetForTicketChange()},productID(e){const t=e?parseInt(e):0;this.setProductSilently(t),this.configReady&&this.applyProductFallback()},temperature(e){const t=Math.min(2,Math.max(0,Number.isFinite(e)?e:0));if(t===e)try{localStorage.setItem("fs_fluentbot_temperature",String(t))}catch(NO){}else this.temperature=t},addContextId:{handler(e){e&&this.applyPendingContextId(e)},immediate:!0},selectedContextIds:{handler(){this.contextReady&&this.saveContextSelection()},deep:!0},selectedProduct(e,t){this._isRevertingProduct||e===t||(this.chatId||0!==this.messages.length)&&(this.setProductSilently(t),this.pendingProductSwitch=e,this.botSwitchDialogVisible=!0)},includeTicketContent(){this.contextReady&&this.saveContextSelection()},ticketResponseIds(e,t){if(!t||e===t)return;const i=this.ticketConversations.map(e=>e.id);this.buildTicketConversations();const a=this.ticketConversations.filter(e=>!i.includes(e.id)).map(e=>e.id);a.length>0&&(this.selectedContextIds.push(...a),this.contextReady&&this.saveContextSelection())},showContextPicker(e){e?(this.showTempPicker=!1,this.$nextTick(()=>{var e;null==(e=this.$refs.contextSearchInput)||e.focus()})):this.contextSearchQuery=""},showTempPicker(e){e&&(this.showContextPicker=!1)}},methods:{getFormattedTextForEditor:e=>e?e.replace(/#{1,6}\s+(.+)/g,(e,t)=>`\n\n**${t.trim()}**\n\n`).replace(/\*\*([^*]+)\*\*/g,"**$1**").replace(/\*([^*]+)\*/g,"_$1_").replace(/```(\w*)\n?([\s\S]*?)```/g,(e,t,i)=>{const a=i.trim().split("\n").map(e=>` ${e}`).join("\n");return`\n\n${t?`${t.toUpperCase()} Code:`:"Code:"}\n${a}\n\n`}).replace(/`([^`]+)`/g,"`$1`").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1 ($2)").replace(/^\s*[-*+]\s+/gm,"• ").replace(/^\s*(\d+)\.\s+/gm,"$1. ").replace(/\n{3,}/g,"\n\n").replace(/(\*\*[^*]+\*\*)/g,"\n$1\n").replace(/\n{3,}/g,"\n\n").trim():"",getCleanTextForEditor:e=>e?e.replace(/#+\s+/g,"").replace(/\*\*/g,"").replace(/\*/g,"").replace(/`{3}[\s\S]*?`{3}/g,e=>e.replace(/^```\w*\n/,"").replace(/```$/,"")).replace(/`([^`]+)`/g,"$1").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").trim():"",saveDraft(){const e="createResponseDraft",t=JSON.parse(this.$getData(e)||"[]")||[];t.length>=3&&t.shift();const i=this.getCleanTextForEditor(this.aiResponse);t.push(i),this.$saveData(e,JSON.stringify(t)),this.draftData=t},addToStream(e){e&&""!==e.trim()&&(this._streamBuffer=(this._streamBuffer||"")+e,this._streamRafId||(this._streamRafId=requestAnimationFrame(()=>{this._streamRafId=null,this._streamBuffer&&(this.aiResponse+=this._streamBuffer,this._streamBuffer="",this.scrollToBottom())})))},flushStreamBuffer(){this._streamRafId&&(cancelAnimationFrame(this._streamRafId),this._streamRafId=null),this._streamBuffer&&(this.aiResponse+=this._streamBuffer,this._streamBuffer="")},handleChatIdReceived(e){e&&e!==this.chatId&&(this.chatId=e,this.saveChatIdToServer(e)),e&&this.isStreaming&&null===this.streamingChatId&&(this.streamingChatId=e)},consumeSseStream(e,t,i){if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);if(!e.body)throw new Error("Streaming not supported in this browser");const a=e.body.getReader(),n=new TextDecoder;let s="";const o=()=>a.read().then(({done:e,value:a})=>{if(e)return void(i&&i());s+=n.decode(a,{stream:!0});const r=s.split("\n");let l=[],c="message";for(let i=0;i<r.length;i++){const e=r[i];if(e.startsWith("event: ")){if(l.length>0){if(t(c,l.join("\n")))return;l=[]}c=e.substring(7).trim()}else if(e.startsWith("data: "))l.push(e.substring(6));else if(""===e.trim()&&l.length>0){if(t(c,l.join("\n")))return;l=[]}}return l.length>0&&t(c,l.join("\n"))?void 0:(s=r[r.length-1]||"",o())});return o()},processEventData(e,t,i){if("message"===e&&t&&""!==t.trim())this.streamStatus=null,this.streamBuffer+=t,this.addToStream(t);else if("status"===e&&t)try{const e=JSON.parse(t);this.streamStatus=e&&"object"==typeof e?e:{stage:String(e)}}catch(NO){this.streamStatus={stage:t.trim()}}else if("chat_id"===e&&t)this.handleChatIdReceived(t.trim());else if("sources"===e&&t)try{this.pendingSources=JSON.parse(t)}catch(NO){}else if("message_id"===e&&t)this.pendingMessageId=t.trim()||null;else if("token_usage"===e);else{if("done"===e||"end"===e){if(this.flushStreamBuffer(),this.aiResponse){const e={role:"ai",content:this.aiResponse,message_id:this.pendingMessageId,feedback:null};this.pendingSources&&this.pendingSources.length&&(e.sources=this.pendingSources),this.messages.push(this.prepareMessage(e)),this.pendingSources=null,this.pendingMessageId=null}return this.loading=!1,this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this.aiResponse="",this.finalPrompts=i,this._turnPrompt=null,this.selectedPrompt="",this.scrollToBottom(),!0}if("error"===e){this.loading=!1,this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null;let e=this.$t("Failed to generate response. Please try again.");try{const i=JSON.parse(t);i&&(i.error||i.message)&&(e=i.error||i.message)}catch(NO){}return this.errorMessage=e,!0}}return!1},sendMessage(){!this.prompt.trim()||this.isStreaming||this.loadingMessages||this.generateResponse(this.prompt)},prepareMessage(e){return"ai"===e.role&&e.content&&!e.htmlContent&&(e.htmlContent=this.formatMarkdown(e.content)),e},formatMarkdown:e=>bJ(e),copyMessageText(e){const t=this.getCleanTextForEditor(e);navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then(()=>{this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}).catch(()=>{this.fallbackCopy(t)}):this.fallbackCopy(t)},fallbackCopy(e){const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}catch(NO){this.$notify({message:this.$t("Something went wrong"),type:"danger",position:"bottom-right"})}document.body.removeChild(t)},scrollToBottom(){this.$nextTick(()=>{const e=this.$refs.chatContainer;e&&(e.scrollTop=e.scrollHeight)})},generateResponse(e){if(this.noBotAvailable)return void(this.errorMessage=this.$t("Add a bot in FluentBot settings before chatting."));if(this.noBotForThisProduct)return void(this.errorMessage=this.$t("Pick a configured product from the dropdown before sending."));const t=e.trim();if(!t)return void(this.errorMessage="Prompt is required.");this.messages.push({role:"user",content:t}),this.prompt="",this.$nextTick(()=>{const e=this.$refs.promptTextarea;e&&(e.style.height="auto")}),this.errorMessage="",this.loading=!0,this.isStreaming=!0,this.streamingChatId=this.chatId,this.streamStatus=null,this._turnPrompt=t,this.aiResponse="",this.displayedText="",this.typingQueue=[],this.streamBuffer="",this.scrollToBottom();const i={content:t,id:this.ticketId,type:"createResponse",provider:this.aiProvider,product_id:this.selectedProduct,web_search:this.webSearch,temperature:this.temperature};this.contextReady&&(i.selected_conversations=this.selectedContextIds,i.include_ticket_content=this.includeTicketContent),this.chatId&&(i.chat_id=this.chatId),this._pendingChatReset&&(i.reset_chat=!0,this._pendingChatReset=!1),this.seedMessages&&(i.conversation_history=this.seedMessages,this.seedMessages=null);const a=this.appVars.rest.url,n=this.appVars.rest.nonce;this._streamAbort&&this._streamAbort.abort(),this.abortResume(),this._streamAbort=new AbortController;const s=++this._streamToken,o=this._requestEpoch;this.streamingEpoch=o;const r=()=>this._streamToken===s&&(null===this.streamingChatId?o===this._requestEpoch:this.streamingChatId===this.chatId);fetch(`${a}/fluent-bot/${this.ticketId}/generate-stream-response`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(i),signal:this._streamAbort.signal}).then(e=>this.consumeSseStream(e,(e,i)=>{if(this._streamToken!==s)return!0;if(!r()){if("done"===e||"end"===e||"error"===e)return this.releaseTurn(),!0;if("chat_id"===e||"message_id"===e)return!1}return this.processEventData(e,i,t)},()=>{if(this._streamToken===s)if(r()){if(this.aiResponse){const e={role:"ai",content:this.aiResponse,message_id:this.pendingMessageId,feedback:null};this.pendingSources&&this.pendingSources.length&&(e.sources=this.pendingSources),this.messages.push(this.prepareMessage(e)),this.pendingSources=null,this.pendingMessageId=null,this.aiResponse=""}this.loading=!1,this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this._turnPrompt=null,this.finalPrompts=t,this.selectedPrompt="",this.scrollToBottom()}else this.releaseTurn()})).catch(e=>{e&&"AbortError"===e.name||(this.loading=!1,this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this.errorMessage="Failed to generate response. Please try again.")})},selectPresetPrompt(e){this.selectedPrompt=e;const t=this.presetPrompts.find(t=>t.text===e.text);this.presetPrompt=`${t.description}`,this.prompt="",this.generateResponse(this.presetPrompt)},isSelected(e){return this.selectedPrompt===e},closeModal(){this.$emit("close")},async copyText(){try{const e=this.getCleanTextForEditor(this.aiResponse);await navigator.clipboard.writeText(e),this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}catch(e){this.$notify({message:this.$t("Something went wrong"),type:"danger",position:"bottom-right"})}},resetData(){this.aiResponse="",this.selectedPrompt="",this.prompt="",this.chatId=null,this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this.displayedText="",this.typingQueue=[],this.streamBuffer="",this.messages=[],this.nextCursor=null,this.pendingSources=null,this.removeDraft()},insertReply(e){this.$emit("insert",bJ(e))},fetchPresets(){this.$get("fluent-bot/preset-prompts",{type:"createResponse",provider:this.aiProvider}).then(e=>{this.presetPrompts=e}).catch(e=>{this.$handleError(e)})},setProductSilently(e){this._isRevertingProduct=!0,this.selectedProduct=e,this.$nextTick(()=>{this._isRevertingProduct=!1})},applyProductFallback(){const e=this._configuredProductIds,t=parseInt(this.selectedProduct)||0;0!==t&&e.has(t)||(this.hasGeneralBot?this.setProductSilently(0):this.setProductSilently(""))},fetchConfiguredProducts(){this.$get("fluent-bot/runtime-config").then(e=>{this.hasGeneralBot=!!e.hasGeneralBot;const t=new Set((e.configuredProductIds||[]).map(e=>parseInt(e))),i=this.appVars.support_products||[];this.products=i.filter(e=>t.has(parseInt(e.id))),this._configuredProductIds=t,this.applyProductFallback(),this.configReady=!0}).catch(e=>{this.products=[],this.hasGeneralBot=!1,this.configReady=!0})},removeDraft(){this.removeData("createResponseDraft"),this.draftData=[]},removeData(e){let t=this.$getData("__fluentsupport_data");t&&(t=JSON.parse(t),delete t[e],this.$saveData("__fluentsupport_data",JSON.stringify(t)))},getSnippet:e=>e.length>30?e.substring(0,30)+"...":e,selectDraft(e){this.aiResponse=e,this.displayedText=e,this.typingQueue=[],this.streamBuffer=e},saveChatIdToServer(e){if(!e)return;const t=this.messages.find(e=>"user"===e.role),i=t?String(t.content||"").slice(0,60):"";this.$post(`fluent-bot/${this.ticketId}/chat-id`,{chat_id:e,product_id:this.selectedProduct,title:i}).catch(e=>{this.errorMessage=this.$t("Failed to save chat session. Your messages may not persist on reload.")})},resetForTicketChange(){this._streamAbort&&(this._streamAbort.abort(),this._streamAbort=null),this.abortResume(),this._requestEpoch++,this.streamingEpoch=null,this._pendingChatReset=!1,this.messages=[],this.chatId=null,this.nextCursor=null,this.seedMessages=null,this.aiResponse="",this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this.loading=!1,this.streamBuffer="",this.selectedPrompt="",this.errorMessage="",this.prompt="",this.pendingSources=null,this.pendingMessageId=null,this.ticketConversations=[],this.selectedContextIds=[],this.contextReady=!1,this.showContextPicker=!1,this.contextSearchQuery="",this.includeTicketContent=!0,this.botSwitchDialogVisible=!1,this.pendingProductSwitch=null,this.buildTicketConversations(),this.loadContextSelection(),this.restoreChatState()},restoreChatState(){const e=this._requestEpoch,t=this.ticketId;this.$get(`fluent-bot/${t}/chat-id`).then(i=>{if(e===this._requestEpoch&&t===this.ticketId&&i.chat_id){this.chatId=i.chat_id,null!==i.product_id&&void 0!==i.product_id&&this.setProductSilently(i.product_id);const e=i.chat_id;this.fetchChatMessages().then(()=>this.tryResume(e))}}).catch(e=>{})},fetchChatMessages(e){if(this.loadingMessages&&this._historyFetch)return this._historyFetch.then(()=>this.fetchChatMessages(e));this.loadingMessages=!0;const t=this._requestEpoch,i={product_id:this.selectedProduct};e&&(i.cursor=e);const a=this.$get(`fluent-bot/${this.ticketId}/chat-messages`,i).then(i=>{if(t!==this._requestEpoch)return;const a=(i.data||[]).map(e=>{const t={role:"visitor"===e.role||"human"===e.role?"user":"ai",content:e.content,message_id:e.id||null,feedback:e.feedback||null};return e.sources&&e.sources.length&&(t.sources=e.sources),this.prepareMessage(t)}).reverse();if(e){const e=new Set(this.messages.map(e=>e.message_id).filter(Boolean)),t=a.filter(t=>!t.message_id||!e.has(t.message_id)),i=this.$refs.chatContainer,n=i?i.scrollHeight:0;this.messages=[...t,...this.messages],this.$nextTick(()=>{i&&(i.scrollTop=i.scrollHeight-n)})}else this.messages=a,this.scrollToBottom();this.nextCursor=i.next_cursor||null}).catch(t=>{this.errorMessage=e?this.$t("Failed to load older messages. Please try again."):this.$t("Failed to load chat history. Please try again.")}).always(()=>{this.loadingMessages=!1,this._historyFetch=null});return this._historyFetch=a,a},handleConversationCommand(e){"new"===e?this.startNewConversation():"past"===e&&this.openPastConversations()},startNewConversation(){this.abortResume(),this._requestEpoch++,this.streamingEpoch=null,this._pendingChatReset=!0,this.messages=[],this.chatId=null,this.streamBuffer="",this.selectedPrompt="",this.errorMessage="",this.nextCursor=null,this.contextReady=!1,this.selectedContextIds=this.ticketConversations.map(e=>e.id),this.includeTicketContent=!0,this.contextReady=!0,this.$del(`fluent-bot/${this.ticketId}/chat-id`).catch(e=>{})},openPastConversations(){this.pastDialogVisible=!0,this.loadingPast=!0,this.$get(`fluent-bot/${this.ticketId}/conversations`).then(e=>{this.pastConversations=e.conversations||[],this.activeChatId=e.active_chat_id||this.chatId||null}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to load past conversations."),type:"warning",position:"bottom-right"})}).always(()=>{this.loadingPast=!1})},switchToConversation(e){e&&e.chat_id&&!this.switchingConversation&&(e.chat_id!==this.chatId?(this.switchingConversation=!0,this.$post(`fluent-bot/${this.ticketId}/conversations/switch`,{chat_id:e.chat_id}).then(e=>{this.abortResume(),this._requestEpoch++,this.streamingEpoch=null,this._pendingChatReset=!1,this.messages=[],this.nextCursor=null,this.aiResponse="",this.errorMessage="",this.chatId=e.chat_id,null!==e.product_id&&void 0!==e.product_id&&this.setProductSilently(e.product_id),this.pastDialogVisible=!1;const t=e.chat_id;this.fetchChatMessages().then(()=>this.tryResume(t))}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to open that conversation."),type:"warning",position:"bottom-right"})}).always(()=>{this.switchingConversation=!1})):this.pastDialogVisible=!1)},releaseTurn(){this.loading=!1,this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this.aiResponse="",this.streamBuffer="",this.displayedText="",this.typingQueue=[],this.pendingSources=null,this.pendingMessageId=null,this._turnPrompt=null},endsWithUserMessage(e){const t=this.messages[this.messages.length-1];return!!t&&"user"===t.role&&t.content===e},abortResume(){if(this._resumeAbort){try{this._resumeAbort.abort()}catch(NO){}this._resumeAbort=null}},tryResume(e){if(!e)return;if(e===this.streamingChatId)return void(this._turnPrompt&&!this.endsWithUserMessage(this._turnPrompt)&&(this.messages.push({role:"user",content:this._turnPrompt}),this.scrollToBottom()));if(this.isStreaming)return;this.abortResume(),this._resumeAbort=new AbortController;const t=this.appVars.rest.url,i=this.appVars.rest.nonce;let a=!1,n=!1;const s=()=>{n&&this.streamingChatId===e&&(this.isStreaming=!1,this.streamingChatId=null,this.streamStatus=null,this.aiResponse="",n=!1)};fetch(`${t}/fluent-bot/${this.ticketId}/chat-stream`,{method:"GET",headers:{"X-WP-Nonce":i,Accept:"text/event-stream"},signal:this._resumeAbort.signal}).then(t=>this.consumeSseStream(t,(t,i)=>e!==this.chatId||("idle"===t?(this.abortResume(),!0):"user"===t?(this.endsWithUserMessage(i)||this.messages.push({role:"user",content:i}),this.isStreaming=!0,this.streamingChatId=e,this.aiResponse="",this.displayedText="",this.typingQueue=[],this.streamBuffer="",a=!0,n=!0,this.scrollToBottom(),!1):!!a&&("__done__"===t?(this.flushStreamBuffer(),s(),this.abortResume(),this.fetchChatMessages(),!0):"error"===t?(s(),this.abortResume(),this.errorMessage=this.$t("Failed to generate response. Please try again."),!0):this.processEventData(t,i,""))),()=>{n&&(s(),this.fetchChatMessages())})).catch(e=>{s(),!e||e.name})},formatPastDate(e){if(!e)return"";try{return new Date(1e3*e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(NO){return""}},updateMessageByMessageId(e,t){const i=this.messages.findIndex(t=>t.message_id===e);-1!==i&&(this.messages[i]=t(this.messages[i]))},handleFeedback(e,t){const i=this.messages[e];if(!i||!i.message_id)return;const a=i.message_id;i.feedback&&i.feedback.reaction===t?this.$del(`fluent-bot/${this.ticketId}/feedback/${i.feedback.id}`,{product_id:this.selectedProduct}).then(()=>{this.updateMessageByMessageId(a,e=>({...e,feedback:null}))}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to remove feedback. Please try again."),type:"warning",position:"bottom-right"})}):"positive"!==t?(this.pendingFeedbackMessageId=a,this.feedbackComment="",this.feedbackDialogVisible=!0,this.$nextTick(()=>{this.$refs.feedbackTextarea&&this.$refs.feedbackTextarea.focus()})):this.createFeedback(a,"positive",null)},cancelFeedback(){this.feedbackDialogVisible=!1,this.pendingFeedbackMessageId=null,this.feedbackComment=""},submitNegativeFeedback(e){this.feedbackDialogVisible=!1,null!==this.pendingFeedbackMessageId&&(this.createFeedback(this.pendingFeedbackMessageId,"negative",e||null),this.pendingFeedbackMessageId=null)},createFeedback(e,t,i){this.$post(`fluent-bot/${this.ticketId}/feedback`,{message_id:e,reaction:t,comments:i,product_id:this.selectedProduct}).then(a=>{const n=a.data||a;this.updateMessageByMessageId(e,a=>({...a,feedback:{id:n.id,message_id:e,reaction:t,comments:i}}))}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to save feedback. Please try again."),type:"warning",position:"bottom-right"})})},autoResizeTextarea(){const e=this.$refs.promptTextarea;if(!e)return;e.style.height="auto";const t=16*(parseInt(getComputedStyle(e).lineHeight)||20);e.style.height=Math.min(e.scrollHeight,t)+"px"},buildTicketConversations(){this.ticketConversations=(this.ticketResponses||[]).filter(e=>"response"===e.conversation_type).map(e=>{const t=e.person?e.person.person_type:"agent",i=e.person?(e.person.first_name+" "+(e.person.last_name||"")).trim():"",a=(e.content||"").replace(/<[^>]*>/g,"");return{id:e.id,role:"customer"===t?"customer":"support_agent",name:i,preview:a.length>80?a.substring(0,80)+"...":a}})},loadContextSelection(){const e=this.ticketConversations.map(e=>e.id);this.$get(`fluent-bot/${this.ticketId}/context-selection`).then(t=>{const i=t.data;if(i&&i.selectedIds){const t=i.selectedIds||[],a=i.knownIds||[],n=e.filter(e=>!a.includes(e));this.selectedContextIds=[...t.filter(t=>e.includes(t)),...n],"boolean"==typeof i.includeTicketContent&&(this.includeTicketContent=i.includeTicketContent)}else this.selectedContextIds=e;this.$nextTick(()=>{this.contextReady=!0})}).catch(()=>{this.selectedContextIds=e,this.$nextTick(()=>{this.contextReady=!0})}).always(()=>{if(this._deferredContextId){const e=this._deferredContextId;this._deferredContextId=null,this.selectedContextIds.includes(e)||(this.selectedContextIds.push(e),this.saveContextSelection()),this.$emit("contextAdded")}})},saveContextSelection(){this._contextSaveTimer&&clearTimeout(this._contextSaveTimer),this._contextSaveTimer=setTimeout(()=>{this._contextSaveTimer=null,this.$post(`fluent-bot/${this.ticketId}/context-selection`,{selected_ids:this.selectedContextIds,known_ids:this.ticketConversations.map(e=>e.id),include_ticket_content:this.includeTicketContent}).catch(e=>{})},300)},sanitizeUrl(e){if(!e)return"#";try{const t=new URL(e,window.location.origin);return["http:","https:"].includes(t.protocol)?t.href:"#"}catch(NO){return"#"}},decodeHtml(e){if(!e)return"";const t=document.createElement("textarea");return t.innerHTML=e,t.value},hasOpenMenu(){return this.showContextPicker||this.showTempPicker||this.feedbackDialogVisible},closeMenus(){this.showContextPicker?this.showContextPicker=!1:this.showTempPicker?this.showTempPicker=!1:this.feedbackDialogVisible&&(this.feedbackDialogVisible=!1)},applyPendingContextId(e){e&&(this.ticketConversations.length>0?(this.selectedContextIds.includes(e)||this.selectedContextIds.push(e),this.$emit("contextAdded")):this._deferredContextId=e)},toggleContext(e){const t=this.selectedContextIds.indexOf(e);t>-1?this.selectedContextIds.splice(t,1):this.selectedContextIds.push(e)},cancelProductSwitch(){this.botSwitchDialogVisible=!1,this.pendingProductSwitch=null},forkConversation(){this.botSwitchDialogVisible=!1,this._isRevertingProduct=!0,this.abortResume(),this._requestEpoch++,this.streamingEpoch=null,this._pendingChatReset=!0;this.seedMessages=this.messages.filter(e=>e.content).slice(-50).map(e=>({role:"user"===e.role?"visitor":"ai",content:String(e.content).slice(0,5e3)})),this.$del(`fluent-bot/${this.ticketId}/chat-id`).catch(e=>{}),this.selectedProduct=this.pendingProductSwitch,this.chatId=null,this.nextCursor=null,this.errorMessage="",this.pendingProductSwitch=null,this.$nextTick(()=>{this._isRevertingProduct=!1})},newConversation(){this.botSwitchDialogVisible=!1,this._isRevertingProduct=!0,this.abortResume(),this._requestEpoch++,this.streamingEpoch=null,this._pendingChatReset=!0,this.selectedProduct=this.pendingProductSwitch,this.messages=[],this.chatId=null,this.seedMessages=null,this.streamBuffer="",this.selectedPrompt="",this.errorMessage="",this.nextCursor=null,this.contextReady=!1,this.selectedContextIds=this.ticketConversations.map(e=>e.id),this.includeTicketContent=!0,this.contextReady=!0,this.pendingProductSwitch=null,this.$del(`fluent-bot/${this.ticketId}/chat-id`).catch(e=>{}),this.$nextTick(()=>{this._isRevertingProduct=!1})}},mounted(){QZ.setOptions({breaks:!1,gfm:!0,headerIds:!1,mangle:!1,highlight:(e,t)=>t&&y9.getLanguage(t)?y9.highlight(e,{language:t}).value:y9.highlightAuto(e).value}),this.fetchConfiguredProducts(),this.fetchPresets(),this.buildTicketConversations(),this.loadContextSelection(),this.restoreChatState(),this.removeDraft(),this._handleClickOutside=e=>{this.showContextPicker&&this.$el&&!e.target.closest(".fs_context_toggle_wrap")&&(this.showContextPicker=!1),this.showTempPicker&&this.$el&&!e.target.closest(".fs_temp_toggle_wrap")&&(this.showTempPicker=!1)},document.addEventListener("click",this._handleClickOutside)},beforeUnmount(){this._handleClickOutside&&document.removeEventListener("click",this._handleClickOutside),this._contextSaveTimer&&clearTimeout(this._contextSaveTimer),this._streamAbort&&this._streamAbort.abort(),this.abortResume(),this._streamRafId&&(cancelAnimationFrame(this._streamRafId),this._streamRafId=null)}},C9={class:"fs_container fs_fluent_bot_ai_response_generator"},E9={class:"fs_ai_header_section"},k9={class:"fs_dropdown_item_content"},T9={class:"fs_dropdown_item_content"},A9=["src","alt"],R9={key:0,class:"fs_draft"},I9=["src"],D9={class:"fs_draft_widget"},O9=["onClick"],M9={class:"fs_response_section",ref:"chatContainer"},N9={key:0,class:"fs_messages_loading"},L9={key:1,class:"fs_empty_state fs_empty_state_no_bot"},P9={class:"fs_empty_state_icon"},F9=["src"],B9={class:"fs_empty_state_text"},$9={class:"fs_empty_state_description"},V9={key:2,class:"fs_empty_state fs_empty_state_no_bot"},U9={class:"fs_empty_state_icon"},H9=["src"],z9={class:"fs_empty_state_text"},Y9={class:"fs_empty_state_description"},G9={key:3,class:"fs_empty_state"},W9={class:"fs_empty_state_icon"},j9=["src"],q9={class:"fs_empty_state_text"},K9={class:"fs_empty_state_description"},X9={key:4,class:"fs_chat_messages"},Z9={key:0,class:"fs_load_more"},Q9={key:0,class:"fs_chat_bubble_content"},J9=["innerHTML"],e7={key:0,class:"fs_chat_sources"},t7=["href"],i7={key:0,class:"fs_chat_actions"},a7=["aria-pressed","aria-label","onClick"],n7=["aria-pressed","aria-label","onClick"],s7=["onClick","aria-label","title"],o7=["onClick","title"],r7={key:1,class:"fs_chat_bubble fs_chat_ai"},l7=["innerHTML"],c7={key:0,class:"fs_streaming_indicator"},d7={key:2,class:"fs_chat_bubble fs_chat_ai"},u7={key:3,class:"fs_chat_error"},p7={class:"fs_main_content"},h7={class:"fs_prompt_presets_scroll"},f7=["tabindex","aria-disabled","onClick","onKeydown"],g7={class:"fs_prompt_box"},m7=["placeholder","disabled"],_7={class:"fs_prompt_toolbar"},v7={class:"fs_toolbar_left"},b7={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},y7={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},x7={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},S7={key:0,x1:"2",y1:"2",x2:"20",y2:"20"},w7={class:"fs_temp_toggle_wrap fs_toolbar_popup_wrap"},C7=["aria-label","aria-expanded"],E7={key:0,class:"fs_temp_panel fs_toolbar_popup"},k7={class:"fs_temp_head"},T7={class:"fs_temp_value"},A7={class:"fs_temp_guide_head"},R7={class:"fs_temp_guide_range"},I7={key:0,class:"fs_temp_guide_tag"},D7={class:"fs_temp_guide_behavior"},O7={class:"fs_temp_guide_row"},M7={class:"fs_temp_guide_label"},N7={class:"fs_temp_guide_row"},L7={class:"fs_temp_guide_label"},P7=["aria-label"],F7={class:"fs_temp_labels"},B7={class:"fs_temp_hint"},$7={class:"fs_context_toggle_wrap fs_toolbar_popup_wrap"},V7=["disabled","aria-label"],U7={key:0,class:"fs_context_picker fs_toolbar_popup"},H7={class:"fs_context_search"},z7=["placeholder"],Y7={class:"fs_context_list"},G7=["onClick","onKeydown"],W7={class:"fs_context_preview"},j7={class:"fs_context_actions"},q7=["disabled","aria-label"],K7=["src"],X7={class:"fs_dialog_footer"},Z7={key:0,class:"fs_past_loading"},Q7={key:1,class:"fs_past_empty"},J7={key:2,class:"fs_past_list"},eee=["onClick","onKeydown"],tee={class:"fs_past_title"},iee={class:"fs_past_meta"},aee={key:0,class:"fs_past_active_badge"},nee=["placeholder"],see={class:"fs_dialog_footer"};const oee=lH(w9,[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=Sk,c=Jl("Plus"),d=KS,u=nN,p=Jl("Clock"),h=sN,f=aN,g=bI,m=AL,_=Jl("router-link"),v=ZC,b=AR,y=dM;return zd(),qd("div",C9,[tu("div",E9,[s.noBotAvailable?ru("",!0):(zd(),Kd(r,{key:0,modelValue:n.selectedProduct,"onUpdate:modelValue":t[0]||(t[0]=e=>n.selectedProduct=e),placeholder:e.$t("Select a product"),size:"small",class:"fs_select_field fs_product_dropdown fs_header_product_select",filterable:"",clearable:"","value-key":"id","default-value":0},{default:vr(()=>[n.hasGeneralBot?(zd(),Kd(o,{key:0,label:e.$t("General Bot"),value:0},null,8,["label"])):ru("",!0),(zd(!0),qd(Fd,null,sc(n.products,e=>(zd(),Kd(o,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])),s.noBotAvailable?ru("",!0):(zd(),Kd(f,{key:1,trigger:"click",class:"fs_header_more",onCommand:s.handleConversationCommand},{dropdown:vr(()=>[iu(h,{class:"fs_global_dropdown"},{default:vr(()=>[iu(u,{command:"new"},{default:vr(()=>[tu("div",k9,[iu(d,{class:"fs_dropdown_icon"},{default:vr(()=>[iu(c)],void 0),_:1}),su(" "+me(e.$t("New conversation")),1)])],void 0),_:1}),iu(u,{command:"past",divided:""},{default:vr(()=>[tu("div",T9,[iu(d,{class:"fs_dropdown_icon"},{default:vr(()=>[iu(p)],void 0),_:1}),su(" "+me(e.$t("Past conversations")),1)])],void 0),_:1})],void 0),_:1})]),default:vr(()=>[iu(l,{class:"fs_action_button fs_header_more_btn",text:"",icon:"More","aria-label":e.$t("Conversation options")},null,8,["aria-label"])],void 0),_:1},8,["onCommand"])),iu(l,{class:"fs_close_button",onClick:s.closeModal,"aria-label":e.$t("Close panel")},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:e.$t("Close panel")},null,8,A9)],void 0),_:1},8,["onClick","aria-label"])]),n.draftData.length>1?(zd(),qd("div",R9,[iu(l,{class:"fs_draft_button",onClick:t[1]||(t[1]=e=>n.showDraft=!n.showDraft)},{default:vr(()=>[tu("span",null,me(e.$t("Draft")),1),tu("img",{class:se(["fs_draft_arrow",{"rotate-down":n.showDraft}]),src:e.appVars.asset_url+"images/arrowRight.svg",alt:""},null,10,I9)],void 0),_:1}),tu("div",null,[iu(g,null,{default:vr(()=>[br(tu("div",D9,[(zd(!0),qd(Fd,null,sc(n.draftData,(e,t)=>(zd(),qd("div",{key:t,class:"fs_draft_item",onClick:t=>s.selectDraft(e)},[tu("h3",null,"Draft "+me(t+1),1),tu("p",null,me(s.getSnippet(e)),1)],8,O9))),128))],512),[[yp,n.showDraft]])],void 0),_:1})])])):ru("",!0),tu("div",M9,[n.loadingMessages?(zd(),qd("div",N9,[iu(m,{rows:3,animated:""})])):s.noBotAvailable&&0===n.messages.length&&!s.hasLiveActivityHere?(zd(),qd("div",L9,[tu("div",P9,[tu("img",{loading:"lazy",src:e.appVars.asset_url+"images/fluentBotDark.svg",class:"fs_icon"},null,8,F9)]),tu("div",B9,me(e.$t("No FluentBot configured")),1),tu("div",$9,me(e.$t("Add a general bot or a product-specific bot in FluentBot settings before chatting.")),1),s.canManageBotSettings?(zd(),Kd(_,{key:0,to:{name:"fluent_bot_integration"},class:"el-button el-button--primary fs_filled_btn fs_empty_state_cta"},{default:vr(()=>[su(me(e.$t("Open FluentBot settings")),1)],void 0),_:1})):ru("",!0)])):s.noBotForThisProduct&&0===n.messages.length&&!s.hasLiveActivityHere?(zd(),qd("div",V9,[tu("div",U9,[tu("img",{loading:"lazy",src:e.appVars.asset_url+"images/fluentBotDark.svg",class:"fs_icon"},null,8,H9)]),tu("div",z9,me(e.$t("No bot for this product")),1),tu("div",Y9,me(e.$t("No bot is mapped to this ticket's product. Pick a configured product from the dropdown above, or add a bot for this product in FluentBot settings.")),1),s.canManageBotSettings?(zd(),Kd(_,{key:0,to:{name:"fluent_bot_integration"},class:"el-button el-button--primary fs_filled_btn fs_empty_state_cta"},{default:vr(()=>[su(me(e.$t("Open FluentBot settings")),1)],void 0),_:1})):ru("",!0)])):0!==n.messages.length||s.hasLiveActivityHere?ru("",!0):(zd(),qd("div",G9,[tu("div",W9,[tu("img",{loading:"lazy",src:e.appVars.asset_url+"images/fluentBotDark.svg",class:"fs_icon"},null,8,j9)]),tu("div",q9,me(e.$t(s.title)),1),tu("div",K9,me(e.$t(s.description)),1)])),n.messages.length>0||s.hasLiveActivityHere?(zd(),qd("div",X9,[n.nextCursor?(zd(),qd("div",Z9,[iu(l,{text:"",size:"small",disabled:n.loadingMessages,onClick:t[2]||(t[2]=e=>s.fetchChatMessages(n.nextCursor))},{default:vr(()=>[su(me(e.$t("Load older messages")),1)],void 0),_:1},8,["disabled"])])):ru("",!0),(zd(!0),qd(Fd,null,sc(n.messages,(i,a)=>(zd(),qd(Fd,{key:i.message_id||`local-${a}`},[tu("div",{class:se(["fs_chat_row","fs_chat_row_"+i.role])},[tu("div",{class:se(["fs_chat_bubble","fs_chat_"+i.role])},["user"===i.role?(zd(),qd("div",Q9,me(i.content),1)):(zd(),qd(Fd,{key:1},[tu("div",{class:"fs_chat_bubble_content fs_response_text",innerHTML:i.htmlContent},null,8,J9),i.sources&&i.sources.length?(zd(),qd("div",e7,[tu("ul",null,[(zd(!0),qd(Fd,null,sc(i.sources,(e,t)=>(zd(),qd("li",{key:e.url||e.source||t},[tu("a",{href:s.sanitizeUrl(e.url||e.source),target:"_blank",rel:"noopener noreferrer"},me(e.title),9,t7)]))),128))])])):ru("",!0)],64))],2)],2),"ai"===i.role?(zd(),qd("div",i7,[!i.message_id||i.feedback&&"positive"!==i.feedback.reaction?ru("",!0):(zd(),qd("button",{key:0,class:se(["fs_feedback_btn",{fs_feedback_active:i.feedback&&"positive"===i.feedback.reaction}]),"aria-pressed":i.feedback&&"positive"===i.feedback.reaction,"aria-label":e.$t("Helpful"),onClick:e=>s.handleFeedback(a,"positive")},[...t[20]||(t[20]=[tu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[tu("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"})],-1)])],10,a7)),!i.message_id||i.feedback&&"negative"!==i.feedback.reaction?ru("",!0):(zd(),qd("button",{key:1,class:se(["fs_feedback_btn",{"fs_feedback_active fs_feedback_negative":i.feedback&&"negative"===i.feedback.reaction}]),"aria-pressed":i.feedback&&"negative"===i.feedback.reaction,"aria-label":e.$t("Not helpful"),onClick:e=>s.handleFeedback(a,"negative")},[...t[21]||(t[21]=[tu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[tu("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3H10zM17 2h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"})],-1)])],10,n7)),tu("button",{class:"fs_feedback_btn",onClick:e=>s.copyMessageText(i.content),"aria-label":e.$t("Copy"),title:e.$t("Copy")},[...t[22]||(t[22]=[tu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[tu("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),tu("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])],8,s7),tu("button",{class:"fs_feedback_btn fs_insert_btn",onClick:e=>s.insertReply(i.content),title:e.$t("Insert to editor")},[t[23]||(t[23]=tu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[tu("path",{d:"M12 5v14M5 12l7 7 7-7"})],-1)),tu("span",null,me(e.$t("Insert")),1)],8,o7)])):ru("",!0)],64))),128)),s.isGeneratingHere?(zd(),qd("div",r7,[tu("div",{class:"fs_chat_bubble_content fs_response_text",innerHTML:s.formattedResponse},null,8,l7),0===n.typingQueue.length?(zd(),qd("div",c7,[tu("span",null,me(s.streamStatusText),1),t[24]||(t[24]=tu("span",{class:"fs_typing_dots"},"●●●",-1))])):ru("",!0)])):ru("",!0),s.isAwaitingHere?(zd(),qd("div",d7,[iu(m,{rows:2,animated:""})])):ru("",!0),n.errorMessage?(zd(),qd("div",u7,me(n.errorMessage),1)):ru("",!0)])):ru("",!0)],512),tu("div",p7,[tu("div",h7,[(zd(!0),qd(Fd,null,sc(n.presetPrompts,e=>(zd(),Kd(v,{key:e.text,content:e.description,placement:"top",effect:"dark","popper-class":"fs_tooltip fs_preset_tooltip"},{default:vr(()=>[tu("div",{class:se(["fs_preset_chip",{fs_preset_chip_selected:e===n.selectedPrompt,disabled:n.isStreaming||s.composerDisabled}]),role:"button",tabindex:n.isStreaming||s.composerDisabled?-1:0,"aria-disabled":n.isStreaming||s.composerDisabled,onClick:t=>!n.isStreaming&&!s.composerDisabled&&s.selectPresetPrompt(e),onKeydown:[Ih(Ah(t=>!n.isStreaming&&!s.composerDisabled&&s.selectPresetPrompt(e),["prevent"]),["enter"]),Ih(Ah(t=>!n.isStreaming&&!s.composerDisabled&&s.selectPresetPrompt(e),["prevent"]),["space"])]},me(e.label),43,f7)],void 0),_:2},1032,["content"]))),128))]),tu("div",g7,[br(tu("textarea",{ref:"promptTextarea","onUpdate:modelValue":t[3]||(t[3]=e=>n.prompt=e),rows:"2",placeholder:s.composerPlaceholder,class:"fs_textarea",required:"",disabled:n.isStreaming||s.composerDisabled,onInput:t[4]||(t[4]=(...e)=>s.autoResizeTextarea&&s.autoResizeTextarea(...e)),onKeydown:t[5]||(t[5]=Ih(Ah((...e)=>s.sendMessage&&s.sendMessage(...e),["exact","prevent"]),["enter"]))},null,40,m7),[[gh,n.prompt]]),tu("div",_7,[tu("div",v7,[iu(v,{content:n.includeTicketContent?e.$t("Ticket content included"):e.$t("Ticket content excluded"),placement:"top",effect:"dark","popper-class":"fs_tooltip"},{default:vr(()=>[tu("button",{type:"button",class:se(["fs_toolbar_btn",{fs_toolbar_btn_off:!n.includeTicketContent}]),onClick:t[6]||(t[6]=e=>n.includeTicketContent=!n.includeTicketContent)},[n.includeTicketContent?(zd(),qd("svg",b7,[...t[25]||(t[25]=[tu("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},null,-1),tu("circle",{cx:"12",cy:"12",r:"3"},null,-1)])])):(zd(),qd("svg",y7,[...t[26]||(t[26]=[tu("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"},null,-1),tu("line",{x1:"1",y1:"1",x2:"23",y2:"23"},null,-1)])])),tu("span",null,me(e.$t("Ticket Content")),1)],2)],void 0),_:1},8,["content"]),iu(v,{content:n.webSearch?e.$t("Web search enabled"):e.$t("Web search disabled"),placement:"top",effect:"dark","popper-class":"fs_tooltip"},{default:vr(()=>[tu("button",{type:"button",class:se(["fs_toolbar_btn",{fs_toolbar_btn_off:!n.webSearch}]),onClick:t[7]||(t[7]=e=>n.webSearch=!n.webSearch)},[(zd(),qd("svg",x7,[t[27]||(t[27]=tu("circle",{cx:"11",cy:"11",r:"8"},null,-1)),t[28]||(t[28]=tu("path",{d:"M11 3a13 13 0 0 0 0 16M11 3a13 13 0 0 1 0 16M3 11h16"},null,-1)),n.webSearch?ru("",!0):(zd(),qd("line",S7))])),tu("span",null,me(e.$t("Web Search")),1)],2)],void 0),_:1},8,["content"]),tu("div",w7,[tu("button",{type:"button",class:"fs_toolbar_btn","aria-label":e.$t("Temperature"),"aria-haspopup":"dialog","aria-expanded":n.showTempPicker,onClick:t[8]||(t[8]=e=>n.showTempPicker=!n.showTempPicker)},[t[29]||(t[29]=tu("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[tu("path",{d:"M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"})],-1)),tu("span",null,me(n.temperature.toFixed(1)),1)],8,C7),n.showTempPicker?(zd(),qd("div",E7,[tu("div",k7,[tu("span",null,me(e.$t("Temperature")),1),tu("span",T7,me(n.temperature.toFixed(1)),1)]),tu("div",{class:se(["fs_temp_guide","fs_temp_guide_"+s.temperatureGuide.tone])},[tu("div",A7,[tu("span",R7,me(s.temperatureGuide.range),1),s.temperatureGuide.recommended?(zd(),qd("span",I7,me(e.$t("Recommended")),1)):ru("",!0)]),tu("p",D7,me(s.temperatureGuide.behavior),1),tu("p",O7,[tu("span",M7,me(e.$t("Watch out")),1),su(me(s.temperatureGuide.risk),1)]),tu("p",N7,[tu("span",L7,me(e.$t("Best for")),1),su(me(s.temperatureGuide.fit),1)])],2),br(tu("input",{type:"range",class:"fs_temp_range",min:0,max:2,step:.1,"onUpdate:modelValue":t[9]||(t[9]=e=>n.temperature=e),style:ee({"--fs-temp-pct":n.temperature/2*100+"%"}),"aria-label":e.$t("Temperature")},null,12,P7),[[gh,n.temperature,void 0,{number:!0}]]),tu("div",F7,[tu("span",null,me(e.$t("Precise (0)")),1),tu("span",null,me(e.$t("Creative (2)")),1)]),tu("p",B7,me(e.$t("Higher = more varied answers. Saved in this browser.")),1)])):ru("",!0)]),tu("div",$7,[iu(v,{content:s.contextPickerTooltip,placement:"top",effect:"dark","popper-class":"fs_tooltip"},{default:vr(()=>[tu("button",{type:"button",class:se(["fs_toolbar_btn",{fs_toolbar_btn_off:0===n.ticketConversations.length}]),disabled:0===n.ticketConversations.length,"aria-label":s.contextPickerTooltip,onClick:t[10]||(t[10]=e=>n.ticketConversations.length>0&&(n.showContextPicker=!n.showContextPicker))},[t[30]||(t[30]=tu("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[tu("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),tu("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})],-1)),tu("span",null,me(n.selectedContextIds.length)+"/"+me(n.ticketConversations.length),1)],10,V7)],void 0),_:1},8,["content"]),n.showContextPicker?(zd(),qd("div",U7,[tu("div",H7,[br(tu("input",{ref:"contextSearchInput","onUpdate:modelValue":t[11]||(t[11]=e=>n.contextSearchQuery=e),placeholder:e.$t("Search responses..."),type:"text"},null,8,z7),[[gh,n.contextSearchQuery]])]),tu("div",Y7,[(zd(!0),qd(Fd,null,sc(s.filteredContextConversations,t=>(zd(),qd("div",{key:t.id,class:"fs_context_item"},[iu(b,{"model-value":n.selectedContextIds.includes(t.id),onChange:e=>s.toggleContext(t.id),size:"small"},null,8,["model-value","onChange"]),iu(v,{content:s.decodeHtml(t.preview),placement:"top",effect:"dark","popper-class":"fs_tooltip fs_context_tooltip","show-after":500,disabled:!t.preview||t.preview.length<25},{default:vr(()=>[tu("div",{class:"fs_context_label",role:"button",tabindex:"0",onClick:e=>s.toggleContext(t.id),onKeydown:[Ih(Ah(e=>s.toggleContext(t.id),["prevent"]),["enter"]),Ih(Ah(e=>s.toggleContext(t.id),["prevent"]),["space"])]},[tu("span",{class:se(["fs_context_role","fs_role_"+t.role])},me("customer"===t.role?e.$t("Customer"):t.name||e.$t("Agent")),3),tu("span",W7,me(t.preview),1)],40,G7)],void 0),_:2},1032,["content","disabled"])]))),128))]),tu("div",j7,[iu(l,{size:"small",text:"",onClick:t[12]||(t[12]=e=>n.selectedContextIds=n.ticketConversations.map(e=>e.id))},{default:vr(()=>[su(me(e.$t("All")),1)],void 0),_:1}),iu(l,{size:"small",text:"",onClick:t[13]||(t[13]=e=>n.selectedContextIds=[])},{default:vr(()=>[su(me(e.$t("None")),1)],void 0),_:1})])])):ru("",!0)])]),tu("button",{type:"button",class:"fs_toolbar_send",onClick:t[14]||(t[14]=e=>s.generateResponse(n.prompt)),disabled:n.isStreaming||n.loadingMessages||s.composerDisabled,"aria-label":e.$t("Send message")},[tu("img",{src:e.appVars.asset_url+"images/aiPromptSubmitButton.svg",alt:""},null,8,K7)],8,q7)])])]),iu(y,{modelValue:n.botSwitchDialogVisible,"onUpdate:modelValue":t[15]||(t[15]=e=>n.botSwitchDialogVisible=e),title:e.$t("Switch Knowledge Base"),width:"400px","close-on-click-modal":!1,"append-to-body":"",class:"fs_dialog",onClose:s.cancelProductSwitch},{footer:vr(()=>[tu("div",X7,[iu(l,{onClick:s.cancelProductSwitch},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(l,{onClick:s.forkConversation},{default:vr(()=>[su(me(e.$t("Keep Messages")),1)],void 0),_:1},8,["onClick"]),iu(l,{class:"fs_filled_btn",onClick:s.newConversation},{default:vr(()=>[su(me(e.$t("Start Fresh")),1)],void 0),_:1},8,["onClick"])])]),default:vr(()=>[tu("p",null,me(e.$t("Switching products changes the knowledge base used for responses. What would you like to do with the current conversation?")),1)],void 0),_:1},8,["modelValue","title","onClose"]),iu(y,{modelValue:n.pastDialogVisible,"onUpdate:modelValue":t[16]||(t[16]=e=>n.pastDialogVisible=e),title:e.$t("Past conversations"),width:"400px","append-to-body":"",class:"fs_dialog fs_past_conversations_dialog"},{default:vr(()=>[n.loadingPast?(zd(),qd("div",Z7,[iu(m,{rows:3,animated:""})])):0===n.pastConversations.length?(zd(),qd("div",Q7,me(e.$t("No past conversations yet.")),1)):(zd(),qd("ul",J7,[(zd(!0),qd(Fd,null,sc(n.pastConversations,t=>(zd(),qd("li",{key:t.chat_id,class:se(["fs_past_item",{fs_past_item_active:t.chat_id===n.activeChatId}]),role:"button",tabindex:"0",onClick:e=>s.switchToConversation(t),onKeydown:Ih(Ah(e=>s.switchToConversation(t),["prevent"]),["enter"])},[tu("span",tee,me(t.title),1),tu("span",iee,[t.chat_id===n.activeChatId?(zd(),qd("span",aee,me(e.$t("Active")),1)):ru("",!0),su(" "+me(s.formatPastDate(t.created_at)),1)])],42,eee))),128))]))],void 0),_:1},8,["modelValue","title"]),iu(y,{modelValue:n.feedbackDialogVisible,"onUpdate:modelValue":t[19]||(t[19]=e=>n.feedbackDialogVisible=e),title:e.$t("We're sorry — can you tell us what went wrong?"),width:"360px","close-on-click-modal":!1,"append-to-body":"",class:"fs_dialog",onClose:s.cancelFeedback},{footer:vr(()=>[tu("div",see,[iu(l,{onClick:s.cancelFeedback},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(l,{class:"fs_filled_btn",onClick:t[18]||(t[18]=e=>s.submitNegativeFeedback(n.feedbackComment))},{default:vr(()=>[su(me(e.$t("Submit")),1)],void 0),_:1})])]),default:vr(()=>[br(tu("textarea",{ref:"feedbackTextarea","onUpdate:modelValue":t[17]||(t[17]=e=>n.feedbackComment=e),placeholder:e.$t("Optional: tell us what was wrong..."),class:"fs_feedback_textarea",rows:"3"},null,8,nee),[[gh,n.feedbackComment]])],void 0),_:1},8,["modelValue","title","onClose"])])}]]),ree={name:"FluentBookingSlotEditor",props:{day:{type:Object,required:!0},visible:{type:Boolean,default:!1},selectedSlotIds:{type:Array,default:()=>[]}},emits:["apply","close"],data:()=>({draftSlotIds:[]}),watch:{visible(e){e&&(this.draftSlotIds=[...this.selectedSlotIds])}},methods:{selectAll(){this.draftSlotIds=this.day.slots.map(e=>e.id)},clearAll(){this.draftSlotIds=[]},toggle(e){this.draftSlotIds.includes(e.id)?this.draftSlotIds=this.draftSlotIds.filter(t=>t!==e.id):this.draftSlotIds.push(e.id)},apply(){this.$emit("apply",this.day.slots.filter(e=>this.draftSlotIds.includes(e.id)))}}},lee={class:"fs_fluent_booking_slot_editor_body"},cee={class:"fs_fluent_booking_slot_editor_header"},dee={class:"fs_fluent_booking_slot_editor_links"},uee={class:"fs_fluent_booking_slot_checks"},pee={class:"fs_fluent_booking_slot_editor_footer"};const hee={name:"FluentBookingInserter",components:{IconPack:dY,FluentBookingSlotEditor:lH(ree,[["render",function(e,t,i,a,n,s){const o=Sk,r=AR,l=P$;return zd(),Kd(l,{placement:"bottom-end",width:260,trigger:"click",visible:i.visible,"popper-class":"fs_fluent_booking_slot_editor"},{reference:vr(()=>[rc(e.$slots,"reference")]),default:vr(()=>[tu("div",lee,[tu("div",cee,[tu("strong",null,me(e.$t("Available times")),1),tu("span",null,me(n.draftSlotIds.length)+" "+me(e.$t("selected")),1)]),tu("div",dee,[iu(o,{class:"fs_outline_btn",text:"",onClick:s.selectAll},{default:vr(()=>[su(me(e.$t("Select all")),1)],void 0),_:1},8,["onClick"]),iu(o,{class:"fs_outline_btn",text:"",onClick:s.clearAll},{default:vr(()=>[su(me(e.$t("Clear")),1)],void 0),_:1},8,["onClick"])]),tu("div",uee,[(zd(!0),qd(Fd,null,sc(i.day.slots,e=>(zd(),Kd(r,{key:e.id,"model-value":n.draftSlotIds.includes(e.id),class:se(["fs_fluent_booking_slot_check",{"is-active":n.draftSlotIds.includes(e.id)}]),onChange:t=>s.toggle(e)},{default:vr(()=>[tu("span",null,me(e.time_label),1)],void 0),_:2},1032,["model-value","class","onChange"]))),128))]),tu("div",pee,[iu(o,{class:"fs_outline_btn",onClick:t[0]||(t[0]=t=>e.$emit("close"))},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(o,{class:"fs_filled_btn",onClick:s.apply},{default:vr(()=>[su(me(e.$t("Done")),1)],void 0),_:1},8,["onClick"])])])],void 0),_:3},8,["visible"])}]])},props:{ticketId:{type:[String,Number],required:!0}},emits:["insert"],data(){var e;return{visible:!1,loading:!1,creating:!1,copying:!1,availabilityLoading:!1,availabilityRequestKey:0,specificDateAvailabilityLoading:!1,specificDateAvailabilityRequestKey:0,eventTypes:[],selectedEventId:"",availabilityRange:"next_3_days",availabilityTimezone:"",availabilityMaxLookupDate:"",availabilityDays:[],selectedSlots:[],editingDayDate:"",specificDates:[],specificDatePanelMonth:this.$dayjs().format("YYYY-MM"),specificDateAvailabilityDays:[],message:"",serverEmptyMessage:"",adminUrl:(null==(e=this.appVars.fluent_booking)?void 0:e.admin_url)||""}},computed:{isSpecificDatesRange(){return"specific_dates"===this.availabilityRange},availabilityRanges(){return[{label:this.$t("Next 3 days"),value:"next_3_days"},{label:this.$t("This week"),value:"this_week"},{label:this.$t("Next week"),value:"next_week"},{label:this.$t("Next 14 days"),value:"next_14_days"},{label:this.$t("Specific Dates"),value:"specific_dates"}]},emptyMessage(){return this.serverEmptyMessage||this.$t("No public FluentBooking event types found. Please enable calendar sharing or publish an event type.")},specificDatesHelperText(){return this.specificDateAvailabilityLoading?this.$t("Loading available dates..."):this.$t("Only FluentBooking available dates can be selected")},availabilityEmptyMessage(){return this.isSpecificDatesRange&&!this.specificDates.length?this.$t("Select up to 7 dates to preview availability."):this.isSpecificDatesRange?this.$t("No available times found for the selected dates."):this.$t("No available times found for this range.")}},methods:{togglePopover(){this.visible?this.closePopover():(this.visible=!0,this.eventTypes.length?this.fetchAvailability():this.fetchEventTypes())},closePopover(){this.visible=!1,this.closeSlotEditor()},handleOutsideClick(e){var t;if(!this.visible)return;const i=e.target,a=this.$refs.bookingBox,n=this.$refs.popoverContent;(null==a?void 0:a.contains(i))||(null==n?void 0:n.contains(i))||(null==(t=i.closest)?void 0:t.call(i,".fs_fluent_booking_popover, .fs_fluent_booking_slot_editor, .fs_fluent_booking_specific_dates_panel, .el-select__popper, .fs_tooltip"))||this.closePopover()},fetchEventTypes(){this.loading=!0,this.$get("tickets/fluent-booking/event-types").then(e=>{var t,i;this.eventTypes=e.event_types||[],this.adminUrl=(null==(t=e.status)?void 0:t.admin_url)||this.adminUrl,this.eventTypes.length?this.selectedEventId||(this.selectedEventId=this.eventTypes[0].id,this.handleEventChanged()):this.serverEmptyMessage=(null==(i=e.status)?void 0:i.message)||""}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleEventChanged(){this.selectedSlots=[],this.refreshSpecificDatesState(),this.fetchAvailability()},handleAvailabilityRangeChange(){this.refreshSpecificDatesState(),this.fetchAvailability()},fetchAvailability(){const e=++this.availabilityRequestKey;if(!this.selectedEventId)return void this.clearAvailabilityPreview();if(this.isSpecificDatesRange&&!this.specificDates.length)return void this.clearAvailabilityPreview();this.availabilityLoading=!0;const t={event_type_id:this.selectedEventId,range:this.availabilityRange};this.isSpecificDatesRange&&(t.selected_dates=this.specificDates),this.$get(`tickets/${this.ticketId}/fluent-booking/availability`,t).then(t=>{if(e!==this.availabilityRequestKey)return;const i=t.availability||{};this.availabilityTimezone=i.timezone||"",this.availabilityMaxLookupDate=i.max_lookup_date||"",this.availabilityDays=i.days||[],this.selectVisibleSlots(),this.syncSelectedSlots()}).catch(t=>{e===this.availabilityRequestKey&&(this.clearAvailabilityPreview(),this.$handleError(t))}).always(()=>{e===this.availabilityRequestKey&&(this.availabilityLoading=!1)})},clearAvailabilityPreview(){this.availabilityTimezone="",this.availabilityDays=[],this.selectedSlots=[],this.availabilityLoading=!1},refreshSpecificDatesState(){this.isSpecificDatesRange&&(this.specificDates.length&&(this.specificDatePanelMonth=this.$dayjs(this.specificDates[0]).format("YYYY-MM")),this.fetchSpecificDateAvailability())},fetchSpecificDateAvailability(){const e=++this.specificDateAvailabilityRequestKey;if(!this.selectedEventId||!this.isSpecificDatesRange)return this.specificDateAvailabilityDays=[],void(this.specificDateAvailabilityLoading=!1);this.specificDateAvailabilityLoading=!0,this.$get(`tickets/${this.ticketId}/fluent-booking/availability`,{event_type_id:this.selectedEventId,range:this.availabilityRange,calendar_month:this.specificDatePanelMonth}).then(t=>{if(e!==this.specificDateAvailabilityRequestKey)return;const i=t.availability||{};this.availabilityMaxLookupDate=i.max_lookup_date||"",this.specificDateAvailabilityDays=i.days||[],this.syncSpecificDatesWithAvailability()}).catch(t=>{e===this.specificDateAvailabilityRequestKey&&(this.specificDateAvailabilityDays=[],this.$handleError(t))}).always(()=>{e===this.specificDateAvailabilityRequestKey&&(this.specificDateAvailabilityLoading=!1)})},syncSpecificDatesWithAvailability(){const e=new Set(this.specificDateAvailabilityDays.map(e=>e.date)),t=this.specificDates.filter(t=>this.$dayjs(t).format("YYYY-MM")!==this.specificDatePanelMonth||e.has(t));t.length!==this.specificDates.length&&(this.specificDates=t,this.specificDates.length?this.fetchAvailability():this.clearAvailabilityPreview())},handleSpecificDatesChanged(e){let t=Array.isArray(e)?[...new Set(e)].sort():[];t.length>7&&(t=t.slice(0,7),this.$notify({type:"warning",title:this.$t("Limit reached"),message:this.$t("You can select up to 7 dates."),position:"bottom-right"})),this.specificDates=t,this.fetchAvailability()},handleSpecificDatePickerVisibleChange(e){e&&this.fetchSpecificDateAvailability()},handleSpecificDatePanelChange(e){const t=Array.isArray(e)?e[0]:e,i=this.$dayjs(t).format("YYYY-MM");i&&"Invalid Date"!==i&&i!==this.specificDatePanelMonth&&(this.specificDatePanelMonth=i,this.fetchSpecificDateAvailability())},isSpecificDateDisabled(e){const t=this.$dayjs(e).startOf("day");if(!t.isValid()||t.isBefore(this.$dayjs().startOf("day")))return!0;if(this.availabilityMaxLookupDate){const e=this.$dayjs(this.availabilityMaxLookupDate).endOf("day");if(e.isValid()&&t.isAfter(e))return!0}return t.format("YYYY-MM")!==this.specificDatePanelMonth||(!!this.specificDateAvailabilityLoading||!this.specificDateAvailabilityDays.some(e=>e.date===t.format("YYYY-MM-DD")))},syncSelectedSlots(){this.selectedSlots=this.selectedSlots.filter(e=>this.availabilityDays.some(t=>t.slots.some(t=>t.id===e.id)))},selectVisibleSlots(){this.selectedSlots=[],this.availabilityDays.forEach(e=>{this.selectedSlots.push(...this.getDefaultDaySlots(e))})},getDefaultDaySlots:e=>e.slots.slice(0,5),getVisibleDaySlots(e){return e.slots.filter(e=>this.isSlotSelected(e))},getSlotPreviewLabel:e=>e.time_label,getSelectedSlotIdsForDay(e){return e.slots.filter(e=>this.isSlotSelected(e)).map(e=>e.id)},openSlotEditor(e){this.editingDayDate=e.date},closeSlotEditor(){this.editingDayDate=""},onSlotEditorApply(e,t){const i=e.slots.map(e=>e.id);this.selectedSlots=[...this.selectedSlots.filter(e=>!i.includes(e.id)),...t],this.closeSlotEditor()},deleteAvailabilityDay(e){if(this.availabilityDays.length<=1)return;const t=e.slots.map(e=>e.id);this.availabilityDays=this.availabilityDays.filter(t=>t.date!==e.date),this.selectedSlots=this.selectedSlots.filter(e=>!t.includes(e.id)),this.editingDayDate===e.date&&this.closeSlotEditor()},isSlotSelected(e){return this.selectedSlots.some(t=>t.id===e.id)},async copyAvailability(){if(this.selectedSlots.length){this.copying=!0;try{const e=await this.createTokenizedBookingLink(),t=e.html||"",i=e.plain_text||"";window.ClipboardItem?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([i],{type:"text/plain"})})]):await navigator.clipboard.writeText(i),this.$notify({type:"success",title:this.$t("Success"),message:this.$t("Copied to clipboard"),position:"bottom-right"})}catch(e){this.$notify({type:"error",title:this.$t("Error"),message:this.$t("Could not copy to clipboard"),position:"bottom-right"})}finally{this.copying=!1}}},createTokenizedBookingLink(){return this.$post(`tickets/${this.ticketId}/fluent-booking/booking-link`,{event_type_id:this.selectedEventId,message:this.message,timezone:this.availabilityTimezone,selected_slots:this.selectedSlots.map(e=>({start:e.start}))})},insertBookingLink(){this.selectedEventId&&(this.creating=!0,this.createTokenizedBookingLink().then(e=>{this.$emit("insert",e.html),this.closePopover()}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1}))},getEventLabel(e){const t=[e.title];return e.calendar_title&&t.push(e.calendar_title),e.duration&&t.push(`${e.duration} ${this.$t("min")}`),t.join(" • ")}},mounted(){document.addEventListener("mousedown",this.handleOutsideClick,!0)},beforeUnmount(){document.removeEventListener("mousedown",this.handleOutsideClick,!0)}},fee={key:0,ref:"bookingBox",class:"fs_fluent_booking_box"},gee={class:"fs_fluent_booking_tooltip_target"},mee={ref:"popoverContent",class:"fs_fluent_booking_inserter"},_ee={class:"fs_fluent_booking_header"},vee={key:0,class:"fs_fluent_booking_specific_dates"},bee={class:"fs_fluent_booking_specific_dates_meta"},yee={class:"fs_fluent_booking_availability"},xee={class:"fs_fluent_booking_preview_head"},See={class:"fs_fluent_booking_preview_title"},wee={key:0,class:"fs_fluent_booking_timezone"},Cee={key:1,class:"fs_fluent_booking_skeleton"},Eee={class:"fs_fluent_booking_day_head"},kee={class:"fs_fluent_booking_day_actions"},Tee={class:"fs_action_button_wrapper fs_fluent_booking_action_wrapper"},Aee={class:"fs_action_button_wrapper fs_fluent_booking_action_wrapper"},Ree={class:"fs_fluent_booking_slots"},Iee={key:3,class:"fs_fluent_booking_no_slots"},Dee={class:"fs_fluent_booking_actions"},Oee={key:1,class:"fs_fluent_booking_empty"},Mee=["href"];const Nee={name:"wp_editor",components:{TemplateInserter:BX,AIResponseGenerator:n0,FluentBookingInserter:lH(hee,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=ZC,l=Sk,c=wA,d=SA,u=oC,p=jO,h=Jl("fluent-booking-slot-editor"),f=cE,g=sC,m=P$,_=WB;return e.appVars.fluent_booking&&e.appVars.fluent_booking.active?(zd(),qd("div",fee,[iu(m,{placement:"bottom-end",width:560,trigger:"click",visible:n.visible,"popper-class":"fs_popover fs_fluent_booking_popover"},{reference:vr(()=>[iu(l,{size:"small",class:"fs_fluent_booking_toolbar_button","aria-label":e.$t("Call a Meeting"),onClick:s.togglePopover},{default:vr(()=>[iu(r,{effect:"dark",content:e.$t("Call a Meeting"),placement:"top",trigger:"hover","popper-class":"fs_tooltip",disabled:n.visible},{default:vr(()=>[tu("span",gee,[iu(o,{"icon-key":"call_meeting",width:24,height:24})])],void 0),_:1},8,["content","disabled"])],void 0),_:1},8,["aria-label","onClick"])]),default:vr(()=>[br((zd(),qd("div",mee,[tu("div",_ee,[tu("h4",null,me(e.$t("Call a Meeting")),1),tu("p",null,me(e.$t("Choose a meeting type, review available times, then insert selected booking links into your reply.")),1)]),n.eventTypes.length?(zd(),Kd(g,{key:0,"label-position":"top"},{default:vr(()=>[iu(u,{label:e.$t("Meeting Type")},{default:vr(()=>[iu(d,{modelValue:n.selectedEventId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.selectedEventId=e),class:"fs_select_field",filterable:"",placeholder:e.$t("Select Meeting Type"),onChange:s.handleEventChanged},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.eventTypes,e=>(zd(),Kd(c,{key:e.id,value:e.id,label:s.getEventLabel(e)},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange"])],void 0),_:1},8,["label"]),iu(u,{label:e.$t("Offer Availability")},{default:vr(()=>[iu(d,{modelValue:n.availabilityRange,"onUpdate:modelValue":t[1]||(t[1]=e=>n.availabilityRange=e),class:"fs_select_field",onChange:s.handleAvailabilityRangeChange},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.availabilityRanges,e=>(zd(),Kd(c,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"]),s.isSpecificDatesRange?(zd(),qd("div",vee,[iu(p,{ref:"specificDatesPicker",modelValue:n.specificDates,"onUpdate:modelValue":t[2]||(t[2]=e=>n.specificDates=e),type:"dates","value-format":"YYYY-MM-DD",class:"fs_text_input fs_fluent_booking_specific_dates_picker","popper-class":"fs_fluent_booking_specific_dates_panel",placeholder:e.$t("Select up to 7 dates"),editable:!1,clearable:!1,disabled:!n.selectedEventId,"disabled-date":s.isSpecificDateDisabled,onChange:s.handleSpecificDatesChanged,onVisibleChange:s.handleSpecificDatePickerVisibleChange,onPanelChange:s.handleSpecificDatePanelChange},null,8,["modelValue","placeholder","disabled","disabled-date","onChange","onVisibleChange","onPanelChange"]),tu("div",bee,[tu("span",null,me(s.specificDatesHelperText),1),tu("strong",null,me(n.specificDates.length)+"/7",1)])])):ru("",!0)],void 0),_:1},8,["label"]),tu("div",yee,[tu("div",xee,[tu("div",See,[tu("strong",null,me(e.$t("Preview")),1),iu(r,{effect:"dark",content:e.$t("Available times are based off a sample of this event type’s upcoming availability. You can further customize times offered below"),placement:"top","popper-class":"fs_tooltip fs_fluent_booking_preview_tooltip"},{default:vr(()=>[iu(l,{text:"",class:"fs_fluent_booking_preview_info","aria-label":e.$t("Preview help")},{default:vr(()=>[...t[4]||(t[4]=[su("i",-1)])],void 0),_:1},8,["aria-label"])],void 0),_:1},8,["content"])]),tu("span",null,me(n.selectedSlots.length)+" "+me(e.$t("selected")),1)]),n.availabilityTimezone?(zd(),qd("div",wee,[su(me(e.$t("Displayed time zone"))+": ",1),tu("strong",null,me(n.availabilityTimezone),1)])):ru("",!0),n.availabilityLoading?(zd(),qd("div",Cee,[(zd(),qd(Fd,null,sc(3,e=>tu("div",{key:e,class:"fs_fluent_booking_skeleton_day"},[t[5]||(t[5]=tu("span",null,null,-1)),tu("div",null,[(zd(),qd(Fd,null,sc(5,e=>tu("i",{key:e})),64))])])),64))])):n.availabilityDays.length?(zd(!0),qd(Fd,{key:2},sc(n.availabilityDays,t=>(zd(),qd("div",{key:t.date,class:"fs_fluent_booking_day"},[tu("div",Eee,[tu("h5",null,me(t.label),1),tu("div",kee,[iu(h,{day:t,visible:n.editingDayDate===t.date,"selected-slot-ids":s.getSelectedSlotIdsForDay(t),onApply:e=>s.onSlotEditorApply(t,e),onClose:s.closeSlotEditor},{reference:vr(()=>[tu("span",Tee,[iu(l,{class:"fs_action_button fs_fluent_booking_day_action",onClick:e=>s.openSlotEditor(t),text:"",icon:"EditPen"},null,8,["onClick"])])]),_:2},1032,["day","visible","selected-slot-ids","onApply","onClose"]),tu("span",Aee,[iu(l,{text:"",class:"fs_action_button fs_fluent_booking_day_delete","aria-label":e.$t("Delete row"),disabled:n.availabilityDays.length<=1,onClick:e=>s.deleteAvailabilityDay(t)},{default:vr(()=>[iu(o,{"icon-key":"delete",width:16,height:16})],void 0),_:1},8,["aria-label","disabled","onClick"])])])]),tu("div",Ree,[(zd(!0),qd(Fd,null,sc(s.getVisibleDaySlots(t),e=>(zd(),Kd(l,{key:e.id,class:se(["fs_fluent_booking_slot",{"is-selected":s.isSlotSelected(e)}]),onClick:e=>s.openSlotEditor(t)},{default:vr(()=>[su(me(s.getSlotPreviewLabel(e)),1)],void 0),_:2},1032,["class","onClick"]))),128))])]))),128)):n.availabilityLoading?ru("",!0):(zd(),qd("div",Iee,me(s.availabilityEmptyMessage),1))]),iu(u,{label:e.$t("Message")},{default:vr(()=>[iu(f,{modelValue:n.message,"onUpdate:modelValue":t[3]||(t[3]=e=>n.message=e),type:"textarea",rows:2,placeholder:e.$t("Add a message to include with the booking link (optional)")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu("div",Dee,[iu(l,{class:"fs_outline_btn",onClick:s.closePopover},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),br((zd(),Kd(l,{class:"fs_outline_btn",disabled:!n.selectedEventId||!n.selectedSlots.length||n.copying,onClick:s.copyAvailability},{default:vr(()=>[su(me(e.$t("Copy to Clipboard")),1)],void 0),_:1},8,["disabled","onClick"])),[[_,n.copying]]),br((zd(),Kd(l,{class:"fs_filled_btn",type:"primary",disabled:!n.selectedEventId||n.creating,onClick:s.insertBookingLink},{default:vr(()=>[su(me(n.selectedSlots.length?e.$t("Insert with Times"):e.$t("Insert Booking Link")),1)],void 0),_:1},8,["disabled","onClick"])),[[_,n.creating]])])],void 0),_:1})):n.loading?ru("",!0):(zd(),qd("div",Oee,[tu("p",null,me(s.emptyMessage),1),n.adminUrl?(zd(),qd("a",{key:0,href:n.adminUrl,target:"_blank",rel:"noopener"},me(e.$t("Open FluentBooking")),9,Mee)):ru("",!0)]))])),[[_,n.loading]])],void 0),_:1},8,["visible"])],512)):ru("",!0)}]]),FluentBotAIResponseGenerator:oee,ImagePasteUploader:xX},props:{editor_id:{type:String,default:()=>"wp_editor_"+Date.now()+parseInt(1e3*Math.random())},modelValue:{type:String,default:()=>""},editor_shortcodes:{type:Object,default:()=>({})},height:{type:Number,default:()=>250},mediaButtons:{type:Boolean,default:()=>!0},autofocus:{type:Boolean,default:()=>!1},showCcToggleButton:{type:Boolean,default:()=>!1},add_cc:{type:Boolean,default:()=>!1},showShortcodes:{type:Boolean,default:()=>!1},openAIIntegration:{type:Boolean,default:()=>!1},fluentBotIntegration:{type:Boolean,default:()=>!1},showSavedReplies:{type:Boolean,default:()=>!1},ticketId:{type:[String,Number],default:()=>""},showFluentBooking:{type:Boolean,default:()=>!1},productID:{type:[String,Number],default:()=>""},is_agent:{type:[Boolean,String],default:()=>!1},is_direct_paste:{type:Boolean,default:()=>!1}},emits:["update:modelValue","toggleCcOption","toggleFluentBot"],data(){var e,t,i,a,n;return{showButtonDesigner:!1,hasWpEditor:!!(null==(e=window.wp)?void 0:e.editor)&&!!(null==(t=null==wp?void 0:wp.editor)?void 0:t.autop)||!!(null==(i=window.wp)?void 0:i.oldEditor),editor:(null==(a=window.wp)?void 0:a.oldEditor)||(null==(n=window.wp)?void 0:n.editor),plain_content:this.modelValue,cursorPos:this.modelValue?this.modelValue.length:0,app_ready:!1,buttonInitiated:!1,currentEditor:!1,showActionBar:!1,actionBarStyle:{},showChatGPTPromptBox:!1,showAIResponseBox:!1,showFluentBotAIResponseBox:!1,selectedText:"",editorData:{},loadingImage:!1,showMentionSuggestions:!1,mentionQuery:"",activeMentionIndex:0,mentionSearchResults:[],mentionSearchLoading:!1,mentionSearchTimer:null,mentionSearchLastQuery:"",mentionDropdownStyle:{top:"44px",left:"12px"},isDarkMode:document.body.classList.contains("fs-dark-mode")}},computed:{fluentBotIconSrc(){return this.appVars.asset_url+"images/"+(this.isDarkMode?"fluentBotLight.svg":"fluentBotDark.svg")},shortcodes(){return this.editor_shortcodes},hasShortcodes(){return this.editor_shortcodes&&Object.keys(this.editor_shortcodes).length>0},filteredMentionAgents(){var e;if(this.ticketId)return this.mentionSearchResults.slice(0,50);const t=this.mentionQuery.toLowerCase();return((null==(e=this.appVars)?void 0:e.support_agents)||[]).filter(e=>{if(!(null==e?void 0:e.id))return!1;const i=`${e.first_name} ${e.last_name}`.toLowerCase(),a=(e.email||"").toLowerCase();return i.includes(t)||a.includes(t)}).slice(0,6)}},watch:{plain_content(){this.$emit("update:modelValue",this.plain_content)},ticketId(){this.mentionSearchResults=[],clearTimeout(this.mentionSearchTimer)}},methods:{handleThemeChange(){const e=document.body.classList.contains("fs-dark-mode");e!==this.isDarkMode&&(this.isDarkMode=e,this.hasWpEditor&&window.tinyMCE&&tinyMCE.get(this.editor_id)&&this.initEditor())},initEditor(){if(!this.hasWpEditor)return;this.editor.remove(this.editor_id);const e=this,t=document.body.classList.contains("fs-dark-mode");this.getThemeCssValue("--fs-status-info-bg",t?"#1E3A5F":"#E1E4EA");const i=`.fs_agent_mention { display: inline-flex; align-items: center; border-radius: 6px; color: ${this.getThemeCssValue("--fs-status-info-text",t?"#93C5FD":"#1976D2")}; font-weight: 500; white-space: nowrap; } .fs_agent_mention[contenteditable="false"] { user-select: all; }`,a=function(e={}){const{titleColor:t="#0E121B",textSecondary:i="#525866",textPrimary:a="#0E121B",borderColor:n="#E1E4EA",backgroundColor:s="#FFFFFF",subtleBackground:o="#F5F7FA",radius:r="8px",focusRing:l="rgba(153, 160, 174, 0.16)"}=e;return`\n .fs_fluent_booking_suggested_times { margin: 0 0 20px; }\n .fs_fluent_booking_suggested_times__title { margin: 0 0 12px; }\n .fs_fluent_booking_suggested_times__meta { margin: 0 0 8px; color: ${i}; font-size: 13px; line-height: 18px; }\n .fs_fluent_booking_suggested_times__change { color: ${a}; font-weight: 500; text-decoration: none; }\n .fs_fluent_booking_suggested_times__change:hover,\n .fs_fluent_booking_suggested_times__change:focus { color: ${a}; text-decoration: underline; }\n .fs_fluent_booking_suggested_times__group { margin: 0 0 18px; }\n .fs_fluent_booking_suggested_times__heading { margin: 0 0 10px; color: ${t}; font-size: 16px; line-height: 24px; }\n .fs_fluent_booking_suggested_times__slots { font-size: 0; line-height: 0; }\n .fs_fluent_booking_suggested_times__slot {\n display: inline-block;\n margin: 0 8px 8px 0;\n padding: 6px 12px;\n border: 1px solid ${n};\n border-radius: ${r};\n background: transparent;\n color: ${i};\n font-size: 13px;\n line-height: 18px;\n font-weight: 500;\n letter-spacing: -0.084px;\n text-decoration: none;\n white-space: nowrap;\n }\n .fs_fluent_booking_suggested_times__slot:hover,\n .fs_fluent_booking_suggested_times__slot:focus {\n border-color: ${n};\n background: ${o};\n color: ${a};\n text-decoration: none;\n }\n .fs_fluent_booking_suggested_times__slot:focus {\n box-shadow: 0 0 0 2px ${s}, 0 0 0 4px ${l};\n }\n `}({titleColor:this.getThemeCssValue("--fs-text-primary",t?"#E5E7EB":"#0E121B"),textSecondary:this.getThemeCssValue("--fs-text-secondary",t?"#99A0AE":"#525866"),textPrimary:this.getThemeCssValue("--fs-text-primary",t?"#E5E7EB":"#0E121B"),borderColor:this.getThemeCssValue("--fs-stroke-soft",t?"#2B303B":"#E1E4EA"),backgroundColor:this.getThemeCssValue("--fs-bg-primary",t?"#181B25":"#FFFFFF"),subtleBackground:this.getThemeCssValue("--fs-bg-subtle",t?"#202531":"#F5F7FA"),radius:this.getThemeCssValue("--fs-radius-md","8px"),focusRing:this.getThemeCssValue("--fs-shadow-soft","rgba(153, 160, 174, 0.16)")}),n={height:e.height,toolbar1:"formatselect,code,table,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,underline,strikethrough,forecolor,removeformat,codeformat,outdent,indent,undo,redo",content_style:t?`body { background-color: #181B25; color: #E5E7EB; } a { color: #93C5FD; } ${i} ${a}`:`${i} ${a}`,setup(t){t.on("change",function(t,i){e.changeContentEvent()}),t.on("mouseup",function(i){e.showActionBarOnSelection(t)}),t.on("keyup click NodeChange",function(){e.updateMentionSuggestions()}),t.on("keydown",function(t){e.handleMentionKeydown(t)}),t.on("blur",function(){setTimeout(()=>{e.hideMentionSuggestions()},120)}),e.is_direct_paste&&t.on("paste",function(t){const i=t.clipboardData||window.clipboardData;if(i&&i.items){let a=!1;for(let e=0;e<i.items.length;e++){if("file"===i.items[e].kind){a=!0;break}}a&&(e.loadingImage=!0,e.$refs.imagePasteUploader.handleImagePaste(t,e.ticketId,e.is_agent))}})}};this.autofocus&&(n.auto_focus=this.editor_id);const s=()=>{this.editor.initialize(this.editor_id,{mediaButtons:this.mediaButtons,tinymce:n,quicktags:!0})};"complete"===document.readyState||"interactive"===document.readyState?s():jQuery(document).ready(s),jQuery("#"+this.editor_id).on("change",function(){e.changeContentEvent()})},insertHtml(e){this.currentEditor.insertContent(e)},insertContent(e){if(this.hasWpEditor){let t=tinyMCE.get(this.editor_id)||tinyMCE.get(wpActiveEditor);if(t)return t.focus(),t.insertContent(e),void this.$emit("update:modelValue",t.getContent({format:"html"}))}const t=document.querySelector(`#${this.editor_id}`),i=t?t.selectionStart:this.cursorPos,a=this.plain_content.slice(0,i),n=this.plain_content.slice(i);this.plain_content=a+e+n,this.cursorPos=i+e.length,this.$nextTick(()=>{t&&(t.selectionStart=t.selectionEnd=this.cursorPos,t.focus())})},changeContentEvent(){const e=this.editor.getContent(this.editor_id);this.$emit("update:modelValue",this.normalizeMentionMarkup(e))},getThemeCssValue:(e,t="")=>getComputedStyle(document.body).getPropertyValue(e).trim()||t,normalizeMentionMarkup:e=>e&&"string"==typeof e?e.replace(/\s+contenteditable=["'][^"']*["']/gi,""):e,decodeHtmlEntities(e){const t=document.createElement("textarea");return t.innerHTML=String(e),t.value},getMentionTokenRange(e,t){const i=e.slice(0,t),a=i.match(/(^|[\s(])@([A-Za-z0-9._-]*)$/);return a?{start:i.length-a[0].length+a[1].length,end:t}:null},getEditorMentionRange(e){if(!e||!e.startContainer||3!==e.startContainer.nodeType||!e.collapsed)return null;const t=e.startContainer.nodeValue||"";let i=e.startOffset,a=e.startOffset;for(;i>0&&/[A-Za-z0-9._-]/.test(t.charAt(i-1));)i--;for(;a<t.length&&/[A-Za-z0-9._-]/.test(t.charAt(a));)a++;return 0===i||"@"!==t.charAt(i-1)?null:{start:i-1,end:a}},closeSelectedTextPromptBox(){this.showChatGPTPromptBox=!1,this.showActionBar=!1},closeAIResponsePromptBox(){this.showAIResponseBox=!1},toggleFluentBotPanel(){this.$emit("toggleFluentBot")},closeFluentBotAIResponsePromptBox(){this.showFluentBotAIResponseBox=!1},handleCommand(e){if(this.hasWpEditor)window.tinymce.activeEditor.insertContent(e);else{var t=this.plain_content.slice(0,this.cursorPos),i=this.plain_content.slice(this.cursorPos,this.plain_content.length);this.plain_content=t+e+i,this.cursorPos+=e.length}},updateCursorPos(){var e=jQuery(".wp_vue_editor_plain").prop("selectionStart");this.cursorPos=e},handlePlainInput(){this.updateCursorPos(),this.updateMentionSuggestions()},handlePlainSelectionChange(){this.updateCursorPos(),this.updateMentionSuggestions()},supportsMentionSuggestions(){return!0===this.is_agent||"yes"===this.is_agent||"true"===this.is_agent},getMentionQuery(e){const t=e.match(/(?:^|[\s(])@([A-Za-z0-9._\- ]*)$/);return t?t[1]:null},getEditorTextBeforeCaret(e){const t=null==e?void 0:e.selection;if(!t)return"";const i=t.getRng().cloneRange();return i.setStart(e.getBody(),0),i.toString()},setMentionDropdownPosition(){var e,t;if(this.hasWpEditor){const i=tinyMCE.get(this.editor_id),a=null==(t=null==(e=null==i?void 0:i.selection)?void 0:e.getRng)?void 0:t.call(e);if(!a)return;const n=a.getBoundingClientRect(),s=this.$el.getBoundingClientRect(),o=Math.max(12,n.left-s.left),r=Math.max(44,n.bottom-s.top+8);return void(this.mentionDropdownStyle={top:`${r}px`,left:`${o}px`})}const i=this.$el.querySelector(".wp_vue_editor_plain");i&&(this.mentionDropdownStyle={top:`${i.offsetTop+44}px`,left:`${i.offsetLeft+12}px`})},updateMentionSuggestions(){if(!this.supportsMentionSuggestions())return;let e=null;if(this.hasWpEditor){const t=tinyMCE.get(this.editor_id);if(!t)return void this.hideMentionSuggestions();e=this.getMentionQuery(this.getEditorTextBeforeCaret(t))}else{const t=this.$el.querySelector(".wp_vue_editor_plain"),i=t?t.selectionStart:this.cursorPos;e=this.getMentionQuery(this.plain_content.slice(0,i))}if(null===e||e.length<1)return void this.hideMentionSuggestions();const t=!this.showMentionSuggestions;if(this.mentionQuery=e,this.ticketId)this.triggerMentionSearch(e);else if(!this.filteredMentionAgents.length)return void this.hideMentionSuggestions();(t||this.activeMentionIndex>=this.filteredMentionAgents.length)&&(this.activeMentionIndex=0),this.setMentionDropdownPosition(),this.showMentionSuggestions=!0},triggerMentionSearch(e){const t=e.trim();if(!t||t.length<2)return clearTimeout(this.mentionSearchTimer),this.mentionSearchResults=[],this.mentionSearchLoading=!1,void(this.mentionSearchLastQuery="");if(t===this.mentionSearchLastQuery)return;clearTimeout(this.mentionSearchTimer),this.mentionSearchLoading=!0;const i=t;this.mentionSearchTimer=setTimeout(()=>{this.$get(`tickets/${this.ticketId}/mentionable-agents`,{search:i,limit:50}).then(e=>{i===this.mentionQuery.trim()&&(this.mentionSearchLastQuery=i,this.mentionSearchResults=(null==e?void 0:e.agents)||[],this.activeMentionIndex>=this.mentionSearchResults.length&&(this.activeMentionIndex=0))}).catch(()=>{i===this.mentionQuery.trim()&&(this.mentionSearchResults=[])}).always(()=>{i===this.mentionQuery.trim()&&(this.mentionSearchLoading=!1)})},350)},hideMentionSuggestions(){this.showMentionSuggestions=!1,this.mentionQuery="",this.activeMentionIndex=0,this.mentionSearchResults=[],this.mentionSearchLoading=!1,this.mentionSearchLastQuery="",clearTimeout(this.mentionSearchTimer)},handleMentionKeydown(e){if(this.showMentionSuggestions&&this.filteredMentionAgents.length)return"ArrowDown"===e.key?(e.preventDefault(),void(this.activeMentionIndex=(this.activeMentionIndex+1)%this.filteredMentionAgents.length)):"ArrowUp"===e.key?(e.preventDefault(),void(this.activeMentionIndex=(this.activeMentionIndex-1+this.filteredMentionAgents.length)%this.filteredMentionAgents.length)):"Enter"===e.key||"Tab"===e.key?(e.preventDefault(),void this.selectMentionAgent(this.filteredMentionAgents[this.activeMentionIndex])):void("Escape"===e.key&&(e.preventDefault(),this.hideMentionSuggestions()))},selectMentionAgent(e){var t,i;if(!(null==e?void 0:e.id))return;const a=`${e.first_name} ${e.last_name}`.trim(),n=this.escapeHtmlAttribute(String(e.id)),s=`@[${e.id}:${a}] `,o=`<span class="fs_agent_mention" data-mention-username="${n}" contenteditable="false">@${a}</span>&nbsp;`;if(this.hasWpEditor){const e=tinyMCE.get(this.editor_id);if(e){const a=null==(i=null==(t=e.selection)?void 0:t.getRng)?void 0:i.call(t),n=this.getEditorMentionRange(a);n?(a.setStart(a.startContainer,n.start),a.setEnd(a.startContainer,n.end),e.selection.setRng(a),e.selection.setContent(o)):e.insertContent(o),this.$emit("update:modelValue",this.normalizeMentionMarkup(e.getContent()))}}else{const e=this.$el.querySelector(".wp_vue_editor_plain"),t=e?e.selectionStart:this.cursorPos;e?e.selectionEnd:this.cursorPos;const i=this.getMentionTokenRange(this.plain_content,t);if(!i)return void this.hideMentionSuggestions();const a=this.plain_content.slice(0,i.start),n=this.plain_content.slice(i.end);this.plain_content=`${a}${s}${n}`,this.$nextTick(()=>{if(e){const t=a.length+s.length;e.selectionStart=t,e.selectionEnd=t,e.focus()}})}this.hideMentionSuggestions()},escapeHtmlAttribute:e=>String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),handleCc(e){this.$emit("toggleCcOption",e)},insertShortcode(e){const t=e.target._value;if(this.hasWpEditor){let e=tinyMCE.get(this.editor_id);if(e){e.focus(),e.insertContent(t);const i=e.getContent();this.$emit("update:modelValue",i)}}else{const e=document.querySelector(`#${this.editor_id}`);if(e){const i=e.selectionStart,a=e.selectionEnd,n=e.value,s=n.substring(0,i),o=n.substring(a,n.length),r=s+t+o;this.plain_content=r,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=i+t.length,e.focus()})}}},insertTemplate(e){tinyMCE.editors[wpActiveEditor].setContent(this.modelValue+e),this.$emit("update:modelValue",this.modelValue+e)},insertAIResponse(e){let t=tinyMCE.get(wpActiveEditor);t.insertContent(e),this.$emit("update:modelValue",t.getContent({format:"html"})),this.showChatGPTPromptBox=!1,this.showAIResponseBox=!1,this.showFluentBotAIResponseBox=!1,this.showActionBar=!1},showActionBarOnSelection(e){this.editorData=e;const t=this.editorData.selection;if(t.isCollapsed())this.showActionBar=!1;else{const e=t.getContent({format:"text"});if(e.length>0){const i=t.getRng();i.getBoundingClientRect();const a=i.cloneRange();a.setStart(a.startContainer,a.startOffset),a.setEnd(a.startContainer,a.startOffset);const n=a.getBoundingClientRect();this.actionBarStyle={top:`${n.top+80}px`,left:`${n.right+40}px`,position:"absolute",zIndex:1},this.selectedText=e,this.showChatGPTPromptBox=!1,this.showActionBar=!0}}},overallTicketResponse(){this.showAIResponseBox=!this.showAIResponseBox},editSelection(){if(!this.editor)return;const e=this.editorData.selection.getContent({format:"text"}).trim();e&&(this.selectedText=e,this.showChatGPTPromptBox=!0)},setImagePath(e){const t=tinyMCE.get(this.editor_id);if(!t)return;const i=new Image;i.src=e,i.onload=()=>{const a=300,{naturalWidth:n,naturalHeight:s}=i,o=n/s;let r=n,l=s;n>s?(r=a,l=a/o):(l=a,r=a*o);const c=`<img src="${e}" alt="Uploaded Image" style="width: ${r}px; height: ${l}px;" />`;t.insertContent(c),this.loadingImage=!1}}},mounted(){this.initEditor(),this.app_ready=!0,window.addEventListener("fs-theme-changed",this.handleThemeChange)},beforeUnmount(){window.removeEventListener("fs-theme-changed",this.handleThemeChange)}},Lee={class:"wp_vue_editor_wrapper"},Pee={class:"fs_action_buttons"},Fee={key:0,class:"fs_ai_tools_box"},Bee=["src"],$ee={key:1,class:"fs_ai_tools_box"},Vee=["src"],Uee={class:"fs_template_inserter"},Hee={key:2,class:"fs_cc_email_toggle_button"},zee={key:3,class:"fs_saved_replies_box"},Yee={key:4,class:"fs_shortcode_box"},Gee=["id"],Wee=["id"],jee=["onMousedown"],qee={class:"fs_mentions_option_name"},Kee={key:3,class:"fs_loading_overlay"},Xee=["src"],Zee={class:"fs_ai_response_box"};const Qee=lH(Nee,[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("AIResponseGenerator"),l=P$,c=Jl("template-inserter"),d=Jl("ArrowDown"),u=KS,p=nN,h=sN,f=aN,g=Jl("fluent-booking-inserter"),m=Jl("ImagePasteUploader"),_=WB;return zd(),qd("div",Lee,[tu("div",Pee,[i.fluentBotIntegration?(zd(),qd("div",Fee,[iu(o,{class:"fs_fluent_bot_response_button",onClick:s.toggleFluentBotPanel},{default:vr(()=>[tu("img",{src:s.fluentBotIconSrc,alt:"",class:"fs_fluent_bot_icon"},null,8,Bee),tu("p",null,me(e.$t("Ask FluentBot")),1)],void 0),_:1},8,["onClick"])])):ru("",!0),i.openAIIntegration?(zd(),qd("div",$ee,[iu(l,{placement:"bottom",width:480,trigger:"click",visible:n.showAIResponseBox},{reference:vr(()=>[iu(o,{class:"fs_openAI_response_button",onClick:t[0]||(t[0]=e=>n.showAIResponseBox=!n.showAIResponseBox)},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/aiFillButton.svg",alt:""},null,8,Vee),tu("p",null,me(e.$t("Ask AI")),1)],void 0),_:1})]),default:vr(()=>[tu("div",Uee,[tu("div",null,[iu(r,{type:"createResponse",onClose:s.closeAIResponsePromptBox,onInsert:s.insertAIResponse},null,8,["onClose","onInsert"])])])],void 0),_:1},8,["visible"])])):ru("",!0),i.showCcToggleButton?(zd(),qd("div",Hee,[i.add_cc?(zd(),Kd(o,{key:1,size:"small",type:"danger",onClick:t[2]||(t[2]=e=>s.handleCc("hide"))},{default:vr(()=>[tu("span",null,me(e.$t("Discard Cc")),1)],void 0),_:1})):(zd(),Kd(o,{key:0,size:"small",type:"primary",onClick:t[1]||(t[1]=e=>s.handleCc("show"))},{default:vr(()=>[tu("span",null,me(e.$t("Apply Cc")),1)],void 0),_:1}))])):ru("",!0),i.showSavedReplies?(zd(),qd("div",zee,[iu(c,{onInsert:s.insertTemplate},null,8,["onInsert"])])):ru("",!0),s.hasShortcodes?(zd(),qd("div",Yee,[iu(f,{type:"primary",trigger:"click","popper-options":{strategy:"fixed"}},{dropdown:vr(()=>[iu(h,{class:"fs_global_dropdown fs_shortcode_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.shortcodes,(e,t)=>(zd(),Kd(p,{key:t,value:t,onClick:s.insertShortcode},{default:vr(()=>[su(me(e),1)],void 0),_:2},1032,["value","onClick"]))),128))],void 0),_:1})]),default:vr(()=>[iu(o,{size:"small",type:"primary"},{default:vr(()=>[su(me(e.$t("Smart Codes"))+" ",1),iu(u,{style:{"vertical-align":"middle"}},{default:vr(()=>[iu(d)],void 0),_:1})],void 0),_:1})],void 0),_:1})])):ru("",!0),i.showFluentBooking&&i.ticketId?(zd(),Kd(g,{key:5,"ticket-id":i.ticketId,onInsert:s.insertContent},null,8,["ticket-id","onInsert"])):ru("",!0)]),br(iu(m,{ref:"imagePasteUploader",onImagePath:s.setImagePath},null,8,["onImagePath"]),[[_,n.loadingImage]]),n.hasWpEditor?(zd(),qd("textarea",{key:0,class:"wp_vue_editor",id:i.editor_id}," "+me(i.modelValue)+"\n ",9,Gee)):br((zd(),qd("textarea",{key:1,id:i.editor_id,class:"wp_vue_editor wp_vue_editor_plain","onUpdate:modelValue":t[3]||(t[3]=e=>n.plain_content=e),onInput:t[4]||(t[4]=(...e)=>s.handlePlainInput&&s.handlePlainInput(...e)),onClick:t[5]||(t[5]=(...e)=>s.handlePlainSelectionChange&&s.handlePlainSelectionChange(...e)),onKeyup:t[6]||(t[6]=(...e)=>s.handlePlainSelectionChange&&s.handlePlainSelectionChange(...e)),onKeydown:t[7]||(t[7]=(...e)=>s.handleMentionKeydown&&s.handleMentionKeydown(...e)),onBlur:t[8]||(t[8]=(...e)=>s.hideMentionSuggestions&&s.hideMentionSuggestions(...e))},null,40,Wee)),[[gh,n.plain_content]]),n.showMentionSuggestions&&s.filteredMentionAgents.length?(zd(),qd("div",{key:2,class:"fs_mentions_dropdown",style:ee(n.mentionDropdownStyle)},[(zd(!0),qd(Fd,null,sc(s.filteredMentionAgents,(e,t)=>(zd(),qd("button",{key:e.id,type:"button",class:se(["fs_mentions_option",{"is-active":t===n.activeMentionIndex}]),onMousedown:Ah(t=>s.selectMentionAgent(e),["prevent"])},[tu("span",qee,me(e.first_name)+" "+me(e.last_name),1)],42,jee))),128))],4)):ru("",!0),n.loadingImage?(zd(),qd("div",Kee)):ru("",!0),n.showActionBar&&i.openAIIntegration?(zd(),qd("div",{key:4,class:"fs_ai_modify_response_box",style:ee(n.actionBarStyle)},[iu(l,{placement:"bottom",width:480,trigger:"click",visible:n.showChatGPTPromptBox,"popper-class":"fs_ai_response_popover"},{reference:vr(()=>[iu(o,{class:"fs_ai_popover_button",onClick:t[9]||(t[9]=e=>s.editSelection()),size:"small",type:"default"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/aiIcon.svg",alt:""},null,8,Xee)],void 0),_:1})]),default:vr(()=>[tu("div",Zee,[tu("div",null,[iu(r,{type:"modifyResponse",selectedText:n.selectedText,onClose:s.closeSelectedTextPromptBox,onInsert:s.insertAIResponse},null,8,["selectedText","onClose","onInsert"])])])],void 0),_:1},8,["visible"])],4)):ru("",!0)])}]]),Jee={name:"RemoteSelector",props:{api_path:String,response_key:String,value_selector:String,label_selectors:Array,label_joiner:{type:String,default:" - "},modelValue:[String,Number],clearable:{type:Boolean,default:!1}},emits:["update:modelValue","change"],watch:{modelValue(e){this.modelValueLocal=e},modelValueLocal(e){this.$emit("update:modelValue",e)}},data(){return{options:[],loading:!1,modelValueLocal:this.modelValue}},methods:{fetchData(e){e||(e=this.modelValue),""!==e?(this.loading=!0,this.$get(this.api_path,{search:e,order_by:this.value_selector,order_type:"ASC"}).then(e=>{e[this.response_key].data&&(this.options=e[this.response_key].data)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})):this.options=[]},getLabel(e){const t=[];return yX(this.label_selectors,i=>{t.push(e[i])}),t.join(this.label_joiner)},handleChange(e){this.$emit("change",e)}},mounted(){this.fetchData(this.modelValue)}},ete={class:"fs_remote_selector"};const tte=lH(Jee,[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",ete,[iu(r,{modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e),filterable:"",remote:"",class:"fs_select_field",placeholder:e.$t("Search"),"remote-method":s.fetchData,loading:n.loading,clearable:i.clearable,onChange:s.handleChange},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.options,e=>(zd(),Kd(o,{key:e[i.value_selector],label:s.getLabel(e),value:e[i.value_selector]},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","remote-method","loading","clearable","onChange"])])}]]),ite={key:0,class:"el-form-item__error"};const ate=lH({name:"Error",props:["error"]},[["render",function(e,t,i,a,n,s){return i.error?(zd(),qd("span",ite,me(i.error),1)):ru("",!0)}]]);class nte{constructor(){this.errors={}}get(e){if(this.errors[e])return Object.values(this.errors[e])[0]}has(e){return!!this.errors[e]}record(e){this.errors="responseJSON"in e?e.responseJSON:e}clear(){this.errors={}}}var ste=zq["__core-js_shared__"],ote=function(){var e=/[^.]+$/.exec(ste&&ste.keys&&ste.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var rte=function(e){return!!ote&&ote in e},lte=Function.prototype.toString;var cte=function(e){if(null!=e){try{return lte.call(e)}catch(NO){}try{return e+""}catch(NO){}}return""},dte=aX,ute=rte,pte=eX,hte=cte,fte=/^\[object .+?Constructor\]$/,gte=Function.prototype,mte=Object.prototype,_te=gte.toString,vte=mte.hasOwnProperty,bte=RegExp("^"+_te.call(vte).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var yte=function(e){return!(!pte(e)||ute(e))&&(dte(e)?bte:fte).test(hte(e))},xte=function(e,t){return null==e?void 0:e[t]};var Ste=function(e,t){var i=xte(e,t);return yte(i)?i:void 0},wte=Ste(zq,"DataView"),Cte=Ste(zq,"Map"),Ete=Ste(zq,"Promise"),kte=Ste(zq,"Set"),Tte=Ste(zq,"WeakMap"),Ate=tK,Rte=cte,Ite="[object Map]",Dte="[object Promise]",Ote="[object Set]",Mte="[object WeakMap]",Nte="[object DataView]",Lte=Rte(wte),Pte=Rte(Cte),Fte=Rte(Ete),Bte=Rte(kte),$te=Rte(Tte),Vte=Ate;(wte&&Vte(new wte(new ArrayBuffer(1)))!=Nte||Cte&&Vte(new Cte)!=Ite||Ete&&Vte(Ete.resolve())!=Dte||kte&&Vte(new kte)!=Ote||Tte&&Vte(new Tte)!=Mte)&&(Vte=function(e){var t=Ate(e),i="[object Object]"==t?e.constructor:void 0,a=i?Rte(i):"";if(a)switch(a){case Lte:return Nte;case Pte:return Ite;case Fte:return Dte;case Bte:return Ote;case $te:return Mte}return t});var Ute=JK,Hte=Vte,zte=dK,Yte=uK,Gte=oX,Wte=SK,jte=jK,qte=FK,Kte=Object.prototype.hasOwnProperty;const Xte=Dk(function(e){if(null==e)return!0;if(Gte(e)&&(Yte(e)||"string"==typeof e||"function"==typeof e.splice||Wte(e)||qte(e)||zte(e)))return!e.length;var t=Hte(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(jte(e))return!Ute(e).length;for(var i in e)if(Kte.call(e,i))return!1;return!0}),Zte={class:"fs_custom_fields"},Qte={dir:"auto"},Jte={dir:"auto"},eie={dir:"auto"},tie={dir:"auto"},iie={dir:"auto"},aie={key:6};const nie=lH({name:"CustomFieldForm",props:["custom_data","ticket_id","ticket","type"],emits:["syncData"],data:()=>({appReady:!1,fields:!1,labelPosition:"top",formData:{},formattedProducts:{},saving:!1,loading_remote:!1}),methods:{fetchRemoteFields(){this.loading_remote=!0,this.$get("tickets/"+this.ticket_id+"/custom-data",{with:["rendered_fields"]}).then(e=>{this.formData=e.custom_data,this.fields=e.rendered_fields,this.initFields()}).catch(e=>{}).always(()=>{this.loading_remote=!1})},initFields(){if(Xte(this.fields))return!1;this.ticket_id||(this.formData=this.custom_data),Xte(this.custom_data)||(this.formData=this.custom_data),Xte(this.formData)&&(this.formData={}),yX(this.fields,(e,t)=>{"checkbox"==e.type&&(this.formData[t]&&pK(this.formData[t])?this.formData[t]||(this.formData[t]=""):this.formData[t]=[])}),yX(this.appVars.support_products,e=>{this.formattedProducts[e.id]=e.title}),this.appReady=!0},saveEditedCustomFieldData(){this.saving=!0,this.$post(`ticket-custom-fields/${this.ticket_id}/sync`,{custom_fields:this.formData}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("syncData",e.custom_data_rendered)}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},handleFormSubmit(e){e.preventDefault(),this.ticket_id&&!this.saving&&this.saveEditedCustomFieldData()},handleEnterKey(e){e.preventDefault(),this.ticket_id&&!this.saving&&this.saveEditedCustomFieldData()},isRenderable(e){if("yes"!=e.has_logics||!e.conditions||!e.conditions.length||"update_ticket"===this.type)return!0;let t=!1,i=!0;return yX(e.conditions,a=>{this.dependencyPass(a)?t=!0:(this.custom_data[e.slug]=[],i=!1)}),"all"==e.match_type?t&&i:t},compare(e,t,i){if(void 0===i)return!1;switch("string"==typeof e&&(e=e.toLowerCase()),"string"==typeof i&&(i=i.toLowerCase()),pK(i)&&(i=i.map(e=>e.toLowerCase())),t){case"=":return pK(i)?-1!==i.indexOf(e):e==i;case"!=":return pK(i)?-1===i.indexOf(e):(""===e||""!==i&&void 0!==i)&&e!=i;case"contains":return e=e.toString(),-1!==i.indexOf(e);case"not_contains":return e=e.toString(),-1===i.indexOf(e);case"lt":return i<e;case"gt":return i>e;default:return!1}},dependencyPass(e){if(e&&e.item_key&&e.operator){let t=e.item_key,i="";return 0===t.indexOf("ticket_")?(t=t.replace("ticket_",""),i="product_id"==t?this.formattedProducts[this.ticket[t]]:this.ticket[t]):i=this.custom_data[t],i||(i=""),!!this.compare(e.value,e.operator,i)}return!0}},computed:{computedFields(){let e=Object.keys(this.fields),t=this.fields;return e.forEach(e=>{t[e].is_renderable=this.isRenderable(t[e])}),t}},mounted(){if(Xte(this.appVars.custom_fields))return!1;this.appVars.has_custom_ajax_fields&&this.ticket_id?this.fetchRemoteFields():(this.fields=this.appVars.custom_fields,this.initFields())}},[["render",function(e,t,i,a,n,s){const o=cE,r=jO,l=wA,c=SA,d=WR,u=jR,p=AR,h=RR,f=oC,g=sC,m=hI,_=pI,v=Sk,b=AL,y=WB;return zd(),qd("div",Zte,[n.appReady?(zd(),Kd(g,{key:0,onSubmit:Ah(s.handleFormSubmit,["prevent"]),data:n.formData,"label-position":n.labelPosition},{default:vr(()=>[n.fields?(zd(),Kd(_,{key:0,gutter:30},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.computedFields,(t,i)=>br((zd(),Kd(m,{key:i,xs:24,md:12},{default:vr(()=>[iu(g,{data:n.formData,"label-position":n.labelPosition,onSubmit:Ah(s.handleFormSubmit,["prevent"])},{default:vr(()=>[iu(f,{label:t.label},{label:vr(()=>[tu("span",Qte,me(t.label),1)]),default:vr(()=>["text"==t.type||"number"==t.type||"textarea"==t.type?(zd(),Kd(o,{key:0,type:t.type,dir:"auto",modelValue:n.formData[t.slug],"onUpdate:modelValue":e=>n.formData[t.slug]=e,onKeyup:Ih(Ah(s.handleEnterKey,["prevent"]),["enter"]),class:"fs_text_input fs_text_input_40"},null,8,["type","modelValue","onUpdate:modelValue","onKeyup"])):"date-range"==t.type?(zd(),Kd(r,{key:1,type:"daterange","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"Start date","end-placeholder":"End date",modelValue:n.formData[t.slug],"onUpdate:modelValue":e=>n.formData[t.slug]=e,style:{width:"100%"},class:"fs_text_input fs_text_input_40"},null,8,["modelValue","onUpdate:modelValue"])):"select-one"==t.type?(zd(),Kd(c,{key:2,class:"fs_select_field",modelValue:n.formData[t.slug],"onUpdate:modelValue":e=>n.formData[t.slug]=e},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(t.options,e=>(zd(),Kd(l,{key:e,value:e,label:e},{default:vr(()=>[tu("span",Jte,me(e),1)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):"select"==t.type?(zd(),Kd(c,{key:3,class:"fs_select_field",filterable:t.filterable,multiple:t.multiple,modelValue:n.formData[t.slug],"onUpdate:modelValue":e=>n.formData[t.slug]=e},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(t.options,e=>(zd(),Kd(l,{key:e.id,value:e.id,label:e.title},{default:vr(()=>[tu("span",eie,me(e.title),1)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:2},1032,["filterable","multiple","modelValue","onUpdate:modelValue"])):"radio"==t.type?(zd(),Kd(u,{key:4,modelValue:n.formData[t.slug],"onUpdate:modelValue":e=>n.formData[t.slug]=e},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(t.options,e=>(zd(),Kd(d,{key:e,value:e},{default:vr(()=>[tu("span",tie,me(e),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):"checkbox"==t.type?(zd(),Kd(h,{key:5,modelValue:n.formData[t.slug],"onUpdate:modelValue":e=>n.formData[t.slug]=e},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(t.options,e=>(zd(),Kd(p,{key:e,value:e,label:e},{default:vr(()=>[tu("span",iie,me(e),1)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):(zd(),qd("p",aie,me(e.$t("Not editable")),1))],void 0),_:2},1032,["label"])],void 0),_:2},1032,["data","label-position","onSubmit"])],void 0),_:2},1024)),[[yp,t.is_renderable]])),128))],void 0),_:1})):ru("",!0),i.ticket_id?br((zd(),Kd(v,{key:1,disabled:n.saving,onClick:t[0]||(t[0]=Ah(e=>s.saveEditedCustomFieldData(),["prevent"])),type:"primary","native-type":"button",class:"fs_filled_btn fs_button_right"},{default:vr(()=>[su(me(e.$t("Save")),1)],void 0),_:1},8,["disabled"])),[[y,n.saving]]):ru("",!0)],void 0),_:1},8,["onSubmit","data","label-position"])):n.loading_remote?(zd(),Kd(b,{key:1,rows:3,animated:""})):ru("",!0)])}]]),sie={name:"AttachmentForm",props:["ticket","attachments","is_agent"],emits:["upload-state-change"],computed:{acceptedTypes(){return this.appVars.allowed_file_types||"*"},uploadLimit(){const e=parseInt(this.appVars.max_file_upload,10)||0;return Math.max(0,e-this.attachments.length-this.uploadingCount)},uploadingCount(){return this.pendingUploads},uploadingMessage(){return 1===this.uploadingCount?this.$t("Uploading 1 attachment. Please wait before submitting."):`Uploading ${this.uploadingCount} attachments. Please wait before submitting.`}},data(){return{upload_url:this.appVars.rest.url+"/ticket_file_upload",upload_data:{ticket_id:this.ticket.id,intended_ticket_hash:this.appVars.intended_ticket_hash,is_agent:this.is_agent},requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},error_message:"",showAttachmentList:!1,attachmentInfo:{},pendingUploads:0}},watch:{pendingUploads:{handler(e){this.$emit("upload-state-change",{uploading:e>0,count:e})},immediate:!0}},methods:{beforeUpload(){const e=parseInt(this.appVars.max_file_upload,10);return!(this.attachments.length+this.uploadingCount>=e)||(this.error_message=`${this.$t("You can upload maximum")} ${this.appVars.max_file_upload} ${this.$t("files")}`,!1)},handleExceed(){this.error_message=`${this.$t("You can upload maximum")} ${this.appVars.max_file_upload} ${this.$t("files")}`},customUpload(e){const{file:t,onSuccess:i,onError:a}=e,n=new FormData,s=`${t.uid||t.name}-${Date.now()}`;this.pendingUploads+=1,n.append("file",t),Object.keys(this.upload_data).forEach(e=>{n.append(e,this.upload_data[e])}),fetch(this.upload_url,{method:"POST",headers:this.requestHeaders,credentials:"include",body:n}).then(e=>e.json()).then(e=>{if(!e.attachments)throw new Error(e.message||"Upload failed");e.__uploadKey=s,i(e)}).catch(e=>{e.__uploadKey=s,a(e)})},handleUploadSuccess(e,t){this.error_message="";const i=t.raw||t,a=e.__uploadKey;e.attachments&&Array.isArray(e.attachments)&&(e.attachments.forEach(e=>{this.attachmentInfo[e]={title:i.name,file_name:i.name,name:i.name,file_size:i.size,file_type:i.type},this.attachments.push(e)}),this.showAttachmentList=!0),this.finishUpload(a)},handleUploadError(e,t){this.finishUpload(e.__uploadKey),this.handleError(e,t.raw||t)},handleError(e,t){let i=this.$t("File failed to upload");if(e.message)try{const t=JSON.parse(e.message);i=this.convertToText(t)||i}catch(NO){i=e.message}this.error_message=`${t.name}: ${i}`},finishUpload(e){e&&this.pendingUploads>0&&(this.pendingUploads-=1)},removeAttachment(e){var t;const i=this.attachments[e];this.attachmentInfo[i]&&delete this.attachmentInfo[i],this.attachments.splice(e,1),null==(t=this.$refs.uploadRef)||t.clearFiles(),0===this.attachments.length&&(this.showAttachmentList=!1)},getAttachmentName(e){if("string"==typeof e){const t=this.attachmentInfo[e];return(null==t?void 0:t.title)||(null==t?void 0:t.file_name)||(null==t?void 0:t.name)||this.$t("Unknown File")}return e.title||e.file_name||e.name||e.original_name||this.$t("Unknown File")},getFileExtension(e){if(!e||e===this.$t("Unknown File"))return"FILE";const t=e.split(".");return t.length>1?t.pop().toUpperCase():"FILE"},getFileTypeClass(e){if(!e||e===this.$t("Unknown File"))return"fs_file_default";const t=e.split(".");if(t.length<=1)return"fs_file_default";return{pdf:"fs_file_pdf",jpg:"fs_file_jpg",jpeg:"fs_file_jpg",png:"fs_file_png",gif:"fs_file_gif",doc:"fs_file_doc",docx:"fs_file_doc",csv:"fs_file_csv",zip:"fs_file_zip",json:"fs_file_json",txt:"fs_file_txt"}[t.pop().toLowerCase()]||"fs_file_default"},formatFileSize(e){if(!e||0===e)return"0 KB";const t=e/1024;return t<1024?`${Math.round(t)} KB`:`${Math.round(t/1024)} MB`},getAttachmentSize(e){if("string"==typeof e){const t=this.attachmentInfo[e];return this.formatFileSize((null==t?void 0:t.file_size)||0)}return this.formatFileSize(e.file_size||0)},clearAllAttachments(){var e;this.attachmentInfo={},this.attachments.splice(0,this.attachments.length),null==(e=this.$refs.uploadRef)||e.clearFiles(),this.showAttachmentList=!1}}},oie={class:"fs_attachments_form"},rie={class:"fs_attachment_header"},lie={class:"fs_attachment_row"},cie={class:"fs_attachment_actions"},die={class:"fs_upload_dragger"},uie=["src"],pie={class:"fs_upload_dragger_text"},hie=["src"],fie={class:"fs_attachment_icon"},gie={class:"fs_attachment_details"},mie={class:"fs_attachment_name"},_ie={class:"fs_attachment_size"},vie=["onClick"],bie=["src"],yie={class:"fs_attachment_help"},xie={key:1,class:"fs_attachment_uploading"};const Sie=lH(sie,[["render",function(e,t,i,a,n,s){const o=PB,r=Sk,l=Jl("Delete"),c=KS,d=sN,u=aN,p=ZC;return zd(),qd("div",oie,[tu("div",rie,[tu("h4",null,me(e.$t("Add Attachment")),1),tu("div",lie,[tu("div",cie,[iu(o,{ref:"uploadRef",class:"fs_attachment_upload",drag:"",accept:s.acceptedTypes,multiple:"","show-file-list":!1,limit:s.uploadLimit,disabled:s.uploadLimit<=0,"on-exceed":s.handleExceed,"before-upload":s.beforeUpload,"on-success":s.handleUploadSuccess,"on-error":s.handleUploadError,"http-request":s.customUpload},{default:vr(()=>[tu("div",die,[tu("img",{src:e.appVars.asset_url+"images/uploadIcon.svg",alt:""},null,8,uie),tu("p",pie,me(e.$t("Browse File")),1)])],void 0),_:1},8,["accept","limit","disabled","on-exceed","before-upload","on-success","on-error","http-request"]),i.attachments.length>0?(zd(),Kd(u,{key:0,placement:"bottom-start",trigger:"click"},{dropdown:vr(()=>[iu(d,{class:"fs_global_dropdown fs_attachment_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.attachments,(e,t)=>(zd(),qd("div",{key:"string"==typeof e?e:e.id||t,class:"fs_attachment_item"},[tu("div",fie,[tu("span",{class:se(s.getFileTypeClass(s.getAttachmentName(e)))},me(s.getFileExtension(s.getAttachmentName(e))),3)]),tu("div",gie,[tu("div",mie,me(s.getAttachmentName(e)),1),tu("div",_ie,me(s.getAttachmentSize(e)),1)]),tu("button",{type:"button",class:"fs_attachment_remove",onClick:e=>s.removeAttachment(t)},[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1})],8,vie)]))),128))],void 0),_:1})]),default:vr(()=>[iu(r,{class:"fs_outline_btn"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/attachmentIcon.svg",alt:""},null,8,hie),su(" "+me(i.attachments.length),1)],void 0),_:1})],void 0),_:1})):ru("",!0),i.attachments.length>0?(zd(),Kd(p,{key:1,effect:"dark",content:e.$t("Clear All Attachments"),placement:"top"},{default:vr(()=>[iu(r,{class:"fs_outline_btn",onClick:s.clearAllAttachments},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/deleteIcon.svg",alt:""},null,8,bie)],void 0),_:1},8,["onClick"])],void 0),_:1},8,["content"])):ru("",!0)]),tu("p",yie," ("+me(e.$t("allowed_files_and_size"))+") ",1)])]),n.error_message?(zd(),qd("p",{key:0,class:"fs_error_message",onClick:t[0]||(t[0]=e=>n.error_message="")},me(n.error_message),1)):ru("",!0),s.uploadingCount?(zd(),qd("p",xie,me(s.uploadingMessage),1)):ru("",!0)])}],["__scopeId","data-v-c16a41c5"]]),wie={name:"CreateTicketForm",components:{AttachmentForm:Sie,WpEditor:Qee,RemoteSelector:tte,Error:ate,CustomFieldForm:nie},emits:["close"],data:()=>({step:"search",creating:!1,editor_ready:!0,products:[],priorities:{},mailboxes:[],errors:new nte,ticket:{customer_id:"",mailbox_id:"",title:"",content:"",product_id:"",client_priority:"normal",custom_fields:nie.data(),create_customer:"no",create_wp_user:"no",agent_initiated:"no"},new_customer:{},customer_search_item:{provider:"",id:""},search_customer:"",search_results:{provider:"",data:[]},searching:!1,searched:!1,attachments:[],validation_errors:{email:"",username:"",password:""},has_pro:!1,searchDebounceTimer:null,attachmentUploadState:{uploading:!1,count:0}}),watch:{search_customer(e){clearTimeout(this.searchDebounceTimer),e&&e.length>=3&&(this.searchDebounceTimer=setTimeout(()=>{this.searchCustomers()},400))}},computed:{canProceedToTicket(){return!(!this.new_customer.email||"yes"===this.ticket.create_customer)||!("yes"!==this.ticket.create_customer||!this.new_customer.email)}},created(){this.products=this.appVars.support_products||[],this.priorities=this.appVars.client_priorities||{},this.mailboxes=this.appVars.mailboxes||[],this.has_pro=this.appVars.has_pro||!1},methods:{updateAttachmentUploadState(e){this.attachmentUploadState=e},notifyAttachmentUploadPending(){const e=this.attachmentUploadState.count>1?this.$t("Please wait for all attachments to finish uploading before creating the ticket."):this.$t("Please wait for the attachment to finish uploading before creating the ticket.");this.$notify({message:e,position:"bottom-right",type:"warning"})},create(){this.attachmentUploadState.uploading?this.notifyAttachmentUploadPending():(this.errors.clear(),this.creating=!0,this.$post("tickets",{ticket:this.ticket,newCustomer:this.new_customer,attachments:this.attachments}).then(e=>{this.$notify({message:e.message,position:"bottom-right",type:"success"}),this.$router.push({name:"view_ticket",params:{ticket_id:e.ticket.id}})}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1}))},labelMaker:(e,t)=>`${e} - ${t}`,insertTemplate(e){this.editor_ready=!1,this.ticket.content=this.ticket.content+e,this.$nextTick(()=>{this.editor_ready=!0})},searchCustomers(){this.searching=!0,this.searched=!1,this.$get("tickets/search-contact",{search:this.search_customer}).then(e=>{this.search_results=e}).catch(e=>{this.$handleError(e)}).always(()=>{this.searching=!1,this.searched=!0})},customerSelected(e,t){this.new_customer={...e},this.new_customer.provider=t,this.step="ticket"},isValidEmail:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),resetValidationErrors(){this.validation_errors.email="",this.validation_errors.username="",this.validation_errors.password=""},validateEmail(){const e=this.new_customer.email;return!(!e||!this.isValidEmail(e))||(this.validation_errors.email=this.$t("Please provide a valid email address."),!1)},validateWpUser(){if("yes"!==this.ticket.create_wp_user)return!0;let e=!0;return this.new_customer.username||(this.validation_errors.username=this.$t("Username is required for WordPress user."),e=!1),e},goToTicketStep(){if(this.resetValidationErrors(),"yes"===this.ticket.create_customer){const e=this.validateEmail(),t=this.validateWpUser();if(!e||!t)return}this.step="ticket"}}},Cie={class:"fs_create_ticket_form fs_global_form_builder"},Eie={class:"fs_ticket_header"},kie={class:"fs_ticket_header_text"},Tie={class:"fs_ticket_title"},Aie={class:"fs_ticket_subtitle"},Rie={class:"fs_dialog_body"},Iie={key:0,class:"fs_step_content"},Die={key:0,class:"fs_customer_selector"},Oie={class:"fs_contact_results"},Mie=["onClick"],Nie={class:"fs_create_contact_link"},Lie={class:"fs_checkbox_text"},Pie={class:"fs_link_text"},Fie={key:0,class:"fs_tk_create_customer"},Bie={key:1,class:"fs_step_content fs_step_content_ticket_form"},$ie={class:"fs_contact_details_card"},Vie={class:"fs_card_label"},Uie={class:"fs_contact_info"},Hie={class:"fs_contact_info_item"},zie={class:"fs_info_label"},Yie={class:"fs_contact_info_item"},Gie={class:"fs_info_label"},Wie={class:"fs_dialog_footer"},jie={class:"fs_progress_indicator"},qie={class:"fs_progress_bar"},Kie={class:"fs_progress_text"},Xie={class:"fs_dialog_actions"};const Zie=lH(wie,[["render",function(e,t,i,a,n,s){const o=Jl("Close"),r=KS,l=Sk,c=cE,d=oC,u=AR,p=hI,h=pI,f=wA,g=SA,m=Jl("error"),_=Jl("wp-editor"),v=Jl("attachment-form"),b=Jl("custom-field-form"),y=sC,x=WB;return zd(),qd("div",Cie,[tu("div",Eie,[tu("div",kie,[tu("h3",Tie,me(e.$t("Create a Ticket")),1),tu("p",Aie,me(e.$t("Enter your query to create a support request.")),1)]),tu("button",{class:"el-dialog__headerbtn",onClick:t[0]||(t[0]=t=>e.$emit("close")),type:"button"},[iu(r,{class:"el-dialog__close"},{default:vr(()=>[iu(o)],void 0),_:1})])]),tu("div",Rie,[iu(y,{data:n.ticket,"label-position":"top"},{default:vr(()=>["search"==n.step?(zd(),qd("div",Iie,[iu(d,{label:e.$t("Search Existing contact or provide email address")},{default:vr(()=>[iu(c,{onKeypress:t[2]||(t[2]=Ih(Ah(e=>s.searchCustomers(),["prevent"]),["enter","native"])),modelValue:n.search_customer,"onUpdate:modelValue":t[3]||(t[3]=e=>n.search_customer=e),placeholder:e.$t("Search or provide email address")},{suffix:vr(()=>[iu(l,{onClick:t[1]||(t[1]=e=>s.searchCustomers()),disabled:!n.search_customer||n.searching,loading:n.searching,link:"",type:"primary",size:"small"},{default:vr(()=>[su(me(e.$t("Search")),1)],void 0),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),n.searching||n.search_results&&n.search_results.data&&n.search_results.data.length&&"yes"!=n.ticket.create_customer?br((zd(),qd("div",Die,[tu("h3",null,me(e.$t("Please Select a contact"))+" ["+me(n.search_results.provider)+"]",1),tu("ul",Oie,[(zd(!0),qd(Fd,null,sc(n.search_results.data,e=>(zd(),qd("li",{key:e.id,onClick:t=>s.customerSelected(e,n.search_results.provider)},me(e.email)+" - "+me(e.first_name)+" "+me(e.last_name),9,Mie))),128))])])),[[x,n.searching]]):ru("",!0),n.searched?(zd(),qd(Fd,{key:1},[tu("div",Nie,[iu(u,{"true-value":"yes","false-value":"no",modelValue:n.ticket.create_customer,"onUpdate:modelValue":t[4]||(t[4]=e=>n.ticket.create_customer=e)},{default:vr(()=>[tu("span",Lie,[su(me(e.$t("Could not find a contact?"))+" ",1),tu("span",Pie,me(e.$t("Create a new one.")),1)])],void 0),_:1},8,["modelValue"])]),"yes"==n.ticket.create_customer?(zd(),qd("div",Fie,[iu(h,{gutter:20},{default:vr(()=>[iu(p,{md:12,xs:24},{default:vr(()=>[iu(d,{label:e.$t("First Name")},{default:vr(()=>[iu(c,{placeholder:e.$t("First name"),type:"text",modelValue:n.new_customer.first_name,"onUpdate:modelValue":t[5]||(t[5]=e=>n.new_customer.first_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(p,{md:12,xs:24},{default:vr(()=>[iu(d,{label:e.$t("Last Name")},{default:vr(()=>[iu(c,{placeholder:e.$t("Last name"),type:"text",modelValue:n.new_customer.last_name,"onUpdate:modelValue":t[6]||(t[6]=e=>n.new_customer.last_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),iu(d,{label:e.$t("Email"),error:n.validation_errors.email},{default:vr(()=>[iu(c,{placeholder:e.$t("Email"),type:"email",modelValue:n.new_customer.email,"onUpdate:modelValue":t[7]||(t[7]=e=>n.new_customer.email=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label","error"]),"yes"==n.ticket.create_wp_user?(zd(),Kd(h,{key:0,gutter:20},{default:vr(()=>[iu(p,{md:12,xs:24},{default:vr(()=>[iu(d,{label:e.$t("Username"),error:n.validation_errors.username},{default:vr(()=>[iu(c,{placeholder:e.$t("Username"),type:"text",modelValue:n.new_customer.username,"onUpdate:modelValue":t[8]||(t[8]=e=>n.new_customer.username=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label","error"])],void 0),_:1}),iu(p,{md:12,xs:24},{default:vr(()=>[iu(d,{label:e.$t("Password"),error:n.validation_errors.password},{default:vr(()=>[iu(c,{placeholder:e.$t("Password (Leave blank for auto generated)"),type:"password","show-password":"",modelValue:n.new_customer.password,"onUpdate:modelValue":t[9]||(t[9]=e=>n.new_customer.password=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label","error"])],void 0),_:1})],void 0),_:1})):ru("",!0),iu(d,null,{default:vr(()=>[iu(u,{"true-value":"yes","false-value":"no",modelValue:n.ticket.create_wp_user,"onUpdate:modelValue":t[10]||(t[10]=e=>n.ticket.create_wp_user=e)},{default:vr(()=>[su(me(e.$t("Create New User in WordPress")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})])):ru("",!0)],64)):ru("",!0)])):"ticket"==n.step?(zd(),qd("div",Bie,[tu("div",$ie,[tu("h4",Vie,me(e.$t("Contact Details")),1),tu("div",Uie,[tu("p",Hie,[tu("span",zie,me(e.$t("Name:")),1),su(" "+me(n.new_customer.first_name)+" "+me(n.new_customer.last_name),1)]),tu("p",Yie,[tu("span",Gie,me(e.$t("Customer Email:")),1),su(" "+me(n.new_customer.email),1)])])]),n.mailboxes&&n.mailboxes.length>1?(zd(),Kd(d,{key:0,label:e.$t("Select Business Inbox")},{default:vr(()=>[iu(g,{modelValue:n.ticket.mailbox_id,"onUpdate:modelValue":t[11]||(t[11]=e=>n.ticket.mailbox_id=e),placeholder:e.$t("Select Business Inbox"),clearable:"",filterable:"","popper-class":"fs_select_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.mailboxes,e=>(zd(),Kd(f,{key:e.id,value:e.id,label:e.name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),iu(m,{error:n.errors.get("mailbox_id")},null,8,["error"])],void 0),_:1},8,["label"])):ru("",!0),iu(d,{label:e.$t("Subject")},{default:vr(()=>[iu(c,{placeholder:e.$t("What's this support ticket about?"),type:"text",modelValue:n.ticket.title,"onUpdate:modelValue":t[12]||(t[12]=e=>n.ticket.title=e)},null,8,["placeholder","modelValue"]),iu(m,{error:n.errors.get("title")},null,8,["error"])],void 0),_:1},8,["label"]),iu(d,{label:e.$t("Ticket Details"),class:"fs_reply_editor"},{default:vr(()=>[n.editor_ready?(zd(),Kd(_,{key:0,height:150,autofocus:!0,"media-buttons":!1,is_direct_paste:!0,modelValue:n.ticket.content,"onUpdate:modelValue":t[13]||(t[13]=e=>n.ticket.content=e),"show-saved-replies":!0},null,8,["modelValue"])):ru("",!0),iu(m,{error:n.errors.get("content")},null,8,["error"])],void 0),_:1},8,["label"]),iu(v,{ticket:n.ticket,attachments:n.attachments,errors:n.errors,onUploadStateChange:s.updateAttachmentUploadState},null,8,["ticket","attachments","errors","onUploadStateChange"]),iu(h,{gutter:20},{default:vr(()=>[n.products&&n.products.length?(zd(),Kd(p,{key:0,md:12,xs:24},{default:vr(()=>[iu(d,{label:e.$t("Related Product/Service")},{default:vr(()=>[iu(g,{modelValue:n.ticket.product_id,"onUpdate:modelValue":t[14]||(t[14]=e=>n.ticket.product_id=e),placeholder:e.$t("Select related Product/Service"),clearable:"",filterable:"","popper-class":"fs_select_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.products,e=>(zd(),Kd(f,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),iu(m,{error:n.errors.get("product_id")},null,8,["error"])],void 0),_:1},8,["label"])],void 0),_:1})):ru("",!0),iu(p,{md:12,xs:24},{default:vr(()=>[iu(d,{label:e.$t("Priority (Customer)")},{default:vr(()=>[iu(g,{modelValue:n.ticket.client_priority,"onUpdate:modelValue":t[15]||(t[15]=e=>n.ticket.client_priority=e),placeholder:e.$t("Normal"),clearable:"",filterable:"","popper-class":"fs_select_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.priorities,(e,t)=>(zd(),Kd(f,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),iu(m,{error:n.errors.get("client_priority")},null,8,["error"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),n.has_pro?(zd(),Kd(b,{key:1,custom_data:n.ticket.custom_fields,ticket:n.ticket,type:"create_ticket"},null,8,["custom_data","ticket"])):ru("",!0),iu(d,null,{default:vr(()=>[iu(u,{"true-value":"yes","false-value":"no",modelValue:n.ticket.agent_initiated,"onUpdate:modelValue":t[16]||(t[16]=e=>n.ticket.agent_initiated=e)},{default:vr(()=>[su(me(e.$t("Initiated by agent")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})])):ru("",!0)],void 0),_:1},8,["data"])]),tu("div",Wie,[tu("div",jie,[tu("div",qie,[tu("div",{class:"fs_progress_fill",style:ee({width:"search"===n.step?"50%":"100%"})},null,4)]),tu("p",Kie,me("search"===n.step?e.$t("Step 1 of 2"):e.$t("Step 2 of 2")),1)]),tu("div",Xie,["search"===n.step?(zd(),Kd(l,{key:0,onClick:t[17]||(t[17]=t=>e.$emit("close")),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1})):ru("",!0),"ticket"===n.step?(zd(),Kd(l,{key:1,onClick:t[18]||(t[18]=e=>n.step="search"),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Back")),1)],void 0),_:1})):ru("",!0),"search"===n.step?(zd(),Kd(l,{key:2,onClick:t[19]||(t[19]=e=>s.goToTicketStep()),disabled:!s.canProceedToTicket,class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Next")),1)],void 0),_:1},8,["disabled"])):ru("",!0),"ticket"===n.step?br((zd(),Kd(l,{key:3,onClick:t[20]||(t[20]=e=>s.create()),disabled:n.creating||n.attachmentUploadState.uploading,class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Create Ticket")),1)],void 0),_:1},8,["disabled"])),[[x,n.creating]]):ru("",!0)])])])}]]),Qie={class:"fs_label_search_drawer"},Jie={class:"fs_label_search_drawer_header"},eae={class:"fs_label_search_drawer_header_head"},tae={class:"fs_label_search_title"},iae={class:"fs_label_search_close_btn"},aae={class:"fs-table-items"},nae=["onClick"],sae={class:"fs-search-name"},oae={class:"fs-search-actions"},rae={key:1},lae={class:"fs-table-no-data"};const cae=lH({name:"LabelSearchDrawer",props:{labelSearchList:{type:Array,required:!0,default:()=>[]},filtersValue:{type:Array,required:!0,default:()=>[]}},data:()=>({selectedItem:null,userSelected:!1}),watch:{filtersValue:{handler(e){this.userSelected||(this.selectedItem=null),this.userSelected=!1},deep:!0}},methods:{closeModal(){this.$emit("close",!1)},selectItem(e){this.selectedItem=e,this.userSelected=!0;const t=this.labelSearchList[e];this.handleSavedSearch(t)},handleSavedSearch(e){this.$emit("getSavedSearch",e)},handleLabelSearchEdit(e){this.$emit("setLabelSearchItem",e)},handleLabelSearchDelete(e){this.$emit("delete",e),this.selectedItem=null}}},[["render",function(e,t,i,a,n,s){const o=Sk,r=vL;return zd(),qd("div",Qie,[tu("div",Jie,[tu("div",eae,[tu("div",tae,me(e.$t("Saved Filters")),1),tu("div",iae,[tu("div",{class:"icon",onClick:t[0]||(t[0]=(...e)=>s.closeModal&&s.closeModal(...e))},[...t[2]||(t[2]=[tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[tu("path",{d:"M8 8L16 16M16 8L8 16",stroke:"#1B2533","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])])])]),tu("div",aae,[i.labelSearchList.length?(zd(!0),qd(Fd,{key:0},sc(i.labelSearchList,(i,a)=>(zd(),qd("div",{class:se(["fs-each-search",{selected:n.selectedItem===a}]),key:a,onClick:e=>s.selectItem(a)},[tu("div",sae,me(i.label_search_name),1),tu("div",oae,[iu(o,{icon:"EditPen",onClick:Ah(e=>s.handleLabelSearchEdit(i),["stop"])},null,8,["onClick"]),iu(r,{title:e.$t("Are you sure to delete this?"),onConfirm:e=>s.handleLabelSearchDelete(i.id)},{reference:vr(()=>[iu(o,{icon:"Delete",onClick:t[1]||(t[1]=Ah(()=>{},["stop"]))})]),_:1},8,["title","onConfirm"])])],10,nae))),128)):i.labelSearchList.length?ru("",!0):(zd(),qd("div",rae,[tu("p",lae,me(e.$t("No Data Found")),1)]))])])}]]),dae={key:0,class:"fs_workflow_pop"},uae={class:"fs_workflow_trigger"},pae={class:"fs_workflows_list"},hae=["onClick"],fae={key:0,class:"fs_workflow_desc"},gae={class:"fs_workflow_items"},mae={key:0},_ae={class:"fs_dialog_footer"};const vae=lH({name:"WorkflowRunner",props:["ticket_ids"],data(){return{workflows:this.appVars.manual_workflows,selected_workflow:!1,visible:!1,modalVisible:!1,workflow_actions:[],fetchingActions:!1,applying:!1}},methods:{showWorkflowModal(e){this.selected_workflow=e,this.fetchActions(),this.visible=!1,this.modalVisible=!0},fetchActions(){this.workflow_actions=[],this.fetchingActions=!0,this.$get("workflows/"+this.selected_workflow.id+"/actions").then(e=>{this.workflow_actions=e.actions}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetchingActions=!1})},runWorkFow(){this.applying=!0,this.$post("workflows/"+this.selected_workflow.id+"/run",{ticket_ids:this.ticket_ids}).then(e=>{this.$notify({message:e.message,position:"bottom-right",type:"success"}),this.modalVisible=!1,this.workflow_actions.some(e=>"fs_delete_ticket"===e.action_name)?this.$router.push({name:"tickets"}):this.$emit("reloadTickets")}).catch(e=>{this.$handleError(e)}).always(()=>{this.applying=!1})}}},[["render",function(e,t,i,a,n,s){const o=P$,r=Sk,l=dM,c=WB;return n.workflows&&n.workflows.length?(zd(),qd("span",dae,[iu(o,{placement:"bottom",width:400,trigger:"click"},{reference:vr(()=>[tu("span",uae,[rc(e.$slots,"default")])]),default:vr(()=>[tu("ul",pae,[(zd(!0),qd(Fd,null,sc(n.workflows,e=>(zd(),qd("li",{onClick:t=>s.showWorkflowModal(e),key:e.id},me(e.title),9,hae))),128))])],void 0),_:3}),iu(l,{modelValue:n.modalVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>n.modalVisible=e),"append-to-body":!0,title:e.$t("Review your Workflow"),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",_ae,[br((zd(),Kd(r,{disabled:n.applying||n.fetchingActions,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.runWorkFow())},{default:vr(()=>[su(me(e.$t("Run Workflow")),1)],void 0),_:1},8,["disabled"])),[[c,n.applying]])])]),default:vr(()=>[n.modalVisible?br((zd(),qd("div",fae,[tu("h3",null,[su(me(e.$t("Running the"))+" ",1),tu("b",null,me(n.selected_workflow.title),1),su(" "+me(e.$t("workflow will perform the following actions:")),1)]),tu("ul",gae,[(zd(!0),qd(Fd,null,sc(n.workflow_actions,(t,i)=>(zd(),qd("li",{key:t.id},[0!=i?(zd(),qd("span",mae,me(e.$t("and")),1)):ru("",!0),su(" "+me(t.title||t.action_name),1)]))),128))])])),[[c,n.fetchingActions]]):ru("",!0)],void 0),_:1},8,["modelValue","title"])])):ru("",!0)}]]),bae={key:0,class:"fs_row"},yae={class:"fs_row fs_attachment_section"},xae={class:"fs_full"},Sae={class:"fs_draft_response_actions fs_row fs_actions_row"},wae={class:"fs_half fs_left_section"},Cae={key:0,class:"fs_informational_reply_container"},Eae={key:1,class:"fs_note_warning"},kae={class:"fs_half fs_right_section"},Tae={class:"fs_response_actions fs_button_group"},Aae=["src"],Rae={key:0},Iae={key:1},Dae={key:2};const Oae=lH({name:"CreateResponse",props:["ticket","type","draft","openAIIntegration","is_agent","fluentBotIntegration"],components:{WpEditor:Qee,AttachmentForm:Sie},emits:["discardDraft","created","toggleFluentBot"],data:()=>({informational_reply:!1,response_body:"",show_cc_option:!1,selected_cc:[],cc_emails:[],creating:!1,close_ticket:"no",attachments:[],editor_ready:!0,shortcodes:{"{{customer.first_name}}":"Customer First Name","{{customer.last_name}}":"Customer Last Name","{{customer.full_name}}":"Customer Full Name","{{customer.email}}":"Customer Email","{{agent.first_name}}":"Agent First Name","{{agent.last_name}}":"Agent Last Name","{{agent.full_name}}":"Agent Full Name","{{agent.email}}":"Agent Email"},draftID:"",loading:!1,saveResponseDraftTimer:null,isCreatingResponse:!1,attachmentUploadState:{uploading:!1,count:0}}),watch:{response_body(){"yes"!==this.appVars.enable_draft_mode||Array.isArray(this.ticket)||(""===this.response_body&&this.draftID&&this.removeDraft(),"response"!==this.type&&"draft_response"!==this.type||this.saveResponseDraft())},selected_cc(){"yes"!==this.appVars.enable_draft_mode||Array.isArray(this.ticket)||(""===this.response_body&&this.draftID&&this.removeDraft(),"response"!==this.type&&"draft_response"!==this.type||this.saveResponseDraft())},type(e){"note"===e&&(this.show_cc_option=!1,this.selected_cc=[])}},methods:{saveResponseDraft(){this.saveResponseDraftTimer&&clearTimeout(this.saveResponseDraftTimer),this.saveResponseDraftTimer=setTimeout(()=>{const e={content:this.response_body,draftID:this.draftID,selected_cc:this.selected_cc,conversation_type:this.type};if(""!==this.response_body&&!1===this.isCreatingResponse){let t=`tickets/${this.ticket.id}/draft`;this.$post(t,e).then(e=>{this.draftID=e.draftID}).catch(e=>{this.$handleError(e)})}},5e3)},removeDraft(){this.$emit("discardDraft",this.draftID),this.draftID=""},toggleCcOption(e){"show"===e?this.show_cc_option=!0:(this.selected_cc=[],this.show_cc_option=!1)},updateAttachmentUploadState(e){this.attachmentUploadState=e},notifyAttachmentUploadPending(){const e=this.attachmentUploadState.count>1?this.$t("Please wait for all attachments to finish uploading before submitting the reply."):this.$t("Please wait for the attachment to finish uploading before submitting the reply.");this.$notify({message:e,type:"warning",position:"bottom-right",offset:50})},create(e="no"){if(this.attachmentUploadState.uploading)return void this.notifyAttachmentUploadPending();this.isCreatingResponse=!0;const t={content:this.response_body,conversation_type:this.type,close_ticket:e,attachments:this.attachments,cc_emails:this.selected_cc,informational_reply:this.informational_reply};let i=`tickets/${this.ticket.id}/responses`;Array.isArray(this.ticket)&&(t.ticket_ids=this.ticket,t.bulk_action="reply_tickets",i="tickets/bulk-reply"),this.creating=!0,this.$post(i,t).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right",offset:50}),this.isCreatingResponse=!1,this.draftID&&this.removeDraft(),this.response_body="",this.selected_cc=[],this.$emit("created",e.response,e),this.attachments=[]}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1})},handleCcChange(e){e.length||(this.selected_cc=[],this.show_cc_option=!1)}},mounted(){var e,t;if("yes"!==this.appVars.enable_draft_mode||Array.isArray(this.ticket)||this.draft&&(this.response_body=this.draft.value.content,this.draftID=this.draft.id,this.selected_cc=this.draft.value.selected_cc),Array.isArray(this.ticket))this.selected_cc=[];else if(0===this.ticket.responses.length)this.ticket.carbon_copy&&""!==this.ticket.carbon_copy&&(this.selected_cc=(null==(e=this.ticket.carbon_copy)?void 0:e.split(","))||[]);else{let e=this.ticket.responses[0];e.cc_info&&0===(null==(t=this.selected_cc)?void 0:t.length)&&(this.selected_cc=e.cc_info)}},beforeUnmount(){this.saveResponseDraftTimer&&clearTimeout(this.saveResponseDraftTimer)}},[["render",function(e,t,i,a,n,s){var o,r,l;const c=wA,d=SA,u=oC,p=Jl("wp-editor"),h=Jl("attachment-form"),f=AR,g=ZC,m=Sk,_=WB;return zd(),qd("div",{class:se(["fs_create_response","fs_reply_type_"+i.type])},["email"===i.ticket.source?(zd(),qd("div",bae,[(null==(o=n.selected_cc)?void 0:o.length)||n.show_cc_option?(zd(),Kd(u,{key:0,label:e.$t("Cc")},{default:vr(()=>[iu(d,{modelValue:n.selected_cc,"onUpdate:modelValue":t[0]||(t[0]=e=>n.selected_cc=e),multiple:"",filterable:"",remote:"",placeholder:e.$t("Please enter email"),"allow-create":"",class:"fs_select_field fs_cc_selector","default-first-option":"","reserve-keyword":!1,onChange:s.handleCcChange,loading:n.loading,style:{"padding-left":"10px"}},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.cc_emails,e=>(zd(),Kd(c,{key:e,label:e,value:e},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange","loading"])],void 0),_:1},8,["label"])):ru("",!0)])):ru("",!0),n.editor_ready?(zd(),Kd(p,{key:1,autofocus:!0,modelValue:n.response_body,"onUpdate:modelValue":t[1]||(t[1]=e=>n.response_body=e),height:170,ticketId:i.ticket.id,productID:i.ticket.product_id,is_agent:i.is_agent,is_direct_paste:!0,editor_shortcodes:n.shortcodes,openAIIntegration:i.openAIIntegration,fluentBotIntegration:i.fluentBotIntegration,"show-fluent-booking":"response"===i.type&&!!(null==(r=e.appVars.fluent_booking)?void 0:r.active),"show-saved-replies":!0,"show-cc-toggle-button":"email"===i.ticket.source&&"note"!==i.type,add_cc:(null==(l=n.selected_cc)?void 0:l.length)>0||n.show_cc_option,onToggleCcOption:s.toggleCcOption,onToggleFluentBot:t[2]||(t[2]=t=>e.$emit("toggleFluentBot"))},null,8,["modelValue","ticketId","productID","is_agent","editor_shortcodes","openAIIntegration","fluentBotIntegration","show-fluent-booking","show-cc-toggle-button","add_cc","onToggleCcOption"])):ru("",!0),tu("div",yae,[tu("div",xae,[e.appVars.has_file_upload?(zd(),Kd(h,{key:0,is_agent:"yes",ticket:i.ticket,attachments:n.attachments,onUploadStateChange:s.updateAttachmentUploadState},null,8,["ticket","attachments","onUploadStateChange"])):ru("",!0)])]),tu("div",Sae,[tu("div",wae,["response"===i.type?(zd(),qd("div",Cae,[iu(g,{effect:"dark",content:e.$t("informational_reply_info"),placement:"bottom","popper-class":"fs_tooltip"},{default:vr(()=>[iu(f,{modelValue:n.informational_reply,"onUpdate:modelValue":t[3]||(t[3]=e=>n.informational_reply=e),class:"fs_informational_reply"},{default:vr(()=>[su(me(e.$t("Send as Informational Reply")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["content"])])):ru("",!0),"note"==i.type?(zd(),qd("p",Eae,me(e.$t("You are adding internal Note. Only support staff can see this note.")),1)):ru("",!0)]),tu("div",kae,[tu("div",Tae,["note"!=i.type&&"draft_response"!==i.type?(zd(),Kd(m,{key:0,disabled:n.creating||n.attachmentUploadState.uploading,onClick:t[4]||(t[4]=e=>s.create("yes")),size:"large",class:"fs_reply_close_btn"},{default:vr(()=>[su(me(e.$t("Reply and Close Ticket")),1)],void 0),_:1},8,["disabled"])):ru("",!0),br((zd(),Kd(m,{class:"fs_reply_btn fs_filled_btn",disabled:n.creating||n.attachmentUploadState.uploading,onClick:t[5]||(t[5]=e=>s.create("no"))},{default:vr(()=>[tu("img",{class:"fs_header_icon",src:e.appVars.asset_url+"images/replyIconWhite.svg",alt:""},null,8,Aae),"draft_response"===i.type?(zd(),qd("span",Rae,me(e.$t("Add Draft Reply")),1)):"note"===i.type?(zd(),qd("span",Iae,me(e.$t("Add Internal Note")),1)):(zd(),qd("span",Dae,me(e.$t("Reply")),1))],void 0),_:1},8,["disabled"])),[[_,n.creating]])])])])],2)}]]);function Mae(e,t,i="Other"){const a=[],n=new Set;for(const o of t){const t=(o.agent_ids||[]).map(Number),i=e.filter(e=>t.includes(Number(e.id)));i.length&&(a.push({label:o.title,agents:i}),i.forEach(e=>n.add(Number(e.id))))}const s=e.filter(e=>!n.has(Number(e.id)));return s.length&&a.push({label:i,agents:s}),a}const Nae={name:"TicketBulkActions",components:{WorkFlowSelector:vae,CreateResponse:Oae,IconPack:dY},computed:{...eq(sq,["ticket_selections"]),canAssignAgents(){var e;const t=(null==(e=this.appVars.me)?void 0:e.permissions)||[];return t.includes("fst_assign_agents")&&(t.includes("fst_manage_own_tickets")||t.includes("fst_manage_unassigned_tickets")||t.includes("fst_manage_other_tickets"))},agentGroups(){return this.appVars.agent_groups||[]},groupedAgentOptions(){return Mae(this.appVars.support_agents||[],this.agentGroups,this.$t("Other"))}},data:()=>({agent_id:"",agent_group_id:"",tag_ids:[],workflow_id:"",add_response_modal:!1,working:!1,assignAgentPop:!1,assignGroupPop:!1,addTagPop:!1}),methods:{fetchTickets(){this.agent_id="",this.agent_group_id="",this.tag_ids=[],this.workflow_id="",this.addTagPop=!1,this.assignAgentPop=!1,this.assignGroupPop=!1,this.add_response_modal=!1,this.$emit("fetchTickets")},doBulkActions(e){this.working=!0,e.ticket_ids=this.ticket_selections,this.$post("tickets/bulk-actions",e).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchTickets()}).catch(e=>{this.$handleError(e)}).always(()=>{this.working=!1})},assignAgent(){if(!this.agent_id)return this.$notify({type:"error",message:this.$t("Please select an agent first"),position:"bottom-right"}),!1;this.doBulkActions({bulk_action:"assign_agent",agent_id:this.agent_id})},assignAgentGroup(){if(!this.agent_group_id)return this.$notify({type:"error",message:this.$t("Please select an agent group first"),position:"bottom-right"}),!1;this.doBulkActions({bulk_action:"assign_agent_group",agent_group_id:this.agent_group_id})},assignTags(){if(!this.tag_ids.length)return this.$notify({type:"error",message:this.$t("Please select tag first"),position:"bottom-right"}),!1;this.doBulkActions({bulk_action:"assign_tags",tag_ids:this.tag_ids})},closeTickets(){this.doBulkActions({bulk_action:"close_tickets"})},deleteTickets(){this.doBulkActions({bulk_action:"delete_tickets"})},togglePop(e){e&&this[e]?this[e]=!1:(this.assignAgentPop=!1,this.assignGroupPop=!1,this.addTagPop=!1,e&&(this[e]=!0))}}},Lae={class:"fs_bulk_actions_wrap"},Pae={key:0,class:"fs_bulk_actions_bar"},Fae={class:"fs_extended_pop"},Bae={class:"fs_popover_action_btn"},$ae={class:"fs_extended_pop"},Vae={class:"fs_popover_action_btn"},Uae={class:"fs_bulk_action_item"},Hae={class:"fs_extended_pop"},zae={class:"fs_popover_action_btn"},Yae={class:"fs_bulk_action_item"},Gae={style:{margin:"0 0 1em 0"}},Wae={class:"fs_bulk_action_item"},jae={style:{margin:"0 0 1em 0"}},qae={class:"fs_bulk_action_create_response"};const Kae=lH(Nae,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=wA,l=CA,c=SA,d=Sk,u=P$,p=Jl("work-flow-selector"),h=Jl("create-response"),f=dM,g=WB;return br((zd(),qd("div",Lae,[e.ticket_selections.length?(zd(),qd("div",Pae,[tu("div",{class:"fs_bulk_action_item",onClick:t[0]||(t[0]=e=>n.add_response_modal=!0)},[iu(o,{"icon-key":"reply"}),tu("span",null,me(e.$t("Reply")),1)]),s.canAssignAgents?(zd(),Kd(u,{key:0,placement:"bottom",width:400,trigger:"manual",class:"fs_popover",visible:n.assignAgentPop},{reference:vr(()=>[tu("div",{class:se(["fs_bulk_action_item",{fs_pop_active:n.assignAgentPop}]),onClick:t[1]||(t[1]=e=>s.togglePop("assignAgentPop"))},[iu(o,{"icon-key":"agent"}),tu("span",null,me(e.$t("Agent")),1)],2)]),default:vr(()=>[tu("div",Fae,[iu(c,{class:"fs_select_field","popper-class":"fs_agent_group_popper",filterable:"",modelValue:n.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.agent_id=e)},{default:vr(()=>[s.agentGroups.length?(zd(!0),qd(Fd,{key:0},sc(s.groupedAgentOptions,e=>(zd(),Kd(l,{key:e.label,label:e.label},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.agents,e=>(zd(),Kd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:2},1032,["label"]))),128)):(zd(!0),qd(Fd,{key:1},sc(e.appVars.support_agents,e=>(zd(),Kd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),tu("div",Bae,[iu(d,{class:"fs_filled_btn",onClick:t[3]||(t[3]=e=>s.assignAgent()),style:{"margin-top":"10px"},disabled:!n.agent_id,size:"small",type:"danger"},{default:vr(()=>[su(me(e.$t("Assign Agent")),1)],void 0),_:1},8,["disabled"]),iu(d,{class:"fs_outline_btn",onClick:t[4]||(t[4]=e=>n.assignAgentPop=!1),size:"small",type:"default",style:{"margin-top":"10px"}},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1})])])],void 0),_:1},8,["visible"])):ru("",!0),s.canAssignAgents?(zd(),Kd(u,{key:1,placement:"bottom",width:400,trigger:"manual",class:"fs_popover",visible:n.assignGroupPop},{reference:vr(()=>[tu("div",{class:se(["fs_bulk_action_item",{fs_pop_active:n.assignGroupPop}]),onClick:t[5]||(t[5]=e=>s.togglePop("assignGroupPop"))},[iu(o,{"icon-key":"agentGroupIcon"}),tu("span",null,me(e.$t("Group")),1)],2)]),default:vr(()=>[tu("div",$ae,[iu(c,{class:"fs_select_field",filterable:"",modelValue:n.agent_group_id,"onUpdate:modelValue":t[6]||(t[6]=e=>n.agent_group_id=e),placeholder:e.$t("Select Agent Group")},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.appVars.agent_groups,e=>(zd(),Kd(r,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),tu("div",Vae,[iu(d,{class:"fs_filled_btn",onClick:t[7]||(t[7]=e=>s.assignAgentGroup()),style:{"margin-top":"10px"},disabled:!n.agent_group_id,size:"small",type:"danger"},{default:vr(()=>[su(me(e.$t("Assign via Group")),1)],void 0),_:1},8,["disabled"]),iu(d,{class:"fs_outline_btn",onClick:t[8]||(t[8]=e=>n.assignGroupPop=!1),size:"small",type:"default",style:{"margin-top":"10px"}},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1})])])],void 0),_:1},8,["visible"])):ru("",!0),iu(p,{onReloadTickets:t[9]||(t[9]=e=>s.fetchTickets()),ticket_ids:e.ticket_selections},{default:vr(()=>[tu("div",Uae,[iu(o,{"icon-key":"workflow"}),tu("span",null,me(e.$t("Workflow")),1)])],void 0),_:1},8,["ticket_ids"]),iu(u,{placement:"bottom",width:400,trigger:"manual",class:"fs_popover",visible:n.addTagPop},{reference:vr(()=>[tu("div",{class:se(["fs_bulk_action_item",{fs_pop_active:n.addTagPop}]),onClick:t[10]||(t[10]=e=>s.togglePop("addTagPop"))},[iu(o,{"icon-key":"tags"}),tu("span",null,me(e.$t("Tags")),1)],2)]),default:vr(()=>[tu("div",Hae,[iu(c,{class:"fs_select_field",multiple:!0,filterable:"",modelValue:n.tag_ids,"onUpdate:modelValue":t[11]||(t[11]=e=>n.tag_ids=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.appVars.ticket_tags,e=>(zd(),Kd(r,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),tu("div",zae,[iu(d,{class:"fs_filled_btn",style:{"margin-top":"10px"},size:"small",type:"success",onClick:t[12]||(t[12]=e=>s.assignTags())},{default:vr(()=>[su(me(e.$t("Apply Tags")),1)],void 0),_:1}),iu(d,{class:"fs_outline_btn",style:{"margin-top":"10px"},onClick:t[13]||(t[13]=e=>n.addTagPop=!1),size:"small",type:"default"},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1})])])],void 0),_:1},8,["visible"]),iu(u,{placement:"bottom",width:400,trigger:"click"},{reference:vr(()=>[tu("div",Yae,[iu(o,{"icon-key":"closeTicket"}),tu("span",null,me(e.$t("Close")),1)])]),default:vr(()=>[tu("p",Gae,me(e.$t("close_selected_ticket_warning")),1),iu(d,{class:"fs_filled_btn",style:{"margin-top":"0"},size:"small",type:"success",onClick:t[14]||(t[14]=e=>s.closeTickets())},{default:vr(()=>[su(me(e.$t("Close Selected Tickets")),1)],void 0),_:1})],void 0),_:1}),iu(u,{placement:"bottom",width:400,trigger:"click"},{reference:vr(()=>[tu("div",Wae,[iu(o,{"icon-key":"delete"}),tu("span",null,me(e.$t("Delete")),1)])]),default:vr(()=>[tu("p",jae,me(e.$t("delete_selected_ticket_warning")),1),iu(d,{class:"fs_filled_btn",style:{"margin-top":"0"},size:"small",type:"danger",onClick:t[15]||(t[15]=e=>s.deleteTickets())},{default:vr(()=>[su(me(e.$t("Yes, Delete Selected Tickets")),1)],void 0),_:1})],void 0),_:1})])):ru("",!0),iu(f,{title:e.$t("Reply To Selected Tickets"),modelValue:n.add_response_modal,"onUpdate:modelValue":t[17]||(t[17]=e=>n.add_response_modal=e),width:"60%",class:"fs_dialog fs_bulk_action_modal"},{default:vr(()=>[tu("div",qae,[n.add_response_modal?(zd(),Kd(h,{key:0,onCreated:t[16]||(t[16]=e=>s.fetchTickets()),ticket:e.ticket_selections},null,8,["ticket"])):ru("",!0)])],void 0),_:1},8,["title","modelValue"])])),[[g,n.working]])}]]),Xae={class:"fs_options_selector"},Zae=["innerHTML"];const Qae={class:"fs_rich_filter_item"},Jae={class:"fs_action_filter_field"},ene={class:"fs_filter_operator fs_action_filter_field"},tne={class:"fs_filter_value fs_action_filter_value"},ine={key:2};const ane={class:"fs_rich_filters"},nne={class:"fs_rich_filters_wrapper"},sne={key:0,class:"fs_full_width"},one={class:"fs_rich_filters_body"},rne={key:1,class:"fs_filter_intro fs_rich_filter_actions fs_mt-4"},lne={key:2,class:"fs_filter_intro fs_rich_filter_actions"};const cne=lH({name:"RichFilter",components:{RichFilterItem:lH({name:"RichFilterItem",props:["item","filterLabels"],components:{OptionSelector:lH({name:"OptionSelector",props:["value","field","modelValue"],data(){return{options:[],model:this.modelValue,element_ready:!1}},watch:{model(e){this.$emit("update:modelValue",e)}},methods:{setOptions(){const e={ticket_statuses:"object_type",client_priorities:"object_type",admin_priorities:"object_type",ticket_tags:"array_type",support_products:"array_type",support_agents:"object_type",mailboxes:"object_type"},t=this.field.option_key;if(!e[t]||!this.appVars[t])return!1;"object_type"==e[t]?yX(this.appVars[t],"support_agents"==t?e=>{this.options.push({id:e.id,title:e.full_name})}:"mailboxes"==t?e=>{this.options.push({id:e.id,title:e.name})}:(e,t)=>{this.options.push({id:t,title:e})}):this.options=this.appVars[t]}},mounted(){this.setOptions()}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",Xae,[iu(r,{class:"fs_select_field",size:i.field.size,modelValue:n.model,"onUpdate:modelValue":t[0]||(t[0]=e=>n.model=e),multiple:i.field.is_multiple,placeholder:i.field.placeholder,clearable:"",filterable:""},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.options,e=>(zd(),Kd(o,{key:e.id,value:e.id,label:e.title},{default:vr(()=>[tu("span",{innerHTML:e.title},null,8,Zae)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:1},8,["size","modelValue","multiple","placeholder"])])}]])},data:()=>({}),computed:{operatorOptions(){const e=this.itemConfig.type;return e&&"text"!==e?"selections"===e?this.itemConfig.is_singular_value?{in:"includes in",not_in:"not includes in"}:this.itemConfig.is_multiple?{in:"includes in any of",not_in:"not includes in any",in_all:"includes all of",not_in_all:"includes none of"}:"waiting_for_reply"===this.itemConfig.option_key?{"=":"equal","!=":"does not equal"}:{in:"includes in",not_in:"not includes in"}:"dates"===e?{before:"before",after:"after",date_equal:"in the date",days_before:"before days",days_within:"within days",date_range:"within dates"}:{}:"tickets"===this.itemConfig.provider?{contains:"includes",not_contains:"does not includes"}:{"=":"equal","!=":"does not equal",contains:"includes",not_contains:"does not includes"}},itemConfig(){const e=this.item.source.join("-");return this.filterLabels[e]||{}}},methods:{closingSource(e){e||setTimeout(()=>{jQuery(this.$el).find(".fs_filter_operator .el-select").trigger("click")},300)},maybeOperatorSelected(e){!e&&this.item.operator&&("dates"==this.itemConfig.type&&(this.item.value=""),setTimeout(()=>{jQuery(this.$el).find(".fs_filter_value input").focus()},200))},removeItem(){this.$emit("removeItem")}},mounted(){if(this.itemConfig.is_multiple&&!pK(this.item.value)&&(this.item.value=[]),!this.item.operator){const e=Object.keys(this.operatorOptions);e.length&&(this.item.operator=e[0],jQuery(this.$el).find(".fs_filter_operator .el-select").trigger("click"))}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=cE,c=Jl("option-selector"),d=jO;return zd(),qd("tr",Qae,[tu("td",Jae,[su(me(e.ucFirst(s.itemConfig.provider))+" ",1),t[8]||(t[8]=tu("span",{class:"fs_provider_separator"},"/",-1)),su(" "+me(s.itemConfig.label),1)]),tu("td",ene,[iu(r,{class:"fs_select_field",placeholder:e.$t("Select Operator"),onVisibleChange:s.maybeOperatorSelected,modelValue:i.item.operator,"onUpdate:modelValue":t[0]||(t[0]=e=>i.item.operator=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.operatorOptions,(e,t)=>(zd(),Kd(o,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","onVisibleChange","modelValue"])]),tu("td",tne,[s.itemConfig.type&&"text"!==s.itemConfig.type?ru("",!0):(zd(),Kd(l,{key:0,class:"fs_text_input",placeholder:e.$t("Condition Value"),type:"text",modelValue:i.item.value,"onUpdate:modelValue":t[1]||(t[1]=e=>i.item.value=e)},null,8,["placeholder","modelValue"])),"selections"===s.itemConfig.type?(zd(),qd(Fd,{key:1},["options_selector"===s.itemConfig.component?(zd(),Kd(c,{key:0,modelValue:i.item.value,"onUpdate:modelValue":t[2]||(t[2]=e=>i.item.value=e),field:{is_multiple:s.itemConfig.is_multiple,size:"mini",option_key:s.itemConfig.option_key}},null,8,["modelValue","field"])):s.itemConfig.options?(zd(),Kd(r,{key:1,class:"fs_select_field",multiple:s.itemConfig.is_multiple,placeholder:e.$t("Select Option"),modelValue:i.item.value,"onUpdate:modelValue":t[3]||(t[3]=e=>i.item.value=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.itemConfig.options,(e,t)=>(zd(),Kd(o,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["multiple","placeholder","modelValue"])):(zd(),qd("pre",ine,me(s.itemConfig),1))],64)):"dates"===s.itemConfig.type?(zd(),qd(Fd,{key:2},["days_before"===i.item.operator||"days_within"===i.item.operator?(zd(),Kd(l,{key:0,class:"fs_text_input",type:"number",placeholder:e.$t("Days"),modelValue:i.item.value,"onUpdate:modelValue":t[4]||(t[4]=e=>i.item.value=e)},null,8,["placeholder","modelValue"])):"date_range"===i.item.operator?(zd(),Kd(d,{key:1,"value-format":"YYYY-MM-DD",modelValue:i.item.value,"onUpdate:modelValue":t[5]||(t[5]=e=>i.item.value=e),type:"daterange","range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0},null,8,["modelValue","range-separator","start-placeholder","end-placeholder"])):(zd(),Kd(d,{key:2,"value-format":"YYYY-MM-DD",modelValue:i.item.value,"onUpdate:modelValue":t[6]||(t[6]=e=>i.item.value=e)},null,8,["modelValue"]))],64)):ru("",!0)]),tu("td",null,[tu("div",{class:"fs_delete_condition_btn",onClick:t[7]||(t[7]=e=>s.removeItem()),type:"danger",plain:""},[...t[9]||(t[9]=[tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M11.25 3H15V4.5H13.5V14.25C13.5 14.4489 13.421 14.6397 13.2803 14.7803C13.1397 14.921 12.9489 15 12.75 15H2.25C2.05109 15 1.86032 14.921 1.71967 14.7803C1.57902 14.6397 1.5 14.4489 1.5 14.25V4.5H0V3H3.75V0.75C3.75 0.551088 3.82902 0.360322 3.96967 0.21967C4.11032 0.0790176 4.30109 0 4.5 0H10.5C10.6989 0 10.8897 0.0790176 11.0303 0.21967C11.171 0.360322 11.25 0.551088 11.25 0.75V3ZM12 4.5H3V13.5H12V4.5ZM5.25 6.75H6.75V11.25H5.25V6.75ZM8.25 6.75H9.75V11.25H8.25V6.75ZM5.25 1.5V3H9.75V1.5H5.25Z",fill:"#525866"})],-1)])])])])}]])},props:["items"],data(){return{addVisible:!1,new_item:[],filterOptions:this.appVars.advanced_filter_options}},computed:{filterLabels(){const e={};return yX(this.filterOptions,t=>{yX(t.children,i=>{e[t.value+"-"+i.value]={provider:t.value,...i}})}),e}},methods:{maybeSelected(){if(2===this.new_item.length){let e="";"customer"===this.new_item[0]&&"agent"!==this.new_item[1]&&(e="contains");let t=this.new_item,i=!1;yX(this.items,e=>{e.source[0]===t[0]&&e.source[1]===t[1]&&(i=!0)}),i?this.$notify({type:"error",message:this.$t("Selected item already selected"),position:"bottom-right"}):this.items.push({source:[...this.new_item],operator:e,value:""}),this.addVisible=!1,this.new_item=[]}},removeItem(e){this.items.splice(e,1),this.items.length||this.$emit("maybeRemove")},deleteSection(){this.items.splice(0,this.items.length),this.$emit("maybeRemove")}}},[["render",function(e,t,i,a,n,s){const o=Jl("rich-filter-item"),r=lI,l=Sk,c=P$;return zd(),qd("div",ane,[tu("div",nne,[i.items.length?(zd(),qd("table",sne,[tu("tbody",one,[(zd(!0),qd(Fd,null,sc(i.items,(e,t)=>(zd(),Kd(o,{onRemoveItem:e=>s.removeItem(t),key:t,filterLabels:s.filterLabels,item:e},null,8,["onRemoveItem","filterLabels","item"]))),128))])])):ru("",!0),0===Object.keys(i.items).length?(zd(),qd("div",rne,[iu(c,{placement:"right",width:"450",visible:n.addVisible,"onUpdate:visible":t[2]||(t[2]=e=>n.addVisible=e),trigger:"manual"},{reference:vr(()=>[iu(l,{class:"fs_add_action_property",onClick:t[1]||(t[1]=e=>n.addVisible=!n.addVisible),size:"small"},{default:vr(()=>[t[9]||(t[9]=tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[tu("path",{d:"M9.25 9.25V4.75H10.75V9.25H15.25V10.75H10.75V15.25H9.25V10.75H4.75V9.25H9.25Z",fill:"#0E121B"})],-1)),su(" "+me(e.$t("Add")),1)],void 0),_:1})]),default:vr(()=>[iu(r,{onChange:s.maybeSelected,style:{width:"100%"},options:n.filterOptions,modelValue:n.new_item,"onUpdate:modelValue":t[0]||(t[0]=e=>n.new_item=e)},null,8,["onChange","options","modelValue"])],void 0),_:1},8,["visible"]),tu("div",{class:"fs_delete_condition_btn",role:"button",tabindex:"0",onClick:t[3]||(t[3]=(...e)=>s.deleteSection&&s.deleteSection(...e)),onKeydown:[t[4]||(t[4]=Ih(Ah((...e)=>s.deleteSection&&s.deleteSection(...e),["prevent"]),["enter"])),t[5]||(t[5]=Ih(Ah((...e)=>s.deleteSection&&s.deleteSection(...e),["prevent"]),["space"]))]},[...t[10]||(t[10]=[tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M11.25 3H15V4.5H13.5V14.25C13.5 14.4489 13.421 14.6397 13.2803 14.7803C13.1397 14.921 12.9489 15 12.75 15H2.25C2.05109 15 1.86032 14.921 1.71967 14.7803C1.57902 14.6397 1.5 14.4489 1.5 14.25V4.5H0V3H3.75V0.75C3.75 0.551088 3.82902 0.360322 3.96967 0.21967C4.11032 0.0790176 4.30109 0 4.5 0H10.5C10.6989 0 10.8897 0.0790176 11.0303 0.21967C11.171 0.360322 11.25 0.551088 11.25 0.75V3ZM12 4.5H3V13.5H12V4.5ZM5.25 6.75H6.75V11.25H5.25V6.75ZM8.25 6.75H9.75V11.25H8.25V6.75ZM5.25 1.5V3H9.75V1.5H5.25Z",fill:"#525866"})],-1)])],32)])):(zd(),qd("div",lne,[iu(c,{placement:"right",width:"450",visible:n.addVisible,"onUpdate:visible":t[8]||(t[8]=e=>n.addVisible=e),trigger:"manual"},{reference:vr(()=>[iu(l,{class:"fs_add_action_property",onClick:t[7]||(t[7]=e=>n.addVisible=!n.addVisible),size:"small"},{default:vr(()=>[t[11]||(t[11]=tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[tu("path",{d:"M9.25 9.25V4.75H10.75V9.25H15.25V10.75H10.75V15.25H9.25V10.75H4.75V9.25H9.25Z",fill:"#0E121B"})],-1)),su(" "+me(e.$t("Add")),1)],void 0),_:1})]),default:vr(()=>[iu(r,{onChange:s.maybeSelected,style:{width:"100%"},options:n.filterOptions,modelValue:n.new_item,"onUpdate:modelValue":t[6]||(t[6]=e=>n.new_item=e)},null,8,["onChange","options","modelValue"])],void 0),_:1},8,["visible"])]))])])}]]),dne={name:"Modal",props:{show:{type:Boolean},title:{type:String,default:()=>""}}},une={key:0,class:"fs-modal-mask"},pne={class:"fs-modal-wrapper"},hne={class:"fs-modal-container"},fne={class:"fs-modal-header"},gne={class:"fs-modal-title"},mne={class:"fs-modal-body"},_ne={class:"fs-modal-footer"};const vne=lH(dne,[["render",function(e,t,i,a,n,s){const o=Sk;return zd(),Kd(np,{name:"fs-modal"},{default:vr(()=>[i.show?(zd(),qd("div",une,[tu("div",pne,[tu("div",hne,[tu("div",fne,[rc(e.$slots,"header",{},()=>[tu("h3",gne,me(i.title),1),iu(o,{style:{color:"red",border:"none","font-size":"20px"},icon:"Close",onClick:t[0]||(t[0]=t=>e.$emit("close"))})])]),tu("div",mne,[rc(e.$slots,"body")]),tu("div",_ne,[rc(e.$slots,"footer")])])])])):ru("",!0)],void 0),_:3})}]]),bne={name:"TicketFilters",components:{IconPack:dY},props:{disabled:{type:Boolean,default:!1}},emits:["apply-filter"],data:()=>({filterPopoverVisible:!1,selectedCategory:null,selectedOptions:{},optionSearchQuery:""}),computed:{filterCategories(){var e,t,i,a,n,s,o;return[{value:"mailbox_id",label:this.$t("Inbox"),icon:"filtersBusinessBox",isMultiple:!0,options:((null==(e=this.appVars)?void 0:e.mailboxes)||[]).map(e=>({value:e.id,label:e.name,filterType:"mailbox_id",filterValue:e.id}))},{value:"product_id",label:this.$t("Product"),icon:"filtersProduct",isMultiple:!0,options:((null==(t=this.appVars)?void 0:t.support_products)||[]).map(e=>({value:e.id,label:e.title,filterType:"product_id",filterValue:e.id}))},{value:"agent_id",label:this.$t("Support Staff"),icon:"filtersAgentIcon",isMultiple:!0,options:[{value:"unassigned",label:this.$t("Un-Assigned"),filterType:"agent_id",filterValue:"unassigned"},...((null==(i=this.appVars)?void 0:i.support_agents)||[]).map(e=>({value:e.id,label:e.full_name,filterType:"agent_id",filterValue:e.id}))]},{value:"agent_group",label:this.$t("Agent Group"),icon:"agentGroupIcon",isMultiple:!0,options:((null==(a=this.appVars)?void 0:a.agent_groups)||[]).map(e=>({value:e.id,label:e.title,filterType:"agent_group",filterValue:e.id}))},{value:"priority",label:this.$t("Admin Priority"),icon:"filtersAdminPriority",isMultiple:!0,options:Object.entries((null==(n=this.appVars)?void 0:n.admin_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"priority",filterValue:e}))},{value:"client_priority",label:this.$t("Customer Priority"),icon:"filtersCustomerPriority",isMultiple:!0,options:Object.entries((null==(s=this.appVars)?void 0:s.client_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"client_priority",filterValue:e}))},{value:"ticket_tags",label:this.$t("Tags"),icon:"filtersTagIcon",isMultiple:!0,options:((null==(o=this.appVars)?void 0:o.ticket_tags)||[]).map(e=>({value:e.id,label:e.title,filterType:"ticket_tags",filterValue:e.id}))}]},filteredCategories(){return this.filterCategories},filteredOptions(){if(!this.selectedCategory)return[];const e=this.selectedCategory.options,t=this.optionSearchQuery.trim().toLowerCase();return t?e.filter(e=>e.label.toLowerCase().includes(t)):e}},methods:{selectCategory(e){this.selectedCategory=e,this.optionSearchQuery=""},goBackToCategories(){this.selectedCategory=null,this.optionSearchQuery=""},toggleMultiOption(e){const t=this.selectedCategory.value;this.selectedOptions[t]||(this.selectedOptions[t]=[]);const i=this.selectedOptions[t].findIndex(t=>t.value===e.value);i>-1?this.selectedOptions[t].splice(i,1):this.selectedOptions[t].push(e);const a=this.selectedOptions[t].map(e=>e.filterValue);this.$emit("apply-filter",e.filterType,a)},selectSingleOption(e){const t=this.selectedCategory.value;this.selectedOptions[t]=[e],this.$emit("apply-filter",e.filterType,e.filterValue),this.filterPopoverVisible=!1,this.selectedCategory=null},isOptionSelected(e){const t=this.selectedCategory.value;return!!this.selectedOptions[t]&&this.selectedOptions[t].some(t=>t.value===e.value)},isSingleOptionSelected(e){var t,i;const a=this.selectedCategory.value;return(null==(i=null==(t=this.selectedOptions[a])?void 0:t[0])?void 0:i.value)===e.value||!1},clearAllSelections(){this.selectedOptions={}},clearFilterSelection(e){this.selectedOptions[e]&&delete this.selectedOptions[e]},updateFilterSelection(e,t){const i=this.filterCategories.find(t=>t.value===e);i&&(Array.isArray(t)&&t.length>0?this.selectedOptions[e]=t.map(t=>i.options.find(e=>e.value==t)||{value:t,label:t,filterType:e,filterValue:t}):delete this.selectedOptions[e])}}},yne={class:"fs_custom_filter_container"},xne={class:"fs_filter_panels"},Sne={key:0,class:"fs_filter_left_panel"},wne={class:"fs_filter_categories"},Cne=["onClick"],Ene={key:1,class:"fs_filter_right_panel"},kne={class:"fs_filter_header"},Tne={class:"fs_category_title"},Ane={key:0,class:"fs_filter_search fs_text_input"},Rne={class:"fs_filter_options"},Ine=["onClick"],Dne=["onClick"];const One=lH(bne,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=Sk,l=cE,c=AR,d=WR,u=P$,p=ZC;return zd(),qd("div",yne,[iu(p,{effect:"dark",content:e.$t("Filter"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",null,[iu(u,{placement:"bottom-start",width:"600",visible:n.filterPopoverVisible,"onUpdate:visible":t[2]||(t[2]=e=>n.filterPopoverVisible=e),trigger:"manual","popper-class":"fs_filter_dropdown"},{reference:vr(()=>[iu(r,{onClick:t[1]||(t[1]=e=>n.filterPopoverVisible=!n.filterPopoverVisible),class:"fs_outline_btn",disabled:i.disabled},{default:vr(()=>[iu(o,{iconKey:"filter",width:20,height:20})],void 0),_:1},8,["disabled"])]),default:vr(()=>[tu("div",xne,[n.selectedCategory?ru("",!0):(zd(),qd("div",Sne,[tu("div",wne,[(zd(!0),qd(Fd,null,sc(s.filteredCategories,e=>(zd(),qd("div",{key:e.value,onClick:t=>s.selectCategory(e),class:"fs_filter_category"},[iu(o,{iconKey:e.icon,width:20,height:20,class:"fs_category_icon"},null,8,["iconKey"]),su(" "+me(e.label),1)],8,Cne))),128))])])),n.selectedCategory?(zd(),qd("div",Ene,[tu("div",kne,[iu(r,{onClick:s.goBackToCategories,text:"",class:"fs_back_button"},{default:vr(()=>[iu(o,{iconKey:"backIcon",width:18,height:18})],void 0),_:1},8,["onClick"]),tu("span",Tne,me(n.selectedCategory.label),1)]),n.selectedCategory.options.length>6?(zd(),qd("div",Ane,[iu(l,{modelValue:n.optionSearchQuery,"onUpdate:modelValue":t[0]||(t[0]=e=>n.optionSearchQuery=e),placeholder:e.$t("Search")+"...",clearable:"",size:"small"},null,8,["modelValue","placeholder"])])):ru("",!0),tu("div",Rne,[n.selectedCategory.isMultiple?(zd(!0),qd(Fd,{key:0},sc(s.filteredOptions,e=>(zd(),qd("div",{key:e.value,onClick:t=>s.toggleMultiOption(e),class:"fs_filter_option"},[iu(c,{"model-value":s.isOptionSelected(e),class:"fs_option_checkbox"},null,8,["model-value"]),su(" "+me(e.label),1)],8,Ine))),128)):(zd(!0),qd(Fd,{key:1},sc(s.filteredOptions,e=>(zd(),qd("div",{key:e.value,onClick:t=>s.selectSingleOption(e),class:"fs_filter_option"},[iu(d,{"model-value":s.isSingleOptionSelected(e),class:"fs_option_radio"},null,8,["model-value"]),su(" "+me(e.label),1)],8,Dne))),128))])])):ru("",!0)])],void 0),_:1},8,["visible"])])],void 0),_:1},8,["content"])])}]]),Mne=["src","alt"],Nne={key:1},Lne={key:2},Pne=["href","target","rel"];const Fne=lH({name:"NarrowPromo",props:{heading:{type:String,default:""},description:{type:String,default:""},buttonText:{type:String,default:""},utmContent:{type:String,default:""},buttonUrl:{type:String,default:""},buttonTarget:{type:String,default:"_blank"},buttonRel:{type:String,default:"noopener"},buttonClass:{type:String,default:"el-button fs_filled_btn"},imageSrc:{type:String,default:""},customClass:{type:String,default:""}},computed:{resolvedButtonUrl(){return this.buttonUrl?this.buttonUrl:this.$upgradeUrl(this.utmContent||"upgrade_page")}}},[["render",function(e,t,i,a,n,s){return zd(),qd("div",{class:se(["fs_narrow_promo",i.customClass])},[i.imageSrc?(zd(),qd("img",{key:0,src:i.imageSrc,alt:i.heading},null,8,Mne)):ru("",!0),i.heading?(zd(),qd("h3",Nne,me(i.heading),1)):ru("",!0),i.description?(zd(),qd("p",Lne,me(i.description),1)):ru("",!0),i.buttonText?(zd(),qd("a",{key:3,href:s.resolvedButtonUrl,target:i.buttonTarget,rel:i.buttonRel,class:se(i.buttonClass)},me(i.buttonText),11,Pne)):ru("",!0),rc(e.$slots,"default")],2)}]]),Bne={key:0,class:"fs_inline_avatars avatars_small fs_live_activity_avatars"},$ne=["title","src","alt"],Vne={class:"fs_live_activity_popover_content"},Une=["title","src","alt"],Hne={class:"fs_live_activity_count"};const zne=[{width:"52px"},{width:"1fr"},{key:"agent",width:"110px"},{key:"product",width:"130px"},{key:"response_count",width:"100px"},{key:"client_priority",width:"110px"},{key:"waiting_time",width:"120px"},{key:"tags",width:"140px"},{key:"status",width:"90px"},{key:"mailbox",width:"130px"}],Yne={name:"AllTickets",components:{IconPack:dY,Modal:vne,Pagination:Pq,AddTicket:Zie,TicketTags:xH,TicketBulkActions:Kae,RichFilter:cne,LabelSearchDrawer:cae,CustomTicketFilters:One,NarrowPromo:Fne,LiveActivityAvatars:lH({name:"LiveActivityAvatars",props:{activities:{type:Array,default:()=>[]}}},[["render",function(e,t,i,a,n,s){const o=P$;return i.activities&&i.activities.length?(zd(),qd("span",Bne,[tu("span",null,[(zd(!0),qd(Fd,null,sc(i.activities.slice(0,2),t=>(zd(),qd("img",{key:t.id,title:t.full_name||t.name,src:t.photo,alt:t.full_name||e.$t("Agent")},null,8,$ne))),128))]),i.activities.length>2?(zd(),Kd(o,{key:0,placement:"top",trigger:"hover","popper-class":"fs_popover fs_live_activity_popover"},{reference:vr(()=>[tu("span",Hne," +"+me(i.activities.length-2),1)]),default:vr(()=>[tu("div",Vne,[(zd(!0),qd(Fd,null,sc(i.activities.slice(1),t=>(zd(),qd("img",{key:"more-"+t.id,title:t.full_name||t.name,src:t.photo,alt:t.full_name||e.$t("Agent")},null,8,Une))),128))])],void 0),_:1})):ru("",!0)])):ru("",!0)}]])},data:()=>({add_ticket_modal:!1,add_response_modal:!1,show_filters:!0,openTicketInNewTab:!1,filterPopoverVisible:!1,selectedFilterPath:[],show_bulk_actions:!0,imageErrors:{},openLabelSearchDrawer:!1,isLabelSearchOpen:!1,saving:!1}),computed:{...eq(sq,["tickets","pagination","ticket_statuses_group","loading","first_time_loading","app_ready","appReady","doing_bulk","labelSearchList","activeFilters","selectAllChecked","isIndeterminate"]),...(Gne=sq,Wne=["filters","search","order_by","order_type","filter_type","advanced_filters","ticket_selections","searchActive","fieldVisibility","gridFieldVisibility","ticketLayout","viewMode","label_search_id","label_search_name"],Array.isArray(Wne)?Wne.reduce((e,t)=>(e[t]={get(){return Gne(this.$pinia)[t]},set(e){return Gne(this.$pinia)[t]=e}},e),{}):Object.keys(Wne).reduce((e,t)=>(e[t]={get(){return Gne(this.$pinia)[Wne[t]]},set(e){return Gne(this.$pinia)[Wne[t]]=e}},e),{})),filterColumns(){return{id:this.$t("Ticket ID"),product_id:this.$t("Product ID"),priority:this.$t("Priority"),client_priority:this.$t("Client Priority"),title:this.$t("Title"),last_agent_response:this.$t("Last Agent Response"),last_customer_response:this.$t("Last Customer Response"),waiting_since:this.$t("Waiting Time"),response_count:this.$t("Response Count"),created_at:this.$t("Created At")}},fieldVisibilityOptions(){return[{key:"title",label:this.$t("Ticket Title")},{key:"author",label:this.$t("Author Name")},{key:"tags",label:this.$t("Tags")},{key:"source",label:this.$t("Source")},{key:"description",label:this.$t("Description")},{key:"response_count",label:this.$t("Response Count")},{key:"product",label:this.$t("Product")},{key:"mailbox",label:this.$t("Mailbox")},{key:"agent",label:this.$t("Assigned Agent")},{key:"status",label:this.$t("Status")},{key:"client_priority",label:this.$t("Client Priority")},{key:"waiting_time",label:this.$t("Waiting Time")}]},gridVisibilityOptions(){return[{key:"agent",label:this.$t("Assigned Agent")},{key:"tags",label:this.$t("Tags")},{key:"status",label:this.$t("Status")},{key:"response_count",label:this.$t("Response Count")},{key:"product",label:this.$t("Product")},{key:"mailbox",label:this.$t("Mailbox")},{key:"client_priority",label:this.$t("Client Priority")},{key:"waiting_time",label:this.$t("Waiting Time")},{key:"author",label:this.$t("Author Name")},{key:"description",label:this.$t("Description")},{key:"source",label:this.$t("Source")}]},activeVisibility(){return"grid"===this.ticketLayout?this.gridFieldVisibility:this.fieldVisibility},activeVisibilityOptions(){return"grid"===this.ticketLayout?this.gridVisibilityOptions:this.fieldVisibilityOptions},gridTemplateColumns(){const e=this.gridFieldVisibility;return zne.filter(t=>!t.key||e[t.key]).map(e=>e.width).join(" ")}},watch:{"$route.query.agent_id"(e,t){const i=sq();i.app_ready&&"view_ticket"!==this.$route.name&&e!==t&&(i.filters.agent_id=e||[],this.fetchTickets())},"$route.query.watcher"(e,t){const i=sq();i.app_ready&&"view_ticket"!==this.$route.name&&e!==t&&(i.filters.watcher=e||"",this.fetchTickets())},"$route.query.product_id"(e,t){const i=sq();i.app_ready&&"view_ticket"!==this.$route.name&&e!==t&&(i.filters.product_id=e?Array.isArray(e)?e:[e]:[],this.fetchTickets())}},methods:{...function(e,t){return Array.isArray(t)?t.reduce((t,i)=>(t[i]=function(...t){return e(this.$pinia)[i](...t)},t),{}):Object.keys(t).reduce((i,a)=>(i[a]=function(...i){return e(this.$pinia)[t[a]](...i)},i),{})}(sq,{storeSetStatus:"setStatus",storeResetFilters:"resetFilters",storeResetWithOutFetch:"resetWithOutFetch",storeClearAllFilters:"clearAllFilters",storeResetAdvancedFilters:"resetAdvancedFilters",storeHandleCustomFilter:"handleCustomFilter",storeHandleSelectAll:"handleSelectAll",storeHandleTicketSelection:"handleTicketSelection",storeDeleteSelected:"deleteSelected",storeCloseSelected:"closeSelected",storeHandleSaveSearch:"handleSaveSearch",storeFetchLabelSearches:"fetchLabelSearches",storeHandleLabelSearchDelete:"handleLabelSearchDelete",storeHandleAdvanceSearch:"handleAdvanceSearch",storeHandleLabelSearchEdit:"handleLabelSearchEdit"}),closeSavedSearchListModal(){this.openLabelSearchDrawer=!1},async fetchTickets(){const e=sq();if(!e.app_ready)return!1;try{await e.fetchTickets(),this.saveFilters()}catch(NO){this.$handleError(NO)}},refreshTickets(){sq().invalidateCache(),this.fetchTickets()},addConditionGroup(){this.advanced_filters.push([])},maybeRemoveGroup(e){this.advanced_filters.length>1&&this.advanced_filters.splice(e,1)},gotToTicket(e,t){t.target&&"a"===t.target.tagName.toLowerCase()||this.$router.push({name:"view_ticket",params:{ticket_id:e.id}})},goToTicketView(e,t){if(t.ctrlKey||t.metaKey){const i=this.$router.resolve({name:"view_ticket",params:{ticket_id:e.id}});window.open(i.href,"_blank"),t.preventDefault(),t.stopPropagation()}},handleImageError(e){e.target.style.display="none"},setFromSaveFilters(){const e=sq();e.filter_type=this.$getData("tickets_filter_type","simple"),e.ticket_statuses_group=this.appVars.ticket_statuses_group||{};const t=this.$getData("tickets_filter",{});yX(t,(t,i)=>{e.filters[i]=t});const i=this.$getData("tickets_pref",!1);i&&(e.order_by=i.order_by,e.order_type=i.order_type,e.pagination.per_page=i.per_page,e.pagination.current_page=i.current_page,e.search=i.search);const a=this.$getData("tickets_advanced_filters",[[]]);a&&(e.advanced_filters=a);const n=this.$getData("tickets_show_bulk_actions","yes");this.show_bulk_actions="no"!==n;const s=this.$getData("tickets_field_visibility",null);s&&(e.fieldVisibility={...e.fieldVisibility,...s});const o=this.$getData("tickets_grid_field_visibility",null);o&&(e.gridFieldVisibility={...e.gridFieldVisibility,...o});const r=this.$getData("tickets_layout","default");e.ticketLayout=r,this.openTicketInNewTab="yes"===this.appVars.open_ticket_in_new_tab,e.appReady=!0},saveFilters(){const e=sq();this.$saveData("tickets_pref",{order_by:e.order_by,order_type:e.order_type,per_page:e.pagination.per_page,search:e.search,current_page:e.pagination.current_page}),this.$saveData("tickets_filter_type",e.filter_type),"advanced"===e.filter_type?this.$saveData("tickets_advanced_filters",e.advanced_filters):this.$saveData("tickets_filter",e.filters)},changeOrderType(){"DESC"===this.order_type?this.order_type="ASC":this.order_type="DESC",this.fetchTickets()},getWaitingStatus(e){return"closed"==e.status?"":"new"===e.status?"new":e.last_agent_response?e.last_customer_response?this.$dayjs(e.last_agent_response).isAfter(e.last_customer_response,"seconds")?"":"waiting":"":"waiting"},getLastResponse(e){return this.$dayjs(e.last_agent_response).isAfter(e.last_customer_response,"seconds")?this.$timeDiff(e.last_agent_response):this.$timeDiff(e.last_customer_response)},handleSelectionChange(e){const t=[];yX(e,e=>{t.push(e.id)}),this.ticket_selections=t},deleteSelected(){this.storeDeleteSelected().then(e=>{e&&e.success&&this.fetchTickets()}).catch(e=>{this.$handleError(e)})},closeSelected(){this.storeCloseSelected().then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTickets()}).catch(e=>{this.$handleError(e)})},getExcerpt(e){let t=e.preview_response?e.preview_response.content:e.content;return t?window.DOMPurify.sanitize(t,{ALLOWED_TAGS:[]}):""},resetFilters(){this.storeResetFilters(this.$route.query),this.fetchTickets()},resetWithOutFetch(){this.storeResetWithOutFetch()},getExcerptBox:e=>e&&"string"==typeof e?e.substring(0,3).padEnd(5,"."):"",countAdvancedFilterData:e=>e.reduce((e,t)=>{if(Array.isArray(t)){return e+t.filter(e=>"string"==typeof e.value?""!==e.value.trim():!!Array.isArray(e.value)&&e.value.some(e=>"string"==typeof e&&""!==e.trim())).length}return e},0),handleSaveSearch(){const e=sq();if(!e.label_search_name||"advanced"===e.filter_type&&!e.advanced_filters.length)return void this.$notify({message:this.$t("Please provide a valid name or filter criteria."),type:"warning",position:"bottom-right"});this.isLabelSearchOpen=!1,e.ticket_selections=[],e.loading=!0;let t={filter_type:e.filter_type,label_search_name:e.label_search_name};"advanced"===e.filter_type&&this.has_pro&&(t.advanced_filters=JSON.stringify(e.advanced_filters)),e.label_search_id&&(t.id=e.label_search_id),this.storeHandleSaveSearch(t).then(t=>{this.$notify({message:t.message,type:"success",position:"bottom-right"}),e.label_search_id=null,e.loading=!1}).catch(e=>{this.$handleError(e)}).always(()=>{})},fetchLabelSearch(){this.openLabelSearchDrawer=!0,this.storeFetchLabelSearches().always(()=>{sq().loading=!1}).catch(e=>{this.$handleError(e)})},handleAdvanceSearch(e){this.storeHandleAdvanceSearch(e),this.openLabelSearchDrawer=!1,this.fetchTickets()},handleLabelSearchEdit(e){this.storeHandleLabelSearchEdit(e),this.openLabelSearchDrawer=!1},openSaveSearchModal(){this.isLabelSearchOpen=!0,this.label_search_name=this.label_search_id?this.label_search_name:""},handleLabelSearchDelete(e){this.storeHandleLabelSearchDelete(e).then(e=>{e&&this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)})},handleKeydown(e){const{metaKey:t,altKey:i,shiftKey:a,code:n}=e;if(!t||!i||"KeyI"!==n){if(t&&a&&("ArrowRight"===n||"ArrowLeft"===n)){e.preventDefault();const t=Object.keys(this.ticket_statuses_group||{});if(0===t.length)return;const i=t.indexOf(this.filters.status_type);let a;return a="ArrowRight"===n?(i+1)%t.length:(i-1+t.length)%t.length,void this.setStatus(t[a])}if(t&&i){e.preventDefault();const t={KeyN:()=>{this.add_ticket_modal=!0},KeyQ:()=>{this.refreshTickets()},KeyF:()=>{this.toggleAdvancedFilter("advanced"!==this.filter_type)},KeyR:()=>{this.resetAdvancedFilters()},KeyW:()=>{this.filters.waiting_for_reply="yes"!==this.filters.waiting_for_reply&&"yes",this.maybeChangeWaitingReply()}}[n];t&&t()}}},handleTicketSelection(e){this.storeHandleTicketSelection(e)},maybeChangeWaitingReply(){this.fetchTickets()},toggleWaitingForReply(){this.filters.waiting_for_reply="yes"!==this.filters.waiting_for_reply&&"yes",this.maybeChangeWaitingReply()},openSearch(){this.searchActive=!0,this.$nextTick(()=>{this.$refs.searchInput&&this.$refs.searchInput.focus()})},closeSearch(){this.searchActive=!1,this.search="",this.fetchTickets()},setStatus(e){this.storeSetStatus(e),this.fetchTickets()},toggleAdvancedFilter(e){this.has_pro&&(e&&(this.search="",this.searchActive=!1),this.filter_type=e?"advanced":"simple",this.saveFilters(),e||this.fetchTickets())},handleFilterSelect(e){this.showFilterSelection(e)},showFilterSelection(e){switch(e){case"status":this.showStatusFilter();break;case"priority":this.showPriorityFilter();break;case"client_priority":this.showClientPriorityFilter();break;case"agent_id":this.showAgentFilter();break;case"product_id":this.showProductFilter();break;case"mailbox_id":this.showMailboxFilter();break;case"ticket_tags":this.showTagsFilter()}},showFilterDialog(e,t,i){let a="";y$({title:this.$t("title"),message:Pu("div",[Pu("p",{style:"margin-bottom: 10px;"},this.$t("Select an option:")),Pu(SA,{modelValue:a,placeholder:this.$t("Please select"),style:"width: 100%","onUpdate:modelValue":e=>{a=e}},{default:()=>Object.entries(t).map(([e,t])=>Pu(wA,{key:e,label:t,value:e}))})]),showCancelButton:!0,confirmButtonText:this.$t("Apply"),cancelButtonText:this.$t("Cancel"),beforeClose:(e,t,n)=>{"confirm"===e?a?(i(a),n()):r$.warning(this.$t("Please select an option")):n()}}).catch(()=>{})},showStatusFilter(){const e=this.appVars.ticket_statuses||{},t=Object.keys(this.ticket_statuses_group||{}).reduce((t,i)=>(t[i]=e[i]||this.$t(i),t),{});this.showFilterDialog("Select Status",t,e=>{this.filters.status_type=e,this.fetchTickets()})},showPriorityFilter(){var e;const t=(null==(e=this.appVars)?void 0:e.admin_priorities)||{low:"Low",normal:"Normal",medium:"Medium",high:"High",critical:"Critical"};this.showFilterDialog("Select Priority",t,e=>{this.filters.priority=e,this.fetchTickets()})},showClientPriorityFilter(){var e;const t=(null==(e=this.appVars)?void 0:e.client_priorities)||{low:"Low",normal:"Normal",medium:"Medium",high:"High",critical:"Critical"};this.showFilterDialog("Select Client Priority",t,e=>{this.filters.client_priority=e,this.fetchTickets()})},showAgentFilter(){var e;const t=(null==(e=this.appVars)?void 0:e.support_agents)||[],i={unassigned:this.$t("Un-Assigned"),...t.reduce((e,t)=>(e[t.id]=t.full_name,e),{})};this.showFilterDialog("Select Agent",i,e=>{this.filters.agent_id=e,this.fetchTickets()})},showProductFilter(){var e;const t=((null==(e=this.appVars)?void 0:e.support_products)||[]).reduce((e,t)=>(e[t.id]=t.title,e),{});this.showFilterDialog("Select Product",t,e=>{this.filters.product_id=[e],this.fetchTickets()})},showMailboxFilter(){var e;const t=((null==(e=this.appVars)?void 0:e.mailboxes)||[]).reduce((e,t)=>(e[t.id]=t.name,e),{});this.showFilterDialog("Select Mailbox",t,e=>{this.filters.mailbox_id=e,this.fetchTickets()})},showTagsFilter(){var e;const t=((null==(e=this.appVars)?void 0:e.ticket_tags)||[]).reduce((e,t)=>(e[t.id]=t.title,e),{});this.showFilterDialog("Select Tags",t,e=>{this.filters.ticket_tags=[parseInt(e)],this.fetchTickets()})},removeFilter(e){"status_type"===e?this.filters.status_type="open":Array.isArray(this.filters[e])?this.filters[e]=[]:delete this.filters[e],this.$refs.customTicketFiltersRef&&this.$refs.customTicketFiltersRef.clearFilterSelection&&this.$refs.customTicketFiltersRef.clearFilterSelection(e),"agent_id"===e&&this.clearRouteFilters(["agent_id","watcher"])||"product_id"===e&&this.clearRouteFilters(["product_id"])||this.fetchTickets()},clearRouteFilters(e){const t={...this.$route.query},i=e.some(e=>e in t);return this.$removeData("routesData"),!!i&&(e.forEach(e=>delete t[e]),this.$router.push({name:"tickets",query:t}),!0)},getFilterLabel(e){return{status_type:this.$t("Status"),priority:this.$t("Priority"),client_priority:this.$t("Client Priority"),agent_id:this.$t("Agent"),product_id:this.$t("Product"),mailbox_id:this.$t("Mailbox"),ticket_tags:this.$t("Tags"),agent_group:this.$t("Agent Group"),waiting_for_reply:this.$t("Waiting For Reply")}[e]||e},getFilterDisplayValue(e,t){var i,a,n,s,o,r,l,c;if(!t)return"";if("status_type"===e)return(this.appVars.ticket_statuses||{})[t]||this.$t(t);if("priority"===e)return Array.isArray(t)?t.map(e=>{var t,i;return(null==(i=null==(t=this.appVars)?void 0:t.admin_priorities)?void 0:i[e])||e}).join(", "):(null==(a=null==(i=this.appVars)?void 0:i.admin_priorities)?void 0:a[t])||t;if("client_priority"===e)return Array.isArray(t)?t.map(e=>{var t,i;return(null==(i=null==(t=this.appVars)?void 0:t.client_priorities)?void 0:i[e])||e}).join(", "):(null==(s=null==(n=this.appVars)?void 0:n.client_priorities)?void 0:s[t])||t;if("agent_id"===e){if(Array.isArray(t))return t.map(e=>{var t,i;if("unassigned"===e)return this.$t("Un-Assigned");const a=null==(i=null==(t=this.appVars)?void 0:t.support_agents)?void 0:i.find(t=>t.id==e);return a?a.full_name:e}).join(", ");if("unassigned"===t)return this.$t("Un-Assigned");const e=null==(r=null==(o=this.appVars)?void 0:o.support_agents)?void 0:r.find(e=>e.id==t);return e?e.full_name:t}if("product_id"===e&&Array.isArray(t))return t.map(e=>{var t,i;const a=null==(i=null==(t=this.appVars)?void 0:t.support_products)?void 0:i.find(t=>t.id==e);return a?a.title:e}).join(", ");if("mailbox_id"===e){if(Array.isArray(t))return t.map(e=>{var t,i;const a=null==(i=null==(t=this.appVars)?void 0:t.mailboxes)?void 0:i.find(t=>t.id==e);return a?a.name:e}).join(", ");const e=null==(c=null==(l=this.appVars)?void 0:l.mailboxes)?void 0:c.find(e=>e.id==t);return e?e.name:t}return"ticket_tags"===e&&Array.isArray(t)?t.map(e=>{var t,i;const a=null==(i=null==(t=this.appVars)?void 0:t.ticket_tags)?void 0:i.find(t=>t.id==e);return a?a.title:e}).join(", "):"agent_group"===e&&Array.isArray(t)?t.map(e=>{var t,i;const a=null==(i=null==(t=this.appVars)?void 0:t.agent_groups)?void 0:i.find(t=>t.id==e);return a?a.title:e}).join(", "):"waiting_for_reply"===e?"yes"===t?this.$t("Yes"):this.$t("No"):t},filterCascaderOptions(){var e,t,i,a,n,s;return[{value:"status",label:this.$t("Status"),children:Object.keys(this.ticket_statuses_group||{}).map(e=>({value:e,label:(this.appVars.ticket_statuses||{})[e]||this.$t(e),filterType:"status",filterValue:e}))},{value:"priority",label:this.$t("Priority"),children:Object.entries((null==(e=this.appVars)?void 0:e.admin_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"priority",filterValue:e}))},{value:"client_priority",label:this.$t("Client Priority"),children:Object.entries((null==(t=this.appVars)?void 0:t.client_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"client_priority",filterValue:e}))},{value:"agent_id",label:this.$t("Agent"),children:[{value:"unassigned",label:this.$t("Un-Assigned"),filterType:"agent_id",filterValue:"unassigned"},...((null==(i=this.appVars)?void 0:i.support_agents)||[]).map(e=>({value:e.id,label:e.full_name,filterType:"agent_id",filterValue:e.id}))]},{value:"product_id",label:this.$t("Product"),children:((null==(a=this.appVars)?void 0:a.support_products)||[]).map(e=>({value:e.id,label:e.title,filterType:"product_id",filterValue:e.id}))},{value:"mailbox_id",label:this.$t("Mailbox"),children:((null==(n=this.appVars)?void 0:n.mailboxes)||[]).map(e=>({value:e.id,label:e.name,filterType:"mailbox_id",filterValue:e.id}))},{value:"ticket_tags",label:this.$t("Tags"),children:((null==(s=this.appVars)?void 0:s.ticket_tags)||[]).map(e=>({value:e.id,label:e.title,filterType:"ticket_tags",filterValue:e.id}))}]},handleFilterCascaderChange(){if(2===this.selectedFilterPath.length){const[e,t]=this.selectedFilterPath,i=this.filterCascaderOptions.find(t=>t.value===e);if(i){const e=i.children.find(e=>e.value===t);if(e){const{filterType:t,filterValue:i}=e;switch(t){case"status":this.filters.status_type=i;break;case"priority":this.filters.priority=i;break;case"client_priority":this.filters.client_priority=i;break;case"agent_id":this.filters.agent_id=i;break;case"product_id":this.filters.product_id=[i];break;case"mailbox_id":this.filters.mailbox_id=i;break;case"ticket_tags":this.filters.ticket_tags=[parseInt(i)]}this.fetchTickets(),this.filterPopoverVisible=!1,this.selectedFilterPath=[]}}}},getFilterIcon:e=>({mailbox_id:"filtersBusinessBox",product_id:"filtersProduct",agent_id:"filtersAgentIcon",agent_group:"agentGroupIcon",priority:"filtersAdminPriority",client_priority:"filtersCustomerPriority",ticket_tags:"filtersTagIcon",status_type:"circleCheck"}[e]||"filter"),removeData(e){let t=this.$getData("__fluentsupport_data");t&&(t=JSON.parse(t),delete t[e],this.$saveData("__fluentsupport_data",JSON.stringify(t)))},clearAllFilters(){this.storeClearAllFilters(),this.$refs.customTicketFiltersRef&&this.$refs.customTicketFiltersRef.clearAllSelections(),this.removeData("tickets_filter"),this.removeData("tickets_pref"),this.clearRouteFilters(["agent_id","watcher","product_id"])||this.fetchTickets()},resetAdvancedFilters(){this.storeResetAdvancedFilters(),this.removeData("tickets_advanced_filters"),this.removeData("tickets_filter_type"),this.removeData("tickets_pref"),this.fetchTickets()},handleProductFilterChange(){this.$refs.customTicketFiltersRef&&this.$refs.customTicketFiltersRef.updateFilterSelection&&this.$refs.customTicketFiltersRef.updateFilterSelection("product_id",this.filters.product_id),this.fetchTickets()},handleCustomFilter(e,t){this.storeHandleCustomFilter(e,t),this.fetchTickets()},handleSelectAll(e){this.storeHandleSelectAll(e)},handleBulkActionsToggle(e){this.$saveData("tickets_show_bulk_actions",e?"yes":"no"),e||(this.ticket_selections=[])},handleMoreAction(e){"show_bulk"===e?(this.show_bulk_actions=!0,this.handleBulkActionsToggle(!0)):"hide_bulk"===e&&(this.show_bulk_actions=!1,this.handleBulkActionsToggle(!1))},setViewMode(e){this.viewMode=e,this.$saveData("tickets_view_mode",e)},getInitials(e){if(!e)return"?";return(((e.first_name||"")[0]||"")+((e.last_name||"")[0]||"")).toUpperCase()||"?"},saveFieldVisibility(){this.$saveData("tickets_field_visibility",this.fieldVisibility)},saveGridFieldVisibility(){this.$saveData("tickets_grid_field_visibility",this.gridFieldVisibility)},saveActiveVisibility(){"grid"===this.ticketLayout?this.saveGridFieldVisibility():this.saveFieldVisibility()},resetFieldVisibility(){sq().fieldVisibility={title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!0,agent:!0,status:!0,client_priority:!0,waiting_time:!0},this.saveFieldVisibility()},resetGridFieldVisibility(){sq().gridFieldVisibility={title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!1,agent:!0,status:!1,client_priority:!0,waiting_time:!0},this.saveGridFieldVisibility()},resetActiveVisibility(){"grid"===this.ticketLayout?this.resetGridFieldVisibility():this.resetFieldVisibility()},setTicketLayout(e){this.$saveData("tickets_layout",e)}},mounted(){const e=sq();if(e.app_ready=!0,this.setFromSaveFilters(),this.$route.query.search&&(this.storeResetWithOutFetch(),e.filter_type="simple",e.advanced_filters=[[]]),this.$route.query.agent_id&&(e.filters.agent_id=this.$route.query.agent_id,e.filters.watcher=this.$route.query.watcher),this.$route.query.waiting_for_reply&&(e.filters.waiting_for_reply=this.$route.query.waiting_for_reply),"product_id"in this.$route.query){const t=this.$route.query.product_id;e.filters.product_id=t?Array.isArray(t)?t:[t]:[]}if(this.$route.query.tags){const t=this.$route.query.tags;e.filters.ticket_tags="object"==typeof t?t.map(e=>parseInt(e)):[parseInt(t)]}this.$route.query.search&&(e.search=this.$route.query.search),this.$route.query.filter_type&&(e.filter_type=this.$route.query.filter_type,e.filters.status_type=this.$route.query.status_type),e.shouldShowCache?(e.first_time_loading=!1,this.$nextTick(()=>{e.fetchTickets(!0,!0).then(()=>this.saveFilters()).catch(()=>{})})):this.$nextTick(()=>{this.fetchTickets()}),this.$setTitle(this.$t("All Tickets")),"yes"===this.appVars.keyboard_shortcuts&&window.addEventListener("keydown",this.handleKeydown)},beforeUnmount(){"yes"===this.appVars.keyboard_shortcuts&&window.removeEventListener("keydown",this.handleKeydown)}};var Gne,Wne;const jne={class:"fs_all_tickets"},qne={class:"fs_box_wrapper"},Kne={class:"fs_component_header"},Xne={class:"fs_component_head"},Zne={class:"fs_page_title"},Qne={class:"fs_box_actions fs_tickets_actions_btn"},Jne={class:"fs_box_header"},ese={class:"fs_box_head fs_status_tabs_wrapper"},tse={key:0,class:"fs_status_tabs"},ise={class:"fs_segmented_control"},ase=["onClick"],nse={class:"fs_filter_controls"},sse={key:0,class:"fs_tk_filter fs_advanced_button"},ose={class:"fs_tk_filter fs_table_search_field"},rse={class:"fs_filter_right_section"},lse={class:"fs_popover_item"},cse={class:"fs_popover_title"},dse={class:"fs_radio_blocks"},use={class:"fs_popover_item"},pse={class:"fs_popover_header"},hse={class:"fs_popover_title"},fse={class:"fs_radio_blocks fs_layout_options"},gse={class:"fs-radio__sublabel"},mse={class:"fs-radio__sublabel"},_se={class:"fs-radio__sublabel"},vse={class:"fs_popover_header"},bse={class:"fs_popover_title"},yse={class:"fs_checkbox_list"},xse={key:0,class:"fs_search_bar_section"},Sse={class:"fs_search_bar_container"},wse={key:0,class:"fs_active_filters_section"},Cse={class:"fs_active_filters_container"},Ese={class:"fs_filter_icon_name"},kse={key:0,class:"fs_filter_value"},Tse={key:1,class:"fs_filter_value"},Ase=["onClick"],Rse={class:"fs_filter_actions"},Ise={class:"fs_box_body"},Dse={key:0},Ose={key:0,class:"fs_rich_container"},Mse={key:0,class:"fs_rich_wrap"},Nse={class:"fs_rich_filter"},Lse={key:0,class:"fs_filter_separator"},Pse={class:"fs_condition_sign"},Fse={class:"fs_condition_sign fs_button"},Bse={class:"fs_advanced_filter_actions"},$se={class:"fs_advanced_filter_actions_left"},Vse={class:"fs_saved_search_btn_text"},Use={class:"fs_advanced_filter_actions_right"},Hse={class:"fs_select_all_container"},zse={class:"fs_select_all"},Yse={class:"fs_total_count"},Gse=["onClick"],Wse={class:"fs_ticket_main_content"},jse={class:"fs_ticket_left_section"},qse={class:"fs_ticket_title_row"},Kse={class:"fs_ticket_title_group"},Xse=["href","onClick"],Zse={key:1,class:"fs_ticket_inline_description"},Qse=["innerHTML"],Jse={key:2,class:"fs_ticket_author"},eoe={class:"fs_tk_number"},toe={class:"fs_ticket_source_wrap"},ioe=["src","alt","onError"],aoe={key:1,class:"fs_source_initial_badge"},noe={key:3,class:"fs_status_dot fs_status_dot_new"},soe={key:0,class:"fs_ticket_description"},ooe=["innerHTML"],roe={class:"fs_ticket_right_section"},loe={class:"fs_ticket_meta_info"},coe={class:"fs_ticket_conversation_count"},doe={class:"fs_ticket_product"},uoe={class:"fs_ticket_mailbox"},poe={class:"fs_ticket_status_group"},hoe={class:"fs_ticket_waiting_time"},foe={class:"fs_ticket_agent_badge"},goe={class:"fs_ticket_agent_name"},moe={key:0,class:"fs_tickets_empty_state"},_oe=["src"],voe={key:1,"element-loading-text":"Loading...",class:"fs_tickets_grid_view"},boe={class:"fs_grid_scroll_wrapper"},yoe={class:"fs_grid_header_row"},xoe={class:"fs_grid_th fs_grid_th_checkbox"},Soe={class:"fs_grid_th fs_grid_th_title"},woe={key:0,class:"fs_grid_th fs_grid_th_agent"},Coe={key:1,class:"fs_grid_th fs_grid_th_product"},Eoe={key:2,class:"fs_grid_th fs_grid_th_responses"},koe={key:3,class:"fs_grid_th fs_grid_th_priority"},Toe={key:4,class:"fs_grid_th fs_grid_th_date"},Aoe={key:5,class:"fs_grid_th fs_grid_th_tags"},Roe={key:6,class:"fs_grid_th fs_grid_th_status"},Ioe={key:7,class:"fs_grid_th fs_grid_th_mailbox"},Doe=["onClick"],Ooe={class:"fs_grid_td fs_grid_td_checkbox"},Moe={class:"fs_grid_td fs_grid_td_title"},Noe={class:"fs_grid_avatar"},Loe=["src","alt"],Poe={key:1,class:"fs_grid_avatar_initials"},Foe={class:"fs_grid_title_content"},Boe={class:"fs_grid_title_row"},$oe=["href","onClick"],Voe={key:0,class:"fs_grid_author"},Uoe={class:"fs_ticket_source_wrap"},Hoe=["src","alt","onError"],zoe={key:1,class:"fs_source_initial_badge"},Yoe={key:2,class:"fs_status_dot fs_status_dot_new"},Goe=["innerHTML"],Woe={key:0,class:"fs_grid_td fs_grid_td_agent"},joe={class:"fs_grid_cell_text"},qoe={key:1,class:"fs_grid_cell_muted"},Koe={key:1,class:"fs_grid_td fs_grid_td_product"},Xoe={class:"fs_grid_cell_text"},Zoe={key:1,class:"fs_grid_cell_muted"},Qoe={key:2,class:"fs_grid_td fs_grid_td_responses"},Joe={key:0,class:"fs_grid_response_count"},ere={key:1,class:"fs_grid_cell_muted"},tre={key:3,class:"fs_grid_td fs_grid_td_priority"},ire={key:1,class:"fs_grid_cell_muted"},are={key:4,class:"fs_grid_td fs_grid_td_date"},nre={class:"fs_grid_date_stack"},sre={class:"fs_grid_date fs_grid_date_muted"},ore={class:"fs_grid_date"},rre={key:5,class:"fs_grid_td fs_grid_td_tags"},lre={key:1,class:"fs_grid_cell_muted"},cre={key:6,class:"fs_grid_td fs_grid_td_status"},dre={key:1,class:"fs_grid_cell_muted"},ure={key:7,class:"fs_grid_td fs_grid_td_mailbox"},pre={key:0,class:"fs_grid_cell_text"},hre={key:1,class:"fs_grid_cell_muted"},fre={key:0,class:"fs_tickets_empty_state"},gre=["src"],mre={key:3,class:"fs_skeleton_loader"},_re={key:4,class:"fs_pagination_wrapper"},vre={class:"fs_pagination_left"},bre={class:"fs_pagination_right"},yre={class:"fs_dialog_footer"},xre={class:"fs_text_right"};const Sre=lH(Yne,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=Sk,l=ZC,c=AR,d=Jl("ArrowDown"),u=KS,p=Jl("View"),h=Jl("Hide"),f=nN,g=sN,m=aN,_=BL,v=Jl("CustomTicketFilters"),b=WR,y=jR,x=qR,S=P$,w=Jl("Search"),C=cE,E=wA,k=SA,T=Jl("rich-filter"),A=Jl("NarrowPromo"),R=Jl("ticket-tags"),I=Jl("LiveActivityAvatars"),D=AL,O=Jl("pagination"),M=Jl("add-ticket"),N=dM,L=oC,P=sC,F=Jl("label-search-drawer"),B=bM,$=Jl("ticket-bulk-actions"),V=WB;return zd(),qd("div",jne,[tu("div",qne,[tu("div",Kne,[tu("div",Xne,[tu("h3",Zne,[su(me(e.$t("Tickets"))+" ",1),tu("span",null,"("+me(e.pagination.total)+")",1)])]),tu("div",Qne,[iu(l,{effect:"dark",content:e.$t("Refresh"),placement:"top"},{default:vr(()=>[iu(r,{onClick:t[0]||(t[0]=e=>s.refreshTickets()),class:"fs_outline_btn fs_refresh_btn"},{default:vr(()=>[iu(o,{iconKey:"refresh",width:20,height:20})],void 0),_:1})],void 0),_:1},8,["content"]),iu(r,{onClick:t[2]||(t[2]=e=>s.toggleWaitingForReply()),class:se(["fs_outline_btn","fs_waiting_reply_btn",{fs_waiting_reply_btn_active:"yes"===e.filters.waiting_for_reply}])},{default:vr(()=>[iu(c,{"model-value":"yes"===e.filters.waiting_for_reply,onClick:t[1]||(t[1]=Ah(()=>{},["prevent","stop"])),class:"fs_waiting_reply_checkbox"},null,8,["model-value"]),su(" "+me(e.$t("Waiting For Reply")),1)],void 0),_:1},8,["class"]),iu(m,{trigger:"click",onCommand:s.handleMoreAction},{dropdown:vr(()=>[iu(g,{class:"fs_global_dropdown fs_global_dropdown"},{default:vr(()=>[iu(f,{command:n.show_bulk_actions?"hide_bulk":"show_bulk"},{default:vr(()=>[n.show_bulk_actions?(zd(),Kd(u,{key:1},{default:vr(()=>[iu(h)],void 0),_:1})):(zd(),Kd(u,{key:0},{default:vr(()=>[iu(p)],void 0),_:1})),tu("span",null,me(n.show_bulk_actions?e.$t("Hide Bulk Action"):e.$t("Show Bulk Action")),1)],void 0),_:1},8,["command"])],void 0),_:1})]),default:vr(()=>[iu(r,{class:"fs_outline_btn fs_more_action_btn"},{default:vr(()=>[su(me(e.$t("More Action"))+" ",1),iu(u,{class:"el-icon--right"},{default:vr(()=>[iu(d)],void 0),_:1})],void 0),_:1})],void 0),_:1},8,["onCommand"]),iu(r,{onClick:t[3]||(t[3]=e=>n.add_ticket_modal=!0),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add Ticket")),1)],void 0),_:1})])]),tu("div",Jne,[tu("div",ese,["advanced"!==e.filter_type?(zd(),qd("div",tse,[tu("div",ise,[(zd(!0),qd(Fd,null,sc(e.ticket_statuses_group,(t,i)=>(zd(),qd("button",{key:i,onClick:e=>s.setStatus(i),class:se(["fs_segment_button",{fs_segment_active:e.filters.status_type===i}])},me(e.appVars.ticket_statuses[i]||e.$t(i)),11,ase))),128))])])):ru("",!0),tu("div",nse,[tu("div",{class:se(["fs_filter_left_section",{fs_search_active:e.searchActive}])},[e.searchActive?ru("",!0):(zd(),qd("div",sse,[iu(_,{onChange:s.toggleAdvancedFilter,"model-value":"advanced"===e.filter_type,disabled:!e.has_pro,"active-text":e.$t("Advanced filter"),"inactive-text":""},null,8,["onChange","model-value","disabled","active-text"])])),tu("div",ose,[iu(l,{effect:"dark",content:e.$t("Search"),placement:"top"},{default:vr(()=>[iu(r,{onClick:t[4]||(t[4]=e=>s.openSearch()),class:"fs_outline_btn fs_search_button",disabled:"advanced"===e.filter_type},{default:vr(()=>[iu(o,{iconKey:"search",width:20,height:20})],void 0),_:1},8,["disabled"])],void 0),_:1},8,["content"])])],2),tu("div",rse,[iu(v,{ref:"customTicketFiltersRef",onApplyFilter:s.handleCustomFilter,disabled:"advanced"===e.filter_type},null,8,["onApplyFilter","disabled"]),iu(l,{effect:"dark",content:e.$t("Saved Filters"),placement:"top"},{default:vr(()=>[e.has_pro?(zd(),Kd(r,{key:0,onClick:t[5]||(t[5]=e=>s.fetchLabelSearch()),class:"fs_outline_btn"},{default:vr(()=>[iu(o,{iconKey:"labelSearch",width:20,height:20})],void 0),_:1})):ru("",!0)],void 0),_:1},8,["content"]),iu(S,{trigger:"click",placement:"bottom-start",width:"300","popper-class":"fs_popover"},{reference:vr(()=>[tu("span",null,[iu(l,{effect:"dark",content:e.$t("Sort"),placement:"top"},{default:vr(()=>[iu(r,{class:"fs_outline_btn"},{default:vr(()=>[iu(o,{iconKey:"sort",width:20,height:20})],void 0),_:1})],void 0),_:1},8,["content"])])]),default:vr(()=>[tu("div",lse,[tu("label",cse,me(e.$t("Sort By")),1),tu("div",dse,[iu(y,{onChange:s.fetchTickets,modelValue:e.order_by,"onUpdate:modelValue":t[6]||(t[6]=t=>e.order_by=t)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.filterColumns,(e,t)=>(zd(),Kd(b,{key:t,value:t},{default:vr(()=>[su(me(e),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["onChange","modelValue"])]),t[37]||(t[37]=tu("hr",null,null,-1)),iu(y,{class:"fs_switch_button",size:"small",modelValue:e.order_type,"onUpdate:modelValue":t[7]||(t[7]=t=>e.order_type=t),onChange:s.fetchTickets},{default:vr(()=>[iu(x,{value:"ASC"},{default:vr(()=>[su(me(e.$t("Ascending")),1)],void 0),_:1}),iu(x,{value:"DESC"},{default:vr(()=>[su(me(e.$t("Descending")),1)],void 0),_:1})],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1}),iu(S,{trigger:"click",placement:"bottom-end",width:"280","popper-class":"fs_popover fs_display_settings_popover"},{reference:vr(()=>[tu("span",null,[iu(l,{effect:"dark",content:e.$t("Display Settings"),placement:"top"},{default:vr(()=>[iu(r,{class:"fs_outline_btn"},{default:vr(()=>[iu(o,{iconKey:"layoutView",width:20,height:20})],void 0),_:1})],void 0),_:1},8,["content"])])]),default:vr(()=>[tu("div",use,[tu("div",pse,[tu("label",hse,me(e.$t("Layout Type")),1)]),tu("div",fse,[iu(y,{modelValue:e.ticketLayout,"onUpdate:modelValue":t[8]||(t[8]=t=>e.ticketLayout=t),onChange:s.setTicketLayout},{default:vr(()=>[iu(b,{value:"default"},{default:vr(()=>[su(me(e.$t("Default"))+" ",1),tu("span",gse,me(e.$t("(Standard spacing)")),1)],void 0),_:1}),iu(b,{value:"compact"},{default:vr(()=>[su(me(e.$t("Compact"))+" ",1),tu("span",mse,me(e.$t("(Maximum visibility)")),1)],void 0),_:1}),iu(b,{value:"grid"},{default:vr(()=>[su(me(e.$t("Grid View"))+" ",1),tu("span",_se,me(e.$t("(Table columns)")),1)],void 0),_:1})],void 0),_:1},8,["modelValue","onChange"])]),t[38]||(t[38]=tu("hr",null,null,-1)),tu("div",vse,[tu("label",bse,me(e.$t("Display Settings")),1),iu(r,{onClick:t[9]||(t[9]=e=>s.resetActiveVisibility()),link:"",size:"small"},{default:vr(()=>[iu(o,{iconKey:"refresh",width:20,height:20})],void 0),_:1})]),tu("div",yse,[(zd(!0),qd(Fd,null,sc(s.activeVisibilityOptions,e=>(zd(),Kd(c,{key:e.key,modelValue:s.activeVisibility[e.key],"onUpdate:modelValue":t=>s.activeVisibility[e.key]=t,onChange:t[10]||(t[10]=e=>s.saveActiveVisibility())},{default:vr(()=>[su(me(e.label),1)],void 0),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])])],void 0),_:1})])])]),e.searchActive||e.search.length>0?(zd(),qd("div",xse,[tu("div",Sse,[iu(C,{onKeyup:t[11]||(t[11]=Ih(e=>s.fetchTickets(),["enter"])),placeholder:e.$t("Search"),modelValue:e.search,"onUpdate:modelValue":t[12]||(t[12]=t=>e.search=t),class:"fs_text_input fs_table_search_input",ref:"searchInput",disabled:"advanced"===e.filter_type,clearable:""},{prefix:vr(()=>[iu(u,null,{default:vr(()=>[iu(w)],void 0),_:1})]),_:1},8,["placeholder","modelValue","disabled"]),iu(r,{onClick:t[13]||(t[13]=e=>s.closeSearch()),class:"fs_text_btn",text:""},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1})])])):ru("",!0)]),e.activeFilters&&Object.keys(e.activeFilters).length?(zd(),qd("div",wse,[tu("div",Cse,[(zd(!0),qd(Fd,null,sc(e.activeFilters,(i,a)=>(zd(),qd("div",{key:a,class:se(["fs_filter_tag",{fs_filter_tag_with_select:"product_id"===a}])},[tu("div",Ese,[iu(o,{iconKey:s.getFilterIcon(a),width:20,height:20,class:"fs_filter_icon"},null,8,["iconKey"]),su(" "+me(s.getFilterLabel(a)),1)]),"product_id"!==a?(zd(),qd("div",kse,[tu("span",null,me(s.getFilterDisplayValue(a,i)),1)])):(zd(),qd("div",Tse,[iu(k,{modelValue:e.filters.product_id,"onUpdate:modelValue":t[14]||(t[14]=t=>e.filters.product_id=t),multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":2,placeholder:e.$t("Select products"),class:"fs_product_filter_select",onChange:s.handleProductFilterChange},{default:vr(()=>{var t;return[(zd(!0),qd(Fd,null,sc((null==(t=e.appVars)?void 0:t.support_products)||[],e=>(zd(),Kd(E,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))]},void 0),_:1},8,["modelValue","placeholder","onChange"])])),tu("div",{class:"fs_filter_close",onClick:e=>s.removeFilter(a)},[...t[39]||(t[39]=[tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[tu("path",{d:"M10.0001 8.93906L13.7126 5.22656L14.7731 6.28706L11.0606 9.99956L14.7731 13.7121L13.7126 14.7726L10.0001 11.0601L6.28755 14.7726L5.22705 13.7121L8.93955 9.99956L5.22705 6.28706L6.28755 5.22656L10.0001 8.93906Z",fill:"#525866"})],-1)])],8,Ase)],2))),128))]),tu("div",Rse,[iu(r,{onClick:t[15]||(t[15]=e=>s.clearAllFilters()),link:"",class:"fs_reset_filter_btn"},{default:vr(()=>[su(me(e.$t("Reset Filter")),1)],void 0),_:1})])])):ru("",!0),tu("div",Ise,["advanced"===e.filter_type?(zd(),qd("div",Dse,[e.has_pro?(zd(),qd("div",Ose,[e.appReady?(zd(),qd("div",Mse,[(zd(!0),qd(Fd,null,sc(e.advanced_filters,(t,i)=>(zd(),qd("div",{key:i},[tu("div",Nse,[iu(T,{onMaybeRemove:e=>s.maybeRemoveGroup(i),items:t},null,8,["onMaybeRemove","items"])]),i+1!=e.advanced_filters.length?(zd(),qd("div",Lse,[tu("div",Pse,me(e.$t("OR")),1)])):ru("",!0)]))),128))])):ru("",!0),tu("div",{class:"fs_filter_separator",onClick:t[16]||(t[16]=e=>s.addConditionGroup())},[tu("div",Fse,[t[40]||(t[40]=tu("svg",{class:"fs_add_and_icon",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"#0E121B"})],-1)),su(" "+me(e.$t("OR")),1)])]),tu("div",Bse,[tu("div",$se,[s.countAdvancedFilterData(e.advanced_filters)?(zd(),Kd(r,{key:0,type:"primary",onClick:s.openSaveSearchModal,class:"fs_saved_search_btn"},{default:vr(()=>[iu(o,{iconKey:"labelSearch",width:20,height:20}),tu("span",Vse,me(e.label_search_id?e.$t("Update Filter"):e.$t("Save Filter")),1)],void 0),_:1},8,["onClick"])):ru("",!0)]),tu("div",Use,[tu("a",{class:"fs_filter_clear_btn",onClick:t[17]||(t[17]=(...e)=>s.resetAdvancedFilters&&s.resetAdvancedFilters(...e))},me(e.$t("Reset Filters")),1),iu(r,{class:"fs_filled_btn",type:"primary",onClick:t[18]||(t[18]=e=>s.fetchTickets())},{default:vr(()=>[su(me(e.$t("Apply Filter")),1)],void 0),_:1})])])])):(zd(),Kd(A,{key:1,heading:e.$t("advance_filter_promo"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_advanced_filters"},null,8,["heading","description","button-text"]))])):ru("",!0),e.tickets.length&&n.show_bulk_actions&&"grid"!==e.ticketLayout?(zd(),qd("div",{key:1,class:se(["fs_select_all_section",{fs_advance_section_display:"advanced"===e.filter_type}])},[tu("div",Hse,[tu("div",zse,[iu(c,{indeterminate:e.isIndeterminate,modelValue:e.selectAllChecked,"onUpdate:modelValue":t[19]||(t[19]=t=>e.selectAllChecked=t),onChange:s.handleSelectAll},{default:vr(()=>[su(me(e.$t("Select All")),1)],void 0),_:1},8,["indeterminate","modelValue","onChange"]),tu("span",Yse,me(e.ticket_selections.length)+" "+me(e.$t("out of"))+" "+me(e.pagination.total)+" "+me(e.$t("tickets")),1)])])],2)):ru("",!0),e.app_ready&&!e.first_time_loading?(zd(),qd(Fd,{key:2},["grid"!==e.ticketLayout?br((zd(),qd("div",{key:0,"element-loading-text":"Loading...",class:se(["fs_tickets_list",{fs_tickets_list_compact:"compact"===e.ticketLayout}])},[(zd(!0),qd(Fd,null,sc(e.tickets,i=>{var a,r,d,u,p,h;return zd(),qd("div",{class:"fs_ticket_item",key:i.id,onClick:e=>s.gotToTicket(i,e)},[tu("div",Wse,[tu("div",jse,[tu("div",qse,[n.show_bulk_actions?(zd(),Kd(c,{key:0,onClick:t[20]||(t[20]=Ah(()=>{},["stop"])),"model-value":e.ticket_selections.includes(i.id),onChange:e=>s.handleTicketSelection(i.id)},null,8,["model-value","onChange"])):ru("",!0),tu("div",Kse,[e.fieldVisibility.title?(zd(),qd("a",{key:0,href:e.$router.resolve({name:"view_ticket",params:{ticket_id:i.id}}).href,onClick:e=>s.goToTicketView(i,e),class:"fs_ticket_title"},[tu("span",null,me(i.title),1)],8,Xse)):ru("",!0),e.fieldVisibility.description&&"compact"===e.ticketLayout?(zd(),qd("span",Zse,[t[41]||(t[41]=tu("span",{class:"fs_inline_separator"},"–",-1)),tu("span",{class:"fs_inline_desc_text",innerHTML:s.getExcerpt(i)},null,8,Qse)])):ru("",!0),e.fieldVisibility.author?(zd(),qd("span",Jse,"by "+me(null==(a=i.customer)?void 0:a.first_name),1)):ru("",!0),iu(l,{effect:"dark",content:e.$t("Internal Ticket ID")+": #"+i.id,placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",eoe," #"+me(i.display_ticket_number||i.serial_number||i.id),1)],void 0),_:2},1032,["content"])]),e.fieldVisibility.tags&&i.tags.length?(zd(),Kd(R,{key:1,onClick:t[21]||(t[21]=Ah(()=>{},["stop"])),tags:i.tags,ticket_id:i.id,mode:"ticket_list"},null,8,["tags","ticket_id"])):ru("",!0),i.source&&e.fieldVisibility.source?(zd(),Kd(l,{key:2,effect:"dark",content:e.ucFirst(i.source),placement:"top"},{default:vr(()=>[tu("span",toe,[n.imageErrors[i.id+"_"+i.source]?(zd(),qd("span",aoe,me(i.source.charAt(0).toUpperCase()),1)):(zd(),qd("img",{key:0,src:e.$getSourceIcon(i.source),alt:e.ucFirst(i.source),onError:e=>n.imageErrors[i.id+"_"+i.source]=!0,class:"fs_ticket_source_img"},null,40,ioe))])],void 0),_:2},1032,["content"])):ru("",!0),e.fieldVisibility.status&&"new"===i.status?(zd(),qd("span",noe)):ru("",!0)]),e.fieldVisibility.description?(zd(),qd("div",soe,[tu("p",{class:"fs_tk_preview_text",innerHTML:s.getExcerpt(i)},null,8,ooe)])):ru("",!0)]),tu("div",roe,[tu("div",loe,[e.fieldVisibility.response_count&&i.response_count?(zd(),Kd(l,{key:0,effect:"dark",content:e.$t("Response Count"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",coe,[iu(o,{iconKey:"ticketCount",width:16,height:16}),su(" "+me(i.response_count),1)])],void 0),_:2},1032,["content"])):ru("",!0),e.fieldVisibility.product&&i.product&&i.product.title?(zd(),Kd(l,{key:1,effect:"dark",content:e.$t("Product")+": "+((null==(r=i.product)?void 0:r.title)||""),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",doe,[iu(o,{iconKey:"productIcon",width:16,height:16}),su(" "+me(i.product.title),1)])],void 0),_:2},1032,["content"])):ru("",!0),e.fieldVisibility.mailbox&&i.mailbox&&i.mailbox.name&&(null==(u=null==(d=e.appVars)?void 0:d.mailboxes)?void 0:u.length)>1?(zd(),Kd(l,{key:2,effect:"dark",content:e.$t("Mailbox")+": "+((null==(p=i.mailbox)?void 0:p.name)||""),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",uoe,[iu(o,{iconKey:"businessBoxIcon",width:16,height:16}),su(" "+me(i.mailbox.name),1)])],void 0),_:2},1032,["content"])):ru("",!0),ru("",!0)]),tu("div",poe,[iu(I,{activities:i.live_activity},null,8,["activities"]),e.fieldVisibility.status&&"new"!==i.status?(zd(),Kd(l,{key:0,effect:"dark",content:e.$t("Status")+": "+(e.appVars.ticket_statuses[i.status]||i.status),placement:"top",trigger:"hover"},{default:vr(()=>{var t;return[tu("span",{class:se(["fs_status_badge",`fs_status_${null==(t=i.status)?void 0:t.toLowerCase()}`])},me(e.appVars.ticket_statuses[i.status]||i.status),3)]},void 0),_:2},1032,["content"])):ru("",!0),e.fieldVisibility.client_priority&&i.client_priority?(zd(),Kd(l,{key:1,effect:"dark",content:e.$t("Client Priority")+": "+(e.appVars.client_priorities[i.client_priority]||i.client_priority),placement:"top",trigger:"hover"},{default:vr(()=>{var t,a;return[tu("span",{class:se(["fs_client_priority_badge",`fs_client_priority_${null==(t=i.client_priority)?void 0:t.toLowerCase()}`])},[tu("span",{class:se(["fs_priority_dot",`fs_priority_dot_${null==(a=i.client_priority)?void 0:a.toLowerCase()}`])},null,2),su(" "+me(e.appVars.client_priorities[i.client_priority]||i.client_priority),1)],2)]},void 0),_:2},1032,["content"])):ru("",!0),e.fieldVisibility.waiting_time&&i.waiting_since?(zd(),Kd(l,{key:2,effect:"dark",content:e.$t("Waiting Time")+": "+i.waiting_since,placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",hoe,[iu(o,{iconKey:"clock",width:16,height:16}),su(" "+me(e.$timeDiff(i.waiting_since)),1)])],void 0),_:2},1032,["content"])):ru("",!0),e.fieldVisibility.agent&&i.agent?(zd(),Kd(l,{key:3,effect:"dark",content:e.$t("Assigned Agent: ")+((null==(h=i.agent)?void 0:h.full_name)||e.$t("Unassigned")),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",foe,[iu(o,{iconKey:"agent",width:14,height:14}),tu("span",goe,me(i.agent.full_name||e.$t("Unassigned")),1)])],void 0),_:2},1032,["content"])):ru("",!0)])])])],8,Gse)}),128)),e.tickets.length?ru("",!0):(zd(),qd("div",moe,[tu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,_oe),tu("p",null,me(e.$t("No Results Found")),1)]))],2)),[[V,e.loading]]):"grid"===e.ticketLayout?br((zd(),qd("div",voe,[tu("div",boe,[tu("div",{class:"fs_grid_table",style:ee({"--fs-grid-cols":s.gridTemplateColumns})},[tu("div",yoe,[tu("div",xoe,[n.show_bulk_actions?(zd(),Kd(c,{key:0,indeterminate:e.isIndeterminate,"model-value":e.selectAllChecked,onChange:s.handleSelectAll,onClick:t[22]||(t[22]=Ah(()=>{},["stop"]))},null,8,["indeterminate","model-value","onChange"])):ru("",!0)]),tu("div",Soe,[tu("span",null,me(e.$t("Title")),1)]),e.gridFieldVisibility.agent?(zd(),qd("div",woe,[tu("span",null,me(e.$t("Agent")),1)])):ru("",!0),e.gridFieldVisibility.product?(zd(),qd("div",Coe,me(e.$t("Product")),1)):ru("",!0),e.gridFieldVisibility.response_count?(zd(),qd("div",Eoe,me(e.$t("Responses")),1)):ru("",!0),e.gridFieldVisibility.client_priority?(zd(),qd("div",koe,me(e.$t("Priority")),1)):ru("",!0),e.gridFieldVisibility.waiting_time?(zd(),qd("div",Toe,me(e.$t("Date")),1)):ru("",!0),e.gridFieldVisibility.tags?(zd(),qd("div",Aoe,[tu("span",null,me(e.$t("Tags")),1)])):ru("",!0),e.gridFieldVisibility.status?(zd(),qd("div",Roe,me(e.$t("Status")),1)):ru("",!0),e.gridFieldVisibility.mailbox?(zd(),qd("div",Ioe,me(e.$t("Mailbox")),1)):ru("",!0)]),(zd(!0),qd(Fd,null,sc(e.tickets,i=>{var a,r,d,u,p,h,f;return zd(),qd("div",{class:se(["fs_grid_row",{fs_grid_row_selected:e.ticket_selections.includes(i.id)}]),key:i.id,onClick:e=>s.gotToTicket(i,e)},[tu("div",Ooe,[n.show_bulk_actions?(zd(),Kd(c,{key:0,onClick:t[23]||(t[23]=Ah(()=>{},["stop"])),"model-value":e.ticket_selections.includes(i.id),onChange:e=>s.handleTicketSelection(i.id)},null,8,["model-value","onChange"])):ru("",!0)]),tu("div",Moe,[tu("div",Noe,[(null==(a=i.customer)?void 0:a.photo)?(zd(),qd("img",{key:0,src:i.customer.photo,alt:i.customer.first_name,class:"fs_grid_avatar_img"},null,8,Loe)):(zd(),qd("span",Poe,me(s.getInitials(i.customer)),1))]),tu("div",Foe,[tu("div",Boe,[tu("a",{href:e.$router.resolve({name:"view_ticket",params:{ticket_id:i.id}}).href,onClick:e=>s.goToTicketView(i,e),class:"fs_grid_title_text"},me(i.title),9,$oe),e.gridFieldVisibility.author?(zd(),qd("span",Voe,[su(me(e.$t("by"))+" "+me(null==(r=i.customer)?void 0:r.first_name)+" ",1),iu(l,{effect:"dark",content:e.$t("Internal Ticket ID")+": #"+i.id,placement:"top",trigger:"hover"},{default:vr(()=>[tu("em",null,"#"+me(i.display_ticket_number||i.serial_number||i.id),1)],void 0),_:2},1032,["content"])])):ru("",!0),i.source&&e.gridFieldVisibility.source?(zd(),qd("span",{key:1,class:"fs_grid_source_icon",onClick:t[24]||(t[24]=Ah(()=>{},["stop"]))},[iu(l,{effect:"dark",content:e.ucFirst(i.source),placement:"top"},{default:vr(()=>[tu("span",Uoe,[n.imageErrors[i.id+"_"+i.source]?(zd(),qd("span",zoe,me(i.source.charAt(0).toUpperCase()),1)):(zd(),qd("img",{key:0,src:e.$getSourceIcon(i.source),alt:e.ucFirst(i.source),onError:e=>n.imageErrors[i.id+"_"+i.source]=!0,class:"fs_grid_source_img"},null,40,Hoe))])],void 0),_:2},1032,["content"])])):ru("",!0),"new"===i.status?(zd(),qd("span",Yoe)):ru("",!0),iu(I,{activities:i.live_activity,onClick:t[25]||(t[25]=Ah(()=>{},["stop"]))},null,8,["activities"])]),e.gridFieldVisibility.description?(zd(),qd("p",{key:0,class:"fs_grid_description",innerHTML:s.getExcerpt(i)},null,8,Goe)):ru("",!0)])]),e.gridFieldVisibility.agent?(zd(),qd("div",Woe,[i.agent?(zd(),Kd(l,{key:0,effect:"dark",content:i.agent.full_name,placement:"top"},{default:vr(()=>[tu("span",joe,me(i.agent.first_name),1)],void 0),_:2},1032,["content"])):(zd(),qd("span",qoe,"—"))])):ru("",!0),e.gridFieldVisibility.product?(zd(),qd("div",Koe,[(null==(d=i.product)?void 0:d.title)?(zd(),Kd(l,{key:0,effect:"dark",content:i.product.title,placement:"top"},{default:vr(()=>[tu("span",Xoe,me(i.product.title),1)],void 0),_:2},1032,["content"])):(zd(),qd("span",Zoe,"—"))])):ru("",!0),e.gridFieldVisibility.response_count?(zd(),qd("div",Qoe,[i.response_count?(zd(),qd("span",Joe,[iu(o,{iconKey:"ticketCount",width:16,height:16}),su(" "+me(i.response_count),1)])):(zd(),qd("span",ere,"—"))])):ru("",!0),e.gridFieldVisibility.client_priority?(zd(),qd("div",tre,[i.client_priority?(zd(),qd("span",{key:0,class:se(["fs_client_priority_badge",`fs_client_priority_${null==(u=i.client_priority)?void 0:u.toLowerCase()}`])},[tu("span",{class:se(["fs_priority_dot",`fs_priority_dot_${null==(p=i.client_priority)?void 0:p.toLowerCase()}`])},null,2),su(" "+me(e.appVars.client_priorities[i.client_priority]||i.client_priority),1)],2)):(zd(),qd("span",ire,"—"))])):ru("",!0),e.gridFieldVisibility.waiting_time?(zd(),qd("div",are,[tu("div",nre,[i.created_at?(zd(),Kd(l,{key:0,effect:"dark",content:e.$t("Ticket Created"),placement:"top"},{default:vr(()=>[tu("span",sre,[iu(o,{iconKey:"clock",width:14,height:14}),su(" "+me(e.$timeDiff(i.created_at)),1)])],void 0),_:2},1032,["content"])):ru("",!0),i.waiting_since?(zd(),Kd(l,{key:1,effect:"dark",content:e.$t("Waiting Since"),placement:"top"},{default:vr(()=>[tu("span",ore,[iu(o,{iconKey:"clock",width:14,height:14}),su(" "+me(e.$timeDiff(i.waiting_since)),1)])],void 0),_:2},1032,["content"])):ru("",!0)])])):ru("",!0),e.gridFieldVisibility.tags?(zd(),qd("div",rre,[i.tags&&i.tags.length?(zd(),Kd(R,{key:0,onClick:t[26]||(t[26]=Ah(()=>{},["stop"])),tags:i.tags,ticket_id:i.id,mode:"ticket_list"},null,8,["tags","ticket_id"])):(zd(),qd("span",lre,"—"))])):ru("",!0),e.gridFieldVisibility.status?(zd(),qd("div",cre,[i.status?(zd(),qd("span",{key:0,class:se(["fs_status_badge",`fs_status_${null==(h=i.status)?void 0:h.toLowerCase()}`])},me(e.appVars.ticket_statuses[i.status]||i.status),3)):(zd(),qd("span",dre,"—"))])):ru("",!0),e.gridFieldVisibility.mailbox?(zd(),qd("div",ure,[(null==(f=i.mailbox)?void 0:f.name)?(zd(),qd("span",pre,me(i.mailbox.name),1)):(zd(),qd("span",hre,"—"))])):ru("",!0)],10,Doe)}),128))],4)]),e.tickets.length?ru("",!0):(zd(),qd("div",fre,[tu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,gre),tu("p",null,me(e.$t("No Results Found")),1)]))])),[[V,e.loading]]):ru("",!0)],64)):(zd(),qd("div",mre,[iu(D,{rows:10,animated:""})])),e.tickets.length?(zd(),qd("div",_re,[tu("span",vre,[tu("p",null,"Page "+me(e.pagination.current_page)+" of "+me(Math.ceil(e.pagination.total/e.pagination.per_page)),1),iu(O,{onFetch:t[27]||(t[27]=e=>s.fetchTickets()),pagination:e.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",bre,[iu(O,{onFetch:t[28]||(t[28]=e=>s.fetchTickets()),pagination:e.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])]),iu(N,{"append-to-body":!0,modelValue:n.add_ticket_modal,"onUpdate:modelValue":t[30]||(t[30]=e=>n.add_ticket_modal=e),width:"50%",class:"fs_dialog fs_tk_dialog"},{default:vr(()=>[iu(M,{onClose:t[29]||(t[29]=e=>n.add_ticket_modal=!1)})],void 0),_:1},8,["modelValue"]),iu(N,{title:e.$t("Save search"),modelValue:n.isLabelSearchOpen,"onUpdate:modelValue":t[33]||(t[33]=e=>n.isLabelSearchOpen=e),onClose:t[34]||(t[34]=e=>n.isLabelSearchOpen=!1),class:"fs_dialog"},{footer:vr(()=>[tu("span",yre,[iu(r,{class:"fs_outline_btn",onClick:t[32]||(t[32]=e=>n.isLabelSearchOpen=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(r,{disabled:n.saving,class:"fs_filled_btn",type:"success",onClick:s.handleSaveSearch},{default:vr(()=>[su(me(e.$t("Save")),1)],void 0),_:1},8,["disabled","onClick"])),[[V,n.saving]])])]),default:vr(()=>[iu(P,{"label-position":"top"},{default:vr(()=>[iu(L,{label:e.$t("Search Name")},{default:vr(()=>[iu(C,{type:"text",placeholder:e.$t("Search Name"),modelValue:e.label_search_name,"onUpdate:modelValue":t[31]||(t[31]=t=>e.label_search_name=t)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1},8,["title","modelValue"]),iu(B,{"with-header":!1,"append-to-body":!0,modelValue:n.openLabelSearchDrawer,"onUpdate:modelValue":t[35]||(t[35]=e=>n.openLabelSearchDrawer=e),class:"fs-el-drawer"},{footer:vr(()=>[tu("div",xre,[iu(r,{class:"fs_outline_btn",onClick:s.closeSavedSearchListModal},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1},8,["onClick"])])]),default:vr(()=>[iu(F,{labelSearchList:e.labelSearchList,filtersValue:e.advanced_filters,onClose:s.closeSavedSearchListModal,onGetSavedSearch:s.handleAdvanceSearch,onSetLabelSearchItem:s.handleLabelSearchEdit,onDelete:s.handleLabelSearchDelete},null,8,["labelSearchList","filtersValue","onClose","onGetSavedSearch","onSetLabelSearchItem","onDelete"])],void 0),_:1},8,["modelValue"]),e.appReady&&n.show_bulk_actions?(zd(),Kd($,{key:0,onFetchTickets:t[36]||(t[36]=e=>s.refreshTickets())})):ru("",!0)])}]]),wre={class:"fs_edit_response"},Cre={class:"fs_edit_response_actions"};const Ere=lH({name:"EditResponse",props:{response:{type:Object,required:!0},ticketId:{type:[String,Number],default:()=>""}},components:{WpEditor:Qee},data(){return{saving:!1,filteredAgents:this.appVars.support_agents,popup:!1,editor_ready:!0,draftReplyApprovePermission:this.appVars.me.permissions.includes("fst_approve_draft_reply")}},computed:{resolvedTicketId(){return this.response.ticket_id||this.ticketId}},methods:{editResponse(){this.saving=!0,this.$put(`tickets/${this.resolvedTicketId}/responses/${this.response.id}`,{content:this.response.content}).then(e=>{this.$notify({message:e.message,type:"success"}),this.$emit("updated",e.response)}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}}},[["render",function(e,t,i,a,n,s){const o=Jl("wp-editor"),r=Sk;return zd(),qd("div",wre,[n.editor_ready?(zd(),Kd(o,{key:0,modelValue:i.response.content,"onUpdate:modelValue":t[0]||(t[0]=e=>i.response.content=e),ticketId:s.resolvedTicketId,is_agent:"yes"},null,8,["modelValue","ticketId"])):ru("",!0),tu("div",Cre,[iu(r,{class:"fs_filled_btn",size:"large",type:"success",onClick:t[1]||(t[1]=e=>s.editResponse())},{default:vr(()=>[su(me(n.draftReplyApprovePermission&&"draft_response"===i.response.conversation_type?e.$t("Update And Approve Response"):e.$t("Update Response")),1)],void 0),_:1})])])}]]),kre={key:0,class:"fs_field_label",slot:"label"},Tre=["innerHTML"],Are=["innerHTML"];const Rre=lH({name:"withLabelField",props:["field"]},[["render",function(e,t,i,a,n,s){const o=Jl("InfoFilled"),r=KS,l=ZC,c=oC;return zd(),Kd(c,{class:se(["fs_field_wrapper",i.field.wrapper_class])},{default:vr(()=>[i.field.label?(zd(),qd("div",kre,[su(me(i.field.label)+" ",1),i.field.help?(zd(),Kd(l,{key:0,"popper-class":"sidebar-popper",effect:"dark",placement:"top"},{content:vr(()=>[tu("span",{innerHTML:i.field.help},null,8,Tre)]),default:vr(()=>[iu(r,null,{default:vr(()=>[iu(o)],void 0),_:1})],void 0),_:1})):ru("",!0)])):ru("",!0),rc(e.$slots,"default"),i.field.inline_help&&"inline-checkbox"!==i.field.type?(zd(),qd("p",{key:1,class:"fc_inline_help",innerHTML:i.field.inline_help},null,8,Are)):ru("",!0)],void 0),_:3},8,["class"])}]]);const Ire=lH({name:"InputText",props:["field","modelValue"],emits:["update:modelValue"],data(){return{modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,i,a,n,s){const o=cE;return zd(),Kd(o,{disabled:i.field.disabled,type:i.field.data_type,placeholder:i.field.placeholder,min:i.field.min,max:i.field.max,modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e)},null,8,["disabled","type","placeholder","min","max","modelValue"])}]]);const Dre=lH({name:"WPEditorField",components:{WpBaseEditor:Qee},props:["field","modelValue"],emits:["update:modelValue"],data(){return{modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,i,a,n,s){const o=Jl("wp-base-editor");return zd(),Kd(o,{showShortcodes:i.field.show_shortcodes,showSavedReplies:i.field.show_saved_replies,modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e)},null,8,["showShortcodes","showSavedReplies","modelValue"])}]]);const Ore=lH({name:"InputRadioImage",props:["field","value","size"],data(){return{model:this.value,boxSize:this.size||120}},watch:{model(e){this.$emit("input",e)}}},[["render",function(e,t,i,a,n,s){const o=WR,r=jR;return zd(),Kd(r,{class:"fc_image_radios",modelValue:n.model,"onUpdate:modelValue":t[0]||(t[0]=e=>n.model=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.field.options,(e,t)=>(zd(),Kd(o,{key:t,value:e.id},{default:vr(()=>[tu("div",{style:ee({backgroundImage:"url("+e.image+")",width:n.boxSize+"px",height:n.boxSize+"px"}),class:se([n.model==e.id?"fc_image_active":"","fc_image_box"])},[tu("span",null,me(e.label),1)],6)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["modelValue"])}]]);const Mre=lH({name:"InputRadio",props:["field","modelValue"],emits:["update:modelValue"],data(){return{modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,i,a,n,s){const o=WR,r=jR;return zd(),Kd(r,{class:se(i.field.wrapper_class),modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.field.options,(e,t)=>(zd(),Kd(o,{key:t,value:e.id},{default:vr(()=>[su(me(e.label),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["class","modelValue"])}]]),Nre={class:"fs_option_title"},Lre={key:0,class:"fs_option_id"};const Pre=lH({name:"InputOptions",props:["field","modelValue"],emits:["update:modelValue"],computed:{modelValueLocal(){return this.convertToInt(this.modelValue)}},methods:{convertToInt:e=>Array.isArray(e)?e.map(e=>parseInt(e)||e):parseInt(e)||e,updateValue(e){JSON.stringify(e)!==JSON.stringify(this.modelValue)&&this.$emit("update:modelValue",e)},getOptionLabel(e){return this.field.show_id?`${e.title} (${this.$t("Page ID")} #${e.id})`:e.title}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",null,[iu(r,{clearable:"",filterable:"",multiple:i.field.multiple,placeholder:i.field.placeholder,"model-value":s.modelValueLocal,"onUpdate:modelValue":s.updateValue},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.field.options,e=>(zd(),Kd(o,{key:e.id,label:s.getOptionLabel(e),value:e.id},{default:vr(()=>[tu("span",Nre,me(e.title),1),i.field.show_id?(zd(),qd("span",Lre,me(e.id),1)):ru("",!0)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["multiple","placeholder","model-value","onUpdate:modelValue"])])}]]),Fre={class:"fs_inline_checkbox_label"},Bre=["innerHTML"];const $re=lH({name:"InlineCheckbox",props:["field","value","modelValue"],emits:["input","update:modelValue"],computed:{falseValue(){return this.field.false_label||this.field["false-label"]},model:{get(){return void 0!==this.modelValue?this.modelValue:this.value},set(e){this.$emit("input",e),this.$emit("update:modelValue",e)}}}},[["render",function(e,t,i,a,n,s){const o=AR,r=Jl("InfoFilled"),l=KS,c=ZC;return zd(),qd("span",Fre,[iu(o,{"true-value":i.field.true_label,"false-value":s.falseValue,disabled:i.field.disabled,modelValue:s.model,"onUpdate:modelValue":t[0]||(t[0]=e=>s.model=e)},{default:vr(()=>[su(me(i.field.checkbox_label),1)],void 0),_:1},8,["true-value","false-value","disabled","modelValue"]),i.field.help?(zd(),Kd(c,{key:0,"popper-class":"sidebar-popper",effect:"dark",placement:"top"},{content:vr(()=>[tu("span",{innerHTML:i.field.help},null,8,Bre)]),default:vr(()=>[iu(l,{class:"fs_inline_checkbox_help_icon"},{default:vr(()=>[iu(r)],void 0),_:1})],void 0),_:1})):ru("",!0)])}]]);const Vre=lH({name:"InputText",props:["field","value"],data(){return{model:this.value}},watch:{model(e){this.$emit("input",e)}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=cE;return zd(),qd("div",null,[e.appVars.verified_senders.length?(zd(),Kd(r,{key:0,placeholder:i.field.placeholder,filterable:"","allow-create":"",modelValue:n.model,"onUpdate:modelValue":t[0]||(t[0]=e=>n.model=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.appVars.verified_senders,e=>(zd(),Kd(o,{key:e,value:e},null,8,["value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])):(zd(),Kd(l,{key:1,type:i.field.data_type,placeholder:i.field.placeholder,modelValue:n.model,"onUpdate:modelValue":t[1]||(t[1]=e=>n.model=e)},null,8,["type","placeholder","modelValue"]))])}]]);const Ure=lH({name:"CheckBoxGroup",props:["field","value"],data(){return{model:this.value}},emits:["input"],watch:{model(e){this.$emit("input",e)}},created(){pK(this.value)||(this.model=[])}},[["render",function(e,t,i,a,n,s){const o=AR,r=RR;return zd(),Kd(r,{modelValue:n.model,"onUpdate:modelValue":t[0]||(t[0]=e=>n.model=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.field.options,(e,t)=>(zd(),Kd(o,{key:t,value:t},{default:vr(()=>[su(me(e),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["modelValue"])}]]);const Hre=lH({name:"MultiSelect",props:["field","modelValue"],emits:["update:modelValue"],computed:{modelValueLocal:{get(){return Array.isArray(this.modelValue)?this.modelValue:[]},set(e){this.$emit("update:modelValue",e)}}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",null,[iu(r,{multiple:"",clearable:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:i.field.placeholder||"Select...",modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.field.options,e=>(zd(),Kd(o,{key:e.id,label:e.label,value:"number"===i.field.data_type?Number(e.id):e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])])}]]),zre={key:0,class:"fs_warn_alert"},Yre=["innerHTML"],Gre=["innerHTML"];const Wre=lH({name:"HtmlViewer",components:{IconPack:dY},props:["field"]},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack");return zd(),qd("div",{class:se(["fs_html_viewer",i.field.wrapper_class])},["fs_warn_alert_wrapper"===i.field.wrapper_class?(zd(),qd("div",zre,[iu(o,{"icon-key":"warning",width:20,height:20,class:"fs_warn_icon"}),tu("div",{class:"fs_warn_content",innerHTML:i.field.html},null,8,Yre)])):(zd(),qd("div",{key:1,innerHTML:i.field.html},null,8,Gre))],2)}]]),jre={style:{float:"left"}},qre={key:0,style:{float:"right",color:"#8492a6","font-size":"13px"}};const Kre=lH({name:"AgentSelectors",props:["field","modelValue"],emits:["update:modelValue"],data(){return{agents:this.appVars.support_agents,loading:!1,modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",null,[iu(r,{multiple:i.field.is_multiple,clearable:"",filterable:"",placeholder:i.field.placeholder,modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e)},{default:vr(()=>[i.field.extra_options?(zd(!0),qd(Fd,{key:0},sc(i.field.extra_options,(e,t)=>(zd(),Kd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128)):ru("",!0),(zd(!0),qd(Fd,null,sc(n.agents,e=>(zd(),Kd(o,{key:e.id,label:e.full_name,value:e.id},{default:vr(()=>[tu("span",jre,me(e.full_name),1),e.show_id?(zd(),qd("span",qre,me(e.id),1)):ru("",!0)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["multiple","placeholder","modelValue"])])}]]),Xre={style:{float:"left"}},Zre={key:0,style:{float:"right",color:"#8492a6","font-size":"13px"}};const Qre=lH({name:"TagSelectors",props:["field","modelValue"],emits:["update:modelValue"],data(){return{tags:this.appVars.ticket_tags,loading:!1,modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",null,[iu(r,{clearable:"",multiple:i.field.is_multiple,filterable:"",placeholder:i.field.placeholder,modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e)},{default:vr(()=>[i.field.extra_options?(zd(!0),qd(Fd,{key:0},sc(i.field.extra_options,(e,t)=>(zd(),Kd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128)):ru("",!0),(zd(!0),qd(Fd,null,sc(n.tags,e=>(zd(),Kd(o,{key:e.id,label:e.title,value:e.id},{default:vr(()=>[tu("span",Xre,me(e.title),1),e.show_id?(zd(),qd("span",Zre,me(e.id),1)):ru("",!0)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["multiple","placeholder","modelValue"])])}]]);const Jre=lH({name:"InputOptions",props:["field","modelValue"],emits:["update:modelValue"],data(){return{countries:{},loading:!1,modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}},methods:{fetchCountries(){if(window.fs_countries_options)return this.countries=window.fs_countries_options,!1;this.loading=!0,this.$get("options/countries").then(e=>{window.fs_countries_options=e.countries,this.countries=e.countries}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}},mounted(){this.fetchCountries()}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=WB;return zd(),qd("div",null,[br((zd(),Kd(r,{clearable:"",filterable:"",placeholder:i.field.placeholder,modelValue:n.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modelValueLocal=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.countries,(e,t)=>(zd(),Kd(o,{key:t,label:e,value:t},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])),[[l,n.loading]])])}]]),ele={class:"fs_table"};const tle=lH({name:"ObjectTabularInput",props:["field","modelValue"],emits:["update:modelValue"],watch:{modelValue(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,i,a,n,s){const o=cE;return zd(),qd("table",ele,[tu("thead",null,[tu("tr",null,[tu("th",null,me(i.field.source_label),1),tu("th",null,me(i.field.new_label),1)])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(i.field.options,(e,t)=>(zd(),qd("tr",null,[tu("th",null,me(e),1),tu("td",null,[iu(o,{modelValue:i.modelValue[t],"onUpdate:modelValue":e=>i.modelValue[t]=e},null,8,["modelValue","onUpdate:modelValue"])])]))),256))])])}]]),ile={name:"KeyboardShortcutsModal",props:{modelValue:{type:Boolean,default:!1},shortcutModalData:{type:Object,default:null}},emits:["update:modelValue"],data:()=>({activeTab:"mac"}),computed:{modalTitle(){return this.shortcutModalData?this.shortcutModalData.title:"Keyboard Shortcuts"},macLabel(){return this.shortcutModalData?this.shortcutModalData.mac_label:"macOS"},winLabel(){return this.shortcutModalData?this.shortcutModalData.win_label:"Windows"},actionLabel(){return this.shortcutModalData?this.shortcutModalData.action_label:"Action"},shortcutLabel(){return this.shortcutModalData?this.shortcutModalData.shortcut_label:"Shortcut"},macShortcuts(){return this.shortcutModalData?this.shortcutModalData.mac_shortcuts:[]},winShortcuts(){return this.shortcutModalData?this.shortcutModalData.win_shortcuts:[]}}},ale={class:"fs_keyboard_shortcuts_content"};const nle={class:"fs_global_form_builder"},sle={key:0,class:"fs_field_description"},ole=["innerHTML"];const rle=lH({name:"global_form_builder",components:{WithLabel:Rre,InputText:Ire,WpEditor:Qee,WpEditorField:Dre,ImageRadio:Ore,InputRadio:Mre,InputOptions:Pre,InlineCheckbox:$re,VerifiedEmailInput:Vre,CheckboxGroup:Ure,MultiSelect:Hre,HtmlViewer:Wre,AgentSelectors:Kre,TagSelectors:Qre,CountrySelector:Jre,ObjectTabularInput:tle,KeyboardShortcutsModal:lH(ile,[["render",function(e,t,i,a,n,s){const o=ZP,r=XP,l=fF,c=hF,d=dM;return zd(),Kd(d,{title:s.modalTitle,"model-value":i.modelValue,width:"560px",class:"fs_dialog fs_keyboard_shortcuts_dialog","append-to-body":"","onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},{default:vr(()=>[tu("div",ale,[iu(c,{modelValue:n.activeTab,"onUpdate:modelValue":t[0]||(t[0]=e=>n.activeTab=e),class:"fs_customer_management_tabs"},{default:vr(()=>[iu(l,{label:s.macLabel,name:"mac"},{default:vr(()=>[iu(r,{data:s.macShortcuts,size:"small",class:"fs_shortcuts_table"},{default:vr(()=>[iu(o,{label:s.actionLabel,prop:"action","min-width":"200"},null,8,["label"]),iu(o,{label:s.shortcutLabel,prop:"shortcut",width:"220"},null,8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["label"]),iu(l,{label:s.winLabel,name:"win"},{default:vr(()=>[iu(r,{data:s.winShortcuts,size:"small",class:"fs_shortcuts_table"},{default:vr(()=>[iu(o,{label:s.actionLabel,prop:"action","min-width":"200"},null,8,["label"]),iu(o,{label:s.shortcutLabel,prop:"shortcut",width:"220"},null,8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["label"])],void 0),_:1},8,["modelValue"])])],void 0),_:1},8,["title","model-value"])}]])},data:()=>({showKeyboardShortcutsModal:!1}),computed:{shortcutModalData(){return this.fields&&this.fields.keyboard_shortcuts&&this.fields.keyboard_shortcuts.shortcut_modal?this.fields.keyboard_shortcuts.shortcut_modal:null}},props:{formData:{type:Object,required:!1,default:()=>({})},label_position:{required:!1,type:String,default:()=>"top"},fields:{required:!0,type:Object}},methods:{nativeSave(){this.$emit("nativeSave",this.formData)},compare(e,t,i){switch(t){case"=":return e===i;case"!=":return e!==i;case"contains":return Array.isArray(i)&&i.includes(e);case"not_contains":return!Array.isArray(i)||!i.includes(e)}},dependancyPass(e){if(e&&e.dependency){const t=e.dependency.depends_on.split("/").reduce((e,t)=>e[t],this.formData);return!!this.compare(e.dependency.value,e.dependency.operator,t)}return!0}}},[["render",function(e,t,i,a,n,s){const o=Jl("with-label"),r=sC,l=Jl("keyboard-shortcuts-modal");return zd(),qd("div",nle,[iu(r,{onSubmit:Ah(s.nativeSave,["prevent"]),data:i.formData,"label-position":i.label_position},{default:vr(()=>[rc(e.$slots,"form_start"),(zd(!0),qd(Fd,null,sc(i.fields,(e,a)=>(zd(),qd(Fd,{key:a},[s.dependancyPass(e)?(zd(),Kd(o,{key:0,field:e},{default:vr(()=>[tu("div",{class:se(`fs_${e.type}_wrapper`)},[(zd(),Kd(tc(e.type),uu({modelValue:i.formData[a],"onUpdate:modelValue":e=>i.formData[a]=e,field:e},{ref_for:!0},e.props),null,16,["modelValue","onUpdate:modelValue","field"])),e.inline_help&&"inline-checkbox"==e.type?(zd(),qd("div",sle,[tu("span",{innerHTML:e.inline_help},null,8,ole),"keyboard_shortcuts"===a&&e.shortcut_modal?(zd(),qd("a",{key:0,href:"#",class:"fs_doc_link fs_keyboard_shortcuts_link",onClick:t[0]||(t[0]=Ah(e=>n.showKeyboardShortcutsModal=!0,["prevent"]))},me(e.shortcut_modal.title),1)):ru("",!0)])):ru("",!0)],2)],void 0),_:2},1032,["field"])):ru("",!0)],64))),128)),rc(e.$slots,"form_end")],void 0),_:3},8,["onSubmit","data","label-position"]),iu(l,{modelValue:n.showKeyboardShortcutsModal,"onUpdate:modelValue":t[1]||(t[1]=e=>n.showKeyboardShortcutsModal=e),"shortcut-modal-data":s.shortcutModalData},null,8,["modelValue","shortcut-modal-data"])])}]]),lle={class:"fs_customer_form"},cle={key:0,class:"fs_form_buttons"};const dle=lH({name:"CustomerForm",props:["customer","source"],components:{FormBuilder:rle},emits:["updated"],data:()=>({basic_fields:{},address_fields:{},loading:!1}),mounted(){this.fetchCustomerField()},methods:{async createCustomer(){this.loading=!0,this.$post("customers",this.customer).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("updated",e.customer)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async fetchCustomerField(){this.loading=!0,this.$get("customers/customerField/"+(this.customer.id?this.customer.id:0),{user_id:this.customer.user_id?this.customer.user_id:0}).then(e=>{this.address_fields=e.customerField.address_fields,this.basic_fields=e.customerField.basic_fields,this.basic_fields.first_name&&(this.basic_fields.first_name.required=!0),this.basic_fields.email&&(this.basic_fields.email.required=!0)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateCustomer(){this.loading=!0,this.$put(`customers/${this.customer.id}`,this.customer).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("updated",e.customer)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,i,a,n,s){const o=Jl("form-builder"),r=Sk,l=WB;return br((zd(),qd("div",lle,[iu(o,{fields:n.basic_fields,"form-data":i.customer},null,8,["fields","form-data"]),iu(o,{fields:n.address_fields,"form-data":i.customer},null,8,["fields","form-data"]),e.$route.params.customer_id||"ticket"===i.source?(zd(),qd("div",cle,[i.customer.id?(zd(),Kd(r,{key:0,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.updateCustomer()),type:"success"},{default:vr(()=>[su(me(e.$t("Update Customer")),1)],void 0),_:1})):(zd(),Kd(r,{key:1,class:"fs_filled_btn",onClick:t[1]||(t[1]=e=>s.createCustomer()),type:"primary"},{default:vr(()=>[su(me(e.$t("Create Customer")),1)],void 0),_:1}))])):ru("",!0)])),[[l,n.loading]])}]]),ule={key:0,class:"fs_crm_profile"},ple={class:"fs_crm_heading"},hle=["href"],fle={class:"fs_taggables_header_title"},gle={key:0,class:"fs_crm_profile_title"},mle={class:"fs_taggables"},_le={class:"fs_taggables_header"},vle={class:"fs_taggables_header_title"},ble={class:"fs_taggables_tags"},yle={class:"fs_popover_content_wrapper"},xle=["title"],Sle={class:"fs_popover_title"},wle={class:"fs_taggables"},Cle={class:"fs_taggables_header"},Ele={class:"fs_taggables_header_title"},kle={class:"fs_taggables_tags"},Tle={class:"fs_popover_content_wrapper"},Ale=["title"],Rle={class:"fs_popover_title"};const Ile=lH({name:"CRMProfile",props:["crm_profile"],data(){return{all_tags:this.appVars.fluentcrm_config.tags,all_lists:this.appVars.fluentcrm_config.lists,can_add_tags:this.appVars.fluentcrm_config.can_add_tags,attachedTags:[],attachedLists:[],popVisible:!1,saving:!1,listPopVisible:!1}},methods:{syncTags(){this.saving=!0,this.$post("tickets/sync-fluentcrm-tags",{contact_id:this.crm_profile.id,tags:this.attachedTags}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.crm_profile.tags=e.tags,this.popVisible=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},syncLists(){this.saving=!0,this.$post("tickets/sync-fluentcrm-lists",{contact_id:this.crm_profile.id,lists:this.attachedLists}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.crm_profile.lists=e.lists,this.listPopVisible=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){yX(this.crm_profile.tags,e=>{this.attachedTags.push(e.id)}),yX(this.crm_profile.lists,e=>{this.attachedLists.push(e.id)})}},[["render",function(e,t,i,a,n,s){const o=Jl("Plus"),r=KS,l=Jl("Close"),c=wA,d=SA,u=Sk,p=P$,h=WB;return i.crm_profile?(zd(),qd("div",ule,[tu("div",ple,[tu("a",{target:"_blank",rel:"noopener",href:i.crm_profile.view_url},[tu("span",fle,me(e.$t("CRM")),1),tu("span",{class:se(["el-tag el-tag--mini el-tag--danger","fc_status_"+i.crm_profile.status])},[t[8]||(t[8]=tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[tu("path",{d:"M8.60001 6.80039H12.8L7.40001 14.6004V9.20039H3.20001L8.60001 1.40039V6.80039Z",fill:"white"})],-1)),su(" "+me(e.ucFirst(i.crm_profile.status)),1)],2)],8,hle)]),i.crm_profile.name_mismatch?(zd(),qd("span",gle,me(i.crm_profile.full_name),1)):ru("",!0),tu("div",mle,[tu("div",_le,[tu("span",vle,me(e.$t("Contacts Tag")),1),tu("div",ble,[(zd(!0),qd(Fd,null,sc(i.crm_profile.tags,e=>(zd(),qd("span",{class:"el-tag el-tag--mini el-tag--plain",key:e.id},me(e.title),1))),128)),n.can_add_tags?(zd(),Kd(p,{key:0,placement:"bottom",width:400,visible:n.popVisible,trigger:"manual","popper-class":"fs_popover"},{reference:vr(()=>[tu("span",{onClick:t[0]||(t[0]=e=>n.popVisible=!n.popVisible),style:{cursor:"pointer"},class:"fs_add_tag_icon el-tag el-tag--mini el-tag--plain"},[iu(r,{style:{"vertical-align":"middle"}},{default:vr(()=>[iu(o)],void 0),_:1})])]),default:vr(()=>[tu("div",yle,[tu("span",{class:"fs_popover_close",onClick:t[1]||(t[1]=e=>n.popVisible=!1),title:e.$t("Close"),role:"button"},[iu(r,null,{default:vr(()=>[iu(l)],void 0),_:1})],8,xle),tu("h4",Sle,me(e.$t("Apply / Remove Tags on FluentCRM Profile")),1),iu(d,{multiple:!0,modelValue:n.attachedTags,"onUpdate:modelValue":t[2]||(t[2]=e=>n.attachedTags=e),size:"small"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.all_tags,e=>(zd(),Kd(c,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),br((zd(),Kd(u,{class:"fs_filled_btn",onClick:t[3]||(t[3]=e=>s.syncTags()),disabled:n.saving,type:"success",size:"small"},{default:vr(()=>[su(me(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[h,n.saving]])])],void 0),_:1},8,["visible"])):ru("",!0)])])]),tu("div",wle,[tu("div",Cle,[tu("span",Ele,me(e.$t("Contacts List")),1),tu("div",kle,[(zd(!0),qd(Fd,null,sc(i.crm_profile.lists,e=>(zd(),qd("span",{class:"el-tag el-tag--mini el-tag--plain",key:e.id},me(e.title),1))),128)),n.can_add_tags?(zd(),Kd(p,{key:0,placement:"bottom",width:400,visible:n.listPopVisible,trigger:"manual","popper-class":"fs_popover"},{reference:vr(()=>[tu("span",{onClick:t[4]||(t[4]=e=>n.listPopVisible=!n.listPopVisible),style:{cursor:"pointer"},class:"fs_add_tag_icon el-tag el-tag--mini el-tag--plain"},[iu(r,{style:{"vertical-align":"middle"}},{default:vr(()=>[iu(o)],void 0),_:1})])]),default:vr(()=>[tu("div",Tle,[tu("span",{class:"fs_popover_close",onClick:t[5]||(t[5]=e=>n.listPopVisible=!1),title:e.$t("Close"),role:"button"},[iu(r,null,{default:vr(()=>[iu(l)],void 0),_:1})],8,Ale),tu("h4",Rle,me(e.$t("Apply / Remove Lists on FluentCRM Profile")),1),iu(d,{multiple:!0,modelValue:n.attachedLists,"onUpdate:modelValue":t[6]||(t[6]=e=>n.attachedLists=e),size:"small",class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.all_lists,e=>(zd(),Kd(c,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),br((zd(),Kd(u,{onClick:t[7]||(t[7]=e=>s.syncLists()),disabled:n.saving,class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[h,n.saving]])])],void 0),_:1},8,["visible"])):ru("",!0)])])])])):ru("",!0)}]]),Dle={class:"fs_minute_input"},Ole={class:"fs-time-input-wrapper"},Mle={class:"fs-time-input-container"},Nle={class:"fs-time-label-box"},Lle={class:"fs-time-label"},Ple={class:"fs-time-input-wrapper"},Fle={class:"fs-time-input-container"},Ble={class:"fs-time-label-box"},$le={class:"fs-time-label"};const Vle={name:"TaskTimer",props:["ticket_id","customer_id"],components:{HourMinuteInput:lH({name:"HourMinuteInput",props:["modelValue"],emits:["update:modelValue"],data(){return{form:{hour:Math.floor(this.modelValue/60),minute:Math.floor(this.modelValue%60)}}},watch:{modelValue:{handler(e){const t=Math.floor(e/60),i=Math.floor(e%60);this.form.hour===t&&this.form.minute===i||(this.form.hour=t,this.form.minute=i)},immediate:!0},form:{handler(){const e=60*parseInt(this.form.hour||0)+parseInt(this.form.minute||0);this.$emit("update:modelValue",e)},deep:!0}}},[["render",function(e,t,i,a,n,s){const o=cE;return zd(),qd("div",Dle,[tu("div",Ole,[tu("div",Mle,[iu(o,{type:"number",modelValue:n.form.hour,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.hour=e),min:0,step:1,class:"fs-time-input"},null,8,["modelValue"]),tu("div",Nle,[tu("span",Lle,me(e.$t("Hours")),1)])])]),tu("div",Ple,[tu("div",Fle,[iu(o,{type:"number",modelValue:n.form.minute,"onUpdate:modelValue":t[1]||(t[1]=e=>n.form.minute=e),min:0,max:59,step:1,class:"fs-time-input"},null,8,["modelValue"]),tu("div",Ble,[tu("span",$le,me(e.$t("Minutes")),1)])])])])}]])},data:()=>({tracks:[],estimatedMinutes:0,loading:!1,updating:!1,estimatedForm:!1,logForm:!1,estimateTimePopoverPlacement:"left",newLog:{working_minutes:"",message:"",started_at:""}}),computed:{percentileCompleted(){return this.estimatedMinutes?Math.floor(this.totalLoggedMinutes/this.estimatedMinutes*100):0},totalLoggedMinutes(){return this.tracks.reduce((e,t)=>e+t.billable_minutes,0)},progressColor(){return this.percentileCompleted>100?"#EF4444":"#3B82F6"},totalLoggedLabel(){return this.formatMinutes(this.totalLoggedMinutes)},totalEstimationLabel(){return this.formatMinutes(this.estimatedMinutes)},textColor(){return this.percentileCompleted>=15?"white":"black"}},methods:{fetchTracks(){this.loading=!0,this.$get(`time-tracks/${this.ticket_id}`).then(e=>{this.tracks=e.tracks,this.estimatedMinutes=e.estimated_minutes}).catch(e=>this.$handleError(e))},toggleLog(){this.logForm=!this.logForm},formatMinutes(e){const t=parseInt(e);if(!t)return"";const i=Math.floor(t/60),a=t%60;return i?`${i}h ${a}m`:`${a}m`},logTime(){this.newLog.working_minutes<1?alert("Please enter valid time"):(this.updating=!0,this.$post(`time-tracks/${this.ticket_id}`,{customer_id:this.customer_id,...this.newLog}).then(e=>{this.tracks.push(e.track),this.logForm=!1,this.updating=!1,this.newLog={working_minutes:"",message:"",started_at:""}}).catch(e=>this.$handleError(e)).always(()=>{this.updating=!1,this.logForm=!1}))},updateEstimatedTime(){this.updating=!0,this.$post(`time-tracks/${this.ticket_id}/estimated-time`,{estimated_minutes:this.estimatedMinutes}).then(()=>{this.updating=!1,this.estimatedForm=!1}).catch(e=>this.$handleError(e)).always(()=>this.updating=!1)}},mounted(){this.fetchTracks(),window.innerWidth<817&&(this.estimateTimePopoverPlacement="bottom")}},Ule={class:"fs-task-timer-wrap"},Hle={class:"fs-progress-row"},zle={class:"fs-progress-percentage"},Yle={key:0,class:"fs-no-logging-text"},Gle={key:1,class:"fs-no-logging-text"},Wle={key:0,class:"fs-time-labels-row"},jle={class:"fs-time-label-text"},qle={class:"fs_detail_log"},Kle={class:"fs-time-track-agent"},Xle=["href"],Zle={class:"fs-time-label-text"},Qle={class:"fs-estimation-popover"},Jle={class:"fs-estimation-title"},ece={class:"fs-action-buttons-row"},tce={class:"fs-estimation-popover"},ice={class:"fs-estimation-title"},ace={key:1,class:"fs-new-timer"};const nce=lH(Vle,[["render",function(e,t,i,a,n,s){const o=EL,r=ZP,l=DE,c=XP,d=P$,u=Jl("HourMinuteInput"),p=Sk,h=Jl("Plus"),f=KS,g=oC,m=cE,_=sC,v=WB;return zd(),qd("div",Ule,[tu("div",Hle,[tu("span",zle,me(s.percentileCompleted)+"%",1),s.totalLoggedLabel?(zd(),qd("span",Gle,me(s.totalLoggedLabel)+" "+me(e.$t("logged")),1)):(zd(),qd("span",Yle,me(e.$t("No logging yet!")),1))]),iu(o,{color:s.progressColor,percentage:s.percentileCompleted>100?100:s.percentileCompleted,"show-text":!1,"stroke-width":8},null,8,["color","percentage"]),n.estimatedMinutes?(zd(),qd("div",Wle,[iu(d,{ref:"estimatedTimePop","popper-class":"fs-timer-log-popover",placement:n.estimateTimePopoverPlacement,width:400,trigger:"click"},{reference:vr(()=>[tu("span",jle,me(s.totalLoggedLabel)+" "+me(e.$t("logged")),1)]),default:vr(()=>[iu(c,{stripe:"",data:n.tracks,style:{width:"100%"}},{default:vr(()=>[iu(r,{type:"expand",width:"30"},{default:vr(({row:t})=>[tu("div",qle,[tu("p",null,[tu("b",null,me(e.$t("Logged at:")),1),su(" "+me(e.smartDate(t.created_at,!0)),1)]),tu("p",null,[tu("b",null,me(e.$t("Work Description:")),1),su(" "+me(t.message),1)])])]),_:1}),iu(r,{prop:"agent",label:e.$t("Agent")},{default:vr(({row:e})=>{var t,i;return[tu("div",Kle,[iu(l,{src:null==(t=e.agent)?void 0:t.photo,size:24},null,8,["src"]),tu("a",{href:`/wp-admin/user-edit.php?user_id=${e.agent.user_id}`,target:"_blank"},me(null==(i=e.agent)?void 0:i.full_name),9,Xle)])]}),_:1},8,["label"]),iu(r,{prop:"billable_minutes",label:e.$t("Time"),width:"80"},{default:vr(({row:e})=>[tu("span",null,me(s.formatMinutes(e.billable_minutes)),1)]),_:1},8,["label"]),iu(r,{width:"80",prop:"created_at",label:e.$t("Date")},{default:vr(({row:t})=>[tu("span",null,me(e.smartDate(t.created_at)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["placement"]),iu(d,{ref:"estimatedTimeForm",placement:"right",width:400,visible:n.estimatedForm,"onUpdate:visible":t[1]||(t[1]=e=>n.estimatedForm=e),trigger:"click"},{reference:vr(()=>[tu("span",Zle,me(s.totalEstimationLabel)+" "+me(e.$t("estimated")),1)]),default:vr(()=>[tu("div",Qle,[tu("h4",Jle,me(e.$t("Set Estimated Time")),1),iu(u,{modelValue:n.estimatedMinutes,"onUpdate:modelValue":t[0]||(t[0]=e=>n.estimatedMinutes=e)},null,8,["modelValue"]),br((zd(),Kd(p,{disabled:n.updating,onClick:s.updateEstimatedTime,class:"fs_filled_btn",type:"success"},{default:vr(()=>[su(me(e.$t("Update Estimation")),1)],void 0),_:1},8,["disabled","onClick"])),[[v,n.updating]])])],void 0),_:1},8,["visible"])])):ru("",!0),tu("div",ece,[iu(p,{onClick:s.toggleLog,class:"fs_outline_btn"},{default:vr(()=>[iu(f,null,{default:vr(()=>[iu(h)],void 0),_:1}),tu("span",null,me(e.$t("Add Log")),1)],void 0),_:1},8,["onClick"]),n.estimatedMinutes?ru("",!0):(zd(),Kd(d,{key:0,ref:"estimatedTimeFormBtn",placement:"right",width:400,visible:n.estimatedForm,"onUpdate:visible":t[3]||(t[3]=e=>n.estimatedForm=e),trigger:"click"},{reference:vr(()=>[iu(p,{class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Set Estimation")),1)],void 0),_:1})]),default:vr(()=>[tu("div",tce,[tu("h4",ice,me(e.$t("Set Estimated Time")),1),iu(u,{modelValue:n.estimatedMinutes,"onUpdate:modelValue":t[2]||(t[2]=e=>n.estimatedMinutes=e)},null,8,["modelValue"]),br((zd(),Kd(p,{disabled:n.updating,onClick:s.updateEstimatedTime,class:"fs_filled_btn",type:"success"},{default:vr(()=>[su(me(e.$t("Update Estimation")),1)],void 0),_:1},8,["disabled","onClick"])),[[v,n.updating]])])],void 0),_:1},8,["visible"]))]),n.logForm?(zd(),qd("div",ace,[br((zd(),Kd(_,{ref:"newLogForm","label-position":"top"},{default:vr(()=>[iu(g,{label:e.$t("Total Hours")},{default:vr(()=>[iu(u,{modelValue:n.newLog.working_minutes,"onUpdate:modelValue":t[4]||(t[4]=e=>n.newLog.working_minutes=e)},null,8,["modelValue"])],void 0),_:1},8,["label"]),iu(g,{label:e.$t("Work Description")},{default:vr(()=>[iu(m,{placeholder:e.$t("Describe this log entry"),modelValue:n.newLog.message,"onUpdate:modelValue":t[5]||(t[5]=e=>n.newLog.message=e),type:"textarea",rows:4},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(g,{class:"fs-form-actions"},{default:vr(()=>[br((zd(),Kd(p,{type:"primary",disabled:n.updating,onClick:t[6]||(t[6]=e=>s.logTime()),class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Submit Log")),1)],void 0),_:1},8,["disabled"])),[[v,n.updating]])],void 0),_:1})],void 0),_:1})),[[v,n.updating]])])):ru("",!0)])}]]),sce={name:"WidgetHeader",props:{title:{type:String,required:!0},icon:{type:[String,Object],default:null},expanded:{type:Boolean,default:!1}},emits:["toggle"],computed:{isHtml(){return this.title&&/<[^>]+>/.test(this.title)}},methods:{toggleExpanded(){this.$emit("toggle")}}},oce={class:"fs_widget_header_content"},rce={class:"fs_widget_title_wrapper"},lce={key:0,class:"fs_widget_title"},cce=["innerHTML"],dce={key:0,class:"fs_widget_divider"};const uce={name:"CollapsibleWidget",components:{WidgetHeader:lH(sce,[["render",function(e,t,i,a,n,s){const o=KS;return zd(),qd("div",{class:se(["fs_widget_header",{fs_widget_expanded:i.expanded}]),onClick:t[0]||(t[0]=(...e)=>s.toggleExpanded&&s.toggleExpanded(...e))},[tu("div",oce,[tu("div",rce,[rc(e.$slots,"icon",{},()=>[i.icon?(zd(),Kd(o,{key:0,size:"18",class:"fs_widget_icon"},{default:vr(()=>[(zd(),Kd(tc(i.icon)))],void 0),_:1})):ru("",!0)]),s.isHtml?(zd(),qd("h3",{key:1,class:"fs_widget_title",innerHTML:i.title},null,8,cce)):(zd(),qd("h3",lce,me(i.title),1))]),iu(o,{class:"fs_widget_toggle_icon"},{default:vr(()=>[(zd(),Kd(tc(i.expanded?"ArrowUp":"ArrowDown")))],void 0),_:1})]),i.expanded?(zd(),qd("div",dce)):ru("",!0)],2)}]])},props:{title:{type:String,required:!0},icon:{type:[String,Object],default:null},defaultExpanded:{type:Boolean,default:!1}},data(){return{isExpanded:this.defaultExpanded}},methods:{toggleWidget(){this.isExpanded=!this.isExpanded},expand(){this.isExpanded=!0},collapse(){this.isExpanded=!1}}},pce={class:"fs_widget_body"};const hce=lH(uce,[["render",function(e,t,i,a,n,s){const o=Jl("widget-header");return zd(),qd("div",{class:se(["fs_collapsible_widget",{fs_widget_expanded:n.isExpanded}])},[iu(o,{title:i.title,icon:i.icon,expanded:n.isExpanded,onToggle:s.toggleWidget},oc({_:2},[e.$slots.icon?{name:"icon",fn:vr(()=>[rc(e.$slots,"icon")]),key:"0"}:void 0]),1032,["title","icon","expanded","onToggle"]),iu(np,{name:"fs-widget-slide"},{default:vr(()=>[br(tu("div",pce,[rc(e.$slots,"default")],512),[[yp,n.isExpanded]])],void 0),_:3})],2)}]]),fce={__name:"VueTemplateLoader",props:{widget:{type:Object,required:!0},data:{required:!1}},setup(e){const t=e=>{if("string"==typeof e){const t=(e=>{var t,i;try{if("string"!=typeof e)return null;const a=e.match(/<template(?:\s[^>]*)?>|<template>/i);if(!a)return null;const n=a.index+a[0].length;let s=1,o=n,r=-1;for(;o<e.length&&s>0;){const t=e.indexOf("<template",o),i=e.indexOf("</template>",o);if(-1===i)return null;-1!==t&&t<i?(s++,o=t+9):(s--,0===s&&(r=i),o=i+11)}if(-1===r)return null;const l=e.substring(n,r).trim(),c=e.match(/<script>([\s\S]*?)<\/script>/i);let d={};if(c){const e=c[1].trim();if(!/export\s+default/.test(e))return null;const a=e.replace(/export\s+default/,"return");d=new Function("Vue","ElMessage","ElMessageBox",a)(z_,null==(t=null==window?void 0:window.ELEMENT)?void 0:t.ElMessage,null==(i=null==window?void 0:window.ELEMENT)?void 0:i.ElMessageBox)||{}}return sl({...d,template:l})}catch(NO){return null}})(e);return t?sl(t):null}return sl(e)};return(i,a)=>(zd(),Kd(tc(t(e.widget.component)),uu({ref:"componentRefs",data:e.data},{...e.widget}),null,16,["data"]))}},gce=["innerHTML"],mce={__name:"DynamicTemplates",props:{widgetsQuery:{type:Object,default:()=>({}),required:!1},filter:{type:String,default:"",required:!1},data:{required:!1}},emits:["change"],setup(e,{expose:t,emit:i}){const a=e,n=mo([]),s=(e,t)=>(e._wid||(e._wid=e.id||e.form_name||(e.type+"_"+(e.title||"")+"_"+(e.component||"")+"_"+t).replace(/\s+/g,"_")),e),o=ao(z_),r={},l={},c=()=>{const e={filter:a.filter,data:a.widgetsQuery};iq.get("widgets",e).then(e=>{if(e&&Array.isArray(e.widgets)){const t=n.value.filter(e=>e._jsHook);e.widgets.forEach((e,t)=>s(e,"srv_"+t)),n.value=t.concat(e.widgets)}})};Hl(c);let d=JSON.stringify(a.widgetsQuery);Rr(()=>JSON.stringify(a.widgetsQuery),e=>{e!==d&&(d=e,c())});const u=_u(),p=()=>{var e;const t=null==(e=window.fluentSupportAdmin)?void 0:e.hooks;if(!t||!u)return;let i=u.appContext.components;(e=>{var t;const i=null==(t=window.fluentSupportAdmin)?void 0:t.hooks;if(!i)return;window.fluentSupportAdmin.app={vue:o,components:e,xhr:iq},i.applyFilters(a.filter+"_components",[],o,e).forEach(({name:e,component:t})=>{l[e]!==t&&(l[e]=t,r[e]=sl(t))})})(i);let c=t.applyFilters(a.filter,[],o,i);if(!Array.isArray(c)||!c.length)return;c.forEach((e,t)=>{e._jsHook=!0,s(e,"js_"+t)});const d=n.value.filter(e=>!e._jsHook);n.value=d.concat(c)};let h=null;zl(()=>{p(),h=setTimeout(p,300),window.addEventListener("fluent_support_widgets_ready",p)}),Wl(()=>{h&&clearTimeout(h),window.removeEventListener("fluent_support_widgets_ready",p)});const f=e=>sl(e),g=e=>r[e]||null,m=mo([]),_=async(e,t)=>{const i=m.value.map(i=>"function"==typeof i[e]?i[e](t):Promise.resolve());return await Promise.all(i),!0},v=mo();return t({beforeUpdatingData:async e=>await _("beforeUpdatingData",e),afterUpdatingData:async e=>await _("afterUpdatingData",e),getFormStates:()=>{let e=[];if(Array.isArray(v.value))for(let t of v.value)e={...e,...t.getState()};return e},resetForms:()=>{if(Array.isArray(v.value))for(let e of v.value)e.resetOnSave()&&e.resetForm()}}),(t,i)=>(zd(!0),qd(Fd,null,sc(n.value,t=>(zd(),qd(Fd,{key:t._wid},["vue-component"!==t.type&&"vue-template"!==t.type||!0===t.use_card?(zd(),Kd(hce,{key:0,title:t.title||"",icon:t.icon||"SetUp","default-expanded":!1!==t.default_expanded,class:"fs_sidebar_widget fs_dynamic_widget"},{default:vr(()=>["html"===t.type?(zd(),qd("div",{key:0,innerHTML:t.content},null,8,gce)):"vue-component"===t.type?(zd(),qd(Fd,{key:1},["object"==typeof t.component?(zd(),Kd(tc(f(t.component)),uu({key:0,ref_for:!0,ref_key:"componentRefs",ref:m},{ref_for:!0},{...t,data:e.data}),null,16)):g(t.component)?(zd(),Kd(tc(g(t.component)),uu({key:1,ref_for:!0,ref_key:"componentRefs",ref:m},{ref_for:!0},{...t,data:e.data}),null,16)):ru("",!0)],64)):(zd(),qd(Fd,{key:2},[su(me(t.content),1)],64))],void 0),_:2},1032,["title","icon","default-expanded"])):"vue-component"===t.type?(zd(),qd(Fd,{key:1},["object"==typeof t.component?(zd(),Kd(tc(f(t.component)),uu({key:0,ref_for:!0,ref_key:"componentRefs",ref:m},{ref_for:!0},{...t,data:e.data}),null,16)):g(t.component)?(zd(),Kd(tc(g(t.component)),uu({key:1,ref_for:!0,ref_key:"componentRefs",ref:m},{ref_for:!0},{...t,data:e.data}),null,16)):ru("",!0)],64)):"vue-template"===t.type?(zd(),Kd(fce,{key:2,widget:t,data:e.data},null,8,["widget","data"])):ru("",!0)],64))),128))}},_ce={name:"FluentBookingSidebarWidget",components:{CollapsibleWidget:hce},props:{ticketId:{type:[String,Number],required:!0},refreshKey:{type:[String,Number,Boolean],default:()=>""}},data:()=>({loading:!1,meetings:{upcoming:[],past:[],scope:"",message:""},errorMessage:"",meetingsRequestKey:0}),computed:{nextMeeting(){var e;return(null==(e=this.meetings.upcoming)?void 0:e[0])||null},pastMeetings(){return this.meetings.past||[]},bookingsListUrl(){return this.getBookingsListUrl("upcoming")},pastBookingsListUrl(){return this.getBookingsListUrl("completed")},shouldShowWidget(){return this.loading||!!this.nextMeeting||this.pastMeetings.length>0||!!this.errorMessage}},watch:{ticketId(){this.fetchMeetings()},refreshKey(){this.fetchMeetings()}},methods:{fetchMeetings(){if(!this.ticketId)return;const e=++this.meetingsRequestKey,t=this.ticketId.toString();this.loading=!0,this.errorMessage="",this.$get(`tickets/${t}/fluent-booking/meetings`).then(i=>{e===this.meetingsRequestKey&&t===this.ticketId.toString()&&(this.meetings=i.meetings||{upcoming:[],past:[],scope:"",message:""})}).catch(i=>{e===this.meetingsRequestKey&&t===this.ticketId.toString()&&(this.errorMessage=this.$t("Could not load FluentBooking meetings."),this.$handleError(i))}).always(()=>{e===this.meetingsRequestKey&&t===this.ticketId.toString()&&(this.loading=!1)})},getStatusClass(e){const t=(e||"").toString().toLowerCase();return["completed"].includes(t)?"fs_status_closed":["cancelled","rejected","no_show"].includes(t)?"fs_status_cancelled":["scheduled","pending"].includes(t)?"fs_status_active":`fs_status_${t}`},getBookingsListUrl(e){var t;const i=(null==(t=this.appVars.fluent_booking)?void 0:t.admin_url)||"";return i?i.replace(/\/?$/,"/")+`scheduled-events?period=${e}`:""},getDatePart(e,t){if(!e)return"day"===t?"--":"";const i=this.$dayjs(e);return i.isValid()?"date"===t?i.date():i.format("ddd"):"day"===t?"--":""},handleBookingLinkSent(e){var t;const i=null==(t=null==e?void 0:e.detail)?void 0:t.ticket_id;i&&i.toString()===this.ticketId.toString()&&this.fetchMeetings()}},mounted(){window.addEventListener("fluent-support/fluent-booking-link-sent",this.handleBookingLinkSent),this.fetchMeetings()},beforeUnmount(){window.removeEventListener("fluent-support/fluent-booking-link-sent",this.handleBookingLinkSent)}},vce={class:"fs_fluent_booking_sidebar"},bce={key:0,class:"fs_fb_notice fs_fb_error"},yce={class:"fs_fb_section_header"},xce={class:"fs_fb_section_label"},Sce=["href","title"],wce={key:1,class:"fs_fb_section_count"},Cce={class:"fs_fb_meeting_card"},Ece={class:"fs_fb_meeting_top"},kce={key:0,class:"fs_fb_calendar_name"},Tce={class:"fs_fb_meeting_main"},Ace={class:"fs_fb_date_box"},Rce={class:"fs_fb_meeting_meta"},Ice={class:"fs_fb_meeting_title"},Dce={class:"fs_fb_meeting_time"},Oce={key:0,class:"fs_fb_meeting_timezone"},Mce={key:1,class:"fs_fb_internal_note"},Nce={class:"fs_fb_actions"},Lce=["href"],Pce=["href"],Fce={class:"fs_fb_section_header"},Bce={class:"fs_fb_section_label"},$ce=["href","title"],Vce={key:1,class:"fs_fb_section_count"},Uce={class:"fs_fb_meeting_list"},Hce={class:"fs_fb_meeting_item_content"},zce=["href","title"],Yce={key:1,class:"fs_fb_meeting_title"},Gce={class:"fs_fb_meeting_time"},Wce={key:2,class:"fs_fb_internal_note fs_fb_internal_note_compact"};const jce={class:"fs_tk_sidebar_wrap_new"},qce={class:"fs_client_info_body"},Kce={class:"fs_client_header"},Xce={class:"fs_client_avatar"},Zce=["src","alt"],Qce={class:"fs_client_details"},Jce={class:"fs_client_name_row"},ede={class:"fs_client_name"},tde={key:0,class:"fs_blocked_badge"},ide={class:"fs_client_email"},ade=["href"],nde={key:1},sde={class:"fs_customer_address"},ode={key:0,class:"fs_customer_note"},rde={key:2,class:"fs_sidebar_loading"},lde={class:"fs_watchers_body"},cde={key:0,class:"fs_watchers_list"},dde={class:"fs_popover_title"},ude={key:0,class:"fs_widget_purchases"},pde={class:"fs_purchase_list"},hde={class:"fs_purchase_row"},fde=["onClick"],gde={key:1,class:"fs_widget_fct_purchases"},mde={key:0,class:"fs_summary_stats"},_de={class:"fs_full_listed"},vde={class:"fs_list_sub"},bde={class:"fs_list_value"},yde=["href","innerHTML"],xde={class:"fs_list_sub"},Sde={class:"fs_list_value"},wde={key:0},Cde={class:"fs_list_sub"},Ede={class:"fs_list_value"},kde={key:1},Tde={class:"fs_list_sub"},Ade={class:"fs_list_value"},Rde={class:"fct_product_content"},Ide={class:"fct_product_title"},Dde={key:0,class:"fct_license_type"},Ode={class:"fct_product_price_row"},Mde=["innerHTML"],Nde={class:"fct_product_type_icon"},Lde={key:1,class:"fct_product_sites"},Pde={class:"fct_expired_badge"},Fde={class:"fct_product_status_row"},Bde={class:"fct_order_links"},$de=["href","title"],Vde={key:2,class:"fs_widget_custom_body"},Ude=["innerHTML"],Hde={class:"fs_order_card_header"},zde={class:"fs_wc_card-body"},Yde={class:"fs_wc-order-preview-address"},Gde={key:0},Wde=["innerHTML"],jde={key:1},qde={key:2},Kde={key:3},Xde={class:"fs_wc-order-preview-address fs_mt_30"},Zde={key:0},Qde=["innerHTML"],Jde=["innerHTML"],eue={class:"fs_order_card_footer"},tue=["href"],iue={class:"fs_order_card_header"},aue={class:"fs_wc_card-body"},nue={class:"fs_wc-order-preview-address"},sue={key:0},oue={key:0},rue={key:1},lue={key:1},cue=["innerHTML"],due={class:"fs_order_card_footer"},uue=["href"],pue={class:"fs_previous_conversations_body"},hue={class:"fs_conversation_list"},fue={class:"fs_conversation_content"},gue={class:"fs_conversation_title"},mue={key:0,class:"fs_load_more_wrap"},_ue=["disabled"],vue={key:2},bue={class:"fs_additional_details_body"},yue={class:"fs_detail_field"},xue={class:"fs_detail_label"},Sue={class:"fs_detail_field"},wue={class:"fs_detail_label"},Cue={key:0,class:"fs_detail_field"},Eue={class:"fs_detail_label"},kue={class:"fs_tags_wrapper"};const Tue=lH({name:"TicketSidebar",components:{CustomerForm:dle,RemoteSelector:tte,FluentCrmProfile:Ile,TaskTimer:nce,CollapsibleWidget:hce,TicketTags:xH,DynamicTemplates:mce,FluentBookingSidebarWidget:lH(_ce,[["render",function(e,t,i,a,n,s){const o=Jl("collapsible-widget"),r=WB;return e.appVars.fluent_booking&&e.appVars.fluent_booking.active&&s.shouldShowWidget?(zd(),Kd(o,{key:0,title:e.$t("Meeting"),icon:"Calendar","default-expanded":!0,class:"fs_sidebar_widget fs_fluent_booking_sidebar_widget"},{default:vr(()=>[br((zd(),qd("div",vce,[n.errorMessage&&!n.loading?(zd(),qd("div",bce,me(n.errorMessage),1)):ru("",!0),s.nextMeeting?(zd(),qd(Fd,{key:1},[tu("div",yce,[tu("span",xce,me(e.$t("Next Meeting")),1),n.meetings.upcoming.length>1&&s.bookingsListUrl?(zd(),qd("a",{key:0,class:"fs_fb_section_count fs_fb_section_count_link",href:s.bookingsListUrl,target:"_blank",rel:"noopener",title:e.$t("View upcoming bookings in FluentBooking")}," +"+me(n.meetings.upcoming.length-1)+" "+me(e.$t("more")),9,Sce)):n.meetings.upcoming.length>1?(zd(),qd("span",wce," +"+me(n.meetings.upcoming.length-1)+" "+me(e.$t("more")),1)):ru("",!0)]),tu("div",Cce,[tu("div",Ece,[tu("div",{class:se(["fs_fb_meeting_status",s.getStatusClass(s.nextMeeting.status)])},[t[0]||(t[0]=tu("span",{class:"fs_fb_status_dot"},null,-1)),su(" "+me(s.nextMeeting.status_label),1)],2),s.nextMeeting.calendar_title?(zd(),qd("span",kce,me(s.nextMeeting.calendar_title),1)):ru("",!0)]),tu("div",Tce,[tu("div",Ace,[tu("span",null,me(s.getDatePart(s.nextMeeting.local_start_time||s.nextMeeting.start_time,"day")),1),tu("strong",null,me(s.getDatePart(s.nextMeeting.local_start_time||s.nextMeeting.start_time,"date")),1)]),tu("div",Rce,[tu("div",Ice,me(s.nextMeeting.event_title||e.$t("Meeting")),1),tu("div",Dce,me(s.nextMeeting.date_text),1),s.nextMeeting.timezone?(zd(),qd("div",Oce,me(e.$t("Timezone"))+": "+me(s.nextMeeting.timezone),1)):ru("",!0),s.nextMeeting.internal_note?(zd(),qd("div",Mce,[tu("span",null,me(e.$t("Internal Note")),1),tu("p",null,me(s.nextMeeting.internal_note),1)])):ru("",!0)])]),tu("div",Nce,[s.nextMeeting.join_url?(zd(),qd("a",{key:0,class:"el-button el-button--small fs_filled_btn",href:s.nextMeeting.join_url,target:"_blank",rel:"noopener"},me(e.$t("Join Meeting")),9,Lce)):ru("",!0),s.nextMeeting.admin_url?(zd(),qd("a",{key:1,class:"el-button el-button--small fs_outline_btn",href:s.nextMeeting.admin_url,target:"_blank",rel:"noopener"},me(e.$t("View")),9,Pce)):ru("",!0)])])],64)):ru("",!0),s.pastMeetings.length?(zd(),qd(Fd,{key:2},[tu("div",Fce,[tu("span",Bce,me(e.$t("Past Meetings")),1),s.pastBookingsListUrl?(zd(),qd("a",{key:0,class:"fs_fb_section_count fs_fb_section_count_link",href:s.pastBookingsListUrl,target:"_blank",rel:"noopener",title:e.$t("View completed bookings in FluentBooking")},me(s.pastMeetings.length),9,$ce)):(zd(),qd("span",Vce,me(s.pastMeetings.length),1))]),tu("ul",Uce,[(zd(!0),qd(Fd,null,sc(s.pastMeetings,t=>(zd(),qd("li",{key:t.id,class:"fs_fb_meeting_item"},[tu("div",Hce,[t.admin_url?(zd(),qd("a",{key:0,class:"fs_fb_meeting_title fs_fb_meeting_title_link",href:t.admin_url,target:"_blank",rel:"noopener",title:e.$t("Open exact booking in FluentBooking")},me(t.event_title||e.$t("Meeting")),9,zce)):(zd(),qd("div",Yce,me(t.event_title||e.$t("Meeting")),1)),tu("div",Gce,me(t.date_text),1),t.internal_note?(zd(),qd("div",Wce,[tu("span",null,me(e.$t("Internal Note")),1),tu("p",null,me(t.internal_note),1)])):ru("",!0)]),tu("span",{class:se(["fs_status_badge",s.getStatusClass(t.status)])},me(t.status_label),3)]))),128))])],64)):ru("",!0)])),[[r,n.loading]])],void 0),_:1},8,["title"])):ru("",!0)}]]),IconPack:dY},props:["ticket_id","ticket","fluentcrm_profile","watchers","watcher_ids","fetch_other_tickets","can_manage_tickets"],data(){return{drawer:!1,drawerType:null,loading:!0,extra_widgets:!1,other_tickets:[],watcherIds:[],customerManagementModal:!1,changing:!1,activeTabName:"update_customer_data",add_watcher:!1,ticketSummary:"",ticketTone:"",agents:this.appVars.support_agents,client_priorities:this.appVars.client_priorities,admin_priorities:this.appVars.admin_priorities,orders:null,customerID:null,origin:window.location.origin,otherTicketsPage:1,otherTicketsTotal:0,otherTicketsMore:!1,loadingMoreTickets:!1,loadMoreRequest:null,widgetsRequest:null}},watch:{watcher_ids(e){this.watcherIds=e},ticket_id(){this.widgetsRequest&&(this.widgetsRequest.abort(),this.widgetsRequest=null),this.loadMoreRequest&&(this.loadMoreRequest.abort(),this.loadMoreRequest=null),this.other_tickets=[],this.extra_widgets=null,this.otherTicketsPage=1,this.otherTicketsMore=!1,this.fetchWidgets()},fetch_other_tickets(){this.otherTicketsPage=1,this.otherTicketsMore=!1,this.fetchWidgets()}},mounted(){this.fetchWidgets(),this.watcherIds=this.watcher_ids,this.has_pro&&this.ticket.watchers&&this.ticket.watchers.length>0&&(this.watcherIds=this.ticket.watchers.map(e=>e.tag_id.toString()))},methods:{fetchMoreOtherTickets(){if(this.loadingMoreTickets||!this.otherTicketsMore)return;this.loadingMoreTickets=!0;const e=this.otherTicketsPage+1;this.loadMoreRequest=this.$get(`tickets/${this.ticket_id}/widgets`,{page:e}).then(t=>{this.otherTicketsPage=e,this.other_tickets=this.other_tickets.concat(t.other_tickets),this.otherTicketsTotal=t.other_tickets_total,this.otherTicketsMore=t.other_tickets_more}).catch(e=>this.$handleError(e)).always(()=>{this.loadingMoreTickets=!1,this.loadMoreRequest=null})},fetchWidgets(){this.loading=!0,this.widgetsRequest=this.$get(`tickets/${this.ticket_id}/widgets`,{with:["other_tickets","extra_widgets"]}).then(e=>{this.other_tickets=e.other_tickets,this.otherTicketsTotal=e.other_tickets_total,this.otherTicketsMore=e.other_tickets_more,this.otherTicketsPage=1,this.extra_widgets=e.extra_widgets}).catch(e=>this.$handleError(e)).always(()=>{this.loading=!1,this.widgetsRequest=null})},customerManagement(){this.customerManagementModal=!this.customerManagementModal},changeCustomer(e){this.$put(`tickets/${this.ticket_id}/change-customer`,{customer:e}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.closeModal()}).catch(e=>this.$handleError(e)).always(()=>{this.loading=!1})},handleClick(e){this.activeTabName=e.props.name},closeModal(){this.customerManagementModal=!1,window.location.reload()},getCustomerAddress:e=>e.custom_field_keys?e.custom_field_keys.map(t=>e[t]).filter(Boolean).join(", "):"",getPaymentMethodName(e){return{offline_payment:this.$t("Offline Payment"),stripe:"Stripe",paypal:"PayPal"}[e]||e},handleClose(e){this.$confirm({message:this.$t("watcher_remove_warning"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Yes"),cancelButtonText:this.$t("No"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{const t=this.watcherIds.indexOf(e.toString());t>-1&&this.watcherIds.splice(t,1),this.saving=!0,this.updateWatcher()}).catch(e=>this.$handleError(e))},updateWatcher(){this.saving=!0,this.$post(`tickets/${this.ticket.id}/sync-watchers`,{watchers:this.watcherIds}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("refresh"),this.add_watcher=!1,this.saving=!1}).catch(e=>{this.$handleError(e),this.saving=!1})},openDrawer(e,t,i=null){this.drawerType=e,this.orders="woo_purchases"===e?{orderInfo:t,products:(null==i?void 0:i[t.id])||[]}:{orderInfo:t,products:t.order_items||[]},this.drawer=!0},getOrderDetails(e,t){this.openDrawer("woo_purchases",e,t)},getOrderDetailsForCart(e){this.openDrawer("fct_purchases",e)},getDisplayCurrency:e=>e||"",getLicenseType(e){switch(null==e?void 0:e.toString().toLowerCase()){case"active":return"success";case"expired":return"danger";case"disabled":return"warning";default:return"info"}},getProductStatusType(e){switch(null==e?void 0:e.toString().toLowerCase()){case"active":case"completed":return"success";case"processing":return"primary";case"on-hold":return"warning";case"expired":case"canceled":case"failed":return"danger";default:return"info"}},cancelClick(){this.drawer=!1,this.drawerType=null,this.orders=null},getOrderTooltip(e,t){return`Purchase date: ${this.dateTimeFormat(t.date,"DD MMM YYYY, hh:mm A")}, Amount: ${t.currency} ${t.total}`},formatFullAddress:e=>e?[e.address_1,e.address_2,e.city,e.state,e.postcode,e.country].filter(Boolean).join(", "):"",getType(e){switch(null==e?void 0:e.toString().toLowerCase()){case"on-hold":return"warning";case"processing":return"primary";case"completed":return"success";default:return"info"}},updateTicketPriority(e,t=null){const i=null!==t?t:this.ticket[e];this.$put(`tickets/${this.ticket_id}/property`,{prop_name:e,prop_value:i}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),yX(e.update_data,(e,t)=>{this.ticket[t]=e}),this.$emit("refresh")}).catch(e=>this.$handleError(e))}}},[["render",function(e,t,i,a,n,s){var o;const r=Jl("router-link"),l=Jl("More"),c=KS,d=Jl("fluent-crm-profile"),u=Jl("collapsible-widget"),p=Jl("TaskTimer"),h=AL,f=Jl("fluent-booking-sidebar-widget"),g=tA,m=Jl("Plus"),_=Sk,v=wA,b=SA,y=P$,x=ZC,S=Jl("Refresh"),w=Jl("ShoppingBag"),C=Jl("Timer"),E=ZP,k=XP,T=TA,A=bM,R=Jl("DynamicTemplates"),I=Jl("Message"),D=Jl("Loading"),O=Jl("icon-pack"),M=Jl("ticket-tags"),N=Jl("customer-form"),L=fF,P=Jl("remote-selector"),F=oC,B=sC,$=hF,V=dM,U=WB;return zd(),qd("div",jce,[i.ticket&&i.ticket.customer?(zd(),Kd(u,{key:0,title:e.$t("Customer Informations"),icon:"User","default-expanded":!0,class:"fs_sidebar_widget fs_sidebar_widget_ci"},{default:vr(()=>[tu("div",qce,[tu("div",Kce,[iu(r,{to:{name:"view_customer",params:{customer_id:i.ticket.customer.id}}},{default:vr(()=>[tu("div",Xce,[tu("img",{src:i.ticket.customer.photo,alt:i.ticket.customer.full_name},null,8,Zce)])],void 0),_:1},8,["to"]),tu("div",Qce,[tu("div",Jce,[tu("h4",ede,[su(me(i.ticket.customer.full_name)+" ",1),"inactive"==i.ticket.customer.status?(zd(),qd("span",tde,"("+me(e.$t("Blocked"))+")",1)):ru("",!0)])]),tu("p",ide,[i.ticket.customer.profile_edit_url?(zd(),qd("a",{key:0,rel:"noopener",target:"_blank",href:i.ticket.customer.profile_edit_url},me(i.ticket.customer.email),9,ade)):(zd(),qd("span",nde,me(i.ticket.customer.email),1))])]),e.appVars.me.permissions.includes("fst_sensitive_data")?(zd(),Kd(c,{key:0,class:"fs_client_more_icon",onClick:s.customerManagement},{default:vr(()=>[iu(l)],void 0),_:1},8,["onClick"])):ru("",!0)]),tu("p",sde,me(s.getCustomerAddress(i.ticket.customer)),1),i.ticket.customer.note?(zd(),qd("div",ode,me(i.ticket.customer.note),1)):ru("",!0),i.fluentcrm_profile?(zd(),Kd(d,{key:1,crm_profile:i.fluentcrm_profile},null,8,["crm_profile"])):ru("",!0)])],void 0),_:1},8,["title"])):ru("",!0),"yes"===e.appVars.agent_time_tracking&&e.has_pro?(zd(),Kd(u,{key:1,title:e.$t("Time Logging"),icon:"Timer","default-expanded":!1,class:"fs_sidebar_widget"},{default:vr(()=>[iu(p,{ticket_id:i.ticket_id,customer_id:i.ticket.customer_id},null,8,["ticket_id","customer_id"])],void 0),_:1},8,["title"])):ru("",!0),n.loading?(zd(),qd("div",rde,[iu(h,{rows:1,animated:""})])):ru("",!0),i.ticket&&(null==(o=e.appVars.fluent_booking)?void 0:o.active)&&i.can_manage_tickets?(zd(),Kd(f,{key:3,"ticket-id":i.ticket_id,"refresh-key":i.fetch_other_tickets},null,8,["ticket-id","refresh-key"])):ru("",!0),e.has_pro&&i.watchers.length?(zd(),Kd(u,{key:4,title:e.$t("Watchers")+(i.watchers.length?` (${i.watchers.length})`:""),icon:"View","default-expanded":!1,class:"fs_sidebar_widget"},{default:vr(()=>[tu("div",lde,[i.watchers.length?(zd(),qd("div",cde,[(zd(!0),qd(Fd,null,sc(i.watchers,(e,t)=>(zd(),Kd(g,{key:t,class:"fs_watcher_tag",size:"small",closable:i.can_manage_tickets,"disable-transitions":!1,onClose:t=>s.handleClose(e.id)},{default:vr(()=>[su(me(e.full_name),1)],void 0),_:2},1032,["closable","onClose"]))),128))])):ru("",!0),i.can_manage_tickets?(zd(),Kd(y,{key:1,placement:"bottom",width:300,visible:n.add_watcher,trigger:"manual","popper-class":"fs_popover"},{reference:vr(()=>[iu(_,{onClick:t[0]||(t[0]=e=>n.add_watcher=!n.add_watcher),size:"small",class:"fs_outline_btn"},{default:vr(()=>[iu(c,null,{default:vr(()=>[iu(m)],void 0),_:1}),su(" "+me(e.$t("Add Watcher")),1)],void 0),_:1})]),default:vr(()=>[tu("h4",dde,me(e.$t("Add Bookmark")),1),iu(b,{multiple:"",filterable:"",modelValue:n.watcherIds,"onUpdate:modelValue":t[1]||(t[1]=e=>n.watcherIds=e),size:"small",class:"fs_watcher_select fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.agents,(e,t)=>(zd(),Kd(v,{key:t,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),iu(_,{onClick:t[2]||(t[2]=e=>s.updateWatcher()),type:"primary",size:"small",class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Update")),1)],void 0),_:1})],void 0),_:1},8,["visible"])):ru("",!0)])],void 0),_:1},8,["title"])):ru("",!0),n.extra_widgets?(zd(!0),qd(Fd,{key:5},sc(n.extra_widgets,(i,a)=>(zd(),Kd(u,{key:a,title:i.title||i.header,icon:"ShoppingCart","default-expanded":!0,class:se([`fs_tk_widget_${a}`,"fs_sidebar_widget fs_tk_extra_card"])},{default:vr(()=>["woo_purchases"===a?(zd(),qd("div",ude,[tu("ul",pde,[(zd(!0),qd(Fd,null,sc(i.orders,(e,n)=>(zd(),qd("li",{key:n,class:"fs_purchase_item"},[tu("div",hde,[iu(x,{content:s.getOrderTooltip(a,e),placement:"top","raw-content":!0},{default:vr(()=>[tu("a",{onClick:t=>s.openDrawer(a,e,i.products),class:"fs_order_link"},"#"+me(e.id),9,fde)],void 0),_:2},1032,["content"]),t[13]||(t[13]=tu("div",{class:"fs_purchase_divider"},null,-1)),iu(g,{size:"small",type:s.getType(e.status)},{default:vr(()=>[su(me(e.status),1)],void 0),_:2},1032,["type"])])]))),128))])])):"fct_purchases"===a?(zd(),qd("div",gde,[i.summary?(zd(),qd("div",mde,[tu("ul",_de,[tu("li",null,[tu("span",vde,me(e.$t("Lifetime Value"))+":",1),tu("span",bde,[tu("a",{href:`${n.origin}/wp-admin/admin.php?page=fluent-cart#/customers/${i.fluent_cart_customer_id}/view`,target:"_blank",class:"fs_list_value fs_ltv_link",innerHTML:i.summary.lifetime_value},null,8,yde)])]),tu("li",null,[tu("span",xde,me(e.$t("Purchases"))+":",1),tu("span",Sde,me(i.summary.total_purchases),1)]),i.summary.first_purchase?(zd(),qd("li",wde,[tu("span",Cde,me(e.$t("First Purchased"))+":",1),tu("span",Ede,me(i.summary.first_purchase),1)])):ru("",!0),i.summary.last_purchase?(zd(),qd("li",kde,[tu("span",Tde,me(e.$t("Last Purchased"))+":",1),tu("span",Ade,me(i.summary.last_purchase),1)])):ru("",!0)])])):ru("",!0),(zd(!0),qd(Fd,null,sc(i.products,(i,a)=>(zd(),qd("div",{key:a,class:"fct_product_item"},[tu("div",Rde,[iu(x,{content:`Purchased on: ${e.dateTimeFormat(i.order.date,"MMM DD, YYYY")}`,placement:"top"},{default:vr(()=>[tu("h3",Ide,me(i.product_name),1)],void 0),_:2},1032,["content"]),i.license_type&&"Subscription"!==i.license_type?(zd(),qd("div",Dde,me(i.license_type),1)):ru("",!0),tu("div",Ode,[tu("span",{class:"fct_product_price",innerHTML:i.formatted_price},null,8,Mde),tu("span",Nde,[i.license_type&&i.license_type.includes("Subscription")?(zd(),Kd(c,{key:0},{default:vr(()=>[iu(S)],void 0),_:1})):(zd(),Kd(c,{key:1},{default:vr(()=>[iu(w)],void 0),_:1})),su(" "+me(i.license_type&&i.license_type.includes("Subscription")?e.$t("Subscription"):e.$t("Product")),1)])]),"expired"===i.status?(zd(),qd("div",Lde,[tu("span",Pde,[iu(c,null,{default:vr(()=>[iu(C)],void 0),_:1}),su(" "+me(e.$t("Expired")),1)])])):ru("",!0),tu("div",Fde,[tu("span",{class:se(["fct_status_indicator","fct_status_"+i.status.toLowerCase()])},[t[14]||(t[14]=tu("span",{class:"fct_status_dot"},null,-1)),su(" "+me(i.status),1)],2),tu("div",Bde,[tu("a",{href:`${n.origin}/wp-admin/admin.php?page=fluent-cart#/orders/${i.order.id}/view`,target:"_blank",class:"fct_order_link",title:`View Order #${i.order.invoice_no||"WPMN-"+i.order.id}`}," #"+me(i.order.id),9,$de)])])])]))),128))])):(zd(),qd("div",Vde,[tu("div",{innerHTML:i.body_html},null,8,Ude)]))],void 0),_:2},1032,["title","class"]))),128)):ru("",!0),iu(A,{class:"fs_wc_order_details",modelValue:n.drawer,"onUpdate:modelValue":t[3]||(t[3]=e=>n.drawer=e),"append-to-body":!0,size:"40%","with-header":!1},{default:vr(()=>["woo_purchases"===n.drawerType?(zd(),Kd(T,{key:0,class:"fs_order_box_card"},{header:vr(()=>[tu("div",Hde,[tu("h3",null,me(e.$t("Order"))+" #"+me(n.orders.orderInfo.id),1),iu(g,{class:"ml-2",type:s.getType(n.orders.orderInfo.status)},{default:vr(()=>[su(me(n.orders.orderInfo.status),1)],void 0),_:1},8,["type"])])]),default:vr(()=>[tu("div",zde,[tu("div",null,[tu("div",Yde,[tu("h2",null,me(e.$t("Billing details")),1),n.orders.orderInfo.billing_address?(zd(),qd("span",Gde,[tu("strong",null,me(e.$t("Address"))+": ",1),t[15]||(t[15]=su()),tu("p",{innerHTML:n.orders.orderInfo.billing_address},null,8,Wde)])):ru("",!0),tu("p",null,[tu("strong",null,me(e.$t("Email"))+": ",1),su(me(n.orders.orderInfo.email),1)]),n.orders.orderInfo.phone?(zd(),qd("p",jde,[tu("strong",null,me(e.$t("Phone"))+": ",1),su(me(n.orders.orderInfo.phone),1)])):ru("",!0),n.orders.orderInfo.payment_method?(zd(),qd("p",qde,[tu("strong",null,me(e.$t("Payment Via"))+": ",1),su(me(n.orders.orderInfo.payment_method),1)])):ru("",!0),n.orders.orderInfo.date?(zd(),qd("p",Kde,[tu("strong",null,me(e.$t("Purchase Date"))+": ",1),su(me(n.orders.orderInfo.date),1)])):ru("",!0)]),tu("div",Xde,[tu("h2",null,me(e.$t("Shipping details")),1),n.orders.orderInfo.shipping_address?(zd(),qd("span",Zde,[tu("strong",null,me(e.$t("Address"))+": ",1),t[16]||(t[16]=su()),tu("p",{innerHTML:n.orders.orderInfo.shipping_address},null,8,Qde)])):ru("",!0),tu("p",null,[tu("strong",null,me(e.$t("Shipping method")),1),su(" "+me(n.orders.orderInfo.shipping_method),1)])])]),iu(k,{data:n.orders.products,style:{width:"100%","margin-top":"2%"}},{default:vr(()=>[iu(E,{prop:"post_title",label:e.$t("Product"),width:"60%"},null,8,["label"]),iu(E,{prop:"product_qty",label:e.$t("Quantity"),width:"20%",align:"center"},null,8,["label"]),iu(E,{label:e.$t("Total"),width:"20%",align:"center"},{default:vr(e=>[tu("span",{innerHTML:n.orders.orderInfo.currency},null,8,Jde),tu("span",null,me(e.row.product_gross_revenue),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])]),tu("div",eue,[tu("a",{href:n.orders.orderInfo.order_link,target:"_blank",class:"el-button fs_filled_btn"},me(e.$t("Edit")),9,tue),iu(_,{onClick:s.cancelClick,class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1},8,["onClick"])])],void 0),_:1})):"fct_purchases"===n.drawerType?(zd(),Kd(T,{key:1,class:"fs_order_box_card"},{header:vr(()=>[tu("div",iue,[tu("h3",null,"Order #"+me(n.orders.orderInfo.id),1),iu(g,{class:"ml-2",type:s.getType(n.orders.orderInfo.status)},{default:vr(()=>[su(me(n.orders.orderInfo.status),1)],void 0),_:1},8,["type"])])]),default:vr(()=>[tu("div",aue,[(zd(),qd(Fd,null,sc(["billing_address","shipping_address"],(t,i)=>tu("div",{key:i},[tu("div",nue,[tu("h2",null,me("billing_address"===t?e.$t("Billing Details"):e.$t("Shipping Details")),1),n.orders.orderInfo[t]?(zd(),qd("div",sue,[tu("p",null,[tu("strong",null,me(e.$t("Name"))+": ",1),su(" "+me(n.orders.orderInfo[t].full_name),1)]),tu("p",null,[tu("strong",null,me(e.$t("Email"))+": ",1),su(" "+me(n.orders.orderInfo[t].email),1)]),tu("p",null,[tu("strong",null,me(e.$t("Address"))+": ",1),su(" "+me(s.formatFullAddress(n.orders.orderInfo[t].formatted_address)),1)]),n.orders.orderInfo.payment_method?(zd(),qd("p",oue,[tu("strong",null,me(e.$t("Payment Via"))+":",1),su(" "+me(s.getPaymentMethodName(n.orders.orderInfo.payment_method)),1)])):ru("",!0),n.orders.orderInfo.created_at?(zd(),qd("p",rue,[tu("strong",null,me(e.$t("Purchase Date"))+": ",1),su(" "+me(e.dateTimeFormat(n.orders.orderInfo.created_at,"DD MMM YYYY, hh:mm A")),1)])):ru("",!0)])):(zd(),qd("p",lue,me(e.$t("No"))+" "+me("billing_address"===t?e.$t("billing"):e.$t("shipping"))+" "+me(e.$t("address available")),1))])])),64)),iu(k,{data:n.orders.products,style:{"margin-top":"20px"}},{default:vr(()=>[iu(E,{prop:"post_title",label:e.$t("Product"),width:"30%"},null,8,["label"]),iu(E,{prop:"title",label:e.$t("Variant"),width:"20%"},null,8,["label"]),iu(E,{prop:"quantity",label:e.$t("Quantity"),width:"20%",align:"center"},null,8,["label"]),iu(E,{label:e.$t("Total"),width:"20%",align:"center"},{default:vr(e=>[tu("span",{innerHTML:e.row.formatted_total},null,8,cue)]),_:1},8,["label"])],void 0),_:1},8,["data"])]),tu("div",due,[tu("a",{href:`${n.origin}/wp-admin/admin.php?page=fluent-cart#/orders/${n.orders.orderInfo.id}/view`,target:"_blank",class:"el-button el-button--primary"},me(e.$t("Edit")),9,uue),iu(_,{onClick:s.cancelClick,type:"danger"},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1},8,["onClick"])])],void 0),_:1})):ru("",!0)],void 0),_:1},8,["modelValue"]),i.ticket?(zd(),Kd(R,{key:6,filter:"ticket_sidebar",widgetsQuery:{ticket_id:i.ticket.id},data:{ticket:i.ticket}},null,8,["widgetsQuery","data"])):ru("",!0),n.other_tickets&&n.other_tickets.length?(zd(),Kd(u,{key:7,title:e.$t("Previous Conversations")+(n.otherTicketsTotal?` (${n.otherTicketsTotal})`:""),icon:"ChatLineSquare","default-expanded":!0,class:"fs_sidebar_widget fs_tk_other_tickets_card"},{default:vr(()=>[tu("div",pue,[tu("ul",hue,[(zd(!0),qd(Fd,null,sc(n.other_tickets,e=>(zd(),qd("li",{key:"other_ticket_"+e.id,class:"fs_conversation_item"},[iu(r,{to:{name:"view_ticket",params:{ticket_id:e.id},query:{prev_ticket:i.ticket_id}},class:"fs_conversation_link"},{default:vr(()=>{var t;return[tu("div",fue,[iu(c,{class:"fs_conversation_icon"},{default:vr(()=>[iu(I)],void 0),_:1}),tu("span",gue,me(e.title),1)]),tu("span",{class:se(["fs_status_badge",null==(t=e.status)?void 0:t.toLowerCase()])},me(e.status),3)]},void 0),_:2},1032,["to"])]))),128))]),n.otherTicketsMore?(zd(),qd("div",mue,[tu("button",{class:"fs_load_more_btn",disabled:n.loadingMoreTickets,onClick:t[4]||(t[4]=(...e)=>s.fetchMoreOtherTickets&&s.fetchMoreOtherTickets(...e))},[n.loadingMoreTickets?(zd(),Kd(c,{key:0,class:"is-loading"},{default:vr(()=>[iu(D)],void 0),_:1})):(zd(),Kd(O,{key:1,"icon-key":"arrow_down",width:16,height:16})),n.loadingMoreTickets?ru("",!0):(zd(),qd("span",vue,me(e.$t("Load More")),1))],8,_ue)])):ru("",!0)])],void 0),_:1},8,["title"])):ru("",!0),iu(u,{title:e.$t("Additional Details"),icon:"Setting","default-expanded":!0,class:"fs_sidebar_widget"},{default:vr(()=>[tu("div",bue,[tu("div",yue,[tu("label",xue,me(e.$t("Client Priority")),1),iu(b,{modelValue:i.ticket.client_priority,"onUpdate:modelValue":t[5]||(t[5]=e=>i.ticket.client_priority=e),onChange:t[6]||(t[6]=e=>s.updateTicketPriority("client_priority")),size:"small",class:"fs_select_field",disabled:!i.can_manage_tickets},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.client_priorities,(e,t)=>(zd(),Kd(v,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","disabled"])]),tu("div",Sue,[tu("label",wue,me(e.$t("Agent Priority")),1),iu(b,{modelValue:i.ticket.priority,"onUpdate:modelValue":t[7]||(t[7]=e=>i.ticket.priority=e),onChange:t[8]||(t[8]=e=>s.updateTicketPriority("priority")),size:"small",class:"fs_select_field",disabled:!i.can_manage_tickets},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.admin_priorities,(e,t)=>(zd(),Kd(v,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","disabled"])]),i.can_manage_tickets?(zd(),qd("div",Cue,[tu("label",Eue,me(e.$t("Add Tags")),1),tu("div",kue,[iu(M,{creatable:!0,ticket_id:i.ticket.id,tags:i.ticket.tags},null,8,["ticket_id","tags"])])])):ru("",!0)])],void 0),_:1},8,["title"]),iu(V,{modelValue:n.customerManagementModal,"onUpdate:modelValue":t[12]||(t[12]=e=>n.customerManagementModal=e),"append-to-body":!0,title:e.$t("Customer Management"),class:"fs_dialog"},{default:vr(()=>[iu($,{modelValue:n.activeTabName,"onUpdate:modelValue":t[11]||(t[11]=e=>n.activeTabName=e),onTabClick:s.handleClick,class:"fs_customer_management_tabs"},{default:vr(()=>[iu(L,{label:e.$t("Update Customer"),name:"update_customer_data"},{default:vr(()=>[iu(N,{onUpdated:s.closeModal,source:"ticket",customer:i.ticket.customer},null,8,["onUpdated","customer"])],void 0),_:1},8,["label"]),iu(L,{label:e.$t("Change Customer"),name:"change_customer"},{default:vr(()=>[iu(B,{data:i.ticket,"label-position":"top"},{default:vr(()=>[iu(F,{label:e.$t("Select Customer")},{default:vr(()=>[iu(P,{modelValue:n.customerID,"onUpdate:modelValue":t[9]||(t[9]=e=>n.customerID=e),response_key:"customers",api_path:"customers",value_selector:"id",label_joiner:" - ",label_selectors:["full_name","email"],clearable:""},null,8,["modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"]),iu(F,null,{default:vr(()=>[br((zd(),Kd(_,{onClick:t[10]||(t[10]=e=>s.changeCustomer(n.customerID)),disabled:n.changing||!n.customerID,class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Change Customer")),1)],void 0),_:1},8,["disabled"])),[[U,n.changing]])],void 0),_:1})],void 0),_:1},8,["label"])],void 0),_:1},8,["modelValue","onTabClick"])],void 0),_:1},8,["modelValue","title"])])}],["__scopeId","data-v-09469d3e"]]),Aue={key:0,class:"fs_fluent_boards"},Rue={class:"fs_fbs_select_container"},Iue={class:"fs_fbs_select_wrapper"},Due={for:"select-board",class:"fs_fbs_select_label fs_field_label"},Oue={class:"fs_fbs_select_wrapper"},Mue={for:"select-task",class:"fs_fbs_select_label fs_field_label"},Nue={class:"fs_fbs_date_range"},Lue={class:"fs_start_date_picker"},Pue={for:"ticket-content",class:"fs_fbs_input_label fs_field_label"},Fue={class:"fs_end_date_picker"},Bue={for:"ticket-content",class:"fs_fbs_input_label fs_field_label"},$ue={class:"fs_fbs_input_container"},Vue={for:"ticket-title",class:"fs_fbs_input_label fs_field_label"},Uue={class:"fs_fbs_input_container"},Hue={for:"ticket-content",class:"fs_fbs_input_label fs_field_label"},zue={class:"fs_fbs_button_container"},Yue={class:"fs_text_right"},Gue={key:1};const Wue=lH({name:"FluentBoardsIntegration",props:{ticket:{type:Object,required:!0},fluentcrm_profile:{type:Object,required:!0}},components:{WpEditor:Qee},data(){return{loading:!1,fluentBoardsData:[],fluentBoardStages:[],boardId:null,stageId:null,app_ready:!1,startDate:"",endDate:"",task:{...this.ticket},has_pro:null}},computed:{isAddButtonEnabled(){return""!==this.task.title&&null!==this.stageId}},mounted(){this.fetchBoards()},methods:{fetchBoards(){this.$get("tickets/fluent-boards/boards").then(e=>{this.fluentBoardsData=e.boards,this.app_ready=!0}).catch(e=>{this.$handleError(e)})},fetchStages(){this.$get("tickets/fluent-boards/stages/"+this.boardId).then(e=>{this.fluentBoardStages=e.stages}).catch(e=>{this.$handleError(e)})},createTask(){this.$post("tickets/fluent-boards/stages",{source_id:this.task.id,title:this.task.title,description:this.task.content,board_id:this.boardId,stage_id:this.stageId,started_at:this.startDate,due_at:this.endDate,source:"FluentSupport",crm_contact_id:this.fluentcrm_profile.id||null}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("created")}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=jO,c=cE,d=Jl("wp-editor"),u=Sk,p=AL;return n.app_ready?(zd(),qd("div",Aue,[tu("div",Rue,[tu("div",Iue,[tu("label",Due,me(e.$t("Select Board")),1),iu(r,{class:"fs_select_field",id:"select-board",onChange:s.fetchStages,modelValue:n.boardId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.boardId=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.fluentBoardsData,e=>(zd(),Kd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["onChange","modelValue"])]),tu("div",Oue,[tu("label",Mue,me(e.$t("Select Stage")),1),iu(r,{class:"fs_select_field",id:"select-task",modelValue:n.stageId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.stageId=e),disabled:!n.boardId},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.fluentBoardStages,e=>(zd(),Kd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","disabled"])])]),tu("div",null,[tu("div",Nue,[tu("div",Lue,[tu("label",Pue,me(e.$t("Start date ")),1),iu(l,{modelValue:n.startDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.startDate=e),class:"fs_date_picker fs_text_input",type:"date",placeholder:e.$t("Pick a day"),"value-format":"YYYY-MM-DD"},null,8,["modelValue","placeholder"])]),tu("div",Fue,[tu("label",Bue,me(e.$t("End date ")),1),iu(l,{modelValue:n.endDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.endDate=e),type:"date",class:"fs_date_picker fs_text_input",placeholder:e.$t("Pick a day"),"value-format":"YYYY-MM-DD"},null,8,["modelValue","placeholder"])])]),tu("div",$ue,[tu("label",Vue,me(e.$t("Task Title")),1),iu(c,{class:"fs_text_input",id:"ticket-title",modelValue:n.task.title,"onUpdate:modelValue":t[4]||(t[4]=e=>n.task.title=e)},null,8,["modelValue"])]),tu("div",Uue,[tu("label",Hue,me(e.$t("Task Description")),1),iu(d,{id:"ticket-content",modelValue:n.task.content,"onUpdate:modelValue":t[5]||(t[5]=e=>n.task.content=e)},null,8,["modelValue"])]),tu("div",zue,[tu("div",Yue,[iu(u,{class:"fs_filled_btn",disabled:!s.isAddButtonEnabled,onClick:s.createTask,type:"success"},{default:vr(()=>[su(me(e.$t("Create Task")),1)],void 0),_:1},8,["disabled","onClick"])])])])])):(zd(),qd("div",Gue,[iu(p,{rows:5,animated:""})]))}]]),jue={class:"fs_active_agents_avatars"},que=["src","alt"],Kue={key:0,class:"fs_active_agent_count"},Xue={class:"fs_active_agents_text"},Zue=["aria-label","aria-expanded"];const Que=lH({name:"active_agents",components:{IconPack:dY},props:{ticket:{type:Object,required:!0}},data(){return{ticket_id:this.ticket.id,loading:!1,app_off:!1,isExpanded:!0}},computed:{totalCount(){return this.ticket.live_activity?this.ticket.live_activity.length:0},visibleAvatars(){return this.ticket.live_activity?this.ticket.live_activity.slice(0,3):[]},remainingCount(){return Math.max(0,this.totalCount-3)}},mounted(){setTimeout(()=>{this.activityOn()},3e4)},beforeUnmount(){this.activityOff()},methods:{toggleExpanded(){this.isExpanded=!this.isExpanded},scheduleNextEvent(){const e=2e4*Math.random()+3e4;setTimeout(()=>{this.loading||this.activityOn()},e)},activityOn(){this.loading||this.app_off||(this.loading=!0,this.$get(`tickets/${this.ticket_id}/live_activity`).then(e=>{this.ticket.live_activity=e.live_activity,this.scheduleNextEvent()}).catch(e=>{}).always(()=>{this.loading=!1}))},activityOff(){this.app_off=!0,this.$del(`tickets/${this.ticket_id}/live_activity`)}}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=ZC;return i.ticket.live_activity&&i.ticket.live_activity.length>1?(zd(),qd("div",{key:0,class:se(["fs_active_agents",{fs_active_agents_collapsed:!n.isExpanded}])},[tu("div",{class:se(["fs_active_agents_content",{fs_active_agents_content_collapsed:!n.isExpanded}])},[t[1]||(t[1]=tu("span",{class:"fs_active_agents_status_dot"},null,-1)),tu("div",jue,[(zd(!0),qd(Fd,null,sc(s.visibleAvatars,(t,i)=>(zd(),qd("div",{key:t.id,class:"fs_active_agent_avatar",style:ee({zIndex:i+1})},[tu("img",{src:t.photo,alt:t.name||e.$t("Agent")},null,8,que)],4))),128)),s.remainingCount>0?(zd(),qd("div",Kue," +"+me(s.remainingCount),1)):ru("",!0)]),tu("div",Xue,me(s.totalCount)+" "+me(e.$t("People Watching")),1)],2),iu(r,{effect:"dark",content:e.$t(n.isExpanded?"Hide Watchers":"Show Watchers"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("button",{type:"button",class:se(["fs_active_agents_toggle",{fs_active_agents_toggle_bordered:n.isExpanded}]),"aria-label":e.$t(n.isExpanded?"Hide Watchers":"Show Watchers"),"aria-expanded":n.isExpanded,onClick:t[0]||(t[0]=(...e)=>s.toggleExpanded&&s.toggleExpanded(...e))},[iu(o,{"icon-key":n.isExpanded?"arrow_right_close":"arrow_left_open",width:20,height:20},null,8,["icon-key"])],10,Zue)],void 0),_:1},8,["content"])],2)):ru("",!0)}]]),Jue={name:"SplitTicket",components:{WpEditor:Qee},props:{ticket_data:{type:Object,required:!0},spliting:{type:Boolean,required:!0}},data(){return{priorities:this.appVars.client_priorities,products:this.appVars.support_products,mailboxes:this.appVars.mailboxes}},methods:{splitTicket(){this.$emit("split-ticket")}}};const epe={name:"ViewTicket",props:["ticket_id"],components:{Pagination:Pq,CreateResponse:Oae,TicketSidebar:Tue,EditResponse:Ere,ActiveAgents:Que,TicketTags:xH,CustomFieldForm:nie,WorkFlowSelector:vae,SplitTicket:lH(Jue,[["render",function(e,t,i,a,n,s){const o=cE,r=oC,l=Jl("wp-editor"),c=wA,d=SA,u=hI,p=pI,h=Sk,f=sC,g=WB;return zd(),Kd(f,{data:i.ticket_data,"label-position":"top"},{default:vr(()=>[iu(r,{label:e.$t("Ticket Title"),class:"fs_form_item"},{default:vr(()=>[iu(o,{modelValue:i.ticket_data.title,"onUpdate:modelValue":t[0]||(t[0]=e=>i.ticket_data.title=e),placeholder:e.$t("Ticket Title")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(r,{label:e.$t("Ticket Content"),class:"fs_form_item"},{default:vr(()=>[iu(l,{modelValue:i.ticket_data.content,"onUpdate:modelValue":t[1]||(t[1]=e=>i.ticket_data.content=e)},null,8,["modelValue"])],void 0),_:1},8,["label"]),iu(p,{gutter:30},{default:vr(()=>[iu(u,{md:12,xs:24},{default:vr(()=>[iu(r,{label:e.$t("Ticket Priority"),class:"fs_form_item"},{default:vr(()=>[iu(d,{modelValue:i.ticket_data.client_priority,"onUpdate:modelValue":t[2]||(t[2]=e=>i.ticket_data.client_priority=e),placeholder:e.$t("Ticket Priority")},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.priorities,(e,t)=>(zd(),Kd(c,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(u,{md:12,xs:24},{default:vr(()=>[n.products.length?(zd(),Kd(r,{key:0,label:e.$t("Ticket Product"),class:"fs_form_item"},{default:vr(()=>[iu(d,{modelValue:i.ticket_data.product_id,"onUpdate:modelValue":t[3]||(t[3]=e=>i.ticket_data.product_id=e),filterable:"",clearable:"",placeholder:e.$t("Ticket Product")},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.products,e=>(zd(),Kd(c,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ru("",!0)],void 0),_:1}),iu(u,{md:12,xs:24},{default:vr(()=>[n.mailboxes.length?(zd(),Kd(r,{key:0,label:e.$t("Ticket Mailbox"),class:"fs_form_item"},{default:vr(()=>[iu(d,{modelValue:i.ticket_data.mailbox_id,"onUpdate:modelValue":t[4]||(t[4]=e=>i.ticket_data.mailbox_id=e),placeholder:e.$t("Ticket Mailbox")},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.mailboxes,e=>(zd(),Kd(c,{key:e.id,value:e.id,label:e.name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ru("",!0)],void 0),_:1})],void 0),_:1}),iu(r,null,{default:vr(()=>[br((zd(),Kd(h,{class:"fs_filled_btn",onClick:s.splitTicket,disabled:i.spliting||!i.ticket_data.title,type:"primary"},{default:vr(()=>[su(me(e.$t("Split Ticket")),1)],void 0),_:1},8,["onClick","disabled"])),[[g,i.spliting]])],void 0),_:1})],void 0),_:1},8,["data"])}]]),FluentBoardsIntegration:Wue,IconPack:dY,FluentBotAIResponseGenerator:oee},data(){return{loading:!1,ticket:{},conversations:[],show_response_box:"",products:this.appVars.support_products,productSearchQuery:"",agents:this.appVars.support_agents,admin_priorities:this.appVars.admin_priorities,client_priorities:this.appVars.client_priorities,updating:!1,deleting:!1,active_agents:[],edit_response_modal:!1,editing_response:!1,showCustomDataEditForm:!1,fluentcrm_profile:!1,mailboxes:this.appVars.mailboxes,customer_tickets:[],show_merge_modal:!1,show_watcher_modal:!1,watchers:[],pagination:{current_page:1,total:0,per_page:10},conversation_type:"",filteredWatchersIds:[],split_ticket_modal:!1,split_ticket:{},ticket_statuses:this.appVars.changeable_ticket_statuses,close_ticket_silently:"no",app_ready:!1,fetch_other_tickets:!1,canManageTickets:!1,canAssignAgents:!1,draftReplyPermission:!1,draftReplyApprovePermission:!1,draftResponse:{},showDraft:!1,draftData:{},show_response_draft:!1,tickets_to_merge:[],filteredMergeSelectedTickets:[],ticketNotFound:"",show_fbs_add_task_modal:!1,watcherIds:[],ticketSummary:"",customerSentiment:"",ResponseLoader:!1,apiKey:"",fluentBotIntegration:!!this.appVars.fluent_bot_integration,showFluentBotPanel:!1,fluentBotBootstrapped:!1,pendingFluentBotContextId:null,deleteTicketPermission:!1,conversationRefs:{}}},computed:{openAIIntegration(){return!!this.appVars.open_ai_integration},filteredHeaderProducts(){const e=this.products||[],t=this.productSearchQuery.trim().toLowerCase();return t?e.filter(e=>e.title.toLowerCase().includes(t)):e},getTicketStatus(){const e={};for(let t in this.ticket_statuses)this.ticket_statuses[t].length&&(e[t]=this.ticket_statuses[t][0]);return e},popoverWidth:()=>"undefined"!=typeof window?Math.min(600,window.innerWidth-40):600,agentGroups(){return this.appVars.agent_groups||[]},groupedAgentOptions(){return Mae(this.agents||[],this.agentGroups,this.$t("Other"))},assignedAgentGroupName(){if(!this.ticket.agent_id||!this.agentGroups.length)return"";const e=Number(this.ticket.agent_id);for(const t of this.agentGroups){if((t.agent_ids||[]).map(Number).includes(e))return t.title}return""},isReplyResponseBoxOpen(){return["response","draft_response"].includes(this.show_response_box)},isNoteResponseBoxOpen(){return"note"===this.show_response_box}},watch:{showFluentBotPanel(e){if(e)this.fluentBotBootstrapped=!0,this._priorFocusEl=document.activeElement,this._escHandler=e=>{"Escape"===e.key&&this.handleFluentBotEscape(e)},document.addEventListener("keydown",this._escHandler),this.$nextTick(()=>{const e=this.$refs.fluentBotPanel;e&&"function"==typeof e.focus&&e.focus()});else{if(this._escHandler&&(document.removeEventListener("keydown",this._escHandler),this._escHandler=null),this._priorFocusEl&&"function"==typeof this._priorFocusEl.focus)try{this._priorFocusEl.focus({preventScroll:!0})}catch(NO){}this._priorFocusEl=null}},"$route.params.ticket_id"(e){e&&(this.doAction("ticket_view_exit",this.ticket.id),this.ticket={},this.$nextTick(()=>{this.doAction("ticket_view_entered",e),this.fetchTicket()}))},tickets_to_merge(e){this.filteredMergeSelectedTickets=e.map(e=>parseInt(e.id))}},methods:{handleFluentBotEscape(e){const t=document.querySelector('.el-overlay:not([style*="display: none"])');if(t&&"none"!==t.style.display)return;e.stopPropagation();const i=this.$refs.fluentBotComponent;i&&i.hasOpenMenu()?i.closeMenus():this.showFluentBotPanel=!1},insertFluentBotResponse(e){if(window.tinymce&&window.tinymce.activeEditor)return window.tinymce.activeEditor.insertContent(e),void(this.showFluentBotPanel=!1);this.$notify({message:this.$t("Open the reply editor first to insert FluentBot content."),type:"warning",position:"bottom-right"})},onAgentPopoverShow(){this.$nextTick(()=>{this.$refs.agentSelect&&(this.$refs.agentSelect.focus(),this.$refs.agentSelect.toggleMenu())})},toggleReplyResponseBox(){const e=this.draftReplyPermission?"draft_response":"response";this.show_response_box=this.show_response_box===e?"":e},toggleNoteResponseBox(){this.show_response_box=this.isNoteResponseBoxOpen?"":"note"},async fetchTicket(){this.loading=!0,await this.$get(`tickets/${this.ticket_id}`,{customer_id:this.ticket.customer_id,with_data:["fluentcrm_profile"]}).then(e=>{"yes"===this.appVars.enable_draft_mode&&this.fetchDraft(),this.loading=!1,this.ticket=e.ticket,this.ticket.product_id=this.ticket.product_id&&"0"!==this.ticket.product_id?Number(this.ticket.product_id):null,this.$setTitle(e.ticket.title),this.conversations=e.responses;const t=this.appVars.me.permissions;this.canManageTickets=t.includes("fst_manage_own_tickets")||t.includes("fst_manage_unassigned_tickets")||t.includes("fst_manage_other_tickets"),this.canAssignAgents=this.canManageTickets&&t.includes("fst_assign_agents"),this.draftReplyPermission=t.includes("fst_draft_reply"),this.draftReplyApprovePermission=t.includes("fst_approve_draft_reply"),this.deleteTicketPermission=t.includes("fst_delete_tickets"),document.body.dispatchEvent(new CustomEvent("fs_ticket_viewed",{detail:{response:e}})),this.appVars.fluentcrm_config&&(this.fluentcrm_profile=e.fluentcrm_profile),this.has_pro&&(this.watchers=e.watchers,this.filteredWatchersIds=e.watchers.map((e,t)=>e.tag_id))}).catch(e=>{this.loading=!1,this.$handleError(e)}).always(()=>{this.loading=!1})},async fetchDraft(){try{const e=await this.$get(`tickets/${this.ticket_id}/draft`);this.draftData=e.draft,this.draftData&&this.draftData.value.content?(this.draftResponse=this.draftData.value.content,this.showDraft=!0):(this.draftResponse=null,this.draft=null)}catch(e){this.$handleError(e)}},getTextByPerson(e,t){return"draft_response"===(null==e?void 0:e.conversation_type)?this.$t("Draft Response"):"agent"===(null==e?void 0:e.person.person_type)?e.person.title?e.person.title:this.$t("Support Staff"):t.customer_id==e.person_id?this.$t("Thread Starter"):this.$t("Thread Follower")},getRibbonClass(e,t){const i=["fs_thread_ribbon"];return e.person&&("agent"===e.person.person_type?i.push("fs_thread_ribbon_agent"):t.customer_id==e.person_id?i.push("fs_thread_ribbon_customer"):i.push("fs_thread_ribbon_customer_cc")),"draft_response"===e.conversation_type&&i.push("fs_thread_ribbon_draft_response"),i},getTicketClasses(e,t){const i=["fs_thread"];return e.person&&("agent"===e.person.person_type?(i.push("fs_person_agent"),i.push("fs_agent")):t.customer_id==e.person_id?(i.push("fs_person_customer"),i.push("fs_customer")):(i.push("fs_person_customer_cc"),i.push("fs_cc_customer"))),i.push("fs_conv_type_"+e.conversation_type),i},getConversationClass(e){var t,i;return"note"===e.conversation_type?"fs_msg_note":"draft_response"===e.conversation_type?"fs_msg_draft":"internal_info"===e.conversation_type?"fs_internal_info":"customer"===(null==(t=e.person)?void 0:t.person_type)?"fs_msg_customer":"agent"===(null==(i=e.person)?void 0:i.person_type)?"fs_msg_agent":""},recordNewResponse(e,t){var i,a;this.conversations.unshift(e),this.ticket.status=t.ticket.status,this.show_response_box="","response"===(null==e?void 0:e.conversation_type)&&(null==(i=null==e?void 0:e.content)?void 0:i.includes("fs_ticket_id="))&&window.dispatchEvent(new CustomEvent("fluent-support/fluent-booking-link-sent",{detail:{ticket_id:this.ticket_id,response_id:e.id}})),yX(t.update_data,(e,t)=>{this.ticket[t]=e}),"yes"===this.appVars.pref.go_back_after_reply&&(null==(a=window.history.state)||a.back)},updateTicketAttr(e,t=null){const i=null!==t?t:this.ticket[e];return this.$put(`tickets/${this.ticket.id}/property`,{prop_name:e,prop_value:i}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),yX(e.update_data,(e,t)=>{this.ticket[t]=e}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})},handleStatusChange(e){if(this.updating)return;const t=this.ticket.status;e!==t&&("closed"!==e?"closed"!==t?(this.updating=!0,this.updateTicketAttr("status",e).always(()=>{this.updating=!1})):this.reOpen():this.closeTicket())},getHumanName(e){var t;return parseInt(null==(t=this.appVars.me)?void 0:t.id)===parseInt(e.id)?this.$t("You"):e.full_name},closeTicket(){this.updating=!0,this.$post(`tickets/${this.ticket.id}/close`,{close_ticket_silently:this.close_ticket_silently}).then(e=>{var t;this.ticket.status=e.ticket.status,this.$notify({message:e.message,type:"success",position:"bottom-right"}),(null==(t=window.history.state)?void 0:t.back)&&this.$router.go(-1)}).catch(e=>{this.$handleError(e)}).always(()=>{this.updating=!1})},deleteTicket(){this.$confirm({message:this.$t("Are you sure to delete this Ticket?"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Delete Ticket"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.deleting=!0,this.$del(`tickets/${this.ticket.id}/delete`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$router.push({name:"tickets"})})})},approveDraftResponse(e){this.$put(`tickets/${e.ticket_id}/approve_draft_response/${e.id}`,{content:e.content}).then(e=>{this.$notify({message:e.message,type:"success"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})},reOpen(){this.updating=!0,this.$post(`tickets/${this.ticket.id}/re-open`).then(e=>{this.ticket.status=e.ticket.status}).catch(e=>{this.$handleError(e)}).always(()=>{this.updating=!1})},onActivityChange(e){const t=[];e.forEach(e=>{t.push(e.val())}),this.active_agents=t},onTicketDataChange(e){let t=e.val();this.ticket[t.type]=t.data},handleResponseActionCommand(e){var t;const i=e.type,a=e.conversation;"delete"==i?this.$confirm({message:this.$t("response_delete_warning"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Delete Response"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.$del(`tickets/${this.ticket.id}/responses/${a.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})}):"edit"===i?(this.editing_response=a,this.edit_response_modal=!0,this.conversation_type=a.conversation_type):"discard"===i?this.$confirm({message:this.$t("Are you sure you want to discard this draft response?"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Discard"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.discardDraft(a.id).then(()=>{this.$notify({message:this.$t("Draft response discarded successfully"),type:"success",position:"bottom-right"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})}):"split_ticket"===i?(this.split_ticket={conversation_id:a.id,content:a.content,customer_id:parseInt(this.ticket.customer_id),mailbox_id:parseInt(this.ticket.mailbox_id),product_id:null==(t=this.ticket.product)?void 0:t.id,client_priority:this.ticket.priority,create_wp_user:"no",create_customer:"no"},this.split_ticket_modal=!0):"add_to_fluentbot"===i&&(this.showFluentBotPanel=!0,this.pendingFluentBotContextId=a.id)},afterCreatedTask(){this.show_fbs_add_task_modal=!1,this.fetchTicket()},changeMailbox(e){this.loading=!this.loading,this.$put(`mailboxes/${this.ticket.mailbox_id}/move_tickets`,{new_box_id:e,ticket_ids:[this.ticket_id],move_type:"Custom"}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},customerTickets(){this.$get("tickets/customer_tickets/"+this.ticket.customer_id,{exclude_ticket_id:this.ticket_id,page:this.pagination.current_page,per_page:this.pagination.per_page}).then(e=>{this.app_ready=!0,this.customer_tickets=e.tickets.data,this.pagination.total=e.tickets.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleMergeSelectionChange(e){this.tickets_to_merge=e},mergeTickets(){this.$confirm({message:this.$t("Are you sure you want to merge these tickets?"),title:this.$t("Merge Tickets"),type:"Warning",options:{confirmButtonText:this.$t("Merge"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.loading=!0,this.$post("tickets/"+this.ticket_id+"/merge_tickets",{ticket_to_merge:this.filteredMergeSelectedTickets}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.customerTickets(),this.fetchTicket(),this.fetch_other_tickets=!this.fetch_other_tickets}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})})},santizeContent:e=>e&&"string"==typeof e?((e=e.replace(/\n\s*\n/g,"\n")).includes("@[")&&(e=e.replace(/@\[(\d+):([^\]]+)\]/g,(e,t,i)=>`<span class="fs_agent_mention">@${i}</span>`)),_J(window.DOMPurify),window.DOMPurify.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style"]})):e,syncCustomData(e){this.ticket.custom_fields=e,this.showCustomDataEditForm=!1},addWatchers(){this.saving=!0,this.$post(`tickets/${this.ticket.id}/add_watchers`,{watchers:this.watcherIds}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTicket(),this.show_watcher_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},splitToNewTicket(){this.loading=!0,this.$post("tickets/"+this.ticket.id+"/split_ticket",{split_ticket:this.split_ticket}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.customerTickets(),this.fetchTicket(),this.split_ticket_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},discardDraft(e){return this.$del("tickets/"+e+"/draft").then(e=>{this.draftData=null,this.draftResponse=null,this.showDraft=!1}).catch(e=>{this.$handleError(e)})},getArrToString:e=>e?e.join(","):"",isEmpty:e=>Xte(e),isArray:e=>pK(e),getMailboxName(e){if(!this.mailboxes||!this.mailboxes.length)return"";const t=this.mailboxes.find(t=>t.id==e);return t?t.name:""},getProductName(e){if(!this.products||!this.products.length||!e)return"";const t=this.products.find(t=>t.id==e);return t?t.title:""},onProductDropdownToggle(e){e||(this.productSearchQuery="")},closeAIResponse(){this.ticketSummary="",this.customerSentiment=""},getTicketSummary(){this.ResponseLoader=!0,this.$post(`ai/${this.ticket_id}/get-ticket-summary`,{type:"ticketSummary"}).then(e=>{this.ticketSummary=e,this.customerSentiment="",this.ResponseLoader=!1}).catch(e=>{this.ResponseLoader=!1,this.$handleError(e)})},getCustomerSentiment(){this.ResponseLoader=!0,this.$post(`ai/${this.ticket_id}/get-ticket-tone`,{type:"ticketTone"}).then(e=>{let t={emoji:"",text:e};e.includes("Positive")?(t.emoji="😀",t.text="Positive"):e.includes("Neutral")?(t.emoji="😐",t.text="Neutral"):e.includes("Negative")&&(t.emoji="😡",t.text="Negative"),this.customerSentiment=t,this.ticketSummary="",this.ResponseLoader=!1}).catch(e=>{this.ResponseLoader=!1,this.$handleError(e)})},setRef(e,t){t&&(this.conversationRefs[e]=t)},handleKeydown(e){const{metaKey:t,altKey:i,code:a}=e;if((!t||!i||"KeyI"!==a)&&t&&i){e.preventDefault();const t={KeyR:()=>{(this.canManageTickets||this.draftReplyPermission)&&this.toggleReplyResponseBox()},KeyN:()=>{this.canManageTickets&&this.toggleNoteResponseBox()},KeyQ:()=>this.fetchTicket(),KeyM:()=>{this.has_pro&&(this.customerTickets(),this.show_merge_modal=!this.show_merge_modal,this.app_ready=!1)},KeyB:()=>{this.has_pro&&(this.show_watcher_modal=!this.show_watcher_modal)}}[a];t&&t()}},async scrollToHash(){const e=window.location.hash.split("#").pop();if(e&&this.conversationRefs[e]){const t=this.conversationRefs[e];return this.$scrollToRef(t)}},handleTopBarCommand(e){switch(e){case"merge":this.customerTickets(),this.show_merge_modal=!this.show_merge_modal,this.app_ready=!1;break;case"close_silently":this.close_ticket_silently="yes",this.closeTicket(),this.close_ticket_silently="no";break;case"fluent_boards":this.show_fbs_add_task_modal=!this.show_fbs_add_task_modal;break;case"delete":this.deleteTicket()}}},async mounted(){await this.fetchTicket(),this.doAction("ticket_view_entered",this.ticket_id),await this.scrollToHash(),window.addEventListener("hashchange",this.scrollToHash),"yes"===this.appVars.keyboard_shortcuts&&window.addEventListener("keydown",this.handleKeydown)},beforeUnmount(){this.doAction("ticket_view_exit",this.ticket_id),document.body.dispatchEvent(new CustomEvent("fs_ticket_view_exit",{detail:{ticket_id:this.ticket_id}})),"yes"===this.appVars.keyboard_shortcuts&&window.removeEventListener("keydown",this.handleKeydown),this._escHandler&&document.removeEventListener("keydown",this._escHandler)}},tpe={class:"fs_view_ticket"},ipe={class:"fs_ticket_body"},ape={class:"fs_action_buttons"},npe=["src"],spe=["src"],ope={class:"fs_agent_selector_tooltip"},rpe={key:0,class:"fs_agent_selector_display"},lpe=["src","alt"],cpe={class:"fs_agent_name_display"},dpe={key:0,class:"fs_agent_group_label"},upe=["src"],ppe={class:"fs_agent_selector"},hpe=["src"],fpe={key:0},gpe={width:"14",style:{"margin-right":"4px"},height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mpe=["src"],_pe={class:"fs_title_container"},vpe={class:"fs_title_content"},bpe={class:"fs_title_row"},ype={class:"fs_ticket_title"},xpe=["title"],Spe={style:{"margin-top":"8px","font-size":"12px",color:"#525866"}},wpe={key:1},Cpe={class:"fs_info_container"},Epe={class:"fs_timer_info"},kpe={class:"fs_timer_text"},Tpe={key:1,class:"fs_info_separator"},Ape={class:"fs_ticket_status"},Rpe={key:3,class:"fs_ticket_status"},Ipe={key:0,class:"fs_box_body"},Dpe={class:"fs_tk_merge_actions"},Ope={key:0,style:{"padding-bottom":"20px"},class:"fs_pagination_wrapper"},Mpe={key:1,class:"fs_box_body"},Npe={key:2,class:"fs_box_body fs_skeleton_loader"},Lpe={class:"fs_box_body"},Ppe={class:"fs_ticket_header"},Fpe={class:"fs_header_container"},Bpe={class:"fs_action_group"},$pe=["src"],Vpe={class:"fs_header_right_group"},Upe={class:"fs_header_dropdown_text"},Hpe=["src"],zpe={key:0,class:"fs_header_dropdown_text"},Ype={key:1,class:"fs_dropdown_no_results"},Gpe=["src"],Wpe={key:2,class:"fs_intelligence"},jpe={key:0,class:"fs_intelligence_card__result"},qpe={class:"fs_generated_summary"},Kpe={class:"fs_ai_response_actions"},Xpe={class:"fs_ai_regenerate"},Zpe=["src"],Qpe={class:"fs_ai_response_close"},Jpe=["src"],ehe={key:1,class:"fs_intelligence_card__result"},the={class:"fs_customer_sentiment"},ihe={class:"fs_ai_response_actions"},ahe={class:"fs_ai_regenerate"},nhe=["src"],she={class:"fs_ai_response_close"},ohe=["src"],rhe={class:"fs_customer_sentiment_status"},lhe={class:"fs_sentiment_emoji"},che={class:"fs_sentiment_label"},dhe={class:"fs_sentiment_text"},uhe={key:3,class:"fs_ai_response_loading"},phe={key:0,class:"fs_response_box_transition"},hhe={class:"fs_response_box_transition_inner"},fhe={key:0},ghe=["src"],mhe={key:5,class:"fs_threads_container"},_he={key:0,class:"fs_saved_draft fs_conversation_message fs_msg_draft"},vhe={class:"fs_message_container"},bhe={class:"fs_message_content"},yhe={class:"fs_message_header"},xhe={class:"fs_message_info"},She={class:"fs_message_name_row"},whe={class:"fs_badge_draft_response"},Che=["title"],Ehe=["title"],khe=["innerHTML"],The={class:"fs_draft_actions"},Ahe={class:"fs_message_container"},Rhe={class:"fs_message_avatar"},Ihe=["src","alt"],Dhe={class:"fs_message_content"},Ohe={class:"fs_message_header"},Mhe={class:"fs_message_info"},Nhe={class:"fs_message_name_row"},Lhe={key:0,class:"fs_message_name"},Phe={class:"fs_role_badge fs_role_badge_customer"},Fhe={class:"fs_role_badge fs_role_badge_agent"},Bhe={key:3,class:"fs_message_label fs_label_internal_info"},$he={key:4,class:"fs_message_label fs_label_internal_info"},Vhe={key:5,class:"fs_badge_draft_response"},Uhe=["title"],Hhe={key:0,class:"fs_carbon_copy_info"},zhe={key:0,class:"carrier_info"},Yhe={key:0,class:"from_info"},Ghe={key:1,class:"fs_cc_info"},Whe={class:"fs_conversation_right_side"},jhe={key:0,class:"fs_ticket_source"},qhe=["src"],Khe={key:0,class:"fs_message_actions"},Xhe=["src"],Zhe=["innerHTML"],Qhe={key:0,class:"fs_message_attachments"},Jhe=["href"],efe={key:1,class:"fs_message_liked"},tfe=["src"],ife={key:2,class:"fs_draft_actions"},afe=["src"],nfe={class:"fs_conversation_message fs_thread_starter"},sfe={class:"fs_message_container"},ofe={class:"fs_message_avatar"},rfe=["src","alt"],lfe={class:"fs_message_content"},cfe={class:"fs_message_header"},dfe={class:"fs_message_info"},ufe={class:"fs_message_name_row"},pfe={class:"fs_message_name"},hfe={class:"fs_role_badge fs_role_badge_customer"},ffe={class:"fs_message_badge fs_badge_thread_starter"},gfe={key:0,class:"fs_created_by_agent"},mfe={class:"fs_message_time_row"},_fe=["title"],vfe={class:"fs_message_email"},bfe={key:0,class:"carrier_info"},yfe={key:0,class:"fs_cc_info"},xfe={class:"fs_conversation_right_side"},Sfe={key:0,class:"fs_ticket_source"},wfe=["src"],Cfe=["innerHTML"],Efe={key:0,class:"fs_message_attachments"},kfe=["href"],Tfe={key:1,class:"fs_conversation_message fs_additional_info"},Afe={class:"fs_custom_data_card"},Rfe={class:"fs_custom_data_header"},Ife=["src"],Dfe={class:"fs_custom_data_body"},Ofe={key:0,class:"fs_custom_data_list"},Mfe={dir:"auto",class:"fs_custom_data_label"},Nfe={dir:"auto",class:"fs_custom_data_value"},Lfe={key:0},Pfe={key:1},Ffe=["innerHTML"],Bfe={key:1,class:"fs_no_data"},$fe={class:"fs_ticket_sidebar"},Vfe=["aria-label","aria-hidden"],Ufe={key:1,class:"fs_ticket_error_message"},Hfe={class:"fs_error_container"},zfe=["src","alt"],Yfe={class:"fs_error_title"},Gfe={class:"fs_error_description"},Wfe={class:"fs_ticket_body"},jfe={class:"fs_skeleton_loader"},qfe={class:"fs_ticket_sidebar"};const Kfe=lH(epe,[["render",function(e,t,i,a,n,s){var o,r,l,c,d,u,p,h;const f=Sk,g=ZC,m=Jl("ArrowDown"),_=KS,v=wA,b=CA,y=SA,x=P$,S=Jl("work-flow-selector"),w=Jl("Check"),C=Jl("RefreshRight"),E=Jl("More"),k=nN,T=Jl("MuteNotification"),A=Jl("Delete"),R=sN,I=aN,D=cE,O=Jl("Timer"),M=ZP,N=XP,L=Jl("pagination"),P=AL,F=dM,B=Jl("IconPack"),$=Jl("OfficeBuilding"),V=Jl("create-response"),U=Jl("EditPen"),H=Jl("MoreFilled"),z=Jl("paperclip"),Y=Jl("custom-field-form"),G=Jl("ticket-sidebar"),W=Jl("FluentBotAIResponseGenerator"),j=Jl("edit-response"),q=Jl("FluentBoardsIntegration"),K=Jl("split-ticket"),X=Jl("active-agents"),Z=WB;return zd(),qd("div",tpe,[n.ticket&&n.ticket.id?(zd(),qd(Fd,{key:0},[tu("div",ipe,[(zd(),Kd(Hr,{to:"#fs_top_bar_actions_slot"},[tu("div",ape,[iu(g,{effect:"dark",content:e.$t("Refresh"),placement:"top"},{default:vr(()=>[br((zd(),Kd(f,{class:"fs_refresh_btn fs_outline_btn",title:e.$t("Refresh"),onClick:t[0]||(t[0]=e=>s.fetchTicket()),disabled:n.loading},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,npe)],void 0),_:1},8,["title","disabled"])),[[Z,n.loading]])],void 0),_:1},8,["content"]),!n.watchers.length&&e.has_pro?(zd(),Kd(g,{key:0,effect:"dark",content:e.$t("Add Bookmark"),placement:"top"},{default:vr(()=>[iu(f,{class:"fs_outline_btn",title:e.$t("Add Bookmark"),onClick:t[1]||(t[1]=e=>n.show_watcher_modal=!0)},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/bookMark.svg",alt:""},null,8,spe)],void 0),_:1},8,["title"])],void 0),_:1},8,["content"])):ru("",!0),n.canAssignAgents?(zd(),Kd(g,{key:1,effect:"dark",content:e.$t("Assign Agent"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",ope,[iu(x,{placement:"bottom",width:300,trigger:"click","popper-class":"fs_popover",onShow:s.onAgentPopoverShow},{reference:vr(()=>{var t;return[iu(f,{class:se(["fs_outline_btn",(null==(t=n.ticket.agent)?void 0:t.photo)?"fs_agent_selector_btn":""])},{default:vr(()=>{var t,i;return[(null==(t=n.ticket.agent)?void 0:t.photo)?(zd(),qd("div",rpe,[tu("img",{src:n.ticket.agent.photo,alt:n.ticket.agent.full_name,class:"fs_agent_avatar_img"},null,8,lpe),tu("span",cpe,[su(me((null==(i=n.ticket.agent)?void 0:i.full_name)||e.$t("Unassigned"))+" ",1),s.assignedAgentGroupName?(zd(),qd("span",dpe,"("+me(s.assignedAgentGroupName)+")",1)):ru("",!0)]),iu(_,{class:"fs_agent_dropdown_arrow"},{default:vr(()=>[iu(m)],void 0),_:1})])):(zd(),qd("img",{key:1,src:e.appVars.asset_url+"images/agenIconFill.svg",alt:"",class:"fs_agent_icon_placeholder"},null,8,upe))]},void 0),_:1},8,["class"])]}),default:vr(()=>[tu("div",ppe,[iu(y,{ref:"agentSelect",modelValue:n.ticket.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.ticket.agent_id=e),onChange:t[3]||(t[3]=e=>s.updateTicketAttr("agent_id")),filterable:"",class:"fs_select_field fs_agent_selector_dropdown","popper-class":"fs_agent_group_popper",placeholder:e.$t("Select Agent")},{default:vr(()=>[s.agentGroups.length?(zd(!0),qd(Fd,{key:0},sc(s.groupedAgentOptions,e=>(zd(),Kd(b,{key:e.label,label:e.label},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.agents,e=>(zd(),Kd(v,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:2},1032,["label"]))),128)):(zd(!0),qd(Fd,{key:1},sc(n.agents,e=>(zd(),Kd(v,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])])],void 0),_:1},8,["onShow"])])],void 0),_:1},8,["content"])):ru("",!0),e.appVars.manual_workflows&&e.appVars.manual_workflows.length?(zd(),Kd(g,{key:2,effect:"dark",content:e.$t("Run Workflow"),placement:"top",trigger:"hover"},{default:vr(()=>[iu(S,{onReloadTickets:t[4]||(t[4]=e=>s.fetchTicket()),ticket_ids:[i.ticket_id]},{default:vr(()=>[iu(f,{class:"fs_outline_btn",title:e.$t("Run Workflow")},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/workFlow.svg",alt:""},null,8,hpe)],void 0),_:1},8,["title"])],void 0),_:1},8,["ticket_ids"])],void 0),_:1},8,["content"])):ru("",!0),n.canManageTickets?(zd(),Kd(g,{key:3,effect:"dark",content:e.$t("Close Ticket"),placement:"top",trigger:"hover"},{default:vr(()=>[br((zd(),Kd(f,{class:"fs_outline_btn fs_action_btn_with_text fs_close_ticket_btn",onClick:t[5]||(t[5]=e=>"closed"===n.ticket.status?s.reOpen():s.closeTicket()),disabled:n.updating},{default:vr(()=>["closed"!==n.ticket.status?(zd(),Kd(_,{key:0},{default:vr(()=>[iu(w)],void 0),_:1})):ru("",!0),"closed"===n.ticket.status?(zd(),Kd(_,{key:1},{default:vr(()=>[iu(C)],void 0),_:1})):ru("",!0),tu("span",null,me("closed"===n.ticket.status?e.$t("Re-open"):e.$t("Close Ticket")),1)],void 0),_:1},8,["disabled"])),[[Z,n.updating]])],void 0),_:1},8,["content"])):ru("",!0),n.canManageTickets?(zd(),Kd(g,{key:4,effect:"dark",content:e.$t("More Actions"),placement:"top",trigger:"hover"},{default:vr(()=>[iu(I,{class:"fs_more_action",trigger:"click",onCommand:s.handleTopBarCommand},{dropdown:vr(()=>[iu(R,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:vr(()=>[e.has_pro?(zd(),qd("div",fpe,[iu(k,{command:"merge"},{default:vr(()=>[(zd(),qd("svg",gpe,[...t[31]||(t[31]=[tu("path",{d:"M4.14447 5.12748C4.24566 5.4978 4.46577 5.8246 4.77092 6.05754C5.07606 6.29048 5.44932 6.41666 5.83322 6.41665H8.16655C8.85374 6.4167 9.51884 6.65933 10.0446 7.10178C10.5704 7.54423 10.9232 8.15808 11.0406 8.83515C11.4365 8.96431 11.7734 9.23039 11.9908 9.5856C12.2082 9.9408 12.2918 10.3619 12.2267 10.7732C12.1616 11.1845 11.9519 11.5591 11.6355 11.8298C11.319 12.1005 10.9163 12.2495 10.4999 12.25C10.0924 12.2503 9.69767 12.1084 9.38362 11.8489C9.06957 11.5893 8.85594 11.2283 8.77956 10.828C8.70318 10.4278 8.76884 10.0135 8.96522 9.65651C9.1616 9.29952 9.47639 9.02224 9.85531 8.87248C9.75412 8.50216 9.534 8.17537 9.22886 7.94242C8.92371 7.70948 8.55045 7.5833 8.16655 7.58331H5.83322C5.20199 7.58424 4.58765 7.37946 4.08322 6.99998V8.84915C4.47259 8.98676 4.80078 9.2576 5.00976 9.61378C5.21875 9.96997 5.29509 10.3886 5.22528 10.7956C5.15547 11.2026 4.94401 11.5719 4.62827 11.8381C4.31254 12.1043 3.91286 12.2503 3.49989 12.2503C3.08691 12.2503 2.68724 12.1043 2.3715 11.8381C2.05577 11.5719 1.84431 11.2026 1.7745 10.7956C1.70469 10.3886 1.78102 9.96997 1.99001 9.61378C2.199 9.2576 2.52718 8.98676 2.91655 8.84915V5.15081C2.52979 5.01426 2.20325 4.74624 1.99393 4.39351C1.7846 4.04079 1.70577 3.62576 1.7712 3.22085C1.83663 2.81594 2.04216 2.44686 2.35192 2.17801C2.66169 1.90916 3.05602 1.75762 3.46611 1.74983C3.8762 1.74204 4.276 1.87849 4.59576 2.13537C4.91551 2.39226 5.13491 2.75326 5.21568 3.15539C5.29644 3.55753 5.23344 3.97525 5.03766 4.33567C4.84189 4.6961 4.52577 4.97633 4.14447 5.12748V5.12748ZM3.49989 4.08331C3.6546 4.08331 3.80297 4.02186 3.91237 3.91246C4.02176 3.80306 4.08322 3.65469 4.08322 3.49998C4.08322 3.34527 4.02176 3.1969 3.91237 3.0875C3.80297 2.97811 3.6546 2.91665 3.49989 2.91665C3.34518 2.91665 3.1968 2.97811 3.08741 3.0875C2.97801 3.1969 2.91655 3.34527 2.91655 3.49998C2.91655 3.65469 2.97801 3.80306 3.08741 3.91246C3.1968 4.02186 3.34518 4.08331 3.49989 4.08331ZM3.49989 11.0833C3.6546 11.0833 3.80297 11.0219 3.91237 10.9125C4.02176 10.8031 4.08322 10.6547 4.08322 10.5C4.08322 10.3453 4.02176 10.1969 3.91237 10.0875C3.80297 9.9781 3.6546 9.91665 3.49989 9.91665C3.34518 9.91665 3.1968 9.9781 3.08741 10.0875C2.97801 10.1969 2.91655 10.3453 2.91655 10.5C2.91655 10.6547 2.97801 10.8031 3.08741 10.9125C3.1968 11.0219 3.34518 11.0833 3.49989 11.0833ZM10.4999 11.0833C10.6546 11.0833 10.803 11.0219 10.9124 10.9125C11.0218 10.8031 11.0832 10.6547 11.0832 10.5C11.0832 10.3453 11.0218 10.1969 10.9124 10.0875C10.803 9.9781 10.6546 9.91665 10.4999 9.91665C10.3452 9.91665 10.1968 9.9781 10.0874 10.0875C9.97801 10.1969 9.91655 10.3453 9.91655 10.5C9.91655 10.6547 9.97801 10.8031 10.0874 10.9125C10.1968 11.0219 10.3452 11.0833 10.4999 11.0833Z",fill:"currentColor"},null,-1)])])),su(" "+me(e.$t("Merge Ticket")),1)],void 0),_:1}),iu(k,{command:"close_silently"},{default:vr(()=>[iu(_,null,{default:vr(()=>[iu(T)],void 0),_:1}),su(" "+me(e.$t("Close Ticket Silently")),1)],void 0),_:1})])):ru("",!0),e.appVars.fluent_boards?(zd(),Kd(k,{key:1,command:"fluent_boards"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"/images/addTask.svg",class:"fs_add_task_logo"},null,8,mpe),su(" "+me(e.$t("Add Task to Fluent Boards")),1)],void 0),_:1})):ru("",!0),iu(k,{command:"delete"},{default:vr(()=>[iu(_,null,{default:vr(()=>[iu(A)],void 0),_:1}),su(" "+me(e.$t("Delete Ticket")),1)],void 0),_:1})],void 0),_:1})]),default:vr(()=>[iu(f,{class:"fs_outline_btn",title:e.$t("More Actions")},{default:vr(()=>[iu(_,{style:{transform:"rotate(90deg)"}},{default:vr(()=>[iu(E)],void 0),_:1})],void 0),_:1},8,["title"])],void 0),_:1},8,["onCommand"])],void 0),_:1},8,["content"])):ru("",!0)])])),tu("div",_pe,[tu("div",vpe,[tu("div",bpe,[tu("h2",ype,[n.canManageTickets?(zd(),Kd(x,{key:0,placement:"bottom-start",width:s.popoverWidth,trigger:"click"},{reference:vr(()=>{var t;return[tu("span",{title:e.$t("Click to Edit Subject")},me(null==(t=n.ticket)?void 0:t.title),9,xpe)]}),default:vr(()=>[iu(D,{onKeyup:t[6]||(t[6]=Ih(e=>s.updateTicketAttr("title"),["enter"])),modelValue:n.ticket.title,"onUpdate:modelValue":t[7]||(t[7]=e=>n.ticket.title=e),class:"fs_text_input"},null,8,["modelValue"]),tu("p",Spe,me(e.$t("Press enter to save")),1)],void 0),_:1},8,["width"])):(zd(),qd("span",wpe,me(null==(o=n.ticket)?void 0:o.title),1))])]),tu("div",Cpe,[n.ticket.waiting_since?(zd(),Kd(g,{key:0,effect:"dark",content:e.$t("Waiting Time")+": "+n.ticket.waiting_since,placement:"top",trigger:"hover"},{default:vr(()=>[tu("div",Epe,[iu(_,{class:"fs_timer_icon"},{default:vr(()=>[iu(O)],void 0),_:1}),tu("span",kpe,me(e.$t("Waiting"))+": "+me(e.$timeDiff(n.ticket.waiting_since)),1)])],void 0),_:1},8,["content"])):ru("",!0),n.ticket.waiting_since?(zd(),qd("span",Tpe,"∙")):ru("",!0),n.canManageTickets&&e.has_pro&&!s.isEmpty(n.ticket_statuses)?(zd(),Kd(x,{key:2,placement:"bottom",width:300,trigger:"click"},{reference:vr(()=>{var t;return[tu("div",Ape,[tu("span",{class:se(["fs_status_badge",`fs_status_${null==(t=n.ticket.status)?void 0:t.toLowerCase()}`])},me(e.appVars.ticket_statuses[n.ticket.status]||n.ticket.status),3)])]}),default:vr(()=>[iu(y,{class:"fs_select_field",teleported:!1,disabled:n.updating,onChange:s.handleStatusChange,"model-value":n.ticket.status,size:"default"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.getTicketStatus,(t,i)=>(zd(),Kd(v,{key:i,value:i,label:e.appVars.ticket_statuses[i]||i},{default:vr(()=>[su(me(e.appVars.ticket_statuses[i]||i),1)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:1},8,["disabled","onChange","model-value"])],void 0),_:1})):(zd(),qd("div",Rpe,[tu("span",{class:se(["fs_status_badge",`fs_status_${null==(r=n.ticket.status)?void 0:r.toLowerCase()}`])},me(e.appVars.ticket_statuses[n.ticket.status]||n.ticket.status),3)]))])])]),e.has_pro&&n.show_merge_modal?(zd(),Kd(F,{key:0,modelValue:n.show_merge_modal,"onUpdate:modelValue":t[9]||(t[9]=e=>n.show_merge_modal=e),title:e.$t("Merge Tickets"),"append-to-body":!0,class:"fs_dialog fs_dialog_merge_ticket"},{default:vr(()=>[n.customer_tickets.length&&n.app_ready?(zd(),qd("div",Ipe,[iu(N,{data:n.customer_tickets,style:{width:"100%"},onSelectionChange:s.handleMergeSelectionChange},{default:vr(()=>[iu(M,{type:"selection",width:"55"}),iu(M,{prop:"id",label:e.$t("ID"),width:"130"},null,8,["label"]),iu(M,{prop:"title",label:e.$t("Title"),width:"250"},null,8,["label"]),iu(M,{prop:"status",label:e.$t("Status"),width:"130"},null,8,["label"])],void 0),_:1},8,["data","onSelectionChange"]),tu("div",Dpe,[n.customer_tickets.length?(zd(),qd("div",Ope,[iu(L,{onFetch:s.customerTickets,pagination:n.pagination},null,8,["onFetch","pagination"])])):ru("",!0),iu(f,{class:"fs_filled_btn",size:"default",type:"primary",onClick:t[8]||(t[8]=e=>s.mergeTickets())},{default:vr(()=>[su(me(e.$t("Merge")),1)],void 0),_:1})])])):!n.customer_tickets.length&&n.app_ready?(zd(),qd("div",Mpe,[tu("h3",null,me(e.$t("customer_has_one_tk")),1)])):(zd(),qd("div",Npe,[iu(P,{rows:5,animated:""})]))],void 0),_:1},8,["modelValue","title"])):ru("",!0),e.has_pro&&n.show_watcher_modal?(zd(),Kd(F,{key:1,modelValue:n.show_watcher_modal,"onUpdate:modelValue":t[11]||(t[11]=e=>n.show_watcher_modal=e),title:e.$t("Add Bookmark"),"append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[tu("div",Lpe,[iu(y,{class:"fs_select_field",filterable:"",clearable:!0,multiple:!0,modelValue:n.watcherIds,"onUpdate:modelValue":t[10]||(t[10]=e=>n.watcherIds=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.agents,(e,t)=>(zd(),Kd(v,{key:t,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),iu(f,{class:"fs_filled_btn fs_bookmark_action_btn",onClick:s.addWatchers},{default:vr(()=>[su(me(e.$t("Add")),1)],void 0),_:1},8,["onClick"])])],void 0),_:1},8,["modelValue","title"])):ru("",!0),tu("div",Ppe,[tu("div",Fpe,[tu("div",Bpe,["closed"!=n.ticket.status&&(n.canManageTickets||n.draftReplyPermission)?(zd(),Kd(f,{key:0,class:se(["fs_outline_btn",{fs_header_btn_active:s.isReplyResponseBoxOpen}]),onClick:s.toggleReplyResponseBox},{default:vr(()=>[iu(B,{iconKey:s.isReplyResponseBoxOpen?"cancel":"total_replies",width:20,height:20},null,8,["iconKey"]),su(" "+me(s.isReplyResponseBoxOpen?e.$t("Cancel Reply"):e.$t("Reply")),1)],void 0),_:1},8,["class","onClick"])):ru("",!0),n.canManageTickets?(zd(),Kd(f,{key:1,class:se(["fs_outline_btn",{fs_header_btn_active:s.isNoteResponseBoxOpen}]),onClick:s.toggleNoteResponseBox},{default:vr(()=>[s.isNoteResponseBoxOpen?(zd(),Kd(B,{key:0,iconKey:"cancel",width:20,height:20})):(zd(),qd("img",{key:1,class:"fs_header_icon",src:e.appVars.asset_url+"images/draftLineIcon.svg",alt:""},null,8,$pe)),su(" "+me(s.isNoteResponseBoxOpen?e.$t("Cancel Notes"):e.$t("Notes")),1)],void 0),_:1},8,["class","onClick"])):ru("",!0)]),tu("div",Vpe,[iu(g,{effect:"dark",content:e.$t("Business Inbox"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",null,[e.appVars.me.permissions.includes("fst_manage_settings")&&n.mailboxes&&n.mailboxes.length>1?(zd(),Kd(I,{key:0,trigger:"click",onCommand:t[12]||(t[12]=e=>s.updateTicketAttr("mailbox_id",e))},{dropdown:vr(()=>[iu(R,{class:"fs_global_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.mailboxes,e=>(zd(),Kd(k,{key:e.id,command:e.id,disabled:n.ticket.mailbox_id==e.id},{default:vr(()=>[su(me(e.name),1)],void 0),_:2},1032,["command","disabled"]))),128))],void 0),_:1})]),default:vr(()=>[iu(f,{class:"fs_outline_btn fs_header_dropdown"},{default:vr(()=>[iu(_,{class:"fs_header_icon"},{default:vr(()=>[iu($)],void 0),_:1}),tu("span",Upe,me(s.getMailboxName(n.ticket.mailbox_id)),1),iu(_,{class:"fs_header_icon"},{default:vr(()=>[iu(m)],void 0),_:1})],void 0),_:1})],void 0),_:1})):ru("",!0)])],void 0),_:1},8,["content"]),iu(g,{effect:"dark",content:e.$t("Product"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",null,[n.products&&n.products.length?(zd(),Kd(I,{key:0,trigger:"click",onCommand:t[16]||(t[16]=e=>s.updateTicketAttr("product_id",e)),onVisibleChange:s.onProductDropdownToggle},{dropdown:vr(()=>[iu(R,{class:"fs_global_dropdown"},{default:vr(()=>[n.products.length>6?(zd(),qd("div",{key:0,class:"fs_dropdown_search",onClick:t[15]||(t[15]=Ah(()=>{},["stop"]))},[iu(D,{modelValue:n.productSearchQuery,"onUpdate:modelValue":t[13]||(t[13]=e=>n.productSearchQuery=e),placeholder:e.$t("Search")+"...",clearable:"",size:"small",onClick:t[14]||(t[14]=Ah(()=>{},["stop"]))},null,8,["modelValue","placeholder"])])):ru("",!0),(zd(!0),qd(Fd,null,sc(s.filteredHeaderProducts,e=>(zd(),Kd(k,{key:e.id,command:e.id,disabled:n.ticket.product_id==e.id},{default:vr(()=>[su(me(e.title),1)],void 0),_:2},1032,["command","disabled"]))),128)),s.filteredHeaderProducts.length?ru("",!0):(zd(),qd("div",Ype,me(e.$t("No products found")),1))],void 0),_:1})]),default:vr(()=>[iu(f,{class:se(["fs_outline_btn",{fs_header_dropdown:n.ticket.product_id}])},{default:vr(()=>[tu("img",{class:"fs_header_icon",src:e.appVars.asset_url+"images/productIcon.svg",alt:""},null,8,Hpe),n.ticket.product_id?(zd(),qd("span",zpe,me(s.getProductName(n.ticket.product_id)),1)):ru("",!0),n.ticket.product_id?(zd(),Kd(_,{key:1,class:"fs_header_icon"},{default:vr(()=>[iu(m)],void 0),_:1})):ru("",!0)],void 0),_:1},8,["class"])],void 0),_:1},8,["onVisibleChange"])):ru("",!0)])],void 0),_:1},8,["content"]),iu(g,{effect:"dark",content:e.$t("AI Intelligence"),placement:"top",trigger:"hover"},{default:vr(()=>[tu("span",null,[s.openAIIntegration?(zd(),Kd(I,{key:0,trigger:"click"},{dropdown:vr(()=>[iu(R,{class:"fs_global_dropdown"},{default:vr(()=>[iu(k,{onClick:s.getTicketSummary},{default:vr(()=>[su(me(e.$t("Ticket Summary")),1)],void 0),_:1},8,["onClick"]),iu(k,{onClick:s.getCustomerSentiment},{default:vr(()=>[su(me(e.$t("Customer Sentiment")),1)],void 0),_:1},8,["onClick"])],void 0),_:1})]),default:vr(()=>[iu(f,{class:"fs_filled_btn fs_ai_btn"},{default:vr(()=>[tu("img",{class:"fs_header_icon",src:e.appVars.asset_url+"images/aiIcon.svg",alt:""},null,8,Gpe)],void 0),_:1})],void 0),_:1})):ru("",!0)])],void 0),_:1},8,["content"])])])]),n.ResponseLoader?ru("",!0):br((zd(),qd("div",Wpe,[n.ticketSummary?(zd(),qd("div",jpe,[tu("div",qpe,[tu("div",Kpe,[tu("div",Xpe,[iu(f,{class:"fs_outline_btn",onClick:s.getTicketSummary},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,Zpe),su(" "+me(e.$t("Regenerate")),1)],void 0),_:1},8,["onClick"])]),tu("div",Qpe,[iu(f,{class:"fs_ai_response_close_button",onClick:s.closeAIResponse},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:""},null,8,Jpe)],void 0),_:1},8,["onClick"])])]),tu("div",null,[tu("strong",null,me(e.$t("Ticket Summary"))+":",1),tu("p",null,me(n.ticketSummary),1)])])])):ru("",!0),n.customerSentiment?(zd(),qd("div",ehe,[tu("div",the,[tu("div",ihe,[tu("div",ahe,[iu(f,{class:"fs_outline_btn",onClick:s.getCustomerSentiment},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,nhe),su(" "+me(e.$t("Regenerate")),1)],void 0),_:1},8,["onClick"])]),tu("div",she,[iu(f,{class:"fs_ai_response_close_button",onClick:s.closeAIResponse},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:""},null,8,ohe)],void 0),_:1},8,["onClick"])])]),tu("div",null,[tu("div",rhe,[tu("div",lhe,me(n.customerSentiment.emoji),1),tu("div",che,me(e.$t("Tone of customer")),1),tu("div",dhe,me(n.customerSentiment.text),1)])])])])):ru("",!0)])),[[Z,n.ResponseLoader]]),n.ResponseLoader?(zd(),qd("div",uhe,[iu(P,{rows:4,animated:""})])):ru("",!0),iu(np,{name:"fs-response-box"},{default:vr(()=>[n.show_response_box?(zd(),qd("div",phe,[tu("div",hhe,[iu(V,{onCreated:s.recordNewResponse,ticket:n.ticket,is_agent:"yes",onClose:t[17]||(t[17]=e=>n.show_response_box=""),type:n.show_response_box,draft:n.draftData,openAIIntegration:s.openAIIntegration,fluentBotIntegration:n.fluentBotIntegration,onDiscardDraft:s.discardDraft,onToggleFluentBot:t[18]||(t[18]=e=>n.showFluentBotPanel=!n.showFluentBotPanel)},null,8,["onCreated","ticket","type","draft","openAIIntegration","fluentBotIntegration","onDiscardDraft"])])])):ru("",!0)],void 0),_:1}),"closed"==n.ticket.status?(zd(),qd("div",{key:4,class:se(["fs_create_response text-align-center","fs_create_response_"+n.ticket.status])},[tu("span",null,me(e.$t("Closed Ticket")),1),tu("p",null,[su(me(e.$t("ticket_closed"))+" "+me(n.ticket.resolved_at)+" ",1),n.ticket.closed_by_person?(zd(),qd("span",fhe,[t[32]||(t[32]=su(" by ",-1)),tu("b",null,me(s.getHumanName(n.ticket.closed_by_person)),1)])):ru("",!0)]),n.canManageTickets?br((zd(),Kd(f,{key:0,disabled:n.updating,onClick:t[19]||(t[19]=e=>s.reOpen()),class:"fs_outline_btn"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,ghe),su(" "+me(e.$t("Reopen This ticket")),1)],void 0),_:1},8,["disabled"])),[[Z,n.updating]]):ru("",!0)],2)):ru("",!0),n.ticket&&n.ticket.id?(zd(),qd("div",mhe,["yes"===e.appVars.enable_draft_mode&&n.showDraft&&!n.show_response_box?(zd(),qd("article",_he,[tu("div",vhe,[t[33]||(t[33]=tu("div",{class:"fs_message_avatar"},null,-1)),tu("div",bhe,[tu("div",yhe,[tu("div",xhe,[tu("div",She,[tu("div",whe,me(e.$t("Saved Draft")),1)]),tu("div",null,[(null==(l=n.draftData)?void 0:l.created_at)?(zd(),qd("span",{key:0,class:"fs_message_timestamp",title:e.$t("Draft created at ")+n.draftData.created_at},me(e.$timeDiff(n.draftData.created_at)),9,Che)):(null==(c=n.draftData)?void 0:c.updated_at)?(zd(),qd("span",{key:1,class:"fs_message_timestamp",title:e.$t("Draft updated at ")+n.draftData.updated_at},me(e.$timeDiff(n.draftData.updated_at)),9,Ehe)):ru("",!0)])])]),tu("div",{innerHTML:s.santizeContent(n.draftResponse),class:"fs_message_body"},null,8,khe),tu("div",The,[iu(f,{class:"fs_outline_btn",size:"default",onClick:t[20]||(t[20]=e=>n.show_response_box=n.draftReplyPermission?"draft_response":"response")},{default:vr(()=>[iu(_,null,{default:vr(()=>[iu(U)],void 0),_:1}),su(" "+me(e.$t("Edit")),1)],void 0),_:1}),iu(f,{class:"fs_outline_btn",size:"default",onClick:t[21]||(t[21]=e=>s.discardDraft(n.draftData.id)),text:""},{default:vr(()=>[su(me(e.$t("Discard")),1)],void 0),_:1})])])])])):ru("",!0),(zd(!0),qd(Fd,null,sc(n.conversations,i=>{var a,o,r,l,c,d,u,p,h;return zd(),qd("article",{key:i.id,ref_for:!0,ref:e=>s.setRef(i.id,e),class:se(["fs_conversation_message",s.getConversationClass(i)])},[tu("div",Ahe,[tu("div",Rhe,[i.person?(zd(),qd("img",{key:0,src:null==(a=i.person)?void 0:a.photo,alt:i.person.full_name},null,8,Ihe)):ru("",!0)]),tu("div",Dhe,[tu("div",Ohe,[tu("div",Mhe,[tu("div",Nhe,[i.person?(zd(),qd("span",Lhe,me(s.getHumanName(i.person)),1)):ru("",!0),"customer"===(null==(o=i.person)?void 0:o.person_type)?(zd(),Kd(g,{key:1,effect:"dark",content:e.$t("Customer"),placement:"top"},{default:vr(()=>[tu("span",Phe,[iu(B,{iconKey:"user_icon",width:16,height:16})])],void 0),_:1},8,["content"])):"agent"===(null==(r=i.person)?void 0:r.person_type)?(zd(),Kd(g,{key:2,effect:"dark",content:e.$t("Agent"),placement:"top"},{default:vr(()=>[tu("span",Fhe,[iu(B,{iconKey:"agent_icon",width:16,height:16})])],void 0),_:1},8,["content"])):ru("",!0),"note"===i.conversation_type?(zd(),qd("span",Bhe,me(e.$t("Added Note")),1)):ru("",!0),"internal_info"===i.conversation_type?(zd(),qd("span",$he,me(e.$t("Added Internal Info")),1)):ru("",!0),"draft_response"===i.conversation_type?(zd(),qd("div",Vhe,me(e.$t("DRAFT RESPONSE")),1)):ru("",!0)]),tu("div",null,[tu("span",{class:"fs_message_timestamp",title:e.$t("Conversation created at ")+i.created_at},me(e.$timeDiff(i.created_at)),9,Uhe),n.ticket.carbon_copy?(zd(),qd("div",Hhe,[tu("span",null,[t[34]||(t[34]=tu("strong",null,"Cc: ",-1)),su(me(n.ticket.carbon_copy),1)])])):ru("",!0)]),"customer"==(null==(l=i.person)?void 0:l.person_type)||(null==(c=i.cc_info)?void 0:c.length)?(zd(),qd("div",zhe,["customer"==i.person.person_type?(zd(),qd("div",Yhe,[tu("span",null,[t[35]||(t[35]=tu("strong",null,"From: ",-1)),su(me(null==(d=i.person)?void 0:d.full_name)+"<"+me(null==(u=i.person)?void 0:u.email)+">",1)])])):ru("",!0),(null==(p=i.cc_info)?void 0:p.length)?(zd(),qd("div",Ghe,[tu("span",null,[t[36]||(t[36]=tu("strong",null,"Cc: ",-1)),su(me(s.getArrToString(i.cc_info)),1)])])):ru("",!0)])):ru("",!0)]),tu("div",Whe,[tu("div",null,[i.source?(zd(),qd("span",jhe,[tu("img",{src:e.appVars.asset_url+"images/source.svg",alt:""},null,8,qhe),su(" "+me(e.$t("Source:"))+" "+me(e.ucFirst(i.source)),1)])):ru("",!0)]),n.canManageTickets||n.draftReplyPermission?(zd(),qd("div",Khe,[iu(I,{onCommand:s.handleResponseActionCommand,trigger:"click"},{dropdown:vr(()=>[iu(R,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:vr(()=>[n.draftReplyPermission&&"draft_response"!==i.conversation_type?ru("",!0):(zd(),Kd(k,{key:0,command:{type:"edit",conversation:i},icon:"EditPen"},{default:vr(()=>[su(me(e.$t("Edit")),1)],void 0),_:1},8,["command"])),e.has_pro&&"draft_response"!==i.conversation_type?(zd(),Kd(k,{key:1,command:{type:"split_ticket",conversation:i},icon:"TopLeft"},{default:vr(()=>[su(me(e.$t("Split Ticket")),1)],void 0),_:1},8,["command"])):ru("",!0),n.fluentBotIntegration&&"response"===i.conversation_type?(zd(),Kd(k,{key:2,command:{type:"add_to_fluentbot",conversation:i}},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/fluentBotDark.svg",alt:"",class:"fs_fluent_bot_menu_icon"},null,8,Xhe),su(" "+me(e.$t("Add to FluentBot")),1)],void 0),_:1},8,["command"])):ru("",!0),n.canManageTickets?(zd(),Kd(k,{key:3,command:{type:"delete",conversation:i},icon:"Delete"},{default:vr(()=>[su(me(e.$t("Delete")),1)],void 0),_:1},8,["command"])):ru("",!0)],void 0),_:2},1024)]),default:vr(()=>[iu(f,{class:"fs_more_btn"},{default:vr(()=>[iu(_,null,{default:vr(()=>[iu(H)],void 0),_:1})],void 0),_:1})],void 0),_:2},1032,["onCommand"])])):ru("",!0)])]),tu("div",{innerHTML:s.santizeContent(i.content),class:"fs_message_body"},null,8,Zhe),(null==(h=i.attachments)?void 0:h.length)?(zd(),qd("div",Qhe,[tu("ul",null,[(zd(!0),qd(Fd,null,sc(i.attachments,e=>(zd(),qd("li",{key:e.file_hash},[iu(_,{style:{"vertical-align":"middle"}},{default:vr(()=>[iu(z)],void 0),_:1}),tu("a",{target:"_blank",rel:"noopener",href:e.secureUrl},me(e.title),9,Jhe)]))),128))])])):ru("",!0),e.has_pro&&"yes"===e.appVars.agent_feedback_rating&&i.agent_feedback?(zd(),qd("div",efe,[tu("img",{src:`${e.appVars.asset_url}images/icons/${"like"===i.agent_feedback?"likeButtonFill":"dislikeButtonFill"}.svg`},null,8,tfe),tu("span",null,me("like"===i.agent_feedback?e.$t("Liked"):e.$t("Disliked")),1)])):ru("",!0),"draft_response"===i.conversation_type?(zd(),qd("div",ife,[n.draftReplyApprovePermission?(zd(),Kd(f,{key:0,class:"fs_outline_btn",size:"default",onClick:e=>s.approveDraftResponse(i)},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/checkDoubleLine.svg",alt:""},null,8,afe),su(" "+me(e.$t("Approve")),1)],void 0),_:1},8,["onClick"])):ru("",!0)])):ru("",!0)])])],2)}),128)),tu("article",nfe,[tu("div",sfe,[tu("div",ofe,[tu("img",{src:null==(d=n.ticket.customer)?void 0:d.photo,alt:null==(u=n.ticket.customer)?void 0:u.full_name},null,8,rfe)]),tu("div",lfe,[tu("div",cfe,[tu("div",dfe,[tu("div",ufe,[tu("span",pfe,me(null==(p=n.ticket.customer)?void 0:p.full_name),1),iu(g,{effect:"dark",content:e.$t("Customer"),placement:"top"},{default:vr(()=>[tu("span",hfe,[iu(B,{iconKey:"user_icon",width:16,height:16})])],void 0),_:1},8,["content"]),tu("div",ffe,me(e.$t("THREAD STARTER")),1),n.ticket.created_by_agent&&!n.ticket.created_by_agent.agent_initiated?(zd(),qd("span",gfe,[su(me(e.$t("Created By"))+" ",1),tu("strong",null,me(n.ticket.created_by_agent.full_name),1)])):ru("",!0)]),tu("div",mfe,[tu("span",{class:"fs_message_timestamp",title:e.$t("Ticket created at ")+n.ticket.created_at},me(e.$timeDiff(n.ticket.created_at)),9,_fe),t[38]||(t[38]=tu("span",{class:"fs_message_separator"}," • ",-1)),tu("span",vfe,me(null==(h=n.ticket.customer)?void 0:h.email),1),"email"==n.ticket.source?(zd(),qd("div",bfe,[n.ticket.carbon_copy?(zd(),qd("div",yfe,[tu("span",null,[t[37]||(t[37]=tu("strong",null,"Cc: ",-1)),su(me(n.ticket.carbon_copy),1)])])):ru("",!0)])):ru("",!0)])]),tu("div",xfe,[n.ticket.source?(zd(),qd("span",Sfe,[tu("img",{src:e.appVars.asset_url+"images/source.svg",alt:""},null,8,wfe),su(" "+me(e.$t("Source:"))+" "+me(e.ucFirst(n.ticket.source)),1)])):ru("",!0)])]),tu("div",{innerHTML:s.santizeContent(n.ticket.content),class:"fs_message_body"},null,8,Cfe),n.ticket.attachments&&n.ticket.attachments.length?(zd(),qd("div",Efe,[tu("ul",null,[(zd(!0),qd(Fd,null,sc(n.ticket.attachments,e=>(zd(),qd("li",{key:e.file_hash},[iu(_,{style:{"vertical-align":"middle"}},{default:vr(()=>[iu(z)],void 0),_:1}),tu("a",{target:"_blank",rel:"noopener",href:e.secureUrl},me(e.title),9,kfe)]))),128))])])):ru("",!0),n.showCustomDataEditForm?(zd(),Kd(F,{key:1,title:e.$t("Updating Custom Field Data"),modelValue:n.showCustomDataEditForm,"onUpdate:modelValue":t[22]||(t[22]=e=>n.showCustomDataEditForm=e),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[iu(Y,{onSyncData:s.syncCustomData,ticket_id:i.ticket_id,type:"update_ticket",custom_data:n.ticket.custom_fields},null,8,["onSyncData","ticket_id","custom_data"])],void 0),_:1},8,["title","modelValue"])):ru("",!0)])])]),e.has_pro&&!s.isEmpty(e.appVars.custom_fields)?(zd(),qd("article",Tfe,[tu("div",Afe,[tu("div",Rfe,[tu("h3",null,me(e.$t("Additional Info")),1),iu(f,{onClick:t[23]||(t[23]=e=>n.showCustomDataEditForm=!n.showCustomDataEditForm),text:!0,size:"small",class:"fs_edit_custom_data_btn"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/edit.svg",alt:""},null,8,Ife)],void 0),_:1})]),tu("div",Dfe,[s.isEmpty(n.ticket.custom_fields)?(zd(),qd("p",Bfe,me(e.$t("No additional data found")),1)):(zd(),qd("ul",Ofe,[(zd(!0),qd(Fd,null,sc(n.ticket.custom_fields,(t,i)=>(zd(),qd("li",{key:i,class:"fs_custom_data_item"},[tu("span",Mfe,me(e.appVars.custom_fields[i].label),1),tu("div",Nfe,["date-range"===e.appVars.custom_fields[i].type&&s.isArray(t)?(zd(),qd("span",Lfe,me(t.join(" - ")),1)):s.isArray(t)?(zd(),qd("span",Pfe,[(zd(!0),qd(Fd,null,sc(t,e=>(zd(),qd("span",{dir:"auto",class:"fs_custom_check_value",key:e},me(e),1))),128))])):(zd(),qd("span",{key:2,innerHTML:s.santizeContent(t)},null,8,Ffe))])]))),128))]))])])])):ru("",!0)])):ru("",!0)]),tu("div",$fe,[iu(G,{fluentcrm_profile:n.fluentcrm_profile,ticket_id:i.ticket_id,ticket:n.ticket,watchers:n.watchers,watcher_ids:n.watcherIds,onRefresh:s.fetchTicket,fetch_other_tickets:n.fetch_other_tickets,can_manage_tickets:n.canManageTickets},null,8,["fluentcrm_profile","ticket_id","ticket","watchers","watcher_ids","onRefresh","fetch_other_tickets","can_manage_tickets"])]),(zd(),Kd(Hr,{to:"body"},[iu(np,{name:"fs_panel_slide"},{default:vr(()=>[n.fluentBotBootstrapped?br((zd(),qd("div",{key:0,class:"fs_fluent_bot_panel",ref:"fluentBotPanel",role:"dialog",tabindex:"-1","aria-label":e.$t("FluentBot assistant panel"),"aria-hidden":n.showFluentBotPanel?"false":"true"},[iu(W,{ref:"fluentBotComponent",type:"createResponse",ticketId:n.ticket.id,productID:n.ticket.product_id,is_agent:"yes",ticketResponses:n.conversations,addContextId:n.pendingFluentBotContextId,onContextAdded:t[24]||(t[24]=e=>n.pendingFluentBotContextId=null),onClose:t[25]||(t[25]=e=>n.showFluentBotPanel=!1),onInsert:s.insertFluentBotResponse},null,8,["ticketId","productID","ticketResponses","addContextId","onInsert"])],8,Vfe)),[[yp,n.showFluentBotPanel]]):ru("",!0)],void 0),_:1})]))],64)):n.ticketNotFound.length?(zd(),qd("div",Ufe,[tu("div",Hfe,[tu("img",{src:e.appVars.asset_url+"images/ticketNotFound.svg",alt:e.$t("Ticket not found"),class:"fs_error_icon"},null,8,zfe),tu("h2",Yfe,me(n.ticketNotFound),1),tu("p",Gfe,[su(me(e.$t("Go back to"))+" ",1),tu("a",{class:"fs_error_link",onClick:t[26]||(t[26]=t=>e.$router.push({name:"tickets"}))},me(e.$t("All Tickets")),1),su(" "+me(e.$t("or contact support for assistance.")),1)])])])):(zd(),qd(Fd,{key:2},[tu("div",Wfe,[tu("div",jfe,[iu(P,{rows:10,animated:""})])]),tu("div",qfe,[iu(P,{class:"fs_sidebar_skeleton",rows:3,animated:""}),iu(P,{class:"fs_sidebar_skeleton",rows:3,animated:""}),iu(P,{class:"fs_sidebar_skeleton",rows:3,animated:""})])],64)),iu(F,{modelValue:n.edit_response_modal,"onUpdate:modelValue":t[28]||(t[28]=e=>n.edit_response_modal=e),title:e.$t("Edit Response"),"append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[n.editing_response?(zd(),Kd(j,{key:0,onUpdated:t[27]||(t[27]=e=>{n.edit_response_modal=!1,n.editing_response=!1}),response:n.editing_response,"ticket-id":n.ticket.id},null,8,["response","ticket-id"])):ru("",!0)],void 0),_:1},8,["modelValue","title"]),n.show_fbs_add_task_modal?(zd(),Kd(F,{key:3,modelValue:n.show_fbs_add_task_modal,"onUpdate:modelValue":t[29]||(t[29]=e=>n.show_fbs_add_task_modal=e),title:e.$t("Add Task to Fluent Boards"),"append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[iu(q,{onCreated:s.afterCreatedTask,ticket:n.ticket,fluentcrm_profile:n.fluentcrm_profile},null,8,["onCreated","ticket","fluentcrm_profile"])],void 0),_:1},8,["modelValue","title"])):ru("",!0),iu(F,{modelValue:n.split_ticket_modal,"onUpdate:modelValue":t[30]||(t[30]=e=>n.split_ticket_modal=e),title:e.$t("Split Ticket"),"append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[iu(K,{ticket_data:n.split_ticket,onSplitTicket:s.splitToNewTicket,spliting:n.loading},null,8,["ticket_data","onSplitTicket","spliting"])],void 0),_:1},8,["modelValue","title"]),n.ticket&&n.ticket.id?(zd(),Kd(X,{key:4,ticket:n.ticket},null,8,["ticket"])):ru("",!0)])}]]),Xfe={class:"fs_tickets_view fs_settings_view"},Zfe=["src"],Qfe={class:"fs_settings_wrapper"},Jfe={class:"fs_inner_sidebar fs_desktop_sidebar"},ege=["onClick"],tge=["src"],ige={class:"fs_sidebar_children"},age=["src"],nge=["onClick"],sge=["src"],oge={class:"fs_sidebar_children"},rge=["src"],lge={class:"fs_inner_body"};const cge=lH({name:"SettingsView",data:()=>({settings_items:[],isMenuOpen:!1,openGroups:{}}),watch:{$route(){this.autoOpenActiveGroup()},settings_items(){this.autoOpenActiveGroup()}},methods:{fetchSettingsMenu(){this.$get("settings/settings-menu").then(e=>{this.settings_items=e}).catch(e=>{this.$handleError(e)})},toggleGroup(e){this.openGroups={...this.openGroups,[e]:!this.openGroups[e]}},autoOpenActiveGroup(){const e=this.$route.name;this.settings_items.forEach((t,i)=>{if(t.children&&t.children.length){t.children.some(t=>t.route_name===e)&&(this.openGroups={...this.openGroups,[i]:!0})}})},toggleMenu(){this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?document.body.style.overflow="hidden":document.body.style.overflow=""},closeMenu(){this.isMenuOpen=!1,document.body.style.overflow=""}},mounted(){this.fetchSettingsMenu()},beforeUnmount(){document.body.style.overflow=""}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("router-link"),l=Jl("router-view");return zd(),qd("div",Xfe,[br(tu("div",{class:se(["fs_settings_menu_overlay",{"is-open":n.isMenuOpen}]),onClick:t[0]||(t[0]=Ah((...e)=>s.closeMenu&&s.closeMenu(...e),["stop"]))},null,2),[[yp,n.isMenuOpen]]),tu("div",{class:se(["fs_settings_menu_toggle",{"is-hidden":n.isMenuOpen}])},[n.isMenuOpen?ru("",!0):(zd(),Kd(o,{key:0,class:"fs_outline_btn fs_settings_menu_toggle_btn",onClick:s.toggleMenu},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/settings.svg",alt:"Settings"},null,8,Zfe),su(" "+me(e.$t("Settings")),1)],void 0),_:1},8,["onClick"]))],2),tu("div",Qfe,[tu("div",Jfe,[tu("ul",null,[(zd(!0),qd(Fd,null,sc(n.settings_items,(i,a)=>(zd(),qd("li",{key:a},[i.children&&i.children.length?(zd(),qd(Fd,{key:0},[tu("button",{class:se(["fs_sidebar_group_toggle",{"is-open":n.openGroups[a]}]),onClick:e=>s.toggleGroup(a)},[tu("img",{src:e.appVars.asset_url+"images/"+i.icon+".svg",class:"fs-sidebar-icons"},null,8,tge),tu("span",null,me(i.title),1),t[1]||(t[1]=tu("svg",{class:"fs_sidebar_chevron",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[tu("polyline",{points:"6 9 12 15 18 9"})],-1))],10,ege),br(tu("ul",ige,[(zd(!0),qd(Fd,null,sc(i.children,(e,t)=>(zd(),qd("li",{key:t},[iu(r,{to:{name:e.route_name}},{default:vr(()=>[su(me(e.title),1)],void 0),_:2},1032,["to"])]))),128))],512),[[yp,n.openGroups[a]]])],64)):(zd(),Kd(r,{key:1,to:{name:i.route_name,query:i.route_query}},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/"+i.icon+".svg",class:"fs-sidebar-icons"},null,8,age),su(" "+me(i.title),1)],void 0),_:2},1032,["to"]))]))),128))])]),tu("div",{class:se(["fs_inner_sidebar fs_mobile_drawer",{"is-open":n.isMenuOpen}])},[tu("ul",null,[(zd(!0),qd(Fd,null,sc(n.settings_items,(i,a)=>(zd(),qd("li",{key:a},[i.children&&i.children.length?(zd(),qd(Fd,{key:0},[tu("button",{class:se(["fs_sidebar_group_toggle",{"is-open":n.openGroups[a]}]),onClick:e=>s.toggleGroup(a)},[tu("img",{src:e.appVars.asset_url+"images/"+i.icon+".svg",class:"fs-sidebar-icons"},null,8,sge),tu("span",null,me(i.title),1),t[2]||(t[2]=tu("svg",{class:"fs_sidebar_chevron",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[tu("polyline",{points:"6 9 12 15 18 9"})],-1))],10,nge),br(tu("ul",oge,[(zd(!0),qd(Fd,null,sc(i.children,(e,t)=>(zd(),qd("li",{key:t},[iu(r,{to:{name:e.route_name},onClick:s.closeMenu},{default:vr(()=>[su(me(e.title),1)],void 0),_:2},1032,["to","onClick"])]))),128))],512),[[yp,n.openGroups[a]]])],64)):(zd(),Kd(r,{key:1,to:{name:i.route_name,query:i.route_query},onClick:s.closeMenu},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/"+i.icon+".svg",class:"fs-sidebar-icons"},null,8,rge),su(" "+me(i.title),1)],void 0),_:2},1032,["to","onClick"]))]))),128))])],2),tu("div",lge,[iu(l,{key:"products_view"})])])])}]]),dge={name:"BusinessSettings",components:{FormBuilder:rle},data:()=>({settings:{},fields:{},fetching:!1,loading:!1,app_ready:!1,settings_key:"global_business_settings"}),computed:{processedFields(){const e={};return Object.keys(this.fields).forEach(t=>{const i={...this.fields[t]};if(i.inline_help=this.makeShortcodesClickable(i.inline_help),"portal_page_id"===t&&this.settings.portal_page_id){const e=this.settings.portal_page_id,t=(i.admin_url||"")+"post.php?post="+e+"&action=edit",a=(i.home_url||"")+"?page_id="+e;i.inline_help+=' <a href="'+t+'" target="_blank" class="fs_doc_link fs_doc_link_empty_icon">'+this.$t("Edit")+'</a> | <a href="'+a+'" target="_blank" rel="noopener noreferrer" class="fs_doc_link">'+this.$t("Preview")+"</a>"}"ticket_link_portal"===t&&(i.wrapper_class=[i.wrapper_class,"default"===this.settings.ticket_link_portal?"fs_portal_destination_has_page":"",this.settings.ticket_link_portal&&"default"!==this.settings.ticket_link_portal?"fs_portal_destination_compact":""].filter(Boolean).join(" ")),e[t]=i}),e}},methods:{makeShortcodesClickable:e=>e?e.replace(/<code>(\[.*?\])<\/code>/g,'<code class="fs_clickable_shortcode" data-shortcode="$1">$1</code>'):e,fetchSettings(){this.fetching=!0,this.$get("settings",{settings_key:this.settings_key,with:["fields"]}).then(e=>{this.settings=e.settings,this.fields=e.fields,this.app_ready=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.loading=!0,this.$post("settings",{settings_key:this.settings_key,settings:this.settings}).then(e=>{var t,i;Object.prototype.hasOwnProperty.call(this.settings,"internal_notifications_enabled")&&(window.fluentSupportAdmin.internal_notification_settings={...window.fluentSupportAdmin.internal_notification_settings||{},enabled:this.settings.internal_notifications_enabled},window.dispatchEvent(new CustomEvent("fluent_support_internal_notification_settings_changed",{detail:{settings:window.fluentSupportAdmin.internal_notification_settings}})),null==(i=(t=window.fluentSupportAdmin).refreshNotificationPolling)||i.call(t)),this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},copyShortcode(e){const t=this.$t("Shortcode copied to clipboard: ")+e,i=this.$t("Failed to copy shortcode");return e?navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(()=>(this.$notify({type:"success",title:this.$t("Success"),message:t,position:"bottom-right"}),!0)).catch(e=>(this.$notify({type:"error",title:this.$t("Error"),message:i,position:"bottom-right"}),!1)):(this.$notify({type:"error",title:this.$t("Error"),message:this.$t("Copy to clipboard requires HTTPS"),position:"bottom-right"}),Promise.resolve(!1)):(this.$notify({type:"warning",title:this.$t("Warning"),message:this.$t("Nothing to copy"),position:"bottom-right"}),Promise.resolve(!1))},copyPortalLink(e){return e?this.$copyToClipboard(e,this.$t("Copied to clipboard")+": "+e,this.$t("Failed to copy link")):Promise.resolve(!1)},handleClick(e){if(e.target.classList.contains("fs_clickable_shortcode")||e.target.closest(".fs_clickable_shortcode")){const t=(e.target.classList.contains("fs_clickable_shortcode")?e.target:e.target.closest(".fs_clickable_shortcode")).getAttribute("data-shortcode");t&&this.copyShortcode(t)}if(e.target.classList.contains("fs_portal_link_token")||e.target.closest(".fs_portal_link_token")){const t=e.target.classList.contains("fs_portal_link_token")?e.target:e.target.closest(".fs_portal_link_token");this.copyPortalLink(t.getAttribute("data-portal-link"))}}},mounted(){this.fetchSettings(),this.$setTitle("Business Settings")}},uge={class:"fs_box_header"},pge={class:"fs_box_head"},hge={class:"fs_save_settings_container"},fge={key:0,class:"fs_box_body fs_business_settings_wrapper"},gge={key:1,class:"fs_box_body fs_skeleton_loader"};const mge=lH(dge,[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("form-builder"),l=AL,c=WB;return zd(),qd("div",{class:"fs_box_wrapper",onClick:t[1]||(t[1]=(...e)=>s.handleClick&&s.handleClick(...e))},[tu("div",uge,[tu("div",pge,[tu("h3",null,me(e.$t("Global Settings")),1),tu("div",hge,[iu(o,{size:"default",type:"success",class:"fs_save_settings_btn",onClick:t[0]||(t[0]=e=>s.saveSettings())},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1})])]),t[2]||(t[2]=tu("div",{class:"fs_box_actions"},null,-1))]),n.fetching?(zd(),qd("div",gge,[iu(l,{rows:5,animated:""})])):br((zd(),qd("div",fge,[n.app_ready?(zd(),Kd(r,{key:0,fields:s.processedFields,"form-data":n.settings,label_position:"top"},null,8,["fields","form-data"])):ru("",!0)])),[[c,n.loading]])])}]]),_ge={name:"TableMoreActions",components:{Delete:Hx,DocumentCopy:zx},emits:["delete","duplicate"],props:{scope:{type:Object,required:!0},fetching:{type:Boolean,default:!1},deleteWarning:{type:String,default:"Are you sure you want to delete this?"},actions:{type:Array,default:()=>["delete"]}},data:()=>({deleteDialogVisible:!1}),methods:{hasAction(e){return this.actions.includes(e)},deleteTag(e){this.$emit("delete",e)},confirmDelete(){this.deleteDialogVisible=!1,this.$emit("delete",this.scope)},duplicateItem(e){this.$emit("duplicate",e)}}},vge={class:"fs_table_more_actions_dropdown"},bge={class:"fs_action_button_wrapper"},yge={class:"fs_dropdown_item_content"},xge={class:"fs_dropdown_item_content"},Sge={class:"fs_dialog_warning_content"},wge={class:"fs_popconfirm_actions"};const Cge=lH(_ge,[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("DocumentCopy"),l=KS,c=nN,d=Jl("Delete"),u=sN,p=aN,h=dM,f=WB;return zd(),qd(Fd,null,[iu(p,{trigger:"click","hide-on-click":!1},{dropdown:vr(()=>[iu(u,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:vr(()=>[s.hasAction("duplicate")?(zd(),Kd(c,{key:0,onClick:t[0]||(t[0]=e=>s.duplicateItem(i.scope))},{default:vr(()=>[tu("div",yge,[iu(l,{class:"fs_dropdown_icon"},{default:vr(()=>[iu(r)],void 0),_:1}),su(" "+me(e.$t("Duplicate")),1)])],void 0),_:1})):ru("",!0),s.hasAction("delete")?(zd(),Kd(c,{key:1,class:"fs_delete_action",onClick:t[1]||(t[1]=e=>n.deleteDialogVisible=!0)},{default:vr(()=>[tu("div",xge,[iu(l,{class:"fs_dropdown_icon"},{default:vr(()=>[iu(d)],void 0),_:1}),su(" "+me(e.$t("Delete")),1)])],void 0),_:1})):ru("",!0)],void 0),_:1})]),default:vr(()=>[tu("span",vge,[tu("div",bge,[br(iu(o,{class:"fs_action_button fs_more_action",text:"",icon:"More"},null,512),[[f,i.fetching]])])])],void 0),_:1}),iu(h,{modelValue:n.deleteDialogVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>n.deleteDialogVisible=e),title:e.$t("Confirm Delete"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:vr(()=>[tu("div",wge,[iu(o,{class:"fs_outline_btn",size:"small",onClick:t[2]||(t[2]=e=>n.deleteDialogVisible=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(o,{class:"fs_filled_btn",size:"small",onClick:s.confirmDelete},{default:vr(()=>[su(me(e.$t("Delete")),1)],void 0),_:1},8,["onClick"])])]),default:vr(()=>[tu("div",Sge,[t[4]||(t[4]=tu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[tu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),tu("p",null,me(i.deleteWarning),1)])],void 0),_:1},8,["modelValue","title"])],64)}]]),Ege={xmlns:"http://www.w3.org/2000/svg",width:"138",height:"129",viewBox:"0 0 138 129",fill:"none"};const kge=lH({name:"TableEmptyStateImage"},[["render",function(e,t,i,a,n,s){return zd(),qd("svg",Ege,[...t[0]||(t[0]=[ou('<path d="M69.3362 103C96.796 103 119.058 80.6575 119.058 53C119.058 25.3425 96.6979 3 69.3362 3C41.8763 3 19.6143 25.3425 19.6143 53C19.6143 80.6575 41.8763 103 69.3362 103Z" fill="#E1E4EA"></path><path d="M125.37 37.1588C127.591 37.1588 129.391 35.352 129.391 33.1233C129.391 30.8946 127.591 29.0879 125.37 29.0879C123.149 29.0879 121.349 30.8946 121.349 33.1233C121.349 35.352 123.149 37.1588 125.37 37.1588Z" fill="#E1E4EA"></path><path d="M131.254 21.4112C132.77 21.4112 134 20.1774 134 18.6553C134 17.1333 132.77 15.8994 131.254 15.8994C129.737 15.8994 128.508 17.1333 128.508 18.6553C128.508 20.1774 129.737 21.4112 131.254 21.4112Z" fill="#E1E4EA"></path><path d="M21.8695 20.2247C23.3861 20.2247 24.6155 18.9908 24.6155 17.4688C24.6155 15.9468 23.3861 14.7129 21.8695 14.7129C20.353 14.7129 19.1235 15.9468 19.1235 17.4688C19.1235 18.9908 20.353 20.2247 21.8695 20.2247Z" fill="#E1E4EA"></path><path d="M5.09968 73.3739C7.91616 73.3739 10.1994 71.0825 10.1994 68.2558C10.1994 65.4292 7.91616 63.1377 5.09968 63.1377C2.28321 63.1377 0 65.4292 0 68.2558C0 71.0825 2.28321 73.3739 5.09968 73.3739Z" fill="#E1E4EA"></path><g filter="url(#filter0_d_5767_114769)"><path d="M98.4092 90.1478H112.647C114.435 90.1478 115.968 88.6102 115.968 86.8163V20.1869C115.968 18.3931 114.435 16.8555 112.647 16.8555H98.8512" fill="white"></path></g><g filter="url(#filter1_d_5767_114769)"><path d="M41.8801 90.1478H28.0844C26.296 90.1478 24.7632 88.6102 24.7632 86.8163V20.1869C24.7632 18.3931 26.296 16.8555 28.0844 16.8555H41.5959" fill="white"></path></g><path d="M34.3608 30.1807H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 39.1494H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 48.375H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 57.6016H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 75.54H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 30.1807H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10"></path><path d="M105.493 39.1494H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 48.375H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 57.6016H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 75.54H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><g filter="url(#filter2_d_5767_114769)"><path d="M95.5299 95.785H44.9457C43.1574 95.785 41.6245 94.2474 41.6245 92.4535V15.061C41.6245 13.2671 43.1574 11.7295 44.9457 11.7295H95.5299C97.3182 11.7295 98.8511 13.2671 98.8511 15.061V92.4535C98.8511 94.2474 97.3182 95.785 95.5299 95.785Z" fill="white"></path></g><path d="M89.3983 36.8039H54.1426C53.3762 36.8039 52.8652 36.3395 52.8652 35.6428V32.624C52.8652 31.9273 53.3762 31.4629 54.1426 31.4629H89.3983C90.1647 31.4629 90.6757 31.9273 90.6757 32.624V35.6428C90.6757 36.1072 90.1647 36.8039 89.3983 36.8039Z" fill="#E1E4EA"></path><path d="M89.3983 50.6418H54.1426C53.3762 50.6418 52.8652 50.1774 52.8652 49.4807V46.4619C52.8652 45.7652 53.3762 45.3008 54.1426 45.3008H89.3983C90.1647 45.3008 90.6757 45.7652 90.6757 46.4619V49.4807C90.6757 50.1774 90.1647 50.6418 89.3983 50.6418Z" fill="#E1E4EA"></path><path d="M89.3983 64.7365H54.1426C53.3762 64.7365 52.8652 64.2721 52.8652 63.5754V60.5566C52.8652 59.8599 53.3762 59.3955 54.1426 59.3955H89.3983C90.1647 59.3955 90.6757 59.8599 90.6757 60.5566V63.5754C90.6757 64.2721 90.1647 64.7365 89.3983 64.7365Z" fill="#E1E4EA"></path><path d="M89.3989 79.0871H75.3477C74.5813 79.0871 74.0703 78.6227 74.0703 77.926V74.9072C74.0703 74.2105 74.5813 73.7461 75.3477 73.7461H89.3989C90.1653 73.7461 90.6762 74.2105 90.6762 74.9072V77.926C90.6762 78.6227 90.1653 79.0871 89.3989 79.0871Z" fill="#E1E4EA"></path><defs><filter id="filter0_d_5767_114769" x="76.4092" y="5.85547" width="61.5591" height="117.292" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="11"></feOffset><feGaussianBlur stdDeviation="11"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.12 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5767_114769"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5767_114769" result="shape"></feBlend></filter><filter id="filter1_d_5767_114769" x="2.76318" y="5.85547" width="61.1167" height="117.292" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="11"></feOffset><feGaussianBlur stdDeviation="11"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.12 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5767_114769"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5767_114769" result="shape"></feBlend></filter><filter id="filter2_d_5767_114769" x="19.6245" y="0.729492" width="101.227" height="128.056" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="11"></feOffset><feGaussianBlur stdDeviation="11"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.12 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5767_114769"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5767_114769" result="shape"></feBlend></filter></defs>',23)])])}]]),Tge={class:"fs_products"},Age={class:"fs_box_wrapper"},Rge={class:"fs_box_header"},Ige={class:"fs_box_head"},Dge={class:"fs_box_head"},Oge={key:0,class:"fs_table_container"},Mge={class:"fs_table_header"},Nge={class:"fs_box_actions"},Lge={class:"fs_ticket_orders fs_table_search_field"},Pge={class:"fs_table_wrapper"},Fge={class:"fs_table_empty_state"},Bge={class:"fs-table-action-cell"},$ge={class:"fs_action_button_wrapper"},Vge={key:0,class:"fs_pagination_wrapper"},Uge={class:"fs_pagination_left"},Hge={class:"fs_pagination_right"},zge={key:1,class:"fs_box_body fs_skeleton_loader"},Yge={class:"fs_dialog_footer"};const Gge=lH({name:"SupportProducts",components:{Pagination:Pq,TableMoreActions:Cge,TableEmptyStateImage:kge},data:()=>({products:[],pagination:{current_page:1,per_page:10,total:0},fetching:!0,saving:!1,ticket_modal:!1,editing_product:!1,search:""}),methods:{getProducts(){this.fetching=!0,this.$get("products",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.products=e.products.data,this.pagination.total=e.products.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},createOrUpdateProduct(){this.saving=!0;let e=this.$post,t="products";this.editing_product.id&&(e=this.$put,t=`products/${this.editing_product.id}`),e(t,{...this.editing_product}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.getProducts(),this.ticket_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editProductModal(e){this.editing_product=JSON.parse(JSON.stringify(e)),this.ticket_modal=!0},createTicketModal(){this.editing_product={title:"",description:""},this.ticket_modal=!0},deleteProduct(e){this.$del(`products/${e.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.getProducts()})}},mounted(){this.getProducts(),this.$setTitle(this.$t("Products Settings"))}},[["render",function(e,t,i,a,n,s){const o=Jl("Search"),r=KS,l=cE,c=Sk,d=Jl("TableEmptyStateImage"),u=NN,p=ZP,h=Jl("TableMoreActions"),f=XP,g=Jl("pagination"),m=AL,_=oC,v=sC,b=dM,y=WB;return zd(),qd("div",Tge,[tu("div",Age,[tu("div",Rge,[tu("div",Ige,[tu("div",Dge,[tu("h3",null,me(e.$t("Products")),1)])])]),n.fetching?(zd(),qd("div",zge,[iu(m,{class:"fs_box_wrapper",rows:5,animated:""})])):(zd(),qd("div",Oge,[tu("div",Mge,[tu("div",Nge,[tu("div",Lge,[iu(l,{onKeyup:Ih(s.getProducts,["enter"]),clearable:"",onClear:s.getProducts,placeholder:e.$t("Search..."),modelValue:n.search,"onUpdate:modelValue":t[0]||(t[0]=e=>n.search=e),class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(r,{class:"el-input__icon"},{default:vr(()=>[iu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","placeholder","modelValue"])]),iu(c,{onClick:t[1]||(t[1]=e=>s.createTicketModal()),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add New")),1)],void 0),_:1})])]),tu("div",Pge,[iu(f,{data:n.products,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{empty:vr(()=>[tu("div",Fge,[iu(u,{description:e.$t("No Products Found"),"image-size":130},{image:vr(()=>[iu(d)]),_:1},8,["description"])])]),default:vr(()=>[iu(p,{width:"100",prop:"id",label:e.$t("ID")},null,8,["label"]),iu(p,{prop:"title",width:"200",label:e.$t("Title")},null,8,["label"]),iu(p,{prop:"description",width:"250",label:e.$t("Description")},null,8,["label"]),iu(p,{align:"center",width:"150",label:e.$t("Action")},{default:vr(t=>[tu("div",Bge,[tu("div",$ge,[iu(c,{class:"fs_action_button",onClick:e=>s.editProductModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),iu(h,{scope:t,fetching:n.fetching,onDelete:e=>s.deleteProduct(t.row),"delete-warning":e.$t("product_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])]),n.products.length?(zd(),qd("div",Vge,[tu("span",Uge,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(g,{onFetch:t[2]||(t[2]=e=>s.getProducts()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",Hge,[iu(g,{onFetch:t[3]||(t[3]=e=>s.getProducts()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)]))]),n.editing_product?(zd(),Kd(b,{key:0,"append-to-body":!0,title:n.editing_product&&n.editing_product.id?e.$t("Edit Product"):e.$t("Create New Supported Product"),modelValue:n.ticket_modal,"onUpdate:modelValue":t[8]||(t[8]=e=>n.ticket_modal=e),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",Yge,[iu(c,{class:"fs_outline_btn",onClick:t[6]||(t[6]=()=>n.ticket_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(c,{disabled:n.saving,onClick:t[7]||(t[7]=e=>s.createOrUpdateProduct()),class:"fs_filled_btn"},{default:vr(()=>[su(me(n.editing_product&&n.editing_product.id?e.$t("Update Product"):e.$t("Add Product")),1)],void 0),_:1},8,["disabled"])),[[y,n.saving]])])]),default:vr(()=>[iu(v,{"label-position":"top",data:n.editing_product},{default:vr(()=>[iu(_,{label:e.$t("Title"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Product Title"),modelValue:n.editing_product.title,"onUpdate:modelValue":t[4]||(t[4]=e=>n.editing_product.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(_,{label:e.$t("Description"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_textarea_input fs_text_input_40",type:"textarea",rows:"4",placeholder:e.$t("Product Description"),modelValue:n.editing_product.description,"onUpdate:modelValue":t[5]||(t[5]=e=>n.editing_product.description=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ru("",!0)])}]]),Wge={class:"fs_products"},jge={class:"fs_box_wrapper"},qge={class:"fs_box_header"},Kge={class:"fs_box_head"},Xge={class:"fs_box_head"},Zge={key:0,class:"fs_table_container"},Qge={class:"fs_table_header"},Jge={class:"fs_box_actions"},eme={class:"fs_ticket_orders fs_table_search_field"},tme={class:"fs_table_wrapper"},ime={class:"fs_table_empty_state"},ame={class:"fs-table-action-cell"},nme={class:"fs_action_button_wrapper"},sme={key:0,class:"fs_pagination_wrapper"},ome={class:"fs_pagination_left"},rme={class:"fs_pagination_right"},lme={key:1,class:"fs_box_body fs_skeleton_loader"},cme={class:"fs_dialog_footer"};const dme=lH({name:"TicketTags",components:{Pagination:Pq,TableMoreActions:Cge,TableEmptyStateImage:kge,NarrowPromo:Fne},data:()=>({tags:[],pagination:{current_page:1,per_page:10,total:0},fetching:!0,saving:!1,tag_modal:!1,editing_tag:!1,search:""}),methods:{fetchTags(){this.fetching=!0,this.$get("ticket-tags",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.tags=e.tags.data,this.pagination.total=e.tags.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},createOrUpdateTag(){this.saving=!0;let e=this.$post,t="ticket-tags";this.editing_tag.id&&(e=this.$put,t=`ticket-tags/${this.editing_tag.id}`),e(t,{...this.editing_tag}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTags(),this.tag_modal=!1,this.renewOptions("ticket-tags/options")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editTagModal(e){this.editing_tag=JSON.parse(JSON.stringify(e)),this.tag_modal=!0},createTagModal(){this.editing_tag={title:"",description:""},this.tag_modal=!0},deleteTag(e){this.$del(`ticket-tags/${e.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTags(),this.renewOptions("ticket-tags/options")})}},mounted(){this.has_pro&&this.fetchTags(),this.$setTitle(this.$t("Ticket Tags"))}},[["render",function(e,t,i,a,n,s){const o=Jl("search"),r=KS,l=cE,c=Sk,d=Jl("TableEmptyStateImage"),u=NN,p=ZP,h=Jl("router-link"),f=Jl("TableMoreActions"),g=XP,m=Jl("pagination"),_=AL,v=Jl("NarrowPromo"),b=oC,y=sC,x=dM,S=WB;return zd(),qd("div",Wge,[tu("div",jge,[tu("div",qge,[tu("div",Kge,[tu("div",Xge,[tu("h3",null,me(e.$t("Ticket Tags")),1)])])]),e.has_pro?(zd(),qd(Fd,{key:0},[n.fetching?(zd(),qd("div",lme,[iu(_,{class:"fs_box_wrapper",rows:5,animated:""})])):(zd(),qd("div",Zge,[tu("div",Qge,[tu("div",Jge,[tu("div",eme,[iu(l,{onKeyup:Ih(s.fetchTags,["enter"]),clearable:"",onClear:s.fetchTags,disabled:!e.has_pro,placeholder:e.$t("Search..."),modelValue:n.search,"onUpdate:modelValue":t[0]||(t[0]=e=>n.search=e),class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(r,{class:"el-input__icon"},{default:vr(()=>[iu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","disabled","placeholder","modelValue"])]),e.has_pro?(zd(),Kd(c,{key:0,onClick:t[1]||(t[1]=e=>s.createTagModal()),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add New")),1)],void 0),_:1})):ru("",!0)])]),tu("div",tme,[iu(g,{data:n.tags,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{empty:vr(()=>[tu("div",ime,[iu(u,{description:e.$t("No Tags Found"),"image-size":130},{image:vr(()=>[iu(d)]),_:1},8,["description"])])]),default:vr(()=>[iu(p,{width:"100",prop:"id",label:e.$t("ID")},null,8,["label"]),iu(p,{prop:"title",width:"200",label:e.$t("Name")},null,8,["label"]),iu(p,{prop:"description",width:"250",label:e.$t("Description")},null,8,["label"]),iu(p,{label:e.$t("Tickets"),width:"80"},{default:vr(e=>[iu(h,{to:{name:"tickets",query:{tags:[e.row.id]}}},{default:vr(()=>[su(me(e.row.count),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),iu(p,{align:"center",width:"150",label:e.$t("Action")},{default:vr(t=>[tu("div",ame,[tu("div",nme,[iu(c,{class:"fs_action_button",onClick:e=>s.editTagModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),iu(f,{scope:t,fetching:n.fetching,onDelete:e=>s.deleteTag(t.row),"delete-warning":e.$t("tag_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])]),n.tags.length?(zd(),qd("div",sme,[tu("span",ome,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(m,{onFetch:t[2]||(t[2]=e=>s.fetchTags()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",rme,[iu(m,{onFetch:t[3]||(t[3]=e=>s.fetchTags()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)]))],64)):(zd(),Kd(v,{key:1,heading:e.$t("segment_ticket_by_tags"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_ticket_tags"},null,8,["heading","description","button-text"]))]),n.editing_tag?(zd(),Kd(x,{key:0,"append-to-body":!0,title:n.editing_tag&&n.editing_tag.id?e.$t("Edit Tag"):e.$t("Create New Ticket Tag"),modelValue:n.tag_modal,"onUpdate:modelValue":t[8]||(t[8]=e=>n.tag_modal=e),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",cme,[iu(c,{class:"fs_outline_btn",onClick:t[6]||(t[6]=()=>n.tag_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(c,{disabled:n.saving,onClick:t[7]||(t[7]=e=>s.createOrUpdateTag()),class:"fs_filled_btn"},{default:vr(()=>[su(me(n.editing_tag&&n.editing_tag.id?e.$t("Update Ticket Tag"):e.$t("Add Ticket Tag")),1)],void 0),_:1},8,["disabled"])),[[S,n.saving]])])]),default:vr(()=>[iu(y,{"label-position":"top",data:n.editing_tag},{default:vr(()=>[iu(b,{label:e.$t("Tag Name"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Tag Title"),modelValue:n.editing_tag.title,"onUpdate:modelValue":t[4]||(t[4]=e=>n.editing_tag.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(b,{label:e.$t("Description"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_textarea_input fs_text_input_40",type:"textarea",rows:"4",placeholder:e.$t("Tag Description"),modelValue:n.editing_tag.description,"onUpdate:modelValue":t[5]||(t[5]=e=>n.editing_tag.description=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ru("",!0)])}]]),ume={name:"agent-members",components:{Pagination:Pq,TableMoreActions:Cge,TableEmptyStateImage:kge,WpEditor:Qee},data(){return{agents:[],pagination:{per_page:10,current_page:1,total:0},permissions:[],loading:!1,editing_agent:!1,agent_modal:!1,saving:!1,search:"",integrationSettings:[],upload_url:this.appVars.rest.url+"/agents/",requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},show_icon:!1,restrictBusinessBox:!1,selectedBusinessBoxes:[],businessBoxes:[],fallback_agent_modal:!1,deleting_agent_id:null,deleting_agent:!1,fallback_agent_id:null,fallback_agent_options:[],fallback_agents_loading:!1}},computed:{treeData(){return[{id:0,label:"All Permissions",children:this.getFormattedPermissionData()}]},defaultProps:()=>({children:"children",label:"label"})},methods:{fetchAgents(){this.loading=!0,this.$get("agents",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.agents=e.agents.data,this.pagination.total=e.agents.total,this.permissions=e.permissions,this.businessBoxes=e.businessBoxes}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},fetchSettings(){this.$get("settings/integration-settings").then(e=>{this.integrationSettings=e}).catch(e=>{this.$handleError(e)})},createStaffModal(){this.editing_agent={email:"",first_name:"",last_name:"",title:"",permissions:[],restrictions:{businessBoxRestrictions:!1,restrictedBusinessBoxes:[]},agent_signature:"",agent_signature_enabled:"no"},this.agent_modal=!0},initEdit(e){this.editing_agent=e,this.agent_modal=!0},createOrUpdateAgent(){this.saving=!0;let e=this.$post,t="agents";this.editing_agent.id&&(e=this.$put,t=`agents/${this.editing_agent.id}`),e(t,{...this.editing_agent}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchAgents(),this.editing_agent=!1,this.agent_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},readable:e=>e.replace("fst_","").replaceAll("_"," "),initDeleteAgent(e){this.deleting_agent_id=e,this.fallback_agent_id=null,this.fallback_agent_options=this.agents.filter(t=>t.id!==e),this.fallback_agent_modal=!0,this.fetchFallbackAgents("")},resetDeleteAgentModal(){this.fallback_agent_modal=!1,this.deleting_agent_id=null,this.fallback_agent_id=null,this.fallback_agent_options=[]},searchFallbackAgents(e){e.length<3||this.fetchFallbackAgents(e)},fetchFallbackAgents(e){this.fallback_agents_loading=!0,this.$get("agents",{per_page:50,search:e}).then(e=>{this.fallback_agent_options=(e.agents.data||[]).filter(e=>e.id!==this.deleting_agent_id)}).catch(e=>{this.$handleError(e)}).always(()=>{this.fallback_agents_loading=!1})},confirmDeleteAgent(){this.fallback_agent_id&&(this.deleting_agent=!0,this.$del(`agents/${this.deleting_agent_id}`,{fallback_agent_id:this.fallback_agent_id}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fallback_agent_modal=!1,this.fetchAgents()}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting_agent=!1}))},handleAvatarSuccess(e,t){const i=e.agent.id,a=this.agents.findIndex(e=>e.id===i);this.agents[a].photo=e.image,this.$notify({type:"success",message:e.message,position:"bottom-right"})},handleAvatarError(e){const t=JSON.parse(e.message);this.$notify({type:"error",message:t.message,position:"bottom-right"})},showIcon(e){document.querySelector("i.fs_agent_avatar_upload-"+e).style.display="inline-flex"},hideIcon(e){document.querySelector("i.fs_agent_avatar_upload-"+e).style.display="none"},confirmResetProfile(e){this.loading=!0,this.$post("agents/reset_avatar/"+e.id).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchAgents()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},getFormattedPermissionData(){return this.permissions.map((e,t)=>{let i=e.permissions;return{id:t,label:e.title,children:Object.keys(i).map(e=>({id:e,label:i[e]}))}})},getAllChildrenIds(e){let t=[];if(!e.children||0===e.children.length)return t;for(const i of e.children)t.push(i.id,...this.getAllChildrenIds(i));return t},handleCheckChange(e,t){const{permissions:i}=this.editing_agent,a=[e.id,...this.getAllChildrenIds(e)];this.editing_agent.permissions=t?[...new Set([...i,...a])]:i.filter(e=>!a.includes(e))},resetAgentModal(){this.editing_agent=!1,this.agent_modal=!1},manageBusinessBoxRestrictions(e){e||(this.editing_agent.restrictions.restrictedBusinessBoxes=[])}},mounted(){this.fetchAgents(),this.fetchSettings()}},pme={key:0,class:"fs_table_container",style:{width:"100%",margin:"0"}},hme={class:"fs_table_header"},fme={class:"fs_box_actions"},gme={class:"fs_ticket_orders fs_table_search_field"},mme={style:{overflow:"hidden",width:"100%"}},_me={class:"fs_table_wrapper fs_support_staffs_table",style:{"overflow-x":"auto"}},vme={class:"fs_table_empty_state"},bme=["onMouseover","onMouseout"],yme={class:"fs_agent_avatar"},xme={class:"fs_agent_avatar_cell"},Sme=["src"],wme={class:"fs_agent_info"},Cme=["href","title"],Eme={style:{display:"block"}},kme={key:0},Tme={key:1,class:"fs_text_muted"},Ame={class:"fs-table-action-cell"},Rme={class:"fs_action_button_wrapper"},Ime={key:0,class:"fs_pagination_wrapper"},Dme={class:"fs_pagination_left"},Ome={class:"fs_pagination_right"},Mme={key:1,class:"fs_box_body fs_skeleton_loader"},Nme={key:0,class:"telegram_integration"},Lme={key:1,class:"slack_integration"},Pme={key:2,class:"twilio_integration"},Fme={class:"custom-tree-node"},Bme={key:0},$me={key:1},Vme={key:2},Ume={class:"fs_restriction_section"},Hme={class:"fs_restriction_label"},zme={class:"fs_restriction_content"},Yme={style:{"margin-top":"16px"}},Gme={key:0},Wme={class:"fs_dialog_footer"},jme={key:0},qme={key:1},Kme={class:"fs_fallback_agent_modal_desc"},Xme={class:"fs_dialog_footer"};const Zme={key:0,class:"fs_table_container",style:{width:"100%",margin:"0"}},Qme={class:"fs_table_header"},Jme={class:"fs_box_actions"},e_e={class:"fs_ticket_orders fs_table_search_field"},t_e={style:{overflow:"hidden",width:"100%"}},i_e={class:"fs_table_wrapper fs_agent_groups_table",style:{"overflow-x":"auto"}},a_e={class:"fs_table_empty_state"},n_e={class:"fs-table-action-cell"},s_e={class:"fs_action_button_wrapper"},o_e={class:"fs_action_button_wrapper"},r_e={key:0,class:"fs_pagination_wrapper"},l_e={class:"fs_pagination_left"},c_e={class:"fs_pagination_right"},d_e={key:1,class:"fs_box_body fs_skeleton_loader"},u_e={class:"fs_agent_group_default_description"},p_e={class:"fs_dialog_footer"},h_e={class:"fs_dialog_warning_content"},f_e={class:"fs_popconfirm_actions"};const g_e={class:"fs_box_wrapper"},m_e={class:"fs_box_header"},__e={class:"fs_box_head"},v_e={class:"fs_table_container fs_support_staffs_container"},b_e={class:"fs_settings_sub_menu"};const y_e=lH({name:"support-staffs",components:{AgentMembers:lH(ume,[["render",function(e,t,i,a,n,s){const o=Jl("search"),r=KS,l=cE,c=Sk,d=Jl("TableEmptyStateImage"),u=NN,p=Jl("Camera"),h=PB,f=nN,g=vL,m=sN,_=aN,v=ZP,b=ZC,y=tA,x=Jl("TableMoreActions"),S=XP,w=Jl("pagination"),C=AL,E=oC,k=hI,T=pI,A=oB,R=sC,I=AR,D=wA,O=SA,M=Jl("wp-editor"),N=dM,L=WB;return zd(),qd("div",null,[n.loading?(zd(),qd("div",Mme,[iu(C,{rows:5,animated:""})])):(zd(),qd("div",pme,[tu("div",hme,[tu("div",fme,[tu("div",gme,[iu(l,{onKeyup:Ih(s.fetchAgents,["enter"]),clearable:"",onClear:s.fetchAgents,size:"small",placeholder:e.$t("Search Agents"),modelValue:n.search,"onUpdate:modelValue":t[0]||(t[0]=e=>n.search=e),class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(r,{class:"el-input__icon"},{default:vr(()=>[iu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","placeholder","modelValue"])]),iu(c,{onClick:t[1]||(t[1]=e=>s.createStaffModal()),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add New")),1)],void 0),_:1})])]),tu("div",mme,[tu("div",_me,[iu(S,{data:n.agents,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell"},{empty:vr(()=>[tu("div",vme,[iu(u,{description:e.$t("No Support Staff Found"),"image-size":130},{image:vr(()=>[iu(d)]),_:1},8,["description"])])]),default:vr(()=>[iu(v,{label:e.$t("Staff"),width:"220"},{default:vr(t=>[tu("div",{class:"fs_as_profile_picture",onMouseover:e=>s.showIcon(t.row.id),onMouseout:e=>s.hideIcon(t.row.id)},[tu("div",yme,[iu(_,{trigger:"click","hide-on-click":!1,placement:"bottom-start"},{dropdown:vr(()=>[iu(m,{class:"fs_global_dropdown <>fs-as-avatar-actions</>"},{default:vr(()=>[iu(f,null,{default:vr(()=>[iu(h,{class:"fs_avatar_uploader",action:n.upload_url+"avatar/"+t.row.id,"on-success":s.handleAvatarSuccess,"on-error":s.handleAvatarError,headers:n.requestHeaders,"show-file-list":!1},{default:vr(()=>[su(me(e.$t("Upload a Custom Picture")),1)],void 0),_:1},8,["action","on-success","on-error","headers"])],void 0),_:2},1024),t.row.avatar?(zd(),Kd(f,{key:0},{default:vr(()=>[iu(g,{"confirm-button-text":"Yes","cancel-button-text":"No",title:e.$t("Reset to gravatar?"),onConfirm:e=>s.confirmResetProfile(t.row)},{reference:vr(()=>[su(me(e.$t("Reset To Default Gravatar")),1)]),_:1},8,["title","onConfirm"])],void 0),_:2},1024)):ru("",!0)],void 0),_:2},1024)]),default:vr(()=>[iu(r,{class:se("fs_agent_avatar_upload fs_agent_avatar_upload-"+t.row.id)},{default:vr(()=>[iu(p)],void 0),_:1},8,["class"])],void 0),_:2},1024),tu("div",xme,[t.row.photo?(zd(),qd("img",{key:0,src:t.row.photo,class:"avatar"},null,8,Sme)):ru("",!0),tu("div",wme,[tu("a",{href:t.row.user_profile,title:t.row.full_name,class:"fs_agent_name"},me(t.row.full_name),9,Cme),tu("span",null,"#"+me(t.row.id),1)])])])],40,bme)]),_:1},8,["label"]),iu(v,{label:e.$t("Title"),width:"150"},{default:vr(e=>[tu("span",null,me(e.row.title),1)]),_:1},8,["label"]),iu(v,{label:e.$t("Permissions"),width:"160"},{default:vr(t=>[iu(b,{placement:"top"},{content:vr(()=>[tu("p",null,me(e.$t("Assigned Permissions")),1),(zd(!0),qd(Fd,null,sc(t.row.permissions,e=>(zd(),qd("span",Eme,me(s.readable(e)),1))),256))]),default:vr(()=>[iu(c,{class:"fs_agent_permissions",type:"default",size:"small"},{default:vr(()=>[su(me(t.row.permissions.length)+" "+me(e.$t("Permissions")),1)],void 0),_:2},1024)],void 0),_:2},1024)]),_:1},8,["label"]),iu(v,{label:e.$t("Group"),width:"160"},{default:vr(t=>[t.row.groups&&t.row.groups.length?(zd(),qd("span",kme,[su(me(t.row.groups[0].title)+" ",1),t.row.groups.length>1?(zd(),Kd(b,{key:0,placement:"top"},{content:vr(()=>[(zd(!0),qd(Fd,null,sc(t.row.groups.slice(1),(e,t)=>(zd(),qd("span",{key:e.id,style:{display:"block"}},me(e.title),1))),128))]),default:vr(()=>[iu(y,{size:"small",type:"info"},{default:vr(()=>[su("+"+me(t.row.groups.length-1)+" "+me(e.$t("More")),1)],void 0),_:2},1024)],void 0),_:2},1024)):ru("",!0)])):(zd(),qd("span",Tme,"—"))]),_:1},8,["label"]),iu(v,{label:e.$t("Replies"),prop:"replies_count",width:"120"},null,8,["label"]),iu(v,{label:e.$t("Interactions"),prop:"interactions_count",width:"120"},null,8,["label"]),iu(v,{width:"120",label:e.$t("Actions")},{default:vr(t=>[tu("div",Ame,[tu("div",Rme,[iu(c,{class:"fs_support_action_btn fs_action_button",onClick:e=>s.initEdit(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),iu(x,{scope:t.row,fetching:n.loading,onDelete:e=>s.initDeleteAgent(t.row.id),"delete-warning":e.$t("agent_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])])]),n.agents.length?(zd(),qd("div",Ime,[tu("span",Dme,[tu("p",null," Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(w,{onFetch:t[2]||(t[2]=e=>s.fetchAgents()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",Ome,[iu(w,{"hide-on-single-page":!0,onFetch:t[3]||(t[3]=e=>s.fetchAgents()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])),n.editing_agent?(zd(),Kd(N,{key:2,"append-to-body":!0,title:n.editing_agent&&n.editing_agent.id?e.$t("Edit Staff"):e.$t("Add New Support Staff"),modelValue:n.agent_modal,"onUpdate:modelValue":t[17]||(t[17]=e=>n.agent_modal=e),width:"60%",onClose:t[18]||(t[18]=e=>s.resetAgentModal()),class:"fs_dialog"},{footer:vr(()=>[tu("span",Wme,[br((zd(),Kd(c,{disabled:n.saving,onClick:t[16]||(t[16]=e=>s.createOrUpdateAgent()),class:"fs_filled_btn"},{default:vr(()=>[n.editing_agent.id?(zd(),qd("span",jme,me(e.$t("Update")),1)):(zd(),qd("span",qme,me(e.$t("Create")),1))],void 0),_:1},8,["disabled"])),[[L,n.saving]])])]),default:vr(()=>[iu(R,{"label-position":"top",data:n.editing_agent},{default:vr(()=>[iu(T,{gutter:20},{default:vr(()=>[iu(k,{span:12},{default:vr(()=>[iu(E,{label:e.$t("First Name"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("First Name"),modelValue:n.editing_agent.first_name,"onUpdate:modelValue":t[4]||(t[4]=e=>n.editing_agent.first_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(k,{span:12},{default:vr(()=>[iu(E,{label:e.$t("Last Name"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Last Name"),modelValue:n.editing_agent.last_name,"onUpdate:modelValue":t[5]||(t[5]=e=>n.editing_agent.last_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),iu(T,{gutter:20},{default:vr(()=>[iu(k,{span:12},{default:vr(()=>[iu(E,{label:e.$t("Email"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",disabled:n.editing_agent.id,type:"email",placeholder:e.$t("Agent Email"),modelValue:n.editing_agent.email,"onUpdate:modelValue":t[6]||(t[6]=e=>n.editing_agent.email=e)},null,8,["disabled","placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(k,{span:12},{default:vr(()=>[iu(E,{label:e.$t("Title"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("agent_title"),modelValue:n.editing_agent.title,"onUpdate:modelValue":t[7]||(t[7]=e=>n.editing_agent.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),n.integrationSettings.includes("telegram_settings")?(zd(),qd("div",Nme,[tu("h3",null,me(e.$t("Telegram Integration")),1),iu(E,{label:e.$t("Telegram Chat ID"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",text:"",placeholder:e.$t("Telegram Chat ID"),modelValue:n.editing_agent.telegram_chat_id,"onUpdate:modelValue":t[8]||(t[8]=e=>n.editing_agent.telegram_chat_id=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])])):ru("",!0),n.integrationSettings.includes("slack_settings")?(zd(),qd("div",Lme,[tu("h3",null,me(e.$t("Slack Integration")),1),iu(E,{label:e.$t("Slack User ID"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",text:"",placeholder:e.$t("Slack User ID"),modelValue:n.editing_agent.slack_user_id,"onUpdate:modelValue":t[9]||(t[9]=e=>n.editing_agent.slack_user_id=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])])):ru("",!0),n.integrationSettings.includes("twilio_settings")?(zd(),qd("div",Pme,[tu("h3",null,me(e.$t("Twilio Integration")),1),iu(E,{label:e.$t("WhatsApp Phone Number"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",text:"",placeholder:e.$t("Ex: +123456789"),modelValue:n.editing_agent.whatsapp_number,"onUpdate:modelValue":t[10]||(t[10]=e=>n.editing_agent.whatsapp_number=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])])):ru("",!0),t[26]||(t[26]=tu("hr",{class:"fs_divider"},null,-1)),iu(E,{label:e.$t("Permissions"),class:"fs_form_item"},{default:vr(()=>[iu(A,{data:s.treeData,"show-checkbox":"","node-key":"id",props:s.defaultProps,"default-expand-all":"","default-checked-keys":n.editing_agent.permissions,onCheckChange:s.handleCheckChange},{default:vr(({node:i,data:a})=>[tu("span",Fme,["Draft Reply"===i.label?(zd(),qd("span",Bme,[iu(b,{width:"200",class:"box-item","popper-class":"fs_tree_tooltip",effect:"dark",placement:"top-start"},{content:vr(()=>[...t[24]||(t[24]=[su(" If any of the following options are enabled: ",-1),tu("br",null,null,-1),su(" 1. Manage Own Tickets,",-1),tu("br",null,null,-1),su(" 2. Manage Unassigned Tickets,",-1),tu("br",null,null,-1),su(" 3. Manage Other Tickets,",-1),tu("br",null,null,-1),su(" In that case, the draft replies permission will be disabled. ",-1)])]),default:vr(()=>[tu("span",null,me(i.label),1)],void 0),_:2},1024)])):"Access Private Data (Customers, Agents)"===i.label&&e.appVars.customer_delete_requires_admin?(zd(),qd("span",$me,[iu(b,{width:"200",class:"box-item","popper-class":"fs_tree_tooltip",effect:"dark",placement:"top-start"},{content:vr(()=>[...t[25]||(t[25]=[su(" This permission alone lets the agent view customers and agents. ",-1),tu("br",null,null,-1),su(" It is not enough to delete customers. The agent must also be an ",-1),tu("br",null,null,-1),su(" administrator of this site, because deleting a customer also deletes ",-1),tu("br",null,null,-1),su(" their tickets, conversations and attachments. ",-1)])]),default:vr(()=>[tu("span",null,me(i.label),1)],void 0),_:2},1024)])):(zd(),qd("span",Vme,me(i.label),1))])]),_:1},8,["data","props","default-checked-keys","onCheckChange"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"]),t[28]||(t[28]=tu("hr",{class:"fs_divider"},null,-1)),tu("div",Ume,[tu("h4",Hme,me(e.$t("Restrictions")),1),tu("div",zme,[iu(R,{model:n.editing_agent,"label-position":"top",ref:"form"},{default:vr(()=>[iu(E,{class:"fs_form_item"},{default:vr(()=>[iu(I,{modelValue:n.editing_agent.restrictions.businessBoxRestrictions,"onUpdate:modelValue":t[11]||(t[11]=e=>n.editing_agent.restrictions.businessBoxRestrictions=e),onChange:t[12]||(t[12]=e=>s.manageBusinessBoxRestrictions(n.restrictBusinessBox))},{default:vr(()=>[su(me(e.$t("Business Inbox Access Restriction")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1}),n.editing_agent.restrictions.businessBoxRestrictions?(zd(),Kd(E,{key:0,class:"fs_form_item"},{default:vr(()=>[iu(O,{class:"fs_select_field fs_select_restricted_business_boxes",modelValue:n.editing_agent.restrictions.restrictedBusinessBoxes,"onUpdate:modelValue":t[13]||(t[13]=e=>n.editing_agent.restrictions.restrictedBusinessBoxes=e),placeholder:e.$t("Select"),clearable:"",multiple:""},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.businessBoxes,e=>(zd(),Kd(D,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1})):ru("",!0)],void 0),_:1},8,["model"])])]),tu("div",Yme,[t[27]||(t[27]=tu("hr",{class:"fs_divider"},null,-1)),tu("h4",null,me(e.$t("Agent Signature")),1),iu(E,{class:"fs_form_item"},{default:vr(()=>[iu(I,{modelValue:n.editing_agent.agent_signature_enabled,"onUpdate:modelValue":t[14]||(t[14]=e=>n.editing_agent.agent_signature_enabled=e),"true-label":"yes","false-label":"no"},{default:vr(()=>[su(me(e.$t("Enable signature for this agent")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1}),"yes"===n.editing_agent.agent_signature_enabled?(zd(),qd("div",Gme,[iu(M,{editor_id:"agent_signature_"+(n.editing_agent.id||"new"),modelValue:n.editing_agent.agent_signature,"onUpdate:modelValue":t[15]||(t[15]=e=>n.editing_agent.agent_signature=e),height:150},null,8,["editor_id","modelValue"])])):ru("",!0)])],void 0),_:1},8,["title","modelValue"])):ru("",!0),iu(N,{"append-to-body":!0,title:e.$t("Select Fallback Agent"),modelValue:n.fallback_agent_modal,"onUpdate:modelValue":t[22]||(t[22]=e=>n.fallback_agent_modal=e),width:"480px",onClose:t[23]||(t[23]=e=>s.resetDeleteAgentModal()),class:"fs_dialog"},{footer:vr(()=>[tu("span",Xme,[iu(c,{class:"fs_outline_btn",onClick:t[20]||(t[20]=e=>n.fallback_agent_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(c,{disabled:n.deleting_agent||!n.fallback_agent_id,class:"fs_filled_btn el-button--danger",onClick:t[21]||(t[21]=e=>s.confirmDeleteAgent())},{default:vr(()=>[su(me(e.$t("Confirm Delete")),1)],void 0),_:1},8,["disabled"])),[[L,n.deleting_agent]])])]),default:vr(()=>[tu("p",Kme,me(e.$t("This agent's tickets, replies and products will be reassigned to the fallback agent you select below.")),1),iu(R,{"label-position":"top"},{default:vr(()=>[iu(E,{label:e.$t("Fallback Agent"),class:"fs_form_item"},{default:vr(()=>[iu(O,{modelValue:n.fallback_agent_id,"onUpdate:modelValue":t[19]||(t[19]=e=>n.fallback_agent_id=e),filterable:"",remote:"",clearable:"","reserve-keyword":"","remote-method":s.searchFallbackAgents,loading:n.fallback_agents_loading,placeholder:e.$t("Search agent by name or email"),class:"fs_select_field",style:{width:"100%"}},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.fallback_agent_options,e=>(zd(),Kd(D,{key:e.id,label:e.full_name+(e.email?" ("+e.email+")":""),value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","remote-method","loading","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1},8,["title","modelValue"])])}]]),AgentGroups:lH({name:"agent-groups",components:{Pagination:Pq,TableEmptyStateImage:kge},data:()=>({groups:[],pagination:{current_page:1,per_page:10,total:0},fetching:!0,saving:!1,group_modal:!1,editing_group:!1,original_group:null,search:"",freshAgents:[],delete_modal:!1,deleting_group:null,fallback_group_id:null,deleting:!1}),computed:{availableAgents(){return this.freshAgents.length?this.freshAgents:this.appVars.support_agents||[]},fallbackGroups(){return this.deleting_group?this.groups.filter(e=>e.id!==this.deleting_group.id):[]},hasChanges(){return!this.editing_group||!this.editing_group.id||(!this.original_group||JSON.stringify(this.editing_group)!==JSON.stringify(this.original_group))}},methods:{getGroups(){this.fetching=!0,this.$get("agent-groups",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.groups=e.groups.data,this.pagination.total=e.groups.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},openCreateModal(){this.editing_group={title:"",description:"",agent_ids:[],is_default:!1},this.group_modal=!0},openEditModal(e){this.editing_group=null,this.$get(`agent-groups/${e.id}`).then(e=>{this.freshAgents=e.agents||[];const t=e.group;this.editing_group={id:t.id,title:t.title,description:t.description||"",agent_ids:(t.agent_ids||[]).map(e=>Number(e)),is_default:!(!t.settings||!t.settings.is_default)},this.original_group=JSON.parse(JSON.stringify(this.editing_group)),this.group_modal=!0}).catch(e=>{this.$handleError(e)})},createOrUpdateGroup(){if(!this.editing_group.title)return void this.$notify({type:"warning",message:this.$t("Title is required"),position:"bottom-right"});if(!this.editing_group.agent_ids||!this.editing_group.agent_ids.length)return void this.$notify({type:"error",message:this.$t("Please add at least one group member."),position:"bottom-right"});this.saving=!0;let e=this.$post,t="agent-groups";this.editing_group.id&&(e=this.$put,t=`agent-groups/${this.editing_group.id}`),e(t,{...this.editing_group}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.getGroups(),this.group_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},openDeleteModal(e){this.deleting_group=e,this.fallback_group_id=null,this.delete_modal=!0},confirmDeleteGroup(){this.deleting=!0,this.$del(`agent-groups/${this.deleting_group.id}`,{fallback_group_id:this.fallback_group_id}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.delete_modal=!1,this.deleting_group=null,this.getGroups()}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})}},mounted(){this.getGroups()}},[["render",function(e,t,i,a,n,s){const o=Jl("Search"),r=KS,l=cE,c=Sk,d=Jl("TableEmptyStateImage"),u=NN,p=ZP,h=tA,f=XP,g=Jl("pagination"),m=AL,_=oC,v=wA,b=SA,y=AR,x=sC,S=dM,w=WB;return zd(),qd("div",null,[n.fetching?(zd(),qd("div",d_e,[iu(m,{class:"fs_box_wrapper",rows:5,animated:""})])):(zd(),qd("div",Zme,[tu("div",Qme,[tu("div",Jme,[tu("div",e_e,[iu(l,{onKeyup:Ih(s.getGroups,["enter"]),clearable:"",onClear:s.getGroups,placeholder:e.$t("Search..."),modelValue:n.search,"onUpdate:modelValue":t[0]||(t[0]=e=>n.search=e),class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(r,{class:"el-input__icon"},{default:vr(()=>[iu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","placeholder","modelValue"])]),iu(c,{onClick:t[1]||(t[1]=e=>s.openCreateModal()),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add Group")),1)],void 0),_:1})])]),tu("div",t_e,[tu("div",i_e,[iu(f,{data:n.groups,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{empty:vr(()=>[tu("div",a_e,[iu(u,{description:e.$t("No Agent Groups Found"),"image-size":130},{image:vr(()=>[iu(d)]),_:1},8,["description"])])]),default:vr(()=>[iu(p,{prop:"title",label:e.$t("Title"),width:"150"},null,8,["label"]),iu(p,{label:e.$t("Members"),width:"120"},{default:vr(e=>[tu("span",null,me(e.row.agents_count),1)]),_:1},8,["label"]),iu(p,{label:e.$t("Default"),width:"120"},{default:vr(t=>[t.row.settings&&t.row.settings.is_default?(zd(),Kd(h,{key:0,type:"success",size:"small"},{default:vr(()=>[su(me(e.$t("Default")),1)],void 0),_:1})):ru("",!0)]),_:1},8,["label"]),iu(p,{align:"center",width:"200",label:e.$t("Actions")},{default:vr(e=>[tu("div",n_e,[tu("div",s_e,[iu(c,{class:"fs_action_button",onClick:t=>s.openEditModal(e.row),text:"",icon:"EditPen"},null,8,["onClick"])]),tu("div",o_e,[iu(c,{class:"fs_action_button",onClick:t=>s.openDeleteModal(e.row),text:"",icon:"Delete"},null,8,["onClick"])])])]),_:1},8,["label"])],void 0),_:1},8,["data"])])]),n.groups.length?(zd(),qd("div",r_e,[tu("span",l_e,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(g,{onFetch:t[2]||(t[2]=e=>s.getGroups()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",c_e,[iu(g,{onFetch:t[3]||(t[3]=e=>s.getGroups()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])),n.editing_group?(zd(),Kd(S,{key:2,"append-to-body":!0,title:n.editing_group.id?e.$t("Edit Group"):e.$t("Create Agent Group"),modelValue:n.group_modal,"onUpdate:modelValue":t[10]||(t[10]=e=>n.group_modal=e),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",p_e,[iu(c,{class:"fs_outline_btn",onClick:t[8]||(t[8]=e=>n.group_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(c,{disabled:n.saving||!s.hasChanges,onClick:t[9]||(t[9]=e=>s.createOrUpdateGroup()),class:"fs_filled_btn"},{default:vr(()=>[su(me(n.editing_group.id?e.$t("Update Group"):e.$t("Add Group")),1)],void 0),_:1},8,["disabled"])),[[w,n.saving]])])]),default:vr(()=>[iu(x,{"label-position":"top",data:n.editing_group},{default:vr(()=>[iu(_,{label:e.$t("Title"),class:"fs_form_item",required:""},{default:vr(()=>[iu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Group Title"),modelValue:n.editing_group.title,"onUpdate:modelValue":t[4]||(t[4]=e=>n.editing_group.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(_,{label:e.$t("Description"),class:"fs_form_item"},{default:vr(()=>[iu(l,{class:"fs_textarea_input fs_text_input_40",type:"textarea",rows:"3",placeholder:e.$t("Group Description"),modelValue:n.editing_group.description,"onUpdate:modelValue":t[5]||(t[5]=e=>n.editing_group.description=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(_,{label:e.$t("Agents"),class:"fs_form_item",required:""},{default:vr(()=>[iu(b,{modelValue:n.editing_group.agent_ids,"onUpdate:modelValue":t[6]||(t[6]=e=>n.editing_group.agent_ids=e),multiple:"",filterable:"","reserve-keyword":!1,placeholder:e.$t("Select Agents"),class:"fs_select_field",style:{width:"100%"}},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.availableAgents,e=>(zd(),Kd(v,{key:e.id,label:e.first_name+" "+e.last_name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(_,{class:"fs_form_item"},{default:vr(()=>[iu(y,{modelValue:n.editing_group.is_default,"onUpdate:modelValue":t[7]||(t[7]=e=>n.editing_group.is_default=e)},{default:vr(()=>[su(me(e.$t("Set as Default Group")),1)],void 0),_:1},8,["modelValue"]),tu("span",u_e,me(e.$t("When new agents are created without being assigned to any group, they will automatically be added to the default group.")),1)],void 0),_:1})],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ru("",!0),n.deleting_group?(zd(),Kd(S,{key:3,"append-to-body":!0,title:e.$t("Delete Agent Group"),modelValue:n.delete_modal,"onUpdate:modelValue":t[13]||(t[13]=e=>n.delete_modal=e),width:"450",class:"fs_dialog"},{footer:vr(()=>[tu("div",f_e,[iu(c,{class:"fs_outline_btn",onClick:t[12]||(t[12]=e=>n.delete_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(c,{class:"fs_filled_btn",disabled:!n.fallback_group_id||n.deleting,onClick:s.confirmDeleteGroup},{default:vr(()=>[su(me(e.$t("Confirm Delete")),1)],void 0),_:1},8,["disabled","onClick"])),[[w,n.deleting]])])]),default:vr(()=>[tu("div",h_e,[tu("p",null,me(e.$t("All agents in this group will be moved to the selected fallback group.")),1)]),iu(x,{"label-position":"top",style:{"margin-top":"15px"}},{default:vr(()=>[iu(_,{label:e.$t("Move agents to"),class:"fs_form_item"},{default:vr(()=>[iu(b,{modelValue:n.fallback_group_id,"onUpdate:modelValue":t[11]||(t[11]=e=>n.fallback_group_id=e),placeholder:e.$t("Select a fallback group"),class:"fs_select_field",style:{width:"100%"}},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.fallbackGroups,e=>(zd(),Kd(v,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1},8,["title","modelValue"])):ru("",!0)])}]])},data:()=>({active_tab:"members"}),mounted(){this.$setTitle(this.$t("Support Staff"))}},[["render",function(e,t,i,a,n,s){const o=Jl("AgentMembers"),r=Jl("AgentGroups");return zd(),qd("div",g_e,[tu("div",m_e,[tu("div",__e,[tu("h3",null,me(e.$t("Support Staff")),1)])]),tu("div",v_e,[tu("div",b_e,[tu("ul",null,[tu("li",{onClick:t[0]||(t[0]=e=>n.active_tab="members"),class:se({fs_sub_active:"members"===n.active_tab})},[tu("span",null,me(e.$t("Members")),1)],2),tu("li",{onClick:t[1]||(t[1]=e=>n.active_tab="groups"),class:se({fs_sub_active:"groups"===n.active_tab})},[tu("span",null,me(e.$t("Groups")),1)],2)])]),"members"===n.active_tab?(zd(),Kd(o,{key:0})):ru("",!0),"groups"===n.active_tab?(zd(),Kd(r,{key:1})):ru("",!0)])])}]]),x_e="undefined"!=typeof document;function S_e(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const w_e=Object.assign;function C_e(e,t){const i={};for(const a in t){const n=t[a];i[a]=k_e(n)?n.map(e):e(n)}return i}const E_e=()=>{},k_e=Array.isArray;function T_e(e,t){const i={};for(const a in e)i[a]=a in t?t[a]:e[a];return i}const A_e=/#/g,R_e=/&/g,I_e=/\//g,D_e=/=/g,O_e=/\?/g,M_e=/\+/g,N_e=/%5B/g,L_e=/%5D/g,P_e=/%5E/g,F_e=/%60/g,B_e=/%7B/g,$_e=/%7C/g,V_e=/%7D/g,U_e=/%20/g;function H_e(e){return null==e?"":encodeURI(""+e).replace($_e,"|").replace(N_e,"[").replace(L_e,"]")}function z_e(e){return H_e(e).replace(M_e,"%2B").replace(U_e,"+").replace(A_e,"%23").replace(R_e,"%26").replace(F_e,"`").replace(B_e,"{").replace(V_e,"}").replace(P_e,"^")}function Y_e(e){return z_e(e).replace(D_e,"%3D")}function G_e(e){return function(e){return H_e(e).replace(A_e,"%23").replace(O_e,"%3F")}(e).replace(I_e,"%2F")}function W_e(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const j_e=/\/$/;function q_e(e,t,i="/"){let a,n={},s="",o="";const r=t.indexOf("#");let l=t.indexOf("?");return l=r>=0&&l>r?-1:l,l>=0&&(a=t.slice(0,l),s=t.slice(l,r>0?r:t.length),n=e(s.slice(1))),r>=0&&(a=a||t.slice(0,r),o=t.slice(r,t.length)),a=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let s,o,r=i.length-1;for(s=0;s<a.length;s++)if(o=a[s],"."!==o){if(".."!==o)break;r>1&&r--}return i.slice(0,r).join("/")+"/"+a.slice(s).join("/")}(null!=a?a:t,i),{fullPath:a+s+o,path:a,query:n,hash:W_e(o)}}function K_e(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function X_e(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Z_e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!Q_e(e[i],t[i]))return!1;return!0}function Q_e(e,t){return k_e(e)?J_e(e,t):k_e(t)?J_e(t,e):(null==e?void 0:e.valueOf())===(null==t?void 0:t.valueOf())}function J_e(e,t){return k_e(t)?e.length===t.length&&e.every((e,i)=>e===t[i]):1===e.length&&e[0]===t}const eve={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let tve=function(e){return e.pop="pop",e.push="push",e}({}),ive=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ave(e){if(!e)if(x_e){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(j_e,"")}const nve=/^[^#]+#/;function sve(e,t){return e.replace(nve,"#")+t}const ove=()=>({left:window.scrollX,top:window.scrollY});function rve(e){let t;if("el"in e){const i=e.el,a="string"==typeof i&&i.startsWith("#"),n="string"==typeof i?a?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!n)return;t=function(e,t){const i=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-i.left-(t.left||0),top:a.top-i.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function lve(e,t){return(history.state?history.state.position-t:-1)+e}const cve=new Map;function dve(e){return"string"==typeof e||"symbol"==typeof e}let uve=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const pve=Symbol("");function hve(e,t){return w_e(new Error,{type:e,[pve]:!0},t)}function fve(e,t){return e instanceof Error&&pve in e&&(null==t||!!(e.type&t))}uve.MATCHER_NOT_FOUND,uve.NAVIGATION_GUARD_REDIRECT,uve.NAVIGATION_ABORTED,uve.NAVIGATION_CANCELLED,uve.NAVIGATION_DUPLICATED;function gve(e){const t={};if(""===e||"?"===e)return t;const i=("?"===e[0]?e.slice(1):e).split("&");for(let a=0;a<i.length;++a){const e=i[a].replace(M_e," "),n=e.indexOf("="),s=W_e(n<0?e:e.slice(0,n)),o=n<0?null:W_e(e.slice(n+1));if(s in t){let e=t[s];k_e(e)||(e=t[s]=[e]),e.push(o)}else t[s]=o}return t}function mve(e){let t="";for(let i in e){const a=e[i];i=Y_e(i),null!=a?(k_e(a)?a.map(e=>e&&z_e(e)):[a&&z_e(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+i,null!=e&&(t+="="+e))}):void 0!==a&&(t+=(t.length?"&":"")+i)}return t}function _ve(e){const t={};for(const i in e){const a=e[i];void 0!==a&&(t[i]=k_e(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const vve=Symbol(""),bve=Symbol(""),yve=Symbol(""),xve=Symbol(""),Sve=Symbol("");function wve(){let e=[];return{add:function(t){return e.push(t),()=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Cve(e,t,i,a,n,s=e=>e()){const o=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((r,l)=>{const c=e=>{var s;!1===e?l(hve(uve.NAVIGATION_ABORTED,{from:i,to:t})):e instanceof Error?l(e):"string"==typeof(s=e)||s&&"object"==typeof s?l(hve(uve.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&a.enterCallbacks[n]===o&&"function"==typeof e&&o.push(e),r())},d=s(()=>e.call(a&&a.instances[n],t,i,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(e=>l(e))})}function Eve(e,t,i,a,n=e=>e()){const s=[];for(const o of e)for(const e in o.components){let r=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(S_e(r)){const l=(r.__vccOpts||r)[t];l&&s.push(Cve(l,i,a,o,e,n))}else{let l=r();s.push(()=>l.then(s=>{if(!s)throw new Error(`Couldn't resolve component "${e}" at "${o.path}"`);const r=(l=s).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&S_e(l.default)?s.default:s;var l;o.mods[e]=s,o.components[e]=r;const c=(r.__vccOpts||r)[t];return c&&Cve(c,i,a,o,e,n)()}))}}return s}function kve(e,t){const{pathname:i,search:a,hash:n}=t,s=e.indexOf("#");if(s>-1){let t=n.includes(e.slice(s))?e.slice(s).length:1,i=n.slice(t);return"/"!==i[0]&&(i="/"+i),K_e(i,"")}return K_e(i,e)+a+n}function Tve(e,t,i,a=!1,n=!1){return{back:e,current:t,forward:i,replaced:a,position:window.history.length,scroll:n?ove():null}}function Ave(e){const{history:t,location:i}=window,a={value:kve(e,i)},n={value:t.state};function s(a,s,o){const r=e.indexOf("#"),l=r>-1?(i.host&&document.querySelector("base")?e:e.slice(r))+a:location.protocol+"//"+location.host+e+a;try{t[o?"replaceState":"pushState"](s,"",l),n.value=s}catch(c){i[o?"replace":"assign"](l)}}return n.value||s(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,i){const o=w_e({},n.value,t.state,{forward:e,scroll:ove()});s(o.current,o,!0),s(e,w_e({},Tve(a.value,e,null),{position:o.position+1},i),!1),a.value=e},replace:function(e,i){s(e,w_e({},t.state,Tve(n.value.back,e,n.value.forward,!0),i,{position:n.value.position}),!0),a.value=e}}}function Rve(e){const t=Ave(e=ave(e)),i=function(e,t,i,a){let n=[],s=[],o=null;const r=({state:s})=>{const r=kve(e,location),l=i.value,c=t.value;let d=0;if(s){if(i.value=r,t.value=s,o&&o===l)return void(o=null);d=c?s.position-c.position:0}else a(r);n.forEach(e=>{e(i.value,l,{delta:d,type:tve.pop,direction:d?d>0?ive.forward:ive.back:ive.unknown})})};function l(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(w_e({},e.state,{scroll:ove()}),"")}}return window.addEventListener("popstate",r),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:function(){o=i.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",r),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}}}(e,t.state,t.location,t.replace);const a=w_e({location:"",base:e,go:function(e,t=!0){t||i.pauseListeners(),history.go(e)},createHref:sve.bind(null,e)},t,i);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}let Ive=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Dve=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Dve||{});const Ove={type:Ive.Static,value:""},Mve=/[a-zA-Z0-9_]/;const Nve="[^/]+?",Lve={sensitive:!1,strict:!1,start:!0,end:!0};var Pve=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Pve||{});const Fve=/[.+*?^${}()[\]/\\]/g;function Bve(e,t){let i=0;for(;i<e.length&&i<t.length;){const a=t[i]-e[i];if(a)return a;i++}return e.length<t.length?1===e.length&&e[0]===Pve.Static+Pve.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===Pve.Static+Pve.Segment?1:-1:0}function $ve(e,t){let i=0;const a=e.score,n=t.score;for(;i<a.length&&i<n.length;){const e=Bve(a[i],n[i]);if(e)return e;i++}if(1===Math.abs(n.length-a.length)){if(Vve(a))return 1;if(Vve(n))return-1}return n.length-a.length}function Vve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Uve={strict:!1,end:!0,sensitive:!1};function Hve(e,t,i){const a=function(e,t){const i=w_e({},Lve,t),a=[];let n=i.start?"^":"";const s=[];for(const r of e){const e=r.length?[]:[Pve.Root];i.strict&&!r.length&&(n+="/");for(let t=0;t<r.length;t++){const a=r[t];let o=Pve.Segment+(i.sensitive?Pve.BonusCaseSensitive:0);if(a.type===Ive.Static)t||(n+="/"),n+=a.value.replace(Fve,"\\$&"),o+=Pve.Static;else if(a.type===Ive.Param){const{value:e,repeatable:i,optional:l,regexp:c}=a;s.push({name:e,repeatable:i,optional:l});const d=c||Nve;d!==Nve&&(o+=Pve.BonusCustomRegExp);let u=i?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(u=l&&r.length<2?`(?:/${u})`:"/"+u),l&&(u+="?"),n+=u,o+=Pve.Dynamic,l&&(o+=Pve.BonusOptional),i&&(o+=Pve.BonusRepeatable),".*"===d&&(o+=Pve.BonusWildcard)}e.push(o)}a.push(e)}if(i.strict&&i.end){const e=a.length-1;a[e][a[e].length-1]+=Pve.BonusStrict}i.strict||(n+="/?"),i.end?n+="$":i.strict&&!n.endsWith("/")&&(n+="(?:/|$)");const o=new RegExp(n,i.sensitive?"":"i");return{re:o,score:a,keys:s,parse:function(e){const t=e.match(o),i={};if(!t)return null;for(let a=1;a<t.length;a++){const e=t[a]||"",n=s[a-1];i[n.name]=e&&n.repeatable?e.split("/"):e}return i},stringify:function(t){let i="",a=!1;for(const n of e){a&&i.endsWith("/")||(i+="/"),a=!1;for(const e of n)if(e.type===Ive.Static)i+=e.value;else if(e.type===Ive.Param){const{value:s,repeatable:o,optional:r}=e,l=s in t?t[s]:"";if(k_e(l)&&!o)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const c=k_e(l)?l.join("/"):l;if(!c){if(!r)throw new Error(`Missing required param "${s}"`);n.length<2&&(i.endsWith("/")?i=i.slice(0,-1):a=!0)}i+=c}}return i||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[Ove]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${i})/"${c}": ${e}`)}let i=Dve.Static,a=i;const n=[];let s;function o(){s&&n.push(s),s=[]}let r,l=0,c="",d="";function u(){c&&(i===Dve.Static?s.push({type:Ive.Static,value:c}):i===Dve.Param||i===Dve.ParamRegExp||i===Dve.ParamRegExpEnd?(s.length>1&&("*"===r||"+"===r)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:Ive.Param,value:c,regexp:d,repeatable:"*"===r||"+"===r,optional:"*"===r||"?"===r})):t("Invalid state to consume buffer"),c="")}function p(){c+=r}for(;l<e.length;)if(r=e[l++],"\\"!==r||i===Dve.ParamRegExp)switch(i){case Dve.Static:"/"===r?(c&&u(),o()):":"===r?(u(),i=Dve.Param):p();break;case Dve.EscapeNext:p(),i=a;break;case Dve.Param:"("===r?i=Dve.ParamRegExp:Mve.test(r)?p():(u(),i=Dve.Static,"*"!==r&&"?"!==r&&"+"!==r&&l--);break;case Dve.ParamRegExp:")"===r?"\\"==d[d.length-1]?d=d.slice(0,-1)+r:i=Dve.ParamRegExpEnd:d+=r;break;case Dve.ParamRegExpEnd:u(),i=Dve.Static,"*"!==r&&"?"!==r&&"+"!==r&&l--,d="";break;default:t("Unknown state")}else a=i,i=Dve.EscapeNext;return i===Dve.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),u(),o(),n}(e.path),i),n=w_e(a,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function zve(e,t){const i=[],a=new Map;function n(e,i,a){const r=!a,l=Gve(e);l.aliasOf=a&&a.record;const c=T_e(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(Gve(w_e({},l,{components:a?a.record.components:l.components,path:e,aliasOf:a?a.record:l})))}let u,p;for(const t of d){const{path:d}=t;if(i&&"/"!==d[0]){const e=i.record.path,a="/"===e[e.length-1]?"":"/";t.path=i.record.path+(d&&a+d)}if(u=Hve(t,i,c),a?a.alias.push(u):(p=p||u,p!==u&&p.alias.push(u),r&&e.name&&!jve(u)&&s(e.name)),Kve(u)&&o(u),l.children){const e=l.children;for(let t=0;t<e.length;t++)n(e[t],u,a&&a.children[t])}a=a||u}return p?()=>{s(p)}:E_e}function s(e){if(dve(e)){const t=a.get(e);t&&(a.delete(e),i.splice(i.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=i.indexOf(e);t>-1&&(i.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function o(e){const t=function(e,t){let i=0,a=t.length;for(;i!==a;){const n=i+a>>1;$ve(e,t[n])<0?a=n:i=n+1}const n=function(e){let t=e;for(;t=t.parent;)if(Kve(t)&&0===$ve(e,t))return t}(e);n&&(a=t.lastIndexOf(n,a-1));return a}(e,i);i.splice(t,0,e),e.record.name&&!jve(e)&&a.set(e.record.name,e)}return t=T_e(Uve,t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,s,o,r={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw hve(uve.MATCHER_NOT_FOUND,{location:e});o=n.record.name,r=w_e(Yve(t.params,n.keys.filter(e=>!e.optional).concat(n.parent?n.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Yve(e.params,n.keys.map(e=>e.name))),s=n.stringify(r)}else if(null!=e.path)s=e.path,n=i.find(e=>e.re.test(s)),n&&(r=n.parse(s),o=n.record.name);else{if(n=t.name?a.get(t.name):i.find(e=>e.re.test(t.path)),!n)throw hve(uve.MATCHER_NOT_FOUND,{location:e,currentLocation:t});o=n.record.name,r=w_e({},t.params,e.params),s=n.stringify(r)}const l=[];let c=n;for(;c;)l.unshift(c.record),c=c.parent;return{name:o,path:s,params:r,matched:l,meta:qve(l)}},removeRoute:s,clearRoutes:function(){i.length=0,a.clear()},getRoutes:function(){return i},getRecordMatcher:function(e){return a.get(e)}}}function Yve(e,t){const i={};for(const a of t)a in e&&(i[a]=e[a]);return i}function Gve(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Wve(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Wve(e){const t={},i=e.props||!1;if("component"in e)t.default=i;else for(const a in e.components)t[a]="object"==typeof i?i[a]:i;return t}function jve(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qve(e){return e.reduce((e,t)=>w_e(e,t.meta),{})}function Kve({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xve(e){const t=Sr(yve),i=Sr(xve),a=Lu(()=>{const i=xo(e.to);return t.resolve(i)}),n=Lu(()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],s=i.matched;if(!n||!s.length)return-1;const o=s.findIndex(X_e.bind(null,n));if(o>-1)return o;const r=Qve(e[t-2]);return t>1&&Qve(n)===r&&s[s.length-1].path!==r?s.findIndex(X_e.bind(null,e[t-2])):o}),s=Lu(()=>n.value>-1&&function(e,t){for(const i in t){const a=t[i],n=e[i];if("string"==typeof a){if(a!==n)return!1}else if(!k_e(n)||n.length!==a.length||a.some((e,t)=>e.valueOf()!==n[t].valueOf()))return!1}return!0}(i.params,a.value.params)),o=Lu(()=>n.value>-1&&n.value===i.matched.length-1&&Z_e(i.params,a.value.params));return{route:a,href:Lu(()=>a.value.href),isActive:s,isExactActive:o,navigate:function(i={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(i)){const i=t[xo(e.replace)?"replace":"push"](xo(e.to)).catch(E_e);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>i),i}return Promise.resolve()}}}const Zve=sl({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"},viewTransition:Boolean},useLink:Xve,setup(e,{slots:t}){const i=to(Xve(e)),{options:a}=Sr(yve),n=Lu(()=>({[Jve(e.activeClass,a.linkActiveClass,"router-link-active")]:i.isActive,[Jve(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const a=t.default&&(1===(s=t.default(i)).length?s[0]:s);var s;return e.custom?a:Pu("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:n.value},a)}}});function Qve(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jve=(e,t,i)=>null!=e?e:null!=t?t:i,ebe=sl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const a=Sr(Sve),n=Lu(()=>e.route||a.value),s=Sr(bve,0),o=Lu(()=>{let e=xo(s);const{matched:t}=n.value;let i;for(;(i=t[e])&&!i.components;)e++;return e}),r=Lu(()=>n.value.matched[o.value]);xr(bve,Lu(()=>o.value+1)),xr(vve,r),xr(Sve,n);const l=mo();return Rr(()=>[l.value,r.value,e.name],([e,t,i],[a,n,s])=>{t&&(t.instances[i]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&X_e(t,n)&&a||(t.enterCallbacks[i]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const a=n.value,s=e.name,o=r.value,c=o&&o.components[s];if(!c)return tbe(i.default,{Component:c,route:a});const d=o.props[s],u=d?!0===d?a.params:"function"==typeof d?d(a):d:null,p=Pu(c,w_e({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[s]=null)},ref:l}));return tbe(i.default,{Component:p,route:a})||p}}});function tbe(e,t){if(!e)return null;const i=e(t);return 1===i.length?i[0]:i}const ibe=ebe;const abe={class:"fs_integration"},nbe={class:"fs_box_wrapper"},sbe={class:"fs_box_header"},obe={class:"fs_box_head"},rbe={class:"fs_save_settings_container"},lbe={class:"fs_box_body"},cbe={key:0,class:"fs_settings_sub_menu"},dbe=["onClick"],ube={key:1,class:"fs_notification_integration_settings_form"},pbe={key:0,class:"fs_integration_header"},hbe=["innerHTML"],fbe={key:2},gbe={key:2,class:"fs_skeleton_wrap"};const mbe=lH({name:"IntegrationView",components:{FormBuilder:rle,NarrowPromo:Fne},data(){const e=Sr(yve);return{integration_key:e.currentRoute.value.query.integration_key,loading:!1,settings:!1,fields:!1,saving:!1,drivers:this.appVars.notification_integrations,router:e}},computed:{current_integration(){return this.drivers.find(e=>e.key===this.integration_key)}},methods:{async fetchSettings(){this.current_integration&&!this.current_integration.require_pro&&(this.loading=!0,await this.$get("settings/integration",{integration_key:this.integration_key}).then(e=>{this.settings=e.settings,this.fields=e.fields,e.fields&&this.$setTitle(e.fields.title)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1}))},async saveSettings(){this.saving=!0,await this.$post("settings/integration",{integration_key:this.integration_key,settings:this.settings}).then(e=>{this.settings=e.settings,this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},switchIntegration(e){this.router.push({name:"integration",query:{integration_key:e}}),this.integration_key=e,this.fetchSettings()}},mounted(){this.integration_key?this.fetchSettings():this.drivers&&this.drivers.length&&(this.integration_key=this.drivers[0].key,this.router.push({name:"integration",query:{integration_key:this.drivers[0].key}}),this.fetchSettings())}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("NarrowPromo"),l=Jl("form-builder"),c=AL;return zd(),qd("div",abe,[tu("div",nbe,[tu("div",sbe,[tu("div",obe,[tu("h3",null,me(e.$t("Notification Integrations")),1),tu("div",rbe,[iu(o,{size:"default",type:"success",class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.saveSettings())},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1})])])]),tu("div",lbe,[n.drivers&&n.drivers.length?(zd(),qd("div",cbe,[tu("ul",null,[(zd(!0),qd(Fd,null,sc(n.drivers,e=>(zd(),qd("li",{key:e.key,onClick:t=>s.switchIntegration(e.key),class:se({fs_sub_active:e.key==n.integration_key})},[tu("span",null,me(e.title),1)],10,dbe))),128))])])):ru("",!0),n.loading?(zd(),qd("div",gbe,[iu(c,{rows:5,animated:""})])):(zd(),qd("div",ube,[s.current_integration&&s.current_integration.require_pro?(zd(),Kd(r,{key:0,heading:s.current_integration.promo_heading,description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_"+s.current_integration.key+"_integration"},null,8,["heading","description","button-text","utm-content"])):n.fields?(zd(),qd(Fd,{key:1},[s.current_integration?(zd(),qd("div",pbe,[tu("h3",null,me(s.current_integration.title)+" "+me(e.$t("Integration Settings")),1),tu("p",{innerHTML:s.current_integration.description},null,8,hbe)])):ru("",!0),iu(l,{fields:n.fields.fields,formData:n.settings},null,8,["fields","formData"])],64)):(zd(),qd("h3",fbe,me(e.$t("Settings could not be found"))+"!",1))]))])])])}]]),_be={class:"fs_reCaptcha_settings"},vbe={class:"fs_box_wrapper"},bbe={class:"fs_box_header"},ybe={class:"fs_box_head"},xbe={class:"fs_save_settings_container"},Sbe={key:0,class:"fs_actions"},wbe={key:0,class:"fs_box_body"},Cbe={class:"fs_reCaptcha_settings_body"},Ebe={class:"settings-body"},kbe={key:0,class:"fs_recaptcha_fluent_auth_notice"},Tbe={class:"fs_recaptcha_checkboxes"},Abe=["data-sitekey"],Rbe={key:1,class:"fs_box_body fs_skeleton_loader"};const Ibe=lH({name:"RecaptchaView",data:()=>({reCaptchaVersion:"recaptcha_v2",formContainingReCaptcha:{login_form:"no",signup_form:"no",ticket_form:"no"},siteKey:"",secretKey:"",captchaResponse:"",reCaptchaEnabled:!1,fetching:!1,loading:!1,isValid:!1,hasSavedSettings:!1}),methods:{fetchSettings(){this.fetching=!0,this.$get("settings/recaptcha-settings").then(e=>{const t=e;null!=t&&Object.keys(t).length>0?(this.reCaptchaVersion=t.reCaptcha_version,this.siteKey=t.siteKey,this.secretKey=t.secretKey,this.formContainingReCaptcha={login_form:"no",signup_form:"no",ticket_form:"no",...t.formContainingReCaptcha},this.reCaptchaEnabled="true"===t.is_enabled,this.hasSavedSettings=!0):this.hasSavedSettings=!1,this.loadRecaptchaV3Script(),this.validate()}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){if(!this.validate())return this.$notify({message:this.$t("Missing required fields."),type:"error",position:"bottom-right"});this.loading=!0,this.$post("settings/recaptcha-settings",{key:"reCaptcha",reCaptcha:{reCaptchaVersion:this.reCaptchaVersion,formContainingReCaptcha:this.formContainingReCaptcha,siteKey:this.siteKey,secretKey:this.secretKey,captchaResponse:this.captchaResponse,reCaptchaEnabled:this.reCaptchaEnabled}}).then(e=>{this.hasSavedSettings=!0,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},clearSettings(){this.loading=!0,this.$post("settings/recaptcha-settings",{key:"reCaptcha",reCaptcha:"clear-reCaptcha-settings"}).then(e=>{this.reCaptchaVersion="recaptcha_v2",this.siteKey="",this.secretKey="",this.formContainingReCaptcha={login_form:"no",signup_form:"no",ticket_form:"no"},this.reCaptchaEnabled=!1,this.hasSavedSettings=!1,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},loadRecaptchaResponse(){var e;if(this.validate(),"recaptcha_v3"===this.reCaptchaVersion)this.loadRecaptchaV3Script(),window.grecaptcha&&window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.siteKey,{action:"submit"}).then(e=>{this.captchaResponse=e})});else{null==(e=document.querySelector(".grecaptcha-badge"))||e.remove();let t=document.getElementById("recaptchaContainer");t&&(t.innerHTML=""),window.___grecaptcha_cfg&&(window.___grecaptcha_cfg.clients={}),window.grecaptcha&&t&&window.grecaptcha.render("recaptchaContainer",{sitekey:this.siteKey,callback:e=>{this.captchaResponse=e}})}},loadRecaptchaV3Script(){if("recaptcha_v3"===this.reCaptchaVersion){var e=document.createElement("script");e.src=`https://www.google.com/recaptcha/api.js?render=${this.siteKey}`,document.head.appendChild(e)}},validate(){return this.isValid=!(!this.siteKey||!this.secretKey),this.isValid}},mounted(){this.$setTitle("reCAPTCHA Settings");var e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js",document.head.appendChild(e),this.fetchSettings()},beforeUnmount(){var e;null==(e=document.querySelector(".grecaptcha-badge"))||e.remove()}},[["render",function(e,t,i,a,n,s){const o=Sk,r=BL,l=oC,c=WR,d=jR,u=cE,p=AR,h=sC,f=AL,g=WB;return zd(),qd("div",_be,[tu("div",vbe,[tu("div",bbe,[tu("div",ybe,[tu("h3",null,me(e.$t("reCAPTCHA Settings")),1),tu("div",xbe,[n.hasSavedSettings?(zd(),qd("div",Sbe,[iu(o,{class:"fs_stroke_btn",onClick:s.clearSettings},{default:vr(()=>[su(me(e.$t("Clear Settings")),1)],void 0),_:1},8,["onClick"])])):ru("",!0),tu("div",null,[iu(o,{size:"default",type:"success",class:"fs_save_settings_btn",onClick:t[0]||(t[0]=e=>s.saveSettings()),disabled:!n.isValid},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled"])])])]),t[8]||(t[8]=tu("div",{class:"fs_box_actions"},null,-1))]),n.fetching?(zd(),qd("div",Rbe,[iu(f,{rows:5,animated:""})])):br((zd(),qd("div",wbe,[tu("div",Cbe,[tu("div",Ebe,["fluent_auth"==e.appVars.auth_provider?(zd(),qd("p",kbe,me(e.$t("Signin and Registration forms are handled by the FluentAuth plugin. The settings below only apply to the Ticket Creation Form.")),1)):ru("",!0),iu(h,{"label-position":"top","label-width":"140px"},{default:vr(()=>[iu(l,{class:"fs_form_item",label:e.$t("Enable reCAPTCHA")},{default:vr(()=>[iu(r,{modelValue:n.reCaptchaEnabled,"onUpdate:modelValue":t[1]||(t[1]=e=>n.reCaptchaEnabled=e),"active-text":e.$t("Enable reCAPTCHA for enhanced security"),onChange:s.loadRecaptchaResponse},null,8,["modelValue","active-text","onChange"])],void 0),_:1},8,["label"]),t[9]||(t[9]=tu("hr",{class:"fs_divider"},null,-1)),iu(l,{class:"fs_form_item fs_recaptcha_version",label:e.$t("reCAPTCHA Version")},{default:vr(()=>[iu(d,{onChange:s.loadRecaptchaResponse,modelValue:n.reCaptchaVersion,"onUpdate:modelValue":t[2]||(t[2]=e=>n.reCaptchaVersion=e)},{default:vr(()=>[iu(c,{value:"recaptcha_v2"},{default:vr(()=>[su(me(e.$t("Version 2")),1)],void 0),_:1}),iu(c,{value:"recaptcha_v3"},{default:vr(()=>[su(me(e.$t("Version 3")),1)],void 0),_:1})],void 0),_:1},8,["onChange","modelValue"])],void 0),_:1},8,["label"]),iu(l,{class:"fs_form_item",label:e.$t("Site Key")},{default:vr(()=>[iu(u,{class:"fs_text_input",modelValue:n.siteKey,"onUpdate:modelValue":t[3]||(t[3]=e=>n.siteKey=e),onChange:s.loadRecaptchaResponse,placeholder:e.$t("Enter your reCAPTCHA site key")},null,8,["modelValue","onChange","placeholder"])],void 0),_:1},8,["label"]),iu(l,{class:"fs_form_item",label:e.$t("Secret Key")},{default:vr(()=>[iu(u,{class:"fs_text_input",type:"password",modelValue:n.secretKey,"onUpdate:modelValue":t[4]||(t[4]=e=>n.secretKey=e),onChange:s.loadRecaptchaResponse,placeholder:e.$t("Enter your reCAPTCHA secret key")},null,8,["modelValue","onChange","placeholder"])],void 0),_:1},8,["label"]),iu(l,{class:"fs_form_item",label:e.$t("Use reCAPTCHA on")},{default:vr(()=>[tu("div",Tbe,["fluent_auth"!=e.appVars.auth_provider?(zd(),Kd(p,{key:0,modelValue:n.formContainingReCaptcha.login_form,"onUpdate:modelValue":t[5]||(t[5]=e=>n.formContainingReCaptcha.login_form=e),onChange:s.loadRecaptchaResponse,"true-value":"yes","false-value":"no"},{default:vr(()=>[su(me(e.$t("Login Form")),1)],void 0),_:1},8,["modelValue","onChange"])):ru("",!0),"fluent_auth"!=e.appVars.auth_provider?(zd(),Kd(p,{key:1,modelValue:n.formContainingReCaptcha.signup_form,"onUpdate:modelValue":t[6]||(t[6]=e=>n.formContainingReCaptcha.signup_form=e),onChange:s.loadRecaptchaResponse,"true-value":"yes","false-value":"no"},{default:vr(()=>[su(me(e.$t("Signup Form")),1)],void 0),_:1},8,["modelValue","onChange"])):ru("",!0),iu(p,{modelValue:n.formContainingReCaptcha.ticket_form,"onUpdate:modelValue":t[7]||(t[7]=e=>n.formContainingReCaptcha.ticket_form=e),onChange:s.loadRecaptchaResponse,"true-value":"yes","false-value":"no"},{default:vr(()=>[su(me(e.$t("Ticket Creation Form")),1)],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1},8,["label"]),"recaptcha_v2"===n.reCaptchaVersion&&n.siteKey?(zd(),Kd(l,{key:0,class:"fs_form_item",label:e.$t("Validate Captcha")},{default:vr(()=>[tu("div",{class:"g-recaptcha",id:"recaptchaContainer","data-sitekey":n.siteKey},null,8,Abe)],void 0),_:1},8,["label"])):ru("",!0)],void 0),_:1})])])])),[[g,n.loading]])])])}]]),Dbe={class:"fs_box_wrapper"},Obe={class:"fs_box_header"},Mbe={class:"fs_box_head"},Nbe={key:0,class:"fs_save_settings_container"},Lbe={key:0,class:"fs_box_body fs_business_settings_wrapper"},Pbe={key:1,class:"fs_box_body fs_skeleton_loader"};const Fbe=lH({name:"TicketFormConfig",components:{FormBuilder:rle,NarrowPromo:Fne},data:()=>({settings:{},fetching:!1,settings_fields:{},saving:!1,settings_key:"ticket_form_settings"}),computed:{has_pro(){var e;return(null==(e=this.appVars)?void 0:e.has_pro)||!1}},watch:{"settings.disabled_fields"(){this.settings.disabled_fields&&this.settings.disabled_fields.includes("product_services")&&(this.settings.product_required_field="no")}},methods:{fetchSettings(){this.fetching=!0,this.$get("pro/form-settings",{with:["fields"]}).then(e=>{this.settings=e.settings,this.settings_fields=e.settings_fields}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0,this.$post("pro/form-settings",{settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){this.has_pro&&this.fetchSettings(),this.$setTitle(this.$t("Ticket Form Config"))}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("form-builder"),l=AL,c=Jl("NarrowPromo"),d=WB;return zd(),qd("div",Dbe,[tu("div",Obe,[tu("div",Mbe,[tu("h3",null,me(e.$t("Ticket Form Settings")),1),s.has_pro?(zd(),qd("div",Nbe,[br((zd(),Kd(o,{onClick:t[0]||(t[0]=e=>s.saveSettings()),disabled:n.saving,class:"fs_save_settings_btn",type:"success"},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled"])),[[d,n.saving]])])):ru("",!0)]),t[1]||(t[1]=tu("div",{class:"fs_box_actions"},null,-1))]),s.has_pro?(zd(),qd(Fd,{key:0},[n.fetching?(zd(),qd("div",Pbe,[iu(l,{rows:5,animated:""})])):(zd(),qd("div",Lbe,[iu(r,{fields:n.settings_fields,"form-data":n.settings},null,8,["fields","form-data"])]))],64)):(zd(),Kd(c,{key:1,heading:e.$t("ticket_form_notice_for_pro"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_ticket_form_customization"},null,8,["heading","description","button-text"]))])}]]),Bbe={key:0},$be={class:"fs_custom_field_option_lists"},Vbe={style:{"margin-bottom":"20px"},class:"fs_table fs_stripe"},Ube={class:"fs_flex fs_action_td"};const Hbe={class:"fs_products"},zbe={class:"fs_box_wrapper fs_custom_fields_wrapper"},Ybe={class:"fs_box_header"},Gbe={class:"fs_box_head"},Wbe={key:0,class:"fs_table_container"},jbe={class:"fs_custom_table_field_header fs_table_header"},qbe={class:"fs_custom_field_actions"},Kbe={class:"fs_table_wrapper"},Xbe={class:"fs_custom_field_table_header_row"},Zbe={class:"fs_field_label_header"},Qbe={class:"fs_field_slug_header"},Jbe={class:"fs_field_type_header"},eye={class:"fs_field_actions_header"},tye={class:"fs_custom_field_column"},iye={class:"fs_field_label"},aye={class:"fs_field_slug"},nye={class:"fs_field_type"},sye={class:"fs_field_actions"},oye={class:"fs-table-action-cell"},rye={class:"fs_action_button_wrapper"},lye={key:0,class:"fs_pagination_wrapper"},cye={class:"fs_pagination_left"},dye={class:"fs_pagination_right"},uye={key:1,class:"fs_box_body fs_skeleton_loader"},pye={class:"fs_dialog_footer"},hye={class:"fs_dialog_footer"};const fye=lH({name:"CustomFields",components:{CustomFieldForm:lH({name:"FieldForm",props:["field_types","item","form_type","fields"],data:()=>({optionInputVisible:!1,optionInputValue:""}),computed:{keyedFields(){const e=[];yX(this.appVars.support_products,t=>{e.push(t.title)});const t={ticket_title:{label:"Ticket Title",slug:"ticket_title",type:"text"},ticket_content:{label:"Ticket Content",slug:"ticket_content",type:"text"},ticket_client_priority:{label:"Ticket Client Priority",slug:"ticket_client_priority",type:"select-one",options:Object.keys(this.appVars.client_priorities)},ticket_product_id:{label:"Selected Product or Service",slug:"ticket_product_id",type:"select-one",options:e}};return yX(this.fields,e=>{t[e.slug]=e}),t}},methods:{maybeSetSlug(){if("new"!=this.form_type)return!1;const e=this.item.label.toLowerCase().replace(/đ/gi,"d").replace(/\s*$/g,"").replace(/\s+/g,"_").substring(0,25);this.item.slug=e},changeFieldType(){const e=this.item.field_key,t=this.field_types[e];this.item.type=t.type,this.item.label="",this.hasOptions(t.type)?this.item.options||(this.item.options=["Value Option 1"]):delete this.item.options},hasOptions:e=>-1!==["select-one","select-multi","radio","checkbox"].indexOf(e),showOptionInput(){this.optionInputVisible=!0,this.$nextTick(()=>{this.$refs.saveTagInput.focus()})},handleOptionInputConfirm(){const e=this.optionInputValue;e&&this.item.options.push(e),this.optionInputVisible=!1,this.optionInputValue=""},removeOptionItem(e){this.item.options.splice(e,1)},initConditions(e){e.conditions&&e.conditions.length||(e.conditions=[{item_key:"",operator:"=",value:""}]),e.match_type||(e.match_type="all")},addCondition(e){this.item.conditions.splice(e+1,0,{item_key:"",operator:"=",value:""})},removeCondition(e){this.item.conditions.splice(e,1)}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=oC,c=cE,d=hI,u=pI,p=Jl("Delete"),h=KS,f=Sk,g=AR,m=WR,_=jR,v=sC;return zd(),Kd(v,{class:"fs_custom_field_form","label-position":"top",data:i.item},{default:vr(()=>[iu(l,{label:e.$t("Field Type"),class:"fs_form_item"},{default:vr(()=>[iu(r,{onChange:t[0]||(t[0]=e=>s.changeFieldType()),placeholder:e.$t("Select Field Type"),modelValue:i.item.field_key,"onUpdate:modelValue":t[1]||(t[1]=e=>i.item.field_key=e),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.field_types,(e,t)=>(zd(),Kd(o,{key:t,label:e.label,value:t},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),i.item.type?(zd(),qd(Fd,{key:0},[iu(u,{gutter:30},{default:vr(()=>[iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{label:e.$t("Public Label"),class:"fs_form_item"},{default:vr(()=>[iu(c,{onKeyup:t[2]||(t[2]=e=>s.maybeSetSlug()),placeholder:e.$t("Custom Field Public Label"),modelValue:i.item.label,"onUpdate:modelValue":t[3]||(t[3]=e=>i.item.label=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{label:e.$t("Admin Label (Optional)"),class:"fs_form_item"},{default:vr(()=>[iu(c,{onKeyup:t[4]||(t[4]=e=>s.maybeSetSlug()),placeholder:e.$t("Custom Field Admin Label"),modelValue:i.item.admin_label,"onUpdate:modelValue":t[5]||(t[5]=e=>i.item.admin_label=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),iu(u,{gutter:30},{default:vr(()=>[iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{label:e.$t("Slug (Optional)"),class:"fs_form_item"},{default:vr(()=>[iu(c,{maxlength:"20",placeholder:e.$t("Custom Field Slug"),disabled:"update"==i.form_type,modelValue:i.item.slug,"onUpdate:modelValue":t[6]||(t[6]=e=>i.item.slug=e),class:"fs_text_input"},oc({_:2},["new"==i.form_type?{name:"prepend",fn:vr(()=>[t[15]||(t[15]=su("cf_",-1))]),key:"0"}:void 0]),1032,["placeholder","disabled","modelValue"]),"new"==i.form_type?(zd(),qd("p",Bbe,me(e.$t("You can not change the slug once save a custom field")),1)):ru("",!0)],void 0),_:1},8,["label"])],void 0),_:1}),iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{label:e.$t("Placeholder"),class:"fs_form_item"},{default:vr(()=>[iu(c,{placeholder:e.$t("Field Placeholder"),modelValue:i.item.placeholder,"onUpdate:modelValue":t[7]||(t[7]=e=>i.item.placeholder=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),s.hasOptions(i.item.type)?(zd(),Kd(l,{key:0,label:e.$t("Field Value Options"),class:"fs_form_item"},{default:vr(()=>[tu("ul",$be,[(zd(!0),qd(Fd,null,sc(i.item.options,(t,a)=>(zd(),qd("li",{key:a},[iu(c,{placeholder:e.$t("Option Value"),modelValue:i.item.options[a],"onUpdate:modelValue":e=>i.item.options[a]=e,type:"text",class:"fs_text_input"},{suffix:vr(()=>[i.item.options.length>1?(zd(),Kd(h,{key:0,onClick:e=>s.removeOptionItem(a),class:"fs_clickable el-icon-close el-input__icon"},{default:vr(()=>[iu(p)],void 0),_:1},8,["onClick"])):ru("",!0)]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])]))),128))]),n.optionInputVisible?(zd(),Kd(c,{key:0,class:"input-new-tag fs_text_input",modelValue:n.optionInputValue,"onUpdate:modelValue":t[8]||(t[8]=e=>n.optionInputValue=e),ref:"saveTagInput",placeholder:e.$t("type and press enter"),onKeyup:Ih(s.handleOptionInputConfirm,["enter"]),onBlur:s.handleOptionInputConfirm},null,8,["modelValue","placeholder","onKeyup","onBlur"])):(zd(),Kd(f,{key:1,class:"button-new-tag fs_filled_btn fs_ml_10",onClick:s.showOptionInput},{default:vr(()=>[su(" + "+me(e.$t("New Option")),1)],void 0),_:1},8,["onClick"]))],void 0),_:1},8,["label"])):ru("",!0),iu(u,{gutter:30},{default:vr(()=>[iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{class:"fs_form_item"},{default:vr(()=>[iu(g,{"true-label":"yes","false-label":"no",modelValue:i.item.admin_only,"onUpdate:modelValue":t[9]||(t[9]=e=>i.item.admin_only=e)},{default:vr(()=>[su(me(e.$t("This is an agent only field")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{class:"fs_form_item"},{default:vr(()=>[iu(g,{onChange:t[10]||(t[10]=e=>s.initConditions(i.item)),modelValue:i.item.has_logics,"onUpdate:modelValue":t[11]||(t[11]=e=>i.item.has_logics=e),"true-label":"yes","false-label":"no"},{default:vr(()=>[su(me(e.$t("Enable Conditional Logics")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),iu(d,{sm:12,xs:24},{default:vr(()=>[iu(l,{class:"fs_form_item"},{default:vr(()=>[iu(g,{onChange:t[12]||(t[12]=e=>s.initConditions(i.item)),modelValue:i.item.required,"onUpdate:modelValue":t[13]||(t[13]=e=>i.item.required=e),"true-label":"yes","false-label":"no"},{default:vr(()=>[su(me(e.$t("Required")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1})],void 0),_:1}),"yes"==i.item.has_logics&&i.item.conditions?(zd(),qd(Fd,{key:1},[tu("table",Vbe,[tu("thead",null,[tu("tr",null,[tu("th",null,me(e.$t("Field")),1),tu("th",null,me(e.$t("Operator")),1),tu("th",null,me(e.$t("Match Value")),1),t[16]||(t[16]=tu("th",null,null,-1))])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(i.item.conditions,(t,a)=>(zd(),qd("tr",{key:a},[tu("td",null,[iu(r,{filterable:"",modelValue:t.item_key,"onUpdate:modelValue":e=>t.item_key=e,placeholder:e.$t("Select Field"),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.keyedFields,e=>(zd(),Kd(o,{key:e.slug,value:e.slug,disabled:e.slug==i.item.slug,label:e.admin_label||e.label},null,8,["value","disabled","label"]))),128))],void 0),_:1},8,["modelValue","onUpdate:modelValue","placeholder"])]),tu("td",null,[t.item_key&&s.keyedFields[t.item_key]?(zd(),Kd(r,{key:0,filterable:"",modelValue:t.operator,"onUpdate:modelValue":e=>t.operator=e,placeholder:e.$t("Select Field"),class:"fs_select_field"},{default:vr(()=>[iu(o,{label:e.$t("Equal"),value:"="},null,8,["label"]),iu(o,{label:e.$t("Not Equal"),value:"!="},null,8,["label"]),-1!==["number","date"].indexOf(s.keyedFields[t.item_key].type)?(zd(),qd(Fd,{key:0},[iu(o,{label:e.$t("Less than"),value:"lt"},null,8,["label"]),iu(o,{label:e.$t("Greater Than"),value:"gt"},null,8,["label"])],64)):s.keyedFields[t.item_key].options?ru("",!0):(zd(),qd(Fd,{key:1},[iu(o,{label:e.$t("Contains"),value:"contains"},null,8,["label"]),iu(o,{label:e.$t("Not Contains"),value:"not_contains"},null,8,["label"])],64))],void 0),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):ru("",!0)]),tu("td",null,[t.operator&&t.item_key&&s.keyedFields[t.item_key]?(zd(),qd(Fd,{key:0},[s.keyedFields[t.item_key].options?(zd(),Kd(r,{key:0,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,placeholder:e.$t("Select Value"),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.keyedFields[t.item_key].options,e=>(zd(),Kd(o,{key:e,label:e,value:e},null,8,["label","value"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(zd(),Kd(c,{key:1,type:"number"==s.keyedFields[t.item_key].type?"number":"text",modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,placeholder:e.$t("Type Compare Value"),class:"fs_text_input"},null,8,["type","modelValue","onUpdate:modelValue","placeholder"]))],64)):ru("",!0)]),tu("td",Ube,[iu(f,{onClick:e=>s.addCondition(a),type:"success",icon:"Plus",class:"fs_outline_btn"},null,8,["onClick"]),iu(f,{onClick:e=>s.removeCondition(a),disabled:1==i.item.conditions.length,icon:"Delete",class:"fs_outline_btn"},null,8,["onClick","disabled"])])]))),128))])]),iu(l,{label:e.$t("Condition Match Type")},{default:vr(()=>[iu(_,{modelValue:i.item.match_type,"onUpdate:modelValue":t[14]||(t[14]=e=>i.item.match_type=e)},{default:vr(()=>[iu(m,{value:"all"},{default:vr(()=>[su(me(e.$t("Match all conditions")),1)],void 0),_:1}),iu(m,{value:"any"},{default:vr(()=>[su(me(e.$t("Match any conditions")),1)],void 0),_:1})],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"])],64)):ru("",!0)],64)):ru("",!0)],void 0),_:1},8,["data"])}]]),TableMoreActions:Cge,Pagination:Pq,TableEmptyStateImage:kge,NarrowPromo:Fne,draggable:rH},data:()=>({fields:[],loading:!1,new_item:{},field_types:{},addFieldVisible:!1,updateFieldVisible:!1,update_field:{},pagination:{current_page:1,per_page:10,total:0}}),created(){this.$setTitle(this.$t("Custom Ticket Fields")),this.has_pro&&this.fetchFields()},methods:{fetchFields(){this.loading=!0,this.$get("ticket-custom-fields",{with:["field_types"],per_page:this.pagination.per_page,page:this.pagination.current_page}).then(e=>{this.fields=e.fields,this.field_types=e.field_types,e.pagination&&(this.pagination=e.pagination),this.loading=!1}).catch(e=>{this.$handleError(e),this.loading=!1})},saveFields(){this.loading=!0,this.$post("ticket-custom-fields",{fields:JSON.stringify(this.fields)}).then(e=>{this.fields=e.fields,this.$notify({type:"success",message:e.message||this.$t("Fields order updated successfully"),position:"bottom-right"}),this.loading=!1}).catch(e=>{this.$handleError(e),this.loading=!1})},createField(){if(!this.validateField(this.new_item))return!1;this.fields.push(this.new_item),this.addFieldVisible=!1,this.new_item={},this.saveFields()},validateField(e){return e.label?!("options"in e)||(!(!Array.isArray(e.options)||0===e.options.length||e.options.some(e=>""===e.trim()))||(this.$notify({type:"error",message:this.$t("Please provide valid field option values"),position:"bottom-right"}),!1)):(this.$notify({type:"error",message:this.$t("Please Provide label"),position:"bottom-right"}),!1)},updateFieldModal(e){this.update_field=this.fields[e],this.updateFieldVisible=!0},updateField(){if(!this.validateField(this.update_field))return!1;this.updateFieldVisible=!1,this.update_field={},this.saveFields()},deleteField(e){this.fields.splice(e,1),this.saveFields()},movePosition(e,t){let i=e-1;"down"===t&&(i=e+1);const a=[...this.fields],n=a[e];a.splice(e,1),a.splice(i,0,n),this.fields=a,this.saveFields()}}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("Lock"),l=KS,c=Jl("Connection"),d=Jl("TableMoreActions"),u=Jl("draggable"),p=Jl("pagination"),h=AL,f=Jl("NarrowPromo"),g=Jl("custom-field-form"),m=dM;return zd(),qd("div",Hbe,[tu("div",zbe,[tu("div",Ybe,[tu("div",Gbe,[tu("h3",null,me(e.$t("Custom Ticket Fields")),1)])]),e.has_pro?(zd(),qd(Fd,{key:0},[n.loading?(zd(),qd("div",uye,[iu(h,{class:"fs_box_wrapper",rows:5,animated:""})])):(zd(),qd("div",Wbe,[tu("div",jbe,[tu("div",qbe,[e.has_pro?(zd(),Kd(o,{key:0,onClick:t[0]||(t[0]=e=>n.addFieldVisible=!0),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add New Field")),1)],void 0),_:1})):ru("",!0)])]),tu("div",Kbe,[tu("div",Xbe,[tu("div",Zbe,me(e.$t("Label")),1),tu("div",Qbe,me(e.$t("Slug")),1),tu("div",Jbe,me(e.$t("Type")),1),tu("div",eye,me(e.$t("Actions")),1)]),iu(u,{modelValue:n.fields,"onUpdate:modelValue":t[1]||(t[1]=e=>n.fields=e),"ghost-class":"ghost","item-key":"slug",onEnd:s.saveFields,handle:".fs_custom_drag_svg"},{item:vr(({element:i,index:a})=>[(zd(),qd("div",{key:i.slug,class:"fs_custom_field_row"},[t[10]||(t[10]=tu("span",{class:"fs_custom_drag_svg"},[tu("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M4 0.5H20C21.933 0.5 23.5 2.067 23.5 4V20C23.5 21.933 21.933 23.5 20 23.5H4C2.067 23.5 0.5 21.933 0.5 20V4L0.504883 3.82031C0.595411 2.03035 2.03035 0.595411 3.82031 0.504883L4 0.5Z",fill:"var(--fs-bg-primary, white)"}),tu("path",{d:"M4 0.5H20C21.933 0.5 23.5 2.067 23.5 4V20C23.5 21.933 21.933 23.5 20 23.5H4C2.067 23.5 0.5 21.933 0.5 20V4L0.504883 3.82031C0.595411 2.03035 2.03035 0.595411 3.82031 0.504883L4 0.5Z",stroke:"var(--fs-border-default, #E1E4EA)"}),tu("path",{d:"M9.375 8.25C9.99632 8.25 10.5 7.74632 10.5 7.125C10.5 6.50368 9.99632 6 9.375 6C8.75368 6 8.25 6.50368 8.25 7.125C8.25 7.74632 8.75368 8.25 9.375 8.25ZM9.375 13.125C9.99632 13.125 10.5 12.6213 10.5 12C10.5 11.3787 9.99632 10.875 9.375 10.875C8.75368 10.875 8.25 11.3787 8.25 12C8.25 12.6213 8.75368 13.125 9.375 13.125ZM10.5 16.875C10.5 17.4963 9.99632 18 9.375 18C8.75368 18 8.25 17.4963 8.25 16.875C8.25 16.2537 8.75368 15.75 9.375 15.75C9.99632 15.75 10.5 16.2537 10.5 16.875ZM14.625 8.25C15.2463 8.25 15.75 7.74632 15.75 7.125C15.75 6.50368 15.2463 6 14.625 6C14.0037 6 13.5 6.50368 13.5 7.125C13.5 7.74632 14.0037 8.25 14.625 8.25ZM15.75 12C15.75 12.6213 15.2463 13.125 14.625 13.125C14.0037 13.125 13.5 12.6213 13.5 12C13.5 11.3787 14.0037 10.875 14.625 10.875C15.2463 10.875 15.75 11.3787 15.75 12ZM14.625 18C15.2463 18 15.75 17.4963 15.75 16.875C15.75 16.2537 15.2463 15.75 14.625 15.75C14.0037 15.75 13.5 16.2537 13.5 16.875C13.5 17.4963 14.0037 18 14.625 18Z",fill:"#525866"})])],-1)),tu("div",tye,[tu("div",iye,[su(me(i.label||i.admin_label)+" ",1),"yes"==i.admin_only?(zd(),Kd(l,{key:0,title:e.$t("Agent Only Field")},{default:vr(()=>[iu(r)],void 0),_:1},8,["title"])):ru("",!0),"yes"==i.has_logics?(zd(),Kd(l,{key:1,title:e.$t("Conditional Field")},{default:vr(()=>[iu(c)],void 0),_:1},8,["title"])):ru("",!0)]),tu("div",aye,me(i.slug),1),tu("div",nye,me(i.type),1),tu("div",sye,[tu("div",oye,[tu("div",rye,[iu(o,{class:"fs_action_button",onClick:e=>s.updateFieldModal(a),text:"",icon:"EditPen"},null,8,["onClick"])]),iu(d,{scope:{row:i,$index:a},fetching:n.loading,onDelete:e=>s.deleteField(a),"delete-warning":e.$t("Delete custom field")},null,8,["scope","fetching","onDelete","delete-warning"])])])])]))]),_:1},8,["modelValue","onEnd"])]),n.fields.length?(zd(),qd("div",lye,[tu("span",cye,[tu("p",null," Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(p,{onFetch:t[2]||(t[2]=e=>s.fetchFields()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",dye,[iu(p,{onFetch:t[3]||(t[3]=e=>s.fetchFields()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)]))],64)):(zd(),Kd(f,{key:1,heading:e.$t("tk_data_collect_using_customfield"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_custom_fields"},null,8,["heading","description","button-text"]))]),iu(m,{title:e.$t("Add New Custom Field"),modelValue:n.addFieldVisible,"onUpdate:modelValue":t[6]||(t[6]=e=>n.addFieldVisible=e),"append-to-body":!0,width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",pye,[iu(o,{class:"fs_outline_btn",onClick:t[4]||(t[4]=()=>n.addFieldVisible=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(o,{class:"fs_filled_btn",onClick:t[5]||(t[5]=e=>s.createField()),type:"success"},{default:vr(()=>[su(me(e.$t("Add")),1)],void 0),_:1})])]),default:vr(()=>[iu(g,{form_type:"new",field_types:n.field_types,item:n.new_item,fields:n.fields},null,8,["field_types","item","fields"])],void 0),_:1},8,["title","modelValue"]),iu(m,{title:e.$t("Update Custom Field"),modelValue:n.updateFieldVisible,"onUpdate:modelValue":t[9]||(t[9]=e=>n.updateFieldVisible=e),"append-to-body":!0,width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",hye,[iu(o,{class:"fs_outline_btn",onClick:t[7]||(t[7]=()=>n.updateFieldVisible=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(o,{class:"fs_filled_btn",onClick:t[8]||(t[8]=e=>s.updateField()),type:"success"},{default:vr(()=>[su(me(e.$t("Update Field")),1)],void 0),_:1})])]),default:vr(()=>[n.updateFieldVisible?(zd(),Kd(g,{key:0,fields:n.fields,form_type:"update",field_types:n.field_types,item:n.update_field},null,8,["fields","field_types","item"])):ru("",!0)],void 0),_:1},8,["title","modelValue"])])}]]),gye={class:"fs_license_manager"},mye={class:"fs_box_wrapper"},_ye={class:"fs_box_header"},vye={class:"fs_box_head"},bye={class:"fs_box_actions fs_ticket_orders"},yye={key:0,class:"fs_box_body"},xye={class:"fs_license_alert_body"},Sye=["textContent"],wye=["textContent"],Cye=["href","textContent"],Eye={key:1,class:"fs_license_card"},kye={class:"fs_license_card_head"},Tye={class:"fs_license_card_title"},Aye=["textContent"],Rye=["textContent"],Iye=["textContent"],Dye={key:0,class:"fs_license_meta"},Oye=["textContent"],Mye={class:"fs_meta_value"},Nye=["textContent"],Lye=["textContent"],Pye=["textContent"],Fye={class:"fs_license_card_footer"},Bye={class:"fs_license_checked"},$ye={key:0},Vye=["href"],Uye=["href"],Hye={class:"fs_license_card_actions"},zye=["href"],Yye={key:2,class:"fs_license_form_wrapper"},Gye={class:"fs_license_form_content"},Wye={class:"fs_license_form_header"},jye={class:"fs_license_form_title"},qye={key:0,class:"fs_license_form_description"},Kye={class:"fs_license_input_wrapper"},Xye={key:0,class:"fs_license_error_message"},Zye={key:1,class:"fs_license_hint_text"},Qye={key:0,class:"fs_license_purchase_text"},Jye=["href"],exe={key:3,class:"fs_license_switch"},txe={key:1,class:"fs_box_body fs_skeleton_loader"},ixe={class:"fs_dialog_warning_content"},axe={class:"fs_popconfirm_actions"};const nxe=lH({name:"LicenseManagement",data:()=>({fetching:!1,licenseData:{},verifying:!1,licenseKey:"",showNewLicenseInput:!1,showLicenseKeyError:!1,deactivateDialogVisible:!1}),computed:{status(){return this.licenseData.status||"unregistered"},isExpired(){if("expired"===this.status||this.licenseData.is_expired)return!0;const e=this.licenseData.days_remaining;return!this.licenseData.is_lifetime&&!this.inGracePeriod&&null!=e&&e<0},inGracePeriod(){return!!this.licenseData.in_grace_period},showCard(){return-1!==["valid","expired","disabled"].indexOf(this.status)},showForm(){return!this.showCard||this.showNewLicenseInput},renewUrl(){return this.licenseData.renew_url||this.licenseData.purchase_url},subscriptionActive(){return-1!==["active","trialing","trial"].indexOf(this.licenseData.subscription_status)},renewAction(){return this.subscriptionActive?null:{url:this.renewUrl,label:this.$t("Renew License")}},supportAction(){return this.licenseData.support_url?{url:this.licenseData.support_url,label:this.$t("Contact Support")}:null},expiringSoon(){const e=this.licenseData.days_remaining;return null!=e&&e>=0&&e<=30},subscriptionNeedsAttention(){const e=this.licenseData.subscription_status;return!!e&&-1!==["cancelled","canceled","paused","on_hold","pending","failing","expired"].indexOf(e)},statusMeta(){if(this.inGracePeriod)return{label:this.$t("Grace Period"),type:"warning"};if(this.isExpired)return{label:this.$t("Expired"),type:"danger"};return{valid:{label:this.$t("Active"),type:"success"},expired:{label:this.$t("Expired"),type:"danger"},disabled:{label:this.$t("Disabled"),type:"danger"},invalid:{label:this.$t("Invalid"),type:"danger"},error:{label:this.$t("Error"),type:"danger"},unregistered:{label:this.$t("Not Activated"),type:"neutral"}}[this.status]||{label:this.humanize(this.status),type:"neutral"}},subscriptionMeta(){const e=this.licenseData.subscription_status;if(!e)return null;return{label:this.humanize(e),type:{active:"success",trialing:"success",trial:"success",paused:"warning",on_hold:"warning",pending:"warning",failing:"danger",cancelled:"danger",canceled:"danger",expired:"danger"}[e]||"neutral"}},expiryRow(){if(this.licenseData.is_lifetime)return{label:this.$t("Expires"),value:this.$t("Lifetime"),badge:"success"};if(!this.licenseData.expires_human)return null;const e=this.licenseData.days_remaining;let t="";return null!=e&&(t=-1===e?this.$t("expired 1 day ago"):e<0?this.transWith("expired %d days ago",Math.abs(e)):0===e?this.$t("expires today"):1===e?this.$t("in 1 day"):this.transWith("in %d days",e)),{label:this.$t("Expires"),value:this.licenseData.expires_human,badge:null!=e&&e<0?"danger":"",hint:t}},graceRow(){return this.inGracePeriod?{label:this.$t("Updates & Support"),value:this.$t("Ending soon"),badge:"warning"}:null},licenseRows(){const e=[];return this.expiryRow&&e.push(this.expiryRow),this.graceRow&&e.push(this.graceRow),this.subscriptionMeta&&e.push({label:this.$t("Subscription"),value:this.subscriptionMeta.label,badge:this.subscriptionMeta.type}),this.licenseData.license_key_masked&&e.push({label:this.$t("License Key"),value:this.licenseData.license_key_masked}),(this.licenseData.customer_name||this.licenseData.customer_email_masked)&&e.push({label:this.$t("Licensed To"),value:this.licenseData.customer_name||this.licenseData.customer_email_masked,hint:this.licenseData.customer_name?this.licenseData.customer_email_masked:""}),e},alert(){const e=this.licenseData.error_message||this.licenseData.message;return this.inGracePeriod?{type:"warning",title:this.licenseData.expires_human?this.transWith("Your license expired on %s",this.licenseData.expires_human):this.$t("Your license has expired."),description:this.$t("You are in a grace period, so everything keeps working for now. Updates and support will end soon - renew your license to keep them."),action:this.renewAction}:this.isExpired?{type:"danger",title:this.licenseData.expires_human?this.transWith("Your license expired on %s",this.licenseData.expires_human):this.$t("Looks like your license has expired."),description:this.$t("Renew your license to keep receiving plugin updates, new features and support."),action:this.renewAction}:"disabled"===this.status?{type:"danger",title:this.$t("This license has been disabled."),description:e||this.$t("Please contact our support team for assistance."),action:this.supportAction}:"invalid"===this.status||"error"===this.status?{type:"danger",title:this.$t("We could not verify this license."),description:e||"",action:this.supportAction}:"valid"===this.status&&this.subscriptionNeedsAttention?{type:"warning",title:this.transWith("Your subscription is not active (%s)",this.subscriptionMeta.label),description:this.licenseData.expires_human?this.transWith("Your license will not renew on its own. It expires on %s.",this.licenseData.expires_human):"",action:this.renewAction}:"valid"===this.status&&this.expiringSoon&&!this.subscriptionActive?{type:"warning",title:0===this.licenseData.days_remaining?this.$t("Your license expires today."):this.transWith("Your license expires in %d days",this.licenseData.days_remaining),action:this.renewAction}:null}},methods:{transWith(e,...t){let i=this.$t(e);return t.forEach(e=>{i=i.replace(/%[ds]/,e)}),i},humanize(e){if(!e)return"";const t=String(e).replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)},async fetchLicense(){this.showLicenseKeyError=!1,this.fetching=!0,await this.$get("pro/license",{verify:!0}).then(e=>{this.licenseData=e}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},async verifyLicense(){if(!this.licenseKey)return this.showLicenseKeyError=!0,void this.$notify({type:"error",message:this.$t("Please provide a license key"),position:"bottom-right"});this.showLicenseKeyError=!1,this.verifying=!0,await this.$post("pro/license",{license_key:this.licenseKey}).then(e=>{this.licenseData=e.license_data,this.licenseKey="",this.showNewLicenseInput=!1,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.verifying=!1})},deactivateLicense(){this.deactivateDialogVisible=!0},confirmDeactivate(){this.verifying=!0,this.$post("pro/remove-license").then(e=>{this.licenseData=e.license_data||{},this.showNewLicenseInput=!1,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.verifying=!1,this.deactivateDialogVisible=!1})}},mounted(){this.fetchLicense(),this.$setTitle(this.$t("License Management"))}},[["render",function(e,t,i,a,n,s){const o=Sk,r=cE,l=AL,c=dM,d=WB;return zd(),qd("div",gye,[tu("div",mye,[tu("div",_ye,[tu("div",vye,[tu("h3",null,me(e.$t("License Management")),1)]),tu("div",bye,[iu(o,{text:"",icon:"Refresh",onClick:t[0]||(t[0]=e=>s.fetchLicense())})])]),n.fetching?(zd(),qd("div",txe,[iu(l,{rows:4,animated:""})])):(zd(),qd("div",yye,[br((zd(),qd("div",{class:se("fs_license_"+s.status)},[s.alert?(zd(),qd("div",{key:0,class:se(["fs_license_alert","is_"+s.alert.type])},[tu("div",xye,[tu("strong",{textContent:me(s.alert.title)},null,8,Sye),s.alert.description?(zd(),qd("p",{key:0,textContent:me(s.alert.description)},null,8,wye)):ru("",!0)]),s.alert.action?(zd(),qd("a",{key:0,href:s.alert.action.url,target:"_blank",rel:"noopener",class:"fs_license_alert_btn",textContent:me(s.alert.action.label)},null,8,Cye)):ru("",!0)],2)):ru("",!0),s.showCard?(zd(),qd("div",Eye,[tu("div",kye,[tu("div",Tye,[tu("h3",{textContent:me(n.licenseData.product_title||"Fluent Support Pro")},null,8,Aye),n.licenseData.variation_title?(zd(),qd("p",{key:0,textContent:me(n.licenseData.variation_title)},null,8,Rye)):ru("",!0)]),tu("span",{class:se(["fs_license_pill","is_"+s.statusMeta.type]),textContent:me(s.statusMeta.label)},null,10,Iye)]),s.licenseRows.length?(zd(),qd("ul",Dye,[(zd(!0),qd(Fd,null,sc(s.licenseRows,e=>(zd(),qd("li",{key:e.label},[tu("span",{class:"fs_meta_label",textContent:me(e.label)},null,8,Oye),tu("span",Mye,[e.badge?(zd(),qd("span",{key:0,class:se(["fs_license_pill is_soft","is_"+e.badge]),textContent:me(e.value)},null,10,Nye)):(zd(),qd("span",{key:1,textContent:me(e.value)},null,8,Lye)),e.hint?(zd(),qd("small",{key:2,textContent:me(e.hint)},null,8,Pye)):ru("",!0)])]))),128))])):ru("",!0),tu("div",Fye,[tu("div",Bye,[n.licenseData.last_checked_human?(zd(),qd("span",$ye,me(e.$t("Last checked"))+": "+me(n.licenseData.last_checked_human),1)):ru("",!0),tu("a",{href:"#",onClick:t[1]||(t[1]=Ah(e=>s.fetchLicense(),["prevent"]))},me(e.$t("Refresh")),1),n.licenseData.account_url?(zd(),qd("a",{key:1,href:n.licenseData.account_url,target:"_blank",rel:"noopener"},me(e.$t("Your Account")),9,Vye)):ru("",!0),n.licenseData.support_url?(zd(),qd("a",{key:2,href:n.licenseData.support_url,target:"_blank",rel:"noopener"},me(e.$t("Get Support")),9,Uye)):ru("",!0)]),tu("div",Hye,[n.licenseData.manage_url?(zd(),qd("a",{key:0,href:n.licenseData.manage_url,target:"_blank",rel:"noopener",class:"el-button el-button--small"},me(e.$t("Manage Subscription")),9,zye)):ru("",!0),iu(o,{size:"small",onClick:t[2]||(t[2]=e=>s.deactivateLicense())},{default:vr(()=>[su(me(e.$t("Deactivate")),1)],void 0),_:1})])])])):ru("",!0),s.showForm?(zd(),qd("div",Yye,[tu("div",Gye,[tu("div",Wye,[tu("h3",jye,me(s.showCard?e.$t("Activate a different license key"):e.$t("Customer Support Plugin for WordPress")),1),s.showCard?ru("",!0):(zd(),qd("p",qye,me(e.$t("Please Provide a license key of FluentSupport")),1))]),tu("div",Kye,[iu(r,{modelValue:n.licenseKey,"onUpdate:modelValue":t[4]||(t[4]=e=>n.licenseKey=e),placeholder:e.$t("License key"),class:se([{fs_license_input_error:n.showLicenseKeyError},"fs_license_input"]),onInput:t[5]||(t[5]=e=>n.showLicenseKeyError=!1),onKeyup:t[6]||(t[6]=Ih(e=>s.verifyLicense(),["enter"]))},{append:vr(()=>[iu(o,{onClick:t[3]||(t[3]=e=>s.verifyLicense()),class:"fs_license_verify_btn"},{default:vr(()=>[t[11]||(t[11]=tu("svg",{width:"17",height:"9",viewBox:"0 0 17 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M8.93775 5.25411C8.7467 6.36417 8.14642 7.36226 7.25544 8.05136C6.36445 8.74046 5.24749 9.07049 4.12507 8.9763C3.00264 8.88211 1.9563 8.37055 1.19262 7.5426C0.428933 6.71465 0.00339216 5.63048 1.87515e-06 4.50411C-0.00102824 3.37507 0.422395 2.28689 1.18626 1.45548C1.95013 0.62407 2.99862 0.11018 4.12371 0.0157691C5.2488 -0.0786414 6.36827 0.253328 7.26001 0.945811C8.15176 1.63829 8.75061 2.64069 8.93775 3.75411H16.5V5.25411H15V8.25411H13.5V5.25411H12V8.25411H10.5V5.25411H8.93775ZM4.5 7.50411C5.29565 7.50411 6.05871 7.18804 6.62132 6.62544C7.18393 6.06283 7.5 5.29976 7.5 4.50411C7.5 3.70847 7.18393 2.9454 6.62132 2.38279C6.05871 1.82019 5.29565 1.50411 4.5 1.50411C3.70435 1.50411 2.94129 1.82019 2.37868 2.38279C1.81607 2.9454 1.5 3.70847 1.5 4.50411C1.5 5.29976 1.81607 6.06283 2.37868 6.62544C2.94129 7.18804 3.70435 7.50411 4.5 7.50411V7.50411Z",fill:"#525866"})],-1)),tu("span",null,me(e.$t("Verify License")),1)],void 0),_:1})]),_:1},8,["modelValue","placeholder","class"]),n.showLicenseKeyError?(zd(),qd("p",Xye,me(e.$t("Please enter your license key.")),1)):(zd(),qd("p",Zye,me(e.$t("Please enter your license key.")),1))])]),s.showCard?ru("",!0):(zd(),qd("p",Qye,[su(me(e.$t("Don't have a license key?"))+" ",1),tu("a",{class:"fs_doc_link fs_license_purchase_link",target:"_blank",href:n.licenseData.purchase_url},me(e.$t("Purchase one here")),9,Jye)]))])):ru("",!0),s.showCard&&!s.showForm?(zd(),qd("p",exe,[su(me(e.$t("Have a new license Key?"))+" ",1),tu("a",{href:"#",class:"fs_license_purchase_link",onClick:t[7]||(t[7]=Ah(e=>n.showNewLicenseInput=!0,["prevent"]))},me(e.$t("Click here")),1)])):ru("",!0)],2)),[[d,n.verifying]])]))]),iu(c,{modelValue:n.deactivateDialogVisible,"onUpdate:modelValue":t[10]||(t[10]=e=>n.deactivateDialogVisible=e),title:e.$t("Deactivate this license?"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:vr(()=>[tu("div",axe,[iu(o,{class:"fs_outline_btn",size:"small",onClick:t[8]||(t[8]=e=>n.deactivateDialogVisible=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(o,{class:"fs_filled_btn",size:"small",loading:n.verifying,onClick:t[9]||(t[9]=e=>s.confirmDeactivate())},{default:vr(()=>[su(me(e.$t("Yes, Deactivate")),1)],void 0),_:1},8,["loading"])])]),default:vr(()=>[tu("div",ixe,[t[12]||(t[12]=tu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[tu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),tu("p",null,me(e.$t("This site will stop receiving plugin updates until a license is activated again.")),1)])],void 0),_:1},8,["modelValue","title"])])}]]),sxe={class:"fs_fluentcrm_settings"},oxe={class:"fs_box_wrapper"},rxe={class:"fs_box_header"},lxe={class:"fs_box_head"},cxe={key:0,class:"fs_save_settings_container"},dxe={class:"fs_save_full"},uxe={class:"fs_save_short"},pxe={key:0,class:"fs_box_body fs_business_settings_wrapper"},hxe={key:1,class:"fs_box_body fs_skeleton_loader"};const fxe=lH({name:"FluentCRMIntegration",components:{FormBuilder:rle,NarrowPromo:Fne},data(){return{crm_config:this.appVars.fluentcrm_config,fetching:!0,settings:{},settings_fields:{},is_installed:!1,saving:!1,installing:!1,fluentcrm_logo:""}},methods:{fetchSettings(){this.fetching=!0,this.$get("settings/fluentcrm-settings").then(e=>{if(e.is_installed){this.settings=e.settings,this.settings_fields=e.settings_fields;let t=this.settings.assigned_tags,i=this.settings.assigned_list;Array.isArray(t)?this.settings.assigned_tags=t.map(e=>isNaN(e)?e:parseInt(e)):this.settings.assigned_tags=isNaN(t)?t:parseInt(t),Array.isArray(i)?this.settings.assigned_list=i.map(e=>isNaN(e)?e:parseInt(e)):this.settings.assigned_list=isNaN(i)?i:parseInt(i),this.fluentcrm_logo=e.fluentcrm_logo,this.is_installed=!0}else this.is_installed=!1,this.fluentcrm_logo=e.fluentcrm_logo}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){if("yes"==this.settings.enabled&&!this.settings.assigned_tags.length)return this.$notify({type:"error",message:this.$t("Please select at least one FluentCRM Tag"),position:"bottom-right"}),!1;this.saving=!0,this.$post("settings",{settings_key:"_fluentcrm_intergration_settings",settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},installFluentCRM(){this.installing=!0,this.$post("settings/install-fluentcrm").then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchSettings()}).catch(e=>{this.$handleError(e)}).always(()=>{this.installing=!1})}},mounted(){this.fetchSettings(),this.$setTitle("FluentCRM Integration")}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("form-builder"),l=Jl("NarrowPromo"),c=AL,d=WB;return zd(),qd("div",sxe,[tu("div",oxe,[tu("div",rxe,[tu("div",lxe,[tu("h3",null,me(e.$t("FluentCRM Integration")),1),n.is_installed?(zd(),qd("div",cxe,[br((zd(),Kd(o,{onClick:t[0]||(t[0]=e=>s.saveSettings()),disabled:n.saving,class:"fs_save_settings_btn fs_fluentcrm_save_btn",type:"success"},{default:vr(()=>[tu("span",dxe,me(e.$t("Save Settings")),1),tu("span",uxe,me(e.$t("Save")),1)],void 0),_:1},8,["disabled"])),[[d,n.saving]])])):ru("",!0)])]),n.fetching?(zd(),qd("div",hxe,[iu(c,{rows:5,animated:""})])):(zd(),qd("div",pxe,[n.is_installed?(zd(),Kd(r,{key:0,fields:n.settings_fields,formData:n.settings},null,8,["fields","formData"])):(zd(),Kd(l,{key:1,"image-src":n.fluentcrm_logo,heading:e.$t("email_marketing_automation_newsletter_crm")},{default:vr(()=>[tu("p",null,[t[2]||(t[2]=tu("a",{target:"_blank",rel:"noopener",href:"https://fluentcrm.com"},"FluentCRM",-1)),su(" "+me(e.$t("email_marketing_automation_newsletter_crm_infos")),1)]),tu("p",null,me(e.$t("integrate_support_customers_with_fluentcrm")),1),br((zd(),Kd(o,{class:"fs_promo_btn",disabled:n.installing,onClick:t[1]||(t[1]=e=>s.installFluentCRM()),type:"success"},{default:vr(()=>[su(me(e.$t("install_fluentcrm")),1)],void 0),_:1},8,["disabled"])),[[d,n.installing]])],void 0),_:1},8,["image-src","heading"]))]))])])}]]),gxe={class:"fs_box_wrapper"},mxe={class:"fs_box_header"},_xe={class:"fs_box_head"},vxe={key:0,class:"fs_save_settings_container"},bxe={key:0,style:{padding:"20px"},class:"fs_box_body"},yxe={key:1,class:"fs_box_body fs_skeleton_loader"};const xxe=lH({name:"AutoCloseSettings",components:{FormBuilder:rle,NarrowPromo:Fne},data:()=>({settings:{},fields:{},fetching:!1,loading:!1,app_ready:!1,settings_key:"auto_close_settings"}),methods:{fetchSettings(){this.fetching=!0,this.$get("settings/auto-close",{settings_key:this.settings_key,with:["fields"]}).then(e=>{this.settings=e.settings,this.fields=e.fields,this.app_ready=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.loading=!0,this.$post("settings/auto-close",{settings_key:this.settings_key,settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}},mounted(){this.has_pro&&this.fetchSettings(),this.$setTitle(this.$t("Auto Close Settings"))}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("NarrowPromo"),l=AR,c=Jl("form-builder"),d=AL,u=WB;return zd(),qd("div",gxe,[tu("div",mxe,[tu("div",_xe,[tu("h3",null,me(e.$t("Auto Close Settings")),1),e.has_pro?(zd(),qd("div",vxe,[iu(o,{size:"default",type:"success",class:"fs_save_settings_btn",onClick:t[0]||(t[0]=e=>s.saveSettings())},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1})])):ru("",!0)]),t[2]||(t[2]=tu("div",{class:"fs_box_actions"},null,-1))]),e.has_pro?(zd(),qd(Fd,{key:1},[n.fetching?(zd(),qd("div",yxe,[iu(d,{rows:5,animated:""})])):br((zd(),qd("div",bxe,[tu("div",null,[iu(l,{modelValue:n.settings.enabled,"onUpdate:modelValue":t[1]||(t[1]=e=>n.settings.enabled=e),"true-value":"yes","false-value":"no"},{default:vr(()=>[su(me(e.$t("Enable Auto Closing Inactive Tickets")),1)],void 0),_:1},8,["modelValue"])]),n.app_ready&&"yes"==n.settings.enabled?(zd(),Kd(c,{key:0,fields:n.fields,"form-data":n.settings,label_position:"top"},null,8,["fields","form-data"])):ru("",!0)])),[[u,n.loading]])],64)):(zd(),Kd(r,{key:0,heading:e.$t("Auto Close tickets based on active days or based on tags or waiting time."),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_auto_close"},null,8,["heading","description","button-text"]))])}]]),Sxe={class:"fs_storage_oauth_settings"},wxe={key:1},Cxe=["innerHTML"],Exe={class:"fs_storage_oauth_footer"},kxe={class:"fs_storage_oauth_actions"},Txe={key:2,class:"fs_storage_oauth_error"};const Axe={class:"fs_box_wrapper"},Rxe={class:"fs_box_header"},Ixe={class:"fs_box_head"},Dxe={key:0,class:"fs_box_body fs_storage_integration_wrapper"},Oxe={class:"fs_storage_integration_cards"},Mxe={class:"fs_storage_card_content"},Nxe={class:"fs_storage_card_left"},Lxe={class:"fs_storage_icon_wrapper"},Pxe=["src","alt"],Fxe={class:"fs_storage_card_info"},Bxe={class:"fs_storage_card_header"},$xe={class:"fs_storage_card_title"},Vxe={key:0,class:"fs_status_badge active"},Uxe=["innerHTML"],Hxe={class:"fs_storage_card_right"},zxe={class:"fs_storage_card_actions"},Yxe={class:"fs_tk_filter fs_waiting_toggle"},Gxe=["src"],Wxe=["href"],jxe=["src"],qxe={key:1,class:"fs_box_body fs_skeleton_loader"};const Kxe=lH({name:"UploadIntegrationView",components:{OAuth2Settings:lH({name:"OAuth2Settings",props:["driver_name","driver"],components:{FormBuilder:rle},$emits:["driverRemoved"],data:()=>({settings:{},fieldsConfig:{fields:{}},loading:!1,saving:!1}),methods:{getSettings(){this.loading=!0,this.$get("settings/upload_integration",{integration_key:this.driver_name}).then(e=>{this.settings=e.settings,this.fieldsConfig=e.fieldsConfig}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},saveSettings(){this.saving=!0,this.$post("settings/upload_integration",{integration_key:this.driver_name,settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),e.redirect?window.location.href=e.redirect:e.is_discarded&&this.$emit("driverRemoved")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},reconnect(){this.settings.do_reconnect="yes",this.saveSettings()},disconnect(){this.settings.access_token="",this.settings.refresh_tokn="",this.settings.client_id="",this.settings.client_secret="",this.saveSettings()}},mounted(){this.getSettings()}},[["render",function(e,t,i,a,n,s){const o=AL,r=Jl("form-builder"),l=sC,c=Sk;return zd(),qd("div",Sxe,[n.loading?(zd(),Kd(o,{key:0,animated:!0,rows:4})):n.settings?(zd(),qd("div",wxe,[iu(l,{"label-position":"top",data:n.settings},{default:vr(()=>[n.fieldsConfig.description?(zd(),qd("div",{key:0,class:"fs_storage_oauth_description",innerHTML:n.fieldsConfig.description},null,8,Cxe)):ru("",!0),iu(r,{fields:n.fieldsConfig.fields,formData:n.settings},null,8,["fields","formData"])],void 0),_:1},8,["data"]),tu("div",Exe,[tu("div",kxe,["yes"!=n.settings.status?(zd(),Kd(c,{key:0,class:"fs_filled_btn",onClick:s.saveSettings,loading:n.saving},{default:vr(()=>[su(me(n.fieldsConfig.button_text),1)],void 0),_:1},8,["onClick","loading"])):(zd(),Kd(c,{key:1,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.reconnect()),loading:n.saving},{default:vr(()=>[su(me(e.$t("Reconnect")),1)],void 0),_:1},8,["loading"])),"yes"==n.settings.status?(zd(),Kd(c,{key:2,onClick:t[1]||(t[1]=e=>s.disconnect()),class:"fs_outline_btn fs_danger_btn",plain:""},{default:vr(()=>[su(me(e.$t("Disconnect")),1)],void 0),_:1})):ru("",!0)])])])):(zd(),qd("div",Txe,[tu("p",null,me(e.$t("Sorry, settings could not be loaded")),1)]))])}]])},data:()=>({availableDrivers:{},enabled_driver:"local",title:"",loading:!1,saving:!1,dialogVisible:!1,hasCode:!1,selectedDriver:null,selectedDriverName:""}),methods:{fetchUploadSettings(){this.loading=!0,this.$get("settings/remote-upload-settings").then(e=>{this.availableDrivers=e.drivers,this.enabled_driver=e.enabled_driver}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},updateDriver(e){"local"===e&&"local"===this.enabled_driver||(this.enabled_driver===e&&"local"!==e&&(e="local"),this.saving=!0,this.$post("settings/update-remote-upload-driver",{driver:e}).then(t=>{this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.enabled_driver=e}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1}))},showConfigDialog(e,t){this.selectedDriverName=t,this.selectedDriver=e,this.title="Configure "+this.selectedDriver.title+" Settings",this.dialogVisible=!0},closeDialog(){this.fetchUploadSettings(),this.dialogVisible=!1,this.selectedDriver=null,this.selectedDriverName=""},handleDriverRemoved(e){e==this.enabled_driver&&(this.enabled_driver="local",this.updateDriver("local")),this.closeDialog()}},mounted(){this.fetchUploadSettings(),this.$route.query.code&&(this.hasCode=!0),this.$setTitle("File Storage Settings")}},[["render",function(e,t,i,a,n,s){const o=BL,r=Sk,l=AL,c=Jl("o-auth2-settings"),d=dM,u=WB;return zd(),qd("div",Axe,[tu("div",Rxe,[tu("div",Ixe,[tu("h3",null,me(e.$t("File Storage Settings")),1)])]),n.loading?(zd(),qd("div",qxe,[iu(l,{animated:!0,rows:3})])):(zd(),qd("div",Dxe,[tu("div",Oxe,[(zd(!0),qd(Fd,null,sc(n.availableDrivers,(t,i)=>(zd(),qd("div",{key:i,class:"fs_storage_integration_card"},[tu("div",Mxe,[tu("div",Nxe,[tu("div",Lxe,[tu("img",{src:t.icon,alt:t.title,class:"fs_storage_icon"},null,8,Pxe)]),tu("div",Fxe,[tu("div",Bxe,[tu("h3",$xe,me(t.title),1),n.enabled_driver==i?(zd(),qd("span",Vxe,me(e.$t("Active")),1)):ru("",!0)]),tu("p",{class:"fs_storage_card_description",innerHTML:t.description},null,8,Uxe)])]),tu("div",Hxe,[tu("div",zxe,["local"===i||t.is_configured?(zd(),qd(Fd,{key:0},[tu("div",Yxe,[br(iu(o,{onChange:e=>s.updateDriver(i),"model-value":n.enabled_driver==i,disabled:n.saving||"local"===i&&"local"===n.enabled_driver},null,8,["onChange","model-value","disabled"]),[[u,n.saving]])]),t.has_config&&"local"!==i?(zd(),Kd(r,{key:0,onClick:e=>s.showConfigDialog(t,i),class:"fs_outline_btn"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/gear.svg",alt:""},null,8,Gxe)],void 0),_:1},8,["onClick"])):ru("",!0)],64)):t.require_pro?(zd(),qd("a",{key:1,class:"fs_storage_manage_btn fs_storage_upgrade_btn",target:"_blank",rel:"noopener",href:t.upgrade_url},me(e.$t("Upgrade to Pro")),9,Wxe)):t.has_config?(zd(),Kd(r,{key:2,onClick:e=>s.showConfigDialog(t,i),class:"fs_outline_btn"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/gear.svg",alt:""},null,8,jxe)],void 0),_:1},8,["onClick"])):ru("",!0)])])])]))),128))])])),n.selectedDriver?(zd(),Kd(d,{key:2,title:n.title,modelValue:n.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>n.dialogVisible=e),onClose:s.closeDialog,width:"60%",class:"fs_dialog","append-to-body":!0},{default:vr(()=>[n.selectedDriver&&n.dialogVisible?(zd(),Kd(c,{key:0,onDriverRemoved:t[0]||(t[0]=e=>s.handleDriverRemoved(n.selectedDriverName)),driver_name:n.selectedDriverName,driver:n.selectedDriver},null,8,["driver_name","driver"])):ru("",!0)],void 0),_:1},8,["title","modelValue","onClose"])):ru("",!0)])}]]),Xxe={class:"fs_bulk_action_wrapper"};const Zxe=lH({name:"BulkAction",props:{selectedItems:{type:Array,default:()=>[]},selectedAction:{type:String,default:""},actions:{type:Array,default:()=>[{value:"delete",label:"Delete"}]}},emits:["apply-action","update:selectedAction"],data(){return{localSelectedAction:this.selectedAction}},computed:{hasSelectedItems(){return this.selectedItems&&this.selectedItems.length>0},availableActions(){return this.actions.map(e=>({...e,label:this.$t(e.label)}))}},watch:{selectedAction(e){this.localSelectedAction=e},localSelectedAction(e){this.$emit("update:selectedAction",e)}},methods:{updateSelectedAction(e){this.$emit("update:selectedAction",e)},applyBulkAction(){this.selectedAction&&this.hasSelectedItems&&this.$emit("apply-action",{action:this.selectedAction,items:this.selectedItems})}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=Sk;return zd(),qd("div",Xxe,[iu(r,{"model-value":i.selectedAction,"onUpdate:modelValue":s.updateSelectedAction,placeholder:e.$t("Bulk Action"),class:"fs_bulk_action_select",disabled:!s.hasSelectedItems},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.availableActions,e=>(zd(),Kd(o,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))],void 0),_:1},8,["model-value","onUpdate:modelValue","placeholder","disabled"]),iu(l,{onClick:s.applyBulkAction,disabled:!i.selectedAction||!s.hasSelectedItems,class:"fs_bulk_action_apply",type:"primary"},{default:vr(()=>[su(me(e.$t("Apply")),1)],void 0),_:1},8,["onClick","disabled"])])}]]),Qxe={name:"Customers",components:{Pagination:Pq,CustomerForm:dle,TableMoreActions:Cge,BulkAction:Zxe},data(){return{customers:[],pagination:{per_page:10,current_page:1,total:0},loading:!1,deleting:!1,saving:!1,first_time_loading:!0,showEditModal:!1,editing_customer:{},status:"",search:"",selectedCustomers:[],selectedBulkAction:"",showBulkDeleteDialog:!1,bulkActionItems:[],statusFilters:{active:this.$t("Active"),inactive:this.$t("Blocked")}}},computed:{componentKey(){return this.editing_customer&&this.editing_customer.id?this.editing_customer.id.toString():(1e3*Math.random()).toFixed(0).toString()},allStatusFilters(){return{"":this.$t("All"),...this.statusFilters}},canDeleteCustomers(){var e,t,i;const a=(null==(t=null==(e=this.appVars)?void 0:e.me)?void 0:t.permissions)||[];return!!a.includes("fst_sensitive_data")&&(!(null==(i=this.appVars)?void 0:i.customer_delete_requires_admin)||a.includes("administrator"))},bulkActions:()=>[{value:"delete",label:"Delete"}],bulkDeleteWarning(){const e=this.bulkActionItems?this.bulkActionItems.length:0;return e?this.$t(`Are you sure to delete ${e} customer(s)? It will delete all associated data with these customers`):this.$t("No customers selected for deletion.")}},mounted(){this.$setTitle(this.$t("Customers")),this.fetchCustomers()},methods:{async fetchCustomers(){this.$get("customers",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search,status:this.status}).then(e=>{this.customers=e.customers.data,this.pagination.total=e.customers.total}).always(()=>{this.loading=!1,this.first_time_loading=!1}).catch(e=>{this.$handleError(e)})},setStatus(e){this.status=e,this.fetchCustomers()},showAddCustomerModal(e){this.editing_customer=e,this.showEditModal=!0},closeModal(){this.editing_customer={},this.showEditModal=!1,this.fetchCustomers()},deleteCustomer(e){this.deleting=!0,this.$del(`customers/${e}`).then(e=>{this.fetchCustomers(),this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})},async createOrUpdateCustomer(){this.saving=!0,(this.editing_customer.id?this.$put:this.$post)(this.editing_customer.id?`customers/${this.editing_customer.id}`:"customers",{...this.editing_customer}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchCustomers(),this.showEditModal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},tableRowClassName:({row:e,rowIndex:t})=>"fs_status_"+e.status,handleImageError(e){e.target.style.display="none"},handleSelectionChange(e){this.selectedCustomers=e},async handleBulkAction({action:e,items:t}){if("delete"===e){if(!t||!t.length)return;this.bulkActionItems=t,this.showBulkDeleteDialog=!0}},async confirmBulkDelete(){this.bulkActionItems&&this.bulkActionItems.length?(await this.bulkDeleteCustomers(this.bulkActionItems),this.showBulkDeleteDialog=!1,this.bulkActionItems=[]):this.showBulkDeleteDialog=!1},cancelBulkDelete(){this.showBulkDeleteDialog=!1,this.bulkActionItems=[]},async bulkDeleteCustomers(e){if(!e||0===e.length)return;const t=e.map(e=>e.id);try{this.deleting=!0;const e=await this.$del("customers/bulk-delete",{customer_ids:t});this.$notify({message:e.message||this.$t("Customers deleted successfully"),type:"success",position:"bottom-right"}),this.selectedCustomers=[],this.selectedBulkAction="",await this.fetchCustomers()}catch(i){this.$handleError(i)}finally{this.deleting=!1}}}},Jxe={class:"fs_customers"},eSe={key:0,class:"fs_box_wrapper"},tSe={class:"fs_component_header"},iSe={class:"fs_component_head"},aSe={class:"fs_page_title"},nSe={class:"fs_box_actions"},sSe={class:"fs_table_container"},oSe={class:"fs_table_header"},rSe={class:"fs_box_actions"},lSe={class:"fs_status_tabs"},cSe={class:"fs_segmented_control"},dSe=["onClick"],uSe={class:"fs_customers_table_actions"},pSe={key:0,class:"fs_bulk_actions_section"},hSe={class:"fs_ticket_orders fs_table_search_field"},fSe={class:"fs_table_wrapper"},gSe={class:"fs_customer_name_cell"},mSe={class:"fs_customer_avatar"},_Se=["src","alt"],vSe={class:"fs_customer_info"},bSe={class:"fs_customer_email"},ySe={key:0},xSe={key:1},SSe=["src"],wSe={class:"fs-table-action-cell"},CSe={class:"fs_action_button_wrapper"},ESe={key:0,class:"fs_pagination_wrapper"},kSe={class:"fs_pagination_left"},TSe={class:"fs_pagination_right"},ASe={key:1,class:"fs_table_container fs_skeleton_loader"},RSe={class:"fs_dialog_footer"},ISe={class:"fs_dialog_warning_content"},DSe={class:"fs_popconfirm_actions"};const OSe=lH(Qxe,[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("BulkAction"),l=Jl("search"),c=KS,d=cE,u=ZP,p=Jl("router-link"),h=Jl("TableMoreActions"),f=XP,g=Jl("pagination"),m=AL,_=Jl("customer-form"),v=dM,b=WB;return zd(),qd("div",Jxe,[n.first_time_loading?(zd(),qd("div",ASe,[iu(m,{class:"fs_box_wrapper fs_skeleton",rows:5,animated:""})])):(zd(),qd("div",eSe,[tu("div",tSe,[tu("div",iSe,[tu("h3",aSe,me(e.$t("All Customers")),1)]),tu("div",nSe,[iu(o,{onClick:t[0]||(t[0]=e=>s.showAddCustomerModal({})),class:"fs_filled_btn",icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add Customer")),1)],void 0),_:1})])]),tu("div",sSe,[tu("div",oSe,[tu("div",rSe,[tu("div",lSe,[tu("div",cSe,[(zd(!0),qd(Fd,null,sc(s.allStatusFilters,(e,t)=>(zd(),qd("button",{key:t,onClick:e=>s.setStatus(t),class:se(["fs_segment_button",{fs_segment_active:n.status===t}])},me(e),11,dSe))),128))])]),tu("div",uSe,[s.canDeleteCustomers?(zd(),qd("div",pSe,[iu(r,{"selected-items":n.selectedCustomers,actions:s.bulkActions,"selected-action":n.selectedBulkAction,"onUpdate:selectedAction":t[1]||(t[1]=e=>n.selectedBulkAction=e),onApplyAction:s.handleBulkAction},null,8,["selected-items","actions","selected-action","onApplyAction"])])):ru("",!0),tu("div",hSe,[iu(d,{onKeyup:t[2]||(t[2]=Ih(e=>s.fetchCustomers(),["enter"])),clearable:"",onClear:t[3]||(t[3]=e=>s.fetchCustomers()),placeholder:e.$t("Search Customers..."),modelValue:n.search,"onUpdate:modelValue":t[4]||(t[4]=e=>n.search=e),class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(c,{class:"el-input__icon"},{default:vr(()=>[iu(l)],void 0),_:1})]),_:1},8,["placeholder","modelValue"])])])])]),tu("div",fSe,[br((zd(),Kd(f,{data:n.customers,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed",onSelectionChange:s.handleSelectionChange},{default:vr(()=>[s.canDeleteCustomers?(zd(),Kd(u,{key:0,type:"selection",width:"50",align:"center"})):ru("",!0),iu(u,{width:"50",prop:"id",label:e.$t("ID")},null,8,["label"]),iu(u,{prop:"full_name",width:"250",label:e.$t("Name")},{default:vr(i=>[tu("div",gSe,[tu("div",mSe,[tu("img",{src:i.row.photo,alt:i.row.full_name||e.$t("Customer"),class:"fs_avatar_img",onError:t[5]||(t[5]=(...e)=>s.handleImageError&&s.handleImageError(...e))},null,40,_Se)]),tu("div",vSe,[iu(p,{to:{name:"view_customer",params:{customer_id:i.row.id}},class:"fs_customer_name_link"},{default:vr(()=>[su(me(i.row.full_name?i.row.full_name:"N/A"),1)],void 0),_:2},1032,["to"]),tu("div",bSe,me(i.row.email),1)])])]),_:1},8,["label"]),iu(u,{width:"120",label:e.$t("Status")},{default:vr(t=>[tu("div",{class:se(["fs_status_badge fs_customer_status_badge",`fs_status_${t.row.status}`])},["inactive"==t.row.status?(zd(),qd("span",ySe,me(e.$t("Blocked")),1)):(zd(),qd("span",xSe,me(e.ucFirst(t.row.status)),1))],2)]),_:1},8,["label"]),iu(u,{width:"180",label:e.$t("Last Activity")},{default:vr(t=>[su(me(e.$timeDiff(t.row.last_response_at)||"--"),1)]),_:1},8,["label"]),iu(u,{width:"150",label:e.$t("Stats")},{default:vr(t=>[iu(p,{to:{name:"tickets",query:{search:"customer_id:"+t.row.id}},class:"fs_stats_link"},{default:vr(()=>[iu(o,{size:"small",text:"",class:"fs_stats_button"},{icon:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/ticketCount.svg"},null,8,SSe)]),default:vr(()=>[su(" "+me(t.row.total_tickets),1)],void 0),_:2},1024)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),iu(u,{align:"center",width:"150",label:e.$t("Action")},{default:vr(t=>[tu("div",wSe,[tu("div",CSe,[iu(o,{class:"fs_action_button",onClick:e=>s.showAddCustomerModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),s.canDeleteCustomers?(zd(),Kd(h,{key:0,scope:t,fetching:n.loading,onDelete:e=>s.deleteCustomer(t.row.id),"delete-warning":e.$t("Are you sure to delete this customer? It will delete all associated data with this customer")},null,8,["scope","fetching","onDelete","delete-warning"])):ru("",!0)])]),_:1},8,["label"])],void 0),_:1},8,["data","onSelectionChange"])),[[b,n.loading]])]),n.customers.length?(zd(),qd("div",ESe,[tu("span",kSe,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(g,{onFetch:t[6]||(t[6]=e=>s.fetchCustomers()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",TSe,[iu(g,{onFetch:t[7]||(t[7]=e=>s.fetchCustomers()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])])),n.editing_customer?(zd(),Kd(v,{key:2,"append-to-body":!0,title:n.editing_customer.id?e.$t("Update customer"):e.$t("Add new customer"),modelValue:n.showEditModal,"onUpdate:modelValue":t[11]||(t[11]=e=>n.showEditModal=e),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",RSe,[iu(o,{class:"fs_outline_btn",onClick:t[9]||(t[9]=()=>n.showEditModal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(o,{disabled:n.saving,onClick:t[10]||(t[10]=e=>s.createOrUpdateCustomer()),class:"fs_filled_btn"},{default:vr(()=>[su(me(n.editing_customer&&n.editing_customer.id?e.$t("Update Customer"):e.$t("Create Customer")),1)],void 0),_:1},8,["disabled"])),[[b,n.saving]])])]),default:vr(()=>[n.editing_customer?(zd(),Kd(_,{onUpdated:t[8]||(t[8]=e=>s.closeModal()),customer:n.editing_customer,key:s.componentKey},null,8,["customer"])):ru("",!0)],void 0),_:1},8,["title","modelValue"])):ru("",!0),iu(v,{modelValue:n.showBulkDeleteDialog,"onUpdate:modelValue":t[12]||(t[12]=e=>n.showBulkDeleteDialog=e),title:e.$t("Confirm Delete"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:vr(()=>[tu("div",DSe,[iu(o,{class:"fs_outline_btn",size:"small",onClick:s.cancelBulkDelete},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(o,{class:"fs_filled_btn",size:"small",loading:n.deleting,onClick:s.confirmBulkDelete},{default:vr(()=>[su(me(e.$t("Delete")),1)],void 0),_:1},8,["loading","onClick"])])]),default:vr(()=>[tu("div",ISe,[t[13]||(t[13]=tu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[tu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),tu("p",null,me(s.bulkDeleteWarning),1)])],void 0),_:1},8,["modelValue","title"])])}]]),MSe={class:"fs_saved_replies"},NSe={key:0,class:"fs_box_wrapper"},LSe={class:"fs_component_header"},PSe={class:"fs_component_head"},FSe={class:"fs_page_title"},BSe={class:"fs_box_actions"},$Se={key:0,class:"fs_table_container"},VSe={class:"fs_table_header"},USe={class:"fs_box_actions"},HSe={class:"fs_ticket_orders fs_table_search_field"},zSe={class:"fs_table_wrapper"},YSe={class:"fs-table-action-cell"},GSe={class:"fs_action_button_wrapper"},WSe={key:0,class:"fs_pagination_wrapper"},jSe={class:"fs_pagination_left"},qSe={class:"fs_pagination_right"},KSe={key:1,class:"fs_table_container fs_skeleton_loader"},XSe={class:"fs_dialog_footer"};const ZSe=lH({name:"SavedReplies",components:{WpEditor:Qee,Pagination:Pq,TableMoreActions:Cge,NarrowPromo:Fne},data(){return{replies:[],pagination:{current_page:1,per_page:10,total:0},loading:!0,saving:!1,editing_reply:!1,products:this.appVars.support_products,search:"",shortcodes:{"{{customer.first_name}}":"Customer First Name","{{customer.last_name}}":"Customer Last Name","{{customer.full_name}}":"Customer Full Name","{{customer.email}}":"Customer Email","{{customer.title}}":"Customer Title","{{customer.status}}":"Customer Status","{{agent.first_name}}":"Agent First Name","{{agent.last_name}}":"Agent Last Name","{{agent.full_name}}":"Agent Full Name","{{agent.email}}":"Agent Email","{{agent.title}}":"Agent Title"},showModal:!1}},methods:{fetch(){this.loading=!0,this.$get("saved-replies",{page:this.pagination.current_page,per_page:this.pagination.per_page,search:this.search}).then(e=>{this.replies=e.replies.data,this.pagination.total=e.replies.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},createOrUpdate(){this.saving=!0;let e=this.$post,t="saved-replies";this.editing_reply.id&&(e=this.$put,t=`saved-replies/${this.editing_reply.id}`);e(t,{...this.editing_reply,product_id:this.editing_reply.product_id||null}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetch(),this.showModal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editModal(e){this.editing_reply=JSON.parse(JSON.stringify(e));0===Number(this.editing_reply.product_id)&&(this.editing_reply.product_id=null),this.showModal=!0},createModal(){this.editing_reply={title:"",content:"",product_id:null},this.showModal=!0},deleteReply(e){this.$del(`saved-replies/${e.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetch()})},resetEditingReply(){this.editing_reply=!1}},mounted(){this.has_pro?this.fetch():this.loading=!1,this.$setTitle("Saved Replies")}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("search"),l=KS,c=cE,d=ZP,u=Jl("TableMoreActions"),p=XP,h=Jl("pagination"),f=Jl("NarrowPromo"),g=AL,m=oC,_=Jl("wp-editor"),v=wA,b=SA,y=sC,x=dM,S=WB;return zd(),qd("div",MSe,[n.loading?(zd(),qd("div",KSe,[iu(g,{class:"fs_box_wrapper fs_skeleton",rows:5,animated:""})])):(zd(),qd("div",NSe,[e.has_pro?(zd(),qd(Fd,{key:0},[tu("div",LSe,[tu("div",PSe,[tu("h3",FSe,me(e.$t("Saved Replies")),1)]),tu("div",BSe,[iu(o,{disabled:!e.has_pro,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.createModal()),icon:"Plus"},{default:vr(()=>[su(me(e.$t("Create New")),1)],void 0),_:1},8,["disabled"])])]),n.loading?ru("",!0):(zd(),qd("div",$Se,[tu("div",VSe,[tu("div",USe,[tu("div",HSe,[iu(c,{onKeyup:Ih(s.fetch,["enter"]),clearable:"",onClear:s.fetch,disabled:!e.has_pro,placeholder:e.$t("Search..."),modelValue:n.search,"onUpdate:modelValue":t[1]||(t[1]=e=>n.search=e),class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(l,{class:"el-input__icon"},{default:vr(()=>[iu(r)],void 0),_:1})]),_:1},8,["onKeyup","onClear","disabled","placeholder","modelValue"])])])]),tu("div",zSe,[iu(p,{data:n.replies,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:vr(()=>[iu(d,{width:"50",prop:"id",label:e.$t("ID")},null,8,["label"]),iu(d,{prop:"title",width:"200",label:e.$t("Title")},null,8,["label"]),iu(d,{width:"200",label:e.$t("Product")},{default:vr(e=>{var t;return[su(me((null==(t=e.row.product)?void 0:t.title)||"--"),1)]}),_:1},8,["label"]),iu(d,{width:"180",label:e.$t("Created By")},{default:vr(e=>{var t;return[su(me(null==(t=e.row.person)?void 0:t.full_name),1)]}),_:1},8,["label"]),iu(d,{width:"180",label:e.$t("Created On")},{default:vr(t=>[su(me(e.$timeDiff(t.row.created_at)),1)]),_:1},8,["label"]),iu(d,{align:"center",width:"150",label:e.$t("Action")},{default:vr(t=>[tu("div",YSe,[tu("div",GSe,[iu(o,{class:"fs_action_button",onClick:e=>s.editModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),iu(u,{scope:t,fetching:n.loading,onDelete:e=>s.deleteReply(t.row),"delete-warning":e.$t("replies_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])]),n.replies.length?(zd(),qd("div",WSe,[tu("span",jSe,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(h,{onFetch:t[2]||(t[2]=e=>s.fetch()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",qSe,[iu(h,{onFetch:t[3]||(t[3]=e=>s.fetch()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)]))],64)):(zd(),Kd(f,{key:1,heading:e.$t("create_reply_template"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_saved_reply_templates"},null,8,["heading","description","button-text"]))])),n.editing_reply?(zd(),Kd(x,{key:2,"append-to-body":!0,title:n.editing_reply&&n.editing_reply.id?e.$t("Edit Reply"):e.$t("Create New Reply"),modelValue:n.showModal,"onUpdate:modelValue":t[9]||(t[9]=e=>n.showModal=e),width:"60%",class:"fs_dialog fs_reply_modal",onClosed:s.resetEditingReply},{footer:vr(()=>[tu("span",XSe,[iu(o,{class:"fs_outline_btn",onClick:t[7]||(t[7]=()=>n.showModal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(o,{disabled:n.saving,onClick:t[8]||(t[8]=e=>s.createOrUpdate()),class:"fs_filled_btn"},{default:vr(()=>[su(me(n.editing_reply&&n.editing_reply.id?e.$t("Update Reply"):e.$t("Save Reply")),1)],void 0),_:1},8,["disabled"])),[[S,n.saving]])])]),default:vr(()=>[iu(y,{"label-position":"top",data:n.editing_reply},{default:vr(()=>[iu(m,{label:e.$t("Title"),class:"fs_form_item"},{default:vr(()=>[iu(c,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Reply Title"),modelValue:n.editing_reply.title,"onUpdate:modelValue":t[4]||(t[4]=e=>n.editing_reply.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(m,{label:e.$t("Content"),class:"fs_form_item"},{default:vr(()=>[(zd(),Kd(_,{key:n.editing_reply.id,modelValue:n.editing_reply.content,"onUpdate:modelValue":t[5]||(t[5]=e=>n.editing_reply.content=e),"show-shortcodes":!0,editor_shortcodes:n.shortcodes},null,8,["modelValue","editor_shortcodes"]))],void 0),_:1},8,["label"]),iu(m,{label:e.$t("Preferred Product"),class:"fs_form_item"},{default:vr(()=>[iu(b,{placeholder:e.$t("Select Product"),class:"fs_select_field",modelValue:n.editing_reply.product_id,"onUpdate:modelValue":t[6]||(t[6]=e=>n.editing_reply.product_id=e),clearable:""},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.products,e=>(zd(),Kd(v,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue","onClosed"])):ru("",!0)])}]]),QSe={class:"fs_customer_page"},JSe={key:0,class:"fs_box_wrapper"},ewe={style:{padding:"20px"},class:"fs_box_header"},twe={class:"fs_box_head"},iwe={style:{"margin-top":"20px"}},awe={style:{padding:"20px","margin-top":"2.3em"},class:"fs_box_body"},nwe={class:"fs_customer_avatar"},swe=["src"],owe={class:"fs_tk_sidebar_wrap_new"},rwe={class:"fs_client_info_body"},lwe={class:"fs_client_header"},cwe={class:"fs_client_avatar"},dwe=["src","alt"],uwe={class:"fs_client_details"},pwe={class:"fs_client_name_row"},hwe={class:"fs_client_name"},fwe={key:0,class:"fs_blocked_badge"},gwe={class:"fs_client_email"},mwe=["href"],_we={key:1},vwe={key:0,class:"fs_widget_purchases"},bwe={class:"fs_purchase_list"},ywe={class:"fs_purchase_row"},xwe=["onClick"],Swe={class:"fs_order_card_header"},wwe={class:"fs_wc_card-body"},Cwe={class:"fs_wc-order-preview-address"},Ewe=["innerHTML"],kwe={key:0},Twe={key:1},Awe={key:2},Rwe={class:"fs_wc-order-preview-address fs_mt_30"},Iwe=["innerHTML"],Dwe=["innerHTML"],Owe={class:"fs_order_card_footer"},Mwe=["href"],Nwe={key:1,class:"fs_widget_custom_body"},Lwe=["innerHTML"],Pwe={class:"fs_previous_conversations_body"},Fwe={class:"fs_conversation_list"},Bwe={class:"fs_conversation_content"},$we={class:"fs_conversation_title"},Vwe={key:1,class:"fs_padded_20"};const Uwe=lH({name:"CustomerPage",props:["customer_id"],components:{CollapsibleWidget:hce,CustomerForm:dle,FluentCrmProfile:Ile},data(){return{customer:{},tickets:[],widgets:{},drawer:!1,orders:[],loading_sidebar:!1,fluentcrm_profile:!1,loading:!1,upload_url:this.appVars.rest.url+`/customers/profile_image/${this.customer_id}`,requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},canOpenProfileUploadPopup:!0}},mounted(){this.fetchCustomer()},methods:{async fetchCustomer(){this.loading=!0,this.$get(`customers/${this.customer_id}`,{with:["widgets","tickets","fluentcrm_profile"]}).then(e=>{this.customer=e.customer,this.tickets=e.tickets,this.widgets=e.widgets,this.fluentcrm_profile=e.fluentcrm_profile}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleAvatarSuccess(e,t){this.customer.photo=e.image,this.$notify({title:this.$t("Success"),message:this.$t(e.message),type:"success"}),this.canOpenProfileUploadPopup=!0},handleAvatarError(e,t){let i=JSON.parse(e.message);this.$notify({title:this.$t("Error"),message:this.$t(i.message),type:"error"}),this.canOpenProfileUploadPopup=!0},getOrderDetails(e,t){this.drawer=!0,this.orders={orderInfo:e,products:t[e.id]}},getType(e){switch(e.toLocaleString()){case"on-hold":return"warning";case"processing":return"primary";case"completed":return"success";default:return"info"}},showIcon(){document.querySelector("i.fs_customer_avatar_upload").style.display="inline-flex"},hideIcon(){document.querySelector("i.fs_customer_avatar_upload").style.display="none"},getDisplayCurrency(e){return e&&e.length<=3&&e.match(/^[A-Z]{3}$/)?this.getCurrencySymbol(e):e||""},async confirmResetProfile(){this.loading=!0,this.$post(`customers/reset_avatar/${this.customer_id}`).then(e=>{this.$notify({message:this.$t(e.message),position:"bottom-right",type:"success"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},beforeAvatarUpload(){this.canOpenProfileUploadPopup=!1}}},[["render",function(e,t,i,a,n,s){const o=UE,r=VE,l=Jl("Camera"),c=KS,d=PB,u=nN,p=vL,h=sN,f=aN,g=Jl("customer-form"),m=hI,_=Jl("router-link"),v=Jl("fluent-crm-profile"),b=Jl("collapsible-widget"),y=ZC,x=tA,S=ZP,w=XP,C=Sk,E=TA,k=bM,T=Jl("Message"),A=pI,R=AL;return zd(),qd("div",QSe,[n.customer.id?(zd(),qd("div",JSe,[tu("div",ewe,[tu("div",twe,[iu(r,{separator:">"},{default:vr(()=>[iu(o,{to:{name:"Customers"}},{default:vr(()=>[su(me(e.$t("Customers")),1)],void 0),_:1}),iu(o,null,{default:vr(()=>[su(me(n.customer.first_name)+" "+me(n.customer.last_name),1)],void 0),_:1})],void 0),_:1})]),t[4]||(t[4]=tu("div",{class:"fs_box_actions fs_customer_filters"},[tu("div",{class:"fs_cs_status_filter"})],-1))]),tu("div",iwe,[iu(A,{gutter:30},{default:vr(()=>[iu(m,{sm:12,md:18,xs:24},{default:vr(()=>[tu("div",awe,[tu("div",{class:"fs_cs_profile_picture",onMouseover:t[0]||(t[0]=(...e)=>s.showIcon&&s.showIcon(...e)),onMouseout:t[1]||(t[1]=(...e)=>s.hideIcon&&s.hideIcon(...e))},[tu("div",nwe,[n.canOpenProfileUploadPopup?(zd(),Kd(f,{key:0,trigger:"click","hide-on-click":!1,placement:"bottom-start"},{dropdown:vr(()=>[iu(h,{class:"fs_global_dropdown fs-cs-avatar-actions"},{default:vr(()=>[iu(u,null,{default:vr(()=>[iu(d,{class:"fs-avatar-uploader",action:n.upload_url,"on-success":s.handleAvatarSuccess,"on-error":s.handleAvatarError,headers:n.requestHeaders,"show-file-list":!1,"before-upload":s.beforeAvatarUpload},{default:vr(()=>[...t[5]||(t[5]=[su(" Upload a Custom Picture ",-1)])],void 0),_:1},8,["action","on-success","on-error","headers","before-upload"])],void 0),_:1}),n.customer.avatar?(zd(),Kd(u,{key:0},{default:vr(()=>[iu(p,{"confirm-button-text":"Yes","cancel-button-text":"No",title:e.$t("Reset to gravatar?"),onConfirm:s.confirmResetProfile},{reference:vr(()=>[...t[6]||(t[6]=[su(" Reset To Default Gravatar ",-1)])]),_:1},8,["title","onConfirm"])],void 0),_:1})):ru("",!0)],void 0),_:1})]),default:vr(()=>[iu(c,{class:"fs_customer_avatar_upload"},{default:vr(()=>[iu(l)],void 0),_:1})],void 0),_:1})):ru("",!0),n.customer.photo?(zd(),qd("img",{key:1,src:n.customer.photo,class:"avatar"},null,8,swe)):ru("",!0)])],32),n.customer.id?(zd(),Kd(g,{key:0,customer:n.customer,style:{"margin-top":"4em"}},null,8,["customer"])):ru("",!0)])],void 0),_:1}),iu(m,{sm:12,md:6,xs:24},{default:vr(()=>[tu("div",owe,[n.customer?(zd(),Kd(b,{key:0,title:e.$t("Customer Informations"),icon:"User","default-expanded":!0,class:"fs_sidebar_widget fs_sidebar_widget_ci"},{default:vr(()=>[tu("div",rwe,[tu("div",lwe,[iu(_,{to:{name:"view_customer",params:{customer_id:n.customer.id}}},{default:vr(()=>[tu("div",cwe,[tu("img",{src:n.customer.photo,alt:n.customer.full_name},null,8,dwe)])],void 0),_:1},8,["to"]),tu("div",uwe,[tu("div",pwe,[tu("h4",hwe,[su(me(n.customer.full_name)+" ",1),"inactive"==n.customer.status?(zd(),qd("span",fwe,"("+me(e.$t("Blocked"))+")",1)):ru("",!0)])]),tu("p",gwe,[n.customer.profile_edit_url?(zd(),qd("a",{key:0,rel:"noopener",target:"_blank",href:n.customer.profile_edit_url},me(n.customer.email),9,mwe)):(zd(),qd("span",_we,me(n.customer.email),1))])])]),n.fluentcrm_profile?(zd(),Kd(v,{key:0,crm_profile:n.fluentcrm_profile},null,8,["crm_profile"])):ru("",!0)])],void 0),_:1},8,["title"])):ru("",!0),n.widgets?(zd(!0),qd(Fd,{key:1},sc(n.widgets,(i,a)=>(zd(),Kd(b,{key:a,title:i.title||i.header,icon:"ShoppingCart","default-expanded":!1,class:se([`fs_tk_widget_${a}`,"fs_sidebar_widget fs_tk_extra_card"])},{default:vr(()=>["woo_purchases"===a?(zd(),qd("div",vwe,[tu("ul",bwe,[(zd(!0),qd(Fd,null,sc(i.orders,(a,n)=>(zd(),qd("li",{key:n,class:"fs_purchase_item"},[tu("div",ywe,[iu(y,{content:"Purchase date: "+a.date+", Amount: "+e.getCurrencySymbol(a.currency)+a.total,placement:"top","raw-content":!0},{default:vr(()=>[tu("a",{onClick:e=>s.getOrderDetails(a,i.products),class:"fs_order_link"},"#"+me(a.id),9,xwe)],void 0),_:2},1032,["content"]),t[7]||(t[7]=tu("div",{class:"fs_purchase_divider"},null,-1)),iu(x,{size:"small",type:s.getType(a.status)},{default:vr(()=>[su(me(a.status),1)],void 0),_:2},1032,["type"])])]))),128))]),iu(k,{class:"fs_wc_order_details",modelValue:n.drawer,"onUpdate:modelValue":t[3]||(t[3]=e=>n.drawer=e),size:"40%","append-to-body":!0,"with-header":!1},{default:vr(()=>[iu(E,{class:"fs_order_box_card"},{header:vr(()=>[tu("div",Swe,[tu("h3",null,me(e.$t("Order"))+" #"+me(n.orders.orderInfo.id),1),iu(x,{class:"ml-2",type:s.getType(n.orders.orderInfo.status)},{default:vr(()=>[su(me(n.orders.orderInfo.status),1)],void 0),_:1},8,["type"])])]),default:vr(()=>[tu("div",wwe,[tu("div",null,[tu("div",Cwe,[tu("h2",null,me(e.$t("Billing details")),1),tu("p",{innerHTML:n.orders.orderInfo.billing_address},null,8,Ewe),tu("p",null,[tu("strong",null,me(e.$t("Email"))+": ",1),su(me(n.orders.orderInfo.email),1)]),n.orders.orderInfo.phone?(zd(),qd("p",kwe,[tu("strong",null,me(e.$t("Phone"))+": ",1),su(me(n.orders.orderInfo.phone),1)])):ru("",!0),n.orders.orderInfo.payment_method?(zd(),qd("p",Twe,[tu("strong",null,me(e.$t("Payment Via"))+": ",1),su(me(n.orders.orderInfo.payment_method),1)])):ru("",!0),n.orders.orderInfo.date?(zd(),qd("p",Awe,[tu("strong",null,me(e.$t("Purchase Date"))+": ",1),su(me(n.orders.orderInfo.date),1)])):ru("",!0)]),tu("div",Rwe,[tu("h2",null,me(e.$t("Shipping details")),1),tu("p",{innerHTML:n.orders.orderInfo.shipping_address},null,8,Iwe),tu("p",null,[tu("strong",null,me(e.$t("Shipping method")),1),su(" "+me(n.orders.orderInfo.shipping_method),1)])])]),iu(w,{data:n.orders.products,style:{width:"100%","margin-top":"2%"}},{default:vr(()=>[iu(S,{prop:"post_title",label:e.$t("Product"),width:"60%"},null,8,["label"]),iu(S,{prop:"product_qty",label:e.$t("Quantity"),width:"20%",align:"center"},null,8,["label"]),iu(S,{label:e.$t("Total"),width:"20%",align:"center"},{default:vr(e=>[tu("span",{innerHTML:n.orders.orderInfo.currency},null,8,Dwe),tu("span",null,me(e.row.product_gross_revenue),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])]),tu("div",Owe,[tu("a",{href:n.orders.orderInfo.order_link,target:"_blank",class:"el-button fs_filled_btn"},me(e.$t("Edit")),9,Mwe),iu(C,{onClick:t[2]||(t[2]=e=>n.drawer=!1),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Close")),1)],void 0),_:1})])],void 0),_:1})],void 0),_:1},8,["modelValue"])])):(zd(),qd("div",Nwe,[tu("div",{innerHTML:i.body_html},null,8,Lwe)]))],void 0),_:2},1032,["title","class"]))),128)):ru("",!0),n.tickets&&n.tickets.length?(zd(),Kd(b,{key:2,title:e.$t("Support Tickets")+` (${n.tickets.length})`,icon:"ChatLineSquare","default-expanded":!1,class:"fs_sidebar_widget fs_tk_other_tickets_card"},{default:vr(()=>[tu("div",Pwe,[tu("ul",Fwe,[(zd(!0),qd(Fd,null,sc(n.tickets,t=>(zd(),qd("li",{key:"other_ticket_"+t.id,class:"fs_conversation_item"},[iu(_,{to:{name:"view_ticket",params:{ticket_id:t.id},query:{prev_ticket:e.ticket_id}},class:"fs_conversation_link"},{default:vr(()=>{var e;return[tu("div",Bwe,[iu(c,{class:"fs_conversation_icon"},{default:vr(()=>[iu(T)],void 0),_:1}),tu("span",$we,me(t.title),1)]),tu("span",{class:se(["fs_status_badge",null==(e=t.status)?void 0:e.toLowerCase()])},me(t.status),3)]},void 0),_:2},1032,["to"])]))),128))])])],void 0),_:1},8,["title"])):ru("",!0)])],void 0),_:1})],void 0),_:1})])])):(zd(),qd("div",Vwe,[iu(R,{class:"fs_box_wrapper fs_skeleton",rows:5,animated:""})]))])}]]),Hwe={class:"fs_mailboxes"},zwe={key:0,class:"fs_box_wrapper"},Ywe={class:"fs_breadcrumb"},Gwe={class:"fs_mailbox_settings_wrapper"},Wwe={class:"fs_menu_container"},jwe=["src"],qwe={class:"fs_menu_arrow_wrapper"},Kwe=["src"],Xwe=["src"],Zwe={class:"fs_menu_arrow_wrapper"},Qwe=["src"],Jwe=["src"],eCe={class:"fs_menu_arrow_wrapper"},tCe=["src"],iCe={class:"inner_body fs_box_body fs_padded_20"},aCe={key:1,class:"fs_box_body fs_skeleton_loader"};const nCe=lH({name:"MailBoxRoot",props:["box_id"],data:()=>({fetching:!0,mailbox:!1}),mounted(){this.fetch(),this.$setTitle("Business Settings")},methods:{fetch(){this.fetching=!0,this.$get(`mailboxes/${this.box_id}`).then(e=>{this.mailbox=e.mailbox,this.$setTitle(e.mailbox.name+" Settings")}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})}}},[["render",function(e,t,i,a,n,s){const o=UE,r=VE,l=Jl("router-link"),c=Jl("router-view"),d=AL;return zd(),qd("div",Hwe,[n.mailbox?(zd(),qd("div",zwe,[tu("div",Ywe,[iu(r,{separator:">"},{default:vr(()=>[iu(o,{to:{name:"mailboxes"}},{default:vr(()=>[su(me(e.$t("Business Inboxes")),1)],void 0),_:1}),iu(o,null,{default:vr(()=>[su(me(n.mailbox.name),1)],void 0),_:1})],void 0),_:1})]),tu("div",Gwe,[tu("div",Wwe,[tu("div",{class:se(["fs_menu_item",{active:"box_settings"===e.$route.name}])},[iu(l,{to:{name:"box_settings",params:{box_id:n.mailbox.id}}},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/inboxSettings.svg",alt:""},null,8,jwe),tu("span",null,me(e.$t("Inbox Settings")),1),tu("div",qwe,["box_settings"===e.$route.name?(zd(),qd("img",{key:0,class:"fs_menu_arrow",src:e.appVars.asset_url+"images/arrow.svg"},null,8,Kwe)):ru("",!0)])],void 0),_:1},8,["to"])],2),tu("div",{class:se(["fs_menu_item",{active:"email_settings"===e.$route.name}])},[iu(l,{to:{name:"email_settings",params:{box_id:n.mailbox.id}}},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/emailSettings.svg",alt:""},null,8,Xwe),tu("span",null,me(e.$t("Email Settings")),1),tu("div",Zwe,["email_settings"===e.$route.name?(zd(),qd("img",{key:0,class:"fs_menu_arrow",src:e.appVars.asset_url+"images/arrow.svg"},null,8,Qwe)):ru("",!0)])],void 0),_:1},8,["to"])],2),n.mailbox&&"email"==n.mailbox.box_type?(zd(),qd("div",{key:0,class:se(["fs_menu_item",{active:"email_piping"===e.$route.name}])},[iu(l,{to:{name:"email_piping",params:{box_id:n.mailbox.id}}},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/emailPiping.svg",alt:""},null,8,Jwe),tu("span",null,me(e.$t("Email Piping")),1),tu("div",eCe,["email_piping"===e.$route.name?(zd(),qd("img",{key:0,class:"fs_menu_arrow",src:e.appVars.asset_url+"images/arrow.svg"},null,8,tCe)):ru("",!0)])],void 0),_:1},8,["to"])],2)):ru("",!0)]),tu("div",iCe,[iu(c,{mailbox:n.mailbox},null,8,["mailbox"])])])])):(zd(),qd("div",aCe,[iu(d,{rows:5,animated:""})]))])}]]);var sCe=zq,oCe=/\s/;var rCe=function(e){for(var t=e.length;t--&&oCe.test(e.charAt(t)););return t},lCe=/^\s+/;var cCe=tK,dCe=iK;var uCe=function(e){return e?e.slice(0,rCe(e)+1).replace(lCe,""):e},pCe=eX,hCe=function(e){return"symbol"==typeof e||dCe(e)&&"[object Symbol]"==cCe(e)},fCe=/^[-+]0x[0-9a-f]+$/i,gCe=/^0b[01]+$/i,mCe=/^0o[0-7]+$/i,_Ce=parseInt;var vCe=eX,bCe=function(){return sCe.Date.now()},yCe=function(e){if("number"==typeof e)return e;if(hCe(e))return NaN;if(pCe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pCe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=uCe(e);var i=gCe.test(e);return i||mCe.test(e)?_Ce(e.slice(2),i?2:8):fCe.test(e)?NaN:+e},xCe=Math.max,SCe=Math.min;var wCe=function(e,t,i){var a,n,s,o,r,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var i=a,s=n;return a=n=void 0,c=t,o=e.apply(s,i)}function f(e){var i=e-l;return void 0===l||i>=t||i<0||u&&e-c>=s}function g(){var e=bCe();if(f(e))return m(e);r=setTimeout(g,function(e){var i=t-(e-l);return u?SCe(i,s-(e-c)):i}(e))}function m(e){return r=void 0,p&&a?h(e):(a=n=void 0,o)}function _(){var e=bCe(),i=f(e);if(a=arguments,n=this,l=e,i){if(void 0===r)return function(e){return c=e,r=setTimeout(g,t),d?h(e):o}(l);if(u)return clearTimeout(r),r=setTimeout(g,t),h(l)}return void 0===r&&(r=setTimeout(g,t)),o}return t=yCe(t)||0,vCe(i)&&(d=!!i.leading,s=(u="maxWait"in i)?xCe(yCe(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),_.cancel=function(){void 0!==r&&clearTimeout(r),c=0,a=l=n=r=void 0},_.flush=function(){return void 0===r?o:m(bCe())},_};const CCe=Dk(wCe),ECe={class:"fs_field_label"},kCe={key:0,class:"fs_all_tickets fs_move_tickets_container"},TCe={class:"fs_box_wrapper"},ACe={class:"fs_box_head"},RCe={class:"fs_box_body fs_move_ticket_list_body"},ICe={class:"fs_move_ticket_header"},DCe={key:0,class:"fs_selected_count"},OCe={key:0,class:"fs_select_all_section"},MCe={class:"fs_select_all_container"},NCe={class:"fs_select_all"},LCe={class:"fs_total_count"},PCe={class:"fs_tickets_list fs_move_tickets_list"},FCe=["onClick"],BCe={class:"fs_ticket_main_content"},$Ce={class:"fs_ticket_left_section"},VCe={class:"fs_ticket_title_row"},UCe={class:"fs_ticket_title_group"},HCe={class:"fs_ticket_title"},zCe={key:0,class:"fs_ticket_author"},YCe={key:1,class:"fs_ticket_product_badge"},GCe={key:0,class:"fs_status_dot fs_status_dot_new"},WCe={key:0,class:"fs_tickets_empty_state"},jCe=["src"],qCe={key:1,class:"fs_pagination_wrapper"},KCe={class:"fs_pagination_left"},XCe={class:"fs_pagination_right"},ZCe={class:"fs_dialog_footer"},QCe={key:0};const JCe={class:"fs_mailboxes"},eEe={class:"fs_box_wrapper"},tEe={class:"fs_component_header"},iEe={class:"fs_component_head"},aEe={class:"fs_page_title"},nEe={class:"fs_box_actions"},sEe={key:0,class:"fs_mailbox_grid"},oEe={class:"fs_mailbox_header"},rEe={class:"fs_mailbox_title"},lEe={class:"fs_title_row"},cEe={key:0,class:"fs_status_badge fs_status_active"},dEe={class:"fs_mailbox_header_actions"},uEe=["src"],pEe=["src"],hEe={class:"fs_mailbox_body"},fEe={class:"fs_mailbox_field"},gEe={class:"fs_mailbox_field_label"},mEe={class:"fs_mailbox_field_value"},_Ee={class:"fs_mailbox_field_row"},vEe={class:"fs_mailbox_field"},bEe={class:"fs_mailbox_field_label"},yEe={class:"fs_mailbox_field_value"},xEe={class:"fs_mailbox_field"},SEe={class:"fs_mailbox_field_label"},wEe={class:"fs_mailbox_field_value"},CEe={key:1,class:"fs_table_container fs_skeleton_loader"},EEe={class:"fs_field_label"},kEe={key:0,class:"fs_dialog_footer"},TEe={class:"fs_field_label"},AEe={class:"fs_dialog_footer"};const REe=lH({name:"ChooseMailBox",components:{MoveTicket:lH({name:"MoveTicket",components:{Pagination:Pq,RemoteSelector:tte,NarrowPromo:Fne},props:["mailbox_id","mailboxes"],emits:["update_mailbox","reset_me"],data(){return{count:10,loading:!1,pagination:{current_page:1,total:0,per_page:10},move_ticket:{show_modal:!!this.mailbox_id,box_id:this.mailbox_id,fallback_box:"",move_type:"All",selected_tickets:[]},show_ticket_selection:!1,tickets:[],filters:{status_type:"",product_id:"",mailbox_id:this.mailbox_id,customer_id:"",ticket_title:"",notes:""},customers:[],products:[],filtered:!1,moving:!1,moveTypes:["All","Custom"]}},computed:{selectAllChecked:{get(){return this.tickets.length>0&&this.move_ticket.selected_tickets.length===this.tickets.length},set(){}},isIndeterminate(){return this.move_ticket.selected_tickets.length>0&&this.move_ticket.selected_tickets.length<this.tickets.length}},created(){this.debouncedTicketTitleSearch=CCe(()=>{this.pagination.current_page=1,this.showTicket("Custom")},350)},methods:{load(){this.count+=5},closeModal(){this.$emit("reset_me")},customerChangeHandler(e){this.filters.customer_id=e??"",this.pagination.current_page=1,this.showTicket("Custom")},productChangeHandler(e){this.filters.product_id=e??"",this.pagination.current_page=1,this.showTicket("Custom")},showTicket(e){if("Custom"===e){this.loading=!0;let e={order_by:"id",order_type:"DESC",filter_type:"simple",filters:this.filters,page:this.pagination.current_page,per_page:this.pagination.per_page};this.$get(`mailboxes/${this.mailbox_id}/tickets`,e).then(e=>{this.tickets=e.tickets.data,this.pagination.total=e.tickets.total,this.show_ticket_selection=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}else this.move_ticket.selected_tickets=[],this.show_ticket_selection=!1,this.pagination.total=0},setPage(e){this.page=e},toggleTicketSelection(e){const t=this.move_ticket.selected_tickets.indexOf(e);t>-1?this.move_ticket.selected_tickets.splice(t,1):this.move_ticket.selected_tickets.push(e)},handleSelectAll(e){this.move_ticket.selected_tickets=e?this.tickets.map(e=>e.id):[]},moveTicketMailBox(){return this.move_ticket.fallback_box&&this.move_ticket.box_id?this.move_ticket.move_type?"Custom"==this.move_ticket.move_type&&Object.keys(this.move_ticket.selected_tickets).length<1?(alert(this.$t("Please select ticket first")),!1):(this.moving=!0,void this.$put(`mailboxes/${this.move_ticket.box_id}/move_tickets`,{new_box_id:this.move_ticket.fallback_box,move_type:this.move_ticket.move_type,ticket_ids:this.move_ticket.selected_tickets}).then(e=>{this.show_ticket_selection=!1,this.move_ticket={show_modal:!1,box_id:this.mailbox_id,fallback_box:"",move_type:"All",selected_tickets:[]},this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("update_mailbox")}).catch(e=>{this.$handleError(e)}).always(()=>{this.moving=!1})):(alert(this.$t("Please provide You want to move all or custom selected tickets?")),!1):(alert(this.$t("Please provide fallback box")),!1)},previewMove(){if(!this.move_ticket.fallback_box)return void alert(this.$t("Please select a fallback business box"));const e="All"===this.move_ticket.move_type?"all tickets":`${this.move_ticket.selected_tickets.length} selected tickets`;alert(`Preview: Moving ${e} to the selected business box`)}}},[["render",function(e,t,i,a,n,s){const o=Jl("InfoFilled"),r=KS,l=ZC,c=wA,d=SA,u=oC,p=sC,h=Jl("remote-selector"),f=hI,g=cE,m=pI,_=AR,v=Jl("pagination"),b=Jl("NarrowPromo"),y=Sk,x=dM,S=WB;return zd(),Kd(x,{title:e.$t("Move all tickets to new Business Box"),modelValue:n.move_ticket.show_modal,"onUpdate:modelValue":t[10]||(t[10]=e=>n.move_ticket.show_modal=e),width:"60%",onClose:s.closeModal,class:"fs_dialog fs_move_ticket_dialog"},oc({default:vr(()=>[iu(p,{"label-position":"top"},{default:vr(()=>[iu(u,null,{default:vr(()=>[tu("span",ECe,[su(me(e.$t("Fallback Business"))+" ",1),iu(l,{effect:"dark",content:e.$t("select_new_business_to_move_tickets"),placement:"top","popper-class":"fs-tooltip"},{default:vr(()=>[iu(r,null,{default:vr(()=>[iu(o)],void 0),_:1})],void 0),_:1},8,["content"])]),iu(d,{modelValue:n.move_ticket.fallback_box,"onUpdate:modelValue":t[0]||(t[0]=e=>n.move_ticket.fallback_box=e),placeholder:e.$t("Select Business Box"),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.mailboxes,e=>(zd(),Kd(c,{disabled:e.id==n.move_ticket.box_id,key:e.id,value:e.id,label:e.name},null,8,["disabled","value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1}),iu(u,{label:e.$t("All or Custom")},{default:vr(()=>[iu(d,{modelValue:n.move_ticket.move_type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.move_ticket.move_type=e),placeholder:e.$t("Want to move all or custom selected"),onChange:s.showTicket,class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.moveTypes,e=>(zd(),Kd(c,{key:e,value:e,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange"])],void 0),_:1},8,["label"])],void 0),_:1}),n.show_ticket_selection?(zd(),qd(Fd,{key:0},[e.has_pro?(zd(),qd("div",kCe,[tu("div",TCe,[tu("h4",null,me(e.$t("Filter ticket")),1),t[11]||(t[11]=tu("hr",null,null,-1)),tu("div",ACe,[iu(p,{data:n.filters,"label-position":"top"},{default:vr(()=>[iu(m,{gutter:20},{default:vr(()=>[iu(f,{span:8},{default:vr(()=>[iu(u,{label:e.$t("Select Customer")},{default:vr(()=>[iu(h,{modelValue:n.filters.customer_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.filters.customer_id=e),response_key:"customers",api_path:"customers",value_selector:"id",label_joiner:" - ",label_selectors:["full_name","email"],onChange:s.customerChangeHandler,clearable:""},null,8,["modelValue","onChange"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(f,{span:8},{default:vr(()=>[iu(u,{label:e.$t("Select Product")},{default:vr(()=>[iu(h,{modelValue:n.filters.product_id,"onUpdate:modelValue":t[3]||(t[3]=e=>n.filters.product_id=e),response_key:"products",api_path:"products",value_selector:"id",label_selectors:["title"],onChange:s.productChangeHandler,clearable:""},null,8,["modelValue","onChange"])],void 0),_:1},8,["label"])],void 0),_:1}),iu(f,{span:7},{default:vr(()=>[iu(u,{label:e.$t("Ticket Title"),class:"fs_ticket_title_filter_item"},{default:vr(()=>[iu(g,{modelValue:n.filters.ticket_title,"onUpdate:modelValue":t[4]||(t[4]=e=>n.filters.ticket_title=e),placeholder:e.$t("Filter by ticket title"),onInput:e.debouncedTicketTitleSearch,class:"fs_text_input fs_ticket_title_input"},null,8,["modelValue","placeholder","onInput"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1})],void 0),_:1},8,["data"])]),tu("div",RCe,[tu("div",ICe,[tu("h4",null,me(e.$t("Select ticket that you want to move")),1),n.move_ticket.selected_tickets.length?(zd(),qd("span",DCe,me(n.move_ticket.selected_tickets.length)+" "+me(e.$t("selected")),1)):ru("",!0)]),n.tickets.length?(zd(),qd("div",OCe,[tu("div",MCe,[tu("div",NCe,[iu(_,{indeterminate:s.isIndeterminate,modelValue:s.selectAllChecked,"onUpdate:modelValue":t[5]||(t[5]=e=>s.selectAllChecked=e),onChange:s.handleSelectAll},{default:vr(()=>[su(me(e.$t("Select All")),1)],void 0),_:1},8,["indeterminate","modelValue","onChange"]),tu("span",LCe,me(n.move_ticket.selected_tickets.length)+" "+me(e.$t("out of"))+" "+me(n.pagination.total)+" "+me(e.$t("tickets")),1)])])])):ru("",!0),br((zd(),qd("div",PCe,[(zd(!0),qd(Fd,null,sc(n.tickets,e=>(zd(),qd("div",{class:se(["fs_ticket_item",{fs_ticket_selected:n.move_ticket.selected_tickets.includes(e.id)}]),key:e.id,onClick:t=>s.toggleTicketSelection(e.id)},[tu("div",BCe,[tu("div",$Ce,[tu("div",VCe,[iu(_,{onClick:t[6]||(t[6]=Ah(()=>{},["stop"])),"model-value":n.move_ticket.selected_tickets.includes(e.id),onChange:t=>s.toggleTicketSelection(e.id)},null,8,["model-value","onChange"]),tu("div",UCe,[tu("span",HCe,me(e.title),1),e.customer?(zd(),qd("span",zCe," by "+me(e.customer.first_name)+" "+me(e.customer.last_name)+" #"+me(e.id),1)):ru("",!0),e.product&&e.product.title?(zd(),qd("span",YCe,me(e.product.title),1)):ru("",!0)]),"new"===e.status?(zd(),qd("span",GCe)):ru("",!0)])])])],10,FCe))),128)),n.tickets.length||n.loading?ru("",!0):(zd(),qd("div",WCe,[tu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,jCe),tu("p",null,me(e.$t("No tickets found")),1)]))])),[[S,n.loading]]),n.tickets.length?(zd(),qd("div",qCe,[tu("span",KCe,[tu("p",null,me(e.$t("Page"))+" "+me(n.pagination.current_page)+" "+me(e.$t("of"))+" "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1)]),tu("span",XCe,[iu(v,{onFetch:t[7]||(t[7]=e=>s.showTicket("Custom")),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])])])):(zd(),Kd(b,{key:1,heading:e.$t("move_ticket_by_selecting"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_move_ticket"},null,8,["heading","description","button-text"]))],64)):ru("",!0)],void 0),_:2},[e.has_pro?{name:"footer",fn:vr(()=>[tu("span",ZCe,[iu(y,{onClick:t[8]||(t[8]=e=>n.move_ticket.show_modal=!1),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(y,{disabled:n.moving,type:"success",onClick:t[9]||(t[9]=e=>s.moveTicketMailBox()),class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Move"))+" ",1),n.move_ticket.selected_tickets.length>0?(zd(),qd("span",QCe," ( "+me(n.move_ticket.selected_tickets.length)+" )",1)):ru("",!0)],void 0),_:1},8,["disabled"])),[[S,n.moving]])])]),key:"0"}:void 0]),1032,["title","modelValue","onClose"])}]]),NarrowPromo:Fne},data:()=>({fetching:!0,mailboxes:[],create_modal:!1,new_business:{box_type:"web",name:"",email:"",mapped_email:"",customer_portal_page_id:""},creating:!1,deleting_box:{show_modal:!1,box_id:"",fallback_box:""},deleting:!1,change_box:"",set_default:""}),computed:{can_create_mailbox(){return!!this.appVars.has_pro||!(this.mailboxes.length>1)}},mounted(){this.fetch(),this.$setTitle(this.$t("Business Inboxes"))},methods:{sortMailboxes:e=>e.sort((e,t)=>"yes"===e.is_default&&"yes"!==t.is_default?-1:"yes"!==e.is_default&&"yes"===t.is_default?1:0),fetch(){this.fetching=!0,this.$get("mailboxes").then(e=>{this.mailboxes=this.sortMailboxes(e.mailboxes)}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},update_mailbox(e){this.change_box="",this.mailboxes=this.sortMailboxes(e)},showNewBusinessModal(){this.new_business={box_type:"web",name:"",email:"",mapped_email:"",customer_portal_page_id:""},this.create_modal=!0},createMailBox(){this.creating=!0,this.$post("mailboxes",{business:this.new_business}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),"email"==e.mailbox.box_type?this.$router.push({name:"email_piping",params:{box_id:e.mailbox.id}}):this.$router.push({name:"box_settings",params:{box_id:e.mailbox.id}})}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1})},handleBoxCommand(e){"delete"==e.type?(this.deleting_box.box_id=e.box_id,this.deleting_box.show_modal=!0):"move"==e.type?this.change_box=e.box_id:"set_default"==e.type&&this.setAsDefault(e.box_id)},setAsDefault(e){this.$put(`mailboxes/${e}/set_default`).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetch()}).catch(e=>{this.$handleError(e)})},deleteMailBox(){this.deleting=!0,this.$del(`mailboxes/${this.deleting_box.box_id}`,{fallback_id:this.deleting_box.fallback_box}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.deleting_box.show_modal=!1,this.fetch()}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})},reset_me(){this.change_box=""}}},[["render",function(e,t,i,a,n,s){const o=Sk,r=nN,l=sN,c=aN,d=AL,u=cE,p=oC,h=Jl("InfoFilled"),f=KS,g=ZC,m=WR,_=jR,v=sC,b=Jl("NarrowPromo"),y=dM,x=wA,S=SA,w=Jl("move-ticket"),C=WB;return zd(),qd("div",JCe,[tu("div",eEe,[tu("div",tEe,[tu("div",iEe,[tu("h3",aEe,me(e.$t("Business Inboxes")),1)]),tu("div",nEe,[iu(o,{class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.showNewBusinessModal()),icon:"Plus"},{default:vr(()=>[su(me(e.$t("Add New Business Box")),1)],void 0),_:1})])]),n.fetching?(zd(),qd("div",CEe,[iu(d,{rows:5,animated:""})])):(zd(),qd("div",sEe,[(zd(!0),qd(Fd,null,sc(n.mailboxes,t=>(zd(),qd("div",{key:t.id,class:"fs_mailbox_card"},[tu("div",oEe,[tu("div",rEe,[tu("div",lEe,[tu("h4",null,me(t.name),1),"yes"===t.is_default?(zd(),qd("span",cEe,me(e.$t("Default")),1)):ru("",!0)])]),tu("div",dEe,[iu(o,{class:"fs_settings_button",onClick:i=>e.$router.push({name:"box_settings",params:{box_id:t.id}})},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/gear.svg"},null,8,uEe)],void 0),_:1},8,["onClick"]),iu(c,{onCommand:s.handleBoxCommand,class:"fs_mailbox_actions",trigger:"click"},{dropdown:vr(()=>[iu(l,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:vr(()=>["yes"!==t.is_default?(zd(),Kd(r,{key:0,command:{type:"set_default",box_id:t.id},icon:"FolderChecked"},{default:vr(()=>[su(me(e.$t("Set as Default")),1)],void 0),_:1},8,["command"])):ru("",!0),t.tickets_count>0?(zd(),Kd(r,{key:1,command:{type:"move",box_id:t.id},icon:"EditPen"},{default:vr(()=>[su(me(e.$t("Move Tickets")),1)],void 0),_:1},8,["command"])):ru("",!0),iu(r,{command:{type:"delete",box_id:t.id},icon:"Delete"},{default:vr(()=>[su(me(e.$t("Delete")),1)],void 0),_:1},8,["command"])],void 0),_:2},1024)]),default:vr(()=>[iu(o,{class:"fs_action_button",text:""},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/more.svg"},null,8,pEe)],void 0),_:1})],void 0),_:2},1032,["onCommand"])])]),tu("div",hEe,[tu("div",fEe,[tu("span",gEe,me(e.$t("Email")),1),tu("span",mEe,me(t.email),1)]),tu("div",_Ee,[tu("div",vEe,[tu("span",bEe,me(e.$t("Type")),1),tu("span",yEe,me(t.box_type),1)]),tu("div",xEe,[tu("span",SEe,me(e.$t("Tickets")),1),tu("span",wEe,me(t.tickets_count),1)])])])]))),128))]))]),iu(y,{title:e.$t("Add a New Business Inbox"),modelValue:n.create_modal,"onUpdate:modelValue":t[6]||(t[6]=e=>n.create_modal=e),width:"60%",class:"fs_dialog"},{footer:vr(()=>[s.can_create_mailbox?(zd(),qd("span",kEe,[iu(o,{class:"fs_outline_btn",onClick:t[4]||(t[4]=e=>n.create_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(o,{class:"fs_filled_btn",onClick:t[5]||(t[5]=e=>s.createMailBox())},{default:vr(()=>[su(me(e.$t("Add Business Inbox")),1)],void 0),_:1})])):ru("",!0)]),default:vr(()=>[s.can_create_mailbox?(zd(),Kd(v,{key:0,data:n.new_business,"label-position":"top"},{default:vr(()=>[iu(p,{label:e.$t("Inbox Name")},{default:vr(()=>[iu(u,{type:"text",class:"fs_text_input fs_text_input_40",modelValue:n.new_business.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.new_business.name=e)},null,8,["modelValue"])],void 0),_:1},8,["label"]),iu(p,null,{label:vr(()=>[tu("span",EEe,[su(me(e.$t("Support Inbox Email"))+" ",1),iu(g,{effect:"dark",content:e.$t("email_can_be_send"),placement:"top","popper-class":"fs-tooltip"},{default:vr(()=>[iu(f,null,{default:vr(()=>[iu(h)],void 0),_:1})],void 0),_:1},8,["content"])])]),default:vr(()=>[iu(u,{type:"email",class:"fs_text_input fs_text_input_40",modelValue:n.new_business.email,"onUpdate:modelValue":t[2]||(t[2]=e=>n.new_business.email=e)},null,8,["modelValue"])],void 0),_:1}),iu(p,{label:e.$t("Support Channel")},{default:vr(()=>[iu(_,{class:"fs_choose_mailbox_type",modelValue:n.new_business.box_type,"onUpdate:modelValue":t[3]||(t[3]=e=>n.new_business.box_type=e)},{default:vr(()=>[iu(m,{value:"web"},{default:vr(()=>[su(me(e.$t("Web Based")),1)],void 0),_:1}),iu(m,{disabled:!e.appVars.has_email_parser,value:"email"},{default:vr(()=>[su(me(e.$t("email_based_heading")),1)],void 0),_:1},8,["disabled"])],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])):(zd(),Kd(b,{key:1,heading:e.$t("shared_inbox_message"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_shared_inbox"},null,8,["heading","description","button-text"]))],void 0),_:1},8,["title","modelValue"]),iu(y,{title:e.$t("Are You Sure? You can not undo this action."),modelValue:n.deleting_box.show_modal,"onUpdate:modelValue":t[10]||(t[10]=e=>n.deleting_box.show_modal=e),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",AEe,[iu(o,{class:"fs_outline_btn",onClick:t[8]||(t[8]=e=>n.deleting_box.show_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(o,{disabled:n.deleting,class:"fs_filled_btn",onClick:t[9]||(t[9]=e=>s.deleteMailBox())},{default:vr(()=>[su(me(e.$t("Confirm Delete This Business")),1)],void 0),_:1},8,["disabled"])),[[C,n.deleting]])])]),default:vr(()=>[iu(v,{data:n.deleting_box,"label-position":"top"},{default:vr(()=>[iu(p,null,{label:vr(()=>[tu("span",TEe,[su(me(e.$t("Support Inbox Email"))+" ",1),iu(g,{effect:"dark",content:e.$t("select_fallback_business"),placement:"top","popper-class":"fs-tooltip"},{default:vr(()=>[iu(f,null,{default:vr(()=>[iu(h)],void 0),_:1})],void 0),_:1},8,["content"])])]),default:vr(()=>[iu(S,{modelValue:n.deleting_box.fallback_box,"onUpdate:modelValue":t[7]||(t[7]=e=>n.deleting_box.fallback_box=e),class:"fs_select_field",placeholder:e.$t("Select related Product/Service")},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.mailboxes,e=>(zd(),Kd(x,{disabled:e.id==n.deleting_box.box_id,key:e.id,value:e.id,label:e.name},null,8,["disabled","value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1})],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"]),n.change_box?(zd(),Kd(w,{key:0,mailbox_id:n.change_box,mailboxes:n.mailboxes,onUpdate_mailbox:t[11]||(t[11]=e=>s.fetch()),onReset_me:s.reset_me},null,8,["mailbox_id","mailboxes","onReset_me"])):ru("",!0)])}]]),IEe={class:"fs_mailbox_settings_container"},DEe={class:"fs_mailbox_settings_header"},OEe={class:"fs_mailbox_settings_header_left"},MEe={class:"fs_main_header_text"},NEe={class:"fs_sub_text"},LEe={class:"fs_settings_form"},PEe={class:"fs_form_group"},FEe={class:"fs_form_label"},BEe={class:"fs_form_group"},$Ee={class:"fs_field_label"},VEe={class:"fs_form_group"},UEe={class:"fs_field_label"},HEe={key:0,class:"fs_form_group"},zEe={class:"fs_sub_text"},YEe={key:1,class:"fs_form_group"},GEe={class:"fs_form_label"},WEe={class:"fs_form_group"},jEe={class:"fs_form_label"},qEe={class:"fs_color_picker_wrapper"},KEe={class:"fs_color_value"},XEe={class:"fs_form_group"};const ZEe=lH({name:"MailBoxSettings",components:{WpEditor:Qee},props:["mailbox"],data(){return{shortCodes:{"{{customer.first_name}}":this.$t("Customer First name"),"{{customer.last_name}}":this.$t("Customer Last name"),"{{customer.email}}":this.$t("Customer Email"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.public_url}}":this.$t("Ticket Public URL"),"{{ticket.title}}":this.$t("Ticket Title")},saving:!1}},mounted(){this.mailbox.settings.color||(this.mailbox.settings.color="#189877")},methods:{saveSettings(){if("email"==this.mailbox.box_type&&this.mailbox.settings.admin_email_address==this.mailbox.email)return this.$notify({type:"error",message:this.$t("Your Admin Email Address and Support From Email should not be same. Please use a different email address."),position:"bottom-right"}),!1;this.saving=!0,this.$put(`mailboxes/${this.mailbox.id}`,{business:this.mailbox}).then(e=>{this.$notify({type:"success",position:"bottom-right",message:e.message})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}}},[["render",function(e,t,i,a,n,s){const o=Sk,r=cE,l=Jl("InfoFilled"),c=KS,d=ZC,u=Jl("router-link"),p=Jl("wp-editor"),h=oD,f=AR,g=WB;return zd(),qd("div",IEe,[tu("div",DEe,[tu("div",OEe,[tu("h1",MEe,me(e.$t("Inbox Settings")),1),tu("p",NEe,me(e.$t("The following settings will be applied to the newly created")),1)]),br((zd(),Kd(o,{type:"primary",class:"fs_save_settings_btn",disabled:n.saving,onClick:t[0]||(t[0]=e=>s.saveSettings())},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled"])),[[g,n.saving]])]),tu("div",LEe,[tu("div",PEe,[tu("label",FEe,me(e.$t("Inbox Name")),1),iu(r,{modelValue:i.mailbox.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.mailbox.name=e),placeholder:e.$t("Inbox Name"),class:"fs_text_input fs_text_input_40"},null,8,["modelValue","placeholder"])]),tu("div",BEe,[tu("span",$Ee,[su(me(e.$t("Support Inbox Email"))+" ",1),iu(d,{effect:"dark",content:e.$t("select_fallback_business"),placement:"top","popper-class":"fs-tooltip"},{default:vr(()=>[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1})],void 0),_:1},8,["content"])]),iu(r,{modelValue:i.mailbox.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.mailbox.email=e),disabled:i.mailbox.mapped_email&&"email"==i.mailbox.box_type,type:"email",placeholder:e.$t("Support Inbox Email"),class:"fs_text_input fs_text_input_40"},null,8,["modelValue","disabled","placeholder"])]),tu("div",VEe,[tu("span",UEe,[su(me(e.$t("Admin Email Address"))+" ",1),iu(d,{effect:"dark",content:e.$t("admin_get_email"),placement:"top","popper-class":"fs-tooltip"},{default:vr(()=>[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1})],void 0),_:1},8,["content"])]),iu(r,{modelValue:i.mailbox.settings.admin_email_address,"onUpdate:modelValue":t[3]||(t[3]=e=>i.mailbox.settings.admin_email_address=e),type:"email",class:"fs_text_input fs_text_input_40"},null,8,["modelValue"])]),"email"!=i.mailbox.box_type||i.mailbox.mapped_email?ru("",!0):(zd(),qd("div",HEe,[tu("p",zEe,[su(me(e.$t("Please configure"))+" ",1),t[7]||(t[7]=tu("br",null,null,-1)),iu(u,{to:{name:"email_piping",params:{box_id:i.mailbox.id}},class:"fs_doc_link"},{default:vr(()=>[su(me(e.$t("your email piping settings first")),1)],void 0),_:1},8,["to"])])])),e.has_pro?(zd(),qd("div",YEe,[tu("label",GEe,me(e.$t("Email Footer For Customers")),1),iu(p,{height:200,modelValue:i.mailbox.email_footer,"onUpdate:modelValue":t[4]||(t[4]=e=>i.mailbox.email_footer=e),editor_shortcodes:n.shortCodes,class:"fs_custom_editor"},null,8,["modelValue","editor_shortcodes"])])):ru("",!0),tu("div",WEe,[tu("label",jEe,me(e.$t("Inbox Color")),1),tu("div",qEe,[iu(h,{modelValue:i.mailbox.settings.color,"onUpdate:modelValue":t[5]||(t[5]=e=>i.mailbox.settings.color=e),size:"large",style:{width:"30px",height:"30px"}},null,8,["modelValue"]),tu("span",KEe,me(i.mailbox.settings.color||"#189877"),1)])]),tu("div",XEe,[iu(f,{modelValue:i.mailbox.settings.hide_business_box,"onUpdate:modelValue":t[6]||(t[6]=e=>i.mailbox.settings.hide_business_box=e),"true-value":"yes","false-value":"no",class:"fs_custom_checkbox"},{default:vr(()=>[su(me(e.$t("Hide Badge in Tickets")),1)],void 0),_:1},8,["modelValue"])])])])}]]),QEe={class:"fs_box_email_settings"},JEe={class:"fs_mailbox_settings_header"},eke={class:"fs_mailbox_settings_header_left"},tke={class:"fs_main_header_text"},ike={class:"fs_sub_text"},ake={key:0,class:"fs_skeleton_loader"},nke={key:1,class:"fs_email_settings_table"},ske={class:"fs_table"},oke={class:"fs_table_header_cell fs_title_col"},rke={class:"fs_table_header_cell fs_status_col"},lke={class:"fs_table_header_cell fs_manage_col"},cke={class:"fs_table_cell"},dke={class:"fs_table_cell"},uke={class:"fs_table_cell"},pke=["src"],hke={key:0,class:"fs_email_settings_modal_title"},fke={class:"fs_field_label"},gke={style:{display:"flex","align-items":"center",gap:"4px"}},mke=["data-tooltip"],_ke={class:"fs_checkbox_group"},vke={class:"fs_smartcodes_section"},bke={class:"fs_smartcodes_list"},yke=["onClick"],xke={class:"fs_smartcode_text"},Ske={class:"fs_dialog_footer"};const wke=lH({name:"BoxEmailSettings",components:{WpEditor:Qee,Modal:vne},props:["box_id","mailbox"],data:()=>({active_email:"",email_types:[],active_email_settings:!1,configs:[],edit_modal:!1,loading:!1,saving:!1,allowed_mails_for_attachments:["ticket_created_email_to_customer","ticket_created_email_to_admin","ticket_created_by_agent_email_to_customer","ticket_created_by_agent_on_behalf_email_to_customer","ticket_replied_by_agent_email_to_customer","ticket_replied_by_customer_email_to_admin"]}),computed:{shortCodes(){return"ticket_created_email_to_customer"==this.active_email||"ticket_created_email_to_admin"==this.active_email?{"{{customer.first_name}}":this.$t("Customer First Name"),"{{customer.last_name}}":this.$t("Customer Last Name"),"{{customer.full_name}}":this.$t("Customer Full Name"),"{{customer.email}}":this.$t("Customer Email"),"{{ticket.admin_url}}":this.$t("Ticket Link(Agent)"),"{{ticket.public_url}}":this.$t("Ticket Link(Customer)"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.title}}":this.$t("Ticket Title"),"{{ticket.content}}":this.$t("Ticket Content"),"{{business.name}}":this.$t("Business Name")}:"ticket_agent_on_change"==this.active_email?{"{{ticket.admin_url}}":this.$t("Ticket Link(Agent)"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.title}}":this.$t("Ticket Title"),"{{ticket.content}}":this.$t("Ticket Content"),"{{business.name}}":this.$t("Business Name"),"{{agent.first_name}}":this.$t("Assigned Agent First Name"),"{{agent.last_name}}":this.$t("AssignedAgent Last Name"),"{{agent.full_name}}":this.$t("Assigned Agent Full Name"),"{{assigner.first_name}}":this.$t("Assigner First Name"),"{{assigner.last_name}}":this.$t("Assigner Last Name"),"{{assigner.full_name}}":this.$t("Assigner Full Name")}:{"{{customer.first_name}}":this.$t("Customer First Name"),"{{customer.last_name}}":this.$t("Customer Last Name"),"{{customer.full_name}}":this.$t("Customer Full Name"),"{{customer.email}}":this.$t("Customer Email"),"{{ticket.admin_url}}":this.$t("Ticket Link(Agent)"),"{{ticket.public_url}}":this.$t("Ticket Link(Customer)"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.title}}":this.$t("Ticket Title"),"{{ticket.content}}":this.$t("Ticket Content"),"{{business.name}}":this.$t("Business Name"),"{{agent.first_name}}":this.$t("Agent First Name"),"{{agent.last_name}}":this.$t("Agent Last Name"),"{{agent.full_name}}":this.$t("Agent Full Name"),"{{response.title}}":this.$t("Response Title"),"{{response.content}}":this.$t("Response Content"),"{{agent.title}}":this.$t("Agent Title")}}},methods:{getConfigs(){this.loading=!0,this.$get(`mailboxes/${this.box_id}/email_configs`).then(e=>{this.configs=e.email_configs,this.email_types=e.email_keys}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editEmail(e){this.$get(`mailboxes/${this.box_id}/email_settings`,{email_type:e.key}).then(e=>{this.active_email_settings=e.email_settings,this.edit_modal=!this.edit_modal}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1}),this.active_email=e.key,this.active_email_settings=!1},saveSettings(){this.saving=!0,this.$put(`mailboxes/${this.box_id}/email_settings`,{email_type:this.active_email_settings.key,email_settings:this.active_email_settings}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.edit_modal=!1,this.loading=!0,this.getConfigs()}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},insertShortcodeInSubject(e){let t="";"string"==typeof e?t=e:e&&e.target&&"_value"in e.target?t=e.target._value:e&&e.target&&"value"in e.target&&(t=e.target.value),t&&this.$nextTick(()=>{const e=document.querySelector(".fs_subject_input_wrapper .el-input__inner");if(e){const i=e.selectionStart,a=e.selectionEnd,n=this.active_email_settings.email_subject||"",s=n.substring(0,i),o=n.substring(a),r=s+t+o;this.active_email_settings.email_subject=r,this.$nextTick(()=>{e.focus(),e.setSelectionRange(i+t.length,i+t.length)})}})}},mounted(){this.getConfigs()}},[["render",function(e,t,i,a,n,s){const o=AL,r=Sk,l=Jl("InfoFilled"),c=KS,d=Jl("ArrowDown"),u=nN,p=sN,h=aN,f=cE,g=oC,m=Jl("wp-editor"),_=AR,v=sC,b=dM,y=WB;return zd(),qd(Fd,null,[tu("div",QEe,[tu("div",JEe,[tu("div",eke,[tu("h1",tke,me(e.$t("Email Settings")),1),tu("p",ike,me(e.$t("The following settings will be applied to the newly created")),1)])]),n.configs.length?(zd(),qd("div",nke,[tu("table",ske,[tu("thead",null,[tu("tr",null,[tu("th",oke,me(e.$t("Title")),1),tu("th",rke,me(e.$t("Status")),1),tu("th",lke,me(e.$t("Manage")),1)])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(n.configs,t=>(zd(),qd("tr",{key:t.key,class:"fs_table_row"},[tu("td",cke,me(t.title),1),tu("td",dke,[tu("div",{class:se(["fs_status_badge","yes"===t.status?"fs_status_active":"fs_status_inactive"])},[tu("span",null,me("yes"===t.status?e.$t("Active"):e.$t("Closed")),1)],2)]),tu("td",uke,[iu(r,{onClick:e=>s.editEmail(t),text:"",class:"fs_edit_btn"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/edit.svg",alt:""},null,8,pke)],void 0),_:1},8,["onClick"])])]))),128))])])])):(zd(),qd("div",ake,[iu(o,{rows:5,animated:""})]))]),n.active_email_settings?(zd(),Kd(b,{key:0,"append-to-body":!0,title:n.active_email_settings&&n.active_email_settings.title?n.active_email_settings.title:e.$t("Email Settings"),modelValue:n.edit_modal,"onUpdate:modelValue":t[5]||(t[5]=e=>n.edit_modal=e),width:"60%",class:"fs_dialog fs_email_settings_modal"},{footer:vr(()=>[tu("span",Ske,[iu(r,{class:"fs_outline_btn",onClick:t[4]||(t[4]=()=>n.edit_modal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(r,{disabled:n.saving,onClick:s.saveSettings,class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled","onClick"])),[[y,n.saving]])])]),default:vr(()=>[iu(v,{"label-position":"top",data:n.active_email_settings},{default:vr(()=>[n.active_email_settings.description?(zd(),qd("h3",hke,me(n.active_email_settings.description),1)):ru("",!0),iu(g,{class:"fs_form_item"},{label:vr(()=>[tu("div",fke,[tu("span",gke,[su(me(e.$t("Email Subject"))+" ",1),tu("span",{class:"fs-email-subject-tooltip","data-tooltip":e.$t("can_not_edit_subject")},[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1})],8,mke)]),"no"!==n.active_email_settings.can_edit_subject?(zd(),Kd(h,{key:0,trigger:"click","popper-options":{strategy:"fixed"},class:"fs_subject_shortcode_dropdown"},{dropdown:vr(()=>[iu(p,{class:"fs_global_dropdown fs_shortcode_dropdown fs_table_more_actions_dropdown_menu"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.shortCodes,(e,t)=>(zd(),Kd(u,{key:t,value:t,onClick:s.insertShortcodeInSubject},{default:vr(()=>[su(me(e),1)],void 0),_:2},1032,["value","onClick"]))),128))],void 0),_:1})]),default:vr(()=>[iu(r,{size:"small",type:"primary"},{default:vr(()=>[su(me(e.$t("Smart Codes"))+" ",1),iu(c,null,{default:vr(()=>[iu(d)],void 0),_:1})],void 0),_:1})],void 0),_:1})):ru("",!0)])]),default:vr(()=>[iu(f,{ref:"subjectInput",class:"fs_text_input fs_text_input_40 fs_subject_input_wrapper",disabled:"no"==n.active_email_settings.can_edit_subject,modelValue:n.active_email_settings.email_subject,"onUpdate:modelValue":t[0]||(t[0]=e=>n.active_email_settings.email_subject=e),placeholder:e.$t("Email Subject")},null,8,["disabled","modelValue","placeholder"])],void 0),_:1}),iu(g,{label:e.$t("Email Body"),class:"fs_form_item"},{default:vr(()=>[iu(m,{editor_id:n.active_email_settings.key,modelValue:n.active_email_settings.email_body,"onUpdate:modelValue":t[1]||(t[1]=e=>n.active_email_settings.email_body=e),editor_shortcodes:s.shortCodes},null,8,["editor_id","modelValue","editor_shortcodes"])],void 0),_:1},8,["label"]),iu(g,{class:"fs_form_item"},{default:vr(()=>[tu("div",_ke,[iu(_,{"true-value":"yes","false-value":"no",modelValue:n.active_email_settings.status,"onUpdate:modelValue":t[2]||(t[2]=e=>n.active_email_settings.status=e)},{default:vr(()=>[su(me(e.$t("enable_email")),1)],void 0),_:1},8,["modelValue"]),"yes"==n.active_email_settings.status&&n.allowed_mails_for_attachments.includes(n.active_email_settings.key)?(zd(),Kd(_,{key:0,"true-value":"yes","false-value":"no",modelValue:n.active_email_settings.send_attachments,"onUpdate:modelValue":t[3]||(t[3]=e=>n.active_email_settings.send_attachments=e)},{default:vr(()=>[su(me(e.$t("Send Attachments")),1)],void 0),_:1},8,["modelValue"])):ru("",!0)])],void 0),_:1}),tu("div",vke,[tu("span",null,me(e.$t("Available Shortcodes")),1),tu("div",bke,[(zd(!0),qd(Fd,null,sc(s.shortCodes,(e,t)=>(zd(),qd("div",{key:t,class:"fs_smartcode_item",onClick:e=>s.insertShortcodeInSubject(t)},[tu("span",xke,me(e)+": "+me(t),1)],8,yke))),128))])])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ru("",!0)],64)}]]),Cke={class:"fs_box_email_settings"},Eke={key:0,class:"fs_mailbox_settings_header"},kke={class:"fs_mailbox_settings_header_left"},Tke={class:"fs_main_header_text"},Ake={key:1,class:"fs_skeleton_loader"},Rke={key:2,class:"fs_email_piping_content"},Ike={key:0,class:"fs_not_issued_state"},Dke={class:"fs_piping_title"},Oke={class:"fs_piping_description"},Mke={class:"fs_piping_form"},Nke={class:"fs_checkbox_wrapper"},Lke={target:"_blank",rel:"noopener",href:"https://fluentsupport.com/privacy-policy/email-piping-data-policy/",class:"fs_terms_link"},Pke={key:1,class:"fs_masked_email_form"},Fke={class:"fs_piping_title"},Bke={class:"fs_piping_description"},$ke={class:"fs_piping_form"},Vke={class:"fs_email_input_wrapper"},Uke=["src"],Hke={class:"fs_highlight"},zke={target:"_blank",rel:"noopener",href:"https://fluentsupport.com/docs/email-piping-email-based-support-ticket/",class:"fs_doc_link"},Yke={key:2,class:"fs_active_state"},Gke={class:"fs_piping_title"},Wke={class:"fs_piping_description"},jke={class:"fs_email_input_wrapper"},qke=["src"],Kke={key:3,class:"fs_error_state"},Xke={class:"fs_piping_title fs_error_title"},Zke={class:"fs_piping_description"},Qke={key:4,class:"fs_webhook_section"},Jke={class:"fs_webhook_content"},eTe={class:"fs_webhook_description"},tTe={class:"fs_email_input_wrapper"},iTe=["src"],aTe={key:3,class:"fs_error_message"};const nTe=lH({name:"MailBoxEmailPiping",props:["mailbox"],data:()=>({status:!1,email_pipe:!1,loading_pipe:!1,webhook_url:!1,is_custom_supported:!1,terms_agree:!1,issuing:!1,error_message:"",copied:!1}),methods:{async loadPipeStatus(){this.loading_pipe=!0,this.error_message="",await this.$get("email-box/"+this.mailbox.id+"/status").then(e=>{this.email_pipe=e.email_pipe,this.webhook_url=e.webhook_url,this.is_custom_supported=e.is_custom_supported,this.error_message=e.error_message}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading_pipe=!1})},async issueEmail(){this.issuing=!0,await this.$post("email-box/"+this.mailbox.id+"/issue-email").then(e=>{this.email_pipe=e.email_pipe}).catch(e=>{this.$handleError(e)}).always(()=>{this.issuing=!1})},async copyToClipboard(e){try{await navigator.clipboard.writeText(e),this.copied=!0,this.$notify({type:"success",title:this.$t("Success"),message:this.$t("Copied to clipboard"),position:"bottom-right"}),setTimeout(()=>{this.copied=!1},2e3)}catch(t){}}},mounted(){"email"!==this.mailbox.box_type?this.$router.push({name:"box_settings",params:{box_id:this.mailbox.id}}):this.loadPipeStatus()}},[["render",function(e,t,i,a,n,s){const o=AL,r=AR,l=Sk,c=cE;return zd(),qd("div",Cke,["not_issued"===n.email_pipe.status?(zd(),qd("div",Eke,[tu("div",kke,[tu("h1",Tke,me(e.$t("Email Piping")),1)])])):ru("",!0),n.loading_pipe?(zd(),qd("div",Ake,[iu(o,{rows:5,animated:""})])):n.email_pipe?(zd(),qd("div",Rke,["not_issued"===n.email_pipe.status?(zd(),qd("div",Ike,[tu("h2",Dke,me(e.$t("You are almost done"))+"🎉",1),tu("p",Oke,me(e.$t("Connect your email address with Fluent Support Email parser, so when your customers send an email or reply from email it will be synced with your support portal")),1),tu("div",Mke,[tu("div",Nke,[iu(r,{modelValue:n.terms_agree,"onUpdate:modelValue":t[0]||(t[0]=e=>n.terms_agree=e),class:"fs_terms_checkbox"},{default:vr(()=>[su(me(e.$t("I agree with the Fluent Support email parsing"))+" ",1),tu("a",Lke,me(e.$t("Terms & Condition")),1)],void 0),_:1},8,["modelValue"])]),iu(l,{onClick:t[1]||(t[1]=e=>s.issueEmail()),type:"primary",class:"fs_save_settings_btn",disabled:!n.terms_agree,loading:n.issuing},{default:vr(()=>[su(me(e.$t("Get Piping Email Details")),1)],void 0),_:1},8,["disabled","loading"])])])):"issued"==n.email_pipe.status?(zd(),qd("div",Pke,[tu("h2",Fke,me(e.$t("Your masked mailbox email has been issued")),1),tu("p",Bke,[su(me(e.$t("Please enable auto-forwarding your emails from"))+" ",1),tu("strong",null,me(i.mailbox.email),1),su(" "+me(e.$t("to this following address.")),1)]),tu("div",$ke,[tu("div",Vke,[iu(c,{readonly:!0,modelValue:n.email_pipe.mapped_email,"onUpdate:modelValue":t[2]||(t[2]=e=>n.email_pipe.mapped_email=e),class:"fs_text_input fs_text_input_40"},null,8,["modelValue"]),iu(l,{onClick:t[3]||(t[3]=e=>s.copyToClipboard(n.email_pipe.mapped_email)),class:"fs_copy_btn",size:"small"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/copy.svg",alt:""},null,8,Uke)],void 0),_:1})]),iu(l,{onClick:t[4]||(t[4]=e=>s.loadPipeStatus()),type:"primary",style:{width:"fit-content"},class:"fs_save_settings_btn"},{default:vr(()=>[su(me(e.$t("I have done it")),1)],void 0),_:1}),tu("div",Hke,[tu("p",null,[su(me(e.$t("Once you activate the auto-forward for"))+" ",1),tu("strong",null,me(i.mailbox.email),1),su(", "+me(e.$t("the status will be active.")),1)]),tu("p",null,me(e.$t("For the confirmation email from your email service provider, please check the latest ticket. A new ticket should be created with confirmation code.")),1),tu("p",null,[tu("a",zke,me(e.$t("Read the email piping documentation")),1)])])])])):"active"==n.email_pipe.status?(zd(),qd("div",Yke,[tu("h2",Gke,me(e.$t("Your mailbox is active.")),1),tu("p",Wke,me(e.$t("All the forwarded emails to this address will be synced with your tickets. Below is your mask email address")),1),t[9]||(t[9]=tu("div",{class:"fs_piping_form"},null,-1)),tu("div",jke,[iu(c,{readonly:!0,modelValue:n.email_pipe.mapped_email,"onUpdate:modelValue":t[5]||(t[5]=e=>n.email_pipe.mapped_email=e),class:"fs_text_input fs_text_input_40"},null,8,["modelValue"]),iu(l,{onClick:t[6]||(t[6]=e=>s.copyToClipboard(n.email_pipe.mapped_email)),class:"fs_copy_btn",size:"small"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/copy.svg",alt:""},null,8,qke)],void 0),_:1})])])):(zd(),qd("div",Kke,[tu("h2",Xke,me(n.error_message),1),tu("p",Zke,[su(me(e.$t("Please contact with"))+" ",1),t[10]||(t[10]=tu("a",{href:"https://wpmanageninja.com/support-tickets/#/",target:"_blank",class:"fs_support_link"}," WPManageNinja Support ",-1))])])),n.is_custom_supported?(zd(),qd("div",Qke,[tu("div",Jke,[tu("p",eTe,me(e.$t("If you want to connect with your own email parser please use this following URL to send payload data")),1),tu("div",tTe,[iu(c,{readonly:!0,modelValue:n.webhook_url,"onUpdate:modelValue":t[7]||(t[7]=e=>n.webhook_url=e),class:"fs_text_input fs_text_input_40"},null,8,["modelValue"]),iu(l,{onClick:t[8]||(t[8]=e=>s.copyToClipboard(n.webhook_url)),class:"fs_copy_btn",size:"small"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"images/copy.svg",alt:""},null,8,iTe)],void 0),_:1})])])])):ru("",!0)])):(zd(),qd("div",aTe,me(e.$t("Settings could not be loaded")),1))])}]]);function sTe(e){return e+.5|0}const oTe=(e,t,i)=>Math.max(Math.min(e,i),t);function rTe(e){return oTe(sTe(2.55*e),0,255)}function lTe(e){return oTe(sTe(255*e),0,255)}function cTe(e){return oTe(sTe(e/2.55)/100,0,1)}function dTe(e){return oTe(sTe(100*e),0,100)}const uTe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pTe=[..."0123456789ABCDEF"],hTe=e=>pTe[15&e],fTe=e=>pTe[(240&e)>>4]+pTe[15&e],gTe=e=>(240&e)>>4==(15&e);function mTe(e){var t=(e=>gTe(e.r)&&gTe(e.g)&&gTe(e.b)&&gTe(e.a))(e)?hTe:fTe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const _Te=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vTe(e,t,i){const a=t*Math.min(i,1-i),n=(t,n=(t+e/30)%12)=>i-a*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function bTe(e,t,i){const a=(a,n=(a+e/60)%6)=>i-i*t*Math.max(Math.min(n,4-n,1),0);return[a(5),a(3),a(1)]}function yTe(e,t,i){const a=vTe(e,1,.5);let n;for(t+i>1&&(n=1/(t+i),t*=n,i*=n),n=0;n<3;n++)a[n]*=1-t-i,a[n]+=t;return a}function xTe(e){const t=e.r/255,i=e.g/255,a=e.b/255,n=Math.max(t,i,a),s=Math.min(t,i,a),o=(n+s)/2;let r,l,c;return n!==s&&(c=n-s,l=o>.5?c/(2-n-s):c/(n+s),r=function(e,t,i,a,n){return e===n?(t-i)/a+(t<i?6:0):t===n?(i-e)/a+2:(e-t)/a+4}(t,i,a,c,n),r=60*r+.5),[0|r,l||0,o]}function STe(e,t,i,a){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,a)).map(lTe)}function wTe(e,t,i){return STe(vTe,e,t,i)}function CTe(e){return(e%360+360)%360}function ETe(e){const t=_Te.exec(e);let i,a=255;if(!t)return;t[5]!==i&&(a=t[6]?rTe(+t[5]):lTe(+t[5]));const n=CTe(+t[2]),s=+t[3]/100,o=+t[4]/100;return i="hwb"===t[1]?function(e,t,i){return STe(yTe,e,t,i)}(n,s,o):"hsv"===t[1]?function(e,t,i){return STe(bTe,e,t,i)}(n,s,o):wTe(n,s,o),{r:i[0],g:i[1],b:i[2],a:a}}const kTe={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},TTe={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let ATe;function RTe(e){ATe||(ATe=function(){const e={},t=Object.keys(TTe),i=Object.keys(kTe);let a,n,s,o,r;for(a=0;a<t.length;a++){for(o=r=t[a],n=0;n<i.length;n++)s=i[n],r=r.replace(s,kTe[s]);s=parseInt(TTe[o],16),e[r]=[s>>16&255,s>>8&255,255&s]}return e}(),ATe.transparent=[0,0,0,0]);const t=ATe[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const ITe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const DTe=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,OTe=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function MTe(e,t,i){if(e){let a=xTe(e);a[t]=Math.max(0,Math.min(a[t]+a[t]*i,0===t?360:1)),a=wTe(a),e.r=a[0],e.g=a[1],e.b=a[2]}}function NTe(e,t){return e?Object.assign(t||{},e):e}function LTe(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=lTe(e[3]))):(t=NTe(e,{r:0,g:0,b:0,a:1})).a=lTe(t.a),t}function PTe(e){return"r"===e.charAt(0)?function(e){const t=ITe.exec(e);let i,a,n,s=255;if(t){if(t[7]!==i){const e=+t[7];s=t[8]?rTe(e):oTe(255*e,0,255)}return i=+t[1],a=+t[3],n=+t[5],i=255&(t[2]?rTe(i):oTe(i,0,255)),a=255&(t[4]?rTe(a):oTe(a,0,255)),n=255&(t[6]?rTe(n):oTe(n,0,255)),{r:i,g:a,b:n,a:s}}}(e):ETe(e)}class FTe{constructor(e){if(e instanceof FTe)return e;const t=typeof e;let i;var a,n,s;"object"===t?i=LTe(e):"string"===t&&(s=(a=e).length,"#"===a[0]&&(4===s||5===s?n={r:255&17*uTe[a[1]],g:255&17*uTe[a[2]],b:255&17*uTe[a[3]],a:5===s?17*uTe[a[4]]:255}:7!==s&&9!==s||(n={r:uTe[a[1]]<<4|uTe[a[2]],g:uTe[a[3]]<<4|uTe[a[4]],b:uTe[a[5]]<<4|uTe[a[6]],a:9===s?uTe[a[7]]<<4|uTe[a[8]]:255})),i=n||RTe(e)||PTe(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=NTe(this._rgb);return e&&(e.a=cTe(e.a)),e}set rgb(e){this._rgb=LTe(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${cTe(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?mTe(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=xTe(e),i=t[0],a=dTe(t[1]),n=dTe(t[2]);return e.a<255?`hsla(${i}, ${a}%, ${n}%, ${cTe(e.a)})`:`hsl(${i}, ${a}%, ${n}%)`}(this._rgb):void 0}mix(e,t){if(e){const i=this.rgb,a=e.rgb;let n;const s=t===n?.5:t,o=2*s-1,r=i.a-a.a,l=((o*r===-1?o:(o+r)/(1+o*r))+1)/2;n=1-l,i.r=255&l*i.r+n*a.r+.5,i.g=255&l*i.g+n*a.g+.5,i.b=255&l*i.b+n*a.b+.5,i.a=s*i.a+(1-s)*a.a,this.rgb=i}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,i){const a=OTe(cTe(e.r)),n=OTe(cTe(e.g)),s=OTe(cTe(e.b));return{r:lTe(DTe(a+i*(OTe(cTe(t.r))-a))),g:lTe(DTe(n+i*(OTe(cTe(t.g))-n))),b:lTe(DTe(s+i*(OTe(cTe(t.b))-s))),a:e.a+i*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new FTe(this.rgb)}alpha(e){return this._rgb.a=lTe(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=sTe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return MTe(this._rgb,2,e),this}darken(e){return MTe(this._rgb,2,-e),this}saturate(e){return MTe(this._rgb,1,e),this}desaturate(e){return MTe(this._rgb,1,-e),this}rotate(e){return function(e,t){var i=xTe(e);i[0]=CTe(i[0]+t),i=wTe(i),e.r=i[0],e.g=i[1],e.b=i[2]}(this._rgb,e),this}}function BTe(){}const $Te=(()=>{let e=0;return()=>e++})();function VTe(e){return null==e}function UTe(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function HTe(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function zTe(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function YTe(e,t){return zTe(e)?e:t}function GTe(e,t){return void 0===e?t:e}const WTe=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function jTe(e,t,i){if(e&&"function"==typeof e.call)return e.apply(i,t)}function qTe(e,t,i,a){let n,s,o;if(UTe(e))for(s=e.length,n=0;n<s;n++)t.call(i,e[n],n);else if(HTe(e))for(o=Object.keys(e),s=o.length,n=0;n<s;n++)t.call(i,e[o[n]],o[n])}function KTe(e,t){let i,a,n,s;if(!e||!t||e.length!==t.length)return!1;for(i=0,a=e.length;i<a;++i)if(n=e[i],s=t[i],n.datasetIndex!==s.datasetIndex||n.index!==s.index)return!1;return!0}function XTe(e){if(UTe(e))return e.map(XTe);if(HTe(e)){const t=Object.create(null),i=Object.keys(e),a=i.length;let n=0;for(;n<a;++n)t[i[n]]=XTe(e[i[n]]);return t}return e}function ZTe(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function QTe(e,t,i,a){if(!ZTe(e))return;const n=t[e],s=i[e];HTe(n)&&HTe(s)?JTe(n,s,a):t[e]=XTe(s)}function JTe(e,t,i){const a=UTe(t)?t:[t],n=a.length;if(!HTe(e))return e;const s=(i=i||{}).merger||QTe;let o;for(let r=0;r<n;++r){if(o=a[r],!HTe(o))continue;const t=Object.keys(o);for(let a=0,n=t.length;a<n;++a)s(t[a],e,o,i)}return e}function eAe(e,t){return JTe(e,t,{merger:tAe})}function tAe(e,t,i){if(!ZTe(e))return;const a=t[e],n=i[e];HTe(a)&&HTe(n)?eAe(a,n):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=XTe(n))}const iAe={"":e=>e,x:e=>e.x,y:e=>e.y};function aAe(e,t){const i=iAe[t]||(iAe[t]=function(e){const t=function(e){const t=e.split("."),i=[];let a="";for(const n of t)a+=n,a.endsWith("\\")?a=a.slice(0,-1)+".":(i.push(a),a="");return i}(e);return e=>{for(const i of t){if(""===i)break;e=e&&e[i]}return e}}(t));return i(e)}function nAe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const sAe=e=>void 0!==e,oAe=e=>"function"==typeof e,rAe=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};const lAe=Math.PI,cAe=2*lAe,dAe=cAe+lAe,uAe=Number.POSITIVE_INFINITY,pAe=lAe/180,hAe=lAe/2,fAe=lAe/4,gAe=2*lAe/3,mAe=Math.log10,_Ae=Math.sign;function vAe(e,t,i){return Math.abs(e-t)<i}function bAe(e){const t=Math.round(e);e=vAe(e,t,e/1e3)?t:e;const i=Math.pow(10,Math.floor(mAe(e))),a=e/i;return(a<=1?1:a<=2?2:a<=5?5:10)*i}function yAe(e){return!function(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function xAe(e,t,i){let a,n,s;for(a=0,n=e.length;a<n;a++)s=e[a][i],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function SAe(e){return e*(lAe/180)}function wAe(e){return e*(180/lAe)}function CAe(e){if(!zTe(e))return;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i++;return i}function EAe(e,t){const i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a);let s=Math.atan2(a,i);return s<-.5*lAe&&(s+=cAe),{angle:s,distance:n}}function kAe(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function TAe(e,t){return(e-t+dAe)%cAe-lAe}function AAe(e){return(e%cAe+cAe)%cAe}function RAe(e,t,i,a){const n=AAe(e),s=AAe(t),o=AAe(i),r=AAe(s-n),l=AAe(o-n),c=AAe(n-s),d=AAe(n-o);return n===s||n===o||a&&s===o||r>l&&c<d}function IAe(e,t,i){return Math.max(t,Math.min(i,e))}function DAe(e,t,i,a=1e-6){return e>=Math.min(t,i)-a&&e<=Math.max(t,i)+a}function OAe(e,t,i){i=i||(i=>e[i]<t);let a,n=e.length-1,s=0;for(;n-s>1;)a=s+n>>1,i(a)?s=a:n=a;return{lo:s,hi:n}}const MAe=(e,t,i,a)=>OAe(e,i,a?a=>{const n=e[a][t];return n<i||n===i&&e[a+1][t]===i}:a=>e[a][t]<i),NAe=(e,t,i)=>OAe(e,i,a=>e[a][t]>=i);const LAe=["push","pop","shift","splice","unshift"];function PAe(e,t){const i=e._chartjs;if(!i)return;const a=i.listeners,n=a.indexOf(t);-1!==n&&a.splice(n,1),a.length>0||(LAe.forEach(t=>{delete e[t]}),delete e._chartjs)}function FAe(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const BAe="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function $Ae(e,t){let i=[],a=!1;return function(...n){i=n,a||(a=!0,BAe.call(window,()=>{a=!1,e.apply(t,i)}))}}const VAe=e=>"start"===e?"left":"end"===e?"right":"center",UAe=(e,t,i)=>"start"===e?t:"end"===e?i:(t+i)/2;function HAe(e,t,i){const a=t.length;let n=0,s=a;if(e._sorted){const{iScale:o,vScale:r,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=o.axis,{min:u,max:p,minDefined:h,maxDefined:f}=o.getUserBounds();if(h){if(n=Math.min(MAe(l,d,u).lo,i?a:MAe(t,d,o.getPixelForValue(u)).lo),c){const e=l.slice(0,n+1).reverse().findIndex(e=>!VTe(e[r.axis]));n-=Math.max(0,e)}n=IAe(n,0,a-1)}if(f){let e=Math.max(MAe(l,o.axis,p,!0).hi+1,i?0:MAe(t,d,o.getPixelForValue(p),!0).hi+1);if(c){const t=l.slice(e-1).findIndex(e=>!VTe(e[r.axis]));e+=Math.max(0,t)}s=IAe(e,n,a)-n}else s=a-n}return{start:n,count:s}}function zAe(e){const{xScale:t,yScale:i,_scaleRanges:a}=e,n={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!a)return e._scaleRanges=n,!0;const s=a.xmin!==t.min||a.xmax!==t.max||a.ymin!==i.min||a.ymax!==i.max;return Object.assign(a,n),s}const YAe=e=>0===e||1===e,GAe=(e,t,i)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*cAe/i),WAe=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*cAe/i)+1,jAe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*hAe),easeOutSine:e=>Math.sin(e*hAe),easeInOutSine:e=>-.5*(Math.cos(lAe*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>YAe(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>YAe(e)?e:GAe(e,.075,.3),easeOutElastic:e=>YAe(e)?e:WAe(e,.075,.3),easeInOutElastic(e){const t=.1125;return YAe(e)?e:e<.5?.5*GAe(2*e,t,.45):.5+.5*WAe(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-jAe.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,i=2.75;return e<1/i?t*e*e:e<2/i?t*(e-=1.5/i)*e+.75:e<2.5/i?t*(e-=2.25/i)*e+.9375:t*(e-=2.625/i)*e+.984375},easeInOutBounce:e=>e<.5?.5*jAe.easeInBounce(2*e):.5*jAe.easeOutBounce(2*e-1)+.5};function qAe(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function KAe(e){return qAe(e)?e:new FTe(e)}function XAe(e){return qAe(e)?e:new FTe(e).saturate(.5).darken(.1).hexString()}const ZAe=["x","y","borderWidth","radius","tension"],QAe=["color","borderColor","backgroundColor"];const JAe=new Map;function eRe(e,t,i){return function(e,t){t=t||{};const i=e+JSON.stringify(t);let a=JAe.get(i);return a||(a=new Intl.NumberFormat(e,t),JAe.set(i,a)),a}(t,i).format(e)}const tRe={values:e=>UTe(e)?e:""+e,numeric(e,t,i){if(0===e)return"0";const a=this.chart.options.locale;let n,s=e;if(i.length>1){const t=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(t<1e-4||t>1e15)&&(n="scientific"),s=function(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e));return i}(e,i)}const o=mAe(Math.abs(s)),r=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),eRe(e,a,l)},logarithmic(e,t,i){if(0===e)return"0";const a=i[t].significand||e/Math.pow(10,Math.floor(mAe(e)));return[1,2,3,5,10,15].includes(a)||t>.8*i.length?tRe.numeric.call(this,e,t,i):""}};var iRe={formatters:tRe};const aRe=Object.create(null),nRe=Object.create(null);function sRe(e,t){if(!t)return e;const i=t.split(".");for(let a=0,n=i.length;a<n;++a){const t=i[a];e=e[t]||(e[t]=Object.create(null))}return e}function oRe(e,t,i){return"string"==typeof t?JTe(sRe(e,t),i):JTe(sRe(e,""),t)}let rRe=class{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>XAe(t.backgroundColor),this.hoverBorderColor=(e,t)=>XAe(t.borderColor),this.hoverColor=(e,t)=>XAe(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return oRe(this,e,t)}get(e){return sRe(this,e)}describe(e,t){return oRe(nRe,e,t)}override(e,t){return oRe(aRe,e,t)}route(e,t,i,a){const n=sRe(this,e),s=sRe(this,i),o="_"+t;Object.defineProperties(n,{[o]:{value:n[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=s[a];return HTe(e)?Object.assign({},t,e):GTe(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}};var lRe=new rRe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:QAe},numbers:{type:"number",properties:ZAe}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:iRe.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function cRe(e,t,i,a,n){let s=t[n];return s||(s=t[n]=e.measureText(n).width,i.push(n)),s>a&&(a=s),a}function dRe(e,t,i,a){let n=(a=a||{}).data=a.data||{},s=a.garbageCollect=a.garbageCollect||[];a.font!==t&&(n=a.data={},s=a.garbageCollect=[],a.font=t),e.save(),e.font=t;let o=0;const r=i.length;let l,c,d,u,p;for(l=0;l<r;l++)if(u=i[l],null==u||UTe(u)){if(UTe(u))for(c=0,d=u.length;c<d;c++)p=u[c],null==p||UTe(p)||(o=cRe(e,n,s,o,p))}else o=cRe(e,n,s,o,u);e.restore();const h=s.length/2;if(h>i.length){for(l=0;l<h;l++)delete n[s[l]];s.splice(0,h)}return o}function uRe(e,t,i){const a=e.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((t-n)*a)/a+n}function pRe(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function hRe(e,t,i,a){fRe(e,t,i,a,null)}function fRe(e,t,i,a,n){let s,o,r,l,c,d,u,p;const h=t.pointStyle,f=t.rotation,g=t.radius;let m=(f||0)*pAe;if(h&&"object"==typeof h&&(s=h.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return e.save(),e.translate(i,a),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:n?e.ellipse(i,a,n/2,g,0,0,cAe):e.arc(i,a,g,0,cAe),e.closePath();break;case"triangle":d=n?n/2:g,e.moveTo(i+Math.sin(m)*d,a-Math.cos(m)*g),m+=gAe,e.lineTo(i+Math.sin(m)*d,a-Math.cos(m)*g),m+=gAe,e.lineTo(i+Math.sin(m)*d,a-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,o=Math.cos(m+fAe)*l,u=Math.cos(m+fAe)*(n?n/2-c:l),r=Math.sin(m+fAe)*l,p=Math.sin(m+fAe)*(n?n/2-c:l),e.arc(i-u,a-r,c,m-lAe,m-hAe),e.arc(i+p,a-o,c,m-hAe,m),e.arc(i+u,a+r,c,m,m+hAe),e.arc(i-p,a+o,c,m+hAe,m+lAe),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*g,d=n?n/2:l,e.rect(i-d,a-l,2*d,2*l);break}m+=fAe;case"rectRot":u=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),e.moveTo(i-u,a-r),e.lineTo(i+p,a-o),e.lineTo(i+u,a+r),e.lineTo(i-p,a+o),e.closePath();break;case"crossRot":m+=fAe;case"cross":u=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),e.moveTo(i-u,a-r),e.lineTo(i+u,a+r),e.moveTo(i+p,a-o),e.lineTo(i-p,a+o);break;case"star":u=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),e.moveTo(i-u,a-r),e.lineTo(i+u,a+r),e.moveTo(i+p,a-o),e.lineTo(i-p,a+o),m+=fAe,u=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),e.moveTo(i-u,a-r),e.lineTo(i+u,a+r),e.moveTo(i+p,a-o),e.lineTo(i-p,a+o);break;case"line":o=n?n/2:Math.cos(m)*g,r=Math.sin(m)*g,e.moveTo(i-o,a-r),e.lineTo(i+o,a+r);break;case"dash":e.moveTo(i,a),e.lineTo(i+Math.cos(m)*(n?n/2:g),a+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function gRe(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.x<t.right+i&&e.y>t.top-i&&e.y<t.bottom+i}function mRe(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function _Re(e){e.restore()}function vRe(e,t,i,a,n){if(!t)return e.lineTo(i.x,i.y);if("middle"===n){const a=(t.x+i.x)/2;e.lineTo(a,t.y),e.lineTo(a,i.y)}else"after"===n!=!!a?e.lineTo(t.x,i.y):e.lineTo(i.x,t.y);e.lineTo(i.x,i.y)}function bRe(e,t,i,a){if(!t)return e.lineTo(i.x,i.y);e.bezierCurveTo(a?t.cp1x:t.cp2x,a?t.cp1y:t.cp2y,a?i.cp2x:i.cp1x,a?i.cp2y:i.cp1y,i.x,i.y)}function yRe(e,t,i,a,n){if(n.strikethrough||n.underline){const s=e.measureText(a),o=t-s.actualBoundingBoxLeft,r=t+s.actualBoundingBoxRight,l=i-s.actualBoundingBoxAscent,c=i+s.actualBoundingBoxDescent,d=n.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=n.decorationWidth||2,e.moveTo(o,d),e.lineTo(r,d),e.stroke()}}function xRe(e,t){const i=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=i}function SRe(e,t,i,a,n,s={}){const o=UTe(t)?t:[t],r=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(e.save(),e.font=n.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),VTe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&xRe(e,s.backdrop),r&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),VTe(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(c,i,a,s.maxWidth)),e.fillText(c,i,a,s.maxWidth),yRe(e,i,a,c,s),a+=Number(n.lineHeight);e.restore()}function wRe(e,t){const{x:i,y:a,w:n,h:s,radius:o}=t;e.arc(i+o.topLeft,a+o.topLeft,o.topLeft,1.5*lAe,lAe,!0),e.lineTo(i,a+s-o.bottomLeft),e.arc(i+o.bottomLeft,a+s-o.bottomLeft,o.bottomLeft,lAe,hAe,!0),e.lineTo(i+n-o.bottomRight,a+s),e.arc(i+n-o.bottomRight,a+s-o.bottomRight,o.bottomRight,hAe,0,!0),e.lineTo(i+n,a+o.topRight),e.arc(i+n-o.topRight,a+o.topRight,o.topRight,0,-hAe,!0),e.lineTo(i+o.topLeft,a)}const CRe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ERe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function kRe(e,t){const i=(""+e).match(CRe);if(!i||"normal"===i[1])return 1.2*t;switch(e=+i[2],i[3]){case"px":return e;case"%":e/=100}return t*e}const TRe=e=>+e||0;function ARe(e,t){const i={},a=HTe(t),n=a?Object.keys(t):t,s=HTe(e)?a?i=>GTe(e[i],e[t[i]]):t=>e[t]:()=>e;for(const o of n)i[o]=TRe(s(o));return i}function RRe(e){return ARe(e,{top:"y",right:"x",bottom:"y",left:"x"})}function IRe(e){return ARe(e,["topLeft","topRight","bottomLeft","bottomRight"])}function DRe(e){const t=RRe(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ORe(e,t){e=e||{},t=t||lRe.font;let i=GTe(e.size,t.size);"string"==typeof i&&(i=parseInt(i,10));let a=GTe(e.style,t.style);a&&!(""+a).match(ERe)&&(a=void 0);const n={family:GTe(e.family,t.family),lineHeight:kRe(GTe(e.lineHeight,t.lineHeight),i),size:i,style:a,weight:GTe(e.weight,t.weight),string:""};return n.string=function(e){return!e||VTe(e.size)||VTe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(n),n}function MRe(e,t,i,a){let n,s,o;for(n=0,s=e.length;n<s;++n)if(o=e[n],void 0!==o&&void 0!==o)return o}function NRe(e,t){return Object.assign(Object.create(e),t)}function LRe(e,t=[""],i,a,n=()=>e[0]){const s=i||e;void 0===a&&(a=WRe("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:a,_getTarget:n,override:i=>LRe([i,...e],t,s,a)};return new Proxy(o,{deleteProperty:(t,i)=>(delete t[i],delete t._keys,delete e[0][i],!0),get:(i,a)=>VRe(i,a,()=>function(e,t,i,a){let n;for(const s of t)if(n=WRe(BRe(s,e),i),void 0!==n)return $Re(e,n)?YRe(i,a,e,n):n}(a,t,e,i)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>jRe(e).includes(t),ownKeys:e=>jRe(e),set(e,t,i){const a=e._storage||(e._storage=n());return e[t]=a[t]=i,delete e._keys,!0}})}function PRe(e,t,i,a){const n={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:FRe(e,a),setContext:t=>PRe(e,t,i,a),override:n=>PRe(e.override(n),t,i,a)};return new Proxy(n,{deleteProperty:(t,i)=>(delete t[i],delete e[i],!0),get:(e,t,i)=>VRe(e,t,()=>function(e,t,i){const{_proxy:a,_context:n,_subProxy:s,_descriptors:o}=e;let r=a[t];oAe(r)&&o.isScriptable(t)&&(r=function(e,t,i,a){const{_proxy:n,_context:s,_subProxy:o,_stack:r}=i;if(r.has(e))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+e);r.add(e);let l=t(s,o||a);r.delete(e),$Re(e,l)&&(l=YRe(n._scopes,n,e,l));return l}(t,r,e,i));UTe(r)&&r.length&&(r=function(e,t,i,a){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=i;if(void 0!==s.index&&a(e))return t[s.index%t.length];if(HTe(t[0])){const i=t,a=n._scopes.filter(e=>e!==i);t=[];for(const l of i){const i=YRe(a,n,e,l);t.push(PRe(i,s,o&&o[e],r))}}return t}(t,r,e,o.isIndexable));$Re(t,r)&&(r=PRe(r,n,s&&s[t],o));return r}(e,t,i)),getOwnPropertyDescriptor:(t,i)=>t._descriptors.allKeys?Reflect.has(e,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,i),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,i)=>Reflect.has(e,i),ownKeys:()=>Reflect.ownKeys(e),set:(t,i,a)=>(e[i]=a,delete t[i],!0)})}function FRe(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:a=t.indexable,_allKeys:n=t.allKeys}=e;return{allKeys:n,scriptable:i,indexable:a,isScriptable:oAe(i)?i:()=>i,isIndexable:oAe(a)?a:()=>a}}const BRe=(e,t)=>e?e+nAe(t):t,$Re=(e,t)=>HTe(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function VRe(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const a=i();return e[t]=a,a}function URe(e,t,i){return oAe(e)?e(t,i):e}const HRe=(e,t)=>!0===e?t:"string"==typeof e?aAe(t,e):void 0;function zRe(e,t,i,a,n){for(const s of t){const t=HRe(i,s);if(t){e.add(t);const s=URe(t._fallback,i,n);if(void 0!==s&&s!==i&&s!==a)return s}else if(!1===t&&void 0!==a&&i!==a)return null}return!1}function YRe(e,t,i,a){const n=t._rootScopes,s=URe(t._fallback,i,a),o=[...e,...n],r=new Set;r.add(a);let l=GRe(r,o,i,s||i,a);return null!==l&&((void 0===s||s===i||(l=GRe(r,o,s,l,a),null!==l))&&LRe(Array.from(r),[""],n,s,()=>function(e,t,i){const a=e._getTarget();t in a||(a[t]={});const n=a[t];if(UTe(n)&&HTe(i))return i;return n||{}}(t,i,a)))}function GRe(e,t,i,a,n){for(;i;)i=zRe(e,t,i,a,n);return i}function WRe(e,t){for(const i of t){if(!i)continue;const t=i[e];if(void 0!==t)return t}}function jRe(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const i of e)for(const e of Object.keys(i).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function qRe(e,t,i,a){const{iScale:n}=e,{key:s="r"}=this._parsing,o=new Array(a);let r,l,c,d;for(r=0,l=a;r<l;++r)c=r+i,d=t[c],o[r]={r:n.parse(aAe(d,s),c)};return o}const KRe=Number.EPSILON||1e-14,XRe=(e,t)=>t<e.length&&!e[t].skip&&e[t],ZRe=e=>"x"===e?"y":"x";function QRe(e,t,i,a){const n=e.skip?t:e,s=t,o=i.skip?t:i,r=kAe(s,n),l=kAe(o,s);let c=r/(r+l),d=l/(r+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=a*c,p=a*d;return{previous:{x:s.x-u*(o.x-n.x),y:s.y-u*(o.y-n.y)},next:{x:s.x+p*(o.x-n.x),y:s.y+p*(o.y-n.y)}}}function JRe(e,t="x"){const i=ZRe(t),a=e.length,n=Array(a).fill(0),s=Array(a);let o,r,l,c=XRe(e,0);for(o=0;o<a;++o)if(r=l,l=c,c=XRe(e,o+1),l){if(c){const e=c[t]-l[t];n[o]=0!==e?(c[i]-l[i])/e:0}s[o]=r?c?_Ae(n[o-1])!==_Ae(n[o])?0:(n[o-1]+n[o])/2:n[o-1]:n[o]}!function(e,t,i){const a=e.length;let n,s,o,r,l,c=XRe(e,0);for(let d=0;d<a-1;++d)l=c,c=XRe(e,d+1),l&&c&&(vAe(t[d],0,KRe)?i[d]=i[d+1]=0:(n=i[d]/t[d],s=i[d+1]/t[d],r=Math.pow(n,2)+Math.pow(s,2),r<=9||(o=3/Math.sqrt(r),i[d]=n*o*t[d],i[d+1]=s*o*t[d])))}(e,n,s),function(e,t,i="x"){const a=ZRe(i),n=e.length;let s,o,r,l=XRe(e,0);for(let c=0;c<n;++c){if(o=r,r=l,l=XRe(e,c+1),!r)continue;const n=r[i],d=r[a];o&&(s=(n-o[i])/3,r[`cp1${i}`]=n-s,r[`cp1${a}`]=d-s*t[c]),l&&(s=(l[i]-n)/3,r[`cp2${i}`]=n+s,r[`cp2${a}`]=d+s*t[c])}}(e,s,t)}function eIe(e,t,i){return Math.max(Math.min(e,i),t)}function tIe(e,t,i,a,n){let s,o,r,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)JRe(e,n);else{let i=a?e[e.length-1]:e[0];for(s=0,o=e.length;s<o;++s)r=e[s],l=QRe(i,r,e[Math.min(s+1,o-(a?0:1))%o],t.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}t.capBezierPoints&&function(e,t){let i,a,n,s,o,r=gRe(e[0],t);for(i=0,a=e.length;i<a;++i)o=s,s=r,r=i<a-1&&gRe(e[i+1],t),s&&(n=e[i],o&&(n.cp1x=eIe(n.cp1x,t.left,t.right),n.cp1y=eIe(n.cp1y,t.top,t.bottom)),r&&(n.cp2x=eIe(n.cp2x,t.left,t.right),n.cp2y=eIe(n.cp2y,t.top,t.bottom)))}(e,i)}function iIe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function aIe(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function nIe(e,t,i){let a;return"string"==typeof e?(a=parseInt(e,10),-1!==e.indexOf("%")&&(a=a/100*t.parentNode[i])):a=e,a}const sIe=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const oIe=["top","right","bottom","left"];function rIe(e,t,i){const a={};i=i?"-"+i:"";for(let n=0;n<4;n++){const s=oIe[n];a[s]=parseFloat(e[t+"-"+s+i])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}function lIe(e,t){if("native"in e)return e;const{canvas:i,currentDevicePixelRatio:a}=t,n=sIe(i),s="border-box"===n.boxSizing,o=rIe(n,"padding"),r=rIe(n,"border","width"),{x:l,y:c,box:d}=function(e,t){const i=e.touches,a=i&&i.length?i[0]:e,{offsetX:n,offsetY:s}=a;let o,r,l=!1;if(((e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot))(n,s,e.target))o=n,r=s;else{const e=t.getBoundingClientRect();o=a.clientX-e.left,r=a.clientY-e.top,l=!0}return{x:o,y:r,box:l}}(e,i),u=o.left+(d&&r.left),p=o.top+(d&&r.top);let{width:h,height:f}=t;return s&&(h-=o.width+r.width,f-=o.height+r.height),{x:Math.round((l-u)/h*i.width/a),y:Math.round((c-p)/f*i.height/a)}}const cIe=e=>Math.round(10*e)/10;function dIe(e,t,i,a){const n=sIe(e),s=rIe(n,"margin"),o=nIe(n.maxWidth,e,"clientWidth")||uAe,r=nIe(n.maxHeight,e,"clientHeight")||uAe,l=function(e,t,i){let a,n;if(void 0===t||void 0===i){const s=e&&aIe(e);if(s){const e=s.getBoundingClientRect(),o=sIe(s),r=rIe(o,"border","width"),l=rIe(o,"padding");t=e.width-l.width-r.width,i=e.height-l.height-r.height,a=nIe(o.maxWidth,s,"clientWidth"),n=nIe(o.maxHeight,s,"clientHeight")}else t=e.clientWidth,i=e.clientHeight}return{width:t,height:i,maxWidth:a||uAe,maxHeight:n||uAe}}(e,t,i);let{width:c,height:d}=l;if("content-box"===n.boxSizing){const e=rIe(n,"border","width"),t=rIe(n,"padding");c-=t.width+e.width,d-=t.height+e.height}c=Math.max(0,c-s.width),d=Math.max(0,a?c/a:d-s.height),c=cIe(Math.min(c,o,l.maxWidth)),d=cIe(Math.min(d,r,l.maxHeight)),c&&!d&&(d=cIe(c/2));return(void 0!==t||void 0!==i)&&a&&l.height&&d>l.height&&(d=l.height,c=cIe(Math.floor(d*a))),{width:c,height:d}}function uIe(e,t,i){const a=t||1,n=cIe(e.height*a),s=cIe(e.width*a);e.height=cIe(e.height),e.width=cIe(e.width);const o=e.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==a||o.height!==n||o.width!==s)&&(e.currentDevicePixelRatio=a,o.height=n,o.width=s,e.ctx.setTransform(a,0,0,a,0,0),!0)}const pIe=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};iIe()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(NO){}return e}();function hIe(e,t){const i=function(e,t){return sIe(e).getPropertyValue(t)}(e,t),a=i&&i.match(/^(\d+)(\.\d+)?px$/);return a?+a[1]:void 0}function fIe(e,t,i,a){return{x:e.x+i*(t.x-e.x),y:e.y+i*(t.y-e.y)}}function gIe(e,t,i,a){return{x:e.x+i*(t.x-e.x),y:"middle"===a?i<.5?e.y:t.y:"after"===a?i<1?e.y:t.y:i>0?t.y:e.y}}function mIe(e,t,i,a){const n={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=fIe(e,n,i),r=fIe(n,s,i),l=fIe(s,t,i),c=fIe(o,r,i),d=fIe(r,l,i);return fIe(c,d,i)}function _Ie(e,t,i){return e?function(e,t){return{x:i=>e+e+t-i,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,i):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function vIe(e,t){let i,a;"ltr"!==t&&"rtl"!==t||(i=e.canvas.style,a=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=a)}function bIe(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function yIe(e){return"angle"===e?{between:RAe,compare:TAe,normalize:AAe}:{between:DAe,compare:(e,t)=>e-t,normalize:e=>e}}function xIe({start:e,end:t,count:i,loop:a,style:n}){return{start:e%i,end:t%i,loop:a&&(t-e+1)%i==0,style:n}}function SIe(e,t,i){if(!i)return[e];const{property:a,start:n,end:s}=i,o=t.length,{compare:r,between:l,normalize:c}=yIe(a),{start:d,end:u,loop:p,style:h}=function(e,t,i){const{property:a,start:n,end:s}=i,{between:o,normalize:r}=yIe(a),l=t.length;let c,d,{start:u,end:p,loop:h}=e;if(h){for(u+=l,p+=l,c=0,d=l;c<d&&o(r(t[u%l][a]),n,s);++c)u--,p--;u%=l,p%=l}return p<u&&(p+=l),{start:u,end:p,loop:h,style:e.style}}(e,t,i),f=[];let g,m,_,v=!1,b=null;const y=()=>v||l(n,_,g)&&0!==r(n,_),x=()=>!v||0===r(s,g)||l(s,_,g);for(let S=d,w=d;S<=u;++S)m=t[S%o],m.skip||(g=c(m[a]),g!==_&&(v=l(g,n,s),null===b&&y()&&(b=0===r(g,n)?S:w),null!==b&&x()&&(f.push(xIe({start:b,end:S,loop:p,count:o,style:h})),b=null),w=S,_=g));return null!==b&&f.push(xIe({start:b,end:u,loop:p,count:o,style:h})),f}function wIe(e,t){const i=[],a=e.segments;for(let n=0;n<a.length;n++){const s=SIe(a[n],e.points,t);s.length&&i.push(...s)}return i}function CIe(e,t,i,a){return a&&a.setContext&&i?function(e,t,i,a){const n=e._chart.getContext(),s=EIe(e.options),{_datasetIndex:o,options:{spanGaps:r}}=e,l=i.length,c=[];let d=s,u=t[0].start,p=u;function h(e,t,a,n){const s=r?-1:1;if(e!==t){for(e+=l;i[e%l].skip;)e-=s;for(;i[t%l].skip;)t+=s;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:a,style:n}),d=n,u=t%l)}}for(const f of t){u=r?u:f.start;let e,t=i[u%l];for(p=u+1;p<=f.end;p++){const s=i[p%l];e=EIe(a.setContext(NRe(n,{type:"segment",p0:t,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:o}))),kIe(e,d)&&h(u,p-1,f.loop,d),t=s,d=e}u<p-1&&h(u,p-1,f.loop,d)}return c}(e,t,i,a):t}function EIe(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function kIe(e,t){if(!t)return!1;const i=[],a=function(e,t){return qAe(t)?(i.includes(t)||i.push(t),i.indexOf(t)):t};return JSON.stringify(e,a)!==JSON.stringify(t,a)}function TIe(e,t,i){return e.options.clip?e[i]:t[i]}function AIe(e,t){const i=t._clip;if(i.disabled)return!1;const a=function(e,t){const{xScale:i,yScale:a}=e;return i&&a?{left:TIe(i,t,"left"),right:TIe(i,t,"right"),top:TIe(a,t,"top"),bottom:TIe(a,t,"bottom")}:t}(t,e.chartArea);return{left:!1===i.left?0:a.left-(!0===i.left?0:i.left),right:!1===i.right?e.width:a.right+(!0===i.right?0:i.right),top:!1===i.top?0:a.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?e.height:a.bottom+(!0===i.bottom?0:i.bottom)}}var RIe=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,a){const n=t.listeners[a],s=t.duration;n.forEach(a=>a({chart:e,initial:t.initial,numSteps:s,currentStep:Math.min(i-t.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=BAe.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((i,a)=>{if(!i.running||!i.items.length)return;const n=i.items;let s,o=n.length-1,r=!1;for(;o>=0;--o)s=n[o],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(e),r=!0):(n[o]=n[n.length-1],n.pop());r&&(a.draw(),this._notify(a,i,e,"progress")),n.length||(i.running=!1,this._notify(a,i,e,"complete"),i.initial=!1),t+=n.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let a=i.length-1;for(;a>=0;--a)i[a].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const IIe="transparent",DIe={boolean:(e,t,i)=>i>.5?t:e,color(e,t,i){const a=KAe(e||IIe),n=a.valid&&KAe(t||IIe);return n&&n.valid?n.mix(a,i).hexString():t},number:(e,t,i)=>e+(t-e)*i};let OIe=class{constructor(e,t,i,a){const n=t[i];a=MRe([e.to,a,n,e.from]);const s=MRe([e.from,n,a]);this._active=!0,this._fn=e.fn||DIe[e.type||typeof s],this._easing=jAe[e.easing]||jAe.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const a=this._target[this._prop],n=i-this._start,s=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=n,this._loop=!!e.loop,this._to=MRe([e.to,t,a,e.from]),this._from=MRe([e.from,a,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,a=this._prop,n=this._from,s=this._loop,o=this._to;let r;if(this._active=n!==o&&(s||t<i),!this._active)return this._target[a]=o,void this._notify(!0);t<0?this._target[a]=n:(r=t/i%2,r=s&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[a]=this._fn(n,o,r))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,i)=>{e.push({res:t,rej:i})})}_notify(e){const t=e?"res":"rej",i=this._promises||[];for(let a=0;a<i.length;a++)i[a][t]()}},MIe=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!HTe(e))return;const t=Object.keys(lRe.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(a=>{const n=e[a];if(!HTe(n))return;const s={};for(const e of t)s[e]=n[e];(UTe(n.properties)&&n.properties||[a]).forEach(e=>{e!==a&&i.has(e)||i.set(e,s)})})}_animateOptions(e,t){const i=t.options,a=function(e,t){if(!t)return;let i=e.options;if(!i)return void(e.options=t);i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(e,i);if(!a)return[];const n=this._createAnimations(a,i);return i.$shared&&function(e,t){const i=[],a=Object.keys(t);for(let n=0;n<a.length;n++){const t=e[a[n]];t&&t.active()&&i.push(t.wait())}return Promise.all(i)}(e.options.$animations,i).then(()=>{e.options=i},()=>{}),n}_createAnimations(e,t){const i=this._properties,a=[],n=e.$animations||(e.$animations={}),s=Object.keys(t),o=Date.now();let r;for(r=s.length-1;r>=0;--r){const l=s[r];if("$"===l.charAt(0))continue;if("options"===l){a.push(...this._animateOptions(e,t));continue}const c=t[l];let d=n[l];const u=i.get(l);if(d){if(u&&d.active()){d.update(u,c,o);continue}d.cancel()}u&&u.duration?(n[l]=d=new OIe(u,e,l,c),a.push(d)):e[l]=c}return a}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const i=this._createAnimations(e,t);return i.length?(RIe.add(this._chart,i),!0):void 0}};function NIe(e,t){const i=e&&e.options||{},a=i.reverse,n=void 0===i.min?t:0,s=void 0===i.max?t:0;return{start:a?s:n,end:a?n:s}}function LIe(e,t){const i=[],a=e._getSortedDatasetMetas(t);let n,s;for(n=0,s=a.length;n<s;++n)i.push(a[n].index);return i}function PIe(e,t,i,a={}){const n=e.keys,s="single"===a.mode;let o,r,l,c;if(null===t)return;let d=!1;for(o=0,r=n.length;o<r;++o){if(l=+n[o],l===i){if(d=!0,a.all)continue;break}c=e.values[l],zTe(c)&&(s||0===t||_Ae(t)===_Ae(c))&&(t+=c)}return d||a.all?t:0}function FIe(e,t){const i=e&&e.options.stacked;return i||void 0===i&&void 0!==t.stack}function BIe(e,t,i){const a=e[t]||(e[t]={});return a[i]||(a[i]={})}function $Ie(e,t,i,a){for(const n of t.getMatchingVisibleMetas(a).reverse()){const t=e[n.index];if(i&&t>0||!i&&t<0)return n.index}return null}function VIe(e,t){const{chart:i,_cachedMeta:a}=e,n=i._stacks||(i._stacks={}),{iScale:s,vScale:o,index:r}=a,l=s.axis,c=o.axis,d=function(e,t,i){return`${e.id}.${t.id}.${i.stack||i.type}`}(s,o,a),u=t.length;let p;for(let h=0;h<u;++h){const e=t[h],{[l]:i,[c]:s}=e;p=(e._stacks||(e._stacks={}))[c]=BIe(n,d,i),p[r]=s,p._top=$Ie(p,o,!0,a.type),p._bottom=$Ie(p,o,!1,a.type);(p._visualValues||(p._visualValues={}))[r]=s}}function UIe(e,t){const i=e.scales;return Object.keys(i).filter(e=>i[e].axis===t).shift()}function HIe(e,t){const i=e.controller.index,a=e.vScale&&e.vScale.axis;if(a){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[a]||void 0===t[a][i])return;delete t[a][i],void 0!==t[a]._visualValues&&void 0!==t[a]._visualValues[i]&&delete t[a]._visualValues[i]}}}const zIe=e=>"reset"===e||"none"===e,YIe=(e,t)=>t?e:Object.assign({},e);class GIe{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=FIe(e.vScale,e),this.addElements(),this.options.fill&&this.chart.isPluginEnabled("filler")}updateIndex(e){this.index!==e&&HIe(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,i=this.getDataset(),a=(e,t,i,a)=>"x"===e?t:"r"===e?a:i,n=t.xAxisID=GTe(i.xAxisID,UIe(e,"x")),s=t.yAxisID=GTe(i.yAxisID,UIe(e,"y")),o=t.rAxisID=GTe(i.rAxisID,UIe(e,"r")),r=t.indexAxis,l=t.iAxisID=a(r,n,s,o),c=t.vAxisID=a(r,s,n,o);t.xScale=this.getScaleForId(n),t.yScale=this.getScaleForId(s),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&PAe(this._data,this),e._stacked&&HIe(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),i=this._data;if(HTe(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:i,vScale:a}=t,n="x"===i.axis?"x":"y",s="x"===a.axis?"x":"y",o=Object.keys(e),r=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],r[l]={[n]:d,[s]:e[d]};return r}(t,e)}else if(i!==t){if(i){PAe(i,this);const e=this._cachedMeta;HIe(e),e._parsed=[]}t&&Object.isExtensible(t)&&(n=this,(a=t)._chartjs?a._chartjs.listeners.push(n):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),LAe.forEach(e=>{const t="_onData"+nAe(e),i=a[e];Object.defineProperty(a,e,{configurable:!0,enumerable:!1,value(...e){const n=i.apply(this,e);return a._chartjs.listeners.forEach(i=>{"function"==typeof i[t]&&i[t](...e)}),n}})}))),this._syncList=[],this._data=t}var a,n}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,i=this.getDataset();let a=!1;this._dataCheck();const n=t._stacked;t._stacked=FIe(t.vScale,t),t.stack!==i.stack&&(a=!0,HIe(t),t.stack=i.stack),this._resyncElements(e),(a||n!==t._stacked)&&(VIe(this,t._parsed),t._stacked=FIe(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:i,_data:a}=this,{iScale:n,_stacked:s}=i,o=n.axis;let r,l,c,d=0===e&&t===a.length||i._sorted,u=e>0&&i._parsed[e-1];if(!1===this._parsing)i._parsed=a,i._sorted=!0,c=a;else{c=UTe(a[e])?this.parseArrayData(i,a,e,t):HTe(a[e])?this.parseObjectData(i,a,e,t):this.parsePrimitiveData(i,a,e,t);const n=()=>null===l[o]||u&&l[o]<u[o];for(r=0;r<t;++r)i._parsed[r+e]=l=c[r],d&&(n()&&(d=!1),u=l);i._sorted=d}s&&VIe(this,c)}parsePrimitiveData(e,t,i,a){const{iScale:n,vScale:s}=e,o=n.axis,r=s.axis,l=n.getLabels(),c=n===s,d=new Array(a);let u,p,h;for(u=0,p=a;u<p;++u)h=u+i,d[u]={[o]:c||n.parse(l[h],h),[r]:s.parse(t[h],h)};return d}parseArrayData(e,t,i,a){const{xScale:n,yScale:s}=e,o=new Array(a);let r,l,c,d;for(r=0,l=a;r<l;++r)c=r+i,d=t[c],o[r]={x:n.parse(d[0],c),y:s.parse(d[1],c)};return o}parseObjectData(e,t,i,a){const{xScale:n,yScale:s}=e,{xAxisKey:o="x",yAxisKey:r="y"}=this._parsing,l=new Array(a);let c,d,u,p;for(c=0,d=a;c<d;++c)u=c+i,p=t[u],l[c]={x:n.parse(aAe(p,o),u),y:s.parse(aAe(p,r),u)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,i){const a=this.chart,n=this._cachedMeta,s=t[e.axis];return PIe({keys:LIe(a,!0),values:t._stacks[e.axis]._visualValues},s,n.index,{mode:i})}updateRangeFromParsed(e,t,i,a){const n=i[t.axis];let s=null===n?NaN:n;const o=a&&i._stacks[t.axis];a&&o&&(a.values=o,s=PIe(a,n,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,t){const i=this._cachedMeta,a=i._parsed,n=i._sorted&&e===i.iScale,s=a.length,o=this._getOtherScale(e),r=((e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:LIe(i,!0),values:null})(t,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(e){const{min:t,max:i,minDefined:a,maxDefined:n}=e.getUserBounds();return{min:a?t:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(o);let u,p;function h(){p=a[u];const t=p[o.axis];return!zTe(p[e.axis])||c>t||d<t}for(u=0;u<s&&(h()||(this.updateRangeFromParsed(l,e,p,r),!n));++u);if(n)for(u=s-1;u>=0;--u)if(!h()){this.updateRangeFromParsed(l,e,p,r);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,i=[];let a,n,s;for(a=0,n=t.length;a<n;++a)s=t[a][e.axis],zTe(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,i=t.iScale,a=t.vScale,n=this.getParsed(e);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:a?""+a.getLabelForValue(n[a.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,i,a,n;return HTe(e)?(t=e.top,i=e.right,a=e.bottom,n=e.left):t=i=a=n=e,{top:t,right:i,bottom:a,left:n,disabled:!1===e}}(GTe(this.options.clip,function(e,t,i){if(!1===i)return!1;const a=NIe(e,i),n=NIe(t,i);return{top:n.end,right:a.end,bottom:n.start,left:a.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,i=this._cachedMeta,a=i.data||[],n=t.chartArea,s=[],o=this._drawStart||0,r=this._drawCount||a.length-o,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(e,n,o,r),c=o;c<o+r;++c){const t=a[c];t.hidden||(t.active&&l?s.push(t):t.draw(e,n))}for(c=0;c<s.length;++c)s[c].draw(e,n)}getStyle(e,t){const i=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,t,i){const a=this.getDataset();let n;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];n=t.$context||(t.$context=function(e,t,i){return NRe(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),n.parsed=this.getParsed(e),n.raw=a.data[e],n.index=n.dataIndex=e}else n=this.$context||(this.$context=function(e,t){return NRe(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=a,n.index=n.datasetIndex=this.index;return n.active=!!t,n.mode=i,n}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",i){const a="active"===t,n=this._cachedDataOpts,s=e+"-"+t,o=n[s],r=this.enableOptionSharing&&sAe(i);if(o)return YIe(o,r);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),d=a?[`${e}Hover`,"hover",e,""]:[e,""],u=l.getOptionScopes(this.getDataset(),c),p=Object.keys(lRe.elements[e]),h=l.resolveNamedOptions(u,p,()=>this.getContext(i,a,t),d);return h.$shared&&(h.$shared=r,n[s]=Object.freeze(YIe(h,r))),h}_resolveAnimations(e,t,i){const a=this.chart,n=this._cachedDataOpts,s=`animation-${t}`,o=n[s];if(o)return o;let r;if(!1!==a.options.animation){const a=this.chart.config,n=a.datasetAnimationScopeKeys(this._type,t),s=a.getOptionScopes(this.getDataset(),n);r=a.createResolver(s,this.getContext(e,i,t))}const l=new MIe(a,r&&r.animations);return r&&r._cacheable&&(n[s]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||zIe(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const i=this.resolveDataElementOptions(e,t),a=this._sharedOptions,n=this.getSharedOptions(i),s=this.includeOptions(t,n)||n!==a;return this.updateSharedOptions(n,t,i),{sharedOptions:n,includeOptions:s}}updateElement(e,t,i,a){zIe(a)?Object.assign(e,i):this._resolveAnimations(t,a).update(e,i)}updateSharedOptions(e,t,i){e&&!zIe(t)&&this._resolveAnimations(void 0,t).update(e,i)}_setStyle(e,t,i,a){e.active=a;const n=this.getStyle(t,a);this._resolveAnimations(t,i,a).update(e,{options:!a&&this.getSharedOptions(n)||n})}removeHoverStyle(e,t,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,t,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,i=this._cachedMeta.data;for(const[o,r,l]of this._syncList)this[o](r,l);this._syncList=[];const a=i.length,n=t.length,s=Math.min(n,a);s&&this.parse(0,s),n>a?this._insertElements(a,n-a,e):n<a&&this._removeElements(n,a-n)}_insertElements(e,t,i=!0){const a=this._cachedMeta,n=a.data,s=e+t;let o;const r=e=>{for(e.length+=t,o=e.length-1;o>=s;o--)e[o]=e[o-t]};for(r(n),o=e;o<s;++o)n[o]=new this.dataElementType;this._parsing&&r(a._parsed),this.parse(e,t),i&&this.updateElements(n,e,t,"reset")}updateElements(e,t,i,a){}_removeElements(e,t){const i=this._cachedMeta;if(this._parsing){const a=i._parsed.splice(e,t);i._stacked&&HIe(i,a)}i.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,i,a]=e;this[t](i,a)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function WIe(e){const t=e.iScale,i=function(e,t){if(!e._cache.$bar){const i=e.getMatchingVisibleMetas(t);let a=[];for(let t=0,n=i.length;t<n;t++)a=a.concat(i[t].controller.getAllParsedValues(e));e._cache.$bar=FAe(a.sort((e,t)=>e-t))}return e._cache.$bar}(t,e.type);let a,n,s,o,r=t._length;const l=()=>{32767!==s&&-32768!==s&&(sAe(o)&&(r=Math.min(r,Math.abs(s-o)||r)),o=s)};for(a=0,n=i.length;a<n;++a)s=t.getPixelForValue(i[a]),l();for(o=void 0,a=0,n=t.ticks.length;a<n;++a)s=t.getPixelForTick(a),l();return r}function jIe(e,t,i,a){return UTe(e)?function(e,t,i,a){const n=i.parse(e[0],a),s=i.parse(e[1],a),o=Math.min(n,s),r=Math.max(n,s);let l=o,c=r;Math.abs(o)>Math.abs(r)&&(l=r,c=o),t[i.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:s,min:o,max:r}}(e,t,i,a):t[i.axis]=i.parse(e,a),t}function qIe(e,t,i,a){const n=e.iScale,s=e.vScale,o=n.getLabels(),r=n===s,l=[];let c,d,u,p;for(c=i,d=i+a;c<d;++c)p=t[c],u={},u[n.axis]=r||n.parse(o[c],c),l.push(jIe(p,u,s,c));return l}function KIe(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function XIe(e,t,i,a){let n=t.borderSkipped;const s={};if(!n)return void(e.borderSkipped=s);if(!0===n)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:r,reverse:l,top:c,bottom:d}=function(e){let t,i,a,n,s;return e.horizontal?(t=e.base>e.x,i="left",a="right"):(t=e.base<e.y,i="bottom",a="top"),t?(n="end",s="start"):(n="start",s="end"),{start:i,end:a,reverse:t,top:n,bottom:s}}(e);"middle"===n&&i&&(e.enableBorderRadius=!0,(i._top||0)===a?n=c:(i._bottom||0)===a?n=d:(s[ZIe(d,o,r,l)]=!0,n=c)),s[ZIe(n,o,r,l)]=!0,e.borderSkipped=s}function ZIe(e,t,i,a){var n,s,o;return a?(o=i,e=QIe(e=(n=e)===(s=t)?o:n===o?s:n,i,t)):e=QIe(e,t,i),e}function QIe(e,t,i){return"start"===e?t:"end"===e?i:e}function JIe(e,{inflateAmount:t},i){e.inflateAmount="auto"===t?1===i?.33:0:t}o(GIe,"defaults",{}),o(GIe,"datasetElementType",null),o(GIe,"dataElementType",null);class eDe extends GIe{parsePrimitiveData(e,t,i,a){return qIe(e,t,i,a)}parseArrayData(e,t,i,a){return qIe(e,t,i,a)}parseObjectData(e,t,i,a){const{iScale:n,vScale:s}=e,{xAxisKey:o="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?o:r,c="x"===s.axis?o:r,d=[];let u,p,h,f;for(u=i,p=i+a;u<p;++u)f=t[u],h={},h[n.axis]=n.parse(aAe(f,l),u),d.push(jIe(aAe(f,c),h,s,u));return d}updateRangeFromParsed(e,t,i,a){super.updateRangeFromParsed(e,t,i,a);const n=i._custom;n&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,n.min),e.max=Math.max(e.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:i,vScale:a}=t,n=this.getParsed(e),s=n._custom,o=KIe(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(n[a.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,i,a){const n="reset"===a,{index:s,_cachedMeta:{vScale:o}}=this,r=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(t,a);for(let p=t;p<t+i;p++){const t=this.getParsed(p),i=n||VTe(t[o.axis])?{base:r,head:r}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[o.axis],g={horizontal:l,base:i.base,enableBorderRadius:!f||KIe(t._custom)||s===f._top||s===f._bottom,x:l?i.head:h.center,y:l?h.center:i.head,height:l?h.size:Math.abs(i.size),width:l?Math.abs(i.size):h.size};u&&(g.options=d||this.resolveDataElementOptions(p,e[p].active?"active":a));const m=g.options||e[p].options;XIe(g,m,f,s),JIe(g,m,c.ratio),this.updateElement(e[p],p,g,a)}}_getStacks(e,t){const{iScale:i}=this._cachedMeta,a=i.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),n=i.options.stacked,s=[],o=this._cachedMeta.controller.getParsed(t),r=o&&o[i.axis],l=e=>{const t=e._parsed.find(e=>e[i.axis]===r),a=t&&t[e.vScale.axis];if(VTe(a)||isNaN(a))return!0};for(const c of a)if((void 0===t||!l(c))&&((!1===n||-1===s.indexOf(c.stack)||void 0===n&&void 0===c.stack)&&s.push(c.stack),c.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(i=>e[i].axis===t).shift()}_getAxis(){const e={},t=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)e[GTe("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,i){const a=this._getStacks(e,i),n=void 0!==t?a.indexOf(t):-1;return-1===n?a.length-1:n}_getRuler(){const e=this.options,t=this._cachedMeta,i=t.iScale,a=[];let n,s;for(n=0,s=t.data.length;n<s;++n)a.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const o=e.barThickness;return{min:o||WIe(t),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:i,index:a},options:{base:n,minBarLength:s}}=this,o=n||0,r=this.getParsed(e),l=r._custom,c=KIe(l);let d,u,p=r[t.axis],h=0,f=i?this.applyStack(t,r,i):p;f!==p&&(h=f-p,f=p),c&&(p=l.barStart,f=l.barEnd-l.barStart,0!==p&&_Ae(p)!==_Ae(l.barEnd)&&(h=0),h+=p);const g=VTe(n)||c?h:n;let m=t.getPixelForValue(g);if(d=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):m,u=d-m,Math.abs(u)<s){u=function(e,t,i){return 0!==e?_Ae(e):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}(u,t,o)*s,p===o&&(m-=u/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),l=Math.min(e,n),h=Math.max(e,n);m=Math.max(Math.min(m,h),l),d=m+u,i&&!c&&(r._stacks[t.axis]._visualValues[a]=t.getValueForPixel(d)-t.getValueForPixel(m))}if(m===t.getPixelForValue(o)){const e=_Ae(u)*t.getLineWidthForValue(o)/2;m+=e,u-=e}return{size:u,base:m,head:d,center:d+u/2}}_calculateBarIndexPixels(e,t){const i=t.scale,a=this.options,n=a.skipNull,s=GTe(a.maxBarThickness,1/0);let o,r;const l=this._getAxisCount();if(t.grouped){const i=n?this._getStackCount(e):t.stackCount,c="flex"===a.barThickness?function(e,t,i,a){const n=t.pixels,s=n[e];let o=e>0?n[e-1]:null,r=e<n.length-1?n[e+1]:null;const l=i.categoryPercentage;null===o&&(o=s-(null===r?t.end-t.start:r-s)),null===r&&(r=s+s-o);const c=s-(s-Math.min(o,r))/2*l;return{chunk:Math.abs(r-o)/2*l/a,ratio:i.barPercentage,start:c}}(e,t,a,i*l):function(e,t,i,a){const n=i.barThickness;let s,o;return VTe(n)?(s=t.min*i.categoryPercentage,o=i.barPercentage):(s=n*a,o=1),{chunk:s/a,ratio:o,start:t.pixels[e]-s/2}}(e,t,a,i*l),d="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,u=this._getAxis().indexOf(GTe(d,this.getFirstScaleIdForIndexAxis())),p=this._getStackIndex(this.index,this._cachedMeta.stack,n?e:void 0)+u;o=c.start+c.chunk*p+c.chunk/2,r=Math.min(s,c.chunk*c.ratio)}else o=i.getPixelForValue(this.getParsed(e)[i.axis],e),r=Math.min(s,t.min*t.ratio);return{base:o-r/2,head:o+r/2,center:o,size:r}}draw(){const e=this._cachedMeta,t=e.vScale,i=e.data,a=i.length;let n=0;for(;n<a;++n)null===this.getParsed(n)[t.axis]||i[n].hidden||i[n].draw(this._ctx)}}o(eDe,"id","bar"),o(eDe,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),o(eDe,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class tDe extends GIe{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,i,a){const n=super.parsePrimitiveData(e,t,i,a);for(let s=0;s<n.length;s++)n[s]._custom=this.resolveDataElementOptions(s+i).radius;return n}parseArrayData(e,t,i,a){const n=super.parseArrayData(e,t,i,a);for(let s=0;s<n.length;s++){const e=t[i+s];n[s]._custom=GTe(e[2],this.resolveDataElementOptions(s+i).radius)}return n}parseObjectData(e,t,i,a){const n=super.parseObjectData(e,t,i,a);for(let s=0;s<n.length;s++){const e=t[i+s];n[s]._custom=GTe(e&&e.r&&+e.r,this.resolveDataElementOptions(s+i).radius)}return n}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart.data.labels||[],{xScale:a,yScale:n}=t,s=this.getParsed(e),o=a.getLabelForValue(s.x),r=n.getLabelForValue(s.y),l=s._custom;return{label:i[e]||"",value:"("+o+", "+r+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,i,a){const n="reset"===a,{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(t,a),c=s.axis,d=o.axis;for(let u=t;u<t+i;u++){const t=e[u],i=!n&&this.getParsed(u),p={},h=p[c]=n?s.getPixelForDecimal(.5):s.getPixelForValue(i[c]),f=p[d]=n?o.getBasePixel():o.getPixelForValue(i[d]);p.skip=isNaN(h)||isNaN(f),l&&(p.options=r||this.resolveDataElementOptions(u,t.active?"active":a),n&&(p.options.radius=0)),this.updateElement(t,u,p,a)}}resolveDataElementOptions(e,t){const i=this.getParsed(e);let a=super.resolveDataElementOptions(e,t);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const n=a.radius;return"active"!==t&&(a.radius=0),a.radius+=GTe(i&&i._custom,n),a}}o(tDe,"id","bubble"),o(tDe,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),o(tDe,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class iDe extends GIe{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const i=this.getDataset().data,a=this._cachedMeta;if(!1===this._parsing)a._parsed=i;else{let n,s,o=e=>+i[e];if(HTe(i[e])){const{key:e="value"}=this._parsing;o=t=>+aAe(i[t],e)}for(n=e,s=e+t;n<s;++n)a._parsed[n]=o(n)}}_getRotation(){return SAe(this.options.rotation-90)}_getCircumference(){return SAe(this.options.circumference)}_getRotationExtents(){let e=cAe,t=-cAe;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const a=this.chart.getDatasetMeta(i).controller,n=a._getRotation(),s=a._getCircumference();e=Math.min(e,n),t=Math.max(t,n+s)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:i}=t,a=this._cachedMeta,n=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-s)/2,0),r=Math.min((l=this.options.cutout,c=o,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=function(e,t,i){let a=1,n=1,s=0,o=0;if(t<cAe){const r=e,l=r+t,c=Math.cos(r),d=Math.sin(r),u=Math.cos(l),p=Math.sin(l),h=(e,t,a)=>RAe(e,r,l,!0)?1:Math.max(t,t*i,a,a*i),f=(e,t,a)=>RAe(e,r,l,!0)?-1:Math.min(t,t*i,a,a*i),g=h(0,c,u),m=h(hAe,d,p),_=f(lAe,c,u),v=f(lAe+hAe,d,p);a=(g-_)/2,n=(m-v)/2,s=-(g+_)/2,o=-(m+v)/2}return{ratioX:a,ratioY:n,offsetX:s,offsetY:o}}(p,u,r),_=(i.width-s)/h,v=(i.height-s)/f,b=Math.max(Math.min(_,v)/2,0),y=WTe(this.options.radius,b),x=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,a.total=this.calculateTotal(),this.outerRadius=y-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*d,0),this.updateElements(n,0,n.length,e)}_circumference(e,t){const i=this.options,a=this._cachedMeta,n=this._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===a._parsed[e]||a.data[e].hidden?0:this.calculateCircumference(a._parsed[e]*n/cAe)}updateElements(e,t,i,a){const n="reset"===a,s=this.chart,o=s.chartArea,r=s.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,d=n&&r.animateScale,u=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,a);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,n);for(g=t;g<t+i;++g){const t=this._circumference(g,n),i=e[g],s={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:p,innerRadius:u};f&&(s.options=h||this.resolveDataElementOptions(g,i.active?"active":a)),m+=t,this.updateElement(i,g,s,a)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let i,a=0;for(i=0;i<t.length;i++){const n=e._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||t[i].hidden||(a+=Math.abs(n))}return a}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?cAe*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=eRe(t._parsed[e],i.options.locale);return{label:a[e]||"",value:n}}getMaxBorderWidth(e){let t=0;const i=this.chart;let a,n,s,o,r;if(!e)for(a=0,n=i.data.datasets.length;a<n;++a)if(i.isDatasetVisible(a)){s=i.getDatasetMeta(a),e=s.data,o=s.controller;break}if(!e)return 0;for(a=0,n=e.length;a<n;++a)r=o.resolveDataElementOptions(a),"inner"!==r.borderAlign&&(t=Math.max(t,r.borderWidth||0,r.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let i=0,a=e.length;i<a;++i){const e=this.resolveDataElementOptions(i);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(t+=this._getRingWeight(i));return t}_getRingWeight(e){return Math.max(GTe(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}o(iDe,"id","doughnut"),o(iDe,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),o(iDe,"descriptors",{_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),o(iDe,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data,{labels:{pointStyle:i,textAlign:a,color:n,useBorderRadius:s,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,r)=>{const l=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:l.backgroundColor,fontColor:n,hidden:!e.getDataVisibility(r),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:a,pointStyle:i,borderRadius:s&&(o||l.borderRadius),index:r}}):[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}}}});class aDe extends GIe{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:i,data:a=[],_dataset:n}=t,s=this.chart._animationsDisabled;let{start:o,count:r}=HAe(t,a,s);this._drawStart=o,this._drawCount=r,zAe(t)&&(o=0,r=a.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=a;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:l},e),this.updateElements(a,o,r,e)}updateElements(e,t,i,a){const n="reset"===a,{iScale:s,vScale:o,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(t,a),u=s.axis,p=o.axis,{spanGaps:h,segment:f}=this.options,g=yAe(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||n||"none"===a,_=t+i,v=e.length;let b=t>0&&this.getParsed(t-1);for(let y=0;y<v;++y){const i=e[y],h=m?i:{};if(y<t||y>=_){h.skip=!0;continue}const v=this.getParsed(y),x=VTe(v[p]),S=h[u]=s.getPixelForValue(v[u],y),w=h[p]=n||x?o.getBasePixel():o.getPixelForValue(r?this.applyStack(o,v,r):v[p],y);h.skip=isNaN(S)||isNaN(w)||x,h.stop=y>0&&Math.abs(v[u]-b[u])>g,f&&(h.parsed=v,h.raw=l.data[y]),d&&(h.options=c||this.resolveDataElementOptions(y,i.active?"active":a)),m||this.updateElement(i,y,h,a),b=v}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,i=t.options&&t.options.borderWidth||0,a=e.data||[];if(!a.length)return i;const n=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(i,n,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}o(aDe,"id","line"),o(aDe,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),o(aDe,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class nDe extends GIe{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=eRe(t._parsed[e].r,i.options.locale);return{label:a[e]||"",value:n}}parseObjectData(e,t,i,a){return qRe.bind(this)(e,t,i,a)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((e,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<t.min&&(t.min=a),a>t.max&&(t.max=a))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,i=e.options,a=Math.min(t.right-t.left,t.bottom-t.top),n=Math.max(a/2,0),s=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=n-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,t,i,a){const n="reset"===a,s=this.chart,o=s.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,c=r.yCenter,d=r.getIndexAngle(0)-.5*lAe;let u,p=d;const h=360/this.countVisibleElements();for(u=0;u<t;++u)p+=this._computeAngle(u,a,h);for(u=t;u<t+i;u++){const t=e[u];let i=p,f=p+this._computeAngle(u,a,h),g=s.getDataVisibility(u)?r.getDistanceFromCenterForValue(this.getParsed(u).r):0;p=f,n&&(o.animateScale&&(g=0),o.animateRotate&&(i=f=d));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:i,endAngle:f,options:this.resolveDataElementOptions(u,t.active?"active":a)};this.updateElement(t,u,m,a)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach((e,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&t++}),t}_computeAngle(e,t,i){return this.chart.getDataVisibility(e)?SAe(this.resolveDataElementOptions(e,t).angle||i):0}}o(nDe,"id","polarArea"),o(nDe,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),o(nDe,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:i,color:a}}=e.legend.options;return t.labels.map((t,n)=>{const s=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:a,lineWidth:s.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(n),index:n}})}return[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class sDe extends iDe{}o(sDe,"id","pie"),o(sDe,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class oDe extends GIe{getLabelAndValue(e){const t=this._cachedMeta.vScale,i=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(i[t.axis])}}parseObjectData(e,t,i,a){return qRe.bind(this)(e,t,i,a)}update(e){const t=this._cachedMeta,i=t.dataset,a=t.data||[],n=t.iScale.getLabels();if(i.points=a,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const s={_loop:!0,_fullLoop:n.length===a.length,options:t};this.updateElement(i,void 0,s,e)}this.updateElements(a,0,a.length,e)}updateElements(e,t,i,a){const n=this._cachedMeta.rScale,s="reset"===a;for(let o=t;o<t+i;o++){const t=e[o],i=this.resolveDataElementOptions(o,t.active?"active":a),r=n.getPointPositionForValue(o,this.getParsed(o).r),l=s?n.xCenter:r.x,c=s?n.yCenter:r.y,d={x:l,y:c,angle:r.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(t,o,d,a)}}}o(oDe,"id","radar"),o(oDe,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),o(oDe,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class rDe extends GIe{getLabelAndValue(e){const t=this._cachedMeta,i=this.chart.data.labels||[],{xScale:a,yScale:n}=t,s=this.getParsed(e),o=a.getLabelForValue(s.x),r=n.getLabelForValue(s.y);return{label:i[e]||"",value:"("+o+", "+r+")"}}update(e){const t=this._cachedMeta,{data:i=[]}=t,a=this.chart._animationsDisabled;let{start:n,count:s}=HAe(t,i,a);if(this._drawStart=n,this._drawCount=s,zAe(t)&&(n=0,s=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:s}=t;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!s._decimated,n.points=i;const o=this.resolveDatasetElementOptions(e);o.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:o},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(i,n,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,i,a){const n="reset"===a,{iScale:s,vScale:o,_stacked:r,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,a),d=this.getSharedOptions(c),u=this.includeOptions(a,d),p=s.axis,h=o.axis,{spanGaps:f,segment:g}=this.options,m=yAe(f)?f:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||n||"none"===a;let v=t>0&&this.getParsed(t-1);for(let b=t;b<t+i;++b){const t=e[b],i=this.getParsed(b),c=_?t:{},f=VTe(i[h]),y=c[p]=s.getPixelForValue(i[p],b),x=c[h]=n||f?o.getBasePixel():o.getPixelForValue(r?this.applyStack(o,i,r):i[h],b);c.skip=isNaN(y)||isNaN(x)||f,c.stop=b>0&&Math.abs(i[p]-v[p])>m,g&&(c.parsed=i,c.raw=l.data[b]),u&&(c.options=d||this.resolveDataElementOptions(b,t.active?"active":a)),_||this.updateElement(t,b,c,a),v=i}this.updateSharedOptions(d,a,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}const i=e.dataset,a=i.options&&i.options.borderWidth||0;if(!t.length)return a;const n=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(a,n,s)/2}}o(rDe,"id","scatter"),o(rDe,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),o(rDe,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var lDe=Object.freeze({__proto__:null,BarController:eDe,BubbleController:tDe,DoughnutController:iDe,LineController:aDe,PieController:sDe,PolarAreaController:nDe,RadarController:oDe,ScatterController:rDe});function cDe(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class dDe{constructor(e){o(this,"options"),this.options=e||{}}static override(e){Object.assign(dDe.prototype,e)}init(){}formats(){return cDe()}parse(){return cDe()}format(){return cDe()}add(){return cDe()}diff(){return cDe()}startOf(){return cDe()}endOf(){return cDe()}}var uDe=dDe;function pDe(e,t,i,a){const{controller:n,data:s,_sorted:o}=e,r=n._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(r&&t===r.axis&&"r"!==t&&o&&s.length){const o=r._reversePixels?NAe:MAe;if(!a){const a=o(s,t,i);if(l){const{vScale:t}=n._cachedMeta,{_parsed:i}=e,s=i.slice(0,a.lo+1).reverse().findIndex(e=>!VTe(e[t.axis]));a.lo-=Math.max(0,s);const o=i.slice(a.hi).findIndex(e=>!VTe(e[t.axis]));a.hi+=Math.max(0,o)}return a}if(n._sharedOptions){const e=s[0],a="function"==typeof e.getRange&&e.getRange(t);if(a){const e=o(s,t,i-a),n=o(s,t,i+a);return{lo:e.lo,hi:n.hi}}}}return{lo:0,hi:s.length-1}}function hDe(e,t,i,a,n){const s=e.getSortedVisibleDatasetMetas(),o=i[t];for(let r=0,l=s.length;r<l;++r){const{index:e,data:i}=s[r],{lo:l,hi:c}=pDe(s[r],t,o,n);for(let t=l;t<=c;++t){const n=i[t];n.skip||a(n,e,t)}}}function fDe(e,t,i,a,n){const s=[];if(!n&&!e.isPointInArea(t))return s;return hDe(e,i,t,function(i,o,r){(n||gRe(i,e.chartArea,0))&&i.inRange(t.x,t.y,a)&&s.push({element:i,datasetIndex:o,index:r})},!0),s}function gDe(e,t,i,a,n,s){let o=[];const r=function(e){const t=-1!==e.indexOf("x"),i=-1!==e.indexOf("y");return function(e,a){const n=t?Math.abs(e.x-a.x):0,s=i?Math.abs(e.y-a.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(s,2))}}(i);let l=Number.POSITIVE_INFINITY;return hDe(e,i,t,function(i,c,d){const u=i.inRange(t.x,t.y,n);if(a&&!u)return;const p=i.getCenterPoint(n);if(!(!!s||e.isPointInArea(p))&&!u)return;const h=r(t,p);h<l?(o=[{element:i,datasetIndex:c,index:d}],l=h):h===l&&o.push({element:i,datasetIndex:c,index:d})}),o}function mDe(e,t,i,a,n,s){return s||e.isPointInArea(t)?"r"!==i||a?gDe(e,t,i,a,n,s):function(e,t,i,a){let n=[];return hDe(e,i,t,function(e,i,s){const{startAngle:o,endAngle:r}=e.getProps(["startAngle","endAngle"],a),{angle:l}=EAe(e,{x:t.x,y:t.y});RAe(l,o,r)&&n.push({element:e,datasetIndex:i,index:s})}),n}(e,t,i,n):[]}function _De(e,t,i,a,n){const s=[],o="x"===i?"inXRange":"inYRange";let r=!1;return hDe(e,i,t,(e,a,l)=>{e[o]&&e[o](t[i],n)&&(s.push({element:e,datasetIndex:a,index:l}),r=r||e.inRange(t.x,t.y,n))}),a&&!r?[]:s}var vDe={modes:{index(e,t,i,a){const n=lIe(t,e),s=i.axis||"x",o=i.includeInvisible||!1,r=i.intersect?fDe(e,n,s,a,o):mDe(e,n,s,!1,a,o),l=[];return r.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=r[0].index,i=e.data[t];i&&!i.skip&&l.push({element:i,datasetIndex:e.index,index:t})}),l):[]},dataset(e,t,i,a){const n=lIe(t,e),s=i.axis||"xy",o=i.includeInvisible||!1;let r=i.intersect?fDe(e,n,s,a,o):mDe(e,n,s,!1,a,o);if(r.length>0){const t=r[0].datasetIndex,i=e.getDatasetMeta(t).data;r=[];for(let e=0;e<i.length;++e)r.push({element:i[e],datasetIndex:t,index:e})}return r},point:(e,t,i,a)=>fDe(e,lIe(t,e),i.axis||"xy",a,i.includeInvisible||!1),nearest(e,t,i,a){const n=lIe(t,e),s=i.axis||"xy",o=i.includeInvisible||!1;return mDe(e,n,s,i.intersect,a,o)},x:(e,t,i,a)=>_De(e,lIe(t,e),"x",i.intersect,a),y:(e,t,i,a)=>_De(e,lIe(t,e),"y",i.intersect,a)}};const bDe=["left","top","right","bottom"];function yDe(e,t){return e.filter(e=>e.pos===t)}function xDe(e,t){return e.filter(e=>-1===bDe.indexOf(e.pos)&&e.box.axis===t)}function SDe(e,t){return e.sort((e,i)=>{const a=t?i:e,n=t?e:i;return a.weight===n.weight?a.index-n.index:a.weight-n.weight})}function wDe(e,t){const i=function(e){const t={};for(const i of e){const{stack:e,pos:a,stackWeight:n}=i;if(!e||!bDe.includes(a))continue;const s=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=n}return t}(e),{vBoxMaxWidth:a,hBoxMaxHeight:n}=t;let s,o,r;for(s=0,o=e.length;s<o;++s){r=e[s];const{fullSize:o}=r.box,l=i[r.stack],c=l&&r.stackWeight/l.weight;r.horizontal?(r.width=c?c*a:o&&t.availableWidth,r.height=n):(r.width=a,r.height=c?c*n:o&&t.availableHeight)}return i}function CDe(e,t,i,a){return Math.max(e[i],t[i])+Math.max(e[a],t[a])}function EDe(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function kDe(e,t,i,a){const{pos:n,box:s}=i,o=e.maxPadding;if(!HTe(n)){i.size&&(e[n]-=i.size);const t=a[i.stack]||{size:0,count:1};t.size=Math.max(t.size,i.horizontal?s.height:s.width),i.size=t.size/t.count,e[n]+=i.size}s.getPadding&&EDe(o,s.getPadding());const r=Math.max(0,t.outerWidth-CDe(o,e,"left","right")),l=Math.max(0,t.outerHeight-CDe(o,e,"top","bottom")),c=r!==e.w,d=l!==e.h;return e.w=r,e.h=l,i.horizontal?{same:c,other:d}:{same:d,other:c}}function TDe(e,t){const i=t.maxPadding;function a(e){const a={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{a[e]=Math.max(t[e],i[e])}),a}return a(e?["left","right"]:["top","bottom"])}function ADe(e,t,i,a){const n=[];let s,o,r,l,c,d;for(s=0,o=e.length,c=0;s<o;++s){r=e[s],l=r.box,l.update(r.width||t.w,r.height||t.h,TDe(r.horizontal,t));const{same:o,other:u}=kDe(t,i,r,a);c|=o&&n.length,d=d||u,l.fullSize||n.push(r)}return c&&ADe(n,t,i,a)||d}function RDe(e,t,i,a,n){e.top=i,e.left=t,e.right=t+a,e.bottom=i+n,e.width=a,e.height=n}function IDe(e,t,i,a){const n=i.padding;let{x:s,y:o}=t;for(const r of e){const e=r.box,l=a[r.stack]||{placed:0,weight:1},c=r.stackWeight/l.weight||1;if(r.horizontal){const a=t.w*c,s=l.size||e.height;sAe(l.start)&&(o=l.start),e.fullSize?RDe(e,n.left,o,i.outerWidth-n.right-n.left,s):RDe(e,t.left+l.placed,o,a,s),l.start=o,l.placed+=a,o=e.bottom}else{const a=t.h*c,o=l.size||e.width;sAe(l.start)&&(s=l.start),e.fullSize?RDe(e,s,n.top,o,i.outerHeight-n.bottom-n.top):RDe(e,s,t.top+l.placed,o,a),l.start=s,l.placed+=a,s=e.right}}t.x=s,t.y=o}var DDe={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const i=e.boxes?e.boxes.indexOf(t):-1;-1!==i&&e.boxes.splice(i,1)},configure(e,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(e,t,i,a){if(!e)return;const n=DRe(e.options.layout.padding),s=Math.max(t-n.width,0),o=Math.max(i-n.height,0),r=function(e){const t=function(e){const t=[];let i,a,n,s,o,r;for(i=0,a=(e||[]).length;i<a;++i)n=e[i],({position:s,options:{stack:o,stackWeight:r=1}}=n),t.push({index:i,box:n,pos:s,horizontal:n.isHorizontal(),weight:n.weight,stack:o&&s+o,stackWeight:r});return t}(e),i=SDe(t.filter(e=>e.box.fullSize),!0),a=SDe(yDe(t,"left"),!0),n=SDe(yDe(t,"right")),s=SDe(yDe(t,"top"),!0),o=SDe(yDe(t,"bottom")),r=xDe(t,"x"),l=xDe(t,"y");return{fullSize:i,leftAndTop:a.concat(s),rightAndBottom:n.concat(l).concat(o).concat(r),chartArea:yDe(t,"chartArea"),vertical:a.concat(n).concat(l),horizontal:s.concat(o).concat(r)}}(e.boxes),l=r.vertical,c=r.horizontal;qTe(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const d=l.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:i,padding:n,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),p=Object.assign({},n);EDe(p,DRe(a));const h=Object.assign({maxPadding:p,w:s,h:o,x:n.left,y:n.top},n),f=wDe(l.concat(c),u);ADe(r.fullSize,h,u,f),ADe(l,h,u,f),ADe(c,h,u,f)&&ADe(l,h,u,f),function(e){const t=e.maxPadding;function i(i){const a=Math.max(t[i]-e[i],0);return e[i]+=a,a}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}(h),IDe(r.leftAndTop,h,u,f),h.x+=h.w,h.y+=h.h,IDe(r.rightAndBottom,h,u,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},qTe(r.chartArea,t=>{const i=t.box;Object.assign(i,e.chartArea),i.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class ODe{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,i){}removeEventListener(e,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,i,a){return t=Math.max(0,t||e.width),i=i||e.height,{width:t,height:Math.max(0,a?Math.floor(t/a):i)}}isAttached(e){return!0}updateConfig(e){}}class MDe extends ODe{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const NDe="$chartjs",LDe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},PDe=e=>null===e||""===e;const FDe=!!pIe&&{passive:!0};function BDe(e,t,i){e&&e.canvas&&e.canvas.removeEventListener(t,i,FDe)}function $De(e,t){for(const i of e)if(i===t||i.contains(t))return!0}function VDe(e,t,i){const a=e.canvas,n=new MutationObserver(e=>{let t=!1;for(const i of e)t=t||$De(i.addedNodes,a),t=t&&!$De(i.removedNodes,a);t&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function UDe(e,t,i){const a=e.canvas,n=new MutationObserver(e=>{let t=!1;for(const i of e)t=t||$De(i.removedNodes,a),t=t&&!$De(i.addedNodes,a);t&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}const HDe=new Map;let zDe=0;function YDe(){const e=window.devicePixelRatio;e!==zDe&&(zDe=e,HDe.forEach((t,i)=>{i.currentDevicePixelRatio!==e&&t()}))}function GDe(e,t,i){const a=e.canvas,n=a&&aIe(a);if(!n)return;const s=$Ae((e,t)=>{const a=n.clientWidth;i(e,t),a<n.clientWidth&&i()},window),o=new ResizeObserver(e=>{const t=e[0],i=t.contentRect.width,a=t.contentRect.height;0===i&&0===a||s(i,a)});return o.observe(n),function(e,t){HDe.size||window.addEventListener("resize",YDe),HDe.set(e,t)}(e,s),o}function WDe(e,t,i){i&&i.disconnect(),"resize"===t&&function(e){HDe.delete(e),HDe.size||window.removeEventListener("resize",YDe)}(e)}function jDe(e,t,i){const a=e.canvas,n=$Ae(t=>{null!==e.ctx&&i(function(e,t){const i=LDe[e.type]||e.type,{x:a,y:n}=lIe(e,t);return{type:i,chart:t,native:e,x:void 0!==a?a:null,y:void 0!==n?n:null}}(t,e))},e);return function(e,t,i){e&&e.addEventListener(t,i,FDe)}(a,t,n),n}class qDe extends ODe{acquireContext(e,t){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(function(e,t){const i=e.style,a=e.getAttribute("height"),n=e.getAttribute("width");if(e[NDe]={initial:{height:a,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",PDe(n)){const t=hIe(e,"width");void 0!==t&&(e.width=t)}if(PDe(a))if(""===e.style.height)e.height=e.width/(t||2);else{const t=hIe(e,"height");void 0!==t&&(e.height=t)}}(e,t),i):null}releaseContext(e){const t=e.canvas;if(!t[NDe])return!1;const i=t[NDe].initial;["height","width"].forEach(e=>{const a=i[e];VTe(a)?t.removeAttribute(e):t.setAttribute(e,a)});const a=i.style||{};return Object.keys(a).forEach(e=>{t.style[e]=a[e]}),t.width=t.width,delete t[NDe],!0}addEventListener(e,t,i){this.removeEventListener(e,t);const a=e.$proxies||(e.$proxies={}),n={attach:VDe,detach:UDe,resize:GDe}[t]||jDe;a[t]=n(e,t,i)}removeEventListener(e,t){const i=e.$proxies||(e.$proxies={}),a=i[t];if(!a)return;({attach:WDe,detach:WDe,resize:WDe}[t]||BDe)(e,t,a),i[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,i,a){return dIe(e,t,i,a)}isAttached(e){const t=e&&aIe(e);return!(!t||!t.isConnected)}}let KDe=(i=class{constructor(){o(this,"x"),o(this,"y"),o(this,"active",!1),o(this,"options"),o(this,"$animations")}tooltipPosition(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}hasValue(){return yAe(this.x)&&yAe(this.y)}getProps(e,t){const i=this.$animations;if(!t||!i)return this;const a={};return e.forEach(e=>{a[e]=i[e]&&i[e].active()?i[e]._to:this[e]}),a}},o(i,"defaults",{}),o(i,"defaultRoutes"),i);function XDe(e,t){const i=e.options.ticks,a=function(e){const t=e.options.offset,i=e._tickSize(),a=e._length/i+(t?0:1),n=e._maxLength/i;return Math.floor(Math.min(a,n))}(e),n=Math.min(i.maxTicksLimit||a,a),s=i.major.enabled?function(e){const t=[];let i,a;for(i=0,a=e.length;i<a;i++)e[i].major&&t.push(i);return t}(t):[],o=s.length,r=s[0],l=s[o-1],c=[];if(o>n)return function(e,t,i,a){let n,s=0,o=i[0];for(a=Math.ceil(a),n=0;n<e.length;n++)n===o&&(t.push(e[n]),s++,o=i[s*a])}(t,c,s,o/n),c;const d=function(e,t,i){const a=function(e){const t=e.length;let i,a;if(t<2)return!1;for(a=e[0],i=1;i<t;++i)if(e[i]-e[i-1]!==a)return!1;return a}(e),n=t.length/i;if(!a)return Math.max(n,1);const s=function(e){const t=[],i=Math.sqrt(e);let a;for(a=1;a<i;a++)e%a===0&&(t.push(a),t.push(e/a));return i===(0|i)&&t.push(i),t.sort((e,t)=>e-t).pop(),t}(a);for(let o=0,r=s.length-1;o<r;o++){const e=s[o];if(e>n)return e}return Math.max(n,1)}(s,t,n);if(o>0){let e,i;const a=o>1?Math.round((l-r)/(o-1)):null;for(ZDe(t,c,d,VTe(a)?0:r-a,r),e=0,i=o-1;e<i;e++)ZDe(t,c,d,s[e],s[e+1]);return ZDe(t,c,d,l,VTe(a)?t.length:l+a),c}return ZDe(t,c,d),c}function ZDe(e,t,i,a,n){const s=GTe(a,0),o=Math.min(GTe(n,e.length),e.length);let r,l,c,d=0;for(i=Math.ceil(i),n&&(r=n-a,i=r/Math.floor(r/i)),c=s;c<0;)d++,c=Math.round(s+d*i);for(l=Math.max(s,0);l<o;l++)l===c&&(t.push(e[l]),d++,c=Math.round(s+d*i))}const QDe=(e,t,i)=>"top"===t||"left"===t?e[t]+i:e[t]-i,JDe=(e,t)=>Math.min(t||e,e);function eOe(e,t){const i=[],a=e.length/t,n=e.length;let s=0;for(;s<n;s+=a)i.push(e[Math.floor(s)]);return i}function tOe(e,t,i){const a=e.ticks.length,n=Math.min(t,a-1),s=e._startPixel,o=e._endPixel,r=1e-6;let l,c=e.getPixelForTick(n);if(!(i&&(l=1===a?Math.max(c-s,o-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(n-1))/2,c+=n<t?l:-l,c<s-r||c>o+r)))return c}function iOe(e){return e.drawTicks?e.tickLength:0}function aOe(e,t){if(!e.display)return 0;const i=ORe(e.font,t),a=DRe(e.padding);return(UTe(e.text)?e.text.length:1)*i.lineHeight+a.height}function nOe(e,t,i){let a=VAe(e);return(i&&"right"!==t||!i&&"right"===t)&&(a=(e=>"left"===e?"right":"right"===e?"left":e)(a)),a}let sOe=class e extends KDe{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:i,_suggestedMax:a}=this;return e=YTe(e,Number.POSITIVE_INFINITY),t=YTe(t,Number.NEGATIVE_INFINITY),i=YTe(i,Number.POSITIVE_INFINITY),a=YTe(a,Number.NEGATIVE_INFINITY),{min:YTe(e,i),max:YTe(t,a),minDefined:zTe(e),maxDefined:zTe(t)}}getMinMax(e){let t,{min:i,max:a,minDefined:n,maxDefined:s}=this.getUserBounds();if(n&&s)return{min:i,max:a};const o=this.getMatchingVisibleMetas();for(let r=0,l=o.length;r<l;++r)t=o[r].controller.getMinMax(this,e),n||(i=Math.min(i,t.min)),s||(a=Math.max(a,t.max));return i=s&&i>a?a:i,a=n&&i>a?i:a,{min:YTe(i,YTe(a,i)),max:YTe(a,YTe(i,a))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){jTe(this.options.beforeUpdate,[this])}update(e,t,i){const{beginAtZero:a,grace:n,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,i){const{min:a,max:n}=e,s=WTe(t,(n-a)/2),o=(e,t)=>i&&0===e?0:e+t;return{min:o(a,-Math.abs(s)),max:o(n,s)}}(this,n,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=o<this.ticks.length;this._convertTicksToLabels(r?eOe(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=XDe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,i=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,i=!i),this._startPixel=e,this._endPixel=t,this._reversePixels=i,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){jTe(this.options.afterUpdate,[this])}beforeSetDimensions(){jTe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){jTe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),jTe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){jTe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let i,a,n;for(i=0,a=e.length;i<a;i++)n=e[i],n.label=jTe(t.callback,[n.value,i,e],this)}afterTickToLabelConversion(){jTe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){jTe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,i=JDe(this.ticks.length,e.ticks.maxTicksLimit),a=t.minRotation||0,n=t.maxRotation;let s,o,r,l=a;if(!this._isVisible()||!t.display||a>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=a);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,p=IAe(this.chart.width-d,0,this.maxWidth);s=e.offset?this.maxWidth/i:p/(i-1),d+6>s&&(s=p/(i-(e.offset?.5:1)),o=this.maxHeight-iOe(e.grid)-t.padding-aOe(e.title,this.chart.options.font),r=Math.sqrt(d*d+u*u),l=wAe(Math.min(Math.asin(IAe((c.highest.height+6)/s,-1,1)),Math.asin(IAe(o/r,-1,1))-Math.asin(IAe(u/r,-1,1)))),l=Math.max(a,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){jTe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){jTe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:i,title:a,grid:n}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=aOe(a,t.options.font);if(o?(e.width=this.maxWidth,e.height=iOe(n)+s):(e.height=this.maxHeight,e.width=iOe(n)+s),i.display&&this.ticks.length){const{first:t,last:a,widest:n,highest:s}=this._getLabelSizes(),r=2*i.padding,l=SAe(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(o){const t=i.mirror?0:d*n.width+c*s.height;e.height=Math.min(this.maxHeight,e.height+t+r)}else{const t=i.mirror?0:c*n.width+d*s.height;e.width=Math.min(this.maxWidth,e.width+t+r)}this._calculatePadding(t,a,d,c)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,i,a){const{ticks:{align:n,padding:s},position:o}=this.options,r=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,u=0;r?l?(d=a*e.width,u=i*t.height):(d=i*e.height,u=a*t.width):"start"===n?u=t.width:"end"===n?d=e.width:"inner"!==n&&(d=e.width/2,u=t.width/2),this.paddingLeft=Math.max((d-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-c+s)*this.width/(this.width-c),0)}else{let i=t.height/2,a=e.height/2;"start"===n?(i=0,a=e.height):"end"===n&&(i=t.height,a=0),this.paddingTop=i+s,this.paddingBottom=a+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){jTe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,i=e.length;t<i;t++)VTe(e[t].label)&&(e.splice(t,1),i--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let i=this.ticks;t<i.length&&(i=eOe(i,t)),this._labelSizes=e=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,i){const{ctx:a,_longestTextCache:n}=this,s=[],o=[],r=Math.floor(t/JDe(t,i));let l,c,d,u,p,h,f,g,m,_,v,b=0,y=0;for(l=0;l<t;l+=r){if(u=e[l].label,p=this._resolveTickFontOptions(l),a.font=h=p.string,f=n[h]=n[h]||{data:{},gc:[]},g=p.lineHeight,m=_=0,VTe(u)||UTe(u)){if(UTe(u))for(c=0,d=u.length;c<d;++c)v=u[c],VTe(v)||UTe(v)||(m=cRe(a,f.data,f.gc,m,v),_+=g)}else m=cRe(a,f.data,f.gc,m,u),_=g;s.push(m),o.push(_),b=Math.max(m,b),y=Math.max(_,y)}!function(e,t){qTe(e,e=>{const i=e.gc,a=i.length/2;let n;if(a>t){for(n=0;n<a;++n)delete e.data[i[n]];i.splice(0,a)}})}(n,t);const x=s.indexOf(b),S=o.indexOf(y),w=e=>({width:s[e]||0,height:o[e]||0});return{first:w(0),last:w(t-1),widest:w(x),highest:w(S),widths:s,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return IAe(this._alignToPixels?uRe(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const i=t[e];return i.$context||(i.$context=function(e,t,i){return NRe(e,{tick:i,index:t,type:"tick"})}(this.getContext(),e,i))}return this.$context||(this.$context=NRe(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=SAe(this.labelRotation),i=Math.abs(Math.cos(t)),a=Math.abs(Math.sin(t)),n=this._getLabelSizes(),s=e.autoSkipPadding||0,o=n?n.widest.width+s:0,r=n?n.highest.height+s:0;return this.isHorizontal()?r*i>o*a?o/i:r/a:r*a<o*i?r/i:o/a}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,i=this.chart,a=this.options,{grid:n,position:s,border:o}=a,r=n.offset,l=this.isHorizontal(),c=this.ticks.length+(r?1:0),d=iOe(n),u=[],p=o.setContext(this.getContext()),h=p.display?p.width:0,f=h/2,g=function(e){return uRe(i,e,h)};let m,_,v,b,y,x,S,w,C,E,k,T;if("top"===s)m=g(this.bottom),x=this.bottom-d,w=m-f,E=g(e.top)+f,T=e.bottom;else if("bottom"===s)m=g(this.top),E=e.top,T=g(e.bottom)-f,x=m+f,w=this.top+d;else if("left"===s)m=g(this.right),y=this.right-d,S=m-f,C=g(e.left)+f,k=e.right;else if("right"===s)m=g(this.left),C=e.left,k=g(e.right)-f,y=m+f,S=this.left+d;else if("x"===t){if("center"===s)m=g((e.top+e.bottom)/2+.5);else if(HTe(s)){const e=Object.keys(s)[0],t=s[e];m=g(this.chart.scales[e].getPixelForValue(t))}E=e.top,T=e.bottom,x=m+f,w=x+d}else if("y"===t){if("center"===s)m=g((e.left+e.right)/2);else if(HTe(s)){const e=Object.keys(s)[0],t=s[e];m=g(this.chart.scales[e].getPixelForValue(t))}y=m-f,S=y-d,C=e.left,k=e.right}const A=GTe(a.ticks.maxTicksLimit,c),R=Math.max(1,Math.ceil(c/A));for(_=0;_<c;_+=R){const e=this.getContext(_),t=n.setContext(e),a=o.setContext(e),s=t.lineWidth,c=t.color,d=a.dash||[],p=a.dashOffset,h=t.tickWidth,f=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;v=tOe(this,_,r),void 0!==v&&(b=uRe(i,v,s),l?y=S=C=k=b:x=w=E=T=b,u.push({tx1:y,ty1:x,tx2:S,ty2:w,x1:C,y1:E,x2:k,y2:T,width:s,color:c,borderDash:d,borderDashOffset:p,tickWidth:h,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,u}_computeLabelItems(e){const t=this.axis,i=this.options,{position:a,ticks:n}=i,s=this.isHorizontal(),o=this.ticks,{align:r,crossAlign:l,padding:c,mirror:d}=n,u=iOe(i.grid),p=u+c,h=d?-c:p,f=-SAe(this.labelRotation),g=[];let m,_,v,b,y,x,S,w,C,E,k,T,A="middle";if("top"===a)x=this.bottom-h,S=this._getXAxisLabelAlignment();else if("bottom"===a)x=this.top+h,S=this._getXAxisLabelAlignment();else if("left"===a){const e=this._getYAxisLabelAlignment(u);S=e.textAlign,y=e.x}else if("right"===a){const e=this._getYAxisLabelAlignment(u);S=e.textAlign,y=e.x}else if("x"===t){if("center"===a)x=(e.top+e.bottom)/2+p;else if(HTe(a)){const e=Object.keys(a)[0],t=a[e];x=this.chart.scales[e].getPixelForValue(t)+p}S=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===a)y=(e.left+e.right)/2-p;else if(HTe(a)){const e=Object.keys(a)[0],t=a[e];y=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(u).textAlign}"y"===t&&("start"===r?A="top":"end"===r&&(A="bottom"));const R=this._getLabelSizes();for(m=0,_=o.length;m<_;++m){v=o[m],b=v.label;const e=n.setContext(this.getContext(m));w=this.getPixelForTick(m)+n.labelOffset,C=this._resolveTickFontOptions(m),E=C.lineHeight,k=UTe(b)?b.length:1;const t=k/2,i=e.color,r=e.textStrokeColor,c=e.textStrokeWidth;let u,p=S;if(s?(y=w,"inner"===S&&(p=m===_-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===a?"near"===l||0!==f?-k*E+E/2:"center"===l?-R.highest.height/2-t*E+E:-R.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?R.highest.height/2-t*E:R.highest.height-k*E,d&&(T*=-1),0===f||e.showLabelBackdrop||(y+=E/2*Math.sin(f))):(x=w,T=(1-k)*E/2),e.showLabelBackdrop){const t=DRe(e.backdropPadding),i=R.heights[m],a=R.widths[m];let n=T-t.top,s=0-t.left;switch(A){case"middle":n-=i/2;break;case"bottom":n-=i}switch(S){case"center":s-=a/2;break;case"right":s-=a;break;case"inner":m===_-1?s-=a:m>0&&(s-=a/2)}u={left:s,top:n,width:a+t.width,height:i+t.height,color:e.backdropColor}}g.push({label:b,font:C,textOffset:T,options:{rotation:f,color:i,strokeColor:r,strokeWidth:c,textAlign:p,textBaseline:A,translation:[y,x],backdrop:u}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-SAe(this.labelRotation))return"top"===e?"left":"right";let i="center";return"start"===t.align?i="left":"end"===t.align?i="right":"inner"===t.align&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:i,mirror:a,padding:n}}=this.options,s=e+n,o=this._getLabelSizes().widest.width;let r,l;return"left"===t?a?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=o/2):(r="right",l+=o)):(l=this.right-s,"near"===i?r="right":"center"===i?(r="center",l-=o/2):(r="left",l=this.left)):"right"===t?a?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=o/2):(r="left",l-=o)):(l=this.left+s,"near"===i?r="left":"center"===i?(r="center",l+=o/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:i,top:a,width:n,height:s}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(i,a,n,s),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks.findIndex(t=>t.value===e);if(i>=0){return t.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let n,s;const o=(e,t,a)=>{a.width&&a.color&&(i.save(),i.lineWidth=a.width,i.strokeStyle=a.color,i.setLineDash(a.borderDash||[]),i.lineDashOffset=a.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(t.display)for(n=0,s=a.length;n<s;++n){const e=a[n];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:i,grid:a}}=this,n=i.setContext(this.getContext()),s=i.display?n.width:0;if(!s)return;const o=a.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let l,c,d,u;this.isHorizontal()?(l=uRe(e,this.left,s)-s/2,c=uRe(e,this.right,o)+o/2,d=u=r):(d=uRe(e,this.top,s)-s/2,u=uRe(e,this.bottom,o)+o/2,l=c=r),t.save(),t.lineWidth=n.width,t.strokeStyle=n.color,t.beginPath(),t.moveTo(l,d),t.lineTo(c,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,i=this._computeLabelArea();i&&mRe(t,i);const a=this.getLabelItems(e);for(const n of a){const e=n.options,i=n.font;SRe(t,n.label,0,n.textOffset,i,e)}i&&_Re(t)}drawTitle(){const{ctx:e,options:{position:t,title:i,reverse:a}}=this;if(!i.display)return;const n=ORe(i.font),s=DRe(i.padding),o=i.align;let r=n.lineHeight/2;"bottom"===t||"center"===t||HTe(t)?(r+=s.bottom,UTe(i.text)&&(r+=n.lineHeight*(i.text.length-1))):r+=s.top;const{titleX:l,titleY:c,maxWidth:d,rotation:u}=function(e,t,i,a){const{top:n,left:s,bottom:o,right:r,chart:l}=e,{chartArea:c,scales:d}=l;let u,p,h,f=0;const g=o-n,m=r-s;if(e.isHorizontal()){if(p=UAe(a,s,r),HTe(i)){const e=Object.keys(i)[0],a=i[e];h=d[e].getPixelForValue(a)+g-t}else h="center"===i?(c.bottom+c.top)/2+g-t:QDe(e,i,t);u=r-s}else{if(HTe(i)){const e=Object.keys(i)[0],a=i[e];p=d[e].getPixelForValue(a)-m+t}else p="center"===i?(c.left+c.right)/2-m+t:QDe(e,i,t);h=UAe(a,o,n),f="left"===i?-hAe:hAe}return{titleX:p,titleY:h,maxWidth:u,rotation:f}}(this,r,t,o);SRe(e,i.text,0,0,n,{color:i.color,maxWidth:d,rotation:u,textAlign:nOe(o,t,a),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const t=this.options,i=t.ticks&&t.ticks.z||0,a=GTe(t.grid&&t.grid.z,-1),n=GTe(t.border&&t.border.z,0);return this._isVisible()&&this.draw===e.prototype.draw?[{z:a,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:i,draw:e=>{this.drawLabels(e)}}]:[{z:i,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];let n,s;for(n=0,s=t.length;n<s;++n){const s=t[n];s[i]!==this.id||e&&s.type!==e||a.push(s)}return a}_resolveTickFontOptions(e){return ORe(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}};class oOe{constructor(e,t,i){this.type=e,this.scope=t,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let i;(function(e){return"id"in e&&"defaults"in e})(t)&&(i=this.register(t));const a=this.items,n=e.id,s=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+e);return n in a||(a[n]=e,function(e,t,i){const a=JTe(Object.create(null),[i?lRe.get(i):{},lRe.get(t),e.defaults]);lRe.set(t,a),e.defaultRoutes&&function(e,t){Object.keys(t).forEach(i=>{const a=i.split("."),n=a.pop(),s=[e].concat(a).join("."),o=t[i].split("."),r=o.pop(),l=o.join(".");lRe.route(s,n,l,r)})}(t,e.defaultRoutes);e.descriptors&&lRe.describe(t,e.descriptors)}(e,s,i),this.override&&lRe.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const t=this.items,i=e.id,a=this.scope;i in t&&delete t[i],a&&i in lRe[a]&&(delete lRe[a][i],this.override&&delete aRe[i])}}class rOe{constructor(){this.controllers=new oOe(GIe,"datasets",!0),this.elements=new oOe(KDe,"elements"),this.plugins=new oOe(Object,"plugins"),this.scales=new oOe(sOe,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,i){[...t].forEach(t=>{const a=i||this._getRegistryForType(t);i||a.isForType(t)||a===this.plugins&&t.id?this._exec(e,a,t):qTe(t,t=>{const a=i||this._getRegistryForType(t);this._exec(e,a,t)})})}_exec(e,t,i){const a=nAe(e);jTe(i["before"+a],[],i),t[e](i),jTe(i["after"+a],[],i)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];if(i.isForType(e))return i}return this.plugins}_get(e,t,i){const a=t.get(e);if(void 0===a)throw new Error('"'+e+'" is not a registered '+i+".");return a}}var lOe=new rOe;class cOe{constructor(){this._init=void 0}notify(e,t,i,a){if("beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),void 0===this._init)return;const n=a?this._descriptors(e).filter(a):this._descriptors(e),s=this._notify(n,e,t,i);return"afterDestroy"===t&&(this._notify(n,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),s}_notify(e,t,i,a){a=a||{};for(const n of e){const e=n.plugin;if(!1===jTe(e[i],[t,a,n.options],e)&&a.cancelable)return!1}return!0}invalidate(){VTe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const i=e&&e.config,a=GTe(i.options&&i.options.plugins,{}),n=function(e){const t={},i=[],a=Object.keys(lOe.plugins.items);for(let s=0;s<a.length;s++)i.push(lOe.getPlugin(a[s]));const n=e.plugins||[];for(let s=0;s<n.length;s++){const e=n[s];-1===i.indexOf(e)&&(i.push(e),t[e.id]=!0)}return{plugins:i,localIds:t}}(i);return!1!==a||t?function(e,{plugins:t,localIds:i},a,n){const s=[],o=e.getContext();for(const r of t){const t=r.id,l=dOe(a[t],n);null!==l&&s.push({plugin:r,options:uOe(e.config,{plugin:r,local:i[t]},l,o)})}return s}(e,n,a,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],i=this._cache,a=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(a(t,i),e,"stop"),this._notify(a(i,t),e,"start")}}function dOe(e,t){return t||!1!==e?!0===e?{}:e:null}function uOe(e,{plugin:t,local:i},a,n){const s=e.pluginScopeKeys(t),o=e.getOptionScopes(a,s);return i&&t.defaults&&o.push(t.defaults),e.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function pOe(e,t){const i=lRe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function hOe(e){if("x"===e||"y"===e||"r"===e)return e}function fOe(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function gOe(e,...t){if(hOe(e))return e;for(const i of t){const t=i.axis||fOe(i.position)||e.length>1&&hOe(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function mOe(e,t,i){if(i[t+"AxisID"]===e)return{axis:t}}function _Oe(e,t){const i=aRe[e.type]||{scales:{}},a=t.scales||{},n=pOe(e.type,t),s=Object.create(null);return Object.keys(a).forEach(t=>{const o=a[t];if(!HTe(o))return;if(o._proxy)return;const r=gOe(t,o,function(e,t){if(t.data&&t.data.datasets){const i=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(i.length)return mOe(e,"x",i[0])||mOe(e,"y",i[0])}return{}}(t,e),lRe.scales[o.type]),l=function(e,t){return e===t?"_index_":"_value_"}(r,n),c=i.scales||{};s[t]=eAe(Object.create(null),[{axis:r},o,c[r],c[l]])}),e.data.datasets.forEach(i=>{const n=i.type||e.type,o=i.indexAxis||pOe(n,t),r=(aRe[n]||{}).scales||{};Object.keys(r).forEach(e=>{const t=function(e,t){let i=e;return"_index_"===e?i=t:"_value_"===e&&(i="x"===t?"y":"x"),i}(e,o),n=i[t+"AxisID"]||t;s[n]=s[n]||Object.create(null),eAe(s[n],[{axis:t},a[n],r[e]])})}),Object.keys(s).forEach(e=>{const t=s[e];eAe(t,[lRe.scales[t.type],lRe.scale])}),s}function vOe(e){const t=e.options||(e.options={});t.plugins=GTe(t.plugins,{}),t.scales=_Oe(e,t)}function bOe(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const yOe=new Map,xOe=new Set;function SOe(e,t){let i=yOe.get(e);return i||(i=t(),yOe.set(e,i),xOe.add(i)),i}const wOe=(e,t,i)=>{const a=aAe(t,i);void 0!==a&&e.add(a)};let COe=class{constructor(e){this._config=function(e){return(e=e||{}).data=bOe(e.data),vOe(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=bOe(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),vOe(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return SOe(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return SOe(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return SOe(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return SOe(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const i=this._scopeCache;let a=i.get(e);return a&&!t||(a=new Map,i.set(e,a)),a}getOptionScopes(e,t,i){const{options:a,type:n}=this,s=this._cachedScopes(e,i),o=s.get(t);if(o)return o;const r=new Set;t.forEach(t=>{e&&(r.add(e),t.forEach(t=>wOe(r,e,t))),t.forEach(e=>wOe(r,a,e)),t.forEach(e=>wOe(r,aRe[n]||{},e)),t.forEach(e=>wOe(r,lRe,e)),t.forEach(e=>wOe(r,nRe,e))});const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),xOe.has(t)&&s.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,aRe[t]||{},lRe.datasets[t]||{},{type:t},lRe,nRe]}resolveNamedOptions(e,t,i,a=[""]){const n={$shared:!0},{resolver:s,subPrefixes:o}=EOe(this._resolverCache,e,a);let r=s;if(function(e,t){const{isScriptable:i,isIndexable:a}=FRe(e);for(const n of t){const t=i(n),s=a(n),o=(s||t)&&e[n];if(t&&(oAe(o)||kOe(o))||s&&UTe(o))return!0}return!1}(s,t)){n.$shared=!1;r=PRe(s,i=oAe(i)?i():i,this.createResolver(e,i,o))}for(const l of t)n[l]=r[l];return n}createResolver(e,t,i=[""],a){const{resolver:n}=EOe(this._resolverCache,e,i);return HTe(t)?PRe(n,t,void 0,a):n}};function EOe(e,t,i){let a=e.get(t);a||(a=new Map,e.set(t,a));const n=i.join();let s=a.get(n);if(!s){s={resolver:LRe(t,i),subPrefixes:i.filter(e=>!e.toLowerCase().includes("hover"))},a.set(n,s)}return s}const kOe=e=>HTe(e)&&Object.getOwnPropertyNames(e).some(t=>oAe(e[t]));const TOe=["top","bottom","left","right","chartArea"];function AOe(e,t){return"top"===e||"bottom"===e||-1===TOe.indexOf(e)&&"x"===t}function ROe(e,t){return function(i,a){return i[e]===a[e]?i[t]-a[t]:i[e]-a[e]}}function IOe(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),jTe(i&&i.onComplete,[e],t)}function DOe(e){const t=e.chart,i=t.options.animation;jTe(i&&i.onProgress,[e],t)}function OOe(e){return iIe()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const MOe={},NOe=e=>{const t=OOe(e);return Object.values(MOe).filter(e=>e.canvas===t).pop()};function LOe(e,t,i){const a=Object.keys(e);for(const n of a){const a=+n;if(a>=t){const s=e[n];delete e[n],(i>0||a>t)&&(e[a+i]=s)}}}class POe{static register(...e){lOe.add(...e),FOe()}static unregister(...e){lOe.remove(...e),FOe()}constructor(e,t){const i=this.config=new COe(t),a=OOe(e),n=NOe(a);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!iIe()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?MDe:qDe}(a)),this.platform.updateConfig(i);const o=this.platform.acquireContext(a,s.aspectRatio),r=o&&o.canvas,l=r&&r.height,c=r&&r.width;this.id=$Te(),this.ctx=o,this.canvas=r,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new cOe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let i;return function(...a){return t?(clearTimeout(i),i=setTimeout(e,t,a)):e.apply(this,a),t}}(e=>this.update(e),s.resizeDelay||0),this._dataChanges=[],MOe[this.id]=this,o&&r&&(RIe.listen(this,"complete",IOe),RIe.listen(this,"progress",DOe),this._initialize(),this.attached&&this.update())}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:i,height:a,_aspectRatio:n}=this;return VTe(e)?t&&n?n:a?i/a:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return lOe}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():uIe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return pRe(this.canvas,this.ctx),this}stop(){return RIe.stop(this),this}resize(e,t){RIe.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const i=this.options,a=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,e,t,n),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,uIe(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),jTe(i.onResize,[this,s],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){qTe(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,i=this.scales,a=Object.keys(i).reduce((e,t)=>(e[t]=!1,e),{});let n=[];t&&(n=n.concat(Object.keys(t).map(e=>{const i=t[e],a=gOe(e,i),n="r"===a,s="x"===a;return{options:i,dposition:n?"chartArea":s?"bottom":"left",dtype:n?"radialLinear":s?"category":"linear"}}))),qTe(n,t=>{const n=t.options,s=n.id,o=gOe(s,n),r=GTe(n.type,t.dtype);void 0!==n.position&&AOe(n.position,o)===AOe(t.dposition)||(n.position=t.dposition),a[s]=!0;let l=null;if(s in i&&i[s].type===r)l=i[s];else{l=new(lOe.getScale(r))({id:s,type:r,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(n,e)}),qTe(a,(e,t)=>{e||delete i[t]}),qTe(i,e=>{DDe.configure(this,e,e.options),DDe.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,i=e.length;if(e.sort((e,t)=>e.index-t.index),i>t){for(let e=t;e<i;++e)this._destroyDatasetMeta(e);e.splice(t,i-t)}this._sortedMetasets=e.slice(0).sort(ROe("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,i)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let i,a;for(this._removeUnreferencedMetasets(),i=0,a=t.length;i<a;i++){const a=t[i];let n=this.getDatasetMeta(i);const s=a.type||this.config.type;if(n.type&&n.type!==s&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=s,n.indexAxis=a.indexAxis||pOe(s,this.options),n.order=a.order||0,n.index=i,n.label=""+a.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const t=lOe.getController(s),{datasetElementType:a,dataElementType:o}=lRe.datasets[s];Object.assign(t,{dataElementType:lOe.getElement(o),datasetElementType:a&&lOe.getElement(a)}),n.controller=new t(this,i),e.push(n.controller)}}return this._updateMetasets(),e}_resetElements(){qTe(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const i=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:e}=this.getDatasetMeta(l),t=!a&&-1===n.indexOf(e);e.buildOrUpdateElements(t),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),a||qTe(n,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(ROe("z","_idx"));const{_active:o,_lastEvent:r}=this;r?this._eventHandler(r,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){qTe(this.scales,e=>{DDe.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),i=new Set(e.events);rAe(t,i)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:i,start:a,count:n}of t){LOe(e,a,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,i=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),a=i(0);for(let n=1;n<t;n++)if(!rAe(a,i(n)))return;return Array.from(a).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;DDe.update(this,this.width,this.height,e);const t=this.chartArea,i=t.width<=0||t.height<=0;this._layers=[],qTe(this.boxes,e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,i=this.data.datasets.length;t<i;++t)this._updateDataset(t,oAe(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const i=this.getDatasetMeta(e),a={meta:i,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",a)&&(i.controller._update(t),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(RIe.has(this)?this.attached&&!RIe.running(this)&&RIe.start(this):(this.draw(),IOe({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,i=[];let a,n;for(a=0,n=t.length;a<n;++a){const n=t[a];e&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,i={meta:e,index:e.index,cancelable:!0},a=AIe(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(a&&mRe(t,a),e.controller.draw(),a&&_Re(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return gRe(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,i,a){const n=vDe.modes[t];return"function"==typeof n?n(this,e,i,a):[]}getDatasetMeta(e){const t=this.data.datasets[e],i=this._metasets;let a=i.filter(e=>e&&e._dataset===t).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},i.push(a)),a}getContext(){return this.$context||(this.$context=NRe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const i=this.getDatasetMeta(e);return"boolean"==typeof i.hidden?!i.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,i){const a=i?"show":"hide",n=this.getDatasetMeta(e),s=n.controller._resolveAnimations(void 0,a);sAe(t)?(n.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),s.update(n,{visible:i}),this.update(t=>t.datasetIndex===e?a:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),RIe.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),pRe(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete MOe[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,i=(i,a)=>{t.addEventListener(this,i,a),e[i]=a},a=(e,t,i)=>{e.offsetX=t,e.offsetY=i,this._eventHandler(e)};qTe(this.options.events,e=>i(e,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,i=(i,a)=>{t.addEventListener(this,i,a),e[i]=a},a=(i,a)=>{e[i]&&(t.removeEventListener(this,i,a),delete e[i])},n=(e,t)=>{this.canvas&&this.resize(e,t)};let s;const o=()=>{a("attach",o),this.attached=!0,this.resize(),i("resize",n),i("detach",s)};s=()=>{this.attached=!1,a("resize",n),this._stop(),this._resize(0,0),i("attach",o)},t.isAttached(this.canvas)?o():s()}unbindEvents(){qTe(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},qTe(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,i){const a=i?"set":"remove";let n,s,o,r;for("dataset"===t&&(n=this.getDatasetMeta(e[0].datasetIndex),n.controller["_"+a+"DatasetHoverStyle"]()),o=0,r=e.length;o<r;++o){s=e[o];const t=s&&this.getDatasetMeta(s.datasetIndex).controller;t&&t[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],i=e.map(({datasetIndex:e,index:t})=>{const i=this.getDatasetMeta(e);if(!i)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:i.data[t],index:t}});!KTe(i,t)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,t))}notifyPlugins(e,t,i){return this._plugins.notify(this,e,t,i)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(e,t,i){const a=this.options.hover,n=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),s=n(t,e),o=i?e:n(e,t);s.length&&this.updateHoverStyle(s,a.mode,!1),o.length&&a.mode&&this.updateHoverStyle(o,a.mode,!0)}_eventHandler(e,t){const i={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},a=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",i,a))return;const n=this._handleEvent(e,t,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,a),(n||i.changed)&&this.render(),this}_handleEvent(e,t,i){const{_active:a=[],options:n}=this,s=t,o=this._getActiveElements(e,a,i,s),r=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,i,a){return i&&"mouseout"!==e.type?a?t:e:null}(e,this._lastEvent,i,r);i&&(this._lastEvent=null,jTe(n.onHover,[e,o,this],this),r&&jTe(n.onClick,[e,o,this],this));const c=!KTe(o,a);return(c||t)&&(this._active=o,this._updateHoverStyles(o,a,t)),this._lastEvent=l,c}_getActiveElements(e,t,i,a){if("mouseout"===e.type)return[];if(!i)return t;const n=this.options.hover;return this.getElementsAtEventForMode(e,n.mode,n,a)}}function FOe(){return qTe(POe.instances,e=>e._plugins.invalidate())}function BOe(e,t,i,a){const n=ARe(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const s=(i-t)/2,o=Math.min(s,a*t/2),r=e=>{const t=(i-Math.min(s,e))*a/2;return IAe(e,0,Math.min(s,t))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:IAe(n.innerStart,0,o),innerEnd:IAe(n.innerEnd,0,o)}}function $Oe(e,t,i,a){return{x:i+e*Math.cos(t),y:a+e*Math.sin(t)}}function VOe(e,t,i,a,n,s){const{x:o,y:r,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+a+i-c,0),p=d>0?d+a+i+c:0;let h=0;const f=n-l;if(a){const e=((d>0?d-a:0)+(u>0?u-a:0))/2;h=(f-(0!==e?f*e/(e+a):f))/2}const g=(f-Math.max(.001,f*u-i/lAe)/u)/2,m=l+g+h,_=n-g-h,{outerStart:v,outerEnd:b,innerStart:y,innerEnd:x}=BOe(t,p,u,_-m),S=u-v,w=u-b,C=m+v/S,E=_-b/w,k=p+y,T=p+x,A=m+y/k,R=_-x/T;if(e.beginPath(),s){const t=(C+E)/2;if(e.arc(o,r,u,C,t),e.arc(o,r,u,t,E),b>0){const t=$Oe(w,E,o,r);e.arc(t.x,t.y,b,E,_+hAe)}const i=$Oe(T,_,o,r);if(e.lineTo(i.x,i.y),x>0){const t=$Oe(T,R,o,r);e.arc(t.x,t.y,x,_+hAe,R+Math.PI)}const a=(_-x/p+(m+y/p))/2;if(e.arc(o,r,p,_-x/p,a,!0),e.arc(o,r,p,a,m+y/p,!0),y>0){const t=$Oe(k,A,o,r);e.arc(t.x,t.y,y,A+Math.PI,m-hAe)}const n=$Oe(S,m,o,r);if(e.lineTo(n.x,n.y),v>0){const t=$Oe(S,C,o,r);e.arc(t.x,t.y,v,m-hAe,C)}}else{e.moveTo(o,r);const t=Math.cos(C)*u+o,i=Math.sin(C)*u+r;e.lineTo(t,i);const a=Math.cos(E)*u+o,n=Math.sin(E)*u+r;e.lineTo(a,n)}e.closePath()}function UOe(e,t,i,a,n){const{fullCircles:s,startAngle:o,circumference:r,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:p,borderRadius:h}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=p,f?(e.lineWidth=2*c,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let g=t.endAngle;if(s){VOe(e,t,i,a,g,n);for(let t=0;t<s;++t)e.stroke();isNaN(r)||(g=o+(r%cAe||cAe))}f&&function(e,t,i){const{startAngle:a,pixelMargin:n,x:s,y:o,outerRadius:r,innerRadius:l}=t;let c=n/r;e.beginPath(),e.arc(s,o,r,a-c,i+c),l>n?(c=n/l,e.arc(s,o,l,i+c,a-c,!0)):e.arc(s,o,n,i+hAe,a-hAe),e.closePath(),e.clip()}(e,t,g),l.selfJoin&&g-o>=lAe&&0===h&&"miter"!==d&&function(e,t,i){const{startAngle:a,x:n,y:s,outerRadius:o,innerRadius:r,options:l}=t,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,AAe(a-i));if(e.beginPath(),e.arc(n,s,o-c/2,a+u/2,i-u/2),r>0){const t=Math.min(c/r,AAe(a-i));e.arc(n,s,r+c/2,i-t/2,a+t/2,!0)}else{const t=Math.min(c/2,o*AAe(a-i));if("round"===d)e.arc(n,s,t,i-lAe/2,a+lAe/2,!0);else if("bevel"===d){const o=2*t*t,r=-o*Math.cos(i+lAe/2)+n,l=-o*Math.sin(i+lAe/2)+s,c=o*Math.cos(a+lAe/2)+n,d=o*Math.sin(a+lAe/2)+s;e.lineTo(r,l),e.lineTo(c,d)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}(e,t,g),s||(VOe(e,t,i,a,g,n),e.stroke())}o(POe,"defaults",lRe),o(POe,"instances",MOe),o(POe,"overrides",aRe),o(POe,"registry",lOe),o(POe,"version","4.5.1"),o(POe,"getChart",NOe);class HOe extends KDe{constructor(e){super(),o(this,"circumference"),o(this,"endAngle"),o(this,"fullCircles"),o(this,"innerRadius"),o(this,"outerRadius"),o(this,"pixelMargin"),o(this,"startAngle"),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,i){const a=this.getProps(["x","y"],i),{angle:n,distance:s}=EAe(a,{x:e,y:t}),{startAngle:o,endAngle:r,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,p=GTe(d,r-o),h=RAe(n,o,r)&&o!==r,f=p>=cAe||h,g=DAe(s,l+u,c+u);return f&&g}getCenterPoint(e){const{x:t,y:i,startAngle:a,endAngle:n,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:r,spacing:l}=this.options,c=(a+n)/2,d=(s+o+l+r)/2;return{x:t+Math.cos(c)*d,y:i+Math.sin(c)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:i}=this,a=(t.offset||0)/4,n=(t.spacing||0)/2,s=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>cAe?Math.floor(i/cAe):0,0===i||this.innerRadius<0||this.outerRadius<0)return;e.save();const o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*a,Math.sin(o)*a);const r=a*(1-Math.sin(Math.min(lAe,i||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,i,a,n){const{fullCircles:s,startAngle:o,circumference:r}=t;let l=t.endAngle;if(s){VOe(e,t,i,a,l,n);for(let t=0;t<s;++t)e.fill();isNaN(r)||(l=o+(r%cAe||cAe))}VOe(e,t,i,a,l,n),e.fill()}(e,this,r,n,s),UOe(e,this,r,n,s),e.restore()}}function zOe(e,t,i=t){e.lineCap=GTe(i.borderCapStyle,t.borderCapStyle),e.setLineDash(GTe(i.borderDash,t.borderDash)),e.lineDashOffset=GTe(i.borderDashOffset,t.borderDashOffset),e.lineJoin=GTe(i.borderJoinStyle,t.borderJoinStyle),e.lineWidth=GTe(i.borderWidth,t.borderWidth),e.strokeStyle=GTe(i.borderColor,t.borderColor)}function YOe(e,t,i){e.lineTo(i.x,i.y)}function GOe(e,t,i={}){const a=e.length,{start:n=0,end:s=a-1}=i,{start:o,end:r}=t,l=Math.max(n,o),c=Math.min(s,r),d=n<o&&s<o||n>r&&s>r;return{count:a,start:l,loop:t.loop,ilen:c<l&&!d?a+c-l:c-l}}function WOe(e,t,i,a){const{points:n,options:s}=t,{count:o,start:r,loop:l,ilen:c}=GOe(n,i,a),d=function(e){return e.stepped?vRe:e.tension||"monotone"===e.cubicInterpolationMode?bRe:YOe}(s);let u,p,h,{move:f=!0,reverse:g}=a||{};for(u=0;u<=c;++u)p=n[(r+(g?c-u:u))%o],p.skip||(f?(e.moveTo(p.x,p.y),f=!1):d(e,h,p,g,s.stepped),h=p);return l&&(p=n[(r+(g?c:0))%o],d(e,h,p,g,s.stepped)),!!l}function jOe(e,t,i,a){const n=t.points,{count:s,start:o,ilen:r}=GOe(n,i,a),{move:l=!0,reverse:c}=a||{};let d,u,p,h,f,g,m=0,_=0;const v=e=>(o+(c?r-e:e))%s,b=()=>{h!==f&&(e.lineTo(m,f),e.lineTo(m,h),e.lineTo(m,g))};for(l&&(u=n[v(0)],e.moveTo(u.x,u.y)),d=0;d<=r;++d){if(u=n[v(d)],u.skip)continue;const t=u.x,i=u.y,a=0|t;a===p?(i<h?h=i:i>f&&(f=i),m=(_*m+t)/++_):(b(),e.lineTo(t,i),p=a,_=0,h=f=i),g=i}b()}function qOe(e){const t=e.options,i=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||i)?jOe:WOe}o(HOe,"id","arc"),o(HOe,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),o(HOe,"defaultRoutes",{backgroundColor:"backgroundColor"}),o(HOe,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const KOe="function"==typeof Path2D;function XOe(e,t,i,a){KOe&&!t.options.segment?function(e,t,i,a){let n=t._path;n||(n=t._path=new Path2D,t.path(n,i,a)&&n.closePath()),zOe(e,t.options),e.stroke(n)}(e,t,i,a):function(e,t,i,a){const{segments:n,options:s}=t,o=qOe(t);for(const r of n)zOe(e,s,r.style),e.beginPath(),o(e,t,r,{start:i,end:i+a-1})&&e.closePath(),e.stroke()}(e,t,i,a)}class ZOe extends KDe{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const a=i.spanGaps?this._loop:this._fullLoop;tIe(this._points,i,e,a,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const i=e.points,a=e.options.spanGaps,n=i.length;if(!n)return[];const s=!!e._loop,{start:o,end:r}=function(e,t,i,a){let n=0,s=t-1;if(i&&!a)for(;n<t&&!e[n].skip;)n++;for(;n<t&&e[n].skip;)n++;for(n%=t,i&&(s+=n);s>n&&e[s%t].skip;)s--;return s%=t,{start:n,end:s}}(i,n,s,a);return CIe(e,!0===a?[{start:o,end:r,loop:s}]:function(e,t,i,a){const n=e.length,s=[];let o,r=t,l=e[t];for(o=t+1;o<=i;++o){const i=e[o%n];i.skip||i.stop?l.skip||(a=!1,s.push({start:t%n,end:(o-1)%n,loop:a}),t=r=i.stop?o:null):(r=o,l.skip&&(t=o)),l=i}return null!==r&&s.push({start:t%n,end:r%n,loop:a}),s}(i,o,r<o?r+n:r,!!e._fullLoop&&0===o&&r===n-1),i,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,i=e.length;return i&&t[e[i-1].end]}interpolate(e,t){const i=this.options,a=e[t],n=this.points,s=wIe(this,{property:t,start:a,end:a});if(!s.length)return;const o=[],r=function(e){return e.stepped?gIe:e.tension||"monotone"===e.cubicInterpolationMode?mIe:fIe}(i);let l,c;for(l=0,c=s.length;l<c;++l){const{start:c,end:d}=s[l],u=n[c],p=n[d];if(u===p){o.push(u);continue}const h=r(u,p,Math.abs((a-u[t])/(p[t]-u[t])),i.stepped);h[t]=e[t],o.push(h)}return 1===o.length?o[0]:o}pathSegment(e,t,i){return qOe(this)(e,this,t,i)}path(e,t,i){const a=this.segments,n=qOe(this);let s=this._loop;t=t||0,i=i||this.points.length-t;for(const o of a)s&=n(e,this,o,{start:t,end:t+i-1});return!!s}draw(e,t,i,a){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(e.save(),XOe(e,this,i,a),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function QOe(e,t,i,a){const n=e.options,{[i]:s}=e.getProps([i],a);return Math.abs(t-s)<n.radius+n.hitRadius}o(ZOe,"id","line"),o(ZOe,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),o(ZOe,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),o(ZOe,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e});class JOe extends KDe{constructor(e){super(),o(this,"parsed"),o(this,"skip"),o(this,"stop"),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,i){const a=this.options,{x:n,y:s}=this.getProps(["x","y"],i);return Math.pow(e-n,2)+Math.pow(t-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(e,t){return QOe(this,e,"x",t)}inYRange(e,t){return QOe(this,e,"y",t)}getCenterPoint(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const i=this.options;this.skip||i.radius<.1||!gRe(this,t,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,hRe(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function eMe(e,t){const{x:i,y:a,base:n,width:s,height:o}=e.getProps(["x","y","base","width","height"],t);let r,l,c,d,u;return e.horizontal?(u=o/2,r=Math.min(i,n),l=Math.max(i,n),c=a-u,d=a+u):(u=s/2,r=i-u,l=i+u,c=Math.min(a,n),d=Math.max(a,n)),{left:r,top:c,right:l,bottom:d}}function tMe(e,t,i,a){return e?0:IAe(t,i,a)}function iMe(e){const t=eMe(e),i=t.right-t.left,a=t.bottom-t.top,n=function(e,t,i){const a=e.options.borderWidth,n=e.borderSkipped,s=RRe(a);return{t:tMe(n.top,s.top,0,i),r:tMe(n.right,s.right,0,t),b:tMe(n.bottom,s.bottom,0,i),l:tMe(n.left,s.left,0,t)}}(e,i/2,a/2),s=function(e,t,i){const{enableBorderRadius:a}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,s=IRe(n),o=Math.min(t,i),r=e.borderSkipped,l=a||HTe(n);return{topLeft:tMe(!l||r.top||r.left,s.topLeft,0,o),topRight:tMe(!l||r.top||r.right,s.topRight,0,o),bottomLeft:tMe(!l||r.bottom||r.left,s.bottomLeft,0,o),bottomRight:tMe(!l||r.bottom||r.right,s.bottomRight,0,o)}}(e,i/2,a/2);return{outer:{x:t.left,y:t.top,w:i,h:a,radius:s},inner:{x:t.left+n.l,y:t.top+n.t,w:i-n.l-n.r,h:a-n.t-n.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,s.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(n.b,n.r))}}}}function aMe(e,t,i,a){const n=null===t,s=null===i,o=e&&!(n&&s)&&eMe(e,a);return o&&(n||DAe(t,o.left,o.right))&&(s||DAe(i,o.top,o.bottom))}function nMe(e,t){e.rect(t.x,t.y,t.w,t.h)}function sMe(e,t,i={}){const a=e.x!==i.x?-t:0,n=e.y!==i.y?-t:0,s=(e.x+e.w!==i.x+i.w?t:0)-a,o=(e.y+e.h!==i.y+i.h?t:0)-n;return{x:e.x+a,y:e.y+n,w:e.w+s,h:e.h+o,radius:e.radius}}o(JOe,"id","point"),o(JOe,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),o(JOe,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class oMe extends KDe{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:i,backgroundColor:a}}=this,{inner:n,outer:s}=iMe(this),o=(r=s.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?wRe:nMe;var r;e.save(),s.w===n.w&&s.h===n.h||(e.beginPath(),o(e,sMe(s,t,n)),e.clip(),o(e,sMe(n,-t,s)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),o(e,sMe(n,t)),e.fillStyle=a,e.fill(),e.restore()}inRange(e,t,i){return aMe(this,e,t,i)}inXRange(e,t){return aMe(this,e,null,t)}inYRange(e,t){return aMe(this,null,e,t)}getCenterPoint(e){const{x:t,y:i,base:a,horizontal:n}=this.getProps(["x","y","base","horizontal"],e);return{x:n?(t+a)/2:t,y:n?i:(i+a)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}o(oMe,"id","bar"),o(oMe,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),o(oMe,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var rMe=Object.freeze({__proto__:null,ArcElement:HOe,BarElement:oMe,LineElement:ZOe,PointElement:JOe});const lMe=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],cMe=lMe.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function dMe(e){return lMe[e%lMe.length]}function uMe(e){return cMe[e%cMe.length]}function pMe(e){let t=0;return(i,a)=>{const n=e.getDatasetMeta(a).controller;n instanceof iDe?t=function(e,t){return e.backgroundColor=e.data.map(()=>dMe(t++)),t}(i,t):n instanceof nDe?t=function(e,t){return e.backgroundColor=e.data.map(()=>uMe(t++)),t}(i,t):n&&(t=function(e,t){return e.borderColor=dMe(t),e.backgroundColor=uMe(t),++t}(i,t))}}function hMe(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var fMe={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,i){if(!i.enabled)return;const{data:{datasets:a},options:n}=e.config,{elements:s}=n,o=hMe(a)||(r=n)&&(r.borderColor||r.backgroundColor)||s&&hMe(s)||"rgba(0,0,0,0.1)"!==lRe.borderColor||"rgba(0,0,0,0.1)"!==lRe.backgroundColor;var r;if(!i.forceOverride&&o)return;const l=pMe(e);a.forEach(l)}};function gMe(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function mMe(e){e.data.datasets.forEach(e=>{gMe(e)})}var _Me={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,i)=>{if(!i.enabled)return void mMe(e);const a=e.width;e.data.datasets.forEach((t,n)=>{const{_data:s,indexAxis:o}=t,r=e.getDatasetMeta(n),l=s||t.data;if("y"===MRe([o,e.options.indexAxis]))return;if(!r.controller.supportsDecimation)return;const c=e.scales[r.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:d,count:u}=function(e,t){const i=t.length;let a,n=0;const{iScale:s}=e,{min:o,max:r,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=IAe(MAe(t,s.axis,o).lo,0,i-1)),a=c?IAe(MAe(t,s.axis,r).hi+1,n,i)-n:i-n,{start:n,count:a}}(r,l);if(u<=(i.threshold||4*a))return void gMe(t);let p;switch(VTe(s)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),i.algorithm){case"lttb":p=function(e,t,i,a,n){const s=n.samples||a;if(s>=i)return e.slice(t,t+i);const o=[],r=(i-2)/(s-2);let l=0;const c=t+i-1;let d,u,p,h,f,g=t;for(o[l++]=e[g],d=0;d<s-2;d++){let a,n=0,s=0;const c=Math.floor((d+1)*r)+1+t,m=Math.min(Math.floor((d+2)*r)+1,i)+t,_=m-c;for(a=c;a<m;a++)n+=e[a].x,s+=e[a].y;n/=_,s/=_;const v=Math.floor(d*r)+1+t,b=Math.min(Math.floor((d+1)*r)+1,i)+t,{x:y,y:x}=e[g];for(p=h=-1,a=v;a<b;a++)h=.5*Math.abs((y-n)*(e[a].y-x)-(y-e[a].x)*(s-x)),h>p&&(p=h,u=e[a],f=a);o[l++]=u,g=f}return o[l++]=e[c],o}(l,d,u,a,i);break;case"min-max":p=function(e,t,i,a){let n,s,o,r,l,c,d,u,p,h,f=0,g=0;const m=[],_=t+i-1,v=e[t].x,b=e[_].x-v;for(n=t;n<t+i;++n){s=e[n],o=(s.x-v)/b*a,r=s.y;const t=0|o;if(t===l)r<p?(p=r,c=n):r>h&&(h=r,d=n),f=(g*f+s.x)/++g;else{const i=n-1;if(!VTe(c)&&!VTe(d)){const t=Math.min(c,d),a=Math.max(c,d);t!==u&&t!==i&&m.push({...e[t],x:f}),a!==u&&a!==i&&m.push({...e[a],x:f})}n>0&&i!==u&&m.push(e[i]),m.push(s),l=t,g=0,p=h=r,c=d=u=n}}return m}(l,d,u,a);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}t._decimated=p})},destroy(e){mMe(e)}};function vMe(e,t,i,a){if(a)return;let n=t[e],s=i[e];return"angle"===e&&(n=AAe(n),s=AAe(s)),{property:e,start:n,end:s}}function bMe(e,t,i){for(;t>e;t--){const e=i[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function yMe(e,t,i,a){return e&&t?a(e[i],t[i]):e?e[i]:t?t[i]:0}function xMe(e,t){let i=[],a=!1;return UTe(e)?(a=!0,i=e):i=function(e,t){const{x:i=null,y:a=null}=e||{},n=t.points,s=[];return t.segments.forEach(({start:e,end:t})=>{t=bMe(e,t,n);const o=n[e],r=n[t];null!==a?(s.push({x:o.x,y:a}),s.push({x:r.x,y:a})):null!==i&&(s.push({x:i,y:o.y}),s.push({x:i,y:r.y}))}),s}(e,t),i.length?new ZOe({points:i,options:{tension:0},_loop:a,_fullLoop:a}):null}function SMe(e){return e&&!1!==e.fill}function wMe(e,t,i){let a=e[t].fill;const n=[t];let s;if(!i)return a;for(;!1!==a&&-1===n.indexOf(a);){if(!zTe(a))return a;if(s=e[a],!s)return!1;if(s.visible)return a;n.push(a),a=s.fill}return!1}function CMe(e,t,i){const a=function(e){const t=e.options,i=t.fill;let a=GTe(i&&i.target,i);void 0===a&&(a=!!t.backgroundColor);if(!1===a||null===a)return!1;if(!0===a)return"origin";return a}(e);if(HTe(a))return!isNaN(a.value)&&a;let n=parseFloat(a);return zTe(n)&&Math.floor(n)===n?function(e,t,i,a){"-"!==e&&"+"!==e||(i=t+i);if(i===t||i<0||i>=a)return!1;return i}(a[0],t,n,i):["origin","start","end","stack","shape"].indexOf(a)>=0&&a}function EMe(e,t,i){const a=[];for(let n=0;n<i.length;n++){const s=i[n],{first:o,last:r,point:l}=kMe(s,t,"x");if(!(!l||o&&r))if(o)a.unshift(l);else if(e.push(l),!r)break}e.push(...a)}function kMe(e,t,i){const a=e.interpolate(t,i);if(!a)return{};const n=a[i],s=e.segments,o=e.points;let r=!1,l=!1;for(let c=0;c<s.length;c++){const e=s[c],t=o[e.start][i],a=o[e.end][i];if(DAe(n,t,a)){r=n===t,l=n===a;break}}return{first:r,last:l,point:a}}class TMe{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,i){const{x:a,y:n,radius:s}=this;return t=t||{start:0,end:cAe},e.arc(a,n,s,t.end,t.start,!0),!i.bounds}interpolate(e){const{x:t,y:i,radius:a}=this,n=e.angle;return{x:t+Math.cos(n)*a,y:i+Math.sin(n)*a,angle:n}}}function AMe(e){const{chart:t,fill:i,line:a}=e;if(zTe(i))return function(e,t){const i=e.getDatasetMeta(t),a=i&&e.isDatasetVisible(t);return a?i.dataset:null}(t,i);if("stack"===i)return function(e){const{scale:t,index:i,line:a}=e,n=[],s=a.segments,o=a.points,r=function(e,t){const i=[],a=e.getMatchingVisibleMetas("line");for(let n=0;n<a.length;n++){const e=a[n];if(e.index===t)break;e.hidden||i.unshift(e.dataset)}return i}(t,i);r.push(xMe({x:null,y:t.bottom},a));for(let l=0;l<s.length;l++){const e=s[l];for(let t=e.start;t<=e.end;t++)EMe(n,o[t],r)}return new ZOe({points:n,options:{}})}(e);if("shape"===i)return!0;const n=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:i}=e,a=t.options,n=t.getLabels().length,s=a.reverse?t.max:t.min,o=function(e,t,i){let a;return a="start"===e?i:"end"===e?t.options.reverse?t.min:t.max:HTe(e)?e.value:t.getBaseValue(),a}(i,t,s),r=[];if(a.grid.circular){const e=t.getPointPositionForValue(0,s);return new TMe({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<n;++l)r.push(t.getPointPositionForValue(l,o));return r}(e);return function(e){const{scale:t={},fill:i}=e,a=function(e,t){let i=null;return"start"===e?i=t.bottom:"end"===e?i=t.top:HTe(e)?i=t.getPixelForValue(e.value):t.getBasePixel&&(i=t.getBasePixel()),i}(i,t);if(zTe(a)){const e=t.isHorizontal();return{x:e?a:null,y:e?null:a}}return null}(e)}(e);return n instanceof TMe?n:xMe(n,a)}function RMe(e,t,i){const a=AMe(t),{chart:n,index:s,line:o,scale:r,axis:l}=t,c=o.options,d=c.fill,u=c.backgroundColor,{above:p=u,below:h=u}=d||{},f=n.getDatasetMeta(s),g=AIe(n,f);a&&o.points.length&&(mRe(e,i),function(e,t){const{line:i,target:a,above:n,below:s,area:o,scale:r,clip:l}=t,c=i._loop?"angle":t.axis;e.save();let d=s;s!==n&&("x"===c?(IMe(e,a,o.top),OMe(e,{line:i,target:a,color:n,scale:r,property:c,clip:l}),e.restore(),e.save(),IMe(e,a,o.bottom)):"y"===c&&(DMe(e,a,o.left),OMe(e,{line:i,target:a,color:s,scale:r,property:c,clip:l}),e.restore(),e.save(),DMe(e,a,o.right),d=n));OMe(e,{line:i,target:a,color:d,scale:r,property:c,clip:l}),e.restore()}(e,{line:o,target:a,above:p,below:h,area:i,scale:r,axis:l,clip:g}),_Re(e))}function IMe(e,t,i){const{segments:a,points:n}=t;let s=!0,o=!1;e.beginPath();for(const r of a){const{start:a,end:l}=r,c=n[a],d=n[bMe(a,l,n)];s?(e.moveTo(c.x,c.y),s=!1):(e.lineTo(c.x,i),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,r,{move:o}),o?e.closePath():e.lineTo(d.x,i)}e.lineTo(t.first().x,i),e.closePath(),e.clip()}function DMe(e,t,i){const{segments:a,points:n}=t;let s=!0,o=!1;e.beginPath();for(const r of a){const{start:a,end:l}=r,c=n[a],d=n[bMe(a,l,n)];s?(e.moveTo(c.x,c.y),s=!1):(e.lineTo(i,c.y),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,r,{move:o}),o?e.closePath():e.lineTo(i,d.y)}e.lineTo(i,t.first().y),e.closePath(),e.clip()}function OMe(e,t){const{line:i,target:a,property:n,color:s,scale:o,clip:r}=t,l=function(e,t,i){const a=e.segments,n=e.points,s=t.points,o=[];for(const r of a){let{start:e,end:a}=r;a=bMe(e,a,n);const l=vMe(i,n[e],n[a],r.loop);if(!t.segments){o.push({source:r,target:l,start:n[e],end:n[a]});continue}const c=wIe(t,l);for(const t of c){const e=vMe(i,s[t.start],s[t.end],t.loop),a=SIe(r,n,e);for(const n of a)o.push({source:n,target:t,start:{[i]:yMe(l,e,"start",Math.max)},end:{[i]:yMe(l,e,"end",Math.min)}})}}return o}(i,a,n);for(const{source:c,target:d,start:u,end:p}of l){const{style:{backgroundColor:t=s}={}}=c,l=!0!==a;e.save(),e.fillStyle=t,MMe(e,o,r,l&&vMe(n,u,p)),e.beginPath();const h=!!i.pathSegment(e,c);let f;if(l){h?e.closePath():NMe(e,a,p,n);const t=!!a.pathSegment(e,d,{move:h,reverse:!0});f=h&&t,f||NMe(e,a,u,n)}e.closePath(),e.fill(f?"evenodd":"nonzero"),e.restore()}}function MMe(e,t,i,a){const n=t.chart.chartArea,{property:s,start:o,end:r}=a||{};if("x"===s||"y"===s){let t,a,l,c;"x"===s?(t=o,a=n.top,l=r,c=n.bottom):(t=n.left,a=o,l=n.right,c=r),e.beginPath(),i&&(t=Math.max(t,i.left),l=Math.min(l,i.right),a=Math.max(a,i.top),c=Math.min(c,i.bottom)),e.rect(t,a,l-t,c-a),e.clip()}}function NMe(e,t,i,a){const n=t.interpolate(i,a);n&&e.lineTo(n.x,n.y)}var LMe={id:"filler",afterDatasetsUpdate(e,t,i){const a=(e.data.datasets||[]).length,n=[];let s,o,r,l;for(o=0;o<a;++o)s=e.getDatasetMeta(o),r=s.dataset,l=null,r&&r.options&&r instanceof ZOe&&(l={visible:e.isDatasetVisible(o),index:o,fill:CMe(r,o,a),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:r}),s.$filler=l,n.push(l);for(o=0;o<a;++o)l=n[o],l&&!1!==l.fill&&(l.fill=wMe(n,o,i.propagate))},beforeDraw(e,t,i){const a="beforeDraw"===i.drawTime,n=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let o=n.length-1;o>=0;--o){const t=n[o].$filler;t&&(t.line.updateControlPoints(s,t.axis),a&&t.fill&&RMe(e.ctx,t,s))}},beforeDatasetsDraw(e,t,i){if("beforeDatasetsDraw"!==i.drawTime)return;const a=e.getSortedVisibleDatasetMetas();for(let n=a.length-1;n>=0;--n){const t=a[n].$filler;SMe(t)&&RMe(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,i){const a=t.meta.$filler;SMe(a)&&"beforeDatasetDraw"===i.drawTime&&RMe(e.ctx,a,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const PMe=(e,t)=>{let{boxHeight:i=t,boxWidth:a=t}=e;return e.usePointStyle&&(i=Math.min(i,t),a=e.pointStyleWidth||Math.min(a,t)),{boxWidth:a,boxHeight:i,itemHeight:Math.max(t,i)}};let FMe=class extends KDe{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,i){this.maxWidth=e,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=jTe(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,i)=>e.sort(t,i,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const i=e.labels,a=ORe(i.font),n=a.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:r}=PMe(i,n);let l,c;t.font=a.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,n,o,r)+10):(c=this.maxHeight,l=this._fitCols(s,a,o,r)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,i,a){const{ctx:n,maxWidth:s,options:{labels:{padding:o}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=a+o;let d=e;n.textAlign="left",n.textBaseline="middle";let u=-1,p=-c;return this.legendItems.forEach((e,h)=>{const f=i+t/2+n.measureText(e.text).width;(0===h||l[l.length-1]+f+2*o>s)&&(d+=c,l[l.length-(h>0?0:1)]=0,p+=c,u++),r[h]={left:0,top:p,row:u,width:f,height:a},l[l.length-1]+=f+o}),d}_fitCols(e,t,i,a){const{ctx:n,maxHeight:s,options:{labels:{padding:o}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-e;let d=o,u=0,p=0,h=0,f=0;return this.legendItems.forEach((e,s)=>{const{itemWidth:g,itemHeight:m}=function(e,t,i,a,n){const s=function(e,t,i,a){let n=e.text;n&&"string"!=typeof n&&(n=n.reduce((e,t)=>e.length>t.length?e:t));return t+i.size/2+a.measureText(n).width}(a,e,t,i),o=function(e,t,i){let a=e;"string"!=typeof t.text&&(a=BMe(t,i));return a}(n,a,t.lineHeight);return{itemWidth:s,itemHeight:o}}(i,t,n,e,a);s>0&&p+m+2*o>c&&(d+=u+o,l.push({width:u,height:p}),h+=u+o,f++,u=p=0),r[s]={left:h,top:p,col:f,width:g,height:m},u=Math.max(u,g),p+=m+o}),d+=u,l.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:a},rtl:n}}=this,s=_Ie(n,this.left,this.width);if(this.isHorizontal()){let n=0,o=UAe(i,this.left+a,this.right-this.lineWidths[n]);for(const r of t)n!==r.row&&(n=r.row,o=UAe(i,this.left+a,this.right-this.lineWidths[n])),r.top+=this.top+e+a,r.left=s.leftForLtr(s.x(o),r.width),o+=r.width+a}else{let n=0,o=UAe(i,this.top+e+a,this.bottom-this.columnSizes[n].height);for(const r of t)r.col!==n&&(n=r.col,o=UAe(i,this.top+e+a,this.bottom-this.columnSizes[n].height)),r.top=o,r.left+=this.left+a,r.left=s.leftForLtr(s.x(r.left),r.width),o+=r.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;mRe(e,this),this._draw(),_Re(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:i,ctx:a}=this,{align:n,labels:s}=e,o=lRe.color,r=_Ie(e.rtl,this.left,this.width),l=ORe(s.font),{padding:c}=s,d=l.size,u=d/2;let p;this.drawTitle(),a.textAlign=r.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:g}=PMe(s,d),m=this.isHorizontal(),_=this._computeTitleHeight();p=m?{x:UAe(n,this.left+c,this.right-i[0]),y:this.top+c+_,line:0}:{x:this.left+c,y:UAe(n,this.top+_+c,this.bottom-t[0].height),line:0},vIe(this.ctx,e.textDirection);const v=g+c;this.legendItems.forEach((b,y)=>{a.strokeStyle=b.fontColor,a.fillStyle=b.fontColor;const x=a.measureText(b.text).width,S=r.textAlign(b.textAlign||(b.textAlign=s.textAlign)),w=h+u+x;let C=p.x,E=p.y;r.setWidth(this.width),m?y>0&&C+w+c>this.right&&(E=p.y+=v,p.line++,C=p.x=UAe(n,this.left+c,this.right-i[p.line])):y>0&&E+v>this.bottom&&(C=p.x=C+t[p.line].width+c,p.line++,E=p.y=UAe(n,this.top+_+c,this.bottom-t[p.line].height));if(function(e,t,i){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;a.save();const n=GTe(i.lineWidth,1);if(a.fillStyle=GTe(i.fillStyle,o),a.lineCap=GTe(i.lineCap,"butt"),a.lineDashOffset=GTe(i.lineDashOffset,0),a.lineJoin=GTe(i.lineJoin,"miter"),a.lineWidth=n,a.strokeStyle=GTe(i.strokeStyle,o),a.setLineDash(GTe(i.lineDash,[])),s.usePointStyle){const o={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(e,h/2);fRe(a,o,l,t+u,s.pointStyleWidth&&h)}else{const s=t+Math.max((d-f)/2,0),o=r.leftForLtr(e,h),l=IRe(i.borderRadius);a.beginPath(),Object.values(l).some(e=>0!==e)?wRe(a,{x:o,y:s,w:h,h:f,radius:l}):a.rect(o,s,h,f),a.fill(),0!==n&&a.stroke()}a.restore()}(r.x(C),E,b),C=((e,t,i,a)=>e===(a?"left":"right")?i:"center"===e?(t+i)/2:t)(S,C+h+u,m?C+w:this.right,e.rtl),function(e,t,i){SRe(a,i.text,e,t+g/2,l,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(C),E,b),m)p.x+=w+c;else if("string"!=typeof b.text){const e=l.lineHeight;p.y+=BMe(b,e)+c}else p.y+=v}),bIe(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,i=ORe(t.font),a=DRe(t.padding);if(!t.display)return;const n=_Ie(e.rtl,this.left,this.width),s=this.ctx,o=t.position,r=i.size/2,l=a.top+r;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=UAe(e.align,d,this.right-u);else{const t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);c=l+UAe(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=UAe(o,d,d+u);s.textAlign=n.textAlign(VAe(o)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=i.string,SRe(s,t.text,p,c,i)}_computeTitleHeight(){const e=this.options.title,t=ORe(e.font),i=DRe(e.padding);return e.display?t.lineHeight+i.height:0}_getLegendItemAt(e,t){let i,a,n;if(DAe(e,this.left,this.right)&&DAe(t,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(a=n[i],DAe(e,a.left,a.left+a.width)&&DAe(t,a.top,a.top+a.height))return this.legendItems[i];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const i=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const s=this._hoveredItem,o=(n=i,null!==(a=s)&&null!==n&&a.datasetIndex===n.datasetIndex&&a.index===n.index);s&&!o&&jTe(t.onLeave,[e,s,this],this),this._hoveredItem=i,i&&!o&&jTe(t.onHover,[e,i,this],this)}else i&&jTe(t.onClick,[e,i,this],this);var a,n}};function BMe(e,t){return t*(e.text?e.text.length:0)}var $Me={id:"legend",_element:FMe,start(e,t,i){const a=e.legend=new FMe({ctx:e.ctx,options:i,chart:e});DDe.configure(e,a,i),DDe.addBox(e,a)},stop(e){DDe.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const a=e.legend;DDe.configure(e,a,i),a.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const a=t.datasetIndex,n=i.chart;n.isDatasetVisible(a)?(n.hide(a),t.hidden=!0):(n.show(a),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:a,textAlign:n,color:s,useBorderRadius:o,borderRadius:r}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const l=e.controller.getStyle(i?0:void 0),c=DRe(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:s,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:a||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:o&&(r||l.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class VMe extends KDe{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const a=UTe(i.text)?i.text.length:1;this._padding=DRe(i.padding);const n=a*ORe(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:i,bottom:a,right:n,options:s}=this,o=s.align;let r,l,c,d=0;return this.isHorizontal()?(l=UAe(o,i,n),c=t+e,r=n-i):("left"===s.position?(l=i+e,c=UAe(o,a,t),d=-.5*lAe):(l=n-e,c=UAe(o,t,a),d=.5*lAe),r=a-t),{titleX:l,titleY:c,maxWidth:r,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const i=ORe(t.font),a=i.lineHeight/2+this._padding.top,{titleX:n,titleY:s,maxWidth:o,rotation:r}=this._drawArgs(a);SRe(e,t.text,0,0,i,{color:t.color,maxWidth:o,rotation:r,textAlign:VAe(t.align),textBaseline:"middle",translation:[n,s]})}}var UMe={id:"title",_element:VMe,start(e,t,i){!function(e,t){const i=new VMe({ctx:e.ctx,options:t,chart:e});DDe.configure(e,i,t),DDe.addBox(e,i),e.titleBlock=i}(e,i)},stop(e){const t=e.titleBlock;DDe.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,i){const a=e.titleBlock;DDe.configure(e,a,i),a.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const HMe=new WeakMap;var zMe={id:"subtitle",start(e,t,i){const a=new VMe({ctx:e.ctx,options:i,chart:e});DDe.configure(e,a,i),DDe.addBox(e,a),HMe.set(e,a)},stop(e){DDe.removeBox(e,HMe.get(e)),HMe.delete(e)},beforeUpdate(e,t,i){const a=HMe.get(e);DDe.configure(e,a,i),a.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const YMe={average(e){if(!e.length)return!1;let t,i,a=new Set,n=0,s=0;for(t=0,i=e.length;t<i;++t){const i=e[t].element;if(i&&i.hasValue()){const e=i.tooltipPosition();a.add(e.x),n+=e.y,++s}}if(0===s||0===a.size)return!1;return{x:[...a].reduce((e,t)=>e+t)/a.size,y:n/s}},nearest(e,t){if(!e.length)return!1;let i,a,n,s=t.x,o=t.y,r=Number.POSITIVE_INFINITY;for(i=0,a=e.length;i<a;++i){const a=e[i].element;if(a&&a.hasValue()){const e=kAe(t,a.getCenterPoint());e<r&&(r=e,n=a)}}if(n){const e=n.tooltipPosition();s=e.x,o=e.y}return{x:s,y:o}}};function GMe(e,t){return t&&(UTe(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function WMe(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function jMe(e,t){const{element:i,datasetIndex:a,index:n}=t,s=e.getDatasetMeta(a).controller,{label:o,value:r}=s.getLabelAndValue(n);return{chart:e,label:o,parsed:s.getParsed(n),raw:e.data.datasets[a].data[n],formattedValue:r,dataset:s.getDataset(),dataIndex:n,datasetIndex:a,element:i}}function qMe(e,t){const i=e.chart.ctx,{body:a,footer:n,title:s}=e,{boxWidth:o,boxHeight:r}=t,l=ORe(t.bodyFont),c=ORe(t.titleFont),d=ORe(t.footerFont),u=s.length,p=n.length,h=a.length,f=DRe(t.padding);let g=f.height,m=0,_=a.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),_){g+=h*(t.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(_-h)*l.lineHeight+(_-1)*t.bodySpacing}p&&(g+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let v=0;const b=function(e){m=Math.max(m,i.measureText(e).width+v)};return i.save(),i.font=c.string,qTe(e.title,b),i.font=l.string,qTe(e.beforeBody.concat(e.afterBody),b),v=t.displayColors?o+2+t.boxPadding:0,qTe(a,e=>{qTe(e.before,b),qTe(e.lines,b),qTe(e.after,b)}),v=0,i.font=d.string,qTe(e.footer,b),i.restore(),m+=f.width,{width:m,height:g}}function KMe(e,t,i,a){const{x:n,width:s}=i,{width:o,chartArea:{left:r,right:l}}=e;let c="center";return"center"===a?c=n<=(r+l)/2?"left":"right":n<=s/2?c="left":n>=o-s/2&&(c="right"),function(e,t,i,a){const{x:n,width:s}=a,o=i.caretSize+i.caretPadding;return"left"===e&&n+s+o>t.width||"right"===e&&n-s-o<0||void 0}(c,e,t,i)&&(c="center"),c}function XMe(e,t,i){const a=i.yAlign||t.yAlign||function(e,t){const{y:i,height:a}=t;return i<a/2?"top":i>e.height-a/2?"bottom":"center"}(e,i);return{xAlign:i.xAlign||t.xAlign||KMe(e,t,i,a),yAlign:a}}function ZMe(e,t,i,a){const{caretSize:n,caretPadding:s,cornerRadius:o}=e,{xAlign:r,yAlign:l}=i,c=n+s,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=IRe(o);let f=function(e,t){let{x:i,width:a}=e;return"right"===t?i-=a:"center"===t&&(i-=a/2),i}(t,r);const g=function(e,t,i){let{y:a,height:n}=e;return"top"===t?a+=i:a-="bottom"===t?n+i:n/2,a}(t,l,c);return"center"===l?"left"===r?f+=c:"right"===r&&(f-=c):"left"===r?f-=Math.max(d,p)+n:"right"===r&&(f+=Math.max(u,h)+n),{x:IAe(f,0,a.width-t.width),y:IAe(g,0,a.height-t.height)}}function QMe(e,t,i){const a=DRe(i.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-a.right:e.x+a.left}function JMe(e){return GMe([],WMe(e))}function eNe(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}const tNe={beforeTitle:BTe,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,a=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(a>0&&t.dataIndex<a)return i[t.dataIndex]}return""},afterTitle:BTe,beforeBody:BTe,beforeLabel:BTe,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const i=e.formattedValue;return VTe(i)||(t+=i),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:BTe,afterBody:BTe,beforeFooter:BTe,footer:BTe,afterFooter:BTe};function iNe(e,t,i,a){const n=e[t].call(i,a);return void 0===n?tNe[t].call(i,a):n}let aNe=(a=class extends KDe{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,i=this.options.setContext(this.getContext()),a=i.enabled&&t.options.animation&&i.animations,n=new MIe(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,i=this._tooltipItems,NRe(e,{tooltip:t,tooltipItems:i,type:"tooltip"})));var e,t,i}getTitle(e,t){const{callbacks:i}=t,a=iNe(i,"beforeTitle",this,e),n=iNe(i,"title",this,e),s=iNe(i,"afterTitle",this,e);let o=[];return o=GMe(o,WMe(a)),o=GMe(o,WMe(n)),o=GMe(o,WMe(s)),o}getBeforeBody(e,t){return JMe(iNe(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:i}=t,a=[];return qTe(e,e=>{const t={before:[],lines:[],after:[]},n=eNe(i,e);GMe(t.before,WMe(iNe(n,"beforeLabel",this,e))),GMe(t.lines,iNe(n,"label",this,e)),GMe(t.after,WMe(iNe(n,"afterLabel",this,e))),a.push(t)}),a}getAfterBody(e,t){return JMe(iNe(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:i}=t,a=iNe(i,"beforeFooter",this,e),n=iNe(i,"footer",this,e),s=iNe(i,"afterFooter",this,e);let o=[];return o=GMe(o,WMe(a)),o=GMe(o,WMe(n)),o=GMe(o,WMe(s)),o}_createItems(e){const t=this._active,i=this.chart.data,a=[],n=[],s=[];let o,r,l=[];for(o=0,r=t.length;o<r;++o)l.push(jMe(this.chart,t[o]));return e.filter&&(l=l.filter((t,a,n)=>e.filter(t,a,n,i))),e.itemSort&&(l=l.sort((t,a)=>e.itemSort(t,a,i))),qTe(l,t=>{const i=eNe(e.callbacks,t);a.push(iNe(i,"labelColor",this,t)),n.push(iNe(i,"labelPointStyle",this,t)),s.push(iNe(i,"labelTextColor",this,t))}),this.labelColors=a,this.labelPointStyles=n,this.labelTextColors=s,this.dataPoints=l,l}update(e,t){const i=this.options.setContext(this.getContext()),a=this._active;let n,s=[];if(a.length){const e=YMe[i.position].call(this,a,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const t=this._size=qMe(this,i),o=Object.assign({},e,t),r=XMe(this.chart,i,o),l=ZMe(i,o,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=s,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,i,a){const n=this.getCaretPosition(e,i,a);t.lineTo(n.x1,n.y1),t.lineTo(n.x2,n.y2),t.lineTo(n.x3,n.y3)}getCaretPosition(e,t,i){const{xAlign:a,yAlign:n}=this,{caretSize:s,cornerRadius:o}=i,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:d}=IRe(o),{x:u,y:p}=e,{width:h,height:f}=t;let g,m,_,v,b,y;return"center"===n?(b=p+f/2,"left"===a?(g=u,m=g-s,v=b+s,y=b-s):(g=u+h,m=g+s,v=b-s,y=b+s),_=g):(m="left"===a?u+Math.max(r,c)+s:"right"===a?u+h-Math.max(l,d)-s:this.caretX,"top"===n?(v=p,b=v-s,g=m-s,_=m+s):(v=p+f,b=v+s,g=m+s,_=m-s),y=v),{x1:g,x2:m,x3:_,y1:v,y2:b,y3:y}}drawTitle(e,t,i){const a=this.title,n=a.length;let s,o,r;if(n){const l=_Ie(i.rtl,this.x,this.width);for(e.x=QMe(this,i.titleAlign,i),t.textAlign=l.textAlign(i.titleAlign),t.textBaseline="middle",s=ORe(i.titleFont),o=i.titleSpacing,t.fillStyle=i.titleColor,t.font=s.string,r=0;r<n;++r)t.fillText(a[r],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+o,r+1===n&&(e.y+=i.titleMarginBottom-o)}}_drawColorBox(e,t,i,a,n){const s=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:r,boxWidth:l}=n,c=ORe(n.bodyFont),d=QMe(this,"left",n),u=a.x(d),p=r<c.lineHeight?(c.lineHeight-r)/2:0,h=t.y+p;if(n.usePointStyle){const t={radius:Math.min(l,r)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=a.leftForLtr(u,l)+l/2,c=h+r/2;e.strokeStyle=n.multiKeyBackground,e.fillStyle=n.multiKeyBackground,hRe(e,t,i,c),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,hRe(e,t,i,c)}else{e.lineWidth=HTe(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const t=a.leftForLtr(u,l),i=a.leftForLtr(a.xPlus(u,1),l-2),o=IRe(s.borderRadius);Object.values(o).some(e=>0!==e)?(e.beginPath(),e.fillStyle=n.multiKeyBackground,wRe(e,{x:t,y:h,w:l,h:r,radius:o}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),wRe(e,{x:i,y:h+1,w:l-2,h:r-2,radius:o}),e.fill()):(e.fillStyle=n.multiKeyBackground,e.fillRect(t,h,l,r),e.strokeRect(t,h,l,r),e.fillStyle=s.backgroundColor,e.fillRect(i,h+1,l-2,r-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,t,i){const{body:a}=this,{bodySpacing:n,bodyAlign:s,displayColors:o,boxHeight:r,boxWidth:l,boxPadding:c}=i,d=ORe(i.bodyFont);let u=d.lineHeight,p=0;const h=_Ie(i.rtl,this.x,this.width),f=function(i){t.fillText(i,h.x(e.x+p),e.y+u/2),e.y+=u+n},g=h.textAlign(s);let m,_,v,b,y,x,S;for(t.textAlign=s,t.textBaseline="middle",t.font=d.string,e.x=QMe(this,g,i),t.fillStyle=i.bodyColor,qTe(this.beforeBody,f),p=o&&"right"!==g?"center"===s?l/2+c:l+2+c:0,b=0,x=a.length;b<x;++b){for(m=a[b],_=this.labelTextColors[b],t.fillStyle=_,qTe(m.before,f),v=m.lines,o&&v.length&&(this._drawColorBox(t,e,b,h,i),u=Math.max(d.lineHeight,r)),y=0,S=v.length;y<S;++y)f(v[y]),u=d.lineHeight;qTe(m.after,f)}p=0,u=d.lineHeight,qTe(this.afterBody,f),e.y-=n}drawFooter(e,t,i){const a=this.footer,n=a.length;let s,o;if(n){const r=_Ie(i.rtl,this.x,this.width);for(e.x=QMe(this,i.footerAlign,i),e.y+=i.footerMarginTop,t.textAlign=r.textAlign(i.footerAlign),t.textBaseline="middle",s=ORe(i.footerFont),t.fillStyle=i.footerColor,t.font=s.string,o=0;o<n;++o)t.fillText(a[o],r.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+i.footerSpacing}}drawBackground(e,t,i,a){const{xAlign:n,yAlign:s}=this,{x:o,y:r}=e,{width:l,height:c}=i,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=IRe(a.cornerRadius);t.fillStyle=a.backgroundColor,t.strokeStyle=a.borderColor,t.lineWidth=a.borderWidth,t.beginPath(),t.moveTo(o+d,r),"top"===s&&this.drawCaret(e,t,i,a),t.lineTo(o+l-u,r),t.quadraticCurveTo(o+l,r,o+l,r+u),"center"===s&&"right"===n&&this.drawCaret(e,t,i,a),t.lineTo(o+l,r+c-h),t.quadraticCurveTo(o+l,r+c,o+l-h,r+c),"bottom"===s&&this.drawCaret(e,t,i,a),t.lineTo(o+p,r+c),t.quadraticCurveTo(o,r+c,o,r+c-p),"center"===s&&"left"===n&&this.drawCaret(e,t,i,a),t.lineTo(o,r+d),t.quadraticCurveTo(o,r,o+d,r),t.closePath(),t.fill(),a.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,i=this.$animations,a=i&&i.x,n=i&&i.y;if(a||n){const i=YMe[e.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=qMe(this,e),o=Object.assign({},i,this._size),r=XMe(t,e,o),l=ZMe(e,o,r,t);a._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(t);const a={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=DRe(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(n,e,a,t),vIe(e,t.textDirection),n.y+=s.top,this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),bIe(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const i=this._active,a=e.map(({datasetIndex:e,index:t})=>{const i=this.chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[t],index:t}}),n=!KTe(i,a),s=this._positionChanged(a,t);(n||s)&&(this._active=a,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,i=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,n=this._active||[],s=this._getActiveElements(e,n,t,i),o=this._positionChanged(s,e),r=t||!KTe(s,n)||o;return r&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),r}_getActiveElements(e,t,i,a){const n=this.options;if("mouseout"===e.type)return[];if(!a)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index));const s=this.chart.getElementsAtEventForMode(e,n.mode,n,i);return n.reverse&&s.reverse(),s}_positionChanged(e,t){const{caretX:i,caretY:a,options:n}=this,s=YMe[n.position].call(this,e,t);return!1!==s&&(i!==s.x||a!==s.y)}},o(a,"positioners",YMe),a);var nNe={id:"tooltip",_element:aNe,positioners:YMe,afterInit(e,t,i){i&&(e.tooltip=new aNe({chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const i={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i)}},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:tNe},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},sNe=Object.freeze({__proto__:null,Colors:fMe,Decimation:_Me,Filler:LMe,Legend:$Me,SubTitle:zMe,Title:UMe,Tooltip:nNe});function oNe(e,t,i,a){const n=e.indexOf(t);if(-1===n)return((e,t,i,a)=>("string"==typeof t?(i=e.push(t)-1,a.unshift({index:i,label:t})):isNaN(t)&&(i=null),i))(e,t,i,a);return n!==e.lastIndexOf(t)?i:n}function rNe(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class lNe extends sOe{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:i,label:a}of t)e[i]===a&&e.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(VTe(e))return null;const i=this.getLabels();return((e,t)=>null===e?null:IAe(Math.round(e),0,t))(t=isFinite(t)&&i[t]===e?t:oNe(i,e,GTe(t,e),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:i,max:a}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(i=0),t||(a=this.getLabels().length-1)),this.min=i,this.max=a}buildTicks(){const e=this.min,t=this.max,i=this.options.offset,a=[];let n=this.getLabels();n=0===e&&t===n.length-1?n:n.slice(e,t+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let s=e;s<=t;s++)a.push({value:s});return a}getLabelForValue(e){return rNe.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function cNe(e,t){const i=[],{bounds:a,step:n,min:s,max:o,precision:r,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=e,p=n||1,h=c-1,{min:f,max:g}=t,m=!VTe(s),_=!VTe(o),v=!VTe(l),b=(g-f)/(d+1);let y,x,S,w,C=bAe((g-f)/h/p)*p;if(C<1e-14&&!m&&!_)return[{value:f},{value:g}];w=Math.ceil(g/C)-Math.floor(f/C),w>h&&(C=bAe(w*C/h/p)*p),VTe(r)||(y=Math.pow(10,r),C=Math.ceil(C*y)/y),"ticks"===a?(x=Math.floor(f/C)*C,S=Math.ceil(g/C)*C):(x=f,S=g),m&&_&&n&&function(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}((o-s)/n,C/1e3)?(w=Math.round(Math.min((o-s)/C,c)),C=(o-s)/w,x=s,S=o):v?(x=m?s:x,S=_?o:S,w=l-1,C=(S-x)/w):(w=(S-x)/C,w=vAe(w,Math.round(w),C/1e3)?Math.round(w):Math.ceil(w));const E=Math.max(CAe(C),CAe(x));y=Math.pow(10,VTe(r)?E:r),x=Math.round(x*y)/y,S=Math.round(S*y)/y;let k=0;for(m&&(u&&x!==s?(i.push({value:s}),x<s&&k++,vAe(Math.round((x+k*C)*y)/y,s,dNe(s,b,e))&&k++):x<s&&k++);k<w;++k){const e=Math.round((x+k*C)*y)/y;if(_&&e>o)break;i.push({value:e})}return _&&u&&S!==o?i.length&&vAe(i[i.length-1].value,o,dNe(o,b,e))?i[i.length-1].value=o:i.push({value:o}):_&&S!==o||i.push({value:S}),i}function dNe(e,t,{horizontal:i,minRotation:a}){const n=SAe(a),s=(i?Math.sin(n):Math.cos(n))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}o(lNe,"id","category"),o(lNe,"defaults",{ticks:{callback:rNe}});class uNe extends sOe{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return VTe(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:a,max:n}=this;const s=e=>a=t?a:e,o=e=>n=i?n:e;if(e){const e=_Ae(a),t=_Ae(n);e<0&&t<0?o(0):e>0&&t>0&&s(0)}if(a===n){let t=0===n?1:Math.abs(.05*n);o(n+t),e||s(a-t)}this.min=a,this.max=n}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:i,stepSize:a}=e;return a?(t=Math.ceil(this.max/a)-Math.floor(this.min/a)+1,t>1e3&&(t=1e3)):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const a=cNe({maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&xAe(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let t=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const a=(i-t)/Math.max(e.length-1,1)/2;t-=a,i+=a}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(e){return eRe(e,this.chart.options.locale,this.options.ticks.format)}}class pNe extends uNe{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=zTe(e)?e:0,this.max=zTe(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,i=SAe(this.options.ticks.minRotation),a=(e?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,n.lineHeight/a))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}o(pNe,"id","linear"),o(pNe,"defaults",{ticks:{callback:iRe.formatters.numeric}});const hNe=e=>Math.floor(mAe(e)),fNe=(e,t)=>Math.pow(10,hNe(e)+t);function gNe(e){return 1===e/Math.pow(10,hNe(e))}function mNe(e,t,i){const a=Math.pow(10,i),n=Math.floor(e/a);return Math.ceil(t/a)-n}function _Ne(e,{min:t,max:i}){t=YTe(e.min,t);const a=[],n=hNe(t);let s=function(e,t){let i=hNe(t-e);for(;mNe(e,t,i)>10;)i++;for(;mNe(e,t,i)<10;)i--;return Math.min(i,hNe(e))}(t,i),o=s<0?Math.pow(10,Math.abs(s)):1;const r=Math.pow(10,s),l=n>s?Math.pow(10,n):0,c=Math.round((t-l)*o)/o,d=Math.floor((t-l)/r/10)*r*10;let u=Math.floor((c-d)/Math.pow(10,s)),p=YTe(e.min,Math.round((l+d+u*Math.pow(10,s))*o)/o);for(;p<i;)a.push({value:p,major:gNe(p),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(s++,u=2,o=s>=0?1:o),p=Math.round((l+d+u*Math.pow(10,s))*o)/o;const h=YTe(e.max,p);return a.push({value:h,major:gNe(h),significand:u}),a}class vNe extends sOe{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const i=uNe.prototype.parse.apply(this,[e,t]);if(0!==i)return zTe(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=zTe(e)?Math.max(0,e):null,this.max=zTe(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!zTe(this._userMin)&&(this.min=e===fNe(this.min,0)?fNe(this.min,-1):fNe(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let i=this.min,a=this.max;const n=t=>i=e?i:t,s=e=>a=t?a:e;i===a&&(i<=0?(n(1),s(10)):(n(fNe(i,-1)),s(fNe(a,1)))),i<=0&&n(fNe(a,-1)),a<=0&&s(fNe(i,1)),this.min=i,this.max=a}buildTicks(){const e=this.options,t=_Ne({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&xAe(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":eRe(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=mAe(e),this._valueRange=mAe(this.max)-mAe(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(mAe(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function bNe(e){const t=e.ticks;if(t.display&&e.display){const e=DRe(t.backdropPadding);return GTe(t.font&&t.font.size,lRe.font.size)+e.height}return 0}function yNe(e,t,i){return i=UTe(i)?i:[i],{w:dRe(e,t.string,i),h:i.length*t.lineHeight}}function xNe(e,t,i,a,n){return e===a||e===n?{start:t-i/2,end:t+i/2}:e<a||e>n?{start:t-i,end:t}:{start:t,end:t+i}}function SNe(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},i=Object.assign({},t),a=[],n=[],s=e._pointLabels.length,o=e.options.pointLabels,r=o.centerPointLabels?lAe/s:0;for(let l=0;l<s;l++){const s=o.setContext(e.getPointLabelContext(l));n[l]=s.padding;const c=e.getPointPosition(l,e.drawingArea+n[l],r),d=ORe(s.font),u=yNe(e.ctx,d,e._pointLabels[l]);a[l]=u;const p=AAe(e.getIndexAngle(l)+r),h=Math.round(wAe(p));wNe(i,t,p,xNe(h,c.x,u.w,0,180),xNe(h,c.y,u.h,90,270))}e.setCenterPoint(t.l-i.l,i.r-t.r,t.t-i.t,i.b-t.b),e._pointLabelItems=function(e,t,i){const a=[],n=e._pointLabels.length,s=e.options,{centerPointLabels:o,display:r}=s.pointLabels,l={extra:bNe(s)/2,additionalAngle:o?lAe/n:0};let c;for(let d=0;d<n;d++){l.padding=i[d],l.size=t[d];const n=CNe(e,d,l);a.push(n),"auto"===r&&(n.visible=ENe(n,c),n.visible&&(c=n))}return a}(e,a,n)}function wNe(e,t,i,a,n){const s=Math.abs(Math.sin(i)),o=Math.abs(Math.cos(i));let r=0,l=0;a.start<t.l?(r=(t.l-a.start)/s,e.l=Math.min(e.l,t.l-r)):a.end>t.r&&(r=(a.end-t.r)/s,e.r=Math.max(e.r,t.r+r)),n.start<t.t?(l=(t.t-n.start)/o,e.t=Math.min(e.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function CNe(e,t,i){const a=e.drawingArea,{extra:n,additionalAngle:s,padding:o,size:r}=i,l=e.getPointPosition(t,a+n+o,s),c=Math.round(wAe(AAe(l.angle+hAe))),d=function(e,t,i){90===i||270===i?e-=t/2:(i>270||i<90)&&(e-=t);return e}(l.y,r.h,c),u=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),p=function(e,t,i){"right"===i?e-=t:"center"===i&&(e-=t/2);return e}(l.x,r.w,u);return{visible:!0,x:l.x,y:d,textAlign:u,left:p,top:d,right:p+r.w,bottom:d+r.h}}function ENe(e,t){if(!t)return!0;const{left:i,top:a,right:n,bottom:s}=e;return!(gRe({x:i,y:a},t)||gRe({x:i,y:s},t)||gRe({x:n,y:a},t)||gRe({x:n,y:s},t))}function kNe(e,t,i){const{left:a,top:n,right:s,bottom:o}=i,{backdropColor:r}=t;if(!VTe(r)){const i=IRe(t.borderRadius),l=DRe(t.backdropPadding);e.fillStyle=r;const c=a-l.left,d=n-l.top,u=s-a+l.width,p=o-n+l.height;Object.values(i).some(e=>0!==e)?(e.beginPath(),wRe(e,{x:c,y:d,w:u,h:p,radius:i}),e.fill()):e.fillRect(c,d,u,p)}}function TNe(e,t,i,a){const{ctx:n}=e;if(i)n.arc(e.xCenter,e.yCenter,t,0,cAe);else{let i=e.getPointPosition(0,t);n.moveTo(i.x,i.y);for(let s=1;s<a;s++)i=e.getPointPosition(s,t),n.lineTo(i.x,i.y)}}o(vNe,"id","logarithmic"),o(vNe,"defaults",{ticks:{callback:iRe.formatters.logarithmic,major:{enabled:!0}}});class ANe extends uNe{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=DRe(bNe(this.options)/2),t=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(t,i)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=zTe(e)&&!isNaN(e)?e:0,this.max=zTe(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bNe(this.options))}generateTickLabels(e){uNe.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{const i=jTe(this.options.pointLabels.callback,[e,t],this);return i||0===i?i:""}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){const e=this.options;e.display&&e.pointLabels.display?SNe(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,i,a){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((i-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,i,a))}getIndexAngle(e){return AAe(e*(cAe/(this._pointLabels.length||1))+SAe(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(VTe(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(VTe(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const i=t[e];return function(e,t,i){return NRe(e,{label:i,index:t,type:"pointLabel"})}(this.getContext(),e,i)}}getPointPosition(e,t,i=0){const a=this.getIndexAngle(e)-hAe+i;return{x:Math.cos(a)*t+this.xCenter,y:Math.sin(a)*t+this.yCenter,angle:a}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:i,right:a,bottom:n}=this._pointLabelItems[e];return{left:t,top:i,right:a,bottom:n}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),TNe(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:i,grid:a,border:n}=t,s=this._pointLabels.length;let o,r,l;if(t.pointLabels.display&&function(e,t){const{ctx:i,options:{pointLabels:a}}=e;for(let n=t-1;n>=0;n--){const t=e._pointLabelItems[n];if(!t.visible)continue;const s=a.setContext(e.getPointLabelContext(n));kNe(i,s,t);const o=ORe(s.font),{x:r,y:l,textAlign:c}=t;SRe(i,e._pointLabels[n],r,l+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),a.display&&this.ticks.forEach((e,t)=>{if(0!==t||0===t&&this.min<0){r=this.getDistanceFromCenterForValue(e.value);const i=this.getContext(t),o=a.setContext(i),l=n.setContext(i);!function(e,t,i,a,n){const s=e.ctx,o=t.circular,{color:r,lineWidth:l}=t;!o&&!a||!r||!l||i<0||(s.save(),s.strokeStyle=r,s.lineWidth=l,s.setLineDash(n.dash||[]),s.lineDashOffset=n.dashOffset,s.beginPath(),TNe(e,i,o,a),s.closePath(),s.stroke(),s.restore())}(this,o,r,s,l)}}),i.display){for(e.save(),o=s-1;o>=0;o--){const a=i.setContext(this.getPointLabelContext(o)),{color:n,lineWidth:s}=a;s&&n&&(e.lineWidth=s,e.strokeStyle=n,e.setLineDash(a.borderDash),e.lineDashOffset=a.borderDashOffset,r=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(o,r),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,i=t.ticks;if(!i.display)return;const a=this.getIndexAngle(0);let n,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,o)=>{if(0===o&&this.min>=0&&!t.reverse)return;const r=i.setContext(this.getContext(o)),l=ORe(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[o].value),r.showLabelBackdrop){e.font=l.string,s=e.measureText(a.label).width,e.fillStyle=r.backdropColor;const t=DRe(r.backdropPadding);e.fillRect(-s/2-t.left,-n-l.size/2-t.top,s+t.width,l.size+t.height)}SRe(e,a.label,0,-n,l,{color:r.color,strokeColor:r.textStrokeColor,strokeWidth:r.textStrokeWidth})}),e.restore()}drawTitle(){}}o(ANe,"id","radialLinear"),o(ANe,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:iRe.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),o(ANe,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),o(ANe,"descriptors",{angleLines:{_fallback:"grid"}});const RNe={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},INe=Object.keys(RNe);function DNe(e,t){return e-t}function ONe(e,t){if(VTe(t))return null;const i=e._adapter,{parser:a,round:n,isoWeekday:s}=e._parseOpts;let o=t;return"function"==typeof a&&(o=a(o)),zTe(o)||(o="string"==typeof a?i.parse(o,a):i.parse(o)),null===o?null:(n&&(o="week"!==n||!yAe(s)&&!0!==s?i.startOf(o,n):i.startOf(o,"isoWeek",s)),+o)}function MNe(e,t,i,a){const n=INe.length;for(let s=INe.indexOf(e);s<n-1;++s){const e=RNe[INe[s]],n=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((i-t)/(n*e.size))<=a)return INe[s]}return INe[n-1]}function NNe(e,t,i){if(i){if(i.length){const{lo:a,hi:n}=OAe(i,t);e[i[a]>=t?i[a]:i[n]]=!0}}else e[t]=!0}function LNe(e,t,i){const a=[],n={},s=t.length;let o,r;for(o=0;o<s;++o)r=t[o],n[r]=o,a.push({value:r,major:!1});return 0!==s&&i?function(e,t,i,a){const n=e._adapter,s=+n.startOf(t[0].value,a),o=t[t.length-1].value;let r,l;for(r=s;r<=o;r=+n.add(r,1,a))l=i[r],l>=0&&(t[l].major=!0);return t}(e,a,n,i):a}let PNe=(n=class extends sOe{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const i=e.time||(e.time={}),a=this._adapter=new uDe(e.adapters.date);a.init(t),eAe(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:ONe(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,i=e.time.unit||"day";let{min:a,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();function r(e){s||isNaN(e.min)||(a=Math.min(a,e.min)),o||isNaN(e.max)||(n=Math.max(n,e.max))}s&&o||(r(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||r(this.getMinMax(!1))),a=zTe(a)&&!isNaN(a)?a:+t.startOf(Date.now(),i),n=zTe(n)&&!isNaN(n)?n:+t.endOf(Date.now(),i)+1,this.min=Math.min(a,n-1),this.max=Math.max(a+1,n)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],i=e[e.length-1]),{min:t,max:i}}buildTicks(){const e=this.options,t=e.time,i=e.ticks,a="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const n=this.min,s=function(e,t,i){let a=0,n=e.length;for(;a<n&&e[a]<t;)a++;for(;n>a&&e[n-1]>i;)n--;return a>0||n<e.length?e.slice(a,n):e}(a,n,this.max);return this._unit=t.unit||(i.autoSkip?MNe(t.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(e,t,i,a,n){for(let s=INe.length-1;s>=INe.indexOf(i);s--){const i=INe[s];if(RNe[i].common&&e._adapter.diff(n,a,i)>=t-1)return i}return INe[i?INe.indexOf(i):0]}(this,s.length,t.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(e){for(let t=INe.indexOf(e)+1,i=INe.length;t<i;++t)if(RNe[INe[t]].common)return INe[t]}(this._unit):void 0,this.initOffsets(a),e.reverse&&s.reverse(),LNe(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t,i,a=0,n=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),a=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,i=this.getDecimalForValue(e[e.length-1]),n=1===e.length?i:(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;a=IAe(a,0,s),n=IAe(n,0,s),this._offsets={start:a,end:n,factor:1/(a+1+n)}}_generate(){const e=this._adapter,t=this.min,i=this.max,a=this.options,n=a.time,s=n.unit||MNe(n.minUnit,t,i,this._getLabelCapacity(t)),o=GTe(a.ticks.stepSize,1),r="week"===s&&n.isoWeekday,l=yAe(r)||!0===r,c={};let d,u,p=t;if(l&&(p=+e.startOf(p,"isoWeek",r)),p=+e.startOf(p,l?"day":s),e.diff(i,t,s)>1e5*o)throw new Error(t+" and "+i+" are too far apart with stepSize of "+o+" "+s);const h="data"===a.ticks.source&&this.getDataTimestamps();for(d=p,u=0;d<i;d=+e.add(d,o,s),u++)NNe(c,d,h);return d!==i&&"ticks"!==a.bounds&&1!==u||NNe(c,d,h),Object.keys(c).sort(DNe).map(e=>+e)}getLabelForValue(e){const t=this._adapter,i=this.options.time;return i.tooltipFormat?t.format(e,i.tooltipFormat):t.format(e,i.displayFormats.datetime)}format(e,t){const i=this.options.time.displayFormats,a=this._unit,n=t||i[a];return this._adapter.format(e,n)}_tickFormatFunction(e,t,i,a){const n=this.options,s=n.ticks.callback;if(s)return jTe(s,[e,t,i],this);const o=n.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&o[r],d=l&&o[l],u=i[t],p=l&&d&&u&&u.major;return this._adapter.format(e,a||(p?d:c))}generateTickLabels(e){let t,i,a;for(t=0,i=e.length;t<i;++t)a=e[t],a.label=this._tickFormatFunction(a.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+i)*t.factor)}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,i=this.ctx.measureText(e).width,a=SAe(this.isHorizontal()?t.maxRotation:t.minRotation),n=Math.cos(a),s=Math.sin(a),o=this._resolveTickFontOptions(0).size;return{w:i*n+o*s,h:i*s+o*n}}_getLabelCapacity(e){const t=this.options.time,i=t.displayFormats,a=i[t.unit]||i.millisecond,n=this._tickFormatFunction(e,0,LNe(this,[e],this._majorUnit),a),s=this._getLabelSize(n),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let e,t,i=this._cache.data||[];if(i.length)return i;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(e=0,t=a.length;e<t;++e)i=i.concat(a[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const e=this._cache.labels||[];let t,i;if(e.length)return e;const a=this.getLabels();for(t=0,i=a.length;t<i;++t)e.push(ONe(this,a[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return FAe(e.sort(DNe))}},o(n,"id","time"),o(n,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}}),n);function FNe(e,t,i){let a,n,s,o,r=0,l=e.length-1;i?(t>=e[r].pos&&t<=e[l].pos&&({lo:r,hi:l}=MAe(e,"pos",t)),({pos:a,time:s}=e[r]),({pos:n,time:o}=e[l])):(t>=e[r].time&&t<=e[l].time&&({lo:r,hi:l}=MAe(e,"time",t)),({time:a,pos:s}=e[r]),({time:n,pos:o}=e[l]));const c=n-a;return c?s+(o-s)*(t-a)/c:s}class BNe extends PNe{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=FNe(t,this.min),this._tableRange=FNe(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:i}=this,a=[],n=[];let s,o,r,l,c;for(s=0,o=e.length;s<o;++s)l=e[s],l>=t&&l<=i&&a.push(l);if(a.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(s=0,o=a.length;s<o;++s)c=a[s+1],r=a[s-1],l=a[s],Math.round((c+r)/2)!==l&&n.push({time:l,pos:s/(o-1)});return n}_generate(){const e=this.min,t=this.max;let i=super.getDataTimestamps();return i.includes(e)&&i.length||i.splice(0,0,e),i.includes(t)&&1!==i.length||i.push(t),i.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),i=this.getLabelTimestamps();return e=t.length&&i.length?this.normalize(t.concat(i)):t.length?t:i,e=this._cache.all=e,e}getDecimalForValue(e){return(FNe(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return FNe(this._table,i*this._tableRange+this._minPos,!0)}}o(BNe,"id","timeseries"),o(BNe,"defaults",PNe.defaults);const $Ne=[lDe,rMe,sNe,Object.freeze({__proto__:null,CategoryScale:lNe,LinearScale:pNe,LogarithmicScale:vNe,RadialLinearScale:ANe,TimeScale:PNe,TimeSeriesScale:BNe})];POe.register(...$Ne);const VNe={ref:"chartCanvas"};const UNe=lH(sl({name:"MonthlyChart",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!1,default:()=>({})}},setup(e){const t=mo(null);let i=null,a=!1;const n=()=>{if(a||!t.value)return;const n=t.value.getContext("2d");if(n){if(i){try{i.destroy()}catch(NO){}i=null}try{i=new POe(n,{type:"bar",data:e.chartData,options:{...e.chartOptions,animation:{duration:300},responsive:!0,maintainAspectRatio:!1}})}catch(s){}}};return Rr(()=>e.chartData,()=>{a||(()=>{if(!a&&i)try{i.data=e.chartData,i.update("none")}catch(t){n()}})()},{deep:!0}),zl(()=>{ir(()=>{n()})}),Wl(()=>{if(a=!0,i){try{i.stop(),i.clear(),i.destroy()}catch(e){}i=null}}),{chartCanvas:t}}}),[["render",function(e,t,i,a,n,s){return zd(),qd("canvas",VNe,null,512)}]]),HNe={name:"ResponseGrowth",props:["date_range","url","agent_id","product_id","mailbox_id","agent_group_id","type","compact"],components:{BarChartBase:UNe},data:()=>({fetching:!1,stats:{},chartData:!1,maxCumulativeValue:0,chartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!0,color:"#E1E4EA"},border:{display:!1,dash:[4,4]},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}}}),methods:{async fetchReport(){this.fetching=!0;const e={date_range:this.date_range,agent_id:this.agent_id,product_id:this.product_id,mailbox_id:this.mailbox_id,agent_group_id:this.agent_group_id,type:this.type};await this.$get(this.url+"/response-growth",e).then(e=>{this.setupChartItems(e.stats)})},setupChartItems(e){const t={labels:[],datasets:[]},i=[];yX(e,(e,a)=>{t.labels.push(a),i.push(parseInt(e))});const a=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";t.datasets.push({label:this.$t("Response Stats"),backgroundColor:a,data:i}),this.chartData=t}},mounted(){this.fetchReport()},watch:{date_range:{handler(e){e&&2===e.length&&this.fetchReport()},deep:!0}}},zNe={style:{width:"100%",height:"400px"}};const YNe=lH(HNe,[["render",function(e,t,i,a,n,s){const o=Jl("bar-chart-base");return zd(),qd("div",zNe,[n.chartData?(zd(),Kd(o,{key:0,chartData:n.chartData,chartOptions:n.chartOptions},null,8,["chartData","chartOptions"])):ru("",!0)])}]]),GNe={name:"ResolveGrowth",props:["date_range","url","agent_id","product_id","mailbox_id","agent_group_id","type","compact"],components:{BarChartBase:UNe},data:()=>({fetching:!1,stats:{},chartData:!1,maxCumulativeValue:0,chartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!0,color:"#E1E4EA"},border:{display:!1,dash:[4,4]},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}}}),mounted(){this.fetchReport()},watch:{date_range:{handler(){this.date_range&&2===this.date_range.length&&this.fetchReport()},deep:!0}},methods:{async fetchReport(){this.fetching=!0;const e={date_range:this.date_range,agent_id:this.agent_id,product_id:this.product_id,mailbox_id:this.mailbox_id,agent_group_id:this.agent_group_id,type:this.type};await this.$get(this.url+"/tickets-resolve-growth",e).then(e=>{this.setupChartItems(e.stats)})},setupChartItems(e){const t={labels:[],datasets:[]},i=[];yX(e,(e,a)=>{t.labels.push(a),i.push(parseInt(e))});const a=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";t.datasets.push({label:this.$t("Ticket Resolve Stats"),backgroundColor:a,data:i}),this.chartData=t}}},WNe={style:{width:"100%",height:"400px"}};const jNe=lH(GNe,[["render",function(e,t,i,a,n,s){const o=Jl("bar-chart-base");return zd(),qd("div",WNe,[n.chartData?(zd(),Kd(o,{key:0,chartData:n.chartData,chartOptions:n.chartOptions},null,8,["chartData","chartOptions"])):ru("",!0)])}]]),qNe={name:"MyPerformanceReport",components:{IconPack:dY},props:{reports:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}},data:()=>({}),computed:{iconColor:()=>getComputedStyle(document.documentElement).getPropertyValue("--fs-stat-icon-color").trim()||"#525866",stats(){var e,t,i,a,n,s;if(!this.reports||0===this.reports.length)return null;const o=this.reports[0];return o&&o.active_stat?{interactions:(null==(e=o.stats)?void 0:e.interactions)||0,waiting_tickets:o.active_stat.waiting_tickets||0,average_waiting:o.active_stat.average_waiting||0,max_waiting:o.active_stat.max_waiting||0,likes:(null==(t=o.stats)?void 0:t.likes)||0,dislikes:(null==(i=o.stats)?void 0:i.dislikes)||0}:{interactions:(null==(a=null==o?void 0:o.stats)?void 0:a.interactions)||0,waiting_tickets:0,average_waiting:0,max_waiting:0,likes:(null==(n=null==o?void 0:o.stats)?void 0:n.likes)||0,dislikes:(null==(s=null==o?void 0:o.stats)?void 0:s.dislikes)||0}}}},KNe={key:0,class:"fs_personal_performance_box"},XNe={class:"fs_personal_performance_header"},ZNe={class:"fs_personal_performance_title"},QNe={class:"fs_personal_performance_body"},JNe={class:"fs_personal_performance_list"},eLe={class:"fs_personal_performance_item"},tLe={class:"fs_personal_performance_icon_label"},iLe={class:"fs_personal_performance_label"},aLe={class:"fs_personal_performance_value"},nLe={class:"fs_personal_performance_item"},sLe={class:"fs_personal_performance_icon_label"},oLe={class:"fs_personal_performance_label"},rLe={class:"fs_personal_performance_value"},lLe={class:"fs_personal_performance_item"},cLe={class:"fs_personal_performance_icon_label"},dLe={class:"fs_personal_performance_label"},uLe={class:"fs_personal_performance_value"},pLe={class:"fs_personal_performance_item"},hLe={class:"fs_personal_performance_icon_label"},fLe={class:"fs_personal_performance_label"},gLe={class:"fs_personal_performance_value"},mLe={key:0,class:"fs_personal_performance_item"},_Le={class:"fs_personal_performance_icon_label"},vLe={class:"fs_personal_performance_label"},bLe={class:"fs_personal_performance_value"},yLe={key:1,class:"fs_personal_performance_item"},xLe={class:"fs_personal_performance_icon_label"},SLe={class:"fs_personal_performance_label"},wLe={class:"fs_personal_performance_value"},CLe={key:1,class:"fs_box_body fs_skeleton_loader"};const ELe=e=>{if(!e||2!==e.length)return"";if(!e[0]||!e[1])return"";const t=Pk(e[0]),i=Pk(e[1]);return t.isValid()&&i.isValid()?t.format("MMM")===i.format("MMM")&&t.format("YYYY")===i.format("YYYY")?`${t.format("MMM DD")} - ${i.format("DD YYYY")}`:`${t.format("MMM DD")} - ${i.format("MMM DD YYYY")}`:""},kLe=e=>e?Pk(e).format("YYYY-MM-DD"):"",TLe=e=>({from:e&&e.length>0?kLe(e[0]):"",to:e&&e.length>1?kLe(e[1]):""}),ALe=(e,t={})=>{const{exportOptions:i=[]}=t;return{selectedOptions:e?Object.keys(i):[],isIndeterminate:!1}},RLe=(e,t={})=>{const{exportOptions:i=[]}=t,a=Object.keys(i).length;return e.length===a?{checkAll:!0,isIndeterminate:!1}:0===e.length?{checkAll:!1,isIndeterminate:!1}:{checkAll:!1,isIndeterminate:!0}},ILe=()=>{const e=Pk().format("YYYY-MM-DD");return[e,e]},DLe=e=>e.getTime()>Date.now(),OLe=(e,t)=>Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,i)=>e===t[i]):e===t,MLe=(e,t)=>null==e||""===e?void 0===t?e:t:isNaN(e)?e:Number(e).toLocaleString(),NLe={name:"AgentReports",components:{MyPerformanceReport:lH(qNe,[["render",function(e,t,i,a,n,s){var o,r,l,c,d,u;const p=Jl("IconPack"),h=AL;return i.loading?(zd(),qd("div",CLe,[iu(h,{rows:5,animated:""})])):(zd(),qd("div",KNe,[tu("div",XNe,[tu("div",ZNe,me(e.$t("My Performance")),1)]),tu("div",QNe,[tu("div",JNe,[tu("div",eLe,[tu("div",tLe,[iu(p,{"icon-key":"interactions",width:20,height:20,fill:s.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),tu("span",iLe,me(e.$t("Interactions")),1)]),tu("span",aLe,me((null==(o=s.stats)?void 0:o.interactions)||0),1)]),tu("div",nLe,[tu("div",sLe,[iu(p,{"icon-key":"waiting_tickets",width:15,height:15,fill:s.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),tu("span",oLe,me(e.$t("Waiting Tickets")),1)]),tu("span",rLe,me((null==(r=s.stats)?void 0:r.waiting_tickets)||0),1)]),tu("div",lLe,[tu("div",cLe,[iu(p,{"icon-key":"average_waiting",width:12,height:12,fill:s.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),tu("span",dLe,me(e.$t("Average Waiting")),1)]),tu("span",uLe,me((null==(l=s.stats)?void 0:l.average_waiting)||0),1)]),tu("div",pLe,[tu("div",hLe,[iu(p,{"icon-key":"max_waiting",width:13,height:13,fill:s.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),tu("span",fLe,me(e.$t("Max Waiting")),1)]),tu("span",gLe,me((null==(c=s.stats)?void 0:c.max_waiting)||0),1)]),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(zd(),qd("div",mLe,[tu("div",_Le,[iu(p,{"icon-key":"like",width:20,height:20,fill:s.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),tu("span",vLe,me(e.$t("Liked")),1)]),tu("span",bLe,me((null==(d=s.stats)?void 0:d.likes)||0),1)])):ru("",!0),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(zd(),qd("div",yLe,[tu("div",xLe,[iu(p,{"icon-key":"dislike",width:20,height:20,fill:s.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),tu("span",SLe,me(e.$t("Disliked")),1)]),tu("span",wLe,me((null==(u=s.stats)?void 0:u.dislikes)||0),1)])):ru("",!0)])])]))}],["__scopeId","data-v-f76f62f2"]])},props:{url:String,show_settings:Boolean,show_export_btn:Boolean,is_personal:Boolean,date_range:{type:Array,default:()=>[]},open_setting:Boolean,open_export:Boolean,agent_ids:{type:Array,default:()=>[]}},data(){return{imageErrors:{},reports:[],loading:!1,sorts:{prop:"responses",order:"descending"},sort_column:"response",sort_type:"descending",include_or_exclude_agents:[],include_or_exclude:"include",open_export_options:!1,repost_export_options:this.appVars.repost_export_options,selected_options:[],checkAll:!1,isIndeterminate:!1}},computed:{sortedAgents(){let e=[];return yX(this.appVars.support_agents,t=>{e.push({key:parseInt(t.id),label:t.full_name})}),e},sortedReports(){let e=this.reports;const t=this.$getData("agents_summary_setting");if("my-reports/my-summary"!=this.url&&t&&!this.agent_ids.length){let i=[];yX(e,e=>{t.agents.includes(e.id)&&i.push(e)}),e=i}if(this.agent_ids.length){const t=this.agent_ids.map(Number);e=e.filter(e=>t.includes(Number(e.id)))}return"ascending"==this.sort_type?e.sort((e,t)=>parseInt(e.stats[this.sort_column])>parseInt(t.stats[this.sort_column])?1:-1):e.sort((e,t)=>parseInt(e.stats[this.sort_column])<parseInt(t.stats[this.sort_column])?1:-1)},totals(){let e={responses:0,interactions:0,opens:0,closed:0};return this.has_pro&&"yes"===this.appVars.agent_feedback_rating&&(e={...e,likes:0,dislikes:0}),yX(this.sortedReports,t=>{e.responses+=parseInt(t.stats.responses),e.interactions+=parseInt(t.stats.interactions),e.opens+=parseInt(t.stats.opens),e.closed+=parseInt(t.stats.closed),this.has_pro&&"yes"===this.appVars.agent_feedback_rating&&(e.likes+=parseInt(t.stats.likes),e.dislikes+=parseInt(t.stats.dislikes))}),e},showOrHideSummaries(){return"my-reports/my-summary"!=this.url&&!this.is_personal}},watch:{date_range:{handler(e){e&&e.length>0&&this.getReport()},deep:!0},open_export:{handler(e){e&&(this.open_export_options=!0)},immediate:!1}},methods:{handleCheckAllChange(){const e=ALe(this.checkAll,{exportOptions:this.repost_export_options});this.selected_options=e.selectedOptions,this.isIndeterminate=e.isIndeterminate},handleColumnChanges(){const e=RLe(this.selected_options,{exportOptions:this.repost_export_options});this.checkAll=e.checkAll,this.isIndeterminate=e.isIndeterminate},async getReport(){this.loading=!0;const e=TLe(this.date_range);await this.$get(this.url,e).then(e=>{this.reports=e.summary}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},getInitials(e){if(!e)return"?";return(((e.first_name||"")[0]||"")+((e.last_name||"")[0]||"")).toUpperCase()||"?"},fetchSummarySettings(){const e=this.$getData("agents_summary_setting");e&&(this.include_or_exclude_agents=e.agents)},closeSetting(){this.$emit("update:open_setting",!1)},closeExportModal(){this.open_export_options=!1,this.$emit("update:open_export",!1)},syncSummary(){this.loading=!0,this.$saveData("agents_summary_setting",{agents:this.include_or_exclude_agents}),this.$emit("update:open_setting",!1),this.getReport()},handleSorting(e){this.sort_column=e.prop,this.sort_type=e.order},getSummaries(e){const{columns:t}=e,i=[];return t.forEach((e,t)=>{if(0===t)return void(i[t]=this.$t("Total Summaries"));const a=this.totals[e.property];i[t]=void 0!==a?a:""}),i},exportReport(){const e=TLe(this.date_range);let t=e.from,i=e.to,a=this.$getData("agents_summary_setting"),n=[];if(a?n=a.agents.toString():(yX(this.appVars.support_agents,e=>{n.push({key:parseInt(e.id),label:e.full_name})}),n=n.toString()),""===n)return this.$handleError(this.$t("No agent found, Please select or make sure you have agents to export")),!1;location.href=window.ajaxurl+"?"+jQuery.param({action:"fs_export_agent_report",_wpnonce:fluentSupportAdmin.nonce,columns:this.selected_options,from_date:t,to_date:i,agents:n,format:"csv"}),this.closeExportModal()}},mounted(){this.getReport(),this.fetchSummarySettings()}},LLe={key:1,class:"fs_agent_report_summary_wrapper"},PLe={class:"fs_report_table_container"},FLe={class:"fs_table_header"},BLe={class:"fs_box_actions"},$Le={class:"fs_table_title"},VLe={class:"fs_table_wrapper"},ULe={class:"fs_customer_name_cell"},HLe={class:"fs_customer_avatar"},zLe=["src","alt","onError"],YLe={key:1,class:"fs_avatar_initials"},GLe={class:"fs_customer_info"},WLe={class:"fs_customer_email"},jLe={key:0,style:{margin:"0",padding:"0","list-style":"none"}},qLe={class:"fs_agent_summary_dialog_header"},KLe={class:"fs_agent_summary_title"},XLe={class:"fs_dialog_description_wrapper"},ZLe={class:"fs_summary_settings"},QLe={class:"fs_transfer_wrapper fframe_body"},JLe={class:"fs_dialog_footer"},ePe={class:"fs_agent_summary_dialog_header"},tPe={class:"fs_agent_summary_title"},iPe={class:"fs_dialog_description_wrapper"},aPe={class:"fs_summary_settings fframe_body"},nPe={class:"fs_dialog_footer"},sPe={key:2,class:"fs_box_body fs_skeleton_loader"};const oPe=lH(NLe,[["render",function(e,t,i,a,n,s){const o=Jl("MyPerformanceReport"),r=ZP,l=XP,c=FF,d=Sk,u=dM,p=AR,h=RR,f=AL,g=WB;return zd(),qd("div",{class:se(["fs_agent_reports",{fs_personal_reports:i.is_personal}])},[i.is_personal?(zd(),Kd(o,{key:0,reports:n.reports,loading:n.loading},null,8,["reports","loading"])):ru("",!0),i.is_personal||n.loading?ru("",!0):(zd(),qd("div",LLe,[tu("div",PLe,[tu("div",FLe,[tu("div",BLe,[tu("span",$Le,me(e.$t("Agents Report Summary")),1)])]),tu("div",VLe,[br((zd(),Kd(l,{class:"fs_agent_reports_table",data:s.sortedReports,"max-height":"600","summary-method":s.getSummaries,"show-summary":s.showOrHideSummaries,onSortChange:s.handleSorting,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:vr(()=>[iu(r,{fixed:"",width:"260",label:e.$t("Agent")},{default:vr(e=>[tu("div",ULe,[tu("div",HLe,[e.row.photo&&!n.imageErrors[e.row.id]?(zd(),qd("img",{key:0,src:e.row.photo,alt:e.row.full_name,onError:t=>n.imageErrors[e.row.id]=!0,class:"fs_avatar_img"},null,40,zLe)):(zd(),qd("span",YLe,me(s.getInitials(e.row)),1))]),tu("div",GLe,[su(me(e.row.full_name?e.row.full_name:"N/A")+" ",1),tu("div",WLe,me(e.row.email),1)])])]),_:1},8,["label"]),iu(r,{width:"145",sortable:"custom",prop:"responses",label:e.$t("Responses"),align:"center"},{default:vr(e=>{var t;return[su(me(null==(t=e.row.stats)?void 0:t.responses),1)]}),_:1},8,["label"]),iu(r,{width:"150",sortable:"custom",prop:"interactions",label:e.$t("Interactions"),align:"center"},{default:vr(e=>{var t;return[su(me(null==(t=e.row.stats)?void 0:t.interactions),1)]}),_:1},8,["label"]),iu(r,{width:"160",sortable:"custom",prop:"opens",label:e.$t("Open Tickets"),align:"center"},{default:vr(e=>{var t;return[su(me(null==(t=e.row.stats)?void 0:t.opens),1)]}),_:1},8,["label"]),iu(r,{width:"120",sortable:"custom",prop:"closed",label:e.$t("Closed"),align:"center"},{default:vr(e=>{var t;return[su(me(null==(t=e.row.stats)?void 0:t.closed),1)]}),_:1},8,["label"]),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(zd(),Kd(r,{key:0,width:"105",sortable:"custom",prop:"likes",label:e.$t("Likes"),align:"center"},{default:vr(e=>{var t;return[su(me(null==(t=e.row.stats)?void 0:t.likes),1)]}),_:1},8,["label"])):ru("",!0),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(zd(),Kd(r,{key:1,width:"125",sortable:"custom",prop:"dislikes",label:e.$t("Dislikes"),align:"center"},{default:vr(e=>{var t;return[su(me(null==(t=e.row.stats)?void 0:t.dislikes),1)]}),_:1},8,["label"])):ru("",!0),iu(r,{width:"220",label:e.$t("Current Overall")},{default:vr(t=>[t.row.active_stat?(zd(),qd("ul",jLe,[tu("li",null,me(e.$t("Waiting Tickets"))+": "+me(t.row.active_stat.waiting_tickets),1),tu("li",null,me(e.$t("Average Waiting"))+": "+me(t.row.active_stat.average_waiting),1),tu("li",null,me(e.$t("Max Waiting"))+": "+me(t.row.active_stat.max_waiting),1)])):ru("",!0)]),_:1},8,["label"])],void 0),_:1},8,["data","summary-method","show-summary","onSortChange"])),[[g,n.loading]])]),iu(u,{"append-to-body":!0,"model-value":i.open_setting,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:open_setting",t)),class:"fs_dialog fs_agent_summary_dialog",width:"670px",onClose:s.closeSetting},{header:vr(()=>[tu("div",qLe,[tu("p",KLe,me(e.$t("exclude_or_include_in_summary")),1),tu("p",XLe,me(e.$t("If you don't select any agents then all the agents report will be displayed here otherwise it will show only selected agents report.")),1)])]),footer:vr(()=>[tu("span",JLe,[iu(d,{class:"fs_outline_btn",onClick:s.closeSetting},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(d,{class:"fs_filled_btn",type:"primary",onClick:s.syncSummary},{default:vr(()=>[su(me(e.$t("Save")),1)],void 0),_:1},8,["onClick"])])]),default:vr(()=>[tu("div",ZLe,[tu("div",QLe,[iu(c,{modelValue:n.include_or_exclude_agents,"onUpdate:modelValue":t[0]||(t[0]=e=>n.include_or_exclude_agents=e),data:s.sortedAgents,titles:["Available Agents","Selected Agents"],filterable:"",class:"fs_agent_transfer"},null,8,["modelValue","data"])])])],void 0),_:1},8,["model-value","onClose"]),iu(u,{"append-to-body":!0,modelValue:n.open_export_options,"onUpdate:modelValue":t[4]||(t[4]=e=>n.open_export_options=e),class:"fs_dialog fs_export_options_dialog",width:"45%",onClose:s.closeExportModal},{header:vr(()=>[tu("div",ePe,[tu("p",tPe,me(e.$t("exclude_or_include_summary_column")),1),tu("p",iPe,me(e.$t("If you don't select any column, by default system will take all.")),1)])]),footer:vr(()=>[tu("span",nPe,[iu(d,{class:"fs_outline_btn",onClick:s.closeExportModal},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(d,{class:"fs_filled_btn",type:"primary",onClick:s.exportReport},{default:vr(()=>[su(me(e.$t("Export Agents Summary")),1)],void 0),_:1},8,["onClick"])])]),default:vr(()=>[tu("div",aPe,[iu(p,{modelValue:n.checkAll,"onUpdate:modelValue":t[2]||(t[2]=e=>n.checkAll=e),indeterminate:n.isIndeterminate,onChange:s.handleCheckAllChange},{default:vr(()=>[n.checkAll?(zd(),qd(Fd,{key:1},[su(me(e.$t("Uncheck all")),1)],64)):(zd(),qd(Fd,{key:0},[su(me(e.$t("Check all")),1)],64))],void 0),_:1},8,["modelValue","indeterminate","onChange"]),iu(h,{modelValue:n.selected_options,"onUpdate:modelValue":t[3]||(t[3]=e=>n.selected_options=e),class:"fs_summary_export_items",onChange:s.handleColumnChanges},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.repost_export_options,(e,t)=>(zd(),Kd(p,{key:t,"model-value":t,label:e},null,8,["model-value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1},8,["modelValue","onClose"])])])),n.loading?(zd(),qd("div",sPe,[iu(f,{rows:5,animated:""})])):ru("",!0)],2)}],["__scopeId","data-v-03bca25c"]]),rPe={class:"fs_stat_box"},lPe={class:"fs_stat_icon"},cPe={class:"fs_stat_content"},dPe={class:"fs_stat_label"},uPe={class:"fs_stat_value"};const pPe=lH({name:"StatBox",components:{IconPack:dY},props:{label:{type:String,required:!0},value:{type:[String,Number],default:0},icon:{type:String,required:!0},iconBg:{type:String,default:""},iconColor:{type:String,default:""}},computed:{computedIconBg(){if(this.iconBg)return this.iconBg;return getComputedStyle(document.documentElement).getPropertyValue("--fs-state-faded-lighter").trim()||"#f2f5f8"},computedIconColor(){if(this.iconColor)return this.iconColor;return getComputedStyle(document.documentElement).getPropertyValue("--fs-stat-icon-color").trim()||"#525866"}}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack");return zd(),qd("div",rPe,[tu("div",lPe,[iu(o,{"icon-key":i.icon,width:20,height:20,fill:s.computedIconColor},null,8,["icon-key","fill"])]),tu("div",cPe,[tu("p",dPe,me(i.label),1),tu("span",uPe,me(i.value),1)])])}]]),hPe=[{text:x9("Today"),value:()=>[Pk().startOf("day").toDate(),Pk().endOf("day").toDate()]},{text:x9("This Week"),value:()=>[Pk().startOf("week").toDate(),Pk().endOf("week").toDate()]},{text:x9("Last Week"),value:()=>[Pk().subtract(1,"week").startOf("week").toDate(),Pk().subtract(1,"week").endOf("week").toDate()]},{text:x9("Last Month"),value:()=>[Pk().subtract(1,"month").startOf("month").toDate(),Pk().subtract(1,"month").endOf("month").toDate()]},{text:x9("Last 3 Months"),value:()=>[Pk().subtract(3,"month").startOf("month").toDate(),Pk().endOf("day").toDate()]},{text:x9("Last 6 Months"),value:()=>[Pk().subtract(6,"month").startOf("month").toDate(),Pk().endOf("day").toDate()]},{text:x9("Last 1 Year"),value:()=>[Pk().subtract(1,"year").startOf("day").toDate(),Pk().endOf("day").toDate()]}],fPe=[{text:x9("Today"),value:()=>[Pk().startOf("day").toDate(),Pk().endOf("day").toDate()]},{text:x9("Yesterday"),value:()=>[Pk().subtract(1,"day").startOf("day").toDate(),Pk().subtract(1,"day").endOf("day").toDate()]},{text:x9("This Week"),value:()=>[Pk().startOf("week").toDate(),Pk().endOf("week").toDate()]},{text:x9("Last 7 Days"),value:()=>[Pk().subtract(6,"day").startOf("day").toDate(),Pk().endOf("day").toDate()]},{text:x9("Last 2 Weeks"),value:()=>[Pk().subtract(2,"week").startOf("week").toDate(),Pk().subtract(1,"week").endOf("week").toDate()]},{text:x9("This Month"),value:()=>[Pk().startOf("month").toDate(),Pk().endOf("month").toDate()]},{text:x9("Last Month"),value:()=>[Pk().subtract(1,"month").startOf("month").toDate(),Pk().subtract(1,"month").endOf("month").toDate()]}],gPe={class:"fs_personal_reports_header"},mPe={class:"fs_personal_reports_header_row"},_Pe={class:"fs_page_title"},vPe={class:"fs_personal_reports_header_row fs_personal_reports_toolbar"},bPe={class:"fs_toolbar_left"},yPe={class:"fs_date_button_group"},xPe={class:"fs_date_button_group_item fs_date_picker_wrapper"},SPe={class:"fs_date_display"},wPe={key:0,class:"fs_date_text"},CPe={key:1,class:"fs_date_placeholder"},EPe={class:"fs_stat_boxes_row"},kPe={class:"fs_personal_report"},TPe={class:"fs_box_wrapper"},APe={class:"fs_box"},RPe={class:"fs_box_header fs_personal_report_header"},IPe={class:"fs_personal_report_title"},DPe={class:"fs_status_tabs"},OPe={class:"fs_segmented_control"},MPe=["onClick"],NPe={class:"fs_box_body"};const LPe=lH({name:"PersonalReports",props:["url","date_range"],emits:["date-change"],components:{ResponseChart:YNe,ResolveChart:jNe,AgentReports:oPe,StatBox:pPe,ArrowDown:_x,Calendar:Sx,Filter:jx,Download:Gx,IconPack:dY},data(){return{loading:!1,stat_loading:!1,overall_reports:{},currently_showing:"resolve-chart",showing_charts:!0,localDateRange:this.date_range,chartMaps:{"resolve-chart":this.$t("Resolve Stats"),"response-chart":this.$t("Response Stats")},me:this.appVars.me,today_reports:{},shortcuts:hPe}},computed:{formattedDateRange(){return ELe(this.localDateRange)},mergedReports(){const e=[],t={tickets:"new_tickets",new_tickets:"new_tickets",closed:"closed_tickets",closed_tickets:"closed_tickets",responses:"responses",active:"active_agents",active_tickets:"active_tickets",open:"open_tickets",open_tickets:"open_tickets",pending:"new_tickets",replies:"reply",total_replies:"total_replies",resolved:"closed_tickets"};return Object.keys(this.overall_reports||{}).forEach(i=>{const a=this.overall_reports[i],n=i.toLowerCase();e.push({label:a.title||i,value:this.formatStatValue(a.count||0),icon:t[n]||t[n.replace("_","")]||t[n.split("_")[0]]||"new_tickets",iconBg:""})}),e}},watch:{date_range:{handler(e){this.localDateRange=e,this.fetchReports()},deep:!0}},methods:{formatStatValue:MLe,handleDateChange(){this.$emit("date-change",this.localDateRange),this.fetchReports()},async fetchReports(){this.loading=!0;const e={agent_id:this.me.id};this.localDateRange&&Array.isArray(this.localDateRange)&&2===this.localDateRange.length&&this.localDateRange[0]&&this.localDateRange[1]&&(e.date_range=this.localDateRange),await this.$get(this.url,e).then(e=>{this.overall_reports=e.overall_reports,this.today_reports=e.today_reports}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleComponentChange(e){this.currently_showing=e},filterReport(){const e=this.currently_showing;this.currently_showing={render:()=>{}},this.$nextTick(()=>{this.currently_showing=e})}},mounted(){this.fetchReports(),this.$setTitle(this.$t("Personal Reports"))}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=Jl("Calendar"),l=KS,c=jO,d=Jl("StatBox"),u=hI,p=Jl("agent-reports"),h=pI,f=WB;return zd(),qd(Fd,null,[tu("div",gPe,[tu("div",mPe,[tu("h3",_Pe,me(e.$t("Personal Reports")),1)]),tu("div",vPe,[tu("div",bPe,[tu("div",yPe,[tu("div",xPe,[tu("div",SPe,[iu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",wPe,me(s.formattedDateRange),1)):(zd(),qd("span",CPe,me(e.$t("Select date range")),1))]),iu(c,{modelValue:n.localDateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>n.localDateRange=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:n.shortcuts,onChange:s.handleDateChange,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker"},{"prefix-icon":vr(()=>[iu(l,null,{default:vr(()=>[iu(r)],void 0),_:1})]),_:1},8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])])])])]),br((zd(),qd("div",EPe,[(zd(!0),qd(Fd,null,sc(s.mergedReports,(e,t)=>(zd(),Kd(d,{key:t,label:e.label,value:e.value,icon:e.icon,"icon-bg":e.iconBg},null,8,["label","value","icon","icon-bg"]))),128))])),[[f,n.loading]]),tu("div",kPe,[br((zd(),qd("div",TPe,[iu(h,{gutter:30},{default:vr(()=>[iu(u,{sm:24,md:14,lg:16},{default:vr(()=>[tu("div",APe,[tu("div",RPe,[tu("h3",IPe,me(e.$t("My Statistics")),1),tu("div",DPe,[tu("div",OPe,[(zd(!0),qd(Fd,null,sc(n.chartMaps,(e,t)=>(zd(),qd("button",{key:t,onClick:e=>s.handleComponentChange(t),class:se(["fs_segment_button",{fs_segment_active:n.currently_showing===t}])},me(e),11,MPe))),128))])])]),tu("div",NPe,[n.showing_charts?(zd(),Kd(tc(n.currently_showing),{key:0,date_range:n.localDateRange,url:"my-reports",compact:!0},null,8,["date_range"])):ru("",!0)])])],void 0),_:1}),iu(u,{sm:24,md:10,lg:8},{default:vr(()=>[iu(p,{url:"my-reports/my-summary",is_personal:!0,date_range:n.localDateRange},null,8,["date_range"])],void 0),_:1})],void 0),_:1})])),[[f,n.loading]])])],64)}]]),PPe={ref:"chartCanvas"};const FPe=lH(sl({name:"LineChartBase",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!1,default:()=>({})},plugins:{type:Array,required:!1,default:()=>[]}},setup(e){const t=mo(null);let i=null,a=!1;const n=()=>{if(a||!t.value)return;const n=t.value.getContext("2d");if(n){if(i){try{i.destroy()}catch(NO){}i=null}try{i=new POe(n,{type:"line",data:e.chartData,options:{...e.chartOptions,animation:{duration:300},responsive:!0,maintainAspectRatio:!1},plugins:e.plugins})}catch(s){}}};return Rr(()=>e.chartData,()=>{a||(()=>{if(!a&&i)try{i.data=e.chartData,i.update("none")}catch(t){n()}})()},{deep:!0}),zl(()=>{ir(()=>{n()})}),Wl(()=>{if(a=!0,i){try{i.stop(),i.clear(),i.destroy()}catch(e){}i=null}}),{chartCanvas:t}}}),[["render",function(e,t,i,a,n,s){return zd(),qd("canvas",PPe,null,512)}]]),BPe={class:"fs_pill_dropdown_btn fs_live_pill_btn"},$Pe={class:"fs_live_snapshot_panel"},VPe={class:"fs_radio_label"},UPe={class:"fs_radio_label"},HPe={key:0,class:"fs_snapshot_history"},zPe={key:0,class:"fs_snapshot_status"},YPe={key:1,class:"fs_snapshot_status"},GPe={key:2,class:"fs_snapshot_status"},WPe={class:"fs_snapshot_group_label"},jPe=["onClick"],qPe={class:"fs_snapshot_time"};const KPe=lH({name:"LiveSnapshotSelector",props:{modelValue:{type:String,default:"live"},selectedSnapshot:{type:Object,default:null},reportType:{type:String,required:!0}},emits:["update:modelValue","update:selectedSnapshot","change"],components:{ArrowDown:_x,IconPack:dY},data:()=>({loading:!1,fetchError:!1,snapshots:[]}),computed:{triggerLabel(){return"snapshot"===this.modelValue?this.selectedSnapshot?`${Pk(this.selectedSnapshot.date).format("MMM D")}, ${this.selectedSnapshot.time}`:this.$t("Snapshot"):this.$t("Live")},snapshotGroups(){const e=[],t={};return this.snapshots.forEach(i=>{const a=Pk(i.snapshot_time),n=a.format("YYYY-MM-DD");if(!t[n]){const i=a.isSame(Pk(),"day")?this.$t("Today"):a.isSame(Pk().subtract(1,"day"),"day")?this.$t("Yesterday"):null,s=a.format("MMM DD, YYYY").toUpperCase();t[n]={label:i?`${i}, ${s}`:s,items:[]},e.push(t[n])}t[n].items.push({id:i.id,date:n,time:a.format("h:mm A")})}),e}},methods:{fetchSnapshots(){this.loading=!0,this.fetchError=!1,this.$get("advanced-reports/snapshots",{report_type:this.reportType}).then(e=>{this.snapshots=e.snapshots}).catch(e=>{this.snapshots=[],this.fetchError=!0,this.$handleError(e)}).always(()=>{this.loading=!1})},selectMode(e){this.$emit("update:modelValue",e),"live"===e?(this.$emit("update:selectedSnapshot",null),this.$emit("change",{mode:e,snapshot:null})):this.$emit("change",{mode:e,snapshot:this.selectedSnapshot})},isSelectedSnapshot(e){return this.selectedSnapshot&&this.selectedSnapshot.id===e.id},selectSnapshot(e){this.$emit("update:modelValue","snapshot"),this.$emit("update:selectedSnapshot",e),this.$emit("change",{mode:"snapshot",snapshot:e})}},mounted(){this.fetchSnapshots()}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=Jl("ArrowDown"),l=KS,c=aN;return zd(),Kd(c,{trigger:"click",placement:"bottom-start","popper-class":"fs_live_snapshot_popper",onCommand:()=>{}},{dropdown:vr(()=>[tu("div",$Pe,[tu("button",{class:se(["fs_radio_row",{"is-selected":"live"===i.modelValue}]),onClick:t[0]||(t[0]=e=>s.selectMode("live"))},[tu("span",{class:se(["fs_radio_dot",{"is-selected":"live"===i.modelValue}])},null,2),tu("span",VPe,me(e.$t("Live")),1)],2),tu("button",{class:se(["fs_radio_row",{"is-selected":"snapshot"===i.modelValue}]),onClick:t[1]||(t[1]=e=>s.selectMode("snapshot"))},[tu("span",{class:se(["fs_radio_dot",{"is-selected":"snapshot"===i.modelValue}])},null,2),tu("span",UPe,me(e.$t("Snapshot")),1)],2),"snapshot"===i.modelValue?(zd(),qd("div",HPe,[n.loading?(zd(),qd("p",zPe,me(e.$t("Loading snapshots…")),1)):n.fetchError?(zd(),qd("p",YPe,me(e.$t("Couldn't load snapshots.")),1)):s.snapshotGroups.length?(zd(!0),qd(Fd,{key:3},sc(s.snapshotGroups,(e,t)=>(zd(),qd("div",{class:"fs_snapshot_group",key:t},[tu("p",WPe,me(e.label),1),(zd(!0),qd(Fd,null,sc(e.items,(e,t)=>(zd(),qd("button",{class:se(["fs_snapshot_item",{"is-selected":s.isSelectedSnapshot(e)}]),key:t,onClick:t=>s.selectSnapshot(e)},[tu("span",{class:se(["fs_radio_dot fs_radio_dot--sm",{"is-selected":s.isSelectedSnapshot(e)}])},null,2),tu("span",qPe,me(e.time),1)],10,jPe))),128))]))),128)):(zd(),qd("p",GPe,me(e.$t("No snapshots yet.")),1))])):ru("",!0)])]),default:vr(()=>[tu("button",BPe,[iu(o,{"icon-key":"camera_line",width:20,height:20}),su(" "+me(s.triggerLabel)+" ",1),iu(l,{class:"fs_dropdown_arrow"},{default:vr(()=>[iu(r)],void 0),_:1})])],void 0),_:1})}]]),XPe={ticket:"All Tickets",agent_response:"Agent Response",customer_response:"Customer Response"},ZPe={id:"dashedYGrid",beforeDatasetsDraw(e){const{ctx:t,chartArea:i,scales:a}=e,n=a.y;if(!n||!i)return;const s=getComputedStyle(document.documentElement).getPropertyValue("--fs-stroke-soft").trim()||"#E1E4EA";t.save(),t.setLineDash([4,4]),t.strokeStyle=s,t.lineWidth=1,n.ticks.forEach(e=>{const a=n.getPixelForValue(e.value);t.beginPath(),t.moveTo(i.left,a),t.lineTo(i.right,a),t.stroke()}),t.restore()}},QPe={key:0,class:"fs_activity_page"},JPe={class:"fs_activity_header"},eFe={class:"fs_activity_header_row"},tFe={class:"fs_page_title"},iFe={class:"fs_activity_header_row fs_activity_toolbar"},aFe={class:"fs_toolbar_left"},nFe={class:"fs_date_button_group"},sFe={class:"fs_date_button_group_item fs_date_picker_wrapper"},oFe={class:"fs_date_display"},rFe={key:0,class:"fs_date_text"},lFe={key:1,class:"fs_date_placeholder"},cFe={class:"fs_activity_content"},dFe={class:"fs_overview_section"},uFe={class:"fs_section_header"},pFe={class:"fs_section_title"},hFe={class:"fs_section_header_actions"},fFe={class:"fs_pill_dropdown_btn"},gFe={class:"fs_section_body fs_wid_day_by_day"},mFe={key:0,class:"fs_time_widget"},_Fe={class:"fs_time_widget_header"},vFe={class:"fs_time_widget_body"},bFe={class:"fs_wid_sub_headers"},yFe={class:"fs_time_hour_value"},xFe={key:1,class:"fs_chart_error fs_heatmap_error"},SFe={class:"fs_wid_label_info"},wFe={class:"fs_wid_dir"},CFe={class:"fs_wid_dir"},EFe={class:"fs_overview_section",style:{"margin-top":"24px"}},kFe={class:"fs_section_header"},TFe={class:"fs_section_title"},AFe={class:"fs_chart_legend fs_chart_legend--centered"},RFe={class:"fs_legend_text"},IFe={class:"fs_section_body"},DFe={class:"fs_chart_container",style:{height:"320px"}},OFe={key:1,class:"fs_chart_error"};const MFe=lH({name:"FeedbackByTimeOfDay",props:["date_range"],emits:["date-change"],components:{NarrowPromo:Fne,LineChartBase:FPe,LiveSnapshotSelector:KPe,IconPack:dY,ArrowDown:_x},data(){return{appReady:!1,trendFetchRequestId:0,trendLoading:!1,trendFetchError:!1,heatmapFetchRequestId:0,heatmapFetchError:!1,reportType:"ticket",dateRange:this.date_range,shortcuts:hPe,agentId:"",customerId:"",dataItems:{},days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],dayLabels:{Mon:this.$t("Mon"),Tue:this.$t("Tue"),Wed:this.$t("Wed"),Thu:this.$t("Thu"),Fri:this.$t("Fri"),Sat:this.$t("Sat"),Sun:this.$t("Sun")},filledSlots:["0:00","1:00","2:00","3:00","4:00","5:00","6:00","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"],tipIndexes:["1am","4am","7am","10am","1pm","4pm","7pm","10pm"],trendLiveMode:"live",trendSelectedSnapshot:null,trendPreSnapshotDateRange:null,trendDateRange:this.date_range,activitySnapshotGrids:null,granularity:"hour",chartLabels:[],ticketCreation:[],agentReplies:[],responseActivityChartData:null,responseActivityChartOptions:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{y:{beginAtZero:!0,grid:{drawOnChartArea:!1}},x:{grid:{drawOnChartArea:!1}}},plugins:{legend:{display:!1}},layout:{padding:{left:8,right:16,top:12,bottom:8}}}}},computed:{formattedDateRange(){return ELe(this.dateRange)},maxValue(){let e=0;for(let t in this.dataItems)for(let i in this.dataItems[t])this.dataItems[t][i]>e&&(e=this.dataItems[t][i]);return e<5?5:e},reportTypeLabel(){return this.$t(XPe[this.reportType])},trendChartTitle(){return"day"===this.granularity?this.$t("Ticket Creation vs. Agent Replies, by Day"):this.$t("Ticket Creation vs. Agent Replies, by Hour")},trendLegendItems(){const e=getComputedStyle(document.documentElement);return[{key:"ticket_creation",label:this.$t("Ticket Creation"),color:e.getPropertyValue("--fs-chart-secondary").trim()||"#47c2ff"},{key:"agent_replies",label:this.$t("Agent Replies"),color:e.getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e"}]},chartPlugins:()=>[ZPe],trendIsSnapshotMode(){return"snapshot"===this.trendLiveMode&&!!this.trendSelectedSnapshot}},watch:{date_range:{handler(e){this.isSameDateRange(e,this.dateRange)||(this.dateRange=e,this.trendIsSnapshotMode?this.trendPreSnapshotDateRange=e:(this.fetchStats(),this.trendDateRange=e,this.fetchResponseActivity()))},deep:!0}},methods:{getLevel(e){if(!(e=parseInt(e)))return"level_0";const t=Math.round(e/this.maxValue*100);return t>80?"level_5":t>60?"level_4":t>40?"level_3":t>20?"level_2":"level_1"},getTooltipContent(e,t){return"ticket"===this.reportType?this.dataItems[e][t]+" tickets created":this.dataItems[e][t]+" response created"},handleReportTypeChange(e){this.reportType=e,this.trendIsSnapshotMode?this.applyActivitySnapshotGrid():this.fetchStats()},handleDateChange(){this.$emit("date-change",this.dateRange),this.trendIsSnapshotMode?this.trendPreSnapshotDateRange=this.dateRange:(this.fetchStats(),this.trendDateRange=this.dateRange,this.fetchResponseActivity())},isSameDateRange:OLe,handleTrendLiveSnapshotChange({mode:e,snapshot:t}){this.trendLiveMode=e,this.trendSelectedSnapshot=t,"snapshot"===e&&t?(this.trendPreSnapshotDateRange||(this.trendPreSnapshotDateRange=this.dateRange),this.heatmapFetchRequestId++,this.fetchTrendSnapshotData(t.id)):(this.trendPreSnapshotDateRange&&(this.trendDateRange=this.trendPreSnapshotDateRange,this.dateRange=this.trendPreSnapshotDateRange,this.trendPreSnapshotDateRange=null),this.activitySnapshotGrids=null,this.fetchResponseActivity(),this.fetchStats())},fetchTrendSnapshotData(e){this.trendLoading=!0,this.trendFetchError=!1,this.appReady=!1,this.heatmapFetchError=!1;const t=++this.trendFetchRequestId;this.$get("advanced-reports/snapshots/"+e).then(e=>{t===this.trendFetchRequestId&&this.applyTrendSnapshotResponse(e.data)}).fail(e=>{t===this.trendFetchRequestId&&(this.responseActivityChartData=null,this.trendFetchError=!0,this.heatmapFetchError=!0,this.appReady=!0)}).always(()=>{t===this.trendFetchRequestId&&(this.trendLoading=!1)})},applyTrendSnapshotResponse(e){const t=e.chart_range||e.snapshot_range;if(t){const e=[t.from,t.to];this.trendDateRange=e,this.dateRange=e}this.granularity=e.granularity,this.chartLabels="day"===e.granularity?e.labels.map(e=>this.$dayjs(e).format("MMM D")):e.labels,this.ticketCreation=e.ticket_creation,this.agentReplies=e.agent_replies,this.setupResponseActivityChart(),e.activity_grid?(this.activitySnapshotGrids=e.activity_grid,this.applyActivitySnapshotGrid()):(this.activitySnapshotGrids=null,this.dataItems=this.emptyDayTimeGrid(),this.appReady=!0)},emptyDayTimeGrid(){const e={};this.filledSlots.forEach(t=>{e[t]=0});const t={};return this.days.forEach(i=>{t[i]={...e}}),t},applyActivitySnapshotGrid(){this.activitySnapshotGrids&&(this.dataItems=this.activitySnapshotGrids[this.reportType]||this.activitySnapshotGrids.ticket||{},this.appReady=!0)},disabledDate:DLe,fetchStats(){this.appReady=!1,this.heatmapFetchError=!1;const e=++this.heatmapFetchRequestId;this.$get("reports/day-time-stats",{report_type:this.reportType,agent_id:this.agentId,date_range:this.dateRange}).then(t=>{e===this.heatmapFetchRequestId&&(this.dataItems=t.stats)}).fail(e=>{this.heatmapFetchRequestId}).always(()=>{e===this.heatmapFetchRequestId&&(this.appReady=!0)})},withOpacity(e,t){const i=e.replace("#",""),a=parseInt(3===i.length?i.split("").map(e=>e+e).join(""):i,16);return`rgba(${a>>16&255}, ${a>>8&255}, ${255&a}, ${t})`},setupResponseActivityChart(){const[e,t]=this.trendLegendItems.map(e=>e.color);this.responseActivityChartData={labels:this.chartLabels,datasets:[{label:this.$t("Ticket Creation"),data:this.ticketCreation,borderColor:e,backgroundColor:this.withOpacity(e,.12),fill:!0,tension:.4,borderWidth:2.5,pointRadius:0,pointHoverRadius:4,pointHoverBackgroundColor:e},{label:this.$t("Agent Replies"),data:this.agentReplies,borderColor:t,backgroundColor:this.withOpacity(t,.12),fill:!0,tension:.4,borderWidth:2.5,pointRadius:0,pointHoverRadius:4,pointHoverBackgroundColor:t}]}},fetchResponseActivity(){if(!this.trendDateRange||2!==this.trendDateRange.length)return this.trendFetchRequestId++,this.responseActivityChartData=null,this.trendLoading=!1,void(this.trendFetchError=!1);this.trendLoading=!0,this.trendFetchError=!1;const e=++this.trendFetchRequestId,[t,i]=this.trendDateRange;this.$get("advanced-reports/response-activity",{from:t,to:i}).then(t=>{e===this.trendFetchRequestId&&(this.granularity=t.granularity,this.chartLabels="day"===t.granularity?t.labels.map(e=>this.$dayjs(e).format("MMM D")):t.labels,this.ticketCreation=t.ticket_creation,this.agentReplies=t.agent_replies,this.setupResponseActivityChart())}).fail(t=>{e===this.trendFetchRequestId&&(this.responseActivityChartData=null,this.trendFetchError=!0)}).always(()=>{e===this.trendFetchRequestId&&(this.trendLoading=!1)})}},mounted(){this.fetchStats(),this.fetchResponseActivity()}},[["render",function(e,t,i,a,n,s){const o=Jl("LiveSnapshotSelector"),r=Jl("IconPack"),l=jO,c=wA,d=SA,u=Jl("ArrowDown"),p=KS,h=nN,f=sN,g=aN,m=ZC,_=AL,v=Jl("line-chart-base"),b=Jl("NarrowPromo"),y=WB;return e.has_pro?(zd(),qd("div",QPe,[tu("div",JPe,[tu("div",eFe,[tu("h3",tFe,me(e.$t("Activity")),1),iu(o,{modelValue:n.trendLiveMode,"onUpdate:modelValue":t[0]||(t[0]=e=>n.trendLiveMode=e),"selected-snapshot":n.trendSelectedSnapshot,"onUpdate:selectedSnapshot":t[1]||(t[1]=e=>n.trendSelectedSnapshot=e),"report-type":"response_activity",onChange:s.handleTrendLiveSnapshotChange},null,8,["modelValue","selected-snapshot","onChange"])]),tu("div",iFe,[tu("div",aFe,[tu("div",nFe,[tu("div",sFe,[tu("div",oFe,[iu(r,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",rFe,me(s.formattedDateRange),1)):(zd(),qd("span",lFe,me(e.$t("Select date range")),1))]),iu(l,{modelValue:n.dateRange,"onUpdate:modelValue":t[2]||(t[2]=e=>n.dateRange=e),type:"daterange",editable:!1,disabled:s.trendIsSnapshotMode,"range-separator":"To","disabled-date":s.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,onChange:s.handleDateChange,class:"fs_date_range_picker"},null,8,["modelValue","disabled","disabled-date","start-placeholder","end-placeholder","shortcuts","onChange"])])])])])]),tu("div",cFe,[tu("div",dFe,[tu("div",uFe,[tu("h4",pFe,me(e.$t("Activity Trends by Time of Day")),1),tu("div",hFe,["agent_response"===n.reportType?(zd(),Kd(d,{key:0,clearable:"",filterable:"",disabled:s.trendIsSnapshotMode,placeholder:e.$t("All Agent"),onChange:s.fetchStats,modelValue:n.agentId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.agentId=e),class:"fs_activity_agent_filter fs_staff_filter fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.appVars.support_agents,e=>(zd(),Kd(c,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["disabled","placeholder","onChange","modelValue"])):ru("",!0),iu(g,{trigger:"click",onCommand:s.handleReportTypeChange},{dropdown:vr(()=>[iu(f,{class:"fs_global_dropdown"},{default:vr(()=>[iu(h,{command:"ticket"},{default:vr(()=>[su(me(e.$t("All Tickets")),1)],void 0),_:1}),iu(h,{command:"agent_response"},{default:vr(()=>[su(me(e.$t("Agent Response")),1)],void 0),_:1}),iu(h,{command:"customer_response"},{default:vr(()=>[su(me(e.$t("Customer Response")),1)],void 0),_:1})],void 0),_:1})]),default:vr(()=>[tu("button",fFe,[su(me(s.reportTypeLabel)+" ",1),iu(p,{class:"fs_dropdown_arrow"},{default:vr(()=>[iu(u)],void 0),_:1})])],void 0),_:1},8,["onCommand"])])]),tu("div",gFe,[n.appReady&&!n.heatmapFetchError?(zd(),qd("div",mFe,[tu("div",_Fe,[t[4]||(t[4]=tu("div",{class:"fs_time_day"},null,-1)),(zd(!0),qd(Fd,null,sc(n.days,e=>(zd(),qd("div",{key:e,class:"fs_time_day"},me(n.dayLabels[e]),1))),128))]),tu("div",vFe,[tu("div",bFe,[(zd(!0),qd(Fd,null,sc(n.tipIndexes,e=>(zd(),qd("div",{key:e,class:"fs_wid_sub_header"},me(e),1))),128))]),(zd(!0),qd(Fd,null,sc(n.days,e=>(zd(),qd("div",{key:e,class:"fs_time_day"},[(zd(!0),qd(Fd,null,sc(n.filledSlots,t=>(zd(),qd("div",{key:t,class:se(["fs_wid_"+s.getLevel(n.dataItems[e][t]),"fs_time_hour"])},[n.dataItems[e][t]?(zd(),Kd(m,{key:0,content:s.getTooltipContent(e,t),placement:"top"},{default:vr(()=>[tu("div",yFe,[tu("span",null,me(n.dataItems[e][t]),1)])],void 0),_:2},1032,["content"])):ru("",!0)],2))),128))]))),128))])])):n.heatmapFetchError?(zd(),qd("div",xFe,[tu("p",null,me(e.$t("Couldn't load this data.")),1)])):(zd(),Kd(_,{key:2,rows:5})),tu("div",SFe,[tu("span",wFe,me(e.$t("Less")),1),t[5]||(t[5]=ou('<span class="fs_wid_level fs_wid_level_0"></span><span class="fs_wid_level fs_wid_level_1"></span><span class="fs_wid_level fs_wid_level_2"></span><span class="fs_wid_level fs_wid_level_3"></span><span class="fs_wid_level fs_wid_level_4"></span><span class="fs_wid_level fs_wid_level_5"></span>',6)),tu("span",CFe,me(e.$t("More")),1)])])]),tu("div",EFe,[tu("div",kFe,[tu("h4",TFe,me(s.trendChartTitle),1)]),tu("div",AFe,[(zd(!0),qd(Fd,null,sc(s.trendLegendItems,e=>(zd(),qd("span",{class:"fs_legend_item",key:e.key},[tu("span",{class:"fs_legend_dot",style:ee({background:e.color})},null,4),tu("span",RFe,me(e.label),1)]))),128))]),tu("div",IFe,[br((zd(),qd("div",DFe,[n.responseActivityChartData?(zd(),Kd(v,{key:0,chartData:n.responseActivityChartData,chartOptions:n.responseActivityChartOptions,plugins:s.chartPlugins},null,8,["chartData","chartOptions","plugins"])):n.trendFetchError?(zd(),qd("div",OFe,[tu("p",null,me(e.$t("Couldn't load this data.")),1)])):ru("",!0)])),[[y,n.trendLoading]])])])])])):(zd(),Kd(b,{key:1,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_activity_by_time_reports"},null,8,["heading","description","button-text"]))}]]),NFe={calculateEntityTotalMinutes:(e,t,i)=>{const a=e.reduce((e,a)=>{var n;return e+((null==(n=null==t?void 0:t[a])?void 0:n[i])||[]).reduce((e,t)=>e+t.billable_minutes,0)},0);return NFe.formatMinutes(a)},calculateTimeSheetTotal:(e,t,i)=>{var a;const n=((null==(a=null==e?void 0:e[t])?void 0:a[i])??[]).reduce((e,t)=>e+t.billable_minutes,0);return NFe.formatMinutes(n)},formatMinutes:e=>{let t=parseInt(e);if(!t)return"--";const i=Math.floor(t/60);return t%=60,i?t?`${i}h ${t}m`:`${i}h`:`${t}m`},exportReport:e=>{const{selectedItems:t,dateRange:i,action:a,itemKey:n}=e,s=Array.isArray(i)&&2===i.length?i.join(","):i||"";let o;o=Array.isArray(t)?t.length>0?t.join(","):"mailbox_id"===n?null:"null":null==t||""===t?"mailbox_id"===n?null:"null":String(t);const r=new URLSearchParams({action:a,_wpnonce:window.fluentSupportAdmin.nonce});r.append("dateRange",s),null!==o&&r.append(n,o),location.href=`${window.fluentSupportAdmin.ajaxurl}?${r.toString()}`}},LFe={style:{cursor:"pointer"}},PFe={class:"fs_detail_log"},FFe={class:"fs_time_sheet_person"},BFe=["href"];const $Fe={name:"ByTickets",components:{Modal:vne,TicketDateSheetPop:lH({name:"TicketDateSheetPop",props:["ticket_id","date","timeSheets"],data:()=>({timeItems:[]}),computed:{timeSheetTotal(){return NFe.calculateTimeSheetTotal(this.timeSheets,this.date,this.ticket_id)}},mounted(){this.initItems()},methods:{initItems(){var e,t;const i=(null==(t=null==(e=this.timeSheets)?void 0:e[this.date])?void 0:t[this.ticket_id])??[];yX(i,e=>{this.timeItems.push(e)})},formatMinutes:e=>NFe.formatMinutes(e)}},[["render",function(e,t,i,a,n,s){const o=ZP,r=DE,l=XP,c=P$;return zd(),Kd(c,{ref:"estimated_time_pop","popper-class":"fs_timer_log_popover",placement:"left",width:400,trigger:"click"},{reference:vr(()=>[tu("div",LFe,me(s.timeSheetTotal),1)]),default:vr(()=>[iu(l,{stripe:!0,border:!0,data:n.timeItems,style:{width:"100%"}},{default:vr(()=>[iu(o,{type:"expand",width:"30"},{default:vr(({row:t})=>[tu("div",PFe,[tu("p",null,[tu("b",null,me(e.$t("Logged at:")),1),su(" "+me(e.smartDate(t.created_at,!0)),1)]),tu("p",null,[tu("b",null,me(e.$t("Work Description:")),1),su(" "+me(t.message),1)])])]),_:1}),iu(o,{prop:"user",label:e.$t("Agent")},{default:vr(({row:e})=>{var t,i,a;return[tu("div",FFe,[iu(r,{src:null==(t=e.agent)?void 0:t.photo,size:"small"},null,8,["src"]),tu("a",{href:`/wp-admin/user-edit.php?user_id=${null==(i=e.agent)?void 0:i.user_id}`,target:"_blank",class:"fs_time_sheet_agent_link"},me(null==(a=e.agent)?void 0:a.full_name),9,BFe)])]}),_:1},8,["label"]),iu(o,{prop:"billable_minutes",label:e.$t("Time"),width:"80"},{default:vr(({row:e})=>[tu("span",null,me(s.formatMinutes(e.billable_minutes)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},512)}]])},props:{date_range:{type:Array,required:!0},tasks:{type:Array,default:()=>[]},timeSheets:{type:Object,default:()=>({})},dateLabels:{type:Array,default:()=>[]},totalMinutes:{type:Number,default:0},isLoaded:{type:Boolean,default:!1},selectedMailBoxes:{type:Array,default:()=>[]}},data:()=>({}),methods:{getTicketTotal(e){return NFe.calculateEntityTotalMinutes(this.dateLabels,this.timeSheets,e.id)},formatMinutes:e=>NFe.formatMinutes(e),exportReport(){NFe.exportReport({selectedItems:this.selectedMailBoxes,dateRange:this.date_range,action:"fluent_support_export_tickets_timesheet",itemKey:"mailbox_id"})}}},VFe={key:0,class:"fs_time_sheet"},UFe={class:"fs_table_wrapper fs_scrollable_table"},HFe={key:1,class:"fs_time_sheet_skeleton"};const zFe=lH($Fe,[["render",function(e,t,i,a,n,s){const o=Jl("router-link"),r=ZP,l=Jl("TicketDateSheetPop"),c=XP,d=AL;return i.isLoaded?(zd(),qd("div",VFe,[tu("div",UFe,[iu(c,{data:i.tasks,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell"},{default:vr(()=>[iu(r,{fixed:"left",prop:"ticket",label:e.$t("Ticket"),"min-width":"120"},{default:vr(({row:e})=>[iu(o,{to:{name:"view_ticket",params:{ticket_id:e.id}},target:"_blank",class:"fs_time_sheet_ticket_link"},{default:vr(()=>[su(" #"+me(e.id),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),(zd(!0),qd(Fd,null,sc(i.dateLabels,t=>(zd(),Kd(r,{"min-width":100,key:t,prop:t,label:t},{header:vr(({column:t})=>[tu("span",null,me(e.smartDate(t.label)),1)]),default:vr(({row:e})=>[iu(l,{ticket_id:e.id,date:t,timeSheets:i.timeSheets},null,8,["ticket_id","date","timeSheets"])]),_:2},1032,["prop","label"]))),128)),iu(r,{fixed:"right",label:e.$t("Total"),width:"160"},{header:vr(({column:t})=>[tu("span",null,me(e.$t("Total"))+" ("+me(s.formatMinutes(i.totalMinutes))+")",1)]),default:vr(({row:e})=>[tu("strong",null,me(s.getTicketTotal(e.id)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])])])):(zd(),qd("div",HFe,[iu(d,{animated:!0,rows:10})]))}]]),YFe={style:{cursor:"pointer"}},GFe={class:"fs_detail_log"};const WFe=lH({name:"_UserAgentDateSheetPop",props:["user_id","date","timeSheets"],data:()=>({timeItems:[]}),computed:{timeSheetTotal(){return NFe.calculateTimeSheetTotal(this.timeSheets,this.date,this.user_id)}},mounted(){this.initItems()},methods:{initItems(){var e,t;const i=(null==(t=null==(e=this.timeSheets)?void 0:e[this.date])?void 0:t[this.user_id])??[];yX(i,e=>{this.timeItems.push(e)})},formatMinutes:e=>NFe.formatMinutes(e)}},[["render",function(e,t,i,a,n,s){const o=ZP,r=Jl("router-link"),l=XP,c=P$;return zd(),Kd(c,{ref:"estimated_time_pop","popper-class":"fs_timer_log_popover",placement:"left",width:400,trigger:"click"},{reference:vr(()=>[tu("div",YFe,me(s.timeSheetTotal),1)]),default:vr(()=>[iu(l,{stripe:!0,border:!0,data:n.timeItems,style:{width:"100%"}},{default:vr(()=>[iu(o,{type:"expand",width:"30"},{default:vr(({row:t})=>[tu("div",GFe,[tu("p",null,[tu("b",null,me(e.$t("Logged at:")),1),su(" "+me(e.smartDate(t.created_at,!0)),1)]),tu("p",null,[tu("b",null,me(e.$t("Work Description:")),1),su(" "+me(t.message),1)])])]),_:1}),iu(o,{prop:"ticket",label:e.$t("Ticket")},{default:vr(({row:e})=>[iu(r,{to:{name:"view_ticket",params:{ticket_id:e.ticket.id}},target:"_blank",class:"fs_time_sheet_ticket_link"},{default:vr(()=>[su(me(e.ticket.title),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),iu(o,{prop:"billable_minutes",label:e.$t("Time"),width:"80"},{default:vr(({row:e})=>[tu("span",null,me(s.formatMinutes(e.billable_minutes)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},512)}]]),jFe={name:"ByAgents",components:{Modal:vne,UserAgentDateSheetPop:WFe},props:{date_range:{type:Array,required:!0},agents:{type:Array,default:()=>[]},timeSheets:{type:Object,default:()=>({})},dateLabels:{type:Array,default:()=>[]},totalMinutes:{type:Number,default:0},isLoaded:{type:Boolean,default:!1},selectedAgent:{type:Array,default:()=>[]}},data:()=>({}),methods:{getUserTotal(e){return NFe.calculateEntityTotalMinutes(this.dateLabels,this.timeSheets,e)},formatMinutes:e=>NFe.formatMinutes(e),exportReport(){NFe.exportReport({selectedItems:this.selectedAgent,dateRange:this.date_range,action:"fluent_support_export_agents_timesheet",itemKey:"selectedAgents"})}}},qFe={key:0,class:"fs_time_sheet"},KFe={class:"fs_table_wrapper"},XFe={class:"fs_time_sheet_person"},ZFe=["href"],QFe={key:1,class:"fs_time_sheet_skeleton"};const JFe=lH(jFe,[["render",function(e,t,i,a,n,s){const o=DE,r=ZP,l=Jl("UserAgentDateSheetPop"),c=XP,d=AL;return i.isLoaded?(zd(),qd("div",qFe,[tu("div",KFe,[iu(c,{data:i.agents,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:vr(()=>[iu(r,{fixed:"left",prop:"agent",label:e.$t("Agent"),"min-width":"150"},{default:vr(({row:e})=>[tu("div",XFe,[iu(o,{src:e.photo,size:"small"},null,8,["src"]),tu("a",{href:`/wp-admin/user-edit.php?user_id=${e.user_id}`,target:"_blank",class:"fs_time_sheet_agent_link"},me(e.full_name),9,ZFe)])]),_:1},8,["label"]),(zd(!0),qd(Fd,null,sc(i.dateLabels,t=>(zd(),Kd(r,{"min-width":100,key:t,prop:t,label:t},{header:vr(({column:t})=>[tu("span",null,me(e.smartDate(t.label)),1)]),default:vr(({row:e})=>[iu(l,{user_id:e.id,date:t,timeSheets:i.timeSheets},null,8,["user_id","date","timeSheets"])]),_:2},1032,["prop","label"]))),128)),iu(r,{fixed:"right",label:e.$t("Total"),width:"160"},{header:vr(({column:t})=>[tu("span",null,me(e.$t("Total"))+" ("+me(s.formatMinutes(i.totalMinutes))+")",1)]),default:vr(({row:e})=>[tu("strong",null,me(s.getUserTotal(e.id)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])])])):(zd(),qd("div",QFe,[iu(d,{animated:!0,rows:10})]))}]]),eBe={name:"ByCustomers",components:{UserAgentDateSheetPop:WFe,Modal:vne},props:{date_range:{type:Array,required:!0},customers:{type:Array,default:()=>[]},timeSheets:{type:Object,default:()=>({})},dateLabels:{type:Array,default:()=>[]},totalMinutes:{type:Number,default:0},isLoaded:{type:Boolean,default:!1},selectedCustomer:{type:Array,default:()=>[]}},data:()=>({}),methods:{getUserTotal(e){return NFe.calculateEntityTotalMinutes(this.dateLabels,this.timeSheets,e)},formatMinutes:e=>NFe.formatMinutes(e),exportReport(){NFe.exportReport({selectedItems:this.selectedCustomer,dateRange:this.date_range,action:"fluent_support_export_customers_timesheet",itemKey:"selectedCustomers"})}}},tBe={key:0,class:"fs_time_sheet"},iBe={class:"fs_table_wrapper"},aBe={class:"fs_time_sheet_person"},nBe={key:1,class:"fs_time_sheet_skeleton"};const sBe={key:0},oBe={class:"fs_time_sheet_page_header"},rBe={class:"fs_time_sheet_page_header_row"},lBe={class:"fs_page_title"},cBe={class:"fs_time_sheet_page_header_row fs_time_sheet_page_toolbar"},dBe={class:"fs_toolbar_left"},uBe={class:"fs_date_button_group"},pBe={class:"fs_date_button_group_item fs_date_picker_wrapper"},hBe={class:"fs_date_display"},fBe={key:0,class:"fs_date_text"},gBe={key:1,class:"fs_date_placeholder"},mBe={class:"fs_toolbar_right"},_Be={class:"fs_report_table_container"},vBe={class:"fs_table_header"},bBe={class:"fs_box_actions"},yBe={class:"fs_time_sheet_filter_panel"},xBe={class:"fs_status_tabs"},SBe={class:"fs_segmented_control"},wBe=["onClick"];const CBe=lH({name:"TimeSheet",components:{ByTickets:zFe,ByAgents:JFe,ByCustomers:lH(eBe,[["render",function(e,t,i,a,n,s){const o=DE,r=Jl("router-link"),l=ZP,c=Jl("UserAgentDateSheetPop"),d=XP,u=AL;return i.isLoaded?(zd(),qd("div",tBe,[tu("div",iBe,[iu(d,{data:i.customers,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:vr(()=>[iu(l,{fixed:"left",prop:"customer",label:e.$t("Customer"),"min-width":"150"},{default:vr(({row:e})=>[tu("div",aBe,[iu(o,{src:e.photo,size:"small"},null,8,["src"]),iu(r,{to:{name:"view_customer",params:{customer_id:e.id}},target:"_blank",class:"fs_time_sheet_customer_link"},{default:vr(()=>[tu("strong",null,me(e.full_name),1)],void 0),_:2},1032,["to"])])]),_:1},8,["label"]),(zd(!0),qd(Fd,null,sc(i.dateLabels,t=>(zd(),Kd(l,{"min-width":100,key:t,prop:t,label:t},{header:vr(({column:t})=>[tu("span",null,me(e.smartDate(t.label)),1)]),default:vr(({row:e})=>[iu(c,{user_id:e.id,date:t,timeSheets:i.timeSheets},null,8,["user_id","date","timeSheets"])]),_:2},1032,["prop","label"]))),128)),iu(l,{fixed:"right",label:e.$t("Total"),width:"160"},{header:vr(({column:t})=>[tu("span",null,me(e.$t("Total"))+" ("+me(s.formatMinutes(i.totalMinutes))+")",1)]),default:vr(({row:e})=>[tu("strong",null,me(s.getUserTotal(e.id)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])])])):(zd(),qd("div",nBe,[iu(u,{animated:!0,rows:10})]))}]]),NarrowPromo:Fne,IconPack:dY},props:["url","date_range"],data(){return{pickerStartDate:null,dateRange:this.validateAndAdjustDateRange(this.date_range),appReady:!1,shortcuts:fPe,statusFilters:{byTickets:this.$t("By Tickets"),byAgents:this.$t("By Agents"),byCustomers:this.$t("By Customers")},status:"byTickets",selectedMailBoxes:[],allMailBoxes:[],ticketsData:{tasks:[],timeSheets:{},dateLabels:[],totalMinutes:0,isLoaded:!1},selectedAgent:[],allAgents:[],agentsData:{agents:[],timeSheets:{},dateLabels:[],totalMinutes:0,isLoaded:!1},selectedCustomer:[],allCustomers:[],customersData:{customers:[],timeSheets:{},dateLabels:[],totalMinutes:0,isLoaded:!1}}},computed:{formattedDateRange(){return ELe(this.dateRange)}},watch:{date_range:{handler(e){this.dateRange=this.validateAndAdjustDateRange(e),this.pickerStartDate=null,this.fetchData()},deep:!0}},methods:{validateAndAdjustDateRange(e){if(!e||2!==e.length||!e[0]||!e[1])return e;const t=Pk(e[0]),i=Pk(e[1]);if(!t.isValid()||!i.isValid())return e;if(i.isBefore(t))return e;const a=t.add(1,"month");return i.isAfter(a)?[t.format("YYYY-MM-DD"),a.format("YYYY-MM-DD")]:e},handleCalendarChange([e,t]){if(e&&!t){const t=e instanceof Date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):new Date(e);this.pickerStartDate=t}else this.pickerStartDate=null},disableLargeRange(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date;if(i.setHours(0,0,0,0),t.getTime()>i.getTime())return!0;if(this.pickerStartDate){const e=Pk(this.pickerStartDate).startOf("day"),i=Pk(t).startOf("day"),a=e.add(1,"month");if(i.isAfter(a))return!0}return!1},handleDateRangeChange(){this.dateRange=this.validateAndAdjustDateRange(this.dateRange),this.pickerStartDate=null,this.$emit("date-change",this.dateRange),this.fetchData()},setStatus(e){this.status=e,this.fetchData()},async fetchData(){this.dateRange&&2===this.dateRange.length&&("byTickets"===this.status?await this.fetchReportsByTickets():"byAgents"===this.status?await this.fetchReportsByAgents():"byCustomers"===this.status&&await this.fetchReportsByCustomers())},async fetchReportsByTickets(){this.ticketsData.isLoaded=!1;const e={mailbox_id:this.selectedMailBoxes,date_range:this.dateRange};try{const t=await this.$get("reports/timesheet/by-tickets",e);this.ticketsData.tasks=t.tickets,this.ticketsData.timeSheets=t.time_sheets,this.ticketsData.dateLabels=t.date_labels,this.ticketsData.totalMinutes=t.total_minutes,this.allMailBoxes=t.mail_boxes.map(e=>({key:e.id,label:e.name}))}catch(t){this.$handleError(t)}finally{this.ticketsData.isLoaded=!0}},async fetchReportsByAgents(){this.agentsData.isLoaded=!1;const e={agent_id:this.selectedAgent,date_range:this.dateRange};try{const t=await this.$get("reports/timesheet/by-agents",e);this.agentsData.agents=t.agents,this.agentsData.timeSheets=t.time_sheets,this.agentsData.dateLabels=t.date_labels,this.agentsData.totalMinutes=t.total_minutes,this.allAgents=t.all_agents.map(e=>({key:e.id,label:e.full_name}))}catch(t){this.$handleError(t)}finally{this.agentsData.isLoaded=!0}},async fetchReportsByCustomers(){this.customersData.isLoaded=!1;try{const e={customer_id:this.selectedCustomer,date_range:this.dateRange},t=await this.$get("reports/timesheet/by-customers",e);this.customersData.customers=t.customers,this.customersData.timeSheets=t.time_sheets,this.customersData.dateLabels=t.date_labels,this.customersData.totalMinutes=t.total_minutes,this.allCustomers=t.all_customers.map(e=>({key:e.id,label:e.full_name}))}catch(e){this.$handleError(e)}finally{this.customersData.isLoaded=!0}},exportReport(){"byTickets"===this.status?this.$refs.byTickets&&"function"==typeof this.$refs.byTickets.exportReport&&this.$refs.byTickets.exportReport():"byAgents"===this.status?this.$refs.byAgents&&"function"==typeof this.$refs.byAgents.exportReport&&this.$refs.byAgents.exportReport():"byCustomers"===this.status&&this.$refs.byCustomers&&"function"==typeof this.$refs.byCustomers.exportReport&&this.$refs.byCustomers.exportReport()}},mounted(){this.has_pro&&(this.appReady=!0,this.fetchData())}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=jO,l=wA,c=SA,d=Jl("ByTickets"),u=Jl("ByAgents"),p=Jl("ByCustomers"),h=Jl("NarrowPromo");return e.has_pro?(zd(),qd("div",sBe,[tu("div",oBe,[tu("div",rBe,[tu("h3",lBe,me(e.$t("Time Sheet")),1)]),tu("div",cBe,[tu("div",dBe,[tu("div",uBe,[tu("div",pBe,[tu("div",hBe,[iu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",fBe,me(s.formattedDateRange),1)):(zd(),qd("span",gBe,me(e.$t("Select date range")),1))]),iu(r,{modelValue:n.dateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>n.dateRange=e),type:"daterange",editable:!1,onChange:s.handleDateRangeChange,onCalendarChange:s.handleCalendarChange,"range-separator":"To","disabled-date":s.disableLargeRange,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","onChange","onCalendarChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])])]),tu("div",mBe,[tu("button",{type:"button",class:"fs_pill_dropdown_btn",onClick:t[1]||(t[1]=(...e)=>s.exportReport&&s.exportReport(...e))},me(e.$t("Export")),1)])])]),tu("div",_Be,[tu("div",vBe,[tu("div",bBe,[tu("div",yBe,["byTickets"===n.status?(zd(),Kd(c,{key:0,modelValue:n.selectedMailBoxes,"onUpdate:modelValue":t[2]||(t[2]=e=>n.selectedMailBoxes=e),onChange:s.fetchData,placeholder:e.$t("Select Mailboxes"),clearable:"",filterable:"",multiple:"","collapse-tags":"",class:"fs_time_sheet_select fs_staff_filter fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.allMailBoxes,e=>(zd(),Kd(l,{key:e.key,label:e.label,value:e.key},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","onChange","placeholder"])):ru("",!0),"byAgents"===n.status?(zd(),Kd(c,{key:1,modelValue:n.selectedAgent,"onUpdate:modelValue":t[3]||(t[3]=e=>n.selectedAgent=e),onChange:s.fetchData,placeholder:e.$t("Select an Agent"),clearable:"",filterable:"",multiple:"","collapse-tags":"",class:"fs_time_sheet_select fs_staff_filter fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.allAgents,e=>(zd(),Kd(l,{key:e.key,label:e.label,value:e.key},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","onChange","placeholder"])):ru("",!0),"byCustomers"===n.status?(zd(),Kd(c,{key:2,modelValue:n.selectedCustomer,"onUpdate:modelValue":t[4]||(t[4]=e=>n.selectedCustomer=e),onChange:s.fetchData,placeholder:e.$t("Select a customer"),clearable:"",filterable:"",multiple:"","collapse-tags":"",class:"fs_time_sheet_select fs_staff_filter fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.allCustomers,e=>(zd(),Kd(l,{key:e.key,label:e.label,value:e.key},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","onChange","placeholder"])):ru("",!0)]),tu("div",xBe,[tu("div",SBe,[(zd(!0),qd(Fd,null,sc(n.statusFilters,(e,t)=>(zd(),qd("button",{key:t,onClick:e=>s.setStatus(t),class:se(["fs_segment_button",{fs_segment_active:n.status===t}])},me(e),11,wBe))),128))])])])]),n.appReady?(zd(),qd(Fd,{key:0},["byTickets"===n.status?(zd(),Kd(d,{key:0,ref:"byTickets",date_range:n.dateRange,tasks:n.ticketsData.tasks,timeSheets:n.ticketsData.timeSheets,dateLabels:n.ticketsData.dateLabels,totalMinutes:n.ticketsData.totalMinutes,isLoaded:n.ticketsData.isLoaded,selectedMailBoxes:n.selectedMailBoxes},null,8,["date_range","tasks","timeSheets","dateLabels","totalMinutes","isLoaded","selectedMailBoxes"])):"byAgents"===n.status?(zd(),Kd(u,{key:1,ref:"byAgents",date_range:n.dateRange,agents:n.agentsData.agents,timeSheets:n.agentsData.timeSheets,dateLabels:n.agentsData.dateLabels,totalMinutes:n.agentsData.totalMinutes,isLoaded:n.agentsData.isLoaded,selectedAgent:n.selectedAgent},null,8,["date_range","agents","timeSheets","dateLabels","totalMinutes","isLoaded","selectedAgent"])):"byCustomers"===n.status?(zd(),Kd(p,{key:2,ref:"byCustomers",date_range:n.dateRange,customers:n.customersData.customers,timeSheets:n.customersData.timeSheets,dateLabels:n.customersData.dateLabels,totalMinutes:n.customersData.totalMinutes,isLoaded:n.customersData.isLoaded,selectedCustomer:n.selectedCustomer},null,8,["date_range","customers","timeSheets","dateLabels","totalMinutes","isLoaded","selectedCustomer"])):ru("",!0)],64)):ru("",!0)])])):(zd(),Kd(h,{key:1,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_timesheet_reports"},null,8,["heading","description","button-text"]))}]]),EBe={class:"fs_inside_menu_component_header"},kBe={class:"fs_component_head"},TBe={class:"fs_page_title"};const ABe=lH({name:"AdvanceReportPlaceholder",components:{NarrowPromo:Fne},props:{title:{type:String,required:!0},description:{type:String,default:""},buttonText:{type:String,default:""},utmContent:{type:String,default:""}},computed:{resolvedDescription(){return this.description||this.$t("This report is coming soon.")}}},[["render",function(e,t,i,a,n,s){const o=Jl("NarrowPromo");return zd(),qd(Fd,null,[tu("div",EBe,[tu("div",kBe,[tu("h3",TBe,me(i.title),1)])]),iu(o,{heading:i.title,description:s.resolvedDescription,"button-text":i.buttonText,"utm-content":i.utmContent},null,8,["heading","description","button-text","utm-content"])],64)}]]),RBe={},IBe=function(e,t,i){let a=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),n=document.querySelector("meta[property=csp-nonce]"),s=(null==n?void 0:n.nonce)||(null==n?void 0:n.getAttribute("nonce"));a=Promise.allSettled(t.map(t=>{if(t=function(e,t){return new URL(e,t).href}(t,i),t in RBe)return;RBe[t]=!0;const a=t.endsWith(".css"),n=a?'[rel="stylesheet"]':"";if(!!i)for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.href===t&&(!a||"stylesheet"===n.rel))return}else if(document.querySelector(`link[href="${t}"]${n}`))return;const o=document.createElement("link");return o.rel=a?"stylesheet":"modulepreload",a||(o.as="script"),o.crossOrigin="",o.href=t,s&&o.setAttribute("nonce",s),document.head.appendChild(o),a?new Promise((e,i)=>{o.addEventListener("load",e),o.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${t}`)))}):void 0}))}function n(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return a.then(t=>{for(const e of t||[])"rejected"===e.status&&n(e.reason);return e().catch(n)})};var DBe=Object.defineProperty,OBe=Object.defineProperties,MBe=Object.getOwnPropertyDescriptors,NBe=Object.getOwnPropertySymbols,LBe=Object.prototype.hasOwnProperty,PBe=Object.prototype.propertyIsEnumerable,FBe=(e,t,i)=>t in e?DBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,BBe=(e,t)=>{for(var i in t||(t={}))LBe.call(t,i)&&FBe(e,i,t[i]);if(NBe)for(var i of NBe(t))PBe.call(t,i)&&FBe(e,i,t[i]);return e},$Be=(e,t)=>OBe(e,MBe(t)),VBe=(e,t,i)=>FBe(e,"symbol"!=typeof t?t+"":t,i);class UBe{static isSSR(){return"undefined"==typeof window||"undefined"==typeof document}static isBrowser(){return!this.isSSR()}static hasAPI(e){return!this.isSSR()&&void 0!==window[e]}static getApex(){return"undefined"!=typeof window&&window.Apex?window.Apex:"undefined"!=typeof global&&global.Apex?global.Apex:{}}}class HBe{constructor(e,t=null){this.nodeName=e,this.namespaceURI=t,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new zBe,this.parentNode=null,this._ssrWidth=void 0,this._ssrHeight=void 0,this._ssrMode=void 0}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){if(e&&e!==this){if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){const t=this.children.indexOf(e);-1!==t&&this.children.splice(t,1)}e.parentNode=this,this.children.push(e)}return e}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&(this.children.splice(t,1),e.parentNode=null),e}insertBefore(e,t){if(!t)return this.appendChild(e);if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){const t=this.children.indexOf(e);-1!==t&&this.children.splice(t,1)}const i=this.children.indexOf(t);return-1!==i&&(e.parentNode=this,this.children.splice(i,0,e)),e}cloneNode(e=!1){const t=new HBe(this.nodeName,this.namespaceURI);return t.textContent=this.textContent,this.attributes.forEach((e,i)=>{t.attributes.set(i,e)}),Object.assign(t.style,this.style),e&&this.children.forEach(e=>{e.cloneNode&&t.appendChild(e.cloneNode(!0))}),t}getBoundingClientRect(){return{width:this._ssrWidth||0,height:this._ssrHeight||0,top:0,left:0,right:this._ssrWidth||0,bottom:this._ssrHeight||0,x:0,y:0}}getRootNode(){let e=this;for(;e.parentNode;)e=e.parentNode;return e}querySelector(){return null}querySelectorAll(){return[]}getElementsByClassName(){return[]}addEventListener(){}removeEventListener(){}get childNodes(){return this.children}toString(){let e="";if(this.attributes.forEach((t,i)=>{e+=` ${i}="${t}"`}),0===this.children.length&&!this.textContent)return`<${this.nodeName}${e}/>`;const t=this.children.map(e=>e.toString()).join("");return`<${this.nodeName}${e}>${this.textContent}${t}</${this.nodeName}>`}get innerHTML(){return this.children.map(e=>e.toString()).join("")}set innerHTML(e){this.children=[],this.textContent=e}get outerHTML(){return this.toString()}get isConnected(){return!0}}class zBe{constructor(){this.classes=new Set}add(...e){e.forEach(e=>this.classes.add(e))}remove(...e){e.forEach(e=>this.classes.delete(e))}contains(e){return this.classes.has(e)}toggle(e,t){return!0===t?(this.classes.add(e),!0):!1===t||this.classes.has(e)?(this.classes.delete(e),!1):(this.classes.add(e),!0)}toString(){return Array.from(this.classes).join(" ")}}class YBe{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(e,t){return new HBe(t,e)}createTextNode(e){const t={nodeName:"#text",nodeType:3,textContent:e,toString:()=>t.textContent};return t}querySelector(){return null}querySelectorAll(){return[]}getComputedStyle(){return{}}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}createXMLSerializer(){return{serializeToString:e=>e.toString?e.toString():""}}createDOMParser(){return{parseFromString(e,t){const i=new HBe("root");return i.innerHTML=e,{documentElement:i}}}}}let GBe=null,WBe=null,jBe=null;class qBe{static init(){UBe.isSSR()&&!GBe&&(GBe=new YBe)}static createElement(e){return UBe.isSSR()?(GBe||this.init(),GBe.createElementNS(null,e)):document.createElement(e)}static createElementNS(e,t){return UBe.isSSR()?(GBe||this.init(),GBe.createElementNS(e,t)):document.createElementNS(e,t)}static createTextNode(e){return UBe.isSSR()?(GBe||this.init(),GBe.createTextNode(e)):document.createTextNode(e)}static querySelector(e){return UBe.isSSR()?null:document.querySelector(e)}static querySelectorAll(e){return UBe.isSSR()?[]:document.querySelectorAll(e)}static getComputedStyle(e){return UBe.isSSR()?{}:window.getComputedStyle(e)}static getBoundingClientRect(e){return UBe.isSSR()?(GBe||this.init(),GBe.getBoundingClientRect(e)):e?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return UBe.isSSR()?(GBe||this.init(),WBe||(WBe=GBe.createXMLSerializer()),WBe):(WBe||(WBe=new XMLSerializer),WBe)}static getDOMParser(){return UBe.isSSR()?(GBe||this.init(),jBe||(jBe=GBe.createDOMParser()),jBe):(jBe||(jBe=new DOMParser),jBe)}static addWindowEventListener(e,t,i){UBe.isBrowser()&&window.addEventListener(e,t,i)}static removeWindowEventListener(e,t,i){UBe.isBrowser()&&window.removeEventListener(e,t,i)}static requestAnimationFrame(e){return UBe.isBrowser()?window.requestAnimationFrame(e):(e(0),null)}static cancelAnimationFrame(e){UBe.isBrowser()&&e&&window.cancelAnimationFrame(e)}static elementExists(e){return!!e&&(UBe.isSSR()?!0===e._ssrMode||void 0!==e.nodeName:!!e.getRootNode&&(e.getRootNode({composed:!0})===document||e.isConnected))}static getWindow(){return UBe.isBrowser()?window:null}static getDocument(){return UBe.isBrowser()?document:null}static _getShim(){return GBe}static _resetShim(){GBe=null,WBe=null,jBe=null}}let KBe=class e{static isObject(e){return e&&"object"==typeof e&&!Array.isArray(e)}static is(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}static isSafari(){return UBe.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(e,t){const i=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(a=>{this.isObject(t[a])?a in e?i[a]=this.extend(e[a],t[a]):Object.assign(i,{[a]:t[a]}):Object.assign(i,{[a]:t[a]})}),i}static extendArray(t,i){const a=[];return t.map(t=>{a.push(e.extend(i,t))}),t=a}static monthMod(e){return e%12}static clone(e,t=new WeakMap,i=!1){if(null===e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let a;if(Array.isArray(e))if(i)a=e.slice();else{a=[],t.set(e,a);for(let i=0;i<e.length;i++)a[i]=this.clone(e[i],t,!1)}else if(e instanceof Date)a=new Date(e.getTime());else if(i)a=Object.assign({},e);else{a={},t.set(e,a);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=this.clone(e[i],t,!1))}return a}static shallowClone(e){return null===e||"object"!=typeof e?e:Array.isArray(e)?e.slice():Object.assign({},e)}static shallowEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;if("object"!=typeof e||"object"!=typeof t)return e===t;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(const n of i)if(e[n]!==t[n])return!1;return!0}static log10(e){return Math.log(e)/Math.LN10}static roundToBase10(e){return Math.pow(10,Math.floor(Math.log10(e)))}static roundToBase(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}static parseNumber(e){return"number"==typeof e||null===e?e:parseFloat(e)}static stripNumber(e,t=2){return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}static randomId(){return(Math.random()+1).toString(36).substring(4)}static noExponents(e){return e.toString().includes("e")?Math.round(e):e}static elementExists(e){return!(!e||!e.isConnected)}static isInShadowDOM(t){if(!t||!t.getRootNode)return!1;const i=t.getRootNode();return i&&i!==document&&e.is("ShadowRoot",i)}static getShadowRootHost(t){if(!e.isInShadowDOM(t))return null;return t.getRootNode().host||null}static getDimensions(e){if(!e)return[0,0];if(UBe.isSSR())return[e._ssrWidth||400,e._ssrHeight||300];let t;try{t=getComputedStyle(e,null)}catch(NO){return[e.clientWidth||0,e.clientHeight||0]}let i=e.clientWidth,a=e.clientHeight;if(!i||!a){const t=e.getBoundingClientRect();i=i||t.width,a=a||t.height}return a-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),[i,a]}static getBoundingClientRect(e){if(!e)return{top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0};if(UBe.isSSR())return qBe.getBoundingClientRect(e);const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}static getLargestStringFromArr(e){return e.reduce((e,t)=>(Array.isArray(t)&&(t=t.reduce((e,t)=>e.length>t.length?e:t)),e.length>t.length?e:t),0)}static hexToRgba(e="#999999",t=.6){"#"!==e.substring(0,1)&&(e="#999999");const i=e.replace("#",""),a=i.match(new RegExp("(.{"+i.length/3+"})","g"))||[];for(let n=0;n<a.length;n++)a[n]=parseInt(1===a[n].length?a[n]+a[n]:a[n],16);return void 0!==t&&a.push(t),"rgba("+a.join(",")+")"}static getOpacityFromRGBA(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}static parseHex(e){if("string"!=typeof e)return null;let t=e.trim().replace("#","");return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),/^[0-9a-fA-F]{6}$/.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}static relativeLuminance([e,t,i]){const a=e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*a(e)+.7152*a(t)+.0722*a(i)}static getContrastRatio(t,i){const a=e.parseHex(t),n=e.parseHex(i);if(!a||!n)return 0;const s=e.relativeLuminance(a),o=e.relativeLuminance(n);return(Math.max(s,o)+.05)/(Math.min(s,o)+.05)}static rgb2hex(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}shadeRGBColor(e,t){const i=t.split(","),a=e<0?0:255,n=e<0?-1*e:e,s=parseInt(i[0].slice(4),10),o=parseInt(i[1],10),r=parseInt(i[2],10);return"rgb("+(Math.round((a-s)*n)+s)+","+(Math.round((a-o)*n)+o)+","+(Math.round((a-r)*n)+r)+")"}shadeHexColor(e,t){const i=parseInt(t.slice(1),16),a=e<0?0:255,n=e<0?-1*e:e,s=i>>16,o=i>>8&255,r=255&i;return"#"+(16777216+65536*(Math.round((a-s)*n)+s)+256*(Math.round((a-o)*n)+o)+(Math.round((a-r)*n)+r)).toString(16).slice(1)}shadeColor(t,i){return e.isColorHex(i)?this.shadeHexColor(t,i):this.shadeRGBColor(t,i)}static isColorHex(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}static isCSSVariable(e){if("string"!=typeof e)return!1;const t=e.trim();return t.startsWith("var(")&&t.endsWith(")")}static getThemeColor(t){if(!e.isCSSVariable(t))return t;if(UBe.isSSR())return t;const i=document.createElement("div");let a;i.style.cssText="position:fixed; left: -9999px; visibility:hidden;",i.style.color=t,document.body.appendChild(i);try{a=window.getComputedStyle(i).color}finally{i.parentNode&&i.parentNode.removeChild(i)}return a}static applyOpacityToColor(e,t){const i=Number(t);if(!Number.isFinite(i))return e;if(i<=0)return"transparent";if(i>=1)return e;return`color-mix(in srgb, ${e} ${Math.round(100*i)}%, transparent)`}static getPolygonPos(e,t){const i=[],a=2*Math.PI/t;for(let n=0;n<t;n++){const t={};t.x=e*Math.sin(n*a),t.y=-e*Math.cos(n*a),i.push(t)}return i}static polarToCartesian(e,t,i,a){const n=(a-90)*Math.PI/180;return{x:e+i*Math.cos(n),y:t+i*Math.sin(n)}}static escapeString(e,t="x"){let i=e.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+=?;:'",.<>{}[\]\\/]/gi,t),i}static negToZero(e){return e<0?0:e}static moveIndexInArray(e,t,i){if(i>=e.length){let t=i-e.length+1;for(;t--;)e.push(void 0)}return e.splice(i,0,e.splice(t,1)[0]),e}static extractNumber(e){return parseFloat(e.replace(/[^\d.]*/g,""))}static findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}static setELstyles(e,t){for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e.style.key=t[i])}static preciseAddition(e,t){const i=(String(e).split(".")[1]||"").length,a=(String(t).split(".")[1]||"").length,n=Math.pow(10,Math.max(i,a));return(Math.round(e*n)+Math.round(t*n))/n}static isNumber(e){return!isNaN(e)&&parseFloat(String(Number(e)))===e&&!isNaN(parseInt(e,10))}static isFloat(e){return Number(e)===e&&e%1!=0}static isMsEdge(){if(UBe.isSSR())return!1;const e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}static getGCD(e,t,i=7){let a=Math.pow(10,i-Math.floor(Math.log10(Math.max(e,t))));for(a>1?(e=Math.round(Math.abs(e)*a),t=Math.round(Math.abs(t)*a)):a=1;t;){const i=t;t=e%t,e=i}return e/a}static getPrimeFactors(e){const t=[];let i=2;for(;e>=2;)e%i==0?(t.push(i),e/=i):i++;return t}static mod(e,t,i=7){const a=Math.pow(10,i-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*a))%(t=Math.round(Math.abs(t)*a))/a}};class XBe{constructor(e){this.w=e,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}isValidDate(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}getTimeStamp(e){if(!Date.parse(e))return e;return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime()}getDate(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}parseDate(e){const t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);let i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i),i}parseDateWithTimezone(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}formatDate(e,t){const i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,n=["\0",...i.months],s=["",...i.shortMonths],o=["",...i.days],r=["",...i.shortDays];function l(e,t=2){let i=e+"";for(;i.length<t;)i="0"+i;return i}const c=a?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);const d=(a?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+n[0])).replace(/(^|[^\\])MMM/g,"$1"+s[0])).replace(/(^|[^\\])MM/g,"$1"+l(d))).replace(/(^|[^\\])M/g,"$1"+d);const u=a?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+r[0])).replace(/(^|[^\\])dd/g,"$1"+l(u))).replace(/(^|[^\\])d/g,"$1"+u);const p=a?e.getUTCHours():e.getHours(),h=p>12?p-12:0===p?12:p;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+l(h))).replace(/(^|[^\\])h/g,"$1"+h);const f=a?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(f))).replace(/(^|[^\\])m/g,"$1"+f);const g=a?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);let m=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);const _=p<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+_)).replace(/(^|[^\\])T/g,"$1"+_.charAt(0));const v=_.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+v)).replace(/(^|[^\\])t/g,"$1"+v.charAt(0));let b=-e.getTimezoneOffset(),y=a||!b?"Z":b>0?"+":"-";if(!a){b=Math.abs(b);const e=b%60;y+=l(Math.floor(b/60))+":"+l(e)}t=t.replace(/(^|[^\\])K/g,"$1"+y);const x=(a?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[x])).replace(new RegExp(r[0],"g"),r[x])).replace(new RegExp(n[0],"g"),n[d])).replace(new RegExp(s[0],"g"),s[d])).replace(/\\(.)/g,"$1")}getTimeUnitsfromTimestamp(e,t){const i=this.w;void 0!==i.config.xaxis.min&&(e=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(t=i.config.xaxis.max);const a=this.getDate(e),n=this.getDate(t),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(s[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(s[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(s[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(s[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(s[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(s[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(s[0],10),maxYear:parseInt(o[0],10)}}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}calculcateLastDaysOfMonth(e,t,i){return this.determineDaysOfMonths(e,t)-i}determineDaysOfYear(e){let t=365;return this.isLeapYear(e)&&(t=366),t}determineRemainingDaysOfYear(e,t,i){let a=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear(e)&&a++,a}determineDaysOfMonths(e,t){let i=30;switch(e=KBe.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}getDateFields(e,t){const i=new Date(e);return t?{year:i.getUTCFullYear(),month:i.getUTCMonth(),date:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),ms:i.getUTCMilliseconds(),weekday:i.getUTCDay()}:{year:i.getFullYear(),month:i.getMonth(),date:i.getDate(),hour:i.getHours(),minute:i.getMinutes(),second:i.getSeconds(),ms:i.getMilliseconds(),weekday:i.getDay()}}addInterval(e,t,i,a){const n=new Date(e);if(a)switch(t){case"year":n.setUTCFullYear(n.getUTCFullYear()+i);break;case"month":n.setUTCMonth(n.getUTCMonth()+i);break;case"week":n.setUTCDate(n.getUTCDate()+7*i);break;case"day":n.setUTCDate(n.getUTCDate()+i);break;case"hour":n.setUTCHours(n.getUTCHours()+i);break;case"minute":n.setUTCMinutes(n.getUTCMinutes()+i);break;case"second":n.setUTCSeconds(n.getUTCSeconds()+i)}else switch(t){case"year":n.setFullYear(n.getFullYear()+i);break;case"month":n.setMonth(n.getMonth()+i);break;case"week":n.setDate(n.getDate()+7*i);break;case"day":n.setDate(n.getDate()+i);break;case"hour":n.setHours(n.getHours()+i);break;case"minute":n.setMinutes(n.getMinutes()+i);break;case"second":n.setSeconds(n.getSeconds()+i)}return n.getTime()}ceilToBoundary(e,t,i,a){const n=new Date(e);if(a)switch(t){case"second":{const t=n.getUTCSeconds(),a=Math.ceil(t/i)*i;return a===t&&0===n.getUTCMilliseconds()?e:(n.setUTCMilliseconds(0),n.setUTCSeconds(a),n.getTime())}case"minute":{const t=n.getUTCMinutes(),a=Math.ceil(t/i)*i;return a===t&&0===n.getUTCSeconds()&&0===n.getUTCMilliseconds()?e:(n.setUTCMilliseconds(0),n.setUTCSeconds(0),n.setUTCMinutes(a),n.getTime())}case"hour":{const t=n.getUTCHours(),a=Math.ceil(t/i)*i;return a===t&&0===n.getUTCMinutes()&&0===n.getUTCSeconds()&&0===n.getUTCMilliseconds()?e:(n.setUTCMilliseconds(0),n.setUTCSeconds(0),n.setUTCMinutes(0),n.setUTCHours(a),n.getTime())}case"day":return 0===n.getUTCHours()&&0===n.getUTCMinutes()&&0===n.getUTCSeconds()&&0===n.getUTCMilliseconds()?e:(n.setUTCMilliseconds(0),n.setUTCSeconds(0),n.setUTCMinutes(0),n.setUTCHours(0),n.setUTCDate(n.getUTCDate()+1),n.getTime());case"week":{const t=6048e5,a=Date.UTC(1970,0,5);n.setUTCMilliseconds(0),n.setUTCSeconds(0),n.setUTCMinutes(0),n.setUTCHours(0);const s=n.getTime(),o=Math.ceil((s-a)/t),r=a+Math.ceil(o/i)*i*t;return r>=e?r:r+i*t}case"month":{const t=n.getUTCMonth(),a=Math.ceil(t/i)*i;return a===t&&1===n.getUTCDate()&&0===n.getUTCHours()&&0===n.getUTCMinutes()&&0===n.getUTCSeconds()&&0===n.getUTCMilliseconds()?e:(n.setUTCMilliseconds(0),n.setUTCSeconds(0),n.setUTCMinutes(0),n.setUTCHours(0),n.setUTCDate(1),n.setUTCMonth(a),n.getTime())}case"year":{const t=n.getUTCFullYear(),a=Math.ceil(t/i)*i;return a===t&&0===n.getUTCMonth()&&1===n.getUTCDate()&&0===n.getUTCHours()&&0===n.getUTCMinutes()&&0===n.getUTCSeconds()&&0===n.getUTCMilliseconds()?e:Date.UTC(a,0,1)}}else switch(t){case"second":{const t=n.getSeconds(),a=Math.ceil(t/i)*i;return a===t&&0===n.getMilliseconds()?e:(n.setMilliseconds(0),n.setSeconds(a),n.getTime())}case"minute":{const t=n.getMinutes(),a=Math.ceil(t/i)*i;return a===t&&0===n.getSeconds()&&0===n.getMilliseconds()?e:(n.setMilliseconds(0),n.setSeconds(0),n.setMinutes(a),n.getTime())}case"hour":{const t=n.getHours(),a=Math.ceil(t/i)*i;return a===t&&0===n.getMinutes()&&0===n.getSeconds()&&0===n.getMilliseconds()?e:(n.setMilliseconds(0),n.setSeconds(0),n.setMinutes(0),n.setHours(a),n.getTime())}case"day":return 0===n.getHours()&&0===n.getMinutes()&&0===n.getSeconds()&&0===n.getMilliseconds()?e:(n.setMilliseconds(0),n.setSeconds(0),n.setMinutes(0),n.setHours(0),n.setDate(n.getDate()+1),n.getTime());case"week":{const t=6048e5,a=new Date(1970,0,5).getTime();n.setMilliseconds(0),n.setSeconds(0),n.setMinutes(0),n.setHours(0);const s=n.getTime(),o=Math.ceil((s-a)/t),r=a+Math.ceil(o/i)*i*t;return r>=e?r:r+i*t}case"month":{const t=n.getMonth(),a=Math.ceil(t/i)*i;return a===t&&1===n.getDate()&&0===n.getHours()&&0===n.getMinutes()&&0===n.getSeconds()&&0===n.getMilliseconds()?e:(n.setMilliseconds(0),n.setSeconds(0),n.setMinutes(0),n.setHours(0),n.setDate(1),n.setMonth(a),n.getTime())}case"year":{const t=n.getFullYear(),a=Math.ceil(t/i)*i;return a===t&&0===n.getMonth()&&1===n.getDate()&&0===n.getHours()&&0===n.getMinutes()&&0===n.getSeconds()&&0===n.getMilliseconds()?e:new Date(a,0,1).getTime()}}return e}isAtBoundary(e,t,i){const a=this.getDateFields(e,i);switch(t){case"year":return 0===a.month&&1===a.date&&0===a.hour&&0===a.minute&&0===a.second&&0===a.ms;case"month":return 1===a.date&&0===a.hour&&0===a.minute&&0===a.second&&0===a.ms;case"day":return 0===a.hour&&0===a.minute&&0===a.second&&0===a.ms;case"hour":return 0===a.minute&&0===a.second&&0===a.ms;case"minute":return 0===a.second&&0===a.ms;case"second":return 0===a.ms}return!1}}class ZBe{constructor(e){this.w=e,this.tooltipKeyFormat="dd MMM"}xLabelFormat(e,t,i,a){const n=this.w;if("datetime"===n.config.xaxis.type&&void 0===n.config.xaxis.labels.formatter&&void 0===n.config.tooltip.x.formatter){const e=new XBe(this.w);return e.formatDate(e.getDate(t),n.config.tooltip.x.format)}return e(t,i,a)}defaultGeneralFormatter(e){return Array.isArray(e)?e.map(e=>e):e}defaultYFormatter(e,t){const i=this.w;if(KBe.isNumber(e))if(0!==i.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:i.globals.yValueDecimal);else{const t=e.toFixed(0);e=Number(t)===e?t:e.toFixed(1)}return e}setLabelFormatters(){const e=this.w,t=e.formatters;return t.xaxisTooltipFormatter=e=>this.defaultGeneralFormatter(e),t.ttKeyFormatter=e=>this.defaultGeneralFormatter(e),t.ttZFormatter=e=>e,t.legendFormatter=e=>this.defaultGeneralFormatter(e),void 0!==e.config.xaxis.labels.formatter?t.xLabelFormatter=e.config.xaxis.labels.formatter:t.xLabelFormatter=t=>{if(KBe.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(KBe.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);{const i=e.globals.maxX-e.globals.minX;if(i>0){const e=i/10,a=Math.max(0,-Math.floor(Math.log10(e)));return t.toFixed(a)}return t.toFixed(0)}}if(e.globals.isBarHorizontal){if(e.globals.maxY-e.globals.minYArr<4)return t.toFixed(1)}return t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?t.ttKeyFormatter=e.config.tooltip.x.formatter:t.ttKeyFormatter=t.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(t.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(t.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(t.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(t.legendFormatter=e.config.legend.formatter),t.yLabelFormatters=[],e.config.yaxis.forEach((i,a)=>{void 0!==i.labels.formatter?t.yLabelFormatters[a]=i.labels.formatter:t.yLabelFormatters[a]=t=>e.globals.xyCharts?Array.isArray(t)?t.map(e=>this.defaultYFormatter(e,i)):this.defaultYFormatter(t,i):t}),e.globals}heatmapLabelFormatters(){const e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.seriesData.seriesNames.slice();const t=e.seriesData.seriesNames.reduce((e,t)=>e.length>t.length?e:t,0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}const QBe=({isTimeline:e,seriesIndex:t,dataPointIndex:i,y1:a,y2:n,w:s})=>{var o;let r=s.rangeData.seriesRangeStart[t][i],l=s.rangeData.seriesRangeEnd[t][i],c=s.labelData.labels[i],d=s.config.series[t].name?s.config.series[t].name:"";const u=s.formatters.ttKeyFormatter,p=s.config.tooltip.y.title.formatter,h={w:s,seriesIndex:t,dataPointIndex:i,start:r,end:l};if("function"==typeof p&&(d=p(d,h)),(null==(o=s.config.series[t].data[i])?void 0:o.x)&&(c=s.config.series[t].data[i].x),!e&&"datetime"===s.config.xaxis.type){c=new ZBe(s).xLabelFormat(s.formatters.ttKeyFormatter,c,c,{i:void 0,dateFormatter:new XBe(s).formatDate,w:s})}"function"==typeof u&&(c=u(c,h)),Number.isFinite(a)&&Number.isFinite(n)&&(r=a,l=n);let f="",g="";const m=s.globals.colors[t];if(void 0===s.config.tooltip.x.formatter)if("datetime"===s.config.xaxis.type){const e=new XBe(s);f=e.formatDate(e.getDate(r),s.config.tooltip.x.format),g=e.formatDate(e.getDate(l),s.config.tooltip.x.format)}else f=r,g=l;else f=s.config.tooltip.x.formatter(r),g=s.config.tooltip.x.formatter(l);return{start:r,end:l,startVal:f,endVal:g,ylabel:c,color:m,seriesName:d}},JBe=e=>{let{color:t,seriesName:i,ylabel:a,start:n,end:s,seriesIndex:o,dataPointIndex:r}=e;const l=e.w.globals.tooltip.tooltipLabels.getFormatters(o);n=l.yLbFormatter(n),s=l.yLbFormatter(s);const c=l.yLbFormatter(e.w.seriesData.series[o][r]);let d="";const u=`<span class="value start-value">\n ${n}\n </span> <span class="separator">-</span> <span class="value end-value">\n ${s}\n </span>`;return d=e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?u:`<span>${c}</span>`:u,'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(i||"")+'</span></div><div> <span class="category">'+a+": </span> "+d+" </div></div>"};class e$e{constructor(e){this.opts=e}hideYAxis(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}line(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}sparkline(e){this.hideYAxis();return KBe.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter(e,t){const i=t.w.config.series[t.seriesIndex].name;return null!==e?i+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}bar(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}funnel(){return this.hideYAxis(),$Be(BBe({},this.bar()),{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}pyramid(){return this.funnel()}gauge(){const e=this.radialBar();return $Be(BBe({},e),{plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:"60%"},track:{background:"#e7e7e7",strokeWidth:"100%",margin:5},dataLabels:{name:{show:!1},value:{show:!0,fontSize:"32px",fontWeight:600,offsetY:8}}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:i})=>this._getBoxTooltip(i,e,t,["Open","High","","Low","Close"],"candlestick")},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}boxPlot(){return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:i})=>this._getBoxTooltip(i,e,t,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}rangeBar(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter(e,{seriesIndex:t,dataPointIndex:i,w:a}){const n=()=>{const e=a.rangeData.seriesRangeStart[t][i];return a.rangeData.seriesRangeEnd[t][i]-e};return a.globals.comboCharts?"rangeBar"===a.config.series[t].type||"rangeArea"===a.config.series[t].type?n():e:n()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:e=>e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?(e=>{const{color:t,seriesName:i,ylabel:a,startVal:n,endVal:s}=QBe($Be(BBe({},e),{isTimeline:!0}));return JBe($Be(BBe({},e),{color:t,seriesName:i,ylabel:a,start:n,end:s}))})(e):(e=>{const{color:t,seriesName:i,ylabel:a,start:n,end:s}=QBe(e);return JBe($Be(BBe({},e),{color:t,seriesName:i,ylabel:a,start:n,end:s}))})(e)},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(e){var t,i;return(null==(t=e.plotOptions.bar)?void 0:t.barHeight)||(e.plotOptions.bar.barHeight=2),(null==(i=e.plotOptions.bar)?void 0:i.columnWidth)||(e.plotOptions.bar.columnWidth=2),e}area(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}rangeArea(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:e=>(e=>{const{color:t,seriesName:i,ylabel:a,start:n,end:s}=QBe(e);return JBe($Be(BBe({},e),{color:t,seriesName:i,ylabel:a,start:n,end:s}))})(e)}}}brush(e){return KBe.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}stacked100(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;const t=e.dataLabels.formatter;e.yaxis.forEach((t,i)=>{e.yaxis[i].min=0,e.yaxis[i].max=100});return"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}stackedBars(){const e=this.bar();return $Be(BBe({},e),{plotOptions:$Be(BBe({},e.plotOptions),{bar:$Be(BBe({},e.plotOptions.bar),{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}convertCatToNumeric(e){return e.xaxis.convertedCatToNumeric=!0,e}convertCatToNumericXaxis(e,t){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return KBe.isNumber(e)?Math.floor(e):e};const i=e.xaxis.labels.formatter;let a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return t&&t.length&&(a=t.map(e=>Array.isArray(e)?e:String(e))),a&&a.length&&(e.xaxis.labels.formatter=function(e){return KBe.isNumber(e)?i(a[Math.floor(e)-1]):i(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}bubble(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}scatter(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}heatmap(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}treemap(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:e=>e.toFixed(1)+"%",style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}donut(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:e=>e.toFixed(1)+"%",style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}polarArea(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:e=>e.toFixed(1)+"%",enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}radar(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:e=>e,style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}radialBar(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}_getBoxTooltip(e,t,i,a,n){const s=e.candleData.seriesCandleO[t][i],o=e.candleData.seriesCandleH[t][i],r=e.candleData.seriesCandleM[t][i],l=e.candleData.seriesCandleL[t][i],c=e.candleData.seriesCandleC[t][i],d=e.config.series[t];return d.type&&d.type!==n?`<div class="apexcharts-custom-tooltip">\n ${d.name?d.name:"series-"+(t+1)}: <strong>${e.seriesData.series[t][i]}</strong>\n </div>`:`<div class="apexcharts-tooltip-box apexcharts-tooltip-${e.config.chart.type}"><div>${a[0]}: <span class="value">`+s+`</span></div><div>${a[1]}: <span class="value">`+o+"</span></div>"+(r?`<div>${a[2]}: <span class="value">`+r+"</span></div>":"")+`<div>${a[3]}: <span class="value">`+l+`</span></div><div>${a[4]}: <span class="value">`+c+"</span></div></div>"}}const t$e={name:"en",options:{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"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}};class i$e{constructor(){this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,alignZero:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}init(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350},respectReducedMotion:!0},background:"",locales:[t$e],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0,keyDown:void 0,keyUp:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,injectStyleSheet:!0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}},accessibility:{enabled:!0,description:void 0,announcements:{enabled:!0},keyboard:{enabled:!0,navigation:{enabled:!0,wrapAround:!1}}},dataReducer:{enabled:!1,algorithm:"lttb",targetPoints:250,threshold:500}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},funnel:{shape:"rectangle",lastShape:"flat"},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,shape:"arc",min:0,max:100,bands:[],bandsStyle:{strokeWidth:"40%",gap:0,hideTrackWhenPresent:!0},ticks:{show:!1,major:{count:11,length:10,width:2,color:"#666",placement:"outside"},minor:{count:4,length:5,width:1,color:"#999",placement:"outside"},labels:{show:!1,offset:6,fontSize:"11px",fontFamily:void 0,fontWeight:400,color:"#666",formatter:e=>String(e)}},needle:{color:"#333",length:"85%",baseWidth:4,tipWidth:1,offsetY:0,showValueArc:!1,animation:{enabled:!0,duration:800,easing:"ease-out"}},hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",stroke:void 0,strokeWidth:1,strokeDasharray:void 0,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:e=>e},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:e=>e+"%"},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:e=>e.globals.seriesTotals.reduce((e,t)=>e+t,0)/e.seriesData.series.length+"%"}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:e=>e,onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:e=>e},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:e=>e},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:e=>e.globals.seriesTotals.reduce((e,t)=>e+t,0)}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:e=>null!==e?e:"",textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0,background:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:e=>e?e+": ":""}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM",day:"dd MMM",hour:"HH:mm",minute:"HH:mm",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65},accessibility:{colorBlindMode:""}}}}}class a$e{constructor(e){this.opts=e}init({responsiveOverride:e}){var t,i,a,n,s,o,r,l,c,d;let u=this.opts;const p=new i$e,h=new e$e(u);u=this.normalizeAliasedChartType(u),this.chartType=u.chart.type,u=this.extendYAxis(u),u=this.extendAnnotations(u);let f=p.init(),g={};if(u&&"object"==typeof u){let p={};const m=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"],_=u.chart.requestedType;p="funnel"===_||"pyramid"===_?h[_]():"gauge"===_?h.gauge():-1!==m.indexOf(u.chart.type)?h[u.chart.type]():h.line(),(null==(i=null==(t=u.plotOptions)?void 0:t.bar)?void 0:i.isFunnel)&&(p=h.funnel()),u.chart.stacked&&"bar"===u.chart.type&&(p=h.stackedBars()),(null==(a=u.chart.brush)?void 0:a.enabled)&&(p=h.brush(p)),(null==(s=null==(n=u.plotOptions)?void 0:n.line)?void 0:s.isSlopeChart)&&(p=h.slope()),u.chart.stacked&&"100%"===u.chart.stackType&&(u=h.stacked100(u)),(null==(r=null==(o=u.plotOptions)?void 0:o.bar)?void 0:r.isDumbbell)&&(u=h.dumbbell(u)),this.checkForDarkTheme(UBe.getApex()),this.checkForDarkTheme(u),u.xaxis=u.xaxis||UBe.getApex().xaxis||{},e||(u.xaxis.convertedCatToNumeric=!1),u=this.checkForCatToNumericXAxis(this.chartType,p,u),((null==(l=u.chart.sparkline)?void 0:l.enabled)||(null==(d=null==(c=UBe.getApex().chart)?void 0:c.sparkline)?void 0:d.enabled))&&(p=h.sparkline(p)),g=KBe.extend(f,p)}const m=KBe.extend(g,UBe.getApex());return f=KBe.extend(m,u),f=this.handleUserInputErrors(f),f}normalizeAliasedChartType(e){if(!e||!e.chart)return e;const t=e.chart.type;return"funnel"!==t&&"pyramid"!==t&&"gauge"!==t||(e.chart.requestedType=t,"funnel"===t||"pyramid"===t?(e.plotOptions=e.plotOptions||{},e.plotOptions.bar=e.plotOptions.bar||{},e.plotOptions.bar.isFunnel=!0,e.plotOptions.bar.horizontal=!0,e.chart.type="bar"):"gauge"===t&&(e.chart.type="radialBar")),e}checkForCatToNumericXAxis(e,t,i){var a,n;const s=new e$e(i),o=("bar"===e||"boxPlot"===e)&&(null==(n=null==(a=i.plotOptions)?void 0:a.bar)?void 0:n.horizontal),r="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||r||!l||"between"===c||(i=s.convertCatToNumeric(i)),i}extendYAxis(e,t){const i=new i$e;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={});const a=UBe.getApex();e.yaxis.constructor!==Array&&a.yaxis&&a.yaxis.constructor!==Array&&(e.yaxis=KBe.extend(e.yaxis,a.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[KBe.extend(i.yAxis,e.yaxis)]:e.yaxis=KBe.extendArray(e.yaxis,i.yAxis);let n=!1;e.yaxis.forEach(e=>{e.logarithmic&&(n=!0)});let s=e.series;return t&&!s&&(s=t.config.series),n&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map((t,a)=>{if(t.name||(s[a].name=`series-${a+1}`),e.yaxis[a])return e.yaxis[a].seriesName=s[a].name,e.yaxis[a];{const t=KBe.extend(i.yAxis,e.yaxis[0]);return t.show=!1,t}})),n&&s.length>1&&(s.length,e.yaxis.length),e}extendAnnotations(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}extendYAxisAnnotations(e){const t=new i$e;return e.annotations.yaxis=KBe.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}extendXAxisAnnotations(e){const t=new i$e;return e.annotations.xaxis=KBe.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}extendPointAnnotations(e){const t=new i$e;return e.annotations.points=KBe.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}checkForDarkTheme(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}handleUserInputErrors(e){const t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(t.yaxis[0].reversed=!1),t}}const n$e=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],s$e=[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24];class o$e{initGlobalVars(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.dataWasParsed=!1,e.originalSeries=null,e.maxValsInArrayIndex=0,e.yValueDecimal=0,e.allSeriesHasEqualX=!0,e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0,e.disableZoomIn=!1,e.disableZoomOut=!1,e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.rotateXLabels=!1,e.overlappingXLabels=!1,e.radialSize=0,e.barHeight=0,e.barWidth=0,e.animationEnded=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.lastDrawnDataLabelsIndexes=[],e.textRectsCache=new Map,e.domCache=new Map,e.dimensionCache={},e.cachedSelectors={},e.seriesNS||this._attachNamespaces(e)}_attachNamespaces(e){const t=(t,i,a=i)=>{Object.defineProperty(t,a,{get:()=>e[i],set(t){e[i]=t},enumerable:!0,configurable:!0})},i={};t(i,"series","data");for(const o of["seriesNames","seriesX","seriesZ","seriesXvalues","seriesYvalues","seriesGoals","seriesLog","seriesColors","seriesPercent","seriesTotals","stackedSeriesTotals","seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC","seriesRangeStart","seriesRangeEnd","seriesRange","seriesYAxisMap","seriesYAxisReverseMap","seriesGroups","barGroups","lineGroups","areaGroups","originalSeries","collapsedSeries","collapsedSeriesIndices","ancillaryCollapsedSeries","ancillaryCollapsedSeriesIndices","allSeriesCollapsed","risingSeries","previousPaths","ignoreYAxisIndexes","labels","categoryLabels","timescaleLabels","groups"])t(i,o);Object.defineProperty(e,"seriesNS",{value:i,writable:!1,enumerable:!1,configurable:!0});const a={};for(const o of["minX","maxX","initialMinX","initialMaxX","minY","maxY","minYArr","maxYArr","minZ","maxZ","minDate","maxDate","minXDiff","xRange","yRange","zRange","xAxisScale","yAxisScale","xAxisTicksPositions","xTickAmount","multiAxisTickAmount","dataPoints","maxValsInArrayIndex","isXNumeric","isMultipleYAxis","isMultiLineX","isDataXYZ","dataFormatXNumeric","allSeriesHasEqualX","hasNullValues","dataWasParsed","hasXaxisGroups","hasSeriesGroups","skipFirstTimelinelabel","skipLastTimelinelabel","yValueDecimal","invalidLogScale","noLabelsProvided"])t(a,o);Object.defineProperty(e,"axes",{value:a,writable:!1,enumerable:!1,configurable:!0});const n={};for(const o of["svgWidth","svgHeight","gridWidth","gridHeight","translateX","translateY","translateXAxisX","translateXAxisY","translateYAxisX","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yAxisLabelsWidth","yAxisWidths","yLabelsCoords","yTitleCoords","padHorizontal","barPadForNumericAxis","rotateXLabels","scaleX","scaleY","radialSize","defaultLabels","overlappingXLabels"])t(n,o);Object.defineProperty(e,"layout",{value:n,writable:!1,enumerable:!1,configurable:!0});const s={};for(const o of["domCache","dimensionCache","cachedSelectors","textRectsCache","pointsArray","dataLabelsRects","lastDrawnDataLabelsIndexes","delayedElements","resizeTimer","selectionResizeTimer","resizeObserver"])t(s,o);Object.defineProperty(e,"cache",{value:s,writable:!1,enumerable:!1,configurable:!0})}globalVars(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},LINE_HEIGHT_RATIO:1.618,axisCharts:!0,isSlopeChart:e.plotOptions.line.isSlopeChart,comboCharts:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],ignoreYAxisIndexes:[],isDirty:!1,isExecCalled:!1,dataChanged:!1,resized:!1,invalidLogScale:!1,hasNullValues:!1,columnSeries:null,yaxis:null,total:0,shouldAnimate:!0,previousPaths:[],svgWidth:0,svgHeight:0,defaultLabels:!1,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateYAxisX:[],yAxisWidths:[],tooltip:null,resizeObserver:null,locale:{},memory:{methodsToExec:[]},niceScaleAllowedMagMsd:n$e,niceScaleDefaultTicks:s$e,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}init(e){const t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=KBe.extend({},e),t.initialSeries=KBe.clone(e.series),t.lastXAxis=KBe.clone(t.initialConfig.xaxis),t.lastYAxis=KBe.clone(t.initialConfig.yaxis),t}}class r$e{constructor(e){this.opts=e}init(){const e=new a$e(this.opts).init({responsiveOverride:!1}),t=(new o$e).init(e),i={config:e,globals:t,dom:{},interact:{zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,zoomed:!1,selection:void 0,visibleXRange:void 0,selectedDataPoints:[],mousedown:!1,clientX:null,clientY:null,lastClientPosition:{},lastWheelExecution:0,capturedSeriesIndex:-1,capturedDataPointIndex:-1,disableZoomIn:!1,disableZoomOut:!1,isTouchDevice:!!UBe.isBrowser()&&("ontouchstart"in window||navigator.maxTouchPoints>0)},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},labelData:{labels:[],categoryLabels:[],timescaleLabels:[],hasXaxisGroups:!1,groups:[],seriesGroups:[]},axisFlags:{isXNumeric:!1,dataFormatXNumeric:!1,isDataXYZ:!1,isRangeData:!1,isRangeBar:!1,isMultiLineX:!1,noLabelsProvided:!1,dataWasParsed:!1},seriesData:{series:[],seriesNames:[],seriesX:[],seriesZ:[],seriesColors:[],seriesGoals:[],stackedSeriesTotals:[],stackedSeriesTotalsByGroups:[]},layout:{gridHeight:0,gridWidth:0,translateX:0,translateY:0,translateXAxisX:0,translateXAxisY:0,rotateXLabels:!1,xAxisHeight:0,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yLabelsCoords:[],yTitleCoords:[]}};Object.defineProperty(t,"dom",{get:()=>i.dom,set(e){i.dom=e},enumerable:!1,configurable:!0});for(const a of["xLabelFormatter","yLabelFormatters","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","legendFormatter"])Object.defineProperty(t,a,{get:()=>i.formatters[a],set(e){i.formatters[a]=e},enumerable:!1,configurable:!0});for(const a of["zoomEnabled","panEnabled","selectionEnabled","zoomed","selection","visibleXRange","selectedDataPoints","mousedown","clientX","clientY","lastClientPosition","lastWheelExecution","capturedSeriesIndex","capturedDataPointIndex","disableZoomIn","disableZoomOut","isTouchDevice"])Object.defineProperty(t,a,{get:()=>i.interact[a],set(e){i.interact[a]=e},enumerable:!1,configurable:!0});for(const a of["gridHeight","gridWidth","translateX","translateY","translateXAxisX","translateXAxisY","rotateXLabels","xAxisHeight","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yLabelsCoords","yTitleCoords"])Object.defineProperty(t,a,{get:()=>i.layout[a],set(e){i.layout[a]=e},enumerable:!1,configurable:!0});for(const a of["series","seriesNames","seriesX","seriesZ","seriesColors","seriesGoals","stackedSeriesTotals","stackedSeriesTotalsByGroups"])Object.defineProperty(t,a,{get:()=>i.seriesData[a],set(e){i.seriesData[a]=e},enumerable:!1,configurable:!0});for(const a of["isXNumeric","dataFormatXNumeric","isDataXYZ","isRangeData","isRangeBar","isMultiLineX","noLabelsProvided","dataWasParsed"])Object.defineProperty(t,a,{get:()=>i.axisFlags[a],set(e){i.axisFlags[a]=e},enumerable:!1,configurable:!0});for(const a of["labels","categoryLabels","timescaleLabels","hasXaxisGroups","groups","seriesGroups"])Object.defineProperty(t,a,{get:()=>i.labelData[a],set(e){i.labelData[a]=e},enumerable:!1,configurable:!0});for(const a of["seriesRangeStart","seriesRangeEnd","seriesRange"])Object.defineProperty(t,a,{get:()=>i.rangeData[a],set(e){i.rangeData[a]=e},enumerable:!1,configurable:!0});for(const a of["seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC"])Object.defineProperty(t,a,{get:()=>i.candleData[a],set(e){i.candleData[a]=e},enumerable:!1,configurable:!0});return i}}class l$e{constructor(e){this.w=e}static checkComboSeries(e,t){let i=!1,a=0,n=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach(e=>{"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||a++,void 0!==e.type&&e.type!==t&&n++}),n>0&&(i=!0),{comboBarCount:a,comboCharts:i}}getStackedSeriesTotals(e=[]){const t=this.w,i=[];if(0===t.seriesData.series.length)return i;for(let a=0;a<t.seriesData.series[t.globals.maxValsInArrayIndex].length;a++){let n=0;for(let i=0;i<t.seriesData.series.length;i++)void 0!==t.seriesData.series[i][a]&&-1===e.indexOf(i)&&(n+=t.seriesData.series[i][a]);i.push(n)}return i}getSeriesTotalByIndex(e=null){if(null===e)return this.w.config.series.reduce((e,t)=>e+t,0);{const t=this.w.seriesData.series[e];return Array.isArray(t)?t.reduce((e,t)=>e+t,0):null!=t?t:0}}getStackedSeriesTotalsByGroups(){const e=this.w,t=[];return e.labelData.seriesGroups.forEach(i=>{const a=[];e.config.series.forEach((t,n)=>{i.indexOf(e.seriesData.seriesNames[n])>-1&&a.push(n)});const n=e.seriesData.series.map((e,t)=>-1===a.indexOf(t)?t:-1).filter(e=>-1!==e);t.push(this.getStackedSeriesTotals(n))}),t}setSeriesYAxisMappings(){const e=this.w.globals,t=this.w.config;let i=[];const a=[],n=[],s=this.w.seriesData.series.length>t.yaxis.length||t.yaxis.some(e=>Array.isArray(e.seriesName));t.series.forEach((e,t)=>{n.push(t),a.push(null)}),t.yaxis.forEach((e,t)=>{i[t]=[]});const o=[];t.yaxis.forEach((e,a)=>{let r=!1;if(e.seriesName){let o=[];Array.isArray(e.seriesName)?o=e.seriesName:o.push(e.seriesName),o.forEach(e=>{t.series.forEach((t,o)=>{if(t.name===e){let e=o;a===o||s?(!s||n.indexOf(o)>-1)&&i[a].push([a,o]):(i[o].push([o,a]),e=a),r=!0,e=n.indexOf(e),-1!==e&&n.splice(e,1)}})})}r||o.push(a)}),i=i.map(e=>{const t=[];return e.forEach(e=>{a[e[1]]=e[0],t.push(e[1])}),t});let r=t.yaxis.length-1;for(let l=0;l<o.length&&(r=o[l],i[r]=[],n);l++){const e=n[0];n.shift(),i[r].push(e),a[e]=r}n.forEach(e=>{i[r].push(e),a[e]=r}),e.seriesYAxisMap=i.map(e=>e),e.seriesYAxisReverseMap=a.map(e=>e),e.seriesYAxisMap.forEach((e,i)=>{e.forEach(e=>{if(t.series[e]&&void 0===t.series[e].group){t.series[e].group="apexcharts-axis-".concat(i.toString())}})})}isSeriesNull(e=null){let t=[];const i=this.w.config.series;return t=null===e?i.filter(e=>null!==e):i[e]&&Array.isArray(i[e].data)?i[e].data.filter(e=>null!==e):null!==i[e]&&void 0!==i[e]?[i[e]]:[],0===t.length}seriesHaveSameValues(e){const t=this.w.seriesData.series[e];return!Array.isArray(t)||t.every((e,t,i)=>e===i[0])}getCategoryLabels(e){const t=this.w;let i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map(e=>t.config.xaxis.labels.formatter(e-t.globals.minX+1))),i}getLargestSeries(){const e=this.w;e.globals.maxValsInArrayIndex=e.seriesData.series.map(e=>e.length).indexOf(Math.max.apply(Math,e.seriesData.series.map(e=>e.length)))}getLargestMarkerSize(){const e=this.w;let t=0;return e.globals.markers.size.forEach(e=>{t=Math.max(t,e)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(e=>{t=Math.max(t,e.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}getSeriesTotals(){const e=this.w;e.globals.seriesTotals=e.seriesData.series.map(e=>{let t=0;if(Array.isArray(e))for(let i=0;i<e.length;i++)t+=e[i];else t+=e;return t})}getSeriesTotalsXRange(e,t){const i=this.w;return i.seriesData.series.map((a,n)=>{let s=0;for(let o=0;o<a.length;o++)i.seriesData.seriesX[n][o]>e&&i.seriesData.seriesX[n][o]<t&&(s+=a[o]);return s})}getPercentSeries(){const e=this.w;e.globals.seriesPercent=e.seriesData.series.map(t=>{const i=[];if(Array.isArray(t))for(let a=0;a<t.length;a++){const n=e.seriesData.stackedSeriesTotals[a];let s=0;n&&(s=100*t[a]/n),i.push(s)}else{const a=100*t/e.globals.seriesTotals.reduce((e,t)=>e+t,0);i.push(a)}return i})}getCalculatedRatios(){const e=this.w,t=e.globals,i=[];let a=0,n=0,s=0,o=0,r=[],l=.1,c=0;if(t.yRange=[],t.isMultipleYAxis)for(let d=0;d<t.minYArr.length;d++)t.yRange.push(Math.abs(t.minYArr[d]-t.maxYArr[d])),r.push(0);else t.yRange.push(Math.abs(t.minY-t.maxY));t.xRange=Math.abs(t.maxX-t.minX),t.zRange=Math.abs(t.maxZ-t.minZ);for(let d=0;d<t.yRange.length;d++)i.push(t.yRange[d]/this.w.layout.gridHeight);if(n=t.xRange/this.w.layout.gridWidth,a=t.yRange/this.w.layout.gridWidth,s=t.xRange/this.w.layout.gridHeight,o=t.zRange/this.w.layout.gridHeight*16,o||(o=1),t.minY!==Number.MIN_VALUE&&0!==Math.abs(t.minY)){t.hasNegs=!0}if(e.globals.seriesYAxisReverseMap.length>0){const s=(t,a)=>{const n=e.config.yaxis[e.globals.seriesYAxisReverseMap[a]],s=t<0?-1:1;return t=Math.abs(t),n.logarithmic&&(t=this.getBaseLog(n.logBase,t)),-s*t/i[a]};if(t.isMultipleYAxis){r=[];for(let e=0;e<i.length;e++)r.push(s(t.minYArr[e],e))}else r=[],r.push(s(t.minY,0)),t.minY!==Number.MIN_VALUE&&0!==Math.abs(t.minY)&&(l=-t.minY/a,c=t.minX/n)}else r=[],r.push(0),l=0,c=0;return{yRatio:i,invertedYRatio:a,zRatio:o,xRatio:n,invertedXRatio:s,baseLineInvertedY:l,baseLineY:r,baseLineX:c}}getLogSeries(e){const t=this.w;return t.globals.seriesLog=e.map((e,i)=>{const a=t.globals.seriesYAxisReverseMap[i];return t.config.yaxis[a]&&t.config.yaxis[a].logarithmic?e.map(e=>null===e?null:this.getLogVal(t.config.yaxis[a].logBase,e,i)):e}),t.globals.invalidLogScale?e:t.globals.seriesLog}getLogValAtSeriesIndex(e,t){if(null===e)return null;const i=this.w,a=i.globals.seriesYAxisReverseMap[t];return i.config.yaxis[a]&&i.config.yaxis[a].logarithmic?this.getLogVal(i.config.yaxis[a].logBase,e,t):e}getBaseLog(e,t){return Math.log(t)/Math.log(e)}getLogVal(e,t,i){if(t<=0)return 0;const a=this.w,n=0===a.globals.minYArr[i]?-1:this.getBaseLog(e,a.globals.minYArr[i]),s=(0===a.globals.maxYArr[i]?0:this.getBaseLog(e,a.globals.maxYArr[i]))-n;if(t<1)return t/s;return(this.getBaseLog(e,t)-n)/s}getLogYRatios(e){const t=this.w,i=this.w.globals,a=i;return a.yLogRatio=e.slice(),a.logYRange=i.yRange.map((e,n)=>{const s=t.globals.seriesYAxisReverseMap[n];if(t.config.yaxis[s]&&this.w.config.yaxis[s].logarithmic){let e=-Number.MAX_VALUE,s=Number.MIN_VALUE,o=1;return i.seriesLog.forEach((i,a)=>{i.forEach(i=>{t.config.yaxis[a]&&t.config.yaxis[a].logarithmic&&(e=Math.max(i,e),s=Math.min(i,s))})}),o=Math.pow(i.yRange[n],Math.abs(s-e)/i.yRange[n]),a.yLogRatio[n]=o/this.w.layout.gridHeight,o}}),a.invalidLogScale?e.slice():a.yLogRatio}static extendArrayProps(e,t,i){var a,n;return(null==t?void 0:t.yaxis)&&(t=e.extendYAxis(t,i)),(null==t?void 0:t.annotations)&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(null==(a=null==t?void 0:t.annotations)?void 0:a.xaxis)&&(t=e.extendXAxisAnnotations(t)),(null==(n=null==t?void 0:t.annotations)?void 0:n.points)&&(t=e.extendPointAnnotations(t))),t}drawSeriesByGroup(e,t,i,a){const n=this.w,s=[];return e.series.length>0&&t.forEach(t=>{const o=[],r=[];e.i.forEach((i,a)=>{n.config.series[i].group===t&&(o.push(e.series[a]),r.push(i))}),o.length>0&&s.push(a.draw(o,i,r))}),s}}const c$e="http://www.w3.org/2000/svg";function d$e(e){return 1-Math.pow(1-e,3)}let u$e=null;function p$e(e,t,i){if(!UBe.isBrowser())return!1;if(i.globals.dataChanged||i.globals.resized)return!1;const a=i.config.chart.animations;if(!a||!1===a.enabled)return!1;const n=i.config.chart.type;if("line"!==n&&"area"!==n&&"rangeArea"!==n)return!1;if(!(i.layout.gridWidth>0))return!1;const s=2*(a.speed||800),o=Math.max(0,Math.min(1,t/i.layout.gridWidth)),r=(1-Math.cbrt(1-o))*s,l=e.node.style;l.opacity="0";let c=null;const d=e=>{null===c&&(c=e),e-c>=r?l.opacity="1":qBe.requestAnimationFrame(d)};return qBe.requestAnimationFrame(d),!0}function h$e(e){const t=e.config.chart.animations;t&&!1!==t.respectReducedMotion&&function(){if(!UBe.isBrowser())return!1;try{return u$e||(u$e=window.matchMedia("(prefers-reduced-motion: reduce)")),!!u$e.matches}catch(e){return!1}}()&&(t.enabled=!1,t.dynamicAnimation&&(t.dynamicAnimation.enabled=!1))}function f$e(e){const t=e.style,i=e.index||0,a="number"==typeof e.baseDelay?e.baseDelay:40,n=e.row||0,s=e.col||0,o=e.groupIndex||0,r=e.perGroup||1,l=e.centerDistance||0;switch(t){case"none":return 0;case"diagonal":return(n+s)*a;case"group":return o*a+i%r*(a/4);case"centroid":return l*a*(i+1);default:return i*a}}class g$e{constructor(e,t){this.w=e,this.ctx=t}animateLine(e,t,i,a){e.attr(t).animate(a).attr(i)}animateMarker(e,t,i,a){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(()=>{a()})}animatePop(e,{speed:t,delay:i=0,onComplete:a}){const n=this.w;if(!UBe.isBrowser()||!n.globals.shouldAnimate||t<1)return void(a&&a());const s=e.node.style;s.transformBox="fill-box",s.transformOrigin="center",s.transform="scale(0)",s.opacity="0";const o=performance.now()+i,r=e=>{const i=Math.max(0,Math.min(1,(e-o)/t));s.transform=`scale(${function(e){const t=1.70158;return 1+2.70158*Math.pow(e-1,3)+t*Math.pow(e-1,2)}(i)})`,s.opacity=String(Math.min(1,2*i)),i<1?qBe.requestAnimationFrame(r):(s.transform="",s.transformOrigin="",s.transformBox="",s.opacity="",a&&a())};qBe.requestAnimationFrame(r)}animateRect(e,t,i,a,n,s=0){e.attr(t).animate(a,s).attr(i).after(()=>n())}animatePathsGradually(e){const{el:t,realIndex:i,j:a,fill:n,pathFrom:s,pathTo:o,speed:r,delay:l}=e,c=this.w;let d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(d=0),this.morphSVG(t,i,a,"line"!==c.config.chart.type||c.globals.comboCharts?n:"stroke",s,o,r,l*d)}showDelayedElements(){this.w.globals.delayedElements.forEach(e=>{const t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}animationCompleted(e){const t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}animateDraw(e,{realIndex:t,j:i,isFill:a,isLast:n,speed:s,delay:o,mask:r}){const l=this.w,c=this,d=()=>{n&&l.globals.shouldAnimate&&c.animationCompleted(e),c.showDelayedElements()};if(!UBe.isBrowser()||!l.globals.shouldAnimate||s<1)return void d();const u=e.node,p=()=>{const e=r&&"radial"===r.type,n=l.layout.gridWidth+8,c=r&&r.cx||0,p=r&&r.cy||0,h=(r&&r.r||l.layout.gridWidth/2)+4,f=`apexDrawMask${l.globals.cuid}-${t}-${null!=i?i:0}-${a?"f":"s"}`,g=qBe.createElementNS(c$e,"mask");let m;if(g.setAttribute("id",f),g.setAttribute("maskUnits","userSpaceOnUse"),e){const e=h;g.setAttribute("x",String(c-e)),g.setAttribute("y",String(p-e)),g.setAttribute("width",String(2*e)),g.setAttribute("height",String(2*e)),m=qBe.createElementNS(c$e,"circle"),m.setAttribute("cx",String(c)),m.setAttribute("cy",String(p)),m.setAttribute("r","0"),m.setAttribute("fill","#fff")}else g.setAttribute("x",String(-4)),g.setAttribute("y",String(-4)),g.setAttribute("width",String(n)),g.setAttribute("height",String(l.layout.gridHeight+8)),m=qBe.createElementNS(c$e,"rect"),m.setAttribute("x",String(-4)),m.setAttribute("y",String(-4)),m.setAttribute("width","0"),m.setAttribute("height",String(l.layout.gridHeight+8)),m.setAttribute("fill","#fff");g.appendChild(m),l.dom.elDefs.node.appendChild(g),u.setAttribute("mask",`url(#${f})`);const _=performance.now()+(o||0),v=t=>{const i=Math.max(0,Math.min(1,(t-_)/s)),a=d$e(i);e?m.setAttribute("r",String(a*h)):m.setAttribute("width",String(a*n)),i<1?qBe.requestAnimationFrame(v):(u.removeAttribute("mask"),g.parentNode&&g.parentNode.removeChild(g),d())};qBe.requestAnimationFrame(v)};qBe.requestAnimationFrame(()=>{if(a)return void p();const e=u.getAttribute("stroke-dasharray");if(!!e&&"0"!==e&&""!==e)return void p();let t=0;try{"function"==typeof u.getTotalLength&&(t=u.getTotalLength())}catch(i){t=0}t?(e=>{u.setAttribute("stroke-dasharray",String(e)),u.setAttribute("stroke-dashoffset",String(e));const t=performance.now()+(o||0),i=a=>{const n=Math.max(0,Math.min(1,(a-t)/s));u.setAttribute("stroke-dashoffset",String(e*(1-d$e(n)))),n<1?qBe.requestAnimationFrame(i):(u.removeAttribute("stroke-dasharray"),u.removeAttribute("stroke-dashoffset"),d())};qBe.requestAnimationFrame(i)})(t):d()})}morphSVG(e,t,i,a,n,s,o,r){const l=this.w;n||(n=e.attr("pathFrom")),s||(s=e.attr("pathTo"));const c=()=>("radar"===l.config.chart.type&&(o=1),`M 0 ${l.layout.gridHeight}`);(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=c()),(!s.trim()||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=c()),l.globals.shouldAnimate||(o=1),e.plot(n).animate(1,r).plot(n).animate(o,r).plot(s).after(()=>{KBe.isNumber(i)?i===l.seriesData.series[l.globals.maxValsInArrayIndex].length-2&&l.globals.shouldAnimate&&this.animationCompleted(e):"none"!==a&&l.globals.shouldAnimate&&(!l.globals.comboCharts&&t===l.seriesData.series.length-1||l.globals.comboCharts)&&this.animationCompleted(e),this.showDelayedElements()})}}class m$e{constructor(e){this.w=e}getDefaultFilter(e,t){const i=this.w;e.unfilter&&e.unfilter(!0),i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}applyFilter(e,t,i){var a,n,s;const o=this.w;if(e.unfilter&&e.unfilter(!0),"none"===i)return void this.getDefaultFilter(e,t);const r=o.config.chart.dropShadow,l="lighten"===i?2:.3;e.filterWith&&(e.filterWith(e=>{e.colorMatrix({type:"matrix",values:`\n ${l} 0 0 0 0\n 0 ${l} 0 0 0\n 0 0 ${l} 0 0\n 0 0 0 1 0\n `,in:"SourceGraphic",result:"brightness"}),r.enabled&&this.addShadow(e,t,r,"brightness")}),r.noUserSpaceOnUse||null==(n=null==(a=e.filterer())?void 0:a.node)||n.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(s=e.filterer())?void 0:s.node))}addShadow(e,t,i,a){var n;const s=this.w;let{blur:o,top:r,left:l,color:c,opacity:d}=i;if(c=Array.isArray(c)?c[t]:c,(null==(n=s.config.chart.dropShadow.enabledOnSeries)?void 0:n.length)>0&&-1===s.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;e.offset({in:a,dx:l,dy:r,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:o,result:"blur"}),e.flood({"flood-color":c,"flood-opacity":d,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",a])}dropShadow(e,t,i=0){var a,n,s,o,r;const l=this.w;return e.unfilter&&e.unfilter(!0),KBe.isMsEdge()&&"radialBar"===l.config.chart.type||(null==(a=l.config.chart.dropShadow.enabledOnSeries)?void 0:a.length)>0&&-1===(null==(n=l.config.chart.dropShadow.enabledOnSeries)?void 0:n.indexOf(i))||e.filterWith&&(e.filterWith(e=>{this.addShadow(e,i,t,"SourceGraphic")}),t.noUserSpaceOnUse||null==(o=null==(s=e.filterer())?void 0:s.node)||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(r=e.filterer())?void 0:r.node)),e}setSelectionFilter(e,t,i){const a=this.w;if(void 0!==a.interact.selectedDataPoints[t]&&a.interact.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);const i=a.config.states.active.filter;"none"!==i&&this.applyFilter(e,t,i.type)}}_scaleFilterSize(e){if(!e)return;(t=>{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.setAttribute(i,t[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}class _$e{constructor(e,t=null){this.w=e,this.ctx=t}roundPathCorners(e,t){function i(e,t,i){var n=t.x-e.x,s=t.y-e.y,o=Math.sqrt(n*n+s*s);return a(e,t,Math.min(1,i/o))}function a(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function n(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function s(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce(function(e,t){var i=t.match(/^([a-zA-Z])(.+)/);return i?(e.push(i[1]),e.push(i[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),r=[];if(o.length>1){var l=s(o[0]),c=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(c=["L",l.x,l.y],o[o.length-1]=c),r.push(o[0]);for(var d=1;d<o.length;d++){var u=r[r.length-1],p=o[d],h=p==c?o[1]:o[d+1];if(h&&u&&u.length>2&&"L"==p[0]&&h.length>2&&"L"==h[0]){var f,g,m=s(u),_=s(p),v=s(h);f=i(_,m,t),g=i(_,v,t),n(p,f),p.origPoint=_,r.push(p);var b=a(f,_,.5),y=a(_,g,.5),x=["C",b.x,b.y,y.x,y.y,g.x,g.y];x.origPoint=_,r.push(x)}else r.push(p)}if(c){var S=s(r[r.length-1]);r.push(["Z"]),n(r[0],S)}}else r=o;return r.reduce(function(e,t){return e+t.join(" ")+" "},"")}drawLine(e,t,i,a,n="#a8a8a8",s=0,o=null,r="butt"){return this.w.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:a,stroke:n,"stroke-dasharray":s,"stroke-width":o,"stroke-linecap":r})}drawRect(e=0,t=0,i=0,a=0,n=0,s="#fefefe",o=1,r=null,l=null,c=0){const d=this.w.dom.Paper.rect();return d.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,rx:n,ry:n,opacity:o,"stroke-width":null!==r?r:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",s),d}drawPolygon(e,t="#e1e1e1",i=1,a="none"){return this.w.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":i})}drawCircle(e,t=null){e<0&&(e=0);const i=this.w.dom.Paper.circle(2*e);return null!==t&&i.attr(t),i}drawPath({d:e="",stroke:t="#a8a8a8",strokeWidth:i=1,fill:a,fillOpacity:n=1,strokeOpacity:s=1,classes:o,strokeLinecap:r=null,strokeDashArray:l=0}){const c=this.w;null===r&&(r=c.config.stroke.lineCap),(e.indexOf("undefined")>-1||e.indexOf("NaN")>-1)&&(e=`M 0 ${c.layout.gridHeight}`);return c.dom.Paper.path(e).attr({fill:a,"fill-opacity":n,stroke:t,"stroke-opacity":s,"stroke-linecap":r,"stroke-width":i,"stroke-dasharray":l,class:o})}group(e=null){const t=this.w.dom.Paper.group();return null!==e&&t.attr(e),t}move(e,t){return["M",e,t].join(" ")}line(e,t,i=null){return"H"===i?[" H",e].join(" "):"V"===i?[" V",t].join(" "):[" L",e,t].join(" ")}curve(e,t,i,a,n,s){return["C",e,t,i,a,n,s].join(" ")}quadraticCurve(e,t,i,a){return["Q",e,t,i,a].join(" ")}arc(e,t,i,a,n,s,o,r=!1){let l="A";r&&(l="a");return[l,e,t,i,a,n,s,o].join(" ")}renderPaths({j:e,realIndex:t,pathFrom:i,pathTo:a,stroke:n,strokeWidth:s,strokeLinecap:o,fill:r,animationDelay:l,initialSpeed:c,dataChangeSpeed:d,className:u,chartType:p,shouldClipToGrid:h=!0,bindEventsOnPaths:f=!0,drawShadow:g=!0,drawMask:m=null}){const _=this.w,v=new m$e(this.w),b=new g$e(this.w,void 0),y=this.w.config.chart.animations.enabled,x=y&&this.w.config.chart.animations.dynamicAnimation.enabled;if(i&&i.startsWith("M 0 0")&&a){const e=a.match(/^M\s+[\d.-]+\s+[\d.-]+/);e&&(i=i.replace(/^M\s+0\s+0/,e[0]))}let S;const w=!!(y&&!_.globals.resized||x&&_.globals.dataChanged&&_.globals.shouldAnimate),C="string"==typeof u&&(u.indexOf("apexcharts-line")>-1||u.indexOf("apexcharts-area")>-1||u.indexOf("apexcharts-rangeArea")>-1||u.indexOf("apexcharts-radar")>-1),E=!(!y||_.globals.resized||_.globals.dataChanged||!C);w&&!E?S=i:(S=a,w||(_.globals.animationEnded=!0));const k=_.config.stroke.dashArray;let T=0;T=Array.isArray(k)?k[t]:_.config.stroke.dashArray;const A=this.drawPath({d:S,stroke:n,strokeWidth:s,fill:r,fillOpacity:1,classes:u,strokeLinecap:o,strokeDashArray:T});A.attr("index",t),h&&("bar"===p&&!_.globals.isBarHorizontal||_.globals.comboCharts?A.attr({"clip-path":`url(#gridRectBarMask${_.globals.cuid})`}):A.attr({"clip-path":`url(#gridRectMask${_.globals.cuid})`})),_.config.chart.dropShadow.enabled&&g&&v.dropShadow(A,_.config.chart.dropShadow,t),f&&(A.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,A)),A.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,A)),A.node.addEventListener("mousedown",this.pathMouseDown.bind(this,A))),A.attr({pathTo:a,pathFrom:i});const R={el:A,j:e,realIndex:t,pathFrom:i,pathTo:a,fill:r,strokeWidth:s,delay:l};if(!y||_.globals.resized||_.globals.dataChanged)!_.globals.resized&&_.globals.dataChanged||b.showDelayedElements();else if(E){const i=2*c,a="none"===n||0===s,o=_.seriesData.series.length,r=!!_.globals.comboCharts||t===o-1;b.animateDraw(A,{realIndex:t,j:e,isFill:a,isLast:r,speed:i,delay:0,mask:m})}else b.animatePathsGradually($Be(BBe({},R),{speed:c}));return _.globals.dataChanged&&x&&w&&b.animatePathsGradually($Be(BBe({},R),{speed:d})),A}drawPattern(e,t,i,a="#a8a8a8",n=0){return this.w.dom.Paper.pattern(t,i,s=>{"horizontalLines"===e?s.line(0,0,i,0).stroke({color:a,width:n+1}):"verticalLines"===e?s.line(0,0,0,t).stroke({color:a,width:n+1}):"slantedLines"===e?s.line(0,0,t,i).stroke({color:a,width:n}):"squares"===e?s.rect(t,i).fill("none").stroke({color:a,width:n}):"circles"===e&&s.circle(t).fill("none").stroke({color:a,width:n})})}drawGradient(e,t,i,a,n,s=null,o=null,r=[],l=0){const c=this.w;let d;t.length<9&&0===t.indexOf("#")&&(t=KBe.hexToRgba(t,a)),i.length<9&&0===i.indexOf("#")&&(i=KBe.hexToRgba(i,n));let u=0,p=1,h=1,f=null;null!==o&&(u=void 0!==o[0]?o[0]/100:0,p=void 0!==o[1]?o[1]/100:1,h=void 0!==o[2]?o[2]/100:1,f=void 0!==o[3]?o[3]/100:null);const g=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(d=r&&0!==r.length?c.dom.Paper.gradient(g?"radial":"linear",e=>{(Array.isArray(r[l])?r[l]:r).forEach(t=>{e.stop(t.offset/100,t.color,t.opacity)})}):c.dom.Paper.gradient(g?"radial":"linear",e=>{e.stop(u,t,a),e.stop(p,i,n),e.stop(h,i,n),null!==f&&e.stop(f,t,a)}),g){const e=c.layout.gridWidth/2,t=c.layout.gridHeight/2;"bubble"!==c.config.chart.type?d.attr({gradientUnits:"userSpaceOnUse",cx:e,cy:t,r:s}):d.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?d.from(0,0).to(0,1):"diagonal"===e?d.from(0,0).to(1,1):"horizontal"===e?d.from(0,1).to(1,1):"diagonal2"===e&&d.from(1,0).to(0,1);return d}getTextBasedOnMaxWidth({text:e,maxWidth:t,fontSize:i,fontFamily:a}){const n=this.getTextRects(e,i,a,""),s=n.width/e.length,o=Math.floor(t/s);return t<n.width?e.slice(0,o-3)+"...":e}drawText({x:e,y:t,text:i,textAnchor:a,fontSize:n,fontFamily:s,fontWeight:o,foreColor:r,opacity:l,maxWidth:c,cssClass:d="",isPlainText:u=!0,dominantBaseline:p="auto"}){const h=this.w;void 0===i&&(i="");let f=i;a||(a="start"),r&&r.length||(r=h.config.chart.foreColor),s=s||h.config.chart.fontFamily,o=o||"regular";const g={maxWidth:c,fontSize:n=n||"11px",fontFamily:s};let m;return Array.isArray(i)?m=h.dom.Paper.text(e=>{for(let t=0;t<i.length;t++)f=i[t],c&&(f=this.getTextBasedOnMaxWidth(BBe({text:i[t]},g))),0===t?e.tspan(f):e.tspan(f).newLine()}):(c&&(f=this.getTextBasedOnMaxWidth(BBe({text:i},g))),m=u?h.dom.Paper.plain(i):h.dom.Paper.text(e=>e.tspan(f))),m.attr({x:e,y:t,"text-anchor":a,"dominant-baseline":p,"font-size":n,"font-family":s,"font-weight":o,fill:r,class:"apexcharts-text "+d}),m.node.style.fontFamily=s,m.node.style.opacity=l,m}getMarkerPath(e,t,i,a){let n="";switch(i){case"cross":n=`M ${e-(a/=1.4)} ${t-a} L ${e+a} ${t+a} M ${e-a} ${t+a} L ${e+a} ${t-a}`;break;case"plus":n=`M ${e-(a/=1.12)} ${t} L ${e+a} ${t} M ${e} ${t-a} L ${e} ${t+a}`;break;case"star":case"sparkle":{let s=5;a*=1.15,"sparkle"===i&&(a/=1.1,s=4);const o=Math.PI/s;for(let i=0;i<=2*s;i++){const s=i*o,r=i%2==0?a:a/2;n+=(0===i?"M":"L")+(e+r*Math.sin(s))+","+(t-r*Math.cos(s))}n+="Z";break}case"triangle":n=`M ${e} ${t-a} \n L ${e+a} ${t+a} \n L ${e-a} ${t+a} \n Z`;break;case"square":case"rect":n=`M ${e-(a/=1.125)} ${t-a} \n L ${e+a} ${t-a} \n L ${e+a} ${t+a} \n L ${e-a} ${t+a} \n Z`;break;case"diamond":n=`M ${e} ${t-(a*=1.05)} \n L ${e+a} ${t} \n L ${e} ${t+a} \n L ${e-a} ${t} \n Z`;break;case"line":n=`M ${e-(a/=1.1)} ${t} \n L ${e+a} ${t}`;break;default:n=`M ${e}, ${t} \n m -${(a*=2)/2}, 0 \n a ${a/2},${a/2} 0 1,0 ${a},0 \n a ${a/2},${a/2} 0 1,0 -${a},0`}return n}drawMarkerShape(e,t,i,a,n){const s=this.drawPath({d:this.getMarkerPath(e,t,i,a),stroke:n.pointStrokeColor,strokeDashArray:n.pointStrokeDashArray,strokeWidth:n.pointStrokeWidth,fill:n.pointFillColor,fillOpacity:n.pointFillOpacity,strokeOpacity:n.pointStrokeOpacity});return s.attr({cx:e,cy:t,shape:n.shape,class:n.class?n.class:""}),s}drawMarker(e,t,i){e=e||0;let a=i.pSize||0;return KBe.isNumber(t)||(a=0,t=0),this.drawMarkerShape(e,t,null==i?void 0:i.shape,a,BBe(BBe({},i),"line"===i.shape||"plus"===i.shape||"cross"===i.shape?{pointStrokeColor:i.pointFillColor,pointStrokeOpacity:i.pointFillOpacity}:{}))}pathMouseEnter(e,t){var i,a;const n=this.w,s=new m$e(this.w),o=parseInt(null!=(i=e.node.getAttribute("index"))?i:"",10),r=parseInt(null!=(a=e.node.getAttribute("j"))?a:"",10);if(!(isNaN(o)||isNaN(r)||("function"==typeof n.config.chart.events.dataPointMouseEnter&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:n}),_$e._fireEvent(n,"dataPointMouseEnter",[t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"===n.config.states.hover.filter.type||n.interact.isTouchDevice))){const t=n.config.states.hover.filter;s.applyFilter(e,o,t.type)}}pathMouseLeave(e,t){var i,a;const n=this.w,s=new m$e(this.w),o=parseInt(null!=(i=e.node.getAttribute("index"))?i:"",10),r=parseInt(null!=(a=e.node.getAttribute("j"))?a:"",10);isNaN(o)||isNaN(r)||("function"==typeof n.config.chart.events.dataPointMouseLeave&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:n}),_$e._fireEvent(n,"dataPointMouseLeave",[t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==n.config.states.hover.filter.type&&s.getDefaultFilter(e,o))}pathMouseDown(e,t){var i,a;const n=this.w,s=new m$e(this.w),o=parseInt(null!=(i=e.node.getAttribute("index"))?i:"",10),r=parseInt(null!=(a=e.node.getAttribute("j"))?a:"",10);if(isNaN(o)||isNaN(r))return;let l="false";if("true"===e.node.getAttribute("selected")){e.node.setAttribute("selected","false");const t=n.interact.selectedDataPoints[o].indexOf(r);t>-1&&n.interact.selectedDataPoints[o].splice(t,1)}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.interact.selectedDataPoints.length>0){n.interact.selectedDataPoints=[];const e=n.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),t=n.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),i=e=>{Array.prototype.forEach.call(e,e=>{e.node.setAttribute("selected","false"),s.getDefaultFilter(e,o)})};i(e),i(t)}e.node.setAttribute("selected","true"),l="true",void 0===n.interact.selectedDataPoints[o]&&(n.interact.selectedDataPoints[o]=[]),n.interact.selectedDataPoints[o].push(r)}if("true"===l){const t=n.config.states.active.filter;if("none"!==t)s.applyFilter(e,o,t.type);else if("none"!==n.config.states.hover.filter&&!n.interact.isTouchDevice){const t=n.config.states.hover.filter;s.applyFilter(e,o,t.type)}}else if("none"!==n.config.states.active.filter.type)if("none"===n.config.states.hover.filter.type||n.interact.isTouchDevice)s.getDefaultFilter(e,o);else{const t=n.config.states.hover.filter;s.applyFilter(e,o,t.type)}"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:r,w:n}),t&&_$e._fireEvent(n,"dataPointSelection",[t,this.ctx,{selectedDataPoints:n.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:r,w:n}])}rotateAroundCenter(e){let t={};e&&"function"==typeof e.getBBox&&(t=e.getBBox());return{x:t.x+t.width/2,y:t.y+t.height/2}}setupEventDelegation(e,t){let i=null;e.node.addEventListener("mouseover",a=>{const n=_$e._findDelegateTarget(a.target,e.node,t);n&&n!==i&&(i&&i.instance&&this.pathMouseLeave(i.instance,a),i=n,n.instance&&this.pathMouseEnter(n.instance,a))}),e.node.addEventListener("mouseout",a=>{if(!i)return;(a.relatedTarget?_$e._findDelegateTarget(a.relatedTarget,e.node,t):null)!==i&&(i&&i.instance&&this.pathMouseLeave(i.instance,a),i=null)}),e.node.addEventListener("mousedown",i=>{const a=_$e._findDelegateTarget(i.target,e.node,t);a&&a.instance&&this.pathMouseDown(a.instance,i)})}static _fireEvent(e,t,i){const a=e.globals.events;if(!a||!Object.prototype.hasOwnProperty.call(a,t))return;const n=a[t];for(let s=0;s<n.length;s++)n[s].apply(null,i)}static _findDelegateTarget(e,t,i){for(;e&&e!==t&&e!==document;){if(e.matches&&e.matches(i))return e;e=e.parentNode}return null}static setAttrs(e,t){for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.setAttribute(i,t[i])}getTextRects(e,t,i,a,n=!0){const s=this.w,o=[e,t,i,a,n].join("\0"),r=s.globals.textRectsCache;if(r&&r.has(o))return r.get(o);const l=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});a&&l.attr("transform",a),s.dom.Paper.add(l);let c=l.bbox();n||(c=l.node.getBoundingClientRect()),l.remove();const d={width:c.width,height:c.height};return r&&r.set(o,d),d}placeTextWithEllipsis(e,t,i){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(let a=t.length-3;a>0;a-=3)if(e.getSubStringLength(0,a)<=i/1.1)return void(e.textContent=t.substring(0,a)+"...");e.textContent="."}}}const v$e="http://www.w3.org/2000/svg";let b$e=class e{constructor(e,t){"object"==typeof e?(this.x=e.x,this.y=e.y):(this.x=e||0,this.y=t||0)}transform(e){return e.apply(this)}clone(){return new e(this.x,this.y)}};class y$e{constructor(e,t,i,a,n,s){this.a=null!=e?e:1,this.b=null!=t?t:0,this.c=null!=i?i:0,this.d=null!=a?a:1,this.e=null!=n?n:0,this.f=null!=s?s:0}rotate(e){const t=e*Math.PI/180,i=Math.cos(t),a=Math.sin(t);return this.multiply(new y$e(i,a,-a,i,0,0))}scale(e,t){return this.multiply(new y$e(e,0,0,null!=t?t:e,0,0))}multiply(e){return new y$e(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)}apply(e){return new b$e(this.a*e.x+this.c*e.y+this.e,this.b*e.x+this.d*e.y+this.f)}}class x$e{constructor(e,t,i,a){this.x=e,this.y=t,this.w=i,this.h=a,this.width=i,this.height=a,this.x2=e+i,this.y2=t+a}}class S$e{constructor(e){this.w=e,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(e){const t=this.w,i=t.config,a=parseInt(String(t.layout.gridWidth),10),n=parseInt(String(t.layout.gridHeight),10),s=a>n?a:n,o=e.image;let r=0,l=0;void 0===e.width&&void 0===e.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(r=i.fill.image.width+1,l=i.fill.image.height):(r=s+1,l=s):(r=e.width,l=e.height);const c=qBe.createElementNS(v$e,"pattern");_$e.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:r+"px",height:l+"px"});const d=qBe.createElementNS(v$e,"image");c.appendChild(d);const u=UBe.isBrowser()?window.SVG:global.SVG;d.setAttributeNS(u.xlink,"href",o),_$e.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:r+"px",height:l+"px"}),d.style.opacity=e.opacity,t.dom.elDefs.node.appendChild(c)}getSeriesIndex(e){const t=this.w,i=t.config.chart.type;return("bar"===i||"rangeBar"===i)&&t.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.seriesData.series.length,this.seriesIndex}computeColorStops(e,t){const i=this.w;let a=null,n=null;for(const r of e)r>=t.threshold?(null===a||r>a)&&(a=r):(null===n||r<n)&&(n=r);null===a&&(a=t.threshold),null===n&&(n=t.threshold);let s=a-t.threshold+(t.threshold-n);0===s&&(s=1);let o=100-(t.threshold-n)/s*100;return o=Math.max(0,Math.min(o,100)),[{offset:o,color:t.colorAboveThreshold,opacity:i.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:i.config.fill.opacity}]}fillPath(e){var t,i,a,n;const s=this.w;this.opts=e;const o=this.w.config;let r,l,c;this.seriesIndex=this.getSeriesIndex(e);const d=o.plotOptions.line.colors.colorAboveThreshold&&o.plotOptions.line.colors.colorBelowThreshold;let u=this.getFillColors()[this.seriesIndex];void 0!==s.seriesData.seriesColors[this.seriesIndex]&&(u=s.seriesData.seriesColors[this.seriesIndex]),"function"==typeof u&&(u=u({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:s}));const p=e.fillType?e.fillType:this.getFillType(this.seriesIndex);let h=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;const f="gradient"===p||d;e.color&&(u=e.color);const g=s.config.series[this.seriesIndex];(null==(i=null==(t=null==g?void 0:g.data)?void 0:t[e.dataPointIndex])?void 0:i.fillColor)&&(u=null==(n=null==(a=null==g?void 0:g.data)?void 0:a[e.dataPointIndex])?void 0:n.fillColor),u||(u="#fff"),void 0!==e.opacity&&null!==e.opacity&&(h=e.opacity);let m=u;KBe.isCSSVariable(u)?m=KBe.applyOpacityToColor(u,h):-1===u.indexOf("rgb")?-1===u.indexOf("#")?m=u:u.length<9&&(m=KBe.hexToRgba(u,h)):u.indexOf("rgba")>-1?h=KBe.getOpacityFromRGBA(u):m=KBe.hexToRgba(KBe.rgb2hex(u),h);const _=KBe.isCSSVariable(u)?KBe.getThemeColor(u):u;if("pattern"===p&&(l=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:l,fillColor:_,defaultColor:m})),f){const t=o.fill.gradient.colorStops?[...o.fill.gradient.colorStops]:[];let i=o.fill.gradient.type;d&&(t[this.seriesIndex]=this.computeColorStops(s.seriesData.series[this.seriesIndex],o.plotOptions.line.colors),i="vertical"),c=this.handleGradientFill({type:i,fillConfig:e.fillConfig,fillColor:_,fillOpacity:h,colorStops:t,i:this.seriesIndex})}if("image"===p){const t=o.fill.image.src,i=e.patternID?e.patternID:"",a=`pattern${s.globals.cuid}${e.seriesNumber+1}${i}`;-1===this.patternIDs.indexOf(a)&&(this.clippedImgArea({opacity:h,image:Array.isArray(t)?e.seriesNumber<t.length?t[e.seriesNumber]:t[0]:t,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:a}),this.patternIDs.push(a)),r=`url(#${a})`}else r=f?c:"pattern"===p?l:m;return e.solid&&(r=m),r}getFillType(e){const t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}getFillColors(){const e=this.w,t=e.config,i=this.opts;let a=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors),void 0!==i.fillColors&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}handlePatternFill({fillConfig:e,patternFill:t,fillColor:i,defaultColor:a}){let n=this.w.config.fill;e&&(n=e);const s=this.opts,o=new _$e(this.w),r=Array.isArray(n.pattern.strokeWidth)?n.pattern.strokeWidth[this.seriesIndex]:n.pattern.strokeWidth,l=i;if(Array.isArray(n.pattern.style))if(void 0!==n.pattern.style[s.seriesNumber]){t=o.drawPattern(n.pattern.style[s.seriesNumber],n.pattern.width,n.pattern.height,l,r)}else t=a;else t=o.drawPattern(n.pattern.style,n.pattern.width,n.pattern.height,l,r);return t}handleGradientFill({type:e,fillColor:t,fillOpacity:i,fillConfig:a,colorStops:n,i:s}){let o=this.w.config.fill;a&&(o=BBe(BBe({},o),a));const r=this.opts,l=new _$e(this.w),c=new KBe;e=e||o.gradient.type;let d,u=t,p=void 0===o.gradient.opacityFrom?i:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[s]:o.gradient.opacityFrom;u.indexOf("rgba")>-1&&(p=KBe.getOpacityFromRGBA(u));let h=void 0===o.gradient.opacityTo?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[s]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)d="dark"===o.gradient.shade?c.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?KBe.rgb2hex(t):t):c.shadeColor(parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?KBe.rgb2hex(t):t);else if(o.gradient.gradientToColors[r.seriesNumber]){const e=o.gradient.gradientToColors[r.seriesNumber];d=e,e.indexOf("rgba")>-1&&(h=KBe.getOpacityFromRGBA(e))}else d=t;if(o.gradient.gradientFrom&&(u=o.gradient.gradientFrom),o.gradient.gradientTo&&(d=o.gradient.gradientTo),o.gradient.inverseColors){const e=u;u=d,d=e}return u.indexOf("rgb")>-1&&(u=KBe.rgb2hex(u)),d.indexOf("rgb")>-1&&(d=KBe.rgb2hex(d)),l.drawGradient(e,u,d,p,h,r.size,o.gradient.stops,n,s)}}class w$e{constructor(e,t){this.w=e,this.ctx=t,this._filters=new m$e(this.w),this._graphics=new _$e(this.w,this.ctx)}setGlobalMarkerSize(){const e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.seriesData.series.length+1)for(let t=0;t<=e.seriesData.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(()=>e.config.markers.size)}plotChartMarkers({pointsPos:e,seriesIndex:t,j:i,pSize:a,alwaysDrawMarker:n=!1,isVirtualPoint:s=!1}){const o=this.w,r=t,l=e;let c=null;const d=new _$e(this.w),u=o.config.markers.discrete&&o.config.markers.discrete.length;if(Array.isArray(l.x))for(let p=0;p<l.x.length;p++){let e,h=i,f=!KBe.isNumber(l.y[p]);0===o.globals.markers.largestSize&&o.globals.hasNullValues&&null!==o.seriesData.series[r][i+1]&&!s&&(f=!0),1===i&&0===p&&(h=0),1===i&&1===p&&(h=1);let g="apexcharts-marker";"line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(g+=" no-pointer-events");if((Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||n||u){f||(g+=` w${KBe.randomId()}`);const i=this.getMarkerConfig({cssClass:g,seriesIndex:t,dataPointIndex:h}),s=o.config.series[r];if(s.data[h]&&(s.data[h].fillColor&&(i.pointFillColor=s.data[h].fillColor),s.data[h].strokeColor&&(i.pointStrokeColor=s.data[h].strokeColor)),void 0!==a&&(i.pSize=a),(l.x[p]<-o.globals.markers.largestSize||l.x[p]>o.layout.gridWidth+o.globals.markers.largestSize||l.y[p]<-o.globals.markers.largestSize||l.y[p]>o.layout.gridHeight+o.globals.markers.largestSize)&&(i.pSize=0),!f){(o.globals.markers.size[t]>0||n||u)&&!c&&(c=d.group({class:n||u?"":"apexcharts-series-markers"}),c.attr("clip-path",`url(#gridRectMarkerMask${o.globals.cuid})`),this.setupMarkerDelegation(c)),e=d.drawMarker(l.x[p],l.y[p],i),e.attr("rel",h),e.attr("j",h),e.attr("index",t),e.node.setAttribute("default-marker-size",i.pSize),p$e(e,l.x[p],o),this._filters.setSelectionFilter(e,t,h),c&&c.add(e)}}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[p],l.y[p]])}return c}getMarkerConfig({cssClass:e,seriesIndex:t,dataPointIndex:i=null,radius:a=null,size:n=null,strokeWidth:s=null}){const o=this.w,r=this.getMarkerStyle(t);let l=null===n?o.globals.markers.size[t]:n;const c=o.config.markers;return null!==i&&c.discrete.length&&c.discrete.map(e=>{e.seriesIndex===t&&e.dataPointIndex===i&&(r.pointStrokeColor=e.strokeColor,r.pointFillColor=e.fillColor,l=e.size,r.pointShape=e.shape)}),{pSize:null===a?l:a,pRadius:null!==a?a:c.radius,pointStrokeWidth:null!==s?s:Array.isArray(c.strokeWidth)?c.strokeWidth[t]:c.strokeWidth,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:r.pointShape||(Array.isArray(c.shape)?c.shape[t]:c.shape),class:e,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[t]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[t]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[t]:c.fillOpacity,seriesIndex:t}}setupMarkerDelegation(e){const t=this.w,i=".apexcharts-marker";this._graphics.setupEventDelegation(e,i),e.node.addEventListener("click",a=>{if(t.config.markers.onClick){_$e._findDelegateTarget(a.target,e.node,i)&&t.config.markers.onClick(a)}}),e.node.addEventListener("dblclick",a=>{if(t.config.markers.onDblClick){_$e._findDelegateTarget(a.target,e.node,i)&&t.config.markers.onDblClick(a)}}),e.node.addEventListener("touchstart",t=>{const a=_$e._findDelegateTarget(t.target,e.node,i);a&&a.instance&&this._graphics.pathMouseDown(a.instance,t)},{passive:!0})}addEvents(e){const t=this.w;e.node.addEventListener("mouseenter",this._graphics.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",this._graphics.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",this._graphics.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",this._graphics.pathMouseDown.bind(this.ctx,e),{passive:!0})}getMarkerStyle(e){const t=this.w,i=t.globals.markers.colors,a=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[e]:a,pointFillColor:Array.isArray(i)?i[e]:i}}}class C$e{constructor(e,t){this.ctx=t,this.w=e,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new g$e(this.w),this.filters=new m$e(this.w),this.fill=new S$e(this.w),this.markers=new w$e(this.w,this.ctx),this.graphics=new _$e(this.w)}draw(e,t,i){const a=this.w,n=this.graphics,s=i.realIndex,o=i.pointsPos,r=i.zRatio,l=i.elParent,c=n.group({class:`apexcharts-series-markers apexcharts-series-${a.config.chart.type}`});if(c.attr("clip-path",`url(#gridRectMarkerMask${a.globals.cuid})`),this.markers.setupMarkerDelegation(c),Array.isArray(o.x))for(let d=0;d<o.x.length;d++){let e=t+1,i=!0;0===t&&0===d&&(e=0),0===t&&1===d&&(e=1);let n=a.globals.markers.size[s];if(r!==1/0){const t=a.config.plotOptions.bubble;n=a.seriesData.seriesZ[s][e],t.zScaling&&(n/=r),t.minBubbleRadius&&n<t.minBubbleRadius&&(n=t.minBubbleRadius),t.maxBubbleRadius&&n>t.maxBubbleRadius&&(n=t.maxBubbleRadius)}const u=o.x[d],p=o.y[d];if(n=n||0,null!==p&&void 0!==a.seriesData.series[s][e]||(i=!1),i){const i=this.drawPoint(u,p,n,s,e,t);c.add(i)}l.add(c)}}drawPoint(e,t,i,a,n,s){const o=this.w,r=a,l=this.anim,c=this.filters,d=this.fill,u=this.markers,p=this.graphics,h=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:r,dataPointIndex:n,radius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[a]&&"bubble"===o.config.series[a].type?i:null});let f=d.fillPath({seriesNumber:a,dataPointIndex:n,color:h.pointFillColor,patternUnits:"objectBoundingBox",value:o.seriesData.series[a][s]});const g=p.drawMarker(e,t,h),m=o.config.series[r];if(m.data[n]&&m.data[n].fillColor&&(f=m.data[n].fillColor),g.attr({fill:f}),o.config.chart.dropShadow.enabled){const e=o.config.chart.dropShadow;c.dropShadow(g,e,a)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{const e=o.config.chart.animations,t=e.speed,i=o.globals.dataPoints||1,a=e.animateGradually,s=a&&!1!==a.enabled?Math.min(20,.5*t/Math.max(1,i)):0,r=f$e({style:s>0?"sequential":"none",index:n,baseDelay:s});l.animatePop(g,{speed:t,delay:r,onComplete:()=>l.animationCompleted(g)})}return g.attr({rel:n,j:n,index:a,"default-marker-size":h.pSize}),c.setSelectionFilter(g,a,n),g.node.classList.add("apexcharts-marker"),g}centerTextInBubble(e){const t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}class E$e{constructor(e,t=null){this.w=e,this.ctx=t}dataLabelsCorrection(e,t,i,a,n,s,o){const r=this.w;let l=!1;const c=new _$e(this.w).getTextRects(i,o),d=c.width,u=c.height;t<0&&(t=0),t>r.layout.gridHeight+u&&(t=r.layout.gridHeight+u/2),void 0===r.globals.dataLabelsRects[a]&&(r.globals.dataLabelsRects[a]=[]),r.globals.dataLabelsRects[a].push({x:e,y:t,width:d,height:u});const p=r.globals.dataLabelsRects[a].length-2,h=void 0!==r.globals.lastDrawnDataLabelsIndexes[a]?r.globals.lastDrawnDataLabelsIndexes[a][r.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==r.globals.dataLabelsRects[a][p]){const i=r.globals.dataLabelsRects[a][h];(e>i.x+i.width||t>i.y+i.height||t+u<i.y||e+d<i.x)&&(l=!0)}return(0===n||s)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}drawDataLabel({type:e,pos:t,i:i,j:a,isRangeStart:n,strokeWidth:s=2}){const o=this.w,r=new _$e(this.w),l=o.config.dataLabels;let c=0,d=0,u=a,p=null;if(-1!==o.globals.collapsedSeriesIndices.indexOf(i)||!l.enabled||!Array.isArray(t.x))return p;p=r.group({class:"apexcharts-data-labels"});for(let h=0;h<t.x.length;h++)if(c=t.x[h]+l.offsetX,d=t.y[h]+l.offsetY+s,!isNaN(c)){1===a&&0===h&&(u=0),1===a&&1===h&&(u=1);let s=o.seriesData.series[i][u];"rangeArea"===e&&(s=n?o.rangeData.seriesRangeStart[i][u]:o.rangeData.seriesRangeEnd[i][u]);let r="";const l=e=>o.config.dataLabels.formatter(e,{seriesIndex:i,dataPointIndex:u,w:o});if("bubble"===o.config.chart.type){s=o.seriesData.seriesZ[i][u],r=l(s),d=t.y[h];d=new C$e(this.w,this.ctx).centerTextInBubble(d).y}else void 0!==s&&(r=l(s));let f=o.config.dataLabels.textAnchor;o.globals.isSlopeChart&&(f=0===u?"end":u===o.config.series[i].data.length-1?"start":"middle"),this.plotDataLabelsText({x:c,y:d,text:r,i:i,j:u,parent:p,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels,textAnchor:f})}return p}plotDataLabelsText(e){const t=this.w,i=new _$e(this.w);let{x:a,y:n,i:s,j:o,text:r,textAnchor:l,fontSize:c,parent:d,dataLabelsConfig:u,color:p,alwaysDrawDataLabel:h,offsetCorrection:f,className:g}=e,m=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(s)<0)return m;let _={x:a,y:n,drawnextLabel:!0,textRects:null};if(f&&(_=this.dataLabelsCorrection(a,n,r,s,o,h,parseInt(u.style.fontSize,10).toString())),t.interact.zoomed||(a=_.x,n=_.y),_.textRects){const e=t.globals.barPadForNumericAxis||0;(a<-(e+20)-_.textRects.width||a>t.layout.gridWidth+_.textRects.width+e+30)&&(r="")}let v=t.globals.dataLabels.style.colors[s];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(v=t.globals.dataLabels.style.colors[o]),"function"==typeof v&&(v=v({series:t.seriesData.series,seriesIndex:s,dataPointIndex:o,w:t})),p&&(v=p);let b=u.offsetX,y=u.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(b=0,y=0),t.globals.isSlopeChart&&(0!==o&&(b=-2*u.offsetX+5),0!==o&&o!==t.config.series[s].data.length-1&&(b=0)),_.drawnextLabel){if("middle"===l&&a===t.layout.gridWidth&&(l="end"),m=i.drawText({x:a+b,y:n+y,foreColor:v,textAnchor:l||u.textAnchor,text:r,fontSize:c||u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight||"normal"}),m.attr({class:g||"apexcharts-datalabel",cx:a,cy:n}),u.dropShadow.enabled){const e=u.dropShadow;new m$e(this.w).dropShadow(m,e)}d.add(m),p$e(m,a,t),void 0===t.globals.lastDrawnDataLabelsIndexes[s]&&(t.globals.lastDrawnDataLabelsIndexes[s]=[]),t.globals.lastDrawnDataLabelsIndexes[s].push(o)}return m}addBackgroundToDataLabel(e,t){const i=this.w,a=i.config.dataLabels.background,n=a.padding,s=a.padding/2,o=t.width,r=t.height,l=new _$e(this.w).drawRect(t.x-n,t.y-s/2,o+2*n,r+s,a.borderRadius,"transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",a.opacity,a.borderWidth,a.borderColor);if(a.dropShadow.enabled){new m$e(this.w).dropShadow(l,a.dropShadow)}return l}dataLabelsBackground(){var e;const t=this.w;if("bubble"===t.config.chart.type)return;const i=t.dom.baseEl.querySelectorAll(".apexcharts-datalabels text");for(let a=0;a<i.length;a++){const n=i[a],s=n.getBBox();let o=null;if(s.width&&s.height&&(o=this.addBackgroundToDataLabel(n,s)),o){null==(e=n.parentNode)||e.insertBefore(o.node,n);const i=t.config.dataLabels.background.backgroundColor||n.getAttribute("fill");t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:i}):o.attr({fill:i}),n.setAttribute("fill",t.config.dataLabels.background.foreColor);const a=n.getAttribute("cx");null!==a&&p$e(o,parseFloat(a),t)}}}bringForward(){const e=this.w,t=e.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.dom.baseEl.querySelector(".apexcharts-plot-series:last-child");for(let a=0;a<t.length;a++)i&&i.insertBefore(t[a],i.nextSibling)}}class k$e{static invalidateAll(e){e&&e.globals&&(e.globals.cachedSelectors&&(e.globals.cachedSelectors={}),e.globals.domCache&&e.globals.domCache.clear(),e.globals.dimensionCache={})}static invalidateDimensions(e){e&&e.globals&&(e.globals.dimensionCache={})}static invalidateSelectors(e){e&&e.globals&&e.globals.cachedSelectors&&(e.globals.cachedSelectors={})}static getCachedSelector(e,t,i){return e&&e.globals?(e.globals.cachedSelectors||(e.globals.cachedSelectors={}),e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=i()),e.globals.cachedSelectors[t]):i()}static getCachedDimension(e,t,i,a=1e3){if(!e||!e.globals)return i();e.globals.dimensionCache||(e.globals.dimensionCache={});const n=e.globals.dimensionCache[t],s=Date.now();if(n&&n.lastUpdate&&s-n.lastUpdate<a)return n.value;const o=i();return e.globals.dimensionCache[t]={value:o,lastUpdate:s},o}static cacheDOMElement(e,t,i){e&&e.globals&&(e.globals.domCache||(e.globals.domCache=new Map),e.globals.domCache.set(t,i))}static getCachedDOMElement(e,t){return e&&e.globals&&e.globals.domCache&&e.globals.domCache.get(t)||null}}class T$e{constructor(e,{theme:t=null,timeScale:i=null}={}){this.w=e,this.theme=t,this.timeScale=i}getLabel(e,t,i,a,n=[],s="12px",o=!0){const r=this.w,l=void 0===e[a]?"":e[a];let c=l;const d=r.formatters.xLabelFormatter,u=r.config.xaxis.labels.formatter,p=new ZBe(this.w),h=l;o&&(c=p.xLabelFormat(d,l,h,{i:a,dateFormatter:new XBe(this.w).formatDate,w:r}),void 0!==u&&(c=u(l,e[a],{i:a,dateFormatter:new XBe(this.w).formatDate,w:r}))),t.length>0?(i=t[a].position,c=t[a].value):"datetime"===r.config.xaxis.type&&void 0===u&&(c=""),void 0===c&&(c=""),c=Array.isArray(c)?c:c.toString();const f=new _$e(this.w);let g={};g=r.layout.rotateXLabels&&o?f.getTextRects(c,parseInt(s,10).toString(),null,`rotate(${r.config.xaxis.labels.rotate} 0 0)`,!1):f.getTextRects(c,parseInt(s,10).toString());const m=!r.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(c)&&("NaN"===String(c)||n.indexOf(c)>=0&&m)&&(c=""),{x:i,text:c,textRect:g}}checkLabelBasedOnTickamount(e,t,i){const a=this.w;let n=a.config.xaxis.tickAmount;if("dataPoints"===n&&(n=Math.round(a.layout.gridWidth/120)),n>i)return t;return e%Math.round(i/(n+1))===0||(t.text=""),t}checkForOverflowingLabels(e,t,i,a,n){const s=this.w;if(0===e&&s.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&s.globals.skipLastTimelinelabel&&(t.text=""),s.config.xaxis.labels.hideOverlappingLabels&&a.length>0){const e=n[n.length-1];if(s.config.xaxis.labels.trim&&"datetime"!==s.config.xaxis.type)return t;t.x<e.textRect.width/(s.layout.rotateXLabels?Math.abs(s.config.xaxis.labels.rotate)/12:1.01)+e.x&&(t.text="")}return t}checkForReversedLabels(e,t){const i=this.w;return i.config.yaxis[e]&&i.config.yaxis[e].reversed&&t.reverse(),t}yAxisAllSeriesCollapsed(e){const t=this.w.globals;return!t.seriesYAxisMap[e].some(e=>-1===t.collapsedSeriesIndices.indexOf(e))}translateYAxisIndex(e){const t=this.w,i=t.globals,a=t.config.yaxis;return t.seriesData.series.length>a.length||a.some(e=>Array.isArray(e.seriesName))?e:i.seriesYAxisReverseMap[e]}isYAxisHidden(e){const t=this.w,i=t.config.yaxis[e];if(!i.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!i.showForNullSeries){const i=t.globals.seriesYAxisMap[e],a=new l$e(this.w);return i.every(e=>a.isSeriesNull(e))}return!1}getYAxisForeColor(e,t){var i;const a=this.w;return Array.isArray(e)&&a.globals.yAxisScale[t]&&(null==(i=this.theme)||i.pushExtraColors(e,a.globals.yAxisScale[t].result.length,!1)),e}drawYAxisTicks(e,t,i,a,n,s,o){const r=this.w,l=new _$e(this.w);let c=r.layout.translateY+r.config.yaxis[n].labels.offsetY;if(r.globals.isBarHorizontal?c=0:"heatmap"===r.config.chart.type&&(c+=s/2),a.show&&t>0){!0===r.config.yaxis[n].opposite&&(e+=a.width);for(let n=t;n>=0;n--){const t=l.drawLine(e+i.offsetX-a.width+a.offsetX,c+a.offsetY,e+i.offsetX+a.offsetX,c+a.offsetY,a.color);o.add(t),c+=s}}}}class A$e{constructor(e,t,i){this.w=e,this.ctx=t,this.elgrid=i,this.axesUtils=new T$e(e,{theme:t.theme,timeScale:t.timeScale}),this.xaxisLabels=e.labelData.labels.slice(),e.labelData.timescaleLabels.length>0&&!e.globals.isBarHorizontal&&(this.xaxisLabels=e.labelData.timescaleLabels.slice()),e.config.xaxis.overwriteCategories&&(this.xaxisLabels=e.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===e.config.xaxis.position?this.offY=0:this.offY=e.layout.gridHeight,this.offY=this.offY+e.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.xaxisBorderWidth=e.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=e.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=e.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=e.config.xaxis.axisBorder.height,this.yaxis=e.config.yaxis[0]}drawXaxis(){const e=this.w,t=new _$e(this.w),i=t.group({class:"apexcharts-xaxis",transform:`translate(${e.config.xaxis.offsetX}, ${e.config.xaxis.offsetY})`}),a=t.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});i.add(a);let n=[];for(let s=0;s<this.xaxisLabels.length;s++)n.push(this.xaxisLabels[s]);if(this.drawXAxisLabelAndGroup(!0,t,a,n,e.axisFlags.isXNumeric,(e,t)=>t),e.labelData.hasXaxisGroups){const i=e.labelData.groups;n=[];for(let e=0;e<i.length;e++)n.push(i[e].title);const s={};e.config.xaxis.group.style&&(s.xaxisFontSize=e.config.xaxis.group.style.fontSize,s.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,s.xaxisForeColors=e.config.xaxis.group.style.colors,s.fontWeight=e.config.xaxis.group.style.fontWeight,s.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,a,n,!1,(e,t)=>i[e].cols*t,s)}if(void 0!==e.config.xaxis.title.text){const a=t.group({class:"apexcharts-xaxis-title"}),n=t.drawText({x:e.layout.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.layout.xAxisLabelsHeight:-e.layout.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});a.add(n),i.add(a)}if(e.config.xaxis.axisBorder.show){const a=e.globals.barPadForNumericAxis,n=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-a,this.offY,this.xaxisBorderWidth+a,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(n):i.add(n)}return i}drawXAxisLabelAndGroup(e,t,i,a,n,s,o={}){var r,l;const c=[],d=[],u=this.w,p=o.xaxisFontSize||this.xaxisFontSize,h=o.xaxisFontFamily||this.xaxisFontFamily,f=o.xaxisForeColors||this.xaxisForeColors,g=o.fontWeight||u.config.xaxis.labels.style.fontWeight,m=o.cssClass||u.config.xaxis.labels.style.cssClass;let _,v=u.globals.padHorizontal;const b=a.length;let y="category"===u.config.xaxis.type?u.globals.dataPoints:b;if(0===y&&b>y&&(y=b),n){const e=Math.max(Number(u.config.xaxis.tickAmount)||1,y>1?y-1:y);_=u.layout.gridWidth/Math.min(e,b-1),v=v+s(0,_)/2+u.config.xaxis.labels.offsetX}else _=u.layout.gridWidth/y,v=v+s(0,_)+u.config.xaxis.labels.offsetX;for(let x=0;x<=b-1;x++){let n=v-s(x,_)/2+u.config.xaxis.labels.offsetX;0===x&&1===b&&_/2===v&&1===y&&(n=u.layout.gridWidth/2);let o=this.axesUtils.getLabel(a,u.labelData.timescaleLabels,n,x,c,p,e),S=28;u.layout.rotateXLabels&&e&&(S=22),u.config.xaxis.title.text&&"top"===u.config.xaxis.position&&(S+=parseFloat(u.config.xaxis.title.style.fontSize)+2),e||(S=S+parseFloat(p)+(u.layout.xAxisLabelsHeight-u.layout.xAxisGroupLabelsHeight)+(u.layout.rotateXLabels?10:0));o=void 0!==u.config.xaxis.tickAmount&&"dataPoints"!==u.config.xaxis.tickAmount&&"datetime"!==u.config.xaxis.type?this.axesUtils.checkLabelBasedOnTickamount(x,o,b):this.axesUtils.checkForOverflowingLabels(x,o,b,c,d);const w=()=>e&&u.config.xaxis.convertedCatToNumeric?f[u.globals.minX+x-1]:f[x],C=(null!=(l=null==(r=o.textRect)?void 0:r.width)?l:0)/2,E=o.x+C<0;if(u.config.xaxis.labels.show&&!E){const a=t.drawText({x:o.x,y:this.offY+u.config.xaxis.labels.offsetY+S-("top"===u.config.xaxis.position?u.layout.xAxisHeight+u.config.xaxis.axisTicks.height-2:0),text:o.text,textAnchor:"middle",fontWeight:g,fontSize:p,fontFamily:h,foreColor:Array.isArray(f)?w():f,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(i.add(a),a.on("click",e=>{if("function"==typeof u.config.chart.events.xAxisLabelClick){const t=Object.assign({},u,{labelIndex:x});u.config.chart.events.xAxisLabelClick(e,this.ctx,t)}}),e){const e=qBe.createElementNS(v$e,"title");e.textContent=Array.isArray(o.text)?o.text.join(" "):o.text,a.node.appendChild(e),""!==o.text&&(c.push(o.text),d.push(o))}}x<b-1&&(v+=s(x+1,_))}}drawXaxisInversed(e){const t=this.w,i=new _$e(this.w),a=t.config.yaxis[0].opposite?t.globals.translateYAxisX[e]:0,n=i.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),s=i.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});n.add(s);const o=[];if(t.config.yaxis[e].show)for(let h=0;h<this.xaxisLabels.length;h++)o.push(this.xaxisLabels[h]);const r=t.layout.gridHeight/o.length;let l=-r/2.2;const c=t.formatters.yLabelFormatters[0],d=t.config.yaxis[0].labels;if(d.show)for(let h=0;h<=o.length-1;h++){let a=void 0===o[h]?"":o[h];a=c(a,{seriesIndex:e,dataPointIndex:h,w:t});const n=this.axesUtils.getYAxisForeColor(d.style.colors,e),u=()=>Array.isArray(n)?n[h]:n;let p=0;Array.isArray(a)&&(p=a.length/2*parseInt(d.style.fontSize,10));let f=d.offsetX-15,g="end";this.yaxis.opposite&&(g="start"),"left"===t.config.yaxis[0].labels.align?(f=d.offsetX,g="start"):"center"===t.config.yaxis[0].labels.align?(f=d.offsetX,g="middle"):"right"===t.config.yaxis[0].labels.align&&(g="end");const m=i.drawText({x:f,y:l+r+d.offsetY-p,text:a,textAnchor:g,foreColor:u(),fontSize:d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+d.style.cssClass,maxWidth:d.maxWidth});s.add(m),m.on("click",e=>{if("function"==typeof t.config.chart.events.xAxisLabelClick){const i=Object.assign({},t,{labelIndex:h});t.config.chart.events.xAxisLabelClick(e,this.ctx,i)}});const _=qBe.createElementNS(v$e,"title");if(_.textContent=Array.isArray(a)?a.join(" "):a,m.node.appendChild(_),0!==t.config.yaxis[e].labels.rotate){const a=i.rotateAroundCenter(m.node);m.node.setAttribute("transform",`rotate(${t.config.yaxis[e].labels.rotate} 0 ${a.y})`)}l+=r}if(void 0!==t.config.yaxis[0].title.text){const e=i.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),s=i.drawText({x:t.config.yaxis[0].title.offsetX,y:t.layout.gridHeight/2+t.config.yaxis[0].title.offsetY,text:t.config.yaxis[0].title.text,textAnchor:"middle",foreColor:t.config.yaxis[0].title.style.color,fontSize:t.config.yaxis[0].title.style.fontSize,fontWeight:t.config.yaxis[0].title.style.fontWeight,fontFamily:t.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+t.config.yaxis[0].title.style.cssClass});e.add(s),n.add(e)}let u=0;this.isCategoryBarHorizontal&&t.config.yaxis[0].opposite&&(u=t.layout.gridWidth);const p=t.config.xaxis.axisBorder;if(p.show){const e=i.drawLine(t.globals.padHorizontal+p.offsetX+u,1+p.offsetY,t.globals.padHorizontal+p.offsetX+u,t.layout.gridHeight+p.offsetY,p.color,0);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(e):n.add(e)}return t.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(u,o.length,t.config.yaxis[0].axisBorder,t.config.yaxis[0].axisTicks,0,r,n),n}drawXaxisTicks(e,t,i){const a=this.w,n=e;if(e<0||e-2>a.layout.gridWidth)return;const s=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+s+a.config.xaxis.axisTicks.height,"top"===a.config.xaxis.position&&(t=s-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){const o=new _$e(this.w).drawLine(e+a.config.xaxis.axisTicks.offsetX,s+a.config.xaxis.offsetY,n+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){const e=this.w,t=[],i=this.xaxisLabels.length;let a=e.globals.padHorizontal;if(e.labelData.timescaleLabels.length>0)for(let n=0;n<i;n++)a=this.xaxisLabels[n].position,t.push(a);else{const n=i;for(let i=0;i<n;i++){let i=n;e.axisFlags.isXNumeric&&"bar"!==e.config.chart.type&&(i-=1),a+=e.layout.gridWidth/i,t.push(a)}}return t}xAxisLabelCorrections(){var e,t,i;const a=this.w,n=new _$e(this.w),s=a.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),o=a.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=a.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),l=a.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(a.layout.rotateXLabels||a.config.xaxis.labels.rotateAlways)for(let c=0;c<o.length;c++){const e=n.rotateAroundCenter(o[c]);e.y=e.y-1,e.x=e.x+1,o[c].setAttribute("transform",`rotate(${a.config.xaxis.labels.rotate} ${e.x} ${e.y})`),o[c].setAttribute("text-anchor","end"),null==s||s.setAttribute("transform","translate(0, -10)");const t=o[c].childNodes;a.config.xaxis.labels.trim&&Array.prototype.forEach.call(t,e=>{n.placeTextWithEllipsis(e,e.textContent,a.layout.xAxisLabelsHeight-("bottom"===a.config.legend.position?20:10))})}else{const e=a.layout.gridWidth/(a.labelData.labels.length+1);for(let t=0;t<o.length;t++){const i=o[t].childNodes;a.config.xaxis.labels.trim&&"datetime"!==a.config.xaxis.type&&Array.prototype.forEach.call(i,t=>{n.placeTextWithEllipsis(t,t.textContent,e)})}}if(r.length>0){const s=r[r.length-1].getBBox(),o=r[0].getBBox();s.x<-20&&(null==(e=r[r.length-1].parentNode)||e.removeChild(r[r.length-1])),o.x+o.width>a.layout.gridWidth&&!a.globals.isBarHorizontal&&(null==(t=r[0].parentNode)||t.removeChild(r[0]));for(let e=0;e<l.length;e++)n.placeTextWithEllipsis(l[e],null!=(i=l[e].textContent)?i:"",a.config.yaxis[0].labels.maxWidth-(a.config.yaxis[0].title.text?2*parseFloat(a.config.yaxis[0].title.style.fontSize):0)-15)}}}let R$e=class{constructor(e,t){this.w=e,this.ctx=t,this.xaxisLabels=e.labelData.labels.slice(),this.axesUtils=new T$e(t.w,{theme:t.theme,timeScale:t.timeScale}),this.isRangeBar=e.rangeData.seriesRange.length&&e.globals.isBarHorizontal,e.labelData.timescaleLabels.length>0&&(this.xaxisLabels=e.labelData.timescaleLabels.slice())}drawGridArea(e=null){const t=this.w,i=new _$e(this.w);e||(e=i.group({class:"apexcharts-grid"}));const a=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.layout.gridHeight,"transparent"),n=i.drawLine(t.globals.padHorizontal,t.layout.gridHeight,t.layout.gridWidth,t.layout.gridHeight,"transparent");return e.add(n),e.add(a),e}drawGrid(){if(this.w.globals.axisCharts){const e=this.renderGrid();return this.drawGridArea(e.el),e}return null}createGridMask(){const e=this.w,t=e.globals,i=new _$e(this.w),a=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width,n=e=>{const t=qBe.createElementNS(v$e,"clipPath");return t.setAttribute("id",e),t};e.dom.elGridRectMask=n(`gridRectMask${t.cuid}`),e.dom.elGridRectBarMask=n(`gridRectBarMask${t.cuid}`),e.dom.elGridRectMarkerMask=n(`gridRectMarkerMask${t.cuid}`),e.dom.elForecastMask=n(`forecastMask${t.cuid}`),e.dom.elNonForecastMask=n(`nonForecastMask${t.cuid}`);let s=0,o=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.axisFlags.isXNumeric&&!e.globals.isBarHorizontal&&(s=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),o=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a/2-2,-a/2-2,e.layout.gridWidth+a+4,e.layout.gridHeight+a+4,0,"#fff"),e.dom.elGridRectBar=i.drawRect(-a/2-s-2,-a/2-2,e.layout.gridWidth+a+o+s+4,e.layout.gridHeight+a+4,0,"#fff");const r=e.globals.markers.largestSize;e.dom.elGridRectMarker=i.drawRect(Math.min(-a/2-s-2,-r),-r,e.layout.gridWidth+Math.max(a+o+s+4,2*r),e.layout.gridHeight+2*r,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectBarMask.appendChild(e.dom.elGridRectBar.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);const l=e.dom.elDefs.node;l.appendChild(e.dom.elGridRectMask),l.appendChild(e.dom.elGridRectBarMask),l.appendChild(e.dom.elGridRectMarkerMask),l.appendChild(e.dom.elForecastMask),l.appendChild(e.dom.elNonForecastMask)}_drawGridLines({i:e,x1:t,y1:i,x2:a,y2:n,xCount:s,parent:o}){const r=this.w;if(!(0===e&&r.globals.skipFirstTimelinelabel||e===s-1&&r.globals.skipLastTimelinelabel&&!r.config.xaxis.labels.formatter||"radar"===r.config.chart.type)){r.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:t,y1:i,x2:a,y2:n,xCount:s,parent:o});let l=0;if(r.labelData.hasXaxisGroups&&"between"===r.config.xaxis.tickPlacement){const t=r.labelData.groups;if(t){let i=0;for(let a=0;i<e&&a<t.length;a++)i+=t[a].cols;i===e&&(l=.6*r.layout.xAxisLabelsHeight)}}new A$e(this.w,this.ctx).drawXaxisTicks(t,l,r.dom.elGraphical)}}_drawGridLine({i:e,x1:t,y1:i,x2:a,y2:n,xCount:s,parent:o}){const r=this.w,l=o.node.classList.contains("apexcharts-gridlines-horizontal"),c=r.globals.barPadForNumericAxis,d=0===i&&0===n||0===t&&0===a||i===r.layout.gridHeight&&n===r.layout.gridHeight||r.globals.isBarHorizontal&&(0===e||e===s-1),u=new _$e(this.w).drawLine(t-(l?c:0),i,a+(l?c:0),n,r.config.grid.borderColor,r.config.grid.strokeDashArray);u.node.classList.add("apexcharts-gridline"),d&&r.config.grid.show?this.elGridBorders.add(u):o.add(u)}_drawGridBandRect({c:e,x1:t,y1:i,x2:a,y2:n,type:s}){const o=this.w,r=new _$e(this.w),l=o.globals.barPadForNumericAxis,c=o.config.grid[s].colors[e],d=r.drawRect(t-("row"===s?l:0),i,a+("row"===s?2*l:0),n,0,c,o.config.grid[s].opacity);this.elg.add(d),d.attr("clip-path",`url(#gridRectMask${o.globals.cuid})`),d.node.classList.add(`apexcharts-grid-${s}`)}_drawXYLines({xCount:e,tickAmount:t}){var i;const a=this.w,n=({xC:t,x1:i,y1:a,x2:n,y2:s})=>{for(let o=0;o<t;o++)i=this.xaxisLabels[o].position,n=this.xaxisLabels[o].position,this._drawGridLines({i:o,x1:i,y1:a,x2:n,y2:s,xCount:e,parent:this.elgridLinesV})},s=({xC:t,x1:i,y1:n,x2:s,y2:o})=>{for(let r=0;r<t+(a.axisFlags.isXNumeric?0:1);r++)0===r&&1===t&&1===a.globals.dataPoints&&(s=i=a.layout.gridWidth/2),this._drawGridLines({i:r,x1:i,y1:n,x2:s,y2:o,xCount:e,parent:this.elgridLinesV}),s=i+=a.layout.gridWidth/(a.axisFlags.isXNumeric?t-1:t)};if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){const t=a.globals.padHorizontal,o=0;let r;const l=a.layout.gridHeight;a.labelData.timescaleLabels.length?n({xC:e,x1:t,y1:o,x2:r,y2:l}):(a.axisFlags.isXNumeric&&(e=null==(i=a.globals.xAxisScale)?void 0:i.result.length),s({xC:e,x1:t,y1:o,x2:r,y2:l}))}if(a.config.grid.yaxis.lines.show){const e=0;let i=0,n=0;const s=a.layout.gridWidth;let o=t+1;this.isRangeBar&&(o=a.labelData.labels.length);for(let r=0;r<o+(this.isRangeBar?1:0);r++)this._drawGridLine({i:r,xCount:o+(this.isRangeBar?1:0),x1:e,y1:i,x2:s,y2:n,parent:this.elgridLinesH}),i+=a.layout.gridHeight/(this.isRangeBar?o:t),n=i}}_drawInvertedXYLines({xCount:e}){const t=this.w;if(t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show){let i=t.globals.padHorizontal;const a=0;let n;const s=t.layout.gridHeight;for(let o=0;o<e+1;o++){t.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:e+1,x1:i,y1:a,x2:n,y2:s,parent:this.elgridLinesV});new A$e(this.w,this.ctx).drawXaxisTicks(i,0,t.dom.elGraphical),i+=t.layout.gridWidth/e,n=i}}if(t.config.grid.yaxis.lines.show){const e=0;let i=0,a=0;const n=t.layout.gridWidth;for(let s=0;s<t.globals.dataPoints+1;s++)this._drawGridLine({i:s,xCount:t.globals.dataPoints+1,x1:e,y1:i,x2:n,y2:a,parent:this.elgridLinesH}),i+=t.layout.gridHeight/t.globals.dataPoints,a=i}}renderGrid(){var e,t,i;const a=this.w,n=a.globals,s=new _$e(this.w);this.elg=s.group({class:"apexcharts-grid"}),this.elgridLinesH=s.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=s.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=s.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),a.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());let o=0;for(;o<n.seriesYAxisMap.length&&n.ignoreYAxisIndexes.includes(o);)o++;o===n.seriesYAxisMap.length&&(o=0);let r,l=n.yAxisScale[o].result.length-1;return!n.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(l=a.labelData.labels.length,a.config.xaxis.tickAmount&&a.config.xaxis.labels.formatter&&(r=a.config.xaxis.tickAmount),(null==(i=null==(t=null==(e=n.yAxisScale)?void 0:e[o])?void 0:t.result)?void 0:i.length)>0&&"datetime"!==a.config.xaxis.type&&(r=n.yAxisScale[o].result.length-1)),this._drawXYLines({xCount:r,tickAmount:l})):(r=l,l=n.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:l})),this.drawGridBands(r,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:a.layout.gridWidth/r}}drawGridBands(e,t){var i,a,n,s,o;const r=this.w,l=(e,i,a,n,s,o)=>{for(let l=0,c=0;l<i;l++,c++)c>=r.config.grid[e].colors.length&&(c=0),this._drawGridBandRect({c:c,x1:a,y1:n,x2:s,y2:o,type:e}),n+=r.layout.gridHeight/t};if((null==(i=r.config.grid.row.colors)?void 0:i.length)>0&&l("row",t,0,0,r.layout.gridWidth,r.layout.gridHeight/t),(null==(a=r.config.grid.column.colors)?void 0:a.length)>0){let t=r.globals.isBarHorizontal||"on"!==r.config.xaxis.tickPlacement||"category"!==r.config.xaxis.type&&!r.config.xaxis.convertedCatToNumeric?e:e-1;r.axisFlags.isXNumeric&&(t=(null!=(s=null==(n=r.globals.xAxisScale)?void 0:n.result.length)?s:1)-1);let i=r.globals.padHorizontal;const a=0;let l=r.globals.padHorizontal+r.layout.gridWidth/t;const c=r.layout.gridHeight;for(let n=0,s=0;n<e;n++,s++)s>=r.config.grid.column.colors.length&&(s=0),"datetime"===r.config.xaxis.type&&(i=this.xaxisLabels[n].position,l=((null==(o=this.xaxisLabels[n+1])?void 0:o.position)||r.layout.gridWidth)-this.xaxisLabels[n].position),this._drawGridBandRect({c:s,x1:i,y1:a,x2:l,y2:c,type:"column"}),i+=r.layout.gridWidth/t}}};class I$e{constructor(e){this.w=e,this.coreUtils=new l$e(this.w)}niceScale(e,t,i=0){const a=1e-11,n=this.w,s=n.globals;let o,r,l,c;s.isBarHorizontal?(o=n.config.xaxis,r=Math.max((s.svgWidth-100)/25,2)):(o=n.config.yaxis[i],r=Math.max((s.svgHeight-100)/15,2)),KBe.isNumber(r)||(r=10),l=void 0!==o.min&&null!==o.min,c=void 0!==o.max&&null!==o.min;let d=void 0!==o.stepSize&&null!==o.stepSize,u=void 0!==o.tickAmount&&null!==o.tickAmount,p=u?o.tickAmount:s$e[Math.min(Math.round(r/2),s$e.length-1)];if(s.isMultipleYAxis&&!u&&s.multiAxisTickAmount>0&&(p=s.multiAxisTickAmount,u=!0),p="dataPoints"===p?s.dataPoints-1:Math.abs(Math.round(p)),(e===Number.MIN_VALUE&&0===t||!KBe.isNumber(e)&&!KBe.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=KBe.isNumber(o.min)?o.min:0,t=KBe.isNumber(o.max)?o.max:e+p,s.allSeriesCollapsed=!1),e>t){const i=t;t=e,e=i}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);const h=[];p<1&&(p=1);let f=p,g=Math.abs(t-e);!l&&e>0&&e/g<.15&&(e=0,l=!0),!c&&t<0&&-t/g<.15&&(t=0,c=!0),g=Math.abs(t-e);let m=g/f,_=m;const v=Math.floor(Math.log10(_)),b=Math.pow(10,v);let y=Math.ceil(_/b);if(y=n$e[0===s.yValueDecimal?0:1][y],_=y*b,m=_,s.isBarHorizontal&&o.stepSize&&"datetime"!==o.type?(m=o.stepSize,d=!0):d&&(m=o.stepSize),d&&o.forceNiceScale){const e=Math.floor(Math.log10(m));m*=Math.pow(10,v-e)}if(l&&c){let e=g/f;if(u)if(d)if(0!=KBe.mod(g,m)){const t=KBe.getGCD(m,e);m=e/t<10?t:e}else 0==KBe.mod(m,e)?m=e:(e=m,u=!1);else m=e;else if(d)0==KBe.mod(g,m)?e=m:m=e;else if(0==KBe.mod(g,m))e=m;else{f=Math.ceil(g/m),e=g/f;const t=KBe.getGCD(g,m);g/t<r&&(e=t),m=e}f=Math.round(g/m)}else{if(l||c){if(c)if(u)e=t-m*f;else{const i=e;e=m*Math.floor(e/m),Math.abs(t-e)/KBe.getGCD(g,m)>r&&(e=t-m*p,e+=m*Math.floor((i-e)/m))}else if(l)if(u)t=e+m*f;else{const i=t;t=m*Math.ceil(t/m),Math.abs(t-e)/KBe.getGCD(g,m)>r&&(t=e+m*p,t+=m*Math.ceil((i-t)/m))}}else if(s.isMultipleYAxis&&u){const i=m*Math.floor(e/m);let a=i+m*f;a<t&&(m*=2),a=t,t=(e=i)+m*f,g=Math.abs(t-e),e>0&&e<Math.abs(a-t)&&(e=0,t=m*f),t<0&&-t<Math.abs(i-e)&&(t=0,e=-m*f)}else e=m*Math.floor(e/m),t=m*Math.ceil(t/m);g=Math.abs(t-e),m=KBe.getGCD(g,m),f=Math.round(g/m)}if(u||l||c||(f=Math.ceil((g-a)/(m+a)),f>16&&KBe.getPrimeFactors(f).length<2&&f++),!u&&o.forceNiceScale&&0===s.yValueDecimal&&f>g&&(f=g,m=Math.round(g/f)),f>r&&(!u&&!d||o.forceNiceScale)){const e=KBe.getPrimeFactors(f),t=e.length-1;let i=f;e:for(var x=0;x<t;x++)for(var S=0;S<=t-x;S++){const a=Math.min(S+x,t);let n=i,s=1;for(var w=S;w<=a;w++)s*=e[w];if(n/=s,n<r){i=n;break e}}m=i===f?g:g/i,f=Math.round(g/m)}s.isMultipleYAxis&&0==s.multiAxisTickAmount&&s.ignoreYAxisIndexes.indexOf(i)<0&&(s.multiAxisTickAmount=f);let C=e-m;const E=m*a;do{C+=m,h.push(KBe.stripNumber(C,7))}while(t-C>E);return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}linearScale(e,t,i=10,a=0,n=void 0){const s=Math.abs(t-e);let o=[];if(e===t)return o=[e],{result:o,niceMin:o[0],niceMax:o[o.length-1]};"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,s))&&(i=this.w.globals.dataPoints-1);const r=i;n||(n=s/r);if(0!==n&&isFinite(n)){const e=Math.floor(Math.log10(Math.abs(n))),t=Math.max(2,2-e),i=Math.pow(10,t);n=Math.round((n+Number.EPSILON)*i)/i}let l=i===Number.MAX_VALUE?5:r;i===Number.MAX_VALUE&&(n=1);let c=e;for(;l>=0;)o.push(c),c=KBe.preciseAddition(c,n),l-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}logarithmicScaleNice(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));const a=[],n=Math.ceil(Math.log(t)/Math.log(i)+1);for(let s=Math.floor(Math.log(e)/Math.log(i));s<n;s++)a.push(Math.pow(i,s));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}logarithmicScale(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));const a=[],n=Math.log(t)/Math.log(i),s=Math.log(e)/Math.log(i),o=n-s,r=Math.round(o),l=o/r;for(let c=0,d=s;c<r;c++,d+=l)a.push(Math.pow(i,d));return a.push(Math.pow(i,n)),{result:a,niceMin:e,niceMax:t}}_adjustTicksForSmallRange(e,t,i){let a=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){const e=Number(this.w.config.yaxis[t].labels.formatter(1));KBe.isNumber(e)&&0===this.w.globals.yValueDecimal&&(a=Math.ceil(i))}return a<e?a:e}setYScaleForIndex(e,t,i){const a=this.w.globals,n=this.w.config,s=a.isBarHorizontal?n.xaxis:n.yaxis[e];void 0===a.yAxisScale[e]&&(a.yAxisScale[e]=[]);const o=Math.abs(i-t);s.logarithmic&&o<=5&&(a.invalidLogScale=!0),s.logarithmic&&o>5?(a.allSeriesCollapsed=!1,a.yAxisScale[e]=s.forceNiceScale?this.logarithmicScaleNice(t,i,s.logBase):this.logarithmicScale(t,i,s.logBase)):i!==-Number.MAX_VALUE&&KBe.isNumber(i)&&t!==Number.MAX_VALUE&&KBe.isNumber(t)?(a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.niceScale(t,i,e)):a.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}setXScale(e,t){const i=this.w,a=i.globals;if(t!==-Number.MAX_VALUE&&KBe.isNumber(t)){const n=a.xTickAmount;a.xAxisScale=this.linearScale(e,t,n,0,void 0===i.config.xaxis.max?i.config.xaxis.stepSize:void 0)}else a.xAxisScale=this.linearScale(0,10,10);return a.xAxisScale}scaleMultipleYAxes(){const e=this.w.config,t=this.w.globals;this.coreUtils.setSeriesYAxisMappings();const i=t.seriesYAxisMap,a=t.minYArr,n=t.maxYArr,s=[],o=!t.isBarHorizontal;if(t.allSeriesCollapsed=!0,t.barGroups=[],i.forEach((i,r)=>{const l=[];if(i.forEach(t=>{var i;const a=null==(i=e.series[t])?void 0:i.group;l.indexOf(a)<0&&l.push(a)}),i.length>0){let c,d,u=Number.MAX_VALUE,p=-Number.MAX_VALUE,h=u,f=p;if(e.chart.stacked){const a=new Array(t.dataPoints).fill(0),n=[],s=[],o=[];l.forEach(()=>{n.push(a.map(()=>Number.MIN_VALUE)),s.push(a.map(()=>Number.MIN_VALUE)),o.push(a.map(()=>Number.MIN_VALUE))});for(let u=0;u<i.length;u++){!c&&e.series[i[u]].type&&(c=e.series[i[u]].type);const a=i[u];d=e.series[a].group?e.series[a].group:"axis-".concat(r.toString());!(t.collapsedSeriesIndices.indexOf(a)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(a)<0)||(t.allSeriesCollapsed=!1,l.forEach((t,i)=>{if(e.series[a].group===t)for(let e=0;e<this.w.seriesData.series[a].length;e++){const t=this.w.seriesData.series[a][e];t>=0?s[i][e]+=t:o[i][e]+=t,n[i][e]+=t,h=Math.min(h,t),f=Math.max(f,t)}})),"bar"!==c&&"column"!==c||t.barGroups.push(d)}c||(c=e.chart.type),"bar"===c||"column"===c?l.forEach((e,t)=>{u=Math.min(u,Math.min.apply(null,o[t])),p=Math.max(p,Math.max.apply(null,s[t]))}):(l.forEach((e,t)=>{h=Math.min(h,Math.min.apply(null,n[t])),f=Math.max(f,Math.max.apply(null,n[t]))}),u=h,p=f),u===Number.MIN_VALUE&&p===Number.MIN_VALUE&&(p=-Number.MAX_VALUE)}else for(let e=0;e<i.length;e++){const s=i[e];u=Math.min(u,a[s]),p=Math.max(p,n[s]);!(t.collapsedSeriesIndices.indexOf(s)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(s)<0)||(t.allSeriesCollapsed=!1)}void 0!==e.yaxis[r].min&&(u="function"==typeof e.yaxis[r].min?e.yaxis[r].min(u):e.yaxis[r].min),void 0!==e.yaxis[r].max&&(p="function"==typeof e.yaxis[r].max?e.yaxis[r].max(p):e.yaxis[r].max),t.barGroups=t.barGroups.filter((e,t,i)=>i.indexOf(e)===t);const g=e.yaxis[r];o&&!0===g.alignZero&&!g.logarithmic&&void 0===g.min&&void 0===g.max&&t.ignoreYAxisIndexes.indexOf(r)<0&&KBe.isNumber(u)&&KBe.isNumber(p)?s.push({ai:r,minY:u,maxY:p}):(this.setYScaleForIndex(r,u,p),i.forEach(e=>{a[e]=t.yAxisScale[r].niceMin,n[e]=t.yAxisScale[r].niceMax}))}else this.setYScaleForIndex(r,0,-Number.MAX_VALUE)}),s.length>=2){s.forEach(e=>{this.setYScaleForIndex(e.ai,e.minY,e.maxY),i[e.ai].forEach(i=>{a[i]=t.yAxisScale[e.ai].niceMin,n[i]=t.yAxisScale[e.ai].niceMax})});let e=0;s.forEach(i=>{const a=t.yAxisScale[i.ai],n=a.niceMax-a.niceMin;if(n>0){const t=-a.niceMin/n;t>e&&(e=t)}}),e>1&&(e=1),e<0&&(e=0);const o=e=>{if(e<=0)return 1;const t=Math.floor(Math.log10(e)),i=Math.pow(10,t),a=e/i;let n;return n=a<=1+1e-9?1:a<=2+1e-9?2:a<=2.5+1e-9?2.5:a<=5+1e-9?5:10,n*i};s.forEach(s=>{const r=t.yAxisScale[s.ai];if(!r.result||r.result.length<2)return;const l=r.niceMax-r.niceMin;if(l<=0)return;const c=-r.niceMin/l;if(Math.abs(c-e)<=1e-9)return;const d=c<e&&e<1-1e-9,u=!d&&c>e&&e>1e-9;if(!d&&!u)return;const p=d?-e*r.niceMax/(1-e):r.niceMin,h=u?-r.niceMin*(1-e)/e:r.niceMax,f=h-p;if(f<=0)return;const g=Math.max(r.result.length,5),m=o(f/Math.max(g-1,1));if(m<=0)return;let _,v;if(d){_=Math.floor(p/m+1e-9)*m;const t=e>1e-9?_*(e-1)/e:r.niceMax,i=Math.max(t,r.niceMax);v=Math.ceil(i/m-1e-9)*m}else{v=Math.ceil(h/m-1e-9)*m;const t=e<1-1e-9?-e*v/(1-e):r.niceMin,i=Math.min(t,r.niceMin);_=Math.floor(i/m+1e-9)*m}r.result=[];for(let e=_;e<=v+1e-9*m;e=KBe.preciseAddition(e,m))r.result.push(KBe.stripNumber(e,7));r.niceMin=_,r.niceMax=v,i[s.ai].forEach(e=>{a[e]=r.niceMin,n[e]=r.niceMax})})}else if(1===s.length){const e=s[0];this.setYScaleForIndex(e.ai,e.minY,e.maxY),i[e.ai].forEach(i=>{a[i]=t.yAxisScale[e.ai].niceMin,n[i]=t.yAxisScale[e.ai].niceMax})}}}class D$e{constructor(e){this.w=e,this.scales=new I$e(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}getMinYMaxY(e,t=Number.MAX_VALUE,i=-Number.MAX_VALUE,a=null){var n,s,o,r,l;const c=this.w.config,d=this.w.globals;let u=-Number.MAX_VALUE,p=Number.MIN_VALUE;null===a&&(a=e+1);const h=this.w.seriesData.series;let f=h,g=h;"candlestick"===c.chart.type?(f=this.w.candleData.seriesCandleL,g=this.w.candleData.seriesCandleH):"boxPlot"===c.chart.type?(f=this.w.candleData.seriesCandleO,g=this.w.candleData.seriesCandleC):this.w.axisFlags.isRangeData&&(f=this.w.rangeData.seriesRangeStart,g=this.w.rangeData.seriesRangeEnd);let m=!1;if(this.w.seriesData.seriesX.length>=a){const e=null==(n=d.brushSource)?void 0:n.w.config.chart.brush;(c.chart.zoom.enabled&&c.chart.zoom.autoScaleYaxis||(null==e?void 0:e.enabled)&&(null==e?void 0:e.autoScaleYaxis))&&(m=!0)}for(let _=e;_<a;_++){d.dataPoints=Math.max(d.dataPoints,h[_].length);const e=c.series[_].type;this.w.labelData.categoryLabels.length&&(d.dataPoints=this.w.labelData.categoryLabels.filter(e=>void 0!==e).length),this.w.labelData.labels.length&&"datetime"!==c.xaxis.type&&0!==this.w.seriesData.series.reduce((e,t)=>e+t.length,0)&&(d.dataPoints=Math.max(d.dataPoints,this.w.labelData.labels.length));let a=0,n=h[_].length-1;if(m){if(c.xaxis.min)for(;a<n&&this.w.seriesData.seriesX[_][a]<c.xaxis.min;a++);if(c.xaxis.max)for(;n>a&&this.w.seriesData.seriesX[_][n]>c.xaxis.max;n--);}for(let c=a;c<=n&&c<this.w.seriesData.series[_].length;c++){let a=h[_][c];if(null!==a&&KBe.isNumber(a)){switch(void 0!==(null==(s=g[_])?void 0:s[c])&&(u=Math.max(u,g[_][c]),t=Math.min(t,g[_][c])),void 0!==(null==(o=f[_])?void 0:o[c])&&(t=Math.min(t,f[_][c]),i=Math.max(i,f[_][c])),e){case"candlestick":void 0!==this.w.candleData.seriesCandleC[_][c]&&(u=Math.max(u,this.w.candleData.seriesCandleH[_][c]),t=Math.min(t,this.w.candleData.seriesCandleL[_][c]));break;case"boxPlot":void 0!==this.w.candleData.seriesCandleC[_][c]&&(u=Math.max(u,this.w.candleData.seriesCandleC[_][c]),t=Math.min(t,this.w.candleData.seriesCandleO[_][c]))}e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeArea"!==e&&"rangeBar"!==e&&(u=Math.max(u,this.w.seriesData.series[_][c]),t=Math.min(t,this.w.seriesData.series[_][c])),this.w.seriesData.seriesGoals[_]&&this.w.seriesData.seriesGoals[_][c]&&Array.isArray(this.w.seriesData.seriesGoals[_][c])&&this.w.seriesData.seriesGoals[_][c].forEach(e=>{u=Math.max(u,e.value),t=Math.min(t,e.value)}),i=u,a=KBe.noExponents(a),KBe.isFloat(a)&&(d.yValueDecimal=Math.max(d.yValueDecimal,a.toString().split(".")[1].length)),p>(null==(r=f[_])?void 0:r[c])&&(null==(l=f[_])?void 0:l[c])<0&&(p=f[_][c])}else d.hasNullValues=!0}"bar"!==e&&"column"!==e||(p<0&&u<0&&(u=0,i=Math.max(i,0)),p===Number.MIN_VALUE&&(p=0,t=Math.min(t,0)))}return"rangeBar"===c.chart.type&&this.w.rangeData.seriesRangeStart.length&&d.isBarHorizontal&&(p=t),"bar"===c.chart.type&&(p<0&&u<0&&(u=0),p===Number.MIN_VALUE&&(p=0)),{minY:p,maxY:u,lowestY:t,highestY:i}}setYRange(){const e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;let i,a=Number.MAX_VALUE;if(e.isMultipleYAxis){a=Number.MAX_VALUE;for(let t=0;t<this.w.seriesData.series.length;t++)i=this.getMinYMaxY(t),e.minYArr[t]=i.lowestY,e.maxYArr[t]=i.highestY,a=Math.min(a,i.lowestY)}if(i=this.getMinYMaxY(0,a,void 0,this.w.seriesData.series.length),"bar"===t.chart.type?(e.minY=i.minY,e.maxY=i.maxY):(e.minY=i.lowestY,e.maxY=i.highestY),a=i.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&a!==-Number.MAX_VALUE&&a!==e.maxY&&(e.minY=a):e.minY=e.minY!==Number.MIN_VALUE?Math.min(i.minY,e.minY):i.minY,t.yaxis.forEach((t,i)=>{void 0!==t.max&&("number"==typeof t.max?e.maxYArr[i]=t.max:"function"==typeof t.max&&(e.maxYArr[i]=t.max(e.isMultipleYAxis?e.maxYArr[i]:e.maxY)),e.maxY=e.maxYArr[i]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[i]=t.min:"function"==typeof t.min&&(e.minYArr[i]=t.min(e.isMultipleYAxis?e.minYArr[i]===Number.MIN_VALUE?0:e.minYArr[i]:e.minY)),e.minY=e.minYArr[i])}),e.isBarHorizontal){["min","max"].forEach(i=>{void 0!==t.xaxis[i]&&"number"==typeof t.xaxis[i]&&("min"===i?e.minY=t.xaxis[i]:e.maxY=t.xaxis[i])})}return e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=a):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(i=>{const a=i;switch(a.type||t.chart.type){case"bar":case"column":e.barGroups.push(a.group);break;case"line":e.lineGroups.push(a.group);break;case"area":e.areaGroups.push(a.group)}}),e.barGroups=e.barGroups.filter((e,t,i)=>i.indexOf(e)===t),e.lineGroups=e.lineGroups.filter((e,t,i)=>i.indexOf(e)===t),e.areaGroups=e.areaGroups.filter((e,t,i)=>i.indexOf(e)===t),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}setXRange(){const e=this.w.globals,t=this.w.config,i="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric,a=()=>{for(let t=0;t<this.w.seriesData.series.length;t++)if(this.w.labelData.labels[t])for(let i=0;i<this.w.labelData.labels[t].length;i++)null!==this.w.labelData.labels[t][i]&&KBe.isNumber(this.w.labelData.labels[t][i])&&(e.maxX=Math.max(e.maxX,this.w.labelData.labels[t][i]),e.initialMaxX=Math.max(e.maxX,this.w.labelData.labels[t][i]),e.minX=Math.min(e.minX,this.w.labelData.labels[t][i]),e.initialMinX=Math.min(e.minX,this.w.labelData.labels[t][i]))};if(this.w.axisFlags.isXNumeric&&a(),this.w.axisFlags.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.initialMaxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.minX=1,e.initialMinX=1),this.w.axisFlags.isXNumeric||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.dataFormatXNumeric){let a=10;if(void 0===t.xaxis.tickAmount)a=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(a=e.dataPoints-1),a>e.dataPoints&&0!==e.dataPoints&&(a=e.dataPoints-1);else if("dataPoints"===t.xaxis.tickAmount){if(this.w.seriesData.series.length>1&&(a=this.w.seriesData.series[e.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){const t=Math.round(e.maxX-e.minX);t<30&&(a=t)}}else a=t.xaxis.tickAmount;if(e.xTickAmount=a,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!this.w.axisFlags.dataFormatXNumeric){const t=[];for(let i=e.minX-1;i<e.maxX;i++)t.push(i+1);e.xAxisScale={result:t,niceMin:t[0],niceMax:t[t.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,a,a,0,t.xaxis.stepSize),this.w.axisFlags.noLabelsProvided&&this.w.labelData.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,a-1,0,t.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());i&&(this.w.labelData.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&this.w.labelData.labels.length&&(e.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}setZRange(){const e=this.w.globals;if(this.w.axisFlags.isDataXYZ)for(let t=0;t<this.w.seriesData.series.length;t++)if(void 0!==this.w.seriesData.seriesZ[t])for(let i=0;i<this.w.seriesData.seriesZ[t].length;i++)null!==this.w.seriesData.seriesZ[t][i]&&KBe.isNumber(this.w.seriesData.seriesZ[t][i])&&(e.maxZ=Math.max(e.maxZ,this.w.seriesData.seriesZ[t][i]),e.minZ=Math.min(e.minZ,this.w.seriesData.seriesZ[t][i]))}_handleSingleDataPoint(){const e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){const i=new XBe(this.w);if("datetime"===t.xaxis.type){const a=i.getDate(e.minX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),e.minX=new Date(a).getTime();const n=i.getDate(e.maxX);t.xaxis.labels.datetimeUTC?n.setUTCDate(n.getUTCDate()+2):n.setDate(n.getDate()+2),e.maxX=new Date(n).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!this.w.axisFlags.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}_getMinXDiff(){const e=this.w.globals;this.w.axisFlags.isXNumeric&&this.w.seriesData.seriesX.forEach(t=>{if(t.length){1===t.length&&t.push(this.w.seriesData.seriesX[e.maxValsInArrayIndex][this.w.seriesData.seriesX[e.maxValsInArrayIndex].length-1]);const i=t.slice();i.sort((e,t)=>e-t),i.forEach((t,a)=>{if(a>0){const n=t-i[a-1];n>0&&(e.minXDiff=Math.min(n,e.minXDiff))}}),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}_setStackedMinMax(){const e=this.w.globals;if(!this.w.seriesData.series.length)return;let t=this.w.labelData.seriesGroups;t.length||(t=[this.w.seriesData.seriesNames.map(e=>e)]);const i={},a={};t.forEach(t=>{i[t]=[],a[t]=[];this.w.config.series.map((e,i)=>t.indexOf(this.w.seriesData.seriesNames[i])>-1?i:null).filter(e=>null!==e).forEach(n=>{var s,o,r,l;for(let c=0;c<this.w.seriesData.series[e.maxValsInArrayIndex].length;c++){void 0===i[t][c]&&(i[t][c]=0,a[t][c]=0);(this.w.config.chart.stacked&&!e.comboCharts||this.w.config.chart.stacked&&e.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(o=null==(s=this.w.config.series)?void 0:s[n])?void 0:o.type)||"column"===(null==(l=null==(r=this.w.config.series)?void 0:r[n])?void 0:l.type)))&&null!==this.w.seriesData.series[n][c]&&KBe.isNumber(this.w.seriesData.series[n][c])&&(this.w.seriesData.series[n][c]>0?i[t][c]+=parseFloat(String(this.w.seriesData.series[n][c]))+1e-4:a[t][c]+=parseFloat(String(this.w.seriesData.series[n][c])))}})}),Object.entries(i).forEach(([t])=>{i[t].forEach((n,s)=>{e.maxY=Math.max(e.maxY,i[t][s]),e.minY=Math.min(e.minY,a[t][s])})})}}class O$e{constructor(e,{theme:t=null,timeScale:i=null}={},a){this.w=e,this.elgrid=a,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.axisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===e.config.xaxis.position?e.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new T$e(e,{theme:t,timeScale:i})}drawYaxis(e){const t=this.w,i=new _$e(this.w),a=t.config.yaxis[e].labels.style,{fontSize:n,fontFamily:s,fontWeight:o}=a,r=i.group({class:"apexcharts-yaxis",rel:e,transform:`translate(${t.globals.translateYAxisX[e]}, 0)`});if(this.axesUtils.isYAxisHidden(e))return r;const l=i.group({class:"apexcharts-yaxis-texts-g"});r.add(l);const c=t.globals.yAxisScale[e].result.length-1,d=t.layout.gridHeight/c,u=t.formatters.yLabelFormatters[e],p=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){let r=t.layout.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?r=0:"heatmap"===t.config.chart.type&&(r-=d/2),r+=parseInt(n,10)/3;let h=null;for(let f=c;f>=0;f--){const c=u(p[f],f,t);let g=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(g*=-1);const m=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),_=this.axesUtils.getYAxisForeColor(a.colors,e),v=Array.isArray(_)?_[f]:_,b=Array.from(t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-label tspan`)).map(e=>e.textContent),y=i.drawText({x:g,y:r,text:b.includes(c)&&!t.config.yaxis[e].labels.showDuplicates?"":c,textAnchor:m,fontSize:n,fontFamily:s,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:v,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${a.cssClass}`});l.add(y),this.addTooltip(y,c),null===h&&(h=y),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(i,y,h,t.config.yaxis[e].labels.rotate),r+=d}}return this.addYAxisTitle(i,r,e),this.addAxisBorder(i,r,e,c,d),r}getTextAnchor(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}addTooltip(e,t){const i=qBe.createElementNS(v$e,"title");i.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(i)}rotateLabel(e,t,i,a){const n=e.rotateAroundCenter(i.node),s=e.rotateAroundCenter(t.node);t.node.setAttribute("transform",`rotate(${a} ${n.x} ${s.y})`)}addYAxisTitle(e,t,i){const a=this.w;if(void 0!==a.config.yaxis[i].title.text){const n=e.group({class:"apexcharts-yaxis-title"}),s=a.config.yaxis[i].opposite?a.globals.translateYAxisX[i]:0,o=e.drawText({x:s,y:a.layout.gridHeight/2+a.layout.translateY+a.config.yaxis[i].title.offsetY,text:a.config.yaxis[i].title.text,textAnchor:"end",foreColor:a.config.yaxis[i].title.style.color,fontSize:a.config.yaxis[i].title.style.fontSize,fontWeight:a.config.yaxis[i].title.style.fontWeight,fontFamily:a.config.yaxis[i].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text ${a.config.yaxis[i].title.style.cssClass}`});n.add(o),t.add(n)}}addAxisBorder(e,t,i,a,n){const s=this.w,o=s.config.yaxis[i].axisBorder;let r=31+o.offsetX;if(s.config.yaxis[i].opposite&&(r=-31-o.offsetX),o.show){const i=e.drawLine(r,s.layout.translateY+o.offsetY-2,r,s.layout.gridHeight+s.layout.translateY+o.offsetY+2,o.color,0,o.width);t.add(i)}s.config.yaxis[i].axisTicks.show&&this.axesUtils.drawYAxisTicks(r,a,o,s.config.yaxis[i].axisTicks,i,n,t)}drawYaxisInversed(e){const t=this.w,i=new _$e(this.w),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),n=i.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});a.add(n);let s=t.globals.yAxisScale[e].result.length-1;const o=t.layout.gridWidth/s+.1;let r=o+t.config.xaxis.labels.offsetX;const l=t.formatters.xLabelFormatter;let c=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());const d=t.labelData.timescaleLabels;if(d.length>0&&(this.xaxisLabels=d.slice(),c=d.slice(),s=c.length),t.config.xaxis.labels.show)for(let u=d.length?0:s;d.length?u<d.length:u>=0;d.length?u++:u--){let a=null==l?void 0:l(c[u],u,t),s=t.layout.gridWidth+t.globals.padHorizontal-(r-o+t.config.xaxis.labels.offsetX);if(d.length){const e=this.axesUtils.getLabel(c,d,s,u,this.drawnLabels,this.xaxisFontSize);s=e.x,a=e.text,this.drawnLabels.push(e.text),0===u&&t.globals.skipFirstTimelinelabel&&(a=""),u===c.length-1&&t.globals.skipLastTimelinelabel&&(a="")}const p=i.drawText({x:s,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.layout.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:a,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-xaxis-label ${t.config.xaxis.labels.style.cssClass}`});n.add(p),this.addTooltip(p,a),r+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}inversedYAxisBorder(e){const t=this.w,i=new _$e(this.w),a=t.config.xaxis.axisBorder;if(a.show){let n=0;"bar"===t.config.chart.type&&t.axisFlags.isXNumeric&&(n-=15);const s=i.drawLine(t.globals.padHorizontal+n+a.offsetX,this.xAxisoffX,t.layout.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(s):e.add(s)}}inversedYAxisTitleText(e){const t=this.w,i=new _$e(this.w);if(void 0!==t.config.xaxis.title.text){const a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),n=i.drawText({x:t.layout.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:`apexcharts-xaxis-title-text ${t.config.xaxis.title.style.cssClass}`});a.add(n),e.add(a)}}yAxisTitleRotate(e,t){const i=this.w,a=new _$e(this.w),n=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),s=n?n.getBoundingClientRect():{width:0,height:0},o=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-title text`),r=o?o.getBoundingClientRect():{width:0,height:0};if(o){const n=this.xPaddingForYAxisTitle(e,s,r,t);o.setAttribute("x",String(n.xPos-(t?10:0)));const l=a.rotateAroundCenter(o);o.setAttribute("transform",`rotate(${t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate} ${l.x} ${l.y})`)}}xPaddingForYAxisTitle(e,t,i,a){const n=this.w;let s=0,o=10;return void 0===n.config.yaxis[e].title.text||e<0?{xPos:s,padd:0}:(a?s=t.width+n.config.yaxis[e].title.offsetX+i.width/2+o/2:(s=-1*t.width+n.config.yaxis[e].title.offsetX+o/2+i.width/2,n.globals.isBarHorizontal&&(o=25,s=-1*t.width-n.config.yaxis[e].title.offsetX-o)),{xPos:s,padd:o})}setYAxisXPosition(e,t){const i=this.w;let a=0,n=0,s=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.forEach((r,l)=>{const c=i.globals.ignoreYAxisIndexes.includes(l)||!r.show||r.floating||0===e[l].width,d=e[l].width+t[l].width;r.opposite?i.globals.isBarHorizontal?(n=i.layout.gridWidth+i.layout.translateX-1,i.globals.translateYAxisX[l]=n-r.labels.offsetX):(n=i.layout.gridWidth+i.layout.translateX+o,c||(o+=d+20),i.globals.translateYAxisX[l]=n-r.labels.offsetX+20):(a=i.layout.translateX-s,c||(s+=d+20),i.globals.translateYAxisX[l]=a+r.labels.offsetX)})}setYAxisTextAlignments(){const e=this.w;Array.from(e.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((t,i)=>{const a=e.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){const t=e.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${i}'] .apexcharts-yaxis-texts-g`),n=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${i}'] .apexcharts-yaxis-label`)),s=t.getBoundingClientRect();n.forEach(e=>{e.setAttribute("text-anchor",a.labels.align)}),"left"!==a.labels.align||a.opposite?"center"===a.labels.align?t.setAttribute("transform",`translate(${s.width/2*(a.opposite?1:-1)}, 0)`):"right"===a.labels.align&&a.opposite&&t.setAttribute("transform",`translate(${s.width}, 0)`):t.setAttribute("transform",`translate(-${s.width}, 0)`)}})}}class M$e{constructor(e,t){this.w=e,this.ctx=t,this.documentEvent=this.documentEvent.bind(this)}addEventListener(e,t){const i=this.w;Object.prototype.hasOwnProperty.call(i.globals.events,e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}removeEventListener(e,t){const i=this.w;if(!Object.prototype.hasOwnProperty.call(i.globals.events,e))return;const a=i.globals.events[e].indexOf(t);-1!==a&&i.globals.events[e].splice(a,1)}fireEvent(e,t){const i=this.w;if(!Object.prototype.hasOwnProperty.call(i.globals.events,e))return;t&&t.length||(t=[]);const a=i.globals.events[e],n=a.length;for(let s=0;s<n;s++)a[s].apply(null,t)}setupEventHandlers(){const e=this.w,t=this.ctx,i=e.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(a=>{null==i||i.addEventListener(a,i=>{const a=null===i.target.getAttribute("i")&&-1!==e.interact.capturedSeriesIndex?e.interact.capturedSeriesIndex:i.target.getAttribute("i"),n=null===i.target.getAttribute("j")&&-1!==e.interact.capturedDataPointIndex?e.interact.capturedDataPointIndex:i.target.getAttribute("j"),s=Object.assign({},e,{seriesIndex:e.globals.axisCharts?a:0,dataPointIndex:n});"keydown"===i.type?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&(t.ctx.keyboardNavigation&&t.ctx.keyboardNavigation.handleKey(i),"function"==typeof e.config.chart.events.keyDown&&e.config.chart.events.keyDown(i,t,s),t.ctx.events.fireEvent("keydown",[i,t,s])):"keyup"===i.type?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&("function"==typeof e.config.chart.events.keyUp&&e.config.chart.events.keyUp(i,t,s),t.ctx.events.fireEvent("keyup",[i,t,s])):"mousemove"===i.type||"touchmove"===i.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(i,t,s):"mouseleave"===i.type||"touchleave"===i.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(i,t,s):("mouseup"===i.type&&1===i.which||"touchend"===i.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(i,t,s),t.ctx.events.fireEvent("click",[i,t,s]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(t=>{e.dom.baseEl.addEventListener(t,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(e){const t=this.w,i=e.target.className;if("click"===e.type){const e=t.dom.baseEl.querySelector(".apexcharts-menu");e&&e.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&e.classList.remove("apexcharts-menu-open")}t.interact.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.interact.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}class N$e{constructor(e){this.w=e}setCurrentLocaleValues(e){let t=this.w.config.chart.locales;const i=UBe.getApex();i.chart&&i.chart.locales&&i.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(i.chart.locales));const a=t.filter(t=>t.name===e)[0];if(!a)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");{const e=KBe.extend(t$e,a);this.w.globals.locale=e.options}}}class L$e{constructor(e,t){this.w=e,this.ctx=t}drawAxis(e,t){const i=this.w.globals,a=this.w.config,n=new A$e(this.w,this.ctx,t),s=new O$e(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},t);if(i.axisCharts&&"radar"!==e){let e,t;i.isBarHorizontal?(t=s.drawYaxisInversed(0),e=n.drawXaxisInversed(0),this.w.dom.elGraphical.add(e),this.w.dom.elGraphical.add(t)):(e=n.drawXaxis(),this.w.dom.elGraphical.add(e),a.yaxis.map((e,a)=>{if(-1===i.ignoreYAxisIndexes.indexOf(a)&&(t=s.drawYaxis(a),this.w.dom.Paper.add(t),"back"===this.w.config.grid.position)){const e=this.w.dom.Paper.children()[1];e&&(e.remove(),this.w.dom.Paper.add(e))}}))}}}class P$e{constructor(e){this.w=e}drawXCrosshairs(){const e=this.w,t=new _$e(this.w),i=new m$e(this.w),a=e.config.xaxis.crosshairs.fill.gradient,n=e.config.xaxis.crosshairs.dropShadow,s=e.config.xaxis.crosshairs.fill.type,o=a.colorFrom,r=a.colorTo,l=a.opacityFrom,c=a.opacityTo,d=a.stops,u=n.enabled,p=n.left,h=n.top,f=n.blur,g=n.color,m=n.opacity;let _=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===s&&(_=t.drawGradient("vertical",o,r,l,c,null,d,[]));let a=t.drawRect();1===e.config.xaxis.crosshairs.width&&(a=t.drawLine(0,0,0,0));let n=e.layout.gridHeight;(!KBe.isNumber(n)||n<0)&&(n=0);let v=e.config.xaxis.crosshairs.width;(!KBe.isNumber(v)||Number(v)<0)&&(v=0),a.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:n,width:v,height:n,fill:_,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),u&&(a=i.dropShadow(a,{left:p,top:h,blur:f,color:g,opacity:m})),e.dom.elGraphical.add(a)}}drawYCrosshairs(){const e=this.w,t=new _$e(this.w),i=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){const n=t.drawLine(-a,0,e.layout.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);n.attr({class:"apexcharts-ycrosshairs"}),e.dom.elGraphical.add(n)}const n=t.drawLine(-a,0,e.layout.gridWidth+a,0,i.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.dom.elGraphical.add(n)}}function F$e(e,t){if(!KBe.isObject(e)||!KBe.isObject(t))return void 0!==t?t:e;const i=BBe({},e);for(const a of Object.keys(t)){const n=t[a];void 0!==n&&(KBe.isObject(n)&&KBe.isObject(e[a])?i[a]=F$e(e[a],n):i[a]=n)}return i}class B$e{constructor(e){this.w=e,this._activeBreakpoint=null}checkResponsiveConfig(e){const t=this.w,i=t.config;if(0===i.responsive.length)return;const a=i.responsive.slice();a.sort((e,t)=>e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0).reverse();const n=new a$e({}),s=(e={})=>{var i;const s=a[0].breakpoint,o=UBe.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(o>s){if(null!==this._activeBreakpoint){if(!t.globals.initialConfig)return;const i=KBe.clone(t.globals.initialConfig);i.series=KBe.clone(t.config.series);const a=l$e.extendArrayProps(n,i,t);e=KBe.extend(a,e),this.overrideResponsiveOptions(e),this._activeBreakpoint=null}}else for(let r=0;r<a.length;r++)if(o<a[r].breakpoint){const s=(null==(i=a[r].options)?void 0:i.yaxis)?KBe.clone(a[r].options.yaxis):null;if(e=l$e.extendArrayProps(n,a[r].options,t),e=KBe.extend(t.config,e),Array.isArray(t.config.yaxis)&&s){const i=Array.isArray(s)?s:[s];e=$Be(BBe({},e),{yaxis:t.config.yaxis.map((e,t)=>F$e(e,i[t]))})}this.overrideResponsiveOptions(e),this._activeBreakpoint=a[r].breakpoint}};if(e){let i=l$e.extendArrayProps(n,e,t);i=KBe.extend(t.config,i),i=KBe.extend(i,e),s(i)}else s({})}overrideResponsiveOptions(e){const t=new a$e(e).init({responsiveOverride:!0});this.w.config=t}}class $$e{constructor(e,{toggleDataSeries:t,revertDefaultAxisMinMax:i,updateSeries:a}={}){this.w=e,this._toggleDataSeries=t||null,this._revertDefaultAxisMinMax=i||null,this._updateSeries=a||null,this.legendInactiveClass="legend-mouseover-inactive"}clearSeriesCache(){const e=this.w;e.globals.cachedSelectors&&(delete e.globals.cachedSelectors.allSeriesEls,delete e.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){const e=this.w,t="allSeriesEls";return e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=e.dom.baseEl.getElementsByClassName("apexcharts-series")),e.globals.cachedSelectors[t]}getSeriesByName(e){return this.w.dom.baseEl.querySelector(`.apexcharts-inner .apexcharts-series[seriesName='${KBe.escapeString(e)}']`)}isSeriesHidden(e){var t;const i=this.getSeriesByName(e),a=parseInt(null!=(t=i.getAttribute("data:realIndex"))?t:"0",10);return{isHidden:i.classList.contains("apexcharts-series-collapsed"),realIndex:a}}addCollapsedClassToSeries(e,t){$$e.addCollapsedClassToSeries(this.w,e,t)}static addCollapsedClassToSeries(e,t,i){function a(e){for(let a=0;a<e.length;a++)e[a].index===i&&t.node.classList.add("apexcharts-series-collapsed")}a(e.globals.collapsedSeries),a(e.globals.ancillaryCollapsedSeries)}toggleSeries(e){var t;const i=this.isSeriesHidden(e);return null==(t=this._toggleDataSeries)||t.call(this,i.realIndex,i.isHidden),i.isHidden}showSeries(e){var t;const i=this.isSeriesHidden(e);i.isHidden&&(null==(t=this._toggleDataSeries)||t.call(this,i.realIndex,!0))}hideSeries(e){var t;const i=this.isSeriesHidden(e);i.isHidden||null==(t=this._toggleDataSeries)||t.call(this,i.realIndex,!1)}resetSeries(e=!0,t=!0,i=!0){var a,n;const s=this.w;this.clearSeriesCache();let o=KBe.clone(s.globals.initialSeries);s.globals.previousPaths=[],i?(s.globals.collapsedSeries=[],s.globals.ancillaryCollapsedSeries=[],s.globals.collapsedSeriesIndices=[],s.globals.ancillaryCollapsedSeriesIndices=[]):o=this.emptyCollapsedSeries(o),s.config.series=o,e&&(t&&(s.interact.zoomed=!1,null==(a=this._revertDefaultAxisMinMax)||a.call(this)),null==(n=this._updateSeries)||n.call(this,o,s.config.chart.animations.dynamicAnimation.enabled))}emptyCollapsedSeries(e){const t=this.w;for(let i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}highlightSeries(e){var t;const i=this.w,a=this.getSeriesByName(e),n=parseInt(null!=(t=null==a?void 0:a.getAttribute("data:realIndex"))?t:"",10),s="highlightSeriesEls";let o=i.globals.cachedSelectors[s];o||(o=i.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),i.globals.cachedSelectors[s]=o);let r=null,l=null,c=null;if(i.globals.axisCharts||"radialBar"===i.config.chart.type)if(i.globals.axisCharts){r=i.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${n}']`),l=i.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${n}']`);const e=i.globals.seriesYAxisReverseMap[n];c=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}']`)}else r=i.dom.baseEl.querySelector(`.apexcharts-series[rel='${n+1}']`);else r=i.dom.baseEl.querySelector(`.apexcharts-series[rel='${n+1}'] path`);for(let d=0;d<o.length;d++){o[d].classList.add(this.legendInactiveClass)}if(r){if(!i.globals.axisCharts){const e=r.parentNode;null==e||e.classList.remove(this.legendInactiveClass)}r.classList.remove(this.legendInactiveClass),null!==l&&l.classList.remove(this.legendInactiveClass),null!==c&&c.classList.remove(this.legendInactiveClass)}else for(let d=0;d<o.length;d++){o[d].classList.remove(this.legendInactiveClass)}}toggleSeriesOnHover(e,t){const i=this.w;t||(t=e.target);const a=i.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){const e=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(i.seriesData.seriesNames[e])}else if("mouseout"===e.type)for(let n=0;n<a.length;n++)a[n].classList.remove(this.legendInactiveClass)}highlightRangeInSeries(e,t){const i=this.w,a=i.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=e=>{for(let t=0;t<a.length;t++){const i=a[t].classList[e];"function"==typeof i&&i.call(a[t].classList,this.legendInactiveClass)}},s=(e,t)=>{for(let i=0;i<a.length;i++){const n=Number(a[i].getAttribute("val"));n>=e.from&&(n<e.to||e.to===t&&n===t)&&a[i].classList.remove(this.legendInactiveClass)}};if("mousemove"===e.type){const e=parseInt(t.getAttribute("rel"),10)-1;n("add");const a=i.config.plotOptions.heatmap.colorScale.ranges;s(a[e],a.reduce((e,t)=>Math.max(e,t.to),0))}else"mouseout"===e.type&&n("remove")}getActiveConfigSeriesIndex(e="asc",t=[]){const i=this.w;let a=0;if(i.config.series.length>1){const n=i.config.series.map((e,a)=>e.data&&e.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(a)&&(!i.globals.comboCharts||0===t.length||t.length&&t.indexOf(i.config.series[a].type)>-1)?a:-1);for(let t="asc"===e?0:n.length-1;"asc"===e?t<n.length:t>=0;"asc"===e?t++:t--)if(-1!==n[t]){a=n[t];break}}return a}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((e,t)=>"bar"===e.type||"column"===e.type?t:-1).filter(e=>-1!==e):this.w.config.series.map((e,t)=>t)}getPreviousPaths(){var e,t,i,a;const n=this.w;if(!n.globals.axisCharts)return void(n.globals.previousPaths=n.seriesData.series);function s(e,t,i){const a=e[t].childNodes,s={type:i,paths:[],realIndex:e[t].getAttribute("data:realIndex")};for(let n=0;n<a.length;n++)if(a[n].hasAttribute("pathTo")){const e=a[n].getAttribute("pathTo");s.paths.push({d:e})}n.globals.previousPaths.push(s)}n.globals.previousPaths=[];["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(e=>{const t=(i=e,n.dom.baseEl.querySelectorAll(`.apexcharts-${i}-series .apexcharts-series`));var i;for(let a=0;a<t.length;a++)s(t,a,e)});const o=n.dom.baseEl.querySelectorAll(`.apexcharts-${n.config.chart.type} .apexcharts-series`);if(o.length>0)for(let r=0;r<o.length;r++){const s=n.dom.baseEl.querySelectorAll(`.apexcharts-${n.config.chart.type} .apexcharts-series[data\\:realIndex='${r}'] rect`),o=[];for(let n=0;n<s.length;n++){const r=e=>s[n].getAttribute(e),l={x:parseFloat(null!=(e=r("x"))?e:"0"),y:parseFloat(null!=(t=r("y"))?t:"0"),width:parseFloat(null!=(i=r("width"))?i:"0"),height:parseFloat(null!=(a=r("height"))?a:"0")};o.push({rect:l,color:s[n].getAttribute("color")})}n.globals.previousPaths.push(o)}}clearPreviousPaths(){const e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}handleNoData(){const e=this.w,t=e.config.noData,i=new _$e(this.w);let a=e.globals.svgWidth/2,n=e.globals.svgHeight/2,s="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(a=10,s="start"):"right"===t.align&&(a=e.globals.svgWidth-10,s="end"),"top"===t.verticalAlign?n=50:"bottom"===t.verticalAlign&&(n=e.globals.svgHeight-50),a+=t.offsetX,n=n+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){const o=i.drawText({x:a,y:n,text:t.text,textAnchor:s,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,cssClass:"apexcharts-text-nodata"});e.dom.Paper.add(o)}}setNullSeriesToZeroValues(e){const t=this.w;for(let i=0;i<e.length;i++)if(0===e[i].length)for(let a=0;a<e[t.globals.maxValsInArrayIndex].length;a++)e[i].push(0);return e}hasAllSeriesEqualX(){let e=!0;const t=this.w,i=this.filteredSeriesX();for(let a=0;a<i.length-1;a++)if(i[a][0]!==i[a+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}filteredSeriesX(){return this.w.seriesData.seriesX.map(e=>e.length>0?e:[])}}class V$e{constructor(e){this.w=e,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}checkHeatmapDistributed(){const{chart:e,plotOptions:t}=this.w.config;return"treemap"===e.type&&t.treemap&&t.treemap.distributed||"heatmap"===e.type&&t.heatmap&&t.heatmap.distributed}checkBarDistributed(){const{chart:e,plotOptions:t}=this.w.config;return t.bar&&t.bar.distributed&&("bar"===e.type||"rangeBar"===e.type)}init(){this.setDefaultColors()}setDefaultColors(){var e;const t=this.w,i=new KBe;t.dom.elWrap.classList.add(`apexcharts-theme-${t.config.theme.mode||"light"}`);const a=null==(e=t.config.theme.accessibility)?void 0:e.colorBlindMode;if(a){t.globals.colors=this.getColorBlindColors(a),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors);const e=t.globals.colors.slice();return this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],e),this.applyDataLabelsColors(e),this.applyRadarPolygonsColors(),this.applyMarkersColors(e),void("highContrast"===a&&t.dom.elWrap.classList.add("apexcharts-high-contrast"))}const n=[...t.config.colors||t.config.fill.colors||[]];t.globals.colors=this.getColors(n),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors),t.config.theme.monochrome.enabled&&(t.globals.colors=this.getMonochromeColors(t.config.theme.monochrome,t.seriesData.series,i));const s=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],s),this.applyDataLabelsColors(s),this.applyRadarPolygonsColors(),this.applyMarkersColors(s)}getColors(e){const t=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,t.config.series.map((i,a)=>{const n=e[a]||e[0];return"function"==typeof n?n({value:t.globals.axisCharts?t.seriesData.series[a][0]||0:t.seriesData.series[a],seriesIndex:a,dataPointIndex:a,w:this.w}):n})):e:this.predefined()}applySeriesColors(e,t){e.forEach((e,i)=>{e&&(t[i]=e)})}getMonochromeColors(e,t,i){const{color:a,shadeIntensity:n,shadeTo:s}=e,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,r=1/(o/n);let l=0;return Array.from({length:o},()=>{const e="dark"===s?i.shadeColor(-1*l,a):i.shadeColor(l,a);return l+=r,e})}applyColorTypes(e,t){const i=this.w;e.forEach(e=>{i.globals[e].colors=void 0===i.config[e].colors?this.isColorFn?i.config.colors:t:i.config[e].colors.slice(),this.pushExtraColors(i.globals[e].colors)})}applyDataLabelsColors(e){const t=this.w;t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){const e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}applyMarkersColors(e){const t=this.w;t.globals.markers.colors=void 0===t.config.markers.colors?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}pushExtraColors(e,t,i=null){const a=this.w;let n=t||a.seriesData.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.seriesData.series.length&&(n=a.seriesData.series[a.globals.maxValsInArrayIndex].length*a.seriesData.series.length),e.length<n){const t=n-e.length;for(let i=0;i<t;i++)e.push(e[i])}}getColorBlindColors(e){const t={palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]};return({deuteranopia:t.cvdDeuteranopia,protanopia:t.cvdProtanopia,tritanopia:t.cvdTritanopia,highContrast:t.highContrast}[e]||t.palette1).slice()}updateThemeOptions(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};const t=e.theme.mode,i="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",a="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=a,e.theme.palette=i,e}predefined(){const e={palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]};return e[this.w.config.theme.palette]||e.palette1}}class U$e{constructor(e){this.w=e}draw(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}drawTitleSubtitle(e){const t=this.w,i="title"===e?t.config.title:t.config.subtitle;let a=t.globals.svgWidth/2,n=i.offsetY,s="middle";if("left"===i.align?(a=10,s="start"):"right"===i.align&&(a=t.globals.svgWidth-10,s="end"),a+=i.offsetX,n=n+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){const o=new _$e(this.w).drawText({x:a,y:n,text:i.text,textAnchor:s,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});o.node.setAttribute("class",`apexcharts-${e}-text`),t.dom.Paper.add(o)}}}let H$e=class{constructor(e){this.w=e.w,this.dCtx=e}getTitleSubtitleCoords(e){const t=this.w;let i=0,a=0;const n="title"===e?t.config.title.floating:t.config.subtitle.floating,s=t.dom.baseEl.querySelector(`.apexcharts-${e}-text`);if(null!==s&&!n){const e=s.getBoundingClientRect();i=e.width,a=t.globals.axisCharts?e.height+5:e.height}return{width:i,height:a}}getLegendsRect(){const e=this.w,t=e.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||t&&(t.style.maxHeight=e.globals.svgHeight/2+"px");const i=Object.assign({},KBe.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}getDatalabelsRect(){const e=this.w,t=[];e.config.series.forEach((i,a)=>{i.data.forEach((i,n)=>{const s=(o=e.seriesData.series[a][n],e.config.dataLabels.formatter(o,{seriesIndex:a,dataPointIndex:n,w:e}));var o;t.push(s)})});const i=KBe.getLargestStringFromArr(t),a=new _$e(this.w),n=e.config.dataLabels.style,s=a.getTextRects(i,parseInt(n.fontSize).toString(),n.fontFamily);return{width:1.05*s.width,height:s.height}}getLargestStringFromMultiArr(e,t){let i=e;if(this.w.axisFlags.isMultiLineX){const e=t.map(e=>Array.isArray(e)?e.length:1),a=Math.max(...e);i=t[e.indexOf(a)]}return i}};class z$e{constructor(e){this.w=e.w,this.dCtx=e}getxAxisLabelsCoords(){const e=this.w;let t,i=e.labelData.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.labelData.categoryLabels),e.labelData.timescaleLabels.length>0){const i=this.getxAxisTimeScaleLabelsCoords();t={width:i.width,height:i.height},e.layout.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;const a=e.formatters.xLabelFormatter;let n=KBe.getLargestStringFromArr(i),s=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i);e.globals.isBarHorizontal&&(n=e.globals.yAxisScale[0].result.reduce((e,t)=>e.length>t.length?e:t,0),s=n);const o=new ZBe(this.w),r=n;n=o.xLabelFormat(a,n,r,{i:void 0,dateFormatter:new XBe(this.w).formatDate,w:e}),s=o.xLabelFormat(a,s,r,{i:void 0,dateFormatter:new XBe(this.w).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===n||""===String(n).trim())&&(n="1",s=n);const l=new _$e(this.w);let c=l.getTextRects(n,e.config.xaxis.labels.style.fontSize),d=c;if(n!==s&&(d=l.getTextRects(s,e.config.xaxis.labels.style.fontSize)),t={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height},t.width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.layout.rotateXLabels=!0;const i=t=>l.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,`rotate(${e.config.xaxis.labels.rotate} 0 0)`,!1);c=i(n),n!==s&&(d=i(s)),t.height=(c.height>d.height?c.height:d.height)/1.5,t.width=c.width>d.width?c.width:d.width}}else e.layout.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}getxAxisGroupLabelsCoords(){var e;const t=this.w;if(!t.labelData.hasXaxisGroups)return{width:0,height:0};const i=(null==(e=t.config.xaxis.group.style)?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,a=t.labelData.groups.map(e=>e.title);let n;const s=KBe.getLargestStringFromArr(a),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,a),r=new _$e(this.w),l=r.getTextRects(s,i);let c=l;return s!==o&&(c=r.getTextRects(o,i)),n={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}getxAxisTitleCoords(){const e=this.w;let t=0,i=0;if(void 0!==e.config.xaxis.title.text){const a=new _$e(this.w).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=a.width,i=a.height}return{width:t,height:i}}getxAxisTimeScaleLabelsCoords(){const e=this.w;this.dCtx.timescaleLabels=e.labelData.timescaleLabels.slice();const t=this.dCtx.timescaleLabels.map(e=>e.value),i=t.reduce((e,t)=>void 0===e?0:e.length>t.length?e:t,0),a=new _$e(this.w).getTextRects(i,e.config.xaxis.labels.style.fontSize);return 1.05*a.width*t.length>e.layout.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),a}additionalPaddingXLabels(e){const t=this.w,i=t.globals,a=t.config,n=a.xaxis.type,s=e.width;i.skipLastTimelinelabel=!1,i.skipFirstTimelinelabel=!1;const o=t.config.yaxis[0].opposite&&t.globals.isBarHorizontal,r=e=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){const n=this.dCtx.timescaleLabels[0],o=this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+s/1.75-this.dCtx.yAxisWidthRight,r=n.position-s/1.75+this.dCtx.yAxisWidthLeft,l="right"===t.config.legend.position&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0;o>i.svgWidth-t.layout.translateX-l&&(i.skipLastTimelinelabel=!0),r<-(e.show&&!e.floating||"bar"!==a.chart.type&&"candlestick"!==a.chart.type&&"rangeBar"!==a.chart.type&&"boxPlot"!==a.chart.type?10:s/1.75)&&(i.skipFirstTimelinelabel=!0)}else"datetime"===n?this.dCtx.gridPad.right<s&&!t.layout.rotateXLabels&&(i.skipLastTimelinelabel=!0):"datetime"!==n&&this.dCtx.gridPad.right<s/2-this.dCtx.yAxisWidthRight&&!t.layout.rotateXLabels&&!t.config.xaxis.labels.trim&&(this.dCtx.xPadRight=s/2+1)},l=(e,t)=>{a.yaxis.length>1&&(e=>-1!==i.collapsedSeriesIndices.indexOf(e))(t)||r(e)};a.yaxis.forEach((e,t)=>{o?(this.dCtx.gridPad.left<s&&(this.dCtx.xPadLeft=s/2+1),this.dCtx.xPadRight=s/2+1):l(e,t)})}}class Y$e{constructor(e){this.w=e.w,this.dCtx=e}getyAxisLabelsCoords(){const e=this.w,t=[];let i=10;const a=new T$e(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return e.config.yaxis.map((n,s)=>{const o={seriesIndex:s,dataPointIndex:-1,w:e},r=e.globals.yAxisScale[s];let l=0;if(!a.isYAxisHidden(s)&&n.labels.show&&void 0!==n.labels.minWidth&&(l=n.labels.minWidth),!a.isYAxisHidden(s)&&n.labels.show&&r.result.length){const a=e.formatters.yLabelFormatters[s],c=r.niceMin===Number.MIN_VALUE?0:r.niceMin;let d=r.result.reduce((e,t)=>{var i,n;return(null==(i=String(a(e,o)))?void 0:i.length)>(null==(n=String(a(t,o)))?void 0:n.length)?e:t},c);d=a(d,o);let u=d;if(void 0!==d&&0!==d.length||(d=r.niceMax),1===String(d).length&&(d+=".0",u=d),e.globals.isBarHorizontal){i=0;const t=e.labelData.labels.slice();d=KBe.getLargestStringFromArr(t),d=a(d,{seriesIndex:s,dataPointIndex:-1,w:e}),u=this.dCtx.dimHelpers.getLargestStringFromMultiArr(d,t)}const p=new _$e(this.w),h="rotate(".concat(n.labels.rotate," 0 0)"),f=p.getTextRects(d,n.labels.style.fontSize,n.labels.style.fontFamily,h,!1);let g=f;d!==u&&(g=p.getTextRects(u,n.labels.style.fontSize,n.labels.style.fontFamily,h,!1)),t.push({width:(l>g.width||l>f.width?l:g.width>f.width?g.width:f.width)+i,height:g.height>f.height?g.height:f.height})}else t.push({width:0,height:0})}),t}getyAxisTitleCoords(){const e=this.w,t=[];return e.config.yaxis.map(e=>{if(e.show&&void 0!==e.title.text){const i=new _$e(this.w),a="rotate(".concat(e.title.rotate," 0 0)"),n=i.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,a,!1);t.push({width:n.width,height:n.height})}else t.push({width:0,height:0})}),t}getTotalYAxisWidth(){const e=this.w;let t=0,i=0,a=0;const n=e.globals.yAxisScale.length>1?10:0,s=new T$e(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),o=(o,r)=>{const l=e.config.yaxis[r].floating;let c=0;o.width>0&&!l?(c=o.width+n,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(r)&&(c=c-o.width-n)):c=l||s.isYAxisHidden(r)?0:5,e.config.yaxis[r].opposite?a+=c:i+=c,t+=c};return e.layout.yLabelsCoords.map((e,t)=>{o(e,t)}),e.layout.yTitleCoords.map((e,t)=>{o(e,t)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.layout.yLabelsCoords[0].width+e.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,t}}class G$e{constructor(e){this.w=e.w,this.dCtx=e}gridPadForColumnsInNumericAxis(e){const{w:t}=this,{config:i,globals:a}=t;if(a.noData||a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===i.series.length)return 0;const n=e=>["bar","rangeBar","candlestick","boxPlot"].includes(e),s=i.chart.type;let o=0,r=n(s)?i.series.length:1;a.comboBarCount>0&&(r=a.comboBarCount),a.collapsedSeries.forEach(e=>{n(e.type)&&(r-=1)}),i.chart.stacked&&(r=1);const l=n(s)||a.comboBarCount>0;let c=Math.abs(a.initialMaxX-a.initialMinX);if(l&&t.axisFlags.isXNumeric&&!a.isBarHorizontal&&r>0&&0!==c){c<=3&&(c=a.dataPoints);const t=c/e;let n=a.minXDiff&&a.minXDiff/t>0?a.minXDiff/t:0;n>e/2&&(n/=2),o=n*parseInt(i.plotOptions.bar.columnWidth,10)/100,o<1&&(o=1),a.barPadForNumericAxis=o}return o}gridPadFortitleSubtitle(){const{w:e}=this,{globals:t}=e;let i=this.dCtx.isSparkline||!t.axisCharts?0:10;["title","subtitle"].forEach(a=>{void 0!==e.config[a].text?i+=e.config[a].margin:i+=this.dCtx.isSparkline||!t.axisCharts?0:5}),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||t.axisCharts||(i+=10);const a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");e.layout.gridHeight-=a.height+n.height+i,e.layout.translateY+=a.height+n.height+i}setGridXPosForDualYAxis(e,t){const{w:i}=this,a=new T$e(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});i.config.yaxis.forEach((n,s)=>{-1!==i.globals.ignoreYAxisIndexes.indexOf(s)||n.floating||a.isYAxisHidden(s)||(n.opposite&&(i.layout.translateX-=t[s].width+e[s].width+parseInt(n.labels.style.fontSize,10)/1.2+12),i.layout.translateX<2&&(i.layout.translateX=2))})}}class W$e{constructor(e,t){this.w=e,this.ctx=t,this.theme=t.theme,this.timeScale=t.timeScale,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new H$e(this),this.dimYAxis=new Y$e(this),this.dimXAxis=new z$e(this),this.dimGrid=new G$e(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0,this.datalabelsCoords={width:0,height:0},this.xAxisWidth=0,this.timescaleLabels=[]}plotCoords(){const e=this.w,t=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};const i=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width;this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(([e,t])=>{this.gridPad[e]=Math.max(t,this.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(i/2,this.gridPad.top),this.gridPad.bottom=Math.max(i/2,this.gridPad.bottom)),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),e.layout.gridHeight=e.layout.gridHeight-this.gridPad.top-this.gridPad.bottom,e.layout.gridWidth=e.layout.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;const a=this.dimGrid.gridPadForColumnsInNumericAxis(e.layout.gridWidth);return e.layout.gridWidth=e.layout.gridWidth-2*a,e.layout.translateX=e.layout.translateX+this.gridPad.left+this.xPadLeft+(a>0?a:0),e.layout.translateY=e.layout.translateY+this.gridPad.top,{layout:{gridHeight:e.layout.gridHeight,gridWidth:e.layout.gridWidth,translateX:e.layout.translateX,translateY:e.layout.translateY,translateXAxisX:e.layout.translateXAxisX,translateXAxisY:e.layout.translateXAxisY,rotateXLabels:e.layout.rotateXLabels,xAxisHeight:e.layout.xAxisHeight,xAxisLabelsHeight:e.layout.xAxisLabelsHeight,xAxisGroupLabelsHeight:e.layout.xAxisGroupLabelsHeight,xAxisLabelsWidth:e.layout.xAxisLabelsWidth,yLabelsCoords:e.layout.yLabelsCoords,yTitleCoords:e.layout.yTitleCoords}}}setDimensionsForAxisCharts(){const e=this.w,t=e.globals,i=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();t.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),e.layout.yLabelsCoords=[],e.layout.yTitleCoords=[],e.config.yaxis.map((t,n)=>{e.layout.yLabelsCoords.push({width:i[n].width,index:n}),e.layout.yTitleCoords.push({width:a[n].width,index:n})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();const n=this.dimXAxis.getxAxisLabelsCoords(),s=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,o,s),e.layout.translateXAxisY=e.layout.rotateXLabels?this.xAxisHeight/8:-4,e.layout.translateXAxisX=e.layout.rotateXLabels&&e.axisFlags.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(e.layout.rotateXLabels=!1,e.layout.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),e.layout.translateXAxisY=e.layout.translateXAxisY+e.config.xaxis.labels.offsetY,e.layout.translateXAxisX=e.layout.translateXAxisX+e.config.xaxis.labels.offsetX;let r=this.yAxisWidth,l=this.xAxisHeight;e.layout.xAxisLabelsHeight=this.xAxisHeight-o.height,e.layout.xAxisGroupLabelsHeight=e.layout.xAxisLabelsHeight-n.height,e.layout.xAxisLabelsWidth=this.xAxisWidth,e.layout.xAxisHeight=this.xAxisHeight;let c=10;("radar"===e.config.chart.type||this.isSparkline)&&(r=0,l=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(r=0,l=0,c=0),this.isSparkline||"treemap"===e.config.chart.type||this.dimXAxis.additionalPaddingXLabels(n);const d=()=>{e.layout.translateX=r+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-this.lgRect.height-l-(this.isSparkline||"treemap"===e.config.chart.type?0:e.layout.rotateXLabels?10:15),e.layout.gridWidth=t.svgWidth-r-2*this.datalabelsCoords.width};switch("top"===e.config.xaxis.position&&(c=e.layout.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":e.layout.translateY=c,d();break;case"top":e.layout.translateY=this.lgRect.height+c,d();break;case"left":e.layout.translateY=c,e.layout.translateX=this.lgRect.width+r+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-l-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-r-2*this.datalabelsCoords.width;break;case"right":e.layout.translateY=c,e.layout.translateX=r+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-l-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-r-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,i);new O$e(this.w,{theme:this.theme,timeScale:this.timeScale}).setYAxisXPosition(i,a)}setDimensionsForNonAxisCharts(){const e=this.w,t=e.globals,i=e.config;let a=0;e.config.legend.show&&!e.config.legend.floating&&(a=20);const n="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",s=i.plotOptions[n].offsetY,o=i.plotOptions[n].offsetX;if(!i.legend.show||i.legend.floating){e.layout.gridHeight=t.svgHeight;const i=e.dom.elWrap.getBoundingClientRect().width;return e.layout.gridWidth=Math.min(i,e.layout.gridHeight),e.layout.translateY=s,void(e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2)}switch(i.legend.position){case"bottom":e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=s-10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case"top":e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=this.lgRect.height+s+10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case"left":e.layout.gridWidth=t.svgWidth-this.lgRect.width-a,e.layout.gridHeight="auto"!==i.chart.height?t.svgHeight:e.layout.gridWidth,e.layout.translateY=s,e.layout.translateX=o+this.lgRect.width+a;break;case"right":e.layout.gridWidth=t.svgWidth-this.lgRect.width-a-5,e.layout.gridHeight="auto"!==i.chart.height?t.svgHeight:e.layout.gridWidth,e.layout.translateY=s,e.layout.translateX=o+10;break;default:throw new Error("Legend position not supported")}}conditionalChecksForAxisCoords(e,t,i){const a=this.w,n=a.labelData.hasXaxisGroups?2:1,s=i.height+e.height+t.height,o=a.axisFlags.isMultiLineX?1.2:1.618,r=a.layout.rotateXLabels?22:10,l=a.layout.rotateXLabels&&"bottom"===a.config.legend.position?10:0;this.xAxisHeight=s*o+n*r+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);let c=0,d=0;a.config.yaxis.forEach(e=>{c+=e.labels.minWidth,d+=e.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>d&&(this.yAxisWidth=d)}}const j$e=1e3,q$e=6e4,K$e=36e5,X$e=24*K$e,Z$e=7*X$e,Q$e=30*X$e,J$e=365*X$e,eVe=10/86400,tVe=[{unit:"second",step:1,approxMs:j$e},{unit:"second",step:5,approxMs:5e3},{unit:"second",step:15,approxMs:15e3},{unit:"second",step:30,approxMs:3e4},{unit:"minute",step:1,approxMs:q$e},{unit:"minute",step:5,approxMs:3e5},{unit:"minute",step:15,approxMs:9e5},{unit:"minute",step:30,approxMs:18e5},{unit:"hour",step:1,approxMs:K$e},{unit:"hour",step:3,approxMs:3*K$e},{unit:"hour",step:6,approxMs:6*K$e},{unit:"hour",step:12,approxMs:12*K$e},{unit:"day",step:1,approxMs:X$e},{unit:"day",step:2,approxMs:2*X$e},{unit:"week",step:1,approxMs:Z$e},{unit:"week",step:2,approxMs:2*Z$e},{unit:"month",step:1,approxMs:Q$e},{unit:"month",step:3,approxMs:7776e6},{unit:"month",step:6,approxMs:15552e6},{unit:"year",step:1,approxMs:J$e},{unit:"year",step:2,approxMs:63072e6},{unit:"year",step:5,approxMs:15768e7},{unit:"year",step:10,approxMs:31536e7},{unit:"year",step:25,approxMs:7884e8},{unit:"year",step:50,approxMs:15768e8},{unit:"year",step:100,approxMs:31536e8}];let iVe=class{constructor(e,t){this.w=e,this.ctx=t,this.tickInterval=null,this.timeScaleArray=[],this.utc=e.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(e,t){const i=this.w;if(i.globals.allSeriesCollapsed)return i.labelData.labels=[],i.labelData.timescaleLabels=[],this.timeScaleArray=[],[];const a=t-e,n=a/X$e;i.interact.disableZoomIn=!1,i.interact.disableZoomOut=!1,n<eVe?i.interact.disableZoomIn=!0:n>5e4&&(i.interact.disableZoomOut=!0);const s=Number.isFinite(i.config.xaxis.tickAmount)?i.config.xaxis.tickAmount:10;this.tickInterval=function(e,t){(!Number.isFinite(t)||t<=0)&&(t=10);if(e<=0)return tVe[0];const i=e/t;let a=tVe[0],n=1/0;for(const s of tVe){const e=Math.abs(Math.log(s.approxMs/i));e<n&&(n=e,a=s)}return a}(a,s);const o=this.generateBaseTicks(e,t,this.tickInterval);return this.timeScaleArray=o,o}generateBaseTicks(e,t,i){const a=this.w,n=new XBe(a),s=this.utc,o=a.layout.gridWidth,r=t-e,l=[];let c=n.ceilToBoundary(e,i.unit,i.step,s),d=0;for(;c<=t&&d<5e3;){const t=n.getDateFields(c,s),a=r>0?(c-e)/r*o:0;l.push({timestamp:c,position:a,unit:i.unit,year:t.year,month:t.month+1,day:t.date,hour:t.hour,minute:t.minute,second:t.second,value:c}),c=n.addInterval(c,i.unit,i.step,s),d++}return l}recalcDimensionsBasedOnFormat(e){const t=this.w,i=this.formatDates(e),a=this.removeOverlappingTS(i);t.labelData.timescaleLabels=a.slice();const n=new W$e(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(n.layout)}formatDates(e){const t=this.w,i=new XBe(t),a=t.config.xaxis.labels.format,n=t.config.xaxis.labels.datetimeFormatter,s=this.utc,o=(e,t=2)=>String(e).padStart(t,"0"),r=a||this._effectiveFormat(e,n);return e.map(e=>{const t=i.getDate(e.timestamp),a=i.formatDate(t,r);return{dateString:`${e.year}-${o(e.month)}-${o(e.day)}T${o(e.hour)}:${o(e.minute)}:${o(e.second)}.000${s?"Z":""}`,position:e.position,value:a,unit:e.unit,year:e.year,month:e.month}})}_effectiveFormat(e,t){if(0===e.length)return t.day||"dd MMM";const i=this.tickInterval&&this.tickInterval.unit||e[0].unit,a=t["week"===i?"day":i]||t.day||"dd MMM",n=e[0],s=e[e.length-1],o=n.year!==s.year,r=o||n.month!==s.month||n.day!==s.day,l=/y/i.test(a),c=/M/.test(a),d=/d/i.test(a);if("month"===i||"week"===i)return o&&!l?a+" yyyy":a;if("day"===i)return o&&!l?a+" yyyy":a;if("hour"===i||"minute"===i||"second"===i){if(r&&!d&&!c){return(o?"dd MMM yyyy":"dd MMM")+" "+a}return a}return a}removeOverlappingTS(e){if(0===e.length)return[];const t=this.w,i=new _$e(t);let a,n=!1;e[0].value&&e.every(t=>t.value.length===e[0].value.length)&&(n=!0,a=i.getTextRects(e[0].value,t.config.xaxis.labels.style.fontSize).width);let s=0;return e.map((o,r)=>{if(0===r)return o;if(!t.config.xaxis.labels.hideOverlappingLabels)return o;const l=n?a:i.getTextRects(e[s].value,t.config.xaxis.labels.style.fontSize).width,c=e[s].position;return o.position>c+l+10?(s=r,o):null}).filter(e=>null!==e)}};const aVe="__apexcharts_registry__";function nVe(){return globalThis[aVe]}function sVe(e){const t=nVe()[e];if(!t)throw new Error(`ApexCharts: chart type "${e}" is not registered. Import it via ApexCharts.use() or use the full apexcharts bundle.`);return t}globalThis[aVe]||(globalThis[aVe]={});class oVe{constructor(e,t,i){this.w=t,this.ctx=i,this.el=e}setupElements(){const{globals:e,config:t}=this.w,i=t.chart.type,a=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"],n=[...a,"radar","heatmap","treemap"];e.axisCharts=n.includes(i),e.xyCharts=a.includes(i),e.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(i)&&t.plotOptions.bar.horizontal,e.chartClass=`.apexcharts${e.chartID}`,this.w.dom.baseEl=this.el,this.w.dom.elWrap=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),_$e.setAttrs(this.w.dom.elWrap,{id:e.chartClass.substring(1),class:`apexcharts-canvas ${e.chartClass.substring(1)}`}),this.el.appendChild(this.w.dom.elWrap);const s=globalThis.SVG;if(this.w.dom.Paper=s().addTo(this.w.dom.elWrap),this.w.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:`translate(${t.chart.offsetX}, ${t.chart.offsetY})`}),this.w.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?"light"!==t.theme.mode||t.chart.background?t.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),this.w.dom.elLegendForeign=qBe.createElementNS(v$e,"foreignObject"),_$e.setAttrs(this.w.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),this.w.dom.elLegendWrap=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),this.w.dom.elLegendWrap.classList.add("apexcharts-legend"),this.w.dom.elWrap.appendChild(this.w.dom.elLegendWrap),this.w.dom.Paper.node.appendChild(this.w.dom.elLegendForeign),t.chart.accessibility.enabled&&t.chart.accessibility.announcements.enabled){const e=qBe.createElement("div");e.className="apexcharts-sr-status",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),this.w.dom.elWrap.appendChild(e)}if(t.chart.accessibility.enabled){const e=this.getAccessibleChartLabel(),i=t.chart.accessibility.keyboard.enabled&&t.chart.accessibility.keyboard.navigation.enabled?"application":"img";if(this.w.dom.Paper.attr({role:i,"aria-label":e}),t.chart.accessibility.description){const e=qBe.createElementNS(v$e,"desc");e.textContent=t.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(e,this.w.dom.elLegendForeign.nextSibling)}}this.w.dom.elGraphical=this.w.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),this.w.dom.elDefs=this.w.dom.Paper.defs(),this.w.dom.Paper.add(this.w.dom.elGraphical),this.w.dom.elGraphical.add(this.w.dom.elDefs)}plotChartType(e,t){const{w:i,ctx:a}=this,{config:n,globals:s}=i,o={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},r=n.chart.type||"line";let l=null,c=0;this.w.seriesData.series.forEach((t,a)=>{var n,s;const d="column"===(null==(n=e[a])?void 0:n.type)?"bar":(null==(s=e[a])?void 0:s.type)||("column"===r?"bar":r),u=o;u[d]?("rangeArea"===d?(u[d].series.push(this.w.rangeData.seriesRangeStart[a]),u[d].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[a])):u[d].series.push(t),u[d].i.push(a),"bar"===d&&(i.globals.columnSeries=o.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(d)&&(l=d),r!==d&&"scatter"!==d&&c++}),c>0&&o.bar.series.length>0&&n.plotOptions.bar.horizontal&&(c-=o.bar.series.length,o.bar={series:[],i:[]},i.globals.columnSeries={series:[],i:[]}),s.comboCharts||(s.comboCharts=c>0);const d=o.line.series.length>0||o.area.series.length>0||o.scatter.series.length>0||o.bubble.series.length>0||o.rangeArea.series.length>0||!s.comboCharts&&["line","area","scatter","bubble","rangeArea"].includes(n.chart.type)?new(sVe("line"))(a.w,a,t):null,u=o.candlestick.series.length>0||o.boxPlot.series.length>0||!s.comboCharts&&["candlestick","boxPlot"].includes(n.chart.type)?new(sVe("candlestick"))(a.w,a,t):null,p=!s.comboCharts&&["pie","donut","polarArea"].includes(n.chart.type);a.pie=p?new(sVe("pie"))(a.w,a):null;const h=o.rangeBar.series.length>0||!s.comboCharts&&"rangeBar"===n.chart.type;a.rangeBar=h?new(sVe("rangeBar"))(a.w,a,t):null;let f=[];if(s.comboCharts){const e=new l$e(this.w);if(o.area.series.length>0&&f.push(...e.drawSeriesByGroup(o.area,s.areaGroups,"area",d)),o.bar.series.length>0)if(n.chart.stacked){const e=new(sVe("barStacked"))(a.w,a,t);f.push(e.draw(o.bar.series,o.bar.i))}else a.bar=new(sVe("bar"))(a.w,a,t),f.push(a.bar.draw(o.bar.series,o.bar.i));if(o.rangeArea.series.length>0&&f.push(d.draw(o.rangeArea.series,"rangeArea",o.rangeArea.i,o.rangeArea.seriesRangeEnd)),o.line.series.length>0&&f.push(...e.drawSeriesByGroup(o.line,s.lineGroups,"line",d)),o.candlestick.series.length>0&&f.push(u.draw(o.candlestick.series,"candlestick",o.candlestick.i)),o.boxPlot.series.length>0&&f.push(u.draw(o.boxPlot.series,"boxPlot",o.boxPlot.i)),o.rangeBar.series.length>0&&f.push(a.rangeBar.draw(o.rangeBar.series,o.rangeBar.i)),o.scatter.series.length>0){const e=new(sVe("line"))(a.w,a,t,!0);f.push(e.draw(o.scatter.series,"scatter",o.scatter.i))}if(o.bubble.series.length>0){const e=new(sVe("line"))(a.w,a,t,!0);f.push(e.draw(o.bubble.series,"bubble",o.bubble.i))}}else{const e=n.chart.type;switch(e){case"line":f=d.draw(this.w.seriesData.series,"line");break;case"area":f=d.draw(this.w.seriesData.series,"area");break;case"bar":if(n.chart.stacked){f=new(sVe("barStacked"))(a.w,a,t).draw(this.w.seriesData.series)}else a.bar=new(sVe("bar"))(a.w,a,t),f=a.bar.draw(this.w.seriesData.series);break;case"candlestick":f=u.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":f=u.draw(this.w.seriesData.series,e);break;case"rangeBar":f=a.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":f=d.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":f=new(sVe("heatmap"))(a.w,a,t).draw(this.w.seriesData.series);break;case"treemap":f=new(sVe("treemap"))(a.w,a).draw(this.w.seriesData.series);break;case"pie":case"donut":case"polarArea":f=a.pie.draw(this.w.seriesData.series);break;case"radialBar":f=new(sVe("radialBar"))(a.w,a).draw(this.w.seriesData.series);break;case"radar":f=new(sVe("radar"))(a.w,a).draw(this.w.seriesData.series);break;default:f=d.draw(this.w.seriesData.series)}}return f}setSVGDimensions(){var e;const{globals:t,config:i}=this.w;i.chart.width=i.chart.width||"100%",i.chart.height=i.chart.height||"auto";const a=i.chart.width,n=i.chart.height;t.svgWidth=NaN,t.svgHeight=NaN;let s=KBe.getDimensions(this.el);const o=a.toString().split(/[0-9]+/g).pop();"%"===o?KBe.isNumber(s[0])&&(0===s[0].width&&(s=KBe.getDimensions(this.el.parentNode)),t.svgWidth=s[0]*parseInt(a,10)/100):"px"!==o&&""!==o||(t.svgWidth=parseInt(a,10));const r=String(n).toString().split(/[0-9]+/g).pop();if("auto"!==n&&""!==n)if("%"===r){const e=KBe.getDimensions(this.el.parentNode);t.svgHeight=e[1]*parseInt(n,10)/100}else t.svgHeight=parseInt(n,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),_$e.setAttrs(this.w.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==r&&UBe.isBrowser()){const a=i.chart.sparkline.enabled?0:t.axisCharts?i.chart.parentHeightOffset:0,n=this.w.dom.Paper.node;(null==(e=n.parentNode)?void 0:e.parentNode)&&(n.parentNode.parentNode.style.minHeight=`${t.svgHeight+a}px`)}this.w.dom.elWrap.style.width=`${t.svgWidth}px`,this.w.dom.elWrap.style.height=`${t.svgHeight}px`}shiftGraphPosition(){const{globals:e}=this.w,{translateY:t,translateX:i}=e;_$e.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${i}, ${t})`})}resizeNonAxisCharts(){var e,t,i,a,n,s;const{w:o}=this;let r=0,l=o.config.chart.sparkline.enabled?1:15;l+=o.config.grid.padding.bottom,["top","bottom"].includes(o.config.legend.position)&&o.config.legend.show&&!o.config.legend.floating&&(r=(null!=(t=null==(e=this.ctx.legend)?void 0:e.legendHelpers.getLegendDimensions().clwh)?t:0)+7);const c=o.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie");let d=2.05*o.globals.radialSize;const u=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle);if(c&&!o.config.chart.sparkline.enabled&&u<360){const e=KBe.getBoundingClientRect(this.w.dom.Paper.node);let t=1/0,u=-1/0;const p=i=>{var a,n,s,o;if(null==(a=i.classList)?void 0:a.contains("apexcharts-radialbar-hollow"))return;const r=null==(s=null==(n=i.tagName)?void 0:n.toLowerCase)?void 0:s.call(n);if("text"===r||"tspan"===r)return;const l=Array.from(null!=(o=i.children)?o:[]);if(l.length>0)return void l.forEach(e=>p(e));const c=KBe.getBoundingClientRect(i);if(c.bottom-c.top>0){const i=c.top-e.top,a=c.bottom-e.top;i<t&&(t=i),a>u&&(u=a)}};if(Array.from(null!=(i=c.children)?i:[]).forEach(e=>p(e)),Number.isFinite(t)||(t=0),!Number.isFinite(u)){const t=KBe.getBoundingClientRect(c);u=t.bottom-e.top}const h=Math.max(l,.2*o.globals.radialSize),f=Math.max(h-t,0);0!==f&&(o.layout.translateY=(null!=(a=o.layout.translateY)?a:0)+f,_$e.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${null!=(n=o.layout.translateX)?n:0}, ${o.layout.translateY})`}),u+=f),d=u>0?u:2.05*o.globals.radialSize;const g=Math.max(h,t),m=Math.ceil(d+r+g),_=null!=(s=o.config.chart.offsetY)?s:0,v=m+Math.max(_,0);return this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(v)),void(o.config.chart.height&&String(o.config.chart.height).includes("%")||(this.w.dom.elWrap.style.height=`${v}px`,_$e.setAttrs(this.w.dom.Paper.node,{height:m}),UBe.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${v}px`)))}const p=Math.ceil(d+this.w.layout.translateY+r+l);this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(p)),o.config.chart.height&&String(o.config.chart.height).includes("%")||(this.w.dom.elWrap.style.height=`${p}px`,_$e.setAttrs(this.w.dom.Paper.node,{height:p}),UBe.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${p}px`))}coreCalculations(){new D$e(this.w).init()}resetGlobals(){const e=()=>this.w.config.series.map(()=>[]),t=new o$e,{globals:i}=this.w,a={dataWasParsed:this.w.axisFlags.dataWasParsed,originalSeries:i.originalSeries};t.initGlobalVars(i),i.seriesXvalues=e(),i.seriesYvalues=e(),a.dataWasParsed&&(this.w.axisFlags.dataWasParsed=a.dataWasParsed,i.originalSeries=a.originalSeries)}isMultipleY(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}xySettings(){const{w:e}=this;let t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new P$e(this.w).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new P$e(this.w).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new iVe(this.w,this.ctx);let t=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(t)}t=new l$e(this.w).getCalculatedRatios()}return t}updateSourceChart(e){this.ctx.w.interact.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}setupBrushHandler(){const{ctx:e,w:t}=this;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){const i=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];i.forEach(t=>{const i=e.constructor.getChartByID(t);i.w.globals.brushSource=this.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=()=>this.updateSourceChart(i)),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=()=>this.updateSourceChart(i))}),t.config.chart.events.selection=(t,a)=>{i.forEach(t=>{e.constructor.getChartByID(t).ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max}},!1,!1,!1,!1)})}}}getAccessibleChartLabel(){const e=this.w,t=e.config;if(t.chart.accessibility&&t.chart.accessibility.description)return t.chart.accessibility.description;const i=t.chart.type,a=[];if(t.title.text)a.push(`${t.title.text}. ${i} chart`),t.subtitle.text&&a.push(t.subtitle.text);else{const n=Array.isArray(e.seriesData.seriesNames)&&e.seriesData.seriesNames.length?e.seriesData.seriesNames.filter(Boolean):Array.isArray(t.series)?t.series.map(e=>"object"==typeof e&&null!==e?e.name:null).filter(Boolean):[],s=e.seriesData.series.length||(t.series?t.series.length:0);n.length?a.push(`${i} chart with ${s} data series: ${n.join(", ")}`):a.push(`${i} chart with ${s} data series`)}return a.join(". ")}}class rVe{constructor(e,{resetGlobals:t=()=>{},isMultipleY:i=()=>{}}={}){this.w=e,this.resetGlobals=t,this.isMultipleY=i,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new l$e(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){const e=this.w.config.series,t=new $$e(this.w);this.activeSeriesIndex=t.getActiveConfigSeriesIndex();const i=e[this.activeSeriesIndex];return i&&i.data&&i.data.length>0&&null!==i.data[0]&&void 0!==i.data[0]?i.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var e;const t=this.getFirstDataPoint();if(!t||void 0===t.x)return!1;const i=null==(e=this.w.config.series[this.activeSeriesIndex])?void 0:e.data;if(i){const e=e=>e&&void 0!==e.x;for(let t=1;t<Math.min(3,i.length)&&!0===e(i[t]);t++);}return!0}isFormat2DArray(){const e=this.getFirstDataPoint();return e&&Array.isArray(e)}handleFormat2DArray(e,t){const i=this.w.config,a=e[t].data,n="boxPlot"===i.chart.type||"boxPlot"===i.series[t].type;for(let s=0;s<a.length;s++){const e=a[s],t=e[0],o=e[1],r=e[2];if(void 0!==o&&(Array.isArray(o)&&4===o.length&&!n?this.twoDSeries.push(KBe.parseNumber(o[3])):e.length>=5?this.twoDSeries.push(KBe.parseNumber(e[4])):this.twoDSeries.push(KBe.parseNumber(o)),this.w.axisFlags.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){const e=new Date(t).getTime();this.twoDSeriesX.push(e)}else this.twoDSeriesX.push(t);void 0!==r&&(this.threeDSeries.push(r),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(e,t){const i=this.w.config,a=this.w.globals,n=new XBe(this.w),s=e[t].data;let o=t;a.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);const r=e[o].data;for(let l=0;l<s.length;l++){const e=s[l];if(void 0!==e.y){const t=Array.isArray(e.y)?KBe.parseNumber(e.y[e.y.length-1]):KBe.parseNumber(e.y);this.twoDSeries.push(t)}void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),void 0!==e.goals&&Array.isArray(e.goals)?this.seriesGoals[t].push(e.goals):this.seriesGoals[t].push(null),void 0!==e.z&&(this.threeDSeries.push(e.z),this.w.axisFlags.isDataXYZ=!0)}for(let l=0;l<r.length;l++){const e=r[l].x,t="string"==typeof e,s=Array.isArray(e),o=!s&&!!n.isValidDate(e);if(t||o)if(t||i.xaxis.convertedCatToNumeric){const t=a.isBarHorizontal&&this.w.axisFlags.isRangeData;"datetime"!==i.xaxis.type||t?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e),isNaN(e)||"category"===this.w.config.xaxis.type||"string"==typeof e||(this.w.axisFlags.isXNumeric=!0)):this.twoDSeriesX.push(n.parseDate(e))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(n.parseDate(e.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e)));else s?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(e))}}handleRangeData(e,t){let i={start:[],end:[],rangeUniques:[]};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",e,t)),this.w.rangeData.seriesRangeStart[t]=void 0===i.start?[]:i.start,this.w.rangeData.seriesRangeEnd[t]=void 0===i.end?[]:i.end,this.w.rangeData.seriesRange[t]=i.rangeUniques,this.w.rangeData.seriesRange.forEach(e=>{e&&e.forEach(e=>{const t=e.y,i=t.length;if(!(i<=1))for(let a=0;a<i;a++){const n=t[a],s=n.y1,o=n.y2;for(let r=a+1;r<i;r++){const i=t[r],a=i.y1;if(s<=i.y2&&a<=o){const t=e;t.overlaps.add(n.rangeName),t.overlaps.add(i.rangeName)}}}})}),i}handleCandleStickBoxData(e,t){let i={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",e,t)),this.w.candleData.seriesCandleO[t]=i.o,this.w.candleData.seriesCandleH[t]=i.h,this.w.candleData.seriesCandleM[t]=i.m,this.w.candleData.seriesCandleL[t]=i.l,this.w.candleData.seriesCandleC[t]=i.c,i}handleRangeDataFormat(e,t,i){const a=[],n=[],s=new Map,o=[];if(t[i].data.forEach(e=>{if(!s.has(e.x)){const t={x:e.x,overlaps:new Set,y:[]};s.set(e.x,t),o.push(t)}}),"array"===e)for(let r=0;r<t[i].data.length;r++)Array.isArray(t[i].data[r])?(a.push(t[i].data[r][1][0]),n.push(t[i].data[r][1][1])):(a.push(t[i].data[r]),n.push(t[i].data[r]));else if("xy"===e)for(let r=0;r<t[i].data.length;r++){const e=Array.isArray(t[i].data[r].y),o=KBe.randomId(),l=t[i].data[r].x,c={y1:e?t[i].data[r].y[0]:t[i].data[r].y,y2:e?t[i].data[r].y[1]:t[i].data[r].y,rangeName:o};t[i].data[r].rangeName=o;const d=s.get(l);d&&d.y.push(c),a.push(c.y1),n.push(c.y2)}return{start:a,end:n,rangeUniques:o}}handleCandleStickBoxDataFormat(e,t,i){const a=this.w,n="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[i].type,s=[],o=[],r=[],l=[],c=[],d=t[i].data;let u;if("array"===e){u=n&&6===d[0].length||!n&&5===d[0].length?e=>e.slice(1):e=>Array.isArray(e[1])?e[1]:[]}else u=e=>Array.isArray(e.y)?e.y:[];for(let p=0;p<d.length;p++){const e=u(d[p]);e&&e.length>=2&&(s.push(e[0]),o.push(e[1]),n?(r.push(e[2]),l.push(e[3]),c.push(e[4])):(l.push(e[2]),c.push(e[3])))}return{o:s,h:o,m:r,l:l,c:c}}parseDataAxisCharts(e){var t,i,a,n;const s=this.w.config,o=this.w.globals,r=new XBe(this.w),l=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();this.w.axisFlags.isRangeBar="rangeBar"===s.chart.type&&o.isBarHorizontal,this.w.labelData.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=s.xaxis.group.groups),e.forEach((e,t)=>{void 0!==e.name?this.w.seriesData.seriesNames.push(e.name):this.w.seriesData.seriesNames.push("series-"+parseInt(String(t+1),10))}),this.coreUtils.setSeriesYAxisMappings();const c=[],d=[...new Set(s.series.map(e=>e.group))];s.series.forEach((e,t)=>{const i=d.indexOf(e.group);c[i]||(c[i]=[]),c[i].push(this.w.seriesData.seriesNames[t])}),this.w.labelData.seriesGroups=c;const u=()=>{for(let e=0;e<l.length;e++)if("string"==typeof l[e]){if(!r.isValidDate(l[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");this.twoDSeriesX.push(r.parseDate(l[e]))}else this.twoDSeriesX.push(l[e])};for(let p=0;p<e.length;p++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[p].data)return;const r=s.chart.dataReducer,c=null==(i=null==(t=o.dataReducerRawSeries)?void 0:t[p])?void 0:i.data;if((null==r?void 0:r.enabled)&&this.isMultiFormat()&&Array.isArray(c)&&c.length>(null!=(a=r.threshold)?a:500)){const t=null!=(n=r.targetPoints)?n:250,i=s.xaxis.min,a=s.xaxis.max,o=null==i&&null==a?c:rVe.sliceByXRange(c,i,a),l=o.length>t?rVe.lttbDownsample(o,t):o;e[p]=$Be(BBe({},e[p]),{data:l})}if("rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type&&"rangeBar"!==e[p].type&&"rangeArea"!==e[p].type||(this.w.axisFlags.isRangeData=!0,this.handleRangeData(e,p)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,p):this.isFormatXY()&&this.handleFormatXY(e,p),"candlestick"!==s.chart.type&&"candlestick"!==e[p].type&&"boxPlot"!==s.chart.type&&"boxPlot"!==e[p].type||this.handleCandleStickBoxData(e,p),this.w.seriesData.series.push(this.twoDSeries),this.w.labelData.labels.push(this.twoDSeriesX),this.w.seriesData.seriesX.push(this.twoDSeriesX),this.w.seriesData.seriesGoals=this.seriesGoals,p!==this.activeSeriesIndex||this.fallbackToCategory||(this.w.axisFlags.isXNumeric=!0);else{"datetime"===s.xaxis.type?(this.w.axisFlags.isXNumeric=!0,u(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):"numeric"===s.xaxis.type&&(this.w.axisFlags.isXNumeric=!0,l.length>0&&(this.twoDSeriesX=l,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);const t=e[p].data.map(e=>KBe.parseNumber(e));this.w.seriesData.series.push(t)}this.w.seriesData.seriesZ.push(this.threeDSeries),void 0!==e[p].color?this.w.seriesData.seriesColors.push(e[p].color):this.w.seriesData.seriesColors.push(void 0)}return this.w}parseDataNonAxisCharts(e){const t=this.w.config,i=Array.isArray(e)&&e.every(e=>"number"==typeof e)&&t.labels.length>0;Array.isArray(e)&&e.some(e=>e&&"object"==typeof e&&e.data||e&&"object"==typeof e&&e.parsing);if(i){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=t.labels.slice();for(let e=0;e<this.w.seriesData.series.length;e++)void 0===this.w.seriesData.seriesNames[e]&&this.w.seriesData.seriesNames.push("series-"+(e+1));return this.w}if(Array.isArray(e)&&e.every(e=>"number"==typeof e)){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=[];for(let e=0;e<this.w.seriesData.series.length;e++)this.w.seriesData.seriesNames.push(t.labels[e]||`series-${e+1}`);return this.w}const a=this.extractPieDataFromSeries(e);this.w.seriesData.series=a.values,this.w.seriesData.seriesNames=a.labels,"radialBar"===t.chart.type&&(this.w.seriesData.series=this.w.seriesData.series.map(e=>{const t=KBe.parseNumber(e);return t}));for(let n=0;n<this.w.seriesData.series.length;n++)void 0===this.w.seriesData.seriesNames[n]&&this.w.seriesData.seriesNames.push("series-"+(n+1));return this.w}resetParsingFlags(){const e=this.w;e.axisFlags.dataWasParsed=!1,e.globals.originalSeries=null,e.config.series&&e.config.series.forEach(e=>{e.__apexParsed&&delete e.__apexParsed})}extractPieDataFromSeries(e){const t=[],i=[];if(!Array.isArray(e))return{values:[],labels:[]};if(0===e.length)return{values:[],labels:[]};const a=e[0];return"object"==typeof a&&null!==a&&a.data?(this.extractPieDataFromSeriesObjects(e,t,i),{values:t,labels:i}):{values:[],labels:[]}}extractPieDataFromSeriesObjects(e,t,i){e.forEach((e,a)=>{e.data&&Array.isArray(e.data)&&e.data.forEach(e=>{"object"==typeof e&&null!==e&&void 0!==e.x&&void 0!==e.y&&(i.push(String(e.x)),t.push(KBe.parseNumber(e.y)))})})}handleExternalLabelsData(e){const t=this.w.config;if(t.xaxis.categories.length>0)this.w.labelData.labels=t.xaxis.categories;else if(t.labels.length>0)this.w.labelData.labels=t.labels.slice();else if(this.fallbackToCategory){if(this.w.labelData.labels=this.w.labelData.labels[0],this.w.rangeData.seriesRange.length){this.w.rangeData.seriesRange.map(e=>{e.forEach(e=>{this.w.labelData.labels.indexOf(e.x)<0&&e.x&&this.w.labelData.labels.push(e.x)})});const e=this.w.labelData.labels;if(e.length>0&&("number"==typeof e[0]||"string"==typeof e[0]))this.w.labelData.labels=[...new Set(e)];else{const t=new Map;for(const i of e){const e=JSON.stringify(i);t.has(e)||t.set(e,i)}this.w.labelData.labels=Array.from(t.values())}}if(t.xaxis.convertedCatToNumeric){new e$e(t).convertCatToNumericXaxis(t,this.w.seriesData.seriesX[0]),this._generateExternalLabels(e)}}else this._generateExternalLabels(e)}_generateExternalLabels(e){const t=this.w.globals,i=this.w.config;let a=[];if(t.axisCharts){if(this.w.seriesData.series.length>0)if(this.isFormatXY()){const e=i.series.map(e=>{const t=new Map;for(const i of e.data)t.has(i.x)||t.set(i.x,i);return Array.from(t.values())}),t=e.reduce((e,t,i,a)=>a[e].length>t.length?e:i,0);for(let i=0;i<e[t].length;i++)a.push(i+1)}else for(let e=0;e<this.w.seriesData.series[t.maxValsInArrayIndex].length;e++)a.push(e+1);this.w.seriesData.seriesX=[];for(let t=0;t<e.length;t++)this.w.seriesData.seriesX.push(a);this.w.globals.isBarHorizontal||(this.w.axisFlags.isXNumeric=!0)}if(0===a.length){a=t.axisCharts?[]:this.w.seriesData.series.map((e,t)=>t+1);for(let t=0;t<e.length;t++)this.w.seriesData.seriesX.push(a)}this.w.labelData.labels=a,i.xaxis.convertedCatToNumeric&&(this.w.labelData.categoryLabels=a.map(e=>i.xaxis.labels.formatter(e))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(e){const t=this.w.config,i=this.w.globals,a=t.parsing;if(this.w.axisFlags.dataWasParsed)return e;if(!a&&!e.some(e=>e.parsing))return e;const n=e.map((e,t)=>{var i,n,s;if(!e.data||!Array.isArray(e.data)||0===e.data.length)return e;const o={x:(null==(i=e.parsing)?void 0:i.x)||(null==a?void 0:a.x),y:(null==(n=e.parsing)?void 0:n.y)||(null==a?void 0:a.y),z:(null==(s=e.parsing)?void 0:s.z)||(null==a?void 0:a.z)};if(!o.x&&!o.y)return e;const r=e.data[0];if("object"==typeof r&&null!==r&&(Object.prototype.hasOwnProperty.call(r,"x")||Object.prototype.hasOwnProperty.call(r,"y"))||Array.isArray(r))return e;if(!o.x||!o.y||Array.isArray(o.y)&&0===o.y.length)return e;const l=e.data.map((e,t)=>{if("object"!=typeof e||null===e)return e;const i=this.getNestedValue(e,o.x);let a,n;if(Array.isArray(o.y)){const t=o.y.map(t=>this.getNestedValue(e,t));"bubble"===this.w.config.chart.type?(t.length,a=t[0]):a=t}else a=this.getNestedValue(e,o.y);o.z&&(n=this.getNestedValue(e,o.z));const s={x:i,y:a,z:void 0};if("bubble"===this.w.config.chart.type&&Array.isArray(o.y)&&2===o.y.length){const t=this.getNestedValue(e,o.y[1]);void 0!==t&&(s.z=t)}return void 0!==n&&(s.z=n),s});return $Be(BBe({},e),{data:l,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,i.originalSeries||(i.originalSeries=KBe.clone(e)),n}getNestedValue(e,t){if(!e||"object"!=typeof e||!t)return;if(-1===t.indexOf("."))return e[t];const i=t.split(".");let a=e;for(let n=0;n<i.length;n++){if(null==a||"object"!=typeof a)return;a=a[i[n]]}return a}parseData(e){var t,i,a,n,s,o;const r=this.w,l=r.config,c=r.globals;if(e=this.parseRawDataIfNeeded(e),(null==(t=l.chart.dataReducer)?void 0:t.enabled)&&c.axisCharts&&!c.dataReducerRawSeries){c.dataReducerRawSeries=e.map(e=>({data:Array.isArray(null==e?void 0:e.data)?e.data.slice():null==e?void 0:e.data}));let t=1/0,o=-1/0;for(const r of e){const e=null==r?void 0:r.data;if(!Array.isArray(e)||0===e.length)continue;const l=!Array.isArray(e[0]),c=l?null==(i=e[0])?void 0:i.x:null==(a=e[0])?void 0:a[0],d=l?null==(n=e[e.length-1])?void 0:n.x:null==(s=e[e.length-1])?void 0:s[0];"number"==typeof c&&(t=Math.min(t,c)),"number"==typeof d&&(o=Math.max(o,d))}t!==1/0&&(c.dataReducerRawMinX=t,c.dataReducerRawMaxX=o)}if(l.series=e,c.dataReducerRawSeries&&(null==(o=l.chart.dataReducer)?void 0:o.enabled)){const t=c.dataReducerRawSeries;c.initialSeries=e.map((e,i)=>{var a,n,s;return $Be(BBe({},e),{data:null!=(s=null==(n=null==(a=t[i])?void 0:a.data)?void 0:n.slice())?s:e.data})})}else c.initialSeries=KBe.clone(e);if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),c.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),l.chart.stacked){const e=new $$e(this.w);this.w.seriesData.series=e.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),c.axisCharts&&(this.w.seriesData.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),this.w.seriesData.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),this.w.axisFlags.dataFormatXNumeric||this.w.axisFlags.isXNumeric&&("numeric"!==l.xaxis.type||0!==l.labels.length||0!==l.xaxis.categories.length)||this.handleExternalLabelsData(e);const d=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let u=0;u<d.length;u++)if(Array.isArray(d[u])){this.w.axisFlags.isMultiLineX=!0;break}return{seriesData:{series:this.w.seriesData.series,seriesNames:this.w.seriesData.seriesNames,seriesX:this.w.seriesData.seriesX,seriesZ:this.w.seriesData.seriesZ,seriesColors:this.w.seriesData.seriesColors,seriesGoals:this.w.seriesData.seriesGoals,initialSeries:c.initialSeries,originalSeries:c.originalSeries,stackedSeriesTotals:this.w.seriesData.stackedSeriesTotals,stackedSeriesTotalsByGroups:this.w.seriesData.stackedSeriesTotalsByGroups,noLabelsProvided:this.w.axisFlags.noLabelsProvided},rangeData:{seriesRangeStart:this.w.rangeData.seriesRangeStart,seriesRangeEnd:this.w.rangeData.seriesRangeEnd,seriesRange:this.w.rangeData.seriesRange},candleData:{seriesCandleO:this.w.candleData.seriesCandleO,seriesCandleH:this.w.candleData.seriesCandleH,seriesCandleM:this.w.candleData.seriesCandleM,seriesCandleL:this.w.candleData.seriesCandleL,seriesCandleC:this.w.candleData.seriesCandleC},labelData:{labels:this.w.labelData.labels,categoryLabels:this.w.labelData.categoryLabels},axisFlags:{isXNumeric:this.w.axisFlags.isXNumeric,dataFormatXNumeric:this.w.axisFlags.dataFormatXNumeric,isDataXYZ:this.w.axisFlags.isDataXYZ,isRangeData:this.w.axisFlags.isRangeData,isRangeBar:this.w.axisFlags.isRangeBar,isMultiLineX:this.w.axisFlags.isMultiLineX,dataWasParsed:this.w.axisFlags.dataWasParsed,hasXaxisGroups:this.w.labelData.hasXaxisGroups,groups:this.w.labelData.groups,seriesGroups:this.w.labelData.seriesGroups}}}static sliceByXRange(e,t,i){const a=e.length;if(0===a)return e;const n=!Array.isArray(e[0])?e=>e.x:e=>e[0];let s=0;if(null!=t){let i=0,o=a-1;for(;i<=o;){const a=i+o>>1;n(e[a])<t?i=a+1:o=a-1}s=Math.max(0,i-1)}let o=a;if(null!=i){let t=0,s=a-1;for(;t<=s;){const a=t+s>>1;n(e[a])>i?s=a-1:t=a+1}o=Math.min(a,t+1)}return 0===s&&o===a?e.slice():e.slice(s,o)}static lttbDownsample(e,t){const i=e.length;if(t>=i||t<3)return e;const a=!Array.isArray(e[0]),n=a?e=>e.x:e=>e[0],s=a?e=>e.y:e=>e[1],o=[];o.push(e[0]);const r=(i-2)/(t-2);let l=0;for(let c=0;c<t-2;c++){const t=Math.floor((c+1)*r)+1,a=Math.min(Math.floor((c+2)*r)+1,i);let d=0,u=0;const p=a-t;for(let i=t;i<a;i++)d+=n(e[i]),u+=s(e[i]);d/=p,u/=p;const h=Math.floor(c*r)+1,f=Math.min(Math.floor((c+1)*r)+1,i),g=n(e[l]),m=s(e[l]);let _=-1,v=h;for(let i=h;i<f;i++){const t=.5*Math.abs((g-d)*(s(e[i])-m)-(g-n(e[i]))*(u-m));t>_&&(_=t,v=i)}o.push(e[v]),l=v}return o.push(e[i-1]),o}excludeCollapsedSeriesInYAxis(){const e=this.w,t=[];e.globals.seriesYAxisMap.forEach((i,a)=>{let n=0;i.forEach(t=>{-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&n++}),n>0&&n==i.length&&t.push(a)}),e.globals.ignoreYAxisIndexes=t.map(e=>e)}}class lVe{constructor(e,t){this.w=e,this.ctx=t}_updateOptions(e,t=!1,i=!0,a=!0,n=!1){return new Promise(s=>{let o=[this.ctx];a&&(o=this.ctx.getSyncedCharts()),this.w.globals.isExecCalled&&(o=[this.ctx],this.w.globals.isExecCalled=!1),o.forEach((a,r)=>{const l=a.w;if(l.globals.shouldAnimate=i,t||(l.globals.resized=!0,l.globals.dataChanged=!0,i&&a.series.getPreviousPaths()),e&&"object"==typeof e&&(a.config=new a$e(e),e=l$e.extendArrayProps(a.config,e,l),a.w.globals.chartID!==this.w.globals.chartID&&delete e.series,l.config=KBe.extend(l.config,e),n&&(l.globals.lastXAxis=e.xaxis?KBe.clone(e.xaxis):[],l.globals.lastYAxis=e.yaxis?KBe.clone(e.yaxis):[],l.globals.initialConfig=KBe.extend({},l.config),l.globals.initialSeries=KBe.clone(l.config.series),e.series))){for(let e=0;e<l.globals.collapsedSeriesIndices.length;e++){const t=l.config.series[l.globals.collapsedSeriesIndices[e]];l.globals.collapsedSeries[e].data=l.globals.axisCharts?t.data.slice():t}for(let e=0;e<l.globals.ancillaryCollapsedSeriesIndices.length;e++){const t=l.config.series[l.globals.ancillaryCollapsedSeriesIndices[e]];l.globals.ancillaryCollapsedSeries[e].data=l.globals.axisCharts?t.data.slice():t}a.series.emptyCollapsedSeries(l.config.series)}return a.update(e).then(()=>{r===o.length-1&&s(a)})})})}_updateSeries(e,t,i=!1){return new Promise(a=>{const n=this.w;n.globals.shouldAnimate=t,n.globals.dataChanged=!0,k$e.invalidateSelectors(n),t&&this.ctx.series.getPreviousPaths();const s=n.config.series.length;n.globals.dataReducerRawSeries=null,this.ctx.data.resetParsingFlags();const o=this.ctx.data.parseData(e);return this.ctx._writeParsedSeriesData(o.seriesData),this.ctx._writeParsedRangeData(o.rangeData),this.ctx._writeParsedCandleData(o.candleData),this.ctx._writeParsedLabelData(o.labelData),this.ctx._writeParsedAxisFlags(o.axisFlags),i&&(n.globals.initialConfig&&(n.globals.initialConfig.series=KBe.clone(n.config.series)),n.globals.initialSeries=KBe.clone(n.config.series)),this._canUseFastPath(e,s,n)?this.ctx.fastUpdate(t).then(()=>{a(this.ctx)}):this.ctx.update().then(()=>{a(this.ctx)})})}_canUseFastPath(e,t,i){return!!i.dom.elGraphical&&(!!i.globals.axisCharts&&(e.length===t&&(!(i.globals.collapsedSeries.length>0)&&(!(i.globals.ancillaryCollapsedSeries.length>0)&&(!(i.globals.risingSeries.length>0)&&(!i.globals.comboCharts&&!i.interact.zoomed))))))}_extendSeries(e,t){const i=this.w,a=i.config.series[t];return $Be(BBe({},i.config.series[t]),{name:e.name?e.name:null==a?void 0:a.name,color:e.color?e.color:null==a?void 0:a.color,type:e.type?e.type:null==a?void 0:a.type,group:e.group?e.group:null==a?void 0:a.group,hidden:void 0!==e.hidden?e.hidden:null==a?void 0:a.hidden,data:e.data?e.data:null==a?void 0:a.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}toggleDataPointSelection(e,t){const i=this.w;let a=null;const n=`.apexcharts-series[data\\:realIndex='${e}']`;if(i.globals.axisCharts?a=i.dom.Paper.findOne(`${n} path[j='${t}'], ${n} circle[j='${t}'], ${n} rect[j='${t}']`):void 0===t&&(a=i.dom.Paper.findOne(`${n} path[j='${e}']`),"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(e)),!a)return null;new _$e(this.w).pathMouseDown(a,null);return a.node?a.node:null}forceXAxisUpdate(e){const t=this.w;if(["min","max"].forEach(i=>{void 0!==e.xaxis[i]&&(t.config.xaxis[i]=e.xaxis[i],t.globals.lastXAxis[i]=e.xaxis[i])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){const t=new e$e(e);e=t.convertCatToNumericXaxis(e,this.ctx)}return e}forceYAxisUpdate(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((t,i)=>{e.yaxis[i].min=0,e.yaxis[i].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}revertDefaultAxisMinMax(e){const t=this.w;let i=t.globals.lastXAxis,a=t.globals.lastYAxis;e&&e.xaxis&&(i=e.xaxis),e&&e.yaxis&&(a=e.yaxis);const n=i;t.config.xaxis.min=n.min,t.config.xaxis.max=n.max;const s=e=>{if(void 0!==a[e]){const i=a[e];t.config.yaxis[e].min=i.min,t.config.yaxis[e].max=i.max}};t.config.yaxis.map((e,i)=>{t.interact.zoomed||void 0!==a[i]?s(i):void 0!==this.ctx.opts.yaxis[i]&&(e.min=this.ctx.opts.yaxis[i].min,e.max=this.ctx.opts.yaxis[i].max)})}}class cVe{constructor(e){this.w=e.w,this.ttCtx=e}getNearestValues({hoverArea:e,elGrid:t,clientX:i,clientY:a}){var n,s;const o=this.w,r=t.getBoundingClientRect(),l=r.width,c=r.height;let d=l/(o.globals.dataPoints-1);const u=c/o.globals.dataPoints,p=this.hasBars();!o.globals.comboCharts&&!p||o.config.xaxis.convertedCatToNumeric||(d=l/o.globals.dataPoints);const h=i-r.left-o.globals.barPadForNumericAxis,f=a-r.top;h<0||f<0||h>l||f>c?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):o.interact.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):o.interact.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));let g=Math.round(h/d);const m=Math.floor(f/u);p&&!o.config.xaxis.convertedCatToNumeric&&(g=Math.ceil(h/d),g-=1);let _=null,v=null,b=o.globals.seriesXvalues.map(e=>e.filter(e=>KBe.isNumber(e)));const y=o.globals.seriesYvalues.map(e=>e.filter(e=>KBe.isNumber(e)));if(o.axisFlags.isXNumeric){const e=this.ttCtx.getElGrid();if(!e)return{hoverX:h,hoverY:f};const t=e.getBoundingClientRect(),i=h*(t.width/l),a=f*(t.height/c);v=this.closestInMultiArray(i,a,b,y),_=v.index,g=null!=(n=v.j)?n:0,null!==_&&o.globals.hasNullValues&&(b=o.globals.seriesXvalues[_],v=this.closestInArray(i,b),g=null!=(s=v.j)?s:0)}return o.interact.capturedSeriesIndex=null===_?-1:_,(!g||g<1)&&(g=0),o.globals.isBarHorizontal?o.interact.capturedDataPointIndex=m:o.interact.capturedDataPointIndex=g,{capturedSeries:_,j:o.globals.isBarHorizontal?m:g,hoverX:h,hoverY:f}}getFirstActiveXArray(e){const t=this.w;let i=0;const a=e.map((e,t)=>e.length>0?t:-1);for(let n=0;n<a.length;n++)if(-1!==a[n]&&-1===t.globals.collapsedSeriesIndices.indexOf(n)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(n)){i=a[n];break}return i}closestInMultiArray(e,t,i,a){const n=this.w,s=e=>-1===n.globals.collapsedSeriesIndices.indexOf(e)&&-1===n.globals.ancillaryCollapsedSeriesIndices.indexOf(e),o=n.config.chart.type,r=!n.globals.comboCharts&&("line"===o||"area"===o);let l=1/0,c=null,d=null;if(n.globals.allSeriesHasEqualX){let n=1/0;for(let t=0;t<i.length;t++){if(!s(t))continue;const o=i[t],r=a[t],l=Math.min(o.length,r.length);for(let t=0;t<l;t++){const i=Math.abs(e-o[t]);i<n&&(n=i,d=t)}}if(null!==d)if(r){let n=1/0;for(let o=0;o<i.length;o++){if(!s(o))continue;const r=i[o],l=a[o],u=Math.min(r.length,l.length);if(u<2){const e=l[d];if("number"!=typeof e)continue;const i=Math.abs(t-e);i<n&&(n=i,c=o);continue}for(let i=0;i<u-1;i++){const a=this._distanceToSegment(e,t,r[i],l[i],r[i+1],l[i+1]);a.dist<n&&(n=a.dist,c=o)}}}else{let e=1/0;for(let n=0;n<i.length;n++){if(!s(n))continue;const i=a[n][d];if("number"!=typeof i)continue;const o=Math.abs(t-i);o<e&&(e=o,c=n)}}return{index:c,j:d}}for(let u=0;u<i.length;u++){if(!s(u))continue;const n=i[u],o=a[u],p=Math.min(n.length,o.length);if(r&&p>=2)for(let i=0;i<p-1;i++){const a=this._distanceToSegment(e,t,n[i],o[i],n[i+1],o[i+1]);a.dist<l&&(l=a.dist,c=u,d=a.t<.5?i:i+1)}else for(let i=0;i<p;i++){const a=e-n[i],s=t-o[i],r=Math.sqrt(a*a+s*s);r<l&&(l=r,c=u,d=i)}}return{index:c,j:d}}_distanceToSegment(e,t,i,a,n,s){const o=n-i,r=s-a,l=o*o+r*r;let c=0===l?0:((e-i)*o+(t-a)*r)/l;c<0?c=0:c>1&&(c=1);const d=e-(i+c*o),u=t-(a+c*r);return{dist:Math.sqrt(d*d+u*u),t:c}}closestInArray(e,t){const i=t[0];let a=null,n=Math.abs(e-i);for(let s=0;s<t.length;s++){const i=Math.abs(e-t[s]);i<n&&(n=i,a=s)}return{j:a}}isXoverlap(e){const t=[],i=this.w.seriesData.seriesX.filter(e=>void 0!==e[0]);if(i.length>0)for(let a=0;a<i.length-1;a++)void 0!==i[a][e]&&void 0!==i[a+1][e]&&i[a][e]!==i[a+1][e]&&t.push("unEqual");return 0===t.length}isInitialSeriesSameLen(){var e,t,i;let a=!0;const n=(null==(e=this.w.globals.initialSeries)?void 0:e.filter((e,t)=>{var i;return!(null==(i=this.w.globals.collapsedSeriesIndices)?void 0:i.includes(t))}))||[];for(let s=0;s<n.length-1;s++){if(!(null==(t=n[s])?void 0:t.data)||!(null==(i=n[s+1])?void 0:i.data))return!0;if(n[s].data.length!==n[s+1].data.length){a=!1;break}}return a}getBarsHeight(e){return[...e].reduce((e,t)=>e+t.getBBox().height,0)}getElMarkers(e){return"number"==typeof e?this.w.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers-wrap > *`):this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}getAllMarkers(e=!1){let t=[...this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap")];e&&(t=t.filter(e=>{const t=Number(e.getAttribute("data:realIndex"));return-1===this.w.globals.collapsedSeriesIndices.indexOf(t)})),t.sort((e,t)=>{var i=Number(e.getAttribute("data:realIndex")),a=Number(t.getAttribute("data:realIndex"));return a<i?1:a>i?-1:0});const i=[];return t.forEach(e=>{i.push(e.querySelector(".apexcharts-marker"))}),i}hasMarkers(e){return this.getElMarkers(e).length>0}getPathFromPoint(e,t){const i=Number(e.getAttribute("cx")),a=Number(e.getAttribute("cy")),n=e.getAttribute("shape");return new _$e(this.w).getMarkerPath(i,a,n,t)}getElBars(){return this.w.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}hasBars(){return this.getElBars().length>0}getHoverMarkerSize(e){const t=this.w;let i=t.config.markers.hover.size;return void 0===i&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}toggleAllTooltipSeriesGroups(e){const t=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=t.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));const a=i.allTooltipSeriesGroups;for(let n=0;n<a.length;n++)"enable"===e?(a[n].classList.add("apexcharts-active"),a[n].style.display=t.config.tooltip.items.display):(a[n].classList.remove("apexcharts-active"),a[n].style.display="none")}}class dVe{constructor(e){this.w=e.w,this.ttCtx=e,this.tooltipUtil=new cVe(e)}drawSeriesTexts({shared:e=!0,ttItems:t,i:i=0,j:a=null,y1:n,y2:s,e:o}){const r=this.w;void 0!==r.config.tooltip.custom?this.handleCustomTooltip({i:i,j:a,y1:n,y2:s,w:r}):this.toggleActiveInactiveSeries(e,i);const l=this.getValuesToPrint({i:i,j:a});this.printLabels({i:i,j:a,values:l,ttItems:t,shared:e,e:o});const c=this.ttCtx.getElTooltip();c&&(this.ttCtx.tooltipRect.ttWidth=c.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=c.getBoundingClientRect().height)}printLabels({i:e,j:t,values:i,ttItems:a,shared:n,e:s}){const o=this.w,{xVal:r,zVal:l,xAxisTTVal:c}=i,d=o.seriesData.series.length,u=null!==t&&o.config.plotOptions.bar.distributed?o.globals.colors[t]:o.globals.colors[e];for(let p=0;p<d;p++){const i=o.config.tooltip.inverseOrder?d-1-p:p,h=this.computeSeriesRow({i:e,j:t,t:p,tIndex:i,shared:n,e:s,basePColor:u});this.DOMHandling({i:e,t:i,j:t,ttItems:a,values:{val:h.val,goalVals:h.goalVals,xVal:r,xAxisTTVal:c,zVal:l},seriesName:h.seriesName,shared:n,pColor:h.pColor})}}computeSeriesRow({i:e,j:t,tIndex:i,shared:a,e:n,basePColor:s}){const o=this.w;let r,l=this.getFormatters(e),c=s,d=[],u="treemap"===o.config.chart.type?l.yLbTitleFormatter(String(o.config.series[e].data[t].x),{series:o.seriesData.series,seriesIndex:e,dataPointIndex:t,w:o}):this.getSeriesName({fn:l.yLbTitleFormatter,index:e,seriesIndex:e,j:t});return o.globals.axisCharts&&(a?(l=this.getFormatters(i),u=this.getSeriesName({fn:l.yLbTitleFormatter,index:i,seriesIndex:e,j:t}),c=o.globals.colors[i],r=this.formatYValue(l,i,t),d=this.formatGoalVals(l,i,t)):(c=this.resolvePatternColor(n,c),r=this.formatYValue(l,e,t),d=this.formatGoalVals(l,e,t))),null===t&&(r=l.yLbFormatter(o.seriesData.series[e],$Be(BBe({},o),{seriesIndex:e,dataPointIndex:e}))),{seriesName:u,val:r,goalVals:d,pColor:c}}formatYValue(e,t,i){var a,n,s,o;const r=this.w;return r.axisFlags.isRangeData?e.yLbFormatter(null==(n=null==(a=r.rangeData.seriesRangeStart)?void 0:a[t])?void 0:n[i],{series:r.rangeData.seriesRangeStart,seriesIndex:t,dataPointIndex:i,w:r})+" - "+e.yLbFormatter(null==(o=null==(s=r.rangeData.seriesRangeEnd)?void 0:s[t])?void 0:o[i],{series:r.rangeData.seriesRangeEnd,seriesIndex:t,dataPointIndex:i,w:r}):e.yLbFormatter(r.seriesData.series[t][i],{series:r.seriesData.series,seriesIndex:t,dataPointIndex:i,w:r})}formatGoalVals(e,t,i){var a;const n=this.w,s=null==(a=n.seriesData.seriesGoals[t])?void 0:a[i];return Array.isArray(s)?s.map(a=>({attrs:a,val:e.yLbFormatter(a.value,{seriesIndex:t,dataPointIndex:i,w:n})})):[]}resolvePatternColor(e,t){var i,a,n;const s=this.w,o=null==(i=null==e?void 0:e.target)?void 0:i.getAttribute("fill");if(!o)return t;if(-1===o.indexOf("url"))return o;if(-1===o.indexOf("Pattern"))return t;const r=s.dom.baseEl.querySelector(o.substr(4).slice(0,-1));return null!=(n=null==(a=null==r?void 0:r.childNodes[0])?void 0:a.getAttribute("stroke"))?n:t}getFormatters(e){const t=this.w;let i,a=t.formatters.yLabelFormatters[e];return void 0!==t.formatters.ttVal?Array.isArray(t.formatters.ttVal)?(a=t.formatters.ttVal[e]&&t.formatters.ttVal[e].formatter,i=t.formatters.ttVal[e]&&t.formatters.ttVal[e].title&&t.formatters.ttVal[e].title.formatter):(a=t.formatters.ttVal.formatter,"function"==typeof t.formatters.ttVal.title.formatter&&(i=t.formatters.ttVal.title.formatter)):i=t.config.tooltip.y.title.formatter,"function"!=typeof a&&(a=t.formatters.yLabelFormatters[0]?t.formatters.yLabelFormatters[0]:function(e){return e}),"function"!=typeof i&&(i=function(e){return e?e+": ":""}),{yLbFormatter:a,yLbTitleFormatter:i}}getSeriesName({fn:e,index:t,seriesIndex:i,j:a}){const n=this.w;return e(String(n.seriesData.seriesNames[t]),{series:n.seriesData.series,seriesIndex:i,dataPointIndex:a,w:n})}DOMHandling({t:e,j:t,ttItems:i,values:a,seriesName:n,shared:s,pColor:o}){const r=this.w,l=this.ttCtx,{val:c,goalVals:d,xVal:u,xAxisTTVal:p,zVal:h}=a;let f=null;f=i[e].children,r.config.tooltip.fillSeriesColor&&(i[e].style.backgroundColor=o,f[0].style.display="none"),l.showTooltipTitle&&(null===l.tooltipTitle&&(l.tooltipTitle=r.dom.baseEl.querySelector(".apexcharts-tooltip-title")),l.tooltipTitle&&(l.tooltipTitle.innerHTML=u)),l.isXAxisTooltipEnabled&&l.xaxisTooltipText&&(l.xaxisTooltipText.innerHTML=""!==p?p:u);const g=i[e].querySelector(".apexcharts-tooltip-text-y-label");g&&(g.innerHTML=n||"");const m=i[e].querySelector(".apexcharts-tooltip-text-y-value");m&&(m.innerHTML=void 0!==c?c:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(r.config.tooltip.marker.fillColors&&Array.isArray(r.config.tooltip.marker.fillColors)&&(o=r.config.tooltip.marker.fillColors[e]),r.config.tooltip.fillSeriesColor?f[0].style.backgroundColor=o:f[0].style.color=o),r.config.tooltip.marker.show||(f[0].style.display="none");const _=i[e].querySelector(".apexcharts-tooltip-text-goals-label"),v=i[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&r.seriesData.seriesGoals[e]){const i=()=>{let e="<div>",t="<div>";d.forEach(i=>{e+=` <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: ${i.attrs.strokeColor}; height: 3px; border-radius: 0; top: 5px;"></span> ${i.attrs.name}</div>`,t+=`<div>${i.val}</div>`}),_.innerHTML=e+"</div>",v.innerHTML=t+"</div>"};s?r.seriesData.seriesGoals[e][t]&&Array.isArray(r.seriesData.seriesGoals[e][t])?i():(_.innerHTML="",v.innerHTML=""):i()}else _.innerHTML="",v.innerHTML="";if(null!==h){i[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=r.config.tooltip.z.title;i[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==h?h:""}if(s&&f[0]){if(r.config.tooltip.hideEmptySeries){const t=i[e].querySelector(".apexcharts-tooltip-marker"),a=i[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(c)?(t.style.display="none",a.style.display="none"):(t.style.display="block",a.style.display="block")}null==c||r.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||r.globals.collapsedSeriesIndices.indexOf(e)>-1||Array.isArray(l.tConfig.enabledOnSeries)&&-1===l.tConfig.enabledOnSeries.indexOf(e)?f[0].parentNode.style.display="none":f[0].parentNode.style.display=r.config.tooltip.items.display}else Array.isArray(l.tConfig.enabledOnSeries)&&-1===l.tConfig.enabledOnSeries.indexOf(e)&&(f[0].parentNode.style.display="none")}toggleActiveInactiveSeries(e,t){const i=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");const e=i.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${t}`);if(e){const t=e;t.classList.add("apexcharts-active"),t.style.display=i.config.tooltip.items.display}}}getValuesToPrint({i:e,j:t}){var i,a,n,s,o,r,l,c;const d=this.w,u=d.seriesData.seriesX.map(e=>e.length>0?e:[]);let p="",h="",f=null,g=null;const m={series:d.seriesData.series,seriesIndex:e,dataPointIndex:t,w:d},_=d.formatters.ttZFormatter;if(null===t)g=d.seriesData.series[e];else if(d.axisFlags.isXNumeric&&"treemap"!==d.config.chart.type){if(p=u[e][t],0===u[e].length){p=u[this.tooltipUtil.getFirstActiveXArray(u)][t]}}else{p=new rVe(this.w).isFormatXY()?void 0!==d.config.series[e].data[t]?d.config.series[e].data[t].x:"":void 0!==d.labelData.labels[t]?d.labelData.labels[t]:""}const v=p;if(d.axisFlags.isXNumeric&&"datetime"===d.config.xaxis.type){p=new ZBe(this.w).xLabelFormat(d.formatters.ttKeyFormatter,v,v,{i:void 0,dateFormatter:new XBe(this.w).formatDate,w:this.w})}else p=d.globals.isBarHorizontal?d.formatters.yLabelFormatters[0](v,m):null!=(n=null==(a=(i=d.formatters).xLabelFormatter)?void 0:a.call(i,v,m))?n:v;return void 0!==d.config.tooltip.x.formatter&&(p=null!=(r=null==(o=(s=d.formatters).ttKeyFormatter)?void 0:o.call(s,v,m))?r:v),d.seriesData.seriesZ.length>0&&d.seriesData.seriesZ[e].length>0&&(f=null==_?void 0:_(d.seriesData.seriesZ[e][t],d)),h="function"==typeof d.config.xaxis.tooltip.formatter?null==(c=(l=d.formatters).xaxisTooltipFormatter)?void 0:c.call(l,v,m):p,{val:Array.isArray(g)?g.join(" "):g,xVal:Array.isArray(p)?p.join(" "):p,xAxisTTVal:Array.isArray(h)?h.join(" "):h,zVal:f}}handleCustomTooltip({i:e,j:t,y1:i,y2:a,w:n}){const s=this.ttCtx.getElTooltip();let o=n.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]);const r=o({series:n.seriesData.series,seriesIndex:e,dataPointIndex:t,y1:i,y2:a,w:n});s&&("string"==typeof r||"number"==typeof r?s.innerHTML=String(r):(r instanceof Element||"string"==typeof r.nodeName)&&(s.innerHTML="",s.appendChild(r.cloneNode(!0))))}}class uVe{constructor(e){this.ttCtx=e,this.w=e.w}moveXCrosshairs(e,t=null){const i=this.ttCtx,a=this.w,n=i.getElXCrosshairs();let s=e-i.xcrosshairsWidth/2;const o=a.labelData.labels.slice().length;if(null!==t&&(s=a.layout.gridWidth/o*t),null===n||a.globals.isBarHorizontal||(n.setAttribute("x",String(s)),n.setAttribute("x1",String(s)),n.setAttribute("x2",String(s)),n.setAttribute("y2",String(a.layout.gridHeight)),n.classList.add("apexcharts-active")),s<0&&(s=0),s>a.layout.gridWidth&&(s=a.layout.gridWidth),i.isXAxisTooltipEnabled){let e=s;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(e=s+i.xcrosshairsWidth/2),this.moveXAxisTooltip(e)}}moveYCrosshairs(e){const t=this.ttCtx;null!==t.ycrosshairs&&_$e.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&_$e.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}moveXAxisTooltip(e){var t,i;const a=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");const s=n.xaxisOffY+a.config.xaxis.tooltip.offsetY+a.layout.translateY+5+a.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=a.layout.translateX;const o=new _$e(this.w).getTextRects(null!=(i=null==(t=n.xaxisTooltipText)?void 0:t.innerHTML)?i:"",a.config.xaxis.labels.style.fontSize);n.xaxisTooltipText&&(n.xaxisTooltipText.style.minWidth=o.width+"px"),n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=s+"px"}}}moveYAxisTooltip(e){var t,i;const a=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=[...a.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);const s=parseInt(null!=(i=null==(t=n.ycrosshairsHidden)?void 0:t.getAttribute("y1"))?i:"0",10);let o=a.layout.translateY+s;if(n.yaxisTTEls){const t=n.yaxisTTEls[e].getBoundingClientRect(),i=t.height;let s;const r=a.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),l=a.dom.elWrap.getBoundingClientRect();if(r){const e=r.getBoundingClientRect();if(e.width>0){s=e.left+e.width/2-l.left-t.width/2}}if(null==s){const i=4;s=a.config.yaxis[e].opposite?a.globals.translateYAxisX[e]+i:a.globals.translateYAxisX[e]-t.width-i}o-=i/2,-1===a.globals.ignoreYAxisIndexes.indexOf(e)&&o>0&&o<a.layout.gridHeight?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=o+"px",n.yaxisTTEls[e].style.left=s+a.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}}moveTooltip(e,t,i=null){const a=this.ttCtx.getElTooltip();if(!a)return;const n=this.computeTooltipPosition(e,t,i);null!==n&&this.applyTooltipPosition(a,n)}computeTooltipPosition(e,t,i=null){var a,n,s,o,r,l,c;const d=this.w,u=this.ttCtx,p=u.tooltipRect,h=!!d.config.tooltip.arrow,f=null!==i?parseFloat(String(i)):1,g=p.ttHeight||0,m=p.ttWidth||0,_=parseFloat(String(e)),v=parseFloat(String(t));if(isNaN(_))return null;let b=_+f+5;const y=v+d.layout.translateY;let x=h?y-g/2+f/2:v+f/2,S="right";if(b>d.layout.gridWidth/2&&(b=b-m-f-10,S="left"),b>d.layout.gridWidth-m-10&&(b=d.layout.gridWidth-m),b<-20&&(b=-20),d.config.tooltip.followCursor){const e=u.getElGrid();if(!e)return null;const t=e.getBoundingClientRect();b=u.e.clientX-t.left,b>d.layout.gridWidth/2?(b-=m,S="left"):S="right",x=u.e.clientY+d.layout.translateY-t.top,x>d.layout.gridHeight/2&&(x-=g)}else if(!d.globals.isBarHorizontal)if(h){const e=d.layout.translateY,t=d.layout.translateY+d.layout.gridHeight;x+g>t&&(x=t-g),x<e&&(x=e)}else g/2+x>d.layout.gridHeight&&(x=d.layout.gridHeight-g+d.layout.translateY);if(isNaN(b))return null;b+=d.layout.translateX;const w=null==(n=null==(a=d.config)?void 0:a.chart)?void 0:n.accessibility;if((null==w?void 0:w.enabled)&&(null==(o=null==(s=null==w?void 0:w.keyboard)?void 0:s.navigation)?void 0:o.enabled)&&(null==(c=null==(l=null==(r=d.dom)?void 0:r.baseEl)?void 0:l.querySelector)?void 0:c.call(l,".apexcharts-keyboard-focused"))){const e=h?y:v,t=(f||1)+12,i=x,a=x+g;!isNaN(e)&&g>0&&i<e+t&&a>e-t&&(x=e-g-t,x<0&&(x=e+t))}let C=null;if(h&&g>0){const e=y-x,t=10,i=g-10;C=Math.max(t,Math.min(i,e))}return{x:b,y:x,placement:S,arrowY:C}}applyTooltipPosition(e,t){if(!e)return;const i="true"!==e.dataset.positioned;i&&(e.style.transitionProperty="none"),e.style.left=t.x+"px",e.style.top=t.y+"px",t.placement&&(e.dataset.placement=t.placement),null!=t.arrowY&&e.style.setProperty("--apx-tt-arrow-y",t.arrowY+"px"),null!=t.arrowX&&e.style.setProperty("--apx-tt-arrow-x",t.arrowX+"px"),i&&(e.offsetWidth,e.dataset.positioned="true",requestAnimationFrame(()=>{e.style.transitionProperty=""}))}moveMarkers(e,t){var i;const a=this.w,n=this.ttCtx;if(a.globals.markers.size[e]>0){const s=a.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker`);for(let e=0;e<s.length;e++)parseInt(null!=(i=s[e].getAttribute("rel"))?i:"0",10)===t&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(t,s[e]))}else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}moveDynamicPointOnHover(e,t){var i,a,n,s,o;const r=this.w,l=this.ttCtx;let c=0,d=0;const u=new _$e(this.w),p=r.globals.pointsArray,h=l.tooltipUtil.getHoverMarkerSize(t),f=r.config.series[t].type;if(f&&("column"===f||"candlestick"===f||"boxPlot"===f))return;c=null==(a=null==(i=p[t])?void 0:i[e])?void 0:a[0],d=(null==(s=null==(n=p[t])?void 0:n[e])?void 0:s[1])||0;const g=r.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers path`);if(g&&d<r.layout.gridHeight&&d>0){const e=null!=(o=g.getAttribute("shape"))?o:"circle",t=u.getMarkerPath(c,d,e,1.5*h);g.setAttribute("d",t)}this.moveXCrosshairs(c),l.fixedTooltip||this.moveTooltip(c,d,h)}moveDynamicPointsOnHover(e){var t,i;const a=this.ttCtx,n=a.w;let s=0,o=0,r=0;const l=n.globals.pointsArray,c=new $$e(this.w),d=new _$e(this.w);r=c.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);const u=a.tooltipUtil.getHoverMarkerSize(r);if((null==(t=l[r])?void 0:t[e])&&(s=l[r][e][0],o=l[r][e][1]),isNaN(s))return;const p=a.tooltipUtil.getAllMarkers();if(p.length)for(let h=0;h<n.seriesData.series.length;h++){const t=l[h];if(n.globals.comboCharts&&void 0===t&&p.splice(h,0,null),t&&t.length){let t,a=l[h][e][1];p[h].setAttribute("cx",s);const o=null!=(i=p[h].getAttribute("shape"))?i:"circle";if("rangeArea"===n.config.chart.type&&!n.globals.comboCharts){const i=e+n.seriesData.series[h].length;t=l[h][i][1];a-=Math.abs(a-t)/2}if(null!==a&&!isNaN(a)&&a<n.layout.gridHeight+u&&a+u>0){const e=d.getMarkerPath(s,a,o,u);p[h].setAttribute("d",e)}else p[h].setAttribute("d","")}}this.moveXCrosshairs(s),a.fixedTooltip||this.moveTooltip(s,o||n.layout.gridHeight,u)}moveStickyTooltipOverBars(e,t){var i,a,n;const s=this.w,o=this.ttCtx;let r=s.globals.columnSeries?s.globals.columnSeries.length:s.seriesData.series.length;s.config.chart.stacked&&(r=s.globals.barGroups.length);let l=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;if(s.globals.isBarHorizontal){l=new $$e(this.w).getActiveConfigSeriesIndex("desc")+1}let c=s.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${l}'] path[j='${e}'], .apexcharts-candlestick-series .apexcharts-series[rel='${l}'] path[j='${e}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${l}'] path[j='${e}'], .apexcharts-rangebar-series .apexcharts-series[rel='${l}'] path[j='${e}']`);c||"number"!=typeof t||(c=s.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}']`));let d=c?parseFloat(null!=(i=c.getAttribute("cx"))?i:"0"):0,u=c?parseFloat(null!=(a=c.getAttribute("cy"))?a:"0"):0;const p=c?parseFloat(null!=(n=c.getAttribute("barWidth"))?n:"0"):0,h=o.getElGrid();if(!h)return;const f=h.getBoundingClientRect(),g=c&&(c.classList.contains("apexcharts-candlestick-area")||c.classList.contains("apexcharts-boxPlot-area"));if(s.axisFlags.isXNumeric){if(c&&!g){const t=this._datapointCenterXFromBars(e,f);null!=t?d=t:d-=r%2!=0?p/2:0}c&&g&&(d-=p/2)}else s.globals.isBarHorizontal||(d=o.xAxisTicksPositions[e-1]+o.dataPointsDividedWidth/2,isNaN(d)&&(d=o.xAxisTicksPositions[e]-o.dataPointsDividedWidth/2));if(s.globals.isBarHorizontal?u-=o.tooltipRect.ttHeight:s.config.tooltip.followCursor?u=o.e.clientY-f.top-o.tooltipRect.ttHeight/2:u+o.tooltipRect.ttHeight+15>s.layout.gridHeight&&(u=s.layout.gridHeight),s.globals.isBarHorizontal||this.moveXCrosshairs(d),!o.fixedTooltip){if(s.globals.isBarHorizontal&&!s.config.tooltip.followCursor){if(this.placeHorizontalSharedTooltip(e))return}this.moveTooltip(d,u||s.layout.gridHeight)}}_datapointCenterXFromBars(e,t){var i,a;const n=this.w.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}']`);if(!n.length)return null;let s=1/0,o=-1/0;for(const r of n){const e=r.parentNode;if(null==(a=null==(i=null==e?void 0:e.classList)?void 0:i.contains)?void 0:a.call(i,"apexcharts-series-collapsed"))continue;const t=r.getBoundingClientRect();0===t.width&&0===t.height||(t.left<s&&(s=t.left),t.right>o&&(o=t.right))}return isFinite(s)?(s+o)/2-t.left:null}placeHorizontalSharedTooltip(e){var t,i;const a=this.w,n=this.ttCtx,s=n.getElTooltip();if(!s)return!1;const o=n.getElGrid();if(!o)return!1;const r=o.getBoundingClientRect(),l=a.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}'],.apexcharts-boxPlot-series path[j='${e}']`);if(!l.length)return!1;let c=1/0,d=-1/0,u=1/0,p=-1/0;for(const k of l){const e=k.parentNode;if(null==(i=null==(t=null==e?void 0:e.classList)?void 0:t.contains)?void 0:i.call(t,"apexcharts-series-collapsed"))continue;const a=k.getBoundingClientRect();0===a.width&&0===a.height||(a.left<c&&(c=a.left),a.right>d&&(d=a.right),a.top<u&&(u=a.top),a.bottom>p&&(p=a.bottom))}if(!isFinite(c))return!1;const h=n.tooltipRect.ttWidth||0,f=n.tooltipRect.ttHeight||0,g=(c+d)/2-r.left+a.layout.translateX,m=u-r.top+a.layout.translateY,_=p-r.top+a.layout.translateY,v=a.layout.translateY,b=a.layout.translateY+a.layout.gridHeight,y=a.layout.translateX,x=a.layout.translateX+a.layout.gridWidth;let S="top",w=m-f-7;if(w<v){const e=_+7;e+f<=b&&(S="bottom",w=e)}let C=g-h/2;C<y&&(C=y),C+h>x&&(C=x-h);const E=Math.max(10,Math.min(h-10,g-C));return this.applyTooltipPosition(s,{x:C,y:w,placement:S,arrowY:null,arrowX:E}),!0}}function pVe(e){const t=e=>`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${e}</svg>`;switch(e){case"square":case"rect":return t('<rect x="1" y="1" width="10" height="10" rx="1" fill="currentColor"/>');case"line":return t('<rect x="0" y="5" width="12" height="2" rx="1" fill="currentColor"/>');case"diamond":return t('<path d="M6 0.5 L11.5 6 L6 11.5 L0.5 6 Z" fill="currentColor"/>');case"triangle":return t('<path d="M6 1 L11.2 10.5 L0.8 10.5 Z" fill="currentColor"/>');case"cross":return t('<path d="M2 2 L10 10 M10 2 L2 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"plus":return t('<path d="M6 1 L6 11 M1 6 L11 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"star":return t('<path d="M6 0.5 L7.5 4.4 L11.5 4.7 L8.4 7.2 L9.5 11.1 L6 8.9 L2.5 11.1 L3.6 7.2 L0.5 4.7 L4.5 4.4 Z" fill="currentColor"/>');case"sparkle":return t('<path d="M6 0.5 L7 5 L11.5 6 L7 7 L6 11.5 L5 7 L0.5 6 L5 5 Z" fill="currentColor"/>');default:return t('<circle cx="6" cy="6" r="5" fill="currentColor"/>')}}class hVe{constructor(e){this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new uVe(e)}drawDynamicPoints(){const e=this.w,t=new _$e(this.w),i=new w$e(this.w,this.ctx),a=[...e.dom.baseEl.querySelectorAll(".apexcharts-series")];e.config.chart.stacked&&a.sort((e,t)=>parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex")));for(let n=0;n<a.length;n++){const s=a[n].querySelector(".apexcharts-series-markers-wrap");if(null!==s){let a=`apexcharts-marker w${(Math.random()+1).toString(36).substring(4)}`;"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(a+=" no-pointer-events");const n=i.getMarkerConfig({cssClass:a,seriesIndex:Number(s.getAttribute("data:realIndex"))}),o=t.drawMarker(0,0,n);o.node.setAttribute("default-marker-size",0);const r=qBe.createElementNS(v$e,"g");r.classList.add("apexcharts-series-markers"),r.appendChild(o.node),s.appendChild(r)}}}enlargeCurrentPoint(e,t,i=null,a=null){const n=this.w;"bubble"!==n.config.chart.type&&this.newPointSize(e,t);let s=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==i&&null!==a&&(s=i,o=a),this.tooltipPosition.moveXCrosshairs(s),!this.fixedTooltip){if("radar"===n.config.chart.type){const e=this.ttCtx.getElGrid();if(!e)return;const t=e.getBoundingClientRect();s=this.ttCtx.e.clientX-t.left}this.tooltipPosition.moveTooltip(s,o,n.config.markers.hover.size)}}enlargePoints(e){var t,i;const a=this.w,n=this,s=this.ttCtx,o=e,r=a.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");let l=a.config.markers.hover.size;for(let c=0;c<r.length;c++){const e=r[c].getAttribute("rel"),d=r[c].getAttribute("index");if(void 0===l&&(l=a.globals.markers.size[d]+a.config.markers.hover.sizeOffset),o===parseInt(null!=e?e:"0",10)){n.newPointSize(o,r[c]);const e=null!=(t=r[c].getAttribute("cx"))?t:"0",a=null!=(i=r[c].getAttribute("cy"))?i:"0";n.tooltipPosition.moveXCrosshairs(parseFloat(e)),s.fixedTooltip||n.tooltipPosition.moveTooltip(parseFloat(e),parseFloat(a),l)}else n.oldPointSize(r[c])}}newPointSize(e,t){const i=this.w;let a=i.config.markers.hover.size;const n=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==n.getAttribute("default-marker-size")){const e=parseInt(n.getAttribute("index"),10);void 0===a&&(a=i.globals.markers.size[e]+i.config.markers.hover.sizeOffset),a<0&&(a=0);const s=this.ttCtx.tooltipUtil.getPathFromPoint(t,a);t.setAttribute("d",s)}}oldPointSize(e){const t=parseFloat(e.getAttribute("default-marker-size")),i=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",i)}resetPointsSize(){var e;const t=this.w.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");for(let i=0;i<t.length;i++){const a=parseFloat(null!=(e=t[i].getAttribute("default-marker-size"))?e:"0");if(KBe.isNumber(a)&&a>0){const e=this.ttCtx.tooltipUtil.getPathFromPoint(t[i],a);t[i].setAttribute("d",e)}else t[i].setAttribute("d","M0,0")}}}class fVe{constructor(e){this.w=e.w;const t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&"rangeBar"===t.config.chart.type&&t.config.plotOptions.bar.rangeBarGroupRows}getAttr(e,t){var i;return parseFloat(null!=(i=e.target.getAttribute(t))?i:"")}handleHeatTreeTooltip({e:e,opt:t,x:i,y:a,type:n}){var s,o;const r=this.ttCtx,l=this.w;if(e.target.classList.contains(`apexcharts-${n}-rect`)){const n=this.getAttr(e,"i"),c=this.getAttr(e,"j"),d=this.getAttr(e,"cx"),u=this.getAttr(e,"cy"),p=this.getAttr(e,"width"),h=this.getAttr(e,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:n,j:c,shared:!1,e:e}),l.interact.capturedSeriesIndex=n,l.interact.capturedDataPointIndex=c,i=d+r.tooltipRect.ttWidth/2+p,a=u+r.tooltipRect.ttHeight/2-h/2,r.tooltipPosition.moveXCrosshairs(d+p/2),i>l.layout.gridWidth/2&&(i=d-r.tooltipRect.ttWidth/2+p),r.w.config.tooltip.followCursor){const e=l.dom.elWrap.getBoundingClientRect();i=(null!=(s=l.interact.clientX)?s:0)-e.left-(i>l.layout.gridWidth/2?r.tooltipRect.ttWidth:0),a=(null!=(o=l.interact.clientY)?o:0)-e.top-(a>l.layout.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:i,y:a}}handleMarkerTooltip({e:e,opt:t,x:i,y:a}){const n=this.w,s=this.ttCtx;let o,r;if(e.target.classList.contains("apexcharts-marker")){const l=parseInt(t.paths.getAttribute("cx"),10),c=parseInt(t.paths.getAttribute("cy"),10),d=parseFloat(t.paths.getAttribute("val"));if(r=parseInt(t.paths.getAttribute("rel"),10),o=parseInt(t.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,s.intersect){const e=KBe.findAncestor(t.paths,"apexcharts-series");e&&(o=parseInt(e.getAttribute("data:realIndex"),10))}s.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:o,j:r,shared:!s.showOnIntersect&&n.config.tooltip.shared,e:e}),"mouseup"===e.type&&s.markerClick(e,o,r),n.interact.capturedSeriesIndex=o,n.interact.capturedDataPointIndex=r;if(i=l,!!n.config.tooltip.arrow?a=c:(a=c+n.layout.translateY-1.4*s.tooltipRect.ttHeight,d<0&&(a=c)),s.w.config.tooltip.followCursor){const e=s.getElGrid();if(!e)return{x:i,y:a};const t=e.getBoundingClientRect();a=s.e.clientY+n.layout.translateY-t.top}s.marker.enlargeCurrentPoint(r,t.paths,i,a)}return{x:i,y:a}}handleBarTooltip({e:e,opt:t}){var i,a,n;const s=this.w,o=this.ttCtx,r=o.getElTooltip();let l,c=0,d=0,u=0,p=0;const h=this.getBarTooltipXY({e:e,opt:t});if(null===h.j&&0===h.barHeight&&0===h.barWidth)return;p=h.i;const f=h.j;if(s.interact.capturedSeriesIndex=p,s.interact.capturedDataPointIndex=null!==f?f:s.interact.capturedDataPointIndex,s.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!s.config.tooltip.shared?(d=h.x,u=h.y,l=Array.isArray(s.config.stroke.width)?s.config.stroke.width[p]:s.config.stroke.width,c=d):s.globals.comboCharts||s.config.tooltip.shared||(c/=2),isNaN(u)&&(u=s.globals.svgHeight-o.tooltipRect.ttHeight),d+o.tooltipRect.ttWidth>s.layout.gridWidth?d-=o.tooltipRect.ttWidth:d<0&&(d=0),o.w.config.tooltip.followCursor){if(!o.getElGrid())return}if(null===o.tooltip&&(o.tooltip=s.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||(s.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(c+l/2):o.tooltipPosition.moveXCrosshairs(c)),!o.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(u=u+s.layout.translateY-o.tooltipRect.ttHeight/2,r)){const e=o.tooltipRect.ttWidth||0,t=o.tooltipRect.ttHeight||0,l=!!s.config.tooltip.arrow,{barAnchorXInGrid:c,barAnchorYInGrid:p,barRectInGrid:f}=h,g=7,m=null==(i=o.getElGrid())?void 0:i.getBoundingClientRect(),_=s.dom.elWrap.getBoundingClientRect(),v=m?m.left-_.left:s.layout.translateX;let b,y=null,x=null,S=d+v,w=u;if(l&&s.globals.isBarHorizontal&&null!=f){const i=s.layout.translateY,a=s.layout.translateY+s.layout.gridHeight,n=v,o=v+s.layout.gridWidth,r=(f.left+f.right)/2+v,l=f.top+s.layout.translateY,c=f.bottom+s.layout.translateY;let d=l-t-g;if(b="top",d<i){const e=c+g;e+t<=a&&(b="bottom",d=e)}w=d,S=r-e/2,S<n&&(S=n),S+e>o&&(S=o-e),x=Math.max(10,Math.min(e-10,r-S))}else if(l&&null!=c&&null!=p){const i=c+v,o=v+s.layout.gridWidth/2,r=(null!=(a=null==f?void 0:f.left)?a:c)+v,l=(null!=(n=null==f?void 0:f.right)?n:c)+v;if(i<o?(b="right",S=l+g):(b="left",S=r-e-g),f){w=(f.top+f.bottom)/2+s.layout.translateY-t/2;const e=s.layout.translateY,i=s.layout.translateY+s.layout.gridHeight;w<e&&(w=e),w+t>i&&(w=i-t)}if(t>0&&f){const e=(f.top+f.bottom)/2+s.layout.translateY;y=Math.max(10,Math.min(t-10,e-w))}}o.tooltipPosition.applyTooltipPosition(r,{x:S,y:w,placement:b,arrowY:y,arrowX:x})}}getBarTooltipXY({e:e,opt:t}){const i=this.w;let a=null;const n=this.ttCtx;let s=0,o=0,r=0,l=0,c=0,d=null,u=null,p=null,h=null,f=null;const g=e.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){const g=e.target,m=g.getBoundingClientRect(),_=t.elGrid.getBoundingClientRect(),v=m.height;c=m.height;const b=m.width,y=parseInt(g.getAttribute("cx"),10),x=parseInt(g.getAttribute("cy"),10);d=y,u=x,l=parseFloat(g.getAttribute("barWidth"));const S=m.left-_.left,w=m.top-_.top,C=w+v/2;p=S+b/2,h=i.globals.isBarHorizontal?C:w,f={left:S,top:w,right:S+b,bottom:w+v};const E="touchmove"===e.type?e.touches[0].clientX:e.clientX;a=parseInt(g.getAttribute("j"),10),s=parseInt(g.parentNode.getAttribute("rel"),10)-1;const k=g.getAttribute("data-range-y1"),T=g.getAttribute("data-range-y2");i.globals.comboCharts&&(s=parseInt(g.parentNode.getAttribute("data:realIndex"),10));const A=e=>i.axisFlags.isXNumeric?y-b/2:this.isVerticalGroupedRangeBar?y+b/2:y-n.dataPointsDividedWidth+b/2,R=()=>x-n.dataPointsDividedHeight+v/2-n.tooltipRect.ttHeight/2;n.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:s,j:a,y1:k?parseInt(k,10):null,y2:T?parseInt(T,10):null,shared:!n.showOnIntersect&&i.config.tooltip.shared,e:e}),i.config.tooltip.followCursor?i.globals.isBarHorizontal?(o=E-_.left+15,r=R()):(o=A(o),r=e.clientY-_.top-n.tooltipRect.ttHeight/2-15):i.globals.isBarHorizontal?(o=y,n.xyRatios&&o<n.xyRatios.baseLineInvertedY&&(o=y-n.tooltipRect.ttWidth),r=R()):(o=A(o),r=x)}return{x:o,y:r,barHeight:c,barWidth:l,i:s,j:a,barCx:d,barCy:u,barAnchorXInGrid:p,barAnchorYInGrid:h,barRectInGrid:f}}}class gVe{constructor(e){this.w=e.w,this.ttCtx=e}drawXaxisTooltip(){const e=this.w,t=this.ttCtx,i="bottom"===e.config.xaxis.position;t.xaxisOffY=i?e.layout.gridHeight+1:-e.layout.xAxisHeight-e.config.xaxis.axisTicks.height+3;const a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",n=e.dom.elWrap;if(t.isXAxisTooltipEnabled){null===e.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.xaxisTooltip),t.xaxisTooltipText=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}}drawYaxisTooltip(){const e=this.w,t=this.ttCtx;for(let i=0;i<e.config.yaxis.length;i++){const a=e.config.yaxis[i].opposite||e.config.yaxis[i].crosshairs.opposite;t.yaxisOffX=a?e.layout.gridWidth+1:1;const n=a?`apexcharts-yaxistooltip apexcharts-yaxistooltip-${i} apexcharts-yaxistooltip-right`:`apexcharts-yaxistooltip apexcharts-yaxistooltip-${i} apexcharts-yaxistooltip-left`,s=e.dom.elWrap;null===e.dom.baseEl.querySelector(`.apexcharts-yaxistooltip apexcharts-yaxistooltip-${i}`)&&(t.yaxisTooltip=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.yaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.yaxisTooltip),0===i&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))}}setXCrosshairWidth(){var e,t;const i=this.w,a=this.ttCtx,n=a.getElXCrosshairs();if(a.xcrosshairsWidth=parseInt(i.config.xaxis.crosshairs.width,10),i.globals.comboCharts){const e=i.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==e&&"barWidth"===i.config.xaxis.crosshairs.width){const i=parseFloat(null!=(t=e.getAttribute("barWidth"))?t:"0");a.xcrosshairsWidth=i}else if("tickWidth"===i.config.xaxis.crosshairs.width){const e=i.labelData.labels.length;a.xcrosshairsWidth=i.layout.gridWidth/e}}else if("tickWidth"===i.config.xaxis.crosshairs.width){const e=i.labelData.labels.length;a.xcrosshairsWidth=i.layout.gridWidth/e}else if("barWidth"===i.config.xaxis.crosshairs.width){const t=i.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==t){const i=parseFloat(null!=(e=t.getAttribute("barWidth"))?e:"0");a.xcrosshairsWidth=i}else a.xcrosshairsWidth=1}i.globals.isBarHorizontal&&(a.xcrosshairsWidth=0),null!==n&&a.xcrosshairsWidth>0&&n.setAttribute("width",String(a.xcrosshairsWidth))}handleYCrosshair(){const e=this.w,t=this.ttCtx;t.ycrosshairs=e.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}drawYaxisTooltipText(e,t,i){const a=this.ttCtx,n=this.w,s=n.globals,o=s.seriesYAxisMap[e];if(a.yaxisTooltips[e]&&o.length>0){const r=n.formatters.yLabelFormatters[e],l=a.getElGrid();if(!l)return;const c=l.getBoundingClientRect(),d=o[0];let u=0;i.yRatio.length>1&&(u=d);const p=(t-c.top)*i.yRatio[u],h=s.maxYArr[d]-s.minYArr[d];let f=s.minYArr[d]+(h-p);n.config.yaxis[e].reversed&&(f=s.maxYArr[d]-(h-p)),a.tooltipPosition.moveYCrosshairs(t-c.top),a.yaxisTooltipText[e].innerHTML=r(f),a.tooltipPosition.moveYAxisTooltip(e)}}}class mVe{constructor(e,t){this.w=e,this.ctx=t,this.tConfig=e.config.tooltip,this.tooltipUtil=new cVe(this),this.tooltipLabels=new dVe(this),this.tooltipPosition=new uVe(this),this.marker=new hVe(this),this.intersect=new fVe(this),this.axesTooltip=new gVe(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.xaxisTooltipText=null,this.yaxisTooltip=null,this.yaxisTooltipText=null,this.yaxisTTEls=null,this.xaxisOffY=0,this.yaxisOffX=0,this.xcrosshairsWidth=0,this.ycrosshairs=null,this.ycrosshairsHidden=null,this.tooltip=null,this.e=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now(),this.dimensionUpdateScheduled=!1,this.xyRatios=null,this.isXAxisTooltipEnabled=!1,this.yaxisTooltips=[],this.allTooltipSeriesGroups=[],this.xAxisTicksPositions=null,this.dataPointsDividedHeight=0,this.dataPointsDividedWidth=0,this.tooltipTitle=null,this.legendLabels=null,this.ttItems=null,this.seriesBound=null,this.seriesHoverTimeout=void 0,this.clientX=0,this.clientY=0,this.barSeriesHeight=0,this.tooltipRect={x:0,y:0,ttWidth:0,ttHeight:0}}setupDimensionCache(){const e=this.w,t=this.getElTooltip();t&&(this.updateDimensionCache(),"undefined"==typeof ResizeObserver||e.globals.resizeObserver||(e.globals.resizeObserver=new ResizeObserver(()=>{this.dimensionUpdateScheduled||(this.dimensionUpdateScheduled=!0,requestAnimationFrame(()=>{this.updateDimensionCache(),this.dimensionUpdateScheduled=!1}))}),e.globals.resizeObserver.observe(t)))}updateDimensionCache(){const e=this.w,t=this.getElTooltip();if(!t)return;const i=t.getBoundingClientRect();e.globals.dimensionCache.tooltip={width:i.width,height:i.height,lastUpdate:Date.now()}}getCachedDimensions(){const e=this.w;if(e.globals.dimensionCache.tooltip){const t=e.globals.dimensionCache.tooltip;if(Date.now()-t.lastUpdate<1e3)return{ttWidth:t.width,ttHeight:t.height}}this.updateDimensionCache();const t=e.globals.dimensionCache.tooltip;return t?{ttWidth:t.width,ttHeight:t.height}:{ttWidth:0,ttHeight:0}}getElTooltip(e){return e||(e=this),e.w.dom.baseEl?e.w.dom.baseEl.querySelector(".apexcharts-tooltip"):null}getElXCrosshairs(){return this.w.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}getElGrid(){return this.w.dom.baseEl.querySelector(".apexcharts-grid")}drawTooltip(e){const t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(e=>!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);const i=this.getElTooltip();(null==i?void 0:i.parentNode)&&i.parentNode.removeChild(i),this.tooltipTitle=null;const a=qBe.createElementNS("http://www.w3.org/1999/xhtml","div");a.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&a.classList.add(t.config.tooltip.cssClass),a.classList.add(`apexcharts-theme-${this.tConfig.theme||"light"}`),this.tConfig.fillSeriesColor&&a.classList.add("apexcharts-tooltip-fill-series"),this.tConfig.style&&this.tConfig.style.background&&a.style.setProperty("--apx-tt-bg",this.tConfig.style.background);const n=this.tConfig.shared&&t.config.series.length>1&&!t.globals.isBarHorizontal;if(this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&!n&&!this.tConfig.fillSeriesColor&&t.globals.axisCharts){const e=qBe.createElementNS("http://www.w3.org/1999/xhtml","div");e.classList.add("apexcharts-tooltip-arrow"),a.appendChild(e)}if(t.config.chart.accessibility.enabled&&t.config.chart.accessibility.announcements.enabled&&(a.setAttribute("role","tooltip"),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-hidden","true")),t.dom.elWrap.appendChild(a),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();const e=new A$e(this.w,this.ctx,void 0);this.xAxisTicksPositions=e.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(),t.globals.collapsedSeries.length===t.seriesData.series.length)return;this.dataPointsDividedHeight=t.layout.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.layout.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,a.appendChild(this.tooltipTitle));let s=t.seriesData.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:t.seriesData.series.length),this.legendLabels=t.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(e){const t=this.w,i=[],a=this.getElTooltip();if(!a)return i;for(let n=0;n<e;n++){const s=qBe.createElementNS("http://www.w3.org/1999/xhtml","div");s.classList.add("apexcharts-tooltip-series-group",`apexcharts-tooltip-series-group-${n}`),s.style.order=String(t.config.tooltip.inverseOrder?e-n:n+1);const o=qBe.createElementNS("http://www.w3.org/1999/xhtml","span");o.classList.add("apexcharts-tooltip-marker"),t.config.tooltip.fillSeriesColor?o.style.backgroundColor=t.globals.colors[n]:o.style.color=t.globals.colors[n];const r=t.config.markers.shape;let l=r;Array.isArray(r)&&(l=r[n]),o.setAttribute("shape",l),o.innerHTML=pVe(l),s.appendChild(o);const c=qBe.createElementNS("http://www.w3.org/1999/xhtml","div");c.classList.add("apexcharts-tooltip-text"),c.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,c.style.fontSize=this.tConfig.style.fontSize,["y","goals","z"].forEach(e=>{const t=qBe.createElementNS("http://www.w3.org/1999/xhtml","div");t.classList.add(`apexcharts-tooltip-${e}-group`);const i=qBe.createElementNS("http://www.w3.org/1999/xhtml","span");i.classList.add(`apexcharts-tooltip-text-${e}-label`),t.appendChild(i);const a=qBe.createElementNS("http://www.w3.org/1999/xhtml","span");a.classList.add(`apexcharts-tooltip-text-${e}-value`),t.appendChild(a),c.appendChild(t)}),s.appendChild(c),a.appendChild(s),i.push(s)}return i}addSVGEvents(){const e=this.w,t=e.config.chart.type,i=this.getElTooltip();if(!i)return;const a=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),n="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,s=e.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());const r=[],l=[],c={hoverArea:s,elGrid:o,tooltipEl:i,tooltipY:r,tooltipX:l,ttItems:this.ttItems};let d;if(e.globals.axisCharts&&(n?d=e.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?d=e.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(d=e.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),d&&d.length))for(let u=0;u<d.length;u++)r.push(d[u].getAttribute("cy")),l.push(d[u].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([s],c);else if(a&&!e.globals.comboCharts||n&&this.showOnIntersect)this.addDatapointEventsListeners(c);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){const t=e.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(t,c)}if(this.showOnIntersect){const t=e.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");t.length>0&&this.addPathsEventListeners(t,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}drawFixedTooltipRect(){const e=this.w,t=this.getElTooltip();if(!t)return{x:0,y:0,ttWidth:0,ttHeight:0};const i=t.getBoundingClientRect(),a=i.width+10,n=i.height+10;let s=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY;const r=this.tConfig.fixed.position.toLowerCase();return r.indexOf("right")>-1&&(s=s+e.globals.svgWidth-a+10),r.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-n-10),this.tooltipPosition.applyTooltipPosition(t,{x:s,y:o}),{x:s,y:o,ttWidth:a,ttHeight:n}}addDatapointEventsListeners(e){const t=this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}addPathsEventListeners(e,t){const i=this;for(let a=0;a<e.length;a++){const n={paths:e[a],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(t=>e[a].addEventListener(t,i.onSeriesHover.bind(i,n),{capture:!1,passive:!0}))}}onSeriesHover(e,t){const i=Date.now()-this.lastHoverTime;i>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(()=>{this.seriesHover(e,t)},20-i))}seriesHover(e,t){this.lastHoverTime=Date.now();let i=[];const a=this.w;a.config.chart.group&&(i=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||0===a.globals.dataPoints)||(i.length?i.forEach(i=>{const a=this.getElTooltip(i),n={paths:e.paths,tooltipEl:a,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:i.w.globals.tooltip.ttItems};i.w.globals.minX===this.w.globals.minX&&i.w.globals.maxX===this.w.globals.maxX&&i.w.globals.tooltip.seriesHoverByContext({chartCtx:i,ttCtx:i.w.globals.tooltip,opt:n,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}seriesHoverByContext({chartCtx:e,ttCtx:t,opt:i,e:a}){const n=e.w;if(!this.getElTooltip(e))return;const s=t.getCachedDimensions();if(t.tooltipRect={x:0,y:0,ttWidth:s.ttWidth,ttHeight:s.ttHeight},t.e=a,t.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!t.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries){new $$e(e.w).toggleSeriesOnHover(a,a.target.parentNode)}n.globals.axisCharts?t.axisChartsTooltips({e:a,opt:i,tooltipRect:t.tooltipRect}):t.nonAxisChartsTooltips({e:a,opt:i,tooltipRect:t.tooltipRect}),t.fixedTooltip&&t.drawFixedTooltipRect()}axisChartsTooltips({e:e,opt:t}){var i;const a=this.w;let n,s;const o=t.elGrid.getBoundingClientRect(),r="touchmove"===e.type?e.touches[0].clientX:e.clientX,l="touchmove"===e.type?e.touches[0].clientY:e.clientY;if(this.clientY=l,this.clientX=r,a.interact.capturedSeriesIndex=-1,a.interact.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)return void this.handleMouseOut(t);if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){const e=parseInt(t.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(e)<0)return void this.handleMouseOut(t)}const c=this.getElTooltip();if(!c)return;const d=this.getElXCrosshairs();let u=[];a.config.chart.group&&(u=this.ctx.getSyncedCharts());const p=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===e.type||"touchmove"===e.type||"mouseup"===e.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.seriesData.series.length)return;null!==d&&d.classList.add("apexcharts-active");const o=null==(i=this.yaxisTooltips)?void 0:i.filter(e=>!0===e),h=this.ycrosshairs;if(null!==h&&(null==o?void 0:o.length)&&h.classList.add("apexcharts-active"),p&&!this.showOnIntersect||u.length>1)this.handleStickyTooltip(e,r,l,t);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){const i=this.intersect.handleHeatTreeTooltip({e:e,opt:t,x:n,y:s,type:a.config.chart.type});n=i.x,s=i.y,c.style.left=n+"px",c.style.top=s+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:e,opt:t}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e:e,opt:t,x:n,y:s});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let e=0;e<a.config.yaxis.length;e++)this.axesTooltip.drawYaxisTooltipText(e,l,this.xyRatios);a.dom.baseEl.classList.add("apexcharts-tooltip-active"),t.tooltipEl.classList.add("apexcharts-active"),a.config.chart.accessibility.enabled&&a.config.chart.accessibility.announcements.enabled&&t.tooltipEl.removeAttribute("aria-hidden")}else"mouseout"!==e.type&&"touchend"!==e.type||this.handleMouseOut(t)}nonAxisChartsTooltips({e:e,opt:t,tooltipRect:i}){var a,n,s,o;const r=this.w,l=t.paths.getAttribute("rel"),c=this.getElTooltip();if(!c)return;const d=r.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){let e,o;r.dom.baseEl.classList.add("apexcharts-tooltip-active"),c.classList.add("apexcharts-active"),r.config.chart.accessibility.enabled&&r.config.chart.accessibility.announcements.enabled&&c.removeAttribute("aria-hidden"),this.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:parseInt(l,10)-1,shared:!1});const u=t.paths.querySelector("path[data\\:cx]")||t.paths;if(r.config.tooltip.intersect&&u.hasAttribute("data:cx")&&u.hasAttribute("data:cy")){const t=r.dom.Paper.node.getBoundingClientRect();e=t.left-d.left+parseFloat(u.getAttribute("data:cx"))-i.ttWidth/2,o=t.top-d.top+parseFloat(u.getAttribute("data:cy"))-i.ttHeight-10}else e=(null!=(a=r.interact.clientX)?a:0)-d.left-i.ttWidth/2,o=(null!=(n=r.interact.clientY)?n:0)-d.top-i.ttHeight-10;if(c.style.left=e+"px",c.style.top=o+"px",r.config.legend.tooltipHoverFormatter){const e=r.config.legend.tooltipHoverFormatter,t=l-1,i=null==(s=this.legendLabels)?void 0:s[t];if(!i)return;const a=e(i.getAttribute("data:default-text"),{seriesIndex:t,dataPointIndex:t,w:r});i.innerHTML=a}}else"mouseout"!==e.type&&"touchend"!==e.type||(c.classList.remove("apexcharts-active"),r.dom.baseEl.classList.remove("apexcharts-tooltip-active"),r.config.legend.tooltipHoverFormatter&&(null==(o=this.legendLabels)||o.forEach(e=>{const t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(null!=t?t:"")})))}handleStickyTooltip(e,t,i,a){const n=this.w,s=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:t,clientY:i}),o=s.j;let r=s.capturedSeries;null!==r&&n.globals.collapsedSeriesIndices.includes(null!=r?r:-1)&&(r=null);const l=a.elGrid.getBoundingClientRect();if(s.hoverX<0||s.hoverX>l.width)this.handleMouseOut(a);else if(null!==r)this.handleStickyCapturedSeries(e,null!=r?r:-1,a,null!=o?o:0);else if(this.tooltipUtil.isXoverlap(null!=o?o:0)||n.globals.isBarHorizontal){const t=n.seriesData.series.findIndex((e,t)=>!n.globals.collapsedSeriesIndices.includes(t));this.create(e,this,t,null!=o?o:0,a.ttItems)}}handleStickyCapturedSeries(e,t,i,a){const n=this.w;if(!this.tConfig.shared){if(null===n.seriesData.series[t][a])return void this.handleMouseOut(i)}if(void 0!==n.seriesData.series[t][a])this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,a,i.ttItems):this.create(e,this,t,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){const t=n.seriesData.series.findIndex((e,t)=>!n.globals.collapsedSeriesIndices.includes(t));this.create(e,this,t,a,i.ttItems)}}deactivateHoverFilter(){const e=this.w,t=new _$e(this.w,this.ctx),i=e.dom.Paper.find(".apexcharts-bar-area");for(let a=0;a<i.length;a++)t.pathMouseLeave(i[a],void 0)}handleMouseOut(e){var t,i;const a=this.w,n=this.getElXCrosshairs();a.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),delete e.tooltipEl.dataset.positioned,a.config.chart.accessibility.enabled&&a.config.chart.accessibility.announcements.enabled&&e.tooltipEl.setAttribute("aria-hidden","true"),this.deactivateHoverFilter(),"bubble"!==a.config.chart.type&&this.marker.resetPointsSize(),null!==n&&n.classList.remove("apexcharts-active");const s=this.ycrosshairs;if(null!==s&&s.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&(null==(t=this.xaxisTooltip)||t.classList.remove("apexcharts-active")),this.yaxisTooltips&&this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=[...a.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);for(let e=0;e<this.yaxisTTEls.length;e++)this.yaxisTTEls[e].classList.remove("apexcharts-active")}a.config.legend.tooltipHoverFormatter&&(null==(i=this.legendLabels)||i.forEach(e=>{const t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(null!=t?t:"")}))}markerClick(e,t,i){const a=this.w;"function"==typeof a.config.chart.events.markerClick&&a.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:a}])}create(e,t,i,a,n,s=null){var o,r,l,c,d,u,p,h,f,g,m,_,v,b,y,x,S,w,C;const E=this.w,k=t;"mouseup"===e.type&&this.markerClick(e,i,a),null===s&&(s=this.tConfig.shared);const T=this.tooltipUtil.hasMarkers(i),A=this.tooltipUtil.getElBars(),R=()=>{E.globals.markers.largestSize>0?k.marker.enlargePoints(a):k.tooltipPosition.moveDynamicPointsOnHover(a)};if(E.config.legend.tooltipHoverFormatter){const e=E.config.legend.tooltipHoverFormatter,t=Array.from(null!=(o=this.legendLabels)?o:[]);t.forEach(e=>{const t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(null!=t?t:"")});for(let n=0;n<t.length;n++){const o=t[n],c=parseInt(null!=(r=o.getAttribute("i"))?r:"",10),d=decodeURIComponent(null!=(l=o.getAttribute("data:default-text"))?l:""),u=e(d,{seriesIndex:s?c:i,dataPointIndex:a,w:E});if(s)o.innerHTML=E.globals.collapsedSeriesIndices.indexOf(c)<0?u:d;else if(o.innerHTML=c===i?u:d,i===c)break}}const I=E.rangeData,D=BBe(BBe({ttItems:n,i:i,j:a},void 0!==(null==(p=null==(u=null==(d=null==(c=I.seriesRange)?void 0:c[i])?void 0:d[a])?void 0:u.y[0])?void 0:p.y1)&&{y1:null==(m=null==(g=null==(f=null==(h=I.seriesRange)?void 0:h[i])?void 0:f[a])?void 0:g.y[0])?void 0:m.y1}),void 0!==(null==(y=null==(b=null==(v=null==(_=I.seriesRange)?void 0:_[i])?void 0:v[a])?void 0:b.y[0])?void 0:y.y2)&&{y2:null==(C=null==(w=null==(S=null==(x=I.seriesRange)?void 0:x[i])?void 0:S[a])?void 0:w.y[0])?void 0:C.y2});if(s){if(k.tooltipLabels.drawSeriesTexts($Be(BBe({},D),{shared:!this.showOnIntersect&&this.tConfig.shared})),T)R();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...A]),this.barSeriesHeight>0)){const e=new _$e(this.w,this.ctx),t=E.dom.Paper.find(`.apexcharts-bar-area[j='${a}']`);this.deactivateHoverFilter();k.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&R(),k.tooltipPosition.moveStickyTooltipOverBars(a,i);for(let i=0;i<t.length;i++)e.pathMouseEnter(t[i],void 0)}}else k.tooltipLabels.drawSeriesTexts(BBe({shared:!1},D)),this.tooltipUtil.hasBars()&&k.tooltipPosition.moveStickyTooltipOverBars(a,i),T&&k.tooltipPosition.moveMarkers(i,a)}}let _Ve=class e{constructor(e){this.node=e,e&&(e.instance=this),this._listeners=[],this._filter=null}attr(e,t){if("string"==typeof e&&void 0===t)return this.node.getAttribute(e);const i="string"==typeof e?{[e]:t}:e;for(const a in i){let e=i[a];null===e?this.node.removeAttribute(a):void 0!==e&&("number"==typeof e&&isNaN(e)&&(e=0),this.node.setAttribute(a,e))}if("text"===this.node.nodeName&&null!=i.x){const e=this.node.querySelectorAll("tspan[data-newline]");for(let t=0;t<e.length;t++)e[t].setAttribute("x",i.x)}return this}css(e){for(const t in e)this.node.style[t]=e[t];return this}fill(e){return"object"==typeof e?this.attr(e):this.attr("fill",e)}stroke(e){return"object"==typeof e?(void 0!==e.color&&this.attr("stroke",e.color),void 0!==e.width&&this.attr("stroke-width",e.width),void 0!==e.dasharray&&this.attr("stroke-dasharray",e.dasharray),void 0!==e.linecap&&this.attr("stroke-linecap",e.linecap),void 0!==e.opacity&&this.attr("stroke-opacity",e.opacity),this):this.attr("stroke",e)}size(e,t){return this.attr({width:e,height:t})}move(e,t){return this.attr({x:e,y:t})}center(e,t){if("g"===this.node.nodeName){const i=this.bbox(),a=e-(i.x+i.width/2),n=t-(i.y+i.height/2);return this.attr("transform",`translate(${a}, ${n})`)}return this.attr({cx:e,cy:t})}add(e){return this.node.appendChild(e.node||e),this}addTo(e){return(e.node||e).appendChild(this.node),this}remove(){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),this}clear(){for(;this.node.firstChild;)this.node.removeChild(this.node.firstChild);return this}find(t){return Array.from(this.node.querySelectorAll(t)).map(t=>t.instance||new e(t))}findOne(t){const i=this.node.querySelector(t);return i?i.instance||new e(i):null}on(e,t){const i=e.split(".")[0];return this._listeners.push({event:e,eventType:i,handler:t}),this.node.addEventListener(i,t),this}off(e,t){if(e||t)if(e&&!t){const t=e.split(".")[0];this._listeners=this._listeners.filter(e=>e.eventType!==t||(this.node.removeEventListener(e.eventType,e.handler),!1))}else{const i=e.split(".")[0];this._listeners=this._listeners.filter(e=>e.eventType!==i||e.handler!==t||(this.node.removeEventListener(e.eventType,e.handler),!1))}else this._listeners.forEach(e=>{this.node.removeEventListener(e.eventType,e.handler)}),this._listeners=[];return this}each(t,i){return Array.from(this.node.children).forEach(a=>{const n=a.instance||new e(a);t.call(n),i&&n.each(t,i)}),this}removeClass(e){return"*"===e?this.node.removeAttribute("class"):this.node.classList.remove(e),this}children(){return Array.from(this.node.childNodes).filter(e=>1===e.nodeType).map(t=>t.instance||new e(t))}hide(){return this.node.style.display="none",this}show(){return this.node.style.display="",this}bbox(){if("function"==typeof this.node.getBBox)try{return this.node.getBBox()}catch(NO){}return{x:0,y:0,width:0,height:0}}tspan(t){const i=qBe.createElementNS("http://www.w3.org/2000/svg","tspan");return i.textContent=t,this.node.appendChild(i),new e(i)}plot(e){return"string"==typeof e&&this.attr("d",e),this}animate(){throw new Error("Animation module not loaded")}filterWith(){throw new Error("Filter module not loaded")}unfilter(e){return this._filter&&(this.node.removeAttribute("filter"),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this}filterer(){return this._filter}},vVe=0;class bVe extends _Ve{constructor(e,t,i){const a="radial"===t?"radialGradient":"linearGradient";super(qBe.createElementNS(v$e,a)),this._id="SvgjsGradient"+ ++vVe,this.attr("id",this._id),"function"==typeof i&&i(new yVe(this));let n=e.node.querySelector("defs");n||(n=qBe.createElementNS(v$e,"defs"),e.node.appendChild(n)),n.appendChild(this.node)}stop(e,t,i){const a=qBe.createElementNS(v$e,"stop");return a.setAttribute("offset",e),a.setAttribute("stop-color",t),void 0!==i&&a.setAttribute("stop-opacity",String(i)),this.node.appendChild(a),this}from(e,t){return this.attr({x1:e,y1:t})}to(e,t){return this.attr({x2:e,y2:t})}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class yVe{constructor(e){this.gradient=e}stop(e,t,i){return this.gradient.stop(e,t,i),this}}let xVe=0;class SVe extends _Ve{constructor(e,t,i,a){if(super(qBe.createElementNS(v$e,"pattern")),this._id="SvgjsPattern"+ ++xVe,this.attr({id:this._id,width:t,height:i,patternUnits:"userSpaceOnUse"}),"function"==typeof a){a(new wVe(this.node))}let n=e.node.querySelector("defs");n||(n=qBe.createElementNS(v$e,"defs"),e.node.appendChild(n)),n.appendChild(this.node)}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class wVe extends _Ve{line(e,t,i,a){const n=this._make("line");return void 0!==e&&n.attr({x1:e,y1:t,x2:i,y2:a}),n}rect(e,t){const i=this._make("rect");return void 0!==e&&i.attr({width:e,height:t}),i}circle(e){const t=this._make("circle");return void 0!==e&&t.attr({r:e/2,cx:e/2,cy:e/2}),t}path(e){const t=this._make("path");return e&&t.attr("d",e),t}polygon(e){const t=this._make("polygon");return e&&t.attr("points",e),t}group(){return this._makeContainer("g")}defs(){return this._makeContainer("defs")}plain(e){const t=qBe.createElementNS(v$e,"text");t.textContent=e;const i=new _Ve(t);return this.node.appendChild(t),i}text(e){const t=qBe.createElementNS(v$e,"text"),i=new _Ve(t);return this.node.appendChild(t),"function"==typeof e&&e(new CVe(t)),i}image(e,t){const i=qBe.createElementNS(v$e,"image");i.setAttributeNS("http://www.w3.org/1999/xlink","href",e);const a=new _Ve(i);if(this.node.appendChild(i),"function"==typeof t){const i=new Image;i.onload=function(){a.size(i.width,i.height),t.call(a,{width:i.width,height:i.height})},i.src=e}return a}gradient(e,t){return new bVe(this,e,t)}pattern(e,t,i){return new SVe(this,e,t,i)}_make(e){const t=qBe.createElementNS(v$e,e);return this.node.appendChild(t),new _Ve(t)}_makeContainer(e){const t=qBe.createElementNS(v$e,e);return this.node.appendChild(t),new wVe(t)}}class CVe{constructor(e){this.textNode=e}tspan(e){const t=qBe.createElementNS(v$e,"tspan");return t.textContent=e,this.textNode.appendChild(t),new EVe(t,this.textNode)}}class EVe{constructor(e,t){this.node=e,this.textNode=t}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}}let kVe=0;class TVe extends _Ve{constructor(){super(qBe.createElementNS(v$e,"filter")),this._id="SvgjsFilter"+ ++kVe,this.attr("id",this._id)}size(e,t,i,a){return this.attr({width:e,height:t,x:i,y:a})}}class AVe{constructor(e){this.filter=e}colorMatrix(e){return this._primitive("feColorMatrix",e)}offset(e){return this._primitive("feOffset",e)}gaussianBlur(e){return this._primitive("feGaussianBlur",e)}flood(e){return this._primitive("feFlood",e)}composite(e){return this._primitive("feComposite",e)}merge(e){const t=qBe.createElementNS(v$e,"feMerge");return e.forEach(e=>{const i=qBe.createElementNS(v$e,"feMergeNode");i.setAttribute("in",e),t.appendChild(i)}),this.filter.node.appendChild(t),new _Ve(t)}_primitive(e,t){const i=qBe.createElementNS(v$e,e);for(const a in t)i.setAttribute(a,t[a]);return this.filter.node.appendChild(i),new _Ve(i)}}function RVe(e){if(!e||"string"!=typeof e)return[["M",0,0]];const t=[],i=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,a=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;let n;const s=[],o=[];for(;null!==(n=i.exec(e));)s.push(n[1]),o.push(n.index);for(let r=0;r<s.length;r++){const i=o[r]+s[r].length,n=r+1<o.length?o[r+1]:e.length,l=e.substring(i,n),c=[];let d;for(a.lastIndex=0;null!==(d=a.exec(l));)c.push(parseFloat(d[0]));const u=s[r].toUpperCase();if("Z"===u)t.push(["Z"]);else if("M"===u||"L"===u||"T"===u)for(let e=0;e<c.length;e+=2)t.push([u,c[e],c[e+1]]);else if("H"===u)for(let e=0;e<c.length;e++)t.push([u,c[e]]);else if("V"===u)for(let e=0;e<c.length;e++)t.push([u,c[e]]);else if("C"===u)for(let e=0;e<c.length;e+=6)t.push([u,c[e],c[e+1],c[e+2],c[e+3],c[e+4],c[e+5]]);else if("S"===u||"Q"===u)for(let e=0;e<c.length;e+=4)t.push([u,c[e],c[e+1],c[e+2],c[e+3]]);else if("A"===u)for(let e=0;e<c.length;e+=7)t.push([u,c[e],c[e+1],c[e+2],c[e+3],c[e+4],c[e+5],c[e+6]])}return 0===t.length&&t.push(["M",0,0]),t}function IVe(e){let t=1/0,i=1/0,a=-1/0,n=-1/0;return e.forEach(e=>{for(let s=1;s<e.length;s+=2)if(s+1<=e.length){const o=e[s],r=e[s+1];"number"==typeof o&&"number"==typeof r&&(o<t&&(t=o),o>a&&(a=o),r<i&&(i=r),r>n&&(n=r))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:i,width:a-t,height:n-i}}function DVe(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function OVe(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function MVe(e){var t,i=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],i;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":i=function(e,t){var i,a,n,s,o,r,l,c,d,u,p,h,f,g,m,_,v,b,y,x,S,w,C,E,k,T,A=Math.abs(t[1]),R=Math.abs(t[2]),I=t[3]%360,D=t[4],O=t[5],M=t[6],N=t[7],L=new b$e(e[0],e[1]),P=new b$e(M,N),F=[];if(0===A||0===R||L.x===P.x&&L.y===P.y)return[["C",L.x,L.y,P.x,P.y,P.x,P.y]];i=new b$e((L.x-P.x)/2,(L.y-P.y)/2).transform(new y$e(0,0,0,0,0,0).rotate(I)),(a=i.x*i.x/(A*A)+i.y*i.y/(R*R))>1&&(A*=a=Math.sqrt(a),R*=a);n=new y$e(0,0,0,0,0,0).rotate(I).scale(1/A,1/R).rotate(-I),L=L.transform(n),P=P.transform(n),s=[P.x-L.x,P.y-L.y],r=s[0]*s[0]+s[1]*s[1],o=Math.sqrt(r),s[0]/=o,s[1]/=o,l=r<4?Math.sqrt(1-r/4):0,D===O&&(l*=-1);c=new b$e((P.x+L.x)/2+l*-s[1],(P.y+L.y)/2+l*s[0]),d=new b$e(L.x-c.x,L.y-c.y),u=new b$e(P.x-c.x,P.y-c.y),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1);h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1);O&&p>h&&(h+=2*Math.PI);!O&&p<h&&(h-=2*Math.PI);for(g=Math.ceil(2*Math.abs(p-h)/Math.PI),_=[],v=p,f=(h-p)/g,m=4*Math.tan(f/4)/3,S=0;S<=g;S++)y=Math.cos(v),b=Math.sin(v),x=new b$e(c.x+y,c.y+b),_[S]=[new b$e(x.x+m*b,x.y-m*y),x,new b$e(x.x-m*b,x.y+m*y)],v+=f;for(_[0][0]=_[0][1].clone(),_[_.length-1][2]=_[_.length-1][1].clone(),n=new y$e(0,0,0,0,0,0).rotate(I).scale(A,R).rotate(-I),S=0,w=_.length;S<w;S++)_[S][0]=_[S][0].transform(n),_[S][1]=_[S][1].transform(n),_[S][2]=_[S][2].transform(n);for(S=1,w=_.length;S<w;S++)C=(x=_[S-1][2]).x,E=x.y,k=(x=_[S][0]).x,T=x.y,M=(x=_[S][1]).x,N=x.y,F.push(["C",C,E,k,T,M,N]);return F}(null!=(t=this.pos)?t:[],e),e=i[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],i}function NVe(e,t){if(!1===t)return!1;for(var i=t,a=e.length;i<a;++i)if("M"==e[i][0])return i;return!1}function LVe(e,t,i,a,n,s){for(var o=e.slice(t,i||void 0),r=a.slice(n,s||void 0),l=0,c={pos:[0,0],start:[0,0]},d={pos:[0,0],start:[0,0]};o[l]=DVe.call(c,o[l]),r[l]=DVe.call(d,r[l]),o[l][0]!=r[l][0]||"M"==o[l][0]||"A"==o[l][0]&&(o[l][4]!=r[l][4]||o[l][5]!=r[l][5])?(Array.prototype.splice.apply(o,[l,1].concat(MVe.call(c,o[l]))),Array.prototype.splice.apply(r,[l,1].concat(MVe.call(d,r[l])))):(o[l]=OVe.call(c,o[l]),r[l]=OVe.call(d,r[l])),++l!=o.length||l!=r.length;)l==o.length&&o.push(["C",c.pos[0],c.pos[1],c.pos[0],c.pos[1],c.pos[0],c.pos[1]]),l==r.length&&r.push(["C",d.pos[0],d.pos[1],d.pos[0],d.pos[1],d.pos[0],d.pos[1]]);return{start:o,dest:r}}function PVe(e,t){var i=function(e,t){for(var i,a=RVe(e),n=RVe(t),s=0,o=0,r=!1,l=!1;!1!==s||!1!==o;){if(r=NVe(a,!1!==s&&s+1),l=NVe(n,!1!==o&&o+1),!1===s){const e=IVe(i.start);s=0==e.height||0==e.width?a.push(a[0])-1:a.push(["M",e.x+e.width/2,e.y+e.height/2])-1}if(!1===o){const e=IVe(i.dest);o=0==e.height||0==e.width?n.push(n[0])-1:n.push(["M",e.x+e.width/2,e.y+e.height/2])-1}i=LVe(a,s,r,n,o,l),a=a.slice(0,s).concat(i.start,!1===r?[]:a.slice(r)),n=n.slice(0,o).concat(i.dest,!1===l?[]:n.slice(l)),s=!1!==r&&s+i.start.length,o=!1!==l&&o+i.dest.length}return{start:a,dest:n}}(e,t),a=i.start,n=i.dest;return function(e){var t=a.map(function(t,i){return n[i].map(function(a,s){return 0===s?a:t[s]+(n[i][s]-t[s])*e})});return t.map(e=>e.join(" ")).join(" ")}}function FVe(e){if(!e||"string"!=typeof e)return null;if("#"===e[0]){let t=e.slice(1);3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const i=parseInt(t,16);return[i>>16&255,i>>8&255,255&i,1]}const t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?[+t[1],+t[2],+t[3],void 0!==t[4]?+t[4]:1]:null}function BVe(e,t,i){return`rgba(${Math.round(e[0]+(t[0]-e[0])*i)},${Math.round(e[1]+(t[1]-e[1])*i)},${Math.round(e[2]+(t[2]-e[2])*i)},${e[3]+(t[3]-e[3])*i})`}class $Ve{constructor(e,t,i){this.el=e,this.duration=null!=t?t:300,this.delay=i||0,this._attrTarget=null,this._plotTarget=null,this._afterCb=null,this._duringCb=null,this._next=null,this._root=null,this._scheduled=!1}attr(e){return this._attrTarget=e,this._schedule(),this}plot(e){return this._plotTarget=e,this._schedule(),this}after(e){return this._afterCb=e,this._schedule(),this}during(e){return this._duringCb=e,this._schedule(),this}animate(e,t){const i=new $Ve(this.el,e,t);return this._next=i,i._root=this._root||this,i}_schedule(){const e=this._root||this;e._scheduled||(e._scheduled=!0,queueMicrotask(()=>e._executeChain()))}_executeChain(){const e=[];let t=this;for(;t;)e.push(t),t=t._next;let i=0;e.forEach(e=>{i+=e.delay,e._execute(i),i+=e.duration})}_execute(e){const t=this.el,i=this.duration;if(i<=1){const i=()=>{this._attrTarget&&t.attr(this._attrTarget),this._plotTarget&&t.plot(this._plotTarget),this._afterCb&&this._afterCb.call(t)};return void(e>0?setTimeout(i,e):i())}const a=()=>{const e={},a={},n={};if(this._attrTarget)for(const i of Object.keys(this._attrTarget)){const s=t.attr(i);e[i]=s;const o=FVe(s),r=FVe(String(this._attrTarget[i]));o&&r&&(a[i]=o,n[i]=r)}let s=null;if(this._plotTarget){const e=t.attr("d")||"";try{s=PVe(e,this._plotTarget)}catch(NO){s=null}}const o=performance.now(),r=l=>{const c=l-o,d=Math.min(c/i,1),u=function(e){return-Math.cos(e*Math.PI)/2+.5}(d);if(this._attrTarget)if(d>=1)t.attr(this._attrTarget);else{const i={};for(const t of Object.keys(this._attrTarget))if(a[t]&&n[t])i[t]=BVe(a[t],n[t],u);else{const a=parseFloat(e[t]),n=parseFloat(this._attrTarget[t]);isNaN(a)||isNaN(n)||(i[t]=a+(n-a)*u)}t.attr(i)}s&&d<1&&t.attr("d",s(u)),this._duringCb&&this._duringCb(u),d<1?qBe.requestAnimationFrame(r):(this._plotTarget&&t.attr("d",this._plotTarget),this._afterCb&&this._afterCb.call(t))};qBe.requestAnimationFrame(r)};e>0?setTimeout(a,e):a()}}var VVe;function UVe(){const e=qBe.createElementNS(v$e,"svg"),t=new wVe(e);return t.attr({xmlns:v$e}),t}(VVe=_Ve).prototype.filterWith=function(e){const t=new TVe;this._filter=t;let i=this.node;for(;i&&"svg"!==i.nodeName;)i=i.parentNode;if(i){let e=i.querySelector("defs");e||(e=qBe.createElementNS(v$e,"defs"),i.insertBefore(e,i.firstChild)),e.appendChild(t.node)}return e(new AVe(t)),this.attr("filter","url(#"+t._id+")"),this},VVe.prototype.unfilter=function(e){return this._filter&&(this.node.removeAttribute("filter"),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this},VVe.prototype.filterer=function(){return this._filter},function(e){e.prototype.animate=function(e,t){return new $Ve(this,e,t)}}(_Ve),function(e){e.prototype.draggable=function(e){if(!1===e)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;const t=this,i=e||{},a=e=>{if(e.button&&0!==e.button)return;e.stopPropagation();const a="touchstart"===e.type?e.touches[0]:e,n=t.node,s=parseFloat(n.getAttribute("x"))||0,o=parseFloat(n.getAttribute("y"))||0,r=a.clientX,l=a.clientY,c=n.ownerSVGElement;let d=null;c&&(d=c.getScreenCTM());const u=e=>{const t="touchmove"===e.type?e.touches[0]:e;let a=t.clientX-r,c=t.clientY-l;d&&(a/=d.a,c/=d.d);let u=s+a,p=o+c;const h=parseFloat(n.getAttribute("width"))||0,f=parseFloat(n.getAttribute("height"))||0;void 0!==i.minX&&u<i.minX&&(u=i.minX),void 0!==i.minY&&p<i.minY&&(p=i.minY),void 0!==i.maxX&&u+h>i.maxX&&(u=i.maxX-h),void 0!==i.maxY&&p+f>i.maxY&&(p=i.maxY-f);const g=new CustomEvent("dragmove",{detail:{handler:{move:function(e,t){n.setAttribute("x",e),n.setAttribute("y",t)}},box:{x:u,y:p,w:h,h:f,x2:u+h,y2:p+f}}});n.dispatchEvent(g)},p=()=>{UBe.isBrowser()&&(document.removeEventListener("mousemove",u),document.removeEventListener("touchmove",u),document.removeEventListener("mouseup",p),document.removeEventListener("touchend",p))};UBe.isBrowser()&&(document.addEventListener("mousemove",u),document.addEventListener("touchmove",u),document.addEventListener("mouseup",p),document.addEventListener("touchend",p))};return t.node.addEventListener("mousedown",a),t.node.addEventListener("touchstart",a),t._dragCleanup=()=>{t.node.removeEventListener("mousedown",a),t.node.removeEventListener("touchstart",a)},t}}(_Ve),function(e){e.prototype.select=function(e){if(!1===e)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;const t=this,{createHandle:i,updateHandle:a}=e,n=document.createElementNS(v$e,"g");n.setAttribute("class","svg_select_points");const s=t.node.parentNode;s&&s.appendChild(n);const o={},r=["t","b","l","r","lt","rt","lb","rb"];r.forEach((e,t)=>{const a=new wVe(document.createElementNS(v$e,"g"));n.appendChild(a.node);const s=i(a,[0,0],t,[],e);o[e]={group:a,handle:s}});const l=()=>{const e=parseFloat(t.attr("x"))||0,i=parseFloat(t.attr("y"))||0,s=parseFloat(t.attr("width"))||0,l=parseFloat(t.attr("height"))||0,c=t.node.getAttribute("transform");c?n.setAttribute("transform",c):n.removeAttribute("transform");const d={t:[e+s/2,i],b:[e+s/2,i+l],l:[e,i+l/2],r:[e+s,i+l/2],lt:[e,i],rt:[e+s,i],lb:[e,i+l],rb:[e+s,i+l]};r.forEach(e=>{o[e]&&d[e]&&a(o[e].group,d[e])})};return l(),t._selectHandles=n,t._selectHandlesMap=o,t._updateSelectPositions=l,t._selectCleanup=()=>{n.parentNode&&n.parentNode.removeChild(n),t._selectHandles=null,t._selectHandlesMap=null,t._updateSelectPositions=null},t},e.prototype.resize=function(e){if(!1===e)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;const t=this,i=t._selectHandlesMap;if(!i)return t;const a=[],n=e=>{const n=i[e];if(!n||!n.group||!n.group.node)return;const s=n.group.node,o=i=>{if(i.button&&0!==i.button)return;i.stopPropagation();const a=("touchstart"===i.type?i.touches[0]:i).clientX,n=t.node.ownerSVGElement;let s=null;n&&(s=n.getScreenCTM());const o=parseFloat(t.attr("x"))||0,r=parseFloat(t.attr("width"))||0,l=i=>{let n=("touchmove"===i.type?i.touches[0]:i).clientX-a;s&&(n/=s.a);let l=o,c=r;"l"===e?(l=o+n,c=r-n):"r"===e&&(c=r+n),c<0&&(c=0),t.attr({x:l,width:c}),t._updateSelectPositions&&t._updateSelectPositions();const d=new CustomEvent("resize",{detail:{el:t}});t.node.dispatchEvent(d)},c=()=>{UBe.isBrowser()&&(document.removeEventListener("mousemove",l),document.removeEventListener("touchmove",l),document.removeEventListener("mouseup",c),document.removeEventListener("touchend",c));const e=new CustomEvent("resize",{detail:{el:t}});t.node.dispatchEvent(e)};UBe.isBrowser()&&(document.addEventListener("mousemove",l),document.addEventListener("touchmove",l),document.addEventListener("mouseup",c),document.addEventListener("touchend",c))};s.addEventListener("mousedown",o),s.addEventListener("touchstart",o),a.push(()=>{s.removeEventListener("mousedown",o),s.removeEventListener("touchstart",o)})};return n("l"),n("r"),t._resizeCleanup=()=>{a.forEach(e=>e())},t}}(_Ve),UVe.xlink="http://www.w3.org/1999/xlink",UBe.isBrowser()&&void 0===window.SVG&&(window.SVG=UVe),UBe.isBrowser()?(void 0===window.SVG&&(window.SVG=UVe),void 0===window.Apex&&(window.Apex={})):"undefined"!=typeof global&&(void 0===global.Apex&&(global.Apex={}),void 0===global.SVG&&(global.SVG=UVe));const HVe=class e{static registerFeatures(t){for(const[i,a]of Object.entries(t))e._featureRegistry.set(i,a)}constructor(e){this.ctx=e,this.w=e.w}initModules(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend","keydown","keyup"],this.ctx.animations=new g$e(this.w,this.ctx),this.ctx.axes=new L$e(this.w,this.ctx),this.ctx.core=new oVe(this.ctx.el,this.w,this.ctx),this.ctx.config=new a$e({}),this.ctx.data=new rVe(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new R$e(this.w,this.ctx),this.ctx.graphics=new _$e(this.w,this.ctx),this.ctx.coreUtils=new l$e(this.w),this.ctx.crosshairs=new P$e(this.w),this.ctx.events=new M$e(this.w,this.ctx),this.ctx.fill=new S$e(this.w),this.ctx.localization=new N$e(this.w),this.ctx.options=new i$e,this.ctx.responsive=new B$e(this.w),this.ctx.series=new $$e(this.w,{toggleDataSeries:(...e)=>{var t;return null==(t=this.ctx.legend)?void 0:t.legendHelpers.toggleDataSeries(...e)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...e)=>this.ctx.updateHelpers._updateSeries(...e)}),this.ctx.theme=new V$e(this.w),this.ctx.formatters=new ZBe(this.w),this.ctx.titleSubtitle=new U$e(this.w),this.ctx.dimensions=new W$e(this.w,this.ctx),this.ctx.updateHelpers=new lVe(this.w,this.ctx);const e=new mVe(this.w,this.ctx);this.w.globals.tooltip=e,Object.defineProperty(this.ctx,"tooltip",{get(){return this.w.globals.tooltip},configurable:!0}),this._initOptionalModules()}_initOptionalModules(){const t=e._featureRegistry,i=this.w,a=this.ctx,n=t.get("exports");a.exports=n?new n(i,a):null;const s=t.get("legend");a.legend=s?new s(i,a):null;const o=t.get("toolbar");Object.defineProperty(a,"toolbar",{get(){var e;return!this._toolbar&&o&&(this._toolbar=new o(i,this)),null!=(e=this._toolbar)?e:null},configurable:!0});const r=t.get("zoomPanSelection");Object.defineProperty(a,"zoomPanSelection",{get(){var e;return!this._zoomPanSelection&&r&&(this._zoomPanSelection=new r(i,this)),null!=(e=this._zoomPanSelection)?e:null},configurable:!0});const l=t.get("keyboardNavigation");Object.defineProperty(a,"keyboardNavigation",{get(){var e;return!this._keyboardNavigation&&l&&(this._keyboardNavigation=new l(i,this)),null!=(e=this._keyboardNavigation)?e:null},configurable:!0})}};VBe(HVe,"_featureRegistry",new Map);let zVe=HVe;class YVe{constructor(e){this.ctx=e,this.w=e.w}clear({isUpdating:e}){this.ctx._zoomPanSelection&&this.ctx._zoomPanSelection.destroy(),this.ctx._toolbar&&this.ctx._toolbar.destroy(),this.w.globals.resizeObserver&&"function"==typeof this.w.globals.resizeObserver.disconnect&&(this.w.globals.resizeObserver.disconnect(),this.w.globals.resizeObserver=null),k$e.invalidateAll(this.w),e?(this.ctx._zoomPanSelection=null,this.ctx._toolbar=null,this.ctx._keyboardNavigation=null):(this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx._zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx._toolbar=null,this.ctx.localization=null,this.ctx._keyboardNavigation=null,this.ctx.w.globals.tooltip=null),this.clearDomElements({isUpdating:e})}killSVG(e){e.each(function(){this.removeClass("*"),this.off()},!0),e.clear()}clearDomElements({isUpdating:e}){const t=this.w.dom;if(UBe.isBrowser()){const i=t.Paper.node;i.parentNode&&i.parentNode.parentNode&&!e&&(i.parentNode.parentNode.style.minHeight="unset");const a=t.baseEl;if(a&&this.ctx.eventList.forEach(e=>{a.removeEventListener(e,this.ctx.events.documentEvent)}),null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper),t.Paper.remove()}t.elWrap=null,t.elGraphical=null,t.elLegendWrap=null,t.elLegendForeign=null,t.baseEl=null,t.elGridRect=null,t.elGridRectMask=null,t.elGridRectBarMask=null,t.elGridRectMarkerMask=null,t.elForecastMask=null,t.elNonForecastMask=null,t.elDefs=null}}const GVe=new WeakMap;class WVe{constructor(e,t){VBe(this,"core"),VBe(this,"responsive"),VBe(this,"axes"),VBe(this,"grid"),VBe(this,"graphics"),VBe(this,"coreUtils"),VBe(this,"crosshairs"),VBe(this,"events"),VBe(this,"fill"),VBe(this,"localization"),VBe(this,"options"),VBe(this,"series"),VBe(this,"theme"),VBe(this,"formatters"),VBe(this,"titleSubtitle"),VBe(this,"dimensions"),VBe(this,"updateHelpers"),VBe(this,"tooltip"),VBe(this,"data"),VBe(this,"animations"),VBe(this,"exports"),VBe(this,"legend"),VBe(this,"toolbar"),VBe(this,"zoomPanSelection"),VBe(this,"keyboardNavigation"),VBe(this,"annotations"),VBe(this,"timeScale"),VBe(this,"_keyboardNavigation"),VBe(this,"windowResizeHandler"),VBe(this,"parentResizeHandler"),VBe(this,"publicMethods",[]),VBe(this,"eventList",[]),VBe(this,"config"),this.opts=t,this.ctx=this,this.w=new r$e(t).init(),this.el=e,this.w.globals.cuid=KBe.randomId(),this.w.globals.chartID=this.w.config.chart.id?KBe.escapeString(this.w.config.chart.id):this.w.globals.cuid,h$e(this.w);new zVe(this).initModules(),this.lastUpdateOptions=null,this.create=this.create.bind(this),UBe.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var e,t;return(null==(t=null==(e=this.w)?void 0:e.config)?void 0:t.chart)?new Promise((e,t)=>{var i;if(KBe.elementExists(this.el)){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),this.w.config.chart.id&&Apex._chartInstances.push({id:this.w.globals.chartID,group:this.w.config.chart.group,chart:this}),this.setLocale(this.w.config.chart.defaultLocale);const a=this.w.config.chart.events.beforeMount;if("function"==typeof a&&a(this,this.w),this.events.fireEvent("beforeMount",[this,this.w]),UBe.isBrowser()){window.addEventListener("resize",this.windowResizeHandler),function(e,t){if(UBe.isSSR())return;let i=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){const t=e.getBoundingClientRect();"none"!==e.style.display&&0!==t.width||(i=!0)}const a=new ResizeObserver(a=>{i&&t.call(e,a),i=!0});e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach(e=>a.observe(e)):a.observe(e),GVe.set(t,a)}(this.el.parentNode,this.parentResizeHandler);const e=this.el.getRootNode&&this.el.getRootNode(),t=KBe.is("ShadowRoot",e),a=this.el.ownerDocument;let n=t?e.getElementById("apexcharts-css"):a.getElementById("apexcharts-css");if(!n){n=qBe.createElementNS("http://www.w3.org/1999/xhtml","style"),n.id="apexcharts-css",n.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none;\n /* Focus indicator colour. Themes override below. */\n --apexcharts-focus-color: #008FFB;\n}\n\n/* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */\n.apexcharts-canvas .apexcharts-theme-dark,\n.apexcharts-theme-dark.apexcharts-canvas {\n --apexcharts-focus-color: #FFD500;\n}\n.apexcharts-canvas.apexcharts-high-contrast,\n.apexcharts-high-contrast.apexcharts-canvas {\n --apexcharts-focus-color: #FFFF00;\n}\n\n/* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */\n.apexcharts-sr-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n/* Respect OS-level reduced-motion preference (WCAG 2.3.3). */\n@media (prefers-reduced-motion: reduce) {\n .apexcharts-canvas *,\n .apexcharts-canvas *::before,\n .apexcharts-canvas *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n }\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-legend-series[role="button"]:focus {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: 2px;\n}\n\n.apexcharts-legend-series[role="button"]:focus:not(:focus-visible) {\n outline: none;\n}\n\n.apexcharts-legend-series[role="button"]:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: 2px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-canvas svg:focus:not(:focus-visible) {\n outline: none;\n}\n\n/* Keyboard navigation focus indicator on SVG data elements.\n SVG elements don\'t support CSS outline, so we use stroke. */\n.apexcharts-bar-area.apexcharts-keyboard-focused,\n.apexcharts-candlestick-area.apexcharts-keyboard-focused,\n.apexcharts-boxPlot-area.apexcharts-keyboard-focused,\n.apexcharts-rangebar-area.apexcharts-keyboard-focused,\n.apexcharts-pie-area.apexcharts-keyboard-focused,\n.apexcharts-heatmap-rect.apexcharts-keyboard-focused,\n.apexcharts-treemap-rect.apexcharts-keyboard-focused {\n stroke: var(--apexcharts-focus-color, #008FFB);\n stroke-width: 2;\n stroke-opacity: 1;\n}\n\n.apexcharts-tooltip {\n --apx-tt-bg: #ffffff;\n --apx-tt-border: rgba(15, 23, 42, 0.06);\n /* Layered shadow: tight inner contact + soft outer drop. The two Y\n * offsets are exposed as variables so they flip in sync with the\n * arrow when the tooltip is below the data point — see the\n * `[data-placement="bottom"]` rule further down. */\n --apx-tt-shadow-y-mid: 8px;\n --apx-tt-shadow-y-far: 16px;\n --apx-tt-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(15, 23, 42, 0.12), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(15, 23, 42, 0.18);\n --apx-tt-arrow-bg: var(--apx-tt-bg);\n /* Two stacked drop-shadows: the first is a tight contact halo for\n * edge definition against light chart backgrounds; the second is a\n * softer directional drop that lifts the arrow off the surface.\n * `--apx-tt-arrow-drop-y` is the Y offset of the directional drop;\n * a per-placement rule below flips it to negative when the tooltip\n * is below the data point (arrow on top) so the shadow always\n * casts outward instead of into the tooltip body. */\n --apx-tt-arrow-drop-y: 2px;\n --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(15, 23, 42, 0.2)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(15, 23, 42, 0.2));\n --apx-tt-color: #0f172a;\n --apx-tt-color-muted: rgba(15, 23, 42, 0.55);\n border-radius: 8px;\n background: var(--apx-tt-bg);\n border: 1px solid var(--apx-tt-border);\n box-shadow: var(--apx-tt-shadow);\n color: var(--apx-tt-color);\n cursor: default;\n font-size: 13px;\n left: 0;\n top: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n display: flex;\n flex-direction: column;\n padding: 2px 0;\n white-space: nowrap;\n z-index: 12;\n transition: opacity .12s ease\n}\n\n/* While the tooltip is visible, smoothly animate position changes\n * between data points. Kept short (160 ms) and ease-out so it stays\n * responsive — too long would feel laggy when sweeping across many\n * points fast. The position transition is only attached after the\n * first paint (Position.applyTooltipPosition flips `data-positioned`\n * once the tooltip has been placed) so the *first* show doesn\'t slide\n * the tooltip in from the previously-stale (0,0) coordinates. */\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: opacity .12s ease\n}\n.apexcharts-tooltip.apexcharts-active[data-positioned="true"] {\n transition: opacity .12s ease, left .16s ease-out, top .16s ease-out\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n /* defaults already set above; class kept for backward-compat selectors */\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n --apx-tt-bg: #1c1c1f;\n --apx-tt-border: rgba(255, 255, 255, 0.08);\n --apx-tt-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(0, 0, 0, 0.45), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(0, 0, 0, 0.55);\n --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.55)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(0, 0, 0, 0.45));\n --apx-tt-color: #f3f4f6;\n --apx-tt-color-muted: rgba(243, 244, 246, 0.55);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 8px 12px 4px;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.01em;\n color: var(--apx-tt-color-muted);\n background: transparent;\n border-bottom: none;\n margin-bottom: 0\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: transparent;\n border-bottom: none\n}\n\n/* `fillSeriesColor`: each series-group already paints itself with the\n * series colour. Drop the glass body entirely (transparent bg, no\n * border, no backdrop-filter, no padding) and clip the coloured\n * series-group(s) to the tooltip\'s rounded corners so they fill the\n * shell edge-to-edge. Text inside the coloured group is forced to\n * white for contrast. */\n.apexcharts-tooltip.apexcharts-tooltip-fill-series {\n background: transparent;\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n border: none;\n padding: 0;\n overflow: hidden;\n color: #fff\n}\n\n.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.22);\n color: #fff;\n opacity: 1;\n padding: 6px 12px\n}\n\n.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group {\n color: #fff\n}\n\n/* Arrow connector — sits *entirely outside* the tooltip body. Shares\n * the body\'s solid fill so it reads as a single shape. `filter:\n * drop-shadow` traces the clipped triangle outline (a regular\n * `box-shadow` would be erased by the `clip-path`). */\n.apexcharts-tooltip-arrow {\n position: absolute;\n width: 7px;\n height: 14px;\n background: var(--apx-tt-arrow-bg);\n /* The variable already contains the full `drop-shadow(...) ...` filter\n * chain (stacked shadows) so it\'s applied raw. */\n -webkit-filter: var(--apx-tt-arrow-shadow);\n filter: var(--apx-tt-arrow-shadow);\n pointer-events: none;\n top: calc(var(--apx-tt-arrow-y, 50%) - 7px)\n}\n\n.apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow {\n left: -7px;\n clip-path: polygon(0 50%, 100% 0, 100% 100%)\n}\n\n.apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow {\n right: -7px;\n clip-path: polygon(100% 50%, 0 0, 0 100%)\n}\n\n/* Vertical arrow variants: tooltip is above/below the data point and the\n * arrow points down/up. The base rule above uses `--apx-tt-arrow-y` for\n * left/right placement; for top/bottom we re-orient the rectangle and\n * use `--apx-tt-arrow-x` (set by applyTooltipPosition). */\n.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,\n.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {\n width: 14px;\n height: 7px;\n top: auto;\n left: calc(var(--apx-tt-arrow-x, 50%) - 7px)\n}\n\n.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {\n bottom: -7px;\n clip-path: polygon(50% 100%, 0 0, 100% 0)\n}\n\n.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {\n top: -7px;\n clip-path: polygon(50% 0, 0 100%, 100% 100%)\n}\n\n/* When the tooltip is flipped below the data point (arrow on top\n * pointing up), the default downward-biased shadows leave the top\n * edge of both the body *and* the arrow undefined. Flipping every\n * Y offset to negative casts the entire elevation upward so the\n * shadow falls between the tooltip and the bar above. */\n.apexcharts-tooltip[data-placement="bottom"] {\n --apx-tt-shadow-y-mid: -8px;\n --apx-tt-shadow-y-far: -16px;\n --apx-tt-arrow-drop-y: -2px\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 12px;\n height: 12px;\n margin-right: 6px;\n vertical-align: middle;\n color: inherit;\n}\n\n.apexcharts-tooltip-marker svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 4px 12px;\n display: none;\n gap: 8px;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active:last-child,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 8px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n/* X/Y axis tooltips — small popovers that label the crosshair on the\n * axes. Restyled to match the modern data-tooltip palette: solid white\n * body with a subtle border + soft drop-shadow, smaller font, rounded\n * corners. The arrows still use the CSS border-triangle technique\n * (cheap, crisp at small sizes); their colours flow from CSS variables\n * so light/dark themes only need one override per axis. */\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n --apx-axt-bg: #ffffff;\n --apx-axt-border: rgba(15, 23, 42, 0.08);\n --apx-axt-color: #0f172a;\n --apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12);\n opacity: 0;\n pointer-events: none;\n color: var(--apx-axt-color);\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n border-radius: 6px;\n position: absolute;\n z-index: 10;\n background: var(--apx-axt-bg);\n border: 1px solid var(--apx-axt-border);\n box-shadow: var(--apx-axt-shadow)\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark,\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n --apx-axt-bg: #1c1c1f;\n --apx-axt-border: rgba(255, 255, 255, 0.1);\n --apx-axt-color: #f3f4f6;\n --apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45)\n}\n\n.apexcharts-xaxistooltip {\n padding: 4px 8px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n/* :before paints the 1px border outline of the triangle (slightly larger\n * than :after); :after sits inside and paints the fill — leaves a 1px\n * ring of :before visible at the edges. */\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 5px;\n margin-left: -5px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: var(--apx-axt-bg)\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: var(--apx-axt-border)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: var(--apx-axt-bg)\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: var(--apx-axt-border)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 3px 8px\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 5px;\n margin-top: -5px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: var(--apx-axt-bg)\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: var(--apx-axt-border)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: var(--apx-axt-bg)\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: var(--apx-axt-border)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_shape {\n stroke-width: 1;\n stroke-dasharray: 10 10;\n stroke: black;\n stroke-opacity: 0.1;\n pointer-events: none;\n fill: none;\n}\n\n.svg_select_handle {\n stroke-width: 3;\n stroke: black;\n fill: none;\n}\n\n.svg_select_handle_r {\n cursor: e-resize;\n}\n\n.svg_select_handle_l {\n cursor: w-resize;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n /* WCAG 2.5.8 Target Size (Minimum): 24×24 CSS px hit target. */\n width: 26px;\n height: 24px;\n line-height: 24px;\n color: #6e8192;\n text-align: center;\n /* Reset native <button> chrome — these are styled via SVG icons. */\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n border-radius: 5px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color .12s ease, color .12s ease;\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-pan-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-selection-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n width: 18px;\n height: 18px;\n fill: none;\n stroke: currentColor;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon,\n.apexcharts-theme-dark .apexcharts-pan-icon,\n.apexcharts-theme-dark .apexcharts-reset-icon,\n.apexcharts-theme-dark .apexcharts-selection-icon,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon,\n.apexcharts-theme-dark .apexcharts-zoom-icon,\n.apexcharts-theme-dark .apexcharts-zoomin-icon,\n.apexcharts-theme-dark .apexcharts-zoomout-icon {\n color: #d4d6dc\n}\n\n.apexcharts-canvas .apexcharts-pan-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected {\n background: rgba(0, 143, 251, 0.12);\n color: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover,\n.apexcharts-theme-light .apexcharts-pan-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-reset-icon:hover,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover {\n background: rgba(15, 23, 42, 0.06);\n color: #1f2937\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon:hover,\n.apexcharts-theme-dark .apexcharts-pan-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-reset-icon:hover,\n.apexcharts-theme-dark .apexcharts-selection-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-zoom-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-zoomin-icon:hover,\n.apexcharts-theme-dark .apexcharts-zoomout-icon:hover {\n background: rgba(255, 255, 255, 0.08);\n color: #fff\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n display: inline-flex;\n align-items: center;\n gap: 1px;\n padding: 3px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.85);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n}\n\n.apexcharts-theme-dark .apexcharts-toolbar {\n background: rgba(28, 28, 31, 0.82);\n}\n\n.apexcharts-menu {\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n position: absolute;\n top: calc(100% + 4px);\n border: 1px solid rgba(15, 23, 42, 0.08);\n border-radius: 8px;\n padding: 4px;\n right: 0;\n opacity: 0;\n min-width: 120px;\n transition: opacity .15s ease, transform .15s ease;\n transform: translateY(-2px);\n pointer-events: none;\n box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06)\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n transform: translateY(0);\n pointer-events: all\n}\n\n.apexcharts-menu-item {\n padding: 6px 9px;\n font-size: 12px;\n border-radius: 5px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: rgba(15, 23, 42, 0.06)\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(28, 28, 31, 0.92);\n border-color: rgba(255, 255, 255, 0.08);\n color: #f3f4f6;\n box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-item:hover {\n background: rgba(255, 255, 255, 0.08)\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n/* Toolbar keyboard accessibility: show toolbar when any button inside it is focused */\n.apexcharts-toolbar:focus-within {\n opacity: 1\n}\n\n/* Focus indicator for toolbar icon buttons */\n.apexcharts-menu-icon:focus-visible,\n.apexcharts-pan-icon:focus-visible,\n.apexcharts-reset-icon:focus-visible,\n.apexcharts-selection-icon:focus-visible,\n.apexcharts-toolbar-custom-icon:focus-visible,\n.apexcharts-zoom-icon:focus-visible,\n.apexcharts-zoomin-icon:focus-visible,\n.apexcharts-zoomout-icon:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: 1px;\n border-radius: 5px\n}\n\n/* Focus indicator for hamburger menu items */\n.apexcharts-menu-item:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: -2px;\n background: #eee\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n pointer-events: none;\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-disable-transitions * {\n transition: none !important;\n}';const s=(null==(i=this.opts.chart)?void 0:i.nonce)||this.w.config.chart.nonce;s&&n.setAttribute("nonce",s),t?e.prepend(n):!1!==this.w.config.chart.injectStyleSheet&&a.head.appendChild(n)}}const n=this.create(this.w.config.series,{});if(!n)return e(this);this.mount(n).then(()=>{"function"==typeof this.w.config.chart.events.mounted&&this.w.config.chart.events.mounted(this,this.w),this.events.fireEvent("mounted",[this,this.w]),e(n)}).catch(e=>{var i,a;const n=e instanceof Error?e:new Error(String(e)),s=n;s.chartId=null==(a=null==(i=this.w)?void 0:i.globals)?void 0:a.chartID,s.el=this.el,t(n)})}else t(new Error("Element not found"))}):Promise.reject(new Error("ApexCharts: chart configuration is missing or invalid. Ensure the options object includes a `chart` property."))}create(e,t){var i;const a=this.w;if(!this.core){new zVe(this).initModules()}const n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,!KBe.elementExists(this.el))return n.animationEnded=!0,null;if(this.responsive.checkResponsiveConfig(t),a.config.xaxis.convertedCatToNumeric){new e$e(a.config).convertCatToNumericXaxis(a.config,this.ctx)}if(this.core.setupElements(),"treemap"===a.config.chart.type&&(a.config.grid.show=!1,a.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;let s=e;e.forEach((e,t)=>{e.hidden&&(s=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))});const o=l$e.checkComboSeries(s,a.config.chart.type);n.comboCharts=o.comboCharts,n.comboBarCount=o.comboBarCount;const r=s.every(e=>e.data&&0===e.data.length);(0===s.length||r&&n.collapsedSeries.length<1)&&this.series.handleNoData(),UBe.isBrowser()&&this.events.setupEventHandlers();const l=this.data.parseData(s);this._writeParsedSeriesData(l.seriesData),this._writeParsedRangeData(l.rangeData),this._writeParsedCandleData(l.candleData),this._writeParsedLabelData(l.labelData),this._writeParsedAxisFlags(l.axisFlags),this.theme.init();new w$e(this.w,this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==a.seriesData.series.length&&!a.config.legend.showForSingleSeries||null==(i=this.legend)||i.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==a.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=a.globals.minX,this.ctx.toolbar.maxX=a.globals.maxX)),this.formatters.heatmapLabelFormatters();new l$e(this.w).getLargestMarkerSize();const c=this.dimensions.plotCoords();this._writeLayoutCoords(c.layout);const d=this.core.xySettings();this.grid.createGridMask();const u=this.core.plotChartType(s,d),p=new E$e(this.w,this);p.bringForward(),a.config.dataLabels.background.enabled&&p.dataLabelsBackground(),this.core.shiftGraphPosition(),a.globals.dataPoints>50&&a.dom.elWrap.classList.add("apexcharts-disable-transitions");return{elGraph:u,xyRatios:d,dimensions:{plot:{left:a.layout.translateX,top:a.layout.translateY,width:a.layout.gridWidth,height:a.layout.gridHeight}}}}mount(e=null){const t=this,i=t.w;return new Promise((a,n)=>{var s,o,r,l,c,d,u,p,h;if(null===t.el)return n(new Error("Not enough data to display or target element not found"));(null===e||i.globals.allSeriesCollapsed)&&t.series.handleNoData(),t.grid=new R$e(t.w,t);const f=t.grid.drawGrid(),g=zVe._featureRegistry.get("annotations");if(t.annotations=g?new g(t.w,{theme:t.theme,timeScale:t.timeScale}):null,null==(s=t.annotations)||s.drawImageAnnos(),null==(o=t.annotations)||o.drawTextAnnos(),"back"===i.config.grid.position&&(f&&i.dom.elGraphical.add(f.el),(null==(r=null==f?void 0:f.elGridBorders)?void 0:r.node)&&i.dom.elGraphical.add(f.elGridBorders)),Array.isArray(e.elGraph))for(let t=0;t<e.elGraph.length;t++)i.dom.elGraphical.add(e.elGraph[t]);else i.dom.elGraphical.add(e.elGraph);"front"===i.config.grid.position&&(f&&i.dom.elGraphical.add(f.el),(null==(l=null==f?void 0:f.elGridBorders)?void 0:l.node)&&i.dom.elGraphical.add(f.elGridBorders)),"front"===i.config.xaxis.crosshairs.position&&t.crosshairs.drawXCrosshairs(),"front"===i.config.yaxis[0].crosshairs.position&&t.crosshairs.drawYCrosshairs(),"treemap"!==i.config.chart.type&&t.axes.drawAxis(i.config.chart.type,f);const m=new A$e(this.w,this.ctx,f),_=new O$e(this.w,{theme:this.theme,timeScale:this.timeScale},f);if(null!==f&&(m.xAxisLabelCorrections(),_.setYAxisTextAlignments(),i.config.yaxis.map((e,t)=>{-1===i.globals.ignoreYAxisIndexes.indexOf(t)&&_.yAxisTitleRotate(t,e.opposite)})),null==(c=t.annotations)||c.drawAxesAnnotations(),!i.globals.noData){if(UBe.isBrowser()&&i.config.tooltip.enabled&&!i.globals.noData&&(null==(d=t.w.globals.tooltip)||d.drawTooltip(e.xyRatios)),i.config.chart.accessibility.enabled&&i.config.chart.accessibility.keyboard.enabled&&i.config.chart.accessibility.keyboard.navigation.enabled&&(null==(u=t.keyboardNavigation)||u.init()),UBe.isBrowser()&&i.globals.axisCharts&&(i.axisFlags.isXNumeric||i.config.xaxis.convertedCatToNumeric||i.axisFlags.isRangeBar))(i.config.chart.zoom.enabled||i.config.chart.selection&&i.config.chart.selection.enabled||i.config.chart.pan&&i.config.chart.pan.enabled)&&(null==(p=t.zoomPanSelection)||p.init({xyRatios:e.xyRatios}));else{const e=i.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(t=>{e[t]=!1})}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&(null==(h=t.toolbar)||h.createToolbar())}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach(e=>{e.method(e.params,!1,e.context)}),i.globals.axisCharts||i.globals.noData||t.core.resizeNonAxisCharts(),a(t)})}destroy(){UBe.isBrowser()&&(window.removeEventListener("resize",this.windowResizeHandler),function(e,t){if(UBe.isSSR())return;const i=GVe.get(t);i&&(i.disconnect(),GVe.delete(t))}(this.el.parentNode,this.parentResizeHandler));const e=this.w.config.chart.id;e&&Apex._chartInstances.forEach((t,i)=>{t.id===KBe.escapeString(e)&&Apex._chartInstances.splice(i,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),new YVe(this.ctx).clear({isUpdating:!1})}updateOptions(e,t=!1,i=!0,a=!0,n=!0){const s=this.w;if(s.interact.selection=void 0,this.lastUpdateOptions){if(KBe.shallowEqual(this.lastUpdateOptions,e))return Promise.resolve(this);if(e.series&&this.lastUpdateOptions.series&&JSON.stringify(this.lastUpdateOptions.series)===JSON.stringify(e.series)){const t=BBe({},e),i=BBe({},this.lastUpdateOptions);if(delete t.series,delete i.series,KBe.shallowEqual(t,i))return Promise.resolve(this)}}return e.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((e,t)=>this.updateHelpers._extendSeries(e,t))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),s.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,t,i,a,n)}updateSeries(e=[],t=!0,i=!0){return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}appendSeries(e,t=!0,i=!0){this.data.resetParsingFlags();const a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}appendData(e,t=!0){const i=this;i.data.resetParsingFlags(),i.w.globals.dataChanged=!0,i.series.getPreviousPaths();const a=i.w.config.series.slice();for(let n=0;n<a.length;n++)if(null!==e[n]&&void 0!==e[n]){const t=e[n],i=a[n];for(let e=0;e<t.data.length;e++)i.data.push(t.data[e])}return i.w.config.series=a,t&&(i.w.globals.initialSeries=KBe.clone(i.w.config.series)),this.update()}update(e){return new Promise((t,i)=>{if(this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e))return t(this);this.lastUpdateOptions=KBe.clone(e),new YVe(this.ctx).clear({isUpdating:!0});const a=this.create(this.w.config.series,null!=e?e:{});if(!a)return t(this);this.mount(a).then(()=>{"function"==typeof this.w.config.chart.events.updated&&this.w.config.chart.events.updated(this,this.w),this.events.fireEvent("updated",[this,this.w]),this.w.globals.isDirty=!0,t(this)}).catch(e=>{i(e)})})}fastUpdate(e){return new Promise((t,i)=>{var a;try{const i=this.w,n=i.globals;n.shouldAnimate=e,n.dataChanged=!0,n.animationEnded=!1,k$e.invalidateSelectors(i);const s=i.globals;s.maxY=-Number.MAX_VALUE,s.minY=Number.MIN_VALUE,s.minYArr=[],s.maxYArr=[],s.maxX=-Number.MAX_VALUE,s.minX=Number.MAX_VALUE,s.initialMaxX=-Number.MAX_VALUE,s.initialMinX=Number.MAX_VALUE,s.yAxisScale=[],s.xAxisScale=null,s.xAxisTicksPositions=[],s.xRange=0,s.yRange=[],s.zRange=0,s.xTickAmount=0,s.multiAxisTickAmount=0,s.pointsArray=[],s.dataLabelsRects=[],s.lastDrawnDataLabelsIndexes=[],s.textRectsCache=new Map,s.domCache=new Map,s.cachedSelectors={},s.disableZoomIn=!1,s.disableZoomOut=!1,n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters());const o=this.core.xySettings(),r=i.dom.elGraphical.node;r.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background").forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)});const l=this.core.plotChartType(i.config.series,o),c=r.querySelector(".apexcharts-grid"),d=Array.isArray(l)?l:[l];c&&"front"===i.config.grid.position?d.forEach(e=>{const t=e&&e.node?e.node:e;t&&r.insertBefore(t,c)}):d.forEach(e=>{i.dom.elGraphical.add(e)});const u=new E$e(i,this);u.bringForward(),i.config.dataLabels.background.enabled&&u.dataLabelsBackground(),UBe.isBrowser()&&i.config.tooltip.enabled&&!n.noData&&(null==(a=i.globals.tooltip)||a.drawTooltip(o)),"function"==typeof i.config.chart.events.updated&&i.config.chart.events.updated(this,i),this.events.fireEvent("updated",[this,i]),n.isDirty=!0,t(this)}catch(NO){i(NO)}})}getSyncedCharts(){const e=this.getGroupedCharts();let t=[this];return e.length&&(t=[],e.forEach(e=>{t.push(e)})),t}getGroupedCharts(){return Apex._chartInstances.filter(e=>{if(e.group)return!0}).map(e=>this.w.config.chart.group===e.group?e.chart:this)}static getChartByID(e){const t=KBe.escapeString(e);if(!Apex._chartInstances)return;const i=Apex._chartInstances.filter(e=>e.id===t)[0];return i&&i.chart}static initOnLoad(){var e;const t=document.querySelectorAll("[data-apexcharts]");for(let i=0;i<t.length;i++){const a=t[i],n=JSON.parse(null!=(e=t[i].getAttribute("data-options"))?e:"");new WVe(a,n).render()}}static exec(e,t,...i){const a=this.getChartByID(e);if(!a)return;a.w.globals.isExecCalled=!0;let n=null;return-1!==a.publicMethods.indexOf(t)&&(n=a[t](...i)),n}static merge(e,t){return KBe.extend(e,t)}static getThemePalettes(){return{palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}static use(e){!function(e){Object.assign(nVe(),e)}(e)}static registerFeatures(e){zVe.registerFeatures(e)}toggleSeries(e){return this.series.toggleSeries(e)}highlightSeriesOnLegendHover(e,t){return this.series.toggleSeriesOnHover(e,t)}showSeries(e){this.series.showSeries(e)}hideSeries(e){this.series.hideSeries(e)}highlightSeries(e){this.series.highlightSeries(e)}isSeriesHidden(e){return this.series.isSeriesHidden(e)}resetSeries(e=!0,t=!0){this.series.resetSeries(e,t)}addEventListener(e,t){this.events.addEventListener(e,t)}removeEventListener(e,t){this.events.removeEventListener(e,t)}addXaxisAnnotation(e,t=!0,i=void 0){var a;let n=this;i&&(n=i),null==(a=n.annotations)||a.addXaxisAnnotationExternal(e,t,n)}addYaxisAnnotation(e,t=!0,i=void 0){var a;let n=this;i&&(n=i),null==(a=n.annotations)||a.addYaxisAnnotationExternal(e,t,n)}addPointAnnotation(e,t=!0,i=void 0){var a;let n=this;i&&(n=i),null==(a=n.annotations)||a.addPointAnnotationExternal(e,t,n)}clearAnnotations(e=void 0){var t;let i=this;e&&(i=e),null==(t=i.annotations)||t.clearAnnotations(i)}removeAnnotation(e,t=void 0){var i;let a=this;t&&(a=t),null==(i=a.annotations)||i.removeAnnotation(a,e)}getChartArea(){return this.w.dom.baseEl.querySelector(".apexcharts-inner")}getSeriesTotalXRange(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}getHighestValueInSeries(e=0){return new D$e(this.w).getMinYMaxY(e).highestY}getLowestValueInSeries(e=0){return new D$e(this.w).getMinYMaxY(e).lowestY}getSeriesTotal(){return this.w.globals.seriesTotals}getState(){const e=this.w,t=e.globals;return{series:e.seriesData.series,seriesNames:e.seriesData.seriesNames,colors:t.colors,labels:e.labelData.labels,seriesTotals:t.seriesTotals,seriesPercent:t.seriesPercent,seriesXvalues:t.seriesXvalues,seriesYvalues:t.seriesYvalues,minX:t.minX,maxX:t.maxX,minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,minXDiff:t.minXDiff,dataPoints:t.dataPoints,xAxisScale:t.xAxisScale,yAxisScale:t.yAxisScale,xTickAmount:t.xTickAmount,isXNumeric:e.axisFlags.isXNumeric,seriesYAxisMap:t.seriesYAxisMap,seriesYAxisReverseMap:t.seriesYAxisReverseMap,svgWidth:t.svgWidth,svgHeight:t.svgHeight,gridWidth:e.layout.gridWidth,gridHeight:e.layout.gridHeight,selectedDataPoints:e.interact.selectedDataPoints,collapsedSeriesIndices:t.collapsedSeriesIndices,zoomed:e.interact.zoomed,seriesX:e.seriesData.seriesX,seriesZ:e.seriesData.seriesZ,seriesCandleO:e.candleData.seriesCandleO,seriesCandleH:e.candleData.seriesCandleH,seriesCandleM:e.candleData.seriesCandleM,seriesCandleL:e.candleData.seriesCandleL,seriesCandleC:e.candleData.seriesCandleC,seriesRangeStart:e.rangeData.seriesRangeStart,seriesRangeEnd:e.rangeData.seriesRangeEnd,seriesGoals:e.seriesData.seriesGoals}}toggleDataPointSelection(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}zoomX(e,t){var i;null==(i=this.ctx.toolbar)||i.zoomUpdateOptions(e,t)}setLocale(e){this.localization.setCurrentLocaleValues(e)}dataURI(e){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.dataURI(e)}getSvgString(e){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.getSvgString(e)}exportToCSV(e={}){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.exportToCSV(e)}paper(){return this.w.dom.Paper}_writeParsedSeriesData(e){Object.assign(this.w.seriesData,e)}_writeParsedRangeData(e){Object.assign(this.w.rangeData,e)}_writeParsedCandleData(e){Object.assign(this.w.candleData,e)}_writeParsedLabelData(e){Object.assign(this.w.labelData,e)}_writeParsedAxisFlags(e){Object.assign(this.w.axisFlags,e)}_writeLayoutCoords(e){Object.assign(this.w.layout,e)}_parentResizeCallback(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}_windowResize(){this.w.globals.resizeTimer=window.setTimeout(()=>{this.w.globals.resized=!0,this.w.globals.dataChanged=!1,this.ctx.update()},150)}_windowResizeHandler(){var e;clearTimeout(null!=(e=this.w.globals.resizeTimer)?e:void 0);let{redrawOnWindowResize:t}=this.w.config.chart;"function"==typeof t&&(t=t()),t&&this._windowResize()}}const jVe=".apexcharts-flip-y {\n transform: scaleY(-1) translateY(-100%);\n transform-origin: top;\n transform-box: fill-box;\n}\n.apexcharts-flip-x {\n transform: scaleX(-1);\n transform-origin: center;\n transform-box: fill-box;\n}\n.apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n}\n.apexcharts-legend.apexcharts-legend-group-horizontal {\n flex-direction: column;\n}\n.apexcharts-legend-group {\n display: flex;\n}\n.apexcharts-legend-group-vertical {\n flex-direction: column-reverse;\n}\n.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n}\n.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n align-items: flex-start;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n align-items: center;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n align-items: flex-end;\n}\n.apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n}\n.apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n}\n.apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n}\n.apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n}\n\n.apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n}\n.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n}\n.apexcharts-inactive-legend {\n opacity: 0.45;\n} ";class qVe{constructor(e,t){this.w=e,this.ctx=t}svgStringToNode(e){return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement}scaleSvgNode(e,t){const i=parseFloat(e.getAttributeNS(null,"width")),a=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",a*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}getSvgString(e){return new Promise(t=>{const i=this.w;let a=e||i.config.chart.toolbar.export.scale||i.config.chart.toolbar.export.width/i.globals.svgWidth;a||(a=1);const n=i.globals.svgWidth*a,s=i.globals.svgHeight*a,o=i.dom.elWrap.cloneNode(!0);o.style.width=n+"px",o.style.height=s+"px";const r=(new XMLSerializer).serializeToString(o);let l="\n .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {\n display: none;\n }\n ";i.config.legend.show&&i.dom.elLegendWrap&&i.dom.elLegendWrap.children.length>0&&(l+=jVe);let c=`\n <svg xmlns="http://www.w3.org/2000/svg"\n version="1.1"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n class="apexcharts-svg"\n xmlns:data="ApexChartsNS"\n transform="translate(0, 0)"\n width="${i.globals.svgWidth}px" height="${i.globals.svgHeight}px">\n <foreignObject width="100%" height="100%">\n <div xmlns="http://www.w3.org/1999/xhtml" style="width:${n}px; height:${s}px;">\n <style type="text/css">\n ${l}\n </style>\n ${r}\n </div>\n </foreignObject>\n </svg>\n `;const d=this.svgStringToNode(c);1!==a&&this.scaleSvgNode(d,a),this.convertImagesToBase64(d).then(()=>{c=(new XMLSerializer).serializeToString(d),t(c.replace(/&nbsp;/g,"&#160;"))})})}convertImagesToBase64(e){const t=e.getElementsByTagName("image"),i=Array.from(t).map(e=>{const t=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return t&&!t.startsWith("data:")?this.getBase64FromUrl(t).then(t=>{e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}).catch(e=>{}):Promise.resolve()});return Promise.all(i)}getBase64FromUrl(e){return UBe.isSSR()?Promise.resolve(e):new Promise((t,i)=>{const a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{const e=document.createElement("canvas");e.width=a.width,e.height=a.height;const i=e.getContext("2d");i&&i.drawImage(a,0,0),t(e.toDataURL())},a.onerror=i,a.src=e})}svgUrl(){return new Promise(e=>{this.getSvgString().then(t=>{const i=new Blob([t],{type:"image/svg+xml;charset=utf-8"});e(URL.createObjectURL(i))})})}dataURI(e){return UBe.isSSR()?Promise.resolve({imgURI:""}):new Promise(t=>{const i=this.w,a=e?e.scale||e.width/i.globals.svgWidth:1,n=document.createElement("canvas");n.width=i.globals.svgWidth*a,n.height=parseInt(i.dom.elWrap.style.height,10)*a;const s="transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",o=n.getContext("2d");o&&(o.fillStyle=s,o.fillRect(0,0,n.width*a,n.height*a),this.getSvgString(a).then(e=>{const i="data:image/svg+xml,"+encodeURIComponent(e),a=new Image;a.crossOrigin="anonymous",a.onload=()=>{o.drawImage(a,0,0);const e=n;if(e.msToBlob){const i=e.msToBlob();t({blob:i})}else{const e=n.toDataURL("image/png");t({imgURI:e})}},a.src=i}))})}exportToSVG(){this.svgUrl().then(e=>{this.triggerDownload(e,this.w.config.chart.toolbar.export.svg.filename,".svg")})}exportToPng(){const e=this.w.config.chart.toolbar.export.scale,t=this.w.config.chart.toolbar.export.width,i=e?{scale:e}:t?{width:t}:void 0;this.dataURI(i).then(({imgURI:e,blob:t})=>{t?navigator.msSaveOrOpenBlob(t,this.w.globals.chartID+".png"):this.triggerDownload(e,this.w.config.chart.toolbar.export.png.filename,".png")})}exportToCSV({series:e,fileName:t,columnDelimiter:i=",",lineDelimiter:a="\n"}){const n=this.w;e||(e=n.config.series);let s=[];const o=[];let r="";const l=n.seriesData.series.map((e,t)=>-1===n.globals.collapsedSeriesIndices.indexOf(t)?e:[]),c=e=>"function"==typeof n.config.chart.toolbar.export.csv.categoryFormatter?n.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===n.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():KBe.isNumber(e)?e:e.split(i).join(""),d=e=>"function"==typeof n.config.chart.toolbar.export.csv.valueFormatter?n.config.chart.toolbar.export.csv.valueFormatter(e):e,u=Math.max(...e.map(e=>e.data?e.data.length:0)),p=new rVe(this.w),h=new T$e(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale}),f=e=>{let t="";if(n.globals.axisCharts){if("category"===n.config.xaxis.type||n.config.xaxis.convertedCatToNumeric)if(n.globals.isBarHorizontal){const i=n.formatters.yLabelFormatters[0],a=new $$e(this.ctx.w).getActiveConfigSeriesIndex();t=i(n.labelData.labels[e],{seriesIndex:a,dataPointIndex:e,w:n})}else t=h.getLabel(n.labelData.labels,n.labelData.timescaleLabels,0,e).text;"datetime"===n.config.xaxis.type&&(n.config.xaxis.categories.length?t=n.config.xaxis.categories[e]:n.config.labels.length&&(t=n.config.labels[e]))}else t=n.config.labels[e];return null===t?"nullvalue":(Array.isArray(t)&&(t=t.join(" ")),KBe.isNumber(t)?t:t.split(i).join(""))},g=(t,a)=>{var r;if(s.length&&0===a&&o.push(s.join(i)),t.data){t.data=t.data.length&&t.data||[...Array(u)].map(()=>"");for(let u=0;u<t.data.length;u++){s=[];let h=f(u);if("nullvalue"!==h){if(h||(p.isFormatXY()?h=e[a].data[u].x:p.isFormat2DArray()&&(h=e[a].data[u]?e[a].data[u][0]:"")),0===a){s.push(c(h));for(let t=0;t<n.seriesData.series.length;t++){const i=p.isFormatXY()?null==(r=e[t].data[u])?void 0:r.y:l[t][u];s.push(d(i))}}("candlestick"===n.config.chart.type||t.type&&"candlestick"===t.type)&&(s.pop(),s.push(n.candleData.seriesCandleO[a][u]),s.push(n.candleData.seriesCandleH[a][u]),s.push(n.candleData.seriesCandleL[a][u]),s.push(n.candleData.seriesCandleC[a][u])),("boxPlot"===n.config.chart.type||t.type&&"boxPlot"===t.type)&&(s.pop(),s.push(n.candleData.seriesCandleO[a][u]),s.push(n.candleData.seriesCandleH[a][u]),s.push(n.candleData.seriesCandleM[a][u]),s.push(n.candleData.seriesCandleL[a][u]),s.push(n.candleData.seriesCandleC[a][u])),"rangeBar"===n.config.chart.type&&(s.pop(),s.push(n.rangeData.seriesRangeStart[a][u]),s.push(n.rangeData.seriesRangeEnd[a][u])),s.length&&o.push(s.join(i))}}}};s.push(n.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===n.config.chart.type?(s.push("minimum"),s.push("q1"),s.push("median"),s.push("q3"),s.push("maximum")):"candlestick"===n.config.chart.type?(s.push("open"),s.push("high"),s.push("low"),s.push("close")):"rangeBar"===n.config.chart.type?(s.push("minimum"),s.push("maximum")):e.map((e,t)=>{const a=(e.name?e.name:`series-${t}`)+"";n.globals.axisCharts&&s.push(a.split(i).join("")?a.split(i).join(""):`series-${t}`)}),n.globals.axisCharts||(s.push(n.config.chart.toolbar.export.csv.headerValue),o.push(s.join(i))),n.globals.allSeriesHasEqualX||!n.globals.axisCharts||n.config.xaxis.categories.length||n.config.labels.length?e.map((e,t)=>{n.globals.axisCharts?g(e,t):(s=[],s.push(c(n.labelData.labels[t])),s.push(d(l[t])),o.push(s.join(i)))}):(()=>{const t=new Set,a={};e.forEach((i,n)=>{null==i||i.data.forEach(i=>{let s,o;if(p.isFormatXY())s=i.x,o=i.y;else{if(!p.isFormat2DArray())return;s=i[0],o=i[1]}a[s]||(a[s]=Array(e.length).fill("")),a[s][n]=d(o),t.add(s)})}),s.length&&o.push(s.join(i)),Array.from(t).sort().forEach(e=>{o.push([c(e),a[e].join(i)])})})(),r+=o.join(a),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+r),t||n.config.chart.toolbar.export.csv.filename,".csv")}triggerDownload(e,t,i){if(UBe.isSSR())return;const a=document.createElement("a");a.href=e,a.download=(t||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}WVe.registerFeatures({exports:qVe});let KVe=class{constructor(e){this.w=e.w,this.lgCtx=e}getLegendStyles(){if(UBe.isSSR())return null;const e=document.createElement("style");e.setAttribute("type","text/css");const t=this.w.config.chart.nonce;t&&e.setAttribute("nonce",t);const i=document.createTextNode(jVe);return e.appendChild(i),e}getLegendDimensions(){const e=this.w.dom.baseEl.querySelector(".apexcharts-legend");if(!e)return{clwh:0,clww:0};const{width:t,height:i}=e.getBoundingClientRect();return{clwh:i,clww:t}}appendToForeignObject(){var e;const t=this.getLegendStyles();!1!==this.w.config.chart.injectStyleSheet&&t&&(null==(e=this.w.dom.elLegendForeign)||e.appendChild(t))}toggleDataSeries(e,t){var i,a;const n=this.w;if(n.globals.axisCharts||"radialBar"===n.config.chart.type){n.globals.resized=!0;let s=null,o=null;if(n.globals.risingSeries=[],n.globals.axisCharts){if(s=n.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`),!s)return;o=parseInt(null!=(i=s.getAttribute("data:realIndex"))?i:"",10)}else{if(s=n.dom.baseEl.querySelector(`.apexcharts-series[rel='${e+1}']`),!s)return;o=parseInt(null!=(a=s.getAttribute("rel"))?a:"",10)-1}if(t){[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach(e=>{const t=e.cs,i=e.csi;this.riseCollapsedSeries(t,i,o)})}else this.hideSeries({seriesEl:s,realIndex:o});if(n.config.chart.accessibility.enabled){const t=n.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(t){const i=n.globals.collapsedSeriesIndices.includes(o)||n.globals.ancillaryCollapsedSeriesIndices.includes(o);t.setAttribute("aria-pressed",i?"true":"false");const a=t.querySelector(".apexcharts-legend-text"),s=a?a.textContent:n.seriesData.seriesNames[e],r=i?"hidden":"visible";t.setAttribute("aria-label",`${s}, ${r}. Press Enter or Space to toggle.`)}}}else{const t=n.dom.Paper.findOne(` .apexcharts-series[rel='${e+1}'] path`),i=n.config.chart.type;if("pie"===i||"polarArea"===i||"donut"===i){const e=n.config.plotOptions.pie.donut.labels;new _$e(this.w).pathMouseDown(t,null),this.lgCtx.printDataLabelsInner(t.node,e)}if(n.config.chart.accessibility.enabled){const t=n.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(t){const i=n.globals.collapsedSeriesIndices.includes(e);t.setAttribute("aria-pressed",i?"true":"false");const a=t.querySelector(".apexcharts-legend-text"),s=a?a.textContent:n.seriesData.seriesNames[e],o=i?"hidden":"visible";t.setAttribute("aria-label",`${s}, ${o}. Press Enter or Space to toggle.`)}}}}getSeriesAfterCollapsing({realIndex:e}){var t;const i=this.w,a=i.globals,n=KBe.clone(i.config.series);if(a.axisCharts){const t=i.config.yaxis[a.seriesYAxisReverseMap[e]],s={index:e,data:n[e].data.slice(),type:n[e].type||i.config.chart.type};if(t&&t.show&&t.showAlways)a.ancillaryCollapsedSeriesIndices.indexOf(e)<0&&(a.ancillaryCollapsedSeries.push(s),a.ancillaryCollapsedSeriesIndices.push(e));else if(a.collapsedSeriesIndices.indexOf(e)<0){a.collapsedSeries.push(s),a.collapsedSeriesIndices.push(e);const t=a.risingSeries.indexOf(e);a.risingSeries.splice(t,1)}}else a.collapsedSeries.push({index:e,data:n[e],type:null!=(t=i.config.series[e].type)?t:"line"}),a.collapsedSeriesIndices.push(e);return a.allSeriesCollapsed=a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===i.config.series.length,this._getSeriesBasedOnCollapsedState(n)}hideSeries({seriesEl:e,realIndex:t}){const i=this.w,a=this.getSeriesAfterCollapsing({realIndex:t}),n=e.childNodes;for(let s=0;s<n.length;s++)n[s].classList.contains("apexcharts-series-markers-wrap")&&(n[s].classList.contains("apexcharts-hide")?n[s].classList.remove("apexcharts-hide"):n[s].classList.add("apexcharts-hide"));this.lgCtx.updateSeries(a,i.config.chart.animations.dynamicAnimation.enabled)}riseCollapsedSeries(e,t,i){const a=this.w;let n=KBe.clone(a.config.series);if(e.length>0){for(let s=0;s<e.length;s++)e[s].index===i&&(a.globals.axisCharts?n[i].data=e[s].data.slice():n[i]=e[s].data,"number"!=typeof n[i]&&(n[i].hidden=!1),e.splice(s,1),t.splice(s,1),a.globals.risingSeries.push(i),s--);n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.updateSeries(n,a.config.chart.animations.dynamicAnimation.enabled)}}_getSeriesBasedOnCollapsedState(e){const t=this.w;let i=0;return t.globals.axisCharts?e.forEach((a,n)=>{t.globals.collapsedSeriesIndices.indexOf(n)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(n)<0||(e[n].data=[],i++)}):e.forEach((a,n)=>{t.globals.collapsedSeriesIndices.indexOf(n)<0||(e[n]=0,i++)}),t.globals.allSeriesCollapsed=i===e.length,e}};WVe.registerFeatures({legend:class{constructor(e,t){this.w=e,this.ctx=t,this.printDataLabelsInner=(...e)=>{var i;return null==(i=t.pie)?void 0:i.printDataLabelsInner(...e)},this.updateSeries=(...e)=>t.updateHelpers._updateSeries(...e),this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new KVe(this)}init(){const e=this.w,t=e.globals,i=e.config,a=i.legend.showForSingleSeries&&1===this.w.seriesData.series.length||this.isBarsDistributed||this.w.seriesData.series.length>1;if(this.legendHelpers.appendToForeignObject(),(a||!t.axisCharts)&&i.legend.show){const t=e.dom.elLegendWrap;for(;t.firstChild;)t.removeChild(t.firstChild);this.drawLegends(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}createLegendMarker({i:e,fillcolor:t}){const i=this.w,a=qBe.createElement("span");a.classList.add("apexcharts-legend-marker");const n=i.config.legend.markers.shape||i.config.markers.shape;let s=n;Array.isArray(n)&&(s=n[e]);const o=Array.isArray(i.config.legend.markers.size)?parseFloat(i.config.legend.markers.size[e]):parseFloat(i.config.legend.markers.size),r=Array.isArray(i.config.legend.markers.offsetX)?parseFloat(i.config.legend.markers.offsetX[e]):parseFloat(i.config.legend.markers.offsetX),l=Array.isArray(i.config.legend.markers.offsetY)?parseFloat(i.config.legend.markers.offsetY[e]):parseFloat(i.config.legend.markers.offsetY),c=Array.isArray(i.config.legend.markers.strokeWidth)?parseFloat(i.config.legend.markers.strokeWidth[e]):parseFloat(i.config.legend.markers.strokeWidth),d=a.style;if(d.height=2*(o+c)+"px",d.width=2*(o+c)+"px",d.left=r+"px",d.top=l+"px",i.config.legend.markers.customHTML)d.background="transparent",d.color=t[e],Array.isArray(i.config.legend.markers.customHTML)?i.config.legend.markers.customHTML[e]&&(a.innerHTML=i.config.legend.markers.customHTML[e]()):a.innerHTML=i.config.legend.markers.customHTML();else{const n=new w$e(this.ctx.w,this.ctx).getMarkerConfig({cssClass:`apexcharts-legend-marker apexcharts-marker apexcharts-marker-${s}`,seriesIndex:e,strokeWidth:c,size:o}),r=(UBe.isBrowser()?window.SVG:global.SVG)().addTo(a).size("100%","100%"),l=new _$e(this.w).drawMarker(0,0,$Be(BBe({},n),{pointFillColor:Array.isArray(t)?t[e]:n.pointFillColor,shape:s}));i.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(e=>{e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"}),r.add(l)}return a}drawLegends(){var e;const t=this,i=this.w,a=i.dom.elLegendWrap,n=i.config.legend.fontFamily;let s=i.seriesData.seriesNames,o=i.config.legend.markers.fillColors?i.config.legend.markers.fillColors.slice():i.globals.colors.slice();if("heatmap"===i.config.chart.type){const e=i.config.plotOptions.heatmap.colorScale.ranges;s=e.map(e=>e.name?e.name:e.from+" - "+e.to),o=e.map(e=>e.color)}else this.isBarsDistributed&&(s=i.labelData.labels.slice());i.config.legend.customLegendItems.length&&(s=i.config.legend.customLegendItems);const r=i.formatters.legendFormatter,l=i.config.legend.inverseOrder,c=[];i.labelData.seriesGroups.length>1&&i.config.legend.clusterGroupedSeries&&i.labelData.seriesGroups.forEach((e,t)=>{c[t]=qBe.createElement("div"),c[t].classList.add("apexcharts-legend-group",`apexcharts-legend-group-${t}`),"horizontal"===i.config.legend.clusterGroupedSeriesOrientation?a.classList.add("apexcharts-legend-group-horizontal"):c[t].classList.add("apexcharts-legend-group-vertical")});for(let d=l?s.length-1:0;l?d>=0:d<=s.length-1;l?d--:d++){const t=r(s[d],{seriesIndex:d,w:i});let l=!1,u=!1;if(i.globals.collapsedSeries.length>0)for(let e=0;e<i.globals.collapsedSeries.length;e++)i.globals.collapsedSeries[e].index===d&&(l=!0);if(i.globals.ancillaryCollapsedSeriesIndices.length>0)for(let e=0;e<i.globals.ancillaryCollapsedSeriesIndices.length;e++)i.globals.ancillaryCollapsedSeriesIndices[e]===d&&(u=!0);const p=this.createLegendMarker({i:d,fillcolor:o});_$e.setAttrs(p,{rel:d+1,"data:collapsed":l||u}),(l||u)&&p.classList.add("apexcharts-inactive-legend");const h=qBe.createElement("div");if(i.config.chart.accessibility.enabled&&i.config.chart.accessibility.keyboard.enabled){h.setAttribute("role","button"),h.setAttribute("tabindex","0");const e=Array.isArray(t)?t.join(" "):t,i=l||u,a=i?"hidden":"visible";h.setAttribute("aria-label",`${e}, ${a}. Press Enter or Space to toggle.`),h.setAttribute("aria-pressed",i?"true":"false")}const f=qBe.createElement("span");f.classList.add("apexcharts-legend-text"),f.innerHTML=Array.isArray(t)?t.join(" "):t;let g=i.config.legend.labels.useSeriesColors?i.globals.colors[d]:Array.isArray(i.config.legend.labels.colors)?null==(e=i.config.legend.labels.colors)?void 0:e[d]:i.config.legend.labels.colors;g||(g=i.config.chart.foreColor),f.style.color=g,f.style.fontSize=i.config.legend.fontSize,f.style.fontWeight=i.config.legend.fontWeight,f.style.fontFamily=n||i.config.chart.fontFamily,_$e.setAttrs(f,{rel:d+1,i:d,"data:default-text":encodeURIComponent(t),"data:collapsed":l||u}),h.appendChild(p),h.appendChild(f);const m=new l$e(this.w);if(!i.config.legend.showForZeroSeries){0===m.getSeriesTotalByIndex(d)&&m.seriesHaveSameValues(d)&&!m.isSeriesNull(d)&&-1===i.globals.collapsedSeriesIndices.indexOf(d)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(d)&&h.classList.add("apexcharts-hidden-zero-series")}i.config.legend.showForNullSeries||m.isSeriesNull(d)&&-1===i.globals.collapsedSeriesIndices.indexOf(d)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(d)&&h.classList.add("apexcharts-hidden-null-series"),c.length?i.labelData.seriesGroups.forEach((e,t)=>{var n,s;e.includes(null!=(s=null==(n=i.config.series[d])?void 0:n.name)?s:"")&&(a.appendChild(c[t]),c[t].appendChild(h))}):a.appendChild(h),a.classList.add(`apexcharts-align-${i.config.legend.horizontalAlign}`),a.classList.add("apx-legend-position-"+i.config.legend.position),h.classList.add("apexcharts-legend-series"),h.style.margin=`${i.config.legend.itemMargin.vertical}px ${i.config.legend.itemMargin.horizontal}px`,a.style.width=i.config.legend.width?i.config.legend.width+"px":"",a.style.height=i.config.legend.height?i.config.legend.height+"px":"",_$e.setAttrs(h,{rel:d+1,seriesName:KBe.escapeString(s[d]),"data:collapsed":l||u}),(l||u)&&h.classList.add("apexcharts-inactive-legend"),i.config.legend.onItemClick.toggleDataSeries||h.classList.add("apexcharts-no-click")}i.dom.elWrap.addEventListener("click",t.onLegendClick,!0),i.config.legend.onItemHover.highlightDataSeries&&0===i.config.legend.customLegendItems.length&&(i.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),i.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0)),i.config.chart.accessibility.enabled&&i.config.chart.accessibility.keyboard.enabled&&i.dom.elWrap.addEventListener("keydown",t.onLegendKeyDown.bind(t),!0)}setLegendWrapXY(e,t){const i=this.w,a=i.dom.elLegendWrap,n=a.clientHeight;let s=0,o=0;if("bottom"===i.config.legend.position)o=i.globals.svgHeight-Math.min(n,i.globals.svgHeight/2)-5;else if("top"===i.config.legend.position){const e=new W$e(this.w,this.ctx),t=e.dimHelpers.getTitleSubtitleCoords("title").height,i=e.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=(t>0?t-10:0)+(i>0?i-10:0)}a.style.position="absolute",s=s+e+i.config.legend.offsetX,o=o+t+i.config.legend.offsetY,a.style.left=s+"px",a.style.top=o+"px","right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px");["width","height"].forEach(e=>{a&&a.style[e]&&(a.style[e]=parseInt(String(i.config.legend[e]),10)+"px")})}legendAlignHorizontal(){const e=this.w;e.dom.elLegendWrap.style.right="0";const t=new W$e(this.w,this.ctx),i=t.dimHelpers.getTitleSubtitleCoords("title"),a=t.dimHelpers.getTitleSubtitleCoords("subtitle");let n=0;"top"===e.config.legend.position&&(n=i.height+a.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}legendAlignVertical(){const e=this.w,t=this.legendHelpers.getLegendDimensions();let i=0;"left"===e.config.legend.position&&(i=20),"right"===e.config.legend.position&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}onLegendHovered(e){var t;const i=this.w,a=e.target,n=a.classList.contains("apexcharts-legend-series")||a.classList.contains("apexcharts-legend-text")||a.classList.contains("apexcharts-legend-marker");if("heatmap"===i.config.chart.type||this.isBarsDistributed){if(n){const i=parseInt(null!=(t=a.getAttribute("rel"))?t:"0",10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]);new $$e(this.ctx.w).highlightRangeInSeries(e,a)}}else if(!a.classList.contains("apexcharts-inactive-legend")&&n){new $$e(this.ctx.w).toggleSeriesOnHover(e,a)}}onLegendKeyDown(e){const t=this,i=this.w,a=e.target;if((a.classList.contains("apexcharts-legend-series")||a.classList.contains("apexcharts-legend-text")||a.classList.contains("apexcharts-legend-marker"))&&("Enter"===e.key||" "===e.key)){e.preventDefault();const n=a.getAttribute("rel");t.onLegendClick(e),null!==n&&i.config.legend.onItemClick.toggleDataSeries&&requestAnimationFrame(()=>{const e=i.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${n}"]`);e&&e.focus()})}}onLegendClick(e){var t;const i=this.w,a=e.target;if(!i.config.legend.customLegendItems.length&&(a.classList.contains("apexcharts-legend-series")||a.classList.contains("apexcharts-legend-text")||a.classList.contains("apexcharts-legend-marker"))){const e=parseInt(null!=(t=a.getAttribute("rel"))?t:"0",10)-1,n="true"===a.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,e,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,e,this.w]);const o=this.w.config.legend.markers.onClick;"function"==typeof o&&a.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,e,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,e,this.w]));"treemap"!==i.config.chart.type&&"heatmap"!==i.config.chart.type&&!this.isBarsDistributed&&i.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(e,n)}}}});class XVe{constructor(e,t){this.w=e,this.ctx=t,this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX,this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null,this.elMenu=null,this.elMenuItems=[],this.t=null}createToolbar(){const e=this.w,t=()=>qBe.createElementNS("http://www.w3.org/1999/xhtml","div"),i=()=>{const e=qBe.createElementNS("http://www.w3.org/1999/xhtml","button");return e.setAttribute("type","button"),e},a=t();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=t(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(let r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(i());const n=[],s=(t,i,a)=>{const s=t.toLowerCase();this.t[s]&&e.config.chart.zoom.enabled&&n.push({el:i,icon:"string"==typeof this.t[s]?this.t[s]:a,title:this.localeValues[t],class:`apexcharts-${s}-icon`})};s("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12 5v14M5 12h14"/>\n</svg>\n'),s("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M5 12h14"/>\n</svg>\n');const o=t=>{this.t[t]&&e.config.chart[t].enabled&&n.push({el:"zoom"===t?this.elZoom:this.elSelection,icon:"string"==typeof this.t[t]?this.t[t]:"zoom"===t?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <circle cx="11" cy="11" r="7"/>\n <path d="m21 21-4.3-4.3M8 11h6M11 8v6"/>\n</svg>\n':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M5 3a2 2 0 0 0-2 2"/>\n <path d="M19 3a2 2 0 0 1 2 2"/>\n <path d="M21 19a2 2 0 0 1-2 2"/>\n <path d="M5 21a2 2 0 0 1-2-2"/>\n <path d="M9 3h1M14 3h1M9 21h1M14 21h1M3 9v1M3 14v1M21 9v1M21 14v1"/>\n</svg>\n',title:this.localeValues["zoom"===t?"selectionZoom":"selection"],class:`apexcharts-${t}-icon`})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&n.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M5 9 2 12l3 3"/>\n <path d="M9 5l3-3 3 3"/>\n <path d="M15 19l-3 3-3-3"/>\n <path d="M19 9l3 3-3 3"/>\n <path d="M2 12h20"/>\n <path d="M12 2v20"/>\n</svg>\n',title:this.localeValues.pan,class:"apexcharts-pan-icon"}),s("reset",this.elZoomReset,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 3H5a2 2 0 0 0-2 2v3"/>\n <path d="M21 8V5a2 2 0 0 0-2-2h-3"/>\n <path d="M3 16v3a2 2 0 0 0 2 2h3"/>\n <path d="M16 21h3a2 2 0 0 0 2-2v-3"/>\n</svg>\n'),this.t.download&&n.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4 6h16M4 12h16M4 18h16"/>\n</svg>\n',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(let r=0;r<this.elCustomIcons.length;r++)n.push({el:this.elCustomIcons[r],icon:this.t.customIcons[r].icon,title:this.t.customIcons[r].title,index:this.t.customIcons[r].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[r].class});n.forEach((e,t)=>{e.index&&KBe.moveIndexInArray(n,t,e.index)});for(let r=0;r<n.length;r++)_$e.setAttrs(n[r].el,{class:n[r].class,title:n[r].title,"aria-label":n[r].title}),n[r].el.innerHTML=n[r].icon,a.appendChild(n[r].el);this.elZoom.parentNode&&this.elZoom.setAttribute("aria-pressed",String(!!e.interact.zoomEnabled)),this.elSelection.parentNode&&this.elSelection.setAttribute("aria-pressed",String(!!e.interact.selectionEnabled)),this.elPan.parentNode&&this.elPan.setAttribute("aria-pressed",String(!!e.interact.panEnabled)),this.elMenuIcon.parentNode&&(this.elMenuIcon.setAttribute("aria-haspopup","true"),this.elMenuIcon.setAttribute("aria-expanded","false")),this._createHamburgerMenu(a),e.interact.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.interact.panEnabled?this.elPan.classList.add(this.selectedClass):e.interact.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}_createHamburgerMenu(e){this.elMenuItems=[],e.appendChild(this.elMenu),_$e.setAttrs(this.elMenu,{class:"apexcharts-menu",role:"menu"});const t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];for(let i=0;i<t.length;i++)this.elMenuItems.push(qBe.createElementNS("http://www.w3.org/1999/xhtml","div")),this.elMenuItems[i].innerHTML=t[i].title,_$e.setAttrs(this.elMenuItems[i],{class:`apexcharts-menu-item ${t[i].name}`,title:t[i].title,role:"menuitem",tabindex:"-1"}),this.elMenu.appendChild(this.elMenuItems[i])}addToolbarEventListeners(){var e,t,i,a,n,s,o,r;null==(e=this.elZoomReset)||e.addEventListener("click",this.handleZoomReset.bind(this)),null==(t=this.elSelection)||t.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),null==(i=this.elZoom)||i.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),null==(a=this.elZoomIn)||a.addEventListener("click",this.handleZoomIn.bind(this)),null==(n=this.elZoomOut)||n.addEventListener("click",this.handleZoomOut.bind(this)),null==(s=this.elPan)||s.addEventListener("click",this.togglePanning.bind(this)),null==(o=this.elMenuIcon)||o.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(e=>{e.classList.contains("exportSVG")?e.addEventListener("click",this.handleDownload.bind(this,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",this.handleDownload.bind(this,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",this.handleDownload.bind(this,"csv"))});for(let l=0;l<this.t.customIcons.length;l++)this.elCustomIcons[l].addEventListener("click",this.t.customIcons[l].click.bind(this,this.ctx,this.ctx.w));[this.elZoomReset,this.elSelection,this.elZoom,this.elZoomIn,this.elZoomOut,this.elPan,this.elMenuIcon,...this.elCustomIcons].forEach(e=>{e.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key){t.preventDefault();const i=e.className;e.click(),requestAnimationFrame(()=>{const e=this.w.dom.baseEl;if(!e)return;const t=i.split(" ").find(e=>e.startsWith("apexcharts-"));if(!t)return;const a=e.querySelector(`.${t}`);a&&a.focus()})}})}),null==(r=this.elMenuIcon)||r.addEventListener("keydown",e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),(null==(t=this.elMenu)?void 0:t.classList.contains("apexcharts-menu-open"))||this.toggleMenu(),window.setTimeout(()=>{const t="ArrowDown"===e.key?0:this.elMenuItems.length-1;this.elMenuItems[t]&&this.elMenuItems[t].focus()},20))}),this.elMenuItems.forEach((e,t)=>{e.addEventListener("keydown",i=>{var a;if("ArrowDown"===i.key){i.preventDefault();(this.elMenuItems[t+1]||this.elMenuItems[0]).focus()}else if("ArrowUp"===i.key){i.preventDefault();(this.elMenuItems[t-1]||this.elMenuItems[this.elMenuItems.length-1]).focus()}else"Escape"===i.key||"Tab"===i.key?(this._closeMenu(),null==(a=this.elMenuIcon)||a.focus(),"Tab"===i.key||i.preventDefault()):"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),e.click())})})}toggleZoomSelection(e){this.ctx.getSyncedCharts().forEach(t=>{t.ctx.toolbar.toggleOtherControls();const i="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,a="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[a]=!t.w.globals[a],i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass),i.setAttribute("aria-pressed",String(t.w.globals[a]))})}getToolbarIconsReference(){const e=this.w;this.elZoom||(this.elZoom=e.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.dom.baseEl.querySelector(".apexcharts-selection-icon"))}enableZoomPanFromToolbar(e){this.toggleOtherControls(),"pan"===e?this.w.interact.panEnabled=!0:this.w.interact.zoomEnabled=!0;const t="pan"===e?this.elPan:this.elZoom,i="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}togglePanning(){this.ctx.getSyncedCharts().forEach(e=>{e.ctx.toolbar.toggleOtherControls(),e.w.interact.panEnabled=!e.w.interact.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass),e.ctx.toolbar.elPan.setAttribute("aria-pressed",String(e.w.interact.panEnabled))})}toggleOtherControls(){const e=this.w;e.interact.panEnabled=!1,e.interact.zoomEnabled=!1,e.interact.selectionEnabled=!1,this.getToolbarIconsReference();[this.elPan,this.elSelection,this.elZoom].forEach(e=>{e&&e.classList.remove(this.selectedClass)})}_currentXRange(){const e=this.w;return e.axisFlags.isRangeBar?{minX:e.globals.minY,maxX:e.globals.maxY}:{minX:e.globals.minX,maxX:e.globals.maxX}}handleZoomIn(){const e=this.w,{minX:t,maxX:i}=this._currentXRange();this.minX=t,this.maxX=i;const a=(t+i)/2,n=(t+a)/2,s=(i+a)/2,o=this._getNewMinXMaxX(n,s);e.interact.disableZoomIn||this.zoomUpdateOptions(o.minX,o.maxX)}handleZoomOut(){const e=this.w,{minX:t,maxX:i}=this._currentXRange();if(this.minX=t,this.maxX=i,"datetime"===e.config.xaxis.type&&new Date(t).getUTCFullYear()<1e3)return;const a=(t+i)/2,n=t-(a-t),s=i-(a-i),o=this._getNewMinXMaxX(n,s);e.interact.disableZoomOut||this.zoomUpdateOptions(o.minX,o.maxX)}_getNewMinXMaxX(e,t){const i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(e):e,maxX:i?Math.floor(t):t}}zoomUpdateOptions(e,t){const i=this.w;if(void 0===e&&void 0===t)return void this.handleZoomReset();if(i.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=i.globals.dataPoints),t-e<2))return;let a={min:e,max:t};const n=this.getBeforeZoomRange(a,void 0);n&&(a=n.xaxis);const s={xaxis:a};if(!i.globals.initialConfig)return;const o=KBe.clone(i.globals.initialConfig.yaxis);i.config.chart.group||(s.yaxis=o),this.w.interact.zoomed=!0,this.ctx.updateHelpers._updateOptions(s,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,o)}zoomCallback(e,t){"function"==typeof this.ev.zoomed&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent("zoomed",{xaxis:e,yaxis:t}))}getBeforeZoomRange(e,t){let i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),i}toggleMenu(){window.setTimeout(()=>{var e,t,i;(null==(e=this.elMenu)?void 0:e.classList.contains("apexcharts-menu-open"))?this._closeMenu():(null==(t=this.elMenu)||t.classList.add("apexcharts-menu-open"),null==(i=this.elMenuIcon)||i.setAttribute("aria-expanded","true"))},0)}_closeMenu(){var e,t;null==(e=this.elMenu)||e.classList.remove("apexcharts-menu-open"),null==(t=this.elMenuIcon)||t.setAttribute("aria-expanded","false")}handleDownload(e){const t=this.w,i=new qVe(this.w,this.ctx);switch(e){case"svg":i.exportToSVG();break;case"png":i.exportToPng();break;case"csv":i.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}handleZoomReset(){this.ctx.getSyncedCharts().forEach(e=>{const t=e.w;if(!t.interact.zoomed)return;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){const i=t.config.chart.events.beforeResetZoom(e,t);i&&e.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max});const i=e.ctx.series.emptyCollapsedSeries(KBe.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(i,t.config.chart.animations.dynamicAnimation.enabled),t.interact.zoomed=!1})}destroy(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}WVe.registerFeatures({toolbar:XVe,zoomPanSelection:class extends XVe{constructor(e,t){super(e,t),this.w=e,this.ctx=t,this.dragged=!1,this.graphics=new _$e(this.w),this.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],this.clientX=0,this.clientY=0,this.startX=0,this.endX=0,this.dragX=0,this.startY=0,this.endY=0,this.dragY=0,this.moveDirection="none",this.debounceTimer=null,this.debounceDelay=100,this.wheelDelay=400}init({xyRatios:e}){const t=this.w,i=this;this.xyRatios=e,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=t.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new x$e(0,0,t.layout.gridWidth,t.layout.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),t.dom.Paper.add(this.zoomRect),t.dom.Paper.add(this.selectionRect),"x"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:t.layout.gridWidth,maxY:t.layout.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):"y"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:t.layout.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=t.dom.baseEl.querySelector(`${t.globals.chartClass} .apexcharts-svg`),this.hoverArea&&(this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(t=>{var a;null==(a=this.hoverArea)||a.addEventListener(t,i.svgMouseEvents.bind(i,e),{capture:!1,passive:!0})}),t.config.chart.zoom.enabled&&t.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",i.mouseWheelEvent.bind(i),{capture:!1,passive:!1}))}destroy(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}svgMouseEvents(e,t){var i;const a=this.w,n=this.ctx.toolbar,s=a.interact.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type,o=a.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,n.enableZoomPanFromToolbar("pan"===o?"zoom":"pan")):this.shiftWasPressed&&(n.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1),!t.target)return;const r=t.target.classList;let l;t.target.parentNode&&null!==t.target.parentNode&&(l=t.target.parentNode.classList);if(!(r.contains("apexcharts-legend-marker")||r.contains("apexcharts-legend-text")||l&&l.contains("apexcharts-toolbar"))){if(this.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,this.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which||"touchstart"===t.type){const e=null==(i=this.gridRect)?void 0:i.getBoundingClientRect();if(!e)return;this.startX=this.clientX-e.left-a.globals.barPadForNumericAxis,this.startY=this.clientY-e.top,this.dragged=!1,this.w.interact.mousedown=!0}("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(this.dragged=!0,a.interact.panEnabled?(a.interact.selection=null,this.w.interact.mousedown&&this.panDragging({context:this,zoomtype:s,xyRatios:e})):(this.w.interact.mousedown&&a.interact.zoomEnabled||this.w.interact.mousedown&&a.interact.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:s}))),"mouseup"!==t.type&&"touchend"!==t.type&&"mouseleave"!==t.type||this.handleMouseUp({zoomtype:s}),this.makeSelectionRectDraggable()}}handleMouseUp({zoomtype:e,isResized:t}){var i;const a=this.w,n=null==(i=this.gridRect)?void 0:i.getBoundingClientRect();n&&(this.w.interact.mousedown||t)&&(this.endX=this.clientX-n.left-a.globals.barPadForNumericAxis,this.endY=this.clientY-n.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(a.interact.zoomEnabled||a.interact.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:e})),a.interact.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.interact.mousedown=!1}mouseWheelEvent(e){const t=this.w;e.preventDefault();const i=Date.now();i-t.interact.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),t.interact.lastWheelExecution=i),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{i-t.interact.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),t.interact.lastWheelExecution=i)},this.debounceDelay)}executeMouseWheelZoom(e){var t,i,a;const n=this.w;this.minX=n.axisFlags.isRangeBar?n.globals.minY:n.globals.minX,this.maxX=n.axisFlags.isRangeBar?n.globals.maxY:n.globals.maxX;const s=null==(t=this.gridRect)?void 0:t.getBoundingClientRect();if(!s)return;const o=(e.clientX-s.left)/s.width,r=this.minX,l=this.maxX,c=l-r;let d,u,p;if(e.deltaY<0){d=.5*c;const e=r+o*c;u=e-d/2,p=e+d/2}else d=1.5*c,u=r-d/2,p=l+d/2;if(!n.axisFlags.isRangeBar){const e=null!=(i=n.globals.dataReducerRawMinX)?i:n.globals.initialMinX,t=null!=(a=n.globals.dataReducerRawMaxX)?a:n.globals.initialMaxX;u=Math.max(u,e),p=Math.min(p,t);const s=.01*(t-e);if(p-u<s){const e=(u+p)/2;u=e-s/2,p=e+s/2}}const h=this._getNewMinXMaxX(u,p);isNaN(h.minX)||isNaN(h.maxX)||this.zoomUpdateOptions(h.minX,h.maxX)}makeSelectionRectDraggable(){const e=this.w;if(!this.selectionRect)return;const t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:()=>{},updateRot:()=>{},createHandle:(e,t,i,a,n)=>"l"===n||"r"===n?e.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):e.circle(0),updateHandle:(e,t)=>e.center(t[0],t[1])}).resize().on("resize",()=>{const t=e.interact.zoomEnabled?e.config.chart.zoom.type:e.config.chart.selection.type;this.handleMouseUp({zoomtype:t,isResized:!0})}))}preselectedSelection(){const e=this.w,t=this.xyRatios;if(!e.interact.zoomEnabled)if(void 0!==e.interact.selection&&null!==e.interact.selection)this.drawSelectionRect($Be(BBe({},e.interact.selection),{translateX:e.layout.translateX,translateY:e.layout.translateY}));else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){let i=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,a=e.layout.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-i;e.axisFlags.isRangeBar&&(i=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,a=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);const n={x:i,y:0,width:a,height:e.layout.gridHeight,translateX:e.layout.translateX,translateY:e.layout.translateY,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}drawSelectionRect({x:e,y:t,width:i,height:a,translateX:n=0,translateY:s=0}){const o=this.w,r=this.zoomRect,l=this.selectionRect;if(this.dragged||null!==o.interact.selection){const c={transform:"translate("+n+", "+s+")"};o.interact.zoomEnabled&&this.dragged&&(i<0&&(i=1),r.attr({x:e,y:t,width:i,height:a,fill:o.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":o.config.chart.zoom.zoomedArea.fill.opacity,stroke:o.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":o.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":o.config.chart.zoom.zoomedArea.stroke.opacity}),_$e.setAttrs(r.node,c)),o.interact.selectionEnabled&&(l.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,fill:o.config.chart.selection.fill.color,"fill-opacity":o.config.chart.selection.fill.opacity,stroke:o.config.chart.selection.stroke.color,"stroke-width":o.config.chart.selection.stroke.width,"stroke-dasharray":o.config.chart.selection.stroke.dashArray,"stroke-opacity":o.config.chart.selection.stroke.opacity}),_$e.setAttrs(l.node,c))}}hideSelectionRect(e){e&&e.attr({x:0,y:0,width:0,height:0})}selectionDrawing({context:e,zoomtype:t}){var i;const a=this.w,n=e,s=null==(i=this.gridRect)?void 0:i.getBoundingClientRect();if(!s)return;const o=n.startX-1,r=n.startY;let l=!1,c=!1;const d=n.clientX-s.left-a.globals.barPadForNumericAxis,u=n.clientY-s.top;let p=d-o,h=u-r,f={translateX:a.layout.translateX,translateY:a.layout.translateY};return Math.abs(p+o)>a.layout.gridWidth?p=a.layout.gridWidth-o:d<0&&(p=o),o>d&&(l=!0,p=Math.abs(p)),r>u&&(c=!0,h=Math.abs(h)),f="x"===t?{x:l?o-p:o,y:0,width:p,height:a.layout.gridHeight}:"y"===t?{x:0,y:c?r-h:r,width:a.layout.gridWidth,height:h}:{x:l?o-p:o,y:c?r-h:r,width:p,height:h},f=$Be(BBe({},f),{translateX:a.layout.translateX,translateY:a.layout.translateY}),n.drawSelectionRect(f),n.selectionDragging("resizing"),f}selectionDragging(e,t){var i;const a=this.w;if(!t)return;t.preventDefault();const{handler:n,box:s}=t.detail,o=this.constraints;let{x:r,y:l}=s;r<o.x&&(r=o.x),l<o.y&&(l=o.y),s.x2>o.x2&&(r=o.x2-s.w),s.y2>o.y2&&(l=o.y2-s.h),n.move(r,l);const c=this.xyRatios,d=this.selectionRect;let u=0;"resizing"===e&&(u=30);const p=e=>parseFloat(d.node.getAttribute(e)),h={x:p("x"),y:p("y"),width:p("width"),height:p("height")};a.interact.selection=h,"function"==typeof a.config.chart.events.selection&&a.interact.selectionEnabled&&(clearTimeout(null!=(i=this.w.globals.selectionResizeTimer)?i:void 0),this.w.globals.selectionResizeTimer=window.setTimeout(()=>{var e;const t=null==(e=this.gridRect)?void 0:e.getBoundingClientRect();if(!t)return;const i=d.node.getBoundingClientRect();let n,s,o,r;if(a.axisFlags.isRangeBar)n=a.globals.yAxisScale[0].niceMin+(i.left-t.left)*c.invertedYRatio,s=a.globals.yAxisScale[0].niceMin+(i.right-t.left)*c.invertedYRatio,o=0,r=1;else{if(!a.globals.xAxisScale)return;n=a.globals.xAxisScale.niceMin+(i.left-t.left)*c.xRatio,s=a.globals.xAxisScale.niceMin+(i.right-t.left)*c.xRatio,o=a.globals.yAxisScale[0].niceMin+(t.bottom-i.bottom)*c.yRatio[0],r=a.globals.yAxisScale[0].niceMax-(i.top-t.top)*c.yRatio[0]}const l={xaxis:{min:n,max:s},yaxis:{min:o,max:r}};a.config.chart.events.selection(this.ctx,l),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(this.ctx,l)},u))}selectionDrawn({context:e,zoomtype:t}){var i,a;const n=this.w,s=e,o=this.xyRatios,r=this.ctx.toolbar,l=n.interact.zoomEnabled?s.zoomRect.node.getBoundingClientRect():s.selectionRect.node.getBoundingClientRect(),c=s.gridRect.getBoundingClientRect(),d=l.left-c.left-n.globals.barPadForNumericAxis,u=l.right-c.left-n.globals.barPadForNumericAxis,p=l.top-c.top,h=l.bottom-c.top;let f,g;if(n.axisFlags.isRangeBar)f=n.globals.yAxisScale[0].niceMin+d*o.invertedYRatio,g=n.globals.yAxisScale[0].niceMin+u*o.invertedYRatio;else{const e=null!=(a=null==(i=n.globals.xAxisScale)?void 0:i.niceMin)?a:0;f=e+d*o.xRatio,g=e+u*o.xRatio}const m=[],_=[];if(n.config.yaxis.forEach((e,t)=>{const i=n.globals.seriesYAxisMap[t][0],a=n.globals.yAxisScale[t].niceMax-o.yRatio[i]*p,s=n.globals.yAxisScale[t].niceMax-o.yRatio[i]*h;m.push(a),_.push(s)}),s.dragged&&(s.dragX>10||s.dragY>10)&&f!==g)if(n.interact.zoomEnabled){if(!n.globals.initialConfig)return;let e=KBe.clone(n.globals.initialConfig.yaxis),i=KBe.clone(n.globals.initialConfig.xaxis);if(n.interact.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(f=Math.floor(f),g=Math.floor(g),f<1&&(f=1,g=n.globals.dataPoints),g-f<2&&(g=f+1)),"xy"!==t&&"x"!==t||(i={min:f,max:g}),"xy"!==t&&"y"!==t||e.forEach((t,i)=>{e[i].min=_[i],e[i].max=m[i]}),r){const t=r.getBeforeZoomRange(i,e);t&&(i=t.xaxis?t.xaxis:i,e=t.yaxis?t.yaxis:e)}const a={xaxis:i};n.config.chart.group||(a.yaxis=e),s.ctx.updateHelpers._updateOptions(a,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&r.zoomCallback(i,e)}else if(n.interact.selectionEnabled){let e=null,i=null;if(i={min:f,max:g},"xy"===t||"y"===t){const t=KBe.clone(n.config.yaxis);e=t,t.forEach((e,i)=>{t[i].min=_[i],t[i].max=m[i]})}n.interact.selection=s.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(s.ctx,{xaxis:i,yaxis:e})}}panDragging({context:e}){var t;const i=this.w,a=e;if(void 0!==i.interact.lastClientPosition.x){const e=i.interact.lastClientPosition.x-a.clientX,n=(null!=(t=i.interact.lastClientPosition.y)?t:0)-a.clientY;Math.abs(e)>Math.abs(n)&&e>0?this.moveDirection="left":Math.abs(e)>Math.abs(n)&&e<0?this.moveDirection="right":Math.abs(n)>Math.abs(e)&&n>0?this.moveDirection="up":Math.abs(n)>Math.abs(e)&&n<0&&(this.moveDirection="down")}i.interact.lastClientPosition={x:a.clientX,y:a.clientY};const n=i.axisFlags.isRangeBar?i.globals.minY:i.globals.minX,s=i.axisFlags.isRangeBar?i.globals.maxY:i.globals.maxX;a.panScrolled(n,s)}panScrolled(e,t){var i,a;const n=this.w,s=this.xyRatios;if(!n.globals.initialConfig)return;const o=KBe.clone(n.globals.initialConfig.yaxis);let r=s.xRatio,l=n.globals.minX,c=n.globals.maxX;if(n.axisFlags.isRangeBar&&(r=s.invertedYRatio,l=n.globals.minY,c=n.globals.maxY),"left"===this.moveDirection?(e=l+n.layout.gridWidth/15*r,t=c+n.layout.gridWidth/15*r):"right"===this.moveDirection&&(e=l-n.layout.gridWidth/15*r,t=c-n.layout.gridWidth/15*r),!n.axisFlags.isRangeBar){const s=null!=(i=n.globals.dataReducerRawMinX)?i:n.globals.initialMinX,o=null!=(a=n.globals.dataReducerRawMaxX)?a:n.globals.initialMaxX;(e<s||t>o)&&(e=l,t=c)}const d={xaxis:{min:e,max:t}};n.config.chart.group||(d.yaxis=o),this.updateScrolledChart(d,e,t)}updateScrolledChart(e,t,i){const a=this.w;if(this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof a.config.chart.events.scrolled){const e={xaxis:{min:t,max:i}};a.config.chart.events.scrolled(this.ctx,e),this.ctx.events.fireEvent("scrolled",e)}}}});let ZVe=class{constructor(e){this.w=e.w,this.annoCtx=e}setOrientations(e,t=null){var i,a;const n=this.w;if("vertical"===e.label.orientation){const s=null!==t?t:0,o=n.dom.baseEl.querySelector(`.apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='${s}']`);if(null!==o){const t=o.getBBox();o.setAttribute("x",String(parseFloat(null!=(i=o.getAttribute("x"))?i:"0")-t.height+4));const n="top"===e.label.position?t.width:-t.width;o.setAttribute("y",String(parseFloat(null!=(a=o.getAttribute("y"))?a:"0")+n));const{x:s,y:r}=this.annoCtx.graphics.rotateAroundCenter(o);o.setAttribute("transform",`rotate(-90 ${s} ${r})`)}}}addBackgroundToAnno(e,t){const i=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;const a=i.dom.baseEl.querySelector(".apexcharts-grid");if(!a)return null;const n=a.getBoundingClientRect(),s=a.getBBox(),o=n.width/s.width||1,r=e.getBoundingClientRect();let{left:l,right:c,top:d,bottom:u}=t.label.style.padding;"vertical"===t.label.orientation&&([d,u,l,c]=[l,c,d,u]);const p=(r.left-n.left)/o-l,h=(r.top-n.top)/o-d,f=this.annoCtx.graphics.drawRect(p-i.globals.barPadForNumericAxis,h,r.width/o+l+c,r.height/o+d+u,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&f.node.classList.add(t.id),f}annotationsBackground(){const e=this.w,t=(t,i,a)=>{const n=e.dom.baseEl.querySelector(`.apexcharts-${a}-annotations .apexcharts-${a}-annotation-label[rel='${i}']`);if(n){const i=n.parentNode,a=this.addBackgroundToAnno(n,t);if(a){null==i||i.insertBefore(a.node,n);const s=n.getAttribute("x");null!==s&&p$e(a,parseFloat(s),e),t.label.mouseEnter&&a.node.addEventListener("mouseenter",t.label.mouseEnter.bind(this,t)),t.label.mouseLeave&&a.node.addEventListener("mouseleave",t.label.mouseLeave.bind(this,t)),t.label.click&&a.node.addEventListener("click",t.label.click.bind(this,t))}}};e.config.annotations.xaxis.forEach((e,i)=>t(e,i,"xaxis")),e.config.annotations.yaxis.forEach((e,i)=>t(e,i,"yaxis")),e.config.annotations.points.forEach((e,i)=>t(e,i,"point"))}getY1Y2(e,t){var i,a;const n=this.w,s="y1"===e?t.y:t.y2;let o,r=!1;if(this.annoCtx.invertAxis){const e=n.config.xaxis.convertedCatToNumeric?n.labelData.categoryLabels:n.labelData.labels,a=e.indexOf(s),r=n.dom.baseEl.querySelector(`.apexcharts-yaxis-texts-g text:nth-child(${a+1})`);o=r?parseFloat(null!=(i=r.getAttribute("y"))?i:"0"):(n.layout.gridHeight/e.length-1)*(a+1)-n.globals.barHeight,void 0!==t.seriesIndex&&n.globals.barHeight&&(o-=n.globals.barHeight/2*(n.seriesData.series.length-1)-n.globals.barHeight*t.seriesIndex)}else{const e=n.globals.seriesYAxisMap[t.yAxisIndex][0],i=n.config.yaxis[t.yAxisIndex].logarithmic?new l$e(this.w).getLogVal(n.config.yaxis[t.yAxisIndex].logBase,s,e)/n.globals.yLogRatio[e]:(s-n.globals.minYArr[e])/(n.globals.yRange[e]/n.layout.gridHeight);o=n.layout.gridHeight-Math.min(Math.max(i,0),n.layout.gridHeight),r=i>n.layout.gridHeight||i<0,!t.marker||void 0!==t.y&&null!==t.y||(o=0),(null==(a=n.config.yaxis[t.yAxisIndex])?void 0:a.reversed)&&(o=i)}return"string"==typeof s&&s.includes("px")&&(o=parseFloat(s)),{yP:o,clipped:r}}getX1X2(e,t){const i=this.w,a="x1"===e?t.x:t.x2,n=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange;let r=!1,l=this.annoCtx.inversedReversedAxis?(s-a)/(o/i.layout.gridWidth):(a-n)/(o/i.layout.gridWidth);return"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.axisFlags.dataFormatXNumeric||i.config.chart.sparkline.enabled||(l=this.getStringX(a)),"string"==typeof a&&a.includes("px")&&(l=parseFloat(a)),null==a&&t.marker&&(l=i.layout.gridWidth),void 0!==t.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=i.globals.barWidth/2*(i.seriesData.series.length-1)-i.globals.barWidth*t.seriesIndex),"number"!=typeof l&&(l=0,r=!0),parseFloat(l.toFixed(10))>parseFloat(i.layout.gridWidth.toFixed(10))?(l=i.layout.gridWidth,r=!0):l<0&&(l=0,r=!0),{x:l,clipped:r}}getStringX(e){var t;const i=this.w;let a=e;if(i.config.xaxis.convertedCatToNumeric&&i.labelData.categoryLabels.length){const t=String(e);e=i.labelData.categoryLabels.findIndex(e=>String(e)===t)+1}const n=i.labelData.labels.map(e=>Array.isArray(e)?e.join(" "):e).indexOf(e),s=i.dom.baseEl.querySelector(`.apexcharts-xaxis-texts-g text:nth-child(${n+1})`);return s&&(a=parseFloat(null!=(t=s.getAttribute("x"))?t:"0")),a}};class QVe{constructor(e){this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new ZVe(this.annoCtx)}addXaxisAnnotation(e,t,i){const a=this.w,n=this.helpers.getX1X2("x1",e);let s=n.x;const o=n.clipped;let r,l=!0;const c=e.label.text,d=e.strokeDashArray;if(KBe.isNumber(s)){if(null===e.x2||void 0===e.x2){if(!o){const i=this.annoCtx.graphics.drawLine(s+e.offsetX,0+e.offsetY,s+e.offsetX,a.layout.gridHeight+e.offsetY,e.borderColor,d,e.borderWidth);t.appendChild(i.node),e.id&&i.node.classList.add(e.id),p$e(i,s+e.offsetX,a)}}else{const i=this.helpers.getX1X2("x2",e);if(r=i.x,l=i.clipped,r<s){const e=s;s=r,r=e}const n=this.annoCtx.graphics.drawRect(s+e.offsetX,0+e.offsetY,r-s,a.layout.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,d);n.node.classList.add("apexcharts-annotation-rect"),n.attr("clip-path",`url(#gridRectMask${a.globals.cuid})`),t.appendChild(n.node),e.id&&n.node.classList.add(e.id),p$e(n,s+e.offsetX,a)}if(!o||!l){const n=this.annoCtx.graphics.getTextRects(c,e.label.style.fontSize),o="top"===e.label.position?4:"center"===e.label.position?a.layout.gridHeight/2+("vertical"===e.label.orientation?n.width/2:0):a.layout.gridHeight,r=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:o+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?n.width/2-12:-n.width/2:0),text:c,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-xaxis-annotation-label ${e.label.style.cssClass} ${e.id?e.id:""}`});r.attr({rel:i}),t.appendChild(r.node),p$e(r,s+e.label.offsetX,a),this.annoCtx.helpers.setOrientations(e,i)}}}drawXAxisAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((e,i)=>{this.addXaxisAnnotation(e,t.node,i)}),t}}class JVe{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new ZVe(this.annoCtx),this.axesUtils=new T$e(this.annoCtx.w,{theme:this.annoCtx.theme,timeScale:this.annoCtx.timeScale})}addYaxisAnnotation(e,t,i){const a=this.w,n=e.strokeDashArray;let s=this.helpers.getY1Y2("y1",e),o=s.yP;const r=s.clipped;let l,c=!0,d=!1;const u=e.label.text;if(null===e.y2||void 0===e.y2){if(!r){d=!0;const i=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(i.node),e.id&&i.node.classList.add(e.id)}}else{if(s=this.helpers.getY1Y2("y2",e),l=s.yP,c=s.clipped,l>o){const e=o;o=l,l=e}if(!r||!c){d=!0;const i=this.annoCtx.graphics.drawRect(0+e.offsetX,l+e.offsetY,this._getYAxisAnnotationWidth(e),o-l,0,e.fillColor,e.opacity,1,e.borderColor,n);i.node.classList.add("apexcharts-annotation-rect"),i.attr("clip-path",`url(#gridRectMask${a.globals.cuid})`),t.appendChild(i.node),e.id&&i.node.classList.add(e.id)}}if(d){const n="right"===e.label.position?a.layout.gridWidth:"center"===e.label.position?a.layout.gridWidth/2:0,s=this.annoCtx.graphics.drawText({x:n+e.label.offsetX,y:(null!=l?l:o)+e.label.offsetY-3,text:u,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-yaxis-annotation-label ${e.label.style.cssClass} ${e.id?e.id:""}`});s.attr({rel:i}),t.appendChild(s.node)}}_getYAxisAnnotationWidth(e){const t=this.w;let i=t.layout.gridWidth;return i=e.width.indexOf("%")>-1?t.layout.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10),i+e.offsetX}drawYAxisAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.forEach((e,i)=>{e.yAxisIndex=this.axesUtils.translateYAxisIndex(e.yAxisIndex),this.axesUtils.isYAxisHidden(e.yAxisIndex)&&this.axesUtils.yAxisAllSeriesCollapsed(e.yAxisIndex)||this.addYaxisAnnotation(e,t.node,i)}),t}}class eUe{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new ZVe(this.annoCtx)}addPointAnnotation(e,t,i){const a=this.w;if(a.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)return;const n=this.helpers.getX1X2("x1",e),s=n.x,o=n.clipped,r=this.helpers.getY1Y2("y1",e),l=r.yP,c=r.clipped;if(KBe.isNumber(s)&&!c&&!o){const n={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:`apexcharts-point-annotation-marker ${e.marker.cssClass} ${e.id?e.id:""}`};let o=this.annoCtx.graphics.drawMarker(s+e.marker.offsetX,l+e.marker.offsetY,n);t.appendChild(o.node),p$e(o,s,a);const r=e.label.text?e.label.text:"",c=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:l+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:r,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-point-annotation-label ${e.label.style.cssClass} ${e.id?e.id:""}`});if(c.attr({rel:i}),t.appendChild(c.node),p$e(c,s,a),e.customSVG.SVG){const i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});i.attr({transform:`translate(${s+e.customSVG.offsetX}, ${l+e.customSVG.offsetY})`}),i.node.innerHTML=e.customSVG.SVG,t.appendChild(i.node)}if(e.image.path){const t=e.image.width?e.image.width:20,i=e.image.height?e.image.height:20;o=this.annoCtx.addImage({x:s+e.image.offsetX-t/2,y:l+e.image.offsetY-i/2,width:t,height:i,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&o.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&o.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&o.node.addEventListener("click",e.click.bind(this,e))}}drawPointAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((e,i)=>{this.addPointAnnotation(e,t.node,i)}),t}}WVe.registerFeatures({annotations:class{constructor(e,{theme:t=null,timeScale:i=null}={}){this.w=e,this.theme=t,this.timeScale=i,this.invertAxis=void 0,this.inversedReversedAxis=void 0,this.graphics=new _$e(this.w),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new ZVe(this),this.xAxisAnnotations=new QVe(this),this.yAxisAnnotations=new JVe(this),this.pointsAnnotations=new eUe(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.layout.gridWidth/this.w.globals.dataPoints}drawAxesAnnotations(){const e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){const t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),n=e.config.chart.animations.enabled,s=[t,i,a],o=[i.node,t.node,a.node],r="line"===e.config.chart.type||"area"===e.config.chart.type||"rangeArea"===e.config.chart.type,l=[r,!1,r];for(let c=0;c<3;c++)e.dom.elGraphical.add(s[c]),!n||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&!l[c]&&o[c].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[c],index:0});this.helpers.annotationsBackground()}}drawImageAnnos(){this.w.config.annotations.images.map(e=>{this.addImage(e)})}drawTextAnnos(){this.w.config.annotations.texts.map(e=>{this.addText(e)})}addXaxisAnnotation(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}addYaxisAnnotation(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}addPointAnnotation(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}addText(e){const{x:t,y:i,text:a,textAnchor:n,foreColor:s,fontSize:o,fontFamily:r,fontWeight:l,cssClass:c,backgroundColor:d,borderWidth:u,strokeDashArray:p,borderRadius:h,borderColor:f,appendTo:g=".apexcharts-svg",paddingLeft:m=4,paddingRight:_=4,paddingBottom:v=2,paddingTop:b=2}=e,y=this.w,x=this.graphics.drawText({x:t,y:i,text:a,textAnchor:n||"start",fontSize:o||"12px",fontWeight:l||"regular",fontFamily:r||y.config.chart.fontFamily,foreColor:s||y.config.chart.foreColor,cssClass:c}),S=y.dom.baseEl.querySelector(g);S&&S.appendChild(x.node);const w=x.bbox();if(a){const e=this.graphics.drawRect(w.x-m,w.y-b,w.width+m+_,w.height+v+b,h,d||"transparent",1,u,f,p);S.insertBefore(e.node,x.node)}}addImage(e){const t=this.w,{path:i,x:a=0,y:n=0,width:s=20,height:o=20,appendTo:r=".apexcharts-svg"}=e,l=t.dom.Paper.image(i);l.size(s,o).move(a,n);const c=t.dom.baseEl.querySelector(r);return c&&c.appendChild(l.node),l}addXaxisAnnotationExternal(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}addYaxisAnnotationExternal(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}addPointAnnotationExternal(e,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}addAnnotationExternal({params:e,pushToMemory:t,context:i,type:a,contextMethod:n}){const s=i,o=s.w,r=o.dom.baseEl.querySelector(`.apexcharts-${a}-annotations`),l=r.childNodes.length+1,c=new i$e,d=Object.assign({},"xaxis"===a?c.xAxisAnnotation:"yaxis"===a?c.yAxisAnnotation:c.pointAnnotation),u=KBe.extend(d,e);switch(a){case"xaxis":this.addXaxisAnnotation(u,r,l);break;case"yaxis":this.addYaxisAnnotation(u,r,l);break;case"point":this.addPointAnnotation(u,r,l)}const p=o.dom.baseEl.querySelector(`.apexcharts-${a}-annotations .apexcharts-${a}-annotation-label[rel='${l}']`),h=this.helpers.addBackgroundToAnno(p,u);return h&&r.insertBefore(h.node,p),t&&o.globals.memory.methodsToExec.push({context:s,id:u.id?u.id:KBe.randomId(),method:n,label:"addAnnotation",params:e}),i}clearAnnotations(e){const t=e.w,i=t.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");for(let a=t.globals.memory.methodsToExec.length-1;a>=0;a--)"addText"!==t.globals.memory.methodsToExec[a].label&&"addAnnotation"!==t.globals.memory.methodsToExec[a].label||t.globals.memory.methodsToExec.splice(a,1);Array.prototype.forEach.call(i,e=>{for(;e.firstChild;)e.removeChild(e.firstChild)})}removeAnnotation(e,t){const i=e.w,a=i.dom.baseEl.querySelectorAll(`.${t}`);a&&(i.globals.memory.methodsToExec.map((e,a)=>{e.id===t&&i.globals.memory.methodsToExec.splice(a,1)}),Object.keys(i.config.annotations).forEach(e=>{const a=i.config.annotations[e];Array.isArray(a)&&(i.config.annotations[e]=a.filter(e=>e.id!==t))}),Array.prototype.forEach.call(a,e=>{e.parentElement.removeChild(e)}))}}});WVe.registerFeatures({keyboardNavigation:class{constructor(e,t){this.w=e,this.ctx=t,this.seriesIndex=0,this.dataPointIndex=0,this.active=!1,this._tooltipDismissed=!1,this._focusedEl=null,this._hoveredBarEl=null,this._enlargedScatterMarker=null,this._onKeyDown=this._onKeyDown.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onLegendClick=this._onLegendClick.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._lastPointerDownAt=0}init(){const e=this.w.dom.Paper.node;e&&(e.setAttribute("tabindex","0"),e.addEventListener("focus",this._onFocus),e.addEventListener("blur",this._onBlur),e.addEventListener("mousedown",this._onPointerDown,{capture:!0}),e.addEventListener("pointerdown",this._onPointerDown,{capture:!0}),e.addEventListener("touchstart",this._onPointerDown,{capture:!0,passive:!0}),e.addEventListener("keydown",this._onKeyDown,{passive:!1}),this.ctx.events.addEventListener("legendClick",this._onLegendClick))}destroy(){const e=this.w,t=e.dom.Paper&&e.dom.Paper.node;t&&(t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur),t.removeEventListener("keydown",this._onKeyDown),t.removeEventListener("mousedown",this._onPointerDown,{capture:!0}),t.removeEventListener("pointerdown",this._onPointerDown,{capture:!0}),t.removeEventListener("touchstart",this._onPointerDown,{capture:!0}),this.ctx.events.removeEventListener("legendClick",this._onLegendClick))}_onPointerDown(){this._lastPointerDownAt=Date.now()}handleKey(e){}_onFocus(){this._isNavEnabled()&&(Date.now()-this._lastPointerDownAt<100||(this.active=!0,this._clampCursor(),this._snapToVisibleRange(),this._showCurrentPoint()))}_onBlur(){this.active=!1,this._tooltipDismissed=!1,this._hideFocus()}_onLegendClick(){this.active&&(this.active=!1,this._hideFocus())}_onKeyDown(e){var t,i,a;if(this._isNavEnabled()&&this.active){if(e.shiftKey&&("ArrowRight"===e.key||"ArrowLeft"===e.key)&&this._canPan())return e.preventDefault(),void this._panBy("ArrowRight"===e.key?1:-1);switch(e.key){case"ArrowRight":e.preventDefault(),this._move(0,1);break;case"ArrowLeft":e.preventDefault(),this._move(0,-1);break;case"ArrowUp":e.preventDefault(),this._move(-1,0);break;case"ArrowDown":e.preventDefault(),this._move(1,0);break;case"Home":e.preventDefault(),this.dataPointIndex=0,this._skipNullForward(),this._showCurrentPoint();break;case"End":e.preventDefault(),this.dataPointIndex=this._getDataPointCount(this.seriesIndex)-1,this._skipNullBackward(),this._showCurrentPoint();break;case"Enter":case" ":e.preventDefault(),this._fireClick();break;case"+":case"=":this._canZoom()&&(e.preventDefault(),null==(t=this.ctx.toolbar)||t.handleZoomIn(),this._announce("Zoomed in"));break;case"-":case"_":this._canZoom()&&(e.preventDefault(),null==(i=this.ctx.toolbar)||i.handleZoomOut(),this._announce("Zoomed out"));break;case"0":this._canZoom()&&this.w.interact.zoomed&&(e.preventDefault(),null==(a=this.ctx.toolbar)||a.handleZoomReset(),this._announce("Zoom reset"));break;case"Escape":e.preventDefault(),this._tooltipDismissed?(this.active=!1,this._tooltipDismissed=!1,this._hideFocus()):(this._tooltipDismissed=!0,this._hideFocus())}}}_canZoom(){const e=this.w;return Boolean(e.globals.axisCharts&&e.config.chart.zoom&&e.config.chart.zoom.enabled)}_canPan(){return this._canZoom()}_panBy(e){const t=this.w,i=this.ctx.toolbar;if(!i)return;const a=Number(t.globals.minX),n=Number(t.globals.maxX);if(!isFinite(a)||!isFinite(n)||a===n)return;const s=.1*(n-a)*e;i.zoomUpdateOptions(a+s,n+s),this._announce(e>0?"Panned right":"Panned left")}_move(e,t){const i=this.w,a=i.config.chart.accessibility.keyboard.navigation.wrapAround;if(0!==e){const t=this.w.globals.tooltip;if(t&&t.tConfig&&t.tConfig.shared){const e=this.dataPointIndex;if(t.tooltipUtil&&t.tooltipUtil.isXoverlap(e)&&t.tooltipUtil.isInitialSeriesSameLen())return}const n=this._getSeriesCount();let s=this.seriesIndex+e,o=0;for(;o<n&&(s<0&&(s=a?n-1:0),s>=n&&(s=a?0:n-1),i.globals.collapsedSeriesIndices.includes(s));)s+=e,o++;this.seriesIndex=s;const r=this._getDataPointCount(s);this.dataPointIndex>=r&&(this.dataPointIndex=r-1)}if(0!==t){const e=this._getDataPointCount(this.seriesIndex);let i=this.dataPointIndex+t;i<0&&(i=a?e-1:0),i>=e&&(i=a?0:e-1),this.dataPointIndex=i,t>0?this._skipNullForward():this._skipNullBackward(),this._isDataPointVisible(this.seriesIndex,this.dataPointIndex)||this._snapToVisibleRangeInDirection(t)}this._showCurrentPoint()}_skipNullForward(){const e=this.w,t=this.seriesIndex,i=this._getDataPointCount(t);let a=this.dataPointIndex,n=0;if(Array.isArray(e.seriesData.series[t])){for(;n<i&&null===e.seriesData.series[t][a];)a=(a+1)%i,n++;this.dataPointIndex=a}}_skipNullBackward(){const e=this.w,t=this.seriesIndex,i=this._getDataPointCount(t);let a=this.dataPointIndex,n=0;if(Array.isArray(e.seriesData.series[t])){for(;n<i&&null===e.seriesData.series[t][a];)a=(a-1+i)%i,n++;this.dataPointIndex=a}}_showCurrentPoint(){const{seriesIndex:e,dataPointIndex:t}=this,i=this.w,a=i.globals.tooltip;a&&a.ttItems&&(i.interact.capturedSeriesIndex=e,i.interact.capturedDataPointIndex=t,this._applyFocusClass(e,t),this._showTooltip(e,t,a))}_hideFocus(){const e=this.w,t=e.globals.tooltip;if(this._removeFocusClass(),this._leaveHoveredBar(),!t)return;t.marker&&t.marker.resetPointsSize(),this._enlargedScatterMarker=null;const i=t.getElTooltip();i&&(i.classList.remove("apexcharts-active"),e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&i.setAttribute("aria-hidden","true")),e.dom.baseEl.classList.remove("apexcharts-tooltip-active");const a=t.getElXCrosshairs();a&&a.classList.remove("apexcharts-active")}_showTooltip(e,t,i){const a=this.w,n=a.config.chart.type,s=i.getElTooltip();if(!s)return;const o=i.getCachedDimensions();i.tooltipRect={x:0,y:0,ttWidth:o.ttWidth||0,ttHeight:o.ttHeight||0},this._setSyntheticEvent(e,t,i),a.dom.baseEl.classList.add("apexcharts-tooltip-active"),s.classList.add("apexcharts-active"),a.config.chart.accessibility.enabled&&a.config.chart.accessibility.announcements.enabled&&s.removeAttribute("aria-hidden"),"pie"===n||"donut"===n||"polarArea"===n?this._showTooltipNonAxis(e,t,i,s):"radialBar"===n?this._showTooltipRadialBar(e,t,i,s):"heatmap"===n||"treemap"===n?this._showTooltipHeatTree(e,t,i,s,n):"bar"===n||"candlestick"===n||"boxPlot"===n||"rangeBar"===n?this._showTooltipBar(e,t,i):this._showTooltipAxisLine(e,t,i)}_setSyntheticEvent(e,t,i){const a=this.w,n=a.config.chart.type;let s=0,o=0;const r=this._getFocusableElement(e,t);if(r){const e=r.getBoundingClientRect();s=e.left+e.width/2,o=e.top+e.height/2}else if(a.globals.pointsArray&&a.globals.pointsArray[e]&&a.globals.pointsArray[e][t]){const n=a.globals.pointsArray[e][t],r=i.getElGrid&&i.getElGrid();if(r){const e=r.getBoundingClientRect();s=e.left+(n[0]||0),o=e.top+(n[1]||0)}}else{const e=a.dom.Paper&&a.dom.Paper.node;if(e){const t=e.getBoundingClientRect();s=t.left+t.width/2,o=t.top+t.height/2}}if(("line"===n||"area"===n||"rangeArea"===n||"scatter"===n||"bubble"===n||"radar"===n)&&a.globals.pointsArray&&a.globals.pointsArray[e]&&a.globals.pointsArray[e][t]){const n=a.globals.pointsArray[e][t],r=i.getElGrid&&i.getElGrid();if(r){const e=r.getBoundingClientRect();s=e.left+(n[0]||0),o=e.top+(n[1]||0)}}i.e={type:"mousemove",clientX:s,clientY:o}}_showTooltipBar(e,t,i){var a,n,s,o;const r=this.w,l=i.tConfig.shared&&(i.tooltipUtil.isXoverlap(t)||r.globals.isBarHorizontal)&&i.tooltipUtil.isInitialSeriesSameLen(),c=null==(o=null==(s=null==(n=null==(a=r.rangeData.seriesRange)?void 0:a[e])?void 0:n[t])?void 0:s.y)?void 0:o[0];i.tooltipLabels.drawSeriesTexts($Be(BBe(BBe({ttItems:i.ttItems,i:e,j:t},void 0!==(null==c?void 0:c.y1)&&{y1:c.y1}),void 0!==(null==c?void 0:c.y2)&&{y2:c.y2}),{shared:l}));const d=`.apexcharts-series[data\\:realIndex='${e}']`,u=r.dom.Paper.findOne(`${d} path[j='${t}'], ${d} circle[j='${t}'], ${d} rect[j='${t}']`);if(u){this._leaveHoveredBar();new _$e(this.w,this.ctx).pathMouseEnter(u,null),this._hoveredBarEl=u}if(r.globals.isBarHorizontal){const e=u&&u.node;if(e){const t=r.dom.elWrap.getBoundingClientRect(),a=e.getBoundingClientRect(),n=a.left-t.left,s=a.top-t.top,o=a.height,l=a.width,c=i.tooltipRect.ttWidth||0,d=s+o/2-(i.tooltipRect.ttHeight||0)/2;let u=n+l;n<(i.xyRatios&&null!=i.xyRatios.baseLineInvertedY?i.xyRatios.baseLineInvertedY:t.width/2)&&(u=n-c);const p=i.getElTooltip();p&&(p.style.left=u+"px",p.style.top=d+"px")}}else i.tooltipPosition.moveStickyTooltipOverBars(t,e)}_showTooltipAxisLine(e,t,i){const a=this.w,n=a.config.chart.type,s=i.tConfig.shared&&i.tooltipUtil.isXoverlap(t)&&i.tooltipUtil.isInitialSeriesSameLen();i.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:e,j:t,shared:s});const o="scatter"===n||"bubble"===n,r=a.globals.markers.largestSize>0;o?this._showScatterBubblePoint(e,t,i):r?s?i.marker.enlargePoints(t):i.tooltipPosition.moveDynamicPointOnHover(t,e):s?i.tooltipPosition.moveDynamicPointsOnHover(t):i.tooltipPosition.moveDynamicPointOnHover(t,e)}_showScatterBubblePoint(e,t,i){const a=this.w.dom.baseEl;this._enlargedScatterMarker&&(i.marker.oldPointSize(this._enlargedScatterMarker),this._enlargedScatterMarker=null);const n=a.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`);if(!n)return;const s=n.querySelector(`.apexcharts-marker[rel='${t}']`);s&&(i.marker.enlargeCurrentPoint(t,s),this._enlargedScatterMarker=s)}_showTooltipNonAxis(e,t,i,a){var n,s;const o=this.w;i.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:t,shared:!1});const r=a.getBoundingClientRect(),l=r.width||i.tooltipRect.ttWidth||0,c=r.height||i.tooltipRect.ttHeight||0,d=o.dom.baseEl.querySelector(`.apexcharts-pie-area[j='${t}']`);if(d){const e=parseFloat(null!=(n=d.getAttribute("data:cx"))?n:""),t=parseFloat(null!=(s=d.getAttribute("data:cy"))?s:"");if(!isNaN(e)&&!isNaN(t)){const i=o.dom.Paper.node.getBoundingClientRect(),n=o.dom.elWrap.getBoundingClientRect(),s=i.left-n.left,r=i.top-n.top;a.style.left=s+e-l/2+"px",a.style.top=r+t-c-10+"px"}}}_showTooltipRadialBar(e,t,i,a){var n;const s=this.w;i.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:e,shared:!1});const{ttWidth:o=0,ttHeight:r=0}=i.getCachedDimensions(),l=s.dom.baseEl.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`);if(l){const t=parseFloat(null!=(n=l.getAttribute("data:angle"))?n:"")||0,i=(s.config.plotOptions.radialBar.startAngle||0)+t/2,c=s.layout.gridWidth/2,d=s.layout.gridHeight/2,u=s.globals.radialSize||Math.min(s.layout.gridWidth,s.layout.gridHeight)/2,p=s.seriesData.series.length,h=u/Math.max(p,1),f=u-e*h,g=(f+(f-h))/2,m=KBe.polarToCartesian(c,d,g,i),_=m.x+(s.layout.translateX||0),v=m.y+(s.layout.translateY||0);a.style.left=_-o/2+"px",a.style.top=v-r-10+"px"}}_showTooltipHeatTree(e,t,i,a,n){var s,o;const r=this.w;i.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:e,j:t,shared:!1});const l=a.getBoundingClientRect(),c=l.width||i.tooltipRect.ttWidth||0,d=l.height||i.tooltipRect.ttHeight||0,u="heatmap"===n?"apexcharts-heatmap-rect":"apexcharts-treemap-rect",p=r.dom.baseEl.querySelector(`.${u}[i='${e}'][j='${t}']`);if(p){const e=r.dom.elWrap.getBoundingClientRect(),t=p.getBoundingClientRect(),n=t.left-e.left,l=t.top-e.top,u=t.width,h=t.height,f=parseFloat(null!=(s=p.getAttribute("cx"))?s:""),g=parseFloat(null!=(o=p.getAttribute("width"))?o:"");i.tooltipPosition.moveXCrosshairs(f+g/2);let m=n+u+c/2;const _=l+h/2-d/2;n+u>r.layout.gridWidth/2&&(m=n-c/2),a.style.left=m+"px",a.style.top=_+"px"}}_applyFocusClass(e,t){this._removeFocusClass();const i=this._getFocusableElement(e,t);if(i){i.classList.add("apexcharts-keyboard-focused"),i.setAttribute("role","img");const a=this._buildPointLabel(e,t);a&&i.setAttribute("aria-label",a),this._focusedEl=i}}_removeFocusClass(){this._focusedEl&&(this._focusedEl.classList.remove("apexcharts-keyboard-focused"),this._focusedEl.removeAttribute("role"),this._focusedEl.removeAttribute("aria-label"),this._focusedEl=null)}_buildPointLabel(e,t){var i,a,n,s,o,r,l,c;const d=this.w,u=d.config.chart.type,p=d.seriesData.seriesNames||[],h=d.seriesData.series||[];if("pie"===u||"donut"===u||"polarArea"===u){const e=null!=(a=(null==(i=d.labelData)?void 0:i.labels)&&d.labelData.labels[t])?a:"",n=Array.isArray(h)?h[t]:"";return e?`${e}: ${n}`:`${n}`}if("radialBar"===u){return`${p[e]||`Series ${e+1}`}: ${Array.isArray(h)?h[e]:""}`}const f=p[e]||`Series ${e+1}`,g=(Array.isArray(h[e])?h[e]:[])[t];let m=null==g?"":String(g);const _=null==(s=null==(n=d.formatters)?void 0:n.yLabelFormatters)?void 0:s[e];if("function"==typeof _)try{m=_(g,{seriesIndex:e,dataPointIndex:t,w:d})}catch(NO){}let v="";const b=null==(o=d.labelData)?void 0:o.categoryLabels,y=null==(l=null==(r=d.seriesData)?void 0:r.seriesX)?void 0:l[e];if(Array.isArray(b)&&null!=b[t])v=String(b[t]);else if(Array.isArray(y)&&null!=y[t]){const i=null==(c=d.formatters)?void 0:c.xLabelFormatter;if("function"==typeof i)try{v=String(i(y[t],{seriesIndex:e,dataPointIndex:t,w:d}))}catch(NO){v=String(y[t])}else v=String(y[t])}return v?`${f}: ${m}, ${v}`:`${f}: ${m}`}_leaveHoveredBar(){if(this._hoveredBarEl){new _$e(this.w,this.ctx).pathMouseLeave(this._hoveredBarEl,null),this._hoveredBarEl=null}}_getFocusableElement(e,t){const i=this.w,a=i.config.chart.type,n=i.dom.baseEl;if("pie"===a||"donut"===a||"polarArea"===a)return n.querySelector(`.apexcharts-pie-area[j='${t}']`);if("heatmap"===a)return n.querySelector(`.apexcharts-heatmap-rect[i='${e}'][j='${t}']`);if("treemap"===a)return n.querySelector(`.apexcharts-treemap-rect[i='${e}'][j='${t}']`);if("radialBar"===a)return n.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`);if("bar"===a||"candlestick"===a||"boxPlot"===a||"rangeBar"===a)return n.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`);return n.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker[rel='${t}']`)||null}_fireClick(){const e=this.w.globals.tooltip;if(!e)return;e.markerClick({type:"mouseup",clientX:0,clientY:0},this.seriesIndex,this.dataPointIndex)}_isNavEnabled(){const e=this.w.config.chart.accessibility;return e.enabled&&e.keyboard.enabled&&e.keyboard.navigation.enabled}_getSeriesCount(){const e=this.w,t=e.config.chart.type;return"pie"===t||"donut"===t||"polarArea"===t?1:e.seriesData.series.length}_getDataPointCount(e){const t=this.w,i=t.config.chart.type;if("pie"===i||"donut"===i||"polarArea"===i)return t.seriesData.series.length;const a=t.seriesData.series;return a[e]&&Array.isArray(a[e])?a[e].length:0}_clampCursor(){const e=this._getSeriesCount();this.seriesIndex>=e&&(this.seriesIndex=e-1),this.seriesIndex<0&&(this.seriesIndex=0);const t=this._getDataPointCount(this.seriesIndex);this.dataPointIndex>=t&&(this.dataPointIndex=t-1),this.dataPointIndex<0&&(this.dataPointIndex=0)}_snapToVisibleRange(){const e=this.w,t=e.globals,i=this.seriesIndex;if(!e.interact.zoomed)return;const a=e.seriesData.seriesX&&e.seriesData.seriesX[i];if(!a||!a.length)return;const n=t.minX,s=t.maxX;if(void 0===n||void 0===s)return;const o=a[this.dataPointIndex];if(o>=n&&o<=s)return;const r=a.length;for(let l=0;l<r;l++)if(a[l]>=n&&a[l]<=s)return void(this.dataPointIndex=l)}_snapToVisibleRangeInDirection(e){const t=this.w,i=t.globals,a=this.seriesIndex,n=t.seriesData.seriesX&&t.seriesData.seriesX[a];if(!n||!n.length)return;const s=i.minX,o=i.maxX;if(void 0===s||void 0===o)return;const r=n.length;if(e>=0){for(let l=0;l<r;l++)if(n[l]>=s&&n[l]<=o)return void(this.dataPointIndex=l)}else for(let l=r-1;l>=0;l--)if(n[l]>=s&&n[l]<=o)return void(this.dataPointIndex=l)}_isDataPointVisible(e,t){const i=this.w,a=i.globals;if(!i.interact.zoomed)return!0;const n=i.seriesData.seriesX&&i.seriesData.seriesX[e];if(!n)return!0;const s=n[t];return void 0===s||s>=a.minX&&s<=a.maxX}_announce(e){const t=this.w;if(!t.config.chart.accessibility.announcements.enabled)return;const i=t.dom.baseEl;if(!i)return;const a=i.querySelector(".apexcharts-sr-status");a&&(a.textContent="",setTimeout(()=>{a.textContent=e},0))}}});class tUe{constructor(e){this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}handleBarDataLabels(e){const{x:t,y:i,y1:a,y2:n,i:s,j:o,realIndex:r,columnGroupIndex:l,series:c,barHeight:d,barWidth:u,barXPosition:p,barYPosition:h,visibleSeries:f}=e,g=this.w,m=new _$e(this.barCtx.w),_=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[r]:this.barCtx.strokeWidth;let v,b;g.axisFlags.isXNumeric&&!g.globals.isBarHorizontal?(v=t+u*(f+1),b=i+d*(f+1)-_):(v=t+u*f,b=i+d*f);let y=null,x=null,S=t,w=i,C={};const E=g.config.dataLabels,k=this.barCtx.barOptions.dataLabels,T=this.barCtx.barOptions.dataLabels.total;void 0!==h&&this.barCtx.isRangeBar&&(b=h,w=h),void 0!==p&&this.barCtx.isVerticalGroupedRangeBar&&(v=p,S=p);const A=E.offsetX,R=E.offsetY;let I={width:0,height:0};if(g.config.dataLabels.enabled){const e=g.seriesData.series[s][o];I=m.getTextRects(g.config.dataLabels.formatter?g.config.dataLabels.formatter(e,$Be(BBe({},g),{seriesIndex:s,dataPointIndex:o,w:g})):g.formatters.yLabelFormatters[0](e),parseFloat(E.style.fontSize).toString())}const D={x:t,y:i,i:s,j:o,realIndex:r,columnGroupIndex:l,bcx:v,bcy:b,barHeight:d,barWidth:u,textRects:I,strokeWidth:_,dataLabelsX:S,dataLabelsY:w,dataLabelsConfig:E,barDataLabelsConfig:k,barTotalDataLabelsConfig:T,offX:A,offY:R};return C=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(D):this.calculateColumnsDataLabelsPosition(D),y=this.drawCalculatedDataLabels({x:C.dataLabelsX,y:C.dataLabelsY,val:this.barCtx.isRangeBar?[a,n]:"100%"===g.config.chart.stackType?c[r][o]:g.seriesData.series[r][o],i:r,j:o,barWidth:u,barHeight:d,textRects:I,dataLabelsConfig:E}),g.config.chart.stacked&&T.enabled&&(x=this.drawTotalDataLabels({x:C.totalDataLabelsX,y:C.totalDataLabelsY,barWidth:u,barHeight:d,realIndex:r,textAnchor:C.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:r,j:o}),dataLabelsConfig:E,barTotalDataLabelsConfig:T})),{dataLabelsPos:C,dataLabels:y,totalDataLabels:x}}getStackedTotalDataLabel({realIndex:e,j:t}){const i=this.w;let a=this.barCtx.stackedSeriesTotals[t];return this.totalFormatter&&(a=this.totalFormatter(a,$Be(BBe({},i),{seriesIndex:e,dataPointIndex:t,w:i}))),a}calculateColumnsDataLabelsPosition(e){const t=this.w;let i,a,{i:n,j:s,realIndex:o,y:r,bcx:l,barWidth:c,barHeight:d,textRects:u,dataLabelsX:p,dataLabelsY:h,dataLabelsConfig:f,barDataLabelsConfig:g,barTotalDataLabelsConfig:m,strokeWidth:_,offX:v,offY:b}=e;const y=l;d=Math.abs(d);const x="vertical"===t.config.plotOptions.bar.dataLabels.orientation,{zeroEncounters:S}=this.barCtx.barHelpers.getZeroValueEncounters({i:n,j:s});l-=_/2;const w=t.layout.gridWidth/t.globals.dataPoints;if(this.barCtx.isVerticalGroupedRangeBar?p+=c/2:(p=t.axisFlags.isXNumeric?l-c/2+v:l-w+c/2+v,!t.config.chart.stacked&&S>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=c*S)),x){const e=2;p=p+u.height/2-_/2-e}const C=t.seriesData.series[n][s]<0;let E=r;switch(this.barCtx.isReversed&&(E=r+(C?d:-d)),g.position){case"center":h=x?C?E-d/2+b:E+d/2-b:C?E-d/2+u.height/2+b:E+d/2+u.height/2-b;break;case"bottom":h=x?C?E-d+b:E+d-b:C?E-d+u.height+_+b:E+d-u.height/2+_-b;break;case"top":h=x?C?E+b:E-b:C?E-u.height/2-b:E+u.height+b}let k=E;if(t.labelData.seriesGroups.forEach(e=>{var t;null==(t=this.barCtx[e.join(",")])||t.prevY.forEach(e=>{k=C?Math.max(e[s],k):Math.min(e[s],k)})}),this.barCtx.lastActiveBarSerieIndex===o&&m.enabled){const e=18,n=new _$e(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:s}),f.fontSize);i=C?k-n.height/2-b-m.offsetY+e:k+n.height+b+m.offsetY-e;const r=w;a=y+(t.axisFlags.isXNumeric?-c*t.globals.barGroups.length/2:t.globals.barGroups.length*c/2-(t.globals.barGroups.length-1)*c-r)+m.offsetX}return t.config.chart.stacked||(h<0?h=0+_:h+u.height/3>t.layout.gridHeight&&(h=t.layout.gridHeight-_)),{bcx:l,bcy:r,dataLabelsX:p,dataLabelsY:h,totalDataLabelsX:a,totalDataLabelsY:i,totalDataLabelsAnchor:"middle"}}calculateBarsDataLabelsPosition(e){const t=this.w;let{x:i,i:a,j:n,realIndex:s,bcy:o,barHeight:r,barWidth:l,textRects:c,dataLabelsX:d,strokeWidth:u,dataLabelsConfig:p,barDataLabelsConfig:h,barTotalDataLabelsConfig:f,offX:g,offY:m}=e;const _=t.layout.gridHeight/t.globals.dataPoints,{zeroEncounters:v}=this.barCtx.barHelpers.getZeroValueEncounters({i:a,j:n});l=Math.abs(l);let b,y,x=o-(this.barCtx.isRangeBar?0:_)+r/2+c.height/2+m-3;!t.config.chart.stacked&&v>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(x-=r*v);let S="start";const w=t.seriesData.series[a][n]<0;let C=i;switch(this.barCtx.isReversed&&(C=i+(w?-l:l),S=w?"start":"end"),h.position){case"center":d=w?C+l/2-g:Math.max(c.width/2,C-l/2)+g;break;case"bottom":d=w?C+l-u-g:C-l+u+g;break;case"top":d=w?C-u-g:C-u+g}let E=C;if(t.labelData.seriesGroups.forEach(e=>{var t;null==(t=this.barCtx[e.join(",")])||t.prevX.forEach(e=>{E=w?Math.min(e[n],E):Math.max(e[n],E)})}),this.barCtx.lastActiveBarSerieIndex===s&&f.enabled){const e=new _$e(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:s,j:n}),p.fontSize);w?(b=E-u-g-f.offsetX,S="end"):b=E+g+f.offsetX+(this.barCtx.isReversed?-(l+u):u),y=x-c.height/2+e.height/2+f.offsetY+u,t.globals.barGroups.length>1&&(y-=t.globals.barGroups.length/2*(r/2))}return t.config.chart.stacked||("start"===p.textAnchor?d-c.width<0?d=w?c.width+u:u:d+c.width>t.layout.gridWidth&&(d=w?t.layout.gridWidth-u:t.layout.gridWidth-c.width-u):"middle"===p.textAnchor?d-c.width/2<0?d=c.width/2+u:d+c.width/2>t.layout.gridWidth&&(d=t.layout.gridWidth-c.width/2-u):"end"===p.textAnchor&&(d<1?d=c.width+u:d+1>t.layout.gridWidth&&(d=t.layout.gridWidth-c.width-u))),{bcx:i,bcy:o,dataLabelsX:d,dataLabelsY:x,totalDataLabelsX:b,totalDataLabelsY:y,totalDataLabelsAnchor:S}}drawCalculatedDataLabels({x:e,y:t,val:i,i:a,j:n,textRects:s,barHeight:o,barWidth:r,dataLabelsConfig:l}){const c=this.w;let d="rotate(0)";"vertical"===c.config.plotOptions.bar.dataLabels.orientation&&(d=`rotate(-90, ${e}, ${t})`);const u=new E$e(this.barCtx.w,this.barCtx.ctx),p=new _$e(this.barCtx.w),h=l.formatter;let f=null;const g=c.globals.collapsedSeriesIndices.indexOf(a)>-1;if(l.enabled&&!g){f=p.group({class:"apexcharts-data-labels",transform:d});let g="";void 0!==i&&(g=h(i,$Be(BBe({},c),{seriesIndex:a,dataPointIndex:n,w:c}))),!i&&c.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(g="");const m=c.seriesData.series[a][n]<0,_=c.config.plotOptions.bar.dataLabels.position;if("vertical"===c.config.plotOptions.bar.dataLabels.orientation&&("top"===_&&(l.textAnchor=m?"end":"start"),"center"===_&&(l.textAnchor="middle"),"bottom"===_&&(l.textAnchor=m?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels){r<p.getTextRects(g,parseFloat(l.style.fontSize).toString()).width&&(g="")}c.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?s.width/1.6>Math.abs(r)&&(g=""):s.height/1.6>Math.abs(o)&&(g=""));const v=BBe({},l);this.barCtx.isHorizontal&&i<0&&("start"===l.textAnchor?v.textAnchor="end":"end"===l.textAnchor&&(v.textAnchor="start")),u.plotDataLabelsText({x:e,y:t,text:g,i:a,j:n,parent:f,dataLabelsConfig:v,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return f}drawTotalDataLabels({x:e,y:t,val:i,realIndex:a,textAnchor:n,barTotalDataLabelsConfig:s}){const o=new _$e(this.barCtx.w);let r;return s.enabled&&void 0!==e&&void 0!==t&&this.barCtx.lastActiveBarSerieIndex===a&&(r=o.drawText({x:e,y:t,foreColor:s.style.color,text:i,textAnchor:n,fontFamily:s.style.fontFamily,fontSize:s.style.fontSize,fontWeight:s.style.fontWeight})),r}}let iUe=class{constructor(e){this.w=e.w,this.barCtx=e}initVariables(e){const t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(let i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.axisFlags.isXNumeric)for(let a=0;a<e[i].length;a++)t.seriesData.seriesX[i][a]>t.globals.minX&&t.seriesData.seriesX[i][a]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.seriesData.series),KBe.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(e=>e.map(e=>"none"))),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}initialPositions(e){const t=this.w;let i,a,n,s,o,r,l,c,d=t.globals.dataPoints;this.barCtx.isRangeBar&&(d=t.labelData.labels.length);let u=this.barCtx.seriesLen;if(t.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)n=t.layout.gridHeight/d,o=n/u,t.axisFlags.isXNumeric&&(n=t.layout.gridHeight/this.barCtx.totalItems,o=n/this.barCtx.seriesLen),o=o*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(o=parseInt(this.barCtx.barOptions.barHeight,10)),c=this.barCtx.baseLineInvertedY+t.globals.padHorizontal+(this.barCtx.isReversed?t.layout.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(c=t.layout.gridWidth/2),a=(n-o*this.barCtx.seriesLen)/2;else{if(s=t.layout.gridWidth/this.barCtx.visibleItems,t.config.xaxis.convertedCatToNumeric&&(s=t.layout.gridWidth/t.globals.dataPoints),r=s/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,t.axisFlags.isXNumeric){const e=this.barCtx.xRatio;t.globals.minXDiff&&.5!==t.globals.minXDiff&&t.globals.minXDiff/e>0&&(s=t.globals.minXDiff/e),r=s/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,r<1&&(r=1)}if(-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),l=t.layout.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?t.layout.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),t.axisFlags.isXNumeric){i=this.barCtx.getBarXForNumericXAxis({x:i,j:0,realIndex:e,barWidth:r}).x}else i=t.globals.padHorizontal+KBe.noExponents(s-r*this.barCtx.seriesLen)/2}return t.globals.barHeight=o,t.globals.barWidth=r,{x:i,y:a,yDivision:n,xDivision:s,barHeight:o,barWidth:r,zeroH:l,zeroW:c}}initializeStackedPrevVars(e){e.w.labelData.seriesGroups.forEach(t=>{e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}initializeStackedXYVars(e){e.w.labelData.seriesGroups.forEach(t=>{e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}getPathFillColor(e,t,i,a){var n,s,o,r;const l=this.w,c=new S$e(this.barCtx.w);let d=null;const u=this.barCtx.barOptions.distributed?i:t;let p=!1;if(this.barCtx.barOptions.colors.ranges.length>0){this.barCtx.barOptions.colors.ranges.map(a=>{e[t][i]>=a.from&&e[t][i]<=a.to&&(d=a.color,p=!0)})}return{color:c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?u:a,dataPointIndex:i,color:d,value:e[t][i],fillConfig:null==(n=l.config.series[t].data[i])?void 0:n.fill,fillType:(null==(o=null==(s=l.config.series[t].data[i])?void 0:s.fill)?void 0:o.type)?null==(r=l.config.series[t].data[i])?void 0:r.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[a]:l.config.fill.type}),useRangeColor:p}}getStrokeWidth(e,t,i){let a=0;const n=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]||"bar"===n.config.chart.type&&!this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,n.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}createBorderRadiusArr(e){var t;const i=this.w,a=!this.w.config.chart.stacked||i.config.plotOptions.bar.borderRadius<=0,n=e.length,s=0|(null==(t=e[0])?void 0:t.length),o=Array.from({length:n},()=>Array(s).fill(a?"top":"none"));if(a)return o;const r=this.w.config.chart.type;for(let l=0;l<s;l++){const t=[],i=[];let a=0;for(let s=0;s<n;s++){const n=e[s][l];n>0?(t.push(s),a++):n<0&&(i.push(s),a++)}if(t.length>0&&0===i.length)if(1===t.length)o[t[0]][l]="bar"===r&&1===s?"top":"both";else{const e=t[0],i=t[t.length-1];for(const a of t)o[a][l]=a===e?"bar"===r&&1===s?"top":"bottom":a===i?"top":"none"}else if(i.length>0&&0===t.length)if(1===i.length)o[i[0]][l]="both";else{const e=Math.max(...i),t=Math.min(...i);for(const a of i)o[a][l]=a===e?"bottom":a===t?"top":"none"}else if(t.length>0&&i.length>0){const e=t[t.length-1];for(const i of t)o[i][l]=i===e?"top":"none";const a=Math.max(...i);for(const t of i)o[t][l]=t===a?"bottom":"none"}else if(1===a){o[t[0]||i[0]][l]="both"}}return o}barBackground({j:e,i:t,x1:i,x2:a,y1:n,y2:s,elSeries:o}){const r=this.w,l=new _$e(this.barCtx.w),c=new $$e(this.barCtx.w).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===t){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);const t=this.barCtx.barOptions.colors.backgroundBarColors[e],c=l.drawRect(void 0!==i?i:0,void 0!==n?n:0,void 0!==a?a:r.layout.gridWidth,void 0!==s?s:r.layout.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,t,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(c),c.node.classList.add("apexcharts-backgroundBar")}}getColumnPaths({barWidth:e,barXPosition:t,y1:i,y2:a,strokeWidth:n,isReversed:s,series:o,seriesGroup:r,realIndex:l,i:c,j:d,w:u}){var p;const h=new _$e(this.barCtx.w);(n=Array.isArray(n)?n[l]:n)||(n=0);let f=e,g=t;(null==(p=u.config.series[l].data[d])?void 0:p.columnWidthOffset)&&(g=t-u.config.series[l].data[d].columnWidthOffset/2,f=e+u.config.series[l].data[d].columnWidthOffset);const m=n/2,_=g+m,v=g+f-m,b=(o[c][d]>=0?1:-1)*(s?-1:1);i+=.001-m*b,a+=.001+m*b;const y=h.line(v,i),x="around"===u.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[l][d]?" Z":" z";let S,w=h.move(_,i)+h.line(_,a)+h.line(v,a)+y+x;if("none"!==this.arrBorderRadius[l][d]&&(w=h.roundPathCorners(w,u.config.plotOptions.bar.borderRadius)),S=u.globals.previousPaths.length>0?this.barCtx.getPreviousPath(l,d,w):h.move(_,i)+h.line(_,i)+y+y+y+y+y+h.line(_,i)+x,u.config.chart.stacked){let e=this.barCtx;e=this.barCtx[r],e.yArrj.push(a-m*b),e.yArrjF.push(Math.abs(i-a+n*b)),e.yArrjVal.push(this.barCtx.series[c][d])}return{pathTo:w,pathFrom:S}}getFunnelTrapezoidPaths({barYPosition:e,barHeight:t,series:i,i:a,j:n,realIndex:s,strokeWidth:o,w:r}){const l=new _$e(this.barCtx.w),c=r.layout.gridWidth/2,d=e=>Math.abs(e/this.barCtx.invertedYRatio)/2,u=d(i[a][n]),p=n===i[a].length-1,h="taper"===r.config.plotOptions.funnel.lastShape?"taper":"flat";let f;f=p?"taper"===h?0:u:d(i[a][n+1]);const g=o/2,m=e+g,_=e+t-g,v=c-u,b=c+u,y=c-f,x=c+f,S=l.move(v,m)+l.line(b,m)+l.line(x,_)+l.line(y,_)+" Z";let w;return w=r.globals.previousPaths.length>0?this.barCtx.getPreviousPath(s,n,S):l.move(c,m)+l.line(c,m)+l.line(c,_)+l.line(c,_)+" Z",{pathTo:S,pathFrom:w,x:b,x1:v,barXPosition:c}}getBarpaths({barYPosition:e,barHeight:t,x1:i,x2:a,strokeWidth:n,isReversed:s,series:o,seriesGroup:r,realIndex:l,i:c,j:d,w:u}){var p;const h=new _$e(this.barCtx.w);(n=Array.isArray(n)?n[l]:n)||(n=0);let f=e,g=t;(null==(p=u.config.series[l].data[d])?void 0:p.barHeightOffset)&&(f=e-u.config.series[l].data[d].barHeightOffset/2,g=t+u.config.series[l].data[d].barHeightOffset);const m=n/2,_=f+m,v=f+g-m,b=(o[c][d]>=0?1:-1)*(s?-1:1);i+=.001+m*b,a+=.001-m*b;const y=this.barCtx.isFunnel,x=y?(i+a)/2:i,S=h.line(i,v),w="around"===u.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[l][d]?" Z":" z";let C,E=h.move(i,_)+h.line(a,_)+h.line(a,v)+S+w;if("none"!==this.arrBorderRadius[l][d]&&(E=h.roundPathCorners(E,u.config.plotOptions.bar.borderRadius)),u.globals.previousPaths.length>0)C=this.barCtx.getPreviousPath(l,d,E);else{const e=y?h.line(x,v):S;C=h.move(x,_)+h.line(x,_)+e+e+e+e+e+h.line(x,_)+w}if(u.config.chart.stacked){let e=this.barCtx;e=this.barCtx[r],e.xArrj.push(a+m*b),e.xArrjF.push(Math.abs(i-a-n*b)),e.xArrjVal.push(this.barCtx.series[c][d])}return{pathTo:E,pathFrom:C}}checkZeroSeries({series:e}){const t=this.w;for(let i=0;i<e.length;i++){let a=0;for(let n=0;n<e[t.globals.maxValsInArrayIndex].length;n++)a+=e[i][n];0===a&&this.barCtx.zeroSerieses.push(i)}}getXForValue(e,t,i=!0){let a=i?t:null;return null!=e&&(a=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),a}getYForValue(e,t,i,a=!0){let n=a?t:null;return null!=e&&(n=t-e/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[i]:0)),n}getGoalValues(e,t,i,a,n,s){const o=this.w,r=[],l=(a,n)=>{r.push({[e]:"x"===e?this.getXForValue(a,t,!1):this.getYForValue(a,i,s,!1),attrs:n})};if(o.seriesData.seriesGoals[a]&&o.seriesData.seriesGoals[a][n]&&Array.isArray(o.seriesData.seriesGoals[a][n])&&o.seriesData.seriesGoals[a][n].forEach(e=>{l(e.value,e)}),this.barCtx.barOptions.isDumbbell&&o.rangeData.seriesRange.length){const t=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,i={strokeHeight:"x"===e?0:o.globals.markers.size[a],strokeWidth:"x"===e?o.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(t[a])?t[a][0]:t[a]};l(o.rangeData.seriesRangeStart[a][n],i),l(o.rangeData.seriesRangeEnd[a][n],$Be(BBe({},i),{strokeColor:Array.isArray(t[a])?t[a][1]:t[a]}))}return r}drawGoalLine({barXPosition:e,barYPosition:t,goalX:i,goalY:a,barWidth:n,barHeight:s}){const o=new _$e(this.barCtx.w),r=o.group({className:"apexcharts-bar-goals-groups"});r.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:r.node}),r.attr("clip-path",`url(#gridRectMarkerMask${this.barCtx.w.globals.cuid})`);let l=null;return this.barCtx.isHorizontal?Array.isArray(i)&&i.forEach(e=>{if(e.x>=-1&&e.x<=o.w.layout.gridWidth+1){const i=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:s/2,a=t+i+s/2;l=o.drawLine(e.x,a-2*i,e.x,a,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),r.add(l)}}):Array.isArray(a)&&a.forEach(t=>{if(t.y>=-1&&t.y<=o.w.layout.gridHeight+1){const i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:n/2,a=e+i+n/2;l=o.drawLine(a-2*i,t.y,a,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),r.add(l)}}),r}drawBarShadow({prevPaths:e,currPaths:t,color:i,realIndex:a,j:n}){const s=this.w,{x:o,x1:r,barYPosition:l}=e,{x:c,x1:d,barYPosition:u}=t,p=l+t.barHeight,h=new _$e(this.barCtx.w),f=new KBe,g=h.move(r,p)+h.line(o,p)+h.line(c,u)+h.line(d,u)+h.line(r,p)+("around"===s.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[a][n]?" Z":" z");return h.drawPath({d:g,fill:f.shadeColor(.5,KBe.rgb2hex(i)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}getZeroValueEncounters({i:e,j:t}){var i;const a=this.w;let n=0,s=0;return(a.config.plotOptions.bar.horizontal?a.seriesData.series.map((e,t)=>t):(null==(i=a.globals.columnSeries)?void 0:i.i.map(e=>e))||[]).forEach(i=>{const o=a.globals.seriesPercent[i][t];o&&n++,i<e&&0===o&&s++}),{nonZeroColumns:n,zeroEncounters:s}}getGroupIndex(e){const t=this.w,i=t.labelData.seriesGroups.findIndex(i=>i.indexOf(t.seriesData.seriesNames[e])>-1),a=this.barCtx.columnGroupIndices;let n=a.indexOf(i);return n<0&&(a.push(i),n=a.length-1),{groupIndex:i,columnGroupIndex:n}}};class aUe{constructor(e,t,i){this.ctx=t,this.w=e,this.barOptions=e.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=e.config.stroke.width,this.isNullValue=!1,this.isRangeBar=e.rangeData.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.rangeData.seriesRange.length&&e.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=i,this.xRatio=0,this.yRatio=[],this.invertedXRatio=0,this.invertedYRatio=0,this.baseLineY=[],this.baseLineInvertedY=0,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[],this.series=[],this.elSeries=null,this.visibleI=0,this.isReversed=!1;const a=new $$e(this.w);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];const n=a.getBarSeriesIndices(),s=new l$e(this.w);this.stackedSeriesTotals=s.getStackedSeriesTotals(this.w.config.series.map((e,t)=>-1===n.indexOf(t)?t:-1).filter(e=>-1!==e)),this.barHelpers=new iUe(this)}draw(e,t){var i,a;const n=this.w,s=new _$e(this.w),o=new l$e(this.w);e=o.getLogSeries(e),this.series=e,this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const r=s.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&(this.totalItems,this.barOptions.dataLabels.maxItems);for(let l=0,c=0;l<e.length;l++,c++){let o,d;const u=[],p=[],h=n.globals.comboCharts?t[l]:l,{columnGroupIndex:f}=this.barHelpers.getGroupIndex(h),g=s.group({class:"apexcharts-series",rel:l+1,seriesName:KBe.escapeString(n.seriesData.seriesNames[h]),"data:realIndex":h});$$e.addCollapsedClassToSeries(this.w,g,h),e[l].length>0&&(this.visibleI=this.visibleI+1),this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[h],this.translationsIndex=h);const m=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;const _=this.barHelpers.initialPositions(h),{y:v,yDivision:b,zeroW:y,x:x,xDivision:S,zeroH:w}=_;let C=_.barHeight,E=_.barWidth;d=v,o=x,this.isHorizontal||p.push(o+(null!=E?E:0)/2);const k=s.group({class:"apexcharts-datalabels","data:realIndex":h});n.globals.delayedElements.push({el:k.node}),k.node.classList.add("apexcharts-element-hidden");const T=s.group({class:"apexcharts-bar-goals-markers"}),A=s.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:A.node}),A.node.classList.add("apexcharts-element-hidden");for(let t=0;t<e[l].length;t++){const s=this.barHelpers.getStrokeWidth(l,t,h);let r=null;const _={indexes:{i:l,j:t,realIndex:h,translationsIndex:m,bc:c},x:o,y:d,strokeWidth:s,elSeries:g};this.isHorizontal?(r=this.drawBarPaths($Be(BBe({},_),{barHeight:C,zeroW:y,yDivision:b})),E=this.series[l][t]/this.invertedYRatio):(r=this.drawColumnPaths($Be(BBe({},_),{xDivision:S,barWidth:E,zeroH:w})),C=this.series[l][t]/this.yRatio[m]);const v=this.barHelpers.getPathFillColor(e,l,t,h);if(this.isFunnel&&this.barOptions.isFunnel3d&&"trapezoid"!==(null==(i=n.config.plotOptions.funnel)?void 0:i.shape)&&this.pathArr.length&&t>0){const e=this.barHelpers.drawBarShadow({color:"string"==typeof v.color&&-1===(null==(a=v.color)?void 0:a.indexOf("url"))?v.color:KBe.hexToRgba(n.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:r,realIndex:h,j:t});if(A.add(e),n.config.chart.dropShadow.enabled){new m$e(this.w).dropShadow(e,n.config.chart.dropShadow,h)}}this.pathArr.push(r);const x=this.barHelpers.drawGoalLine({barXPosition:r.barXPosition,barYPosition:r.barYPosition,goalX:r.goalX,goalY:r.goalY,barHeight:C,barWidth:E});x&&T.add(x),d=r.y,o=r.x,t>0&&p.push(o+(null!=E?E:0)/2),u.push(d),this.renderSeries($Be(BBe({realIndex:h,pathFill:v.color},v.useRangeColor?{lineFill:v.color}:{}),{j:t,i:l,columnGroupIndex:f,pathFrom:r.pathFrom,pathTo:r.pathTo,strokeWidth:s,elSeries:g,x:o,y:d,series:e,barHeight:Math.abs(r.barHeight?r.barHeight:C),barWidth:Math.abs(r.barWidth?r.barWidth:E),elDataLabelsWrap:k,elGoalsMarkers:T,elBarShadows:A,visibleSeries:this.visibleI,type:"bar"}))}n.globals.seriesXvalues[h]=p,n.globals.seriesYvalues[h]=u,r.add(g)}return r}renderSeries({realIndex:e,pathFill:t,lineFill:i,j:a,i:n,columnGroupIndex:s,pathFrom:o,pathTo:r,strokeWidth:l,elSeries:c,x:d,y:u,y1:p,y2:h,series:f,barHeight:g,barWidth:m,barXPosition:_,barYPosition:v,elDataLabelsWrap:b,elGoalsMarkers:y,elBarShadows:x,visibleSeries:S,type:w,classes:C}){const E=this.w,k=new _$e(this.w,this.ctx);let T=!1;if(c._bindingsDelegated||(c._bindingsDelegated=!0,k.setupEventDelegation(c,`.apexcharts-${w}-area`)),!i){let t=function(e){const t=E.config.stroke.colors;let i;return Array.isArray(t)&&t.length>0&&(i=t[e],i||(i=""),"function"==typeof i)?i({value:E.seriesData.series[e][a],dataPointIndex:a,w:E}):i};const n="function"==typeof E.globals.stroke.colors[e]?t(e):E.globals.stroke.colors[e];i=this.barOptions.distributed?E.globals.stroke.colors[a]:n}const A=new tUe(this).handleBarDataLabels({x:d,y:u,y1:p,y2:h,i:n,j:a,series:f,realIndex:e,columnGroupIndex:s,barHeight:g,barWidth:m,barXPosition:_,barYPosition:v,visibleSeries:S});E.globals.isBarHorizontal||(A.dataLabelsPos.dataLabelsX+Math.max(m,E.globals.barPadForNumericAxis)<0||A.dataLabelsPos.dataLabelsX-Math.max(m,E.globals.barPadForNumericAxis)>E.layout.gridWidth)&&(T=!0),E.config.series[n].data[a]&&E.config.series[n].data[a].strokeColor&&(i=E.config.series[n].data[a].strokeColor),this.isNullValue&&(t="none");const R=E.config.chart.animations,I=R.animateGradually;let D=0;if(I&&!1!==I.enabled){const e=E.globals.dataPoints||1,t=I.delay||0,i=Math.min(t,.5*R.speed/Math.max(1,e));let s=f$e({style:"sequential",index:a,baseDelay:i});E.config.chart.stacked&&(s+=n*i*.5);D=s/(t||1)}if(!T){const s=k.renderPaths({i:n,j:a,realIndex:e,pathFrom:o,pathTo:r,stroke:i,strokeWidth:l,strokeLineCap:E.config.stroke.lineCap,fill:t,animationDelay:D,initialSpeed:E.config.chart.animations.speed,dataChangeSpeed:E.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${w}-area ${C}`,chartType:w,bindEventsOnPaths:!1});s.attr("clip-path",`url(#gridRectBarMask${E.globals.cuid})`);const d=E.config.forecastDataPoints;d.count>0&&a>=E.globals.dataPoints-d.count&&(s.node.setAttribute("stroke-dasharray",d.dashArray),s.node.setAttribute("stroke-width",d.strokeWidth),s.node.setAttribute("fill-opacity",d.fillOpacity)),void 0!==p&&void 0!==h&&(s.attr("data-range-y1",p),s.attr("data-range-y2",h));new m$e(this.w).setSelectionFilter(s,e,a),c.add(s),s.attr({cy:A.dataLabelsPos.bcy,cx:A.dataLabelsPos.bcx,j:a,val:E.seriesData.series[n][a],barHeight:g,barWidth:m}),null!==A.dataLabels&&b.add(A.dataLabels),A.totalDataLabels&&b.add(A.totalDataLabels),c.add(b),y&&c.add(y),x&&c.add(x)}return c}drawBarPaths({indexes:e,barHeight:t,strokeWidth:i,zeroW:a,x:n,y:s,yDivision:o,elSeries:r}){const l=this.w,c=e.i,d=e.j;let u;if(l.axisFlags.isXNumeric)u=(s=(l.seriesData.seriesX[c][d]-l.globals.minX)/this.invertedXRatio-t)+t*this.visibleI;else if(l.config.plotOptions.bar.hideZeroBarsWhenGrouped){const{nonZeroColumns:e,zeroEncounters:i}=this.barHelpers.getZeroValueEncounters({i:c,j:d});e>0&&(t=this.seriesLen*t/e),u=s+t*this.visibleI,u-=t*i}else u=s+t*this.visibleI;const p=this.isFunnel&&"trapezoid"===l.config.plotOptions.funnel.shape;if(this.isFunnel&&!p){const e=null!=a?a:0;a=e-(this.barHelpers.getXForValue(this.series[c][d],e)-e)/2}n=this.barHelpers.getXForValue(this.series[c][d],null!=a?a:0);const h=p?this.barHelpers.getFunnelTrapezoidPaths({barYPosition:u,barHeight:t,series:this.series,i:c,j:d,realIndex:e.realIndex,strokeWidth:i,w:l}):this.barHelpers.getBarpaths({barYPosition:u,barHeight:t,x1:a,x2:n,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,i:c,j:d,w:l});return p&&(a=h.x1,n=h.x),l.axisFlags.isXNumeric||(s+=o),this.barHelpers.barBackground({j:d,i:c,y1:u-t*this.visibleI,y2:t*this.seriesLen,elSeries:r}),{pathTo:h.pathTo,pathFrom:h.pathFrom,x1:a,x:n,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,c,d,0),barYPosition:u,barHeight:t}}drawColumnPaths({indexes:e,x:t,y:i,xDivision:a,barWidth:n,zeroH:s,strokeWidth:o,elSeries:r}){const l=this.w,c=e.realIndex,d=e.translationsIndex,u=e.i,p=e.j,h=e.bc;let f;if(l.axisFlags.isXNumeric){const e=this.getBarXForNumericXAxis({x:t,j:p,realIndex:c,barWidth:n});t=e.x,f=e.barXPosition}else if(l.config.plotOptions.bar.hideZeroBarsWhenGrouped){const{nonZeroColumns:e,zeroEncounters:i}=this.barHelpers.getZeroValueEncounters({i:u,j:p});e>0&&(n=this.seriesLen*n/e),f=t+n*this.visibleI,f-=n*i}else f=t+n*this.visibleI;i=this.barHelpers.getYForValue(this.series[u][p],s,d);const g=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:n,y1:s,y2:i,strokeWidth:o,isReversed:this.isReversed,series:this.series,realIndex:c,i:u,j:p,w:l});return l.axisFlags.isXNumeric||(t+=a),this.barHelpers.barBackground({bc:h,j:p,i:u,x1:f-o/2-n*this.visibleI,x2:n*this.seriesLen+o/2,elSeries:r}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x:t,y:i,goalY:this.barHelpers.getGoalValues("y",null,s,u,p,d),barXPosition:f,barWidth:n}}getBarXForNumericXAxis({x:e,barWidth:t,realIndex:i,j:a}){const n=this.w;let s=i;return n.seriesData.seriesX[i].length||(s=n.globals.maxValsInArrayIndex),KBe.isNumber(n.seriesData.seriesX[s][a])&&(e=(n.seriesData.seriesX[s][a]-n.globals.minX)/this.xRatio-t*this.seriesLen/2),{barXPosition:e+t*this.visibleI,x:e}}getPreviousPath(e,t,i){const a=this.w;let n=null;for(let s=0;s<a.globals.previousPaths.length;s++){const i=a.globals.previousPaths[s];i.paths&&i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(String(e),10)&&void 0!==i.paths[t]&&(n=i.paths[t].d)}return n&&aUe.pathCommandCount(n)===aUe.pathCommandCount(i)?n:i}static pathCommandCount(e){if(!e)return 0;const t=e.match(/[A-Za-z]/g);return t?t.length:0}}class nUe extends aUe{draw(e,t,i){const a=this.w,n=new _$e(this.w),s=a.globals.comboCharts?t:a.config.chart.type,o=new S$e(this.w);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=a.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&"ohlc"===this.candlestickOptions.type,this.coreUtils=new l$e(this.w),e=this.coreUtils.getLogSeries(e),this.series=e,this.yRatio=this.coreUtils.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const r=n.group({class:`apexcharts-${s}-series apexcharts-plot-series`});for(let l=0;l<e.length;l++){let t,s;this.isBoxPlot="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[l].type;const c=[],d=[],u=a.globals.comboCharts?i[l]:l,{columnGroupIndex:p}=this.barHelpers.getGroupIndex(u),h=n.group({class:"apexcharts-series",seriesName:KBe.escapeString(a.seriesData.seriesNames[u]),rel:l+1,"data:realIndex":u});$$e.addCollapsedClassToSeries(this.w,h,u),e[l].length>0&&(this.visibleI=this.visibleI+1);let f=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[u][0],f=u);const g=this.barHelpers.initialPositions(u),{y:m,barHeight:_,yDivision:v,zeroW:b,x:y,barWidth:x,xDivision:S,zeroH:w}=g;s=m,t=y,d.push(t+(null!=x?x:0)/2);const C=n.group({class:"apexcharts-datalabels","data:realIndex":u}),E=n.group({class:"apexcharts-bar-goals-markers"});for(let i=0;i<a.globals.dataPoints;i++){const n=this.barHelpers.getStrokeWidth(l,i,u);let r=null;const g={indexes:{i:l,j:i,realIndex:u,translationsIndex:f},x:t,y:s,strokeWidth:n,elSeries:h};r=this.isHorizontal?this.drawHorizontalBoxPaths($Be(BBe({},g),{yDivision:v,barHeight:_,zeroW:b})):this.drawVerticalBoxPaths($Be(BBe({},g),{xDivision:S,barWidth:x,zeroH:w})),s=r.y,t=r.x;const m=this.barHelpers.drawGoalLine({barXPosition:r.barXPosition,barYPosition:r.barYPosition,goalX:r.goalX,goalY:r.goalY,barHeight:_,barWidth:x});m&&E.add(m),i>0&&d.push(t+(null!=x?x:0)/2),c.push(s),r.pathTo.forEach((c,d)=>{const f=!this.isBoxPlot&&this.candlestickOptions.wick.useFillColor?r.color[d]:a.globals.stroke.colors[l],g=o.fillPath({seriesNumber:u,dataPointIndex:i,color:r.color[d],value:e[l][i]});this.renderSeries({realIndex:u,pathFill:g,lineFill:f,j:i,i:l,pathFrom:r.pathFrom,pathTo:c,strokeWidth:n,elSeries:h,x:t,y:s,series:e,columnGroupIndex:p,barHeight:_,barWidth:x,elDataLabelsWrap:C,elGoalsMarkers:E,visibleSeries:this.visibleI,type:a.config.chart.type})})}a.globals.seriesXvalues[u]=d,a.globals.seriesYvalues[u]=c,r.add(h)}return r}drawVerticalBoxPaths({indexes:e,x:t,xDivision:i,barWidth:a,zeroH:n,strokeWidth:s}){var o,r;const l=this.w,c=new _$e(this.w),d=e.i,u=e.j,{colors:p}=l.config.plotOptions.candlestick,{colors:h}=this.boxOptions,f=e.realIndex,g=e=>Array.isArray(e)?e[f]:e,m=g(p.upward),_=g(p.downward),v=this.yRatio[e.translationsIndex],b=this.getOHLCValue(f,u);let y=n,x=n,S=b.o<b.c?[m]:[_];this.isBoxPlot&&(S=[g(h.lower),g(h.upper)]);let w=Math.min(b.o,b.c),C=Math.max(b.o,b.c),E=b.m;l.axisFlags.isXNumeric&&(t=(l.seriesData.seriesX[f][u]-l.globals.minX)/this.xRatio-a/2);const k=t+a*this.visibleI;let T,A;if(void 0===(null==(o=this.series[d])?void 0:o[u])||null===(null==(r=this.series[d])?void 0:r[u])?(w=n,C=n):(w=n-w/v,C=n-C/v,y=n-b.h/v,x=n-b.l/v,E=n-b.m/v),this.isOHLC){const e=k+a/2,t=n-b.o/v,i=n-b.c/v;T=[c.move(e,y)+c.line(e,x)+c.move(e,t)+c.line(k,t)+c.move(e,i)+c.line(k+a,i)]}else T=this.isBoxPlot?[c.move(k,w)+c.line(k+a/2,w)+c.line(k+a/2,y)+c.line(k+a/4,y)+c.line(k+a-a/4,y)+c.line(k+a/2,y)+c.line(k+a/2,w)+c.line(k+a,w)+c.line(k+a,E)+c.line(k,E)+c.line(k,w+s/2),c.move(k,E)+c.line(k+a,E)+c.line(k+a,C)+c.line(k+a/2,C)+c.line(k+a/2,x)+c.line(k+a-a/4,x)+c.line(k+a/4,x)+c.line(k+a/2,x)+c.line(k+a/2,C)+c.line(k,C)+c.line(k,E)+"z"]:[c.move(k,C)+c.line(k+a/2,C)+c.line(k+a/2,y)+c.line(k+a/2,C)+c.line(k+a,C)+c.line(k+a,w)+c.line(k+a/2,w)+c.line(k+a/2,x)+c.line(k+a/2,w)+c.line(k,w)+c.line(k,C-s/2)];return A=l.globals.previousPaths.length>0?this.getPreviousPath(f,u,T[0]):c.move(k+a/2,w)+c.move(k,w),l.axisFlags.isXNumeric||(t+=i),{pathTo:T,pathFrom:A,x:t,y:C,goalY:this.barHelpers.getGoalValues("y",null,n,d,u,e.translationsIndex),barXPosition:k,color:S}}drawHorizontalBoxPaths({indexes:e,y:t,yDivision:i,barHeight:a,zeroW:n,strokeWidth:s}){var o,r;const l=this.w,c=new _$e(this.w),d=e.i,u=e.j,p=e.realIndex,{colors:h}=l.config.plotOptions.candlestick,{colors:f}=this.boxOptions,g=e=>Array.isArray(e)?e[p]:e,m=this.invertedYRatio,_=this.getOHLCValue(p,u);let v=_.o<_.c?[g(h.upward)]:[g(h.downward)];this.isBoxPlot&&(v=[g(f.lower),g(f.upper)]);let b=n,y=n,x=Math.min(_.o,_.c),S=Math.max(_.o,_.c),w=_.m;l.axisFlags.isXNumeric&&(t=(l.seriesData.seriesX[p][u]-l.globals.minX)/this.invertedXRatio-a/2);const C=t+a*this.visibleI;void 0===(null==(o=this.series[d])?void 0:o[u])||null===(null==(r=this.series[d])?void 0:r[u])?(x=n,S=n):(x=n+x/m,S=n+S/m,b=n+_.h/m,y=n+_.l/m,w=n+_.m/m);const E=[c.move(x,C)+c.line(x,C+a/2)+c.line(b,C+a/2)+c.line(b,C+a/2-a/4)+c.line(b,C+a/2+a/4)+c.line(b,C+a/2)+c.line(x,C+a/2)+c.line(x,C+a)+c.line(w,C+a)+c.line(w,C)+c.line(x+s/2,C),c.move(w,C)+c.line(w,C+a)+c.line(S,C+a)+c.line(S,C+a/2)+c.line(y,C+a/2)+c.line(y,C+a-a/4)+c.line(y,C+a/4)+c.line(y,C+a/2)+c.line(S,C+a/2)+c.line(S,C)+c.line(w,C)+"z"];let k;return k=l.globals.previousPaths.length>0?this.getPreviousPath(p,u,E[0]):c.move(x,C+a/2)+c.move(x,C),l.axisFlags.isXNumeric||(t+=i),{pathTo:E,pathFrom:k,x:S,y:t,goalX:this.barHelpers.getGoalValues("x",n,null,d,u,0),barYPosition:C,color:v}}getOHLCValue(e,t){const i=this.w,a=this.coreUtils,n=i=>i[e]&&null!=i[e][t]?a.getLogValAtSeriesIndex(i[e][t],e):0,s=n(i.candleData.seriesCandleH),o=n(i.candleData.seriesCandleO),r=n(i.candleData.seriesCandleM),l=n(i.candleData.seriesCandleC),c=n(i.candleData.seriesCandleL);return{o:this.isBoxPlot?s:o,h:this.isBoxPlot?o:s,m:r,l:this.isBoxPlot?l:c,c:this.isBoxPlot?c:l}}}class sUe{constructor(e,t){this.ctx=t,this.w=e}checkColorRange(){const e=this.w;let t=!1;const i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(e=>{e.from<=0&&(t=!0)}),t}getShadeColor(e,t,i,a){const n=this.w;let s=1;const o=n.config.plotOptions[e].shadeIntensity,r=this.determineColor(e,t,i);n.globals.hasNegs||a?s=n.config.plotOptions[e].reverseNegativeShade?r.percent<0?r.percent/100*(1.25*o):(1-r.percent/100)*(1.25*o):r.percent<=0?1-(1+r.percent/100)*o:(1-r.percent/100)*o:(s=1-r.percent/100,"treemap"===e&&(s=(1-r.percent/100)*(1.25*o)));let l=r.color;const c=new KBe;if(n.config.plotOptions[e].enableShades)if("dark"===this.w.config.theme.mode){const e=c.shadeColor(-1*s,r.color);l=KBe.hexToRgba(KBe.isColorHex(e)?e:KBe.rgb2hex(e),n.config.fill.opacity)}else{const e=c.shadeColor(s,r.color);l=KBe.hexToRgba(KBe.isColorHex(e)?e:KBe.rgb2hex(e),n.config.fill.opacity)}return{color:l,colorProps:r}}determineColor(e,t,i){const a=this.w,n=a.seriesData.series[t][i],s=a.config.plotOptions[e];let o=s.colorScale.inverse?i:t;s.distributed&&"treemap"===a.config.chart.type&&(o=i);let r=a.globals.colors[o],l=null,c=Math.min(...a.seriesData.series[t]),d=Math.max(...a.seriesData.series[t]);s.distributed||"heatmap"!==e||(c=a.globals.minY,d=a.globals.maxY),void 0!==s.colorScale.min&&(c=s.colorScale.min<a.globals.minY?s.colorScale.min:a.globals.minY,d=s.colorScale.max>a.globals.maxY?s.colorScale.max:a.globals.maxY);const u=Math.abs(d)+Math.abs(c);let p=100*n/(0===u?u-1e-6:u);if(s.colorScale.ranges.length>0){s.colorScale.ranges.map(e=>{if(n>=e.from&&n<=e.to){r=e.color,l=e.foreColor?e.foreColor:null,c=e.from,d=e.to;const t=Math.abs(d)+Math.abs(c);p=100*n/(0===t?t-1e-6:t)}})}return{color:r,foreColor:l,percent:p}}calculateDataLabels({text:e,x:t,y:i,i:a,j:n,colorProps:s,fontSize:o}){const r=this.w.config.dataLabels,l=new _$e(this.w),c=new E$e(this.w,this.ctx);let d=null;if(r.enabled){d=l.group({class:"apexcharts-data-labels"});const u=r.offsetX,p=r.offsetY,h=t+u,f=i+parseFloat(r.style.fontSize)/3+p;c.plotDataLabelsText({x:h,y:f,text:e,i:a,j:n,color:s.foreColor,parent:d,fontSize:o,dataLabelsConfig:r})}return d}}class oUe{constructor(e){this.w=e.w,this.lineCtx=e}sameValueSeriesFix(e,t){const i=this.w;if("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[e]){if(new l$e(this.lineCtx.w).seriesHaveSameValues(e)){const i=t[e].slice();i[i.length-1]=i[i.length-1]+1e-6,t[e]=i}}return t}calculatePoints({series:e,realIndex:t,x:i,y:a,i:n,j:s,prevY:o}){const r=this.w,l=[],c=[];let d=this.lineCtx.categoryAxisCorrection+r.config.markers.offsetX;return r.axisFlags.isXNumeric&&(d=(r.seriesData.seriesX[t][0]-r.globals.minX)/this.lineCtx.xRatio+r.config.markers.offsetX),0===s&&(l.push(d),c.push(KBe.isNumber(e[n][0])?o+r.config.markers.offsetY:null)),l.push(i+r.config.markers.offsetX),c.push(KBe.isNumber(e[n][s+1])?a+r.config.markers.offsetY:null),{x:l,y:c}}checkPreviousPaths({pathFromLine:e,pathFromArea:t,realIndex:i}){const a=this.w;for(let n=0;n<a.globals.previousPaths.length;n++){const s=a.globals.previousPaths[n];("line"===s.type||"area"===s.type)&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(i,10)&&("line"===s.type?(this.lineCtx.appendPathFrom=!1,e=a.globals.previousPaths[n].paths[0].d):"area"===s.type&&(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[n].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[n].paths[1]&&(e=a.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:e,pathFromArea:t}}determineFirstPrevY({i:e,realIndex:t,series:i,prevY:a,lineYPosition:n,translationsIndex:s}){var o,r,l;const c=this.w,d=c.config.chart.stacked&&!c.globals.comboCharts||c.config.chart.stacked&&c.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(o=this.w.config.series[t])?void 0:o.type)||"column"===(null==(r=this.w.config.series[t])?void 0:r.type));if(void 0!==(null==(l=i[e])?void 0:l[0]))a=(n=d&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-i[e][0]/this.lineCtx.yRatio[s]+2*(this.lineCtx.isReversed?i[e][0]/this.lineCtx.yRatio[s]:0);else if(d&&e>0&&void 0===i[e][0])for(let u=e-1;u>=0;u--)if(null!==i[u][0]&&void 0!==i[u][0]){a=n=this.lineCtx.prevSeriesY[u][0];break}return{prevY:a,lineYPosition:n}}}const rUe=e=>{const t=function(e){const t=[];let i=e[0],a=e[1],n=t[0]=cUe(i,a),s=1;for(let o=e.length-1;s<o;s++)i=a,a=e[s+1],t[s]=.5*(n+(n=cUe(i,a)));return t[s]=n,t}(e),i=e.length-1,a=[];let n,s,o,r;for(let l=0;l<i;l++)o=cUe(e[l],e[l+1]),Math.abs(o)<1e-6?t[l]=t[l+1]=0:(n=t[l]/o,s=t[l+1]/o,r=n*n+s*s,r>9&&(r=3*o/Math.sqrt(r),t[l]=r*n,t[l+1]=r*s));for(let l=0;l<=i;l++)r=(e[Math.min(i,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+t[l]*t[l])),a.push([r||0,t[l]*r||0]);return a},lUe={points(e){const t=rUe(e),i=e[1],a=e[0],n=[],s=t[1],o=t[0];n.push(a,[a[0]+o[0],a[1]+o[1],i[0]-s[0],i[1]-s[1],i[0],i[1]]);for(let r=2,l=t.length;r<l;r++){const i=e[r],a=t[r];n.push([i[0]-a[0],i[1]-a[1],i[0],i[1]])}return n},slice(e,t,i){const a=e.slice(t,i);if(t){if(i-t>1&&a[1].length<6){const e=a[0].length;a[1]=[2*a[0][e-2]-a[0][e-4],2*a[0][e-1]-a[0][e-3]].concat(a[1])}a[0]=a[0].slice(-2)}return a}};function cUe(e,t){return(t[1]-e[1])/(t[0]-e[0])}let dUe=class{constructor(e,t,i,a){this.ctx=t,this.w=e,this.xyRatios=i,this.xRatio=0,this.yRatio=[],this.zRatio=0,this.baseLineY=[],this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new C$e(this.w,this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new oUe(this),this.markers=new w$e(this.w,this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0,this.xDivision=0,this.zeroY=0,this.areaBottomY=0,this.strokeWidth=0,this.isReversed=!1,this.appendPathFrom=!1,this.elSeries=null,this.elPointsMain=null,this.elDataLabelsWrap=null}draw(e,t,i,a){var n;const s=this.w,o=new _$e(this.w),r=s.globals.comboCharts?t:s.config.chart.type,l=o.group({class:`apexcharts-${r}-series apexcharts-plot-series`}),c=new l$e(this.w);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];const d=[];for(let u=0;u<e.length;u++){e=this.lineHelpers.sameValueSeriesFix(u,e);const t=s.globals.comboCharts?i[u]:u,n=this.yRatio.length>1?t:0;this._initSerieVariables(e,u,t);const o=[],l=[],c=[];let p=s.globals.padHorizontal+this.categoryAxisCorrection;const h=1,f=[],g=[];$$e.addCollapsedClassToSeries(this.w,this.elSeries,t),s.axisFlags.isXNumeric&&s.seriesData.seriesX.length>0&&(p=(s.seriesData.seriesX[t][0]-s.globals.minX)/this.xRatio),c.push(p);const m=p;let _;const v=m;let b=this.zeroY,y=this.zeroY;const x=0;b=this.lineHelpers.determineFirstPrevY({i:u,realIndex:t,series:e,prevY:b,lineYPosition:x,translationsIndex:n}).prevY,"monotoneCubic"===s.config.stroke.curve&&null===e[u][0]?o.push(null):o.push(b);const S=b;let w;"rangeArea"===r&&(w=this.lineHelpers.determineFirstPrevY({i:u,realIndex:t,series:a,prevY:y,lineYPosition:x,translationsIndex:n}),y=w.prevY,_=y,l.push(null!==o[0]?y:null));const C=this._calculatePathsFrom({type:r,series:e,i:u,realIndex:t,translationsIndex:n,prevX:v,prevY:b,prevY2:y}),E=[o[0]],k=[l[0]],T={type:r,series:e,realIndex:t,translationsIndex:n,i:u,x:p,y:h,pX:m,pY:S,pathsFrom:C,linePaths:f,areaPaths:g,seriesIndex:i,lineYPosition:x,xArrj:c,yArrj:o,y2Arrj:l,seriesRangeEnd:a},A=this._iterateOverDataPoints($Be(BBe({},T),{iterations:"rangeArea"===r?e[u].length-1:void 0,isRangeStart:!0}));if("rangeArea"===r){const e=this._calculatePathsFrom({series:a,i:u,realIndex:t,prevX:v,prevY:y}),i=this._iterateOverDataPoints($Be(BBe({},T),{series:a,xArrj:[p],yArrj:E,y2Arrj:k,pY:_,areaPaths:A.areaPaths,pathsFrom:e,iterations:a[u].length-1,isRangeStart:!1})),n=A.linePaths.length/2;for(let t=0;t<n;t++)A.linePaths[t]=i.linePaths[t+n]+A.linePaths[t];A.linePaths.splice(n),A.pathFromLine=i.pathFromLine+A.pathFromLine}else A.pathFromArea+="z";this._handlePaths({type:r,realIndex:t,i:u,paths:A}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null==(n=s.config.series[0])?void 0:n.zIndex)&&d.sort((e,t)=>Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))),s.config.chart.stacked)for(let u=d.length-1;u>=0;u--)l.add(d[u]);else for(let u=0;u<d.length;u++)l.add(d[u]);return l}_initSerieVariables(e,t,i){const a=this.w,n=new _$e(this.w);this.xDivision=a.layout.gridWidth/(a.globals.dataPoints-("on"===a.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width;let s=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[i],s=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.layout.gridHeight-this.baseLineY[s]-(this.isReversed?a.layout.gridHeight:0)+(this.isReversed?2*this.baseLineY[s]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.layout.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.layout.gridHeight),this.categoryAxisCorrection=this.xDivision/2;const o=a.config.series[i];if(this.elSeries=n.group({class:"apexcharts-series",zIndex:void 0!==o.zIndex?o.zIndex:i,seriesName:KBe.escapeString(a.seriesData.seriesNames[i])}),this.elPointsMain=n.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),a.globals.hasNullValues){const e=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[a.layout.gridHeight+a.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==e&&this.elPointsMain.add(e)}this.elDataLabelsWrap=n.group({class:"apexcharts-datalabels","data:realIndex":i});const r=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}_calculatePathsFrom({type:e,series:t,i:i,realIndex:a,translationsIndex:n,prevX:s,prevY:o,prevY2:r}){const l=this.w,c=new _$e(this.w);let d,u,p,h;if(null===t[i][0]){for(let f=0;f<t[i].length;f++)if(null!==t[i][f]){s=this.xDivision*f,o=this.zeroY-t[i][f]/this.yRatio[n],d=c.move(s,o),u=c.move(s,this.areaBottomY);break}}else d=c.move(s,o),"rangeArea"===e&&(d=c.move(s,r)+c.line(s,o)),u=c.move(s,this.areaBottomY)+c.line(s,o);if(p=c.move(0,this.areaBottomY)+c.line(0,this.areaBottomY),h=c.move(0,this.areaBottomY)+c.line(0,this.areaBottomY),l.globals.previousPaths.length>0){const e=this.lineHelpers.checkPreviousPaths({pathFromLine:p,pathFromArea:h,realIndex:a});p=e.pathFromLine,h=e.pathFromArea}return{prevX:s,prevY:o,linePath:d,areaPath:u,pathFromLine:p,pathFromArea:h}}_handlePaths({type:e,realIndex:t,i:i,paths:a}){const n=this.w,s=new _$e(this.w),o=new S$e(this.w);this.prevSeriesY.push(a.yArrj),n.globals.seriesXvalues[t]=a.xArrj,n.globals.seriesYvalues[t]=a.yArrj;const r=n.config.forecastDataPoints;if(r.count>0&&"rangeArea"!==e){const e=n.globals.seriesXvalues[t][n.globals.seriesXvalues[t].length-r.count-1],i=s.drawRect(e,0,n.layout.gridWidth,n.layout.gridHeight,0);n.dom.elForecastMask.appendChild(i.node);const a=s.drawRect(0,0,e,n.layout.gridHeight,0);n.dom.elNonForecastMask.appendChild(a.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:t});const l={i:i,realIndex:t,animationDelay:i,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${e}`};if("area"===e){const e=o.fillPath({seriesNumber:t});for(let t=0;t<a.areaPaths.length;t++){const i=s.renderPaths($Be(BBe({},l),{pathFrom:a.pathFromArea,pathTo:a.areaPaths[t],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:e}));this.elSeries.add(i)}}if(n.config.stroke.show&&!this.pointsChart){let c=null;if("line"===e)c=o.fillPath({seriesNumber:t,i:i});else if("solid"===n.config.stroke.fill.type)c=n.globals.stroke.colors[t];else{const e=n.config.fill;n.config.fill=n.config.stroke.fill,c=o.fillPath({seriesNumber:t,i:i}),n.config.fill=e}for(let i=0;i<a.linePaths.length;i++){let d=c;"rangeArea"===e&&(d=o.fillPath({seriesNumber:t}));const u=$Be(BBe({},l),{pathFrom:a.pathFromLine,pathTo:a.linePaths[i],stroke:c,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:"rangeArea"===e?d:"none"}),p=s.renderPaths(u);if(this.elSeries.add(p),p.attr("fill-rule","evenodd"),r.count>0&&"rangeArea"!==e){const e=s.renderPaths(u);e.node.setAttribute("stroke-dasharray",r.dashArray),r.strokeWidth&&e.node.setAttribute("stroke-width",r.strokeWidth),this.elSeries.add(e),e.attr("clip-path",`url(#forecastMask${n.globals.cuid})`),p.attr("clip-path",`url(#nonForecastMask${n.globals.cuid})`)}}}}_iterateOverDataPoints({type:e,series:t,iterations:i,realIndex:a,translationsIndex:n,i:s,x:o,y:r,pX:l,pY:c,pathsFrom:d,linePaths:u,areaPaths:p,seriesIndex:h,lineYPosition:f,xArrj:g,yArrj:m,y2Arrj:_,isRangeStart:v,seriesRangeEnd:b}){var y,x;const S=this.w,w=new _$e(this.w),C=this.yRatio;let{prevY:E,linePath:k,areaPath:T,pathFromLine:A,pathFromArea:R}=d;const I=KBe.isNumber(S.globals.minYArr[a])?S.globals.minYArr[a]:S.globals.minY;i||(i=S.globals.dataPoints>1?S.globals.dataPoints-1:S.globals.dataPoints);const D=(e,t)=>t-e/C[n]+2*(this.isReversed?e/C[n]:0);let O=r;const M=S.config.chart.stacked&&!S.globals.comboCharts||S.config.chart.stacked&&S.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(y=this.w.config.series[a])?void 0:y.type)||"column"===(null==(x=this.w.config.series[a])?void 0:x.type));let N=S.config.stroke.curve;Array.isArray(N)&&(N=Array.isArray(h)?N[h[s]]:N[s]);let L,P=0;for(let F=0;F<i&&0!==t[s].length;F++){const n=void 0===t[s][F+1]||null===t[s][F+1];if(S.axisFlags.isXNumeric){let e=S.seriesData.seriesX[a][F+1];void 0===S.seriesData.seriesX[a][F+1]&&(e=S.seriesData.seriesX[a][i-1]),o=(e-S.globals.minX)/this.xRatio}else o+=this.xDivision;if(M)if(s>0&&S.globals.collapsedSeries.length<S.config.series.length-1){const e=e=>{for(let t=e;t>0;t--){if(!(S.globals.collapsedSeriesIndices.indexOf((null==h?void 0:h[t])||t)>-1))return t;t--}return 0};f=this.prevSeriesY[e(s-1)][F+1]}else f=this.zeroY;else f=this.zeroY;n?r=D(I,f):(r=D(t[s][F+1],f),"rangeArea"===e&&(O=D(b[s][F+1],f))),g.push(null===t[s][F+1]?null:o),!n||"smooth"!==S.config.stroke.curve&&"monotoneCubic"!==S.config.stroke.curve?(m.push(r),_.push(O)):(m.push(null),_.push(null));const d=this.lineHelpers.calculatePoints({series:t,x:o,y:r,realIndex:a,i:s,j:F,prevY:E}),y=this._createPaths({type:e,series:t,i:s,j:F,x:o,y:r,y2:O,xArrj:g,yArrj:m,y2Arrj:_,pX:l,pY:c,pathState:P,segmentStartX:L,linePath:k,areaPath:T,linePaths:u,areaPaths:p,curve:N,isRangeStart:v});p=y.areaPaths,u=y.linePaths,l=y.pX,c=y.pY,P=y.pathState,L=y.segmentStartX,T=y.areaPath,k=y.linePath,!this.appendPathFrom||S.globals.hasNullValues||"monotoneCubic"===N&&"rangeArea"===e||(A+=w.line(o,this.areaBottomY),R+=w.line(o,this.areaBottomY)),this.handleNullDataPoints(t,d,s,F,a),this._handleMarkersAndLabels({type:e,pointsPos:d,i:s,j:F,realIndex:a,isRangeStart:v})}return{yArrj:m,xArrj:g,pathFromArea:R,areaPaths:p,pathFromLine:A,linePaths:u,linePath:k,areaPath:T}}_handleMarkersAndLabels({type:e,pointsPos:t,isRangeStart:i,i:a,j:n,realIndex:s}){const o=this.w,r=new E$e(this.w,this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:s,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{!(!o.globals.dataChanged&&!o.globals.resized)&&o.seriesData.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");const e=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:s,j:n+1});null!==e&&this.elPointsMain.add(e)}const l=r.drawDataLabel({type:e,isRangeStart:i,pos:t,i:s,j:n+1});null!==l&&this.elDataLabelsWrap.add(l)}_createPaths({type:e,series:t,i:i,j:a,x:n,y:s,xArrj:o,yArrj:r,y2:l,y2Arrj:c,pX:d,pY:u,pathState:p,segmentStartX:h,linePath:f,areaPath:g,linePaths:m,areaPaths:_,curve:v,isRangeStart:b}){const y=new _$e(this.w),x=this.areaBottomY,S="rangeArea"===e,w="rangeArea"===e&&b;switch(v){case"monotoneCubic":{const e=b?r:c,n=(e,t)=>e.map((e,i)=>[e,t[i]]).filter(e=>null!==e[1]),s=e=>{const t=[];let i=0;return e.forEach(e=>{null!==e?i++:i>0&&(t.push(i),i=0)}),i>0&&t.push(i),t},l=(e,t)=>{const i=s(e),a=[];for(let n=0,s=0;n<i.length;s+=i[n++])a[n]=lUe.slice(t,s,s+i[n]);return a};switch(p){case 0:if(null===e[a+1])break;p=1;case 1:if(!(S?o.length===t[i].length:a===t[i].length-2))break;case 2:{const t=b?o:o.slice().reverse(),i=b?e:e.slice().reverse(),a=n(t,i),s=a.length>1?lUe.points(a):a;let r=[];S&&(w?_=a:r=_.reverse());let c=0,d=0;if(l(i,s).forEach(e=>{c++;const t=(e=>{let t="";for(let i=0;i<e.length;i++){const a=e[i],n=a.length;n>4?(t+=`C${a[0]}, ${a[1]}`,t+=`, ${a[2]}, ${a[3]}`,t+=`, ${a[4]}, ${a[5]}`):n>2&&(t+=`S${a[0]}, ${a[1]}`,t+=`, ${a[2]}, ${a[3]}`)}return t})(e),i=d;d+=e.length;const n=d-1;w?f=y.move(a[i][0],a[i][1])+t:S?f=y.move(r[i][0],r[i][1])+y.line(a[i][0],a[i][1])+t+y.line(r[n][0],r[n][1]):(f=y.move(a[i][0],a[i][1])+t,g=f+y.line(a[n][0],x)+y.line(a[i][0],x)+"z",_.push(g)),m.push(f)}),S&&c>1&&!w){const e=m.slice(c).reverse();m.splice(c),e.forEach(e=>m.push(e))}p=0;break}}break}case"smooth":{const e=.35*(n-d);if(null===t[i][a])p=0;else switch(p){case 0:if(h=d,f=w?y.move(d,c[a])+y.line(d,u):y.move(d,u),g=y.move(d,u),null===t[i][a+1]||void 0===t[i][a+1]){m.push(f),_.push(g);break}if(p=1,a<t[i].length-2){const t=y.curve(d+e,u,n-e,s,n,s);f+=t,g+=t;break}case 1:if(null===t[i][a+1])f+=w?y.line(d,l):y.move(d,u),g+=y.line(d,x)+y.line(h,x)+"z",m.push(f),_.push(g),p=-1;else{const o=y.curve(d+e,u,n-e,s,n,s);f+=o,g+=o,a>=t[i].length-2&&(w&&(f+=y.curve(n,s,n,s,n,l)+y.move(n,l)),g+=y.curve(n,s,n,s,n,x)+y.line(h,x)+"z",m.push(f),_.push(g),p=-1)}}d=n,u=s;break}default:{const e=(e,t,i)=>{let a="";switch(e){case"stepline":a=y.line(t,null,"H")+y.line(null,i,"V");break;case"linestep":a=y.line(null,i,"V")+y.line(t,null,"H");break;case"straight":a=y.line(t,i)}return a};if(null===t[i][a])p=0;else switch(p){case 0:if(h=d,f=w?y.move(d,c[a])+y.line(d,u):y.move(d,u),g=y.move(d,u),null===t[i][a+1]||void 0===t[i][a+1]){m.push(f),_.push(g);break}if(p=1,a<t[i].length-2){const t=e(v,n,s);f+=t,g+=t;break}case 1:if(null===t[i][a+1])f+=w?y.line(d,l):y.move(d,u),g+=y.line(d,x)+y.line(h,x)+"z",m.push(f),_.push(g),p=-1;else{const o=e(v,n,s);f+=o,g+=o,a>=t[i].length-2&&(w&&(f+=y.line(n,l)),g+=y.line(n,x)+y.line(h,x)+"z",m.push(f),_.push(g),p=-1)}}d=n,u=s;break}}return{linePaths:m,areaPaths:_,pX:d,pY:u,pathState:p,segmentStartX:h,linePath:f,areaPath:g}}handleNullDataPoints(e,t,i,a,n){const s=this.w;if(null===e[i][a]&&s.config.markers.showNullDataPoints||1===e[i].length){let e=this.strokeWidth-s.config.markers.strokeWidth/2;e>0||(e=0);const i=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:n,j:a+1,pSize:e,alwaysDrawMarker:!0});null!==i&&this.elPointsMain.add(i)}}};class uUe{constructor(e){this.w=e}drawYAxisTexts(e,t,i,a){const n=this.w,s=n.config.yaxis[0],o=n.formatters.yLabelFormatters[0];return new _$e(this.w).drawText({x:e+s.labels.offsetX,y:t+s.labels.offsetY,text:o(a,i),textAnchor:"middle",fontSize:s.labels.style.fontSize,fontFamily:s.labels.style.fontFamily,foreColor:Array.isArray(s.labels.style.colors)?s.labels.style.colors[i]:s.labels.style.colors})}}class pUe{constructor(e,t){this.ctx=t,this.w=e,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==e.globals.stroke.colors?e.globals.stroke.colors:e.globals.colors,this.defaultSize=Math.min(e.layout.gridWidth,e.layout.gridHeight),this.centerY=this.defaultSize/2,this.centerX=e.layout.gridWidth/2,"radialBar"===e.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(e.config.plotOptions.pie.endAngle-e.config.plotOptions.pie.startAngle),this.initialAngle=e.config.plotOptions.pie.startAngle%this.fullAngle,e.globals.radialSize=this.defaultSize/2.05-e.config.stroke.width-(e.config.chart.sparkline.enabled?0:e.config.chart.dropShadow.blur),this.donutSize=e.globals.radialSize*parseInt(e.config.plotOptions.pie.donut.size,10)/100;const i=e.config.plotOptions.pie.customScale,a=e.layout.gridWidth/2,n=e.layout.gridHeight/2;this.translateX=a-a*i,this.translateY=n-n*i,this.dataLabelsGroup=new _$e(this.w).group({class:"apexcharts-datalabels-group",transform:`translate(${this.translateX}, ${this.translateY}) scale(${i})`}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}draw(e){const t=this.w,i=new _$e(this.w),a=i.group({class:"apexcharts-pie"});if(t.globals.noData)return a;let n=0;for(let l=0;l<e.length;l++)n+=KBe.negToZero(e[l]);const s=[],o=i.group();0===n&&(n=1e-5),e.forEach(e=>{this.maxY=Math.max(this.maxY,e)}),t.config.yaxis[0].max&&(this.maxY=t.config.yaxis[0].max),"back"===t.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(a);for(let l=0;l<e.length;l++){const i=this.fullAngle*KBe.negToZero(e[l])/n;s.push(i),"polarArea"===this.chartType?(s[l]=this.fullAngle/e.length,this.sliceSizes.push(t.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(t.globals.radialSize)}if(t.globals.dataChanged){let e,i=0;for(let a=0;a<t.globals.previousPaths.length;a++)i+=KBe.negToZero(t.globals.previousPaths[a]);for(let a=0;a<t.globals.previousPaths.length;a++)e=this.fullAngle*KBe.negToZero(t.globals.previousPaths[a])/i,this.prevSectorAngleArr.push(e)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){const e=i.drawCircle(this.donutSize);e.attr({cx:this.centerX,cy:this.centerY,fill:t.config.plotOptions.pie.donut.background?t.config.plotOptions.pie.donut.background:"transparent"}),o.add(e)}const r=this.drawArcs(s,e);if(this.sliceLabels.forEach(e=>{r.add(e)}),o.attr({transform:`translate(${this.translateX}, ${this.translateY}) scale(${t.config.plotOptions.pie.customScale})`}),o.add(r),a.add(o),this.donutDataLabels.show){const e=this.initialAnim&&!t.globals.resized&&!t.globals.dataChanged&&this.animDur>0,i=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:e?0:this.donutDataLabels.show});if(e){const e=this.dataLabelsGroup.node;e.style.transition="opacity 280ms ease-out",setTimeout(()=>{e.style.opacity="1"},this.animDur)}a.add(i)}return"front"===t.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(a),a}drawArcs(e,t){const i=this.w,a=new m$e(this.w),n=new _$e(this.w),s=new S$e(this.w),o=n.group({class:"apexcharts-slices"});let r=this.initialAngle,l=this.initialAngle,c=this.initialAngle,d=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(let u=0;u<e.length;u++){const p=n.group({class:"apexcharts-series apexcharts-pie-series",seriesName:KBe.escapeString(i.seriesData.seriesNames[u]),rel:u+1,"data:realIndex":u});o.add(p),r=c,l=d,c=r+e[u],d=l+this.prevSectorAngleArr[u];const h=c<r?this.fullAngle+c-r:c-r,f=s.fillPath({seriesNumber:u,size:this.sliceSizes[u],value:t[u]}),g=this.getChangedPath(l,d),m=n.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[u]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:i.config.fill.opacity,classes:`apexcharts-pie-area apexcharts-${this.chartType.toLowerCase()}-slice-${u}`});if(m.attr({index:0,j:u}),a.setSelectionFilter(m,0,u),i.config.chart.dropShadow.enabled){const e=i.config.chart.dropShadow;a.dropShadow(m,e,u)}this.addListeners(m,this.donutDataLabels);let _={x:0,y:0};const v=(r+h/2)%this.fullAngle;let b={x:this.centerX,y:this.centerY};"pie"===this.chartType||"polarArea"===this.chartType?(_=KBe.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,v),b=KBe.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/2,v)):"donut"===this.chartType&&(_=KBe.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,v),b=KBe.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2,v)),_$e.setAttrs(m.node,{"data:angle":h,"data:startAngle":r,"data:strokeWidth":this.strokeWidth,"data:value":t[u],"data:cx":b.x,"data:cy":b.y}),p.add(m);let y=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(y=h/this.fullAngle*i.config.chart.animations.speed,0===y&&(y=1),this.animDur=y+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[u],endAngle:c,startAngle:r,prevStartAngle:l,prevEndAngle:d,animateStartingPos:!0,i:u,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[u],endAngle:c,startAngle:r,i:u,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:y}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.node.addEventListener("mouseup",this.pieClicked.bind(this,u)),void 0!==i.interact.selectedDataPoints[0]&&i.interact.selectedDataPoints[0].indexOf(u)>-1)if(this.initialAnim&&!i.globals.resized&&!i.globals.dataChanged&&this.animDur>0){const e=this,t=u;setTimeout(()=>e.pieClicked(t),this.animDur)}else this.pieClicked(u);if(i.config.dataLabels.enabled){const t=_.x,s=_.y;let o=100*h/this.fullAngle+"%";if(0!==h&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[u]){const e=i.config.dataLabels.formatter;void 0!==e&&(o=e(i.globals.seriesPercent[u][0],{seriesIndex:u,w:i}));const r=i.globals.dataLabels.style.colors[u],l=n.group({class:"apexcharts-datalabels"}),c=n.drawText({x:t,y:s,text:o,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:r});if(l.add(c),i.config.dataLabels.dropShadow.enabled){const e=i.config.dataLabels.dropShadow;a.dropShadow(c,e)}c.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(c.node.classList.add("apexcharts-pie-label-delay"),c.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(l)}}}return o}addListeners(e,t){const i=new _$e(this.w);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}animatePaths(e,t){const i=this.w;let a=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,n=a,s=t.startAngle;const o=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(s=t.prevEndAngle,n=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===i.config.series.length-1&&(a+o>this.fullAngle?t.endAngle=t.endAngle-(a+o):a+o<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(a+o)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(e,s,o,a,n,t)}animateArc(e,t,i,a,n,s){const o=this,r=this.w,l=new g$e(this.w),c=s.size;let d;(isNaN(t)||isNaN(n))&&(t=i,n=a,s.dur=0);let u=a,p=i;const h=t<i?this.fullAngle+t-i:t-i;r.globals.dataChanged&&s.shouldSetPrevPaths&&s.prevEndAngle&&(d=o.getPiePath({me:o,startAngle:s.prevStartAngle,angle:s.prevEndAngle<s.prevStartAngle?this.fullAngle+s.prevEndAngle-s.prevStartAngle:s.prevEndAngle-s.prevStartAngle,size:c}),e.attr({d:d})),0!==s.dur?e.animate(s.dur,s.animBeginArr[s.i]).after(function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(r.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),s.i===r.config.series.length-1&&l.animationCompleted(e)}).during(r=>{u=h+(a-h)*r,s.animateStartingPos&&(u=n+(a-n)*r,p=t-n+(i-(t-n))*r),d=o.getPiePath({me:o,startAngle:p,angle:u,size:c}),e.node.setAttribute("data:pathOrig",d),e.attr({d:d})}):(d=o.getPiePath({me:o,startAngle:p,angle:a,size:c}),s.isTrack||(r.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",d),e.attr({d:d,"stroke-width":o.strokeWidth}))}pieClicked(e){const t=this.w,i=this,a=i.sliceSizes[e]+(t.config.plotOptions.pie.expandOnClick?4:0),n=t.dom.Paper.findOne(`.apexcharts-${i.chartType.toLowerCase()}-slice-${e}`);if("true"===n.attr("data:pieClicked")){n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner();const e=n.attr("data:pathOrig");return void n.attr({d:e})}{const i=t.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(i,e=>{e.setAttribute("data:pieClicked","false");const t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)}),t.interact.capturedDataPointIndex=e,n.attr("data:pieClicked","true")}const s=parseInt(n.attr("data:startAngle"),10),o=parseInt(n.attr("data:angle"),10),r=i.getPiePath({me:i,startAngle:s,angle:o,size:a});360!==o&&n.plot(r)}getChangedPath(e,t){let i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),i}getPiePath({me:e,startAngle:t,angle:i,size:a}){let n;const s=new _$e(this.w),o=t,r=Math.PI*(o-90)/180;let l=i+t;Math.ceil(l)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(l=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(l)>this.fullAngle&&(l-=this.fullAngle);const c=Math.PI*(l-90)/180,d=e.centerX+a*Math.cos(r),u=e.centerY+a*Math.sin(r),p=e.centerX+a*Math.cos(c),h=e.centerY+a*Math.sin(c),f=KBe.polarToCartesian(e.centerX,e.centerY,e.donutSize,l),g=KBe.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),m=i>180?1:0,_=["M",d,u,"A",a,a,0,m,1,p,h];return n="donut"===e.chartType?[..._,"L",f.x,f.y,"A",e.donutSize,e.donutSize,0,m,0,g.x,g.y,"L",d,u,"z"].join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[..._,"L",e.centerX,e.centerY,"L",d,u].join(" "):[..._].join(" "),s.roundPathCorners(n,2*this.strokeWidth)}drawPolarElements(e){const t=this.w,i=new I$e(this.w),a=new _$e(this.w),n=new uUe(this.w),s=a.group(),o=a.group(),r=i.niceScale(0,Math.ceil(this.maxY),0),l=r.result.reverse(),c=r.result.length;this.maxY=r.niceMax;let d=t.globals.radialSize;const u=d/(c-1);for(let p=0;p<c-1;p++){const e=a.drawCircle(d);if(e.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){const e=n.drawYAxisTexts(this.centerX,this.centerY-d+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,p,l[p]);o.add(e)}s.add(e),d-=u}this.drawSpokes(e),e.add(s),e.add(o)}renderInnerDataLabels(e,t,i){const a=this.w,n=new _$e(this.w),s=t.total.show;e.node.innerHTML="",e.node.style.opacity=i.opacity;const o=i.centerX,r=this.donutDataLabels.total.label?i.centerY:i.centerY-i.centerY/6;let l,c;l=void 0===t.name.color?a.globals.colors[0]:t.name.color;let d=t.name.fontSize,u=t.name.fontFamily,p=t.name.fontWeight;c=void 0===t.value.color?a.config.chart.foreColor:t.value.color;const h=t.value.formatter;let f="",g="";if(s?(l=t.total.color,d=t.total.fontSize,u=t.total.fontFamily,p=t.total.fontWeight,g=this.donutDataLabels.total.label?t.total.label:"",f=t.total.formatter(a)):1===a.seriesData.series.length&&(f=h(a.seriesData.series[0],a),g=a.seriesData.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,a)),t.name.show){const i=n.drawText({x:o,y:r+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:l,fontSize:d,fontWeight:p,fontFamily:u});i.node.classList.add("apexcharts-datalabel-label"),e.add(i)}if(t.value.show){const i=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,a=n.drawText({x:o,y:r+i,text:f,textAnchor:"middle",foreColor:c,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});a.node.classList.add("apexcharts-datalabel-value"),e.add(a)}return e}printInnerLabels(e,t,i,a){const n=this.w;let s;a?s=void 0===e.name.color?n.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:e.name.color:n.seriesData.series.length>1&&e.total.show&&(s=e.total.color);const o=n.dom.baseEl.querySelector(".apexcharts-datalabel-label"),r=n.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,n),a||"function"!=typeof e.total.formatter||(i=e.total.formatter(n));const l=t===e.total.label;if(t=this.donutDataLabels.total.label?e.name.formatter(t,l,n):"",null!==o&&(o.textContent=t),null!==r&&(r.textContent=i),null!==o){o.style.fill=s}}printDataLabelsInner(e,t){const i=this.w,a=e.getAttribute("data:value"),n=i.seriesData.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.seriesData.series.length>1&&this.printInnerLabels(t,n,a,e);const s=i.dom.baseEl.querySelector(".apexcharts-datalabels-group");if(null!==s){s.style.opacity="1"}}drawSpokes(e){const t=this.w,i=new _$e(this.w),a=t.config.plotOptions.polarArea.spokes;if(0===a.strokeWidth)return;const n=[],s=360/t.seriesData.series.length;for(let o=0;o<t.seriesData.series.length;o++)n.push(KBe.polarToCartesian(this.centerX,this.centerY,t.globals.radialSize,t.config.plotOptions.pie.startAngle+s*o));n.forEach((t,n)=>{const s=i.drawLine(t.x,t.y,this.centerX,this.centerY,Array.isArray(a.connectorColors)?a.connectorColors[n]:a.connectorColors);e.add(s)})}revertDataLabelsInner(){const e=this.w;if(this.donutDataLabels.show){const t=e.dom.Paper.findOne(".apexcharts-datalabels-group"),i=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(i)}}}function hUe(e,t){let i=0;for(let s=0;s<e.length;s++)i+=e[s];const a=t/i,n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=e[s]*a;return n}function fUe(e,t,i,a){const n=a*a,s=i*i;return Math.max(n*t/s,s/(n*e))}function gUe(e,t,i,a,n,s){if(0===e)return!0;return fUe(t,i,a,s)>=fUe(Math.min(t,n),Math.max(i,n),a+n,s)}function mUe(e,t,i,a,n,s,o,r){if(o>=r){const o=a/r;let l=s;for(let a=0;a<i;a++){const i=t[a]/o;e.push([n,l,n+o,l+i]),l+=i}}else{const r=a/o;let l=n;for(let a=0;a<i;a++){const i=t[a]/r;e.push([l,s,l+i,s+r]),l+=i}}}function _Ue(e,t,i,a,n){const s=[],o=e.length;if(0===o)return s;const r=new Array(o);let l=0,c=0,d=1/0,u=-1/0,p=0;for(;p<o;){const o=Math.min(a,n),h=e[p];if(gUe(l,d,u,c,h,o))r[l]=h,l++,c+=h,h<d&&(d=h),h>u&&(u=h),p++;else{if(mUe(s,r,l,c,t,i,a,n),a>=n){const e=c/n;t+=e,a-=e}else{const e=c/a;i+=e,n-=e}l=0,c=0,d=1/0,u=-1/0}}return l>0&&mUe(s,r,l,c,t,i,a,n),s}const vUe={generate:function(e,t,i){const a=e.length,n=new Array(a);for(let r=0;r<a;r++){let t=0;const i=e[r];for(let e=0;e<i.length;e++)t+=i[e];n[r]=t}const s=_Ue(hUe(n,t*i),0,0,t,i),o=new Array(a);for(let r=0;r<a;r++){const t=s[r],i=t[0],a=t[1],n=t[2]-i,l=t[3]-a;o[r]=_Ue(hUe(e[r],n*l),i,a,n,l)}return o}};WVe.use({line:dUe,area:dUe,scatter:dUe,bubble:dUe,rangeArea:dUe,bar:aUe,column:aUe,barStacked:class extends aUe{draw(e,t){const i=this.w;this.graphics=new _$e(this.w),this.bar=new aUe(this.w,this.ctx,this.xyRatios);const a=new l$e(this.w);e=a.getLogSeries(e),this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===i.config.chart.stackType&&(e=i.globals.comboCharts?t.map(e=>i.globals.seriesPercent[e]):i.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);const n=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"});let s=0,o=0;for(let r=0,l=0;r<e.length;r++,l++){const a=i.globals.comboCharts?t[r]:r,{groupIndex:c,columnGroupIndex:d}=this.barHelpers.getGroupIndex(a);this.groupCtx=this[i.labelData.seriesGroups[c]];const u=[],p=[];let h=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[a][0],h=a),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;let f=this.graphics.group({class:"apexcharts-series",seriesName:KBe.escapeString(i.seriesData.seriesNames[a]),rel:r+1,"data:realIndex":a});$$e.addCollapsedClassToSeries(this.w,f,a);const g=this.graphics.group({class:"apexcharts-datalabels","data:realIndex":a}),m=this.graphics.group({class:"apexcharts-bar-goals-markers"}),_=this.initialPositions(s,o,void 0,void 0,void 0,void 0,h),{xDivision:v,yDivision:b,zeroH:y,zeroW:x}=_;let S=_.barHeight,w=_.barWidth;o=_.y,s=_.x,i.globals.barHeight=S,i.globals.barWidth=w,this.barHelpers.initializeStackedXYVars(this),1===this.groupCtx.prevY.length&&this.groupCtx.prevY[0].every(e=>isNaN(e))&&(this.groupCtx.prevY[0]=this.groupCtx.prevY[0].map(()=>y),this.groupCtx.prevYF[0]=this.groupCtx.prevYF[0].map(()=>0));for(let t=0;t<i.globals.dataPoints;t++){const n=this.barHelpers.getStrokeWidth(r,t,a),_={indexes:{i:r,j:t,realIndex:a,translationsIndex:h,bc:l},strokeWidth:n,x:s,y:o,elSeries:f,columnGroupIndex:d,seriesGroup:i.labelData.seriesGroups[c]};let C=null;this.isHorizontal?(C=this.drawStackedBarPaths($Be(BBe({},_),{zeroW:x,barHeight:S,yDivision:b})),w=this.series[r][t]/this.invertedYRatio):(C=this.drawStackedColumnPaths($Be(BBe({},_),{xDivision:v,barWidth:w,zeroH:y})),S=this.series[r][t]/this.yRatio[h]);const E=this.barHelpers.drawGoalLine({barXPosition:C.barXPosition,barYPosition:C.barYPosition,goalX:C.goalX,goalY:C.goalY,barHeight:S,barWidth:w});E&&m.add(E),o=C.y,s=C.x,u.push(s),p.push(o);const k=this.barHelpers.getPathFillColor(e,r,t,a);let T="";const A=i.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";("bottom"===this.barHelpers.arrBorderRadius[a][t]&&i.seriesData.series[a][t]>0||"top"===this.barHelpers.arrBorderRadius[a][t]&&i.seriesData.series[a][t]<0)&&(T=A),f=this.renderSeries($Be(BBe({realIndex:a,pathFill:k.color},k.useRangeColor?{lineFill:k.color}:{}),{j:t,i:r,columnGroupIndex:d,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:n,elSeries:f,x:s,y:o,series:e,barHeight:S,barWidth:w,elDataLabelsWrap:g,elGoalsMarkers:m,type:"bar",visibleSeries:d,classes:T}))}i.globals.seriesXvalues[a]=u,i.globals.seriesYvalues[a]=p,this.groupCtx.prevY.push(this.groupCtx.yArrj),this.groupCtx.prevYF.push(this.groupCtx.yArrjF),this.groupCtx.prevYVal.push(this.groupCtx.yArrjVal),this.groupCtx.prevX.push(this.groupCtx.xArrj),this.groupCtx.prevXF.push(this.groupCtx.xArrjF),this.groupCtx.prevXVal.push(this.groupCtx.xArrjVal),n.add(f)}return n}initialPositions(e,t,i,a,n,s,o){const r=this.w;let l,c;if(this.isHorizontal){a=r.layout.gridHeight/r.globals.dataPoints;const e=r.config.plotOptions.bar.barHeight;l=-1===String(e).indexOf("%")?parseInt(e,10):a*parseInt(e,10)/100,s=r.globals.padHorizontal+(this.isReversed?r.layout.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(a-l)/2}else{c=i=r.layout.gridWidth/r.globals.dataPoints;const t=r.config.plotOptions.bar.columnWidth;r.axisFlags.isXNumeric&&r.globals.dataPoints>1?c=(i=r.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(t).indexOf("%")?c=parseInt(t,10):c*=parseInt(t,10)/100,n=this.isReversed?this.baseLineY[o]:r.layout.gridHeight-this.baseLineY[o],e=r.globals.padHorizontal+(i-c)/2}const d=r.globals.barGroups.length||1;return{x:e,y:t,yDivision:a,xDivision:i,barHeight:(null!=l?l:0)/d,barWidth:(null!=c?c:0)/d,zeroH:n,zeroW:s}}drawStackedBarPaths({indexes:e,barHeight:t,strokeWidth:i,zeroW:a,x:n,y:s,columnGroupIndex:o,seriesGroup:r,yDivision:l,elSeries:c}){var d,u,p,h,f;const g=this.w,m=s+o*t;let _;const v=e.i,b=e.j,y=e.realIndex,x=e.translationsIndex;let S=0;for(let E=0;E<this.groupCtx.prevXF.length;E++)S+=this.groupCtx.prevXF[E][b];let w=v;if(g.config.series[y].name&&(w=r.indexOf(g.config.series[y].name)),w>0){let e=a;this.groupCtx.prevXVal[w-1][b]<0?e=(null==(d=this.series[v])?void 0:d[b])>=0?this.groupCtx.prevX[w-1][b]+S-2*(this.isReversed?S:0):this.groupCtx.prevX[w-1][b]:this.groupCtx.prevXVal[w-1][b]>=0&&(e=(null==(u=this.series[v])?void 0:u[b])>=0?this.groupCtx.prevX[w-1][b]:this.groupCtx.prevX[w-1][b]-S+2*(this.isReversed?S:0)),_=e}else _=a;n=null===(null==(p=this.series[v])?void 0:p[b])?_:_+(null==(h=this.series[v])?void 0:h[b])/this.invertedYRatio-2*(this.isReversed?(null==(f=this.series[v])?void 0:f[b])/this.invertedYRatio:0);const C=this.barHelpers.getBarpaths({barYPosition:m,barHeight:t,x1:_,x2:n,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,seriesGroup:r,i:v,j:b,w:g});return this.barHelpers.barBackground({j:b,i:v,y1:m,y2:t,elSeries:c}),s+=l,{pathTo:C.pathTo,pathFrom:C.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,v,b,x),barXPosition:_,barYPosition:m,x:n,y:s}}drawStackedColumnPaths({indexes:e,x:t,y:i,xDivision:a,barWidth:n,zeroH:s,columnGroupIndex:o,seriesGroup:r,elSeries:l}){var c,d,u,p,h,f,g,m,_;const v=this.w,b=e.i,y=e.j,x=e.bc,S=e.realIndex,w=e.translationsIndex;if(v.axisFlags.isXNumeric){let e=v.seriesData.seriesX[S][y];e||(e=0),t=(e-v.globals.minX)/this.xRatio-n/2*v.globals.barGroups.length}const C=t+o*n;let E,k=0;for(let R=0;R<this.groupCtx.prevYF.length;R++)k+=isNaN(this.groupCtx.prevYF[R][y])?0:this.groupCtx.prevYF[R][y];let T=b;if(r&&(T=r.indexOf(v.seriesData.seriesNames[S])),T>0&&!v.axisFlags.isXNumeric||T>0&&v.axisFlags.isXNumeric&&v.seriesData.seriesX[S-1][y]===v.seriesData.seriesX[S][y]){let e,t;const i=Math.min(this.yRatio.length+1,S+1);if(void 0!==this.groupCtx.prevY[T-1]&&this.groupCtx.prevY[T-1].length)for(let a=1;a<i;a++)if(!isNaN(null==(c=this.groupCtx.prevY[T-a])?void 0:c[y])){t=this.groupCtx.prevY[T-a][y];break}for(let a=1;a<i;a++){if((null==(d=this.groupCtx.prevYVal[T-a])?void 0:d[y])<0){e=(null==(u=this.series[b])?void 0:u[y])>=0?t-k+2*(this.isReversed?k:0):t;break}if((null==(p=this.groupCtx.prevYVal[T-a])?void 0:p[y])>=0){e=(null==(h=this.series[b])?void 0:h[y])>=0?t:t+k-2*(this.isReversed?k:0);break}}void 0===e&&(e=v.layout.gridHeight),E=(null==(f=this.groupCtx.prevYF[0])?void 0:f.every(e=>0===e))&&this.groupCtx.prevYF.slice(1,T).every(e=>e.every(e=>isNaN(e)))?s:e}else E=s;i=(null==(g=this.series[b])?void 0:g[y])?E-(null==(m=this.series[b])?void 0:m[y])/this.yRatio[w]+2*(this.isReversed?(null==(_=this.series[b])?void 0:_[y])/this.yRatio[w]:0):E;const A=this.barHelpers.getColumnPaths({barXPosition:C,barWidth:n,y1:E,y2:i,yRatio:this.yRatio[w],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:r,realIndex:e.realIndex,i:b,j:y,w:v});return this.barHelpers.barBackground({bc:x,j:y,i:b,x1:C,x2:n,elSeries:l}),{pathTo:A.pathTo,pathFrom:A.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,s,b,y,0),barXPosition:C,x:v.axisFlags.isXNumeric?t:t+a,y:i}}},rangeBar:class extends aUe{draw(e,t){var i,a,n,s,o,r,l,c,d;const u=this.w,p=new _$e(this.w);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=u.rangeData.seriesRangeStart,this.seriesRangeEnd=u.rangeData.seriesRangeEnd,this.barHelpers.initVariables(e);const h=p.group({class:"apexcharts-rangebar-series apexcharts-plot-series"});for(let f=0;f<e.length;f++){let g,m;const _=u.globals.comboCharts?t[f]:f,{columnGroupIndex:v}=this.barHelpers.getGroupIndex(_),b=p.group({class:"apexcharts-series",seriesName:KBe.escapeString(u.seriesData.seriesNames[_]),rel:f+1,"data:realIndex":_});$$e.addCollapsedClassToSeries(this.w,b,_),e[f].length>0&&(this.visibleI=this.visibleI+1);let y=0;this.yRatio.length>1&&(this.yaxisIndex=u.globals.seriesYAxisReverseMap[_][0],y=_);const x=this.barHelpers.initialPositions(_),{y:S,zeroW:w,x:C,zeroH:E}=x;let k=null!=(i=x.barWidth)?i:0,T=null!=(a=x.barHeight)?a:0;const A=null!=(n=x.yDivision)?n:0,R=null!=(s=x.xDivision)?s:0;m=S,g=C;const I=p.group({class:"apexcharts-datalabels","data:realIndex":_}),D=p.group({class:"apexcharts-rangebar-goals-markers"});for(let t=0;t<u.globals.dataPoints;t++){const i=this.barHelpers.getStrokeWidth(f,t,_),a=this.seriesRangeStart[f][t],n=this.seriesRangeEnd[f][t];let s=null,p=null,h=null;const S={x:g,y:m,strokeWidth:i,elSeries:b};let C=this.seriesLen;if(u.config.plotOptions.bar.rangeBarGroupRows&&(C=1),void 0===(null==(o=u.config.series[f].data)?void 0:o[t]))break;if(this.isHorizontal){h=m+T*this.visibleI;const e=(A-T*C)/2;if(null==(l=null==(r=u.config.series[f].data)?void 0:r[t])?void 0:l.x){const i=this.detectOverlappingBars({i:f,j:t,barYPosition:h,srty:e,barHeight:T,yDivision:A,initPositions:x});T=i.barHeight,h=i.barYPosition}s=this.drawRangeBarPaths(BBe({indexes:{i:f,j:t,realIndex:_},barHeight:T,barYPosition:h,zeroW:w,yDivision:A,y1:a,y2:n},S)),k=s.barWidth}else{u.axisFlags.isXNumeric&&(g=(u.seriesData.seriesX[f][t]-u.globals.minX)/this.xRatio-k/2),p=g+k*this.visibleI;const e=(R-k*C)/2;if(null==(d=null==(c=u.config.series[f].data)?void 0:c[t])?void 0:d.x){const i=this.detectOverlappingBars({i:f,j:t,barXPosition:p,srtx:e,barWidth:k,xDivision:R,initPositions:x});k=i.barWidth,p=i.barXPosition}s=this.drawRangeColumnPaths(BBe({indexes:{i:f,j:t,realIndex:_,translationsIndex:y},barWidth:k,barXPosition:p,zeroH:E,xDivision:R},S)),T=s.barHeight}const O=this.barHelpers.drawGoalLine({barXPosition:s.barXPosition,barYPosition:h,goalX:s.goalX,goalY:s.goalY,barHeight:T,barWidth:k});O&&D.add(O),m=s.y,g=s.x;const M=this.barHelpers.getPathFillColor(e,f,t,_);this.renderSeries({realIndex:_,pathFill:M.color,lineFill:M.useRangeColor?M.color:u.globals.stroke.colors[_],j:t,i:f,x:g,y:m,y1:a,y2:n,pathFrom:s.pathFrom,pathTo:s.pathTo,strokeWidth:i,elSeries:b,series:e,barHeight:T,barWidth:k,barXPosition:p,barYPosition:h,columnGroupIndex:v,elDataLabelsWrap:I,elGoalsMarkers:D,visibleSeries:this.visibleI,type:"rangebar"})}h.add(b)}return h}detectOverlappingBars({i:e,j:t,barYPosition:i,barXPosition:a,srty:n,srtx:s,barHeight:o,barWidth:r,yDivision:l,xDivision:c,initPositions:d}){var u,p,h,f;const g=this.w;let m=[];const _=null==(p=null==(u=g.config.series[e].data)?void 0:u[t])?void 0:p.rangeName,v=null==(f=null==(h=g.config.series[e].data)?void 0:h[t])?void 0:f.x,b=Array.isArray(v)?v.join(" "):v,y=g.labelData.labels.map(e=>Array.isArray(e)?e.join(" "):e).indexOf(b),x=g.rangeData.seriesRange[e].findIndex(e=>{var t;return e.x===b&&(null==(t=e.overlaps)?void 0:t.size)>0});return this.isHorizontal?(i=g.config.plotOptions.bar.rangeBarGroupRows?n+l*y:n+o*this.visibleI+l*y,x>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(m=Array.from(g.rangeData.seriesRange[e][x].overlaps),m.indexOf(_)>-1&&(i=(o=d.barHeight/m.length)*this.visibleI+l*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+m.indexOf(_))+l*y))):(y>-1&&!g.labelData.timescaleLabels.length&&(a=g.config.plotOptions.bar.rangeBarGroupRows?s+c*y:s+r*this.visibleI+c*y),x>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(m=Array.from(g.rangeData.seriesRange[e][x].overlaps),m.indexOf(_)>-1&&(a=(r=d.barWidth/m.length)*this.visibleI+c*(100-parseInt(this.barOptions.barWidth,10))/100/2+r*(this.visibleI+m.indexOf(_))+c*y))),{barYPosition:i,barXPosition:a,barHeight:o,barWidth:r}}drawRangeColumnPaths({indexes:e,x:t,xDivision:i,barWidth:a,barXPosition:n,zeroH:s}){var o,r;const l=this.w,{i:c,j:d,realIndex:u,translationsIndex:p}=e,h=this.yRatio[p],f=this.getRangeValue(u,d);let g=Math.min(f.start,f.end),m=Math.max(f.start,f.end);void 0===(null==(o=this.series[c])?void 0:o[d])||null===(null==(r=this.series[c])?void 0:r[d])?g=s:(g=s-g/h,m=s-m/h);const _=Math.abs(m-g),v=this.barHelpers.getColumnPaths({barXPosition:n,barWidth:a,y1:g,y2:m,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u,i:u,j:d,w:l});if(l.axisFlags.isXNumeric){const e=this.getBarXForNumericXAxis({x:t,j:d,realIndex:u,barWidth:a});t=e.x,n=e.barXPosition}else t+=i;return{pathTo:v.pathTo,pathFrom:v.pathFrom,barHeight:_,x:t,y:f.start<0&&f.end<0?g:m,goalY:this.barHelpers.getGoalValues("y",null,s,c,d,p),barXPosition:n}}preventBarOverflow(e){const t=this.w;return e<0&&(e=0),e>t.layout.gridWidth&&(e=t.layout.gridWidth),e}drawRangeBarPaths({indexes:e,y:t,y1:i,y2:a,yDivision:n,barHeight:s,barYPosition:o,zeroW:r}){const l=this.w,{realIndex:c,j:d}=e,u=this.preventBarOverflow(r+i/this.invertedYRatio),p=this.preventBarOverflow(r+a/this.invertedYRatio),h=this.getRangeValue(c,d),f=Math.abs(p-u),g=this.barHelpers.getBarpaths({barYPosition:o,barHeight:s,x1:u,x2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:c,realIndex:c,j:d,w:l});return l.axisFlags.isXNumeric||(t+=n),{pathTo:g.pathTo,pathFrom:g.pathFrom,barWidth:f,x:h.start<0&&h.end<0?u:p,goalX:this.barHelpers.getGoalValues("x",r,null,c,d,0),y:t}}getRangeValue(e,t){const i=this.w;return{start:i.rangeData.seriesRangeStart[e][t],end:i.rangeData.seriesRangeEnd[e][t]}}},candlestick:nUe,boxPlot:nUe,pie:pUe,donut:pUe,polarArea:pUe,radialBar:class extends pUe{constructor(e,t){super(e,t),this.ctx=t,this.w=e,this.animBeginArr=[0],this.animDur=0,this.startAngle=e.config.plotOptions.radialBar.startAngle,this.endAngle=e.config.plotOptions.radialBar.endAngle,this.totalAngle=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle),this.trackStartAngle=e.config.plotOptions.radialBar.track.startAngle,this.trackEndAngle=e.config.plotOptions.radialBar.track.endAngle,this.barLabels=this.w.config.plotOptions.radialBar.barLabels,this.donutDataLabels=this.w.config.plotOptions.radialBar.dataLabels,this.radialDataLabels=this.donutDataLabels,this.trackStartAngle||(this.trackStartAngle=this.startAngle),this.trackEndAngle||(this.trackEndAngle=this.endAngle),360===this.endAngle&&(this.endAngle=359.99),this.margin=parseInt(e.config.plotOptions.radialBar.track.margin,10),this.onBarLabelClick=this.onBarLabelClick.bind(this)}draw(e){var t;const i=this.w,a=new _$e(this.w),n=a.group({class:"apexcharts-radialbar"});if(i.globals.noData)return n;const s=a.group(),o=this.defaultSize/2,r=i.layout.gridWidth/2;let l=this.defaultSize/2.05;i.config.chart.sparkline.enabled||(l=l-i.config.stroke.width-i.config.chart.dropShadow.blur);const c=i.globals.fill.colors,d=i.config.plotOptions.radialBar,u=Array.isArray(d.bands)&&d.bands.length>0,p=u&&d.bandsStyle&&d.bandsStyle.hideTrackWhenPresent,h="needle"===d.shape;if(d.track.show&&!p){const t=this.drawTracks({size:l,centerX:r,centerY:o,colorArr:c,series:e});s.add(t)}if(u){const t=this.drawBands({size:l,centerX:r,centerY:o,series:e});s.add(t)}const f=this.drawArcs({size:l,centerX:r,centerY:o,colorArr:c,series:e,skipValueArc:h&&!(null==(t=d.needle)?void 0:t.showValueArc)});if(d.ticks&&d.ticks.show){const t=this.drawTicks({size:l,centerX:r,centerY:o,series:e});if(this.initialAnim&&!i.globals.dataChanged&&!i.globals.resized&&UBe.isBrowser()&&i.globals.shouldAnimate){const e=t.node;e.style.opacity="0",e.style.transition="opacity 280ms ease-out";const a=i.config.chart.animations.speed||800;setTimeout(()=>{e.style.opacity="1"},a)}s.add(t)}if(h){const t=this.drawNeedle({size:l,centerX:r,centerY:o,series:e});s.add(t)}let g=360;i.config.plotOptions.radialBar.startAngle<0&&(g=this.totalAngle);const m=(360-g)/360;if(i.globals.radialSize=l-l*m,this.radialDataLabels.value.show){const e=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);i.globals.radialSize+=e*m}return s.add(f.g),"front"===i.config.plotOptions.radialBar.hollow.position&&(f.g.add(f.elHollow),f.dataLabels&&f.g.add(f.dataLabels)),n.add(s),n}drawTracks(e){const t=this.w,i=new _$e(this.w),a=i.group({class:"apexcharts-tracks"}),n=new m$e(this.w),s=new S$e(this.w),o=this.getStrokeWidth(e);e.size=e.size-o/2;for(let r=0;r<e.series.length;r++){const l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});a.add(l),l.attr({rel:r+1}),e.size=e.size-o-this.margin;const c=t.config.plotOptions.radialBar.track,d=s.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[r]:c.background,solid:!0}),u=this.trackStartAngle;let p=this.trackEndAngle;Math.abs(p)+Math.abs(u)>=360&&(p=360-Math.abs(this.startAngle)-.1);const h=i.drawPath({d:"",stroke:d,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){const e=c.dropShadow;n.dropShadow(h,e)}l.add(h),h.attr("id","apexcharts-radialbarTrack-"+r),this.animatePaths(h,{centerX:e.centerX,centerY:e.centerY,endAngle:p,startAngle:u,size:e.size,i:r,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return a}drawArcs(e){const t=this.w,i=new _$e(this.w),a=new S$e(this.w),n=new m$e(this.w),s=i.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;let r=t.config.plotOptions.radialBar.hollow.background;const l=e.size-o*e.series.length-this.margin*e.series.length-o*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(r=this.drawHollowImage(e,s,l,r));const d=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:r||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){const e=t.config.plotOptions.radialBar.hollow.dropShadow;n.dropShadow(d,e)}let u=1;!this.radialDataLabels.total.show&&t.seriesData.series.length>1&&(u=0);let p=null;if(this.radialDataLabels.show){const i=t.dom.Paper.findOne(".apexcharts-datalabels-group");p=this.renderInnerDataLabels(i,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:u})}"back"===t.config.plotOptions.radialBar.hollow.position&&(s.add(d),p&&s.add(p));let h=!1;t.config.plotOptions.radialBar.inverseOrder&&(h=!0);for(let f=h?e.series.length-1:0;h?f>=0:f<e.series.length;h?f--:f++){const r=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:KBe.escapeString(t.seriesData.seriesNames[f])});s.add(r),r.attr({rel:f+1,"data:realIndex":f}),$$e.addCollapsedClassToSeries(this.w,r,f),e.size=e.size-o-this.margin;const l=a.fillPath({seriesNumber:f,size:e.size,value:e.series[f]}),c=this.startAngle;let d;const u=t.config.plotOptions.radialBar,p="number"==typeof u.min?u.min:0,h="number"==typeof u.max?u.max:100,g=h===p?1:h-p,m=e=>{const t=Math.min(Math.max(e,p),h);return Math.max(0,(t-p)/g)},_=m(KBe.negToZero(e.series[f]));let v,b=Math.round(this.totalAngle*_)+this.startAngle;t.globals.dataChanged&&(d=this.startAngle,v=Math.round(this.totalAngle*m(KBe.negToZero(t.globals.previousPaths[f])))+d);Math.abs(b)+Math.abs(c)>360&&(b-=.01);Math.abs(v)+Math.abs(d)>360&&(v-=.01);const y=b-c,x=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[f]:t.config.stroke.dashArray,S=i.drawPath({d:"",stroke:e.skipValueArc?"transparent":l,strokeWidth:e.skipValueArc?0:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:x}),w=c+y/2,C=KBe.polarToCartesian(e.centerX,e.centerY,e.size,w);if(_$e.setAttrs(S.node,{"data:angle":y,"data:value":e.series[f],"data:cx":C.x,"data:cy":C.y}),t.config.chart.dropShadow.enabled){const e=t.config.chart.dropShadow;n.dropShadow(S,e,f)}if(n.setSelectionFilter(S,0,f),this.addListeners(S,this.radialDataLabels),r.add(S),S.attr({index:0,j:f}),this.barLabels.enabled){const a=KBe.polarToCartesian(e.centerX,e.centerY,e.size,c),n=this.barLabels.formatter(t.seriesData.seriesNames[f],{seriesIndex:f,w:t}),s=["apexcharts-radialbar-label"];this.barLabels.onClick||s.push("apexcharts-no-click");let o=this.barLabels.useSeriesColors?t.globals.colors[f]:t.config.chart.foreColor;o||(o=t.config.chart.foreColor);const l=a.x+this.barLabels.offsetX,d=a.y+this.barLabels.offsetY,u=i.drawText({x:l,y:d,text:n,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:o,cssClass:s.join(" ")});u.on("click",this.onBarLabelClick),u.attr({rel:f+1}),0!==c&&u.attr({"transform-origin":`${l} ${d}`,transform:`rotate(${c} 0 0)`}),r.add(u)}let E=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(E=t.config.chart.animations.speed),t.globals.dataChanged&&(E=t.config.chart.animations.dynamicAnimation.speed),this.animDur=E/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(S,{centerX:e.centerX,centerY:e.centerY,endAngle:b,startAngle:c,prevEndAngle:v,prevStartAngle:d,size:e.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:E,shouldSetPrevPaths:!0})}return{g:s,elHollow:d,dataLabels:p}}_angleAtValue(e){const t=this.w.config.plotOptions.radialBar,i="number"==typeof t.min?t.min:0,a="number"==typeof t.max?t.max:100,n=a===i?i+1:a,s=(Math.max(i,Math.min(n,Number(e)))-i)/(n-i);return this.startAngle+s*(this.endAngle-this.startAngle)}_describeArc(e,t,i,a,n){const s=KBe.polarToCartesian(e,t,i,n),o=KBe.polarToCartesian(e,t,i,a),r=n-a,l=Math.abs(r)>180?1:0;return`M ${s.x} ${s.y} A ${i} ${i} 0 ${l} 0 ${o.x} ${o.y}`}drawBands(e){const t=this.w,i=new _$e(this.w),a=t.config.plotOptions.radialBar,n=a.bands||[],s=i.group({class:"apexcharts-gauge-bands"}),o=this.getStrokeWidth(e),r=e.size-o/2-o-this.margin,l=o*parseInt(a.bandsStyle.strokeWidth,10)/100,c="number"==typeof a.min?a.min:0,d="number"==typeof a.max?a.max:100,u=d===c?0:(a.bandsStyle.gap||0)*((this.endAngle-this.startAngle)/(d-c));for(let p=0;p<n.length;p++){const t=n[p];if(void 0===t.from||void 0===t.to)continue;const o=this._angleAtValue(t.from),c=this._angleAtValue(t.to),d=Math.min(o,c)+u/2,h=Math.max(o,c)-u/2;if(h-d<=0)continue;const f=i.drawPath({d:this._describeArc(e.centerX,e.centerY,r,d,h),stroke:t.color||"#ccc",strokeWidth:l,fill:"none",strokeLinecap:a.bandsStyle.linecap||"butt",classes:"apexcharts-gauge-band"});f.node.setAttribute("data-band-index",String(p)),s.add(f)}return s}drawTicks(e){var t,i,a,n;const s=this.w,o=new _$e(this.w),r=s.config.plotOptions.radialBar,l=r.ticks,c=o.group({class:"apexcharts-gauge-ticks"}),d=this.getStrokeWidth(e),u=e.size-d/2-d-this.margin,p="number"==typeof r.min?r.min:0,h="number"==typeof r.max?r.max:100,f=Math.max(2,null!=(i=null==(t=l.major)?void 0:t.count)?i:11),g=Math.max(0,null!=(n=null==(a=l.minor)?void 0:a.count)?n:0),m=(t,i,a)=>{var n,s,r;const d=this._angleAtValue(t),p=null!=(n=i.length)?n:8,h="inside"===i.placement?u-p:u,f="inside"===i.placement?u:u+p,g=KBe.polarToCartesian(e.centerX,e.centerY,h,d),m=KBe.polarToCartesian(e.centerX,e.centerY,f,d),_=o.drawLine(g.x,g.y,m.x,m.y,i.color||(a?"#666":"#999"),0,i.width||(a?2:1));if(c.add(_),a&&(null==(s=l.labels)?void 0:s.show)){const a=("inside"===i.placement?h:f)+("inside"===i.placement?-1:1)*(null!=(r=l.labels.offset)?r:6),n=KBe.polarToCartesian(e.centerX,e.centerY,a,d),s="function"==typeof l.labels.formatter?l.labels.formatter(t):String(t),u=o.drawText({x:n.x,y:n.y,text:s,textAnchor:"middle",dominantBaseline:"middle",fontFamily:l.labels.fontFamily,fontSize:l.labels.fontSize,fontWeight:l.labels.fontWeight,foreColor:l.labels.color,cssClass:"apexcharts-gauge-tick-label"});c.add(u)}};for(let _=0;_<f;_++){if(m(p+_/(f-1)*(h-p),l.major||{},!0),_<f-1&&g>0)for(let e=1;e<=g;e++){m(p+(_+e/(g+1))/(f-1)*(h-p),l.minor||{},!1)}}return c}drawNeedle(e){var t,i,a,n,s;const o=this.w,r=new _$e(this.w),l=o.config.plotOptions.radialBar.needle||{},c=r.group({class:"apexcharts-gauge-needle"});if(!e.series||0===e.series.length)return c;const d=this.getStrokeWidth(e),u=e.size-d/2-d-this.margin,p="string"==typeof l.length&&l.length.endsWith("%")?u*parseInt(l.length,10)/100:Number(l.length||.85*u),h=null!=(t=l.baseWidth)?t:4,f=null!=(i=l.tipWidth)?i:1,g=l.color||"#333",m=e.centerX,_=Number(null!=(a=l.offsetY)?a:0),v=e.centerY+_,b=`M ${m+h/2} ${v} A ${h/2} ${h/2} 0 0 1 ${m-h/2} ${v} L ${m-f/2} ${v-p} L ${m+f/2} ${v-p} Z`,y=r.drawPath({d:b,stroke:g,strokeWidth:0,fill:g,classes:"apexcharts-gauge-needle-shape"});c.add(y);const x=Number(e.series[0]),S=this._angleAtValue(x),w=this.initialAnim&&!o.globals.dataChanged&&!o.globals.resized,C=this.ctx,E="number"==typeof C._lastNeedleAngle?C._lastNeedleAngle:this.startAngle;C._lastNeedleAngle=S;if(UBe.isBrowser()&&o.globals.shouldAnimate&&(w||o.globals.dataChanged)&&E!==S){const e=c.node;e.setAttribute("transform-origin",`${m} ${v}`),e.setAttribute("transform",`rotate(${E})`);const t=(null==(n=l.animation)?void 0:n.duration)&&Number(l.animation.duration)||l.animationSpeed&&Number(l.animationSpeed)||(null==(s=o.config.chart.animations.dynamicAnimation)?void 0:s.speed)||o.config.chart.animations.speed||800,i=1.70158,a=i+1,r=e=>1+a*Math.pow(e-1,3)+i*Math.pow(e-1,2),d=e=>1-Math.pow(1-e,3),u=w?r:d,p=performance.now(),h=i=>{const a=Math.max(0,Math.min(1,(i-p)/t)),n=E+(S-E)*u(a);e.setAttribute("transform",`rotate(${n})`),a<1&&qBe.requestAnimationFrame(h)};qBe.requestAnimationFrame(h)}else c.attr({"transform-origin":`${m} ${v}`,transform:`rotate(${S})`});return c}drawHollow(e){var t;const i=new _$e(this.w),a=this.w.config.plotOptions.radialBar.hollow,n=i.drawCircle(2*e.size),s={class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill};return(a.stroke||a.strokeDasharray)&&(s.stroke=a.stroke||"transparent",s["stroke-width"]=null!=(t=a.strokeWidth)?t:1,a.strokeDasharray&&(s["stroke-dasharray"]=a.strokeDasharray)),n.attr(s),n}drawHollowImage(e,t,i,a){const n=this.w,s=new S$e(this.w),o=KBe.randomId(),r=n.config.plotOptions.radialBar.hollow.image;if(n.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:i,height:i,image:r,patternID:`pattern${n.globals.cuid}${o}`}),a=`url(#pattern${n.globals.cuid}${o})`;else{const i=n.config.plotOptions.radialBar.hollow.imageWidth,a=n.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===i&&void 0===a){const i=n.dom.Paper.image(r,function(t){this.move(e.centerX-t.width/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+n.config.plotOptions.radialBar.hollow.imageOffsetY)});t.add(i)}else{const s=n.dom.Paper.image(r,function(){this.move(e.centerX-i/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-a/2+n.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(i,a)});t.add(s)}}return a}getStrokeWidth(e){const t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}onBarLabelClick(e){var t;const i=e.target,a=parseInt(null!=(t=i.getAttribute("rel"))?t:"",10)-1,n=this.barLabels.onClick,s=this.w;n&&n(s.seriesData.seriesNames[a],{w:s,seriesIndex:a})}},radar:class{constructor(e,t){this.ctx=t,this.w=e,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0,this.graphics=new _$e(this.w),this.lineColorArr=void 0!==e.globals.stroke.colors?e.globals.stroke.colors:e.globals.colors,this.defaultSize=e.globals.svgHeight<e.globals.svgWidth?e.layout.gridHeight:e.layout.gridWidth,this.isLog=e.config.yaxis[0].logarithmic,this.logBase=e.config.yaxis[0].logBase,this.coreUtils=new l$e(this.w),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,e.globals.maxY,0):e.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):e.globals.minY,this.polygons=e.config.plotOptions.radar.polygons,this.strokeWidth=e.config.stroke.show?e.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-e.config.chart.dropShadow.blur,e.config.xaxis.labels.show&&(this.size=this.size-e.layout.xAxisLabelsWidth/1.75),void 0!==e.config.plotOptions.radar.size&&(this.size=e.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.dataPointsLen=0,this.disAngle=0,this.yaxisLabelsTextsPos=[]}draw(e){const t=this.w,i=new S$e(this.w),a=[],n=new E$e(this.w,this.ctx);e.length&&(this.dataPointsLen=e[t.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;const s=t.layout.gridWidth/2,o=t.layout.gridHeight/2,r=s+t.config.plotOptions.radar.offsetX,l=o+t.config.plotOptions.radar.offsetY,c=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:`translate(${r||0}, ${l||0})`});let d=[],u=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((e,s)=>{const o=e.length===t.globals.dataPoints,r=this.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:KBe.escapeString(t.seriesData.seriesNames[s]),rel:s+1,"data:realIndex":s});this.dataRadiusOfPercent[s]=[],this.dataRadius[s]=[],this.angleArr[s]=[],e.forEach((e,t)=>{const i=Math.abs(this.maxValue-this.minValue);e-=this.minValue,this.isLog&&(e=this.coreUtils.getLogVal(this.logBase,e,0)),this.dataRadiusOfPercent[s][t]=e/i,this.dataRadius[s][t]=this.dataRadiusOfPercent[s][t]*this.size,this.angleArr[s][t]=t*this.disAngle}),d=this.getDataPointsPos(this.dataRadius[s],this.angleArr[s]);const l=this.createPaths(d,{x:0,y:0});u=this.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=this.graphics.group({class:"apexcharts-datalabels","data:realIndex":s}),t.globals.delayedElements.push({el:u.node,index:s});const c={i:s,realIndex:s,animationDelay:s,initialSpeed:t.config.chart.animations.speed,dataChangeSpeed:t.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:t.globals.stroke.colors[s],strokeLineCap:t.config.stroke.lineCap};let h=null;t.globals.previousPaths.length>0&&(h=this.getPreviousPath(s));for(let a=0;a<l.linePathsTo.length;a++){const e=this.graphics.renderPaths($Be(BBe({},c),{pathFrom:null===h?l.linePathsFrom[a]:h,pathTo:l.linePathsTo[a],strokeWidth:Array.isArray(this.strokeWidth)?this.strokeWidth[s]:this.strokeWidth,fill:"none",drawShadow:!1}));r.add(e);const n=i.fillPath({seriesNumber:s}),o=this.graphics.renderPaths($Be(BBe({},c),{pathFrom:null===h?l.areaPathsFrom[a]:h,pathTo:l.areaPathsTo[a],strokeWidth:0,fill:n,drawShadow:!1,drawMask:{type:"radial",cx:0,cy:0,r:this.size}}));if(t.config.chart.dropShadow.enabled){const e=new m$e(this.w),i=t.config.chart.dropShadow;e.dropShadow(o,Object.assign({},i,{noUserSpaceOnUse:!0}),s)}r.add(o)}e.forEach((e,i)=>{const a=new w$e(this.w,this.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:i}),o=this.graphics.drawMarker(d[i].x,d[i].y,a);o.attr("rel",i),o.attr("j",i),o.attr("index",s),o.node.setAttribute("default-marker-size",a.pSize);const l=this.graphics.group({class:"apexcharts-series-markers"});l&&l.add(o),u.add(l),r.add(u);const c=t.config.dataLabels;if(c.enabled){const e=c.formatter(t.seriesData.series[s][i],{seriesIndex:s,dataPointIndex:i,w:t});n.plotDataLabelsText({x:d[i].x,y:d[i].y,text:e,textAnchor:"middle",i:s,j:s,parent:p,offsetCorrection:!1,dataLabelsConfig:BBe({},c)})}r.add(p)}),a.push(r)}),this.drawPolygons({parent:c}),t.config.xaxis.labels.show){const e=this.drawXAxisTexts();c.add(e)}return a.forEach(e=>{c.add(e)}),c.add(this.yaxisLabels),c}drawPolygons(e){const t=this.w,{parent:i}=e,a=new uUe(this.w),n=t.globals.yAxisScale[0].result.reverse(),s=n.length,o=[],r=this.size/(s-1);for(let d=0;d<s;d++)o[d]=r*d;o.reverse();const l=[],c=[];o.forEach((e,t)=>{const i=KBe.getPolygonPos(e,this.dataPointsLen);let a="";i.forEach((e,i)=>{if(0===t){const t=this.graphics.drawLine(e.x,e.y,0,0,Array.isArray(this.polygons.connectorColors)?this.polygons.connectorColors[i]:this.polygons.connectorColors);c.push(t)}0===i&&this.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),a+=e.x+","+e.y+" "}),l.push(a)}),l.forEach((e,a)=>{const n=this.polygons.strokeColors,s=this.polygons.strokeWidth,o=this.graphics.drawPolygon(e,Array.isArray(n)?n[a]:n,Array.isArray(s)?s[a]:s,t.globals.radarPolygons.fill.colors[a]);i.add(o)}),c.forEach(e=>{i.add(e)}),t.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((e,t)=>{const i=a.drawYAxisTexts(e.x,e.y,t,n[t]);this.yaxisLabels.add(i)})}drawXAxisTexts(){const e=this.w,t=e.config.xaxis.labels,i=this.graphics.group({class:"apexcharts-xaxis"}),a=KBe.getPolygonPos(this.size,this.dataPointsLen);return e.labelData.labels.forEach((n,s)=>{const o=e.config.xaxis.labels.formatter,r=new E$e(this.w,this.ctx);if(a[s]){const l=this.getTextPos(a[s],this.size),c=o(n,{seriesIndex:-1,dataPointIndex:s,w:e});r.plotDataLabelsText({x:l.newX,y:l.newY,text:c,textAnchor:l.textAnchor,i:s,j:s,parent:i,className:"apexcharts-xaxis-label",color:Array.isArray(t.style.colors)&&t.style.colors[s]?t.style.colors[s]:"#a8a8a8",dataLabelsConfig:BBe({textAnchor:l.textAnchor,dropShadow:{enabled:!1}},t),offsetCorrection:!1}).on("click",t=>{if("function"==typeof e.config.chart.events.xAxisLabelClick){const i=Object.assign({},e,{labelIndex:s});e.config.chart.events.xAxisLabelClick(t,this.ctx,i)}})}}),i}createPaths(e,t){const i=[];let a=[];const n=[];let s=[];if(e.length){a=[this.graphics.move(t.x,t.y)],s=[this.graphics.move(t.x,t.y)];let o=this.graphics.move(e[0].x,e[0].y),r=this.graphics.move(e[0].x,e[0].y);e.forEach((t,i)=>{o+=this.graphics.line(t.x,t.y),r+=this.graphics.line(t.x,t.y),i===e.length-1&&(o+="Z",r+="Z")}),i.push(o),n.push(r)}return{linePathsFrom:a,linePathsTo:i,areaPathsFrom:s,areaPathsTo:n}}getTextPos(e,t){let i="middle",a=e.x,n=e.y;return Math.abs(e.x)>=10?e.x>0?(i="start",a+=10):e.x<0&&(i="end",a-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?n-=10:e.y>0&&(n+=10)),{textAnchor:i,newX:a,newY:n}}getPreviousPath(e){const t=this.w;let i=null;for(let a=0;a<t.globals.previousPaths.length;a++){const n=t.globals.previousPaths[a];n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(String(e),10)&&void 0!==t.globals.previousPaths[a].paths[0]&&(i=t.globals.previousPaths[a].paths[0].d)}return i}getDataPointsPos(e,t,i=this.dataPointsLen){e=e||[],t=t||[];const a=[];for(let n=0;n<i;n++){const i={};i.x=e[n]*Math.sin(t[n]),i.y=-e[n]*Math.cos(t[n]),a.push(i)}return a}},heatmap:class{constructor(e,t,i){this.ctx=t,this.w=e,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new sUe(e,t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}draw(e){const t=this.w,i=new _$e(this.w,this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path",`url(#gridRectMask${t.globals.cuid})`);const n=t.layout.gridWidth/t.globals.dataPoints,s=t.layout.gridHeight/t.seriesData.series.length;let o=0,r=!1;this.negRange=this.helpers.checkColorRange();const l=e.slice();t.config.yaxis[0].reversed&&(r=!0,l.reverse());for(let d=r?0:l.length-1;r?d<l.length:d>=0;r?d++:d--){const r=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:KBe.escapeString(t.seriesData.seriesNames[d]),rel:d+1,"data:realIndex":d});if($$e.addCollapsedClassToSeries(this.w,r,d),i.setupEventDelegation(r,".apexcharts-heatmap-rect"),t.config.chart.dropShadow.enabled){const e=t.config.chart.dropShadow;new m$e(this.w).dropShadow(r,e,d)}let c=0;const u=t.config.plotOptions.heatmap.shadeIntensity;let p=0;for(let a=0;a<t.globals.dataPoints;a++){if(t.seriesData.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*a<t.seriesData.seriesX[d][p]){c+=n;continue}if(p>=l[d].length)break;const h=this.helpers.getShadeColor(t.config.chart.type,d,p,this.negRange);let f=h.color;const g=h.colorProps;if("image"===t.config.fill.type){f=new S$e(this.w).fillPath({seriesNumber:d,dataPointIndex:p,opacity:t.globals.hasNegs?g.percent<0?1-(1+g.percent/100):u+g.percent/100:g.percent/100,patternID:KBe.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:n,height:t.config.fill.image.height?t.config.fill.image.height:s})}const m=this.rectRadius,_=i.drawRect(c,o,n,s,m);if(_.attr({cx:c,cy:o}),_.node.classList.add("apexcharts-heatmap-rect"),r.add(_),_.attr({fill:f,i:d,index:d,j:p,val:e[d][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?f:t.globals.stroke.colors[0],color:f}),t.config.chart.animations.enabled&&!t.globals.dataChanged){let e=1;t.globals.resized||(e=t.config.chart.animations.speed),this.animateHeatMap(_,c,o,n,s,e,d,p)}if(t.globals.dataChanged){let e=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){e=this.dynamicAnim.speed;let i=t.globals.previousPaths[d]&&t.globals.previousPaths[d][p]&&t.globals.previousPaths[d][p].color;i||(i="rgba(255, 255, 255, 0)"),this.animateHeatColor(_,KBe.isColorHex(i)?i:KBe.rgb2hex(i),KBe.isColorHex(f)?f:KBe.rgb2hex(f),e)}}const v=(0,t.config.dataLabels.formatter)(t.seriesData.series[d][p],{value:t.seriesData.series[d][p],seriesIndex:d,dataPointIndex:p,w:t}),b=this.helpers.calculateDataLabels({text:v,x:c+n/2,y:o+s/2,i:d,j:p,colorProps:g,series:l});null!==b&&r.add(b),c+=n,p++}o+=s,a.add(r)}const c=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?c.unshift(""):c.push(""),t.globals.yAxisScale[0].result=c,a}animateHeatMap(e,t,i,a,n,s,o=0,r=0){const l=this.w,c=new g$e(this.w),d=l.config.chart.animations.animateGradually;let u=0;if(d&&!1!==d.enabled){const e=((l.seriesData.series||[]).length||1)+(l.globals.dataPoints||1)-2;u=f$e({style:"diagonal",index:r,row:o,col:r,baseDelay:Math.min(d.delay||0,.5*s/Math.max(1,e))})}c.animateRect(e,{x:t+a/2,y:i+n/2,width:0,height:0},{x:t,y:i,width:a,height:n},s,()=>{c.animationCompleted(e)},u)}animateHeatColor(e,t,i,a){e.attr({fill:t}).animate(a).attr({fill:i})}},treemap:class{constructor(e,t){this.ctx=t,this.w=e,this.strokeWidth=this.w.config.stroke.width,this.helpers=new sUe(e,t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}draw(e){const t=this.w,i=new _$e(this.w,this.ctx),a=new S$e(this.w),n=i.group({class:"apexcharts-treemap"});if(t.globals.noData)return n;const s=[];e.forEach(e=>{const t=e.map(e=>Math.abs(e));s.push(t)}),this.negRange=this.helpers.checkColorRange(),t.config.series.forEach((e,t)=>{e.data.forEach(e=>{Array.isArray(this.labels[t])||(this.labels[t]=[]),this.labels[t].push(e.x)})});return vUe.generate(s,t.layout.gridWidth,t.layout.gridHeight).forEach((s,o)=>{var r;const l=i.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:KBe.escapeString(t.seriesData.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.setupEventDelegation(l,".apexcharts-treemap-rect"),t.config.chart.dropShadow.enabled){const e=t.config.chart.dropShadow;new m$e(this.w).dropShadow(n,e,o)}const c=i.group({class:"apexcharts-data-labels"}),d={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0},u=t.config.chart.animations,p=u.animateGradually,h=p&&!1!==p.enabled,f=new Array(s.length).fill(0);if(h){const e=s.length||1,t=Math.min(p.delay||0,.5*u.speed/e);s.map((e,t)=>({j:t,area:(e[2]-e[0])*(e[3]-e[1])})).sort((e,t)=>t.area-e.area).forEach((e,i)=>{f[e.j]=i*t})}s.forEach((n,s)=>{const r=n[0],c=n[1],u=n[2],p=n[3];d.xMin=Math.min(d.xMin,r),d.yMin=Math.min(d.yMin,c),d.xMax=Math.max(d.xMax,u),d.yMax=Math.max(d.yMax,p);const h=this.helpers.getShadeColor(t.config.chart.type,o,s,this.negRange),g=h.color,m=a.fillPath({color:g,seriesNumber:o,dataPointIndex:s}),_=i.drawRect(r,c,u-r,p-c,t.config.plotOptions.treemap.borderRadius,"#fff",1,this.strokeWidth,t.config.plotOptions.treemap.useFillColorAsStroke?g:t.globals.stroke.colors[o]);_.attr({cx:r,cy:c,index:o,i:o,j:s,width:u-r,height:p-c,fill:m}),_.node.classList.add("apexcharts-treemap-rect");let v={x:r+(u-r)/2,y:c+(p-c)/2,width:0,height:0};const b={x:r,y:c,width:u-r,height:p-c};if(t.config.chart.animations.enabled&&!t.globals.dataChanged){let e=1;t.globals.resized||(e=t.config.chart.animations.speed),this.animateTreemap(_,v,b,e,f[s]||0)}if(t.globals.dataChanged){let e=1;this.dynamicAnim.enabled&&t.globals.shouldAnimate&&(e=this.dynamicAnim.speed,t.globals.previousPaths[o]&&t.globals.previousPaths[o][s]&&t.globals.previousPaths[o][s].rect&&(v=t.globals.previousPaths[o][s].rect),this.animateTreemap(_,v,b,e))}let y=this.getFontSize(n),x=t.config.dataLabels.formatter(this.labels[o][s],{value:t.seriesData.series[o][s],seriesIndex:o,dataPointIndex:s,w:t});"truncate"===t.config.plotOptions.treemap.dataLabels.format&&(y=parseInt(String(t.config.dataLabels.style.fontSize),10),x=this.truncateLabels(String(x),y,r,c,u,p));let S=null;t.seriesData.series[o][s]&&(S=this.helpers.calculateDataLabels({text:x,x:(r+u)/2,y:(c+p)/2+this.strokeWidth/2+y/3,i:o,j:s,colorProps:h,fontSize:y,series:e})),t.config.dataLabels.enabled&&S&&this.rotateToFitLabel(S,y,x,r,c,u,p),l.add(_),null!==S&&l.add(S)});const g=t.config.plotOptions.treemap.seriesTitle;if(t.config.series.length>1&&g&&g.show){const e=t.config.series[o].name||"";if(e&&d.xMin<1/0&&d.yMin<1/0){const{offsetX:a,offsetY:n,borderColor:s,borderWidth:o,borderRadius:c,style:u}=g,p=u.color||t.config.chart.foreColor,h={left:u.padding.left,right:u.padding.right,top:u.padding.top,bottom:u.padding.bottom},f=i.getTextRects(e,u.fontSize,u.fontFamily),m=f.width+h.left+h.right,_=f.height+h.top+h.bottom,v=d.xMin+(a||0),b=d.yMin+(n||0),y=i.drawRect(v,b,m,_,c,u.background,1,o,s),x=i.drawText({x:v+h.left,y:b+h.top+.75*(null!=(r=null==f?void 0:f.height)?r:0),text:e,fontSize:u.fontSize,fontFamily:u.fontFamily,fontWeight:u.fontWeight,foreColor:p,cssClass:u.cssClass||""});l.add(y),l.add(x)}}l.add(c),n.add(l)}),n}getFontSize(e){const t=this.w;const i=function e(t){let i,a=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)a+=e(t[i]);else for(i=0;i<t.length;i++)a+=t[i].length;return a}(this.labels)/function e(t){let i,a=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)a+=e(t[i]);else for(i=0;i<t.length;i++)a+=1;return a}(this.labels);return function(e,a){const n=e*a,s=Math.pow(n,.5);return Math.min(s/i,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}rotateToFitLabel(e,t,i,a,n,s,o){const r=new _$e(this.w),l=r.getTextRects(i,String(t));if(l.width+this.w.config.stroke.width+5>s-a&&l.width<=o-n){const t=r.rotateAroundCenter(e.node);e.node.setAttribute("transform",`rotate(-90 ${t.x} ${t.y}) translate(${l.height/3})`)}}truncateLabels(e,t,i,a,n,s){const o=new _$e(this.w),r=o.getTextRects(e,String(t)).width+this.w.config.stroke.width+5>n-i&&s-a>n-i?s-a:n-i,l=o.getTextBasedOnMaxWidth({text:e,maxWidth:r,fontSize:t});return e.length!==l.length&&r/t<5?"":l}animateTreemap(e,t,i,a,n=0){const s=new g$e(this.w);s.animateRect(e,t,i,a,()=>{s.animationCompleted(e)},n)}}});const bUe=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],yUe=sl({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:bUe,setup(e,{emit:t}){const i=mo(null),a=mo(null),n=e=>e&&"object"==typeof e&&!Array.isArray(e)&&null!=e,s=(e,t)=>{"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let i=1;i<arguments.length;i++){let e=arguments[i];if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}return t});let i=Object.assign({},e);return n(e)&&n(t)&&Object.keys(t).forEach(a=>{n(t[a])?a in e?i[a]=s(e[a],t[a]):Object.assign(i,{[a]:t[a]}):Object.assign(i,{[a]:t[a]})}),i},o=e=>JSON.parse(JSON.stringify(e)),r=async()=>{if(await ir(),a.value)return;const n={chart:{type:e.type||e.options.chart&&e.options.chart.type||"line",height:e.height,width:e.width,events:{}},series:o(e.series)},r=e.options.chart?e.options.chart.events:null;bUe.forEach(e=>{n.chart.events[e]=(...i)=>{((...i)=>{t(e,...i)})(...i),r&&r.hasOwnProperty(e)&&r[e](...i)}});const l=s(e.options,n);return a.value=new WVe(i.value,l),a.value.render()},l=()=>(c(),r()),c=()=>{a.value.destroy(),a.value=null};Hl(()=>{window.ApexCharts=WVe}),zl(()=>{i.value=_u().proxy.$el,r()}),Wl(()=>{a.value&&c()});const d=To(e);let u=null;const p=t=>{u||(u={options:!1,series:!1},ir(()=>{const t=u;if(u=null,a.value)if(t.options&&t.series){const t=o(e.options);t.series=o(e.series),a.value.updateOptions(t)}else t.options?a.value.updateOptions(o(e.options)):t.series&&a.value.updateSeries(o(e.series));else r()})),u[t]=!0};return Rr(d.options,()=>{p("options")}),Rr(d.series,()=>{p("series")},{deep:!0}),Rr(d.type,()=>{l()}),Rr(d.width,()=>{l()}),Rr(d.height,()=>{l()}),{chart:a,init:r,refresh:l,destroy:c,updateOptions:(e,t,i,n)=>a.value.updateOptions(e,t,i,n),updateSeries:(e,t)=>a.value.updateSeries(e,t),toggleSeries:e=>a.value.toggleSeries(e),showSeries:e=>{a.value.showSeries(e)},hideSeries:e=>{a.value.hideSeries(e)},resetSeries:()=>{a.value.resetSeries()},zoomX:(e,t)=>a.value.zoomX(e,t),toggleDataPointSelection:(e,t)=>{a.value.toggleDataPointSelection(e,t)},appendData:e=>a.value.appendData(e),appendSeries:(e,t)=>a.value.appendSeries(e,t),addXaxisAnnotation:(e,t)=>{a.value.addXaxisAnnotation(e,t)},addYaxisAnnotation:(e,t)=>{a.value.addYaxisAnnotation(e,t)},addPointAnnotation:(e,t)=>{a.value.addPointAnnotation(e,t)},removeAnnotation:(e,t)=>{a.value.removeAnnotation(e,t)},clearAnnotations:()=>{a.value.clearAnnotations()},setLocale:e=>a.value.setLocale(e),dataURI:e=>a.value.dataURI(e)}},render:()=>Pu("div",{class:"vue-apexcharts"})}),xUe=(e,t)=>{const i=e.__vccOpts||e;for(const[a,n]of t)i[a]=n;return i},SUe=sl({name:"apexchart-server",props:{type:{type:String,default:"line"},width:{type:[Number,String],default:400},height:{type:[Number,String],default:300},series:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},className:{type:String,default:""}},setup(e){const t=mo("");return ql(async()=>{try{const{default:i}=await IBe(async()=>{const{default:e}=await Promise.resolve({default:{}});return{default:e}},void 0,import.meta.url),a=Object.assign({},e.options,{chart:Object.assign({},e.options.chart,{type:e.type,width:e.width,height:e.height}),series:e.series});t.value=await i.renderToHTML(a,{width:e.width,height:e.height})}catch(i){}}),{chartHTML:t}}}),wUe=["innerHTML"];const CUe=xUe(SUe,[["render",function(e,t,i,a,n,s){return zd(),qd("div",{innerHTML:e.chartHTML,class:se(e.className)},null,10,wUe)}]]),EUe=sl({name:"apexchart-hydrate",props:{clientOptions:{type:Object,default:()=>({})},selector:{type:String,default:"[data-apexcharts-hydrate]"}},setup(e){let t=[];zl(async()=>{try{const{default:i}=await IBe(async()=>{const{default:e}=await Promise.resolve({default:{}});return{default:e}},void 0,import.meta.url);t=i.hydrateAll(e.selector,e.clientOptions)}catch(i){}}),Wl(()=>{t.forEach(e=>{e&&e.destroy&&e.destroy()}),t=[]})},render:()=>null});yUe.install=e=>{e.component(yUe.name,yUe),e.component(CUe.name,CUe),e.component(EUe.name,EUe)};const kUe={class:"fs_ticket_overview_page"},TUe={class:"fs_ticket_overview_header"},AUe={class:"fs_ticket_overview_header_row"},RUe={class:"fs_page_title"},IUe={class:"fs_ticket_overview_header_row fs_ticket_overview_toolbar"},DUe={class:"fs_toolbar_left"},OUe=["disabled"],MUe={class:"fs_date_button_group"},NUe={class:"fs_date_button_group_item fs_date_picker_wrapper"},LUe={class:"fs_date_display"},PUe={key:0,class:"fs_date_text"},FUe={key:1,class:"fs_date_placeholder"},BUe={key:0,class:"fs_snapshot_banner"},$Ue={class:"fs_ticket_overview_content"},VUe={key:0,class:"fs_page_error"},UUe={key:1,class:"fs_ticket_overview_columns"},HUe={class:"fs_ticket_overview_col_main"},zUe={class:"fs_overview_section"},YUe={class:"fs_section_header"},GUe={class:"fs_section_title"},WUe={key:0,class:"fs_attention_badge"},jUe={class:"fs_section_body"},qUe={class:"fs_workload_cards_row"},KUe={class:"fs_workload_card"},XUe={class:"fs_workload_card_icon fs_workload_card_icon--error"},ZUe={class:"fs_workload_card_text"},QUe={class:"fs_workload_card_label_row"},JUe={class:"fs_stat_label"},eHe={class:"fs_stat_value"},tHe={class:"fs_workload_card"},iHe={class:"fs_workload_card_icon fs_workload_card_icon--warning"},aHe={class:"fs_workload_card_text"},nHe={class:"fs_stat_label"},sHe={class:"fs_stat_value"},oHe={class:"fs_workload_card"},rHe={class:"fs_workload_card_icon fs_workload_card_icon--info"},lHe={class:"fs_workload_card_text"},cHe={class:"fs_stat_label"},dHe={class:"fs_stat_value"},uHe={class:"fs_overview_section"},pHe={class:"fs_section_header"},hHe={class:"fs_section_title"},fHe={class:"fs_section_body"},gHe={class:"fs_stat_cards_row"},mHe={class:"fs_stat_card"},_He={class:"fs_stat_content"},vHe={class:"fs_stat_label"},bHe={class:"fs_stat_value_row"},yHe={class:"fs_stat_value"},xHe={class:"fs_stat_card"},SHe={class:"fs_stat_content"},wHe={class:"fs_stat_label"},CHe={class:"fs_stat_value_row"},EHe={class:"fs_stat_value"},kHe={class:"fs_stat_card"},THe={class:"fs_stat_content"},AHe={class:"fs_stat_label"},RHe={class:"fs_stat_value_row"},IHe={class:"fs_stat_value"},DHe={class:"fs_chart_section"},OHe={class:"fs_chart_header"},MHe={class:"fs_chart_title"},NHe={class:"fs_chart_legend"},LHe={class:"fs_legend_text"},PHe={class:"fs_chart_container",style:{height:"220px"}},FHe={class:"fs_overview_section"},BHe={class:"fs_section_header"},$He={class:"fs_section_title"},VHe={class:"fs_section_body"},UHe={class:"fs_stat_cards_row"},HHe={class:"fs_stat_card"},zHe={class:"fs_stat_content"},YHe={class:"fs_stat_label"},GHe={class:"fs_stat_value_row"},WHe={class:"fs_stat_value"},jHe={class:"fs_stat_card"},qHe={class:"fs_stat_content"},KHe={class:"fs_stat_label"},XHe={class:"fs_stat_value_row"},ZHe={class:"fs_stat_value"},QHe={class:"fs_stat_card"},JHe={class:"fs_stat_content"},eze={class:"fs_stat_label"},tze={class:"fs_stat_value_row"},ize={class:"fs_stat_value"},aze={class:"fs_stat_card"},nze={class:"fs_stat_content"},sze={class:"fs_stat_label"},oze={class:"fs_stat_value_row"},rze={class:"fs_stat_value"},lze={class:"fs_chart_section"},cze={class:"fs_chart_header"},dze={class:"fs_chart_title"},uze={class:"fs_chart_legend"},pze={class:"fs_legend_text"},hze={class:"fs_chart_container",style:{height:"220px"}},fze={class:"fs_ticket_overview_col_side"},gze={class:"fs_overview_section"},mze={class:"fs_section_header"},_ze={class:"fs_section_title"},vze={class:"fs_section_body fs_product_dist_body"},bze={class:"fs_product_total"},yze={class:"fs_total_label"},xze={class:"fs_total_value"},Sze={class:"fs_product_bar_list"},wze={class:"fs_product_bar_row"},Cze={class:"fs_product_name"},Eze={class:"fs_product_count"},kze={class:"fs_horizontal_bar_track"},Tze={class:"fs_overview_section",style:{"margin-top":"24px"}},Aze={class:"fs_section_header"},Rze={class:"fs_section_title"},Ize={class:"fs_section_body"},Dze={class:"fs_chart_container fs_gauge_chart_container",style:{height:"220px"}},Oze={class:"fs_product_list"},Mze={class:"fs_product_info"},Nze={class:"fs_product_swatch"},Lze={class:"fs_product_name"},Pze={class:"fs_product_count"};const Fze=lH({name:"TicketOverview",props:["url","date_range"],emits:["date-change"],components:{BarChartBase:UNe,IconPack:dY,LiveSnapshotSelector:KPe,VueApexCharts:yUe,ArrowDown:_x},data(){return{loading:!1,fetchError:!1,fetchRequestId:0,liveMode:"live",selectedSnapshot:null,preSnapshotDateRange:null,selectedProductId:"all",products:[],localDateRange:this.date_range,shortcuts:hPe,activityGranularity:"hour",stats:{needsAttention:!1,awaitingReply:0,unassignedTickets:0,avgWaitingTime:"--",newTickets:0,notResponded:0,closedTicket:0,totalResponses:0,ticketsHandled:0,activeAgents:0,avgResponse:0},ticketDistribution:{total:0,products:[]},sameDayResponse:{total:0,categories:[]},hourlyTicketChartData:null,hourlyAgentResponseChartData:null,hourlyTicketChartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,grid:{drawOnChartArea:!0,color:"#E1E4EA"},border:{display:!1,dash:[4,4]},ticks:{color:"#99A0AE",precision:0,font:{family:"Inter",size:12,weight:500}}},x:{grid:{drawOnChartArea:!1},border:{display:!1},ticks:{color:"#99A0AE",font:{family:"Inter",size:12,weight:500},maxRotation:0,minRotation:0,autoSkip:!0,maxTicksLimit:8}}},plugins:{legend:{display:!1}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barPercentage:.7,categoryPercentage:.8,borderRadius:{topLeft:2,topRight:2,bottomLeft:0,bottomRight:0},borderSkipped:!1}}},responseChartData:null,responseChartOptions:{chart:{type:"donut"},labels:[],colors:[],legend:{show:!1},dataLabels:{enabled:!1},plotOptions:{pie:{donut:{size:"78%",labels:{show:!0,name:{show:!0,fontSize:"14px",fontWeight:500,offsetY:-4},value:{show:!0,fontSize:"24px",fontWeight:500,offsetY:4,formatter:e=>this.formatStatValue(e)},total:{show:!0,label:this.$t("Total Responses"),formatter:()=>this.formatStatValue(this.sameDayResponse.total)}}}}}}}},computed:{productOptions(){return[{id:"all",name:this.$t("All Products")},...this.products.map(e=>({id:e.id,name:e.name}))]},selectedProductLabel(){const e=this.productOptions.find(e=>e.id===this.selectedProductId);return e?e.name:this.$t("All Products")},formattedDateRange(){return ELe(this.localDateRange)},formattedSnapshotDate(){return this.selectedSnapshot?Pk(this.selectedSnapshot.date).format("MMM DD, YYYY"):""},ticketChartTitle(){return"day"===this.activityGranularity?this.$t("Daily Ticket Creation"):this.$t("Hourly Ticket Creation")},responseChartTitle(){return"day"===this.activityGranularity?this.$t("Daily Response Distribution"):this.$t("Hourly Response Distribution")},isSnapshotMode(){return"snapshot"===this.liveMode&&!!this.selectedSnapshot}},watch:{date_range:{handler(e){this.isSameDateRange(e,this.localDateRange)||(this.isSnapshotMode?this.preSnapshotDateRange=e:(this.localDateRange=e,this.fetchTicketOverview()))},deep:!0}},methods:{formatStatValue:MLe,handleLiveSnapshotChange({mode:e,snapshot:t}){this.liveMode=e,this.selectedSnapshot=t,"snapshot"===e&&t?(this.preSnapshotDateRange||(this.preSnapshotDateRange=this.localDateRange),this.fetchSnapshotData(t.id)):(this.preSnapshotDateRange&&(this.localDateRange=this.preSnapshotDateRange,this.preSnapshotDateRange=null),this.fetchTicketOverview())},fetchSnapshotData(e){this.loading=!0,this.fetchError=!1;const t=++this.fetchRequestId;this.$get("advanced-reports/snapshots/"+e).then(e=>{t===this.fetchRequestId&&this.applyTicketOverviewResponse(e.data)}).catch(e=>{t===this.fetchRequestId&&(this.resetStats(),this.fetchError=!0,this.$handleError(e))}).always(()=>{t===this.fetchRequestId&&(this.loading=!1)})},retryFetch(){this.isSnapshotMode?this.fetchSnapshotData(this.selectedSnapshot.id):this.fetchTicketOverview()},handleProductChange(e){this.selectedProductId=e,this.fetchTicketOverview()},disabledDate:DLe,isSameDateRange:OLe,handleDateChange(){this.$emit("date-change",this.localDateRange),this.fetchTicketOverview()},handleViewDetails(){this.$emit("navigate-tab","product-insight")},getProductColor(e){const t=getComputedStyle(document.documentElement),i=[t.getPropertyValue("--fs-chart-secondary").trim()||"#47C2FF",t.getPropertyValue("--fs-chart-quaternary").trim()||"#7D52F4",t.getPropertyValue("--fs-chart-warning").trim()||"#FA7319",t.getPropertyValue("--fs-chart-info").trim()||"#335CFF",t.getPropertyValue("--fs-chart-success").trim()||"#1FC16B"];return i[e%i.length]},getResponseColor(e){const t=getComputedStyle(document.documentElement),i=[t.getPropertyValue("--fs-chart-quinary").trim()||"#FF8447",t.getPropertyValue("--fs-chart-primary").trim()||"#0CBE7E"];return i[e%i.length]},setupHourlyTicketChart(e,t){const i=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0CBE7E";this.hourlyTicketChartData={labels:e,datasets:[{label:this.$t("Number of tickets"),backgroundColor:i,data:t,barThickness:12}]}},setupHourlyAgentResponseChart(e,t){const i=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0CBE7E";this.hourlyAgentResponseChartData={labels:e,datasets:[{label:this.$t("Number of responses"),backgroundColor:i,data:t,barThickness:12}]}},setupResponseChart(){const e=this.sameDayResponse.categories.map(e=>e.name),t=this.sameDayResponse.categories.map(e=>e.responses),i=this.sameDayResponse.categories.map((e,t)=>this.getResponseColor(t));this.responseChartData={series:t},this.responseChartOptions={...this.responseChartOptions,labels:e,colors:i}},resetStats(){this.stats={needsAttention:!1,awaitingReply:0,unassignedTickets:0,avgWaitingTime:"--",newTickets:0,notResponded:0,closedTicket:0,totalResponses:0,ticketsHandled:0,activeAgents:0,avgResponse:0},this.ticketDistribution={total:0,products:[]},this.sameDayResponse={total:0,categories:[]},this.hourlyTicketChartData=null,this.hourlyAgentResponseChartData=null,this.responseChartData=null},applyTicketOverviewResponse(e){e.snapshot_range&&(this.localDateRange=[e.snapshot_range.from,e.snapshot_range.to]);const t=e.workload,i=e.tickets,a=e.agent_responses,n=e.same_day_response;this.stats={needsAttention:t.awaiting_reply>0,awaitingReply:t.awaiting_reply,unassignedTickets:t.unassigned,avgWaitingTime:t.avg_wait||"--",newTickets:i.new,notResponded:i.not_responded,closedTicket:i.closed,totalResponses:a.total_responses,ticketsHandled:a.tickets_handled,activeAgents:a.active_agents,avgResponse:a.avg_per_agent},this.ticketDistribution={total:e.product_distribution.total,products:e.product_distribution.products.map(e=>({name:e.name,tickets:e.tickets,percent:e.percent}))},this.products=e.products,this.sameDayResponse={total:n.same_day+n.not_same_day,categories:[{name:this.$t("Answered same day"),responses:n.same_day},{name:this.$t("Not answered same day"),responses:n.not_same_day}]},this.activityGranularity=e.activity.granularity;const s="day"===e.activity.granularity?e.activity.labels.map(e=>Pk(e).format("MMM D")):e.activity.labels;this.setupHourlyTicketChart(s,e.activity.ticket_creation),this.setupHourlyAgentResponseChart(s,e.activity.agent_replies),this.setupResponseChart()},fetchTicketOverview(){if(!this.localDateRange||2!==this.localDateRange.length)return this.fetchRequestId++,this.loading=!1,this.fetchError=!1,this.resetStats(),this.selectedProductId="all",void(this.products=[]);this.loading=!0,this.fetchError=!1;const e=++this.fetchRequestId,[t,i]=this.localDateRange,a={from:t,to:i};"all"!==this.selectedProductId&&(a.product_id=this.selectedProductId),this.$get("advanced-reports/ticket-overview",a).then(t=>{e===this.fetchRequestId&&this.applyTicketOverviewResponse(t)}).catch(t=>{e===this.fetchRequestId&&(this.resetStats(),this.fetchError=!0,this.$handleError(t))}).always(()=>{e===this.fetchRequestId&&(this.loading=!1)})}},mounted(){this.fetchTicketOverview()}},[["render",function(e,t,i,a,n,s){const o=Jl("LiveSnapshotSelector"),r=Jl("IconPack"),l=Jl("ArrowDown"),c=KS,d=nN,u=sN,p=aN,h=jO,f=Sk,g=Jl("bar-chart-base"),m=Jl("vue-apex-charts"),_=WB;return zd(),qd("div",kUe,[tu("div",TUe,[tu("div",AUe,[tu("h3",RUe,me(e.$t("Ticket Overview")),1),iu(o,{modelValue:n.liveMode,"onUpdate:modelValue":t[0]||(t[0]=e=>n.liveMode=e),"selected-snapshot":n.selectedSnapshot,"onUpdate:selectedSnapshot":t[1]||(t[1]=e=>n.selectedSnapshot=e),"report-type":"ticket_overview",onChange:s.handleLiveSnapshotChange},null,8,["modelValue","selected-snapshot","onChange"])]),tu("div",IUe,[tu("div",DUe,[iu(p,{trigger:"click",disabled:s.isSnapshotMode,onCommand:s.handleProductChange},{dropdown:vr(()=>[iu(u,{class:"fs_global_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.productOptions,e=>(zd(),Kd(d,{key:e.id,command:e.id},{default:vr(()=>[su(me(e.name),1)],void 0),_:2},1032,["command"]))),128))],void 0),_:1})]),default:vr(()=>[tu("button",{class:"fs_pill_dropdown_btn",disabled:s.isSnapshotMode},[iu(r,{"icon-key":"shopping_bag_line",width:20,height:20}),su(" "+me(s.selectedProductLabel)+" ",1),iu(c,{class:"fs_dropdown_arrow"},{default:vr(()=>[iu(l)],void 0),_:1})],8,OUe)],void 0),_:1},8,["disabled","onCommand"]),tu("div",MUe,[tu("div",NUe,[tu("div",LUe,[iu(r,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",PUe,me(s.formattedDateRange),1)):(zd(),qd("span",FUe,me(e.$t("Select date range")),1))]),iu(h,{modelValue:n.localDateRange,"onUpdate:modelValue":t[2]||(t[2]=e=>n.localDateRange=e),type:"daterange",editable:!1,disabled:s.isSnapshotMode,onChange:s.handleDateChange,"range-separator":"To","disabled-date":s.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","disabled","onChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])])])]),"snapshot"===n.liveMode&&n.selectedSnapshot?(zd(),qd("div",BUe,me(e.$t("Viewing snapshot from"))+" "+me(s.formattedSnapshotDate)+" "+me(e.$t("at"))+" "+me(n.selectedSnapshot.time),1)):ru("",!0)]),br((zd(),qd("div",$Ue,[n.fetchError?(zd(),qd("div",VUe,[tu("p",null,me(e.$t("Couldn't load this data.")),1),iu(f,{size:"small",onClick:s.retryFetch},{default:vr(()=>[su(me(e.$t("Retry")),1)],void 0),_:1},8,["onClick"])])):(zd(),qd("div",UUe,[tu("div",HUe,[tu("div",zUe,[tu("div",YUe,[tu("h4",GUe,me(e.$t("Current Support Workload")),1),n.stats.needsAttention?(zd(),qd("span",WUe,[iu(r,{"icon-key":"alert_fill",width:16,height:16}),su(" "+me(e.$t("Needs Attention")),1)])):ru("",!0)]),tu("div",jUe,[tu("div",qUe,[tu("div",KUe,[tu("span",XUe,[iu(r,{"icon-key":"clock",width:20,height:20})]),tu("div",ZUe,[tu("div",QUe,[tu("p",JUe,me(e.$t("Tickets Awaiting Reply")),1),iu(r,{"icon-key":"info_custom_fill",width:20,height:20})]),tu("span",eHe,me(s.formatStatValue(n.stats.awaitingReply)),1)])]),t[3]||(t[3]=tu("div",{class:"fs_workload_divider"},null,-1)),tu("div",tHe,[tu("span",iHe,[iu(r,{"icon-key":"user_unfollow_line",width:20,height:20})]),tu("div",aHe,[tu("p",nHe,me(e.$t("Unassigned Tickets")),1),tu("span",sHe,me(s.formatStatValue(n.stats.unassignedTickets)),1)])]),t[4]||(t[4]=tu("div",{class:"fs_workload_divider"},null,-1)),tu("div",oHe,[tu("span",rHe,[iu(r,{"icon-key":"history_line",width:20,height:20})]),tu("div",lHe,[tu("p",cHe,me(e.$t("Avg. Waiting Time")),1),tu("span",dHe,me(n.stats.avgWaitingTime),1)])])])])]),tu("div",uHe,[tu("div",pHe,[tu("h4",hHe,me(e.$t("Overall Ticket Stats")),1)]),tu("div",fHe,[tu("div",gHe,[tu("div",mHe,[tu("div",_He,[tu("p",vHe,me(e.$t("New Tickets")),1),tu("div",bHe,[tu("span",yHe,me(s.formatStatValue(n.stats.newTickets)),1)])])]),t[5]||(t[5]=tu("div",{class:"fs_stat_divider"},null,-1)),tu("div",xHe,[tu("div",SHe,[tu("p",wHe,me(e.$t("Not Responded Yet")),1),tu("div",CHe,[tu("span",EHe,me(s.formatStatValue(n.stats.notResponded)),1)])])]),t[6]||(t[6]=tu("div",{class:"fs_stat_divider"},null,-1)),tu("div",kHe,[tu("div",THe,[tu("p",AHe,me(e.$t("Closed Ticket")),1),tu("div",RHe,[tu("span",IHe,me(s.formatStatValue(n.stats.closedTicket)),1)])])])]),t[8]||(t[8]=tu("div",{class:"fs_chart_divider"},null,-1)),tu("div",DHe,[tu("div",OHe,[tu("h5",MHe,me(s.ticketChartTitle),1),tu("div",NHe,[t[7]||(t[7]=tu("span",{class:"fs_legend_dot",style:{background:"var(--fs-chart-primary, #0CBE7E)"}},null,-1)),tu("span",LHe,me(e.$t("Number of tickets")),1)])]),tu("div",PHe,[n.hourlyTicketChartData?(zd(),Kd(g,{key:0,chartData:n.hourlyTicketChartData,chartOptions:n.hourlyTicketChartOptions},null,8,["chartData","chartOptions"])):ru("",!0)])])])]),tu("div",FHe,[tu("div",BHe,[tu("h4",$He,me(e.$t("Agent Response Stats")),1)]),tu("div",VHe,[tu("div",UHe,[tu("div",HHe,[tu("div",zHe,[tu("p",YHe,me(e.$t("Total Responses")),1),tu("div",GHe,[tu("span",WHe,me(s.formatStatValue(n.stats.totalResponses)),1)])])]),t[9]||(t[9]=tu("div",{class:"fs_stat_divider"},null,-1)),tu("div",jHe,[tu("div",qHe,[tu("p",KHe,me(e.$t("Tickets Handled")),1),tu("div",XHe,[tu("span",ZHe,me(s.formatStatValue(n.stats.ticketsHandled)),1)])])]),t[10]||(t[10]=tu("div",{class:"fs_stat_divider"},null,-1)),tu("div",QHe,[tu("div",JHe,[tu("p",eze,me(e.$t("Active Agents")),1),tu("div",tze,[tu("span",ize,me(s.formatStatValue(n.stats.activeAgents)),1)])])]),t[11]||(t[11]=tu("div",{class:"fs_stat_divider"},null,-1)),tu("div",aze,[tu("div",nze,[tu("p",sze,me(e.$t("Avg. Response")),1),tu("div",oze,[tu("span",rze,me(s.formatStatValue(n.stats.avgResponse)),1)])])])]),t[13]||(t[13]=tu("div",{class:"fs_chart_divider"},null,-1)),tu("div",lze,[tu("div",cze,[tu("h5",dze,me(s.responseChartTitle),1),tu("div",uze,[t[12]||(t[12]=tu("span",{class:"fs_legend_dot",style:{background:"var(--fs-chart-primary, #0CBE7E)"}},null,-1)),tu("span",pze,me(e.$t("Number of responses")),1)])]),tu("div",hze,[n.hourlyAgentResponseChartData?(zd(),Kd(g,{key:0,chartData:n.hourlyAgentResponseChartData,chartOptions:n.hourlyTicketChartOptions},null,8,["chartData","chartOptions"])):ru("",!0)])])])])]),tu("div",fze,[tu("div",gze,[tu("div",mze,[tu("h4",_ze,me(e.$t("Product Distribution by Tickets")),1)]),tu("div",vze,[tu("div",bze,[tu("span",yze,me(e.$t("Total Tickets")),1),tu("span",xze,me(s.formatStatValue(n.ticketDistribution.total)),1)]),tu("div",Sze,[(zd(!0),qd(Fd,null,sc(n.ticketDistribution.products,(e,t)=>(zd(),qd("div",{class:"fs_product_bar_item",key:t},[tu("div",wze,[tu("span",Cze,me(e.name),1),tu("span",Eze,me(s.formatStatValue(e.tickets)),1)]),tu("div",kze,[tu("div",{class:"fs_horizontal_bar_fill",style:ee({width:e.percent+"%",background:s.getProductColor(t)})},null,4)])]))),128))]),iu(f,{type:"default",size:"small",class:"fs_outline_btn fs_view_details_btn",onClick:s.handleViewDetails},{default:vr(()=>[su(me(e.$t("View Details")),1)],void 0),_:1},8,["onClick"])])]),tu("div",Tze,[tu("div",Aze,[tu("h4",Rze,me(e.$t("Same-Day Response Rate")),1)]),tu("div",Ize,[tu("div",Dze,[n.responseChartData?(zd(),Kd(m,{key:0,type:"donut",height:"220",options:n.responseChartOptions,series:n.responseChartData.series},null,8,["options","series"])):ru("",!0)]),tu("div",Oze,[(zd(!0),qd(Fd,null,sc(n.sameDayResponse.categories,(e,t)=>(zd(),qd("div",{class:"fs_product_item",key:t},[tu("div",Mze,[tu("span",Nze,[tu("span",{class:"fs_product_dot",style:ee({background:s.getResponseColor(t)})},null,4)]),tu("span",Lze,me(e.name),1)]),tu("span",Pze,me(s.formatStatValue(e.responses)),1)]))),128))])])])])]))])),[[_,n.loading]])])}],["__scopeId","data-v-6da1e7cc"]]);var Bze=function(e,t){return(Bze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function $ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Bze(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var Vze=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Uze=new(function(){return function(){this.browser=new Vze,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Uze.wxa=!0,Uze.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Uze.worker=!0:!Uze.hasGlobalWindow||"Deno"in window?(Uze.node=!0,Uze.svgSupported=!0):function(e,t){var i=t.browser,a=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),s=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);a&&(i.firefox=!0,i.version=a[1]);n&&(i.ie=!0,i.version=n[1]);s&&(i.edge=!0,i.version=s[1],i.newEdge=+s[1].split(".")[0]>18);o&&(i.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,t.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),t.domSupported="undefined"!=typeof document;var r=document.documentElement.style;t.transform3dSupported=(i.ie&&"transition"in r||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in r)&&!("OTransition"in r),t.transformSupported=t.transform3dSupported||i.ie&&+i.version>=9}(navigator.userAgent,Uze);var Hze="sans-serif",zze="12px "+Hze;var Yze=function(e){var t={};if("undefined"==typeof JSON)return t;for(var i=0;i<e.length;i++){var a=String.fromCharCode(i+32),n=(e.charCodeAt(i)-20)/100;t[a]=n}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Gze={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(i,a){if(!e){var n=Gze.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==a&&(t=e.font=a||zze),e.measureText(i);i=i||"";var s=/((?:\d+)?\.?\d*)px/.exec(a=a||zze),o=s&&+s[1]||12,r=0;if(a.indexOf("mono")>=0)r=o*i.length;else for(var l=0;l<i.length;l++){var c=Yze[i[l]];r+=null==c?o:c*o}return{width:r}}}(),loadImage:function(e,t,i){var a=new Image;return a.onload=t,a.onerror=i,a.src=e,a}},Wze=gYe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),jze=gYe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),qze=Object.prototype.toString,Kze=Array.prototype,Xze=Kze.forEach,Zze=Kze.filter,Qze=Kze.slice,Jze=Kze.map,eYe=function(){}.constructor,tYe=eYe?eYe.prototype:null,iYe="__proto__",aYe=2311;function nYe(){return aYe++}function sYe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function oYe(e){if(null==e||"object"!=typeof e)return e;var t=e,i=qze.call(e);if("[object Array]"===i){if(!VYe(e)){t=[];for(var a=0,n=e.length;a<n;a++)t[a]=oYe(e[a])}}else if(jze[i]){if(!VYe(e)){var s=e.constructor;if(s.from)t=s.from(e);else{t=new s(e.length);for(a=0,n=e.length;a<n;a++)t[a]=e[a]}}}else if(!Wze[i]&&!VYe(e)&&!AYe(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==iYe&&(t[o]=oYe(e[o]));return t}function rYe(e,t,i){if(!EYe(t)||!EYe(e))return i?oYe(t):e;for(var a in t)if(t.hasOwnProperty(a)&&a!==iYe){var n=e[a],s=t[a];!EYe(s)||!EYe(n)||yYe(s)||yYe(n)||AYe(s)||AYe(n)||kYe(s)||kYe(n)||VYe(s)||VYe(n)?!i&&a in e||(e[a]=oYe(t[a])):rYe(n,s,i)}return e}function lYe(e,t){if(Object.assign)Object.assign(e,t);else for(var i in t)t.hasOwnProperty(i)&&i!==iYe&&(e[i]=t[i]);return e}function cYe(e,t,i){for(var a=_Ye(t),n=0,s=a.length;n<s;n++){var o=a[n];null==e[o]&&(e[o]=t[o])}return e}function dYe(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var i=0,a=e.length;i<a;i++)if(e[i]===t)return i}return-1}function uYe(e,t,i){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var s=a[n];"constructor"!==s&&null==e[s]&&(e[s]=t[s])}else cYe(e,t)}function pYe(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function hYe(e,t,i){if(e&&t)if(e.forEach&&e.forEach===Xze)e.forEach(t,i);else if(e.length===+e.length)for(var a=0,n=e.length;a<n;a++)t.call(i,e[a],a,e);else for(var s in e)e.hasOwnProperty(s)&&t.call(i,e[s],s,e)}function fYe(e,t,i){if(!e)return[];if(!t)return NYe(e);if(e.map&&e.map===Jze)return e.map(t,i);for(var a=[],n=0,s=e.length;n<s;n++)a.push(t.call(i,e[n],n,e));return a}function gYe(e,t,i,a){if(e&&t){for(var n=0,s=e.length;n<s;n++)i=t.call(a,i,e[n],n,e);return i}}function mYe(e,t,i){if(!e)return[];if(!t)return NYe(e);if(e.filter&&e.filter===Zze)return e.filter(t,i);for(var a=[],n=0,s=e.length;n<s;n++)t.call(i,e[n],n,e)&&a.push(e[n]);return a}function _Ye(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t}var vYe=tYe&&xYe(tYe.bind)?tYe.call.bind(tYe.bind):function(e,t){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return function(){return e.apply(t,i.concat(Qze.call(arguments)))}};function bYe(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return function(){return e.apply(this,t.concat(Qze.call(arguments)))}}function yYe(e){return Array.isArray?Array.isArray(e):"[object Array]"===qze.call(e)}function xYe(e){return"function"==typeof e}function SYe(e){return"string"==typeof e}function wYe(e){return"[object String]"===qze.call(e)}function CYe(e){return"number"==typeof e}function EYe(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function kYe(e){return!!Wze[qze.call(e)]}function TYe(e){return!!jze[qze.call(e)]}function AYe(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function RYe(e){return null!=e.colorStops}function IYe(e){return e!=e}function DYe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i=0,a=e.length;i<a;i++)if(null!=e[i])return e[i]}function OYe(e,t){return null!=e?e:t}function MYe(e,t,i){return null!=e?e:null!=t?t:i}function NYe(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return Qze.apply(e,t)}function LYe(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function PYe(e,t){if(!e)throw new Error(t)}function FYe(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var BYe="__ec_primitive__";function $Ye(e){e[BYe]=!0}function VYe(e){return e[BYe]}var UYe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return _Ye(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},e}(),HYe="function"==typeof Map;var zYe=function(){function e(t){var i=yYe(t);this.data=HYe?new Map:new UYe;var a=this;function n(e,t){i?a.set(e,t):a.set(t,e)}t instanceof e?t.each(n):t&&hYe(t,n)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(i,a){e.call(t,i,a)})},e.prototype.keys=function(){var e=this.data.keys();return HYe?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function YYe(e){return new zYe(e)}function GYe(e,t){var i;if(Object.create)i=Object.create(e);else{var a=function(){};a.prototype=e,i=new a}return t&&lYe(i,t),i}function WYe(e,t){return e.hasOwnProperty(t)}function jYe(){}var qYe=180/Math.PI,KYe=function(e,t){return(KYe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function XYe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}KYe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function ZYe(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function QYe(e){return[e[0],e[1]]}function JYe(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function eGe(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function tGe(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function iGe(e,t){var i=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===i?(e[0]=0,e[1]=0):(e[0]=t[0]/i,e[1]=t[1]/i),e}function aGe(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var nGe=aGe;var sGe=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function oGe(e,t,i){var a=t[0],n=t[1];return e[0]=i[0]*a+i[2]*n+i[4],e[1]=i[1]*a+i[3]*n+i[5],e}function rGe(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e}function lGe(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}var cGe=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),dGe=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new cGe(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,n=i-this._x,s=a-this._y;this._x=i,this._y=a,t.drift(n,s,e),this.handler.dispatchToElement(new cGe(t,e),"drag",e.event);var o=this.handler.findHover(i,a,t).target,r=this._dropTarget;this._dropTarget=o,t!==o&&(r&&o!==r&&this.handler.dispatchToElement(new cGe(r,e),"dragleave",e.event),o&&o!==r&&this.handler.dispatchToElement(new cGe(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new cGe(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new cGe(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),uGe=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if("function"==typeof t&&(a=i,i=t,t=null),!i||!e)return this;var s=this._$eventProcessor;null!=t&&s&&s.normalizeQuery&&(t=s.normalizeQuery(t)),n[e]||(n[e]=[]);for(var o=0;o<n[e].length;o++)if(n[e][o].h===i)return this;var r={h:i,query:t,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},l=n[e].length-1,c=n[e][l];return c&&c.callAtLast?n[e].splice(l,0,r):n[e].push(r),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var a=[],n=0,s=i[e].length;n<s;n++)i[e][n].h!==t&&a.push(i[e][n]);i[e]=a}i[e]&&0===i[e].length&&delete i[e]}else delete i[e];return this},e.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var s=t.length,o=a.length,r=0;r<o;r++){var l=a[r];if(!n||!n.filter||null==l.query||n.filter(e,l.query))switch(s){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return n&&n.afterTrigger&&n.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var s=t.length,o=t[s-1],r=a.length,l=0;l<r;l++){var c=a[l];if(!n||!n.filter||null==c.query||n.filter(e,c.query))switch(s){case 0:c.h.call(o);break;case 1:c.h.call(o,t[0]);break;case 2:c.h.call(o,t[0],t[1]);break;default:c.h.apply(o,t.slice(1,s-1))}}return n&&n.afterTrigger&&n.afterTrigger(e),this},e}(),pGe=Math.log(2);function hGe(e,t,i,a,n,s){var o=a+"-"+n,r=e.length;if(s.hasOwnProperty(o))return s[o];if(1===t){var l=Math.round(Math.log((1<<r)-1&~n)/pGe);return e[i][l]}for(var c=a|1<<i,d=i+1;a&1<<d;)d++;for(var u=0,p=0,h=0;p<r;p++){var f=1<<p;f&n||(u+=(h%2?-1:1)*e[i][p]*hGe(e,t-1,d,c,n|f,s),h++)}return s[o]=u,u}function fGe(e,t){var i=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],a={},n=hGe(i,8,0,0,0,a);if(0!==n){for(var s=[],o=0;o<8;o++)for(var r=0;r<8;r++)null==s[r]&&(s[r]=0),s[r]+=((o+r)%2?-1:1)*hGe(i,7,0===o?1:0,1<<o,1<<r,a)/n*t[o];return function(e,t,i){var a=t*s[6]+i*s[7]+1;e[0]=(t*s[0]+i*s[1]+s[2])/a,e[1]=(t*s[3]+i*s[4]+s[5])/a}}}var gGe="___zrEVENTSAVED",mGe=[];function _Ge(e,t,i,a,n){if(t.getBoundingClientRect&&Uze.domSupported&&!vGe(t)){var s=t[gGe]||(t[gGe]={}),o=function(e,t){var i=t.markers;if(i)return i;i=t.markers=[];for(var a=["left","right"],n=["top","bottom"],s=0;s<4;s++){var o=document.createElement("div"),r=s%2,l=(s>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[r]+":0",n[l]+":0",a[1-r]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(o),i.push(o)}return i}(t,s),r=function(e,t,i){for(var a=i?"invTrans":"trans",n=t[a],s=t.srcCoords,o=[],r=[],l=!0,c=0;c<4;c++){var d=e[c].getBoundingClientRect(),u=2*c,p=d.left,h=d.top;o.push(p,h),l=l&&s&&p===s[u]&&h===s[u+1],r.push(e[c].offsetLeft,e[c].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=i?fGe(r,o):fGe(o,r))}(o,s,n);if(r)return r(e,i,a),!0}return!1}function vGe(e){return"CANVAS"===e.nodeName.toUpperCase()}var bGe=/([&<>"'])/g,yGe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xGe(e){return null==e?"":(e+"").replace(bGe,function(e,t){return yGe[t]})}var SGe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wGe=[],CGe=Uze.browser.firefox&&+Uze.browser.version.split(".")[0]<39;function EGe(e,t,i,a){return i=i||{},a?kGe(e,t,i):CGe&&null!=t.layerX&&t.layerX!==t.offsetX?(i.zrX=t.layerX,i.zrY=t.layerY):null!=t.offsetX?(i.zrX=t.offsetX,i.zrY=t.offsetY):kGe(e,t,i),i}function kGe(e,t,i){if(Uze.domSupported&&e.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(vGe(e)){var s=e.getBoundingClientRect();return i.zrX=a-s.left,void(i.zrY=n-s.top)}if(_Ge(wGe,e,a,n))return i.zrX=wGe[0],void(i.zrY=wGe[1])}i.zrX=i.zrY=0}function TGe(e){return e||window.event}function AGe(e,t,i){if(null!=(t=TGe(t)).zrX)return t;var a=t.type;if(a&&a.indexOf("touch")>=0){var n="touchend"!==a?t.targetTouches[0]:t.changedTouches[0];n&&EGe(e,n,t,i)}else{EGe(e,t,t,i);var s=function(e){var t=e.wheelDelta;if(t)return t;var i=e.deltaX,a=e.deltaY;if(null==i||null==a)return t;return 3*(0!==a?Math.abs(a):Math.abs(i))*(a>0?-1:a<0?1:i>0?-1:1)}(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&SGe.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function RGe(e,t,i,a){e.removeEventListener(t,i,a)}var IGe=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function DGe(e){return 2===e.which||3===e.which}var OGe=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},s=0,o=a.length;s<o;s++){var r=a[s],l=EGe(i,r,{});n.points.push([l.zrX,l.zrY]),n.touches.push(r)}this._track.push(n)}},e.prototype._recognize=function(e){for(var t in NGe)if(NGe.hasOwnProperty(t)){var i=NGe[t](this._track,e);if(i)return i}},e}();function MGe(e){var t=e[1][0]-e[0][0],i=e[1][1]-e[0][1];return Math.sqrt(t*t+i*i)}var NGe={pinch:function(e,t){var i=e.length;if(i){var a,n=(e[i-1]||{}).points,s=(e[i-2]||{}).points||n;if(s&&s.length>1&&n&&n.length>1){var o=MGe(n)/MGe(s);!isFinite(o)&&(o=1),t.pinchScale=o;var r=[((a=n)[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2];return t.pinchX=r[0],t.pinchY=r[1],{type:"pinch",target:e[0].target,event:t}}}}};function LGe(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function PGe(e,t,i){var a=t[0]*i[0]+t[2]*i[1],n=t[1]*i[0]+t[3]*i[1],s=t[0]*i[2]+t[2]*i[3],o=t[1]*i[2]+t[3]*i[3],r=t[0]*i[4]+t[2]*i[5]+t[4],l=t[1]*i[4]+t[3]*i[5]+t[5];return e[0]=a,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=l,e}function FGe(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e}function BGe(e,t,i,a){void 0===a&&(a=[0,0]);var n=t[0],s=t[2],o=t[4],r=t[1],l=t[3],c=t[5],d=Math.sin(i),u=Math.cos(i);return e[0]=n*u+r*d,e[1]=-n*d+r*u,e[2]=s*u+l*d,e[3]=-s*d+u*l,e[4]=u*(o-a[0])+d*(c-a[1])+a[0],e[5]=u*(c-a[1])-d*(o-a[0])+a[1],e}function $Ge(e,t){var i=t[0],a=t[2],n=t[4],s=t[1],o=t[3],r=t[5],l=i*o-s*a;return l?(l=1/l,e[0]=o*l,e[1]=-s*l,e[2]=-a*l,e[3]=i*l,e[4]=(a*r-o*n)*l,e[5]=(s*n-i*r)*l,e):null}var VGe=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,i){e.x=t,e.y=i},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},e.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},e.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},e.scaleAndAdd=function(e,t,i,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},e.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},e}(),UGe=Math.min,HGe=Math.max,zGe=new VGe,YGe=new VGe,GGe=new VGe,WGe=new VGe,jGe=new VGe,qGe=new VGe,KGe=function(){function e(e,t,i,a){i<0&&(e+=i,i=-i),a<0&&(t+=a,a=-a),this.x=e,this.y=t,this.width=i,this.height=a}return e.prototype.union=function(e){var t=UGe(e.x,this.x),i=UGe(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=HGe(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=HGe(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,a=e.height/t.height,n=[1,0,0,1,0,0];return FGe(n,n,[-t.x,-t.y]),function(e,t,i){var a=i[0],n=i[1];e[0]=t[0]*a,e[1]=t[1]*n,e[2]=t[2]*a,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*n}(n,n,[i,a]),FGe(n,n,[e.x,e.y]),n},e.prototype.intersect=function(t,i){if(!t)return!1;t instanceof e||(t=e.create(t));var a=this,n=a.x,s=a.x+a.width,o=a.y,r=a.y+a.height,l=t.x,c=t.x+t.width,d=t.y,u=t.y+t.height,p=!(s<l||c<n||r<d||u<o);if(i){var h=1/0,f=0,g=Math.abs(s-l),m=Math.abs(c-n),_=Math.abs(r-d),v=Math.abs(u-o),b=Math.min(g,m),y=Math.min(_,v);s<l||c<n?b>f&&(f=b,g<m?VGe.set(qGe,-g,0):VGe.set(qGe,m,0)):b<h&&(h=b,g<m?VGe.set(jGe,g,0):VGe.set(jGe,-m,0)),r<d||u<o?y>f&&(f=y,_<v?VGe.set(qGe,0,-_):VGe.set(qGe,0,v)):b<h&&(h=b,_<v?VGe.set(jGe,0,_):VGe.set(jGe,0,-v))}return i&&VGe.copy(i,p?jGe:qGe),p},e.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,i,a){if(a){if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],s=a[3],o=a[4],r=a[5];return t.x=i.x*n+o,t.y=i.y*s+r,t.width=i.width*n,t.height=i.height*s,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}zGe.x=GGe.x=i.x,zGe.y=WGe.y=i.y,YGe.x=WGe.x=i.x+i.width,YGe.y=GGe.y=i.y+i.height,zGe.transform(a),WGe.transform(a),YGe.transform(a),GGe.transform(a),t.x=UGe(zGe.x,YGe.x,GGe.x,WGe.x),t.y=UGe(zGe.y,YGe.y,GGe.y,WGe.y);var l=HGe(zGe.x,YGe.x,GGe.x,WGe.x),c=HGe(zGe.y,YGe.y,GGe.y,WGe.y);t.width=l-t.x,t.height=c-t.y}else t!==i&&e.copy(t,i)},e}(),XGe="silent";function ZGe(){IGe(this.event)}var QGe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return XYe(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(uGe),JGe=function(){return function(e,t){this.x=e,this.y=t}}(),eWe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tWe=new KGe(0,0,0,0),iWe=function(e){function t(t,i,a,n,s){var o=e.call(this)||this;return o._hovered=new JGe(0,0),o.storage=t,o.painter=i,o.painterRoot=n,o._pointerSize=s,a=a||new QGe,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new dGe(o),o}return XYe(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(hYe(eWe,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,i=e.zrY,a=sWe(this,t,i),n=this._hovered,s=n.target;s&&!s.__zr&&(s=(n=this.findHover(n.x,n.y)).target);var o=this._hovered=a?new JGe(t,i):this.findHover(t,i),r=o.target,l=this.proxy;l.setCursor&&l.setCursor(r?r.cursor:"default"),s&&r!==s&&this.dispatchToElement(n,"mouseout",e),this.dispatchToElement(o,"mousemove",e),r&&r!==s&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new JGe(0,0)},t.prototype.dispatch=function(e,t){var i=this[e];i&&i.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,i){var a=(e=e||{}).target;if(!a||!a.silent){for(var n="on"+t,s=function(e,t,i){return{type:e,event:i,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:ZGe}}(t,e,i);a&&(a[n]&&(s.cancelBubble=!!a[n].call(a,s)),a.trigger(t,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(t,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[n]&&e[n].call(e,s),e.trigger&&e.trigger(t,s)}))}},t.prototype.findHover=function(e,t,i){var a=this.storage.getDisplayList(),n=new JGe(e,t);if(nWe(a,n,e,t,i),this._pointerSize&&!n.target){for(var s=[],o=this._pointerSize,r=o/2,l=new KGe(e-r,t-r,o,o),c=a.length-1;c>=0;c--){var d=a[c];d===i||d.ignore||d.ignoreCoarsePointer||d.parent&&d.parent.ignoreCoarsePointer||(tWe.copy(d.getBoundingRect()),d.transform&&tWe.applyTransform(d.transform),tWe.intersect(l)&&s.push(d))}if(s.length)for(var u=Math.PI/12,p=2*Math.PI,h=0;h<r;h+=4)for(var f=0;f<p;f+=u){if(nWe(s,n,e+h*Math.cos(f),t+h*Math.sin(f),i),n.target)return n}}return n},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new OGe);var i=this._gestureMgr;"start"===t&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&i.clear(),a){var n=a.type;e.gestureEvent=n;var s=new JGe;s.target=a.target,this.dispatchToElement(s,n,a.event)}},t}(uGe);function aWe(e,t,i){if(e[e.rectHover?"rectContain":"contain"](t,i)){for(var a=e,n=void 0,s=!1;a;){if(a.ignoreClip&&(s=!0),!s){var o=a.getClipPath();if(o&&!o.contain(t,i))return!1}a.silent&&(n=!0);var r=a.__hostTarget;a=r||a.parent}return!n||XGe}return!1}function nWe(e,t,i,a,n){for(var s=e.length-1;s>=0;s--){var o=e[s],r=void 0;if(o!==n&&!o.ignore&&(r=aWe(o,i,a))&&(!t.topTarget&&(t.topTarget=o),r!==XGe)){t.target=o;break}}}function sWe(e,t,i){var a=e.painter;return t<0||t>a.getWidth()||i<0||i>a.getHeight()}hYe(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){iWe.prototype[e]=function(t){var i,a,n=t.zrX,s=t.zrY,o=sWe(this,n,s);if("mouseup"===e&&o||(a=(i=this.findHover(n,s)).target),"mousedown"===e)this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if("mouseup"===e)this._upEl=a;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||nGe(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function oWe(e,t,i,a){var n=t+1;if(n===i)return 1;if(a(e[n++],e[t])<0){for(;n<i&&a(e[n],e[n-1])<0;)n++;!function(e,t,i){i--;for(;t<i;){var a=e[t];e[t++]=e[i],e[i--]=a}}(e,t,n)}else for(;n<i&&a(e[n],e[n-1])>=0;)n++;return n-t}function rWe(e,t,i,a,n){for(a===t&&a++;a<i;a++){for(var s,o=e[a],r=t,l=a;r<l;)n(o,e[s=r+l>>>1])<0?l=s:r=s+1;var c=a-r;switch(c){case 3:e[r+3]=e[r+2];case 2:e[r+2]=e[r+1];case 1:e[r+1]=e[r];break;default:for(;c>0;)e[r+c]=e[r+c-1],c--}e[r]=o}}function lWe(e,t,i,a,n,s){var o=0,r=0,l=1;if(s(e,t[i+n])>0){for(r=a-n;l<r&&s(e,t[i+n+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=r);l>r&&(l=r),o+=n,l+=n}else{for(r=n+1;l<r&&s(e,t[i+n-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=r);l>r&&(l=r);var c=o;o=n-l,l=n-c}for(o++;o<l;){var d=o+(l-o>>>1);s(e,t[i+d])>0?o=d+1:l=d}return l}function cWe(e,t,i,a,n,s){var o=0,r=0,l=1;if(s(e,t[i+n])<0){for(r=n+1;l<r&&s(e,t[i+n-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=r);l>r&&(l=r);var c=o;o=n-l,l=n-c}else{for(r=a-n;l<r&&s(e,t[i+n+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=r);l>r&&(l=r),o+=n,l+=n}for(o++;o<l;){var d=o+(l-o>>>1);s(e,t[i+d])<0?l=d:o=d+1}return l}function dWe(e,t){var i,a,n=7,s=0,o=[];function r(r){var l=i[r],c=a[r],d=i[r+1],u=a[r+1];a[r]=c+u,r===s-3&&(i[r+1]=i[r+2],a[r+1]=a[r+2]),s--;var p=cWe(e[d],e,l,c,0,t);l+=p,0!==(c-=p)&&0!==(u=lWe(e[l+c-1],e,d,u,u-1,t))&&(c<=u?function(i,a,s,r){var l=0;for(l=0;l<a;l++)o[l]=e[i+l];var c=0,d=s,u=i;if(e[u++]=e[d++],0===--r){for(l=0;l<a;l++)e[u+l]=o[c+l];return}if(1===a){for(l=0;l<r;l++)e[u+l]=e[d+l];return void(e[u+r]=o[c])}var p,h,f,g=n;for(;;){p=0,h=0,f=!1;do{if(t(e[d],o[c])<0){if(e[u++]=e[d++],h++,p=0,0===--r){f=!0;break}}else if(e[u++]=o[c++],p++,h=0,1===--a){f=!0;break}}while((p|h)<g);if(f)break;do{if(0!==(p=cWe(e[d],o,c,a,0,t))){for(l=0;l<p;l++)e[u+l]=o[c+l];if(u+=p,c+=p,(a-=p)<=1){f=!0;break}}if(e[u++]=e[d++],0===--r){f=!0;break}if(0!==(h=lWe(o[c],e,d,r,0,t))){for(l=0;l<h;l++)e[u+l]=e[d+l];if(u+=h,d+=h,0===(r-=h)){f=!0;break}}if(e[u++]=o[c++],1===--a){f=!0;break}g--}while(p>=7||h>=7);if(f)break;g<0&&(g=0),g+=2}if((n=g)<1&&(n=1),1===a){for(l=0;l<r;l++)e[u+l]=e[d+l];e[u+r]=o[c]}else{if(0===a)throw new Error;for(l=0;l<a;l++)e[u+l]=o[c+l]}}(l,c,d,u):function(i,a,s,r){var l=0;for(l=0;l<r;l++)o[l]=e[s+l];var c=i+a-1,d=r-1,u=s+r-1,p=0,h=0;if(e[u--]=e[c--],0===--a){for(p=u-(r-1),l=0;l<r;l++)e[p+l]=o[l];return}if(1===r){for(h=(u-=a)+1,p=(c-=a)+1,l=a-1;l>=0;l--)e[h+l]=e[p+l];return void(e[u]=o[d])}var f=n;for(;;){var g=0,m=0,_=!1;do{if(t(o[d],e[c])<0){if(e[u--]=e[c--],g++,m=0,0===--a){_=!0;break}}else if(e[u--]=o[d--],m++,g=0,1===--r){_=!0;break}}while((g|m)<f);if(_)break;do{if(0!==(g=a-cWe(o[d],e,i,a,a-1,t))){for(a-=g,h=(u-=g)+1,p=(c-=g)+1,l=g-1;l>=0;l--)e[h+l]=e[p+l];if(0===a){_=!0;break}}if(e[u--]=o[d--],1===--r){_=!0;break}if(0!==(m=r-lWe(e[c],o,0,r,r-1,t))){for(r-=m,h=(u-=m)+1,p=(d-=m)+1,l=0;l<m;l++)e[h+l]=o[p+l];if(r<=1){_=!0;break}}if(e[u--]=e[c--],0===--a){_=!0;break}f--}while(g>=7||m>=7);if(_)break;f<0&&(f=0),f+=2}(n=f)<1&&(n=1);if(1===r){for(h=(u-=a)+1,p=(c-=a)+1,l=a-1;l>=0;l--)e[h+l]=e[p+l];e[u]=o[d]}else{if(0===r)throw new Error;for(p=u-(r-1),l=0;l<r;l++)e[p+l]=o[l]}}(l,c,d,u))}return i=[],a=[],{mergeRuns:function(){for(;s>1;){var e=s-2;if(e>=1&&a[e-1]<=a[e]+a[e+1]||e>=2&&a[e-2]<=a[e]+a[e-1])a[e-1]<a[e+1]&&e--;else if(a[e]>a[e+1])break;r(e)}},forceMergeRuns:function(){for(;s>1;){var e=s-2;e>0&&a[e-1]<a[e+1]&&e--,r(e)}},pushRun:function(e,t){i[s]=e,a[s]=t,s+=1}}}function uWe(e,t,i,a){i||(i=0),a||(a=e.length);var n=a-i;if(!(n<2)){var s=0;if(n<32)rWe(e,i,a,i+(s=oWe(e,i,a,t)),t);else{var o=dWe(e,t),r=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(n);do{if((s=oWe(e,i,a,t))<r){var l=n;l>r&&(l=r),rWe(e,i,i+l,i+s,t),s=l}o.pushRun(i,s),o.mergeRuns(),n-=s,i+=s}while(0!==n);o.forceMergeRuns()}}}var pWe=!1;function hWe(){pWe||(pWe=!0)}function fWe(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gWe,mWe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fWe}return e.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return!e&&i.length||this.updateDisplayList(t),i},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,a=0,n=t.length;a<n;a++)this._updateAndAddDisplayable(t[a],null,e);i.length=this._displayListLen,uWe(i,fWe)},e.prototype._updateAndAddDisplayable=function(e,t,i){if(!e.ignore||i){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)t=null;else if(a){t=t?t.slice():[];for(var n=a,s=e;n;)n.parent=s,n.updateTransform(),t.push(n),s=n,n=n.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),r=0;r<o.length;r++){var l=o[r];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,i)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(hWe(),c.z=0),isNaN(c.z2)&&(hWe(),c.z2=0),isNaN(c.zlevel)&&(hWe(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,i);var u=e.getTextGuideLine();u&&this._updateAndAddDisplayable(u,t,i);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,i)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);else{var a=dYe(this._roots,e);a>=0&&this._roots.splice(a,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();gWe=Uze.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var _We={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,i=.1;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=.1):t=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,i=.1;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=.1):t=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,i=.1,a=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=.1):t=a*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_We.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*_We.bounceIn(2*e):.5*_We.bounceOut(2*e-1)+.5}},vWe=Math.pow,bWe=Math.sqrt,yWe=1e-8,xWe=1e-4,SWe=bWe(3),wWe=1/3,CWe=ZYe(),EWe=ZYe(),kWe=ZYe();function TWe(e){return e>-1e-8&&e<yWe}function AWe(e){return e>yWe||e<-1e-8}function RWe(e,t,i,a,n){var s=1-n;return s*s*(s*e+3*n*t)+n*n*(n*a+3*s*i)}function IWe(e,t,i,a,n){var s=1-n;return 3*(((t-e)*s+2*(i-t)*n)*s+(a-i)*n*n)}function DWe(e,t,i,a,n,s){var o=a+3*(t-i)-e,r=3*(i-2*t+e),l=3*(t-e),c=e-n,d=r*r-3*o*l,u=r*l-9*o*c,p=l*l-3*r*c,h=0;if(TWe(d)&&TWe(u)){if(TWe(r))s[0]=0;else(C=-l/r)>=0&&C<=1&&(s[h++]=C)}else{var f=u*u-4*d*p;if(TWe(f)){var g=u/d,m=-g/2;(C=-r/o+g)>=0&&C<=1&&(s[h++]=C),m>=0&&m<=1&&(s[h++]=m)}else if(f>0){var _=bWe(f),v=d*r+1.5*o*(-u+_),b=d*r+1.5*o*(-u-_);(C=(-r-((v=v<0?-vWe(-v,wWe):vWe(v,wWe))+(b=b<0?-vWe(-b,wWe):vWe(b,wWe))))/(3*o))>=0&&C<=1&&(s[h++]=C)}else{var y=(2*d*r-3*o*u)/(2*bWe(d*d*d)),x=Math.acos(y)/3,S=bWe(d),w=Math.cos(x),C=(-r-2*S*w)/(3*o),E=(m=(-r+S*(w+SWe*Math.sin(x)))/(3*o),(-r+S*(w-SWe*Math.sin(x)))/(3*o));C>=0&&C<=1&&(s[h++]=C),m>=0&&m<=1&&(s[h++]=m),E>=0&&E<=1&&(s[h++]=E)}}return h}function OWe(e,t,i,a,n){var s=6*i-12*t+6*e,o=9*t+3*a-3*e-9*i,r=3*t-3*e,l=0;if(TWe(o)){if(AWe(s))(d=-r/s)>=0&&d<=1&&(n[l++]=d)}else{var c=s*s-4*o*r;if(TWe(c))n[0]=-s/(2*o);else if(c>0){var d,u=bWe(c),p=(-s-u)/(2*o);(d=(-s+u)/(2*o))>=0&&d<=1&&(n[l++]=d),p>=0&&p<=1&&(n[l++]=p)}}return l}function MWe(e,t,i,a,n,s){var o=(t-e)*n+e,r=(i-t)*n+t,l=(a-i)*n+i,c=(r-o)*n+o,d=(l-r)*n+r,u=(d-c)*n+c;s[0]=e,s[1]=o,s[2]=c,s[3]=u,s[4]=u,s[5]=d,s[6]=l,s[7]=a}function NWe(e,t,i,a,n,s,o,r,l){for(var c=e,d=t,u=0,p=1/l,h=1;h<=l;h++){var f=h*p,g=RWe(e,i,n,o,f),m=RWe(t,a,s,r,f),_=g-c,v=m-d;u+=Math.sqrt(_*_+v*v),c=g,d=m}return u}function LWe(e,t,i,a){var n=1-a;return n*(n*e+2*a*t)+a*a*i}function PWe(e,t,i,a){return 2*((1-a)*(t-e)+a*(i-t))}function FWe(e,t,i){var a=e+i-2*t;return 0===a?.5:(e-t)/a}function BWe(e,t,i,a,n){var s=(t-e)*a+e,o=(i-t)*a+t,r=(o-s)*a+s;n[0]=e,n[1]=s,n[2]=r,n[3]=r,n[4]=o,n[5]=i}function $We(e,t,i,a,n,s,o){for(var r=e,l=t,c=0,d=1/o,u=1;u<=o;u++){var p=u*d,h=LWe(e,i,n,p),f=LWe(t,a,s,p),g=h-r,m=f-l;c+=Math.sqrt(g*g+m*m),r=h,l=f}return c}var VWe=/cubic-bezier\(([0-9,\.e ]+)\)/;function UWe(e){var t=e&&VWe.exec(e);if(t){var i=t[1].split(","),a=+FYe(i[0]),n=+FYe(i[1]),s=+FYe(i[2]),o=+FYe(i[3]);if(isNaN(a+n+s+o))return;var r=[];return function(e){return e<=0?0:e>=1?1:DWe(0,a,s,1,e,r)&&RWe(0,n,o,1,r[0])}}}var HWe=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||jYe,this.ondestroy=e.ondestroy||jYe,this.onrestart=e.onrestart||jYe,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var i=this._life,a=e-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var s=this.easingFunc,o=s?s(n):n;if(this.onframe(o),1===n){if(!this.loop)return!0;var r=a%i;this._startTime=e-r,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=xYe(e)?e:_We[e]||UWe(e)},e}(),zWe=function(){return function(e){this.value=e}}(),YWe=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new zWe(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),GWe=function(){function e(e){this._list=new YWe,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var i=this._list,a=this._map,n=null;if(null==a[e]){var s=i.len(),o=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var r=i.head;i.remove(r),delete a[r.key],n=r.value,this._lastRemovedEntry=r}o?o.value=t:o=new zWe(t),o.key=e,i.insertEntry(o),a[e]=o}return n},e.prototype.get=function(e){var t=this._map[e],i=this._list;if(null!=t)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),WWe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function jWe(e){return(e=Math.round(e))<0?0:e>255?255:e}function qWe(e){return e<0?0:e>1?1:e}function KWe(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?jWe(parseFloat(t)/100*255):jWe(parseInt(t,10))}function XWe(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?qWe(parseFloat(t)/100):qWe(parseFloat(t))}function ZWe(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function QWe(e,t,i,a,n){return e[0]=t,e[1]=i,e[2]=a,e[3]=n,e}function JWe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var eje=new GWe(20),tje=null;function ije(e,t){tje&&JWe(tje,t),tje=eje.put(e,tje||t.slice())}function aje(e,t){if(e){t=t||[];var i=eje.get(e);if(i)return JWe(t,i);var a=(e+="").replace(/ /g,"").toLowerCase();if(a in WWe)return JWe(t,WWe[a]),ije(e,t),t;var n,s=a.length;if("#"===a.charAt(0))return 4===s||5===s?(n=parseInt(a.slice(1,4),16))>=0&&n<=4095?(QWe(t,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,5===s?parseInt(a.slice(4),16)/15:1),ije(e,t),t):void QWe(t,0,0,0,1):7===s||9===s?(n=parseInt(a.slice(1,7),16))>=0&&n<=16777215?(QWe(t,(16711680&n)>>16,(65280&n)>>8,255&n,9===s?parseInt(a.slice(7),16)/255:1),ije(e,t),t):void QWe(t,0,0,0,1):void 0;var o=a.indexOf("("),r=a.indexOf(")");if(-1!==o&&r+1===s){var l=a.substr(0,o),c=a.substr(o+1,r-(o+1)).split(","),d=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?QWe(t,+c[0],+c[1],+c[2],1):QWe(t,0,0,0,1);d=XWe(c.pop());case"rgb":return c.length>=3?(QWe(t,KWe(c[0]),KWe(c[1]),KWe(c[2]),3===c.length?d:XWe(c[3])),ije(e,t),t):void QWe(t,0,0,0,1);case"hsla":return 4!==c.length?void QWe(t,0,0,0,1):(c[3]=XWe(c[3]),nje(c,t),ije(e,t),t);case"hsl":return 3!==c.length?void QWe(t,0,0,0,1):(nje(c,t),ije(e,t),t);default:return}}QWe(t,0,0,0,1)}}function nje(e,t){var i=(parseFloat(e[0])%360+360)%360/360,a=XWe(e[1]),n=XWe(e[2]),s=n<=.5?n*(a+1):n+a-n*a,o=2*n-s;return QWe(t=t||[],jWe(255*ZWe(o,s,i+1/3)),jWe(255*ZWe(o,s,i)),jWe(255*ZWe(o,s,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function sje(e,t){var i=aje(e);if(i){for(var a=0;a<3;a++)i[a]=i[a]*(1-t)|0,i[a]>255?i[a]=255:i[a]<0&&(i[a]=0);return oje(i,4===i.length?"rgba":"rgb")}}function oje(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+e[3]),t+"("+i+")"}}function rje(e,t){var i=aje(e);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*t:0}var lje=new GWe(100);function cje(e){if(SYe(e)){var t=lje.get(e);return t||(t=sje(e,-.1),lje.put(e,t)),t}if(RYe(e)){var i=lYe({},e);return i.colorStops=fYe(e.colorStops,function(e){return{offset:e.offset,color:sje(e.color,-.1)}}),i}return e}var dje=Math.round;function uje(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var i=aje(e);i&&(e="rgb("+i[0]+","+i[1]+","+i[2]+")",t=i[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var pje=1e-4;function hje(e){return e<pje&&e>-1e-4}function fje(e){return dje(1e3*e)/1e3}function gje(e){return dje(1e4*e)/1e4}var mje={left:"start",right:"end",center:"middle",middle:"middle"};function _je(e){return e&&!!e.image}function vje(e){return _je(e)||function(e){return e&&!!e.svgElement}(e)}function bje(e){return"linear"===e.type}function yje(e){return"radial"===e.type}function xje(e){return e&&("linear"===e.type||"radial"===e.type)}function Sje(e){return"url(#"+e+")"}function wje(e){var t=e.getGlobalScale(),i=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(i)/Math.log(10)),1)}function Cje(e){var t=e.x||0,i=e.y||0,a=(e.rotation||0)*qYe,n=OYe(e.scaleX,1),s=OYe(e.scaleY,1),o=e.skewX||0,r=e.skewY||0,l=[];return(t||i)&&l.push("translate("+t+"px,"+i+"px)"),a&&l.push("rotate("+a+")"),1===n&&1===s||l.push("scale("+n+","+s+")"),(o||r)&&l.push("skew("+dje(o*qYe)+"deg, "+dje(r*qYe)+"deg)"),l.join(" ")}var Eje=Uze.hasGlobalWindow&&xYe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null},kje=Array.prototype.slice;function Tje(e,t,i){return(t-e)*i+e}function Aje(e,t,i,a){for(var n=t.length,s=0;s<n;s++)e[s]=Tje(t[s],i[s],a);return e}function Rje(e,t,i,a){for(var n=t.length,s=0;s<n;s++)e[s]=t[s]+i[s]*a;return e}function Ije(e,t,i,a){for(var n=t.length,s=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var r=0;r<s;r++)e[o][r]=t[o][r]+i[o][r]*a}return e}function Dje(e,t){for(var i=e.length,a=t.length,n=i>a?t:e,s=Math.min(i,a),o=n[s-1]||{color:[0,0,0,0],offset:0},r=s;r<Math.max(i,a);r++)n.push({offset:o.offset,color:o.color.slice()})}function Oje(e,t,i){var a=e,n=t;if(a.push&&n.push){var s=a.length,o=n.length;if(s!==o)if(s>o)a.length=o;else for(var r=s;r<o;r++)a.push(1===i?n[r]:kje.call(n[r]));var l=a[0]&&a[0].length;for(r=0;r<a.length;r++)if(1===i)isNaN(a[r])&&(a[r]=n[r]);else for(var c=0;c<l;c++)isNaN(a[r][c])&&(a[r][c]=n[r][c])}}function Mje(e){if(pYe(e)){var t=e.length;if(pYe(e[0])){for(var i=[],a=0;a<t;a++)i.push(kje.call(e[a]));return i}return kje.call(e)}return e}function Nje(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function Lje(e){return 4===e||5===e}function Pje(e){return 1===e||2===e}var Fje=[0,0,0,0],Bje=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var a=this.keyframes,n=a.length,s=!1,o=6,r=t;if(pYe(t)){var l=function(e){return pYe(e&&e[0])?2:1}(t);o=l,(1===l&&!CYe(t[0])||2===l&&!CYe(t[0][0]))&&(s=!0)}else if(CYe(t)&&!IYe(t))o=0;else if(SYe(t))if(isNaN(+t)){var c=aje(t);c&&(r=c,o=3)}else o=0;else if(RYe(t)){var d=lYe({},r);d.colorStops=fYe(t.colorStops,function(e){return{offset:e.offset,color:aje(e.color)}}),bje(t)?o=4:yje(t)&&(o=5),r=d}0===n?this.valType=o:o===this.valType&&6!==o||(s=!0),this.discrete=this.discrete||s;var u={time:e,value:r,rawValue:t,percent:0};return i&&(u.easing=i,u.easingFunc=xYe(i)?i:_We[i]||UWe(i)),a.push(u),u},e.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(e,t){return e.time-t.time});for(var a=this.valType,n=i.length,s=i[n-1],o=this.discrete,r=Pje(a),l=Lje(a),c=0;c<n;c++){var d=i[c],u=d.value,p=s.value;d.percent=d.time/e,o||(r&&c!==n-1?Oje(u,p,a):l&&Dje(u.colorStops,p.colorStops))}if(!o&&5!==a&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;var h=i[0].value;for(c=0;c<n;c++)0===a?i[c].additiveValue=i[c].value-h:3===a?i[c].additiveValue=Rje([],i[c].value,h,-1):Pje(a)&&(i[c].additiveValue=1===a?Rje([],i[c].value,h,-1):Ije([],i[c].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,a,n,s=null!=this._additiveTrack,o=s?"additiveValue":"value",r=this.valType,l=this.keyframes,c=l.length,d=this.propName,u=3===r,p=this._lastFr,h=Math.min;if(1===c)a=n=l[0];else{if(t<0)i=0;else if(t<this._lastFrP){for(i=h(p+1,c-1);i>=0&&!(l[i].percent<=t);i--);i=h(i,c-2)}else{for(i=p;i<c&&!(l[i].percent>t);i++);i=h(i-1,c-2)}n=l[i+1],a=l[i]}if(a&&n){this._lastFr=i,this._lastFrP=t;var f=n.percent-a.percent,g=0===f?1:h((t-a.percent)/f,1);n.easingFunc&&(g=n.easingFunc(g));var m=s?this._additiveValue:u?Fje:e[d];if(!Pje(r)&&!u||m||(m=this._additiveValue=[]),this.discrete)e[d]=g<1?a.rawValue:n.rawValue;else if(Pje(r))1===r?Aje(m,a[o],n[o],g):function(e,t,i,a){for(var n=t.length,s=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var r=0;r<s;r++)e[o][r]=Tje(t[o][r],i[o][r],a)}}(m,a[o],n[o],g);else if(Lje(r)){var _=a[o],v=n[o],b=4===r;e[d]={type:b?"linear":"radial",x:Tje(_.x,v.x,g),y:Tje(_.y,v.y,g),colorStops:fYe(_.colorStops,function(e,t){var i=v.colorStops[t];return{offset:Tje(e.offset,i.offset,g),color:Nje(Aje([],e.color,i.color,g))}}),global:v.global},b?(e[d].x2=Tje(_.x2,v.x2,g),e[d].y2=Tje(_.y2,v.y2,g)):e[d].r=Tje(_.r,v.r,g)}else if(u)Aje(m,a[o],n[o],g),s||(e[d]=Nje(m));else{var y=Tje(a[o],n[o],g);s?this._additiveValue=y:e[d]=y}s&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;0===t?e[i]=e[i]+a:3===t?(aje(e[i],Fje),Rje(Fje,Fje,a,1),e[i]=Nje(Fje)):1===t?Rje(e[i],e[i],a,1):2===t&&Ije(e[i],e[i],a,1)},e}(),$je=function(){function e(e,t,i,a){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a?sYe("Can' use additive animation on looped animation."):(this._additiveAnimators=a,this._allowDiscrete=i)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,_Ye(t),i)},e.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,s=0;s<i.length;s++){var o=i[s],r=n[o];if(!r){r=n[o]=new Bje(o);var l=void 0,c=this._getAdditiveTrack(o);if(c){var d=c.keyframes,u=d[d.length-1];l=u&&u.value,3===c.valType&&l&&(l=Nje(l))}else l=this._target[o];if(null==l)continue;e>0&&r.addKeyframe(0,Mje(l),a),this._trackKeys.push(o)}r.addKeyframe(e,Mje(t[o]),a)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(e);n&&(t=n)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var s=this._trackKeys[n],o=this._tracks[s],r=this._getAdditiveTrack(s),l=o.keyframes,c=l.length;if(o.prepare(a,r),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var d=l[c-1];d&&(t._target[o.propName]=d.rawValue),o.setFinished()}else i.push(o)}if(i.length||this._force){var u=new HWe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var a=t._additiveAnimators;if(a){for(var n=!1,s=0;s<a.length;s++)if(a[s]._clip){n=!0;break}n||(t._additiveAnimators=null)}for(s=0;s<i.length;s++)i[s].step(t._target,e);var o=t._onframeCbs;if(o)for(s=0;s<o.length;s++)o[s](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=u,this.animation&&this.animation.addClip(u),e&&u.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return fYe(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<e.length;n++){var s=i[e[n]];s&&!s.isFinished()&&(t?s.step(this._target,1):1===this._started&&s.step(this._target,0),s.setFinished())}var o=!0;for(n=0;n<a.length;n++)if(!i[a[n]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var n=t[a],s=this._tracks[n];if(s&&!s.isFinished()){var o=s.keyframes,r=o[i?0:o.length-1];r&&(e[n]=Mje(r.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||_Ye(e);for(var i=0;i<t.length;i++){var a=t[i],n=this._tracks[a];if(n){var s=n.keyframes;if(s.length>1){var o=s.pop();n.addKeyframe(o.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},e}();function Vje(){return(new Date).getTime()}var Uje,Hje,zje,Yje=function(e){function t(t){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return XYe(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,i=e.next;t?t.next=i:this._head=i,i?i.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Vje()-this._pausedTime,i=t-this._time,a=this._head;a;){var n=a.next;a.step(t,i)?(a.ondestroy(),this.removeClip(a),a=n):a=n}this._time=t,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,gWe(function t(){e._running&&(gWe(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Vje(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Vje(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Vje()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var i=new $je(e,t.loop);return this.addAnimator(i),i},t}(uGe),Gje=Uze.domSupported,Wje=(Hje={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},zje=fYe(Uje=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return Hje.hasOwnProperty(t)?t:e}),{mouse:Uje,touch:["touchstart","touchend","touchmove"],pointer:zje}),jje=["mousemove","mouseup"],qje=["pointermove","pointerup"],Kje=!1;function Xje(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Zje(e){e&&(e.zrByTouch=!0)}function Qje(e,t){for(var i=t,a=!1;i&&9!==i.nodeType&&!(a=i.domBelongToZr||i!==t&&i===e.painterRoot);)i=i.parentNode;return a}var Jje=function(){return function(e,t){this.stopPropagation=jYe,this.stopImmediatePropagation=jYe,this.preventDefault=jYe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),eqe={mousedown:function(e){e=AGe(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=AGe(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=AGe(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Qje(this,(e=AGe(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Kje=!0,e=AGe(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Kje||(e=AGe(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Zje(e=AGe(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),eqe.mousemove.call(this,e),eqe.mousedown.call(this,e)},touchmove:function(e){Zje(e=AGe(this.dom,e)),this.handler.processGesture(e,"change"),eqe.mousemove.call(this,e)},touchend:function(e){Zje(e=AGe(this.dom,e)),this.handler.processGesture(e,"end"),eqe.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&eqe.click.call(this,e)},pointerdown:function(e){eqe.mousedown.call(this,e)},pointermove:function(e){Xje(e)||eqe.mousemove.call(this,e)},pointerup:function(e){eqe.mouseup.call(this,e)},pointerout:function(e){Xje(e)||eqe.mouseout.call(this,e)}};hYe(["click","dblclick","contextmenu"],function(e){eqe[e]=function(t){t=AGe(this.dom,t),this.trigger(e,t)}});var tqe={pointermove:function(e){Xje(e)||tqe.mousemove.call(this,e)},pointerup:function(e){tqe.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function iqe(e,t){var i=t.domHandlers;Uze.pointerEventsSupported?hYe(Wje.pointer,function(a){nqe(t,a,function(t){i[a].call(e,t)})}):(Uze.touchEventsSupported&&hYe(Wje.touch,function(a){nqe(t,a,function(n){i[a].call(e,n),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),hYe(Wje.mouse,function(a){nqe(t,a,function(n){n=TGe(n),t.touching||i[a].call(e,n)})}))}function aqe(e,t){function i(i){nqe(t,i,function(a){a=TGe(a),Qje(e,a.target)||(a=function(e,t){return AGe(e.dom,new Jje(e,t),!0)}(e,a),t.domHandlers[i].call(e,a))},{capture:!0})}Uze.pointerEventsSupported?hYe(qje,i):Uze.touchEventsSupported||hYe(jje,i)}function nqe(e,t,i,a){e.mounted[t]=i,e.listenerOpts[t]=a,function(e,t,i,a){e.addEventListener(t,i,a)}(e.domTarget,t,i,a)}function sqe(e){var t=e.mounted;for(var i in t)t.hasOwnProperty(i)&&RGe(e.domTarget,i,t[i],e.listenerOpts[i]);e.mounted={}}var oqe=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),rqe=function(e){function t(t,i){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=i,a._localHandlerScope=new oqe(t,eqe),Gje&&(a._globalHandlerScope=new oqe(document,tqe)),iqe(a,a._localHandlerScope),a}return XYe(t,e),t.prototype.dispose=function(){sqe(this._localHandlerScope),Gje&&sqe(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Gje&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?aqe(this,t):sqe(t)}},t}(uGe),lqe=1;Uze.hasGlobalWindow&&(lqe=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cqe=lqe,dqe="#333",uqe="#ccc",pqe=LGe,hqe=5e-5;function fqe(e){return e>hqe||e<-5e-5}var gqe=[],mqe=[],_qe=[1,0,0,1,0,0],vqe=Math.abs,bqe=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return fqe(this.rotation)||fqe(this.x)||fqe(this.y)||fqe(this.scaleX-1)||fqe(this.scaleY-1)||fqe(this.skewX)||fqe(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;t||e?(i=i||[1,0,0,1,0,0],t?this.getLocalTransform(i):pqe(i),e&&(t?PGe(i,e,i):function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5]}(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(pqe(i),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(gqe);var i=gqe[0]<0?-1:1,a=gqe[1]<0?-1:1,n=((gqe[0]-i)*t+i)/gqe[0]||0,s=((gqe[1]-a)*t+a)/gqe[1]||0;e[0]*=n,e[1]*=n,e[2]*=s,e[3]*=s}this.invTransform=this.invTransform||[1,0,0,1,0,0],$Ge(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],PGe(mqe,e.invTransform,t),t=mqe);var i=this.originX,a=this.originY;(i||a)&&(_qe[4]=i,_qe[5]=a,PGe(mqe,t,_qe),mqe[4]-=i,mqe[5]-=a,t=mqe),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var i=[e,t],a=this.invTransform;return a&&oGe(i,i,a),i},e.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&oGe(i,i,a),i},e.prototype.getLineScale=function(){var e=this.transform;return e&&vqe(e[0]-1)>1e-10&&vqe(e[3]-1)>1e-10?Math.sqrt(vqe(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){xqe(this,e)},e.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,a=e.originY||0,n=e.scaleX,s=e.scaleY,o=e.anchorX,r=e.anchorY,l=e.rotation||0,c=e.x,d=e.y,u=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(i||a||o||r){var h=i+o,f=a+r;t[4]=-h*n-u*f*s,t[5]=-f*s-p*h*n}else t[4]=t[5]=0;return t[0]=n,t[3]=s,t[1]=p*n,t[2]=u*s,l&&BGe(t,t,l),t[4]+=i+c,t[5]+=a+d,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),yqe=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function xqe(e,t){for(var i=0;i<yqe.length;i++){var a=yqe[i];e[a]=t[a]}}var Sqe={};function wqe(e,t){var i=Sqe[t=t||zze];i||(i=Sqe[t]=new GWe(500));var a=i.get(e);return null==a&&(a=Gze.measureText(e,t).width,i.put(e,a)),a}function Cqe(e,t,i,a){var n=wqe(e,t),s=Aqe(t),o=kqe(0,n,i),r=Tqe(0,s,a);return new KGe(o,r,n,s)}function Eqe(e,t,i,a){var n=((e||"")+"").split("\n");if(1===n.length)return Cqe(n[0],t,i,a);for(var s=new KGe(0,0,0,0),o=0;o<n.length;o++){var r=Cqe(n[o],t,i,a);0===o?s.copy(r):s.union(r)}return s}function kqe(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function Tqe(e,t,i){return"middle"===i?e-=t/2:"bottom"===i&&(e-=t),e}function Aqe(e){return wqe("国",e)}function Rqe(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Iqe(e,t,i){var a=t.position||"inside",n=null!=t.distance?t.distance:5,s=i.height,o=i.width,r=s/2,l=i.x,c=i.y,d="left",u="top";if(a instanceof Array)l+=Rqe(a[0],i.width),c+=Rqe(a[1],i.height),d=null,u=null;else switch(a){case"left":l-=n,c+=r,d="right",u="middle";break;case"right":l+=n+o,c+=r,u="middle";break;case"top":l+=o/2,c-=n,d="center",u="bottom";break;case"bottom":l+=o/2,c+=s+n,d="center";break;case"inside":l+=o/2,c+=r,d="center",u="middle";break;case"insideLeft":l+=n,c+=r,u="middle";break;case"insideRight":l+=o-n,c+=r,d="right",u="middle";break;case"insideTop":l+=o/2,c+=n,d="center";break;case"insideBottom":l+=o/2,c+=s-n,d="center",u="bottom";break;case"insideTopLeft":l+=n,c+=n;break;case"insideTopRight":l+=o-n,c+=n,d="right";break;case"insideBottomLeft":l+=n,c+=s-n,u="bottom";break;case"insideBottomRight":l+=o-n,c+=s-n,d="right",u="bottom"}return(e=e||{}).x=l,e.y=c,e.align=d,e.verticalAlign=u,e}var Dqe="__zr_normal__",Oqe=yqe.concat(["ignore"]),Mqe=gYe(yqe,function(e,t){return e[t]=!0,e},{ignore:!1}),Nqe={},Lqe=new KGe(0,0,0,0),Pqe=function(){function e(e){this.id=nYe(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=t.innerTransformable,s=void 0,o=void 0,r=!1;n.parent=a?this:null;var l=!1;if(n.copyTransform(t),null!=i.position){var c=Lqe;i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Nqe,i,c):Iqe(Nqe,i,c),n.x=Nqe.x,n.y=Nqe.y,s=Nqe.align,o=Nqe.verticalAlign;var d=i.origin;if(d&&null!=i.rotation){var u=void 0,p=void 0;"center"===d?(u=.5*c.width,p=.5*c.height):(u=Rqe(d[0],c.width),p=Rqe(d[1],c.height)),l=!0,n.originX=-n.x+u+(a?0:c.x),n.originY=-n.y+p+(a?0:c.y)}}null!=i.rotation&&(n.rotation=i.rotation);var h=i.offset;h&&(n.x+=h[0],n.y+=h[1],l||(n.originX=-h[0],n.originY=-h[1]));var f=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,_=void 0,v=void 0;f&&this.canBeInsideText()?(m=i.insideFill,_=i.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(m),v=!0)):(m=i.outsideFill,_=i.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(m),v=!0)),(m=m||"#000")===g.fill&&_===g.stroke&&v===g.autoStroke&&s===g.align&&o===g.verticalAlign||(r=!0,g.fill=m,g.stroke=_,g.autoStroke=v,g.align=s,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,r&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?uqe:dqe},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof t&&aje(t);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),s=0;s<3;s++)i[s]=i[s]*a+(n?0:255)*(1-a);return i[3]=1,oje(i,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},lYe(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(EYe(e))for(var i=_Ye(e),a=0;a<i.length;a++){var n=i[a];this.attrKV(n,e[n])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==Dqe)){var s=a.targetName,o=s?t[s]:t;a.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Oqe)},e.prototype._savePrimaryToNormal=function(e,t,i){for(var a=0;a<i.length;a++){var n=i[a];null==e[n]||n in t||(t[n]=this[n])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Dqe,!1,e)},e.prototype.useState=function(e,t,i,a){var n=e===Dqe;if(this.hasState()||!n){var s=this.currentStates,o=this.stateTransition;if(!(dYe(s,e)>=0)||!t&&1!==s.length){var r;if(this.stateProxy&&!n&&(r=this.stateProxy(e)),r||(r=this.states&&this.states[e]),r||n){n||this.saveCurrentToNormalState(r);var l=!!(r&&r.hoverLayer||a);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,r,this._normalState,t,!i&&!this.__inHover&&o&&o.duration>0,o);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,i,l),d&&d.useState(e,t,i,l),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r}sYe("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,i){if(e.length){var a=[],n=this.currentStates,s=e.length,o=s===n.length;if(o)for(var r=0;r<s;r++)if(e[r]!==n[r]){o=!1;break}if(o)return;for(r=0;r<s;r++){var l=e[r],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&a.push(c)}var d=a[s-1],u=!!(d&&d.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(a),h=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,u),g&&g.useStates(e,t,u),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=dYe(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},e.prototype.replaceState=function(e,t,i){var a=this.currentStates.slice(),n=dYe(a,e),s=dYe(a,t)>=0;n>=0?s?a.splice(n,1):a[n]=t:i&&!s&&a.push(t),this.useStates(a)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,i={},a=0;a<e.length;a++){var n=e[a];lYe(i,n),n.textConfig&&lYe(t=t||{},n.textConfig)}return t&&(i.textConfig=t),i},e.prototype._applyStateObj=function(e,t,i,a,n,s){var o=!(t&&a);t&&t.textConfig?(this.textConfig=lYe({},a?this.textConfig:i.textConfig),lYe(this.textConfig,t.textConfig)):o&&i.textConfig&&(this.textConfig=i.textConfig);for(var r={},l=!1,c=0;c<Oqe.length;c++){var d=Oqe[c],u=n&&Mqe[d];t&&null!=t[d]?u?(l=!0,r[d]=t[d]):this[d]=t[d]:o&&null!=i[d]&&(u?(l=!0,r[d]=i[d]):this[d]=i[d])}if(!n)for(c=0;c<this.animators.length;c++){var p=this.animators[c],h=p.targetName;p.getLoop()||p.__changeFinalValue(h?(t||i)[h]:t||i)}l&&this._transitionState(e,r,s)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new bqe,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),lYe(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,i){var a=e?this[e]:this,n=new $je(a,t,i);return e&&(n.targetName=e),this.addAnimator(n,e),n},e.prototype.addAnimator=function(e,t){var i=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var t=a.animators,i=dYe(t,e);i>=0&&t.splice(i,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var i=this.animators,a=i.length,n=[],s=0;s<a;s++){var o=i[s];e&&e!==o.scope?n.push(o):o.stop(t)}return this.animators=n,this},e.prototype.animateTo=function(e,t,i){Fqe(this,e,t,i)},e.prototype.animateFrom=function(e,t,i){Fqe(this,e,t,i,!0)},e.prototype._transitionState=function(e,t,i,a){for(var n=Fqe(this,t,i,a),s=0;s<n.length;s++)n[s].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function i(e,i,a,n){function s(e,t){Object.defineProperty(t,0,{get:function(){return e[a]},set:function(t){e[a]=t}}),Object.defineProperty(t,1,{get:function(){return e[n]},set:function(t){e[n]=t}})}Object.defineProperty(t,e,{get:function(){this[i]||s(this,this[i]=[]);return this[i]},set:function(e){this[a]=e[0],this[n]=e[1],this[i]=e,s(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function Fqe(e,t,i,a,n){var s=[];Vqe(e,"",e,t,i=i||{},a,s,n);var o=s.length,r=!1,l=i.done,c=i.aborted,d=function(){r=!0,--o<=0&&(r?l&&l():c&&c())},u=function(){--o<=0&&(r?l&&l():c&&c())};o||l&&l(),s.length>0&&i.during&&s[0].during(function(e,t){i.during(t)});for(var p=0;p<s.length;p++){var h=s[p];d&&h.done(d),u&&h.aborted(u),i.force&&h.duration(i.duration),h.start(i.easing)}return s}function Bqe(e,t,i){for(var a=0;a<i;a++)e[a]=t[a]}function $qe(e,t,i){if(pYe(t[i]))if(pYe(e[i])||(e[i]=[]),TYe(t[i])){var a=t[i].length;e[i].length!==a&&(e[i]=new t[i].constructor(a),Bqe(e[i],t[i],a))}else{var n=t[i],s=e[i],o=n.length;if(pYe(n[0]))for(var r=n[0].length,l=0;l<o;l++)s[l]?Bqe(s[l],n[l],r):s[l]=Array.prototype.slice.call(n[l]);else Bqe(s,n,o);s.length=n.length}else e[i]=t[i]}function Vqe(e,t,i,a,n,s,o,r){for(var l=_Ye(a),c=n.duration,d=n.delay,u=n.additive,p=n.setToFinal,h=!EYe(s),f=e.animators,g=[],m=0;m<l.length;m++){var _=l[m],v=a[_];if(null!=v&&null!=i[_]&&(h||s[_]))if(!EYe(v)||pYe(v)||RYe(v))g.push(_);else{if(t){r||(i[_]=v,e.updateDuringAnimation(t));continue}Vqe(e,_,i[_],v,n,s&&s[_],o,r)}else r||(i[_]=v,e.updateDuringAnimation(t),g.push(_))}var b=g.length;if(!u&&b)for(var y=0;y<f.length;y++){if((S=f[y]).targetName===t)if(S.stopTracks(g)){var x=dYe(f,S);f.splice(x,1)}}if(n.force||(g=mYe(g,function(e){return t=a[e],n=i[e],!(t===n||pYe(t)&&pYe(n)&&function(e,t){var i=e.length;if(i!==t.length)return!1;for(var a=0;a<i;a++)if(e[a]!==t[a])return!1;return!0}(t,n));var t,n}),b=g.length),b>0||n.force&&!o.length){var S,w=void 0,C=void 0,E=void 0;if(r){C={},p&&(w={});for(y=0;y<b;y++){C[_=g[y]]=i[_],p?w[_]=a[_]:i[_]=a[_]}}else if(p){E={};for(y=0;y<b;y++){E[_=g[y]]=Mje(i[_]),$qe(i,a,_)}}(S=new $je(i,!1,!1,u?mYe(f,function(e){return e.targetName===t}):null)).targetName=t,n.scope&&(S.scope=n.scope),p&&w&&S.whenWithKeys(0,w,g),E&&S.whenWithKeys(0,E,g),S.whenWithKeys(null==c?500:c,r?C:a,g).delay(d||0),e.addAnimator(S,t),o.push(S)}}uYe(Pqe,uGe),uYe(Pqe,bqe);var Uqe=function(e){function t(t){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return XYe(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,i=0;i<t.length;i++)if(t[i].name===e)return t[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var i=this._children,a=i.indexOf(t);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var i=dYe(this._children,e);return i>=0&&this.replaceAt(t,i),this},t.prototype.replaceAt=function(e,t){var i=this._children,a=i[t];if(e&&e!==this&&e.parent!==this&&e!==a){i[t]=e,a.parent=null;var n=this.__zr;n&&a.removeSelfFromZr(n),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,i=this._children,a=dYe(i,e);return a<0||(i.splice(a,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,i=0;i<e.length;i++){var a=e[i];t&&a.removeSelfFromZr(t),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var i=this._children,a=0;a<i.length;a++){var n=i[a];e.call(t,n,a)}return this},t.prototype.traverse=function(e,t){for(var i=0;i<this._children.length;i++){var a=this._children[i],n=e.call(t,a);a.isGroup&&!n&&a.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new KGe(0,0,0,0),i=e||this._children,a=[],n=null,s=0;s<i.length;s++){var o=i[s];if(!o.ignore&&!o.invisible){var r=o.getBoundingRect(),l=o.getLocalTransform(a);l?(KGe.applyTransform(t,r,l),(n=n||t.clone()).union(t)):(n=n||r.clone()).union(r)}}return n||t},t}(Pqe);Uqe.prototype.type="group";var Hqe={},zqe={};var Yqe,Gqe=function(){function e(e,t,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var n=new mWe,s=i.renderer||"canvas";Hqe[s]||(s=_Ye(Hqe)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var o=new Hqe[s](t,n,i,e),r=i.ssr||o.ssrOnly;this.storage=n,this.painter=o;var l,c=Uze.node||Uze.worker||r?null:new rqe(o.getViewportRoot(),o.root),d=i.useCoarsePointer;(null==d||"auto"===d?Uze.touchEventsSupported:!!d)&&(l=OYe(i.pointerSize,44)),this.handler=new iWe(n,o,c,o.root,l),this.animation=new Yje({stage:{update:r?null:function(){return a._flush(!0)}}}),r||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return rje(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,i=0,a=t.length,n=0;n<a;n++)i+=rje(t[n].color,1);return(i/=a)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,i=Vje();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=Vje();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Uqe&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete zqe[e])},e}();function Wqe(e,t){var i=new Gqe(nYe(),e,t);return zqe[i.id]=i,i}var jqe=1e-4;function qqe(e,t,i,a){var n=t[0],s=t[1],o=i[0],r=i[1],l=s-n,c=r-o;if(0===l)return 0===c?o:(o+r)/2;if(a)if(l>0){if(e<=n)return o;if(e>=s)return r}else{if(e>=n)return o;if(e<=s)return r}else{if(e===n)return o;if(e===s)return r}return(e-n)/l*c+o}function Kqe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return SYe(e)?(i=e,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var i}function Xqe(e,t,i){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),i?e:+e}function Zqe(e){return e.sort(function(e,t){return e-t}),e}function Qqe(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,i=0;i<15;i++,t*=10)if(Math.round(e*t)/t===e)return i;return function(e){var t=e.toString().toLowerCase(),i=t.indexOf("e"),a=i>0?+t.slice(i+1):0,n=i>0?i:t.length,s=t.indexOf("."),o=s<0?0:n-1-s;return Math.max(0,o-a)}(e)}function Jqe(e,t){var i=Math.log,a=Math.LN10,n=Math.floor(i(e[1]-e[0])/a),s=Math.round(i(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+s,0),20);return isFinite(o)?o:20}function eKe(e,t){var i=Math.max(Qqe(e),Qqe(t)),a=e+t;return i>20?a:Xqe(a,i)}function tKe(e){var t=2*Math.PI;return(e%t+t)%t}function iKe(e){return e>-1e-4&&e<jqe}var aKe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function nKe(e){if(e instanceof Date)return e;if(SYe(e)){var t=aKe.exec(e);if(!t)return new Date(NaN);if(t[8]){var i=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(i-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,i,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function sKe(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function oKe(e,t){var i=sKe(e),a=Math.pow(10,i),n=e/a;return e=(n<1.5?1:n<2.5?2:n<4?3:n<7?5:10)*a,i>=-20?+e.toFixed(i<0?-i:0):e}function rKe(e){var t=parseFloat(e);return t==e&&(0!==t||!SYe(e)||e.indexOf("x")<=0)?t:NaN}function lKe(){return Math.round(9*Math.random())}function cKe(e,t){return 0===t?e:cKe(t,e%t)}function dKe(e,t){return null==e?t:null==t?e:e*t/cKe(e,t)}function uKe(e){throw new Error(e)}var pKe="series\0";function hKe(e){return e instanceof Array?e:null==e?[]:[e]}function fKe(e,t,i){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var a=0,n=i.length;a<n;a++){var s=i[a];!e.emphasis[t].hasOwnProperty(s)&&e[t].hasOwnProperty(s)&&(e.emphasis[t][s]=e[t][s])}}}var gKe=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function mKe(e){return!EYe(e)||yYe(e)||e instanceof Date?e:e.value}function _Ke(e){return EYe(e)&&!(e instanceof Array)}function vKe(e,t,i){var a="normalMerge"===i,n="replaceMerge"===i,s="replaceAll"===i;e=e||[],t=(t||[]).slice();var o=YYe();hYe(t,function(e,i){EYe(e)||(t[i]=null)});var r,l,c=function(e,t,i){var a=[];if("replaceAll"===i)return a;for(var n=0;n<e.length;n++){var s=e[n];s&&null!=s.id&&t.set(s.id,n),a.push({existing:"replaceMerge"===i||wKe(s)?null:s,newOption:null,keyInfo:null,brandNew:null})}return a}(e,o,i);return(a||n)&&function(e,t,i,a){hYe(a,function(n,s){if(n&&null!=n.id){var o=yKe(n.id),r=i.get(o);if(null!=r){var l=e[r];PYe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[r],a[s]=null}}})}(c,e,o,t),a&&function(e,t){hYe(t,function(i,a){if(i&&null!=i.name)for(var n=0;n<e.length;n++){var s=e[n].existing;if(!e[n].newOption&&s&&(null==s.id||null==i.id)&&!wKe(i)&&!wKe(s)&&bKe("name",s,i))return e[n].newOption=i,void(t[a]=null)}})}(c,t),a||n?function(e,t,i){hYe(t,function(t){if(t){for(var a,n=0;(a=e[n])&&(a.newOption||wKe(a.existing)||a.existing&&null!=t.id&&!bKe("id",t,a.existing));)n++;a?(a.newOption=t,a.brandNew=i):e.push({newOption:t,brandNew:i,existing:null,keyInfo:null}),n++}})}(c,t,n):s&&function(e,t){hYe(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(c,t),r=c,l=YYe(),hYe(r,function(e){var t=e.existing;t&&l.set(t.id,e)}),hYe(r,function(e){var t=e.newOption;PYe(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),hYe(r,function(e,t){var i=e.existing,a=e.newOption,n=e.keyInfo;if(EYe(a)){if(n.name=null!=a.name?yKe(a.name):i?i.name:pKe+t,i)n.id=yKe(i.id);else if(null!=a.id)n.id=yKe(a.id);else{var s=0;do{n.id="\0"+n.name+"\0"+s++}while(l.get(n.id))}l.set(n.id,e)}}),c}function bKe(e,t,i){var a=xKe(t[e],null),n=xKe(i[e],null);return null!=a&&null!=n&&a===n}function yKe(e){return xKe(e,"")}function xKe(e,t){return null==e?t:SYe(e)?e:CYe(e)||wYe(e)?e+"":t}function SKe(e){var t=e.name;return!(!t||!t.indexOf(pKe))}function wKe(e){return e&&null!=e.id&&0===yKe(e.id).indexOf("\0_ec_\0")}function CKe(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?yYe(t.dataIndex)?fYe(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?yYe(t.name)?fYe(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function EKe(){var e="__ec_inner_"+kKe++;return function(t){return t[e]||(t[e]={})}}var kKe=lKe();function TKe(e,t,i){var a=AKe(t,i),n=a.mainTypeSpecified,s=a.queryOptionMap,o=a.others,r=i?i.defaultMainType:null;return!n&&r&&s.set(r,{}),s.each(function(t,a){var n=DKe(e,a,t,{useDefault:r===a,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});o[a+"Models"]=n.models,o[a+"Model"]=n.models[0]}),o}function AKe(e,t){var i;if(SYe(e)){var a={};a[e+"Index"]=0,i=a}else i=e;var n=YYe(),s={},o=!1;return hYe(i,function(e,i){if("dataIndex"!==i&&"dataIndexInside"!==i){var a=i.match(/^(\w+)(Index|Id|Name)$/)||[],r=a[1],l=(a[2]||"").toLowerCase();if(r&&l&&!(t&&t.includeMainTypes&&dYe(t.includeMainTypes,r)<0))o=o||!!r,(n.get(r)||n.set(r,{}))[l]=e}else s[i]=e}),{mainTypeSpecified:o,queryOptionMap:n,others:s}}var RKe={useDefault:!0,enableAll:!1,enableNone:!1},IKe={useDefault:!1,enableAll:!0,enableNone:!0};function DKe(e,t,i,a){a=a||RKe;var n=i.index,s=i.id,o=i.name,r={models:null,specified:null!=n||null!=s||null!=o};if(!r.specified){var l=void 0;return r.models=a.useDefault&&(l=e.getComponent(t))?[l]:[],r}return"none"===n||!1===n?(PYe(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),r.models=[],r):("all"===n&&(PYe(a.enableAll,'`"all"` is not a valid value on index option.'),n=s=o=null),r.models=e.queryComponents({mainType:t,index:n,id:s,name:o}),r)}function OKe(e,t,i){e.setAttribute?e.setAttribute(t,i):e[t]=i}var MKe="___EC__COMPONENT__CONTAINER___",NKe="___EC__EXTENDED_CLASS___";function LKe(e){var t={main:"",sub:""};if(e){var i=e.split(".");t.main=i[0]||"",t.sub=i[1]||""}return t}function PKe(e,t){e.$constructor=e,e.extend=function(e){var t,i,a=this;return xYe(i=a)&&/^class\s/.test(Function.prototype.toString.call(i))?t=function(e){function t(){return e.apply(this,arguments)||this}return $ze(t,e),t}(a):(t=function(){(e.$constructor||a).apply(this,arguments)},function(e,t){var i=e.prototype;function a(){}for(var n in a.prototype=t.prototype,e.prototype=new a,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);e.prototype.constructor=e,e.superClass=t}(t,this)),lYe(t.prototype,e),t[NKe]=!0,t.extend=this.extend,t.superCall=$Ke,t.superApply=VKe,t.superClass=a,t}}function FKe(e,t){e.extend=t.extend}var BKe=Math.round(10*Math.random());function $Ke(e,t){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return this.superClass.prototype[t].apply(e,i)}function VKe(e,t,i){return this.superClass.prototype[t].apply(e,i)}function UKe(e){var t={};e.registerClass=function(e){var i,a=e.type||e.prototype.type;if(a){PYe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i=a),'componentType "'+i+'" illegal'),e.prototype.type=a;var n=LKe(a);if(n.sub){if(n.sub!==MKe){var s=function(e){var i=t[e.main];i&&i[MKe]||((i=t[e.main]={})[MKe]=!0);return i}(n);s[n.sub]=e}}else t[n.main]=e}return e},e.getClass=function(e,i,a){var n=t[e];if(n&&n[MKe]&&(n=i?n[i]:null),a&&!n)throw new Error(i?"Component "+e+"."+(i||"")+" is used but not imported.":e+".type should be specified.");return n},e.getClassesByMainType=function(e){var i=LKe(e),a=[],n=t[i.main];return n&&n[MKe]?hYe(n,function(e,t){t!==MKe&&a.push(e)}):a.push(n),a},e.hasClass=function(e){var i=LKe(e);return!!t[i.main]},e.getAllClassMainTypes=function(){var e=[];return hYe(t,function(t,i){e.push(i)}),e},e.hasSubTypes=function(e){var i=LKe(e),a=t[i.main];return a&&a[MKe]}}function HKe(e,t){for(var i=0;i<e.length;i++)e[i][1]||(e[i][1]=e[i][0]);return t=t||!1,function(i,a,n){for(var s={},o=0;o<e.length;o++){var r=e[o][1];if(!(a&&dYe(a,r)>=0||n&&dYe(n,r)<0)){var l=i.getShallow(r,t);null!=l&&(s[e[o][0]]=l)}}return s}}var zKe=HKe([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),YKe=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return zKe(this,e,t)},e}(),GKe=new GWe(50);function WKe(e){if("string"==typeof e){var t=GKe.get(e);return t&&t.image}return e}function jKe(e,t,i,a,n){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!i)return t;var s=GKe.get(e),o={hostEl:i,cb:a,cbPayload:n};return s?!KKe(t=s.image)&&s.pending.push(o):((t=Gze.loadImage(e,qKe,qKe)).__zrImageSrc=e,GKe.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function qKe(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var i=e.pending[t],a=i.cb;a&&a(this,i.cbPayload),i.hostEl.dirty()}e.pending.length=0}function KKe(e){return e&&e.width&&e.height}var XKe=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ZKe(e,t,i,a,n,s){if(!i)return e.text="",void(e.isTruncated=!1);var o=(t+"").split("\n");s=QKe(i,a,n,s);for(var r=!1,l={},c=0,d=o.length;c<d;c++)JKe(l,o[c],s),o[c]=l.textLine,r=r||l.isTruncated;e.text=o.join("\n"),e.isTruncated=r}function QKe(e,t,i,a){var n=lYe({},a=a||{});n.font=t,i=OYe(i,"..."),n.maxIterations=OYe(a.maxIterations,2);var s=n.minChar=OYe(a.minChar,0);n.cnCharWidth=wqe("国",t);var o=n.ascCharWidth=wqe("a",t);n.placeholder=OYe(a.placeholder,"");for(var r=e=Math.max(0,e-1),l=0;l<s&&r>=o;l++)r-=o;var c=wqe(i,t);return c>r&&(i="",c=0),r=e-c,n.ellipsis=i,n.ellipsisWidth=c,n.contentWidth=r,n.containerWidth=e,n}function JKe(e,t,i){var a=i.containerWidth,n=i.font,s=i.contentWidth;if(!a)return e.textLine="",void(e.isTruncated=!1);var o=wqe(t,n);if(o<=a)return e.textLine=t,void(e.isTruncated=!1);for(var r=0;;r++){if(o<=s||r>=i.maxIterations){t+=i.ellipsis;break}var l=0===r?eXe(t,s,i.ascCharWidth,i.cnCharWidth):o>0?Math.floor(t.length*s/o):0;o=wqe(t=t.substr(0,l),n)}""===t&&(t=i.placeholder),e.textLine=t,e.isTruncated=!0}function eXe(e,t,i,a){for(var n=0,s=0,o=e.length;s<o&&n<t;s++){var r=e.charCodeAt(s);n+=0<=r&&r<=127?i:a}return s}var tXe=function(){return function(){}}(),iXe=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),aXe=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function nXe(e,t,i,a,n){var s,o,r=""===t,l=n&&i.rich[n]||{},c=e.lines,d=l.font||i.font,u=!1;if(a){var p=l.padding,h=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Rqe(l.width,a.width)+h;c.length>0&&f+a.accumWidth>a.width&&(s=t.split("\n"),u=!0),a.accumWidth=f}else{var g=rXe(t,d,a.width,a.breakAll,a.accumWidth);a.accumWidth=g.accumWidth+h,o=g.linesWidths,s=g.lines}}else s=t.split("\n");for(var m=0;m<s.length;m++){var _=s[m],v=new tXe;if(v.styleName=n,v.text=_,v.isLineHolder=!_&&!r,"number"==typeof l.width?v.width=l.width:v.width=o?o[m]:wqe(_,d),m||u)c.push(new iXe([v]));else{var b=(c[c.length-1]||(c[0]=new iXe)).tokens,y=b.length;1===y&&b[0].isLineHolder?b[0]=v:(_||!y||r)&&b.push(v)}}}var sXe=gYe(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function oXe(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!sXe[e]}function rXe(e,t,i,a,n){for(var s=[],o=[],r="",l="",c=0,d=0,u=0;u<e.length;u++){var p=e.charAt(u);if("\n"!==p){var h=wqe(p,t),f=!a&&!oXe(p);(s.length?d+h>i:n+d+h>i)?d?(r||l)&&(f?(r||(r=l,l="",d=c=0),s.push(r),o.push(d-c),l+=p,r="",d=c+=h):(l&&(r+=l,l="",c=0),s.push(r),o.push(d),r=p,d=h)):f?(s.push(l),o.push(c),l=p,c=h):(s.push(p),o.push(h)):(d+=h,f?(l+=p,c+=h):(l&&(r+=l,l="",c=0),r+=p))}else l&&(r+=l,d+=c),s.push(r),o.push(d),r="",l="",c=0,d=0}return s.length||r||(r=e,l="",c=0),l&&(r+=l),r&&(s.push(r),o.push(d)),1===s.length&&(d+=n),{accumWidth:d,lines:s,linesWidths:o}}var lXe="__zr_style_"+Math.round(10*Math.random()),cXe={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dXe={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};cXe[lXe]=!0;var uXe=["z","z2","invisible"],pXe=["invisible"],hXe=function(e){function t(t){return e.call(this,t)||this}var i;return XYe(t,e),t.prototype._init=function(t){for(var i=_Ye(t),a=0;a<i.length;a++){var n=i[a];"style"===n?this.useStyle(t[n]):e.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,i,a){var n=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,i){fXe.copy(e.getBoundingRect()),e.transform&&fXe.applyTransform(e.transform);return gXe.width=t,gXe.height=i,!fXe.intersect(gXe)}(this,e,t)||n&&!n[0]&&!n[3])return!1;if(i&&this.__clipPaths)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(a&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var i=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,i=this.getBoundingRect(),a=this.style,n=a.shadowBlur||0,s=a.shadowOffsetX||0,o=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new KGe(0,0,0,0)),t?KGe.applyTransform(e,i,t):e.copy(i),(n||s||o)&&(e.width+=2*n+Math.abs(s),e.height+=2*n+Math.abs(o),e.x=Math.min(e.x,e.x+s-n),e.y=Math.min(e.y,e.y+o-n));var r=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-r),e.y=Math.floor(e.y-r),e.width=Math.ceil(e.width+1+2*r),e.height=Math.ceil(e.height+1+2*r))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new KGe(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,i){"style"!==t?e.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:lYe(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return GYe(cXe,e)},t.prototype.useStyle=function(e){e[lXe]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[lXe]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,uXe)},t.prototype._applyStateObj=function(t,i,a,n,s,o){e.prototype._applyStateObj.call(this,t,i,a,n,s,o);var r,l=!(i&&n);if(i&&i.style?s?n?r=i.style:(r=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(r,i.style)):(r=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(r,i.style)):l&&(r=a.style),r)if(s){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=_Ye(c),u=0;u<d.length;u++){(h=d[u])in r&&(r[h]=r[h],this.style[h]=c[h])}var p=_Ye(r);for(u=0;u<p.length;u++){var h=p[u];this.style[h]=this.style[h]}this._transitionState(t,{style:r},o,this.getAnimationStyleProps())}else this.useStyle(r);var f=this.__inHover?pXe:uXe;for(u=0;u<f.length;u++){h=f[u];i&&null!=i[h]?this[h]=i[h]:l&&null!=a[h]&&(this[h]=a[h])}},t.prototype._mergeStates=function(t){for(var i,a=e.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var s=t[n];s.style&&(i=i||{},this._mergeStyle(i,s.style))}return i&&(a.style=i),a},t.prototype._mergeStyle=function(e,t){return lYe(e,t),e},t.prototype.getAnimationStyleProps=function(){return dXe},t.initDefaultProps=((i=t.prototype).type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._rect=null,i.dirtyRectTolerance=0,void(i.__dirty=3)),t}(Pqe),fXe=new KGe(0,0,0,0),gXe=new KGe(0,0,0,0);var mXe=Math.min,_Xe=Math.max,vXe=Math.sin,bXe=Math.cos,yXe=2*Math.PI,xXe=ZYe(),SXe=ZYe(),wXe=ZYe();function CXe(e,t,i,a,n,s){n[0]=mXe(e,i),n[1]=mXe(t,a),s[0]=_Xe(e,i),s[1]=_Xe(t,a)}var EXe=[],kXe=[];function TXe(e,t,i,a,n,s,o,r,l,c){var d=OWe,u=RWe,p=d(e,i,n,o,EXe);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<p;h++){var f=u(e,i,n,o,EXe[h]);l[0]=mXe(f,l[0]),c[0]=_Xe(f,c[0])}p=d(t,a,s,r,kXe);for(h=0;h<p;h++){var g=u(t,a,s,r,kXe[h]);l[1]=mXe(g,l[1]),c[1]=_Xe(g,c[1])}l[0]=mXe(e,l[0]),c[0]=_Xe(e,c[0]),l[0]=mXe(o,l[0]),c[0]=_Xe(o,c[0]),l[1]=mXe(t,l[1]),c[1]=_Xe(t,c[1]),l[1]=mXe(r,l[1]),c[1]=_Xe(r,c[1])}function AXe(e,t,i,a,n,s,o,r){var l=FWe,c=LWe,d=_Xe(mXe(l(e,i,n),1),0),u=_Xe(mXe(l(t,a,s),1),0),p=c(e,i,n,d),h=c(t,a,s,u);o[0]=mXe(e,n,p),o[1]=mXe(t,s,h),r[0]=_Xe(e,n,p),r[1]=_Xe(t,s,h)}function RXe(e,t,i,a,n,s,o,r,l){var c=rGe,d=lGe,u=Math.abs(n-s);if(u%yXe<1e-4&&u>1e-4)return r[0]=e-i,r[1]=t-a,l[0]=e+i,void(l[1]=t+a);if(xXe[0]=bXe(n)*i+e,xXe[1]=vXe(n)*a+t,SXe[0]=bXe(s)*i+e,SXe[1]=vXe(s)*a+t,c(r,xXe,SXe),d(l,xXe,SXe),(n%=yXe)<0&&(n+=yXe),(s%=yXe)<0&&(s+=yXe),n>s&&!o?s+=yXe:n<s&&o&&(n+=yXe),o){var p=s;s=n,n=p}for(var h=0;h<s;h+=Math.PI/2)h>n&&(wXe[0]=bXe(h)*i+e,wXe[1]=vXe(h)*a+t,c(r,wXe,r),d(l,wXe,l))}var IXe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},DXe=[],OXe=[],MXe=[],NXe=[],LXe=[],PXe=[],FXe=Math.min,BXe=Math.max,$Xe=Math.cos,VXe=Math.sin,UXe=Math.abs,HXe=Math.PI,zXe=2*HXe,YXe="undefined"!=typeof Float32Array,GXe=[];function WXe(e){return Math.round(e/HXe*1e8)/1e8%2*HXe}var jXe=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,i){(i=i||0)>0&&(this._ux=UXe(i/cqe/e)||0,this._uy=UXe(i/cqe/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(IXe.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var i=UXe(e-this._xi),a=UXe(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(IXe.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var s=i*i+a*a;s>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=s)}return this},e.prototype.bezierCurveTo=function(e,t,i,a,n,s){return this._drawPendingPt(),this.addData(IXe.C,e,t,i,a,n,s),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,s),this._xi=n,this._yi=s,this},e.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(IXe.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},e.prototype.arc=function(e,t,i,a,n,s){this._drawPendingPt(),GXe[0]=a,GXe[1]=n,function(e,t){var i=WXe(e[0]);i<0&&(i+=zXe);var a=i-e[0],n=e[1];n+=a,!t&&n-i>=zXe?n=i+zXe:t&&i-n>=zXe?n=i-zXe:!t&&i>n?n=i+(zXe-WXe(i-n)):t&&i<n&&(n=i-(zXe-WXe(n-i))),e[0]=i,e[1]=n}(GXe,s),a=GXe[0];var o=(n=GXe[1])-a;return this.addData(IXe.A,e,t,i,i,a,o,0,s?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,s),this._xi=$Xe(n)*i+e,this._yi=VXe(n)*i+t,this},e.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},e.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(IXe.R,e,t,i,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(IXe.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!YXe||(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,a=this._len,n=0;n<t;n++)i+=e[n].len();YXe&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+i));for(n=0;n<t;n++)for(var s=e[n].data,o=0;o<s.length;o++)this.data[a++]=s[o];this._len=a},e.prototype.addData=function(e,t,i,a,n,s,o,r,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,YXe&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){MXe[0]=MXe[1]=LXe[0]=LXe[1]=Number.MAX_VALUE,NXe[0]=NXe[1]=PXe[0]=PXe[1]=-Number.MAX_VALUE;var e,t=this.data,i=0,a=0,n=0,s=0;for(e=0;e<this._len;){var o=t[e++],r=1===e;switch(r&&(n=i=t[e],s=a=t[e+1]),o){case IXe.M:i=n=t[e++],a=s=t[e++],LXe[0]=n,LXe[1]=s,PXe[0]=n,PXe[1]=s;break;case IXe.L:CXe(i,a,t[e],t[e+1],LXe,PXe),i=t[e++],a=t[e++];break;case IXe.C:TXe(i,a,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],LXe,PXe),i=t[e++],a=t[e++];break;case IXe.Q:AXe(i,a,t[e++],t[e++],t[e],t[e+1],LXe,PXe),i=t[e++],a=t[e++];break;case IXe.A:var l=t[e++],c=t[e++],d=t[e++],u=t[e++],p=t[e++],h=t[e++]+p;e+=1;var f=!t[e++];r&&(n=$Xe(p)*d+l,s=VXe(p)*u+c),RXe(l,c,d,u,p,h,f,LXe,PXe),i=$Xe(h)*d+l,a=VXe(h)*u+c;break;case IXe.R:CXe(n=i=t[e++],s=a=t[e++],n+t[e++],s+t[e++],LXe,PXe);break;case IXe.Z:i=n,a=s}rGe(MXe,MXe,LXe),lGe(NXe,NXe,PXe)}return 0===e&&(MXe[0]=MXe[1]=NXe[0]=NXe[1]=0),new KGe(MXe[0],MXe[1],NXe[0]-MXe[0],NXe[1]-MXe[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,a=this._uy,n=0,s=0,o=0,r=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,d=0,u=0;u<t;){var p=e[u++],h=1===u;h&&(o=n=e[u],r=s=e[u+1]);var f=-1;switch(p){case IXe.M:n=o=e[u++],s=r=e[u++];break;case IXe.L:var g=e[u++],m=(b=e[u++])-s;(UXe(R=g-n)>i||UXe(m)>a||u===t-1)&&(f=Math.sqrt(R*R+m*m),n=g,s=b);break;case IXe.C:var _=e[u++],v=e[u++],b=(g=e[u++],e[u++]),y=e[u++],x=e[u++];f=NWe(n,s,_,v,g,b,y,x,10),n=y,s=x;break;case IXe.Q:f=$We(n,s,_=e[u++],v=e[u++],g=e[u++],b=e[u++],10),n=g,s=b;break;case IXe.A:var S=e[u++],w=e[u++],C=e[u++],E=e[u++],k=e[u++],T=e[u++],A=T+k;u+=1,h&&(o=$Xe(k)*C+S,r=VXe(k)*E+w),f=BXe(C,E)*FXe(zXe,Math.abs(T)),n=$Xe(A)*C+S,s=VXe(A)*E+w;break;case IXe.R:o=n=e[u++],r=s=e[u++],f=2*e[u++]+2*e[u++];break;case IXe.Z:var R=o-n;m=r-s;f=Math.sqrt(R*R+m*m),n=o,s=r}f>=0&&(l[d++]=f,c+=f)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var i,a,n,s,o,r,l,c,d,u,p=this.data,h=this._ux,f=this._uy,g=this._len,m=t<1,_=0,v=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))e:for(var y=0;y<g;){var x=p[y++],S=1===y;switch(S&&(i=n=p[y],a=s=p[y+1]),x!==IXe.L&&b>0&&(e.lineTo(d,u),b=0),x){case IXe.M:i=n=p[y++],a=s=p[y++],e.moveTo(n,s);break;case IXe.L:o=p[y++],r=p[y++];var w=UXe(o-n),C=UXe(r-s);if(w>h||C>f){if(m){if(_+(q=l[v++])>c){var E=(c-_)/q;e.lineTo(n*(1-E)+o*E,s*(1-E)+r*E);break e}_+=q}e.lineTo(o,r),n=o,s=r,b=0}else{var k=w*w+C*C;k>b&&(d=o,u=r,b=k)}break;case IXe.C:var T=p[y++],A=p[y++],R=p[y++],I=p[y++],D=p[y++],O=p[y++];if(m){if(_+(q=l[v++])>c){MWe(n,T,R,D,E=(c-_)/q,DXe),MWe(s,A,I,O,E,OXe),e.bezierCurveTo(DXe[1],OXe[1],DXe[2],OXe[2],DXe[3],OXe[3]);break e}_+=q}e.bezierCurveTo(T,A,R,I,D,O),n=D,s=O;break;case IXe.Q:T=p[y++],A=p[y++],R=p[y++],I=p[y++];if(m){if(_+(q=l[v++])>c){BWe(n,T,R,E=(c-_)/q,DXe),BWe(s,A,I,E,OXe),e.quadraticCurveTo(DXe[1],OXe[1],DXe[2],OXe[2]);break e}_+=q}e.quadraticCurveTo(T,A,R,I),n=R,s=I;break;case IXe.A:var M=p[y++],N=p[y++],L=p[y++],P=p[y++],F=p[y++],B=p[y++],$=p[y++],V=!p[y++],U=L>P?L:P,H=UXe(L-P)>.001,z=F+B,Y=!1;if(m)_+(q=l[v++])>c&&(z=F+B*(c-_)/q,Y=!0),_+=q;if(H&&e.ellipse?e.ellipse(M,N,L,P,$,F,z,V):e.arc(M,N,U,F,z,V),Y)break e;S&&(i=$Xe(F)*L+M,a=VXe(F)*P+N),n=$Xe(z)*L+M,s=VXe(z)*P+N;break;case IXe.R:i=n=p[y],a=s=p[y+1],o=p[y++],r=p[y++];var G=p[y++],W=p[y++];if(m){if(_+(q=l[v++])>c){var j=c-_;e.moveTo(o,r),e.lineTo(o+FXe(j,G),r),(j-=G)>0&&e.lineTo(o+G,r+FXe(j,W)),(j-=W)>0&&e.lineTo(o+BXe(G-j,0),r+W),(j-=G)>0&&e.lineTo(o,r+BXe(W-j,0));break e}_+=q}e.rect(o,r,G,W);break;case IXe.Z:if(m){var q;if(_+(q=l[v++])>c){E=(c-_)/q;e.lineTo(n*(1-E)+i*E,s*(1-E)+a*E);break e}_+=q}e.closePath(),n=i,s=a}}},e.prototype.clone=function(){var t=new e,i=this.data;return t.data=i.slice?i.slice():Array.prototype.slice.call(i),t._len=this._len,t},e.CMD=IXe,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function qXe(e,t,i,a,n,s,o){if(0===n)return!1;var r=n,l=0;if(o>t+r&&o>a+r||o<t-r&&o<a-r||s>e+r&&s>i+r||s<e-r&&s<i-r)return!1;if(e===i)return Math.abs(s-e)<=r/2;var c=(l=(t-a)/(e-i))*s-o+(e*a-i*t)/(e-i);return c*c/(l*l+1)<=r/2*r/2}function KXe(e,t,i,a,n,s,o,r,l,c,d){if(0===l)return!1;var u=l;if(d>t+u&&d>a+u&&d>s+u&&d>r+u||d<t-u&&d<a-u&&d<s-u&&d<r-u||c>e+u&&c>i+u&&c>n+u&&c>o+u||c<e-u&&c<i-u&&c<n-u&&c<o-u)return!1;var p=function(e,t,i,a,n,s,o,r,l,c){var d,u,p,h,f,g=.005,m=1/0;CWe[0]=l,CWe[1]=c;for(var _=0;_<1;_+=.05)EWe[0]=RWe(e,i,n,o,_),EWe[1]=RWe(t,a,s,r,_),(h=sGe(CWe,EWe))<m&&(d=_,m=h);m=1/0;for(var v=0;v<32&&!(g<xWe);v++)u=d-g,p=d+g,EWe[0]=RWe(e,i,n,o,u),EWe[1]=RWe(t,a,s,r,u),h=sGe(EWe,CWe),u>=0&&h<m?(d=u,m=h):(kWe[0]=RWe(e,i,n,o,p),kWe[1]=RWe(t,a,s,r,p),f=sGe(kWe,CWe),p<=1&&f<m?(d=p,m=f):g*=.5);return bWe(m)}(e,t,i,a,n,s,o,r,c,d);return p<=u/2}function XXe(e,t,i,a,n,s,o,r,l){if(0===o)return!1;var c=o;if(l>t+c&&l>a+c&&l>s+c||l<t-c&&l<a-c&&l<s-c||r>e+c&&r>i+c&&r>n+c||r<e-c&&r<i-c&&r<n-c)return!1;var d=function(e,t,i,a,n,s,o,r){var l,c=.005,d=1/0;CWe[0]=o,CWe[1]=r;for(var u=0;u<1;u+=.05)EWe[0]=LWe(e,i,n,u),EWe[1]=LWe(t,a,s,u),(g=sGe(CWe,EWe))<d&&(l=u,d=g);d=1/0;for(var p=0;p<32&&!(c<xWe);p++){var h=l-c,f=l+c;EWe[0]=LWe(e,i,n,h),EWe[1]=LWe(t,a,s,h);var g=sGe(EWe,CWe);if(h>=0&&g<d)l=h,d=g;else{kWe[0]=LWe(e,i,n,f),kWe[1]=LWe(t,a,s,f);var m=sGe(kWe,CWe);f<=1&&m<d?(l=f,d=m):c*=.5}}return bWe(d)}(e,t,i,a,n,s,r,l);return d<=c/2}var ZXe=2*Math.PI;function QXe(e){return(e%=ZXe)<0&&(e+=ZXe),e}var JXe=2*Math.PI;function eZe(e,t,i,a,n,s,o,r,l){if(0===o)return!1;var c=o;r-=e,l-=t;var d=Math.sqrt(r*r+l*l);if(d-c>i||d+c<i)return!1;if(Math.abs(a-n)%JXe<1e-4)return!0;if(s){var u=a;a=QXe(n),n=QXe(u)}else a=QXe(a),n=QXe(n);a>n&&(n+=JXe);var p=Math.atan2(l,r);return p<0&&(p+=JXe),p>=a&&p<=n||p+JXe>=a&&p+JXe<=n}function tZe(e,t,i,a,n,s){if(s>t&&s>a||s<t&&s<a)return 0;if(a===t)return 0;var o=(s-t)/(a-t),r=a<t?1:-1;1!==o&&0!==o||(r=a<t?.5:-.5);var l=o*(i-e)+e;return l===n?1/0:l>n?r:0}var iZe=jXe.CMD,aZe=2*Math.PI;var nZe=[-1,-1,-1],sZe=[-1,-1];function oZe(){var e=sZe[0];sZe[0]=sZe[1],sZe[1]=e}function rZe(e,t,i,a,n,s,o,r,l,c){if(c>t&&c>a&&c>s&&c>r||c<t&&c<a&&c<s&&c<r)return 0;var d=DWe(t,a,s,r,c,nZe);if(0===d)return 0;for(var u=0,p=-1,h=void 0,f=void 0,g=0;g<d;g++){var m=nZe[g],_=0===m||1===m?.5:1;RWe(e,i,n,o,m)<l||(p<0&&(p=OWe(t,a,s,r,sZe),sZe[1]<sZe[0]&&p>1&&oZe(),h=RWe(t,a,s,r,sZe[0]),p>1&&(f=RWe(t,a,s,r,sZe[1]))),2===p?m<sZe[0]?u+=h<t?_:-_:m<sZe[1]?u+=f<h?_:-_:u+=r<f?_:-_:m<sZe[0]?u+=h<t?_:-_:u+=r<h?_:-_)}return u}function lZe(e,t,i,a,n,s,o,r){if(r>t&&r>a&&r>s||r<t&&r<a&&r<s)return 0;var l=function(e,t,i,a,n){var s=e-2*t+i,o=2*(t-e),r=e-a,l=0;if(TWe(s))AWe(o)&&(d=-r/o)>=0&&d<=1&&(n[l++]=d);else{var c=o*o-4*s*r;if(TWe(c))(d=-o/(2*s))>=0&&d<=1&&(n[l++]=d);else if(c>0){var d,u=bWe(c),p=(-o-u)/(2*s);(d=(-o+u)/(2*s))>=0&&d<=1&&(n[l++]=d),p>=0&&p<=1&&(n[l++]=p)}}return l}(t,a,s,r,nZe);if(0===l)return 0;var c=FWe(t,a,s);if(c>=0&&c<=1){for(var d=0,u=LWe(t,a,s,c),p=0;p<l;p++){var h=0===nZe[p]||1===nZe[p]?.5:1;LWe(e,i,n,nZe[p])<o||(nZe[p]<c?d+=u<t?h:-h:d+=s<u?h:-h)}return d}h=0===nZe[0]||1===nZe[0]?.5:1;return LWe(e,i,n,nZe[0])<o?0:s<t?h:-h}function cZe(e,t,i,a,n,s,o,r){if((r-=t)>i||r<-i)return 0;var l=Math.sqrt(i*i-r*r);nZe[0]=-l,nZe[1]=l;var c=Math.abs(a-n);if(c<1e-4)return 0;if(c>=aZe-1e-4){a=0,n=aZe;var d=s?1:-1;return o>=nZe[0]+e&&o<=nZe[1]+e?d:0}if(a>n){var u=a;a=n,n=u}a<0&&(a+=aZe,n+=aZe);for(var p=0,h=0;h<2;h++){var f=nZe[h];if(f+e>o){var g=Math.atan2(r,f);d=s?1:-1;g<0&&(g=aZe+g),(g>=a&&g<=n||g+aZe>=a&&g+aZe<=n)&&(g>Math.PI/2&&g<1.5*Math.PI&&(d=-d),p+=d)}}return p}function dZe(e,t,i,a,n){for(var s,o,r,l,c=e.data,d=e.len(),u=0,p=0,h=0,f=0,g=0,m=0;m<d;){var _=c[m++],v=1===m;switch(_===iZe.M&&m>1&&(i||(u+=tZe(p,h,f,g,a,n))),v&&(f=p=c[m],g=h=c[m+1]),_){case iZe.M:p=f=c[m++],h=g=c[m++];break;case iZe.L:if(i){if(qXe(p,h,c[m],c[m+1],t,a,n))return!0}else u+=tZe(p,h,c[m],c[m+1],a,n)||0;p=c[m++],h=c[m++];break;case iZe.C:if(i){if(KXe(p,h,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],t,a,n))return!0}else u+=rZe(p,h,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],a,n)||0;p=c[m++],h=c[m++];break;case iZe.Q:if(i){if(XXe(p,h,c[m++],c[m++],c[m],c[m+1],t,a,n))return!0}else u+=lZe(p,h,c[m++],c[m++],c[m],c[m+1],a,n)||0;p=c[m++],h=c[m++];break;case iZe.A:var b=c[m++],y=c[m++],x=c[m++],S=c[m++],w=c[m++],C=c[m++];m+=1;var E=!!(1-c[m++]);s=Math.cos(w)*x+b,o=Math.sin(w)*S+y,v?(f=s,g=o):u+=tZe(p,h,s,o,a,n);var k=(a-b)*S/x+b;if(i){if(eZe(b,y,S,w,w+C,E,t,k,n))return!0}else u+=cZe(b,y,S,w,w+C,E,k,n);p=Math.cos(w+C)*x+b,h=Math.sin(w+C)*S+y;break;case iZe.R:if(f=p=c[m++],g=h=c[m++],s=f+c[m++],o=g+c[m++],i){if(qXe(f,g,s,g,t,a,n)||qXe(s,g,s,o,t,a,n)||qXe(s,o,f,o,t,a,n)||qXe(f,o,f,g,t,a,n))return!0}else u+=tZe(s,g,s,o,a,n),u+=tZe(f,o,f,g,a,n);break;case iZe.Z:if(i){if(qXe(p,h,f,g,t,a,n))return!0}else u+=tZe(p,h,f,g,a,n);p=f,h=g}}return i||(r=h,l=g,Math.abs(r-l)<1e-4)||(u+=tZe(p,h,f,g,a,n)||0),0!==u}var uZe=cYe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},cXe),pZe={style:cYe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dXe.style)},hZe=yqe.concat(["invisible","culling","z","z2","zlevel","parent"]),fZe=function(e){function t(t){return e.call(this,t)||this}var i;return XYe(t,e),t.prototype.update=function(){var i=this;e.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(e){i.buildPath(e,i.shape)}),n.silent=!0;var s=n.style;for(var o in a)s[o]!==a[o]&&(s[o]=a[o]);s.fill=a.fill?a.decal:null,s.decal=null,s.shadowColor=null,a.strokeFirst&&(s.stroke=null);for(var r=0;r<hZe.length;++r)n[hZe[r]]=this[hZe[r]];n.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var i=_Ye(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var s=i[n],o=t[s];"style"===s?this.style?lYe(this.style,o):this.useStyle(o):"shape"===s?lYe(this.shape,o):e.prototype.attrKV.call(this,s,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(SYe(e)){var t=rje(e,0);return t>.5?dqe:t>.2?"#eee":uqe}if(e)return uqe}return dqe},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(SYe(t)){var i=this.__zr;if(!(!i||!i.isDarkMode())===rje(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new jXe(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var n=this.path;(a||4&this.__dirty)&&(n.beginPath(),this.buildPath(n,this.shape,!1),this.pathUpdated()),e=n.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var o=t.strokeNoScale?this.getLineScale():1,r=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;r=Math.max(r,null==l?4:l)}o>1e-10&&(s.width+=r/o,s.height+=r/o,s.x-=r/o/2,s.y-=r/o/2)}return s}return e},t.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t),a=this.getBoundingRect(),n=this.style;if(e=i[0],t=i[1],a.contain(e,t)){var s=this.path;if(this.hasStroke()){var o=n.lineWidth,r=n.strokeNoScale?this.getLineScale():1;if(r>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,i,a){return dZe(e,t,!0,i,a)}(s,o/r,e,t)))return!0}if(this.hasFill())return function(e,t,i){return dZe(e,0,!1,t,i)}(s,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,i){"shape"===t?this.setShape(i):e.prototype.attrKV.call(this,t,i)},t.prototype.setShape=function(e,t){var i=this.shape;return i||(i=this.shape={}),"string"==typeof e?i[e]=t:lYe(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return GYe(uZe,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=lYe({},this.shape))},t.prototype._applyStateObj=function(t,i,a,n,s,o){e.prototype._applyStateObj.call(this,t,i,a,n,s,o);var r,l=!(i&&n);if(i&&i.shape?s?n?r=i.shape:(r=lYe({},a.shape),lYe(r,i.shape)):(r=lYe({},n?this.shape:a.shape),lYe(r,i.shape)):l&&(r=a.shape),r)if(s){this.shape=lYe({},this.shape);for(var c={},d=_Ye(r),u=0;u<d.length;u++){var p=d[u];"object"==typeof r[p]?this.shape[p]=r[p]:c[p]=r[p]}this._transitionState(t,{shape:c},o)}else this.shape=r,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var i,a=e.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var s=t[n];s.shape&&(i=i||{},this._mergeStyle(i,s.shape))}return i&&(a.shape=i),a},t.prototype.getAnimationStyleProps=function(){return pZe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(t){function i(i){var a=t.call(this,i)||this;return e.init&&e.init.call(a,i),a}return XYe(i,t),i.prototype.getDefaultStyle=function(){return oYe(e.style)},i.prototype.getDefaultShape=function(){return oYe(e.shape)},i}(t);for(var a in e)"function"==typeof e[a]&&(i.prototype[a]=e[a]);return i},t.initDefaultProps=((i=t.prototype).type="path",i.strokeContainThreshold=5,i.segmentIgnoreThreshold=0,i.subPixelOptimize=!1,i.autoBatch=!1,void(i.__dirty=7)),t}(hXe),gZe=cYe({strokeFirst:!0,font:zze,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},uZe),mZe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return XYe(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return GYe(gZe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var i=Eqe(t,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(hXe);mZe.prototype.type="tspan";var _Ze=cYe({x:0,y:0},cXe),vZe={style:cYe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dXe.style)};var bZe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return XYe(t,e),t.prototype.createStyle=function(e){return GYe(_Ze,e)},t.prototype._getSize=function(e){var t=this.style,i=t[e];if(null!=i)return i;var a,n=(a=t.image)&&"string"!=typeof a&&a.width&&a.height?t.image:this.__image;if(!n)return 0;var s="width"===e?"height":"width",o=t[s];return null==o?n[e]:n[e]/n[s]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return vZe},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new KGe(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(hXe);bZe.prototype.type="image";var yZe=Math.round;function xZe(e,t,i){if(t){var a=t.x1,n=t.x2,s=t.y1,o=t.y2;e.x1=a,e.x2=n,e.y1=s,e.y2=o;var r=i&&i.lineWidth;return r?(yZe(2*a)===yZe(2*n)&&(e.x1=e.x2=wZe(a,r,!0)),yZe(2*s)===yZe(2*o)&&(e.y1=e.y2=wZe(s,r,!0)),e):e}}function SZe(e,t,i){if(t){var a=t.x,n=t.y,s=t.width,o=t.height;e.x=a,e.y=n,e.width=s,e.height=o;var r=i&&i.lineWidth;return r?(e.x=wZe(a,r,!0),e.y=wZe(n,r,!0),e.width=Math.max(wZe(a+s,r,!1)-e.x,0===s?0:1),e.height=Math.max(wZe(n+o,r,!1)-e.y,0===o?0:1),e):e}}function wZe(e,t,i){if(!t)return e;var a=yZe(2*e);return(a+yZe(t))%2==0?a/2:(a+(i?1:-1))/2}var CZe=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),EZe={},kZe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultShape=function(){return new CZe},t.prototype.buildPath=function(e,t){var i,a,n,s;if(this.subPixelOptimize){var o=SZe(EZe,t,this.style);i=o.x,a=o.y,n=o.width,s=o.height,o.r=t.r,t=o}else i=t.x,a=t.y,n=t.width,s=t.height;t.r?function(e,t){var i,a,n,s,o,r=t.x,l=t.y,c=t.width,d=t.height,u=t.r;c<0&&(r+=c,c=-c),d<0&&(l+=d,d=-d),"number"==typeof u?i=a=n=s=u:u instanceof Array?1===u.length?i=a=n=s=u[0]:2===u.length?(i=n=u[0],a=s=u[1]):3===u.length?(i=u[0],a=s=u[1],n=u[2]):(i=u[0],a=u[1],n=u[2],s=u[3]):i=a=n=s=0,i+a>c&&(i*=c/(o=i+a),a*=c/o),n+s>c&&(n*=c/(o=n+s),s*=c/o),a+n>d&&(a*=d/(o=a+n),n*=d/o),i+s>d&&(i*=d/(o=i+s),s*=d/o),e.moveTo(r+i,l),e.lineTo(r+c-a,l),0!==a&&e.arc(r+c-a,l+a,a,-Math.PI/2,0),e.lineTo(r+c,l+d-n),0!==n&&e.arc(r+c-n,l+d-n,n,0,Math.PI/2),e.lineTo(r+s,l+d),0!==s&&e.arc(r+s,l+d-s,s,Math.PI/2,Math.PI),e.lineTo(r,l+i),0!==i&&e.arc(r+i,l+i,i,Math.PI,1.5*Math.PI)}(e,t):e.rect(i,a,n,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(fZe);kZe.prototype.type="rect";var TZe={fill:"#000"},AZe={style:cYe({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},dXe.style)},RZe=function(e){function t(t){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=TZe,i.attr(t),i}return XYe(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,PZe(e=this.style),hYe(e.rich,PZe),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new KGe(0,0,0,0),t=this._children,i=[],a=null,n=0;n<t.length;n++){var s=t[n],o=s.getBoundingRect(),r=s.getLocalTransform(i);r?(e.copy(o),e.applyTransform(r),(a=a||e.clone()).union(e)):(a=a||o.clone()).union(o)}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||TZe},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var i=t.rich,a=e.rich||i&&{};return lYe(e,t),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,t){for(var i=_Ye(t),a=0;a<i.length;a++){var n=i[a];e[n]=e[n]||{},lYe(e[n],t[n])}},t.prototype.getAnimationStyleProps=function(){return AZe},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||zze,i=e.padding,a=function(e,t){null!=e&&(e+="");var i,a=t.overflow,n=t.padding,s=t.font,o="truncate"===a,r=Aqe(s),l=OYe(t.lineHeight,r),c=!!t.backgroundColor,d="truncate"===t.lineOverflow,u=!1,p=t.width,h=(i=null==p||"break"!==a&&"breakAll"!==a?e?e.split("\n"):[]:e?rXe(e,t.font,p,"breakAll"===a,0).lines:[]).length*l,f=OYe(t.height,h);if(h>f&&d){var g=Math.floor(f/l);u=u||i.length>g,i=i.slice(0,g)}if(e&&o&&null!=p)for(var m=QKe(p,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},v=0;v<i.length;v++)JKe(_,i[v],m),i[v]=_.textLine,u=u||_.isTruncated;var b=f,y=0;for(v=0;v<i.length;v++)y=Math.max(wqe(i[v],s),y);null==p&&(p=y);var x=y;return n&&(b+=n[0]+n[2],x+=n[1]+n[3],p+=n[1]+n[3]),c&&(x=p),{lines:i,height:f,outerWidth:x,outerHeight:b,lineHeight:l,calculatedLineHeight:r,contentWidth:y,contentHeight:h,width:p,isTruncated:u}}(VZe(e),e),n=UZe(e),s=!!e.backgroundColor,o=a.outerHeight,r=a.outerWidth,l=a.contentWidth,c=a.lines,d=a.lineHeight,u=this._defaultStyle;this.isTruncated=!!a.isTruncated;var p=e.x||0,h=e.y||0,f=e.align||u.align||"left",g=e.verticalAlign||u.verticalAlign||"top",m=p,_=Tqe(h,a.contentHeight,g);if(n||i){var v=kqe(p,r,f),b=Tqe(h,o,g);n&&this._renderBackground(e,e,v,b,r,o)}_+=d/2,i&&(m=$Ze(p,f,i),"top"===g?_+=i[0]:"bottom"===g&&(_-=i[2]));for(var y=0,x=!1,S=(BZe("fill"in e?e.fill:(x=!0,u.fill))),w=(FZe("stroke"in e?e.stroke:s||u.autoStroke&&!x?null:(y=2,u.stroke))),C=e.textShadowBlur>0,E=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=a.calculatedLineHeight,T=0;T<c.length;T++){var A=this._getOrCreateChild(mZe),R=A.createStyle();A.useStyle(R),R.text=c[T],R.x=m,R.y=_,R.textAlign=f,R.textBaseline="middle",R.opacity=e.opacity,R.strokeFirst=!0,C&&(R.shadowBlur=e.textShadowBlur||0,R.shadowColor=e.textShadowColor||"transparent",R.shadowOffsetX=e.textShadowOffsetX||0,R.shadowOffsetY=e.textShadowOffsetY||0),R.stroke=w,R.fill=S,w&&(R.lineWidth=e.lineWidth||y,R.lineDash=e.lineDash,R.lineDashOffset=e.lineDashOffset||0),R.font=t,NZe(R,e),_+=d,E&&A.setBoundingRect(new KGe(kqe(R.x,l,R.textAlign),Tqe(R.y,k,R.textBaseline),l,k))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var i=new aXe;if(null!=e&&(e+=""),!e)return i;for(var a,n=t.width,s=t.height,o=t.overflow,r="break"!==o&&"breakAll"!==o||null==n?null:{width:n,accumWidth:0,breakAll:"breakAll"===o},l=XKe.lastIndex=0;null!=(a=XKe.exec(e));){var c=a.index;c>l&&nXe(i,e.substring(l,c),t,r),nXe(i,a[2],t,r,a[1]),l=XKe.lastIndex}l<e.length&&nXe(i,e.substring(l,e.length),t,r);var d=[],u=0,p=0,h=t.padding,f="truncate"===o,g="truncate"===t.lineOverflow,m={};function _(e,t,i){e.width=t,e.lineHeight=i,u+=i,p=Math.max(p,t)}e:for(var v=0;v<i.lines.length;v++){for(var b=i.lines[v],y=0,x=0,S=0;S<b.tokens.length;S++){var w=(N=b.tokens[S]).styleName&&t.rich[N.styleName]||{},C=N.textPadding=w.padding,E=C?C[1]+C[3]:0,k=N.font=w.font||t.font;N.contentHeight=Aqe(k);var T=OYe(w.height,N.contentHeight);if(N.innerHeight=T,C&&(T+=C[0]+C[2]),N.height=T,N.lineHeight=MYe(w.lineHeight,t.lineHeight,T),N.align=w&&w.align||t.align,N.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=s&&u+N.lineHeight>s){var A=i.lines.length;S>0?(b.tokens=b.tokens.slice(0,S),_(b,x,y),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v),i.isTruncated=i.isTruncated||i.lines.length<A;break e}var R=w.width,I=null==R||"auto"===R;if("string"==typeof R&&"%"===R.charAt(R.length-1))N.percentWidth=R,d.push(N),N.contentWidth=wqe(N.text,k);else{if(I){var D=w.backgroundColor,O=D&&D.image;O&&KKe(O=WKe(O))&&(N.width=Math.max(N.width,O.width*T/O.height))}var M=f&&null!=n?n-x:null;null!=M&&M<N.width?!I||M<E?(N.text="",N.width=N.contentWidth=0):(ZKe(m,N.text,M-E,k,t.ellipsis,{minChar:t.truncateMinChar}),N.text=m.text,i.isTruncated=i.isTruncated||m.isTruncated,N.width=N.contentWidth=wqe(N.text,k)):N.contentWidth=wqe(N.text,k)}N.width+=E,x+=N.width,w&&(y=Math.max(y,N.lineHeight))}_(b,x,y)}for(i.outerWidth=i.width=OYe(n,p),i.outerHeight=i.height=OYe(s,u),i.contentHeight=u,i.contentWidth=p,h&&(i.outerWidth+=h[1]+h[3],i.outerHeight+=h[0]+h[2]),v=0;v<d.length;v++){var N,L=(N=d[v]).percentWidth;N.width=parseInt(L,10)/100*i.width}return i}(VZe(e),e),i=t.width,a=t.outerWidth,n=t.outerHeight,s=e.padding,o=e.x||0,r=e.y||0,l=this._defaultStyle,c=e.align||l.align,d=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var u=kqe(o,a,c),p=Tqe(r,n,d),h=u,f=p;s&&(h+=s[3],f+=s[0]);var g=h+i;UZe(e)&&this._renderBackground(e,e,u,p,a,n);for(var m=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],b=v.tokens,y=b.length,x=v.lineHeight,S=v.width,w=0,C=h,E=g,k=y-1,T=void 0;w<y&&(!(T=b[w]).align||"left"===T.align);)this._placeToken(T,e,x,f,C,"left",m),S-=T.width,C+=T.width,w++;for(;k>=0&&"right"===(T=b[k]).align;)this._placeToken(T,e,x,f,E,"right",m),S-=T.width,E-=T.width,k--;for(C+=(i-(C-h)-(g-E)-S)/2;w<=k;)T=b[w],this._placeToken(T,e,x,f,C+T.width/2,"center",m),C+=T.width,w++;f+=x}},t.prototype._placeToken=function(e,t,i,a,n,s,o){var r=t.rich[e.styleName]||{};r.text=e.text;var l=e.verticalAlign,c=a+i/2;"top"===l?c=a+e.height/2:"bottom"===l&&(c=a+i-e.height/2),!e.isLineHolder&&UZe(r)&&this._renderBackground(r,t,"right"===s?n-e.width:"center"===s?n-e.width/2:n,c-e.height/2,e.width,e.height);var d=!!r.backgroundColor,u=e.textPadding;u&&(n=$Ze(n,s,u),c-=e.height/2-u[0]-e.innerHeight/2);var p=this._getOrCreateChild(mZe),h=p.createStyle();p.useStyle(h);var f=this._defaultStyle,g=!1,m=0,_=BZe("fill"in r?r.fill:"fill"in t?t.fill:(g=!0,f.fill)),v=FZe("stroke"in r?r.stroke:"stroke"in t?t.stroke:d||o||f.autoStroke&&!g?null:(m=2,f.stroke)),b=r.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=n,h.y=c,b&&(h.shadowBlur=r.textShadowBlur||t.textShadowBlur||0,h.shadowColor=r.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=r.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=r.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=s,h.textBaseline="middle",h.font=e.font||zze,h.opacity=MYe(r.opacity,t.opacity,1),NZe(h,r),v&&(h.lineWidth=MYe(r.lineWidth,t.lineWidth,m),h.lineDash=OYe(r.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=v),_&&(h.fill=_);var y=e.contentWidth,x=e.contentHeight;p.setBoundingRect(new KGe(kqe(h.x,y,h.textAlign),Tqe(h.y,x,h.textBaseline),y,x))},t.prototype._renderBackground=function(e,t,i,a,n,s){var o,r,l,c=e.backgroundColor,d=e.borderWidth,u=e.borderColor,p=c&&c.image,h=c&&!p,f=e.borderRadius,g=this;if(h||e.lineHeight||d&&u){(o=this._getOrCreateChild(kZe)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=i,m.y=a,m.width=n,m.height=s,m.r=f,o.dirtyShape()}if(h)(l=o.style).fill=c||null,l.fillOpacity=OYe(e.fillOpacity,1);else if(p){(r=this._getOrCreateChild(bZe)).onload=function(){g.dirtyStyle()};var _=r.style;_.image=c.image,_.x=i,_.y=a,_.width=n,_.height=s}d&&u&&((l=o.style).lineWidth=d,l.stroke=u,l.strokeOpacity=OYe(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var v=(o||r).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||"transparent",v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=MYe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return LZe(e)&&(t=[e.fontStyle,e.fontWeight,MZe(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&FYe(t)||e.textFont||e.font},t}(hXe),IZe={left:!0,right:1,center:1},DZe={top:1,bottom:1,middle:1},OZe=["fontStyle","fontWeight","fontSize","fontFamily"];function MZe(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function NZe(e,t){for(var i=0;i<OZe.length;i++){var a=OZe[i],n=t[a];null!=n&&(e[a]=n)}}function LZe(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function PZe(e){if(e){e.font=RZe.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||IZe[t]?t:"left";var i=e.verticalAlign;"center"===i&&(i="middle"),e.verticalAlign=null==i||DZe[i]?i:"top",e.padding&&(e.padding=LYe(e.padding))}}function FZe(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function BZe(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function $Ze(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function VZe(e){var t=e.text;return null!=t&&(t+=""),t}function UZe(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var HZe=EKe(),zZe=1,YZe={},GZe=EKe(),WZe=EKe(),jZe=["emphasis","blur","select"],qZe=["normal","emphasis","blur","select"],KZe="highlight",XZe="downplay",ZZe="select",QZe="unselect",JZe="toggleSelect";function eQe(e){return null!=e&&"none"!==e}function tQe(e,t,i){e.onHoverStateChange&&(e.hoverState||0)!==i&&e.onHoverStateChange(t),e.hoverState=i}function iQe(e){tQe(e,"emphasis",2)}function aQe(e){2===e.hoverState&&tQe(e,"normal",0)}function nQe(e){tQe(e,"blur",1)}function sQe(e){1===e.hoverState&&tQe(e,"normal",0)}function oQe(e){e.selected=!0}function rQe(e){e.selected=!1}function lQe(e,t,i){t(e,i)}function cQe(e,t,i){lQe(e,t,i),e.isGroup&&e.traverse(function(e){lQe(e,t,i)})}function dQe(e,t){var i=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,i,a){var n=i&&dYe(i,"select")>=0,s=!1;if(e instanceof fZe){var o=GZe(e),r=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(eQe(r)||eQe(l)){var c=(a=a||{}).style||{};"inherit"===c.fill?(s=!0,a=lYe({},a),(c=lYe({},c)).fill=r):!eQe(c.fill)&&eQe(r)?(s=!0,a=lYe({},a),(c=lYe({},c)).fill=cje(r)):!eQe(c.stroke)&&eQe(l)&&(s||(a=lYe({},a),c=lYe({},c)),c.stroke=cje(l)),a.style=c}}if(a&&null==a.z2){s||(a=lYe({},a));var d=e.z2EmphasisLift;a.z2=e.z2+(null!=d?d:10)}return a}(this,0,t,i);if("blur"===e)return function(e,t,i){var a=dYe(e.currentStates,t)>=0,n=e.style.opacity,s=a?null:function(e,t,i,a){for(var n=e.style,s={},o=0;o<t.length;o++){var r=t[o],l=n[r];s[r]=null==l?a&&a[r]:l}for(o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(i)<0&&"style"===c.targetName&&c.saveTo(s,t)}return s}(e,["opacity"],t,{opacity:1}),o=(i=i||{}).style||{};return null==o.opacity&&(i=lYe({},i),o=lYe({opacity:a?n:.1*s.opacity},o),i.style=o),i}(this,e,i);if("select"===e)return function(e,t,i){if(i&&null==i.z2){i=lYe({},i);var a=e.z2SelectLift;i.z2=e.z2+(null!=a?a:9)}return i}(this,0,i)}return i}function uQe(e){e.stateProxy=dQe;var t=e.getTextContent(),i=e.getTextGuideLine();t&&(t.stateProxy=dQe),i&&(i.stateProxy=dQe)}function pQe(e,t){!bQe(e,t)&&!e.__highByOuter&&cQe(e,iQe)}function hQe(e,t){!bQe(e,t)&&!e.__highByOuter&&cQe(e,aQe)}function fQe(e,t){e.__highByOuter|=1<<(t||0),cQe(e,iQe)}function gQe(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&cQe(e,aQe)}function mQe(e){cQe(e,sQe)}function _Qe(e){cQe(e,oQe)}function vQe(e){cQe(e,rQe)}function bQe(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function yQe(e){var t=e.getModel(),i=[],a=[];t.eachComponent(function(t,n){var s=WZe(n),o="series"===t,r=o?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);!o&&a.push(r),s.isBlured&&(r.group.traverse(function(e){sQe(e)}),o&&i.push(n)),s.isBlured=!1}),hYe(a,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(i,!1,t)})}function xQe(e,t,i,a){var n=a.getModel();function s(e,t){for(var i=0;i<t.length;i++){var a=e.getItemGraphicEl(t[i]);a&&mQe(a)}}if(i=i||"coordinateSystem",null!=e&&t&&"none"!==t){var o=n.getSeriesByIndex(e),r=o.coordinateSystem;r&&r.master&&(r=r.master);var l=[];n.eachSeries(function(e){var n=o===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===i&&!n||"coordinateSystem"===i&&!(c&&r?c===r:n)||"series"===t&&n)){if(a.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&n&&"self"===t||nQe(e)}),pYe(t))s(e.getData(),t);else if(EYe(t))for(var d=_Ye(t),u=0;u<d.length;u++)s(e.getData(d[u]),t[d[u]]);l.push(e),WZe(e).isBlured=!0}}),n.eachComponent(function(e,t){if("series"!==e){var i=a.getViewOfComponentModel(t);i&&i.toggleBlurSeries&&i.toggleBlurSeries(l,!0,n)}})}}function SQe(e,t,i){if(null!=e&&null!=t){var a=i.getModel().getComponent(e,t);if(a){WZe(a).isBlured=!0;var n=i.getViewOfComponentModel(a);n&&n.focusBlurEnabled&&n.group.traverse(function(e){nQe(e)})}}}function wQe(e,t,i,a){var n={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==i)return n;var s=a.getModel().getComponent(e,t);if(!s)return n;var o=a.getViewOfComponentModel(s);if(!o||!o.findHighDownDispatchers)return n;for(var r,l=o.findHighDownDispatchers(i),c=0;c<l.length;c++)if("self"===HZe(l[c]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function CQe(e){hYe(e.getAllData(),function(t){var i=t.data,a=t.type;i.eachItemGraphicEl(function(t,i){e.isSelected(i,a)?_Qe(t):vQe(t)})})}function EQe(e){var t=[];return e.eachSeries(function(e){hYe(e.getAllData(),function(i){i.data;var a=i.type,n=e.getSelectedDataIndices();if(n.length>0){var s={dataIndex:n,seriesIndex:e.seriesIndex};null!=a&&(s.dataType=a),t.push(s)}})}),t}function kQe(e,t,i){IQe(e,!0),cQe(e,uQe),function(e,t,i){var a=HZe(e);null!=t?(a.focus=t,a.blurScope=i):a.focus&&(a.focus=null)}(e,t,i)}function TQe(e,t,i,a){a?function(e){IQe(e,!1)}(e):kQe(e,t,i)}var AQe=["emphasis","blur","select"],RQe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function IQe(e,t){var i=!1===t,a=e;e.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=e.highDownSilentOnTouch),i&&!a.__highDownDispatcher||(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!i)}function DQe(e){return!(!e||!e.__highDownDispatcher)}function OQe(e){var t=e.type;return t===ZZe||t===QZe||t===JZe}function MQe(e){var t=e.type;return t===KZe||t===XZe}var NQe=jXe.CMD,LQe=[[],[],[]],PQe=Math.sqrt,FQe=Math.atan2;var BQe=Math.sqrt,$Qe=Math.sin,VQe=Math.cos,UQe=Math.PI;function HQe(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function zQe(e,t){return(e[0]*t[0]+e[1]*t[1])/(HQe(e)*HQe(t))}function YQe(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(zQe(e,t))}function GQe(e,t,i,a,n,s,o,r,l,c,d){var u=l*(UQe/180),p=VQe(u)*(e-i)/2+$Qe(u)*(t-a)/2,h=-1*$Qe(u)*(e-i)/2+VQe(u)*(t-a)/2,f=p*p/(o*o)+h*h/(r*r);f>1&&(o*=BQe(f),r*=BQe(f));var g=(n===s?-1:1)*BQe((o*o*(r*r)-o*o*(h*h)-r*r*(p*p))/(o*o*(h*h)+r*r*(p*p)))||0,m=g*o*h/r,_=g*-r*p/o,v=(e+i)/2+VQe(u)*m-$Qe(u)*_,b=(t+a)/2+$Qe(u)*m+VQe(u)*_,y=YQe([1,0],[(p-m)/o,(h-_)/r]),x=[(p-m)/o,(h-_)/r],S=[(-1*p-m)/o,(-1*h-_)/r],w=YQe(x,S);if(zQe(x,S)<=-1&&(w=UQe),zQe(x,S)>=1&&(w=0),w<0){var C=Math.round(w/UQe*1e6)/1e6;w=2*UQe+C%2*UQe}d.addData(c,v,b,o,r,y,w,u,s)}var WQe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,jQe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var qQe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return XYe(t,e),t.prototype.applyTransform=function(e){},t}(fZe);function KQe(e){return null!=e.setData}function XQe(e,t){var i=function(e){var t=new jXe;if(!e)return t;var i,a=0,n=0,s=a,o=n,r=jXe.CMD,l=e.match(WQe);if(!l)return t;for(var c=0;c<l.length;c++){for(var d=l[c],u=d.charAt(0),p=void 0,h=d.match(jQe)||[],f=h.length,g=0;g<f;g++)h[g]=parseFloat(h[g]);for(var m=0;m<f;){var _=void 0,v=void 0,b=void 0,y=void 0,x=void 0,S=void 0,w=void 0,C=a,E=n,k=void 0,T=void 0;switch(u){case"l":a+=h[m++],n+=h[m++],p=r.L,t.addData(p,a,n);break;case"L":a=h[m++],n=h[m++],p=r.L,t.addData(p,a,n);break;case"m":a+=h[m++],n+=h[m++],p=r.M,t.addData(p,a,n),s=a,o=n,u="l";break;case"M":a=h[m++],n=h[m++],p=r.M,t.addData(p,a,n),s=a,o=n,u="L";break;case"h":a+=h[m++],p=r.L,t.addData(p,a,n);break;case"H":a=h[m++],p=r.L,t.addData(p,a,n);break;case"v":n+=h[m++],p=r.L,t.addData(p,a,n);break;case"V":n=h[m++],p=r.L,t.addData(p,a,n);break;case"C":p=r.C,t.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),a=h[m-2],n=h[m-1];break;case"c":p=r.C,t.addData(p,h[m++]+a,h[m++]+n,h[m++]+a,h[m++]+n,h[m++]+a,h[m++]+n),a+=h[m-2],n+=h[m-1];break;case"S":_=a,v=n,k=t.len(),T=t.data,i===r.C&&(_+=a-T[k-4],v+=n-T[k-3]),p=r.C,C=h[m++],E=h[m++],a=h[m++],n=h[m++],t.addData(p,_,v,C,E,a,n);break;case"s":_=a,v=n,k=t.len(),T=t.data,i===r.C&&(_+=a-T[k-4],v+=n-T[k-3]),p=r.C,C=a+h[m++],E=n+h[m++],a+=h[m++],n+=h[m++],t.addData(p,_,v,C,E,a,n);break;case"Q":C=h[m++],E=h[m++],a=h[m++],n=h[m++],p=r.Q,t.addData(p,C,E,a,n);break;case"q":C=h[m++]+a,E=h[m++]+n,a+=h[m++],n+=h[m++],p=r.Q,t.addData(p,C,E,a,n);break;case"T":_=a,v=n,k=t.len(),T=t.data,i===r.Q&&(_+=a-T[k-4],v+=n-T[k-3]),a=h[m++],n=h[m++],p=r.Q,t.addData(p,_,v,a,n);break;case"t":_=a,v=n,k=t.len(),T=t.data,i===r.Q&&(_+=a-T[k-4],v+=n-T[k-3]),a+=h[m++],n+=h[m++],p=r.Q,t.addData(p,_,v,a,n);break;case"A":b=h[m++],y=h[m++],x=h[m++],S=h[m++],w=h[m++],GQe(C=a,E=n,a=h[m++],n=h[m++],S,w,b,y,x,p=r.A,t);break;case"a":b=h[m++],y=h[m++],x=h[m++],S=h[m++],w=h[m++],GQe(C=a,E=n,a+=h[m++],n+=h[m++],S,w,b,y,x,p=r.A,t)}}"z"!==u&&"Z"!==u||(p=r.Z,t.addData(p),a=s,n=o),i=p}return t.toStatic(),t}(e),a=lYe({},t);return a.buildPath=function(e){if(KQe(e)){e.setData(i.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;i.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var i,a,n,s,o,r,l=e.data,c=e.len(),d=NQe.M,u=NQe.C,p=NQe.L,h=NQe.R,f=NQe.A,g=NQe.Q;for(n=0,s=0;n<c;){switch(i=l[n++],s=n,a=0,i){case d:case p:a=1;break;case u:a=3;break;case g:a=2;break;case f:var m=t[4],_=t[5],v=PQe(t[0]*t[0]+t[1]*t[1]),b=PQe(t[2]*t[2]+t[3]*t[3]),y=FQe(-t[1]/b,t[0]/v);l[n]*=v,l[n++]+=m,l[n]*=b,l[n++]+=_,l[n++]*=v,l[n++]*=b,l[n++]+=y,l[n++]+=y,s=n+=2;break;case h:r[0]=l[n++],r[1]=l[n++],oGe(r,r,t),l[s++]=r[0],l[s++]=r[1],r[0]+=l[n++],r[1]+=l[n++],oGe(r,r,t),l[s++]=r[0],l[s++]=r[1]}for(o=0;o<a;o++){var x=LQe[o];x[0]=l[n++],x[1]=l[n++],oGe(x,x,t),l[s++]=x[0],l[s++]=x[1]}}e.increaseVersion()}}(i,e),this.dirtyShape()},a}var ZQe=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),QQe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultShape=function(){return new ZQe},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(fZe);QQe.prototype.type="circle";var JQe=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),eJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultShape=function(){return new JQe},t.prototype.buildPath=function(e,t){var i=.5522848,a=t.cx,n=t.cy,s=t.rx,o=t.ry,r=s*i,l=o*i;e.moveTo(a-s,n),e.bezierCurveTo(a-s,n-l,a-r,n-o,a,n-o),e.bezierCurveTo(a+r,n-o,a+s,n-l,a+s,n),e.bezierCurveTo(a+s,n+l,a+r,n+o,a,n+o),e.bezierCurveTo(a-r,n+o,a-s,n+l,a-s,n),e.closePath()},t}(fZe);eJe.prototype.type="ellipse";var tJe=Math.PI,iJe=2*tJe,aJe=Math.sin,nJe=Math.cos,sJe=Math.acos,oJe=Math.atan2,rJe=Math.abs,lJe=Math.sqrt,cJe=Math.max,dJe=Math.min,uJe=1e-4;function pJe(e,t,i,a,n,s,o){var r=e-i,l=t-a,c=(o?s:-s)/lJe(r*r+l*l),d=c*l,u=-c*r,p=e+d,h=t+u,f=i+d,g=a+u,m=(p+f)/2,_=(h+g)/2,v=f-p,b=g-h,y=v*v+b*b,x=n-s,S=p*g-f*h,w=(b<0?-1:1)*lJe(cJe(0,x*x*y-S*S)),C=(S*b-v*w)/y,E=(-S*v-b*w)/y,k=(S*b+v*w)/y,T=(-S*v+b*w)/y,A=C-m,R=E-_,I=k-m,D=T-_;return A*A+R*R>I*I+D*D&&(C=k,E=T),{cx:C,cy:E,x0:-d,y0:-u,x1:C*(n/x-1),y1:E*(n/x-1)}}function hJe(e,t){var i,a=cJe(t.r,0),n=cJe(t.r0||0,0),s=a>0;if(s||n>0){if(s||(a=n,n=0),n>a){var o=a;a=n,n=o}var r=t.startAngle,l=t.endAngle;if(!isNaN(r)&&!isNaN(l)){var c=t.cx,d=t.cy,u=!!t.clockwise,p=rJe(l-r),h=p>iJe&&p%iJe;if(h>uJe&&(p=h),a>uJe)if(p>iJe-uJe)e.moveTo(c+a*nJe(r),d+a*aJe(r)),e.arc(c,d,a,r,l,!u),n>uJe&&(e.moveTo(c+n*nJe(l),d+n*aJe(l)),e.arc(c,d,n,l,r,u));else{var f=void 0,g=void 0,m=void 0,_=void 0,v=void 0,b=void 0,y=void 0,x=void 0,S=void 0,w=void 0,C=void 0,E=void 0,k=void 0,T=void 0,A=void 0,R=void 0,I=a*nJe(r),D=a*aJe(r),O=n*nJe(l),M=n*aJe(l),N=p>uJe;if(N){var L=t.cornerRadius;L&&(f=(i=function(e){var t;if(yYe(e)){var i=e.length;if(!i)return e;t=1===i?[e[0],e[0],0,0]:2===i?[e[0],e[0],e[1],e[1]]:3===i?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],g=i[1],m=i[2],_=i[3]);var P=rJe(a-n)/2;if(v=dJe(P,m),b=dJe(P,_),y=dJe(P,f),x=dJe(P,g),C=S=cJe(v,b),E=w=cJe(y,x),(S>uJe||w>uJe)&&(k=a*nJe(l),T=a*aJe(l),A=n*nJe(r),R=n*aJe(r),p<tJe)){var F=function(e,t,i,a,n,s,o,r){var l=i-e,c=a-t,d=o-n,u=r-s,p=u*l-d*c;if(!(p*p<uJe))return[e+(p=(d*(t-s)-u*(e-n))/p)*l,t+p*c]}(I,D,A,R,k,T,O,M);if(F){var B=I-F[0],$=D-F[1],V=k-F[0],U=T-F[1],H=1/aJe(sJe((B*V+$*U)/(lJe(B*B+$*$)*lJe(V*V+U*U)))/2),z=lJe(F[0]*F[0]+F[1]*F[1]);C=dJe(S,(a-z)/(H+1)),E=dJe(w,(n-z)/(H-1))}}}if(N)if(C>uJe){var Y=dJe(m,C),G=dJe(_,C),W=pJe(A,R,I,D,a,Y,u),j=pJe(k,T,O,M,a,G,u);e.moveTo(c+W.cx+W.x0,d+W.cy+W.y0),C<S&&Y===G?e.arc(c+W.cx,d+W.cy,C,oJe(W.y0,W.x0),oJe(j.y0,j.x0),!u):(Y>0&&e.arc(c+W.cx,d+W.cy,Y,oJe(W.y0,W.x0),oJe(W.y1,W.x1),!u),e.arc(c,d,a,oJe(W.cy+W.y1,W.cx+W.x1),oJe(j.cy+j.y1,j.cx+j.x1),!u),G>0&&e.arc(c+j.cx,d+j.cy,G,oJe(j.y1,j.x1),oJe(j.y0,j.x0),!u))}else e.moveTo(c+I,d+D),e.arc(c,d,a,r,l,!u);else e.moveTo(c+I,d+D);if(n>uJe&&N)if(E>uJe){Y=dJe(f,E),W=pJe(O,M,k,T,n,-(G=dJe(g,E)),u),j=pJe(I,D,A,R,n,-Y,u);e.lineTo(c+W.cx+W.x0,d+W.cy+W.y0),E<w&&Y===G?e.arc(c+W.cx,d+W.cy,E,oJe(W.y0,W.x0),oJe(j.y0,j.x0),!u):(G>0&&e.arc(c+W.cx,d+W.cy,G,oJe(W.y0,W.x0),oJe(W.y1,W.x1),!u),e.arc(c,d,n,oJe(W.cy+W.y1,W.cx+W.x1),oJe(j.cy+j.y1,j.cx+j.x1),u),Y>0&&e.arc(c+j.cx,d+j.cy,Y,oJe(j.y1,j.x1),oJe(j.y0,j.x0),!u))}else e.lineTo(c+O,d+M),e.arc(c,d,n,l,r,u);else e.lineTo(c+O,d+M)}else e.moveTo(c,d);e.closePath()}}}var fJe=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),gJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultShape=function(){return new fJe},t.prototype.buildPath=function(e,t){hJe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(fZe);gJe.prototype.type="sector";var mJe=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),_Je=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultShape=function(){return new mJe},t.prototype.buildPath=function(e,t){var i=t.cx,a=t.cy,n=2*Math.PI;e.moveTo(i+t.r,a),e.arc(i,a,t.r,0,n,!1),e.moveTo(i+t.r0,a),e.arc(i,a,t.r0,0,n,!0)},t}(fZe);function vJe(e,t,i){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var s=function(e,t,i,a){var n,s,o,r,l=[],c=[],d=[],u=[];if(a){o=[1/0,1/0],r=[-1/0,-1/0];for(var p=0,h=e.length;p<h;p++)rGe(o,o,e[p]),lGe(r,r,e[p]);rGe(o,o,a[0]),lGe(r,r,a[1])}for(p=0,h=e.length;p<h;p++){var f=e[p];if(i)n=e[p?p-1:h-1],s=e[(p+1)%h];else{if(0===p||p===h-1){l.push(QYe(e[p]));continue}n=e[p-1],s=e[p+1]}eGe(c,s,n),tGe(c,c,t);var g=aGe(f,n),m=aGe(f,s),_=g+m;0!==_&&(g/=_,m/=_),tGe(d,c,-g),tGe(u,c,m);var v=JYe([],f,d),b=JYe([],f,u);a&&(lGe(v,v,o),rGe(v,v,r),lGe(b,b,o),rGe(b,b,r)),l.push(v),l.push(b)}return i&&l.push(l.shift()),l}(n,a,i,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,r=0;r<(i?o:o-1);r++){var l=s[2*r],c=s[2*r+1],d=n[(r+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}}else{e.moveTo(n[0][0],n[0][1]);r=1;for(var u=n.length;r<u;r++)e.lineTo(n[r][0],n[r][1])}i&&e.closePath()}}_Je.prototype.type="ring";var bJe=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),yJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultShape=function(){return new bJe},t.prototype.buildPath=function(e,t){vJe(e,t,!0)},t}(fZe);yJe.prototype.type="polygon";var xJe=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),SJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xJe},t.prototype.buildPath=function(e,t){vJe(e,t,!1)},t}(fZe);SJe.prototype.type="polyline";var wJe={},CJe=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),EJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CJe},t.prototype.buildPath=function(e,t){var i,a,n,s;if(this.subPixelOptimize){var o=xZe(wJe,t,this.style);i=o.x1,a=o.y1,n=o.x2,s=o.y2}else i=t.x1,a=t.y1,n=t.x2,s=t.y2;var r=t.percent;0!==r&&(e.moveTo(i,a),r<1&&(n=i*(1-r)+n*r,s=a*(1-r)+s*r),e.lineTo(n,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(fZe);EJe.prototype.type="line";var kJe=[],TJe=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function AJe(e,t,i){var a=e.cpx2,n=e.cpy2;return null!=a||null!=n?[(i?IWe:RWe)(e.x1,e.cpx1,e.cpx2,e.x2,t),(i?IWe:RWe)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(i?PWe:LWe)(e.x1,e.cpx1,e.x2,t),(i?PWe:LWe)(e.y1,e.cpy1,e.y2,t)]}var RJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TJe},t.prototype.buildPath=function(e,t){var i=t.x1,a=t.y1,n=t.x2,s=t.y2,o=t.cpx1,r=t.cpy1,l=t.cpx2,c=t.cpy2,d=t.percent;0!==d&&(e.moveTo(i,a),null==l||null==c?(d<1&&(BWe(i,o,n,d,kJe),o=kJe[1],n=kJe[2],BWe(a,r,s,d,kJe),r=kJe[1],s=kJe[2]),e.quadraticCurveTo(o,r,n,s)):(d<1&&(MWe(i,o,l,n,d,kJe),o=kJe[1],l=kJe[2],n=kJe[3],MWe(a,r,c,s,d,kJe),r=kJe[1],c=kJe[2],s=kJe[3]),e.bezierCurveTo(o,r,l,c,n,s)))},t.prototype.pointAt=function(e){return AJe(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=AJe(this.shape,e,!0);return iGe(t,t)},t}(fZe);RJe.prototype.type="bezier-curve";var IJe=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),DJe=function(e){function t(t){return e.call(this,t)||this}return XYe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new IJe},t.prototype.buildPath=function(e,t){var i=t.cx,a=t.cy,n=Math.max(t.r,0),s=t.startAngle,o=t.endAngle,r=t.clockwise,l=Math.cos(s),c=Math.sin(s);e.moveTo(l*n+i,c*n+a),e.arc(i,a,n,s,o,!r)},t}(fZe);DJe.prototype.type="arc";var OJe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return XYe(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),i=0;i<e.length;i++)t=t||e[i].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(t[0],t[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var i=t.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),fZe.prototype.getBoundingRect.call(this)},t}(fZe),MJe=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),NJe=function(e){function t(t,i,a,n,s,o){var r=e.call(this,s)||this;return r.x=null==t?0:t,r.y=null==i?0:i,r.x2=null==a?1:a,r.y2=null==n?0:n,r.type="linear",r.global=o||!1,r}return XYe(t,e),t}(MJe),LJe=function(e){function t(t,i,a,n,s){var o=e.call(this,n)||this;return o.x=null==t?.5:t,o.y=null==i?.5:i,o.r=null==a?.5:a,o.type="radial",o.global=s||!1,o}return XYe(t,e),t}(MJe),PJe=[0,0],FJe=[0,0],BJe=new VGe,$Je=new VGe,VJe=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new VGe;for(i=0;i<2;i++)this._axes[i]=new VGe;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var i=this._corners,a=this._axes,n=e.x,s=e.y,o=n+e.width,r=s+e.height;if(i[0].set(n,s),i[1].set(o,s),i[2].set(o,r),i[3].set(n,r),t)for(var l=0;l<4;l++)i[l].transform(t);VGe.sub(a[0],i[1],i[0]),VGe.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(l=0;l<2;l++)this._origin[l]=a[l].dot(i[0])},e.prototype.intersect=function(e,t){var i=!0,a=!t;return BJe.set(1/0,1/0),$Je.set(0,0),!this._intersectCheckOneSide(this,e,BJe,$Je,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,BJe,$Je,a,-1)&&(i=!1,a)||a||VGe.copy(t,i?BJe:$Je),i},e.prototype._intersectCheckOneSide=function(e,t,i,a,n,s){for(var o=!0,r=0;r<2;r++){var l=this._axes[r];if(this._getProjMinMaxOnAxis(r,e._corners,PJe),this._getProjMinMaxOnAxis(r,t._corners,FJe),PJe[1]<FJe[0]||PJe[0]>FJe[1]){if(o=!1,n)return o;var c=Math.abs(FJe[0]-PJe[1]),d=Math.abs(PJe[0]-FJe[1]);Math.min(c,d)>a.len()&&(c<d?VGe.scale(a,l,-c*s):VGe.scale(a,l,d*s))}else if(i){c=Math.abs(FJe[0]-PJe[1]),d=Math.abs(PJe[0]-FJe[1]);Math.min(c,d)<i.len()&&(c<d?VGe.scale(i,l,c*s):VGe.scale(i,l,-d*s))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var a=this._axes[e],n=this._origin,s=t[0].dot(a)+n[e],o=s,r=s,l=1;l<t.length;l++){var c=t[l].dot(a)+n[e];o=Math.min(c,o),r=Math.max(c,r)}i[0]=o,i[1]=r},e}(),UJe=[],HJe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return XYe(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new KGe(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var i=this._displayables[t],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(UJe)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){if(this._displayables[a].contain(e,t))return!0}return!1},t}(hXe),zJe=EKe();function YJe(e,t,i,a,n,s,o){var r,l=!1;xYe(n)?(o=s,s=n,n=null):EYe(n)&&(s=n.cb,o=n.during,l=n.isFrom,r=n.removeOpt,n=n.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var d=function(e,t,i,a,n){var s;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();s=o&&o.animation}var r="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,c=void 0,d=void 0;return a?(l=OYe(a.duration,200),c=OYe(a.easing,"cubicOut"),d=0):(l=t.getShallow(r?"animationDurationUpdate":"animationDuration"),c=t.getShallow(r?"animationEasingUpdate":"animationEasing"),d=t.getShallow(r?"animationDelayUpdate":"animationDelay")),s&&(null!=s.duration&&(l=s.duration),null!=s.easing&&(c=s.easing),null!=s.delay&&(d=s.delay)),xYe(d)&&(d=d(i,n)),xYe(l)&&(l=l(i)),{duration:l||0,delay:d,easing:c}}return null}(e,a,n,c?r||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(d&&d.duration>0){var u={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(i,u):t.animateTo(i,u)}else t.stopAnimation(),!l&&t.attr(i),o&&o(1),s&&s()}function GJe(e,t,i,a,n,s){YJe("update",e,t,i,a,n,s)}function WJe(e,t,i,a,n,s){YJe("enter",e,t,i,a,n,s)}function jJe(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function qJe(e,t,i,a,n,s){jJe(e)||YJe("leave",e,t,i,a,n,s)}function KJe(e,t,i,a){e.removeTextContent(),e.removeTextGuideLine(),qJe(e,{style:{opacity:0}},t,i,a)}function XJe(e,t,i){function a(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||KJe(e,t,i,a)}):KJe(e,t,i,a)}var ZJe=Math.max,QJe=Math.min,JJe={};var e0e=function(e,t){var i=XQe(e,t);return function(e){function t(t){var a=e.call(this,t)||this;return a.applyTransform=i.applyTransform,a.buildPath=i.buildPath,a}return XYe(t,e),t}(qQe)};function t0e(e,t){JJe[e]=t}function i0e(e,t,i,a){var n=function(e,t){return new qQe(XQe(e,t))}(e,t);return i&&("center"===a&&(i=n0e(i,n.getBoundingRect())),o0e(n,i)),n}function a0e(e,t,i){var a=new bZe({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===i){var n={width:e.width,height:e.height};a.setStyle(n0e(t,n))}}});return a}function n0e(e,t){var i,a=t.width/t.height,n=e.height*a;return i=n<=e.width?e.height:(n=e.width)/a,{x:e.x+e.width/2-n/2,y:e.y+e.height/2-i/2,width:n,height:i}}var s0e=function(e,t){for(var i=[],a=e.length,n=0;n<a;n++){var s=e[n];i.push(s.getUpdatedPathProxy(!0))}var o=new fZe(t);return o.createPathProxy(),o.buildPath=function(e){if(KQe(e)){e.appendPath(i);var t=e.getContext();t&&e.rebuildPath(t,1)}},o};function o0e(e,t){if(e.applyTransform){var i=e.getBoundingRect().calculateTransform(t);e.applyTransform(i)}}function r0e(e,t){return xZe(e,e,{lineWidth:t}),e}var l0e=wZe;function c0e(e,t){for(var i=LGe([]);e&&e!==t;)PGe(i,e.getLocalTransform(),i),e=e.parent;return i}function d0e(e,t,i){return t&&!pYe(t)&&(t=bqe.getLocalTransform(t)),i&&(t=$Ge([],t)),oGe([],e,t)}function u0e(e,t,i){var a=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),n=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),s=["left"===e?-a:"right"===e?a:0,"top"===e?-n:"bottom"===e?n:0];return s=d0e(s,t,i),Math.abs(s[0])>Math.abs(s[1])?s[0]>0?"right":"left":s[1]>0?"bottom":"top"}function p0e(e){return!e.isGroup}function h0e(e,t,i){if(e&&t){var a,n=(a={},e.traverse(function(e){p0e(e)&&e.anid&&(a[e.anid]=e)}),a);t.traverse(function(e){if(p0e(e)&&e.anid){var t=n[e.anid];if(t){var a=s(e);e.attr(s(t)),GJe(e,a,i,HZe(e).dataIndex)}}})}function s(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=lYe({},e.shape)),t}}function f0e(e,t,i){var a=lYe({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(n.image=e.slice(8),cYe(n,i),new bZe(a)):i0e(e.replace("path://",""),a,i,"center")}function g0e(e,t,i,a,n,s,o,r){var l,c=i-e,d=a-t,u=o-n,p=r-s,h=m0e(u,p,c,d);if((l=h)<=1e-6&&l>=-1e-6)return!1;var f=e-n,g=t-s,m=m0e(f,g,c,d)/h;if(m<0||m>1)return!1;var _=m0e(f,g,u,p)/h;return!(_<0||_>1)}function m0e(e,t,i,a){return e*a-i*t}function _0e(e){var t=e.itemTooltipOption,i=e.componentModel,a=e.itemName,n=SYe(t)?{formatter:t}:t,s=i.mainType,o=i.componentIndex,r={componentType:s,name:a,$vars:["name"]};r[s+"Index"]=o;var l=e.formatterParamsExtra;l&&hYe(_Ye(l),function(e){WYe(r,e)||(r[e]=l[e],r.$vars.push(e))});var c=HZe(e.el);c.componentMainType=s,c.componentIndex=o,c.tooltipConfig={name:a,option:cYe({content:a,encodeHTMLContent:!0,formatterParams:r},n)}}function v0e(e,t){var i;e.isGroup&&(i=t(e)),i||e.traverse(t)}function b0e(e,t){if(e)if(yYe(e))for(var i=0;i<e.length;i++)v0e(e[i],t);else v0e(e,t)}t0e("circle",QQe),t0e("ellipse",eJe),t0e("sector",gJe),t0e("ring",_Je),t0e("polygon",yJe),t0e("polyline",SJe),t0e("rect",kZe),t0e("line",EJe),t0e("bezierCurve",RJe),t0e("arc",DJe);const y0e=Object.freeze(Object.defineProperty({__proto__:null,Arc:DJe,BezierCurve:RJe,BoundingRect:KGe,Circle:QQe,CompoundPath:OJe,Ellipse:eJe,Group:Uqe,Image:bZe,IncrementalDisplayable:HJe,Line:EJe,LinearGradient:NJe,OrientedBoundingRect:VJe,Path:fZe,Point:VGe,Polygon:yJe,Polyline:SJe,RadialGradient:LJe,Rect:kZe,Ring:_Je,Sector:gJe,Text:RZe,applyTransform:d0e,clipPointsByRect:function(e,t){return fYe(e,function(e){var i=e[0];i=ZJe(i,t.x),i=QJe(i,t.x+t.width);var a=e[1];return a=ZJe(a,t.y),[i,a=QJe(a,t.y+t.height)]})},clipRectByRect:function(e,t){var i=ZJe(e.x,t.x),a=QJe(e.x+e.width,t.x+t.width),n=ZJe(e.y,t.y),s=QJe(e.y+e.height,t.y+t.height);if(a>=i&&s>=n)return{x:i,y:n,width:a-i,height:s-n}},createIcon:f0e,extendPath:function(e,t){return e0e(e,t)},extendShape:function(e){return fZe.extend(e)},getShapeClass:function(e){if(JJe.hasOwnProperty(e))return JJe[e]},getTransform:c0e,groupTransition:h0e,initProps:WJe,isElementRemoved:jJe,lineLineIntersect:g0e,linePolygonIntersect:function(e,t,i,a,n){for(var s=0,o=n[n.length-1];s<n.length;s++){var r=n[s];if(g0e(e,t,i,a,r[0],r[1],o[0],o[1]))return!0;o=r}},makeImage:a0e,makePath:i0e,mergePath:s0e,registerShape:t0e,removeElement:qJe,removeElementWithFadeOut:XJe,resizePath:o0e,setTooltipConfig:_0e,subPixelOptimize:l0e,subPixelOptimizeLine:r0e,subPixelOptimizeRect:function(e){return SZe(e.shape,e.shape,e.style),e},transformDirection:u0e,traverseElements:b0e,updateProps:GJe},Symbol.toStringTag,{value:"Module"}));var x0e={};function S0e(e,t,i){var a,n=e.labelFetcher,s=e.labelDataIndex,o=e.labelDimIndex,r=t.normal;n&&(a=n.getFormattedLabel(s,"normal",null,o,r&&r.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==a&&(a=xYe(e.defaultText)?e.defaultText(s,e,i):e.defaultText);for(var l={normal:a},c=0;c<jZe.length;c++){var d=jZe[c],u=t[d];l[d]=OYe(n?n.getFormattedLabel(s,d,null,o,u&&u.get("formatter")):null,a)}return l}function w0e(e,t,i,a){i=i||x0e;for(var n=e instanceof RZe,s=!1,o=0;o<qZe.length;o++){if((p=t[qZe[o]])&&p.getShallow("show")){s=!0;break}}var r=n?e:e.getTextContent();if(s){n||(r||(r=new RZe,e.setTextContent(r)),e.stateProxy&&(r.stateProxy=e.stateProxy));var l=S0e(i,t),c=t.normal,d=!!c.getShallow("show"),u=C0e(c,a,i,!1,!n);u.text=l.normal,n||e.setTextConfig(E0e(c,i,!1));for(o=0;o<jZe.length;o++){var p,h=jZe[o];if(p=t[h]){var f=r.ensureState(h),g=!!OYe(p.getShallow("show"),d);if(g!==d&&(f.ignore=!g),f.style=C0e(p,a,i,!0,!n),f.style.text=l[h],!n)e.ensureState(h).textConfig=E0e(p,i,!0)}}r.silent=!!c.getShallow("silent"),null!=r.style.x&&(u.x=r.style.x),null!=r.style.y&&(u.y=r.style.y),r.ignore=!d,r.useStyle(u),r.dirty(),i.enableTextSetter&&(I0e(r).setLabelText=function(e){var a=S0e(i,t,e);!function(e,t){for(var i=0;i<jZe.length;i++){var a=jZe[i],n=t[a],s=e.ensureState(a);s.style=s.style||{},s.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}(r,a)})}else r&&(r.ignore=!0);e.dirty()}function C0e(e,t,i,a,n){var s={};return function(e,t,i,a,n){i=i||x0e;var s,o=t.ecModel,r=o&&o.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var i=(e.option||x0e).rich;if(i){t=t||{};for(var a=_Ye(i),n=0;n<a.length;n++){t[a[n]]=1}}e=e.parentModel}return t}(t);if(l)for(var c in s={},l)if(l.hasOwnProperty(c)){var d=t.getModel(["rich",c]);R0e(s[c]={},d,r,i,a,n,!1,!0)}s&&(e.rich=s);var u=t.get("overflow");u&&(e.overflow=u);var p=t.get("minMargin");null!=p&&(e.margin=p);R0e(e,t,r,i,a,n,!0,!1)}(s,e,i,a,n),t&&lYe(s,t),s}function E0e(e,t,i){t=t||{};var a,n={},s=e.getShallow("rotate"),o=OYe(e.getShallow("distance"),i?null:5),r=e.getShallow("offset");return"outside"===(a=e.getShallow("position")||(i?null:"inside"))&&(a=t.defaultOutsidePosition||"top"),null!=a&&(n.position=a),null!=r&&(n.offset=r),null!=s&&(s*=Math.PI/180,n.rotation=s),null!=o&&(n.distance=o),n.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",n}var k0e=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],T0e=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],A0e=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function R0e(e,t,i,a,n,s,o,r){i=!n&&i||x0e;var l=a&&a.inheritColor,c=t.getShallow("color"),d=t.getShallow("textBorderColor"),u=OYe(t.getShallow("opacity"),i.opacity);"inherit"!==c&&"auto"!==c||(c=l||null),"inherit"!==d&&"auto"!==d||(d=l||null),s||(c=c||i.color,d=d||i.textBorderColor),null!=c&&(e.fill=c),null!=d&&(e.stroke=d);var p=OYe(t.getShallow("textBorderWidth"),i.textBorderWidth);null!=p&&(e.lineWidth=p);var h=OYe(t.getShallow("textBorderType"),i.textBorderType);null!=h&&(e.lineDash=h);var f=OYe(t.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),n||null!=u||r||(u=a&&a.defaultOpacity),null!=u&&(e.opacity=u),n||s||null==e.fill&&a.inheritColor&&(e.fill=a.inheritColor);for(var g=0;g<k0e.length;g++){var m=k0e[g];null!=(v=OYe(t.getShallow(m),i[m]))&&(e[m]=v)}for(g=0;g<T0e.length;g++){m=T0e[g];null!=(v=t.getShallow(m))&&(e[m]=v)}if(null==e.verticalAlign){var _=t.getShallow("baseline");null!=_&&(e.verticalAlign=_)}if(!o||!a.disableBox){for(g=0;g<A0e.length;g++){var v;m=A0e[g];null!=(v=t.getShallow(m))&&(e[m]=v)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}var I0e=EKe();var D0e,O0e,M0e=["textStyle","color"],N0e=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],L0e=new RZe,P0e=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(M0e):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},t=this.ecModel,i=t&&t.getModel("textStyle"),FYe([e.fontStyle||i&&i.getShallow("fontStyle")||"",e.fontWeight||i&&i.getShallow("fontWeight")||"",(e.fontSize||i&&i.getShallow("fontSize")||12)+"px",e.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "));var e,t,i},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<N0e.length;i++)t[N0e[i]]=this.getShallow(N0e[i]);return L0e.useStyle(t),L0e.update(),L0e.getBoundingRect()},e}(),F0e=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],B0e=HKe(F0e),$0e=function(){function e(){}return e.prototype.getLineStyle=function(e){return B0e(this,e)},e}(),V0e=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],U0e=HKe(V0e),H0e=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return U0e(this,e,t)},e}(),z0e=function(){function e(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return e.prototype.init=function(e,t,i){},e.prototype.mergeOption=function(e,t){rYe(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var i=this.option,a=null==i?i:i[e];if(null==a&&!t){var n=this.parentModel;n&&(a=n.getShallow(e))}return a},e.prototype.getModel=function(t,i){var a=null!=t,n=a?this.parsePath(t):null;return new e(a?this._doGet(n):this.option,i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(oYe(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!Uze.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var a=0;a<e.length&&(!e[a]||null!=(i=i&&"object"==typeof i?i[e[a]]:null));a++);return null==i&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},e}();PKe(z0e),D0e=z0e,O0e=["__\0is_clz",BKe++].join("_"),D0e.prototype[O0e]=!0,D0e.isInstance=function(e){return!(!e||!e[O0e])},uYe(z0e,$0e),uYe(z0e,H0e),uYe(z0e,YKe),uYe(z0e,P0e);var Y0e=Math.round(10*Math.random());function G0e(e){return[e||"",Y0e++].join("_")}function W0e(e,t){return rYe(rYe({},e,!0),t,!0)}var j0e="ZH",q0e="EN",K0e=q0e,X0e={},Z0e={},Q0e=Uze.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||K0e).toUpperCase().indexOf(j0e)>-1?j0e:K0e;function J0e(e,t){e=e.toUpperCase(),Z0e[e]=new z0e(t),X0e[e]=t}J0e(q0e,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),J0e(j0e,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var e1e=1e3,t1e=6e4,i1e=36e5,a1e=864e5,n1e=31536e6,s1e={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},o1e="{yyyy}-{MM}-{dd}",r1e={year:"{yyyy}",month:"{yyyy}-{MM}",day:o1e,hour:o1e+" "+s1e.hour,minute:o1e+" "+s1e.minute,second:o1e+" "+s1e.second,millisecond:s1e.none},l1e=["year","month","day","hour","minute","second","millisecond"],c1e=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function d1e(e,t){return"0000".substr(0,t-(e+="").length)+e}function u1e(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function p1e(e){return e===u1e(e)}function h1e(e,t,i,a){var n=nKe(e),s=n[m1e(i)](),o=n[_1e(i)]()+1,r=Math.floor((o-1)/3)+1,l=n[v1e(i)](),c=n["get"+(i?"UTC":"")+"Day"](),d=n[b1e(i)](),u=(d-1)%12+1,p=n[y1e(i)](),h=n[x1e(i)](),f=n[S1e(i)](),g=d>=12?"pm":"am",m=g.toUpperCase(),_=a instanceof z0e?a:function(e){return Z0e[e]}(a||Q0e)||Z0e[K0e],v=_.getModel("time"),b=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),S=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,s+"").replace(/{yy}/g,d1e(s%100+"",2)).replace(/{Q}/g,r+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,d1e(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,d1e(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,d1e(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,d1e(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,d1e(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,d1e(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,d1e(f,3)).replace(/{S}/g,f+"")}function f1e(e,t){var i=nKe(e),a=i[_1e(t)]()+1,n=i[v1e(t)](),s=i[b1e(t)](),o=i[y1e(t)](),r=i[x1e(t)](),l=0===i[S1e(t)](),c=l&&0===r,d=c&&0===o,u=d&&0===s,p=u&&1===n;return p&&1===a?"year":p?"month":u?"day":d?"hour":c?"minute":l?"second":"millisecond"}function g1e(e,t,i){var a=CYe(e)?nKe(e):e;switch(t=t||f1e(e,i)){case"year":return a[m1e(i)]();case"half-year":return a[_1e(i)]()>=6?1:0;case"quarter":return Math.floor((a[_1e(i)]()+1)/4);case"month":return a[_1e(i)]();case"day":return a[v1e(i)]();case"half-day":return a[b1e(i)]()/24;case"hour":return a[b1e(i)]();case"minute":return a[y1e(i)]();case"second":return a[x1e(i)]();case"millisecond":return a[S1e(i)]()}}function m1e(e){return e?"getUTCFullYear":"getFullYear"}function _1e(e){return e?"getUTCMonth":"getMonth"}function v1e(e){return e?"getUTCDate":"getDate"}function b1e(e){return e?"getUTCHours":"getHours"}function y1e(e){return e?"getUTCMinutes":"getMinutes"}function x1e(e){return e?"getUTCSeconds":"getSeconds"}function S1e(e){return e?"getUTCMilliseconds":"getMilliseconds"}function w1e(e){return e?"setUTCFullYear":"setFullYear"}function C1e(e){return e?"setUTCMonth":"setMonth"}function E1e(e){return e?"setUTCDate":"setDate"}function k1e(e){return e?"setUTCHours":"setHours"}function T1e(e){return e?"setUTCMinutes":"setMinutes"}function A1e(e){return e?"setUTCSeconds":"setSeconds"}function R1e(e){return e?"setUTCMilliseconds":"setMilliseconds"}function I1e(e){if(isNaN(rKe(e)))return SYe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function D1e(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var O1e=LYe;function M1e(e,t,i){function a(e){return e&&FYe(e)?e:"-"}function n(e){return!(null==e||isNaN(e)||!isFinite(e))}var s="time"===t,o=e instanceof Date;if(s||o){var r=s?nKe(e):e;if(!isNaN(+r))return h1e(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(o)return"-"}if("ordinal"===t)return wYe(e)?a(e):CYe(e)&&n(e)?e+"":"-";var l=rKe(e);return n(l)?I1e(l):wYe(e)?a(e):"boolean"==typeof e?e+"":"-"}var N1e=["a","b","c","d","e","f","g"],L1e=function(e,t){return"{"+e+(null==t?"":t)+"}"};function P1e(e,t,i){yYe(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],s=0;s<n.length;s++){var o=N1e[s];e=e.replace(L1e(o),L1e(o,0))}for(var r=0;r<a;r++)for(var l=0;l<n.length;l++){var c=t[r][n[l]];e=e.replace(L1e(N1e[l],r),i?xGe(c):c)}return e}function F1e(e,t){return t=t||"transparent",SYe(e)?e:EYe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var B1e=hYe,$1e=["left","right","top","bottom","width","height"],V1e=[["width","left","right"],["height","top","bottom"]];function U1e(e,t,i,a,n){var s=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var r=0;t.eachChild(function(l,c){var d,u,p=l.getBoundingRect(),h=t.childAt(c+1),f=h&&h.getBoundingRect();if("horizontal"===e){var g=p.width+(f?-f.x+p.x:0);(d=s+g)>a||l.newline?(s=0,d=g,o+=r+i,r=p.height):r=Math.max(r,p.height)}else{var m=p.height+(f?-f.y+p.y:0);(u=o+m)>n||l.newline?(s+=r+i,o=0,u=m,r=p.width):r=Math.max(r,p.width)}l.newline||(l.x=s,l.y=o,l.markRedraw(),"horizontal"===e?s=d+i:o=u+i)})}function H1e(e,t,i){i=O1e(i||0);var a=t.width,n=t.height,s=Kqe(e.left,a),o=Kqe(e.top,n),r=Kqe(e.right,a),l=Kqe(e.bottom,n),c=Kqe(e.width,a),d=Kqe(e.height,n),u=i[2]+i[0],p=i[1]+i[3],h=e.aspect;switch(isNaN(c)&&(c=a-r-p-s),isNaN(d)&&(d=n-l-u-o),null!=h&&(isNaN(c)&&isNaN(d)&&(h>a/n?c=.8*a:d=.8*n),isNaN(c)&&(c=h*d),isNaN(d)&&(d=c/h)),isNaN(s)&&(s=a-r-c-p),isNaN(o)&&(o=n-l-d-u),e.left||e.right){case"center":s=a/2-c/2-i[3];break;case"right":s=a-c-p}switch(e.top||e.bottom){case"middle":case"center":o=n/2-d/2-i[0];break;case"bottom":o=n-d-u}s=s||0,o=o||0,isNaN(c)&&(c=a-p-s-(r||0)),isNaN(d)&&(d=n-u-o-(l||0));var f=new KGe(s+i[3],o+i[0],c,d);return f.margin=i,f}function z1e(e){var t=e.layoutMode||e.constructor.layoutMode;return EYe(t)?t:t?{type:t}:null}function Y1e(e,t,i){var a=i&&i.ignoreSize;!yYe(a)&&(a=[a,a]);var n=o(V1e[0],0),s=o(V1e[1],1);function o(i,n){var s={},o=0,c={},d=0;if(B1e(i,function(t){c[t]=e[t]}),B1e(i,function(e){r(t,e)&&(s[e]=c[e]=t[e]),l(s,e)&&o++,l(c,e)&&d++}),a[n])return l(t,i[1])?c[i[2]]=null:l(t,i[2])&&(c[i[1]]=null),c;if(2!==d&&o){if(o>=2)return s;for(var u=0;u<i.length;u++){var p=i[u];if(!r(s,p)&&r(e,p)){s[p]=e[p];break}}return s}return c}function r(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,i){B1e(e,function(e){t[e]=i[e]})}c(V1e[0],e,n),c(V1e[1],e,s)}function G1e(e){return function(e,t){return t&&e&&B1e($1e,function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}({},e)}bYe(U1e,"vertical"),bYe(U1e,"horizontal");var W1e=EKe(),j1e=function(e){function t(t,i,a){var n=e.call(this,t,i,a)||this;return n.uid=G0e("ec_cpt_model"),n}var i;return $ze(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,t){var i=z1e(this),a=i?G1e(e):{};rYe(e,t.getTheme().get(this.mainType)),rYe(e,this.getDefaultOption()),i&&Y1e(e,a,i)},t.prototype.mergeOption=function(e,t){rYe(this.option,e,!0);var i=z1e(this);i&&Y1e(this.option,e,i)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[NKe])}(e))return e.defaultOption;var t=W1e(this);if(!t.defaultOption){for(var i=[],a=e;a;){var n=a.prototype.defaultOption;n&&i.push(n),a=a.superClass}for(var s={},o=i.length-1;o>=0;o--)s=rYe(s,i[o],!0);t.defaultOption=s}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var i=e+"Index",a=e+"Id";return DKe(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((i=t.prototype).type="component",i.id="",i.name="",i.mainType="",i.subType="",void(i.componentIndex=0)),t}(z0e);FKe(j1e,z0e),UKe(j1e),function(e){var t={};e.registerSubTypeDefaulter=function(e,i){var a=LKe(e);t[a.main]=i},e.determineSubType=function(i,a){var n=a.type;if(!n){var s=LKe(i).main;e.hasSubTypes(i)&&t[s]&&(n=t[s](a))}return n}}(j1e),function(e,t){function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,a,n,s){if(e.length){var o=function(e){var a={},n=[];return hYe(e,function(s){var o=i(a,s),r=function(e,t){var i=[];return hYe(e,function(e){dYe(t,e)>=0&&i.push(e)}),i}(o.originalDeps=t(s),e);o.entryCount=r.length,0===o.entryCount&&n.push(s),hYe(r,function(e){dYe(o.predecessor,e)<0&&o.predecessor.push(e);var t=i(a,e);dYe(t.successor,e)<0&&t.successor.push(s)})}),{graph:a,noEntryList:n}}(a),r=o.graph,l=o.noEntryList,c={};for(hYe(e,function(e){c[e]=!0});l.length;){var d=l.pop(),u=r[d],p=!!c[d];p&&(n.call(s,d,u.originalDeps.slice()),delete c[d]),hYe(u.successor,p?f:h)}hYe(c,function(){throw new Error("")})}function h(e){r[e].entryCount--,0===r[e].entryCount&&l.push(e)}function f(e){c[e]=!0,h(e)}}}(j1e,function(e){var t=[];hYe(j1e.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=fYe(t,function(e){return LKe(e).main}),"dataset"!==e&&dYe(t,"dataset")<=0&&t.unshift("dataset");return t});var q1e="";"undefined"!=typeof navigator&&(q1e=navigator.platform||"");var K1e="rgba(0, 0, 0, 0.2)";const X1e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:K1e,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:K1e,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:K1e,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:K1e,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:K1e,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:K1e,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:q1e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Z1e=YYe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Q1e="original",J1e="arrayRows",e2e="objectRows",t2e="keyedColumns",i2e="typedArray",a2e="unknown",n2e="column",s2e="row",o2e=1,r2e=2,l2e=3,c2e=EKe();function d2e(e,t,i){var a={},n=u2e(t);if(!n||!e)return a;var s,o,r=[],l=[],c=t.ecModel,d=c2e(c).datasetMap,u=n.uid+"_"+i.seriesLayoutBy;hYe(e=e.slice(),function(t,i){var n=EYe(t)?t:e[i]={name:t};"ordinal"===n.type&&null==s&&(s=i,o=f(n)),a[n.name]=[]});var p=d.get(u)||d.set(u,{categoryWayDim:o,valueWayDim:0});function h(e,t,i){for(var a=0;a<i;a++)e.push(t+a)}function f(e){var t=e.dimsDef;return t?t.length:1}return hYe(e,function(e,t){var i=e.name,n=f(e);if(null==s){var o=p.valueWayDim;h(a[i],o,n),h(l,o,n),p.valueWayDim+=n}else if(s===t)h(a[i],0,n),h(r,0,n);else{o=p.categoryWayDim;h(a[i],o,n),h(l,o,n),p.categoryWayDim+=n}}),r.length&&(a.itemName=r),l.length&&(a.seriesName=l),a}function u2e(e){if(!e.get("data",!0))return DKe(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},RKe).models[0]}function p2e(e,t){return function(e,t,i,a,n,s){var o,r,l,c=5;if(TYe(e))return l2e;if(a){var d=a[s];EYe(d)?(r=d.name,l=d.type):SYe(d)&&(r=d)}if(null!=l)return"ordinal"===l?o2e:l2e;if(t===J1e){var u=e;if(i===s2e){for(var p=u[s],h=0;h<(p||[]).length&&h<c;h++)if(null!=(o=b(p[n+h])))return o}else for(h=0;h<u.length&&h<c;h++){var f=u[n+h];if(f&&null!=(o=b(f[s])))return o}}else if(t===e2e){var g=e;if(!r)return l2e;for(h=0;h<g.length&&h<c;h++){if((_=g[h])&&null!=(o=b(_[r])))return o}}else if(t===t2e){if(!r)return l2e;if(!(p=e[r])||TYe(p))return l2e;for(h=0;h<p.length&&h<c;h++)if(null!=(o=b(p[h])))return o}else if(t===Q1e){var m=e;for(h=0;h<m.length&&h<c;h++){var _,v=mKe(_=m[h]);if(!yYe(v))return l2e;if(null!=(o=b(v[s])))return o}}function b(e){var t=SYe(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?r2e:l2e:t&&"-"!==e?o2e:void 0}return l2e}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var h2e=YYe();var f2e=EKe();EKe();var g2e,m2e,_2e,v2e=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,i){var a=hKe(this.get("color",!0)),n=this.get("colorLayer",!0);return function(e,t,i,a,n,s,o){s=s||e;var r=t(s),l=r.paletteIdx||0,c=r.paletteNameMap=r.paletteNameMap||{};if(c.hasOwnProperty(n))return c[n];var d=null!=o&&a?function(e,t){for(var i=e.length,a=0;a<i;a++)if(e[a].length>t)return e[a];return e[i-1]}(a,o):i;if(d=d||i,!d||!d.length)return;var u=d[l];n&&(c[n]=u);return r.paletteIdx=(l+1)%d.length,u}(this,f2e,a,n,e,t,i)},e.prototype.clearColorPalette=function(){var e,t;(t=f2e)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();var b2e="\0_ec_inner",y2e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $ze(t,e),t.prototype.init=function(e,t,i,a,n,s){a=a||{},this.option=null,this._theme=new z0e(a),this._locale=new z0e(n),this._optionManager=s},t.prototype.setOption=function(e,t,i){var a=w2e(t);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,t){return this._resetOption(e,w2e(t))},t.prototype._resetOption=function(e,t){var i=!1,a=this._optionManager;if(!e||"recreate"===e){var n=a.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(n,t)):_2e(this,n),i=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,t))}if(!e||"recreate"===e||"media"===e){var o=a.getMediaOption(this);o.length&&hYe(o,function(e){i=!0,this._mergeOption(e,t)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var i=this.option,a=this._componentsMap,n=this._componentsCount,s=[],o=YYe(),r=t&&t.replaceMergeMainTypeMap;c2e(this).datasetMap=YYe(),hYe(e,function(e,t){null!=e&&(j1e.hasClass(t)?t&&(s.push(t),o.set(t,!0)):i[t]=null==i[t]?oYe(e):rYe(i[t],e,!0))}),r&&r.each(function(e,t){j1e.hasClass(t)&&!o.get(t)&&(s.push(t),o.set(t,!0))}),j1e.topologicalTravel(s,j1e.getAllClassMainTypes(),function(t){var s=function(e,t,i){var a=h2e.get(t);if(!a)return i;var n=a(e);return n?i.concat(n):i}(this,t,hKe(e[t])),o=a.get(t),l=o?r&&r.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=vKe(o,s,l);(function(e,t,i){hYe(e,function(e){var a=e.newOption;EYe(a)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,i,a){return t.type?t.type:i?i.subType:a.determineSubType(e,t)}(t,a,e.existing,i))})})(c,t,j1e),i[t]=null,a.set(t,null),n.set(t,0);var d,u=[],p=[],h=0;hYe(c,function(e,i){var a=e.existing,n=e.newOption;if(n){var s="series"===t,o=j1e.getClass(t,e.keyInfo.subType,!s);if(!o)return;if("tooltip"===t){if(d)return;d=!0}if(a&&a.constructor===o)a.name=e.keyInfo.name,a.mergeOption(n,this),a.optionUpdated(n,!1);else{var r=lYe({componentIndex:i},e.keyInfo);lYe(a=new o(n,this,this,r),r),e.brandNew&&(a.__requireNewView=!0),a.init(n,this,this),a.optionUpdated(null,!0)}}else a&&(a.mergeOption({},this),a.optionUpdated({},!1));a?(u.push(a.option),p.push(a),h++):(u.push(void 0),p.push(void 0))},this),i[t]=u,a.set(t,p),n.set(t,h),"series"===t&&g2e(this)},this),this._seriesIndices||g2e(this)},t.prototype.getOption=function(){var e=oYe(this.option);return hYe(e,function(t,i){if(j1e.hasClass(i)){for(var a=hKe(t),n=a.length,s=!1,o=n-1;o>=0;o--)a[o]&&!wKe(a[o])?s=!0:(a[o]=null,!s&&n--);a.length=n,e[i]=a}}),delete e[b2e],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var i=this._componentsMap.get(e);if(i){var a=i[t||0];if(a)return a;if(null==t)for(var n=0;n<i.length;n++)if(i[n])return i[n]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var i,a=e.index,n=e.id,s=e.name,o=this._componentsMap.get(t);return o&&o.length?(null!=a?(i=[],hYe(hKe(a),function(e){o[e]&&i.push(o[e])})):i=null!=n?x2e("id",n,o):null!=s?x2e("name",s,o):mYe(o,function(e){return!!e}),S2e(i,e)):[]},t.prototype.findComponents=function(e){var t,i,a,n,s,o=e.query,r=e.mainType,l=(i=r+"Index",a=r+"Id",n=r+"Name",!(t=o)||null==t[i]&&null==t[a]&&null==t[n]?null:{mainType:r,index:t[i],id:t[a],name:t[n]}),c=l?this.queryComponents(l):mYe(this._componentsMap.get(r),function(e){return!!e});return s=S2e(c,e),e.filter?mYe(s,e.filter):s},t.prototype.eachComponent=function(e,t,i){var a=this._componentsMap;if(xYe(e)){var n=t,s=e;a.each(function(e,t){for(var i=0;e&&i<e.length;i++){var a=e[i];a&&s.call(n,t,a,a.componentIndex)}})}else for(var o=SYe(e)?a.get(e):EYe(e)?this.findComponents(e):null,r=0;o&&r<o.length;r++){var l=o[r];l&&t.call(i,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=xKe(e,null);return mYe(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return mYe(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return mYe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){m2e(this),hYe(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(t,a,i)},this)},t.prototype.eachRawSeries=function(e,t){hYe(this._componentsMap.get("series"),function(i){i&&e.call(t,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,i){m2e(this),hYe(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];n.subType===e&&t.call(i,n,a)},this)},t.prototype.eachRawSeriesByType=function(e,t,i){return hYe(this.getSeriesByType(e),t,i)},t.prototype.isSeriesFiltered=function(e){return m2e(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){m2e(this);var i=[];hYe(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];e.call(t,n,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=YYe(i)},t.prototype.restoreData=function(e){g2e(this);var t=this._componentsMap,i=[];t.each(function(e,t){j1e.hasClass(t)&&i.push(t)}),j1e.topologicalTravel(i,j1e.getAllClassMainTypes(),function(i){hYe(t.get(i),function(t){!t||"series"===i&&function(e,t){if(t){var i=t.seriesIndex,a=t.seriesId,n=t.seriesName;return null!=i&&e.componentIndex!==i||null!=a&&e.id!==a||null!=n&&e.name!==n}}(t,e)||t.restoreData()})})},t.internalField=(g2e=function(e){var t=e._seriesIndices=[];hYe(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=YYe(t)},m2e=function(e){},void(_2e=function(e,t){e.option={},e.option[b2e]=1,e._componentsMap=YYe({series:[]}),e._componentsCount=YYe();var i,a,n,s=t.aria;EYe(s)&&null==s.enabled&&(s.enabled=!0),i=t,a=e._theme.option,n=i.color&&!i.colorLayer,hYe(a,function(e,t){"colorLayer"===t&&n||j1e.hasClass(t)||("object"==typeof e?i[t]=i[t]?rYe(i[t],e,!1):oYe(e):null==i[t]&&(i[t]=e))}),rYe(t,X1e,!1),e._mergeOption(t,null)})),t}(z0e);function x2e(e,t,i){if(yYe(t)){var a=YYe();return hYe(t,function(e){null!=e&&(null!=xKe(e,null)&&a.set(e,!0))}),mYe(i,function(t){return t&&a.get(t[e])})}var n=xKe(t,null);return mYe(i,function(t){return t&&null!=n&&t[e]===n})}function S2e(e,t){return t.hasOwnProperty("subType")?mYe(e,function(e){return e&&e.subType===t.subType}):e}function w2e(e){var t=YYe();return e&&hYe(hKe(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}uYe(y2e,v2e);var C2e=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],E2e=function(){return function(e){hYe(C2e,function(t){this[t]=vYe(e[t],e)},this)}}(),k2e={},T2e=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var i=[];hYe(k2e,function(a,n){var s=a.create(e,t);i=i.concat(s||[])}),this._coordinateSystems=i},e.prototype.update=function(e,t){hYe(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){k2e[e]=t},e.get=function(e){return k2e[e]},e}(),A2e=/^(min|max)?(.+)$/,R2e=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,i){e&&(hYe(hKe(e.series),function(e){e&&e.data&&TYe(e.data)&&$Ye(e.data)}),hYe(hKe(e.dataset),function(e){e&&e.source&&TYe(e.source)&&$Ye(e.source)})),e=oYe(e);var a=this._optionBackup,n=function(e,t,i){var a,n,s=[],o=e.baseOption,r=e.timeline,l=e.options,c=e.media,d=!!e.media,u=!!(l||r||o&&o.timeline);o?(n=o).timeline||(n.timeline=r):((u||d)&&(e.options=e.media=null),n=e);d&&yYe(c)&&hYe(c,function(e){e&&e.option&&(e.query?s.push(e):a||(a=e))});function p(e){hYe(t,function(t){t(e,i)})}return p(n),hYe(l,function(e){return p(e)}),hYe(s,function(e){return p(e.option)}),{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:s}}(e,t,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],oYe(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var a=e.getComponent("timeline");a&&(t=oYe(i[a.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,i,a=this._api.getWidth(),n=this._api.getHeight(),s=this._mediaList,o=this._mediaDefault,r=[],l=[];if(!s.length&&!o)return l;for(var c=0,d=s.length;c<d;c++)I2e(s[c].query,a,n)&&r.push(c);return!r.length&&o&&(r=[-1]),r.length&&(t=r,i=this._currentMediaIndices,t.join(",")!==i.join(","))&&(l=fYe(r,function(e){return oYe(-1===e?o.option:s[e].option)})),this._currentMediaIndices=r,l},e}();function I2e(e,t,i){var a={width:t,height:i,aspectratio:t/i},n=!0;return hYe(e,function(e,t){var i=t.match(A2e);if(i&&i[1]&&i[2]){var s=i[1],o=i[2].toLowerCase();(function(e,t,i){return"min"===i?e>=t:"max"===i?e<=t:e===t})(a[o],e,s)||(n=!1)}}),n}var D2e=hYe,O2e=EYe,M2e=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function N2e(e){var t=e&&e.itemStyle;if(t)for(var i=0,a=M2e.length;i<a;i++){var n=M2e[i],s=t.normal,o=t.emphasis;s&&s[n]&&(e[n]=e[n]||{},e[n].normal?rYe(e[n].normal,s[n]):e[n].normal=s[n],s[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?rYe(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function L2e(e,t,i){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var a=e[t].normal,n=e[t].emphasis;a&&(i?(e[t].normal=e[t].emphasis=null,cYe(e[t],a)):e[t]=a),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function P2e(e){L2e(e,"itemStyle"),L2e(e,"lineStyle"),L2e(e,"areaStyle"),L2e(e,"label"),L2e(e,"labelLine"),L2e(e,"upperLabel"),L2e(e,"edgeLabel")}function F2e(e,t){var i=O2e(e)&&e[t],a=O2e(i)&&i.textStyle;if(a)for(var n=0,s=gKe.length;n<s;n++){var o=gKe[n];a.hasOwnProperty(o)&&(i[o]=a[o])}}function B2e(e){e&&(P2e(e),F2e(e,"label"),e.emphasis&&F2e(e.emphasis,"label"))}function $2e(e){return yYe(e)?e:e?[e]:[]}function V2e(e){return(yYe(e)?e[0]:e)||{}}function U2e(e,t){D2e($2e(e.series),function(e){O2e(e)&&function(e){if(O2e(e)){N2e(e),P2e(e),F2e(e,"label"),F2e(e,"upperLabel"),F2e(e,"edgeLabel"),e.emphasis&&(F2e(e.emphasis,"label"),F2e(e.emphasis,"upperLabel"),F2e(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(N2e(t),B2e(t));var i=e.markLine;i&&(N2e(i),B2e(i));var a=e.markArea;a&&B2e(a);var n=e.data;if("graph"===e.type){n=n||e.nodes;var s=e.links||e.edges;if(s&&!TYe(s))for(var o=0;o<s.length;o++)B2e(s[o]);hYe(e.categories,function(e){P2e(e)})}if(n&&!TYe(n))for(o=0;o<n.length;o++)B2e(n[o]);if((t=e.markPoint)&&t.data){var r=t.data;for(o=0;o<r.length;o++)B2e(r[o])}if((i=e.markLine)&&i.data){var l=i.data;for(o=0;o<l.length;o++)yYe(l[o])?(B2e(l[o][0]),B2e(l[o][1])):B2e(l[o])}"gauge"===e.type?(F2e(e,"axisLabel"),F2e(e,"title"),F2e(e,"detail")):"treemap"===e.type?(L2e(e.breadcrumb,"itemStyle"),hYe(e.levels,function(e){P2e(e)})):"tree"===e.type&&P2e(e.leaves)}}(e)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),D2e(i,function(t){D2e($2e(e[t]),function(e){e&&(F2e(e,"axisLabel"),F2e(e.axisPointer,"label"))})}),D2e($2e(e.parallel),function(e){var t=e&&e.parallelAxisDefault;F2e(t,"axisLabel"),F2e(t&&t.axisPointer,"label")}),D2e($2e(e.calendar),function(e){L2e(e,"itemStyle"),F2e(e,"dayLabel"),F2e(e,"monthLabel"),F2e(e,"yearLabel")}),D2e($2e(e.radar),function(e){F2e(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),D2e($2e(e.geo),function(e){O2e(e)&&(B2e(e),D2e($2e(e.regions),function(e){B2e(e)}))}),D2e($2e(e.timeline),function(e){B2e(e),L2e(e,"label"),L2e(e,"itemStyle"),L2e(e,"controlStyle",!0);var t=e.data;yYe(t)&&hYe(t,function(e){EYe(e)&&(L2e(e,"label"),L2e(e,"itemStyle"))})}),D2e($2e(e.toolbox),function(e){L2e(e,"iconStyle"),D2e(e.feature,function(e){L2e(e,"iconStyle")})}),F2e(V2e(e.axisPointer),"label"),F2e(V2e(e.tooltip).axisPointer,"label")}function H2e(e){e&&hYe(z2e,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var z2e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Y2e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],G2e=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function W2e(e){var t=e&&e.itemStyle;if(t)for(var i=0;i<G2e.length;i++){var a=G2e[i][1],n=G2e[i][0];null!=t[a]&&(t[n]=t[a])}}function j2e(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function q2e(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function K2e(e,t){if(e)for(var i=0;i<e.length;i++)t(e[i]),e[i]&&K2e(e[i].children,t)}function X2e(e,t){U2e(e,t),e.series=hKe(e.series),hYe(e.series,function(e){if(EYe(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),j2e(e.label),(n=e.data)&&!TYe(n))for(var i=0;i<n.length;i++)j2e(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var a=function(e,t){for(var i=t.split(","),a=e,n=0;n<i.length&&null!=(a=a&&a[i[n]]);n++);return a}(e,"pointer.color");null!=a&&function(e,t,i){for(var a,n=t.split(","),s=e,o=0;o<n.length-1;o++)null==s[a=n[o]]&&(s[a]={}),s=s[a];null==s[n[o]]&&(s[n[o]]=i)}(e,"itemStyle.color",a)}else if("bar"===t){var n;if(W2e(e),W2e(e.backgroundStyle),W2e(e.emphasis),(n=e.data)&&!TYe(n))for(i=0;i<n.length;i++)"object"==typeof n[i]&&(W2e(n[i]),W2e(n[i]&&n[i].emphasis))}else if("sunburst"===t){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),q2e(e),K2e(e.data,q2e)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&cYe(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),H2e(e)}}),e.dataRange&&(e.visualMap=e.dataRange),hYe(Y2e,function(t){var i=e[t];i&&(yYe(i)||(i=[i]),hYe(i,function(e){H2e(e)}))})}function Z2e(e){hYe(e,function(t,i){var a=[],n=[NaN,NaN],s=[t.stackResultDimension,t.stackedOverDimension],o=t.data,r=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(s,function(s,c,d){var u,p,h=o.get(t.stackedDimension,d);if(isNaN(h))return n;r?p=o.getRawIndex(d):u=o.get(t.stackedByDimension,d);for(var f=NaN,g=i-1;g>=0;g--){var m=e[g];if(r||(p=m.data.rawIndexOf(m.stackedByDimension,u)),p>=0){var _=m.data.getByRawIndex(m.stackResultDimension,p);if("all"===l||"positive"===l&&_>0||"negative"===l&&_<0||"samesign"===l&&h>=0&&_>0||"samesign"===l&&h<=0&&_<0){h=eKe(h,_),f=_;break}}}return a[0]=h,a[1]=f,a})})}var Q2e,J2e,e5e,t5e,i5e,a5e=function(){return function(e){this.data=e.data||(e.sourceFormat===t2e?{}:[]),this.sourceFormat=e.sourceFormat||a2e,this.seriesLayoutBy=e.seriesLayoutBy||n2e,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var a=t[i];null==a.type&&p2e(this,i)===o2e&&(a.type="ordinal")}}}();function n5e(e){return e instanceof a5e}function s5e(e,t,i){i=i||r5e(e);var a=t.seriesLayoutBy,n=function(e,t,i,a,n){var s,o;if(!e)return{dimensionsDefine:l5e(n),startIndex:o,dimensionsDetectedCount:s};if(t===J1e){var r=e;"auto"===a||null==a?c5e(function(e){null!=e&&"-"!==e&&(SYe(e)?null==o&&(o=1):o=0)},i,r,10):o=CYe(a)?a:a?1:0,n||1!==o||(n=[],c5e(function(e,t){n[t]=null!=e?e+"":""},i,r,1/0)),s=n?n.length:i===s2e?r.length:r[0]?r[0].length:null}else if(t===e2e)n||(n=function(e){var t,i=0;for(;i<e.length&&!(t=e[i++]););if(t)return _Ye(t)}(e));else if(t===t2e)n||(n=[],hYe(e,function(e,t){n.push(t)}));else if(t===Q1e){var l=mKe(e[0]);s=yYe(l)&&l.length||1}return{startIndex:o,dimensionsDefine:l5e(n),dimensionsDetectedCount:s}}(e,i,a,t.sourceHeader,t.dimensions);return new a5e({data:e,sourceFormat:i,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:oYe(t)})}function o5e(e){return new a5e({data:e,sourceFormat:TYe(e)?i2e:Q1e})}function r5e(e){var t=a2e;if(TYe(e))t=i2e;else if(yYe(e)){0===e.length&&(t=J1e);for(var i=0,a=e.length;i<a;i++){var n=e[i];if(null!=n){if(yYe(n)||TYe(n)){t=J1e;break}if(EYe(n)){t=e2e;break}}}}else if(EYe(e))for(var s in e)if(WYe(e,s)&&pYe(e[s])){t=t2e;break}return t}function l5e(e){if(e){var t=YYe();return fYe(e,function(e,i){var a={name:(e=EYe(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==a.name)return a;a.name+="",null==a.displayName&&(a.displayName=a.name);var n=t.get(a.name);return n?a.name+="-"+n.count++:t.set(a.name,{count:1}),a})}}function c5e(e,t,i,a){if(t===s2e)for(var n=0;n<i.length&&n<a;n++)e(i[n]?i[n][0]:null,n);else{var s=i[0]||[];for(n=0;n<s.length&&n<a;n++)e(s[n],n)}}function d5e(e){var t=e.sourceFormat;return t===e2e||t===t2e}var u5e=function(){function e(e,t){var i=n5e(e)?e:o5e(e);this._source=i;var a=this._data=i.data;i.sourceFormat===i2e&&(this._offset=0,this._dimSize=t,this._data=a),i5e(this,a,i)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;i5e=function(e,n,s){var o=s.sourceFormat,r=s.seriesLayoutBy,l=s.startIndex,c=s.dimensionsDefine;if(lYe(e,t5e[x5e(o,r)]),o===i2e)e.getItem=t,e.count=a,e.fillStorage=i;else{var d=f5e(o,r);e.getItem=vYe(d,null,n,l,c);var u=_5e(o,r);e.count=vYe(u,null,n,l,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var i=this._data,a=this._dimSize,n=a*e,s=0;s<a;s++)t[s]=i[n+s];return t},i=function(e,t,i,a){for(var n=this._data,s=this._dimSize,o=0;o<s;o++){for(var r=a[o],l=null==r[0]?1/0:r[0],c=null==r[1]?-1/0:r[1],d=t-e,u=i[o],p=0;p<d;p++){var h=n[p*s+o];u[e+p]=h,h<l&&(l=h),h>c&&(c=h)}r[0]=l,r[1]=c}},a=function(){return this._data?this._data.length/this._dimSize:0};function n(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[J1e+"_"+n2e]={pure:!0,appendData:n},e[J1e+"_"+s2e]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[e2e]={pure:!0,appendData:n},e[t2e]={pure:!0,appendData:function(e){var t=this._data;hYe(e,function(e,i){for(var a=t[i]||(t[i]=[]),n=0;n<(e||[]).length;n++)a.push(e[n])})}},e[Q1e]={appendData:n},e[i2e]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},t5e=e}(),e}(),p5e=function(e,t,i,a){return e[a]},h5e=((Q2e={})[J1e+"_"+n2e]=function(e,t,i,a){return e[a+t]},Q2e[J1e+"_"+s2e]=function(e,t,i,a,n){a+=t;for(var s=n||[],o=e,r=0;r<o.length;r++){var l=o[r];s[r]=l?l[a]:null}return s},Q2e[e2e]=p5e,Q2e[t2e]=function(e,t,i,a,n){for(var s=n||[],o=0;o<i.length;o++){var r=e[i[o].name];s[o]=r?r[a]:null}return s},Q2e[Q1e]=p5e,Q2e);function f5e(e,t){return h5e[x5e(e,t)]}var g5e=function(e,t,i){return e.length},m5e=((J2e={})[J1e+"_"+n2e]=function(e,t,i){return Math.max(0,e.length-t)},J2e[J1e+"_"+s2e]=function(e,t,i){var a=e[0];return a?Math.max(0,a.length-t):0},J2e[e2e]=g5e,J2e[t2e]=function(e,t,i){var a=e[i[0].name];return a?a.length:0},J2e[Q1e]=g5e,J2e);function _5e(e,t){return m5e[x5e(e,t)]}var v5e=function(e,t,i){return e[t]},b5e=((e5e={})[J1e]=v5e,e5e[e2e]=function(e,t,i){return e[i]},e5e[t2e]=v5e,e5e[Q1e]=function(e,t,i){var a=mKe(e);return a instanceof Array?a[t]:a},e5e[i2e]=v5e,e5e);function y5e(e){return b5e[e]}function x5e(e,t){return e===J1e?e+"_"+t:e}function S5e(e,t,i){if(e){var a=e.getRawDataItem(t);if(null!=a){var n=e.getStore(),s=n.getSource().sourceFormat;if(null!=i){var o=e.getDimensionIndex(i),r=n.getDimensionProperty(o);return y5e(s)(a,o,r)}var l=a;return s===Q1e&&(l=mKe(a)),l}}}var w5e=/\{@(.+?)\}/g,C5e=function(){function e(){}return e.prototype.getDataParams=function(e,t){var i=this.getData(t),a=this.getRawValue(e,t),n=i.getRawIndex(e),s=i.getName(e),o=i.getRawDataItem(e),r=i.getItemVisual(e,"style"),l=r&&r[i.getItemVisual(e,"drawType")||"fill"],c=r&&r.stroke,d=this.mainType,u="series"===d,p=i.userOutput&&i.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:s,dataIndex:n,data:o,dataType:t,value:a,color:l,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,i,a,n,s){t=t||"normal";var o=this.getData(i),r=this.getDataParams(e,i);(s&&(r.value=s.interpolatedValue),null!=a&&yYe(r.value)&&(r.value=r.value[a]),n)||(n=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return xYe(n)?(r.status=t,r.dimensionIndex=a,n(r)):SYe(n)?P1e(n,r).replace(w5e,function(t,i){var a=i.length,n=i;"["===n.charAt(0)&&"]"===n.charAt(a-1)&&(n=+n.slice(1,a-1));var r=S5e(o,e,n);if(s&&yYe(s.interpolatedValue)){var l=o.getDimensionIndex(n);l>=0&&(r=s.interpolatedValue[l])}return null!=r?r+"":""}):void 0},e.prototype.getRawValue=function(e,t){return S5e(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,i){},e}();function E5e(e){var t,i;return EYe(e)?e.type&&(i=e):t=e,{text:t,frag:i}}function k5e(e){return new T5e(e)}var T5e=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,i=this._upstream,a=e&&e.skip;if(this._dirty&&i){var n=this.context;n.data=n.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(t=this._plan(this.context));var s,o=d(this._modBy),r=this._modDataCount||0,l=d(e&&e.modBy),c=e&&e.modDataCount||0;function d(e){return!(e>=1)&&(e=1),e}o===l&&r===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,s=this._doReset(a)),this._modBy=l,this._modDataCount=c;var u=e&&e.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(null!=u?this._dueIndex+u:1/0,this._dueEnd);if(!a&&(s||p<h)){var f=this._progress;if(yYe(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,h,l,c);else this._doProgress(f,p,h,l,c)}this._dueIndex=h;var m=null!=this._settedOutputEnd?this._settedOutputEnd:h;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,i,a,n){A5e.reset(t,i,a,n),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:A5e.next},this.context)},e.prototype._doReset=function(e){var t,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(i=t.forceFirstProgress,t=t.progress),yYe(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),A5e=function(){var e,t,i,a,n,s={reset:function(l,c,d,u){t=l,e=c,i=d,a=u,n=Math.ceil(a/i),s.next=i>1&&a>0?r:o}};return s;function o(){return t<e?t++:null}function r(){var s=t%n*i+Math.ceil(t/n),o=t>=e?null:s<a?s:t;return t++,o}}();function R5e(e,t){var i=t&&t.type;return"ordinal"===i?e:("time"!==i||CYe(e)||null==e||"-"===e||(e=+nKe(e)),null==e||""===e?NaN:Number(e))}YYe({number:function(e){return parseFloat(e)},time:function(e){return+nKe(e)},trim:function(e){return SYe(e)?FYe(e):e}});var I5e=function(){function e(e,t){var i="desc"===e;this._resultLT=i?1:-1,null==t&&(t=i?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var i=CYe(e)?e:rKe(e),a=CYe(t)?t:rKe(t),n=isNaN(i),s=isNaN(a);if(n&&(i=this._incomparable),s&&(a=this._incomparable),n&&s){var o=SYe(e),r=SYe(t);o&&(i=r?e:0),r&&(a=o?t:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},e}(),D5e=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return R5e(e,t)},e}();function O5e(e){if(!B5e(e.sourceFormat)){uKe("")}return e.data}function M5e(e){var t=e.sourceFormat,i=e.data;if(!B5e(t)){uKe("")}if(t===J1e){for(var a=[],n=0,s=i.length;n<s;n++)a.push(i[n].slice());return a}if(t===e2e){for(a=[],n=0,s=i.length;n<s;n++)a.push(lYe({},i[n]));return a}}function N5e(e,t,i){if(null!=i)return CYe(i)||!isNaN(i)&&!WYe(t,i)?e[i]:WYe(t,i)?t[i]:void 0}function L5e(e){return oYe(e)}var P5e=YYe();function F5e(e,t,i,a){t.length||uKe(""),EYe(e)||uKe("");var n=e.type,s=P5e.get(n);s||uKe("");var o=fYe(t,function(e){return function(e,t){var i=new D5e,a=e.data,n=i.sourceFormat=e.sourceFormat,s=e.startIndex;e.seriesLayoutBy!==n2e&&uKe("");var o=[],r={},l=e.dimensionsDefine;if(l)hYe(l,function(e,t){var i=e.name,a={index:t,name:i,displayName:e.displayName};o.push(a),null!=i&&(WYe(r,i)&&uKe(""),r[i]=a)});else for(var c=0;c<e.dimensionsDetectedCount;c++)o.push({index:c});var d=f5e(n,n2e);t.__isBuiltIn&&(i.getRawDataItem=function(e){return d(a,s,o,e)},i.getRawData=vYe(O5e,null,e)),i.cloneRawData=vYe(M5e,null,e);var u=_5e(n,n2e);i.count=vYe(u,null,a,s,o);var p=y5e(n);i.retrieveValue=function(e,t){var i=d(a,s,o,e);return h(i,t)};var h=i.retrieveValueFromItem=function(e,t){if(null!=e){var i=o[t];return i?p(e,t,i.name):void 0}};return i.getDimensionInfo=vYe(N5e,null,o,r),i.cloneAllDimensionInfo=vYe(L5e,null,o),i}(e,s)});return fYe(hKe(s.transform({upstream:o[0],upstreamList:o,config:oYe(e.config)})),function(e,i){var a;EYe(e)||uKe(""),e.data||uKe(""),B5e(r5e(e.data))||uKe("");var n=t[0];if(n&&0===i&&!e.dimensions){var s=n.startIndex;s&&(e.data=n.data.slice(0,s).concat(e.data)),a={seriesLayoutBy:n2e,sourceHeader:s,dimensions:n.metaRawOption.dimensions}}else a={seriesLayoutBy:n2e,sourceHeader:0,dimensions:e.dimensions};return s5e(e.data,a,null)})}function B5e(e){return e===J1e||e===e2e}var $5e,V5e="undefined",U5e=typeof Uint32Array===V5e?Array:Uint32Array,H5e=typeof Uint16Array===V5e?Array:Uint16Array,z5e=typeof Int32Array===V5e?Array:Int32Array,Y5e=typeof Float64Array===V5e?Array:Float64Array,G5e={float:Y5e,int:z5e,ordinal:Array,number:Array,time:Y5e};function W5e(e){return e>65535?U5e:H5e}function j5e(){return[1/0,-1/0]}function q5e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function K5e(e,t,i,a,n){var s=G5e[i||"float"];if(n){var o=e[t],r=o&&o.length;if(r!==a){for(var l=new s(a),c=0;c<r;c++)l[c]=o[c];e[t]=l}}else e[t]=new s(a)}var X5e=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=YYe()}return e.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),n=this.defaultDimValueGetter=$5e[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[],d5e(a),this._dimensions=fYe(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(e);if(null!=n){if(a[n].type===t)return n}else n=a.length;return a[n]={type:t},i.set(e,n),this._chunks[n]=new G5e[t||"float"](this._rawCount),this._rawExtent[n]=[1/0,-1/0],n},e.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],a=this._dimensions[e],n=this._rawExtent,s=a.ordinalOffset||0,o=i.length;0===s&&(n[e]=[1/0,-1/0]);for(var r=n[e],l=s;l<o;l++){var c=i[l]=t.parseAndCollect(i[l]);isNaN(c)||(r[0]=Math.min(c,r[0]),r[1]=Math.max(c,r[1]))}a.ordinalMeta=t,a.ordinalOffset=o,a.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},e.prototype.appendValues=function(e,t){for(var i=this._chunks,a=this._dimensions,n=a.length,s=this._rawExtent,o=this.count(),r=o+Math.max(e.length,t||0),l=0;l<n;l++){K5e(i,l,(h=a[l]).type,r,!0)}for(var c=[],d=o;d<r;d++)for(var u=d-o,p=0;p<n;p++){var h=a[p],f=$5e.arrayRows.call(this,e[u]||c,h.property,u,p);i[p][d]=f;var g=s[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=r,{start:o,end:r}},e.prototype._initDataFromProvider=function(e,t,i){for(var a=this._provider,n=this._chunks,s=this._dimensions,o=s.length,r=this._rawExtent,l=fYe(s,function(e){return e.property}),c=0;c<o;c++){var d=s[c];r[c]||(r[c]=j5e()),K5e(n,c,d.type,t,i)}if(a.fillStorage)a.fillStorage(e,t,n,r);else for(var u=[],p=e;p<t;p++){u=a.getItem(p,u);for(var h=0;h<o;h++){var f=n[h],g=this._dimValueGetter(u,l[h],p,h);f[p]=g;var m=r[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var i=[],a=[];if(null==t){t=e,e=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=e;n=0;for(var s=a.length;n<s;n++)i.push(this.get(a[n],t));return i},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var i=0,a=this.count();i<a;i++){var n=this.get(e,i);isNaN(n)||(t+=n)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var i=t.sort(function(e,t){return e-t}),a=this.count();return 0===a?0:a%2==1?i[(a-1)/2]:(i[a/2]+i[a/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(null!=i&&i<this._count&&i===e)return e;for(var a=0,n=this._count-1;a<=n;){var s=(a+n)/2|0;if(t[s]<e)a=s+1;else{if(!(t[s]>e))return s;n=s-1}}return-1},e.prototype.indicesOfNearest=function(e,t,i){var a=this._chunks[e],n=[];if(!a)return n;null==i&&(i=1/0);for(var s=1/0,o=-1,r=0,l=0,c=this.count();l<c;l++){var d=t-a[this.getRawIndex(l)],u=Math.abs(d);u<=i&&((u<s||u===s&&d>=0&&o<0)&&(s=u,o=d,r=0),d===o&&(n[r++]=l))}return n.length=r,n},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n<a;n++)e[n]=t[n]}else e=new i(t.buffer,0,a)}else{e=new(i=W5e(this._rawCount))(this.count());for(n=0;n<e.length;n++)e[n]=n}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=new(W5e(i._rawCount))(a),s=[],o=e.length,r=0,l=e[0],c=i._chunks,d=0;d<a;d++){var u=void 0,p=i.getRawIndex(d);if(0===o)u=t(d);else if(1===o){u=t(c[l][p],d)}else{for(var h=0;h<o;h++)s[h]=c[e[h]][p];s[h]=d,u=t.apply(null,s)}u&&(n[r++]=p)}return r<a&&(i._indices=n),i._count=r,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var a=_Ye(e),n=a.length;if(!n)return this;var s=t.count(),o=new(W5e(t._rawCount))(s),r=0,l=a[0],c=e[l][0],d=e[l][1],u=t._chunks,p=!1;if(!t._indices){var h=0;if(1===n){for(var f=u[a[0]],g=0;g<i;g++){((b=f[g])>=c&&b<=d||isNaN(b))&&(o[r++]=h),h++}p=!0}else if(2===n){f=u[a[0]];var m=u[a[1]],_=e[a[1]][0],v=e[a[1]][1];for(g=0;g<i;g++){var b=f[g],y=m[g];(b>=c&&b<=d||isNaN(b))&&(y>=_&&y<=v||isNaN(y))&&(o[r++]=h),h++}p=!0}}if(!p)if(1===n)for(g=0;g<s;g++){var x=t.getRawIndex(g);((b=u[a[0]][x])>=c&&b<=d||isNaN(b))&&(o[r++]=x)}else for(g=0;g<s;g++){for(var S=!0,w=(x=t.getRawIndex(g),0);w<n;w++){var C=a[w];((b=u[C][x])<e[C][0]||b>e[C][1])&&(S=!1)}S&&(o[r++]=t.getRawIndex(g))}return r<s&&(t._indices=o),t._count=r,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,i){for(var a=e._chunks,n=[],s=t.length,o=e.count(),r=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=j5e();for(var d=0;d<o;d++){for(var u=e.getRawIndex(d),p=0;p<s;p++)r[p]=a[t[p]][u];r[s]=d;var h=i&&i.apply(null,r);if(null!=h){"object"!=typeof h&&(n[0]=h,h=n);for(c=0;c<h.length;c++){var f=t[c],g=h[c],m=l[f],_=a[f];_&&(_[u]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var i,a,n,s=this.clone([e],!0),o=s._chunks[e],r=this.count(),l=0,c=Math.floor(1/t),d=this.getRawIndex(0),u=new(W5e(this._rawCount))(Math.min(2*(Math.ceil(r/c)+2),r));u[l++]=d;for(var p=1;p<r-1;p+=c){for(var h=Math.min(p+c,r-1),f=Math.min(p+2*c,r),g=(f+h)/2,m=0,_=h;_<f;_++){var v=o[E=this.getRawIndex(_)];isNaN(v)||(m+=v)}m/=f-h;var b=p,y=Math.min(p+c,r),x=p-1,S=o[d];i=-1,n=b;var w=-1,C=0;for(_=b;_<y;_++){var E;v=o[E=this.getRawIndex(_)];isNaN(v)?(C++,w<0&&(w=E)):(a=Math.abs((x-g)*(v-S)-(x-_)*(m-S)))>i&&(i=a,n=E)}C>0&&C<y-b&&(u[l++]=Math.min(w,n),n=Math.max(w,n)),u[l++]=n,d=n}return u[l++]=this.getRawIndex(r-1),s._count=l,s._indices=u,s.getRawIndex=this._getRawIdx,s},e.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),a=i._chunks,n=Math.floor(1/t),s=a[e],o=this.count(),r=new(W5e(this._rawCount))(2*Math.ceil(o/n)),l=0,c=0;c<o;c+=n){var d=c,u=s[this.getRawIndex(d)],p=c,h=s[this.getRawIndex(p)],f=n;c+n>o&&(f=o-c);for(var g=0;g<f;g++){var m=s[this.getRawIndex(c+g)];m<u&&(u=m,d=c+g),m>h&&(h=m,p=c+g)}var _=this.getRawIndex(d),v=this.getRawIndex(p);d<p?(r[l++]=_,r[l++]=v):(r[l++]=v,r[l++]=_)}return i._count=l,i._indices=r,i._updateGetRawIdx(),i},e.prototype.downSample=function(e,t,i,a){for(var n=this.clone([e],!0),s=n._chunks,o=[],r=Math.floor(1/t),l=s[e],c=this.count(),d=n._rawExtent[e]=[1/0,-1/0],u=new(W5e(this._rawCount))(Math.ceil(c/r)),p=0,h=0;h<c;h+=r){r>c-h&&(r=c-h,o.length=r);for(var f=0;f<r;f++){var g=this.getRawIndex(h+f);o[f]=l[g]}var m=i(o),_=this.getRawIndex(Math.min(h+a(o,m)||0,c-1));l[_]=m,m<d[0]&&(d[0]=m),m>d[1]&&(d[1]=m),u[p++]=_}return n._count=p,n._indices=u,n._updateGetRawIdx(),n},e.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,s=this.count();n<s;n++){var o=this.getRawIndex(n);switch(i){case 0:t(n);break;case 1:t(a[e[0]][o],n);break;case 2:t(a[e[0]][o],a[e[1]][o],n);break;default:for(var r=0,l=[];r<i;r++)l[r]=a[e[r]][o];l[r]=n,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],i=[1/0,-1/0];if(!t)return i;var a,n=this.count();if(!this._indices)return this._rawExtent[e].slice();if(a=this._extent[e])return a.slice();for(var s=(a=i)[0],o=a[1],r=0;r<n;r++){var l=t[this.getRawIndex(r)];l<s&&(s=l),l>o&&(o=l)}return a=[s,o],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][t]);return i},e.prototype.clone=function(t,i){var a=new e,n=this._chunks,s=t&&gYe(t,function(e,t){return e[t]=!0,e},{});if(s)for(var o=0;o<n.length;o++)a._chunks[o]=s[o]?q5e(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),i||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=oYe(this._extent),e._rawExtent=oYe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var a=0;a<i;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,i,a){return R5e(e[a],this._dimensions[a])}$5e={arrayRows:e,objectRows:function(e,t,i,a){return R5e(e[t],this._dimensions[a])},keyedColumns:e,original:function(e,t,i,a){var n=e&&(null==e.value?e:e.value);return R5e(n instanceof Array?n[a]:n,this._dimensions[a])},typedArray:function(e,t,i,a){return e[a]}}}(),e}(),Z5e=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,i=this._sourceHost,a=this._getUpstreamSourceManagers(),n=!!a.length;if(Q5e(i)){var s=i,o=void 0,r=void 0,l=void 0;if(n){var c=a[0];c.prepareSource(),o=(l=c.getSource()).data,r=l.sourceFormat,t=[c._getVersionSign()]}else r=TYe(o=s.get("data",!0))?i2e:Q1e,t=[];var d=this._getSourceMetaRawOption()||{},u=l&&l.metaRawOption||{},p=OYe(d.seriesLayoutBy,u.seriesLayoutBy)||null,h=OYe(d.sourceHeader,u.sourceHeader),f=OYe(d.dimensions,u.dimensions);e=p!==u.seriesLayoutBy||!!h!=!!u.sourceHeader||f?[s5e(o,{seriesLayoutBy:p,sourceHeader:h,dimensions:f},r)]:[]}else{var g=i;if(n){var m=this._applyTransform(a);e=m.sourceList,t=m.upstreamSignList}else{e=[s5e(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,i=this._sourceHost,a=i.get("transform",!0),n=i.get("fromTransformResult",!0);if(null!=n){1!==e.length&&J5e("")}var s,o=[],r=[];return hYe(e,function(e){e.prepareSource();var t=e.getSource(n||0);null==n||t||J5e(""),o.push(t),r.push(e._getVersionSign())}),a?t=function(e,t){var i=hKe(e),a=i.length;a||uKe("");for(var n=0,s=a;n<s;n++)t=F5e(i[n],t),n!==s-1&&(t.length=Math.max(t.length,1));return t}(a,o,i.componentIndex):null!=n&&(t=[(s=o[0],new a5e({data:s.data,sourceFormat:s.sourceFormat,seriesLayoutBy:s.seriesLayoutBy,dimensionsDefine:oYe(s.dimensionsDefine),startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:r}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,i){var a=this._storeList,n=a[0];n||(n=a[0]={});var s=n[i];if(!s){var o=this._getUpstreamSourceManagers()[0];Q5e(this._sourceHost)&&o?s=o._innerGetDataStore(e,t,i):(s=new X5e).initData(new u5e(t,e.length),e),n[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Q5e(e)){var t=u2e(e);return t?[t.getSourceManager()]:[]}return fYe(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?DKe(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},RKe).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,i,a=this._sourceHost;if(Q5e(a))e=a.get("seriesLayoutBy",!0),t=a.get("sourceHeader",!0),i=a.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=a;e=n.get("seriesLayoutBy",!0),t=n.get("sourceHeader",!0),i=n.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:i}},e}();function Q5e(e){return"series"===e.mainType}function J5e(e){throw new Error(e)}function e3e(e){var t=e.lineHeight;return null==t?"line-height:1":"line-height:"+xGe(t+"")+"px"}function t3e(e,t){var i=e.color||"#6e7079",a=e.fontSize||12,n=e.fontWeight||"400",s=e.color||"#464646",o=e.fontSize||14,r=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+xGe(a+"")+"px;color:"+xGe(i)+";font-weight:"+xGe(n+""),valueStyle:"font-size:"+xGe(o+"")+"px;color:"+xGe(s)+";font-weight:"+xGe(r+"")}:{nameStyle:{fontSize:a,fill:i,fontWeight:n},valueStyle:{fontSize:o,fill:s,fontWeight:r}}}var i3e=[0,10,20,30],a3e=["","\n","\n\n","\n\n\n"];function n3e(e,t){return t.type=e,t}function s3e(e){return"section"===e.type}function o3e(e){return s3e(e)?l3e:c3e}function r3e(e){if(s3e(e)){var t=0,i=e.blocks.length,a=i>1||i>0&&!e.noHeader;return hYe(e.blocks,function(e){var i=r3e(e);i>=t&&(t=i+ +(a&&(!i||s3e(e)&&!e.noHeader)))}),t}return 0}function l3e(e,t,i,a){var n,s=t.noHeader,o=(n=r3e(t),{html:i3e[n],richText:a3e[n]}),r=[],l=t.blocks||[];PYe(!l||yYe(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(WYe(d,c)){var u=new I5e(d[c],null);l.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===c&&l.reverse()}hYe(l,function(i,n){var s=t.valueFormatter,l=o3e(i)(s?lYe(lYe({},e),{valueFormatter:s}):e,i,n>0?o.html:0,a);null!=l&&r.push(l)});var p="richText"===e.renderMode?r.join(o.richText):u3e(a,r.join(""),s?i:o.html);if(s)return p;var h=M1e(t.header,"ordinal",e.useUTC),f=t3e(a,e.renderMode).nameStyle,g=e3e(a);return"richText"===e.renderMode?p3e(e,h,f)+o.richText+p:u3e(a,'<div style="'+f+";"+g+';">'+xGe(h)+"</div>"+p,i)}function c3e(e,t,i,a){var n=e.renderMode,s=t.noName,o=t.noValue,r=!t.markerType,l=t.name,c=e.useUTC,d=t.valueFormatter||e.valueFormatter||function(e){return fYe(e=yYe(e)?e:[e],function(e,t){return M1e(e,yYe(h)?h[t]:h,c)})};if(!s||!o){var u=r?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),p=s?"":M1e(l,"ordinal",c),h=t.valueType,f=o?[]:d(t.value,t.dataIndex),g=!r||!s,m=!r&&s,_=t3e(a,n),v=_.nameStyle,b=_.valueStyle;return"richText"===n?(r?"":u)+(s?"":p3e(e,p,v))+(o?"":function(e,t,i,a,n){var s=[n],o=a?10:20;return i&&s.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(yYe(t)?t.join(" "):t,s)}(e,f,g,m,b)):u3e(a,(r?"":u)+(s?"":function(e,t,i){return'<span style="'+i+";"+(t?"margin-left:2px":"")+'">'+xGe(e)+"</span>"}(p,!r,v))+(o?"":function(e,t,i,a){var n=i?"10px":"20px",s=t?"float:right;margin-left:"+n:"";return e=yYe(e)?e:[e],'<span style="'+s+";"+a+'">'+fYe(e,function(e){return xGe(e)}).join("&nbsp;&nbsp;")+"</span>"}(f,g,m,b)),i)}}function d3e(e,t,i,a,n,s){if(e)return o3e(e)({useUTC:n,renderMode:i,orderMode:a,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,s)}function u3e(e,t,i){return'<div style="'+("margin: "+i+"px 0 0")+";"+e3e(e)+';">'+t+'<div style="clear:both"></div></div>'}function p3e(e,t,i){return e.markupStyleCreator.wrapRichTextStyle(t,i)}function h3e(e,t){var i=e.get("padding");return null!=i?i:"richText"===t?[8,10]:10}var f3e=function(){function e(){this.richTextStyles={},this._nextStyleNameId=lKe()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,i){var a="richText"===i?this._generateStyleName():null,n=function(e,t){var i=SYe(e)?{color:e,extraCssText:t}:e||{},a=i.color,n=i.type;t=i.extraCssText;var s=i.renderMode||"html";return a?"html"===s?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xGe(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xGe(a)+";"+(t||"")+'"></span>':{renderMode:s,content:"{"+(i.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:""}({color:t,type:e,renderMode:i,markerId:a});return SYe(n)?n:(this.richTextStyles[a]=n.style,n.content)},e.prototype.wrapRichTextStyle=function(e,t){var i={};yYe(t)?hYe(t,function(e){return lYe(i,e)}):lYe(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},e}();function g3e(e){var t,i,a,n,s=e.series,o=e.dataIndex,r=e.multipleSeries,l=s.getData(),c=l.mapDimensionsAll("defaultedTooltip"),d=c.length,u=s.getRawValue(o),p=yYe(u),h=function(e,t){return F1e(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(s,o);if(d>1||p&&!d){var f=function(e,t,i,a,n){var s=t.getData(),o=gYe(e,function(e,t,i){var a=s.getDimensionInfo(i);return e||a&&!1!==a.tooltip&&null!=a.displayName},!1),r=[],l=[],c=[];function d(e,t){var i=s.getDimensionInfo(t);i&&!1!==i.otherDims.tooltip&&(o?c.push(n3e("nameValue",{markerType:"subItem",markerColor:n,name:i.displayName,value:e,valueType:i.type})):(r.push(e),l.push(i.type)))}return a.length?hYe(a,function(e){d(S5e(s,i,e),e)}):hYe(e,d),{inlineValues:r,inlineValueTypes:l,blocks:c}}(u,s,o,c,h);t=f.inlineValues,i=f.inlineValueTypes,a=f.blocks,n=f.inlineValues[0]}else if(d){var g=l.getDimensionInfo(c[0]);n=t=S5e(l,o,c[0]),i=g.type}else n=t=p?u[0]:u;var m=SKe(s),_=m&&s.name||"",v=l.getName(o),b=r?_:v;return n3e("section",{header:_,noHeader:r||!m,sortParam:n,blocks:[n3e("nameValue",{markerType:"item",markerColor:h,name:b,noName:!FYe(b),value:t,valueType:i,dataIndex:o})].concat(a||[])})}var m3e=EKe();function _3e(e,t){return e.getName(t)||e.getId(t)}var v3e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var i;return $ze(t,e),t.prototype.init=function(e,t,i){this.seriesIndex=this.componentIndex,this.dataTask=k5e({count:y3e,reset:x3e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i),(m3e(this).sourceManager=new Z5e(this)).prepareSource();var a=this.getInitialData(e,i);w3e(a,this),this.dataTask.context.data=a,m3e(this).dataBeforeProcessed=a,b3e(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,t){var i=z1e(this),a=i?G1e(e):{},n=this.subType;j1e.hasClass(n)&&(n+="Series"),rYe(e,t.getTheme().get(this.subType)),rYe(e,this.getDefaultOption()),fKe(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Y1e(e,a,i)},t.prototype.mergeOption=function(e,t){e=rYe(this.option,e,!0),this.fillDataTextStyle(e.data);var i=z1e(this);i&&Y1e(this.option,e,i);var a=m3e(this).sourceManager;a.dirty(),a.prepareSource();var n=this.getInitialData(e,t);w3e(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,m3e(this).dataBeforeProcessed=n,b3e(this),this._initSelectedMapFromData(n)},t.prototype.fillDataTextStyle=function(e){if(e&&!TYe(e))for(var t=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&fKe(e[i],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=E3e(this);if(t){var i=t.context.data;return null!=e&&i.getLinkedData?i.getLinkedData(e):i}return m3e(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=E3e(this);if(t){var i=t.context;i.outputData=e,t!==this.dataTask&&(i.data=e)}m3e(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return YYe(e)},t.prototype.getSourceManager=function(){return m3e(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return m3e(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,i){return g3e({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Uze.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,i){var a=this.ecModel,n=v2e.prototype.getColorFromPalette.call(this,e,t,i);return n||(n=a.getColorFromPalette(e,t,i)),n},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,n=this.getData(t);if("series"===a||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<e.length;s++){var o=_3e(n,e[s]);i[o]=!1,this._selectedDataIndicesMap[o]=-1}}},t.prototype.toggleSelect=function(e,t){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],t)?this.unselect(i,t):this.select(i,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=_Ye(e),i=[],a=0;a<t.length;a++){var n=e[t[a]];n>=0&&i.push(n)}return i},t.prototype.isSelected=function(e,t){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(t);return("all"===i||i[_3e(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var i,a,n=this.option,s=n.selectedMode,o=t.length;if(s&&o)if("series"===s)n.selectedMap="all";else if("multiple"===s){EYe(n.selectedMap)||(n.selectedMap={});for(var r=n.selectedMap,l=0;l<o;l++){var c=t[l];r[u=_3e(e,c)]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(c)}}else if("single"===s||!0===s){var d=t[o-1],u=_3e(e,d);n.selectedMap=((i={})[u]=!0,i),this._selectedDataIndicesMap=((a={})[u]=e.getRawIndex(d),a)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&t.push(i)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return j1e.registerClass(e)},t.protoInitialize=((i=t.prototype).type="series.__base__",i.seriesIndex=0,i.ignoreStyleOnData=!1,i.hasSymbolVisual=!1,i.defaultSymbol="circle",i.visualStyleAccessPath="itemStyle",void(i.visualDrawType="fill")),t}(j1e);function b3e(e){var t=e.name;SKe(e)||(e.name=function(e){var t=e.getRawData(),i=t.mapDimensionsAll("seriesName"),a=[];return hYe(i,function(e){var i=t.getDimensionInfo(e);i.displayName&&a.push(i.displayName)}),a.join(" ")}(e)||t)}function y3e(e){return e.model.getRawData().count()}function x3e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),S3e}function S3e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function w3e(e,t){hYe(function(e,t){for(var i=new e.constructor(e.length+t.length),a=0;a<e.length;a++)i[a]=e[a];var n=e.length;for(a=0;a<t.length;a++)i[a+n]=t[a];return i}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(i){e.wrapMethod(i,bYe(C3e,t))})}function C3e(e,t){var i=E3e(e);return i&&i.setOutputEnd((t||this).count()),t}function E3e(e){var t=(e.ecModel||{}).scheduler,i=t&&t.getPipeline(e.uid);if(i){var a=i.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(e.uid))}return a}}uYe(v3e,C5e),uYe(v3e,v2e),FKe(v3e,j1e);var k3e=function(){function e(){this.group=new Uqe,this.uid=G0e("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,i,a){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,i,a){},e.prototype.updateLayout=function(e,t,i,a){},e.prototype.updateVisual=function(e,t,i,a){},e.prototype.toggleBlurSeries=function(e,t,i){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();function T3e(){var e=EKe();return function(t){var i=e(t),a=t.pipelineContext,n=!!i.large,s=!!i.progressiveRender,o=i.large=!(!a||!a.large),r=i.progressiveRender=!(!a||!a.progressiveRender);return!(n===o&&s===r)&&"reset"}}PKe(k3e),UKe(k3e);var A3e=EKe(),R3e=T3e(),I3e=function(){function e(){this.group=new Uqe,this.uid=G0e("viewChart"),this.renderTask=k5e({plan:M3e,reset:N3e}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,i,a){},e.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&O3e(n,a,"emphasis")},e.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&O3e(n,a,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},e.prototype.updateLayout=function(e,t,i,a){this.render(e,t,i,a)},e.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},e.prototype.eachRendered=function(e){b0e(this.group,e)},e.markUpdateMethod=function(e,t){A3e(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function D3e(e,t,i){e&&DQe(e)&&("emphasis"===t?fQe:gQe)(e,i)}function O3e(e,t,i){var a=CKe(e,t),n=t&&null!=t.highlightKey?function(e){var t=YZe[e];return null==t&&zZe<=32&&(t=YZe[e]=zZe++),t}(t.highlightKey):null;null!=a?hYe(hKe(a),function(t){D3e(e.getItemGraphicEl(t),i,n)}):e.eachItemGraphicEl(function(e){D3e(e,i,n)})}function M3e(e){return R3e(e.model)}function N3e(e){var t=e.model,i=e.ecModel,a=e.api,n=e.payload,s=t.pipelineContext.progressiveRender,o=e.view,r=n&&A3e(n).updateMethod,l=s?"incrementalPrepareRender":r&&o[r]?r:"render";return"render"!==l&&o[l](t,i,a,n),L3e[l]}PKe(I3e),UKe(I3e);var L3e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},P3e="\0__throttleOriginMethod",F3e="\0__throttleRate",B3e="\0__throttleType";function $3e(e,t,i){var a,n,s,o,r,l=0,c=0,d=null;function u(){c=(new Date).getTime(),d=null,e.apply(s,o||[])}t=t||0;var p=function(){for(var e=[],p=0;p<arguments.length;p++)e[p]=arguments[p];a=(new Date).getTime(),s=this,o=e;var h=r||t,f=r||i;r=null,n=a-(f?l:c)-h,clearTimeout(d),f?d=setTimeout(u,h):n>=0?u():d=setTimeout(u,-n),l=a};return p.clear=function(){d&&(clearTimeout(d),d=null)},p.debounceNextCall=function(e){r=e},p}function V3e(e,t,i,a){var n=e[t];if(n){var s=n[P3e]||n,o=n[B3e];if(n[F3e]!==i||o!==a){if(null==i||!a)return e[t]=s;(n=e[t]=$3e(s,i,"debounce"===a))[P3e]=s,n[B3e]=a,n[F3e]=i}return n}}function U3e(e,t){var i=e[t];i&&i[P3e]&&(i.clear&&i.clear(),e[t]=i[P3e])}var H3e=EKe(),z3e={itemStyle:HKe(V0e,!0),lineStyle:HKe(F0e,!0)},Y3e={lineStyle:"stroke",itemStyle:"fill"};function G3e(e,t){var i=e.visualStyleMapper||z3e[t];return i||z3e.itemStyle}function W3e(e,t){var i=e.visualDrawType||Y3e[t];return i||"fill"}var j3e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=e.getModel(a),s=G3e(e,a)(n),o=n.getShallow("decal");o&&(i.setVisual("decal",o),o.dirty=!0);var r=W3e(e,a),l=s[r],c=xYe(l)?l:null,d="auto"===s.fill||"auto"===s.stroke;if(!s[r]||c||d){var u=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[r]||(s[r]=u,i.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||xYe(s.fill)?u:s.fill,s.stroke="auto"===s.stroke||xYe(s.stroke)?u:s.stroke}if(i.setVisual("style",s),i.setVisual("drawType",r),!t.isSeriesFiltered(e)&&c)return i.setVisual("colorFromPalette",!1),{dataEach:function(t,i){var a=e.getDataParams(i),n=lYe({},s);n[r]=c(a),t.setItemVisual(i,"style",n)}}}},q3e=new z0e,K3e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var i=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=G3e(e,a),s=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(e,t){var i=e.getRawDataItem(t);if(i&&i[a]){q3e.option=i[a];var o=n(q3e);lYe(e.ensureUniqueItemVisual(t,"style"),o),q3e.option.decal&&(e.setItemVisual(t,"decal",q3e.option.decal),q3e.option.decal.dirty=!0),s in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},X3e={performRawSeries:!0,overallReset:function(e){var t=YYe();e.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+i,n=t.get(a);n||(n={},t.set(a,n)),H3e(e).scope=n}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var i=t.getRawData(),a={},n=t.getData(),s=H3e(t).scope,o=t.visualStyleAccessPath||"itemStyle",r=W3e(t,o);n.each(function(e){var t=n.getRawIndex(e);a[t]=e}),i.each(function(e){var o=a[e];if(n.getItemVisual(o,"colorFromPalette")){var l=n.ensureUniqueItemVisual(o,"style"),c=i.getName(e)||e+"",d=i.count();l[r]=t.getColorFromPalette(c,s,d)}})}})}},Z3e=Math.PI;var Q3e=function(){function e(e,t,i,a){this._stageTaskMap=YYe(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex?i.step:null,s=a&&a.modDataCount;return{step:n,modBy:null!=s?Math.ceil(s/n):null,modDataCount:s}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),a=e.getData().count(),n=i.progressiveEnabled&&t.incrementalPrepareRender&&a>=i.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?a:null;e.pipelineContext=i.context={progressiveRender:n,modDataCount:o,large:s}},e.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=YYe();e.eachSeries(function(e){var a=e.getProgressive(),n=e.uid;i.set(n,{id:n,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:a&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;hYe(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{});PYe(!(a.reset&&a.overallReset),""),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},e.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,s=n.context;s.model=t,s.ecModel=i,s.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},e.prototype._performStageTasks=function(e,t,i,a){a=a||{};var n=!1,s=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}hYe(e,function(e,r){if(!a.visualType||a.visualType===e.visualType){var l=s._stageTaskMap.get(e.uid),c=l.seriesTaskMap,d=l.overallTask;if(d){var u,p=d.agentStubMap;p.each(function(e){o(a,e)&&(e.dirty(),u=!0)}),u&&d.dirty(),s.updatePayload(d,i);var h=s.getPerformArgs(d,a.block);p.each(function(e){e.perform(h)}),d.perform(h)&&(n=!0)}else c&&c.each(function(r,l){o(a,r)&&r.dirty();var c=s.getPerformArgs(r,a.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(r.context.model),s.updatePayload(r,i),r.perform(c)&&(n=!0)})}}),this.unfinished=n||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,i,a){var n=this,s=t.seriesTaskMap,o=t.seriesTaskMap=YYe(),r=e.seriesType,l=e.getTargetSeries;function c(t){var r=t.uid,l=o.set(r,s&&s.get(r)||k5e({plan:a4e,reset:n4e,count:r4e}));l.context={model:t,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(t,l)}e.createOnAllSeries?i.eachRawSeries(c):r?i.eachRawSeriesByType(r,c):l&&l(i,a).each(c)},e.prototype._createOverallStageTask=function(e,t,i,a){var n=this,s=t.overallTask=t.overallTask||k5e({reset:J3e});s.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var o=s.agentStubMap,r=s.agentStubMap=YYe(),l=e.seriesType,c=e.getTargetSeries,d=!0,u=!1;function p(e){var t=e.uid,i=r.set(t,o&&o.get(t)||(u=!0,k5e({reset:e4e,onDirty:i4e})));i.context={model:e,overallProgress:d},i.agent=s,i.__block=d,n._pipe(e,i)}PYe(!e.createOnAllSeries,""),l?i.eachRawSeriesByType(l,p):c?c(i,a).each(p):(d=!1,hYe(i.getSeries(),p)),u&&s.dirty()},e.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},e.wrapStageHandler=function(e,t){return xYe(e)&&(e={overallReset:e,seriesType:l4e(e)}),e.uid=G0e("stageHandler"),t&&(e.visualType=t),e},e}();function J3e(e){e.overallReset(e.ecModel,e.api,e.payload)}function e4e(e){return e.overallProgress&&t4e}function t4e(){this.agent.dirty(),this.getDownstream().dirty()}function i4e(){this.agent&&this.agent.dirty()}function a4e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function n4e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=hKe(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?fYe(t,function(e,t){return o4e(t)}):s4e}var s4e=o4e(0);function o4e(e){return function(t,i){var a=i.data,n=i.resetDefines[e];if(n&&n.dataEach)for(var s=t.start;s<t.end;s++)n.dataEach(a,s);else n&&n.progress&&n.progress(t,a)}}function r4e(e){return e.data.count()}function l4e(e){c4e=null;try{e(d4e,u4e)}catch(NO){}return c4e}var c4e,d4e={},u4e={};function p4e(e,t){for(var i in t.prototype)e[i]=jYe}p4e(d4e,y2e),p4e(u4e,E2e),d4e.eachSeriesByType=d4e.eachRawSeriesByType=function(e){c4e=e},d4e.eachComponent=function(e){"series"===e.mainType&&e.subType&&(c4e=e.subType)};var h4e=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const f4e={color:h4e,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],h4e]};var g4e="#B9B8CE",m4e="#100C2A",_4e=function(){return{axisLine:{lineStyle:{color:g4e}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},v4e=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],b4e={darkMode:!0,color:v4e,backgroundColor:m4e,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:g4e},pageTextStyle:{color:g4e}},textStyle:{color:g4e},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:g4e}},dataZoom:{borderColor:"#71708A",textStyle:{color:g4e},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:g4e}},timeline:{lineStyle:{color:g4e},label:{color:g4e},controlStyle:{color:g4e,borderColor:g4e}},calendar:{itemStyle:{color:m4e},dayLabel:{color:g4e},monthLabel:{color:g4e},yearLabel:{color:g4e}},timeAxis:_4e(),logAxis:_4e(),valueAxis:_4e(),categoryAxis:_4e(),line:{symbol:"circle"},graph:{color:v4e},gauge:{title:{color:g4e},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:g4e},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};b4e.categoryAxis.splitLine.show=!1;var y4e=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},i={},a={};if(SYe(e)){var n=LKe(e);t.mainType=n.main||null,t.subType=n.sub||null}else{var s=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};hYe(e,function(e,n){for(var r=!1,l=0;l<s.length;l++){var c=s[l],d=n.lastIndexOf(c);if(d>0&&d===n.length-c.length){var u=n.slice(0,d);"data"!==u&&(t.mainType=u,t[c.toLowerCase()]=e,r=!0)}}o.hasOwnProperty(n)&&(i[n]=e,r=!0),r||(a[n]=e)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},e.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,s=i.model,o=i.view;if(!s||!o)return!0;var r=t.cptQuery,l=t.dataQuery;return c(r,s,"mainType")&&c(r,s,"subType")&&c(r,s,"index","componentIndex")&&c(r,s,"name")&&c(r,s,"id")&&c(l,n,"name")&&c(l,n,"dataIndex")&&c(l,n,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,a,n));function c(e,t,i,a){return null==e[i]||t[a||i]===e[i]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),x4e=["symbol","symbolSize","symbolRotate","symbolOffset"],S4e=x4e.concat(["symbolKeepAspect"]),w4e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData();if(e.legendIcon&&i.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var a={},n={},s=!1,o=0;o<x4e.length;o++){var r=x4e[o],l=e.get(r);xYe(l)?(s=!0,n[r]=l):a[r]=l}if(a.symbol=a.symbol||e.defaultSymbol,i.setVisual(lYe({legendIcon:e.legendIcon||a.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},a)),!t.isSeriesFiltered(e)){var c=_Ye(n);return{dataEach:s?function(t,i){for(var a=e.getRawValue(i),s=e.getDataParams(i),o=0;o<c.length;o++){var r=c[o];t.setItemVisual(i,r,n[r](a,s))}}:null}}}}},C4e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var i=e.getItemModel(t),a=0;a<S4e.length;a++){var n=S4e[a],s=i.getShallow(n,!0);null!=s&&e.setItemVisual(t,n,s)}}:null}}};function E4e(e,t,i,a,n){var s=e+t;i.isSilent(s)||a.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,a=e.option.selectedMap,o=n.selected,r=0;r<o.length;r++)if(o[r].seriesIndex===t){var l=e.getData(),c=CKe(l,n.fromActionPayload);i.trigger(s,{type:s,seriesId:e.id,name:yYe(c)?l.getName(c[0]):l.getName(c),selected:SYe(a)?a:lYe({},a)})}})}function k4e(e,t,i){for(var a;e&&(!t(e)||(a=e,!i));)e=e.__hostTarget||e.parent;return a}var T4e=Math.round(9*Math.random()),A4e="function"==typeof Object.defineProperty,R4e=function(){function e(){this._id="__ec_inner_"+T4e++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var i=this._guard(e);return A4e?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),I4e=fZe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,a=t.cy,n=t.width/2,s=t.height/2;e.moveTo(i,a-s),e.lineTo(i+n,a+s),e.lineTo(i-n,a+s),e.closePath()}}),D4e=fZe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,a=t.cy,n=t.width/2,s=t.height/2;e.moveTo(i,a-s),e.lineTo(i+n,a),e.lineTo(i,a+s),e.lineTo(i-n,a),e.closePath()}}),O4e=fZe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.x,a=t.y,n=t.width/5*3,s=Math.max(n,t.height),o=n/2,r=o*o/(s-o),l=a-s+o+r,c=Math.asin(r/o),d=Math.cos(c)*o,u=Math.sin(c),p=Math.cos(c),h=.6*o,f=.7*o;e.moveTo(i-d,l+r),e.arc(i,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(i+d-u*h,l+r+p*h,i,a-f,i,a),e.bezierCurveTo(i,a-f,i-d+u*h,l+r+p*h,i-d,l+r),e.closePath()}}),M4e=fZe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.height,a=t.width,n=t.x,s=t.y,o=a/3*2;e.moveTo(n,s),e.lineTo(n+o,s+i),e.lineTo(n,s+i/4*3),e.lineTo(n-o,s+i),e.lineTo(n,s),e.closePath()}}),N4e={line:function(e,t,i,a,n){n.x1=e,n.y1=t+a/2,n.x2=e+i,n.y2=t+a/2},rect:function(e,t,i,a,n){n.x=e,n.y=t,n.width=i,n.height=a},roundRect:function(e,t,i,a,n){n.x=e,n.y=t,n.width=i,n.height=a,n.r=Math.min(i,a)/4},square:function(e,t,i,a,n){var s=Math.min(i,a);n.x=e,n.y=t,n.width=s,n.height=s},circle:function(e,t,i,a,n){n.cx=e+i/2,n.cy=t+a/2,n.r=Math.min(i,a)/2},diamond:function(e,t,i,a,n){n.cx=e+i/2,n.cy=t+a/2,n.width=i,n.height=a},pin:function(e,t,i,a,n){n.x=e+i/2,n.y=t+a/2,n.width=i,n.height=a},arrow:function(e,t,i,a,n){n.x=e+i/2,n.y=t+a/2,n.width=i,n.height=a},triangle:function(e,t,i,a,n){n.cx=e+i/2,n.cy=t+a/2,n.width=i,n.height=a}},L4e={};hYe({line:EJe,rect:kZe,roundRect:kZe,square:kZe,circle:QQe,diamond:D4e,pin:O4e,arrow:M4e,triangle:I4e},function(e,t){L4e[t]=new e});var P4e=fZe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,i){var a=Iqe(e,t,i),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===t.position&&(a.y=i.y+.4*i.height),a},buildPath:function(e,t,i){var a=t.symbolType;if("none"!==a){var n=L4e[a];n||(n=L4e[a="rect"]),N4e[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,i)}}});function F4e(e,t){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=e,i.fill=t||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=e:i.fill=e,this.markRedraw()}}function B4e(e,t,i,a,n,s,o){var r,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(r=0===e.indexOf("image://")?a0e(e.slice(8),new KGe(t,i,a,n),o?"center":"cover"):0===e.indexOf("path://")?i0e(e.slice(7),{},new KGe(t,i,a,n),o?"center":"cover"):new P4e({shape:{symbolType:e,x:t,y:i,width:a,height:n}})).__isEmptyBrush=l,r.setColor=F4e,s&&r.setColor(s),r}function $4e(e){return isFinite(e)}function V4e(e,t,i){for(var a="radial"===t.type?function(e,t,i){var a=i.width,n=i.height,s=Math.min(a,n),o=null==t.x?.5:t.x,r=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(o=o*a+i.x,r=r*n+i.y,l*=s),o=$4e(o)?o:.5,r=$4e(r)?r:.5,l=l>=0&&$4e(l)?l:.5,e.createRadialGradient(o,r,0,o,r,l)}(e,t,i):function(e,t,i){var a=null==t.x?0:t.x,n=null==t.x2?1:t.x2,s=null==t.y?0:t.y,o=null==t.y2?0:t.y2;return t.global||(a=a*i.width+i.x,n=n*i.width+i.x,s=s*i.height+i.y,o=o*i.height+i.y),a=$4e(a)?a:0,n=$4e(n)?n:1,s=$4e(s)?s:0,o=$4e(o)?o:0,e.createLinearGradient(a,s,n,o)}(e,t,i),n=t.colorStops,s=0;s<n.length;s++)a.addColorStop(n[s].offset,n[s].color);return a}function U4e(e){return parseInt(e,10)}function H4e(e,t,i){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],s=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=i[a]&&"auto"!==i[a])return parseFloat(i[a]);var r=document.defaultView.getComputedStyle(e);return(e[n]||U4e(r[a])||U4e(e.style[a]))-(U4e(r[s])||0)-(U4e(r[o])||0)|0}function z4e(e){var t,i,a=e.style,n=a.lineDash&&a.lineWidth>0&&(t=a.lineDash,i=a.lineWidth,t&&"solid"!==t&&i>0?"dashed"===t?[4*i,2*i]:"dotted"===t?[i]:CYe(t)?[t]:yYe(t)?t:null:null),s=a.lineDashOffset;if(n){var o=a.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(n=fYe(n,function(e){return e/o}),s/=o)}return[n,s]}var Y4e=new jXe(!0);function G4e(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function W4e(e){return"string"==typeof e&&"none"!==e}function j4e(e){var t=e.fill;return null!=t&&"none"!==t}function q4e(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var i=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=i}else e.fill()}function K4e(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var i=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=i}else e.stroke()}function X4e(e,t,i){var a=jKe(t.image,t.__image,i);if(KKe(a)){var n=e.createPattern(a,t.repeat||"repeat");if("function"==typeof DOMMatrix&&n&&n.setTransform){var s=new DOMMatrix;s.translateSelf(t.x||0,t.y||0),s.rotateSelf(0,0,(t.rotation||0)*qYe),s.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(s)}return n}}var Z4e=["shadowBlur","shadowOffsetX","shadowOffsetY"],Q4e=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function J4e(e,t,i,a,n){var s=!1;if(!a&&t===(i=i||{}))return!1;if(a||t.opacity!==i.opacity){i8e(e,n),s=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?cXe.opacity:o}(a||t.blend!==i.blend)&&(s||(i8e(e,n),s=!0),e.globalCompositeOperation=t.blend||cXe.blend);for(var r=0;r<Z4e.length;r++){var l=Z4e[r];(a||t[l]!==i[l])&&(s||(i8e(e,n),s=!0),e[l]=e.dpr*(t[l]||0))}return(a||t.shadowColor!==i.shadowColor)&&(s||(i8e(e,n),s=!0),e.shadowColor=t.shadowColor||cXe.shadowColor),s}function e8e(e,t,i,a,n){var s=a8e(t,n.inHover),o=a?null:i&&a8e(i,n.inHover)||{};if(s===o)return!1;var r=J4e(e,s,o,a,n);if((a||s.fill!==o.fill)&&(r||(i8e(e,n),r=!0),W4e(s.fill)&&(e.fillStyle=s.fill)),(a||s.stroke!==o.stroke)&&(r||(i8e(e,n),r=!0),W4e(s.stroke)&&(e.strokeStyle=s.stroke)),(a||s.opacity!==o.opacity)&&(r||(i8e(e,n),r=!0),e.globalAlpha=null==s.opacity?1:s.opacity),t.hasStroke()){var l=s.lineWidth/(s.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(r||(i8e(e,n),r=!0),e.lineWidth=l)}for(var c=0;c<Q4e.length;c++){var d=Q4e[c],u=d[0];(a||s[u]!==o[u])&&(r||(i8e(e,n),r=!0),e[u]=s[u]||d[1])}return r}function t8e(e,t){var i=t.transform,a=e.dpr||1;i?e.setTransform(a*i[0],a*i[1],a*i[2],a*i[3],a*i[4],a*i[5]):e.setTransform(a,0,0,a,0,0)}function i8e(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function a8e(e,t){return t&&e.__hoverStyle||e.style}function n8e(e,t,i,a){var n=t.transform;if(!t.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var s=t.__clipPaths,o=i.prevElClipPaths,r=!1,l=!1;if(o&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!0;return!1}(s,o)||(o&&o.length&&(i8e(e,i),e.restore(),l=r=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),s&&s.length&&(i8e(e,i),e.save(),function(e,t,i){for(var a=!1,n=0;n<e.length;n++){var s=e[n];a=a||s.isZeroArea(),t8e(t,s),t.beginPath(),s.buildPath(t,s.shape),t.clip()}i.allClipped=a}(s,e,i),r=!0),i.prevElClipPaths=s),i.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=i.prevEl;c||(l=r=!0);var d,u,p=t instanceof fZe&&t.autoBatch&&function(e){var t=j4e(e),i=G4e(e);return!(e.lineDash||!(+t^+i)||t&&"string"!=typeof e.fill||i&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);r||(d=n,u=c.transform,d&&u?d[0]!==u[0]||d[1]!==u[1]||d[2]!==u[2]||d[3]!==u[3]||d[4]!==u[4]||d[5]!==u[5]:d||u)?(i8e(e,i),t8e(e,t)):p||i8e(e,i);var h=a8e(t,i.inHover);t instanceof fZe?(1!==i.lastDrawType&&(l=!0,i.lastDrawType=1),e8e(e,t,c,l,i),p&&(i.batchFill||i.batchStroke)||e.beginPath(),function(e,t,i,a){var n,s=G4e(i),o=j4e(i),r=i.strokePercent,l=r<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var d=t.path||Y4e,u=t.__dirty;if(!a){var p=i.fill,h=i.stroke,f=o&&!!p.colorStops,g=s&&!!h.colorStops,m=o&&!!p.image,_=s&&!!h.image,v=void 0,b=void 0,y=void 0,x=void 0,S=void 0;(f||g)&&(S=t.getBoundingRect()),f&&(v=u?V4e(e,p,S):t.__canvasFillGradient,t.__canvasFillGradient=v),g&&(b=u?V4e(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(y=u||!t.__canvasFillPattern?X4e(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=y),_&&(x=u||!t.__canvasStrokePattern?X4e(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=y),f?e.fillStyle=v:m&&(y?e.fillStyle=y:o=!1),g?e.strokeStyle=b:_&&(x?e.strokeStyle=x:s=!1)}var w,C,E=t.getGlobalScale();d.setScale(E[0],E[1],t.segmentIgnoreThreshold),e.setLineDash&&i.lineDash&&(w=(n=z4e(t))[0],C=n[1]);var k=!0;(c||4&u)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),k=!1),d.reset(),t.buildPath(d,t.shape,a),d.toStatic(),t.pathUpdated()),k&&d.rebuildPath(e,l?r:1),w&&(e.setLineDash(w),e.lineDashOffset=C),a||(i.strokeFirst?(s&&K4e(e,i),o&&q4e(e,i)):(o&&q4e(e,i),s&&K4e(e,i))),w&&e.setLineDash([])}(e,t,h,p),p&&(i.batchFill=h.fill||"",i.batchStroke=h.stroke||"")):t instanceof mZe?(3!==i.lastDrawType&&(l=!0,i.lastDrawType=3),e8e(e,t,c,l,i),function(e,t,i){var a,n=i.text;if(null!=n&&(n+=""),n){e.font=i.font||zze,e.textAlign=i.textAlign,e.textBaseline=i.textBaseline;var s=void 0,o=void 0;e.setLineDash&&i.lineDash&&(s=(a=z4e(t))[0],o=a[1]),s&&(e.setLineDash(s),e.lineDashOffset=o),i.strokeFirst?(G4e(i)&&e.strokeText(n,i.x,i.y),j4e(i)&&e.fillText(n,i.x,i.y)):(j4e(i)&&e.fillText(n,i.x,i.y),G4e(i)&&e.strokeText(n,i.x,i.y)),s&&e.setLineDash([])}}(e,t,h)):t instanceof bZe?(2!==i.lastDrawType&&(l=!0,i.lastDrawType=2),function(e,t,i,a,n){J4e(e,a8e(t,n.inHover),i&&a8e(i,n.inHover),a,n)}(e,t,c,l,i),function(e,t,i){var a=t.__image=jKe(i.image,t.__image,t,t.onload);if(a&&KKe(a)){var n=i.x||0,s=i.y||0,o=t.getWidth(),r=t.getHeight(),l=a.width/a.height;if(null==o&&null!=r?o=r*l:null==r&&null!=o?r=o/l:null==o&&null==r&&(o=a.width,r=a.height),i.sWidth&&i.sHeight){var c=i.sx||0,d=i.sy||0;e.drawImage(a,c,d,i.sWidth,i.sHeight,n,s,o,r)}else if(i.sx&&i.sy){var u=o-(c=i.sx),p=r-(d=i.sy);e.drawImage(a,c,d,u,p,n,s,o,r)}else e.drawImage(a,n,s,o,r)}}(e,t,h)):t.getTemporalDisplayables&&(4!==i.lastDrawType&&(l=!0,i.lastDrawType=4),function(e,t,i){var a=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var s,o,r={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(s=t.getCursor(),o=a.length;s<o;s++){(d=a[s]).beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),n8e(e,d,r,s===o-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),r.prevEl=d}for(var l=0,c=n.length;l<c;l++){var d;(d=n[l]).beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),n8e(e,d,r,l===c-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),r.prevEl=d}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,i)),p&&a&&i8e(e,i),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),i.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var s8e=new R4e,o8e=new GWe(100),r8e=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function l8e(e,t){if("none"===e)return null;var i=t.getDevicePixelRatio(),a=t.getZr(),n="svg"===a.painter.type;e.dirty&&s8e.delete(e);var s=s8e.get(e);if(s)return s;var o=cYe(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var r={repeat:"repeat"};return function(e){for(var t,s=[i],r=!0,l=0;l<r8e.length;++l){var c=o[r8e[l]];if(null!=c&&!yYe(c)&&!SYe(c)&&!CYe(c)&&"boolean"!=typeof c){r=!1;break}s.push(c)}if(r){t=s.join(",")+(n?"-svg":"");var d=o8e.get(t);d&&(n?e.svgElement=d:e.image=d)}var u,p=d8e(o.dashArrayX),h=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(CYe(e)){var t=Math.ceil(e);return[t,t]}var i=fYe(e,function(e){return Math.ceil(e)});return e.length%2?i.concat(i):i}(o.dashArrayY),f=c8e(o.symbol),g=(y=p,fYe(y,function(e){return u8e(e)})),m=u8e(h),_=!n&&Gze.createCanvas(),v=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var e=1,t=0,i=g.length;t<i;++t)e=dKe(e,g[t]);var a=1;for(t=0,i=f.length;t<i;++t)a=dKe(a,f[t].length);e*=a;var n=m*g.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(n,o.maxTileHeight))}}();var y;_&&(_.width=b.width*i,_.height=b.height*i,u=_.getContext("2d"));(function(){u&&(u.clearRect(0,0,_.width,_.height),o.backgroundColor&&(u.fillStyle=o.backgroundColor,u.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<h.length;++t)e+=h[t];if(e<=0)return;var s=-m,r=0,l=0,c=0;for(;s<b.height;){if(r%2==0){for(var d=l/2%f.length,g=0,y=0,x=0;g<2*b.width;){var S=0;for(t=0;t<p[c].length;++t)S+=p[c][t];if(S<=0)break;if(y%2==0){var w=.5*(1-o.symbolSize),C=g+p[c][y]*w,E=s+h[r]*w,k=p[c][y]*o.symbolSize,T=h[r]*o.symbolSize,A=x/2%f[d].length;R(C,E,k,T,f[d][A])}g+=p[c][y],++x,++y===p[c].length&&(y=0)}++c===p.length&&(c=0)}s+=h[r],++l,++r===h.length&&(r=0)}function R(e,t,s,r,l){var c=n?1:i,d=B4e(l,e*c,t*c,s*c,r*c,o.color,o.symbolKeepAspect);if(n){var p=a.painter.renderOneToVNode(d);p&&v.children.push(p)}else!function(e,t){n8e(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}(u,d)}})(),r&&o8e.put(t,_||v);e.image=_,e.svgElement=v,e.svgWidth=b.width,e.svgHeight=b.height}(r),r.rotation=o.rotation,r.scaleX=r.scaleY=n?1:1/i,s8e.set(e,r),e.dirty=!1,r}function c8e(e){if(!e||0===e.length)return[["rect"]];if(SYe(e))return[[e]];for(var t=!0,i=0;i<e.length;++i)if(!SYe(e[i])){t=!1;break}if(t)return c8e([e]);var a=[];for(i=0;i<e.length;++i)SYe(e[i])?a.push([e[i]]):a.push(e[i]);return a}function d8e(e){if(!e||0===e.length)return[[0,0]];if(CYe(e))return[[n=Math.ceil(e),n]];for(var t=!0,i=0;i<e.length;++i)if(!CYe(e[i])){t=!1;break}if(t)return d8e([e]);var a=[];for(i=0;i<e.length;++i)if(CYe(e[i])){var n=Math.ceil(e[i]);a.push([n,n])}else{(n=fYe(e[i],function(e){return Math.ceil(e)})).length%2==1?a.push(n.concat(n)):a.push(n)}return a}function u8e(e){for(var t=0,i=0;i<e.length;++i)t+=e[i];return e.length%2==1?2*t:t}var p8e=new uGe,h8e={};var f8e=2e3,g8e=4500,m8e={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:f8e,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:g8e,ARIA:6e3,DECAL:7e3}},_8e="__flagInMainProcess",v8e="__pendingUpdate",b8e="__needsUpdateStatus",y8e=/^[a-zA-Z0-9_]+$/,x8e="__connectUpdateStatus";function S8e(e){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(!this.isDisposed())return C8e(this,e,t);this.id}}function w8e(e){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return C8e(this,e,t)}}function C8e(e,t,i){return i[0]=i[0]&&i[0].toLowerCase(),uGe.prototype[t].apply(e,i)}var E8e,k8e,T8e,A8e,R8e,I8e,D8e,O8e,M8e,N8e,L8e,P8e,F8e,B8e,$8e,V8e,U8e,H8e,z8e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $ze(t,e),t}(uGe),Y8e=z8e.prototype;Y8e.on=w8e("on"),Y8e.off=w8e("off");var G8e=function(e){function t(t,i,a){var n=e.call(this,new y4e)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},SYe(i)&&(i=J8e[i]),n._dom=t;a.ssr&&(Yqe=function(e){var t=HZe(e),i=t.dataIndex;if(null!=i){var a=YYe();return a.set("series_index",t.seriesIndex),a.set("data_index",i),t.ssrType&&a.set("ssr_type",t.ssrType),a}});var s=n._zr=Wqe(t,{renderer:a.renderer||"canvas",devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:OYe(a.useDirtyRect,!1),useCoarsePointer:OYe(a.useCoarsePointer,"auto"),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=$3e(vYe(s.flush,s),17),(i=oYe(i))&&X2e(i,!0),n._theme=i,n._locale=function(e){if(SYe(e)){var t=X0e[e.toUpperCase()]||{};return e===j0e||e===q0e?oYe(t):rYe(oYe(t),oYe(X0e[K0e]),!1)}return rYe(oYe(e),oYe(X0e[K0e]),!1)}(a.locale||Q0e),n._coordSysMgr=new T2e;var o=n._api=$8e(n);function r(e,t){return e.__prio-t.__prio}return uWe(Q8e,r),uWe(X8e,r),n._scheduler=new Q3e(n,o,X8e,Q8e),n._messageCenter=new z8e,n._initEvents(),n.resize=vYe(n.resize,n),s.animation.on("frame",n._onframe,n),N8e(s,n),L8e(s,n),$Ye(n),n}return $ze(t,e),t.prototype._onframe=function(){if(!this._disposed){H8e(this);var e=this._scheduler;if(this[v8e]){var t=this[v8e].silent;this[_8e]=!0;try{E8e(this),A8e.update.call(this,null,this[v8e].updateParams)}catch(NO){throw this[_8e]=!1,this[v8e]=null,NO}this._zr.flush(),this[_8e]=!1,this[v8e]=null,O8e.call(this,t),M8e.call(this,t)}else if(e.unfinished){var i=1,a=this._model,n=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),I8e(this,a),e.performVisualTasks(a),B8e(this,this._model,n,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,i){if(!this[_8e])if(this._disposed)this.id;else{var a,n,s;if(EYe(t)&&(i=t.lazyUpdate,a=t.silent,n=t.replaceMerge,s=t.transition,t=t.notMerge),this[_8e]=!0,!this._model||t){var o=new R2e(this._api),r=this._theme,l=this._model=new y2e;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,r,this._locale,o)}this._model.setOption(e,{replaceMerge:n},Z8e);var c={seriesTransition:s,optionChanged:!0};if(i)this[v8e]={silent:a,updateParams:c},this[_8e]=!1,this.getZr().wakeUp();else{try{E8e(this),A8e.update.call(this,null,c)}catch(NO){throw this[v8e]=null,this[_8e]=!1,NO}this._ssr||this._zr.flush(),this[v8e]=null,this[_8e]=!1,O8e.call(this,a),M8e.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Uze.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Uze.svgSupported){var e=this._zr;return hYe(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,i=this._model,a=[],n=this;hYe(t,function(e){i.eachComponent({mainType:e},function(e){var t=n._componentsMap[e.__viewId];t.group.ignore||(a.push(t),t.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return hYe(a,function(e){e.group.ignore=!1}),s}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,i=this.group,a=Math.min,n=Math.max,s=1/0;if(i6e[i]){var o=s,r=s,l=-1/0,c=-1/0,d=[],u=e&&e.pixelRatio||this.getDevicePixelRatio();hYe(t6e,function(s,u){if(s.group===i){var p=t?s.getZr().painter.getSvgDom().innerHTML:s.renderToCanvas(oYe(e)),h=s.getDom().getBoundingClientRect();o=a(h.left,o),r=a(h.top,r),l=n(h.right,l),c=n(h.bottom,c),d.push({dom:p,left:h.left,top:h.top})}});var p=(l*=u)-(o*=u),h=(c*=u)-(r*=u),f=Gze.createCanvas(),g=Wqe(f,{renderer:t?"svg":"canvas"});if(g.resize({width:p,height:h}),t){var m="";return hYe(d,function(e){var t=e.left-o,i=e.top-r;m+='<g transform="translate('+t+","+i+')">'+e.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new kZe({shape:{x:0,y:0,width:p,height:h},style:{fill:e.connectedBackgroundColor}})),hYe(d,function(e){var t=new bZe({style:{x:e.left*u-o,y:e.top*u-r,image:e.dom}});g.add(t)}),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t){return R8e(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return R8e(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var i;if(!this._disposed)return hYe(TKe(this._model,e),function(e,a){a.indexOf("Models")>=0&&hYe(e,function(e){var n=e.coordinateSystem;if(n&&n.containPoint)i=i||!!n.containPoint(t);else if("seriesModels"===a){var s=this._chartsMap[e.__viewId];s&&s.containPoint&&(i=i||s.containPoint(t,e))}},this)},this),!!i;this.id},t.prototype.getVisual=function(e,t){var i=TKe(this._model,e,{defaultMainType:"series"}),a=i.seriesModel.getData(),n=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?a.indexOfRawIndex(i.dataIndex):null;return null!=n?function(e,t,i){switch(i){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,i)}}(a,n,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,i,a=this;hYe(j8e,function(e){var t=function(t){var i,n=a.getModel(),s=t.target;if("globalout"===e?i={}:s&&k4e(s,function(e){var t=HZe(e);if(t&&null!=t.dataIndex){var a=t.dataModel||n.getSeriesByIndex(t.seriesIndex);return i=a&&a.getDataParams(t.dataIndex,t.dataType,s)||{},!0}if(t.eventData)return i=lYe({},t.eventData),!0},!0),i){var o=i.componentType,r=i.componentIndex;"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=i.seriesIndex);var l=o&&null!=r&&n.getComponent(o,r),c=l&&a["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=t,i.type=e,a._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:l,view:c},a.trigger(e,i)}};t.zrEventfulCallAtLast=!0,a._zr.on(e,t,a)}),hYe(K8e,function(e,t){a._messageCenter.on(t,function(e){this.trigger(t,e)},a)}),hYe(["selectchanged"],function(e){a._messageCenter.on(e,function(t){this.trigger(e,t)},a)}),e=this._messageCenter,t=this,i=this._api,e.on("selectchanged",function(e){var a=i.getModel();e.isFromClick?(E4e("map","selectchanged",t,a,e),E4e("pie","selectchanged",t,a,e)):"select"===e.fromAction?(E4e("map","selected",t,a,e),E4e("pie","selected",t,a,e)):"unselect"===e.fromAction&&(E4e("map","unselected",t,a,e),E4e("pie","unselected",t,a,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&OKe(this.getDom(),n6e,"");var e=this,t=e._api,i=e._model;hYe(e._componentsViews,function(e){e.dispose(i,t)}),hYe(e._chartsViews,function(e){e.dispose(i,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete t6e[e.id]}},t.prototype.resize=function(e){if(!this[_8e])if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var i=t.resetOption("media"),a=e&&e.silent;this[v8e]&&(null==a&&(a=this[v8e].silent),i=!0,this[v8e]=null),this[_8e]=!0;try{i&&E8e(this),A8e.update.call(this,{type:"resize",animation:lYe({duration:0},e&&e.animation)})}catch(NO){throw this[_8e]=!1,NO}this[_8e]=!1,O8e.call(this,a),M8e.call(this,a)}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(EYe(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),e6e[e]){var i=e6e[e](this._api,t),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=lYe({},e);return t.type=K8e[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(EYe(t)||(t={silent:!!t}),q8e[e.type]&&this._model)if(this[_8e])this._pendingActions.push(e);else{var i=t.silent;D8e.call(this,e,i);var a=t.flush;a?this._zr.flush():!1!==a&&Uze.browser.weChat&&this._throttledZrFlush(),O8e.call(this,i),M8e.call(this,i)}},t.prototype.updateLabelLayout=function(){p8e.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],i=e.currentStates,a=0;a<i.length;a++){var n=i[a];"emphasis"!==n&&"blur"!==n&&"select"!==n&&t.push(n)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function i(e,t){if(!e.preventAutoZ){var i=e.get("z")||0,n=e.get("zlevel")||0;t.eachRendered(function(e){return a(e,i,n,-1/0),!0})}}function a(e,t,i,n){var s=e.getTextContent(),o=e.getTextGuideLine();if(e.isGroup)for(var r=e.childrenRef(),l=0;l<r.length;l++)n=Math.max(a(r[l],t,i,n),n);else e.z=t,e.zlevel=i,n=Math.max(e.z2,n);if(s&&(s.z=t,s.zlevel=i,isFinite(n)&&(s.z2=n+2)),o){var c=e.textGuideLineConfig;o.z=t,o.zlevel=i,isFinite(n)&&(o.z2=n+(c&&c.showAbove?1:-1))}return n}function n(e,t){t.eachRendered(function(e){if(!jJe(e)){var t=e.getTextContent(),i=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function s(e,i){var a=e.getModel("stateAnimation"),n=e.isAnimationEnabled(),s=a.get("duration"),o=s>0?{duration:s,delay:a.get("delay"),easing:a.get("easing")}:null;i.eachRendered(function(e){if(e.states&&e.states.emphasis){if(jJe(e))return;if(e instanceof fZe&&function(e){var t=GZe(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var i=e.states.select||{};t.selectFill=i.style&&i.style.fill||null,t.selectStroke=i.style&&i.style.stroke||null}(e),e.__dirty){var i=e.prevStates;i&&e.useStates(i)}if(n){e.stateTransition=o;var a=e.getTextContent(),s=e.getTextGuideLine();a&&(a.stateTransition=o),s&&(s.stateTransition=o)}e.__dirty&&t(e)}})}E8e=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),k8e(e,!0),k8e(e,!1),t.plan()},k8e=function(e,t){for(var i=e._model,a=e._scheduler,n=t?e._componentsViews:e._chartsViews,s=t?e._componentsMap:e._chartsMap,o=e._zr,r=e._api,l=0;l<n.length;l++)n[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,d=!l&&s[c];if(!d){var u=LKe(e.type);(d=new(t?k3e.getClass(u.main,u.sub):I3e.getClass(u.sub))).init(i,r),s[c]=d,n.push(d),o.add(d.group)}e.__viewId=d.__id=c,d.__alive=!0,d.__model=e,d.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&a.prepareView(d,e,i,r)}t?i.eachComponent(function(e,t){"series"!==e&&c(t)}):i.eachSeries(c);for(l=0;l<n.length;){var d=n[l];d.__alive?l++:(!t&&d.renderTask.dispose(),o.remove(d.group),d.dispose(i,r),n.splice(l,1),s[d.__id]===d&&delete s[d.__id],d.__id=d.group.__ecComponentInfo=null)}},T8e=function(e,t,i,a,n){var s=e._model;if(s.setUpdatePayload(i),a){var o={};o[a+"Id"]=i[a+"Id"],o[a+"Index"]=i[a+"Index"],o[a+"Name"]=i[a+"Name"];var r={mainType:a,query:o};n&&(r.subType=n);var l,c=i.excludeSeriesId;null!=c&&(l=YYe(),hYe(hKe(c),function(e){var t=xKe(e,null);null!=t&&l.set(t,!0)})),s&&s.eachComponent(r,function(t){if(!(l&&null!=l.get(t.id)))if(MQe(i))if(t instanceof v3e)i.type!==KZe||i.notBlur||t.get(["emphasis","disabled"])||function(e,t,i){var a=e.seriesIndex,n=e.getData(t.dataType);if(n){var s=CKe(n,t);s=(yYe(s)?s[0]:s)||0;var o=n.getItemGraphicEl(s);if(!o)for(var r=n.count(),l=0;!o&&l<r;)o=n.getItemGraphicEl(l++);if(o){var c=HZe(o);xQe(a,c.focus,c.blurScope,i)}else{var d=e.get(["emphasis","focus"]),u=e.get(["emphasis","blurScope"]);null!=d&&xQe(a,d,u,i)}}}(t,i,e._api);else{var a=wQe(t.mainType,t.componentIndex,i.name,e._api),n=a.focusSelf,s=a.dispatchers;i.type===KZe&&n&&!i.notBlur&&SQe(t.mainType,t.componentIndex,e._api),s&&hYe(s,function(e){i.type===KZe?fQe(e):gQe(e)})}else OQe(i)&&t instanceof v3e&&(!function(e,t){if(OQe(t)){var i=t.dataType,a=CKe(e.getData(i),t);yYe(a)||(a=[a]),e[t.type===JZe?"toggleSelect":t.type===ZZe?"select":"unselect"](a,i)}}(t,i,e._api),CQe(t),U8e(e))},e),s&&s.eachComponent(r,function(t){l&&null!=l.get(t.id)||d(e["series"===a?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else hYe([].concat(e._componentsViews).concat(e._chartsViews),d);function d(a){a&&a.__alive&&a[t]&&a[t](a.__model,s,e._api,i)}},A8e={prepareAndUpdate:function(e){E8e(this),A8e.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,i){var a=this._model,n=this._api,s=this._zr,o=this._coordSysMgr,r=this._scheduler;if(a){a.setUpdatePayload(t),r.restoreData(a,t),r.performSeriesTasks(a),o.create(a,n),r.performDataProcessorTasks(a,t),I8e(this,a),o.update(a,n),e(a),r.performVisualTasks(a,t),P8e(this,a,n,t,i);var l=a.get("backgroundColor")||"transparent",c=a.get("darkMode");s.setBackgroundColor(l),null!=c&&"auto"!==c&&s.setDarkMode(c),p8e.trigger("afterupdate",a,n)}},updateTransform:function(t){var i=this,a=this._model,n=this._api;if(a){a.setUpdatePayload(t);var s=[];a.eachComponent(function(e,o){if("series"!==e){var r=i.getViewOfComponentModel(o);if(r&&r.__alive)if(r.updateTransform){var l=r.updateTransform(o,a,n,t);l&&l.update&&s.push(r)}else s.push(r)}});var o=YYe();a.eachSeries(function(e){var s=i._chartsMap[e.__viewId];if(s.updateTransform){var r=s.updateTransform(e,a,n,t);r&&r.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(a),this._scheduler.performVisualTasks(a,t,{setDirty:!0,dirtyMap:o}),B8e(this,a,n,t,{},o),p8e.trigger("afterupdate",a,n)}},updateView:function(t){var i=this._model;i&&(i.setUpdatePayload(t),I3e.markUpdateMethod(t,"updateView"),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0}),P8e(this,i,this._api,t,{}),p8e.trigger("afterupdate",i,this._api))},updateVisual:function(t){var i=this,a=this._model;a&&(a.setUpdatePayload(t),a.eachSeries(function(e){e.getData().clearAllVisual()}),I3e.markUpdateMethod(t,"updateVisual"),e(a),this._scheduler.performVisualTasks(a,t,{visualType:"visual",setDirty:!0}),a.eachComponent(function(e,n){if("series"!==e){var s=i.getViewOfComponentModel(n);s&&s.__alive&&s.updateVisual(n,a,i._api,t)}}),a.eachSeries(function(e){i._chartsMap[e.__viewId].updateVisual(e,a,i._api,t)}),p8e.trigger("afterupdate",a,this._api))},updateLayout:function(e){A8e.update.call(this,e)}},R8e=function(e,t,i,a){if(e._disposed)e.id;else for(var n,s=e._model,o=e._coordSysMgr.getCoordinateSystems(),r=TKe(s,i),l=0;l<o.length;l++){var c=o[l];if(c[t]&&null!=(n=c[t](s,r,a)))return n}},I8e=function(e,t){var i=e._chartsMap,a=e._scheduler;t.eachSeries(function(e){a.updateStreamModes(e,i[e.__viewId])})},D8e=function(e,t){var i=this,a=this.getModel(),n=e.type,s=e.escapeConnect,o=q8e[n],r=o.actionInfo,l=(r.update||"update").split(":"),c=l.pop(),d=null!=l[0]&&LKe(l[0]);this[_8e]=!0;var u=[e],p=!1;e.batch&&(p=!0,u=fYe(e.batch,function(t){return(t=cYe(lYe({},t),e)).batch=null,t}));var h,f=[],g=OQe(e),m=MQe(e);if(m&&yQe(this._api),hYe(u,function(t){if((h=(h=o.action(t,i._model,i._api))||lYe({},t)).type=r.event||h.type,f.push(h),m){var a=AKe(e),n=a.queryOptionMap,s=a.mainTypeSpecified?n.keys()[0]:"series";T8e(i,c,t,s),U8e(i)}else g?(T8e(i,c,t,"series"),U8e(i)):d&&T8e(i,c,t,d.main,d.sub)}),"none"!==c&&!m&&!g&&!d)try{this[v8e]?(E8e(this),A8e.update.call(this,e),this[v8e]=null):A8e[c].call(this,e)}catch(NO){throw this[_8e]=!1,NO}if(h=p?{type:r.event||n,escapeConnect:s,batch:f}:f[0],this[_8e]=!1,!t){var _=this._messageCenter;if(_.trigger(h.type,h),g){var v={type:"selectchanged",escapeConnect:s,selected:EQe(a),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};_.trigger(v.type,v)}}},O8e=function(e){for(var t=this._pendingActions;t.length;){var i=t.shift();D8e.call(this,i,e)}},M8e=function(e){!e&&this.trigger("updated")},N8e=function(e,t){e.on("rendered",function(i){t.trigger("rendered",i),!e.animation.isFinished()||t[v8e]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},L8e=function(e,t){e.on("mouseover",function(e){var i=k4e(e.target,DQe);i&&(!function(e,t,i){var a=HZe(e),n=wQe(a.componentMainType,a.componentIndex,a.componentHighDownName,i),s=n.dispatchers,o=n.focusSelf;s?(o&&SQe(a.componentMainType,a.componentIndex,i),hYe(s,function(e){return pQe(e,t)})):(xQe(a.seriesIndex,a.focus,a.blurScope,i),"self"===a.focus&&SQe(a.componentMainType,a.componentIndex,i),pQe(e,t))}(i,e,t._api),U8e(t))}).on("mouseout",function(e){var i=k4e(e.target,DQe);i&&(!function(e,t,i){yQe(i);var a=HZe(e),n=wQe(a.componentMainType,a.componentIndex,a.componentHighDownName,i).dispatchers;n?hYe(n,function(e){return hQe(e,t)}):hQe(e,t)}(i,e,t._api),U8e(t))}).on("click",function(e){var i=k4e(e.target,function(e){return null!=HZe(e).dataIndex},!0);if(i){var a=i.selected?"unselect":"select",n=HZe(i);t._api.dispatchAction({type:a,dataType:n.dataType,dataIndexInside:n.dataIndex,seriesIndex:n.seriesIndex,isFromClick:!0})}})},P8e=function(e,t,i,a,n){!function(e){var t=[],i=[],a=!1;if(e.eachComponent(function(e,n){var s=n.get("zlevel")||0,o=n.get("z")||0,r=n.getZLevelKey();a=a||!!r,("series"===e?i:t).push({zlevel:s,z:o,idx:n.componentIndex,type:e,key:r})}),a){var n,s,o=t.concat(i);uWe(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),hYe(o,function(t){var i=e.getComponent(t.type,t.idx),a=t.zlevel,o=t.key;null!=n&&(a=Math.max(n,a)),o?(a===n&&o!==s&&a++,s=o):s&&(a===n&&a++,s=""),n=a,i.setZLevel(a)})}}(t),F8e(e,t,i,a,n),hYe(e._chartsViews,function(e){e.__alive=!1}),B8e(e,t,i,a,n),hYe(e._chartsViews,function(e){e.__alive||e.remove(t,i)})},F8e=function(e,t,a,o,r,l){hYe(l||e._componentsViews,function(e){var r=e.__model;n(r,e),e.render(r,t,a,o),i(r,e),s(r,e)})},B8e=function(e,t,a,o,r,l){var c=e._scheduler;r=lYe(r||{},{updatedSeries:t.getSeries()}),p8e.trigger("series:beforeupdate",t,a,r);var d=!1;t.eachSeries(function(t){var i=e._chartsMap[t.__viewId];i.__alive=!0;var a=i.renderTask;c.updatePayload(a,o),n(t,i),l&&l.get(t.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(d=!0),i.group.silent=!!t.get("silent"),function(e,t){var i=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=i)})}(t,i),CQe(t)}),c.unfinished=d||c.unfinished,p8e.trigger("series:layoutlabels",t,a,r),p8e.trigger("series:transition",t,a,r),t.eachSeries(function(t){var a=e._chartsMap[t.__viewId];i(t,a),s(t,a)}),function(e,t){var i=e._zr,a=i.storage,n=0;a.traverse(function(e){e.isGroup||n++}),n>t.get("hoverLayerThreshold")&&!Uze.node&&!Uze.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var i=e._chartsMap[t.__viewId];i.__alive&&i.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),p8e.trigger("series:afterupdate",t,a,r)},U8e=function(e){e[b8e]=!0,e.getZr().wakeUp()},H8e=function(e){e[b8e]&&(e.getZr().storage.traverse(function(e){jJe(e)||t(e)}),e[b8e]=!1)},$8e=function(e){return new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return $ze(i,t),i.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(t){for(;t;){var i=t.__ecComponentInfo;if(null!=i)return e._model.getComponent(i.mainType,i.index);t=t.parent}},i.prototype.enterEmphasis=function(t,i){fQe(t,i),U8e(e)},i.prototype.leaveEmphasis=function(t,i){gQe(t,i),U8e(e)},i.prototype.enterBlur=function(t){!function(e){cQe(e,nQe)}(t),U8e(e)},i.prototype.leaveBlur=function(t){mQe(t),U8e(e)},i.prototype.enterSelect=function(t){_Qe(t),U8e(e)},i.prototype.leaveSelect=function(t){vQe(t),U8e(e)},i.prototype.getModel=function(){return e.getModel()},i.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},i.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},i}(E2e))(e)},V8e=function(e){function t(e,t){for(var i=0;i<e.length;i++){e[i][x8e]=t}}hYe(K8e,function(i,a){e._messageCenter.on(a,function(i){if(i6e[e.group]&&0!==e[x8e]){if(i&&i.escapeConnect)return;var a=e.makeActionFromEvent(i),n=[];hYe(t6e,function(t){t!==e&&t.group===e.group&&n.push(t)}),t(n,0),hYe(n,function(e){1!==e[x8e]&&e.dispatchAction(a)}),t(n,2)}})})}}(),t}(uGe),W8e=G8e.prototype;W8e.on=S8e("on"),W8e.off=S8e("off"),W8e.one=function(e,t,i){var a=this;this.on.call(this,e,function i(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];t&&t.apply&&t.apply(this,n),a.off(e,i)},i)};var j8e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var q8e={},K8e={},X8e=[],Z8e=[],Q8e=[],J8e={},e6e={},t6e={},i6e={},a6e=+new Date-0,n6e="_echarts_instance_";function s6e(e,t,i){var a=!(i&&i.ssr);if(a){var n=function(e){return t6e[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,n6e)]}(e);if(n)return n}var s=new G8e(e,t,i);return s.id="ec_"+a6e++,t6e[s.id]=s,a&&OKe(e,n6e,s.id),V8e(s),p8e.trigger("afterinit",s),s}function o6e(e,t){J8e[e]=t}function r6e(e){dYe(Z8e,e)<0&&Z8e.push(e)}function l6e(e,t){h6e(X8e,e,t,2e3)}function c6e(e,t){p8e.on(e,t)}function d6e(e,t,i){xYe(t)&&(i=t,t="");var a=EYe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||a).toLowerCase(),t=e.event,K8e[t]||(PYe(y8e.test(a)&&y8e.test(t)),q8e[a]||(q8e[a]={action:i,actionInfo:e}),K8e[t]=a)}function u6e(e,t){h6e(Q8e,e,t,3e3,"visual")}var p6e=[];function h6e(e,t,i,a,n){if((xYe(t)||EYe(t))&&(i=t,t=a),!(dYe(p6e,i)>=0)){p6e.push(i);var s=Q3e.wrapStageHandler(i,n);s.__prio=t,s.__raw=i,e.push(s)}}function f6e(e,t){e6e[e]=t}var g6e=function(e){var t=(e=oYe(e)).type;t||uKe("");var i=t.split(":");2!==i.length&&uKe("");var a=!1;"echarts"===i[0]&&(t=i[1],a=!0),e.__isBuiltIn=a,P5e.set(t,e)};function m6e(e){return null==e?0:e.length||1}function _6e(e){return e}u6e(f8e,j3e),u6e(g8e,K3e),u6e(g8e,X3e),u6e(f8e,w4e),u6e(g8e,C4e),u6e(7e3,function(e,t){e.eachRawSeries(function(i){if(!e.isSeriesFiltered(i)){var a=i.getData();a.hasItemVisual()&&a.each(function(e){var i=a.getItemVisual(e,"decal");i&&(a.ensureUniqueItemVisual(e,"style").decal=l8e(i,t))});var n=a.getVisual("decal");if(n)a.getVisual("style").decal=l8e(n,t)}})}),r6e(X2e),l6e(900,function(e){var t=YYe();e.eachSeries(function(e){var i=e.get("stack");if(i){var a=t.get(i)||t.set(i,[]),n=e.getData(),s={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:e};if(!s.stackedDimension||!s.isStackedByIndex&&!s.stackedByDimension)return;a.length&&n.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(s)}}),t.each(Z2e)}),f6e("default",function(e,t){cYe(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new Uqe,a=new kZe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(a);var n,s=new RZe({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new kZe({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return i.add(o),t.showSpinner&&((n=new DJe({shape:{startAngle:-Z3e/2,endAngle:-Z3e/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Z3e/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Z3e/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=s.getBoundingRect().width,r=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*r-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner&&i?0:5+i/2)+(t.showSpinner?0:i/2)+(i?0:r),c=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:c}),o.setShape({x:l-r,y:c-r,width:2*r,height:2*r}),a.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i}),d6e({type:KZe,event:KZe,update:KZe},jYe),d6e({type:XZe,event:XZe,update:XZe},jYe),d6e({type:ZZe,event:ZZe,update:ZZe},jYe),d6e({type:QZe,event:QZe,update:QZe},jYe),d6e({type:JZe,event:JZe,update:JZe},jYe),o6e("light",f4e),o6e("dark",b4e);var v6e=function(){function e(e,t,i,a,n,s){this._old=e,this._new=t,this._oldKeyGetter=i||_6e,this._newKeyGetter=a||_6e,this.context=n,this._diffModeMultiple="multiple"===s}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var s=0;s<e.length;s++){var o=a[s],r=i[o],l=m6e(r);if(l>1){var c=r.shift();1===r.length&&(i[o]=r[0]),this._update&&this._update(c,s)}else 1===l?(i[o]=null,this._update&&this._update(r,s)):this._remove&&this._remove(s)}this._performRestAdd(n,i)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],s=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,s,"_newKeyGetter");for(var o=0;o<n.length;o++){var r=n[o],l=i[r],c=a[r],d=m6e(l),u=m6e(c);if(d>1&&1===u)this._updateManyToOne&&this._updateManyToOne(c,l),a[r]=null;else if(1===d&&u>1)this._updateOneToMany&&this._updateOneToMany(c,l),a[r]=null;else if(1===d&&1===u)this._update&&this._update(c,l),a[r]=null;else if(d>1&&u>1)this._updateManyToMany&&this._updateManyToMany(c,l),a[r]=null;else if(d>1)for(var p=0;p<d;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(s,a)},e.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=t[a],s=m6e(n);if(s>1)for(var o=0;o<s;o++)this._add&&this._add(n[o]);else 1===s&&this._add&&this._add(n);t[a]=null}},e.prototype._initIndexMap=function(e,t,i,a){for(var n=this._diffModeMultiple,s=0;s<e.length;s++){var o="_ec_"+this[a](e[s],s);if(n||(i[s]=o),t){var r=t[o],l=m6e(r);0===l?(t[o]=s,n&&i.push(o)):1===l?t[o]=[r,s]:r.push(s)}}},e}(),b6e=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function y6e(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var x6e=function(){return function(e){this.otherDims={},null!=e&&lYe(this,e)}}(),S6e=EKe(),w6e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},C6e=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=T6e(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return OYe(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=d5e(this.source),i=!A6e(e),a="",n=[],s=0,o=0;s<e;s++){var r=void 0,l=void 0,c=void 0,d=this.dimensions[o];if(d&&d.storeDimIndex===s)r=t?d.name:null,l=d.type,c=d.ordinalMeta,o++;else{var u=this.getSourceDimension(s);u&&(r=t?u.name:null,l=u.type)}n.push({property:r,type:l,ordinalMeta:c}),!t||null==r||d&&d.isCalculationCoord||(a+=i?r.replace(/\`/g,"`1").replace(/\$/g,"`2"):r),a+="$",a+=w6e[l]||"f",c&&(a+=c.uid),a+="$"}var p=this.source;return{dimensions:n,hash:[p.seriesLayoutBy,p.startIndex,a].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===t)n.isCalculationCoord||(a=n.name),i++;else{var s=this.getSourceDimension(t);s&&(a=s.name)}e.push(a)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function E6e(e){return e instanceof C6e}function k6e(e){for(var t=YYe(),i=0;i<(e||[]).length;i++){var a=e[i],n=EYe(a)?a.name:a;null!=n&&null==t.get(n)&&t.set(n,i)}return t}function T6e(e){var t=S6e(e);return t.dimNameMap||(t.dimNameMap=k6e(e.dimensionsDefine))}function A6e(e){return e>30}var R6e,I6e,D6e,O6e,M6e,N6e,L6e,P6e=EYe,F6e=fYe,B6e="undefined"==typeof Int32Array?Array:Int32Array,$6e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],V6e=["_approximateExtent"],U6e=function(){function e(e,t){var i;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a=!1;E6e(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},s=[],o={},r=!1,l={},c=0;c<i.length;c++){var d=i[c],u=SYe(d)?new x6e({name:d}):d instanceof x6e?d:new x6e(d),p=u.name;u.type=u.type||"float",u.coordDim||(u.coordDim=p,u.coordDimIndex=0);var h=u.otherDims=u.otherDims||{};s.push(p),n[p]=u,null!=l[p]&&(r=!0),u.createInvertedIndices&&(o[p]=[]),0===h.itemName&&(this._nameDimIdx=c),0===h.itemId&&(this._idDimIdx=c),a&&(u.storeDimIndex=c)}if(this.dimensions=s,this._dimInfos=n,this._initGetDimensionInfo(r),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=YYe();hYe(s,function(e){f.set(n[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(null!=i)return i;var a=this._schema.getSourceDimension(t);return a?a.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(CYe(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(null==t)return i.encodeFirstDimNotExtra[e];var a=i.encode[e];return a?a[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,i){var a,n=this;if(e instanceof X5e&&(a=e),!a){var s=this.dimensions,o=n5e(e)||pYe(e)?new u5e(e,s.length):e;a=new X5e;var r=F6e(s,function(e){return{type:n._dimInfos[e].type,property:e}});a.initData(o,r,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=function(e,t){var i={},a=i.encode={},n=YYe(),s=[],o=[],r={};hYe(e.dimensions,function(t){var i,l=e.getDimensionInfo(t),c=l.coordDim;if(c){var d=l.coordDimIndex;y6e(a,c)[d]=t,l.isExtraCoord||(n.set(c,1),"ordinal"!==(i=l.type)&&"time"!==i&&(s[0]=t),y6e(r,c)[d]=e.getDimensionIndex(l.name)),l.defaultTooltip&&o.push(t)}Z1e.each(function(e,t){var i=y6e(a,t),n=l.otherDims[t];null!=n&&!1!==n&&(i[n]=l.name)})});var l=[],c={};n.each(function(e,t){var i=a[t];c[t]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=fYe(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),i.encodeFirstDimNotExtra=c;var d=a.label;d&&d.length&&(s=d.slice());var u=a.tooltip;return u&&u.length?o=u.slice():o.length||(o=s.slice()),a.defaultedLabel=s,a.defaultedTooltip=o,i.userOutput=new b6e(r,t),i}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),a=i.start,n=i.end,s=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=a;o<n;o++){var r=o-a;this._nameList[o]=t[r],s&&L6e(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var a=this._dimInfos[t[i]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==i2e&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store.getProvider();this._updateOrdinalMeta();var a=this._nameList,n=this._idList;if(i.getSource().sourceFormat===Q1e&&!i.pure)for(var s=[],o=e;o<t;o++){var r=i.getItem(o,s);if(!this.hasItemOption&&_Ke(r)&&(this.hasItemOption=!0),r){var l=r.name;null==a[o]&&null!=l&&(a[o]=xKe(l,null));var c=r.id;null==n[o]&&null!=c&&(n[o]=xKe(c,null))}}if(this._shouldMakeIdFromName())for(o=e;o<t;o++)L6e(this,o);R6e(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){P6e(e)?lYe(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return null==i&&null!=this._nameDimIdx&&(i=D6e(this,this._nameDimIdx,t)),null==i&&(i=""),i},e.prototype._getCategory=function(e,t){var i=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[i]:i},e.prototype.getId=function(e){return I6e(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.get(a.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.getByRawIndex(a.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var i=this,a=this._store;return yYe(e)?a.getValues(F6e(e,function(e){return i._getStoreDimIndex(e)}),t):a.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,a=t.length;i<a;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],a=i&&i[t];return null==a||isNaN(a)?-1:a},e.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},e.prototype.each=function(e,t,i){xYe(e)&&(i=t,t=e,e=[]);var a=i||this,n=F6e(O6e(e),this._getStoreDimIndex,this);this._store.each(n,a?vYe(t,a):t)},e.prototype.filterSelf=function(e,t,i){xYe(e)&&(i=t,t=e,e=[]);var a=i||this,n=F6e(O6e(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?vYe(t,a):t),this},e.prototype.selectRange=function(e){var t=this,i={};return hYe(_Ye(e),function(a){var n=t._getStoreDimIndex(a);i[n]=e[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(e,t,i){xYe(e)&&(i=t,t=e,e=[]),i=i||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},i),a},e.prototype.map=function(e,t,i,a){var n=i||a||this,s=F6e(O6e(e),this._getStoreDimIndex,this),o=N6e(this);return o._store=this._store.map(s,n?vYe(t,n):t),o},e.prototype.modify=function(e,t,i,a){var n=i||a||this,s=F6e(O6e(e),this._getStoreDimIndex,this);this._store.modify(s,n?vYe(t,n):t)},e.prototype.downSample=function(e,t,i,a){var n=N6e(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),t,i,a),n},e.prototype.minmaxDownSample=function(e,t){var i=N6e(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},e.prototype.lttbDownSample=function(e,t){var i=N6e(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new z0e(i,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new v6e(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return I6e(e,t)},function(e){return I6e(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},P6e(e)?lYe(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],a=i&&i[t];return null==a?this.getVisual(t):a},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return null==n&&(yYe(n=this.getVisual(t))?n=n.slice():P6e(n)&&(n=lYe({},n)),a[t]=n),n},e.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,P6e(t)?lYe(a,t):a[t]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){P6e(e)?lYe(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?lYe(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,i,a){if(a){var n=HZe(a);n.dataIndex=i,n.dataType=t,n.seriesIndex=e,n.ssrType="chart","group"===a.type&&a.traverse(function(a){var n=HZe(a);n.seriesIndex=e,n.dataIndex=i,n.dataType=t,n.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){hYe(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:F6e(this.dimensions,this._getDimInfo,this),this.hostModel)),M6e(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var i=this[e];xYe(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return t.apply(this,[e].concat(NYe(arguments)))})},e.internalField=(R6e=function(e){var t=e._invertedIndicesMap;hYe(t,function(i,a){var n=e._dimInfos[a],s=n.ordinalMeta,o=e._store;if(s){i=t[a]=new B6e(s.categories.length);for(var r=0;r<i.length;r++)i[r]=-1;for(r=0;r<o.count();r++)i[o.get(n.storeDimIndex,r)]=r}})},D6e=function(e,t,i){return xKe(e._getCategory(t,i),null)},I6e=function(e,t){var i=e._idList[t];return null==i&&null!=e._idDimIdx&&(i=D6e(e,e._idDimIdx,t)),null==i&&(i="e\0\0"+t),i},O6e=function(e){return yYe(e)||(e=null!=e?[e]:[]),e},N6e=function(t){var i=new e(t._schema?t._schema:F6e(t.dimensions,t._getDimInfo,t),t.hostModel);return M6e(i,t),i},M6e=function(e,t){hYe($6e.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,hYe(V6e,function(i){e[i]=oYe(t[i])}),e._calculationInfo=lYe({},t._calculationInfo)},void(L6e=function(e,t){var i=e._nameList,a=e._idList,n=e._nameDimIdx,s=e._idDimIdx,o=i[t],r=a[t];if(null==o&&null!=n&&(i[t]=o=D6e(e,n,t)),null==r&&null!=s&&(a[t]=r=D6e(e,s,t)),null==r&&null!=o){var l=e._nameRepeatCount,c=l[o]=(l[o]||0)+1;r=o,c>1&&(r+="__ec__"+c),a[t]=r}})),e}();function H6e(e,t){n5e(e)||(e=o5e(e));var i=(t=t||{}).coordDimensions||[],a=t.dimensionsDefine||e.dimensionsDefine||[],n=YYe(),s=[],o=function(e,t,i,a){var n=Math.max(e.dimensionsDetectedCount||1,t.length,i.length,a||0);return hYe(t,function(e){var t;EYe(e)&&(t=e.dimsDef)&&(n=Math.max(n,t.length))}),n}(e,i,a,t.dimensionsCount),r=t.canOmitUnusedDimensions&&A6e(o),l=a===e.dimensionsDefine,c=l?T6e(e):k6e(a),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(e,o));for(var u=YYe(d),p=new z5e(o),h=0;h<p.length;h++)p[h]=-1;function f(e){var t=p[e];if(t<0){var i=a[e],n=EYe(i)?i:{name:i},o=new x6e,r=n.name;null!=r&&null!=c.get(r)&&(o.name=o.displayName=r),null!=n.type&&(o.type=n.type),null!=n.displayName&&(o.displayName=n.displayName);var l=s.length;return p[e]=l,o.storeDimIndex=e,s.push(o),o}return s[t]}if(!r)for(h=0;h<o;h++)f(h);u.each(function(e,t){var i=hKe(e).slice();if(1===i.length&&!SYe(i[0])&&i[0]<0)u.set(t,!1);else{var a=u.set(t,[]);hYe(i,function(e,i){var n=SYe(e)?c.get(e):e;null!=n&&n<o&&(a[i]=n,m(f(n),t,i))})}});var g=0;function m(e,t,i){null!=Z1e.get(t)?e.otherDims[t]=i:(e.coordDim=t,e.coordDimIndex=i,n.set(t,!0))}hYe(i,function(e){var t,i,a,n;if(SYe(e))t=e,n={};else{t=(n=e).name;var s=n.ordinalMeta;n.ordinalMeta=null,(n=lYe({},n)).ordinalMeta=s,i=n.dimsDef,a=n.otherDims,n.name=n.coordDim=n.coordDimIndex=n.dimsDef=n.otherDims=null}var r=u.get(t);if(!1!==r){if(!(r=hKe(r)).length)for(var c=0;c<(i&&i.length||1);c++){for(;g<o&&null!=f(g).coordDim;)g++;g<o&&r.push(g++)}hYe(r,function(e,s){var o=f(e);if(l&&null!=n.type&&(o.type=n.type),m(cYe(o,n),t,s),null==o.name&&i){var r=i[s];!EYe(r)&&(r={name:r}),o.name=o.displayName=r.name,o.defaultTooltip=r.defaultTooltip}a&&cYe(o.otherDims,a)})}});var _=t.generateCoord,v=t.generateCoordCount,b=null!=v;v=_?v||1:0;var y=_||"value";function x(e){null==e.name&&(e.name=e.coordDim)}if(r)hYe(s,function(e){x(e)}),s.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var w=f(S);null==w.coordDim&&(w.coordDim=z6e(y,n,b),w.coordDimIndex=0,(!_||v<=0)&&(w.isExtraCoord=!0),v--),x(w),null!=w.type||p2e(e,S)!==o2e&&(!w.isExtraCoord||null==w.otherDims.itemName&&null==w.otherDims.seriesName)||(w.type="ordinal")}return function(e){for(var t=YYe(),i=0;i<e.length;i++){var a=e[i],n=a.name,s=t.get(n)||0;s>0&&(a.name=n+(s-1)),s++,t.set(n,s)}}(s),new C6e({source:e,dimensions:s,fullDimensionCount:o,dimensionOmitted:r})}function z6e(e,t,i){if(i||t.hasKey(e)){for(var a=0;t.hasKey(e+a);)a++;e+=a}return t.set(e,!0),e}var Y6e=function(){return function(e){this.coordSysDims=[],this.axisMap=YYe(),this.categoryAxisMap=YYe(),this.coordSysName=e}}();var G6e={cartesian2d:function(e,t,i,a){var n=e.getReferringComponents("xAxis",RKe).models[0],s=e.getReferringComponents("yAxis",RKe).models[0];t.coordSysDims=["x","y"],i.set("x",n),i.set("y",s),W6e(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),W6e(s)&&(a.set("y",s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,i,a){var n=e.getReferringComponents("singleAxis",RKe).models[0];t.coordSysDims=["single"],i.set("single",n),W6e(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,i,a){var n=e.getReferringComponents("polar",RKe).models[0],s=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],i.set("radius",s),i.set("angle",o),W6e(s)&&(a.set("radius",s),t.firstCategoryDimIndex=0),W6e(o)&&(a.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,i,a){t.coordSysDims=["lng","lat"]},parallel:function(e,t,i,a){var n=e.ecModel,s=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=s.dimensions.slice();hYe(s.parallelAxisIndex,function(e,s){var r=n.getComponent("parallelAxis",e),l=o[s];i.set(l,r),W6e(r)&&(a.set(l,r),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=s))})}};function W6e(e){return"category"===e.get("type")}function j6e(e,t,i){var a,n,s,o=(i=i||{}).byIndex,r=i.stackedCoordDimension;!function(e){return!E6e(e.schema)}(t)?(n=t.schema,a=n.dimensions,s=t.store):a=t;var l,c,d,u,p=!(!e||!e.get("stack"));if(hYe(a,function(e,t){SYe(e)&&(a[t]=e={name:e}),p&&!e.isExtraCoord&&(o||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||r&&r!==e.coordDim||(c=e))}),!c||o||l||(o=!0),c){d="__\0ecstackresult_"+e.id,u="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=c.coordDim,f=c.type,g=0;hYe(a,function(e){e.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:u,coordDim:u,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};n?(s&&(m.storeDimIndex=s.ensureCalculationDimension(u,f),_.storeDimIndex=s.ensureCalculationDimension(d,f)),n.appendCalculationDimension(m),n.appendCalculationDimension(_)):(a.push(m),a.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:u,stackResultDimension:d}}function q6e(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function K6e(e,t,i){i=i||{};var a,n,s=t.getSourceManager();n=(a=s.getSource()).sourceFormat===Q1e;var o=function(e){var t=e.get("coordinateSystem"),i=new Y6e(t),a=G6e[t];if(a)return a(e,i,i.axisMap,i.categoryAxisMap),i}(t),r=function(e,t){var i,a=e.get("coordinateSystem"),n=T2e.get(a);return t&&t.coordSysDims&&(i=fYe(t.coordSysDims,function(e){var i={name:e},a=t.axisMap.get(e);if(a){var n=a.get("type");i.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(n)}return i})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}(t,o),l=i.useEncodeDefaulter,c=xYe(l)?l:l?bYe(d2e,r,t):null,d=H6e(a,{coordDimensions:r,generateCoord:i.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!n}),u=function(e,t,i){var a,n;return i&&hYe(e,function(e,s){var o=e.coordDim,r=i.categoryAxisMap.get(o);r&&(null==a&&(a=s),e.ordinalMeta=r.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(n=!0)}),n||null==a||(e[a].otherDims.itemName=0),a}(d.dimensions,i.createInvertedIndices,o),p=n?null:s.getSharedDataStore(d),h=j6e(t,{schema:d,store:p}),f=new U6e(d,t);f.setCalculationInfo(h);var g=null!=u&&function(e){if(e.sourceFormat===Q1e){return!yYe(mKe(function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}}(a)?function(e,t,i,a){return a===u?i:this.defaultDimValueGetter(e,t,i,a)}:null;return f.hasItemOption=!1,f.initData(n?a:p,null,g),f}var X6e=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();UKe(X6e);var Z6e=0,Q6e=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Z6e}return e.createByAxisModel=function(t){var i=t.option,a=i.data,n=a&&fYe(a,J6e);return new e({categories:n,needCollect:!n,deduplication:!1!==i.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!SYe(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return null==(t=a.get(e))&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=YYe(this.categories))},e}();function J6e(e){return EYe(e)&&null!=e.value?e.value:e+""}function e9e(e){return"interval"===e.type||"log"===e.type}function t9e(e,t,i,a){var n={},s=e[1]-e[0],o=n.interval=oKe(s/t);null!=i&&o<i&&(o=n.interval=i),null!=a&&o>a&&(o=n.interval=a);var r=n.intervalPrecision=a9e(o);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),n9e(e,0,t),n9e(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(n.niceTickExtent=[Xqe(Math.ceil(e[0]/o)*o,r),Xqe(Math.floor(e[1]/o)*o,r)],e),n}function i9e(e){var t=Math.pow(10,sKe(e)),i=e/t;return i?2===i?i=3:3===i?i=5:i*=2:i=1,Xqe(i*t)}function a9e(e){return Qqe(e)+2}function n9e(e,t,i){e[t]=Math.max(Math.min(e[t],i[1]),i[0])}function s9e(e,t){return e>=t[0]&&e<=t[1]}function o9e(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function r9e(e,t){return e*(t[1]-t[0])+t[0]}var l9e=function(e){function t(t){var i=e.call(this,t)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Q6e({})),yYe(a)&&(a=new Q6e({categories:fYe(a,function(e){return EYe(e)?e.value:e})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return $ze(t,e),t.prototype.parse=function(e){return null==e?NaN:SYe(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return s9e(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return o9e(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(r9e(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,i=t[0];i<=t[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],n=0,s=this._ordinalMeta.categories.length,o=Math.min(s,t.length);n<o;++n){var r=t[n];i[n]=r,a[r]=n}for(var l=0;n<s;++n){for(;null!=a[l];)l++;i.push(l),a[l]=n}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[t];return null==i?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(X6e);X6e.registerClass(l9e);var c9e=Xqe,d9e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return $ze(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s9e(e,this._extent)},t.prototype.normalize=function(e){return o9e(e,this._extent)},t.prototype.scale=function(e){return r9e(e,this._extent)},t.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a9e(e)},t.prototype.getTicks=function(e){var t=this._interval,i=this._extent,a=this._niceExtent,n=this._intervalPrecision,s=[];if(!t)return s;i[0]<a[0]&&(e?s.push({value:c9e(a[0]-t,n)}):s.push({value:i[0]}));for(var o=a[0];o<=a[1]&&(s.push({value:o}),(o=c9e(o+t,n))!==s[s.length-1].value);)if(s.length>1e4)return[];var r=s.length?s[s.length-1].value:a[1];return i[1]>r&&(e?s.push({value:c9e(r+t,n)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),i=[],a=this.getExtent(),n=1;n<t.length;n++){for(var s=t[n],o=t[n-1],r=0,l=[],c=(s.value-o.value)/e;r<e-1;){var d=c9e(o.value+(r+1)*c);d>a[0]&&d<a[1]&&l.push(d),r++}i.push(l)}return i},t.prototype.getLabel=function(e,t){if(null==e)return"";var i=t&&t.precision;return null==i?i=Qqe(e.value)||0:"auto"===i&&(i=this._intervalPrecision),I1e(c9e(e.value,i,!0))},t.prototype.calcNiceTicks=function(e,t,i){e=e||5;var a=this._extent,n=a[1]-a[0];if(isFinite(n)){n<0&&(n=-n,a.reverse());var s=t9e(a,e,t,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var i=Math.abs(t[0]);e.fixMax||(t[1]+=i/2),t[0]-=i/2}else t[1]=1;var a=t[1]-t[0];isFinite(a)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var n=this._interval;e.fixMin||(t[0]=c9e(Math.floor(t[0]/n)*n)),e.fixMax||(t[1]=c9e(Math.ceil(t[1]/n)*n))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(X6e);X6e.registerClass(d9e);var u9e="undefined"!=typeof Float32Array,p9e=u9e?Float32Array:Array;function h9e(e){return yYe(e)?u9e?new Float32Array(e):e:new p9e(e)}function f9e(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function g9e(e){return e.dim+e.index}function m9e(e,t){var i=[];return t.eachSeriesByType(e,function(e){b9e(e)&&i.push(e)}),i}function _9e(e){var t=function(e){var t={};hYe(e,function(e){var i=e.coordinateSystem.getBaseAxis();if("time"===i.type||"value"===i.type)for(var a=e.getData(),n=i.dim+"_"+i.index,s=a.getDimensionIndex(a.mapDimension(i.dim)),o=a.getStore(),r=0,l=o.count();r<l;++r){var c=o.get(s,r);t[n]?t[n].push(c):t[n]=[c]}});var i={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(e,t){return e-t});for(var s=null,o=1;o<n.length;++o){var r=n[o]-n[o-1];r>0&&(s=null===s?r:Math.min(s,r))}i[a]=s}}return i}(e),i=[];return hYe(e,function(e){var a,n=e.coordinateSystem.getBaseAxis(),s=n.getExtent();if("category"===n.type)a=n.getBandWidth();else if("value"===n.type||"time"===n.type){var o=n.dim+"_"+n.index,r=t[o],l=Math.abs(s[1]-s[0]),c=n.scale.getExtent(),d=Math.abs(c[1]-c[0]);a=r?l/d*r:l}else{var u=e.getData();a=Math.abs(s[1]-s[0])/u.count()}var p=Kqe(e.get("barWidth"),a),h=Kqe(e.get("barMaxWidth"),a),f=Kqe(e.get("barMinWidth")||(y9e(e)?.5:1),a),g=e.get("barGap"),m=e.get("barCategoryGap");i.push({bandWidth:a,barWidth:p,barMaxWidth:h,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:g9e(n),stackId:f9e(e)})}),function(e){var t={};hYe(e,function(e,i){var a=e.axisKey,n=e.bandWidth,s=t[a]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=s.stacks;t[a]=s;var r=e.stackId;o[r]||s.autoWidthCount++,o[r]=o[r]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[r].width&&(o[r].width=l,l=Math.min(s.remainedWidth,l),s.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[r].maxWidth=c);var d=e.barMinWidth;d&&(o[r].minWidth=d);var u=e.barGap;null!=u&&(s.gap=u);var p=e.barCategoryGap;null!=p&&(s.categoryGap=p)});var i={};return hYe(t,function(e,t){i[t]={};var a=e.stacks,n=e.bandWidth,s=e.categoryGap;if(null==s){var o=_Ye(a).length;s=Math.max(35-4*o,15)+"%"}var r=Kqe(s,n),l=Kqe(e.gap,1),c=e.remainedWidth,d=e.autoWidthCount,u=(c-r)/(d+(d-1)*l);u=Math.max(u,0),hYe(a,function(e){var t=e.maxWidth,i=e.minWidth;if(e.width){a=e.width;t&&(a=Math.min(a,t)),i&&(a=Math.max(a,i)),e.width=a,c-=a+l*a,d--}else{var a=u;t&&t<a&&(a=Math.min(t,c)),i&&i>a&&(a=i),a!==u&&(e.width=a,c-=a+l*a,d--)}}),u=(c-r)/(d+(d-1)*l),u=Math.max(u,0);var p,h=0;hYe(a,function(e,t){e.width||(e.width=u),p=e,h+=e.width*(1+l)}),p&&(h-=p.width*l);var f=-h/2;hYe(a,function(e,a){i[t][a]=i[t][a]||{bandWidth:n,offset:f,width:e.width},f+=e.width*(1+l)})}),i}(i)}function v9e(e,t){var i=m9e(e,t),a=_9e(i);hYe(i,function(e){var t=e.getData(),i=e.coordinateSystem.getBaseAxis(),n=f9e(e),s=a[g9e(i)][n],o=s.offset,r=s.width;t.setLayout({bandWidth:s.bandWidth,offset:o,size:r})})}function b9e(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function y9e(e){return e.pipelineContext&&e.pipelineContext.large}var x9e=function(e){function t(t){var i=e.call(this,t)||this;return i.type="time",i}return $ze(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return h1e(e.value,r1e[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(u1e(this._minLevelUnit))]||r1e.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,i){var a=this.getSetting("useUTC");return function(e,t,i,a,n){var s=null;if(SYe(i))s=i;else if(xYe(i))s=i(e.value,t,{level:e.level});else{var o=lYe({},s1e);if(e.level>0)for(var r=0;r<l1e.length;++r)o[l1e[r]]="{primary|"+o[l1e[r]]+"}";var l=i?!1===i.inherit?i:cYe(i,o):o,c=f1e(e.value,n);if(l[c])s=l[c];else if(l.inherit){for(r=c1e.indexOf(c)-1;r>=0;--r)if(l[c]){s=l[c];break}s=s||o.none}if(yYe(s)){var d=null==e.level?0:e.level>=0?e.level:s.length+e.level;s=s[d=Math.min(d,s.length-1)]}}return h1e(new Date(e.value),s,n,a)}(e,t,i,this.getSetting("locale"),a)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,i=[];if(!e)return i;i.push({value:t[0],level:0});var a=this.getSetting("useUTC"),n=function(e,t,i,a){var n=1e4,s=c1e,o=0;function r(e,t,i,n,s,o,r){for(var l=new Date(t),c=t,d=l[n]();c<i&&c<=a[1];)r.push({value:c}),d+=e,l[s](d),c=l.getTime();r.push({value:c,notAdd:!0})}function l(e,n,s){var o=[],l=!n.length;if(!function(e,t,i,a){var n=nKe(t),s=nKe(i),o=function(e){return g1e(n,e,a)===g1e(s,e,a)},r=function(){return o("year")},l=function(){return r()&&o("month")},c=function(){return l()&&o("day")},d=function(){return c()&&o("hour")},u=function(){return d()&&o("minute")},p=function(){return u()&&o("second")},h=function(){return p()&&o("millisecond")};switch(e){case"year":return r();case"month":return l();case"day":return c();case"hour":return d();case"minute":return u();case"second":return p();case"millisecond":return h()}}(u1e(e),a[0],a[1],i)){l&&(n=[{value:A9e(new Date(a[0]),e,i)},{value:a[1]}]);for(var c=0;c<n.length-1;c++){var d=n[c].value,u=n[c+1].value;if(d!==u){var p=void 0,h=void 0,f=void 0,g=!1;switch(e){case"year":p=Math.max(1,Math.round(t/a1e/365)),h=m1e(i),f=w1e(i);break;case"half-year":case"quarter":case"month":p=C9e(t),h=_1e(i),f=C1e(i);break;case"week":case"half-week":case"day":p=w9e(t),h=v1e(i),f=E1e(i),g=!0;break;case"half-day":case"quarter-day":case"hour":p=E9e(t),h=b1e(i),f=k1e(i);break;case"minute":p=k9e(t,!0),h=y1e(i),f=T1e(i);break;case"second":p=k9e(t,!1),h=x1e(i),f=A1e(i);break;case"millisecond":p=T9e(t),h=S1e(i),f=R1e(i)}r(p,d,u,h,f,g,o),"year"===e&&s.length>1&&0===c&&s.unshift({value:s[0].value-p})}}for(c=0;c<o.length;c++)s.push(o[c]);return o}}for(var c=[],d=[],u=0,p=0,h=0;h<s.length&&o++<n;++h){var f=u1e(s[h]);if(p1e(s[h]))if(l(s[h],c[c.length-1]||[],d),f!==(s[h+1]?u1e(s[h+1]):null)){if(d.length){p=u,d.sort(function(e,t){return e.value-t.value});for(var g=[],m=0;m<d.length;++m){var _=d[m].value;0!==m&&d[m-1].value===_||(g.push(d[m]),_>=a[0]&&_<=a[1]&&u++)}var v=(a[1]-a[0])/t;if(u>1.5*v&&p>v/1.5)break;if(c.push(g),u>v||e===s[h])break}d=[]}}var b=mYe(fYe(c,function(e){return mYe(e,function(e){return e.value>=a[0]&&e.value<=a[1]&&!e.notAdd})}),function(e){return e.length>0}),y=[],x=b.length-1;for(h=0;h<b.length;++h)for(var S=b[h],w=0;w<S.length;++w)y.push({value:S[w].value,level:x-h});y.sort(function(e,t){return e.value-t.value});var C=[];for(h=0;h<y.length;++h)0!==h&&y[h].value===y[h-1].value||C.push(y[h]);return C}(this._minLevelUnit,this._approxInterval,a,t);return(i=i.concat(n)).push({value:t[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=a1e,t[1]+=a1e),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-a1e}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,i){e=e||10;var a=this._extent,n=a[1]-a[0];this._approxInterval=n/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var s=S9e.length,o=Math.min(function(e,t,i,a){for(;i<a;){var n=i+a>>>1;e[n][1]<t?i=n+1:a=n}return i}(S9e,this._approxInterval,0,s),s-1);this._interval=S9e[o][1],this._minLevelUnit=S9e[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return CYe(e)?e:+nKe(e)},t.prototype.contain=function(e){return s9e(this.parse(e),this._extent)},t.prototype.normalize=function(e){return o9e(this.parse(e),this._extent)},t.prototype.scale=function(e){return r9e(e,this._extent)},t.type="time",t}(d9e),S9e=[["second",e1e],["minute",t1e],["hour",i1e],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",n1e/2],["year",n1e]];function w9e(e,t){return(e/=a1e)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function C9e(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function E9e(e){return(e/=i1e)>12?12:e>6?6:e>3.5?4:e>2?2:1}function k9e(e,t){return(e/=t?t1e:e1e)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function T9e(e){return oKe(e)}function A9e(e,t,i){var a=new Date(e);switch(u1e(t)){case"year":case"month":a[C1e(i)](0);case"day":a[E1e(i)](1);case"hour":a[k1e(i)](0);case"minute":a[T1e(i)](0);case"second":a[A1e(i)](0),a[R1e(i)](0)}return a.getTime()}X6e.registerClass(x9e);var R9e=X6e.prototype,I9e=d9e.prototype,D9e=Xqe,O9e=Math.floor,M9e=Math.ceil,N9e=Math.pow,L9e=Math.log,P9e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new d9e,t._interval=0,t}return $ze(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,i=this._extent,a=t.getExtent();return fYe(I9e.getTicks.call(this,e),function(e){var t=e.value,n=Xqe(N9e(this.base,t));return n=t===i[0]&&this._fixMin?B9e(n,a[0]):n,{value:n=t===i[1]&&this._fixMax?B9e(n,a[1]):n}},this)},t.prototype.setExtent=function(e,t){var i=L9e(this.base);e=L9e(Math.max(0,e))/i,t=L9e(Math.max(0,t))/i,I9e.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=R9e.getExtent.call(this);t[0]=N9e(e,t[0]),t[1]=N9e(e,t[1]);var i=this._originalScale.getExtent();return this._fixMin&&(t[0]=B9e(t[0],i[0])),this._fixMax&&(t[1]=B9e(t[1],i[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=L9e(e[0])/L9e(t),e[1]=L9e(e[1])/L9e(t),R9e.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,i=t[1]-t[0];if(!(i===1/0||i<=0)){var a,n=(a=i,Math.pow(10,sKe(a)));for(e/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[Xqe(M9e(t[0]/n)*n),Xqe(O9e(t[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){I9e.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s9e(e=L9e(e)/L9e(this.base),this._extent)},t.prototype.normalize=function(e){return o9e(e=L9e(e)/L9e(this.base),this._extent)},t.prototype.scale=function(e){return e=r9e(e,this._extent),N9e(this.base,e)},t.type="log",t}(X6e),F9e=P9e.prototype;function B9e(e,t){return D9e(e,Qqe(t))}F9e.getMinorTicks=I9e.getMinorTicks,F9e.getLabel=I9e.getLabel,X6e.registerClass(P9e);var $9e=function(){function e(e,t,i){this._prepareParams(e,t,i)}return e.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var a=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var n=t.get("min",!0);null==n&&(n=t.get("startValue",!0));var s=this._modelMinRaw=n;xYe(s)?this._modelMinNum=z9e(e,s({min:i[0],max:i[1]})):"dataMin"!==s&&(this._modelMinNum=z9e(e,s));var o=this._modelMaxRaw=t.get("max",!0);if(xYe(o)?this._modelMaxNum=z9e(e,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=z9e(e,o)),a)this._axisDataLen=t.getCategories().length;else{var r=t.get("boundaryGap"),l=yYe(r)?r:[r||0,r||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Rqe(l[0],1),Rqe(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,a=this._axisDataLen,n=this._boundaryGapInner,s=e?null:i-t||Math.abs(t),o="dataMin"===this._modelMinRaw?t:this._modelMinNum,r="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=o,c=null!=r;null==o&&(o=e?a?0:NaN:t-n[0]*s),null==r&&(r=e?a?a-1:NaN:i+n[1]*s),(null==o||!isFinite(o))&&(o=NaN),(null==r||!isFinite(r))&&(r=NaN);var d=IYe(o)||IYe(r)||e&&!a;this._needCrossZero&&(o>0&&r>0&&!l&&(o=0),o<0&&r<0&&!c&&(r=0));var u=this._determinedMin,p=this._determinedMax;return null!=u&&(o=u,l=!0),null!=p&&(r=p,c=!0),{min:o,max:r,minFixed:l,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(e,t){this[U9e[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[V9e[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),V9e={min:"_determinedMin",max:"_determinedMax"},U9e={min:"_dataMin",max:"_dataMax"};function H9e(e,t,i){var a=e.rawExtentInfo;return a||(a=new $9e(e,t,i),e.rawExtentInfo=a,a)}function z9e(e,t){return null==t?null:IYe(t)?NaN:e.parse(t)}function Y9e(e,t){var i=e.type,a=H9e(e,t,e.getExtent()).calculate();e.setBlank(a.isBlank);var n=a.min,s=a.max,o=t.ecModel;if(o&&"time"===i){var r=m9e("bar",o),l=!1;if(hYe(r,function(e){l=l||e.getBaseAxis()===t.axis}),l){var c=_9e(r),d=function(e,t,i,a){var n=i.axis.getExtent(),s=Math.abs(n[1]-n[0]),o=function(e,t){if(e&&t)return e[g9e(t)]}(a,i.axis);if(void 0===o)return{min:e,max:t};var r=1/0;hYe(o,function(e){r=Math.min(e.offset,r)});var l=-1/0;hYe(o,function(e){l=Math.max(e.offset+e.width,l)}),r=Math.abs(r),l=Math.abs(l);var c=r+l,d=t-e,u=d/(1-(r+l)/s)-d;return t+=u*(l/c),e-=u*(r/c),{min:e,max:t}}(n,s,t,c);n=d.min,s=d.max}}return{extent:[n,s],fixMin:a.minFixed,fixMax:a.maxFixed}}function G9e(e,t){var i=t,a=Y9e(e,i),n=a.extent,s=i.get("splitNumber");e instanceof P9e&&(e.base=i.get("logBase"));var o=e.type,r=i.get("interval"),l="interval"===o||"time"===o;e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:s,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),null!=r&&e.setInterval&&e.setInterval(r)}function W9e(e){var t=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(i,a){return e.scale.getFormattedLabel(i,a,t)}}(t):SYe(t)?function(t){return function(i){var a=e.scale.getLabel(i);return t.replace("{value}",null!=a?a:"")}}(t):xYe(t)?function(t){return function(a,n){return null!=i&&(n=a.value-i),t(j9e(e,a),n,null!=a.level?{level:a.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function j9e(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function q9e(e,t){var i=t*Math.PI/180,a=e.width,n=e.height,s=a*Math.abs(Math.cos(i))+Math.abs(n*Math.sin(i)),o=a*Math.abs(Math.sin(i))+Math.abs(n*Math.cos(i));return new KGe(e.x,e.y,s,o)}function K9e(e){var t=e.get("interval");return null==t?"auto":t}function X9e(e){return"category"===e.type&&0===K9e(e.getLabelModel())}function Z9e(e,t){var i={};return hYe(e.mapDimensionsAll(t),function(t){i[function(e,t){return q6e(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0}),_Ye(i)}var Q9e=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),J9e=[],e7e={registerPreprocessor:r6e,registerProcessor:l6e,registerPostInit:function(e){c6e("afterinit",e)},registerPostUpdate:function(e){c6e("afterupdate",e)},registerUpdateLifecycle:c6e,registerAction:d6e,registerCoordinateSystem:function(e,t){T2e.register(e,t)},registerLayout:function(e,t){h6e(Q8e,e,t,1e3,"layout")},registerVisual:u6e,registerTransform:g6e,registerLoading:f6e,registerMap:function(e,t,i){var a=function(e){return h8e[e]}("registerMap");a&&a(e,t,i)},registerImpl:function(e,t){h8e[e]=t},PRIORITY:m8e,ComponentModel:j1e,ComponentView:k3e,SeriesModel:v3e,ChartView:I3e,registerComponentModel:function(e){j1e.registerClass(e)},registerComponentView:function(e){k3e.registerClass(e)},registerSeriesModel:function(e){v3e.registerClass(e)},registerChartView:function(e){I3e.registerClass(e)},registerSubTypeDefaulter:function(e,t){j1e.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){!function(e,t){Hqe[e]=t}(e,t)}};function t7e(e){yYe(e)?hYe(e,function(e){t7e(e)}):dYe(J9e,e)>=0||(J9e.push(e),xYe(e)&&(e={install:e}),e.install(e7e))}var i7e=EKe();function a7e(e,t){var i=fYe(t,function(t){return e.scale.parse(t)});return"time"===e.type&&i.length>0&&(i.sort(),i.unshift(i[0]),i.push(i[i.length-1])),i}function n7e(e){var t=e.getLabelModel().get("customValues");if(t){var i=W9e(e),a=e.scale.getExtent();return{labels:fYe(mYe(a7e(e,t),function(e){return e>=a[0]&&e<=a[1]}),function(t){var a={value:t};return{formattedLabel:i(a),rawLabel:e.scale.getLabel(a),tickValue:t}})}}return"category"===e.type?function(e){var t=e.getLabelModel(),i=o7e(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(e):function(e){var t=e.scale.getTicks(),i=W9e(e);return{labels:fYe(t,function(t,a){return{level:t.level,formattedLabel:i(t,a),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function s7e(e,t){var i=e.getTickModel().get("customValues");if(i){var a=e.scale.getExtent();return{ticks:mYe(a7e(e,i),function(e){return e>=a[0]&&e<=a[1]})}}return"category"===e.type?function(e,t){var i,a,n=r7e(e,"ticks"),s=K9e(t),o=l7e(n,s);if(o)return o;t.get("show")&&!e.scale.isBlank()||(i=[]);if(xYe(s))i=u7e(e,s,!0);else if("auto"===s){var r=o7e(e,e.getLabelModel());a=r.labelCategoryInterval,i=fYe(r.labels,function(e){return e.tickValue})}else i=d7e(e,a=s,!0);return c7e(n,s,{ticks:i,tickCategoryInterval:a})}(e,t):{ticks:fYe(e.scale.getTicks(),function(e){return e.value})}}function o7e(e,t){var i,a,n=r7e(e,"labels"),s=K9e(t),o=l7e(n,s);return o||(xYe(s)?i=u7e(e,s):(a="auto"===s?function(e){var t=i7e(e).autoInterval;return null!=t?t:i7e(e).autoInterval=e.calculateCategoryInterval()}(e):s,i=d7e(e,a)),c7e(n,s,{labels:i,labelCategoryInterval:a}))}function r7e(e,t){return i7e(e)[t]||(i7e(e)[t]=[])}function l7e(e,t){for(var i=0;i<e.length;i++)if(e[i].key===t)return e[i].value}function c7e(e,t,i){return e.push({key:t,value:i}),i}function d7e(e,t,i){var a=W9e(e),n=e.scale,s=n.getExtent(),o=e.getLabelModel(),r=[],l=Math.max((t||0)+1,1),c=s[0],d=n.count();0!==c&&l>1&&d/l>2&&(c=Math.round(Math.ceil(c/l)*l));var u=X9e(e),p=o.get("showMinLabel")||u,h=o.get("showMaxLabel")||u;p&&c!==s[0]&&g(s[0]);for(var f=c;f<=s[1];f+=l)g(f);function g(e){var t={value:e};r.push(i?e:{formattedLabel:a(t),rawLabel:n.getLabel(t),tickValue:e})}return h&&f-l!==s[1]&&g(s[1]),r}function u7e(e,t,i){var a=e.scale,n=W9e(e),s=[];return hYe(a.getTicks(),function(e){var o=a.getLabel(e),r=e.value;t(e.value,o)&&s.push(i?r:{formattedLabel:n(e),rawLabel:o,tickValue:r})}),s}var p7e=[0,1],h7e=function(){function e(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return e.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Jqe(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},e.prototype.dataToCoord=function(e,t){var i=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&"ordinal"===a.type&&f7e(i=i.slice(),a.count()),qqe(e,p7e,i,t)},e.prototype.coordToData=function(e,t){var i=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&f7e(i=i.slice(),a.count());var n=qqe(e,i,p7e,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),i=fYe(s7e(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,i,a){var n=t.length;if(!e.onBand||i||!n)return;var s,o,r=e.getExtent();if(1===n)t[0].coord=r[0],s=t[1]={coord:r[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,c=(t[n-1].coord-t[0].coord)/l;hYe(t,function(e){e.coord-=c/2});var d=e.scale.getExtent();o=1+d[1]-t[n-1].tickValue,s={coord:t[n-1].coord+c*o,tickValue:d[1]+1},t.push(s)}var u=r[0]>r[1];p(t[0].coord,r[0])&&(a?t[0].coord=r[0]:t.shift());a&&p(r[0],t[0].coord)&&t.unshift({coord:r[0]});p(r[1],s.coord)&&(a?s.coord=r[1]:t.pop());a&&p(s.coord,r[1])&&t.push({coord:r[1]});function p(e,t){return e=Xqe(e),t=Xqe(t),u?e>t:e<t}}(this,i,t.get("alignWithLabel"),e.clamp),i},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),fYe(this.scale.getMinorTicks(e),function(e){return fYe(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return n7e(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);0===i&&(i=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/i},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),i=W9e(e),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=e.scale,s=n.getExtent(),o=n.count();if(s[1]-s[0]<1)return 0;var r=1;o>40&&(r=Math.max(1,Math.floor(o/40)));for(var l=s[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),d=Math.abs(c*Math.cos(a)),u=Math.abs(c*Math.sin(a)),p=0,h=0;l<=s[1];l+=r){var f,g,m=Eqe(i({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,p=Math.max(p,f,7),h=Math.max(h,g,7)}var _=p/d,v=h/u;isNaN(_)&&(_=1/0),isNaN(v)&&(v=1/0);var b=Math.max(0,Math.floor(Math.min(_,v))),y=i7e(e.model),x=e.getExtent(),S=y.lastAutoInterval,w=y.lastTickCount;return null!=S&&null!=w&&Math.abs(S-b)<=1&&Math.abs(w-o)<=1&&S>b&&y.axisExtent0===x[0]&&y.axisExtent1===x[1]?b=S:(y.lastTickCount=o,y.lastAutoInterval=b,y.axisExtent0=x[0],y.axisExtent1=x[1]),b}(this)},e}();function f7e(e,t){var i=(e[1]-e[0])/t/2;e[0]+=i,e[1]-=i}function g7e(e,t){var i=e.mapDimensionsAll("defaultedLabel"),a=i.length;if(1===a){var n=S5e(e,t,i[0]);return null!=n?n+"":null}if(a){for(var s=[],o=0;o<i.length;o++)s.push(S5e(e,t,i[o]));return s.join(" ")}}function m7e(e,t,i,a,n){return e?"polar"===e.type?(o=(s=e).getArea(),r=Xqe(o.r0,1),l=Xqe(o.r,1),new gJe({shape:{cx:Xqe(s.cx,1),cy:Xqe(s.cy,1),r0:r,r:l,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}})):"cartesian2d"===e.type?function(e,t,i){var a=e.getArea(),n=a.x,s=a.y,o=a.width,r=a.height,l=i.get(["lineStyle","width"])||0;return n-=l/2,s-=l/2,o+=l,r+=l,o=Math.ceil(o),n!==Math.floor(n)&&(n=Math.floor(n),o++),new kZe({shape:{x:n,y:s,width:o,height:r}})}(e,0,i):null:null;var s,o,r,l}function _7e(e,t){return e.type===t}var v7e={average:function(e){for(var t=0,i=0,a=0;a<e.length;a++)isNaN(e[a])||(t+=e[a],i++);return 0===i?NaN:t/i},sum:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i]||0;return t},max:function(e){for(var t=-1/0,i=0;i<e.length;i++)e[i]>t&&(t=e[i]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,i=0;i<e.length;i++)e[i]<t&&(t=e[i]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},b7e=function(e){return Math.round(e.length/2)};var y7e=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.prototype.getInitialData=function(e,t){return K6e(0,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,i){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.clampData(e),s=a.dataToPoint(n);if(i)hYe(a.getAxes(),function(e,i){if("category"===e.type&&null!=t){var a=e.getTicksCoords(),o=e.getTickModel().get("alignWithLabel"),r=n[i],l="x1"===t[i]||"y1"===t[i];if(l&&!o&&(r+=1),a.length<2)return;if(2===a.length)return void(s[i]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,d=void 0,u=1,p=0;p<a.length;p++){var h=a[p].coord,f=p===a.length-1?a[p-1].tickValue+u:a[p].tickValue;if(f===r){d=h;break}if(f<r)c=h;else if(null!=c&&f>r){d=(h+c)/2;break}1===p&&(u=f-a[0].tickValue)}null==d&&(c?c&&(d=a[a.length-1].coord):d=a[0].coord),s[i]=e.toGlobalCoord(d)}});else{var o=this.getData(),r=o.getLayout("offset"),l=o.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=r+l/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(v3e);v3e.registerClass(y7e);var x7e=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.prototype.getInitialData=function(){return K6e(0,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,i){return i.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=W0e(y7e.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(y7e),S7e=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),w7e=function(e){function t(t){var i=e.call(this,t)||this;return i.type="sausage",i}return $ze(t,e),t.prototype.getDefaultShape=function(){return new S7e},t.prototype.buildPath=function(e,t){var i=t.cx,a=t.cy,n=Math.max(t.r0||0,0),s=Math.max(t.r,0),o=.5*(s-n),r=n+o,l=t.startAngle,c=t.endAngle,d=t.clockwise,u=2*Math.PI,p=d?c-l<u:l-c<u;p||(l=c-(d?u:-u));var h=Math.cos(l),f=Math.sin(l),g=Math.cos(c),m=Math.sin(c);p?(e.moveTo(h*n+i,f*n+a),e.arc(h*r+i,f*r+a,o,-Math.PI+l,l,!d)):e.moveTo(h*s+i,f*s+a),e.arc(i,a,s,l,c,!d),e.arc(g*r+i,m*r+a,o,c-2*Math.PI,c-Math.PI,!d),0!==n&&e.arc(i,a,n,c,l,d)},t}(fZe);function C7e(e,t,i){return t*Math.sin(e)*(i?-1:1)}function E7e(e,t,i){return t*Math.cos(e)*(i?1:-1)}var k7e=Math.max,T7e=Math.min;var A7e=function(e){function t(){var i=e.call(this)||this;return i.type=t.type,i._isFirstFrame=!0,i}return $ze(t,e),t.prototype.render=function(e,t,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var n=e.get("coordinateSystem");"cartesian2d"!==n&&"polar"!==n||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,i):this._renderNormal(e,t,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){b0e(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,i,a){var n,s=this.group,o=e.getData(),r=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var d=e.isAnimationEnabled()?e:null,u=function(e,t){var i=e.get("realtimeSort",!0),a=t.getBaseAxis();if(i&&"category"===a.type&&"cartesian2d"===t.type)return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}(e,l);u&&this._enableRealtimeSort(u,o,i);var p=e.get("clip",!0)||u,h=function(e,t){var i=e.getArea&&e.getArea();if(_7e(e,"cartesian2d")){var a=e.getBaseAxis();if("category"!==a.type||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(i.x-=n,i.width+=2*n):(i.y-=n,i.height+=2*n)}}return i}(l,o);s.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,v=[],b=this._backgroundEls,y=a&&a.isInitSort,x=a&&"changeAxisOrder"===a.type;function S(e){var t=P7e[l.type](o,e),i=function(e,t,i){var a="polar"===e.type?gJe:kZe;return new a({shape:z7e(t,i,e),silent:!0,z2:0})}(l,n,t);return i.useStyle(m.getItemStyle()),"cartesian2d"===l.type?i.setShape("r",_):i.setShape("cornerRadius",_),v[e]=i,i}o.diff(r).add(function(t){var i=o.getItemModel(t),a=P7e[l.type](o,t,i);if(g&&S(t),o.hasValue(t)&&L7e[l.type](a)){var r=!1;p&&(r=R7e[l.type](h,a));var m=I7e[l.type](e,o,t,a,n,d,c.model,!1,f);u&&(m.forceLabelAnimation=!0),B7e(m,o,t,i,a,e,n,"polar"===l.type),y?m.attr({shape:a}):u?D7e(u,d,m,a,t,n,!1,!1):WJe(m,{shape:a},e,t),o.setItemGraphicEl(t,m),s.add(m),m.ignore=r}}).update(function(t,i){var a=o.getItemModel(t),w=P7e[l.type](o,t,a);if(g){var C=void 0;0===b.length?C=S(i):((C=b[i]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?C.setShape("r",_):C.setShape("cornerRadius",_),v[t]=C);var E=P7e[l.type](o,t);GJe(C,{shape:z7e(n,E,l)},d,t)}var k=r.getItemGraphicEl(i);if(o.hasValue(t)&&L7e[l.type](w)){var T=!1;if(p&&(T=R7e[l.type](h,w))&&s.remove(k),k?function(e){zJe(e).oldStyle=e.style}(k):k=I7e[l.type](e,o,t,w,n,d,c.model,!!k,f),u&&(k.forceLabelAnimation=!0),x){var A=k.getTextContent();if(A){var R=I0e(A);null!=R.prevValue&&(R.prevValue=R.value)}}else B7e(k,o,t,a,w,e,n,"polar"===l.type);y?k.attr({shape:w}):u?D7e(u,d,k,w,t,n,!0,x):GJe(k,{shape:w},e,t,null),o.setItemGraphicEl(t,k),k.ignore=T,s.add(k)}else s.remove(k)}).remove(function(t){var i=r.getItemGraphicEl(t);i&&XJe(i,e,t)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Uqe);w.removeAll();for(var C=0;C<v.length;++C)w.add(v[C]);s.add(w),this._backgroundEls=v,this._data=o},t.prototype._renderLarge=function(e,t,i){this._clear(),U7e(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),U7e(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&m7e(e.coordinateSystem,0,e),i=this.group;t?i.setClipPath(t):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,i){var a=this;if(t.count()){var n=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,i),this._isFirstFrame=!1;else{var s=function(e){var i=t.getItemGraphicEl(e),a=i&&i.shape;return a&&Math.abs(n.isHorizontal()?a.height:a.width)||0};this._onRendered=function(){a._updateSortWithinSameData(t,s,n,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,i){var a=[];return e.each(e.mapDimension(t.dim),function(e,t){var n=i(t);n=null==n?NaN:n,a.push({dataIndex:t,mappedValue:n,ordinalNumber:e})}),a.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:fYe(a,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,i){for(var a=i.scale,n=e.mapDimension(i.dim),s=Number.MAX_VALUE,o=0,r=a.getOrdinalMeta().categories.length;o<r;++o){var l=e.rawIndexOf(n,a.getRawOrdinalNumber(o)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var i=t.scale,a=i.getExtent(),n=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);n<=s;++n)if(e.ordinalNumbers[n]!==i.getRawOrdinalNumber(n))return!0},t.prototype._updateSortWithinSameData=function(e,t,i,a){if(this._isOrderChangedWithinSameData(e,t,i)){var n=this._dataSort(e,i,t);this._isOrderDifferentInView(n,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:n}))}},t.prototype._dispatchInitSort=function(e,t,i){var a=t.baseAxis,n=this._dataSort(e,a,function(i){return e.get(e.mapDimension(t.otherAxis.dim),i)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:n})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(t){XJe(t,e,HZe(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(I3e),R7e={cartesian2d:function(e,t){var i=t.width<0?-1:1,a=t.height<0?-1:1;i<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,s=e.y+e.height,o=k7e(t.x,e.x),r=T7e(t.x+t.width,n),l=k7e(t.y,e.y),c=T7e(t.y+t.height,s),d=r<o,u=c<l;return t.x=d&&o>n?r:o,t.y=u&&l>s?c:l,t.width=d?0:r-o,t.height=u?0:c-l,i<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),d||u},polar:function(e,t){var i=t.r0<=t.r?1:-1;if(i<0){var a=t.r;t.r=t.r0,t.r0=a}var n=T7e(t.r,e.r),s=k7e(t.r0,e.r0);t.r=n,t.r0=s;var o=n-s<0;if(i<0){a=t.r;t.r=t.r0,t.r0=a}return o}},I7e={cartesian2d:function(e,t,i,a,n,s,o,r,l){var c=new kZe({shape:lYe({},a),z2:1});(c.__dataIndex=i,c.name="item",s)&&(c.shape[n?"height":"width"]=0);return c},polar:function(e,t,i,a,n,s,o,r,l){var c=!n&&l?w7e:gJe,d=new c({shape:a,z2:1});d.name="item";var u,p,h=F7e(n);if(d.calculateTextPosition=(u=h,p=({isRoundCap:c===w7e}||{}).isRoundCap,function(e,t,i){var a=t.position;if(!a||a instanceof Array)return Iqe(e,t,i);var n=u(a),s=null!=t.distance?t.distance:5,o=this.shape,r=o.cx,l=o.cy,c=o.r,d=o.r0,h=(c+d)/2,f=o.startAngle,g=o.endAngle,m=(f+g)/2,_=p?Math.abs(c-d)/2:0,v=Math.cos,b=Math.sin,y=r+c*v(f),x=l+c*b(f),S="left",w="top";switch(n){case"startArc":y=r+(d-s)*v(m),x=l+(d-s)*b(m),S="center",w="top";break;case"insideStartArc":y=r+(d+s)*v(m),x=l+(d+s)*b(m),S="center",w="bottom";break;case"startAngle":y=r+h*v(f)+C7e(f,s+_,!1),x=l+h*b(f)+E7e(f,s+_,!1),S="right",w="middle";break;case"insideStartAngle":y=r+h*v(f)+C7e(f,-s+_,!1),x=l+h*b(f)+E7e(f,-s+_,!1),S="left",w="middle";break;case"middle":y=r+h*v(m),x=l+h*b(m),S="center",w="middle";break;case"endArc":y=r+(c+s)*v(m),x=l+(c+s)*b(m),S="center",w="bottom";break;case"insideEndArc":y=r+(c-s)*v(m),x=l+(c-s)*b(m),S="center",w="top";break;case"endAngle":y=r+h*v(g)+C7e(g,s+_,!0),x=l+h*b(g)+E7e(g,s+_,!0),S="left",w="middle";break;case"insideEndAngle":y=r+h*v(g)+C7e(g,-s+_,!0),x=l+h*b(g)+E7e(g,-s+_,!0),S="right",w="middle";break;default:return Iqe(e,t,i)}return(e=e||{}).x=y,e.y=x,e.align=S,e.verticalAlign=w,e}),s){var f=n?"r":"endAngle",g={};d.shape[f]=n?a.r0:a.startAngle,g[f]=a[f],(r?GJe:WJe)(d,{shape:g},s)}return d}};function D7e(e,t,i,a,n,s,o,r){var l,c;s?(c={x:a.x,width:a.width},l={y:a.y,height:a.height}):(c={y:a.y,height:a.height},l={x:a.x,width:a.width}),r||(o?GJe:WJe)(i,{shape:l},t,n,null),(o?GJe:WJe)(i,{shape:c},t?e.baseAxis.model:null,n)}function O7e(e,t){for(var i=0;i<t.length;i++)if(!isFinite(e[t[i]]))return!0;return!1}var M7e=["x","y","width","height"],N7e=["cx","cy","r","startAngle","endAngle"],L7e={cartesian2d:function(e){return!O7e(e,M7e)},polar:function(e){return!O7e(e,N7e)}},P7e={cartesian2d:function(e,t,i){var a=e.getItemLayout(t),n=i?function(e,t){var i=e.get(["itemStyle","borderColor"]);if(!i||"none"===i)return 0;var a=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),s=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,s)}(i,a):0,s=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+s*n/2,y:a.y+o*n/2,width:a.width-s*n,height:a.height-o*n}},polar:function(e,t,i){var a=e.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function F7e(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function B7e(e,t,i,a,n,s,o,r){var l=t.getItemVisual(i,"style");if(r){if(!s.get("roundCap")){var c=e.shape;lYe(c,function(e,t){var i=e.get("borderRadius");if(null==i)return{cornerRadius:0};yYe(i)||(i=[i,i,i,i]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:fYe(i,function(e){return Rqe(e,a)})}}(a.getModel("itemStyle"),c)),e.setShape(c)}}else{var d=a.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var u=a.getShallow("cursor");u&&e.attr("cursor",u);var p=r?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",h=function(e,t){t=t||"label";for(var i={normal:e.getModel(t)},a=0;a<jZe.length;a++){var n=jZe[a];i[n]=e.getModel([n,t])}return i}(a);w0e(e,h,{labelFetcher:s,labelDataIndex:i,defaultText:g7e(s.getData(),i),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=e.getTextContent();if(r&&f){var g=a.get(["label","position"]);e.textConfig.inside="middle"===g||null,function(e,t,i,a){if(CYe(a))e.setTextConfig({rotation:a});else if(yYe(t))e.setTextConfig({rotation:0});else{var n,s=e.shape,o=s.clockwise?s.startAngle:s.endAngle,r=s.clockwise?s.endAngle:s.startAngle,l=(o+r)/2,c=i(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":n=l;break;case"startAngle":case"insideStartAngle":n=o;break;case"endAngle":case"insideEndAngle":n=r;break;default:return void e.setTextConfig({rotation:0})}var d=1.5*Math.PI-n;"middle"===c&&d>Math.PI/2&&d<1.5*Math.PI&&(d-=Math.PI),e.setTextConfig({rotation:d})}}(e,"outside"===g?p:g,F7e(o),a.get(["label","rotate"]))}!function(e,t,i,a){if(e){var n=I0e(e);n.prevValue=n.value,n.value=i;var s=t.normal;n.valueAnimation=s.get("valueAnimation"),n.valueAnimation&&(n.precision=s.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}(f,h,s.getRawValue(i),function(e){return function(e,t){var i=e.mapDimensionsAll("defaultedLabel");if(!yYe(t))return t+"";for(var a=[],n=0;n<i.length;n++){var s=e.getDimensionIndex(i[n]);s>=0&&a.push(t[s])}return a.join(" ")}(t,e)});var m=a.getModel(["emphasis"]);TQe(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),function(e,t,i){i=i||"itemStyle";for(var a=0;a<AQe.length;a++){var n=AQe[a],s=t.getModel([n,i]);e.ensureState(n).style=s[RQe[i]]()}}(e,a),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(n)&&(e.style.fill="none",e.style.stroke="none",hYe(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var $7e=function(){return function(){}}(),V7e=function(e){function t(t){var i=e.call(this,t)||this;return i.type="largeBar",i}return $ze(t,e),t.prototype.getDefaultShape=function(){return new $7e},t.prototype.buildPath=function(e,t){for(var i=t.points,a=this.baseDimIdx,n=1-this.baseDimIdx,s=[],o=[],r=this.barWidth,l=0;l<i.length;l+=3)o[a]=r,o[n]=i[l+2],s[a]=i[l+a],s[n]=i[l+n],e.rect(s[0],s[1],o[0],o[1])},t}(fZe);function U7e(e,t,i,a){var n=e.getData(),s=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),r=n.getLayout("size"),l=e.getModel("backgroundStyle"),c=n.getLayout("largeBackgroundPoints");if(c){var d=new V7e({shape:{points:c},incremental:!!a,silent:!0,z2:0});d.baseDimIdx=s,d.largeDataIndices=o,d.barWidth=r,d.useStyle(l.getItemStyle()),t.add(d),i&&i.push(d)}var u=new V7e({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});u.baseDimIdx=s,u.largeDataIndices=o,u.barWidth=r,t.add(u),u.useStyle(n.getVisual("style")),u.style.stroke=null,HZe(u).seriesIndex=e.seriesIndex,e.get("silent")||(u.on("mousedown",H7e),u.on("mousemove",H7e)),i&&i.push(u)}var H7e=$3e(function(e){var t=function(e,t,i){for(var a=e.baseDimIdx,n=1-a,s=e.shape.points,o=e.largeDataIndices,r=[],l=[],c=e.barWidth,d=0,u=s.length/3;d<u;d++){var p=3*d;if(l[a]=c,l[n]=s[p+2],r[a]=s[p+a],r[n]=s[p+n],l[n]<0&&(r[n]+=l[n],l[n]=-l[n]),t>=r[0]&&t<=r[0]+l[0]&&i>=r[1]&&i<=r[1]+l[1])return o[d]}return-1}(this,e.offsetX,e.offsetY);HZe(this).dataIndex=t>=0?t:null},30,!1);function z7e(e,t,i){if(_7e(i,"cartesian2d")){var a=t,n=i.getArea();return{x:e?a.x:n.x,y:e?n.y:a.y,width:e?a.width:n.width,height:e?n.height:a.height}}var s=t;return{cx:(n=i.getArea()).cx,cy:n.cy,r0:e?n.r0:s.r0,r:e?n.r:s.r,startAngle:e?s.startAngle:0,endAngle:e?s.endAngle:2*Math.PI}}var Y7e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $ze(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(j1e),G7e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $ze(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",RKe).models[0]},t.type="cartesian2dAxis",t}(j1e);uYe(G7e,Q9e);var W7e={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},j7e=rYe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},W7e),q7e=rYe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},W7e);const K7e={category:j7e,value:q7e,time:rYe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},q7e),log:cYe({logBase:10},q7e)};var X7e={value:1,category:1,time:1,log:1};function Z7e(e,t,i,a){hYe(X7e,function(n,s){var o=rYe(rYe({},K7e[s],!0),a,!0),r=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t+"Axis."+s,i}return $ze(i,e),i.prototype.mergeDefaultAndTheme=function(e,t){var i=z1e(this),a=i?G1e(e):{};rYe(e,t.getTheme().get(s+"Axis")),rYe(e,this.getDefaultOption()),e.type=Q7e(e),i&&Y1e(e,a,i)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Q6e.createByAxisModel(this))},i.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=t+"Axis."+s,i.defaultOption=o,i}(i);e.registerComponentModel(r)}),e.registerSubTypeDefaulter(t+"Axis",Q7e)}function Q7e(e){return e.type||(e.data?"category":"value")}var J7e=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return fYe(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),mYe(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),eet=["x","y"];function tet(e){return"interval"===e.type||"time"===e.type}var iet=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=eet,t}return $ze(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(tet(e)&&tet(t)){var i=e.getExtent(),a=t.getExtent(),n=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),o=i[1]-i[0],r=a[1]-a[0];if(o&&r){var l=(s[0]-n[0])/o,c=(s[1]-n[1])/r,d=n[0]-i[0]*l,u=n[1]-a[0]*c,p=this._transform=[l,0,0,c,d,u];this._invTransform=$Ge([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),i=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var i=this.dataToPoint(e),a=this.dataToPoint(t),n=this.getArea(),s=new KGe(i[0],i[1],a[0]-i[0],a[1]-i[1]);return n.intersect(s)},t.prototype.dataToPoint=function(e,t,i){i=i||[];var a=e[0],n=e[1];if(this._transform&&null!=a&&isFinite(a)&&null!=n&&isFinite(n))return oGe(i,e,this._transform);var s=this.getAxis("x"),o=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,t)),i[1]=o.toGlobalCoord(o.dataToCoord(n,t)),i},t.prototype.clampData=function(e,t){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,n=i.getExtent(),s=a.getExtent(),o=i.parse(e[0]),r=a.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(n[0],n[1]),o),Math.max(n[0],n[1])),t[1]=Math.min(Math.max(Math.min(s[0],s[1]),r),Math.max(s[0],s[1])),t},t.prototype.pointToData=function(e,t){var i=[];if(this._invTransform)return oGe(i,e,this._invTransform);var a=this.getAxis("x"),n=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),t),i[1]=n.coordToData(n.toLocalCoord(e[1]),t),i},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1])-e,n=Math.min(i[0],i[1])-e,s=Math.max(t[0],t[1])-a+e,o=Math.max(i[0],i[1])-n+e;return new KGe(a,n,s,o)},t}(J7e),aet=function(e){function t(t,i,a,n,s){var o=e.call(this,t,i,a)||this;return o.index=0,o.type=n||"value",o.position=s||"bottom",o}return $ze(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(h7e);function net(e,t,i){i=i||{};var a=e.coordinateSystem,n=t.axis,s={},o=n.getAxesOnZeroOf()[0],r=n.position,l=o?"onZero":r,c=n.dim,d=a.getRect(),u=[d.x,d.x+d.width,d.y,d.y+d.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===c?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}s.position=["y"===c?f[p[l]]:u[0],"x"===c?f[p[l]]:u[3]],s.rotation=Math.PI/2*("x"===c?0:1);s.labelDirection=s.tickDirection=s.nameDirection={top:-1,bottom:1,left:-1,right:1}[r],s.labelOffset=o?f[p[r]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(s.tickDirection=-s.tickDirection),DYe(i.labelInside,t.get(["axisLabel","inside"]))&&(s.labelDirection=-s.labelDirection);var m=t.get(["axisLabel","rotate"]);return s.labelRotate="top"===l?-m:m,s.z2=1,s}function set(e){return"cartesian2d"===e.get("coordinateSystem")}function oet(e){var t={xAxisModel:null,yAxisModel:null};return hYe(t,function(i,a){var n=a.replace(/Model$/,""),s=e.getReferringComponents(n,RKe).models[0];t[a]=s}),t}var ret=Math.log;var cet=function(){function e(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eet,this._initCartesian(e,t,i),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var i=this._axesMap;function a(e){var t,i=_Ye(e),a=i.length;if(a){for(var n=[],s=a-1;s>=0;s--){var o=e[+i[s]],r=o.model,l=o.scale;e9e(l)&&r.get("alignTicks")&&null==r.get("interval")?n.push(o):(G9e(l,r),e9e(l)&&(t=o))}n.length&&(t||G9e((t=n.pop()).scale,t.model),hYe(n,function(e){!function(e,t,i){var a=d9e.prototype,n=a.getTicks.call(i),s=a.getTicks.call(i,!0),o=n.length-1,r=a.getInterval.call(i),l=Y9e(e,t),c=l.extent,d=l.fixMin,u=l.fixMax;if("log"===e.type){var p=ret(e.base);c=[ret(c[0])/p,ret(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:d,fixMax:u});var h=a.getExtent.call(e);d&&(c[0]=h[0]),u&&(c[1]=h[1]);var f=a.getInterval.call(e),g=c[0],m=c[1];if(d&&u)f=(m-g)/o;else if(d)for(m=c[0]+f*o;m<c[1]&&isFinite(m)&&isFinite(c[1]);)f=i9e(f),m=c[0]+f*o;else if(u)for(g=c[1]-f*o;g>c[0]&&isFinite(g)&&isFinite(c[0]);)f=i9e(f),g=c[1]-f*o;else{e.getTicks().length-1>o&&(f=i9e(f));var _=f*o;(g=Xqe((m=Math.ceil(c[1]/f)*f)-_))<0&&c[0]>=0?(g=0,m=Xqe(_)):m>0&&c[1]<=0&&(m=0,g=-Xqe(_))}var v=(n[0].value-s[0].value)/r,b=(n[o].value-s[o].value)/r;a.setExtent.call(e,g+f*v,m+f*b),a.setInterval.call(e,f),(v||b)&&a.setNiceExtent.call(e,g+f,m-f)}(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),a(i.x),a(i.y);var n={};hYe(i.x,function(e){uet(i,"y",e,n)}),hYe(i.y,function(e){uet(i,"x",e,n)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,i){var a=e.getBoxLayoutParams(),n=!i&&e.get("containLabel"),s=H1e(a,{width:t.getWidth(),height:t.getHeight()});this._rect=s;var o=this._axesList;function r(){hYe(o,function(e){var t=e.isHorizontal(),i=t?[0,s.width]:[0,s.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),function(e,t){var i=e.getExtent(),a=i[0]+i[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return a-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return a-e+t}}(e,t?s.x:s.y)})}r(),n&&(hYe(o,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,i=e.scale;if(t.get(["axisLabel","show"])&&!i.isBlank()){var a,n,s=i.getExtent();n=i instanceof l9e?i.count():(a=i.getTicks()).length;var o,r=e.getLabelModel(),l=W9e(e),c=1;n>40&&(c=Math.ceil(n/40));for(var d=0;d<n;d+=c){var u=l(a?a[d]:{value:s[0]+d},d),p=q9e(r.getTextRect(u),r.get("rotate")||0);o?o.union(p):o=p}return o}}(e);if(t){var i=e.isHorizontal()?"height":"width",a=e.model.get(["axisLabel","margin"]);s[i]-=t[i]+a,"top"===e.position?s.y+=t.height+a:"left"===e.position&&(s.x+=t.width+a)}}}),r()),hYe(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(null!=i)return i[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var i="x"+e+"y"+t;return this._coordsMap[i]}EYe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===e||n[a].getAxis("y").index===t)return n[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(e){var t,i,a=e.seriesModel,n=e.xAxisModel||a&&a.getReferringComponents("xAxis",RKe).models[0],s=e.yAxisModel||a&&a.getReferringComponents("yAxis",RKe).models[0],o=e.gridModel,r=this._coordsList;if(a)dYe(r,t=a.coordinateSystem)<0&&(t=null);else if(n&&s)t=this.getCartesian(n.componentIndex,s.componentIndex);else if(n)i=this.getAxis("x",n.componentIndex);else if(s)i=this.getAxis("y",s.componentIndex);else if(o){o.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:i}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,i){var a=this,n=this,s={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},r={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!r.x||!r.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(i,a){if(det(i,e)){var l=i.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=s.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=s.left?"right":"left"),s[l]=!0;var c=new aet(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new l9e({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new x9e({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(X6e.getClass(t)||d9e)}}(i),[0,0],i.get("type"),l),d="category"===c.type;c.onBand=d&&i.get("boundaryGap"),c.inverse=i.get("inverse"),i.axis=c,c.model=i,c.grid=n,c.index=a,n._axesList.push(c),o[t][a]=c,r[t]++}}}this._axesMap=o,hYe(o.x,function(t,i){hYe(o.y,function(n,s){var o="x"+i+"y"+s,r=new iet(o);r.master=a,r.model=e,a._coordsMap[o]=r,a._coordsList.push(r),r.addAxis(t),r.addAxis(n)})})},e.prototype._updateScale=function(e,t){function i(e,t){hYe(Z9e(e,t.dim),function(i){t.scale.unionExtentFromData(e,i)})}hYe(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(set(e)){var a=oet(e),n=a.xAxisModel,s=a.yAxisModel;if(!det(n,t)||!det(s,t))return;var o=this.getCartesian(n.componentIndex,s.componentIndex),r=e.getData(),l=o.getAxis("x"),c=o.getAxis("y");i(r,l),i(r,c)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],i=[];return hYe(this.getCartesians(),function(a){var n=null!=e&&"auto"!==e?a.getAxis(e):a.getBaseAxis(),s=a.getOtherAxis(n);dYe(t,n)<0&&t.push(n),dYe(i,s)<0&&i.push(s)}),{baseAxes:t,otherAxes:i}},e.create=function(t,i){var a=[];return t.eachComponent("grid",function(n,s){var o=new e(n,t,i);o.name="grid_"+s,o.resize(n,i,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(e){if(set(e)){var t=oet(e),i=t.xAxisModel,a=t.yAxisModel,n=i.getCoordSysModel().coordinateSystem;e.coordinateSystem=n.getCartesian(i.componentIndex,a.componentIndex)}}),a},e.dimensions=eet,e}();function det(e,t){return e.getCoordSysModel()===t}function uet(e,t,i,a){i.getAxesOnZeroOf=function(){return n?[n]:[]};var n,s=e[t],o=i.model,r=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(r){if(null!=l)pet(s[l])&&(n=s[l]);else for(var c in s)if(s.hasOwnProperty(c)&&pet(s[c])&&!a[d(s[c])]){n=s[c];break}n&&(a[d(n)]=!0)}function d(e){return e.dim+"_"+e.index}}function pet(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),i=t[0],a=t[1];return!(i>0&&a>0||i<0&&a<0)}(e)}var het=Math.PI,fet=function(){function e(e,t){this.group=new Uqe,this.opt=t,this.axisModel=e,cYe(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Uqe({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return e.prototype.hasBuilder=function(e){return!!get[e]},e.prototype.add=function(e){get[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,i){var a,n,s=tKe(t-e);return iKe(s)?(n=i>0?"top":"bottom",a="center"):iKe(s-het)?(n=i>0?"bottom":"top",a="center"):(n="middle",a=s>0&&s<het?i>0?"right":"left":i>0?"left":"right"),{rotation:s,textAlign:a,textVerticalAlign:n}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),get={axisLine:function(e,t,i,a){var n=t.get(["axisLine","show"]);if("auto"===n&&e.handleAutoShown&&(n=e.handleAutoShown("axisLine")),n){var s=t.axis.getExtent(),o=a.transform,r=[s[0],0],l=[s[1],0],c=r[0]>l[0];o&&(oGe(r,r,o),oGe(l,l,o));var d=lYe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new EJe({shape:{x1:r[0],y1:r[1],x2:l[0],y2:l[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});r0e(u.shape,u.style.lineWidth),u.anid="line",i.add(u);var p=t.get(["axisLine","symbol"]);if(null!=p){var h=t.get(["axisLine","symbolSize"]);SYe(p)&&(p=[p,p]),(SYe(h)||CYe(h))&&(h=[h,h]);var f=function(e,t){if(null!=e)return yYe(e)||(e=[e,e]),[Kqe(e[0],t[0])||0,Kqe(OYe(e[1],e[0]),t[1])||0]}(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];hYe([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((r[0]-l[0])*(r[0]-l[0])+(r[1]-l[1])*(r[1]-l[1]))}],function(t,a){if("none"!==p[a]&&null!=p[a]){var n=B4e(p[a],-g/2,-m/2,g,m,d.stroke,!0),s=t.r+t.offset,o=c?l:r;n.attr({rotation:t.rotate,x:o[0]+s*Math.cos(e.rotation),y:o[1]-s*Math.sin(e.rotation),silent:!0,z2:11}),i.add(n)}})}}},axisTickLabel:function(e,t,i,a){var n=function(e,t,i,a){var n=i.axis,s=i.getModel("axisTick"),o=s.get("show");"auto"===o&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick"));if(!o||n.scale.isBlank())return;for(var r=s.getModel("lineStyle"),l=a.tickDirection*s.get("length"),c=bet(n.getTicksCoords(),t.transform,l,cYe(r.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}(i,a,t,e),s=function(e,t,i,a){var n=i.axis,s=DYe(a.axisLabelShow,i.get(["axisLabel","show"]));if(!s||n.scale.isBlank())return;var o=i.getModel("axisLabel"),r=o.get("margin"),l=n.getViewLabels(),c=(DYe(a.labelRotate,o.get("rotate"))||0)*het/180,d=fet.innerTextLayout(a.rotation,c,a.labelDirection),u=i.getCategories&&i.getCategories(!0),p=[],h=fet.isLabelSilent(i),f=i.get("triggerEvent");return hYe(l,function(s,c){var g="ordinal"===n.scale.type?n.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,m=s.formattedLabel,_=s.rawLabel,v=o;if(u&&u[g]){var b=u[g];EYe(b)&&b.textStyle&&(v=new z0e(b.textStyle,o,i.ecModel))}var y=v.getTextColor()||i.get(["axisLine","lineStyle","color"]),x=n.dataToCoord(g),S=v.getShallow("align",!0)||d.textAlign,w=OYe(v.getShallow("alignMinLabel",!0),S),C=OYe(v.getShallow("alignMaxLabel",!0),S),E=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||d.textVerticalAlign,k=OYe(v.getShallow("verticalAlignMinLabel",!0),E),T=OYe(v.getShallow("verticalAlignMaxLabel",!0),E),A=new RZe({x:x,y:a.labelOffset+a.labelDirection*r,rotation:d.rotation,silent:h,z2:10+(s.level||0),style:C0e(v,{text:m,align:0===c?w:c===l.length-1?C:S,verticalAlign:0===c?k:c===l.length-1?T:E,fill:xYe(y)?y("category"===n.type?_:"value"===n.type?g+"":g,c):y})});if(A.anid="label_"+g,_0e({el:A,componentModel:i,itemName:m,formatterParamsExtra:{isTruncated:function(){return A.isTruncated},value:_,tickIndex:c}}),f){var R=fet.makeAxisEventDataBase(i);R.targetType="axisLabel",R.value=_,R.tickIndex=c,"category"===n.type&&(R.dataIndex=g),HZe(A).eventData=R}t.add(A),A.updateTransform(),p.push(A),e.add(A),A.decomposeTransform()}),p}(i,a,t,e);(function(e,t,i){if(X9e(e.axis))return;var a=e.get(["axisLabel","showMinLabel"]),n=e.get(["axisLabel","showMaxLabel"]);t=t||[],i=i||[];var s=t[0],o=t[1],r=t[t.length-1],l=t[t.length-2],c=i[0],d=i[1],u=i[i.length-1],p=i[i.length-2];!1===a?(met(s),met(c)):_et(s,o)&&(a?(met(o),met(d)):(met(s),met(c)));!1===n?(met(r),met(u)):_et(l,r)&&(n?(met(l),met(p)):(met(r),met(u)))}(t,s,n),function(e,t,i,a){var n=i.axis,s=i.getModel("minorTick");if(!s.get("show")||n.scale.isBlank())return;var o=n.getMinorTicksCoords();if(!o.length)return;for(var r=s.getModel("lineStyle"),l=a*s.get("length"),c=cYe(r.getLineStyle(),cYe(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),d=0;d<o.length;d++)for(var u=bet(o[d],t.transform,l,c,"minorticks_"+d),p=0;p<u.length;p++)e.add(u[p])}(i,a,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var i=new KGe(0,0,0,0);function a(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var n=0;n<e.length;n++){var s=e[n],o=s.axisAligned,r=s.localRect,l=s.transform,c=s.label,d=s.labelLine;i.copy(s.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var u=s.obb,p=!1,h=0;h<t.length;h++){var f=t[h];if(i.intersect(f.rect)){if(o&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new VJe(f.localRect,f.transform)),u||(u=new VJe(r,l)),u.intersect(f.obb)){p=!0;break}}}p?(a(c),d&&a(d)):(c.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),t.push(s))}}(function(e){for(var t=[],i=0;i<e.length;i++){var a=e[i];if(!a.defaultAttr.ignore){var n=a.label,s=n.getComputedTransform(),o=n.getBoundingRect(),r=!s||s[1]<1e-5&&s[2]<1e-5,l=n.style.margin||0,c=o.clone();c.applyTransform(s),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var d=r?new VJe(o,s):null;t.push({label:n,labelLine:a.labelLine,rect:c,localRect:o,obb:d,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:r,transform:s})}}return t}(fYe(s,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,i,a){var n=DYe(e.axisName,t.get("name"));if(n){var s,o,r=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),d=t.get("nameGap")||0,u=t.axis.getExtent(),p=u[0]>u[1]?-1:1,h=["start"===r?u[0]-p*d:"end"===r?u[1]+p*d:(u[0]+u[1])/2,vet(r)?e.labelOffset+l*d:0],f=t.get("nameRotate");null!=f&&(f=f*het/180),vet(r)?s=fet.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(s=function(e,t,i,a){var n,s,o=tKe(i-e),r=a[0]>a[1],l="start"===t&&!r||"start"!==t&&r;iKe(o-het/2)?(s=l?"bottom":"top",n="center"):iKe(o-1.5*het)?(s=l?"top":"bottom",n="center"):(s="middle",n=o<1.5*het&&o>het/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:n,textVerticalAlign:s}}(e.rotation,r,f||0,u),null!=(o=e.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(s.rotation)),!isFinite(o)&&(o=null)));var g=c.getFont(),m=t.get("nameTruncate",!0)||{},_=m.ellipsis,v=DYe(e.nameTruncateMaxWidth,m.maxWidth,o),b=new RZe({x:h[0],y:h[1],rotation:s.rotation,silent:fet.isLabelSilent(t),style:C0e(c,{text:n,font:g,overflow:"truncate",width:v,ellipsis:_,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||s.textAlign,verticalAlign:c.get("verticalAlign")||s.textVerticalAlign}),z2:1});if(_0e({el:b,componentModel:t,itemName:n}),b.__fullText=n,b.anid="name",t.get("triggerEvent")){var y=fet.makeAxisEventDataBase(t);y.targetType="axisName",y.name=n,HZe(b).eventData=y}a.add(b),b.updateTransform(),i.add(b),b.decomposeTransform()}}};function met(e){e&&(e.ignore=!0)}function _et(e,t){var i=e&&e.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(i&&a){var n=LGe([]);return BGe(n,n,-e.rotation),i.applyTransform(PGe([],n,e.getLocalTransform())),a.applyTransform(PGe([],n,t.getLocalTransform())),i.intersect(a)}}function vet(e){return"middle"===e||"center"===e}function bet(e,t,i,a,n){for(var s=[],o=[],r=[],l=0;l<e.length;l++){var c=e[l].coord;o[0]=c,o[1]=0,r[0]=c,r[1]=i,t&&(oGe(o,o,t),oGe(r,r,t));var d=new EJe({shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:a,z2:2,autoBatch:!0,silent:!0});r0e(d.shape,d.style.lineWidth),d.anid=n+"_"+e[l].tickValue,s.push(d)}return s}function yet(e,t){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,i){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),s=n.get("link",!0)||[],o=[];hYe(i.getCoordinateSystems(),function(i){if(i.axisPointerEnabled){var r=Eet(i.model),l=e.coordSysAxesInfo[r]={};e.coordSysMap[r]=i;var c=i.model.getModel("tooltip",a);if(hYe(i.getAxes(),bYe(h,!1,null)),i.getTooltipAxes&&a&&c.get("show")){var d="axis"===c.get("trigger"),u="cross"===c.get(["axisPointer","type"]),p=i.getTooltipAxes(c.get(["axisPointer","axis"]));(d||u)&&hYe(p.baseAxes,bYe(h,!u||"cross",d)),u&&hYe(p.otherAxes,bYe(h,"cross",!1))}}function h(a,r,d){var u=d.model.getModel("axisPointer",n),p=u.get("show");if(p&&("auto"!==p||a||Cet(u))){null==r&&(r=u.get("triggerTooltip")),u=a?function(e,t,i,a,n,s){var o=t.getModel("axisPointer"),r={};hYe(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){r[e]=oYe(o.get(e))}),r.snap="category"!==e.type&&!!s,"cross"===o.get("type")&&(r.type="line");var l=r.label||(r.label={});if(null==l.show&&(l.show=!1),"cross"===n){var c=o.get(["label","show"]);if(l.show=null==c||c,!s){var d=r.lineStyle=o.get("crossStyle");d&&cYe(l,d.textStyle)}}return e.model.getModel("axisPointer",new z0e(r,i,a))}(d,c,n,t,a,r):u;var h=u.get("snap"),f=u.get("triggerEmphasis"),g=Eet(d.model),m=r||h||"category"===d.type,_=e.axesInfo[g]={key:g,axis:d,coordSys:i,axisPointerModel:u,triggerTooltip:r,triggerEmphasis:f,involveSeries:m,snap:h,useHandle:Cet(u),seriesModels:[],linkGroup:null};l[g]=_,e.seriesInvolved=e.seriesInvolved||m;var v=function(e,t){for(var i=t.model,a=t.dim,n=0;n<e.length;n++){var s=e[n]||{};if(xet(s[a+"AxisId"],i.id)||xet(s[a+"AxisIndex"],i.componentIndex)||xet(s[a+"AxisName"],i.name))return n}}(s,d);if(null!=v){var b=o[v]||(o[v]={axesInfo:{}});b.axesInfo[g]=_,b.mapper=s[v].mapper,_.linkGroup=b}}}})}(i,e,t),i.seriesInvolved&&function(e,t){t.eachSeries(function(t){var i=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);i&&"none"!==a&&!1!==a&&"item"!==a&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&hYe(e.coordSysAxesInfo[Eet(i.model)],function(e){var a=e.axis;i.getAxis(a.dim)===a&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(i,e),i}function xet(e,t){return"all"===e||yYe(e)&&dYe(e,t)>=0||e===t}function wet(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Eet(e)]}function Cet(e){return!!e.get(["handle","show"])}function Eet(e){return e.type+"||"+e.id}var ket={},Tet=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.prototype.render=function(t,i,a,n){this.axisPointerClass&&function(e){var t=wet(e);if(t){var i=t.axisPointerModel,a=t.axis.scale,n=i.option,s=i.get("status"),o=i.get("value");null!=o&&(o=a.parse(o));var r=Cet(i);null==s&&(n.status=r?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,r&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},t.prototype.updateAxisPointer=function(e,t,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,t){var i=this._axisPointer;i&&i.remove(t)},t.prototype.dispose=function(t,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,a){var n=t.getAxisPointerClass(this.axisPointerClass);if(n){var s=function(e){var t=wet(e);return t&&t.axisPointerModel}(e);s?(this._axisPointer||(this._axisPointer=new n)).render(e,s,i,a):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){ket[e]=t},t.getAxisPointerClass=function(e){return e&&ket[e]},t.type="axis",t}(k3e),Aet=EKe();var Ret=["axisLine","axisTickLabel","axisName"],Iet=["splitArea","splitLine","minorSplitLine"],Det=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.axisPointerClass="CartesianAxisPointer",i}return $ze(t,e),t.prototype.render=function(t,i,a,n){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new Uqe,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),r=net(o,t),l=new fet(t,lYe({handleAutoShown:function(e){for(var i=o.coordinateSystem.getCartesians(),a=0;a<i.length;a++)if(e9e(i[a].getOtherAxis(t.axis).scale))return!0;return!1}},r));hYe(Ret,l.add,l),this._axisGroup.add(l.getGroup()),hYe(Iet,function(e){t.get([e,"show"])&&Oet[e](this,this._axisGroup,t,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||h0e(s,this._axisGroup,t),e.prototype.render.call(this,t,i,a,n)}},t.prototype.remove=function(){Aet(this).splitAreaColors=null},t.type="cartesianAxis",t}(Tet),Oet={splitLine:function(e,t,i,a){var n=i.axis;if(!n.scale.isBlank()){var s=i.getModel("splitLine"),o=s.getModel("lineStyle"),r=o.get("color"),l=!1!==s.get("showMinLine"),c=!1!==s.get("showMaxLine");r=yYe(r)?r:[r];for(var d=a.coordinateSystem.getRect(),u=n.isHorizontal(),p=0,h=n.getTicksCoords({tickModel:s}),f=[],g=[],m=o.getLineStyle(),_=0;_<h.length;_++){var v=n.toGlobalCoord(h[_].coord);if((0!==_||l)&&(_!==h.length-1||c)){var b=h[_].tickValue;u?(f[0]=v,f[1]=d.y,g[0]=v,g[1]=d.y+d.height):(f[0]=d.x,f[1]=v,g[0]=d.x+d.width,g[1]=v);var y=p++%r.length,x=new EJe({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:cYe({stroke:r[y]},m),silent:!0});r0e(x.shape,m.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,i,a){var n=i.axis,s=i.getModel("minorSplitLine").getModel("lineStyle"),o=a.coordinateSystem.getRect(),r=n.isHorizontal(),l=n.getMinorTicksCoords();if(l.length)for(var c=[],d=[],u=s.getLineStyle(),p=0;p<l.length;p++)for(var h=0;h<l[p].length;h++){var f=n.toGlobalCoord(l[p][h].coord);r?(c[0]=f,c[1]=o.y,d[0]=f,d[1]=o.y+o.height):(c[0]=o.x,c[1]=f,d[0]=o.x+o.width,d[1]=f);var g=new EJe({anid:"minor_line_"+l[p][h].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:u,silent:!0});r0e(g.shape,u.lineWidth),t.add(g)}},splitArea:function(e,t,i,a){!function(e,t,i,a){var n=i.axis;if(!n.scale.isBlank()){var s=i.getModel("splitArea"),o=s.getModel("areaStyle"),r=o.get("color"),l=a.coordinateSystem.getRect(),c=n.getTicksCoords({tickModel:s,clamp:!0});if(c.length){var d=r.length,u=Aet(e).splitAreaColors,p=YYe(),h=0;if(u)for(var f=0;f<c.length;f++){var g=u.get(c[f].tickValue);if(null!=g){h=(g+(d-1)*f)%d;break}}var m=n.toGlobalCoord(c[0].coord),_=o.getAreaStyle();for(r=yYe(r)?r:[r],f=1;f<c.length;f++){var v=n.toGlobalCoord(c[f].coord),b=void 0,y=void 0,x=void 0,S=void 0;n.isHorizontal()?(b=m,y=l.y,x=v-b,S=l.height,m=b+x):(b=l.x,y=m,x=l.width,m=y+(S=v-y));var w=c[f-1].tickValue;null!=w&&p.set(w,h),t.add(new kZe({anid:null!=w?"area_"+w:null,shape:{x:b,y:y,width:x,height:S},style:cYe({fill:r[h]},_),autoBatch:!0,silent:!0})),h=(h+1)%d}Aet(e).splitAreaColors=p}}}(e,t,i,a)}},Met=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.type="xAxis",t}(Det),Net=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Met.type,t}return $ze(t,e),t.type="yAxis",t}(Det),Let=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return $ze(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new kZe({shape:e.coordinateSystem.getRect(),style:cYe({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(k3e),Pet={offset:0};function Fet(e){e.registerComponentView(Let),e.registerComponentModel(Y7e),e.registerCoordinateSystem("cartesian2d",cet),Z7e(e,"x",G7e,Pet),Z7e(e,"y",G7e,Pet),e.registerComponentView(Met),e.registerComponentView(Net),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Bet="\0_ec_interaction_mutex";function $et(e,t){return!!function(e){return e[Bet]||(e[Bet]={})}(e)[t]}d6e({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},jYe);var Vet=function(e){function t(t){var i=e.call(this)||this;i._zr=t;var a=vYe(i._mousedownHandler,i),n=vYe(i._mousemoveHandler,i),s=vYe(i._mouseupHandler,i),o=vYe(i._mousewheelHandler,i),r=vYe(i._pinchHandler,i);return i.enable=function(e,i){this.disable(),this._opt=cYe(oYe(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",a),t.on("mousemove",n),t.on("mouseup",s)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",r))},i.disable=function(){t.off("mousedown",a),t.off("mousemove",n),t.off("mouseup",s),t.off("mousewheel",o),t.off("pinch",r)},i}return $ze(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!DGe(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&zet("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!$et(this._zr,"globalPan")){var t=e.offsetX,i=e.offsetY,a=this._x,n=this._y,s=t-a,o=i-n;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&IGe(e.event),Het(this,"pan","moveOnMouseMove",e,{dx:s,dy:o,oldX:a,oldY:n,newX:t,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){DGe(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=zet("zoomOnMouseWheel",e,this._opt),i=zet("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,n=Math.abs(a),s=e.offsetX,o=e.offsetY;if(0!==a&&(t||i)){if(t){var r=n>3?1.4:n>1?1.2:1.1;Uet(this,"zoom","zoomOnMouseWheel",e,{scale:a>0?r:1/r,originX:s,originY:o,isAvailableBehavior:null})}if(i){var l=Math.abs(a);Uet(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(a>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:s,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){$et(this._zr,"globalPan")||Uet(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(uGe);function Uet(e,t,i,a,n){e.pointerChecker&&e.pointerChecker(a,n.originX,n.originY)&&(IGe(a.event),Het(e,t,i,a,n))}function Het(e,t,i,a,n){n.isAvailableBehavior=vYe(zet,null,i,a),e.trigger(t,n)}function zet(e,t,i){var a=i[e];return!e||a&&(!SYe(a)||t.event[a+"Key"])}function Yet(e,t,i,a,n,s){e=e||0;var o=i[1]-i[0];if(null!=n&&(n=Wet(n,[0,o])),null!=s&&(s=Math.max(s,null!=n?n:0)),"all"===a){var r=Math.abs(t[1]-t[0]);r=Wet(r,[0,o]),n=s=Wet(r,[n,s]),a=0}t[0]=Wet(t[0],i),t[1]=Wet(t[1],i);var l=Get(t,a);t[a]+=e;var c,d=n||0,u=i.slice();return l.sign<0?u[0]+=d:u[1]-=d,t[a]=Wet(t[a],u),c=Get(t,a),null!=n&&(c.sign!==l.sign||c.span<n)&&(t[1-a]=t[a]+l.sign*n),c=Get(t,a),null!=s&&c.span>s&&(t[1-a]=t[a]+c.sign*s),t}function Get(e,t){var i=e[t]-e[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function Wet(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var jet=EKe(),qet=oYe,Ket=vYe,Xet=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,i,a){var n=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,a||this._lastValue!==n||this._lastStatus!==s){this._lastValue=n,this._lastStatus=s;var o=this._group,r=this._handle;if(!s||"hide"===s)return o&&o.hide(),void(r&&r.hide());o&&o.show(),r&&r.show();var l={};this.makeElOption(l,n,e,t,i);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(o){var u=bYe(Zet,t,d);this.updatePointerEl(o,l,u),this.updateLabelEl(o,l,u,t)}else o=this._group=new Uqe,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),i.getZr().add(o);ttt(o,t,!0),this._renderHandle(n)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var i=t.get("animation"),a=e.axis,n="category"===a.type,s=t.get("snap");if(!s&&!n)return!1;if("auto"===i||null==i){var o=this.animationThreshold;if(n&&a.getBandWidth()>o)return!0;if(s){var r=wet(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/r>o}return!1}return!0===i},e.prototype.makeElOption=function(e,t,i,a,n){},e.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var s=jet(e).pointerEl=new y0e[n.type](qet(t.pointer));e.add(s)}},e.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=jet(e).labelEl=new RZe(qet(t.label));e.add(n),Jet(n,a)}},e.prototype.updatePointerEl=function(e,t,i){var a=jet(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,i,a){var n=jet(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),Jet(n,a))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,i=this._axisPointerModel,a=this._api.getZr(),n=this._handle,s=i.getModel("handle"),o=i.get("status");if(!s.get("show")||!o||"hide"===o)return n&&a.remove(n),void(this._handle=null);this._handle||(t=!0,n=this._handle=f0e(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){IGe(e.event)},onmousedown:Ket(this._onHandleDragMove,this,0,0),drift:Ket(this._onHandleDragMove,this),ondragend:Ket(this._onHandleDragEnd,this)}),a.add(n)),ttt(n,i,!1),n.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var r=s.get("size");yYe(r)||(r=[r,r]),n.scaleX=r[0]/2,n.scaleY=r[1]/2,V3e(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){Zet(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ett(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(ett(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(ett(a)),jet(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),U3e(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,i){return{x:e[i=i||0],y:e[1-i],width:t[i],height:t[1-i]}},e}();function Zet(e,t,i,a){Qet(jet(i).lastProp,a)||(jet(i).lastProp=a,t?GJe(i,a,e):(i.stopAnimation(),i.attr(a)))}function Qet(e,t){if(EYe(e)&&EYe(t)){var i=!0;return hYe(t,function(t,a){i=i&&Qet(e[a],t)}),!!i}return e===t}function Jet(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ett(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ttt(e,t,i){var a=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=a&&(e.z=a),null!=n&&(e.zlevel=n),e.silent=i)})}function itt(e,t,i,a,n){var s=att(i.get("value"),t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),o=i.getModel("label"),r=O1e(o.get("padding")||0),l=o.getFont(),c=Eqe(s,l),d=n.position,u=c.width+r[1]+r[3],p=c.height+r[0]+r[2],h=n.align;"right"===h&&(d[0]-=u),"center"===h&&(d[0]-=u/2);var f=n.verticalAlign;"bottom"===f&&(d[1]-=p),"middle"===f&&(d[1]-=p/2),function(e,t,i,a){var n=a.getWidth(),s=a.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+i,s)-i,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(d,u,p,a);var g=o.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:C0e(o,{text:s,font:l,fill:o.getTextColor(),padding:r,backgroundColor:g}),z2:10}}function att(e,t,i,a,n){e=t.scale.parse(e);var s=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var r={value:j9e(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};hYe(a,function(e){var t=i.getSeriesByIndex(e.seriesIndex),a=e.dataIndexInside,n=t&&t.getDataParams(a);n&&r.seriesData.push(n)}),SYe(o)?s=o.replace("{value}",s):xYe(o)&&(s=o(r))}return s}function ntt(e,t,i){var a=[1,0,0,1,0,0];return BGe(a,a,i.rotation),FGe(a,a,i.position),d0e([e.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],a)}var stt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $ze(t,e),t.prototype.makeElOption=function(e,t,i,a,n){var s=i.axis,o=s.grid,r=a.get("type"),l=ott(o,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(t,!0));if(r&&"none"!==r){var d=function(e){var t,i=e.get("type"),a=e.getModel(i+"Style");return"line"===i?(t=a.getLineStyle()).fill=null:"shadow"===i&&((t=a.getAreaStyle()).stroke=null),t}(a),u=rtt[r](s,c,l);u.style=d,e.graphicKey=u.type,e.pointer=u}!function(e,t,i,a,n,s){var o=fet.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=n.get(["label","margin"]),itt(t,a,n,s,{position:ntt(a.axis,e,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})}(t,e,net(o.model,i),i,a,n)},t.prototype.getHandleTransform=function(e,t,i){var a=net(t.axis.grid.model,t,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var n=ntt(t.axis,e,a);return{x:n[0],y:n[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,i,a){var n=i.axis,s=n.grid,o=n.getGlobalExtent(!0),r=ott(s,n).getOtherAxis(n).getGlobalExtent(),l="x"===n.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(o[1],c[l]),c[l]=Math.max(o[0],c[l]);var d=(r[1]+r[0])/2,u=[d,d];u[l]=c[l];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:u,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(Xet);function ott(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}var rtt={line:function(e,t,i){var a,n,s;return{type:"Line",subPixelOptimize:!0,shape:(a=[t,i[0]],n=[t,i[1]],s=ltt(e),{x1:a[s=s||0],y1:a[1-s],x2:n[s],y2:n[1-s]})}},shadow:function(e,t,i){var a,n,s,o=Math.max(1,e.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:(a=[t-o/2,i[0]],n=[o,r],s=ltt(e),{x:a[s=s||0],y:a[1-s],width:n[s],height:n[1-s]})}}};function ltt(e){return"x"===e.dim?0:1}var ctt=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(j1e),dtt=EKe(),utt=hYe;function ptt(e,t,i){if(!Uze.node){var a=t.getZr();dtt(a).records||(dtt(a).records={}),function(e,t){if(dtt(e).initialized)return;function i(i,a){e.on(i,function(i){var n=function(e){var t={showTip:[],hideTip:[]},i=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=i,e.dispatchAction(a))};return{dispatchAction:i,pendings:t}}(t);utt(dtt(e).records,function(e){e&&a(e,i,n.dispatchAction)}),function(e,t){var i,a=e.showTip.length,n=e.hideTip.length;a?i=e.showTip[a-1]:n&&(i=e.hideTip[n-1]);i&&(i.dispatchAction=null,t.dispatchAction(i))}(n.pendings,t)})}dtt(e).initialized=!0,i("click",bYe(ftt,"click")),i("mousemove",bYe(ftt,"mousemove")),i("globalout",htt)}(a,t),(dtt(a).records[e]||(dtt(a).records[e]={})).handler=i}}function htt(e,t,i){e.handler("leave",null,i)}function ftt(e,t,i,a){t.handler(e,i,a)}function gtt(e,t){if(!Uze.node){var i=t.getZr();(dtt(i).records||{})[e]&&(dtt(i).records[e]=null)}}var mtt=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.prototype.render=function(e,t,i){var a=t.getComponent("tooltip"),n=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";ptt("axisPointer",i,function(e,t,i){"none"!==n&&("leave"===e||n.indexOf(e)>=0)&&i({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){gtt("axisPointer",t)},t.prototype.dispose=function(e,t){gtt("axisPointer",t)},t.type="axisPointer",t}(k3e);function _tt(e,t){var i,a=[],n=e.seriesIndex;if(null==n||!(i=t.getSeriesByIndex(n)))return{point:[]};var s=i.getData(),o=CKe(s,e);if(null==o||o<0||yYe(o))return{point:[]};var r=s.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)a=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c).dim,u=c.dim,p="x"===d||"radius"===d?1:0,h=s.mapDimension(u),f=[];f[p]=s.get(h,o),f[1-p]=s.get(s.getCalculationInfo("stackResultDimension"),o),a=l.dataToPoint(f)||[]}else a=l.dataToPoint(s.getValues(fYe(l.dimensions,function(e){return s.mapDimension(e)}),o))||[];else if(r){var g=r.getBoundingRect().clone();g.applyTransform(r.transform),a=[g.x+g.width/2,g.y+g.height/2]}return{point:a,el:r}}var vtt=EKe();function btt(e,t,i){var a=e.currTrigger,n=[e.x,e.y],s=e,o=e.dispatchAction||vYe(i.dispatchAction,i),r=t.getComponent("axisPointer").coordSysAxesInfo;if(r){Ctt(n)&&(n=_tt({seriesIndex:s.seriesIndex,dataIndex:s.dataIndex},t).point);var l=Ctt(n),c=s.axesInfo,d=r.axesInfo,u="leave"===a||Ctt(n),p={},h={},f={list:[],map:{}},g={showPointer:bYe(xtt,h),showTooltip:bYe(Stt,f)};hYe(r.coordSysMap,function(e,t){var i=l||e.containPoint(n);hYe(r.coordSysAxesInfo[t],function(e,t){var a=e.axis,s=function(e,t){for(var i=0;i<(e||[]).length;i++){var a=e[i];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}(c,e);if(!u&&i&&(!c||s)){var o=s&&s.value;null!=o||l||(o=a.pointToData(n)),null!=o&&ytt(e,o,g,!1,p)}})});var m={};return hYe(d,function(e,t){var i=e.linkGroup;i&&!h[t]&&hYe(i.axesInfo,function(t,a){var n=h[a];if(t!==e&&n){var s=n.value;i.mapper&&(s=e.axis.scale.parse(i.mapper(s,wtt(t),wtt(e)))),m[e.key]=s}})}),hYe(m,function(e,t){ytt(d[t],e,g,!0,p)}),function(e,t,i){var a=i.axesInfo=[];hYe(t,function(t,i){var n=t.axisPointerModel.option,s=e[i];s?(!t.useHandle&&(n.status="show"),n.value=s.value,n.seriesDataIndices=(s.payloadBatch||[]).slice()):!t.useHandle&&(n.status="hide"),"show"===n.status&&a.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})}(h,d,p),function(e,t,i,a){if(Ctt(t)||!e.list.length)return void a({type:"hideTip"});var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}(f,n,e,o),function(e,t,i){var a=i.getZr(),n="axisPointerLastHighlights",s=vtt(a)[n]||{},o=vtt(a)[n]={};hYe(e,function(e,t){var i=e.axisPointerModel.option;"show"===i.status&&e.triggerEmphasis&&hYe(i.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e})});var r=[],l=[];hYe(s,function(e,t){!o[t]&&l.push(e)}),hYe(o,function(e,t){!s[t]&&r.push(e)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),r.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:r})}(d,0,i),p}}function ytt(e,t,i,a,n){var s=e.axis;if(!s.scale.isBlank()&&s.containData(t))if(e.involveSeries){var o=function(e,t){var i=t.axis,a=i.dim,n=e,s=[],o=Number.MAX_VALUE,r=-1;return hYe(t.seriesModels,function(t,l){var c,d,u=t.getData().mapDimensionsAll(a);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(u,e,i);d=p.dataIndices,c=p.nestestValue}else{if(!(d=t.getData().indicesOfNearest(u[0],e,"category"===i.type?.5:null)).length)return;c=t.getData().get(u[0],d[0])}if(null!=c&&isFinite(c)){var h=e-c,f=Math.abs(h);f<=o&&((f<o||h>=0&&r<0)&&(o=f,r=h,n=c,s.length=0),hYe(d,function(e){s.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:s,snapToValue:n}}(t,e),r=o.payloadBatch,l=o.snapToValue;r[0]&&null==n.seriesIndex&&lYe(n,r[0]),!a&&e.snap&&s.containData(l)&&null!=l&&(t=l),i.showPointer(e,t,r),i.showTooltip(e,o,l)}else i.showPointer(e,t)}function xtt(e,t,i,a){e[t.key]={value:i,payloadBatch:a}}function Stt(e,t,i,a){var n=i.payloadBatch,s=t.axis,o=s.model,r=t.axisPointerModel;if(t.triggerTooltip&&n.length){var l=t.coordSys.model,c=Eet(l),d=e.map[c];d||(d=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:s.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function wtt(e){var t=e.axis.model,i={},a=i.axisDim=e.axis.dim;return i.axisIndex=i[a+"AxisIndex"]=t.componentIndex,i.axisName=i[a+"AxisName"]=t.name,i.axisId=i[a+"AxisId"]=t.id,i}function Ctt(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function Ett(e){Tet.registerAxisPointerClass("CartesianAxisPointer",stt),e.registerComponentModel(ctt),e.registerComponentView(mtt),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!yYe(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=yet(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},btt)}var ktt=["x","y","radius","angle","single"],Ttt=["cartesian2d","polar","singleAxis"];function Att(e){return e+"Axis"}function Rtt(e,t){var i,a=YYe(),n=[],s=YYe();e.eachComponent({mainType:"dataZoom",query:t},function(e){s.get(e.uid)||r(e)});do{i=!1,e.eachComponent("dataZoom",o)}while(i);function o(e){!s.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,i){var n=a.get(e);n&&n[i]&&(t=!0)}),t}(e)&&(r(e),i=!0)}function r(e){s.set(e.uid,!0),n.push(e),e.eachTargetAxis(function(e,t){(a.get(e)||a.set(e,[]))[t]=!0})}return n}function Itt(e){var t=e.ecModel,i={infoList:[],infoMap:YYe()};return e.eachTargetAxis(function(e,a){var n=t.getComponent(Att(e),a);if(n){var s=n.getCoordSysModel();if(s){var o=s.uid,r=i.infoMap.get(o);r||(r={model:s,axisModels:[]},i.infoList.push(r),i.infoMap.set(o,r)),r.axisModels.push(n)}}}),i}var Dtt=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),Ott=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return $ze(t,e),t.prototype.init=function(e,t,i){var a=Mtt(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var t=Mtt(e);rYe(this.option,e,!0),rYe(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;hYe([["start","startValue"],["end","endValue"]],function(e,a){"value"===this._rangePropMode[a]&&(t[e[0]]=i[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=YYe();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return hYe(ktt,function(i){var a=this.getReferringComponents(Att(i),IKe);if(a.specified){t=!0;var n=new Dtt;hYe(a.models,function(e){n.add(e.componentIndex)}),e.set(i,n)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var i=this.ecModel,a=!0;if(a){var n="vertical"===t?"y":"x";s(i.findComponents({mainType:n+"Axis"}),n)}a&&s(i.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function s(t,i){var n=t[0];if(n){var s=new Dtt;if(s.add(n.componentIndex),e.set(i,s),a=!1,"x"===i||"y"===i){var o=n.getReferringComponents("grid",RKe).models[0];o&&hYe(t,function(e){n.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",RKe).models[0]&&s.add(e.componentIndex)})}}}a&&hYe(ktt,function(t){if(a){var n=i.findComponents({mainType:Att(t),filter:function(e){return"category"===e.get("type",!0)}});if(n[0]){var s=new Dtt;s.add(n[0].componentIndex),e.set(t,s),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,i=this.get("rangeMode");hYe([["start","startValue"],["end","endValue"]],function(a,n){var s=null!=e[a[0]],o=null!=e[a[1]];s&&!o?t[n]="percent":!s&&o?t[n]="value":i?t[n]=i[n]:s&&(t[n]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,i){null==e&&(e=this.ecModel.getComponent(Att(t),i))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(i,a){hYe(i.indexList,function(i){e.call(t,a,i)})})},t.prototype.getAxisProxy=function(e,t){var i=this.getAxisModel(e,t);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[t])return this.ecModel.getComponent(Att(e),t)},t.prototype.setRawRange=function(e){var t=this.option,i=this.settledOption;hYe([["start","startValue"],["end","endValue"]],function(a){null==e[a[0]]&&null==e[a[1]]||(t[a[0]]=i[a[0]]=e[a[0]],t[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;hYe(["start","startValue","end","endValue"],function(i){t[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var n=i[a],s=this._targetAxisInfoMap.get(n),o=0;o<s.indexList.length;o++){var r=this.getAxisProxy(n,s.indexList[o]);if(r.hostedBy(this))return r;t||(t=r)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(j1e);function Mtt(e){var t={};return hYe(["start","end","startValue","endValue","throttle"],function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}var Ntt=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.prototype.render=function(e,t,i,a){this.dataZoomModel=e,this.ecModel=t,this.api=i},t.type="dataZoom",t}(k3e),Ltt=hYe,Ptt=Zqe,Ftt=function(){function e(e,t,i,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=i}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function(e){var t=e.get("coordinateSystem");return dYe(Ttt,t)>=0}(t)){var i=Att(this._dimName),a=t.getReferringComponents(i,RKe).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return oYe(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,i=this._dataExtent,a=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),s=[0,100],o=[],r=[];Ltt(["start","end"],function(l,c){var d=e[l],u=e[l+"Value"];"percent"===n[c]?(null==d&&(d=s[c]),u=a.parse(qqe(d,s,i))):(t=!0,d=qqe(u=null==u?i[c]:a.parse(u),i,s)),r[c]=null==u||isNaN(u)?i[c]:u,o[c]=null==d||isNaN(d)?s[c]:d}),Ptt(r),Ptt(o);var l=this._minMaxSpan;function c(e,t,i,n,s){var o=s?"Span":"ValueSpan";Yet(0,e,i,"all",l["min"+o],l["max"+o]);for(var r=0;r<2;r++)t[r]=qqe(e[r],i,n,!0),s&&(t[r]=a.parse(t[r]))}return t?c(r,o,i,s,!1):c(o,r,s,i,!0),{valueWindow:r,percentWindow:o}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,i){var a=[1/0,-1/0];Ltt(i,function(e){!function(e,t,i){t&&hYe(Z9e(t,i),function(i){var a=t.getApproximateExtent(i);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}(a,e.getData(),t)});var n=e.getAxisModel(),s=H9e(n.axis.scale,n,a).calculate();return[s.min,s.max]}(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var i=this._dimName,a=this.getTargetSeriesModels(),n=e.get("filterMode"),s=this._valueWindow;"none"!==n&&Ltt(a,function(e){var t=e.getData(),a=t.mapDimensionsAll(i);if(a.length){if("weakFilter"===n){var o=t.getStore(),r=fYe(a,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,i,n,l=0;l<a.length;l++){var c=o.get(r[l],e),d=!isNaN(c),u=c<s[0],p=c>s[1];if(d&&!u&&!p)return!0;d&&(n=!0),u&&(t=!0),p&&(i=!0)}return n&&t&&i})}else Ltt(a,function(i){if("empty"===n)e.setData(t=t.map(i,function(e){return function(e){return e>=s[0]&&e<=s[1]}(e)?e:NaN}));else{var a={};a[i]=s,t.selectRange(a)}});Ltt(a,function(e){t.setApproximateExtent(s,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;Ltt(["min","max"],function(a){var n=t.get(a+"Span"),s=t.get(a+"ValueSpan");null!=s&&(s=this.getAxisModel().axis.scale.parse(s)),null!=s?n=qqe(i[0]+s,i,[0,100],!0):null!=n&&(s=qqe(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=s},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var a=Jqe(i,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;0!==t[0]&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),100!==t[1]&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},e}();var Btt={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(a,n){var s=e.getComponent(Att(a),n);t(a,n,s,i)})})}t(function(e,t,i,a){i.__dzAxisProxy=null});var i=[];t(function(t,a,n,s){n.__dzAxisProxy||(n.__dzAxisProxy=new Ftt(t,a,s,e),i.push(n.__dzAxisProxy))});var a=YYe();return hYe(i,function(e){hYe(e.getTargetSeriesModels(),function(e){a.set(e.uid,e)})}),a},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,i){e.getAxisProxy(t,i).reset(e)}),e.eachTargetAxis(function(i,a){e.getAxisProxy(i,a).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var i=t.getDataPercentWindow(),a=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};var $tt=!1;function Vtt(e){$tt||($tt=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Btt),function(e){e.registerAction("dataZoom",function(e,t){hYe(Rtt(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}var Utt=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(j1e);function Htt(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function ztt(e){if(Uze.domSupported)for(var t=document.documentElement.style,i=0,a=e.length;i<a;i++)if(e[i]in t)return e[i]}var Ytt=ztt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Gtt(e,t){if(!e)return t;t=D1e(t,!0);var i=e.indexOf(t);return(e=-1===i?t:"-"+e.slice(0,i)+"-"+t).toLowerCase()}var Wtt=Gtt(ztt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),jtt=Gtt(Ytt,"transform"),qtt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Uze.transform3dSupported?"will-change:transform;":"");function Ktt(e,t,i){var a=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Uze.transformSupported)return i?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var s=Uze.transform3dSupported,o="translate"+(s?"3d":"")+"("+a+","+n+(s?",0":"")+")";return i?"top:0;left:0;"+jtt+":"+o+";":[["top",0],["left",0],[Ytt,o]]}function Xtt(e,t,i){var a=[],n=e.get("transitionDuration"),s=e.get("backgroundColor"),o=e.get("shadowBlur"),r=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),d=e.getModel("textStyle"),u=h3e(e,"html"),p=l+"px "+c+"px "+o+"px "+r;return a.push("box-shadow:"+p),t&&n&&a.push(function(e,t){var i="cubic-bezier(0.23,1,0.32,1)",a=" "+e/2+"s "+i,n="opacity"+a+",visibility"+a;return t||(a=" "+e+"s "+i,n+=Uze.transformSupported?","+jtt+a:",left"+a+",top"+a),Wtt+":"+n}(n,i)),s&&a.push("background-color:"+s),hYe(["width","color","radius"],function(t){var i="border-"+t,n=D1e(i),s=e.get(n);null!=s&&a.push(i+":"+s+("color"===t?"":"px"))}),a.push(function(e){var t=[],i=e.get("fontSize"),a=e.getTextColor();a&&t.push("color:"+a),t.push("font:"+e.getFont());var n=OYe(e.get("lineHeight"),Math.round(3*i/2));i&&t.push("line-height:"+n+"px");var s=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,r=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return s&&o&&t.push("text-shadow:"+r+"px "+l+"px "+o+"px "+s),hYe(["decoration","align"],function(i){var a=e.get(i);a&&t.push("text-"+i+":"+a)}),t.join(";")}(d)),null!=u&&a.push("padding:"+O1e(u).join("px ")+"px"),a.join(";")+";"}function Ztt(e,t,i,a,n){var s=t&&t.painter;if(i){var o=s&&s.getViewportRoot();o&&function(e,t,i,a,n){_Ge(mGe,t,a,n,!0)&&_Ge(e,i,mGe[0],mGe[1])}(e,o,i,a,n)}else{e[0]=a,e[1]=n;var r=s&&s.getViewportRootOffset();r&&(e[0]+=r.offsetLeft,e[1]+=r.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Qtt=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Uze.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=t.appendTo,s=n&&(SYe(n)?document.querySelector(n):AYe(n)?n:xYe(n)&&n(e.getDom()));Ztt(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),(s||e.getDom()).appendChild(i),this._api=e,this._container=s;var o=this;i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=a.handler;AGe(a.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=(s="position",(o=(n=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?o[s]:null),a=t.style;"absolute"!==a.position&&"absolute"!==i&&(a.position="relative")}var n,s,o,r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=qtt+Xtt(e,!this._firstShow,this._longHide)+Ktt(n[0],n[1],!0)+"border-color:"+F1e(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,i,a,n){var s=this.el;if(null!=e){var o="";if(SYe(n)&&"item"===i.get("trigger")&&!Htt(i)&&(o=function(e,t,i){if(!SYe(i)||"inside"===i)return"";var a=e.get("backgroundColor"),n=e.get("borderWidth");t=F1e(t);var s,o,r="left"===(s=i)?"right":"right"===s?"left":"top"===s?"bottom":"top",l=Math.max(1.5*Math.round(n),6),c="",d=jtt+":";dYe(["left","right"],r)>-1?(c+="top:50%",d+="translateY(-50%) rotate("+(o="left"===r?-225:-45)+"deg)"):(c+="left:50%",d+="translateX(-50%) rotate("+(o="top"===r?225:45)+"deg)");var u=o*Math.PI/180,p=l+n,h=p*Math.abs(Math.cos(u))+p*Math.abs(Math.sin(u)),f=t+" solid "+n+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(c+=";"+r+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-p)/2))/100+"px")+";"+d+";","border-bottom:"+f,"border-right:"+f,"background-color:"+a+";"].join("")+'"></div>'}(i,a,n)),SYe(e))s.innerHTML=e+o;else if(e){s.innerHTML="",yYe(e)||(e=[e]);for(var r=0;r<e.length;r++)AYe(e[r])&&e[r].parentNode!==s&&s.appendChild(e[r]);if(o&&s.childNodes.length){var l=document.createElement("div");l.innerHTML=o,s.appendChild(l)}}}else s.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var i=this._styleCoord;if(Ztt(i,this._zr,this._container,e,t),null!=i[0]&&null!=i[1]){var a=this.el.style;hYe(Ktt(i[0],i[1]),function(e){a[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Uze.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(vYe(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),Jtt=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),iit(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,i,a,n){var s=this;EYe(e)&&uKe(""),this.el&&this._zr.remove(this.el);var o=i.getModel("textStyle");this.el=new RZe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:o.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:h3e(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),hYe(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){s.el.style[e]=i.get(e)}),hYe(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){s.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var r=this;this.el.on("mouseover",function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0}),this.el.on("mouseout",function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=tit(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},e.prototype.moveTo=function(e,t){var i=this.el;if(i){var a=this._styleCoord;iit(a,this._zr,e,t),e=a[0],t=a[1];var n=i.style,s=eit(n.borderWidth||0),o=tit(n);i.x=e+s+o.left,i.y=t+s+o.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(vYe(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function eit(e){return Math.max(0,e)}function tit(e){var t=eit(e.shadowBlur||0),i=eit(e.shadowOffsetX||0),a=eit(e.shadowOffsetY||0);return{left:eit(t-i),right:eit(t+i),top:eit(t-a),bottom:eit(t+a)}}function iit(e,t,i,a){e[0]=i,e[1]=a,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ait=new kZe({shape:{x:-1,y:-1,width:2,height:2}}),nit=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.prototype.init=function(e,t){if(!Uze.node&&t.getDom()){var i,a=e.getComponent("tooltip"),n=this._renderMode="auto"===(i=a.get("renderMode"))?Uze.domSupported?"html":"richText":i||"html";this._tooltipContent="richText"===n?new Jtt(t):new Qtt(t,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,t,i){if(!Uze.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?V3e(this,"_updatePosition",50,"fixRate"):U3e(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");ptt("itemTooltip",this._api,vYe(function(t,i,a){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,a):"leave"===t&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,i=this._api,a=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a&&"click"!==a){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(e,t,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,i,a){if(a.from!==this.uid&&!Uze.node&&i.getDom()){var n=oit(a,i);this._ticket="";var s=a.dataByCoordSys,o=function(e,t,i){var a=AKe(e).queryOptionMap,n=a.keys()[0];if(!n||"series"===n)return;var s=DKe(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=s.models[0];if(!o)return;var r,l=i.getViewOfComponentModel(o);if(l.group.traverse(function(t){var i=HZe(t).tooltipConfig;if(i&&i.name===e.name)return r=t,!0}),r)return{componentMainType:n,componentIndex:o.componentIndex,el:r}}(a,t,i);if(o){var r=o.el.getBoundingRect().clone();r.applyTransform(o.el.transform),this._tryShow({offsetX:r.x+r.width/2,offsetY:r.y+r.height/2,target:o.el,position:a.position,positionDefault:"bottom"},n)}else if(a.tooltip&&null!=a.x&&null!=a.y){var l=ait;l.x=a.x,l.y=a.y,l.update(),HZe(l).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:l},n)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},n);else if(null!=a.seriesIndex){if(this._manuallyAxisShowTip(e,t,i,a))return;var c=_tt(a,t),d=c.point[0],u=c.point[1];null!=d&&null!=u&&this._tryShow({offsetX:d,offsetY:u,target:c.el,position:a.position,positionDefault:"bottom"},n)}else null!=a.x&&null!=a.y&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},n))}},t.prototype.manuallyHideTip=function(e,t,i,a){var n=this._tooltipContent;this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(oit(a,i))},t.prototype._manuallyAxisShowTip=function(e,t,i,a){var n=a.seriesIndex,s=a.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=s&&null!=o){var r=t.getSeriesByIndex(n);if(r)if("axis"===sit([r.getData().getItemModel(s),r,(r.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:s,position:a.position}),!0}},t.prototype._tryShow=function(e,t){var i=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(i){var n,s;if("legend"===HZe(i).ssrType)return;this._lastDataByCoordSys=null,k4e(i,function(e){return null!=HZe(e).dataIndex?(n=e,!0):null!=HZe(e).tooltipConfig?(s=e,!0):void 0},!0),n?this._showSeriesItemTooltip(e,n,t):s?this._showComponentItemTooltip(e,s,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var i=e.get("showDelay");t=vYe(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},t.prototype._showAxisTooltip=function(e,t){var i=this._ecModel,a=this._tooltipModel,n=[t.offsetX,t.offsetY],s=sit([t.tooltipOption],a),o=this._renderMode,r=[],l=n3e("section",{blocks:[],noHeader:!0}),c=[],d=new f3e;hYe(e,function(e){hYe(e.dataByAxis,function(e){var t=i.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value;if(t&&null!=n){var s=att(n,t.axis,i,e.seriesDataIndices,e.valueLabelOpt),u=n3e("section",{header:s,noHeader:!FYe(s),sortBlocks:!0,blocks:[]});l.blocks.push(u),hYe(e.seriesDataIndices,function(l){var p=i.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=p.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=j9e(t.axis,{value:n}),f.axisValueLabel=s,f.marker=d.makeTooltipMarker("item",F1e(f.color),o);var g=E5e(p.formatTooltip(h,!0,null)),m=g.frag;if(m){var _=sit([p],a).get("valueFormatter");u.blocks.push(_?lYe({valueFormatter:_},m):m)}g.text&&c.push(g.text),r.push(f)}})}})}),l.blocks.reverse(),c.reverse();var u=t.position,p=s.get("order"),h=d3e(l,d,o,p,i.get("useUTC"),s.get("textStyle"));h&&c.unshift(h);var f="richText"===o?"\n\n":"<br/>",g=c.join(f);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,r)?this._updatePosition(s,u,n[0],n[1],this._tooltipContent,r):this._showTooltipContent(s,g,r,Math.random()+"",n[0],n[1],u,null,d)})},t.prototype._showSeriesItemTooltip=function(e,t,i){var a=this._ecModel,n=HZe(t),s=n.seriesIndex,o=a.getSeriesByIndex(s),r=n.dataModel||o,l=n.dataIndex,c=n.dataType,d=r.getData(c),u=this._renderMode,p=e.positionDefault,h=sit([d.getItemModel(l),r,o&&(o.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=h.get("trigger");if(null==f||"item"===f){var g=r.getDataParams(l,c),m=new f3e;g.marker=m.makeTooltipMarker("item",F1e(g.color),u);var _=E5e(r.formatTooltip(l,!1,c)),v=h.get("order"),b=h.get("valueFormatter"),y=_.frag,x=y?d3e(b?lYe({valueFormatter:b},y):y,m,u,v,a.get("useUTC"),h.get("textStyle")):_.text,S="item_"+r.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,x,g,S,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:l,dataIndex:d.getRawIndex(l),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,i){var a="html"===this._renderMode,n=HZe(t),s=n.tooltipConfig.option||{},o=s.encodeHTMLContent;if(SYe(s)){s={content:s,formatter:s},o=!0}o&&a&&s.content&&((s=oYe(s)).content=xGe(s.content));var r=[s],l=this._ecModel.getComponent(n.componentMainType,n.componentIndex);l&&r.push(l),r.push({formatter:s.content});var c=e.positionDefault,d=sit(r,this._tooltipModel,c?{position:c}:null),u=d.get("content"),p=Math.random()+"",h=new f3e;this._showOrMove(d,function(){var i=oYe(d.get("formatterParams")||{});this._showTooltipContent(d,u,i,p,e.offsetX,e.offsetY,e.position,t,h)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,i,a,n,s,o,r,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var d=e.get("formatter");o=o||e.get("position");var u=t,p=this._getNearestPoint([n,s],i,e.get("trigger"),e.get("borderColor")).color;if(d)if(SYe(d)){var h=e.ecModel.get("useUTC"),f=yYe(i)?i[0]:i;u=d,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(u=h1e(f.axisValue,u,h)),u=P1e(u,i,!0)}else if(xYe(d)){var g=vYe(function(t,a){t===this._ticket&&(c.setContent(a,l,e,p,o),this._updatePosition(e,o,n,s,c,i,r))},this);this._ticket=a,u=d(i,a,g)}else u=d;c.setContent(u,l,e,p,o),c.show(e,p),this._updatePosition(e,o,n,s,c,i,r)}},t.prototype._getNearestPoint=function(e,t,i,a){return"axis"===i||yYe(t)?{color:a||("html"===this._renderMode?"#fff":"none")}:yYe(t)?void 0:{color:a||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,i,a,n,s,o){var r=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=n.getSize(),d=e.get("align"),u=e.get("verticalAlign"),p=o&&o.getBoundingRect().clone();if(o&&p.applyTransform(o.transform),xYe(t)&&(t=t([i,a],s,n.el,p,{viewSize:[r,l],contentSize:c.slice()})),yYe(t))i=Kqe(t[0],r),a=Kqe(t[1],l);else if(EYe(t)){var h=t;h.width=c[0],h.height=c[1];var f=H1e(h,{width:r,height:l});i=f.x,a=f.y,d=null,u=null}else if(SYe(t)&&o){var g=function(e,t,i,a){var n=i[0],s=i[1],o=Math.ceil(Math.SQRT2*a)+8,r=0,l=0,c=t.width,d=t.height;switch(e){case"inside":r=t.x+c/2-n/2,l=t.y+d/2-s/2;break;case"top":r=t.x+c/2-n/2,l=t.y-s-o;break;case"bottom":r=t.x+c/2-n/2,l=t.y+d+o;break;case"left":r=t.x-n-o,l=t.y+d/2-s/2;break;case"right":r=t.x+c+o,l=t.y+d/2-s/2}return[r,l]}(t,p,c,e.get("borderWidth"));i=g[0],a=g[1]}else{g=function(e,t,i,a,n,s,o){var r=i.getSize(),l=r[0],c=r[1];null!=s&&(e+l+s+2>a?e-=l+s:e+=s);null!=o&&(t+c+o>n?t-=c+o:t+=o);return[e,t]}(i,a,n,r,l,d?null:20,u?null:20);i=g[0],a=g[1]}if(d&&(i-=rit(d)?c[0]/2:"right"===d?c[0]:0),u&&(a-=rit(u)?c[1]/2:"bottom"===u?c[1]:0),Htt(e)){g=function(e,t,i,a,n){var s=i.getSize(),o=s[0],r=s[1];return e=Math.min(e+o,a)-o,t=Math.min(t+r,n)-r,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(i,a,n,r,l);i=g[0],a=g[1]}n.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var i=this._lastDataByCoordSys,a=this._cbParamsList,n=!!i&&i.length===e.length;return n&&hYe(i,function(i,s){var o=i.dataByAxis||[],r=(e[s]||{}).dataByAxis||[];(n=n&&o.length===r.length)&&hYe(o,function(e,i){var s=r[i]||{},o=e.seriesDataIndices||[],l=s.seriesDataIndices||[];(n=n&&e.value===s.value&&e.axisType===s.axisType&&e.axisId===s.axisId&&o.length===l.length)&&hYe(o,function(e,t){var i=l[t];n=n&&e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex}),a&&hYe(e.seriesDataIndices,function(e){var i=e.seriesIndex,s=t[i],o=a[i];s&&o&&o.data!==s.data&&(n=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!n},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Uze.node&&t.getDom()&&(U3e(this,"_updatePosition"),this._tooltipContent.dispose(),gtt("itemTooltip",t))},t.type="tooltip",t}(k3e);function sit(e,t,i){var a,n=t.ecModel;i?(a=new z0e(i,n,n),a=new z0e(t.option,a,n)):a=t;for(var s=e.length-1;s>=0;s--){var o=e[s];o&&(o instanceof z0e&&(o=o.get("tooltip",!0)),SYe(o)&&(o={formatter:o}),o&&(a=new z0e(o,a,n)))}return a}function oit(e,t){return e.dispatchAction||vYe(t.dispatchAction,t)}function rit(e){return"center"===e||"middle"===e}var lit=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.type="dataZoom.inside",t.defaultOption=W0e(Ott.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ott),cit=EKe();function dit(e,t){if(t){e.removeKey(t.model.uid);var i=t.controller;i&&i.dispose()}}function uit(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function pit(e,t,i,a){return e.coordinateSystem.containPoint([i,a])}function hit(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=cit(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=YYe());a.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){hYe(Itt(e).infoList,function(i){var n=i.model.uid,s=a.get(n)||a.set(n,function(e,t){var i={model:t,containsPoint:bYe(pit,t),dispatchAction:bYe(uit,e),dataZoomInfoMap:null,controller:null},a=i.controller=new Vet(e.getZr());return hYe(["pan","zoom","scrollMove"],function(e){a.on(e,function(t){var a=[];i.dataZoomInfoMap.each(function(n){if(t.isAvailableBehavior(n.model.option)){var s=(n.getRange||{})[e],o=s&&s(n.dzReferCoordSysInfo,i.model.mainType,i.controller,t);!n.model.get("disabled",!0)&&o&&a.push({dataZoomId:n.model.id,start:o[0],end:o[1]})}}),a.length&&i.dispatchAction(a)})}),i}(t,i.model));(s.dataZoomInfoMap||(s.dataZoomInfoMap=YYe())).set(e.uid,{dzReferCoordSysInfo:i,model:e,getRange:null})})}),a.each(function(e){var t,i=e.controller,n=e.dataZoomInfoMap;if(n){var s=n.keys()[0];null!=s&&(t=n.get(s))}if(t){var o=function(e){var t,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return e.each(function(e){var s=e.model,o=!s.get("disabled",!0)&&(!s.get("zoomLock",!0)||"move");a[i+o]>a[i+t]&&(t=o),n=n&&s.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}(n);i.enable(o.controlType,o.opt),i.setPointerChecker(e.containsPoint),V3e(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else dit(a,e)})})}var fit=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return $ze(t,e),t.prototype.render=function(t,i,a){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,i){cit(e).coordSysRecordMap.each(function(e){var a=e.dataZoomInfoMap.get(t.uid);a&&(a.getRange=i)})}(a,t,{pan:vYe(git.pan,this),zoom:vYe(git.zoom,this),scrollMove:vYe(git.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var i=cit(e).coordSysRecordMap,a=i.keys(),n=0;n<a.length;n++){var s=a[n],o=i.get(s),r=o.dataZoomInfoMap;if(r){var l=t.uid;r.get(l)&&(r.removeKey(l),r.keys().length||dit(i,o))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Ntt),git={zoom:function(e,t,i,a){var n=this.range,s=n.slice(),o=e.axisModels[0];if(o){var r=_it[t](null,[a.originX,a.originY],o,i,e),l=(r.signal>0?r.pixelStart+r.pixelLength-r.pixel:r.pixel-r.pixelStart)/r.pixelLength*(s[1]-s[0])+s[0],c=Math.max(1/a.scale,0);s[0]=(s[0]-l)*c+l,s[1]=(s[1]-l)*c+l;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Yet(0,s,[0,100],0,d.minSpan,d.maxSpan),this.range=s,n[0]!==s[0]||n[1]!==s[1]?s:void 0}},pan:mit(function(e,t,i,a,n,s){var o=_it[a]([s.oldX,s.oldY],[s.newX,s.newY],t,n,i);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:mit(function(e,t,i,a,n,s){return _it[a]([0,0],[s.scrollDelta,s.scrollDelta],t,n,i).signal*(e[1]-e[0])*s.scrollDelta})};function mit(e){return function(t,i,a,n){var s=this.range,o=s.slice(),r=t.axisModels[0];if(r)return Yet(e(o,r,t,i,a,n),o,[0,100],"all"),this.range=o,s[0]!==o[0]||s[1]!==o[1]?o:void 0}}var _it={grid:function(e,t,i,a,n){var s=i.axis,o={},r=n.model.coordinateSystem.getRect();return e=e||[0,0],"x"===s.dim?(o.pixel=t[0]-e[0],o.pixelLength=r.width,o.pixelStart=r.x,o.signal=s.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=r.height,o.pixelStart=r.y,o.signal=s.inverse?-1:1),o},polar:function(e,t,i,a,n){var s=i.axis,o={},r=n.model.coordinateSystem,l=r.getRadiusAxis().getExtent(),c=r.getAngleAxis().getExtent();return e=e?r.pointToCoord(e):[0,0],t=r.pointToCoord(t),"radiusAxis"===i.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=s.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=s.inverse?-1:1),o},singleAxis:function(e,t,i,a,n){var s=i.axis,o=n.model.coordinateSystem.getRect(),r={};return e=e||[0,0],"horizontal"===s.orient?(r.pixel=t[0]-e[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=s.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=s.inverse?-1:1),r}};function vit(e){Vtt(e),e.registerComponentModel(lit),e.registerComponentView(fit),hit(e)}var bit=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return $ze(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=W0e(Ott.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ott),yit=kZe,xit="horizontal",Sit="vertical",wit=["line","bar","candlestick","scatter"],Cit={easing:"cubicOut",duration:100,delay:0},Eit=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._displayables={},i}return $ze(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=vYe(this._onBrush,this),this._onBrushEnd=vYe(this._onBrushEnd,this)},t.prototype.render=function(t,i,a,n){if(e.prototype.render.apply(this,arguments),V3e(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){U3e(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Uqe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,i=e.get("brushSelect")?7:0,a=this._findCoordRect(),n={width:t.getWidth(),height:t.getHeight()},s=this._orient===xit?{right:n.width-a.x-a.width,top:n.height-30-7-i,width:a.width,height:30}:{right:7,top:a.y,width:30,height:a.height},o=G1e(e.option);hYe(["right","top","width","height"],function(e){"ph"===o[e]&&(o[e]=s[e])});var r=H1e(o,n);this._location={x:r.x,y:r.y},this._size=[r.width,r.height],this._orient===Sit&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),n=a&&a.get("inverse"),s=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i!==xit||n?i===xit&&n?{scaleY:o?1:-1,scaleX:-1}:i!==Sit||n?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var r=e.getBoundingRect([s]);e.x=t.x-r.x,e.y=t.y-r.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new yit({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var n=new yit({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:vYe(this._onClickPanel,this)}),s=this.api.getZr();a?(n.on("mousedown",this._onBrushStart,this),n.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(n)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,i=this._shadowSize||[],a=e.series,n=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),o=s&&n.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(null!=o){var r=this._shadowPolygonPts,l=this._shadowPolylinePts;if(n!==this._shadowData||o!==this._shadowDim||t[0]!==i[0]||t[1]!==i[1]){var c=n.getDataExtent(o),d=.3*(c[1]-c[0]);c=[c[0]-d,c[1]+d];var u,p=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=h[1]/(n.count()-1),_=0,v=Math.round(n.count()/t[0]);n.each([o],function(e,t){if(v>0&&t%v)_+=m;else{var i=null==e||isNaN(e)||""===e,a=i?0:qqe(e,c,p,!0);i&&!u&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!i&&u&&(f.push([_,0]),g.push([_,0])),f.push([_,a]),g.push([_,a]),_+=m,u=i}}),r=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=n,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,y=0;y<3;y++){var x=S(1===y);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function S(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),i=new Uqe,a=new yJe({shape:{points:r},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),n=new SJe({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(a),i.add(n),i}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var i,a=this.ecModel;return e.eachTargetAxis(function(n,s){hYe(e.getAxisProxy(n,s).getTargetSeriesModels(),function(e){if(!(i||!0!==t&&dYe(wit,e.get("type"))<0)){var o,r=a.getComponent(Att(n),s).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[n],c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(o=c.getOtherAxis(r).inverse),l=e.getData().mapDimension(l),i={thisAxis:r,series:e,thisDim:n,otherDim:l,otherAxisInverse:o}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,i=t.handles=[null,null],a=t.handleLabels=[null,null],n=this._displayables.sliderGroup,s=this._size,o=this.dataZoomModel,r=this.api,l=o.get("borderRadius")||0,c=o.get("brushSelect"),d=t.filler=new yit({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});n.add(d),n.add(new yit({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),hYe([0,1],function(t){var s=o.get("handleIcon");!L4e[s]&&s.indexOf("path://")<0&&s.indexOf("image://")<0&&(s="path://"+s);var r=B4e(s,-1,0,2,2,null,!0);r.attr({cursor:kit(this._orient),draggable:!0,drift:vYe(this._onDragMove,this,t),ondragend:vYe(this._onDragEnd,this),onmouseover:vYe(this._showDataInfo,this,!0),onmouseout:vYe(this._showDataInfo,this,!1),z2:5});var l=r.getBoundingRect(),c=o.get("handleSize");this._handleHeight=Kqe(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle()),r.style.strokeNoScale=!0,r.rectHover=!0,r.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),kQe(r);var d=o.get("handleColor");null!=d&&(r.style.fill=d),n.add(i[t]=r);var u=o.getModel("textStyle"),p=(o.get("handleLabel")||{}).show||!1;e.add(a[t]=new RZe({silent:!0,invisible:!p,style:C0e(u,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:u.getTextColor(),font:u.getFont()}),z2:10}))},this);var u=d;if(c){var p=Kqe(o.get("moveHandleSize"),s[1]),h=t.moveHandle=new kZe({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),f=.8*p,g=t.moveHandleIcon=B4e(o.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=s[1]+p/2-.5,h.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));(u=t.moveZone=new kZe({invisible:!0,shape:{y:s[1]-m,height:p+m}})).on("mouseover",function(){r.enterEmphasis(h)}).on("mouseout",function(){r.leaveEmphasis(h)}),n.add(h),n.add(g),n.add(u)}u.attr({draggable:!0,cursor:kit(this._orient),drift:vYe(this._onDragMove,this,"all"),ondragstart:vYe(this._showDataInfo,this,!0),ondragend:vYe(this._onDragEnd,this),onmouseover:vYe(this._showDataInfo,this,!0),onmouseout:vYe(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[qqe(e[0],[0,100],t,!0),qqe(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var i=this.dataZoomModel,a=this._handleEnds,n=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Yet(t,a,n,i.get("zoomLock")?"all":e,null!=s.minSpan?qqe(s.minSpan,o,n,!0):null,null!=s.maxSpan?qqe(s.maxSpan,o,n,!0):null);var r=this._range,l=this._range=Zqe([qqe(a[0],n,o,!0),qqe(a[1],n,o,!0)]);return!r||r[0]!==l[0]||r[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,i=this._handleEnds,a=Zqe(i.slice()),n=this._size;hYe([0,1],function(e){var a=t.handles[e],s=this._handleHeight;a.attr({scaleX:s/2,scaleY:s/2,x:i[e]+(e?-1:1),y:n[1]/2-s/2})},this),t.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:n[1]});var s={x:a[0],width:a[1]-a[0]};t.moveHandle&&(t.moveHandle.setShape(s),t.moveZone.setShape(s),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",s.x+s.width/2));for(var o=t.dataShadowSegs,r=[0,a[0],a[1],n[0]],l=0;l<o.length;l++){var c=o[l],d=c.getClipPath();d||(d=new kZe,c.setClipPath(d)),d.setShape({x:r[l],y:0,width:r[l+1]-r[l],height:n[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,i=this._displayables,a=i.handleLabels,n=this._orient,s=["",""];if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var r=o.getAxisModel().axis,l=this._range,c=e?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();s=[this._formatLabel(c[0],r),this._formatLabel(c[1],r)]}}var d=Zqe(this._handleEnds.slice());function u(e){var t=c0e(i.handles[e].parent,this.group),o=u0e(0===e?"right":"left",t),r=this._handleWidth/2+5,l=d0e([d[e]+(0===e?-r:r),this._size[1]/2],t);a[e].setStyle({x:l[0],y:l[1],verticalAlign:n===xit?"middle":o,align:n===xit?o:"center",text:s[e]})}u.call(this,0),u.call(this,1)},t.prototype._formatLabel=function(e,t){var i=this.dataZoomModel,a=i.get("labelFormatter"),n=i.get("labelPrecision");null!=n&&"auto"!==n||(n=t.getPixelPrecision());var s=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(n,20));return xYe(a)?a(e,s):SYe(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get("handleLabel")||{}).show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,a=e||this._dragging?i:t,n=this._displayables,s=n.handleLabels;s[0].attr("invisible",!a),s[1].attr("invisible",!a),n.moveHandle&&this.api[a?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,t,i,a){this._dragging=!0,IGe(a.event);var n=d0e([t,i],this._displayables.sliderGroup.getLocalTransform(),!0),s=this._updateInterval(e,n[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),s&&o&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>t[0]||i[1]<0||i[1]>t[1])){var a=this._handleEnds,n=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-n);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,i=e.offsetY;this._brushStart=new VGe(t,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var i=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),n=[0,100];this._range=Zqe([qqe(i.x,a,n,!0),qqe(i.x+i.width,a,n,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(IGe(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var i=this._displayables,a=this.dataZoomModel,n=i.brushRect;n||(n=i.brushRect=new yit({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(n)),n.attr("ignore",!1);var s=this._brushStart,o=this._displayables.sliderGroup,r=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(s.x,s.y),c=this._size;r[0]=Math.max(Math.min(c[0],r[0]),0),n.setShape({x:l[0],y:0,width:r[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Cit:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Itt(this.dataZoomModel).infoList;if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),n=this.api.getHeight();e={x:.2*a,y:.2*n,width:.6*a,height:.6*n}}return e},t.type="dataZoom.slider",t}(Ntt);function kit(e){return"vertical"===e?"ns-resize":"ew-resize"}function Tit(e){e.registerComponentModel(bit),e.registerComponentView(Eit),Vtt(e)}var Ait=Math.sin,Rit=Math.cos,Iit=Math.PI,Dit=2*Math.PI,Oit=180/Iit,Mit=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,i,a,n,s){this._add("C",e,t,i,a,n,s)},e.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},e.prototype.arc=function(e,t,i,a,n,s){this.ellipse(e,t,i,i,0,a,n,s)},e.prototype.ellipse=function(e,t,i,a,n,s,o,r){var l=o-s,c=!r,d=Math.abs(l),u=hje(d-Dit)||(c?l>=Dit:-l>=Dit),p=l>0?l%Dit:l%Dit+Dit,h=!1;h=!!u||!hje(d)&&p>=Iit==!!c;var f=e+i*Rit(s),g=t+a*Ait(s);this._start&&this._add("M",f,g);var m=Math.round(n*Oit);if(u){var _=1/this._p,v=(c?1:-1)*(Dit-_);this._add("A",i,a,m,1,+c,e+i*Rit(s+v),t+a*Ait(s+v)),_>.01&&this._add("A",i,a,m,0,+c,f,g)}else{var b=e+i*Rit(o),y=t+a*Ait(o);this._add("A",i,a,m,+h,+c,b,y)}},e.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,i,a,n,s,o,r,l){for(var c=[],d=this._p,u=1;u<arguments.length;u++){var p=arguments[u];if(isNaN(p))return void(this._invalid=!0);c.push(Math.round(p*d)/d)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Nit="none",Lit=Math.round;var Pit=["lineCap","miterLimit","lineJoin"],Fit=fYe(Pit,function(e){return"stroke-"+e.toLowerCase()});function Bit(e,t,i,a){var n=null==t.opacity?1:t.opacity;if(i instanceof bZe)e("opacity",n);else{if(function(e){var t=e.fill;return null!=t&&t!==Nit}(t)){var s=uje(t.fill);e("fill",s.color);var o=null!=t.fillOpacity?t.fillOpacity*s.opacity*n:s.opacity*n;o<1&&e("fill-opacity",o)}else e("fill",Nit);if(function(e){var t=e.stroke;return null!=t&&t!==Nit}(t)){var r=uje(t.stroke);e("stroke",r.color);var l=t.strokeNoScale?i.getLineScale():1,c=l?(t.lineWidth||0)/l:0,d=null!=t.strokeOpacity?t.strokeOpacity*r.opacity*n:r.opacity*n,u=t.strokeFirst;if(1!==c&&e("stroke-width",c),u&&e("paint-order",u?"stroke":"fill"),d<1&&e("stroke-opacity",d),t.lineDash){var p=z4e(i),h=p[0],f=p[1];h&&(f=Lit(f||0),e("stroke-dasharray",h.join(",")),(f||a)&&e("stroke-dashoffset",f))}for(var g=0;g<Pit.length;g++){var m=Pit[g];if(t[m]!==uZe[m]){var _=t[m]||uZe[m];_&&e(Fit[g],_)}}}}}var $it="http://www.w3.org/2000/svg",Vit="http://www.w3.org/1999/xlink",Uit="ecmeta_";function Hit(e){return document.createElementNS($it,e)}function zit(e,t,i,a,n){return{tag:e,attrs:i||{},children:a,text:n,key:t}}function Yit(e,t){var i=(t=t||{}).newline?"\n":"";return function e(t){var a=t.children,n=t.tag,s=t.attrs,o=t.text;return function(e,t){var i=[];if(t)for(var a in t){var n=t[a],s=a;!1!==n&&(!0!==n&&null!=n&&(s+='="'+n+'"'),i.push(s))}return"<"+e+" "+i.join(" ")+">"}(n,s)+("style"!==n?xGe(o):o||"")+(a?""+i+fYe(a,function(t){return e(t)}).join(i)+i:"")+function(e){return"</"+e+">"}(n)}(e)}function Git(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Wit(e,t,i,a){return zit("svg","root",{width:e,height:t,xmlns:$it,"xmlns:xlink":Vit,version:"1.1",baseProfile:"full",viewBox:!!a&&"0 0 "+e+" "+t},i)}var jit=0;function qit(){return jit++}var Kit={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Xit="transform-origin";function Zit(e,t,i){var a=lYe({},e.shape);lYe(a,t),e.buildPath(i,a);var n=new Mit;return n.reset(wje(e)),i.rebuildPath(n,1),n.generateStr(),n.getStr()}function Qit(e,t){var i=t.originX,a=t.originY;(i||a)&&(e[Xit]=i+"px "+a+"px")}var Jit={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function eat(e,t){var i=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[i]=e,i}function tat(e){return SYe(e)?Kit[e]?"cubic-bezier("+Kit[e]+")":UWe(e)?e:"":""}function iat(e,t,i,a){var n=e.animators,s=n.length,o=[];if(e instanceof OJe){var r=function(e,t,i){var a,n,s=e.shape.paths,o={};if(hYe(s,function(e){var t=Git(i.zrId);t.animation=!0,iat(e,{},t,!0);var s=t.cssAnims,r=t.cssNodes,l=_Ye(s),c=l.length;if(c){var d=s[n=l[c-1]];for(var u in d){var p=d[u];o[u]=o[u]||{d:""},o[u].d+=p.d||""}for(var h in r){var f=r[h].animation;f.indexOf(n)>=0&&(a=f)}}}),a){t.d=!1;var r=eat(o,i);return a.replace(n,r)}}(e,t,i);if(r)o.push(r);else if(!s)return}else if(!s)return;for(var l={},c=0;c<s;c++){var d=n[c],u=[d.getMaxTime()/1e3+"s"],p=tat(d.getClip().easing),h=d.getDelay();p?u.push(p):u.push("linear"),h&&u.push(h/1e3+"s"),d.getLoop()&&u.push("infinite");var f=u.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(d)}function g(n){var s,o=n[1],r=o.length,l={},c={},d={},u="animation-timing-function";function p(e,t,i){for(var a=e.getTracks(),n=e.getMaxTime(),s=0;s<a.length;s++){var o=a[s];if(o.needsAnimate()){var r=o.keyframes,l=o.propName;if(i&&(l=i(l)),l)for(var c=0;c<r.length;c++){var d=r[c],p=Math.round(d.time/n*100)+"%",h=tat(d.easing),f=d.rawValue;(SYe(f)||CYe(f))&&(t[p]=t[p]||{},t[p][l]=d.rawValue,h&&(t[p][u]=h))}}}}for(var h=0;h<r;h++){(w=(S=o[h]).targetName)?"shape"===w&&p(S,c):!a&&p(S,l)}for(var f in l){var g={};xqe(g,e),lYe(g,l[f]);var m=Cje(g),_=l[f][u];d[f]=m?{transform:m}:{},Qit(d[f],g),_&&(d[f][u]=_)}var v=!0;for(var f in c){d[f]=d[f]||{};var b=!s;_=c[f][u];b&&(s=new jXe);var y=s.len();s.reset(),d[f].d=Zit(e,c[f],s);var x=s.len();if(!b&&y!==x){v=!1;break}_&&(d[f][u]=_)}if(!v)for(var f in d)delete d[f].d;if(!a)for(h=0;h<r;h++){var S,w;"style"===(w=(S=o[h]).targetName)&&p(S,d,function(e){return Jit[e]})}var C,E=_Ye(d),k=!0;for(h=1;h<E.length;h++){var T=E[h-1],A=E[h];if(d[T][Xit]!==d[A][Xit]){k=!1;break}C=d[T][Xit]}if(k&&C){for(var f in d)d[f][Xit]&&delete d[f][Xit];t[Xit]=C}if(mYe(E,function(e){return _Ye(d[e]).length>0}).length)return eat(d,i)+" "+n[0]+" both"}for(var m in l){(r=g(l[m]))&&o.push(r)}if(o.length){var _=i.zrId+"-cls-"+qit();i.cssNodes["."+_]={animation:o.join(",")},t.class=_}}function aat(e,t,i,a){var n=JSON.stringify(e),s=i.cssStyleCache[n];s||(s=i.zrId+"-cls-"+qit(),i.cssStyleCache[n]=s,i.cssNodes["."+s+":hover"]=e),t.class=t.class?t.class+" "+s:s}var nat=Math.round;function sat(e){return e&&SYe(e.src)}function oat(e){return e&&xYe(e.toDataURL)}function rat(e,t,i,a){Bit(function(n,s){var o="fill"===n||"stroke"===n;o&&xje(s)?vat(t,e,n,a):o&&vje(s)?bat(i,e,n,a):e[n]=s,o&&a.ssr&&"none"===s&&(e["pointer-events"]="visible")},t,i,!1),function(e,t,i){var a=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(a)){var n=function(e){var t=e.style,i=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(",")}(e),s=i.shadowCache,o=s[n];if(!o){var r=e.getGlobalScale(),l=r[0],c=r[1];if(!l||!c)return;var d=a.shadowOffsetX||0,u=a.shadowOffsetY||0,p=a.shadowBlur,h=uje(a.shadowColor),f=h.opacity,g=h.color,m=p/2/l+" "+p/2/c;o=i.zrId+"-s"+i.shadowIdx++,i.defs[o]=zit("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[zit("feDropShadow","",{dx:d/l,dy:u/c,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),s[n]=o}t.filter=Sje(o)}}(i,e,a)}function lat(e,t){var i=function(e){if("function"==typeof Yqe)return Yqe(e)}(t);i&&(i.each(function(t,i){null!=t&&(e[(Uit+i).toLowerCase()]=t+"")}),t.isSilent()&&(e[Uit+"silent"]="true"))}function cat(e){return hje(e[0]-1)&&hje(e[1])&&hje(e[2])&&hje(e[3]-1)}function dat(e,t,i){if(t&&(!function(e){return hje(e[4])&&hje(e[5])}(t)||!cat(t))){var a=1e4;e.transform=cat(t)?"translate("+nat(t[4]*a)/a+" "+nat(t[5]*a)/a+")":function(e){return"matrix("+fje(e[0])+","+fje(e[1])+","+fje(e[2])+","+fje(e[3])+","+gje(e[4])+","+gje(e[5])+")"}(t)}}function uat(e,t,i){for(var a=e.points,n=[],s=0;s<a.length;s++)n.push(nat(a[s][0]*i)/i),n.push(nat(a[s][1]*i)/i);t.points=n.join(" ")}function pat(e){return!e.smooth}var hat,fat,gat={circle:[(hat=["cx","cy","r"],fat=fYe(hat,function(e){return"string"==typeof e?[e,e]:e}),function(e,t,i){for(var a=0;a<fat.length;a++){var n=fat[a],s=e[n[0]];null!=s&&(t[n[1]]=nat(s*i)/i)}})],polyline:[uat,pat],polygon:[uat,pat]};function mat(e,t){var i=e.style,a=e.shape,n=gat[e.type],s={},o=t.animation,r="path",l=e.style.strokePercent,c=t.compress&&wje(e)||4;if(!n||t.willUpdate||n[1]&&!n[1](a)||o&&function(e){for(var t=e.animators,i=0;i<t.length;i++)if("shape"===t[i].targetName)return!0;return!1}(e)||l<1){var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var u=e.path;d&&(u.beginPath(),e.buildPath(u,e.shape),e.pathUpdated());var p=u.getVersion(),h=e,f=h.__svgPathBuilder;h.__svgPathVersion===p&&f&&l===h.__svgPathStrokePercent||(f||(f=h.__svgPathBuilder=new Mit),f.reset(c),u.rebuildPath(f,l),f.generateStr(),h.__svgPathVersion=p,h.__svgPathStrokePercent=l),s.d=f.getStr()}else{r=e.type;var g=Math.pow(10,c);n[0](a,s,g)}return dat(s,e.transform),rat(s,i,e,t),lat(s,e),t.animation&&iat(e,s,t),t.emphasis&&function(e,t,i){if(!e.ignore)if(e.isSilent())aat(c={"pointer-events":"none"},t,i);else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},n=a.fill;if(!n){var s=e.style&&e.style.fill,o=e.states.select&&e.states.select.style&&e.states.select.style.fill,r=e.currentStates.indexOf("select")>=0&&o||s;r&&(n=cje(r))}var l=a.lineWidth;l&&(l/=!a.strokeNoScale&&e.transform?e.transform[0]:1);var c={cursor:"pointer"};n&&(c.fill=n),a.stroke&&(c.stroke=a.stroke),l&&(c["stroke-width"]=l),aat(c,t,i)}}(e,s,t),zit(r,e.id+"",s)}function _at(e,t){return e instanceof fZe?mat(e,t):e instanceof bZe?function(e,t){var i=e.style,a=i.image;if(a&&!SYe(a)&&(sat(a)?a=a.src:oat(a)&&(a=a.toDataURL())),a){var n=i.x||0,s=i.y||0,o={href:a,width:i.width,height:i.height};return n&&(o.x=n),s&&(o.y=s),dat(o,e.transform),rat(o,i,e,t),lat(o,e),t.animation&&iat(e,o,t),zit("image",e.id+"",o)}}(e,t):e instanceof mZe?function(e,t){var i=e.style,a=i.text;if(null!=a&&(a+=""),a&&!isNaN(i.x)&&!isNaN(i.y)){var n=i.font||zze,s=i.x||0,o=function(e,t,i){return"top"===i?e+=t/2:"bottom"===i&&(e-=t/2),e}(i.y||0,Aqe(n),i.textBaseline),r={"dominant-baseline":"central","text-anchor":mje[i.textAlign]||i.textAlign};if(LZe(i)){var l="",c=i.fontStyle,d=MZe(i.fontSize);if(!parseFloat(d))return;var u=i.fontFamily||Hze,p=i.fontWeight;l+="font-size:"+d+";font-family:"+u+";",c&&"normal"!==c&&(l+="font-style:"+c+";"),p&&"normal"!==p&&(l+="font-weight:"+p+";"),r.style=l}else r.style="font: "+n;return a.match(/\s/)&&(r["xml:space"]="preserve"),s&&(r.x=s),o&&(r.y=o),dat(r,e.transform),rat(r,i,e,t),lat(r,e),t.animation&&iat(e,r,t),zit("text",e.id+"",r,void 0,a)}}(e,t):void 0}function vat(e,t,i,a){var n,s=e[i],o={gradientUnits:s.global?"userSpaceOnUse":"objectBoundingBox"};if(bje(s))n="linearGradient",o.x1=s.x,o.y1=s.y,o.x2=s.x2,o.y2=s.y2;else{if(!yje(s))return;n="radialGradient",o.cx=OYe(s.x,.5),o.cy=OYe(s.y,.5),o.r=OYe(s.r,.5)}for(var r=s.colorStops,l=[],c=0,d=r.length;c<d;++c){var u=100*gje(r[c].offset)+"%",p=uje(r[c].color),h=p.color,f=p.opacity,g={offset:u};g["stop-color"]=h,f<1&&(g["stop-opacity"]=f),l.push(zit("stop",c+"",g))}var m=Yit(zit(n,"",o,l)),_=a.gradientCache,v=_[m];v||(v=a.zrId+"-g"+a.gradientIdx++,_[m]=v,o.id=v,a.defs[v]=zit(n,v,o,l)),t[i]=Sje(v)}function bat(e,t,i,a){var n,s=e.style[i],o=e.getBoundingRect(),r={},l=s.repeat,c="no-repeat"===l,d="repeat-x"===l,u="repeat-y"===l;if(_je(s)){var p=s.imageWidth,h=s.imageHeight,f=void 0,g=s.image;if(SYe(g)?f=g:sat(g)?f=g.src:oat(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";PYe(p,m),PYe(h,m)}else if(null==p||null==h){var _=function(e,t){if(e){var i=e.elm,a=p||t.width,n=h||t.height;"pattern"===e.tag&&(d?(n=1,a/=o.width):u&&(a=1,n/=o.height)),e.attrs.width=a,e.attrs.height=n,i&&(i.setAttribute("width",a),i.setAttribute("height",n))}},v=jKe(f,null,e,function(e){c||_(S,e),_(n,e)});v&&v.width&&v.height&&(p=p||v.width,h=h||v.height)}n=zit("image","img",{href:f,width:p,height:h}),r.width=p,r.height=h}else s.svgElement&&(n=oYe(s.svgElement),r.width=s.svgWidth,r.height=s.svgHeight);if(n){var b,y;c?b=y=1:d?(y=1,b=r.width/o.width):u?(b=1,y=r.height/o.height):r.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(r.width=b),null==y||isNaN(y)||(r.height=y);var x=Cje(s);x&&(r.patternTransform=x);var S=zit("pattern","",r,[n]),w=Yit(S),C=a.patternCache,E=C[w];E||(E=a.zrId+"-p"+a.patternIdx++,C[w]=E,r.id=E,S=a.defs[E]=zit("pattern",E,r,[n])),t[i]=Sje(E)}}function yat(e,t,i){var a=i.clipPathCache,n=i.defs,s=a[e.id];if(!s){var o={id:s=i.zrId+"-c"+i.clipPathIdx++};a[e.id]=s,n[s]=zit("clipPath",s,o,[mat(e,i)])}t["clip-path"]=Sje(s)}function xat(e){return document.createTextNode(e)}function Sat(e,t,i){e.insertBefore(t,i)}function wat(e,t){e.removeChild(t)}function Cat(e,t){e.appendChild(t)}function Eat(e){return e.parentNode}function kat(e){return e.nextSibling}function Tat(e,t){e.textContent=t}var Aat=zit("","");function Rat(e){return void 0===e}function Iat(e){return void 0!==e}function Dat(e,t,i){for(var a={},n=t;n<=i;++n){var s=e[n].key;void 0!==s&&(a[s]=n)}return a}function Oat(e,t){var i=e.key===t.key;return e.tag===t.tag&&i}function Mat(e){var t,i=e.children,a=e.tag;if(Iat(a)){var n=e.elm=Hit(a);if(Pat(Aat,e),yYe(i))for(t=0;t<i.length;++t){var s=i[t];null!=s&&Cat(n,Mat(s))}else Iat(e.text)&&!EYe(e.text)&&Cat(n,xat(e.text))}else e.elm=xat(e.text);return e.elm}function Nat(e,t,i,a,n){for(;a<=n;++a){var s=i[a];null!=s&&Sat(e,Mat(s),t)}}function Lat(e,t,i,a){for(;i<=a;++i){var n=t[i];if(null!=n)if(Iat(n.tag))wat(Eat(n.elm),n.elm);else wat(e,n.elm)}}function Pat(e,t){var i,a=t.elm,n=e&&e.attrs||{},s=t.attrs||{};if(n!==s){for(i in s){var o=s[i];n[i]!==o&&(!0===o?a.setAttribute(i,""):!1===o?a.removeAttribute(i):"style"===i?a.style.cssText=o:120!==i.charCodeAt(0)?a.setAttribute(i,o):"xmlns:xlink"===i||"xmlns"===i?a.setAttributeNS("http://www.w3.org/2000/xmlns/",i,o):58===i.charCodeAt(3)?a.setAttributeNS("http://www.w3.org/XML/1998/namespace",i,o):58===i.charCodeAt(5)?a.setAttributeNS(Vit,i,o):a.setAttribute(i,o))}for(i in n)i in s||a.removeAttribute(i)}}function Fat(e,t){var i=t.elm=e.elm,a=e.children,n=t.children;e!==t&&(Pat(e,t),Rat(t.text)?Iat(a)&&Iat(n)?a!==n&&function(e,t,i){for(var a,n,s,o=0,r=0,l=t.length-1,c=t[0],d=t[l],u=i.length-1,p=i[0],h=i[u];o<=l&&r<=u;)null==c?c=t[++o]:null==d?d=t[--l]:null==p?p=i[++r]:null==h?h=i[--u]:Oat(c,p)?(Fat(c,p),c=t[++o],p=i[++r]):Oat(d,h)?(Fat(d,h),d=t[--l],h=i[--u]):Oat(c,h)?(Fat(c,h),Sat(e,c.elm,kat(d.elm)),c=t[++o],h=i[--u]):Oat(d,p)?(Fat(d,p),Sat(e,d.elm,c.elm),d=t[--l],p=i[++r]):(Rat(a)&&(a=Dat(t,o,l)),Rat(n=a[p.key])||(s=t[n]).tag!==p.tag?Sat(e,Mat(p),c.elm):(Fat(s,p),t[n]=void 0,Sat(e,s.elm,c.elm)),p=i[++r]);(o<=l||r<=u)&&(o>l?Nat(e,null==i[u+1]?null:i[u+1].elm,i,r,u):Lat(e,t,o,l))}(i,a,n):Iat(n)?(Iat(e.text)&&Tat(i,""),Nat(i,null,n,0,n.length-1)):Iat(a)?Lat(i,a,0,a.length-1):Iat(e.text)&&Tat(i,""):e.text!==t.text&&(Iat(a)&&Lat(i,a,0,a.length-1),Tat(i,t.text)))}var Bat=0,$at=function(){function e(e,t,i){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=t,this._opts=i=lYe({},i),this.root=e,this._id="zr"+Bat++,this._oldVNode=Wit(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Hit("svg");Pat(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(Oat(e,t))Fat(e,t);else{var i=e.elm,a=Eat(i);Mat(t),null!==a&&(Sat(a,t.elm,kat(i)),Lat(a,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return _at(e,Git(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=Git(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var s=[],o=this._bgVNode=function(e,t,i,a){var n;if(i&&"none"!==i)if(n=zit("rect","bg",{width:e,height:t,x:"0",y:"0"}),xje(i))vat({fill:i},n.attrs,"fill",a);else if(vje(i))bat({style:{fill:i},dirty:jYe,getBoundingRect:function(){return{width:e,height:t}}},n.attrs,"fill",a);else{var s=uje(i),o=s.color,r=s.opacity;n.attrs.fill=o,r<1&&(n.attrs["fill-opacity"]=r)}return n}(i,a,this._backgroundColor,n);o&&s.push(o);var r=e.compress?null:this._mainVNode=zit("g","main",{},[]);this._paintList(t,n,r?r.children:s),r&&s.push(r);var l=fYe(_Ye(n.defs),function(e){return n.defs[e]});if(l.length&&s.push(zit("defs","defs",{},l)),e.animation){var c=function(e,t,i){var a=(i=i||{}).newline?"\n":"",n=" {"+a,s=a+"}",o=fYe(_Ye(e),function(t){return t+n+fYe(_Ye(e[t]),function(i){return i+":"+e[t][i]+";"}).join(a)+s}).join(a),r=fYe(_Ye(t),function(e){return"@keyframes "+e+n+fYe(_Ye(t[e]),function(i){return i+n+fYe(_Ye(t[e][i]),function(a){var n=t[e][i][a];return"d"===a&&(n='path("'+n+'")'),a+":"+n+";"}).join(a)+s}).join(a)+s}).join(a);return o||r?["<![CDATA[",o,r,"]]>"].join(a):""}(n.cssNodes,n.cssAnims,{newline:!0});if(c){var d=zit("style","stl",{},[],c);s.push(d)}}return Wit(i,a,s,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Yit(this.renderToVNode({animation:OYe(e.cssAnimation,!0),emphasis:OYe(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:OYe(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,i){for(var a,n,s=e.length,o=[],r=0,l=0,c=0;c<s;c++){var d=e[c];if(!d.invisible){var u=d.__clipPaths,p=u&&u.length||0,h=n&&n.length||0,f=void 0;for(f=Math.max(p-1,h-1);f>=0&&(!u||!n||u[f]!==n[f]);f--);for(var g=h-1;g>f;g--)a=o[--r-1];for(var m=f+1;m<p;m++){var _={};yat(u[m],_,t);var v=zit("g","clip-g-"+l++,_,[]);(a?a.children:i).push(v),o[r++]=v,a=v}n=u;var b=_at(d,t);b&&(a?a.children:i).push(b)}}},e.prototype.resize=function(e,t){var i=this._opts,a=this.root,n=this._viewport;if(null!=e&&(i.width=e),null!=t&&(i.height=t),a&&n&&(n.style.display="none",e=H4e(a,0,i),t=H4e(a,1,i),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var s=n.style;s.width=e+"px",s.height=t+"px"}if(vje(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",e),o.setAttribute("height",t));var r=this._bgVNode&&this._bgVNode.elm;r&&(r.setAttribute("width",e),r.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=Eje(t))&&i+"base64,"+t:i+"charset=UTF-8,"+encodeURIComponent(t)},e}();t7e([function(e){e.registerChartView(A7e),e.registerSeriesModel(x7e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,bYe(v9e,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:T3e(),reset:function(e){if(b9e(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),s=t.getDimensionIndex(t.mapDimension(n.dim)),o=t.getDimensionIndex(t.mapDimension(a.dim)),r=e.get("showBackground",!0),l=t.mapDimension(n.dim),c=t.getCalculationInfo("stackResultDimension"),d=q6e(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),u=n.isHorizontal(),p=function(e,t){var i=t.model.get("startValue");return i||(i=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?i>0?i:1:i))}(0,n),h=y9e(e),f=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),_=t.getLayout("offset");return{progress:function(e,t){for(var a,n=e.count,l=h&&h9e(3*n),c=h&&r&&h9e(3*n),v=h&&h9e(n),b=i.master.getRect(),y=u?b.width:b.height,x=t.getStore(),S=0;null!=(a=e.next());){var w=x.get(d?g:s,a),C=x.get(o,a),E=p,k=void 0;d&&(k=+w-x.get(s,a));var T=void 0,A=void 0,R=void 0,I=void 0;if(u){var D=i.dataToPoint([w,C]);d&&(E=i.dataToPoint([k,C])[0]),T=E,A=D[1]+_,R=D[0]-E,I=m,Math.abs(R)<f&&(R=(R<0?-1:1)*f)}else D=i.dataToPoint([C,w]),d&&(E=i.dataToPoint([C,k])[1]),T=D[0]+_,A=E,R=m,I=D[1]-E,Math.abs(I)<f&&(I=(I<=0?-1:1)*f);h?(l[S]=T,l[S+1]=A,l[S+2]=u?R:I,c&&(c[S]=u?b.x:T,c[S+1]=u?A:b.y,c[S+2]=y),v[a]=a):t.setItemLayout(a,{x:T,y:A,width:R,height:I}),S+=3}h&&t.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:c,valueAxisHorizontal:u})}}}}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e){return{seriesType:e,reset:function(e,t,i){var a=e.getData(),n=e.get("sampling"),s=e.coordinateSystem,o=a.count();if(o>10&&"cartesian2d"===s.type&&n){var r=s.getBaseAxis(),l=s.getOtherAxis(r),c=r.getExtent(),d=i.getDevicePixelRatio(),u=Math.abs(c[1]-c[0])*(d||1),p=Math.round(o/u);if(isFinite(p)&&p>1){"lttb"===n?e.setData(a.lttbDownSample(a.mapDimension(l.dim),1/p)):"minmax"===n&&e.setData(a.minmaxDownSample(a.mapDimension(l.dim),1/p));var h=void 0;SYe(n)?h=v7e[n]:xYe(n)&&(h=n),h&&e.setData(a.downSample(a.mapDimension(l.dim),1/p,h,b7e))}}}}}("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})},function(e){t7e(Ett),e.registerComponentModel(Utt),e.registerComponentView(nit),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},jYe),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},jYe)},function(e){t7e(Fet),t7e(Ett)},function(e){t7e(vit),t7e(Tit)},function(e){e.registerPainter("svg",$at)}]);const Vat=e=>String(e).replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[e])),Uat={name:"ComparisonBarChart",props:{items:{type:Array,default:()=>[]},seriesName:{type:String,required:!0},entityLabel:{type:String,required:!0},valueLabel:{type:String,required:!0},captionText:{type:String,required:!0},windowSize:{type:Number,default:null}},components:{IconPack:dY},data:()=>({isDarkTheme:r.isDark(),zoomStart:0,zoomEnd:100}),computed:{defaultZoomStart(){return!this.windowSize||!this.items.length||this.items.length<=this.windowSize?0:Math.max(0,100-this.windowSize/this.items.length*100)}},watch:{items:{handler(){this.zoomStart=this.defaultZoomStart,this.zoomEnd=100,this.$nextTick(()=>{this.renderChart()})},deep:!0}},methods:{getCssVar:(e,t)=>getComputedStyle(document.body).getPropertyValue(e).trim()||t,buildOption(){const e=this.getCssVar("--fs-chart-primary","#0cbe7e"),t=this.getCssVar("--fs-text-secondary",this.isDarkTheme?"#CACFD8":"#525866"),i=this.getCssVar("--fs-stroke-soft",this.isDarkTheme?"#333D4C":"#E1E4EA");return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:this.isDarkTheme?"#253241":"#ffffff",borderColor:this.isDarkTheme?"#2C3C4E":"#c0c4ca",borderWidth:1,textStyle:{color:this.isDarkTheme?"#ffffff":"#565865"},formatter:e=>{const t=e[0];return`${Vat(t.name)}<br/>${t.marker}${Vat(t.seriesName)}: <strong>${Vat(t.value)}</strong>`}},grid:{left:8,right:28,top:12,bottom:8,containLabel:!0},dataZoom:[{type:"inside",yAxisIndex:0,start:this.zoomStart,end:this.zoomEnd},{type:"slider",yAxisIndex:0,start:this.zoomStart,end:this.zoomEnd,width:12,right:4,showDetail:!1,brushSelect:!1,textStyle:{color:t}}],xAxis:{type:"value",axisLabel:{color:t},splitLine:{lineStyle:{color:i}}},yAxis:{type:"category",data:this.items.map(e=>e.name),axisLabel:{color:t,fontSize:12},axisLine:{lineStyle:{color:i}},axisTick:{show:!1}},series:[{name:this.seriesName,type:"bar",data:this.items.map(e=>e.value),barMaxWidth:24,itemStyle:{color:e,borderRadius:[0,4,4,0]}}]}},renderChart(){this.$refs.chartEl&&(this.chartInstance||(this.chartInstance=s6e(this.$refs.chartEl,null,{renderer:"svg"}),this.chartInstance.on("dataZoom",e=>{const t=e.batch?e.batch[0]:e;this.zoomStart=t.start,this.zoomEnd=t.end})),this.chartInstance.setOption(this.buildOption(),{notMerge:!0}),this.chartInstance.resize())},resetZoom(){this.zoomStart=this.defaultZoomStart,this.zoomEnd=100,this.chartInstance&&this.chartInstance.dispatchAction({type:"dataZoom",start:this.zoomStart,end:this.zoomEnd})},handleResize(){this.chartInstance&&this.chartInstance.resize()},handleThemeChange(){this.isDarkTheme=r.isDark(),this.renderChart()}},mounted(){this.zoomStart=this.defaultZoomStart,this.$nextTick(()=>{this.renderChart()}),window.addEventListener("resize",this.handleResize),window.addEventListener("fs-theme-changed",this.handleThemeChange)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("fs-theme-changed",this.handleThemeChange),this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)}},Hat={class:"fs_agent_comparison_chart_wrap"},zat=["title"],Yat={ref:"chartEl",class:"fs_agent_comparison_chart","aria-hidden":"true"},Gat={class:"screen-reader-text"},Wat={scope:"col"},jat={scope:"col"};const qat=lH(Uat,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack");return zd(),qd("div",Hat,[tu("button",{type:"button",class:"fs_pagination_nav_btn fs_chart_reset_btn",title:e.$t("Reset zoom"),onClick:t[0]||(t[0]=(...e)=>s.resetZoom&&s.resetZoom(...e))},[iu(o,{"icon-key":"refresh",width:14,height:14})],8,zat),tu("div",Yat,null,512),tu("table",Gat,[tu("caption",null,me(i.captionText),1),tu("thead",null,[tu("tr",null,[tu("th",Wat,me(i.entityLabel),1),tu("th",jat,me(i.valueLabel),1)])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(i.items,e=>(zd(),qd("tr",{key:e.id},[tu("td",null,me(e.name),1),tu("td",null,me(e.value),1)]))),128))])])])}]]),Kat={"tickets-chart":"tickets","resolve-chart":"resolved","response-chart":"responses"},Xat={class:"fs_performance_overview_page"},Zat={class:"fs_performance_overview_header"},Qat={class:"fs_performance_overview_header_row"},Jat={class:"fs_page_title"},ent={class:"fs_performance_overview_header_row fs_performance_overview_toolbar"},tnt={class:"fs_toolbar_left"},int=["disabled","title"],ant={class:"fs_pill_dropdown_label"},nnt={class:"fs_agent_chip_select"},snt=["disabled"],ont={key:0,class:"fs_agent_chip_row"},rnt={key:0,class:"fs_agent_chip fs_agent_chip--overflow"},lnt={key:1,class:"fs_agent_chip_placeholder"},cnt={class:"fs_agent_dropdown_panel"},dnt={key:0,class:"fs_dropdown_no_results"},unt=["disabled","title"],pnt={class:"fs_date_button_group"},hnt={class:"fs_date_button_group_item fs_date_picker_wrapper"},fnt={class:"fs_date_display"},gnt={key:0,class:"fs_date_text"},mnt={key:1,class:"fs_date_placeholder"},_nt=["disabled"],vnt={class:"fs_toolbar_right"},bnt={class:"fs_agent_summary_dialog_header"},ynt={class:"fs_agent_summary_title"},xnt={class:"fs_dialog_description_wrapper"},Snt={class:"fs_summary_settings fframe_body"},wnt={class:"fs_dialog_footer"},Cnt={class:"fs_performance_overview_content"},Ent={key:0,class:"fs_page_error"},knt={class:"fs_stat_cards_grid"},Tnt={class:"fs_stat_card_text"},Ant={class:"fs_stat_label"},Rnt={class:"fs_stat_card_value_row"},Int={class:"fs_stat_value"},Dnt={key:0,class:"fs_stat_value_suffix"},Ont={class:"fs_box"},Mnt={class:"fs_box_header fs_agent_report_header"},Nnt={class:"fs_section_title"},Lnt={class:"fs_status_tabs"},Pnt={class:"fs_segmented_control"},Fnt=["onClick"],Bnt={class:"fs_box_body"},$nt={class:"fs_chart_container",style:{height:"400px"}},Vnt={key:0,class:"fs_overview_section"},Unt={class:"fs_section_header"},Hnt={class:"fs_section_title"},znt={class:"fs_section_body"},Ynt={class:"fs_chart_container",style:{height:"400px"}},Gnt={class:"fs_overview_section"},Wnt={class:"fs_section_header"},jnt={class:"fs_section_title"},qnt={key:0,class:"fs_chart_legend"},Knt={class:"fs_legend_text"},Xnt={class:"fs_section_body"},Znt={class:"fs_chart_container",style:{height:"320px"}};const Qnt=lH({name:"PerformanceOverview",props:["url","date_range"],emits:["date-change"],components:{BarChartBase:UNe,ComparisonBarChart:qat,LiveSnapshotSelector:KPe,IconPack:dY,AgentReports:oPe,ArrowDown:_x},data(){return{loading:!1,filtersLoading:!1,filtersError:!1,fetchError:!1,fetchRequestId:0,liveMode:"live",selectedSnapshot:null,preSnapshotDateRange:null,agents:[],teams:[],selectedTeamIds:["all"],selectedAgentIds:[],agentSearchQuery:"",open_export_options:!1,repost_export_options:this.appVars.repost_export_options,selected_options:[],checkAll:!1,isIndeterminate:!1,agentStats:[],ticketTotals:{closed:null,open:null},localDateRange:this.date_range,shortcuts:hPe,activityGranularity:"hour",hourlyLabels:[],activitySeries:[],currently_showing:"tickets-chart",chartMaps:{"tickets-chart":this.$t("Ticket Stats"),"resolve-chart":this.$t("Resolve Stats"),"response-chart":this.$t("Response Stats")},growthData:{tickets:{},resolved:{},responses:{}},growthChartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!0,color:"#E1E4EA"},border:{display:!1,dash:[4,4]},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}},hourlyActivityChartData:null,hourlyActivityChartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!0,grid:{drawOnChartArea:!1}},y:{stacked:!0,beginAtZero:!0,grid:{drawOnChartArea:!0}}},plugins:{legend:{display:!1}},layout:{padding:{left:8,right:16,top:12,bottom:8}},datasets:{bar:{barThickness:8,categoryPercentage:.7,borderRadius:3}}}}},computed:{selectedAgents(){return this.agentStats},agentComparisonItems(){return this.selectedAgents.map(e=>({id:e.id,name:e.name,value:e.responses}))},teamOptions(){return[{id:"all",name:this.$t("All Teams"),agent_ids:this.agents.map(e=>e.id)},...this.teams]},selectedTeamLabel(){if(this.selectedTeamIds.includes("all"))return this.$t("All Teams");if(!this.selectedTeamIds.length)return this.$t("No Teams");if(1===this.selectedTeamIds.length){const e=this.teamOptions.find(e=>e.id===this.selectedTeamIds[0]);return e?e.name:this.$t("All Teams")}return this.selectedTeamIds.length+" "+this.$t("Teams")},formattedDateRange(){return ELe(this.localDateRange)},hourlyActivityTitle(){const e="day"===this.activityGranularity,t=1===this.selectedAgents.length;if(e){return`${t?this.$t("Daily Activity"):this.$t("Daily Team Activity")} — ${this.formattedDateRange}`}return`${t?this.$t("Hourly Activity"):this.$t("Hourly Team Activity")} — ${this.localDateRange&&this.localDateRange[0]?Pk(this.localDateRange[0]).format("MMM D, YYYY"):""}`},totalResponses(){return this.selectedAgents.reduce((e,t)=>e+t.responses,0)},activeAgentCount(){return this.selectedAgents.filter(e=>e.responses>0).length},statCards(){return[{icon:"pulse_line",variant:"information",label:this.$t("Total Responses"),value:MLe(this.totalResponses,"--")},{icon:"time_sheet",variant:"feature",label:this.$t("Tickets closed"),value:MLe(this.ticketTotals.closed,"--")},{icon:"line_chart_line",variant:"warning",label:this.$t("Open Ticket"),value:MLe(this.ticketTotals.open,"--")},{icon:"time_sheet",variant:"highlighted",label:this.$t("Active agents"),value:MLe(this.activeAgentCount,"--"),suffix:"/"+this.selectedAgents.length}]},chartPalette(){const e=getComputedStyle(document.documentElement);return[e.getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e",e.getPropertyValue("--fs-chart-secondary").trim()||"#47c2ff",e.getPropertyValue("--fs-chart-quaternary").trim()||"#7D52F4",e.getPropertyValue("--fs-chart-quinary").trim()||"#FF8447",e.getPropertyValue("--fs-chart-tertiary").trim()||"#22d3bb"]},othersColor:()=>getComputedStyle(document.documentElement).getPropertyValue("--fs-text-muted").trim()||"#99A0AE",topActivitySeries(){const e=this.chartPalette.length;if(this.activitySeries.length<=e)return this.activitySeries;const t=this.activitySeries.map(e=>({...e,total:e.data.reduce((e,t)=>e+t,0)})).sort((e,t)=>t.total-e.total),i=t.slice(0,e),a=t.slice(e),n=this.hourlyLabels.map((e,t)=>a.reduce((e,i)=>e+(i.data[t]||0),0));return[...i,{agent_id:"others",agent_name:`${this.$t("Others")} (${a.length})`,data:n,isOthers:!0}]},legendItems(){return this.topActivitySeries.map((e,t)=>({key:e.agent_id,label:e.agent_name,color:e.isOthers?this.othersColor:this.chartPalette[t%this.chartPalette.length]}))},isSnapshotMode(){return"snapshot"===this.liveMode&&!!this.selectedSnapshot},selectedAgentChips(){return this.agents.filter(e=>this.selectedAgentIds.includes(e.id)&&e.name&&e.name.trim())},visibleAgentChips(){return this.selectedAgentChips.slice(0,3)},hiddenAgentChipCount(){return Math.max(0,this.selectedAgentChips.length-3)},filteredAgentOptions(){const e=this.agentSearchQuery.trim().toLowerCase();return e?this.agents.filter(t=>(t.name||"").toLowerCase().includes(e)):this.agents},growthChartData(){const e=this.growthData[Kat[this.currently_showing]]||{},t=Object.keys(e),i=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";return{labels:t,datasets:[{label:this.chartMaps[this.currently_showing],backgroundColor:i,data:t.map(t=>e[t])}]}}},watch:{selectedAgentIds(){this.persistAgentSelection()},date_range:{handler(e){this.isSameDateRange(e,this.localDateRange)||(this.isSnapshotMode?this.preSnapshotDateRange=e:(this.localDateRange=e,this.fetchPerformanceOverview()))},deep:!0}},created(){this.debouncedFetchPerformanceOverview=CCe(()=>this.fetchPerformanceOverview(),300)},methods:{handleComponentChange(e){this.currently_showing=e},handleLiveModeChange({mode:e,snapshot:t}){this.liveMode=e,this.selectedSnapshot=t,"snapshot"===e&&t?(this.debouncedFetchPerformanceOverview.cancel(),this.preSnapshotDateRange||(this.preSnapshotDateRange=this.localDateRange),this.fetchSnapshotData(t.id)):(this.preSnapshotDateRange&&(this.localDateRange=this.preSnapshotDateRange,this.preSnapshotDateRange=null),this.fetchPerformanceOverview())},fetchSnapshotData(e){this.loading=!0,this.fetchError=!1;const t=++this.fetchRequestId;this.$get("advanced-reports/snapshots/"+e).then(e=>{t===this.fetchRequestId&&this.applyPerformanceOverviewResponse(e.data)}).catch(e=>{t===this.fetchRequestId&&(this.agentStats=[],this.ticketTotals={closed:null,open:null},this.activitySeries=[],this.hourlyLabels=[],this.growthData={tickets:{},resolved:{},responses:{}},this.fetchError=!0,this.$handleError(e))}).always(()=>{t===this.fetchRequestId&&(this.loading=!1)})},isSameDateRange:OLe,handleAgentSelectionChange(){this.fetchPerformanceOverview()},removeAgentChip(e){this.selectedAgentIds=this.selectedAgentIds.filter(t=>t!==e),this.handleAgentSelectionChange()},clearSelectedAgents(){this.selectedAgentIds.length&&(this.selectedAgentIds=[],this.handleAgentSelectionChange())},toggleAgentSelection(e){this.selectedAgentIds.includes(e)?this.selectedAgentIds=this.selectedAgentIds.filter(t=>t!==e):this.selectedAgentIds=[...this.selectedAgentIds,e],this.handleAgentSelectionChange()},onAgentDropdownToggle(e){e||(this.agentSearchQuery="")},defaultAgentSelection(){const e=this.agents.map(e=>e.id),t=this.$getData("agents_summary_setting"),i=t&&Array.isArray(t.agents)?t.agents.map(Number):[];if(!i.length)return e;const a=t&&Array.isArray(t.known)?t.known.map(Number):e.map(Number),n=e.filter(e=>i.includes(Number(e))||!a.includes(Number(e)));return n.length?n:e},persistAgentSelection(){this.agents.length&&this.$saveData("agents_summary_setting",{agents:this.selectedAgentIds.map(Number),known:this.agents.map(e=>Number(e.id))})},resetFilters(){this.selectedTeamIds=["all"],this.selectedAgentIds=this.defaultAgentSelection(),this.localDateRange=ILe(),this.$emit("date-change",this.localDateRange),this.fetchPerformanceOverview()},handleExport(){this.localDateRange&&2===this.localDateRange.length&&this.selectedAgentIds.length?this.open_export_options=!0:this.$handleError(this.$t("No agent found, Please select or make sure you have agents to export"))},handleCheckAllChange(){const e=ALe(this.checkAll,{exportOptions:this.repost_export_options});this.selected_options=e.selectedOptions,this.isIndeterminate=e.isIndeterminate},handleColumnChanges(){const e=RLe(this.selected_options,{exportOptions:this.repost_export_options});this.checkAll=e.checkAll,this.isIndeterminate=e.isIndeterminate},closeExportModal(){this.open_export_options=!1},confirmExport(){const[e,t]=this.localDateRange;location.href=window.ajaxurl+"?"+jQuery.param({action:"fs_export_agent_report",_wpnonce:this.appVars.nonce,columns:this.selected_options,from_date:e,to_date:t,agents:this.selectedAgentIds}),this.closeExportModal()},isTeamSelected(e){return!!this.selectedTeamIds.includes("all")||this.selectedTeamIds.includes(e)},toggleTeam(e){const t=this.teamOptions.filter(e=>"all"!==e.id).map(e=>e.id);if("all"===e)this.selectedTeamIds=this.selectedTeamIds.includes("all")?[]:["all"];else if(this.selectedTeamIds.includes("all")){const i=t.filter(t=>t!==e);this.selectedTeamIds=i.length?i:["all"]}else if(this.selectedTeamIds.includes(e)){const t=this.selectedTeamIds.filter(t=>t!==e);this.selectedTeamIds=t.length?t:["all"]}else{const i=[...this.selectedTeamIds,e];this.selectedTeamIds=t.every(e=>i.includes(e))?["all"]:i}const i=new Set;this.selectedTeamIds.forEach(e=>{const t=this.teamOptions.find(t=>t.id===e);t&&t.agent_ids.forEach(e=>i.add(e))}),this.selectedAgentIds=Array.from(i),this.debouncedFetchPerformanceOverview()},disabledDate:DLe,handleDateChange(){this.$emit("date-change",this.localDateRange),this.fetchPerformanceOverview()},setupHourlyActivityChart(){const e=this.chartPalette,t=this.othersColor;this.hourlyActivityChartData={labels:this.hourlyLabels,datasets:this.topActivitySeries.map((i,a)=>({label:i.agent_name,backgroundColor:i.isOthers?t:e[a%e.length],data:i.data}))}},fetchFilters(){return this.filtersLoading=!0,this.filtersError=!1,this.$get("advanced-reports/performance-overview/filters").then(e=>{this.agents=e.agents,this.teams=e.teams,this.selectedTeamIds=["all"],this.selectedAgentIds=this.defaultAgentSelection()}).catch(e=>{this.agents=[],this.teams=[],this.selectedAgentIds=[],this.filtersError=!0,this.$handleError(e)}).always(()=>{this.filtersLoading=!1})},handleRetry(){this.isSnapshotMode?this.fetchSnapshotData(this.selectedSnapshot.id):this.filtersError?this.fetchFilters().then(()=>{this.filtersError||this.fetchPerformanceOverview()}):this.fetchPerformanceOverview()},applyPerformanceOverviewResponse(e){e.snapshot_range&&(this.localDateRange=[e.snapshot_range.from,e.snapshot_range.to]),this.agentStats=e.agents.map(e=>({id:e.id,name:e.name,responses:e.responses,firstResponse:e.first_response?Pk(e.first_response).format("h:mm A"):"--",lastResponse:e.last_response?Pk(e.last_response).format("h:mm A"):"--",avgPerDay:e.avg_per_day})),this.activityGranularity=e.activity.granularity,this.hourlyLabels=e.activity.labels,this.activitySeries=e.activity.series,this.ticketTotals=e.totals||{closed:null,open:null},this.growthData=e.growth||{tickets:{},resolved:{},responses:{}},this.setupHourlyActivityChart()},fetchPerformanceOverview(){if(!this.localDateRange||2!==this.localDateRange.length||!this.selectedAgentIds.length)return this.fetchRequestId++,this.loading=!1,this.fetchError=!1,this.agentStats=[],this.ticketTotals={closed:null,open:null},this.activitySeries=[],this.hourlyLabels=[],this.growthData={tickets:{},resolved:{},responses:{}},void this.setupHourlyActivityChart();this.loading=!0,this.fetchError=!1;const e=++this.fetchRequestId,[t,i]=this.localDateRange,a={from:t,to:i,agent_ids:this.selectedAgentIds.join(",")};this.$get("advanced-reports/performance-overview",a).then(t=>{e===this.fetchRequestId&&this.applyPerformanceOverviewResponse(t)}).catch(t=>{e===this.fetchRequestId&&(this.agentStats=[],this.ticketTotals={closed:null,open:null},this.activitySeries=[],this.hourlyLabels=[],this.growthData={tickets:{},resolved:{},responses:{}},this.fetchError=!0,this.$handleError(t))}).always(()=>{e===this.fetchRequestId&&(this.loading=!1)})}},mounted(){this.fetchFilters().then(()=>{this.filtersError||this.fetchPerformanceOverview()})},beforeUnmount(){this.debouncedFetchPerformanceOverview.cancel()}},[["render",function(e,t,i,a,n,s){const o=Jl("LiveSnapshotSelector"),r=Jl("ArrowDown"),l=KS,c=AR,d=nN,u=sN,p=aN,h=Jl("IconPack"),f=cE,g=jO,m=RR,_=Sk,v=dM,b=Jl("bar-chart-base"),y=Jl("comparison-bar-chart"),x=Jl("agent-reports"),S=WB;return zd(),qd("div",Xat,[tu("div",Zat,[tu("div",Qat,[tu("h3",Jat,me(e.$t("Agent Performance")),1),iu(o,{modelValue:n.liveMode,"onUpdate:modelValue":t[0]||(t[0]=e=>n.liveMode=e),"selected-snapshot":n.selectedSnapshot,"onUpdate:selectedSnapshot":t[1]||(t[1]=e=>n.selectedSnapshot=e),"report-type":"performance_overview",onChange:s.handleLiveModeChange},null,8,["modelValue","selected-snapshot","onChange"])]),tu("div",ent,[tu("div",tnt,[iu(p,{trigger:"click","hide-on-click":!1,disabled:s.isSnapshotMode,onCommand:()=>{}},{dropdown:vr(()=>[iu(u,{class:"fs_global_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.teamOptions,e=>(zd(),Kd(d,{key:e.id,class:"fs_team_option_item","aria-checked":s.isTeamSelected(e.id),onClick:t=>s.toggleTeam(e.id)},{default:vr(()=>[iu(c,{"model-value":s.isTeamSelected(e.id),class:"fs_team_option_checkbox"},null,8,["model-value"]),su(" "+me(e.name),1)],void 0),_:2},1032,["aria-checked","onClick"]))),128))],void 0),_:1})]),default:vr(()=>[tu("button",{class:"fs_pill_dropdown_btn fs_team_pill_btn",disabled:s.isSnapshotMode,title:s.selectedTeamLabel},[tu("span",ant,me(s.selectedTeamLabel),1),iu(l,{class:"fs_dropdown_arrow"},{default:vr(()=>[iu(r)],void 0),_:1})],8,int)],void 0),_:1},8,["disabled"]),tu("div",nnt,[iu(p,{trigger:"click","hide-on-click":!1,disabled:s.isSnapshotMode,onCommand:()=>{},onVisibleChange:s.onAgentDropdownToggle},{dropdown:vr(()=>[tu("div",cnt,[tu("div",{class:"fs_dropdown_search",onClick:t[4]||(t[4]=Ah(()=>{},["stop"]))},[iu(f,{modelValue:n.agentSearchQuery,"onUpdate:modelValue":t[2]||(t[2]=e=>n.agentSearchQuery=e),placeholder:e.$t("Search agents")+"...",clearable:"",size:"small",class:"fs_text_input",onClick:t[3]||(t[3]=Ah(()=>{},["stop"]))},{prefix:vr(()=>[iu(h,{"icon-key":"search",width:16,height:16})]),_:1},8,["modelValue","placeholder"])]),iu(u,{class:"fs_global_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.filteredAgentOptions,e=>(zd(),Kd(d,{key:e.id,class:"fs_team_option_item","aria-checked":n.selectedAgentIds.includes(e.id),onClick:t=>s.toggleAgentSelection(e.id)},{default:vr(()=>[iu(c,{"model-value":n.selectedAgentIds.includes(e.id),class:"fs_team_option_checkbox"},null,8,["model-value"]),su(" "+me(e.name),1)],void 0),_:2},1032,["aria-checked","onClick"]))),128)),s.filteredAgentOptions.length?ru("",!0):(zd(),qd("div",dnt,me(e.$t("No agents found")),1))],void 0),_:1})])]),default:vr(()=>[tu("button",{type:"button",class:"fs_agent_chip_trigger",disabled:s.isSnapshotMode},[s.selectedAgentChips.length?(zd(),qd("div",ont,[(zd(!0),qd(Fd,null,sc(s.visibleAgentChips,e=>(zd(),qd("span",{class:"fs_agent_chip",key:e.id},[su(me(e.name)+" ",1),iu(h,{"icon-key":"close",width:8,height:8,fill:"#717784",onClick:Ah(t=>s.removeAgentChip(e.id),["stop"])},null,8,["onClick"])]))),128)),s.hiddenAgentChipCount>0?(zd(),qd("span",rnt,me(s.hiddenAgentChipCount)+"+ ",1)):ru("",!0)])):(zd(),qd("span",lnt,me(e.$t("Select Agents")),1))],8,snt)],void 0),_:1},8,["disabled","onVisibleChange"]),tu("button",{type:"button",class:"fs_agent_clear_btn",disabled:s.isSnapshotMode||!n.selectedAgentIds.length,title:e.$t("Clear selected agents"),onClick:t[5]||(t[5]=(...e)=>s.clearSelectedAgents&&s.clearSelectedAgents(...e))},[iu(h,{"icon-key":"close",width:10,height:10})],8,unt)]),tu("div",pnt,[tu("div",hnt,[tu("div",fnt,[iu(h,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",gnt,me(s.formattedDateRange),1)):(zd(),qd("span",mnt,me(e.$t("Select date range")),1))]),iu(g,{modelValue:n.localDateRange,"onUpdate:modelValue":t[6]||(t[6]=e=>n.localDateRange=e),type:"daterange",editable:!1,disabled:s.isSnapshotMode,onChange:s.handleDateChange,"range-separator":"To","disabled-date":s.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","disabled","onChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])]),tu("button",{type:"button",class:"fs_reset_filter_link",disabled:s.isSnapshotMode,onClick:t[7]||(t[7]=(...e)=>s.resetFilters&&s.resetFilters(...e))},me(e.$t("Reset Filter")),9,_nt)]),tu("div",vnt,[tu("button",{type:"button",class:"fs_pill_dropdown_btn",onClick:t[8]||(t[8]=(...e)=>s.handleExport&&s.handleExport(...e))},me(e.$t("Export")),1)])])]),iu(v,{"append-to-body":!0,modelValue:n.open_export_options,"onUpdate:modelValue":t[11]||(t[11]=e=>n.open_export_options=e),class:"fs_dialog fs_export_options_dialog",width:"45%",onClose:s.closeExportModal},{header:vr(()=>[tu("div",bnt,[tu("p",ynt,me(e.$t("exclude_or_include_summary_column")),1),tu("p",xnt,me(e.$t("If you don't select any column, by default system will take all.")),1)])]),footer:vr(()=>[tu("span",wnt,[iu(_,{class:"fs_outline_btn",onClick:s.closeExportModal},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(_,{class:"fs_filled_btn",type:"primary",onClick:s.confirmExport},{default:vr(()=>[su(me(e.$t("Export Agents Summary")),1)],void 0),_:1},8,["onClick"])])]),default:vr(()=>[tu("div",Snt,[iu(c,{modelValue:n.checkAll,"onUpdate:modelValue":t[9]||(t[9]=e=>n.checkAll=e),indeterminate:n.isIndeterminate,onChange:s.handleCheckAllChange},{default:vr(()=>[n.checkAll?(zd(),qd(Fd,{key:1},[su(me(e.$t("Uncheck all")),1)],64)):(zd(),qd(Fd,{key:0},[su(me(e.$t("Check all")),1)],64))],void 0),_:1},8,["modelValue","indeterminate","onChange"]),iu(m,{modelValue:n.selected_options,"onUpdate:modelValue":t[10]||(t[10]=e=>n.selected_options=e),class:"fs_summary_export_items",onChange:s.handleColumnChanges},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.repost_export_options,(e,t)=>(zd(),Kd(c,{key:t,"model-value":t,label:e},null,8,["model-value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1},8,["modelValue","onClose"]),br((zd(),qd("div",Cnt,[n.filtersError||n.fetchError?(zd(),qd("div",Ent,[tu("p",null,me(e.$t("Couldn't load this data.")),1),iu(_,{size:"small",onClick:s.handleRetry},{default:vr(()=>[su(me(e.$t("Retry")),1)],void 0),_:1},8,["onClick"])])):(zd(),qd(Fd,{key:1},[tu("div",knt,[(zd(!0),qd(Fd,null,sc(s.statCards,(e,t)=>(zd(),qd("div",{class:"fs_stat_card_tile",key:t},[tu("span",{class:se(["fs_stat_card_icon","fs_stat_card_icon--"+e.variant])},[iu(h,{"icon-key":e.icon,width:20,height:20},null,8,["icon-key"])],2),tu("div",Tnt,[tu("p",Ant,me(e.label),1),tu("div",Rnt,[tu("span",Int,me(e.value),1),e.suffix?(zd(),qd("span",Dnt,me(e.suffix),1)):ru("",!0)])])]))),128))]),tu("div",Ont,[tu("div",Mnt,[tu("h3",Nnt,me(e.$t("Agents Statistics")),1),tu("div",Lnt,[tu("div",Pnt,[(zd(!0),qd(Fd,null,sc(n.chartMaps,(e,t)=>(zd(),qd("button",{key:t,onClick:e=>s.handleComponentChange(t),class:se(["fs_segment_button",{fs_segment_active:n.currently_showing===t}])},me(e),11,Fnt))),128))])])]),tu("div",Bnt,[tu("div",$nt,[iu(b,{chartData:s.growthChartData,chartOptions:n.growthChartOptions},null,8,["chartData","chartOptions"])])])]),s.selectedAgents.length>1?(zd(),qd("div",Vnt,[tu("div",Unt,[tu("h4",Hnt,me(e.$t("Agent Comparison")),1)]),tu("div",znt,[tu("div",Ynt,[iu(y,{items:s.agentComparisonItems,"series-name":e.$t("Responses"),"entity-label":e.$t("Agent"),"value-label":e.$t("Responses"),"caption-text":e.$t("Agent response comparison"),"window-size":8},null,8,["items","series-name","entity-label","value-label","caption-text"])])])])):ru("",!0),tu("div",Gnt,[tu("div",Wnt,[tu("h4",jnt,me(s.hourlyActivityTitle),1),s.legendItems.length>1?(zd(),qd("div",qnt,[(zd(!0),qd(Fd,null,sc(s.legendItems,e=>(zd(),qd("span",{class:"fs_legend_item",key:e.key},[tu("span",{class:"fs_legend_dot",style:ee({background:e.color})},null,4),tu("span",Knt,me(e.label),1)]))),128))])):ru("",!0)]),tu("div",Xnt,[tu("div",Znt,[n.hourlyActivityChartData?(zd(),Kd(b,{key:0,chartData:n.hourlyActivityChartData,chartOptions:n.hourlyActivityChartOptions},null,8,["chartData","chartOptions"])):ru("",!0)])])]),s.isSnapshotMode?ru("",!0):(zd(),Kd(x,{key:1,url:"reports/agents-summary",date_range:n.localDateRange,agent_ids:n.selectedAgentIds},null,8,["date_range","agent_ids"]))],64))])),[[S,n.loading]])])}]]),Jnt={name:"TicketsGrowthChart",props:["date_range","agent_id","product_id","mailbox_id","agent_group_id","url"],components:{BarChartBase:UNe},data:()=>({fetching:!1,stats:{},chartData:!1,maxCumulativeValue:0,chartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!0,color:"#E1E4EA"},border:{display:!1,dash:[4,4]},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}}}),mounted(){this.fetchReport()},watch:{date_range:{handler(){this.date_range&&2===this.date_range.length&&this.fetchReport()},deep:!0}},methods:{async fetchReport(){this.fetching=!0,await this.$get(this.url+"/tickets-growth",{date_range:this.date_range,agent_id:this.agent_id,product_id:this.product_id,mailbox_id:this.mailbox_id,agent_group_id:this.agent_group_id}).then(e=>{this.setupChartItems(e.stats)})},setupChartItems(e){const t={labels:[],datasets:[]},i=[];yX(e,(e,a)=>{t.labels.push(a),i.push(parseInt(e))});const a=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";t.datasets.push({label:this.$t("Ticket Activity"),backgroundColor:a,data:i}),this.chartData=t}}},est={style:{width:"100%",height:"400px"}};const tst={class:"fs_workload_health_page"},ist={class:"fs_workload_health_header"},ast={class:"fs_workload_health_header_row"},nst={class:"fs_page_title"},sst={class:"fs_workload_health_header_row fs_workload_health_toolbar"},ost={class:"fs_toolbar_left"},rst=["disabled"],lst={class:"fs_date_button_group"},cst={class:"fs_date_button_group_item fs_date_picker_wrapper"},dst={class:"fs_date_display"},ust={key:0,class:"fs_date_text"},pst={key:1,class:"fs_date_placeholder"},hst={class:"fs_workload_health_content"},fst={key:0,class:"fs_page_error"},gst={class:"fs_stat_cards_grid"},mst={class:"fs_stat_card_text"},_st={class:"fs_stat_label"},vst={class:"fs_stat_value"},bst={key:0,class:"fs_box"},yst={class:"fs_box_header fs_agent_report_header"},xst={class:"fs_section_title"},Sst={class:"fs_status_tabs"},wst={class:"fs_segmented_control"},Cst=["onClick"],Est={class:"fs_box_body"},kst={class:"fs_overview_section"},Tst={class:"fs_section_header"},Ast={class:"fs_section_title"},Rst={class:"fs_data_table"},Ist={class:"fs_ellipsis_cell"},Dst={class:"fs_stacked_cell"},Ost={class:"fs_stacked_cell_primary"},Mst={class:"fs_stacked_cell_secondary"},Nst={key:0,class:"fs_pagination_wrapper"},Lst={class:"fs_pagination_left"},Pst={class:"fs_pagination_right"};const Fst=lH({name:"WorkloadHealth",props:["url","date_range"],emits:["date-change"],components:{LiveSnapshotSelector:KPe,TicketsChart:lH(Jnt,[["render",function(e,t,i,a,n,s){const o=Jl("bar-chart-base");return zd(),qd("div",est,[n.chartData?(zd(),Kd(o,{key:0,chartData:n.chartData,chartOptions:n.chartOptions},null,8,["chartData","chartOptions"])):ru("",!0)])}]]),ResolveChart:jNe,ResponseChart:YNe,IconPack:dY,Pagination:Pq,ArrowDown:_x},data(){return{loading:!1,fetchError:!1,fetchRequestId:0,liveMode:"live",selectedSnapshot:null,selectedMailboxId:"all",localDateRange:this.date_range,shortcuts:hPe,mailboxes:[],allStats:{awaiting_reply:0,unassigned:0,avg_wait:0},currently_showing:"tickets-chart",chartMaps:{"tickets-chart":this.$t("Ticket Stats"),"resolve-chart":this.$t("Resolve Stats"),"response-chart":this.$t("Response Stats")},tableRows:[],tableScrolled:!1,pagination:{current_page:1,per_page:10,total:0}}},computed:{mailboxOptions(){return[{id:"all",name:this.$t("All Mailboxes")},...this.mailboxes.map(e=>({id:e.id,name:e.name}))]},selectedMailboxLabel(){const e=this.mailboxOptions.find(e=>e.id===this.selectedMailboxId);return e?e.name:this.$t("All Mailboxes")},formattedDateRange(){return ELe(this.localDateRange)},chartMailboxId(){return"all"===this.selectedMailboxId?"":this.selectedMailboxId},selectedStats(){if("all"===this.selectedMailboxId)return this.allStats;return this.mailboxes.find(e=>e.id===this.selectedMailboxId)||this.allStats},statCards(){return[{icon:"time_sheet",variant:"warning",label:this.$t("Tickets Awaiting Reply"),value:this.formatStatValue(this.selectedStats.awaiting_reply)},{icon:"user_line",variant:"away",label:this.$t("Unassigned Tickets"),value:this.formatStatValue(this.selectedStats.unassigned)},{icon:"hourglass_line",variant:"highlighted",label:this.$t("Avg. Customer Wait"),value:this.selectedStats.avg_wait}]},paginatedRows(){const e=(this.pagination.current_page-1)*this.pagination.per_page;return this.tableRows.slice(e,e+this.pagination.per_page)},totalPages(){return Math.max(1,Math.ceil(this.pagination.total/this.pagination.per_page))},isSnapshotMode(){return"snapshot"===this.liveMode&&!!this.selectedSnapshot}},watch:{date_range:{handler(e){this.localDateRange=e},deep:!0},tableRows(){this.pagination.total=this.tableRows.length,this.pagination.current_page>this.totalPages&&(this.pagination.current_page=1)}},methods:{formatStatValue:MLe,onTableScroll(e){this.tableScrolled=e.target.scrollLeft>0},handleLiveModeChange({mode:e,snapshot:t}){this.liveMode=e,this.selectedSnapshot=t,"snapshot"===e&&t?this.fetchSnapshotData(t.id):this.fetchWorkloadHealth()},fetchSnapshotData(e){this.loading=!0,this.fetchError=!1;const t=++this.fetchRequestId;this.$get("advanced-reports/snapshots/"+e).then(e=>{t===this.fetchRequestId&&this.applyWorkloadHealthResponse(e.data,e.snapshot_time)}).catch(e=>{t===this.fetchRequestId&&(this.allStats={awaiting_reply:0,unassigned:0,avg_wait:0},this.mailboxes=[],this.tableRows=[],this.fetchError=!0,this.$handleError(e))}).always(()=>{t===this.fetchRequestId&&(this.loading=!1)})},handleDateChange(){this.$emit("date-change",this.localDateRange)},disabledDate:DLe,handleComponentChange(e){this.currently_showing=e},handleMailboxChange(e){this.selectedMailboxId=e,this.pagination.current_page=1,this.fetchWorkloadHealth()},formatWaitingSinceTime:e=>Pk(e).format("h:mm A"),formatWaitingSinceRelative(e,t=Pk()){const i=Pk(e);return i.isSame(t,"day")?this.$t("Today"):i.isSame(Pk(t).subtract(1,"day"),"day")?this.$t("Yesterday"):i.format("MMM D")},formatWaitTime(e,t=Pk()){const i=Math.max(0,Pk(t).diff(Pk(e),"minute"));return`${Math.floor(i/60)}h ${i%60}m`},applyWorkloadHealthResponse(e,t){const i=t?Pk(t):Pk();this.allStats=e.all,this.mailboxes=e.mailboxes,this.tableRows=e.waiting_tickets.map(e=>({id:e.id,subject:e.subject,customer:e.customer,waitingSince:this.formatWaitingSinceTime(e.waiting_since),waitingSinceRelative:this.formatWaitingSinceRelative(e.waiting_since,i),waitTime:this.formatWaitTime(e.waiting_since,i),product:e.product,mailboxId:e.mailbox_id})),this.pagination.current_page=1},fetchWorkloadHealth(){this.loading=!0,this.fetchError=!1;const e=++this.fetchRequestId,t="all"===this.selectedMailboxId?{}:{mailbox_id:this.selectedMailboxId};this.$get("advanced-reports/workload-health",t).then(t=>{e===this.fetchRequestId&&this.applyWorkloadHealthResponse(t)}).catch(t=>{e===this.fetchRequestId&&(this.allStats={awaiting_reply:0,unassigned:0,avg_wait:0},this.mailboxes=[],this.tableRows=[],this.fetchError=!0,this.$handleError(t))}).always(()=>{e===this.fetchRequestId&&(this.loading=!1)})}},mounted(){this.fetchWorkloadHealth()}},[["render",function(e,t,i,a,n,s){const o=Jl("LiveSnapshotSelector"),r=Jl("ArrowDown"),l=KS,c=nN,d=sN,u=aN,p=Jl("IconPack"),h=jO,f=Jl("pagination"),g=WB;return zd(),qd("div",tst,[tu("div",ist,[tu("div",ast,[tu("h3",nst,me(e.$t("Business Boxes")),1),iu(o,{modelValue:n.liveMode,"onUpdate:modelValue":t[0]||(t[0]=e=>n.liveMode=e),"selected-snapshot":n.selectedSnapshot,"onUpdate:selectedSnapshot":t[1]||(t[1]=e=>n.selectedSnapshot=e),"report-type":"workload_health",onChange:s.handleLiveModeChange},null,8,["modelValue","selected-snapshot","onChange"])]),tu("div",sst,[tu("div",ost,[iu(u,{trigger:"click",disabled:s.isSnapshotMode,onCommand:s.handleMailboxChange},{dropdown:vr(()=>[iu(d,{class:"fs_global_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.mailboxOptions,e=>(zd(),Kd(c,{key:e.id,command:e.id},{default:vr(()=>[su(me(e.name),1)],void 0),_:2},1032,["command"]))),128))],void 0),_:1})]),default:vr(()=>[tu("button",{class:"fs_pill_dropdown_btn",disabled:s.isSnapshotMode},[su(me(s.selectedMailboxLabel)+" ",1),iu(l,{class:"fs_dropdown_arrow"},{default:vr(()=>[iu(r)],void 0),_:1})],8,rst)],void 0),_:1},8,["disabled","onCommand"]),tu("div",lst,[tu("div",cst,[tu("div",dst,[iu(p,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",ust,me(s.formattedDateRange),1)):(zd(),qd("span",pst,me(e.$t("Select date range")),1))]),iu(h,{modelValue:n.localDateRange,"onUpdate:modelValue":t[2]||(t[2]=e=>n.localDateRange=e),type:"daterange",editable:!1,disabled:s.isSnapshotMode,onChange:s.handleDateChange,"range-separator":"To","disabled-date":s.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","disabled","onChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])])])])]),br((zd(),qd("div",hst,[n.fetchError?(zd(),qd("div",fst,[tu("p",null,me(e.$t("Couldn't load this data.")),1)])):(zd(),qd(Fd,{key:1},[tu("div",gst,[(zd(!0),qd(Fd,null,sc(s.statCards,(e,t)=>(zd(),qd("div",{class:"fs_stat_card_tile",key:t},[tu("span",{class:se(["fs_stat_card_icon","fs_stat_card_icon--"+e.variant])},[iu(p,{"icon-key":e.icon,width:20,height:20},null,8,["icon-key"])],2),tu("div",mst,[tu("p",_st,me(e.label),1),tu("span",vst,me(e.value),1)])]))),128))]),s.isSnapshotMode?ru("",!0):(zd(),qd("div",bst,[tu("div",yst,[tu("h3",xst,me(e.$t("Business Box Statistics")),1),tu("div",Sst,[tu("div",wst,[(zd(!0),qd(Fd,null,sc(n.chartMaps,(e,t)=>(zd(),qd("button",{key:t,onClick:e=>s.handleComponentChange(t),class:se(["fs_segment_button",{fs_segment_active:n.currently_showing===t}])},me(e),11,Cst))),128))])])]),tu("div",Est,[(zd(),Kd(tc(n.currently_showing),{key:n.currently_showing+"-"+s.chartMailboxId,date_range:n.localDateRange,url:"mailbox-reports",mailbox_id:s.chartMailboxId,type:"mailbox"},null,8,["date_range","mailbox_id"]))])])),tu("div",kst,[tu("div",Tst,[tu("h4",Ast,me(e.$t("Tickets Waiting Longest")),1)]),tu("div",{class:se(["fs_table_wrap",{"is-scrolled":n.tableScrolled}]),onScroll:t[3]||(t[3]=(...e)=>s.onTableScroll&&s.onTableScroll(...e))},[tu("table",Rst,[tu("thead",null,[tu("tr",null,[tu("th",null,me(e.$t("ID")),1),tu("th",null,me(e.$t("Subject")),1),tu("th",null,me(e.$t("Customer")),1),tu("th",null,me(e.$t("Waiting Since")),1),tu("th",null,me(e.$t("Wait Time")),1),tu("th",null,me(e.$t("Product")),1)])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(s.paginatedRows,e=>(zd(),qd("tr",{key:e.id},[tu("td",null,"#"+me(e.id),1),tu("td",Ist,me(e.subject),1),tu("td",null,me(e.customer),1),tu("td",null,[tu("div",Dst,[tu("span",Ost,me(e.waitingSince),1),tu("span",Mst,me(e.waitingSinceRelative),1)])]),tu("td",null,me(e.waitTime),1),tu("td",null,me(e.product),1)]))),128))])])],34),n.tableRows.length?(zd(),qd("div",Nst,[tu("div",Lst,[tu("p",null,me(e.$t("Page"))+" "+me(n.pagination.current_page)+" "+me(e.$t("of"))+" "+me(s.totalPages),1),iu(f,{pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("div",Pst,[iu(f,{pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])],64))])),[[g,n.loading]])])}],["__scopeId","data-v-933b3681"]]),Bst={class:"fs_product_support_page"},$st={class:"fs_product_support_header"},Vst={class:"fs_product_support_header_row"},Ust={class:"fs_page_title"},Hst={class:"fs_product_support_header_row fs_product_support_toolbar"},zst={class:"fs_toolbar_left"},Yst=["disabled"],Gst={class:"fs_date_button_group"},Wst={class:"fs_date_button_group_item fs_date_picker_wrapper"},jst={class:"fs_date_display"},qst={key:0,class:"fs_date_text"},Kst={key:1,class:"fs_date_placeholder"},Xst={class:"fs_product_support_content"},Zst={key:0,class:"fs_page_error"},Qst={class:"fs_stat_cards_grid"},Jst={class:"fs_stat_card_text"},eot={class:"fs_stat_label"},tot={class:"fs_stat_value"},iot={class:"fs_overview_section"},aot={class:"fs_section_header"},not={class:"fs_section_title"},sot={class:"fs_section_body"},oot={class:"fs_chart_container",style:{height:"400px"}},rot={class:"fs_overview_section"},lot={class:"fs_section_header"},cot={class:"fs_section_title"},dot={class:"fs_data_table"},uot={key:0,class:"fs_pagination_wrapper"},pot={class:"fs_pagination_left"},hot={class:"fs_pagination_right"};const fot=lH({name:"ProductInsights",props:["url","date_range"],emits:["date-change"],components:{ComparisonBarChart:qat,LiveSnapshotSelector:KPe,IconPack:dY,Pagination:Pq,ArrowDown:_x},data(){return{loading:!1,fetchError:!1,fetchRequestId:0,liveMode:"live",selectedSnapshot:null,preSnapshotDateRange:null,selectedProductId:"all",localDateRange:this.date_range,shortcuts:hPe,tableRows:[],tableScrolled:!1,pagination:{current_page:1,per_page:10,total:0}}},computed:{productOptions(){return[{id:"all",name:this.$t("All Products")},...this.tableRows.map(e=>({id:e.id,name:e.name}))]},selectedProductLabel(){const e=this.productOptions.find(e=>e.id===this.selectedProductId);return e?e.name:this.$t("All Products")},formattedDateRange(){return ELe(this.localDateRange)},productComparisonItems(){return this.filteredRows.map(e=>({id:e.id,name:e.name,value:e.volume}))},filteredRows(){return"all"===this.selectedProductId?this.tableRows:this.tableRows.filter(e=>e.id===this.selectedProductId)},paginatedRows(){const e=(this.pagination.current_page-1)*this.pagination.per_page;return this.filteredRows.slice(e,e+this.pagination.per_page)},totalPages(){return Math.max(1,Math.ceil(this.pagination.total/this.pagination.per_page))},statCards(){const e=this.filteredRows,t=e.reduce((e,t)=>e+t.volume,0),i=e.reduce((e,t)=>e+t.unanswered,0),a=e.reduce((e,t)=>e+t.waiting,0),n=e.reduce((e,t)=>e+t.responses,0);return[{icon:"product_support",variant:"information",label:this.$t("Total Tickets"),value:this.formatStatValue(t)},{icon:"error_warning_line",variant:"warning",label:this.$t("Unanswered Tickets"),value:this.formatStatValue(i)},{icon:"hourglass_line",variant:"highlighted",label:this.$t("Waiting Workload"),value:this.formatStatValue(a)},{icon:"line_chart_line",variant:"feature",label:this.$t("Response Activity"),value:this.formatStatValue(n)}]},isSnapshotMode(){return"snapshot"===this.liveMode&&!!this.selectedSnapshot}},watch:{filteredRows(){this.pagination.total=this.filteredRows.length},date_range:{handler(e){this.isSameDateRange(e,this.localDateRange)||(this.isSnapshotMode?this.preSnapshotDateRange=e:(this.localDateRange=e,this.fetchProductInsights()))},deep:!0}},methods:{formatStatValue:MLe,handleLiveModeChange({mode:e,snapshot:t}){this.liveMode=e,this.selectedSnapshot=t,"snapshot"===e&&t?(this.preSnapshotDateRange||(this.preSnapshotDateRange=this.localDateRange),this.fetchSnapshotData(t.id)):(this.preSnapshotDateRange&&(this.localDateRange=this.preSnapshotDateRange,this.preSnapshotDateRange=null),this.fetchProductInsights())},fetchSnapshotData(e){this.loading=!0,this.fetchError=!1;const t=++this.fetchRequestId;this.$get("advanced-reports/snapshots/"+e).then(e=>{t===this.fetchRequestId&&this.applyProductInsightsResponse(e.data)}).catch(e=>{t===this.fetchRequestId&&(this.tableRows=[],this.fetchError=!0,this.$handleError(e))}).always(()=>{t===this.fetchRequestId&&(this.loading=!1)})},retryFetch(){this.isSnapshotMode?this.fetchSnapshotData(this.selectedSnapshot.id):this.fetchProductInsights()},handleProductChange(e){this.selectedProductId=e,this.pagination.current_page=1},disabledDate:DLe,isSameDateRange:OLe,handleDateChange(){this.$emit("date-change",this.localDateRange),this.fetchProductInsights()},onTableScroll(e){this.tableScrolled=e.target.scrollLeft>0},applyProductInsightsResponse(e){e.snapshot_range&&(this.localDateRange=[e.snapshot_range.from,e.snapshot_range.to]),this.tableRows=e.products.map(e=>({id:e.id,name:e.name,volume:e.volume,responses:e.responses,interactions:e.interactions,opens:e.opens,closed:e.closed,unanswered:e.unanswered,waiting:e.waiting})),this.pagination.current_page=1},fetchProductInsights(){if(!this.localDateRange||2!==this.localDateRange.length)return this.fetchRequestId++,this.loading=!1,this.fetchError=!1,this.tableRows=[],this.pagination.current_page=1,void(this.selectedProductId="all");this.loading=!0,this.fetchError=!1;const e=++this.fetchRequestId,[t,i]=this.localDateRange;this.$get("advanced-reports/product-insights",{from:t,to:i}).then(t=>{e===this.fetchRequestId&&this.applyProductInsightsResponse(t)}).catch(t=>{e===this.fetchRequestId&&(this.tableRows=[],this.fetchError=!0,this.$handleError(t))}).always(()=>{e===this.fetchRequestId&&(this.loading=!1)})}},mounted(){this.fetchProductInsights()}},[["render",function(e,t,i,a,n,s){const o=Jl("LiveSnapshotSelector"),r=Jl("ArrowDown"),l=KS,c=nN,d=sN,u=aN,p=Jl("IconPack"),h=jO,f=Sk,g=Jl("comparison-bar-chart"),m=Jl("pagination"),_=WB;return zd(),qd("div",Bst,[tu("div",$st,[tu("div",Vst,[tu("h3",Ust,me(e.$t("Product Insights")),1),iu(o,{modelValue:n.liveMode,"onUpdate:modelValue":t[0]||(t[0]=e=>n.liveMode=e),"selected-snapshot":n.selectedSnapshot,"onUpdate:selectedSnapshot":t[1]||(t[1]=e=>n.selectedSnapshot=e),"report-type":"product_insights",onChange:s.handleLiveModeChange},null,8,["modelValue","selected-snapshot","onChange"])]),tu("div",Hst,[tu("div",zst,[iu(u,{trigger:"click",disabled:s.isSnapshotMode,onCommand:s.handleProductChange},{dropdown:vr(()=>[iu(d,{class:"fs_global_dropdown"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.productOptions,e=>(zd(),Kd(c,{key:e.id,command:e.id},{default:vr(()=>[su(me(e.name),1)],void 0),_:2},1032,["command"]))),128))],void 0),_:1})]),default:vr(()=>[tu("button",{class:"fs_pill_dropdown_btn",disabled:s.isSnapshotMode},[su(me(s.selectedProductLabel)+" ",1),iu(l,{class:"fs_dropdown_arrow"},{default:vr(()=>[iu(r)],void 0),_:1})],8,Yst)],void 0),_:1},8,["disabled","onCommand"]),tu("div",Gst,[tu("div",Wst,[tu("div",jst,[iu(p,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",qst,me(s.formattedDateRange),1)):(zd(),qd("span",Kst,me(e.$t("Select date range")),1))]),iu(h,{modelValue:n.localDateRange,"onUpdate:modelValue":t[2]||(t[2]=e=>n.localDateRange=e),type:"daterange",editable:!1,disabled:s.isSnapshotMode,onChange:s.handleDateChange,"range-separator":"To","disabled-date":s.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","disabled","onChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])])])])]),br((zd(),qd("div",Xst,[n.fetchError?(zd(),qd("div",Zst,[tu("p",null,me(e.$t("Couldn't load this data.")),1),iu(f,{size:"small",onClick:s.retryFetch},{default:vr(()=>[su(me(e.$t("Retry")),1)],void 0),_:1},8,["onClick"])])):(zd(),qd(Fd,{key:1},[tu("div",Qst,[(zd(!0),qd(Fd,null,sc(s.statCards,(e,t)=>(zd(),qd("div",{class:"fs_stat_card_tile",key:t},[tu("span",{class:se(["fs_stat_card_icon","fs_stat_card_icon--"+e.variant])},[iu(p,{"icon-key":e.icon,width:20,height:20},null,8,["icon-key"])],2),tu("div",Jst,[tu("p",eot,me(e.label),1),tu("span",tot,me(e.value),1)])]))),128))]),tu("div",iot,[tu("div",aot,[tu("h4",not,me(e.$t("Ticket Volume by Product")),1)]),tu("div",sot,[tu("div",oot,[iu(g,{items:s.productComparisonItems,"series-name":e.$t("Tickets"),"entity-label":e.$t("Product"),"value-label":e.$t("Ticket Volume"),"caption-text":e.$t("Ticket volume by product"),"window-size":8},null,8,["items","series-name","entity-label","value-label","caption-text"])])])]),tu("div",rot,[tu("div",lot,[tu("h4",cot,me(e.$t("Product Breakdown")),1)]),tu("div",{class:se(["fs_table_wrap",{"is-scrolled":n.tableScrolled}]),onScroll:t[3]||(t[3]=(...e)=>s.onTableScroll&&s.onTableScroll(...e))},[tu("table",dot,[tu("thead",null,[tu("tr",null,[tu("th",null,me(e.$t("Product")),1),tu("th",null,me(e.$t("Ticket Volume")),1),tu("th",null,me(e.$t("Response Activity")),1),tu("th",null,me(e.$t("Interactions")),1),tu("th",null,me(e.$t("Open Tickets")),1),tu("th",null,me(e.$t("Closed")),1),tu("th",null,me(e.$t("Unanswered")),1),tu("th",null,me(e.$t("Waiting Workload")),1)])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(s.paginatedRows,e=>(zd(),qd("tr",{key:e.id},[tu("td",null,me(e.name),1),tu("td",null,me(s.formatStatValue(e.volume)),1),tu("td",null,me(s.formatStatValue(e.responses)),1),tu("td",null,me(s.formatStatValue(e.interactions)),1),tu("td",null,me(s.formatStatValue(e.opens)),1),tu("td",null,me(s.formatStatValue(e.closed)),1),tu("td",null,me(s.formatStatValue(e.unanswered)),1),tu("td",null,me(s.formatStatValue(e.waiting)),1)]))),128))])])],34),s.filteredRows.length?(zd(),qd("div",uot,[tu("div",pot,[tu("p",null,me(e.$t("Page"))+" "+me(n.pagination.current_page)+" "+me(e.$t("of"))+" "+me(s.totalPages),1),iu(m,{pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("div",hot,[iu(m,{pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])],64))])),[[_,n.loading]])])}]]),got=["Happy","Neutral","Frustrated","Very Unhappy"],mot={class:"fs_ticket_audit_page"},_ot={class:"fs_ticket_audit_header"},vot={class:"fs_ticket_audit_header_row"},bot={class:"fs_page_title"},yot={class:"fs_ticket_audit_header_row fs_ticket_audit_toolbar"},xot={class:"fs_toolbar_left"},Sot={class:"fs_date_button_group"},wot={class:"fs_date_button_group_item fs_date_picker_wrapper"},Cot={class:"fs_date_display"},Eot={key:0,class:"fs_date_text"},kot={key:1,class:"fs_date_placeholder"},Tot={class:"fs_toolbar_right"},Aot={class:"fs_ticket_audit_content"},Rot={key:0,class:"fs_page_error"},Iot={key:0,class:"fs_audit_empty_state"},Dot={class:"fs_audit_empty_icon"},Oot={key:1,class:"fs_audit_run_card"},Mot={class:"fs_audit_run_head"},Not={class:"fs_audit_progress_track"},Lot={class:"fs_audit_run_meta"},Pot={key:0,class:"fs_audit_run_ticker"},Fot={class:"fs_stat_cards_grid"},Bot={class:"fs_stat_card_tile"},$ot={class:"fs_stat_card_icon fs_stat_card_icon--information"},Vot={class:"fs_stat_card_text"},Uot={class:"fs_stat_label"},Hot={class:"fs_stat_value"},zot={class:"fs_stat_card_tile"},Yot={class:"fs_stat_card_icon fs_stat_card_icon--feature"},Got={class:"fs_stat_card_text"},Wot={class:"fs_stat_label"},jot={class:"fs_stat_value"},qot={class:"fs_stat_card_tile"},Kot={class:"fs_stat_card_icon fs_stat_card_icon--warning"},Xot={class:"fs_stat_card_text"},Zot={class:"fs_stat_label"},Qot={class:"fs_stat_value"},Jot={class:"fs_stat_card_tile"},ert={class:"fs_stat_card_icon fs_stat_card_icon--away"},trt={class:"fs_stat_card_text"},irt={class:"fs_stat_label"},art={class:"fs_stat_value"},nrt={class:"fs_stat_card_tile"},srt={class:"fs_stat_card_icon fs_stat_card_icon--highlighted"},ort={class:"fs_stat_card_text"},rrt={class:"fs_stat_label"},lrt={class:"fs_stat_value"},crt={class:"fs_audit_split_row"},drt={class:"fs_overview_section"},urt={class:"fs_section_header"},prt={class:"fs_section_title"},hrt={class:"fs_section_body"},frt={class:"fs_dist_label"},grt={class:"fs_dist_track"},mrt={class:"fs_dist_count"},_rt={class:"fs_overview_section"},vrt={class:"fs_section_header"},brt={class:"fs_section_title"},yrt={class:"fs_section_body"},xrt=["onClick"],Srt={class:"fs_att_title"},wrt={class:"fs_att_score"},Crt={key:0,class:"fs_section_empty"},Ert={class:"fs_overview_section"},krt={class:"fs_section_header fs_audit_table_header"},Trt={class:"fs_status_tabs"},Art={class:"fs_segmented_control"},Rrt=["onClick"],Irt={class:"fs_data_table"},Drt={class:"fs_ticket_cell"},Ort={class:"fs_ticket_cell_inner"},Mrt={class:"fs_ticket_id_muted"},Nrt=["title","onClick"],Lrt={key:0,class:"fs_stale_badge"},Prt={key:0,class:"fs_fail_tag"},Frt={class:"fs_summary_cell"},Brt={key:0},$rt={colspan:"8"},Vrt={class:"fs_section_empty"},Urt={key:0,class:"fs_pagination_wrapper"},Hrt={class:"fs_pagination_left"},zrt={class:"fs_pagination_right"},Yrt={key:1,class:"fs_audit_empty_state"},Grt={key:0,class:"fs_escalate_ticket_name"},Wrt={class:"fs_priority_badge"},jrt={class:"fs_field"},qrt={key:0,class:"fs_field_error"},Krt={class:"fs_field"},Xrt={class:"fs_dialog_footer"};const Zrt=lH({name:"TicketAudit",props:["url","date_range"],emits:["date-change"],components:{IconPack:dY,Pagination:Pq},data(){return{loading:!1,fetchError:!1,localDateRange:this.date_range,shortcuts:hPe,moods:got,runState:"idle",totalCandidates:0,processedCount:0,recentAudited:[],summary:{total:0,success:0,failed:0,average_score:0,needs_attention:0},distribution:{},rows:[],needsAttentionRows:[],activeMoodFilter:"all",tableScrolled:!1,pagination:{current_page:1,per_page:20,total:0},resultsRequestToken:0,pendingExternalDateRange:null,agentsFilter:[],agentsFilterLoading:!1,agentsFilterError:!1,escalateVisible:!1,escalateRow:null,escalateAgentId:null,escalateNote:"",escalateSubmitting:!1,escalateStepsDone:{agent:!1,priority:!1,note:!1}}},computed:{formattedDateRange(){return ELe(this.localDateRange)},progressPercent(){return this.totalCandidates?Math.min(100,Math.round(this.processedCount/this.totalCandidates*100)):0},moodChips(){return[{key:"all",label:this.$t("All"),count:this.summary.total},...got.map(e=>({key:e,label:this.$t(e),count:this.distribution[e]||0})),{key:"failed",label:this.$t("Failed"),count:this.summary.failed}]}},watch:{date_range:{handler(e){this.isSameDateRange(e,this.localDateRange)||("running"!==this.runState?(this.localDateRange=e,this.activeMoodFilter="all",this.pagination.current_page=1,this.fetchResults()):this.pendingExternalDateRange=e)},deep:!0}},methods:{isSameDateRange:OLe,onTableScroll(e){this.tableScrolled=e.target.scrollLeft>0},moodKey:e=>String(e||"").toLowerCase().replace(/\s+/g,"-"),distPercent(e){return this.summary.success?Math.round((this.distribution[e]||0)/this.summary.success*100):0},disabledDate:DLe,formatDate(e){return e?this.$dayjs(e).format("MMM D, h:mm A"):"—"},handleDateChange(){this.$emit("date-change",this.localDateRange),this.activeMoodFilter="all",this.pagination.current_page=1,this.fetchResults()},goToTicket(e){this.$router.push({name:"view_ticket",params:{ticket_id:e}})},selectMoodFilter(e){this.activeMoodFilter!==e&&(this.activeMoodFilter=e,this.pagination.current_page=1,this.fetchResults(!1))},async fetchResults(e=!0){if(!this.localDateRange||2!==this.localDateRange.length)return this.resultsRequestToken++,this.loading=!1,this.fetchError=!1,this.summary={total:0,success:0,failed:0,average_score:0,needs_attention:0},this.distribution={},this.needsAttentionRows=[],this.rows=[],this.pagination.current_page=1,this.pagination.total=0,void(this.runState="idle");this.loading=!0,this.fetchError=!1;const[t,i]=this.localDateRange,a=++this.resultsRequestToken;try{const n=await this.$get("advanced-reports/audit/results",{from:t,to:i,page:this.pagination.current_page,per_page:this.pagination.per_page,mood_filter:this.activeMoodFilter,with_aggregates:e?1:0});if(a!==this.resultsRequestToken)return;e&&(this.summary=n.summary,this.distribution=n.distribution,this.needsAttentionRows=n.needs_attention_rows||[]),this.rows=n.rows.data||[],this.pagination.current_page=n.rows.current_page,this.pagination.per_page=n.rows.per_page,this.pagination.total=n.rows.total,this.runState=this.summary.total?"done":"idle"}catch(n){if(a!==this.resultsRequestToken)return;this.fetchError=!0,this.$handleError(n),"running"===this.runState&&(this.runState="idle")}finally{a===this.resultsRequestToken&&(this.loading=!1)}},async fetchAgentsFilter(){this.agentsFilterLoading=!0,this.agentsFilterError=!1;try{const e=await this.$get("advanced-reports/performance-overview/filters");this.agentsFilter=e.agents||[]}catch(e){this.agentsFilterError=!0}finally{this.agentsFilterLoading=!1}},async runAudit(){if(!this.localDateRange||2!==this.localDateRange.length)return;this.runState="running",this.processedCount=0,this.recentAudited=[];const[e,t]=this.localDateRange;let i;try{i=await this.$post("advanced-reports/audit/run",{from:e,to:t})}catch(s){return this.runState="idle",void this.$handleError(s)}this.totalCandidates=i.queued;const a=i.ticket_ids||[];i.total>i.queued&&this.$notify({type:"warning",title:this.$t("Batch limited"),message:this.$t("{queued} of {total} tickets queued — narrow the date range or run again to cover the rest.").replace("{queued}",i.queued).replace("{total}",i.total)});let n=0;for(let o=0;o<a.length;o+=5){const i=a.slice(o,o+5);try{const a=(await this.$post("advanced-reports/audit/process-batch",{ticket_ids:i,from:e,to:t})).results||[];this.recentAudited=a.concat(this.recentAudited).slice(0,5),this.processedCount+=a.length,n+=Math.max(0,i.length-a.length)}catch(s){n+=i.length}}n>0&&this.$notify({type:"warning",title:this.$t("Audit incomplete"),message:this.$t("{count} ticket(s) weren't audited in this run. Click Run Audit again to retry any that still need it.").replace("{count}",n)}),this.pendingExternalDateRange&&(this.localDateRange=this.pendingExternalDateRange,this.pendingExternalDateRange=null),this.activeMoodFilter="all",this.pagination.current_page=1,await this.fetchResults()},openEscalate(e){this.escalateRow=e,this.escalateAgentId=null,this.escalateNote=e.summary?this.$t("AI audit: ")+e.summary:"",this.escalateStepsDone={agent:!1,priority:!1,note:!1},this.escalateVisible=!0},async submitEscalate(){if(!this.escalateAgentId)return void this.$handleError(this.$t("Please select an agent to assign"));this.escalateSubmitting=!0;const e=this.escalateRow.ticket_id;try{this.escalateStepsDone.agent||(await this.$put(`tickets/${e}/property`,{prop_name:"agent_id",prop_value:this.escalateAgentId}),this.escalateStepsDone.agent=!0),this.escalateStepsDone.priority||(await this.$put(`tickets/${e}/property`,{prop_name:"priority",prop_value:"critical"}),this.escalateStepsDone.priority=!0),this.escalateNote&&!this.escalateStepsDone.note&&(await this.$post(`tickets/${e}/responses`,{content:this.escalateNote,conversation_type:"internal_info"}),this.escalateStepsDone.note=!0),this.$notify({type:"success",title:this.$t("Escalated"),message:this.$t("Ticket has been escalated.")}),this.escalateVisible=!1}catch(t){const e=[];this.escalateStepsDone.agent&&e.push(this.$t("agent assigned")),this.escalateStepsDone.priority&&e.push(this.$t("priority set to Critical")),this.escalateStepsDone.note&&e.push(this.$t("note added")),e.length?this.$notify({type:"warning",title:this.$t("Escalation incomplete"),message:this.$t("Already done: {done}. The rest failed — click Escalate ticket again to retry it.").replace("{done}",e.join(", "))}):this.$handleError(t)}finally{this.escalateSubmitting=!1}}},mounted(){this.fetchAgentsFilter(),this.fetchResults()}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=jO,l=Sk,c=Jl("pagination"),d=wA,u=SA,p=cE,h=dM,f=WB;return zd(),qd("div",mot,[tu("div",_ot,[tu("div",vot,[tu("h3",bot,me(e.$t("AI Ticket Audit")),1)]),tu("div",yot,[tu("div",xot,[tu("div",Sot,[tu("div",wot,[tu("div",Cot,[iu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",Eot,me(s.formattedDateRange),1)):(zd(),qd("span",kot,me(e.$t("Select date range")),1))]),iu(r,{modelValue:n.localDateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>n.localDateRange=e),type:"daterange",editable:!1,disabled:"running"===n.runState,onChange:s.handleDateChange,"range-separator":"To","disabled-date":s.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:n.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","disabled","onChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])])]),tu("div",Tot,[iu(l,{class:"fs_filled_btn",type:"primary",loading:"running"===n.runState,disabled:"running"===n.runState,onClick:s.runAudit},{default:vr(()=>[su(me("running"===n.runState?e.$t("Running…"):e.$t("Run Audit")),1)],void 0),_:1},8,["loading","disabled","onClick"])])])]),br((zd(),qd("div",Aot,[n.fetchError?(zd(),qd("div",Rot,[tu("p",null,me(e.$t("Couldn't load this data.")),1),iu(l,{size:"small",onClick:s.fetchResults},{default:vr(()=>[su(me(e.$t("Retry")),1)],void 0),_:1},8,["onClick"])])):(zd(),qd(Fd,{key:1},["idle"===n.runState?(zd(),qd("div",Iot,[tu("span",Dot,[iu(o,{"icon-key":"ai_ticket_audit",width:22,height:22})]),tu("h4",null,me(e.$t("No audit for this range yet")),1),tu("p",null,me(e.$t("Pick a date range and run an audit to get mood, sentiment score, and a one-line summary for every ticket — tickets that already have a fresh audit are skipped automatically.")),1),iu(l,{class:"fs_filled_btn",type:"primary",onClick:s.runAudit},{default:vr(()=>[su(me(e.$t("Run Audit")),1)],void 0),_:1},8,["onClick"])])):ru("",!0),"running"===n.runState?(zd(),qd("div",Oot,[tu("div",Mot,[tu("h4",null,[t[9]||(t[9]=tu("span",{class:"fs_audit_spinner"},null,-1)),su(" "+me(e.$t("Auditing tickets…")),1)])]),tu("div",Not,[tu("div",{class:"fs_audit_progress_fill",style:ee({width:s.progressPercent+"%"})},null,4)]),tu("div",Lot,[tu("span",null,me(n.processedCount)+" "+me(e.$t("of"))+" "+me(n.totalCandidates)+" "+me(e.$t("tickets processed")),1),tu("span",null,me(s.progressPercent)+"% "+me(e.$t("complete")),1)]),n.recentAudited.length?(zd(),qd("div",Pot,[(zd(!0),qd(Fd,null,sc(n.recentAudited,t=>(zd(),qd("div",{class:"fs_audit_ticker_row",key:t.ticket_id},[tu("span",{class:se(["fs_dist_dot","fs_mood_dot--"+s.moodKey(t.mood)])},null,2),tu("span",null,[su(" #"+me(t.ticket_id)+" “"+me(t.title)+"” → ",1),tu("b",null,me("failed"===t.status?e.$t("Failed"):t.mood),1),"failed"!==t.status?(zd(),qd(Fd,{key:0},[su(", "+me(e.$t("score"))+" "+me(t.score),1)],64)):ru("",!0)])]))),128))])):ru("",!0)])):ru("",!0),"done"===n.runState?(zd(),qd(Fd,{key:2},[tu("div",Fot,[tu("div",Bot,[tu("span",$ot,[iu(o,{"icon-key":"ai_ticket_audit",width:20,height:20})]),tu("div",Vot,[tu("p",Uot,me(e.$t("Tickets audited")),1),tu("span",Hot,me(n.summary.total),1)])]),tu("div",zot,[tu("span",Yot,[iu(o,{"icon-key":"active_agents",width:20,height:20})]),tu("div",Got,[tu("p",Wot,me(e.$t("Completed successfully")),1),tu("span",jot,me(n.summary.success),1)])]),tu("div",qot,[tu("span",Kot,[iu(o,{"icon-key":"error_warning_line",width:20,height:20})]),tu("div",Xot,[tu("p",Zot,me(e.$t("Failed")),1),tu("span",Qot,me(n.summary.failed),1)])]),tu("div",Jot,[tu("span",ert,[iu(o,{"icon-key":"warning",width:20,height:20})]),tu("div",trt,[tu("p",irt,me(e.$t("Avg. Sentiment Score")),1),tu("span",art,me(n.summary.average_score),1)])]),tu("div",nrt,[tu("span",srt,[iu(o,{"icon-key":"alert_fill",width:20,height:20})]),tu("div",ort,[tu("p",rrt,me(e.$t("Need attention")),1),tu("span",lrt,me(n.summary.needs_attention),1)])])]),n.summary.total?(zd(),qd(Fd,{key:0},[tu("div",crt,[tu("div",drt,[tu("div",urt,[tu("h4",prt,me(e.$t("Sentiment distribution")),1)]),tu("div",hrt,[(zd(!0),qd(Fd,null,sc(n.moods,t=>(zd(),qd("div",{class:"fs_dist_row",key:t},[tu("span",frt,[tu("span",{class:se(["fs_dist_dot","fs_mood_dot--"+s.moodKey(t)])},null,2),su(" "+me(e.$t(t)),1)]),tu("div",grt,[tu("div",{class:se(["fs_dist_fill","fs_mood_fill--"+s.moodKey(t)]),style:ee({width:s.distPercent(t)+"%"})},null,6)]),tu("span",mrt,me(n.distribution[t]||0),1)]))),128))])]),tu("div",_rt,[tu("div",vrt,[tu("h4",brt,me(e.$t("Needs attention first")),1)]),tu("div",yrt,[(zd(!0),qd(Fd,null,sc(n.needsAttentionRows,e=>(zd(),qd("div",{class:"fs_attention_item",key:e.ticket_id,onClick:t=>s.goToTicket(e.ticket_id)},[tu("span",{class:se(["fs_dist_dot","fs_mood_dot--"+s.moodKey(e.mood)])},null,2),tu("span",Srt,"#"+me(e.ticket_id)+" "+me(e.title),1),tu("span",wrt,me(e.score),1)],8,xrt))),128)),n.needsAttentionRows.length?ru("",!0):(zd(),qd("p",Crt,me(e.$t("No tickets need attention in this range.")),1))])])]),tu("div",Ert,[tu("div",krt,[tu("div",Trt,[tu("div",Art,[(zd(!0),qd(Fd,null,sc(s.moodChips,e=>(zd(),qd("button",{key:e.key,class:se(["fs_segment_button",{fs_segment_active:n.activeMoodFilter===e.key}]),onClick:t=>s.selectMoodFilter(e.key)},["all"!==e.key&&"failed"!==e.key?(zd(),qd("span",{key:0,class:se(["fs_dist_dot","fs_mood_dot--"+s.moodKey(e.key)])},null,2)):ru("",!0),su(" "+me(e.label)+" ("+me(e.count)+") ",1)],10,Rrt))),128))])])]),tu("div",{class:se(["fs_table_wrap",{"is-scrolled":n.tableScrolled}]),onScroll:t[1]||(t[1]=(...e)=>s.onTableScroll&&s.onTableScroll(...e))},[tu("table",Irt,[tu("thead",null,[tu("tr",null,[tu("th",null,me(e.$t("Ticket")),1),tu("th",null,me(e.$t("Product")),1),tu("th",null,me(e.$t("Agent")),1),tu("th",null,me(e.$t("Mood")),1),tu("th",null,me(e.$t("Score")),1),tu("th",null,me(e.$t("AI Summary")),1),tu("th",null,me(e.$t("Audited")),1),t[10]||(t[10]=tu("th",null,null,-1))])]),tu("tbody",null,[(zd(!0),qd(Fd,null,sc(n.rows,i=>(zd(),qd("tr",{key:i.ticket_id},[tu("td",Drt,[tu("div",Ort,[tu("span",Mrt,"#"+me(i.ticket_id),1),tu("a",{href:"javascript:void(0)",class:"fs_ticket_link",title:i.title,onClick:e=>s.goToTicket(i.ticket_id)},me(i.title),9,Nrt),i.stale?(zd(),qd("span",Lrt,me(e.$t("Updated since audit")),1)):ru("",!0)])]),tu("td",null,me(i.product||"—"),1),tu("td",null,me(i.agent||"—"),1),tu("td",null,["failed"===i.status?(zd(),qd("span",Prt,me(e.$t("Failed")),1)):(zd(),qd("span",{key:1,class:se(["fs_mood_badge","fs_mood_badge--"+s.moodKey(i.mood)])},me(i.mood),3))]),tu("td",null,[null!==i.score&&void 0!==i.score?(zd(),qd(Fd,{key:0},[su(me(i.score),1),t[11]||(t[11]=tu("span",{class:"fs_score_scale"},"/10",-1))],64)):(zd(),qd(Fd,{key:1},[su("—")],64))]),tu("td",Frt,me(i.summary||"—"),1),tu("td",null,me(s.formatDate(i.audited_at)),1),tu("td",null,["failed"!==i.status?(zd(),Kd(l,{key:0,class:"fs_outline_btn",size:"small",onClick:e=>s.openEscalate(i)},{default:vr(()=>[su(me(e.$t("Escalate")),1)],void 0),_:1},8,["onClick"])):ru("",!0)])]))),128)),n.rows.length?ru("",!0):(zd(),qd("tr",Brt,[tu("td",$rt,[tu("p",Vrt,me(e.$t("No Data")),1)])]))])])],34),n.rows.length?(zd(),qd("div",Urt,[tu("span",Hrt,[tu("p",null,me(e.$t("Page"))+" "+me(n.pagination.current_page)+" "+me(e.$t("of"))+" "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(c,{onFetch:t[2]||(t[2]=e=>s.fetchResults(!1)),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("span",zrt,[iu(c,{onFetch:t[3]||(t[3]=e=>s.fetchResults(!1)),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)])],64)):(zd(),qd("div",Yrt,[tu("p",null,me(e.$t("No tickets found for this range.")),1)]))],64)):ru("",!0)],64))])),[[f,n.loading]]),iu(h,{modelValue:n.escalateVisible,"onUpdate:modelValue":t[8]||(t[8]=e=>n.escalateVisible=e),title:e.$t("Escalate ticket"),width:"440px",class:"fs_dialog fs_escalate_dialog"},{footer:vr(()=>[tu("span",Xrt,[iu(l,{class:"fs_outline_btn",onClick:t[7]||(t[7]=e=>n.escalateVisible=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),iu(l,{class:"fs_filled_btn",type:"primary",loading:n.escalateSubmitting,disabled:n.agentsFilterLoading||n.agentsFilterError||!n.agentsFilter.length,onClick:s.submitEscalate},{default:vr(()=>[su(me(e.$t("Escalate ticket")),1)],void 0),_:1},8,["loading","disabled","onClick"])])]),default:vr(()=>[n.escalateRow?(zd(),qd("p",Grt,"#"+me(n.escalateRow.ticket_id)+" — "+me(n.escalateRow.title),1)):ru("",!0),tu("span",Wrt,me(e.$t("Sets priority to Critical")),1),tu("div",jrt,[tu("label",null,me(e.$t("Assign to")),1),iu(u,{modelValue:n.escalateAgentId,"onUpdate:modelValue":t[4]||(t[4]=e=>n.escalateAgentId=e),placeholder:e.$t("Select agent"),loading:n.agentsFilterLoading,disabled:n.agentsFilterError,filterable:"",class:"fs_select_field",style:{width:"100%"}},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.agentsFilter,e=>(zd(),Kd(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","loading","disabled"]),n.agentsFilterError?(zd(),qd("p",qrt,[su(me(e.$t("Couldn't load agents."))+" ",1),tu("a",{href:"javascript:void(0)",onClick:t[5]||(t[5]=(...e)=>s.fetchAgentsFilter&&s.fetchAgentsFilter(...e))},me(e.$t("Retry")),1)])):ru("",!0)]),tu("div",Krt,[tu("label",null,me(e.$t("Internal note")),1),iu(p,{modelValue:n.escalateNote,"onUpdate:modelValue":t[6]||(t[6]=e=>n.escalateNote=e),type:"textarea",rows:3,class:"fs_textarea_input"},null,8,["modelValue"])])],void 0),_:1},8,["modelValue","title"])])}]]),Qrt={name:"ReportSidebar",components:{IconPack:dY},props:{tabs:{type:Array,required:!0},activeName:{type:String,default:""},variant:{type:String,default:"desktop"},isOpen:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},emits:["select","toggle-collapse"],computed:{variantClass(){return"mobile"===this.variant?["fs_mobile_drawer",{"is-open":this.isOpen}]:["fs_desktop_sidebar",{"is-collapsed":this.collapsed}]},toggleTitle(){return"mobile"===this.variant?this.$t("Close"):this.collapsed?this.$t("Expand Sidebar"):this.$t("Collapse Sidebar")}}},Jrt={class:"fs_reports_sidebar_topbar"},elt=["title","aria-label","aria-expanded"],tlt={key:0,class:"fs_reports_sidebar_topbar_title"},ilt={class:"fs_box_head"},alt={class:"fs_reports_nav_group"},nlt={class:"fs-inside-menu-tabs"},slt=["aria-label","onClick"],olt={key:2,class:"fs_nav_tab_label"};const rlt=lH(Qrt,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=ZC;return zd(),qd("div",{class:se(["fs_inside_menu_tab_header",s.variantClass])},[tu("div",Jrt,[tu("button",{type:"button",class:"fs_reports_sidebar_topbar_icon",title:s.toggleTitle,"aria-label":s.toggleTitle,"aria-expanded":!i.collapsed,onClick:t[0]||(t[0]=t=>e.$emit("toggle-collapse"))},[iu(o,{"icon-key":"reports_nav_icon",width:20,height:20})],8,elt),i.collapsed?ru("",!0):(zd(),qd("span",tlt,me(e.$t("Reports")),1))]),tu("div",ilt,[tu("div",alt,[tu("div",nlt,[(zd(!0),qd(Fd,null,sc(i.tabs,t=>(zd(),qd("button",{key:t.name,class:se(["fs_nav_tab",{fs_nav_tab_active:i.activeName===t.name}]),"aria-label":i.collapsed?t.label:null,onClick:i=>e.$emit("select",t.name)},[i.collapsed?(zd(),Kd(r,{key:0,content:t.label,placement:"right",enterable:!1,tabindex:-1},{default:vr(()=>[iu(o,{"icon-key":t.icon,width:20,height:20,class:"fs_nav_tab_icon"},null,8,["icon-key"])],void 0),_:2},1032,["content"])):(zd(),Kd(o,{key:1,"icon-key":t.icon,width:20,height:20,class:"fs_nav_tab_icon"},null,8,["icon-key"])),i.collapsed?ru("",!0):(zd(),qd("span",olt,me(t.label),1))],10,slt))),128))])])])],2)}]]),llt=[{name:"ticket-overview",label:x9("Ticket Overview"),icon:"ticket_overview",component:"TicketOverview",sensitive:!0},{name:"personal-reports",label:x9("Personal Reports"),icon:"personal_reports",component:"PersonalReports",url:"reports/stats",sensitive:!1,free:!0},{name:"agent-performance",label:x9("Agent Performance"),icon:"team_performance",component:"AgentPerformance",sensitive:!0},{name:"product-insight",label:x9("Product Insight"),icon:"product_support",component:"ProductInsights",sensitive:!0},{name:"business-boxes",label:x9("Business Boxes"),icon:"business_boxes_report",component:"WorkloadHealth",sensitive:!0},{name:"activity-reports",label:x9("Activity"),icon:"activity_reports",component:"ActivityByTimeOfDay",url:"activity-by-time-of-day",sensitive:!0},{name:"time-sheet",label:x9("Time Sheet"),icon:"time_sheet",component:"TimeSheet",url:"time-sheet",sensitive:!0,requiresTimeTracking:!0},{name:"ai-ticket-audit",label:x9("AI Ticket Audit"),icon:"ai_ticket_audit",component:"TicketAudit",sensitive:!0}],clt={class:"fs_reports_wrapper"},dlt={class:"fs_reports_layout"},ult={class:"fs_box_wrapper"},plt={class:"fs_reports_content"},hlt={class:"fs_component_dashboard"};const flt=lH({name:"Report",components:{PersonalReports:LPe,ActivityByTimeOfDay:MFe,TimeSheet:CBe,AdvanceReportPlaceholder:ABe,TicketOverview:Fze,AgentPerformance:Qnt,WorkloadHealth:Fst,ProductInsights:fot,TicketAudit:Zrt,ReportSidebar:rlt,Menu:cS},data(){const e=this.getTabFromUrl(),t=this.getDateRangeFromUrl()||ILe();return{activeName:e,me:this.appVars.me,date_range:t,isMenuOpen:!1,isSidebarCollapsed:"yes"===this.$getData("reportsMenuCollapsed")}},computed:{hasSensitiveAccess(){return-1!==this.me.permissions.indexOf("fst_sensitive_data")},visibleTabs(){return llt.filter(e=>!(e.sensitive&&!this.hasSensitiveAccess)&&!(e.requiresTimeTracking&&("yes"!==this.appVars.agent_time_tracking||!this.has_pro)))},activeTab(){return llt.find(e=>e.name===this.activeName)},isProLockedTab(){return!!this.activeTab&&!this.activeTab.free&&!this.has_pro},activeComponent(){return this.isProLockedTab?"AdvanceReportPlaceholder":this.activeTab&&this.activeTab.component||"AdvanceReportPlaceholder"},activeComponentUrl(){return this.activeTab&&this.activeTab.url||""},activeReportTabTitle(){return this.activeTab?this.activeTab.label:""},activeComponentProps(){return"AdvanceReportPlaceholder"!==this.activeComponent?{}:this.isProLockedTab?{title:this.activeReportTabTitle,description:this.$t("Upgrade to Fluent Support Pro to unlock this report."),buttonText:this.$t("Upgrade To Pro"),utmContent:"feature_lock_report_"+this.activeName}:{title:this.activeReportTabTitle}}},methods:{getHashParams(){const e=window.location.hash,t=e.indexOf("?");return-1!==t?new URLSearchParams(e.substring(t+1)):new URLSearchParams},getTabFromUrl(){const e=this.getHashParams().get("tab"),t={"response-activity":"activity-reports"}[e]||e;return llt.some(e=>e.name===t)?t:"personal-reports"},getDateRangeFromUrl(){const e=this.getHashParams(),t=e.get("from"),i=e.get("to");return t&&i?[t,i]:null},setActiveTab(e){this.activeName=e,this.updateUrl(),this.closeMenu()},toggleMenu(){this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?document.body.style.overflow="hidden":document.body.style.overflow=""},toggleSidebarCollapse(){this.isSidebarCollapsed=!this.isSidebarCollapsed,this.$saveData("reportsMenuCollapsed",this.isSidebarCollapsed?"yes":"no")},closeMenu(){this.isMenuOpen=!1,document.body.style.overflow=""},updateUrl(){const e=window.location.hash.split("?")[0]||"#/reports",t=new URLSearchParams;t.set("tab",this.activeName),"time-sheet"!==this.activeName&&this.date_range&&2===this.date_range.length&&(t.set("from",this.date_range[0]),t.set("to",this.date_range[1]));const i=e+"?"+t.toString();window.history.pushState({},"",window.location.pathname+window.location.search+i)},handleDateChange(e){this.date_range=e,this.updateUrl()}},mounted(){window.addEventListener("popstate",()=>{this.activeName=this.getTabFromUrl();const e=this.getDateRangeFromUrl();e&&(this.date_range=e)})},beforeUnmount(){document.body.style.overflow=""}},[["render",function(e,t,i,a,n,s){const o=Jl("Menu"),r=KS,l=Sk,c=Jl("ReportSidebar");return zd(),qd("div",clt,[br(tu("div",{class:se(["fs_reports_menu_overlay",{"is-open":n.isMenuOpen}]),onClick:t[0]||(t[0]=Ah((...e)=>s.closeMenu&&s.closeMenu(...e),["stop"]))},null,2),[[yp,n.isMenuOpen]]),tu("div",{class:se(["fs_reports_menu_toggle",{"is-hidden":n.isMenuOpen}])},[n.isMenuOpen?ru("",!0):(zd(),Kd(l,{key:0,class:"fs_outline_btn fs_reports_menu_toggle_btn",onClick:s.toggleMenu},{default:vr(()=>[iu(r,null,{default:vr(()=>[iu(o)],void 0),_:1}),su(" "+me(e.$t("Reports")),1)],void 0),_:1},8,["onClick"]))],2),tu("div",dlt,[iu(c,{variant:"desktop",tabs:s.visibleTabs,"active-name":n.activeName,collapsed:n.isSidebarCollapsed,onSelect:s.setActiveTab,onToggleCollapse:s.toggleSidebarCollapse},null,8,["tabs","active-name","collapsed","onSelect","onToggleCollapse"]),iu(c,{variant:"mobile",tabs:s.visibleTabs,"active-name":n.activeName,"is-open":n.isMenuOpen,onSelect:s.setActiveTab,onToggleCollapse:s.closeMenu},null,8,["tabs","active-name","is-open","onSelect","onToggleCollapse"]),tu("div",ult,[tu("div",plt,[tu("div",hlt,[(zd(),Kd(Ol,null,[(zd(),Kd(tc(s.activeComponent),uu({url:s.activeComponentUrl,key:n.activeName,date_range:n.date_range},s.activeComponentProps,{onDateChange:s.handleDateChange,onNavigateTab:s.setActiveTab}),null,16,["url","date_range","onDateChange","onNavigateTab"]))],1024))])])])])])}]]),glt={name:"AllWorkflows",components:{Pagination:Pq,TableMoreActions:Cge,BulkAction:Zxe,NarrowPromo:Fne},data:()=>({workflows:[],loading:!1,search:"",pagination:{per_page:10,current_page:1,total:0},showAddModal:!1,new_workflow:{title:"",trigger_type:"manual"},creating:!1,deleting:!1,duplicating:!1,workflowId:"",workflowName:"",selectedWorkflows:[],selectedBulkAction:"",showBulkDeleteDialog:!1,bulkActionItems:[]}),computed:{bulkActions:()=>[{value:"delete",label:"Delete"}],bulkDeleteWarning(){const e=this.bulkActionItems?this.bulkActionItems.length:0;return e?this.$t(`Are you sure to delete ${e} workflow(s)? All associated data will be deleted.`):this.$t("No workflows selected for deletion.")}},mounted(){this.has_pro&&this.fetch(),this.$setTitle(this.$t("Workflows"))},methods:{statusLabel(e){return{published:this.$t("Published"),draft:this.$t("Draft")}[e]||""},triggerTypeLabel(e){return{manual:this.$t("Manual"),automatic:this.$t("Automatic")}[e]||""},async fetch(){this.loading=!0,await this.$get("workflows",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.workflows=e.workflows.data,this.pagination.total=e.workflows.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async createWorkflow(){if(!this.new_workflow.title)return this.$notify({type:"error",message:this.$t("Workflow title is required"),position:"bottom-right"}),!1;this.creating=!0,await this.$post("workflows",this.new_workflow).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$router.push({name:"edit-workflow",params:{workflow_id:e.workflow.id}})}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1})},async duplicateWorkflow(e){this.duplicating=!0,await this.$post("workflows/duplicate/"+e).then(e=>{this.$notify({type:"success",message:this.$t("Workflow duplicated successfully"),position:"bottom-right"}),this.fetch(),this.duplicating=!1,this.renewOptions("workflows/options")}).catch(e=>{this.duplicating=!1,this.$handleError(e)}).always(()=>{this.deleting=!1})},async deleteWorkflow(e){this.deleting=!0,await this.$del("workflows/"+e).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetch(),this.renewOptions("workflows/options")}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})},handleSearch(){this.pagination.current_page=1,this.fetch()},handleSelectionChange(e){this.selectedWorkflows=e},handleBulkAction({action:e,items:t}){if("delete"===e){if(!t||!t.length)return;this.bulkActionItems=t,this.showBulkDeleteDialog=!0}},async confirmBulkDelete(){if(this.bulkActionItems&&this.bulkActionItems.length){this.deleting=!0;try{const e=this.bulkActionItems.map(e=>e.id);for(const t of e)await this.$del("workflows/"+t);this.$notify({type:"success",message:this.$t("Selected workflows deleted successfully"),position:"bottom-right"}),this.selectedWorkflows=[],this.selectedBulkAction="",this.showBulkDeleteDialog=!1,this.bulkActionItems=[],await this.fetch(),this.renewOptions("workflows/options")}catch(e){this.$handleError(e)}finally{this.deleting=!1}}else this.showBulkDeleteDialog=!1},cancelBulkDelete(){this.showBulkDeleteDialog=!1,this.bulkActionItems=[]},handlePageChange(e){this.pagination.current_page=e,this.fetch()},handlePerPageChange(){this.pagination.current_page=1,this.fetch()}}},mlt={class:"fs_all_workflows"},_lt={key:0,class:"fs_box_wrapper"},vlt={class:"fs_component_header"},blt={class:"fs_component_head"},ylt={class:"fs_page_title"},xlt={class:"fs_box_actions"},Slt={class:"fs_table_container"},wlt={class:"fs_table_header"},Clt={class:"fs_bulk_actions"},Elt={class:"fs-controls-bulk-actions"},klt={class:"fs_search_container"},Tlt={key:0,class:"fs_table_wrapper"},Alt={class:"fs-table-action-cell"},Rlt={class:"fs_action_button_wrapper"},Ilt={key:0,class:"fs_pagination_wrapper"},Dlt={class:"fs_pagination_left"},Olt={class:"fs_pagination_right"},Mlt={key:1},Nlt={class:"fs_workflow_type_info"},Llt={key:0},Plt={class:"fs_workflow_info_header"},Flt={class:"fs_workflow_info_header_text"},Blt={class:"fs_workflow_info_body"},$lt={class:"fs_workflow_info_header_text"},Vlt={class:"fs_workflow_info_header_example_title"},Ult={class:"fs_workflow_info_header_example_text"},Hlt={key:1},zlt={class:"fs_workflow_info_header"},Ylt={class:"fs_workflow_info_header_text"},Glt={class:"fs_workflow_info_body"},Wlt={class:"fs_workflow_info_header_text"},jlt={class:"fs_workflow_info_header_example_title"},qlt={class:"fs_workflow_info_header_example_text"},Klt={class:"fs_dialog_footer"},Xlt={class:"fs_dialog_warning_content"},Zlt={class:"fs_popconfirm_actions"};const Qlt=lH(glt,[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("BulkAction"),l=Jl("Search"),c=KS,d=cE,u=ZP,p=Jl("router-link"),h=Jl("EditPen"),f=Jl("TableMoreActions"),g=XP,m=Jl("pagination"),_=AL,v=Jl("NarrowPromo"),b=oC,y=WR,x=jR,S=sC,w=dM,C=WB;return zd(),qd("div",mlt,[e.has_pro?(zd(),qd("div",_lt,[tu("div",vlt,[tu("div",blt,[tu("h3",ylt,me(e.$t("All Workflows")),1)]),tu("div",xlt,[iu(o,{type:"primary",disabled:!e.has_pro,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.showAddModal=!0),icon:"Plus"},{default:vr(()=>[su(me(e.$t("Create New")),1)],void 0),_:1},8,["disabled"])])]),tu("div",Slt,[tu("div",wlt,[tu("div",Clt,[tu("div",Elt,[iu(r,{"selected-items":n.selectedWorkflows,actions:s.bulkActions,"selected-action":n.selectedBulkAction,"onUpdate:selectedAction":t[1]||(t[1]=e=>n.selectedBulkAction=e),onApplyAction:s.handleBulkAction},null,8,["selected-items","actions","selected-action","onApplyAction"])])]),tu("div",klt,[iu(d,{modelValue:n.search,"onUpdate:modelValue":t[2]||(t[2]=e=>n.search=e),placeholder:e.$t("Enter workflow title to search"),onKeyup:Ih(s.handleSearch,["enter"]),onBlur:s.handleSearch,onClear:s.handleSearch,clearable:"",class:"fs_text_input fs_table_search_input"},{prefix:vr(()=>[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1})]),_:1},8,["modelValue","placeholder","onKeyup","onBlur","onClear"])])]),n.loading?(zd(),qd("div",Mlt,[iu(_,{rows:3,animated:""})])):(zd(),qd("div",Tlt,[iu(g,{data:n.workflows,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed",onSelectionChange:s.handleSelectionChange,ref:"workflowTable"},{default:vr(()=>[iu(u,{type:"selection",width:"50",align:"center"}),iu(u,{prop:"id",label:e.$t("ID"),width:"90",sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("ID")),1)]),_:1},8,["label"]),iu(u,{width:"446",label:e.$t("Title")},{header:vr(()=>[su(me(e.$t("Title")),1)]),default:vr(e=>[iu(p,{class:"fs_workflow_title_link",to:{name:"edit-workflow",params:{workflow_id:e.row.id}}},{default:vr(()=>[su(me(e.row.title),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),iu(u,{prop:"trigger",label:e.$t("Trigger"),width:"160",sortable:""},{default:vr(e=>[su(me(e.row.trigger_human_name||"N/A"),1)]),_:1},8,["label"]),iu(u,{prop:"status",label:e.$t("Status"),width:"120",sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Status")),1)]),default:vr(e=>[su(me(s.statusLabel(e.row.status)),1)]),_:1},8,["label"]),iu(u,{prop:"trigger_type",label:e.$t("Trigger Type"),width:"160",sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Trigger Type")),1)]),default:vr(e=>[tu("span",null,me(s.triggerTypeLabel(e.row.trigger_type)),1)]),_:1},8,["label"]),iu(u,{align:"center",width:"150",label:e.$t("Action")},{default:vr(t=>[tu("div",Alt,[tu("div",Rlt,[iu(p,{to:{name:"edit-workflow",params:{workflow_id:t.row.id}}},{default:vr(()=>[iu(c,null,{default:vr(()=>[iu(h)],void 0),_:1})],void 0),_:1},8,["to"])]),iu(f,{scope:t,fetching:n.loading,actions:["delete","duplicate"],onDelete:e=>s.deleteWorkflow(t.row.id),onDuplicate:e=>s.duplicateWorkflow(t.row.id),"delete-warning":e.$t("Are you sure to delete this? All associate data will be deleted")},null,8,["scope","fetching","onDelete","onDuplicate","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data","onSelectionChange"]),n.workflows.length?(zd(),qd("div",Ilt,[tu("div",Dlt,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(m,{onFetch:t[3]||(t[3]=e=>s.fetch()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("div",Olt,[iu(m,{onFetch:t[4]||(t[4]=e=>s.fetch()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)]))])])):(zd(),Kd(v,{key:1,heading:e.$t("Automate your tickets by applying manual or automated tasks"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_workflow_automation"},null,8,["heading","description","button-text"])),iu(w,{modelValue:n.showAddModal,"onUpdate:modelValue":t[9]||(t[9]=e=>n.showAddModal=e),title:e.$t("Add a New Workflow"),width:"60%",class:"fs_dialog"},{footer:vr(()=>[tu("span",Klt,[iu(o,{class:"fs_outline_btn",onClick:t[7]||(t[7]=()=>n.showAddModal=!1)},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),br((zd(),Kd(o,{disabled:n.creating||!n.new_workflow.title,type:"primary",class:"fs_filled_btn",onClick:t[8]||(t[8]=e=>s.createWorkflow())},{default:vr(()=>[su(me(e.$t("Create Workflow")),1)],void 0),_:1},8,["disabled"])),[[C,n.creating]])])]),default:vr(()=>[iu(S,{data:n.new_workflow,"label-position":"top"},{default:vr(()=>[iu(b,{label:e.$t("Your Workflow Name"),class:"fs_form_item"},{default:vr(()=>[iu(d,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Workflow Name"),modelValue:n.new_workflow.title,"onUpdate:modelValue":t[5]||(t[5]=e=>n.new_workflow.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),iu(b,{label:e.$t("Workflow Type"),class:"fs_form_item"},{default:vr(()=>[iu(x,{modelValue:n.new_workflow.trigger_type,"onUpdate:modelValue":t[6]||(t[6]=e=>n.new_workflow.trigger_type=e)},{default:vr(()=>[iu(y,{value:"manual"},{default:vr(()=>[su(me(e.$t("Manual")),1)],void 0),_:1}),iu(y,{value:"automatic"},{default:vr(()=>[su(me(e.$t("Automatic")),1)],void 0),_:1})],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"]),tu("div",Nlt,["manual"==n.new_workflow.trigger_type?(zd(),qd("div",Llt,[tu("div",Plt,[tu("span",Flt,me(e.$t("A Manual workflow doesn't do anything until you tell it to. When you apply a manual workflow from a ticket, Fluent Support performs all the actions.")),1)]),tu("div",Blt,[tu("div",$lt,[tu("span",Vlt,me(e.$t("Example")),1),tu("span",Ult,me(e.$t("When a customer's ticket/response in with a specific question, you execute this workflow to send a reply, add a tag and assign it to someone on your team.")),1)])])])):"automatic"==n.new_workflow.trigger_type?(zd(),qd("div",Hlt,[tu("div",zlt,[tu("span",Ylt,me(e.$t("Automatic workflows are always on, running on selected ticket events. Based on what's happening to your tickets and conversations, It will run the defined actions automatically.")),1)]),tu("div",Glt,[tu("div",Wlt,[tu("span",jlt,me(e.$t("Example")),1)]),tu("span",qlt,me(e.$t('When the subject line contains "Bug Report", you want Fluent Support to automatically add a tag, send an email to the customer and assign a support agent.')),1)])])):ru("",!0)])],void 0),_:1},8,["data"])],void 0),_:1},8,["modelValue","title"]),iu(w,{modelValue:n.showBulkDeleteDialog,"onUpdate:modelValue":t[10]||(t[10]=e=>n.showBulkDeleteDialog=e),title:e.$t("Confirm Delete"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:vr(()=>[tu("div",Zlt,[iu(o,{class:"fs_outline_btn",size:"small",onClick:s.cancelBulkDelete},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(o,{class:"fs_filled_btn",size:"small",loading:n.deleting,onClick:s.confirmBulkDelete},{default:vr(()=>[su(me(e.$t("Delete")),1)],void 0),_:1},8,["loading","onClick"])])]),default:vr(()=>[tu("div",Xlt,[t[11]||(t[11]=tu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[tu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[tu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),tu("p",null,me(s.bulkDeleteWarning),1)])],void 0),_:1},8,["modelValue","title"])])}]]),Jlt={class:"fs_trigger_view"},ect=["src"],tct={class:"fs_trigger_name"},ict={class:"fs_trigger_details"},act={class:"fs_trigger_editor"},nct={key:0},sct={class:"fs_action_footer"},oct={class:"fs_popconfirm_actions"};const rct={class:"fs_add_trigger"},lct={class:"fs_provider_selectors"};const cct={class:"fs_triggers_wrap"};const dct={key:0,class:"fs_conditional_group"},uct={class:"fs_condition_line"},pct={class:"fs_cond_block fs_cond_data"},hct={class:"fs_cond_block fs_cond_operator"},fct={key:0,class:"fs_cond_block fc_cond_value"},gct={key:1,class:"fs_range_inputs"},mct={key:0,class:"fs_range_inputs"},_ct={class:"fs_cond_block fs_cond_action"},vct=["onClick"],bct={class:"fs_group_footer"},yct={class:"fs_or_text"};const xct={class:"fs_trigger_mappers"},Sct={key:0,class:"fs_trigger_conditions"},wct={key:0,class:"fs_filter_separator"},Cct={class:"fs_condition_sign"},Ect={class:"fs_condition_sign fs_button"};const kct={class:"fs_all_workflows"},Tct={class:"fs_box_header"},Act={class:"fs_box_head"},Rct={key:0,class:"fs_box_actions fs-gap-16"},Ict={class:"fs_workflow_status"},Dct={class:"fs_workflow_status_text"},Oct={class:"fs_workflow_status_text_label"},Mct={class:"fs_box_wrapper"},Nct={key:0,class:"fs_workflow_edit_wrap"},Lct={key:0,class:"fs_box fs_triggers_wrap"},Pct={class:"fs_box_edit_header"},Fct={class:"fs_box_head"},Bct={class:"fs_box_body fs_padded_24"},$ct={key:1,class:"fs_box fs_triggers_wrap"},Vct={class:"fs_box_edit_header"},Uct={class:"fs_box_head"},Hct={class:"fs_box_body fs_padded_20"},zct={class:"fs_box fs_actions_wrap"},Yct={class:"fs_box_edit_header"},Gct={class:"fs_box_head"},Wct={class:"fs_box_body fs_padded_24"},jct={key:1,class:"fs_workflow_edit_wrap fs_padded_20"};const qct=lH({name:"EditWorkFlow",components:{ActionMappers:lH({name:"ActionMappers",props:["workflow_id","actions","all_actions"],components:{ActionMap:lH({name:"ActionMap",props:["action","actions","activeName","dragKey"],components:{FormBuilder:rle},data(){return{settings_fields:{},loading:!1,builder_ready:!0,localActiveName:this.activeName}},watch:{activeName(e){this.localActiveName=e}},mounted(){this.action.settings||(this.action.settings={})},methods:{triggerEventChanged(){if(!this.action.action_name)return this.action.settings={},!1;if(!this.actions[this.action.action_name])return!1;this.builder_ready=!1;const e=JSON.parse(JSON.stringify(this.actions[this.action.action_name]));this.action.settings=e.settings_defaults||{},this.action.title=e.title||"",setTimeout(()=>{this.builder_ready=!0},100)},emitSave(){this.action.is_open=!this.action.is_open,this.$emit("update")},deleteAction(){this.action.is_open=!this.action.is_open,this.$emit("deleteAction")}}},[["render",function(e,t,i,a,n,s){const o=ZC,r=wA,l=SA,c=cE,d=oC,u=Jl("form-builder"),p=Jl("Delete"),h=KS,f=Sk,g=vL,m=AI,_=TI,v=WB;return br((zd(),qd("div",Jlt,[iu(_,{modelValue:n.localActiveName,"onUpdate:modelValue":t[5]||(t[5]=e=>n.localActiveName=e)},{default:vr(()=>[iu(m,{name:i.action.activeName,class:"fs_actions_board"},{title:vr(()=>{var t;return[iu(o,{class:"box-item",effect:"dark",content:e.$t("Drag and Drop Action"),placement:"top-start"},{default:vr(()=>[tu("img",{src:e.appVars.asset_url+"/images/icons/dragAndDrop.svg"},null,8,ect)],void 0),_:1},8,["content"]),tu("div",tct,me((null==(t=i.actions[i.action.action_name])?void 0:t.title)||i.action.title||""),1)]}),default:vr(()=>{var a;return[tu("div",ict,[tu("div",act,[tu("h3",null,me(e.$t("Action")),1),iu(l,{onChange:t[0]||(t[0]=e=>s.triggerEventChanged()),placeholder:e.$t("Select Integration Event"),modelValue:i.action.action_name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.action.action_name=e),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.actions,(e,t)=>(zd(),Kd(r,{key:t,value:t,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","modelValue"]),i.action.action_name&&i.actions[i.action.action_name]&&n.builder_ready?(zd(),qd("div",nct,[(zd(),Kd(u,{key:i.dragKey,fields:(null==(a=i.actions[i.action.action_name])?void 0:a.fields)||[],"form-data":i.action.settings},{form_end:vr(()=>[iu(d,{label:e.$t("Action Title"),class:"fs_action_title_form_item"},{default:vr(()=>[iu(c,{link:"",placeholder:e.$t("Action Title"),modelValue:i.action.title,"onUpdate:modelValue":t[2]||(t[2]=e=>i.action.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])]),_:1},8,["fields","form-data"])),tu("div",sct,[iu(g,{width:310,title:e.$t("delete_action_warning"),onConfirm:t[3]||(t[3]=e=>s.deleteAction())},{reference:vr(()=>[iu(f,{class:"fs_delete_action_btn",link:""},{default:vr(()=>[iu(h,null,{default:vr(()=>[iu(p)],void 0),_:1}),tu("span",null,me(e.$t("Delete Action")),1)],void 0),_:1})]),actions:vr(({confirm:t,cancel:i})=>[tu("div",oct,[iu(f,{class:"fs_outline_btn",size:"small",onClick:i},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(f,{class:"fs_filled_btn",size:"small",onClick:t},{default:vr(()=>[su(me(e.$t("Yes, Delete this Action")),1)],void 0),_:1},8,["onClick"])])]),_:1},8,["title"]),iu(f,{class:"fs_save_action_btn",onClick:t[4]||(t[4]=e=>s.emitSave()),type:"primary"},{default:vr(()=>[su(me(e.$t("Save")),1)],void 0),_:1})])])):ru("",!0)])])]},void 0),_:1},8,["name"])],void 0),_:1},8,["modelValue"])])),[[v,n.loading]])}]]),ActionAdder:lH({name:"ActionAdder",props:["all_actions","actions_param_size"],emits:["success"],data:()=>({action:{title:"",action_name:"",settings:{}}}),computed:{selectedProvider(){const e=this.action.action_provider;return!!e&&this.all_actions[e]}},methods:{actionSuccess(){if(this.action.action_name){let e={};this.all_actions[this.action.action_name].settings_defaults&&(e=JSON.parse(JSON.stringify(this.all_actions[this.action.action_name].settings_defaults))),this.action.is_open=!0,this.action.settings=e,this.$emit("success",this.action),setTimeout(()=>{this.action={title:"",action_name:"",settings:{}}},200)}}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),qd("div",rct,[tu("h3",{class:se(["fs_select_field_label",i.actions_param_size?"fs_mt-16":""])},me(e.$t("Select Action")),3),tu("ul",lct,[iu(r,{onChange:t[0]||(t[0]=e=>s.actionSuccess()),modelValue:n.action.action_name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.action.action_name=e),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.all_actions,(e,t)=>(zd(),Kd(o,{value:t,label:e.title},null,8,["value","label"]))),256))],void 0),_:1},8,["modelValue"])])])}]]),draggable:rH},data:()=>({actionsParam:[],show_adder:!1,dragKey:Date.now()}),watch:{actionsParam:{handler(e,t){if(t&&e.length===t.length&&JSON.stringify(e)!==JSON.stringify(t)){const t=e.map(e=>e.id);this.$emit("updateActionSequence",t)}this.emitUpdatedActions()},deep:!0}},mounted(){this.actions.length||(this.show_adder=!0),this.actionsParam=JSON.parse(JSON.stringify(this.actions))},methods:{appendAction(e){this.show_adder=!1;const t={...e,workflow_id:this.workflow_id,activeName:`action_${Date.now()}_${Math.random().toString(36).substr(2,9)}`};this.actionsParam.push(t)},removeAction(e){this.actionsParam.splice(e,1),this.$emit("updateActions",this.actionsParam)},onDragEnd(){this.dragKey=Date.now(),this.$emit("updateActions",this.actionsParam)},triggerUpdate(){this.$emit("updateWorkFlow")},emitUpdatedActions(){this.$emit("update:actions",this.actionsParam)}}},[["render",function(e,t,i,a,n,s){const o=Jl("action-map"),r=Jl("draggable"),l=Jl("action-adder"),c=Sk;return zd(),qd("div",cct,[tu("div",null,[n.actionsParam.length?(zd(),Kd(r,{key:0,modelValue:n.actionsParam,"onUpdate:modelValue":t[0]||(t[0]=e=>n.actionsParam=e),"ghost-class":"ghost",class:"fs_all_triggers","item-key":"id",onEnd:s.onDragEnd},{item:vr(({element:e,index:t})=>[(zd(),qd("div",{key:e.id,class:"fs_trigger_map"},[iu(o,{dragKey:n.dragKey,onDeleteAction:e=>s.removeAction(t),onUpdate:s.triggerUpdate,action:e,activeName:e.activeName,actions:i.all_actions},null,8,["dragKey","onDeleteAction","onUpdate","action","activeName","actions"])]))]),_:1},8,["modelValue","onEnd"])):ru("",!0)]),br(iu(l,{onSuccess:s.appendAction,all_actions:i.all_actions,actions_param_size:n.actionsParam.length},null,8,["onSuccess","all_actions","actions_param_size"]),[[yp,n.show_adder]]),n.show_adder?ru("",!0):(zd(),Kd(c,{key:0,type:"info",onClick:t[1]||(t[1]=e=>n.show_adder=!0),class:"fs_outline_btn fs_add_another_action_btn"},{default:vr(()=>[t[2]||(t[2]=tu("svg",{class:"fs_add_icon",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"currentColor"})],-1)),tu("span",null,me(e.$t("Add Another Action")),1)],void 0),_:1}))])}]]),TriggerMappers:lH({name:"TriggerMappers",props:["workflow","trigger_fields","workflow_conditions"],components:{TriggerConditionalGroup:lH({name:"TriggerConditionGroup",props:["settings","conditional_fields","all_conditions"],emits:["deleteGroup"],components:{RemoteCommerceSelect:lH({name:"RemoteCommerceSelect",props:{modelValue:{type:[Array,String],default:()=>[]},provider:{type:String,default:""},optionType:{type:String,default:""}},emits:["update:modelValue"],data(){return{options:[],loading:!1,selected:Array.isArray(this.modelValue)?this.modelValue:[]}},watch:{modelValue(e){this.selected=Array.isArray(e)?e:[]},selected(e){this.$emit("update:modelValue",e)}},created(){this._reqToken=0,this._debouncedFetch=CCe(e=>this.fetchOptions(e),300)},mounted(){this.selected.length&&this.fetchOptions("",this.selected)},methods:{remoteSearch(e){this._debouncedFetch(e)},fetchOptions(e,t){if(!this.provider)return;const i={provider:this.provider,type:this.optionType};t&&t.length?i.ids=t.join(","):i.search=e||"";const a=++this._reqToken;this.loading=!0,this.$get("workflows/commerce-options",i).then(e=>{a===this._reqToken&&(this.options=e.options||[])}).catch(e=>{this.$handleError&&this.$handleError(e)}).always(()=>{a===this._reqToken&&(this.loading=!1)})}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA;return zd(),Kd(r,{modelValue:n.selected,"onUpdate:modelValue":t[0]||(t[0]=e=>n.selected=e),multiple:"",filterable:"",remote:"","collapse-tags":"","collapse-tags-tooltip":"","reserve-keyword":"","remote-method":s.remoteSearch,loading:n.loading,placeholder:e.$t("Search"),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.options,e=>(zd(),Kd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","remote-method","loading","placeholder"])}]])},data:()=>({app_ready:!1}),mounted(){this.settings&&this.settings.length||this.settings.push({data_key:"",data_operator:"",data_value:""}),this.app_ready=!0},methods:{addMore(){this.settings.push({data_key:"",data_operator:"",data_value:""})},maybeValueReset(e,t){"data_key"===t?(e.data_operator="",e.data_value=""):"operator"===t&&e.data_key&&e.data_operator&&"range"===e.data_operator&&(e.value_1="",e.value_2="")},removeCondition(e){1==this.settings.length?this.$emit("deleteGroup"):this.settings.splice(e,1)},deleteSection(){this.$emit("deleteGroup")}}},[["render",function(e,t,i,a,n,s){const o=wA,r=CA,l=SA,c=cE,d=Jl("remote-commerce-select"),u=jO,p=wF;return n.app_ready?(zd(),qd("div",dct,[(zd(!0),qd(Fd,null,sc(i.settings,(a,n)=>(zd(),qd("div",{key:n},[tu("div",uct,[tu("div",pct,[iu(l,{onChange:e=>s.maybeValueReset(a,"data_key"),modelValue:a.data_key,"onUpdate:modelValue":e=>a.data_key=e,class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.conditional_fields,(e,t)=>(zd(),Kd(r,{key:t,label:t},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.children,(e,t)=>(zd(),Kd(o,{key:e.condition_key,label:e.title,value:e.condition_key},null,8,["label","value"]))),128))],void 0),_:2},1032,["label"]))),128))],void 0),_:1},8,["onChange","modelValue","onUpdate:modelValue"])]),a.data_key&&i.all_conditions[a.data_key]?(zd(),qd(Fd,{key:0},[tu("div",hct,[iu(l,{onChange:e=>s.maybeValueReset(a,"operator"),placeholder:e.$t("Operator"),modelValue:a.data_operator,"onUpdate:modelValue":e=>a.data_operator=e,class:"fs_select_field"},{default:vr(()=>["string"==i.all_conditions[a.data_key].data_type?(zd(),qd(Fd,{key:0},[iu(o,{value:"contains",label:e.$t("Contains")},null,8,["label"]),iu(o,{value:"not_contains",label:e.$t("Not contains")},null,8,["label"])],64)):ru("",!0),"single_dropdown"==i.all_conditions[a.data_key].data_type?(zd(),qd(Fd,{key:1},[iu(o,{value:"equal",label:e.$t("Equal")},null,8,["label"]),iu(o,{value:"not_equal",label:e.$t("Not Equal")},null,8,["label"])],64)):ru("",!0),"multiple_select"==i.all_conditions[a.data_key].data_type||"remote_select"==i.all_conditions[a.data_key].data_type?(zd(),qd(Fd,{key:2},[iu(o,{value:"includes_in",label:e.$t("Includes In")},null,8,["label"]),iu(o,{value:"not_includes_in",label:e.$t("Not Includes In")},null,8,["label"])],64)):"yes_no"==i.all_conditions[a.data_key].data_type?(zd(!0),qd(Fd,{key:3},sc(i.all_conditions[a.data_key].options,(e,t)=>(zd(),Kd(o,{value:t,key:t,label:e},null,8,["value","label"]))),128)):"date_range"==i.all_conditions[a.data_key].data_type?(zd(),qd(Fd,{key:4},[iu(o,{value:"<",label:e.$t("Is before")},null,8,["label"]),iu(o,{value:">",label:e.$t("Is after")},null,8,["label"]),iu(o,{value:"range",label:e.$t("Is between")},null,8,["label"])],64)):"time_range"==i.all_conditions[a.data_key].data_type?(zd(),Kd(o,{key:5,value:"range",label:e.$t("Is between")},null,8,["label"])):ru("",!0)],void 0),_:2},1032,["onChange","placeholder","modelValue","onUpdate:modelValue"])]),a.data_operator?(zd(),qd("div",fct,["string"==i.all_conditions[a.data_key].data_type?(zd(),Kd(c,{key:0,type:"text",modelValue:a.data_value,"onUpdate:modelValue":e=>a.data_value=e,placeholder:e.$t("Condition Value"),class:"fs_text_input"},null,8,["modelValue","onUpdate:modelValue","placeholder"])):ru("",!0),"single_dropdown"==i.all_conditions[a.data_key].data_type?(zd(),Kd(l,{key:1,modelValue:a.data_value,"onUpdate:modelValue":e=>a.data_value=e,class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.all_conditions[a.data_key].options,(e,t)=>(zd(),Kd(o,{value:t,key:t,label:e},null,8,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):ru("",!0),"multiple_select"==i.all_conditions[a.data_key].data_type?(zd(),Kd(l,{key:2,modelValue:a.data_value,"onUpdate:modelValue":e=>a.data_value=e,multiple:"","collapse-tags":"",class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.all_conditions[a.data_key].options,(e,t)=>(zd(),Kd(o,{value:t,key:t,label:e},null,8,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):ru("",!0),"remote_select"==i.all_conditions[a.data_key].data_type?(zd(),Kd(d,{key:a.data_key,modelValue:a.data_value,"onUpdate:modelValue":e=>a.data_value=e,provider:i.all_conditions[a.data_key].option_provider,"option-type":i.all_conditions[a.data_key].option_type},null,8,["modelValue","onUpdate:modelValue","provider","option-type"])):"date_range"==i.all_conditions[a.data_key].data_type?(zd(),qd(Fd,{key:4},[">"==a.data_operator||"<"==a.data_operator?(zd(),Kd(u,{key:0,"value-format":"YYYY-MM-DD HH:mm",modelValue:a.data_value,"onUpdate:modelValue":e=>a.data_value=e,type:"datetime",placeholder:e.$t("Pick a day")},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"range"==a.data_operator?(zd(),qd("div",gct,[iu(u,{"value-format":"YYYY-MM-DD HH:mm",modelValue:a.value_1,"onUpdate:modelValue":e=>a.value_1=e,type:"datetime",placeholder:e.$t("From")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),iu(u,{"value-format":"YYYY-MM-DD HH:mm",modelValue:a.value_2,"onUpdate:modelValue":e=>a.value_2=e,type:"datetime",placeholder:e.$t("To")},null,8,["modelValue","onUpdate:modelValue","placeholder"])])):ru("",!0)],64)):"time_range"==i.all_conditions[a.data_key].data_type?(zd(),qd(Fd,{key:5},["range"==a.data_operator?(zd(),qd("div",mct,[iu(p,{start:"00:00",step:"00:10",end:"23:59",modelValue:a.value_1,"onUpdate:modelValue":e=>a.value_1=e,placeholder:e.$t("From")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),iu(p,{start:"00:00",step:"00:10",end:"23:59",modelValue:a.value_2,"onUpdate:modelValue":e=>a.value_2=e,placeholder:e.$t("To")},null,8,["modelValue","onUpdate:modelValue","placeholder"])])):ru("",!0)],64)):ru("",!0)])):ru("",!0)],64)):ru("",!0),tu("div",_ct,[tu("div",{class:"fs_delete_condition_btn",onClick:e=>s.removeCondition(n)},[...t[1]||(t[1]=[tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M11.25 3H15V4.5H13.5V14.25C13.5 14.4489 13.421 14.6397 13.2803 14.7803C13.1397 14.921 12.9489 15 12.75 15H2.25C2.05109 15 1.86032 14.921 1.71967 14.7803C1.57902 14.6397 1.5 14.4489 1.5 14.25V4.5H0V3H3.75V0.75C3.75 0.551088 3.82902 0.360322 3.96967 0.21967C4.11032 0.0790176 4.30109 0 4.5 0H10.5C10.6989 0 10.8897 0.0790176 11.0303 0.21967C11.171 0.360322 11.25 0.551088 11.25 0.75V3ZM12 4.5H3V13.5H12V4.5ZM5.25 6.75H6.75V11.25H5.25V6.75ZM8.25 6.75H9.75V11.25H8.25V6.75ZM5.25 1.5V3H9.75V1.5H5.25Z",fill:"#525866"})],-1)])],8,vct)])])]))),128)),tu("div",bct,[tu("button",{type:"button",class:"fs_or_btn_wrapper",onClick:t[0]||(t[0]=e=>s.addMore())},[t[2]||(t[2]=tu("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"currentColor"})],-1)),tu("span",yct,me(e.$t("OR")),1)])])])):ru("",!0)}]])},data:()=>({app_ready:!1}),computed:{conditional_fields(){if(!this.workflow.trigger_key)return[];const e=this.trigger_fields.triggers[this.workflow.trigger_key].supported_conditions,t={};return yX(this.trigger_fields.conditions,(i,a)=>{-1!==e.indexOf(a)&&(t[i.group]||(t[i.group]={title:i.group,children:[]}),i.condition_key=a,t[i.group].children.push(i))}),t}},mounted(){this.app_ready=!0},methods:{addMore(){this.workflow_conditions.push([{data_key:"",data_operator:"",data_value:""}])},deleteGroup(e){this.workflow_conditions.length>1?this.workflow_conditions.splice(e,1):(this.workflow_conditions.splice(e,1),this.workflow_conditions.push([{data_key:"",data_operator:"",data_value:""}]))}}},[["render",function(e,t,i,a,n,s){const o=wA,r=SA,l=oC,c=Jl("trigger-conditional-group");return zd(),qd("div",xct,[iu(l,{label:e.$t("Workflow Trigger")},{default:vr(()=>[iu(r,{modelValue:i.workflow.trigger_key,"onUpdate:modelValue":t[0]||(t[0]=e=>i.workflow.trigger_key=e),class:"fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(i.trigger_fields.triggers,(e,t)=>(zd(),Kd(o,{value:t,key:t,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"]),i.workflow.trigger_key&&n.app_ready?(zd(),qd("div",Sct,[tu("h3",null,me(e.$t("Conditions")),1),(zd(!0),qd(Fd,null,sc(i.workflow_conditions,(t,a)=>(zd(),qd("div",{class:"fs_each_cond_group",key:a},[iu(c,{onDeleteGroup:e=>s.deleteGroup(a),conditional_fields:s.conditional_fields,all_conditions:i.trigger_fields.conditions,settings:t},null,8,["onDeleteGroup","conditional_fields","all_conditions","settings"]),a+1!=i.workflow_conditions.length?(zd(),qd("div",wct,[tu("div",Cct,me(e.$t("AND")),1)])):ru("",!0)]))),128)),tu("div",{class:"fs_filter_separator",onClick:t[1]||(t[1]=e=>s.addMore())},[tu("div",Ect,[t[2]||(t[2]=tu("svg",{class:"fs_add_and_icon",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"#0E121B"})],-1)),su(" "+me(e.$t("AND")),1)])])])):ru("",!0)])}]])},props:["workflow_id"],data:()=>({workflow:!1,workflow_conditions:[],actions:[],action_fields:{},trigger_fields:{},loading:!1,saving:!1,filtred_action_fields:{},actionSequence:[],editingTitle:!1,originalTitle:""}),created(){this.has_pro&&this.fetch()},watch:{"workflow.trigger_key"(e){const{action_fields:t}=this,i={};if("fluent_support/ticket_closed"===e){const e=["fs_action_create_response","fs_action_close_ticket","fs_action_assign_agent","fs_block_customer","fs_delete_ticket"];for(let a in t)e.includes(a)||(i[a]=t[a])}else if("fluent_support/ticket_created"===e){const e=["fs_action_remove_bookmarks","fs_action_remove_tags"];for(let a in t)e.includes(a)||(i[a]=t[a])}else Object.assign(i,t);this.filtred_action_fields=i}},methods:{startEditTitle(){this.originalTitle=this.workflow.title||"",this.editingTitle=!0,this.$nextTick(()=>{this.$refs.titleInputRef&&this.$refs.titleInputRef.focus&&this.$refs.titleInputRef.focus()})},finishEditTitle(){this.editingTitle=!1;(this.workflow.title||"")!==(this.originalTitle||"")&&this.updateWorkFlow()},async fetch(){this.loading=!0,this.$get("workflows/"+this.workflow_id,{with:["action_fields","trigger_fields"]}).then(e=>{"automatic"===e.workflow.trigger_type&&(e.workflow.settings||(e.workflow.settings={}),this.workflow_conditions=e.workflow.settings.conditions||[]),this.workflow=e.workflow,this.actions=e.actions,this.trigger_fields=e.trigger_fields,this.action_fields=e.action_fields}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateWorkFlow(){this.saving=!0;const e=JSON.parse(JSON.stringify(this.workflow));"automatic"===e.trigger_type&&(e.settings||(e.settings={}),e.settings.conditions=this.workflow_conditions||[]),this.$post("workflows/"+this.workflow_id,{actions:this.actions,workflow:e}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),"automatic"===e.workflow.trigger_type&&(e.workflow.settings||(e.workflow.settings={}),this.workflow_conditions=e.workflow.settings.conditions||[]),this.workflow=e.workflow,this.actions=e.actions,"published"===this.workflow.status&&this.renewOptions("workflows/options")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},async updateActionSequence(e){this.actionSequence=e,this.$post("workflows/action-sequence",{workflow_id:this.workflow_id,action_sequence:e}).then(()=>{}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,i,a,n,s){const o=UE,r=Sk,l=cE,c=VE,d=BL,u=Jl("trigger-mappers"),p=sC,h=Jl("action-mappers"),f=AL,g=WB;return zd(),qd("div",kct,[tu("div",Tct,[tu("div",Act,[iu(c,{separator:"/"},{default:vr(()=>[iu(o,{to:{name:"workflows"}},{default:vr(()=>[su(me(e.$t("Workflows")),1)],void 0),_:1}),n.workflow?(zd(),Kd(o,{key:0},{default:vr(()=>[n.editingTitle?(zd(),Kd(l,{key:1,ref:"titleInputRef",modelValue:n.workflow.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workflow.title=e),size:"small",class:"fs_inline_title_input fs_text_input",onBlur:s.finishEditTitle,onKeyup:Ih(s.finishEditTitle,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):(zd(),qd(Fd,{key:0},[su(me(n.workflow.title)+" ",1),iu(r,{link:"",type:"primary",class:"fs_inline_edit_btn",onClick:s.startEditTitle},{default:vr(()=>[...t[5]||(t[5]=[tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 11 12",fill:"none"},[tu("path",{d:"M2.0484 8.38247L8.1336 2.29727L7.2852 1.44887L1.2 7.53407V8.38247H2.0484ZM2.5458 9.58247H0V7.03667L6.861 0.175672C6.97352 0.0631893 7.1261 0 7.2852 0C7.4443 0 7.59688 0.0631893 7.7094 0.175672L9.4068 1.87307C9.51928 1.98559 9.58247 2.13817 9.58247 2.29727C9.58247 2.45637 9.51928 2.60896 9.4068 2.72147L2.5458 9.58247ZM0 10.7825H10.8V11.9825H0V10.7825Z",fill:"#525866"})],-1)])],void 0),_:1},8,["onClick"])],64))],void 0),_:1})):ru("",!0)],void 0),_:1})]),n.workflow?(zd(),qd("div",Rct,[tu("div",Ict,[iu(d,{onChange:t[1]||(t[1]=e=>s.updateWorkFlow()),"active-value":"published","inactive-value":"draft",modelValue:n.workflow.status,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workflow.status=e)},null,8,["modelValue"]),tu("div",Dct,[tu("span",Oct,me(e.$t("Status"))+": ",1),su(" "+me(n.workflow.status?n.workflow.status.charAt(0).toUpperCase()+n.workflow.status.slice(1):""),1)])]),br((zd(),Kd(r,{disabled:n.saving,class:"fs_filled_btn",type:"success",onClick:t[3]||(t[3]=e=>s.updateWorkFlow())},{default:vr(()=>[su(me(e.$t("Update Workflow")),1)],void 0),_:1},8,["disabled"])),[[g,n.saving]])])):ru("",!0)]),tu("div",Mct,[n.workflow?br((zd(),qd("div",Nct,["automatic"==n.workflow.trigger_type?(zd(),qd("div",Lct,[tu("div",Pct,[tu("div",Fct,[tu("h3",null,me(e.$t("Set Your Trigger & Conditions")),1)])]),tu("div",Bct,[iu(p,{"label-position":"top",data:n.workflow},{default:vr(()=>[iu(u,{workflow_conditions:n.workflow_conditions,workflow:n.workflow,trigger_fields:n.trigger_fields},null,8,["workflow_conditions","workflow","trigger_fields"])],void 0),_:1},8,["data"])])])):(zd(),qd("div",$ct,[tu("div",Vct,[tu("div",Uct,[tu("h3",null,me(e.$t("Manual Trigger")),1)])]),tu("div",Hct,[su(me(e.$t("This is a"))+" ",1),tu("b",null,me(e.$t("manual workflow")),1),su(me(e.$t(". You can set your actions and run the workflow actions from ticket page.")),1)])])),tu("div",zct,[tu("div",Yct,[tu("div",Gct,[tu("h3",null,me(e.$t("Workflow Actions (Tasks)")),1)])]),tu("div",Wct,[iu(h,{actions:n.actions,all_actions:n.filtred_action_fields,"onUpdate:actions":t[4]||(t[4]=e=>n.actions=e),onUpdateActionSequence:s.updateActionSequence,onUpdateWorkFlow:s.updateWorkFlow},null,8,["actions","all_actions","onUpdateActionSequence","onUpdateWorkFlow"])])])])),[[g,n.saving]]):(zd(),qd("div",jct,[tu("div",null,[iu(f,{rows:3,animated:""}),iu(f,{rows:4,animated:""})])]))])])}]]),Kct={class:"fs_activity_settings"},Xct={class:"fs_dialog_footer fs_text_right"};const Zct=lH({name:"ActivitySettings",emits:["updated"],data:()=>({loading:!1,saving:!1,activity_settings:{}}),methods:{async fetchSettings(){this.loading=!0,await this.$get("activity-logger/settings").then(e=>{this.activity_settings=e.activity_settings}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateSettings(){this.saving=!0,await this.$post("activity-logger/settings",{activity_settings:this.activity_settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("updated")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){this.fetchSettings()}},[["render",function(e,t,i,a,n,s){const o=cE,r=oC,l=AR,c=sC,d=Sk,u=WB;return br((zd(),qd("div",Kct,[iu(c,{"label-position":"top"},{default:vr(()=>[iu(r,{label:e.$t("Automatically delete activity logs after days")},{default:vr(()=>[iu(o,{type:"number",min:"1",max:"60",modelValue:n.activity_settings.delete_days,"onUpdate:modelValue":t[0]||(t[0]=e=>n.activity_settings.delete_days=e),class:"fs_text_input fs_mb_5"},null,8,["modelValue"])],void 0),_:1},8,["label"]),iu(r,{class:"fs_form_item fs_mt-10"},{default:vr(()=>[iu(l,{"true-label":"yes","false-label":"no",modelValue:n.activity_settings.disable_logs,"onUpdate:modelValue":t[1]||(t[1]=e=>n.activity_settings.disable_logs=e)},{default:vr(()=>[su(me(e.$t("Disable Activity Logs")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1}),iu(r,{class:"fs_form_item"},{default:vr(()=>[iu(l,{"true-label":"yes","false-label":"no",modelValue:n.activity_settings.open_link_in_new_tab,"onUpdate:modelValue":t[2]||(t[2]=e=>n.activity_settings.open_link_in_new_tab=e)},{default:vr(()=>[su(me(e.$t("Open Ticket in New Tab")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),tu("div",Xct,[br((zd(),Kd(d,{disabled:n.saving,type:"success",onClick:t[3]||(t[3]=e=>s.updateSettings()),class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[u,n.saving]])])])),[[u,n.loading]])}]]);_J(mJ);const Qct={key:0,class:"fs_activity_disabled_banner"},Jct={class:"fs_banner_icon"},edt={class:"fs_banner_text"},tdt={class:"fs_inside_menu_component_header"},idt={class:"fs_component_head"},adt={class:"fs_page_title"},ndt={class:"fs_box_actions"},sdt={class:"fs_activity_logger"},odt={class:"fs_activity_filters_section"},rdt={class:"fs_activity_filters"},ldt={class:"fs_filter_group"},cdt={class:"fs_filter_group"},ddt={class:"fs_date_button_group"},udt={class:"fs_date_button_group_item fs_date_picker_wrapper"},pdt={class:"fs_date_display"},hdt={key:0,class:"fs_date_text"},fdt={key:1,class:"fs_date_placeholder"},gdt={key:0},mdt={key:0,class:"fs_activity_timeline_container"},_dt={key:0,class:"fs_activity_timeline"},vdt=["onClick"],bdt={class:"fs_timeline_icon"},ydt={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},xdt=["d"],Sdt={class:"fs_timeline_content"},wdt=["innerHTML"],Cdt={class:"fs_activity_time"},Edt={key:1,class:"fs_pagination_wrapper"},kdt={class:"fs_pagination_left"},Tdt={class:"fs_pagination_right"},Adt={key:2,class:"fs_loading_skeleton"},Rdt={key:1,class:"fs_no_activities"},Idt=["src"];const Ddt={class:"fs_activity_settings"},Odt={class:"fs_dialog_footer fs_text_right"};const Mdt={key:0,class:"fs_activity_disabled_banner"},Ndt={class:"fs_banner_icon"},Ldt={class:"fs_banner_text"},Pdt={class:"fs_inside_menu_component_header"},Fdt={class:"fs_component_head"},Bdt={class:"fs_page_title"},$dt={class:"fs_box_actions"},Vdt={class:"fs_activity_logger"},Udt={class:"fs_activity_filters_section"},Hdt={class:"fs_activity_filters"},zdt={class:"fs_filter_group"},Ydt={class:"fs_filter_group"},Gdt={class:"fs_date_button_group"},Wdt={class:"fs_date_button_group_item fs_date_picker_wrapper"},jdt={class:"fs_date_display"},qdt={key:0,class:"fs_date_text"},Kdt={key:1,class:"fs_date_placeholder"},Xdt={key:0,class:"fs_table_wrapper"},Zdt={key:1,class:"fs_ticket_not_available"},Qdt={key:0,class:"fs_pagination_wrapper"},Jdt={class:"fs_pagination_left"},eut={class:"fs_pagination_right"},tut={key:1,class:"fs_skeleton_loader"};const iut={class:"fs_inside_activity_menu_tab_header"},aut={class:"fs_box_head"},nut={class:"fs-inside-activity-menu-tabs"},sut={class:"fs_box_wrapper"},out={class:"fs_component_dashboard fs_activity_logger_component"};const rut=lH({name:"Activity",components:{ActivityLogger:lH({name:"ActivityLogger",components:{ActivitySettings:Zct,Pagination:Pq,IconPack:dY},data(){return{activities:[],loading:!1,me:this.appVars.me,showSettingsModal:!1,pagination:{per_page:10,current_page:1,total:0},settings:{},filters:{},date_range:null,shortcuts:hPe}},computed:{formattedDateRange(){return ELe(this.date_range)}},methods:{async fetchActivities(){this.loading=!0,await this.$get("activity-logger",{per_page:this.pagination.per_page,page:this.pagination.current_page,filters:this.filters,from:this.date_range&&this.date_range.length>0?this.date_range[0]:"",to:this.date_range&&this.date_range.length>1?this.date_range[1]:""}).then(e=>{this.activities=e.activities.data,this.pagination.total=e.activities.total,this.settings=e.settings}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleClick(e,t){const i=t.target.getAttribute("href");if(!i)return!1;const a={name:"view_ticket",params:{ticket_id:e.object_id}};if("yes"==this.settings.open_link_in_new_tab&&"#view_ticket"==i){const e=this.$router.resolve(a);window.open(e.href,"_blank")}else this.$router.push(a)},getActivityIcon(e){const t=e.description.toLowerCase();return t.includes("created")?"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z":t.includes("response")&&t.includes("customer")?"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z":t.includes("response")&&t.includes("agent")?"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z":t.includes("note")?"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z":t.includes("closed")?"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z":t.includes("reopened")?"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15":t.includes("assign")?"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z":t.includes("deleted")?"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16":"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},getActivityIconClass(e){const t=e.description.toLowerCase();return t.includes("created")?"fs_icon_created":t.includes("response")&&t.includes("customer")?"fs_icon_customer":t.includes("response")&&t.includes("agent")?"fs_icon_agent":t.includes("note")?"fs_icon_note":t.includes("closed")?"fs_icon_closed":t.includes("reopened")?"fs_icon_reopened":t.includes("assign")?"fs_icon_assigned":t.includes("deleted")?"fs_icon_deleted":"fs_icon_default"},sanitizeDescription:e=>e?mJ.sanitize(e):"",formatActivityTime:e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})},mounted(){this.fetchActivities(),this.$setTitle("Activities")}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=wA,l=SA,c=Jl("Calendar"),d=KS,u=jO,p=Jl("pagination"),h=AL,f=Jl("activity-settings"),g=dM,m=WB;return zd(),qd(Fd,null,["yes"==n.settings.disable_logs?(zd(),qd("div",Qct,[tu("div",Jct,[iu(o,{"icon-key":"warning",width:20,height:20,class:"fs_warn_icon"})]),tu("span",edt,me(e.$t("Activity Logs are currently disabled")),1)])):ru("",!0),tu("div",tdt,[tu("div",idt,[tu("h3",adt,me(e.$t("Overall Activities")),1)]),tu("div",ndt,[br((zd(),qd("button",{class:"fs_refresh_button",onClick:t[0]||(t[0]=e=>s.fetchActivities())},[t[9]||(t[9]=tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),tu("span",null,me(e.$t("Refresh")),1)])),[[m,n.loading]])])]),tu("div",sdt,[tu("div",odt,[tu("div",rdt,[tu("div",ldt,[iu(l,{clearable:"",filterable:"",onChange:t[1]||(t[1]=e=>s.fetchActivities()),modelValue:n.filters.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.filters.agent_id=e),placeholder:e.$t("All Support Staff"),class:"fs_select_field fs_staff_filter"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.appVars.support_agents,e=>(zd(),Kd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])]),tu("div",cdt,[tu("div",ddt,[tu("div",udt,[tu("div",pdt,[iu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",hdt,me(s.formattedDateRange),1)):(zd(),qd("span",fdt,me(e.$t("Select date range")),1))]),iu(u,{modelValue:n.date_range,"onUpdate:modelValue":t[3]||(t[3]=e=>n.date_range=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:n.shortcuts,onChange:s.fetchActivities,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker"},{"prefix-icon":vr(()=>[iu(d,null,{default:vr(()=>[iu(c)],void 0),_:1})]),_:1},8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])]),-1!=n.me.permissions.indexOf("fst_manage_settings")?(zd(),qd("button",{key:0,onClick:t[4]||(t[4]=e=>n.showSettingsModal=!0),class:"fs_settings_button"},[...t[10]||(t[10]=[tu("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M3.26954 5.72492C3.38204 5.48742 3.51329 5.26242 3.66329 5.04367L3.63829 3.41867C3.63829 3.26867 3.70079 3.12492 3.81954 3.02492C4.40079 2.53742 5.06329 2.14367 5.79454 1.88117C5.93829 1.83117 6.09454 1.84367 6.21954 1.92492L7.61329 2.76242C7.87579 2.74367 8.13829 2.74367 8.40079 2.76242L9.79454 1.92492C9.92579 1.84992 10.082 1.83117 10.2258 1.88117C10.9383 2.13742 11.607 2.51867 12.2008 3.01867C12.3133 3.11242 12.382 3.26242 12.3758 3.41242L12.3508 5.03742C12.5008 5.25617 12.632 5.48117 12.7445 5.71867L14.1633 6.50617C14.2945 6.58117 14.3883 6.70617 14.4133 6.85617C14.5445 7.59992 14.5508 8.37492 14.4133 9.13117C14.3883 9.28117 14.2945 9.40617 14.1633 9.48117L12.7445 10.2687C12.632 10.5062 12.5008 10.7312 12.3508 10.9499L12.3758 12.5749C12.3758 12.7249 12.3133 12.8687 12.1945 12.9687C11.6133 13.4562 10.9508 13.8499 10.2195 14.1124C10.0758 14.1624 9.91954 14.1499 9.79454 14.0687L8.40079 13.2312C8.13829 13.2499 7.87579 13.2499 7.61329 13.2312L6.21954 14.0687C6.08829 14.1437 5.93204 14.1624 5.78829 14.1124C5.07579 13.8562 4.40704 13.4749 3.81329 12.9749C3.70079 12.8812 3.63204 12.7312 3.63829 12.5812L3.66329 10.9562C3.51329 10.7374 3.38204 10.5124 3.26954 10.2749L1.85079 9.48742C1.71954 9.41242 1.62579 9.28742 1.60079 9.13742C1.46954 8.39367 1.46329 7.61867 1.60079 6.86242C1.62579 6.71242 1.71954 6.58742 1.85079 6.51242L3.26954 5.72492Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),tu("path",{d:"M8.00073 10.9999C9.65759 10.9999 11.0007 9.65679 11.0007 7.99994C11.0007 6.34308 9.65759 4.99994 8.00073 4.99994C6.34388 4.99994 5.00073 6.34308 5.00073 7.99994C5.00073 9.65679 6.34388 10.9999 8.00073 10.9999Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):ru("",!0)])])]),n.activities?(zd(),qd("div",gdt,[n.loading?ru("",!0):(zd(),qd("div",mdt,[n.activities.length>0?(zd(),qd("div",_dt,[(zd(!0),qd(Fd,null,sc(n.activities,e=>(zd(),qd("div",{onClick:Ah(t=>s.handleClick(e,t),["prevent"]),key:e.id,class:"fs_timeline_item"},[tu("div",bdt,[tu("div",{class:se(["fs_activity_icon",s.getActivityIconClass(e)])},[s.getActivityIcon(e)?(zd(),qd("svg",ydt,[tu("path",{d:s.getActivityIcon(e)},null,8,xdt)])):ru("",!0)],2)]),tu("div",Sdt,[tu("div",{class:"fs_activity_description",innerHTML:s.sanitizeDescription(e.description)},null,8,wdt),tu("div",Cdt,me(s.formatActivityTime(e.created_at)),1)])],8,vdt))),128))])):ru("",!0)])),n.activities.length?(zd(),qd("div",Edt,[tu("div",kdt,[tu("p",null,"Page "+me(n.pagination.current_page)+" of "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(p,{onFetch:t[5]||(t[5]=e=>s.fetchActivities()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("div",Tdt,[iu(p,{onFetch:t[6]||(t[6]=e=>s.fetchActivities()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0),n.loading?(zd(),qd("div",Adt,[iu(h,{rows:5,animated:""})])):ru("",!0)])):ru("",!0),n.activities.length<1?(zd(),qd("div",Rdt,[tu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,Idt),tu("p",null,me(e.$t("No Results Found")),1)])):ru("",!0),iu(g,{modelValue:n.showSettingsModal,"onUpdate:modelValue":t[8]||(t[8]=e=>n.showSettingsModal=e),title:e.$t("Activity Log Settings"),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[iu(f,{onUpdated:t[7]||(t[7]=e=>{n.showSettingsModal=!1,s.fetchActivities()})})],void 0),_:1},8,["modelValue","title"])])],64)}]]),AIActivityLogger:lH({name:"ActivityLogger",components:{ActivitySettings:Zct,AIActivitySettings:lH({name:"AIActivitySettings",emits:["updated"],data:()=>({loading:!1,saving:!1,ai_activity_settings:{}}),methods:{async fetchSettings(){this.loading=!0,await this.$get("ai-activity-logger/settings").then(e=>{this.ai_activity_settings=e.ai_activity_settings}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateSettings(){this.saving=!0,await this.$post("ai-activity-logger/settings",{ai_activity_settings:this.ai_activity_settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("updated")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){this.fetchSettings()}},[["render",function(e,t,i,a,n,s){const o=cE,r=oC,l=AR,c=sC,d=Sk,u=WB;return br((zd(),qd("div",Ddt,[iu(c,{"label-position":"top"},{default:vr(()=>[iu(r,{class:"fs_form_item",label:e.$t("Automatically delete AI activity logs after days")},{default:vr(()=>[iu(o,{type:"number",min:"1",max:"60",modelValue:n.ai_activity_settings.delete_days,"onUpdate:modelValue":t[0]||(t[0]=e=>n.ai_activity_settings.delete_days=e),class:"fs_text_input"},null,8,["modelValue"])],void 0),_:1},8,["label"]),iu(r,{class:"fs_form_item fs_mt-10"},{default:vr(()=>[iu(l,{"true-label":"yes","false-label":"no",modelValue:n.ai_activity_settings.disable_logs,"onUpdate:modelValue":t[1]||(t[1]=e=>n.ai_activity_settings.disable_logs=e)},{default:vr(()=>[su(me(e.$t("Disable Activity Logs")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),tu("div",Odt,[br((zd(),Kd(d,{disabled:n.saving,type:"success",onClick:t[2]||(t[2]=e=>s.updateSettings()),class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[u,n.saving]])])])),[[u,n.loading]])}]]),Pagination:Pq,IconPack:dY},data(){return{aiActivities:[],loading:!1,me:this.appVars.me,showSettingsModal:!1,pagination:{per_page:10,current_page:1,total:0},settings:{},filters:{},date_range:null,shortcuts:hPe}},computed:{formattedDateRange(){return ELe(this.date_range)}},methods:{fetchAIActivities(){this.loading=!0,this.$get("ai-activity-logger",{per_page:this.pagination.per_page,page:this.pagination.current_page,filters:this.filters,from:this.date_range&&this.date_range.length>0?this.date_range[0]:"",to:this.date_range&&this.date_range.length>1?this.date_range[1]:""}).then(e=>{this.aiActivities=e.data,this.pagination.total=e.total,this.settings=e.settings,this.loading=!1})}},mounted(){this.fetchAIActivities()}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=wA,l=SA,c=Jl("Calendar"),d=KS,u=jO,p=ZP,h=Jl("router-link"),f=XP,g=Jl("pagination"),m=AL,_=Jl("AIActivitySettings"),v=dM,b=WB;return zd(),qd(Fd,null,["yes"==n.settings.disable_logs?(zd(),qd("div",Mdt,[tu("div",Ndt,[iu(o,{"icon-key":"warning",width:20,height:20,class:"fs_warn_icon"})]),tu("span",Ldt,me(e.$t("Activity Logs are currently disabled")),1)])):ru("",!0),tu("div",Pdt,[tu("div",Fdt,[tu("h3",Bdt,me(e.$t("AI Activities")),1)]),tu("div",$dt,[br((zd(),qd("button",{class:"fs_refresh_button",onClick:t[0]||(t[0]=e=>s.fetchAIActivities())},[t[9]||(t[9]=tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),tu("span",null,me(e.$t("Refresh")),1)])),[[b,n.loading]])])]),tu("div",Vdt,[tu("div",Udt,[tu("div",Hdt,[tu("div",zdt,[iu(l,{clearable:"",filterable:"",onChange:t[1]||(t[1]=e=>s.fetchAIActivities()),modelValue:n.filters.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.filters.agent_id=e),placeholder:e.$t("All Support Staff"),class:"fs_select_field fs_staff_filter"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(e.appVars.support_agents,e=>(zd(),Kd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])]),tu("div",Ydt,[tu("div",Gdt,[tu("div",Wdt,[tu("div",jdt,[iu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),s.formattedDateRange?(zd(),qd("span",qdt,me(s.formattedDateRange),1)):(zd(),qd("span",Kdt,me(e.$t("Select date range")),1))]),iu(u,{modelValue:n.date_range,"onUpdate:modelValue":t[3]||(t[3]=e=>n.date_range=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:n.shortcuts,onChange:s.fetchAIActivities,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker"},{"prefix-icon":vr(()=>[iu(d,null,{default:vr(()=>[iu(c)],void 0),_:1})]),_:1},8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])]),-1!=n.me.permissions.indexOf("fst_manage_settings")?(zd(),qd("button",{key:0,onClick:t[4]||(t[4]=e=>n.showSettingsModal=!0),class:"fs_settings_button"},[...t[10]||(t[10]=[tu("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M3.26954 5.72492C3.38204 5.48742 3.51329 5.26242 3.66329 5.04367L3.63829 3.41867C3.63829 3.26867 3.70079 3.12492 3.81954 3.02492C4.40079 2.53742 5.06329 2.14367 5.79454 1.88117C5.93829 1.83117 6.09454 1.84367 6.21954 1.92492L7.61329 2.76242C7.87579 2.74367 8.13829 2.74367 8.40079 2.76242L9.79454 1.92492C9.92579 1.84992 10.082 1.83117 10.2258 1.88117C10.9383 2.13742 11.607 2.51867 12.2008 3.01867C12.3133 3.11242 12.382 3.26242 12.3758 3.41242L12.3508 5.03742C12.5008 5.25617 12.632 5.48117 12.7445 5.71867L14.1633 6.50617C14.2945 6.58117 14.3883 6.70617 14.4133 6.85617C14.5445 7.59992 14.5508 8.37492 14.4133 9.13117C14.3883 9.28117 14.2945 9.40617 14.1633 9.48117L12.7445 10.2687C12.632 10.5062 12.5008 10.7312 12.3508 10.9499L12.3758 12.5749C12.3758 12.7249 12.3133 12.8687 12.1945 12.9687C11.6133 13.4562 10.9508 13.8499 10.2195 14.1124C10.0758 14.1624 9.91954 14.1499 9.79454 14.0687L8.40079 13.2312C8.13829 13.2499 7.87579 13.2499 7.61329 13.2312L6.21954 14.0687C6.08829 14.1437 5.93204 14.1624 5.78829 14.1124C5.07579 13.8562 4.40704 13.4749 3.81329 12.9749C3.70079 12.8812 3.63204 12.7312 3.63829 12.5812L3.66329 10.9562C3.51329 10.7374 3.38204 10.5124 3.26954 10.2749L1.85079 9.48742C1.71954 9.41242 1.62579 9.28742 1.60079 9.13742C1.46954 8.39367 1.46329 7.61867 1.60079 6.86242C1.62579 6.71242 1.71954 6.58742 1.85079 6.51242L3.26954 5.72492Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),tu("path",{d:"M8.00073 10.9999C9.65759 10.9999 11.0007 9.65679 11.0007 7.99994C11.0007 6.34308 9.65759 4.99994 8.00073 4.99994C6.34388 4.99994 5.00073 6.34308 5.00073 7.99994C5.00073 9.65679 6.34388 10.9999 8.00073 10.9999Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):ru("",!0)])])]),n.loading?(zd(),qd("div",tut,[iu(m,{rows:3,animated:""})])):(zd(),qd("div",Xdt,[iu(f,{data:n.aiActivities,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell",style:{width:"100%"}},{default:vr(()=>[iu(p,{prop:"person.full_name",label:e.$t("Agent"),width:"200","min-width":"200",sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Agent")),1)]),_:1},8,["label"]),iu(p,{label:e.$t("Ticket"),width:"220","min-width":"220",sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Ticket")),1)]),default:vr(e=>[e.row.ticket&&e.row.ticket.id?(zd(),Kd(h,{key:0,class:"fs_ticket_link_preview",to:{name:"view_ticket",params:{ticket_id:e.row.ticket.id}}},{default:vr(()=>[tu("p",null,me(e.row.ticket.title),1)],void 0),_:2},1032,["to"])):(zd(),qd("span",Zdt,"#"+me(e.row.ticket_id)+" - This ticket has been deleted or is not available.",1))]),_:1},8,["label"]),iu(p,{width:"120","min-width":"120",prop:"model_name",label:e.$t("Model"),sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Model")),1)]),_:1},8,["label"]),iu(p,{width:"110","min-width":"110",prop:"tokens",label:e.$t("Tokens"),sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Tokens")),1)]),_:1},8,["label"]),iu(p,{"min-width":"300",prop:"prompt",label:e.$t("Prompt"),sortable:""},{header:vr(()=>[tu("span",null,me(e.$t("Prompt")),1)]),_:1},8,["label"])],void 0),_:1},8,["data"]),n.aiActivities.length?(zd(),qd("div",Qdt,[tu("div",Jdt,[tu("p",null,me(e.$t("Page"))+" "+me(n.pagination.current_page)+" "+me(e.$t("of"))+" "+me(Math.ceil(n.pagination.total/n.pagination.per_page)),1),iu(g,{onFetch:t[5]||(t[5]=e=>s.fetchAIActivities()),pagination:n.pagination,layout:"sizes"},null,8,["pagination"])]),tu("div",eut,[iu(g,{onFetch:t[6]||(t[6]=e=>s.fetchAIActivities()),pagination:n.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ru("",!0)]))]),iu(v,{modelValue:n.showSettingsModal,"onUpdate:modelValue":t[8]||(t[8]=e=>n.showSettingsModal=e),title:e.$t("Activity Log Settings"),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[iu(_,{onUpdated:t[7]||(t[7]=e=>{n.showSettingsModal=!1,s.fetchAIActivities()})})],void 0),_:1},8,["modelValue","title"])],64)}]])},data(){return{activeName:"overall_activities",me:this.appVars.me,ai_enabled:!(!this.appVars.open_ai_integration&&!this.appVars.fluent_bot_integration)}}},[["render",function(e,t,i,a,n,s){const o=Jl("activity-logger"),r=Jl("AIActivityLogger");return zd(),qd(Fd,null,[tu("div",iut,[tu("div",aut,[tu("div",nut,[tu("button",{class:se(["fs_activity_nav_tab",{fs_activity_nav_tab_active:"overall_activities"===n.activeName}]),onClick:t[0]||(t[0]=e=>n.activeName="overall_activities")},me(e.$t("Overall")),3),n.ai_enabled?(zd(),qd("button",{key:0,class:se(["fs_activity_nav_tab",{fs_activity_nav_tab_active:"ai_activities"===n.activeName}]),onClick:t[1]||(t[1]=e=>n.activeName="ai_activities")},me(e.$t("AI Activities")),3)):ru("",!0)])])]),tu("div",sut,[tu("div",out,["overall_activities"===n.activeName?(zd(),Kd(o,{key:0})):ru("",!0),"ai_activities"===n.activeName?(zd(),Kd(r,{key:1})):ru("",!0)])])],64)}]]),lut={fetchNotifications:(e={})=>iq.get("notifications",e),fetchUnread:(e={})=>iq.get("notifications/unread",e),fetchUnreadCount:(e={})=>iq.get("notifications/unread-count",e),markAsRead:e=>iq.post(`notifications/${e}/mark-read`),markAllAsRead:()=>iq.post("notifications/mark-all-read")},cut=[{key:"all",label:"All"},{key:"mentions",label:"Mentions"},{key:"ticket_activity",label:"Ticket Activity"},{key:"automation_triggers",label:"Automation Triggers"}];function dut(e){const t=Array.isArray(e.recipients)?e.recipients[0]:null;return!(!t||!parseInt(t.is_read,10))}function uut(e){return{...e,is_read:dut(e),event_label:e.event_label||"updated a ticket",event_icon:e.event_icon||"reply"}}function put(e=[]){return e.map(uut)}function hut(e){var t,i,a,n,s,o;return e.actor&&e.actor.full_name?e.actor.full_name:(null==(i=null==(t=e.payload)?void 0:t.customer)?void 0:i.name)?e.payload.customer.name:(null==(n=null==(a=e.payload)?void 0:a.actor)?void 0:n.name)?e.payload.actor.name:(null==(o=null==(s=e.payload)?void 0:s.assigner)?void 0:o.name)?e.payload.assigner.name:"Someone"}function fut(e){if(e.summary)return e.summary;const t=hut(e),i=e.event_label||"updated a ticket",a=function(e){var t;return e.ticket&&e.ticket.title?e.ticket.title:(null==(t=e.payload)?void 0:t.ticket_title)||""}(e);return a?`${t} ${i} in ${function(e,t=80){return(e=String(e||"")).length<=t?e:`${e.slice(0,t).trim()}...`}(a)}`:`${t} ${i}`}const gut=Jj("notification",{state:()=>({notifications:[],unreadNotifications:[],unreadCount:0,loading:!1,unreadLoading:!1,working:!1,notificationCategories:cut,pagination:{current_page:1,total:0,per_page:10}}),actions:{async fetchNotifications(e={}){this.loading=!0;try{const t=await lut.fetchNotifications(e);return this.setNotificationMeta(t),this.notifications=put(t.notifications.data||[]),this.pagination.current_page=t.notifications.current_page||1,this.pagination.total=t.notifications.total||0,this.pagination.per_page=t.notifications.per_page||e.per_page||this.pagination.per_page,void 0!==t.unread_count&&(this.unreadCount=parseInt(t.unread_count,10)||0),t}finally{this.loading=!1}},async fetchUnread(e={}){this.unreadLoading=!0;try{const t=await lut.fetchUnread(e);return this.setNotificationMeta(t),this.unreadNotifications=put(t.notifications||[]),this.unreadCount=parseInt(t.unread_count,10)||0,t}finally{this.unreadLoading=!1}},async fetchUnreadCount(e={}){const t=await lut.fetchUnreadCount(e);return this.unreadCount=parseInt(t.count,10)||0,this.unreadCount},async markAsRead(e){const t=await lut.markAsRead(e);return this.notifications=this.notifications.map(t=>t.id===e?{...t,is_read:!0}:t),this.unreadNotifications=this.unreadNotifications.map(t=>t.id===e?{...t,is_read:!0}:t).filter(e=>!e.is_read),void 0!==t.unread_count?this.unreadCount=parseInt(t.unread_count,10)||0:this.unreadCount=Math.max(0,this.unreadCount-1),t},async markAllAsRead(){this.working=!0;try{const e=await lut.markAllAsRead();return this.notifications=this.notifications.map(e=>({...e,is_read:!0})),this.unreadNotifications=[],this.unreadCount=parseInt(e.unread_count,10)||0,e}finally{this.working=!1}},setNotificationMeta(e={}){var t;const i=(null==(t=e.meta)?void 0:t.categories)||e.notification_categories;Array.isArray(i)&&i.length&&(this.notificationCategories=i)}}}),mut={name:"NotificationItem",components:{IconPack:dY},props:{notification:{type:Object,required:!0}},emits:["open","mark-read"],computed:{actorName(){return hut(this.notification)},actorPhoto(){return(e=this.notification).actor&&e.actor.photo?e.actor.photo:(null==(i=null==(t=e.payload)?void 0:t.customer)?void 0:i.photo)?e.payload.customer.photo:(null==(n=null==(a=e.payload)?void 0:a.actor)?void 0:n.photo)?e.payload.actor.photo:(null==(o=null==(s=e.payload)?void 0:s.assigner)?void 0:o.photo)?e.payload.assigner.photo:"";var e,t,i,a,n,s,o},actorInitials(){return function(e){const t=hut(e).trim();return t?t.split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(""):"S"}(this.notification)},preview(){return e=this.notification,(null==(t=e.payload)?void 0:t.content_preview)||"";var e,t},summary(){return fut(this.notification)}},methods:{handleOpen(){this.$emit("open",this.notification)}}},_ut={class:"fs_notification_media"},vut={class:"fs_notification_avatar"},but=["src","alt"],yut={key:1},xut={class:"fs_notification_event_icon"},Sut={class:"fs_notification_body"},wut={class:"fs_notification_summary"},Cut={key:0,class:"fs_notification_preview"},Eut={class:"fs_notification_meta"},kut=["aria-label"];const Tut=lH(mut,[["render",function(e,t,i,a,n,s){const o=Jl("IconPack");return zd(),qd("div",{class:se(["fs_notification_item",{"is-unread":!i.notification.is_read,"is-clickable":!0}]),role:"button",tabindex:"0",onClick:t[3]||(t[3]=(...e)=>s.handleOpen&&s.handleOpen(...e)),onKeydown:[t[4]||(t[4]=Ih(Ah((...e)=>s.handleOpen&&s.handleOpen(...e),["prevent"]),["enter"])),t[5]||(t[5]=Ih(Ah((...e)=>s.handleOpen&&s.handleOpen(...e),["prevent"]),["space"]))]},[tu("div",_ut,[tu("div",vut,[s.actorPhoto?(zd(),qd("img",{key:0,src:s.actorPhoto,alt:s.actorName},null,8,but)):(zd(),qd("span",yut,me(s.actorInitials),1))]),tu("div",xut,[iu(o,{"icon-key":i.notification.event_icon,width:12,height:12},null,8,["icon-key"])])]),tu("div",Sut,[tu("p",wut,me(s.summary),1),s.preview?(zd(),qd("p",Cut,me(s.preview),1)):ru("",!0),tu("p",Eut,me(e.$timeDiff(i.notification.created_at)),1)]),i.notification.is_read?ru("",!0):(zd(),qd("button",{key:0,class:"fs_notification_mark_read",type:"button","aria-label":e.$t("Mark read"),onClick:t[0]||(t[0]=Ah(t=>e.$emit("mark-read",i.notification),["stop"])),onKeydown:[t[1]||(t[1]=Ih(Ah(()=>{},["stop"]),["enter"])),t[2]||(t[2]=Ih(Ah(()=>{},["stop"]),["space"]))]},[...t[6]||(t[6]=[tu("span",{class:"fs_status_dot fs_status_dot_new"},null,-1)])],40,kut))],34)}]]),Aut={name:"NotificationsPage",components:{NotificationItem:Tut,Pagination:Pq},data:()=>({filters:{category:"all",status:"all"}}),computed:{...eq(gut,{notifications:"notifications",pagination:"pagination",loading:"loading",categories:"notificationCategories"})},methods:{async fetchNotifications(){const e=gut();try{await e.fetchNotifications({category:this.filters.category,status:this.filters.status,page:e.pagination.current_page,per_page:e.pagination.per_page})}catch(t){this.$handleError(t)}},async refreshList(){await this.fetchNotifications()},async setCategory(e){const t=gut();this.filters.category=e,t.pagination.current_page=1,await this.fetchNotifications()},async toggleUnreadOnly(e){const t=gut();this.filters.status=e?"unread":"all",t.pagination.current_page=1,await this.fetchNotifications()},async markRead(e){const t=gut();try{await t.markAsRead(e.id),"unread"===this.filters.status&&await this.fetchNotifications()}catch(i){this.$handleError(i)}},async openNotification(e){e.is_read||await this.markRead(e),e.ticket_id&&this.$router.push({name:"view_ticket",params:{ticket_id:e.ticket_id}})}},async mounted(){this.$setTitle("Notifications"),await this.fetchNotifications()}},Rut={class:"fs_notifications_page"},Iut={class:"fs_inside_activity_menu_tab_header"},Dut={class:"fs_box_head"},Out={class:"fs-inside-activity-menu-tabs"},Mut=["onClick"],Nut={class:"fs_box_wrapper"},Lut={class:"fs_component_dashboard fs_activity_logger_component"},Put={class:"fs_inside_menu_component_header"},Fut={class:"fs_component_head"},But={class:"fs_page_title"},$ut={class:"fs_box_actions fs_notifications_header_actions"},Vut={class:"fs_notifications_switch"},Uut={key:0,class:"fs_notifications_empty"},Hut={key:1,class:"fs_notifications_page_list"},zut={key:2,class:"fs_notifications_empty"},Yut=["src"],Gut={key:3,class:"fs_pagination_wrapper"},Wut={class:"fs_pagination_left"},jut={class:"fs_pagination_right"};const qut=lH(Aut,[["render",function(e,t,i,a,n,s){const o=BL,r=Jl("NotificationItem"),l=Jl("Pagination"),c=WB;return zd(),qd("div",Rut,[tu("div",Iut,[tu("div",Dut,[tu("div",Out,[(zd(!0),qd(Fd,null,sc(e.categories,e=>(zd(),qd("button",{key:e.key,type:"button",class:se(["fs_activity_nav_tab",{fs_activity_nav_tab_active:n.filters.category===e.key}]),onClick:t=>s.setCategory(e.key)},me(e.label),11,Mut))),128))])])]),tu("div",Nut,[tu("div",Lut,[tu("div",Put,[tu("div",Fut,[tu("h3",But,me(e.$t("Notifications")),1)]),tu("div",$ut,[tu("label",Vut,[iu(o,{"model-value":"unread"===n.filters.status,onChange:s.toggleUnreadOnly},null,8,["model-value","onChange"]),tu("span",null,me(e.$t("Unread only")),1)]),br((zd(),qd("button",{class:"fs_refresh_button",onClick:t[0]||(t[0]=(...e)=>s.refreshList&&s.refreshList(...e))},[t[1]||(t[1]=tu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),tu("span",null,me(e.$t("Refresh")),1)])),[[c,e.loading]])])]),e.loading?(zd(),qd("div",Uut,me(e.$t("Loading...")),1)):e.notifications.length?(zd(),qd("div",Hut,[(zd(!0),qd(Fd,null,sc(e.notifications,e=>(zd(),Kd(r,{key:e.id,notification:e,onOpen:s.openNotification,onMarkRead:s.markRead},null,8,["notification","onOpen","onMarkRead"]))),128))])):(zd(),qd("div",zut,[tu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,Yut),tu("p",null,me(e.$t("No Results Found")),1)])),e.notifications.length?(zd(),qd("div",Gut,[tu("div",Wut,[tu("p",null,"Page "+me(e.pagination.current_page)+" of "+me(Math.ceil(e.pagination.total/e.pagination.per_page)),1),iu(l,{onFetch:s.fetchNotifications,pagination:e.pagination,layout:"sizes"},null,8,["onFetch","pagination"])]),tu("div",jut,[iu(l,{onFetch:s.fetchNotifications,pagination:e.pagination,background:!0,layout:"prev, pager, next"},null,8,["onFetch","pagination"])])])):ru("",!0)])])])}]]),Kut={class:"fs-incoming-webhooks"},Xut={class:"fs_box_wrapper"},Zut={class:"fs_box_header"},Qut={class:"fs_box_head"},Jut={key:0,class:"fs_box_body fs_skeleton_loader"},ept={key:1,class:"fs_box_body"},tpt={class:"fs_incoming_webhook_wrapper"},ipt={class:"fs_webhook_settings"},apt={class:"fs_select_box_label"},npt=["src"],spt={class:"fs_popconfirm_actions"},opt={class:"fc_inline_help"},rpt={class:"fs_webhook_info_table_wrapper"};const lpt=lH({name:"IncomingWebhook",components:{NarrowPromo:Fne},data:()=>({loading:!1,webhook:"",mailbox:"",confirmedMailbox:"",mailboxes:[],fields:[{field:"Ticket Title(Required)",field_key:"title",type:"Text"},{field:"Ticket Content(Required)",field_key:"content",type:"Text"},{field:"Ticket Priority",field_key:"priority",type:"Text"},{field:"Customer First Name",field_key:"sender[first_name]",type:"Text"},{field:"Customer Last Name",field_key:"sender[last_name]",type:"Text"},{field:"Customer Email(Required)",field_key:"sender[email]",type:"Email"},{field:"Customer Title",field_key:"sender[title]",type:"Text"},{field:"Customer Address Line 1",field_key:"sender[address_line_1]",type:"Text"},{field:"Customer Address Line 2",field_key:"sender[address_line_2]",type:"Text"},{field:"Customer City",field_key:"sender[city]",type:"Text"},{field:"Customer State",field_key:"sender[state]",type:"Text"},{field:"Customer Zip",field_key:"sender[zip]",type:"Text"},{field:"Customer Country",field_key:"sender[country]",type:"Text"},{field:"Ticket Custom Field",field_key:"custom_fields[custom_field_slug]",type:"Text"}]}),methods:{fetch(){this.loading=!0,this.$get("settings/incoming-webhook").then(e=>{this.webhook=e.webhook,this.mailboxes=e.mailboxes,this.mailbox=e.mailbox,this.confirmedMailbox=e.mailbox}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},updateWebhook(){this.loading=!0,this.$put("settings/incoming-webhook").then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetch()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async changeBusinessBox(e){await y$.confirm(this.$t("set_mailbox_webhook"),this.$t("Warning"),{confirmButtonText:this.$t("Set Business Mailbox"),cancelButtonText:this.$t("Cancel"),type:"warning",confirmButtonClass:"fs_filled_btn",cancelButtonClass:"fs_outline_btn"}).catch(()=>!1)?(this.loading=!0,this.$put("settings/incoming-webhook",{mailbox_id:e}).then(t=>{this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.confirmedMailbox=e,this.fetch()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})):this.mailbox=this.confirmedMailbox}},mounted(){this.has_pro&&this.fetch(),this.$setTitle("Incoming Webhook Settings")}},[["render",function(e,t,i,a,n,s){const o=AL,r=hI,l=wA,c=SA,d=pI,u=cE,p=Sk,h=vL,f=oC,g=sC,m=ZP,_=XP,v=Jl("NarrowPromo");return zd(),qd("div",Kut,[tu("div",Xut,[tu("div",Zut,[tu("div",Qut,[tu("h3",null,me(e.$t("Incoming Webhook")),1)])]),e.has_pro&&""===n.webhook?(zd(),qd("div",Jut,[iu(o,{rows:5,animated:""})])):ru("",!0),e.has_pro&&n.webhook?(zd(),qd("div",ept,[tu("div",tpt,[tu("div",ipt,[iu(d,{class:"fs_select_mailbox"},{default:vr(()=>[iu(r,{span:24},{default:vr(()=>[tu("label",apt,me(e.$t("Select Business Box")),1)],void 0),_:1}),iu(r,{span:24,class:"fs_mailbox_select_wrapper"},{default:vr(()=>[iu(c,{modelValue:n.mailbox,"onUpdate:modelValue":t[0]||(t[0]=e=>n.mailbox=e),class:"fs_select_field",placeholder:e.$t("Select"),onChange:s.changeBusinessBox},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.mailboxes,e=>(zd(),Kd(l,{key:e.id,label:e.name+"( "+e.box_type+" )",value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange"])],void 0),_:1})],void 0),_:1}),iu(g,{class:"fs_webhook_url"},{default:vr(()=>[iu(f,{size:"small"},{default:vr(()=>[iu(u,{label:e.$t("Incoming Webhook URL"),modelValue:n.webhook,"onUpdate:modelValue":t[1]||(t[1]=e=>n.webhook=e),readonly:!0,class:"fs_webhook_url_input"},null,8,["label","modelValue"]),iu(h,{width:310,title:e.$t("Are you sure to regenerate the webhook url? If you regenerate the url you have to change all your used webhook"),onConfirm:s.updateWebhook},{reference:vr(()=>[iu(p,{size:"default",class:"fs_refresh_btn"},{default:vr(()=>[tu("img",{loading:"lazy",src:e.appVars.asset_url+"images/refresh.svg",class:"fs_icon"},null,8,npt)],void 0),_:1})]),actions:vr(({confirm:t,cancel:i})=>[tu("div",spt,[iu(p,{class:"fs_outline_btn",size:"small",onClick:i},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),iu(p,{class:"fs_filled_btn",size:"small",onClick:t},{default:vr(()=>[su(me(e.$t("Confirm")),1)],void 0),_:1},8,["onClick"])])]),_:1},8,["title","onConfirm"])],void 0),_:1}),tu("p",opt,me(e.$t("to_create_tickets_using_webhooks_notice")),1)],void 0),_:1})]),t[2]||(t[2]=tu("hr",{class:"fs_divider"},null,-1)),tu("div",rpt,[tu("p",null,me(e.$t(" Fillable Fields")),1),iu(_,{class:"fs_webhook_info_table","highlight-current-row":!1,data:n.fields},{default:vr(()=>[iu(m,{prop:"field",label:e.$t("Field")},null,8,["label"]),iu(m,{prop:"field_key",label:e.$t("Field Key")},null,8,["label"]),iu(m,{prop:"type",label:e.$t("Type")},null,8,["label"])],void 0),_:1},8,["data"])])])])):ru("",!0)]),e.has_pro?ru("",!0):(zd(),Kd(v,{key:0,heading:e.$t("use_webhook_to_create_ticket_from_external_site"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_incoming_webhook"},null,8,["heading","description","button-text"]))])}]]),cpt={class:"fs_helpscout_importer"},dpt={class:"fs_helpscout_intro"},upt={class:"fs_input_with_button"},ppt={class:"fs_input_container"},hpt={class:"fs_input_help"},fpt={class:"fs_button_container"},gpt={class:"fs_input_with_button"},mpt={class:"fs_input_container"},_pt={class:"fs_input_help"},vpt={class:"fs_button_container"},bpt={class:"fs_importer_footer"},ypt={class:"fs_importer_actions"};const xpt={class:"fs_freshdesk_importer"},Spt={class:"fs_importer_footer"},wpt={class:"fs_importer_actions"};const Cpt={class:"fs_zendesk_importer"},Ept={class:"fs_importer_footer"},kpt={class:"fs_importer_actions"};const Tpt={name:"TicketImporter",components:{HelpScoutImporter:lH({name:"HelpScoutImporter",props:["show","settings","previously_imported"],emits:["import","close","restart_previous_migration"],data:()=>({mailboxes:{},start_from_previous_migration:!1}),methods:{authorize(){let e="https://secure.helpscout.net/authentication/authorizeClientApplication?client_id="+this.settings.app_id+"&state="+this.settings.app_secret;window.open(e,"_blank")},getAccessToken(){const e={url:"https://api.helpscout.net/v2/oauth2/token?grant_type=authorization_code&code="+this.settings.code+"&client_id="+this.settings.app_id+"&client_secret="+this.settings.app_secret,method:"POST",body:JSON.stringify({grant_type:"authorization_code",code:this.settings.code,client_id:this.settings.app_id,client_secret:this.settings.app_secret})};jQuery.ajax(e).done(e=>{this.settings.access_token=e.access_token,this.settings.refresh_token=e.refresh_token,this.settings.token_type=e.token_type,this.settings.expires_in=e.expires_in,this.settings.access_token&&this.getMailboxes()}).fail(e=>{this.$handleError(e)})},getMailboxes(){const e=this,t={url:"https://api.helpscout.net/v2/mailboxes",method:"GET",headers:{Authorization:"Bearer "+this.settings.access_token}};jQuery.ajax(t).done(t=>{e.mailboxes=t._embedded.mailboxes}).fail(e=>{this.$handleError(e)})},handleCancel(){this.show=!1}}},[["render",function(e,t,i,a,n,s){const o=cE,r=oC,l=Jl("InfoFilled"),c=KS,d=Sk,u=wA,p=SA,h=sC,f=AR;return zd(),qd("div",cpt,[tu("div",dpt,[tu("p",null,[su(me(e.$t("Please copy and paste this url:"))+" ",1),tu("code",null,[tu("strong",null,me(e.appVars.rest.url+"/public/authorize"),1)]),su(" "+me(e.$t("in your HelpScout Redirection URL. This is required as you have to authorize your app before start importing.")),1)])]),iu(h,{data:i.settings,"label-position":"top"},{default:vr(()=>[iu(r,{label:e.$t("App ID"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",modelValue:i.settings.app_id,"onUpdate:modelValue":t[0]||(t[0]=e=>i.settings.app_id=e),placeholder:e.$t("App ID")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(r,{label:e.$t("App Secret"),class:"fs_form_item"},{default:vr(()=>[tu("div",upt,[tu("div",ppt,[iu(o,{class:"fs_text_input",modelValue:i.settings.app_secret,"onUpdate:modelValue":t[1]||(t[1]=e=>i.settings.app_secret=e),placeholder:e.$t("App Secret")},null,8,["modelValue","placeholder"]),tu("span",hpt,[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1}),su(" "+me(e.$t("Click on the"))+" ",1),tu("strong",null,me(e.$t("Get Authorized")),1),su(" "+me(e.$t("button to get the authorization code.")),1)])]),tu("div",fpt,[iu(d,{class:"fs_subtle_btn",onClick:s.authorize,disabled:!i.settings.app_secret||!i.settings.app_id},{default:vr(()=>[su(me(e.$t("Get Authorized")),1)],void 0),_:1},8,["onClick","disabled"])])])],void 0),_:1},8,["label"]),iu(r,{label:e.$t("Authorization Code"),class:"fs_form_item"},{default:vr(()=>[tu("div",gpt,[tu("div",mpt,[iu(o,{class:"fs_text_input",modelValue:i.settings.code,"onUpdate:modelValue":t[2]||(t[2]=e=>i.settings.code=e),placeholder:e.$t("Authorization Code")},null,8,["modelValue","placeholder"]),tu("span",_pt,[iu(c,null,{default:vr(()=>[iu(l)],void 0),_:1}),su(" "+me(e.$t("Paste the authorization code here once you get it.")),1)])]),tu("div",vpt,[iu(d,{class:"fs_subtle_btn",onClick:s.getAccessToken,disabled:!i.settings.code},{default:vr(()=>[su(me(e.$t("Request Token")),1)],void 0),_:1},8,["onClick","disabled"])])])],void 0),_:1},8,["label"]),i.settings.access_token?(zd(),Kd(r,{key:0,label:e.$t("Access Token"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",modelValue:i.settings.access_token,"onUpdate:modelValue":t[3]||(t[3]=e=>i.settings.access_token=e),placeholder:e.$t("Access Token"),disabled:""},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ru("",!0),n.mailboxes.length?(zd(),Kd(r,{key:1,label:e.$t("Choose Mailbox"),class:"fs_form_item"},{default:vr(()=>[iu(p,{class:"fs_select_field",modelValue:i.settings.mailbox_id,"onUpdate:modelValue":t[4]||(t[4]=e=>i.settings.mailbox_id=e),placeholder:e.$t("Please select a mailbox")},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.mailboxes,e=>(zd(),Kd(u,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ru("",!0)],void 0),_:1},8,["data"]),tu("div",bpt,[Object.keys(i.previously_imported).length>0&&i.settings.mailbox_id==i.previously_imported.mailbox_id?(zd(),Kd(f,{key:0,modelValue:n.start_from_previous_migration,"onUpdate:modelValue":t[5]||(t[5]=e=>n.start_from_previous_migration=e),label:e.$t("An incomplete migration exists. Would you like to resume from the previous one?")+" ("+i.previously_imported.completed+"% "+e.$t("completed")+")",size:"large"},null,8,["modelValue","label"])):ru("",!0),tu("div",ypt,[iu(d,{class:"fs_outline_btn",onClick:t[6]||(t[6]=t=>e.$emit("close"))},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),n.start_from_previous_migration?ru("",!0):(zd(),Kd(d,{key:0,class:"fs_filled_btn",onClick:t[7]||(t[7]=t=>e.$emit("import")),disabled:!i.settings.mailbox_id},{default:vr(()=>[su(me(e.$t("Import Tickets")),1)],void 0),_:1},8,["disabled"])),n.start_from_previous_migration?(zd(),Kd(d,{key:1,class:"fs_filled_btn",onClick:t[8]||(t[8]=t=>e.$emit("restart_previous_migration")),disabled:!i.settings.mailbox_id},{default:vr(()=>[su(me(e.$t("Resume Previous Migration")),1)],void 0),_:1},8,["disabled"])):ru("",!0)])])])}]]),FreshDeskImporter:lH({name:"FreshDeskImporter",props:["show","settings","previously_imported"],emits:["import","close","restart_previous_migration"],data:()=>({mailboxes:{},start_from_previous_migration:!1}),methods:{getAccessToken(){const e={url:"https://api.helpscout.net/v2/oauth2/token?grant_type=authorization_code&code="+this.settings.code+"&client_id="+this.settings.app_id+"&client_secret="+this.settings.app_secret,method:"POST",body:JSON.stringify({grant_type:"authorization_code",code:this.settings.code,client_id:this.settings.app_id,client_secret:this.settings.app_secret})};jQuery.ajax(e).done(e=>{this.settings.access_token=e.access_token,this.settings.refresh_token=e.refresh_token,this.settings.token_type=e.token_type,this.settings.expires_in=e.expires_in,this.settings.access_token&&this.getMailboxes()}).fail(e=>{this.$handleError(e)})},getMailboxes(){const e=this,t={url:"https://api.helpscout.net/v2/mailboxes",method:"GET",headers:{Authorization:"Bearer "+this.settings.access_token}};jQuery.ajax(t).done(t=>{e.mailboxes=t._embedded.mailboxes}).fail(e=>{this.$handleError(e)})},handleCancel(){this.show=!1}}},[["render",function(e,t,i,a,n,s){const o=cE,r=oC,l=sC,c=AR,d=Sk;return zd(),qd("div",xpt,[iu(l,{data:i.settings,"label-position":"top"},{default:vr(()=>[iu(r,{label:e.$t("Freshdesk Domain"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",modelValue:i.settings.domain,"onUpdate:modelValue":t[0]||(t[0]=e=>i.settings.domain=e),placeholder:e.$t("Freshdesk Domain")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(r,{label:e.$t("API Key"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",modelValue:i.settings.access_token,"onUpdate:modelValue":t[1]||(t[1]=e=>i.settings.access_token=e),placeholder:e.$t("API Key")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"]),tu("div",Spt,[Object.keys(i.previously_imported).length>0&&i.settings.domain==i.previously_imported.domain?(zd(),Kd(c,{key:0,modelValue:n.start_from_previous_migration,"onUpdate:modelValue":t[2]||(t[2]=e=>n.start_from_previous_migration=e),label:e.$t("An incomplete migration exists. Would you like to resume from the previous one?"),size:"large"},null,8,["modelValue","label"])):ru("",!0),tu("div",wpt,[iu(d,{class:"fs_outline_btn",onClick:t[3]||(t[3]=t=>e.$emit("close"))},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),n.start_from_previous_migration?ru("",!0):(zd(),Kd(d,{key:0,class:"fs_filled_btn",onClick:t[4]||(t[4]=t=>e.$emit("import")),disabled:!i.settings.domain||!i.settings.access_token},{default:vr(()=>[su(me(e.$t("Import Tickets")),1)],void 0),_:1},8,["disabled"])),n.start_from_previous_migration?(zd(),Kd(d,{key:1,class:"fs_filled_btn",onClick:t[5]||(t[5]=t=>e.$emit("restart_previous_migration")),disabled:!i.settings.domain||!i.settings.access_token},{default:vr(()=>[su(me(e.$t("Resume Previous Migration")),1)],void 0),_:1},8,["disabled"])):ru("",!0)])])])}]]),ZendeskImporter:lH({name:"ZendeskImporter",props:["show","settings","previously_imported"],emits:["import","close","restart_previous_migration"],data:()=>({mailboxes:{},start_from_previous_migration:!1}),computed:{hasPreviousMigration(){return this.previously_imported&&Object.keys(this.previously_imported).length>0&&this.previously_imported.domain&&this.settings.domain===this.previously_imported.domain}}},[["render",function(e,t,i,a,n,s){const o=cE,r=oC,l=AR,c=sC,d=Sk;return zd(),qd("div",Cpt,[iu(c,{data:i.settings,"label-position":"top"},{default:vr(()=>[iu(r,{label:e.$t("Zendesk Domain"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",modelValue:i.settings.domain,"onUpdate:modelValue":t[0]||(t[0]=e=>i.settings.domain=e),placeholder:e.$t("Zendesk Domain")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(r,{label:e.$t("Email Address"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",type:"email",modelValue:i.settings.email,"onUpdate:modelValue":t[1]||(t[1]=e=>i.settings.email=e),placeholder:e.$t("Email Address")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(r,{label:e.$t("API Key"),class:"fs_form_item"},{default:vr(()=>[iu(o,{class:"fs_text_input",modelValue:i.settings.access_token,"onUpdate:modelValue":t[2]||(t[2]=e=>i.settings.access_token=e),placeholder:e.$t("API Key")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),iu(r,{class:"fs_form_item"},{default:vr(()=>[iu(l,{modelValue:i.settings.include_archived,"onUpdate:modelValue":t[3]||(t[3]=e=>i.settings.include_archived=e),label:e.$t("Include archived tickets"),size:"large"},null,8,["modelValue","label"])],void 0),_:1})],void 0),_:1},8,["data"]),tu("div",Ept,[s.hasPreviousMigration?(zd(),Kd(l,{key:0,modelValue:n.start_from_previous_migration,"onUpdate:modelValue":t[4]||(t[4]=e=>n.start_from_previous_migration=e),label:e.$t("An incomplete migration exists. Would you like to resume from the previous one?")+" ("+i.previously_imported.completed+"% "+e.$t("completed")+")",size:"large"},null,8,["modelValue","label"])):ru("",!0),tu("div",kpt,[iu(d,{class:"fs_outline_btn",onClick:t[5]||(t[5]=t=>e.$emit("close"))},{default:vr(()=>[su(me(e.$t("Cancel")),1)],void 0),_:1}),n.start_from_previous_migration?ru("",!0):(zd(),Kd(d,{key:0,class:"fs_filled_btn",onClick:t[6]||(t[6]=t=>e.$emit("import")),disabled:!i.settings.domain||!i.settings.email||!i.settings.access_token},{default:vr(()=>[su(me(e.$t("Import Tickets")),1)],void 0),_:1},8,["disabled"])),n.start_from_previous_migration?(zd(),Kd(d,{key:1,class:"fs_filled_btn",onClick:t[7]||(t[7]=t=>e.$emit("restart_previous_migration")),disabled:!i.settings.domain||!i.settings.email||!i.settings.access_token},{default:vr(()=>[su(me(e.$t("Resume Previous Migration")),1)],void 0),_:1},8,["disabled"])):ru("",!0)])])])}]])},data:()=>({settings:{},imporing:!1,import_page:1,total_tickets:0,completedPercentage:0,completed:0,loading:!1,currently_importing:"",import_done:!1,deleting:!1,delete_page:1,openSettings:!1,config:{},sass_systems:["helpscout","freshdesk","zendesk"],import_from_sass:!1,had_tickets:!0,previous_migration_data:[]}),methods:{getImporterIcon(e){return this.appVars.asset_url+"/images/importer.svg"},fetchSettings(){this.loading=!0,this.$get("ticket_importer").then(e=>{this.settings=e.stats,this.settings.forEach(e=>{const t=e.handler;this.previous_migration_data[t]=e})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},restartTicketMigration(e){const t=this.previous_migration_data[e].previously_imported;this.import_page=t.next_page,t.cursor&&(this.config.cursor=t.cursor),t.next_page_url&&(this.config.next_page_url=t.next_page_url),t.include_archived&&(this.config.include_archived=t.include_archived),this.importTickets(e)},importTickets(e){this.imporing=!0,this.openSettings&&(this.openSettings=!1),this.currently_importing=e;let t={handler:e,page:this.import_page};this.config&&(t.query={access_token:this.config.access_token,mailbox:this.config.mailbox_id}),this.config.domain&&(t.query.domain=this.config.domain),this.config.email&&(t.query.email=this.config.email),this.config.cursor&&(t.query.cursor=this.config.cursor),this.config.next_page_url&&(t.query.next_page_url=this.config.next_page_url),this.config.include_archived&&(t.query.include_archived=!0),this.$post("ticket_importer/import",t).then(t=>{if(t.error)return this.$notify({type:"error",message:t.message,position:"bottom-right"}),void(this.imporing=!1);t.has_more?(this.import_page=t.next_page,this.total_tickets=t.total_tickets,this.completed=t.completed,t.cursor&&(this.config.cursor=t.cursor),t.next_page_url&&(this.config.next_page_url=t.next_page_url),this.$nextTick(()=>{this.importTickets(e)})):(this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.imporing=!1,t.had_tickets&&(this.had_tickets="yes"!=t.had_tickets),this.sass_systems.includes(e)?(this.config={},this.import_from_sass=!0):this.import_done=!0,this.import_page=1,this.fetchSettings())}).catch(e=>{this.$handleError(e)})},deleteOldTicketsWithData(e){this.deleting=!0,this.import_done=!1,this.currently_importing=e,this.$del("ticket_importer/delete",{page:this.delete_page,handler:e}).then(t=>{t.has_more?(this.delete_page=t.next_page,this.$nextTick(()=>{this.deleteOldTicketsWithData(e)})):(this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.deleting=!1,this.fetchSettings())}).catch(e=>{this.$handleError(e)})}},mounted(){this.fetchSettings(),this.$setTitle("Ticket Migrator")}},Apt={class:"fs_ticket_importer"},Rpt={class:"fs_box_wrapper"},Ipt={class:"fs_box_header"},Dpt={class:"fs_box_head"},Opt={key:0,class:"fs_box_body"},Mpt={key:0,class:"fs_importer_list"},Npt={class:"fs_importer_item_content"},Lpt={class:"fs_importer_content"},Ppt={class:"fs_importer_title"},Fpt={key:0,class:"fs_last_migration_inline"},Bpt={class:"fs_importer_description"},$pt={class:"fs_importer_actions"},Vpt={class:"fs_progress_wrap"},Upt={key:0,class:"fs_progress_container"},Hpt={class:"fs_progress_line"},zpt={class:"fs_progress_text_wrapper"},Ypt={class:"fs_progress_text"},Gpt={class:"fs_progress_percentage"},Wpt={class:"fs_progress_bar_wrapper"},jpt={key:1,class:"fs_progress_container"},qpt={class:"fs_progress_line"},Kpt={class:"fs_progress_text"},Xpt={class:"fs_progress_bar_wrapper"},Zpt={key:0,class:"fs_divider"},Qpt={key:1,class:"fs_no_importers"},Jpt={key:1,class:"fs_box_body"},eht={class:"dialog-footer"};const tht=lH(Tpt,[["render",function(e,t,i,a,n,s){const o=Sk,r=EL,l=AL,c=dM,d=Jl("help-scout-importer"),u=Jl("fresh-desk-importer"),p=Jl("zendesk-importer");return zd(),qd("div",Apt,[tu("div",Rpt,[tu("div",Ipt,[tu("div",Dpt,[tu("h3",null,me(e.$t("Ticket Migration Settings")),1)])]),n.loading?(zd(),qd("div",Jpt,[iu(l,{class:"fs_skeleton",rows:5,animated:""})])):(zd(),qd("div",Opt,[n.settings.length?(zd(),qd("div",Mpt,[(zd(!0),qd(Fd,null,sc(n.settings,(t,i)=>(zd(),qd("div",{key:t.handler,class:"fs_importer_item"},[tu("div",Npt,[tu("div",Lpt,[tu("h3",Ppt,[su(me(t.name)+" ",1),t.last_migrated?(zd(),qd("span",Fpt," ("+me(e.$t("Last migration:"))+" "+me(t.last_migrated)+") ",1)):ru("",!0)]),tu("p",Bpt,["sass"==(null==t?void 0:t.type)?(zd(),qd(Fd,{key:0},[su(me(e.$t("Migrate tickets from"))+" "+me(t.name)+" "+me(e.$t("in one click.")),1)],64)):(zd(),qd(Fd,{key:1},[su(me(e.$t("This migrator will migrate total"))+" ",1),tu("strong",null,me(t.tickets),1),su(" "+me(e.$t("tickets with"))+" ",1),tu("strong",null,me(t.replies),1),su(" "+me(e.$t("replies and"))+" ",1),tu("strong",null,me(t.customers),1),su(" "+me(e.$t("customers. If you already migrate tickets then it won't migrate existing tickets.")),1)],64))])]),tu("div",$pt,[n.imporing&&n.currently_importing==t.handler?(zd(),Kd(o,{key:0,disabled:"",plain:""},{default:vr(()=>[su(me(e.$t("Importing...")),1)],void 0),_:1})):n.deleting&&n.currently_importing==t.handler?(zd(),Kd(o,{key:1,disabled:"",plain:""},{default:vr(()=>[su(me(e.$t("Deleting...")),1)],void 0),_:1})):(zd(),qd(Fd,{key:2},["sass"==t.type?(zd(),Kd(o,{key:0,class:"fs_outline_btn",onClick:e=>(n.openSettings=!0)&&(n.currently_importing=t.handler),plain:""},{default:vr(()=>[su(me(e.$t("Import Tickets")),1)],void 0),_:1},8,["onClick"])):(zd(),Kd(o,{key:1,class:"fs_outline_btn",onClick:e=>s.importTickets(t.handler),plain:""},{default:vr(()=>[su(me(e.$t("Import Tickets")),1)],void 0),_:1},8,["onClick"]))],64))])]),tu("div",Vpt,[n.imporing&&n.currently_importing==t.handler?(zd(),qd("div",Upt,[tu("div",Hpt,[tu("div",zpt,[tu("span",Ypt,me(e.$t("Migrating...")),1),tu("span",Gpt,me(n.completed)+"%",1)]),tu("div",Wpt,[iu(r,{"text-inside":!1,"stroke-width":8,percentage:n.completed,"show-text":!1},null,8,["percentage"])])])])):ru("",!0),n.deleting&&n.currently_importing==t.handler?(zd(),qd("div",jpt,[tu("div",qpt,[tu("span",Kpt,me(e.$t("Deleting...")),1),tu("div",Xpt,[iu(r,{"stroke-width":8,percentage:50,status:"exception",indeterminate:!0,"show-text":!1})])])])):ru("",!0)]),i<n.settings.length-1?(zd(),qd("hr",Zpt)):ru("",!0)]))),128))])):(zd(),qd("div",Qpt,[tu("h2",null,me(e.$t("Import from other Support Tickets Plugins")),1),tu("p",null,[su(me(e.$t("If you want to migrate tickets from other ticketing system like"))+" ",1),tu("strong",null,me(e.$t("Awesome Support")),1),su(" "+me(e.$t("or"))+" ",1),tu("strong",null,me(e.$t("Support Candy")),1),su(" "+me(e.$t("WordPress plugin then you can migrate from this section.")),1)]),tu("p",null,me(e.$t("Currently no migration is available for this site")),1)]))])),n.had_tickets?ru("",!0):(zd(),Kd(c,{key:2,modelValue:n.import_done,"onUpdate:modelValue":t[2]||(t[2]=e=>n.import_done=e),title:e.$t("Delete Imported Tickets"),class:"fs_dialog"},{footer:vr(()=>[tu("span",eht,[iu(o,{onClick:t[0]||(t[0]=e=>n.import_done=!1),type:"primary"},{default:vr(()=>[su(me(e.$t("No")),1)],void 0),_:1}),iu(o,{type:"danger",onClick:t[1]||(t[1]=e=>s.deleteOldTicketsWithData(n.currently_importing))},{default:vr(()=>[su(me(e.$t("Yes")),1)],void 0),_:1})])]),default:vr(()=>[tu("span",null,me(e.$t("Do you want to delete all imported tickets and its data?")),1)],void 0),_:1},8,["modelValue","title"])),"helpscout"==n.currently_importing?(zd(),Kd(c,{key:3,modelValue:n.openSettings,"onUpdate:modelValue":t[6]||(t[6]=e=>n.openSettings=e),title:e.$t("Configure Help Scout Import"),width:"60%",class:"fs_dialog"},{default:vr(()=>{var e;return[iu(d,{show:n.openSettings,settings:n.config,previously_imported:null==(e=n.previous_migration_data.helpscout)?void 0:e.previously_imported,onRestart_previous_migration:t[3]||(t[3]=e=>s.restartTicketMigration("helpscout")),onImport:t[4]||(t[4]=e=>s.importTickets(n.currently_importing)),onClose:t[5]||(t[5]=e=>n.openSettings=!1)},null,8,["show","settings","previously_imported"])]},void 0),_:1},8,["modelValue","title"])):ru("",!0),"freshdesk"==n.currently_importing?(zd(),Kd(c,{key:4,modelValue:n.openSettings,"onUpdate:modelValue":t[10]||(t[10]=e=>n.openSettings=e),title:e.$t("Configure FreshDesk Import"),width:"60%",class:"fs_dialog"},{default:vr(()=>{var e;return[iu(u,{show:n.openSettings,settings:n.config,previously_imported:null==(e=n.previous_migration_data.freshdesk)?void 0:e.previously_imported,onRestart_previous_migration:t[7]||(t[7]=e=>s.restartTicketMigration("freshdesk")),onImport:t[8]||(t[8]=e=>s.importTickets(n.currently_importing)),onClose:t[9]||(t[9]=e=>n.openSettings=!1)},null,8,["show","settings","previously_imported"])]},void 0),_:1},8,["modelValue","title"])):ru("",!0),"zendesk"==n.currently_importing?(zd(),Kd(c,{key:5,modelValue:n.openSettings,"onUpdate:modelValue":t[14]||(t[14]=e=>n.openSettings=e),title:e.$t("Configure Zendesk Import"),width:"60%",class:"fs_dialog"},{default:vr(()=>{var e;return[iu(p,{show:n.openSettings,settings:n.config,previously_imported:null==(e=n.previous_migration_data.zendesk)?void 0:e.previously_imported,onRestart_previous_migration:t[11]||(t[11]=e=>s.restartTicketMigration("zendesk")),onImport:t[12]||(t[12]=e=>s.importTickets(n.currently_importing)),onClose:t[13]||(t[13]=e=>n.openSettings=!1)},null,8,["show","settings","previously_imported"])]},void 0),_:1},8,["modelValue","title"])):ru("",!0)])])}]]),iht=["src"],aht={class:"text item"};const nht=lH({name:"HelpScoutAuthorization",data:()=>({code:"",error:"",loading:!1}),watch:{"$route.query":{handler:function(e){e.code&&(this.code=e.code)},immediate:!0}}},[["render",function(e,t,i,a,n,s){const o=TA;return zd(),Kd(o,{class:"box-card fs_auth_box"},{default:vr(()=>[tu("img",{src:this.appVars.asset_url+"/images/help-scout-logo.svg",alt:"HelpScout",class:"fs_help_scout_logo"},null,8,iht),tu("div",aht,[su(me(e.$t("Your Help Scout authorization code is:"))+" ",1),tu("code",null,[tu("strong",null,me(n.code),1)]),su(me(e.$t(". Please copy this code and paste it in the ")),1),tu("code",null,me(e.$t("Authorization Code")),1),su(" "+me(e.$t("field.")),1)])],void 0),_:1})}],["__scopeId","data-v-2ec4deb3"]]),sht={class:"fs_box_wrapper"},oht={class:"fs_box_header"},rht={class:"fs_box_head"},lht={key:0,class:"fs_box_body fs_storage_integration_wrapper"},cht={class:"fs_storage_integration_cards"},dht={class:"fs_storage_card_content"},uht={class:"fs_storage_card_left"},pht={class:"fs_storage_icon_wrapper"},hht=["src","alt"],fht={class:"fs_storage_card_info"},ght={class:"fs_storage_card_header"},mht={class:"fs_storage_card_title"},_ht={key:0,class:"fs_status_badge active"},vht=["innerHTML"],bht={class:"fs_storage_card_right"},yht={class:"fs_storage_card_actions"},xht={key:1,class:"fs_box_body fs_skeleton_loader"};const Sht={class:"fs_box_wrapper"},wht={class:"fs_box_header"},Cht={class:"fs_box_head"},Eht={key:0,class:"fs_box_actions"},kht={key:0,class:"fs_ai_skeleton"},Tht={key:1,class:"fs_ai_sections_wrapper"},Aht={class:"fs_ai_section"},Rht={class:"fs_ai_toggle_row"},Iht={class:"fs_ai_toggle_text"},Dht={class:"fs_ai_toggle_title"},Oht={class:"fs_ai_toggle_desc"},Mht={key:0,class:"fs_ai_section"},Nht={class:"fs_ai_section_head"},Lht={class:"fs_ai_field_row"},Pht={class:"fs_ai_field_label"},Fht={class:"fs_ai_field_title"},Bht={class:"fs_ai_field_desc"},$ht={class:"fs_ai_field_input"},Vht={class:"fs_ai_field_row"},Uht={class:"fs_ai_field_label"},Hht={class:"fs_ai_field_title"},zht={class:"fs_ai_field_desc"},Yht={class:"fs_ai_field_input"},Ght={key:1,class:"fs_ai_section"},Wht={class:"fs_ai_section_head"},jht={class:"fs_ai_field_row"},qht={class:"fs_ai_field_label"},Kht={class:"fs_ai_field_title"},Xht={class:"fs_ai_field_desc"},Zht={class:"fs_ai_field_input"},Qht={key:0,style:{"margin-top":"6px","font-size":"12px",color:"#6b7280"}};const Jht={class:"fs_bot_container"},eft={class:"fs_box_wrapper"},tft={class:"fs_box_header"},ift={class:"fs_box_head"},aft={class:"fs_box_actions fs_toggle_container"},nft={class:"fs_toggle_label"},sft={class:"fs_toggle_label"},oft={key:0,class:"fs_box_body"},rft={class:"fs_padded_20 fs_business_settings_wrapper"},lft={class:"fs_section"},cft={class:"fs_section_head"},dft={class:"fs_section_description"},uft={class:"fs_bot_config_card"},pft={key:0,class:"fs_section_description"},hft={class:"fs_section"},fft={class:"fs_section_head"},gft={class:"fs_section_description"},mft={key:0,class:"fs_bot_config_card"},_ft={class:"fs_section"},vft={class:"fs_section_description"},bft={class:"fs_product_mappings"},yft={class:"fs_card_list"},xft={class:"fs_product_header"},Sft={class:"fs_product_name"},wft={class:"fs_add_product_section"},Cft={class:"fs_save_settings_container"},Eft={class:"fs_padded_20 fs_business_settings_wrapper"},kft={class:"fs_section"},Tft={class:"fs_section_description"},Aft={class:"fs_presets_list"},Rft={class:"fs_preset_item"},Ift={class:"fs_preset_fields"},Dft={class:"fs_preset_actions"},Oft={key:1,class:"fs_box_body fs_skeleton_loader fs_padded_20"};const Mft={class:"fs_box_wrapper"},Nft={class:"fs_box_header"},Lft={class:"fs_box_head"},Pft={key:0,class:"fs_box_body fs_skeleton_loader"},Fft={key:1,class:"fs_box_body fs_mcp_load_error"},Bft={class:"fs_mcp_install_actions"},$ft={key:2,class:"fs_box_body fs_mcp_body"},Vft={class:"fs_mcp_toggle_row"},Uft={class:"fs_mcp_toggle_text"},Hft={class:"fs_mcp_toggle_title"},zft={class:"fs_mcp_toggle_desc"},Yft={class:"fs_mcp_help_text"},Gft={class:"fs_mcp_install_actions"},Wft=["href"],jft={class:"fs_mcp_pro_tip"},qft={class:"fs_mcp_status_row"},Kft={class:"fs_mcp_status_info"},Xft={class:"fs_mcp_status_label"},Zft={key:0,class:"fs_mcp_status_sublabel"},Qft={class:"fs_mcp_connected_badge"},Jft={class:"fs_mcp_field_group"},egt={class:"fs_mcp_label"},tgt={class:"fs_mcp_status_note"},igt={class:"fs_mcp_connect_section"},agt={class:"fs_mcp_section_title"},ngt={class:"fs_mcp_help_text"},sgt=["href"],ogt={class:"fs_mcp_creds_row"},rgt={key:0,class:"fs_mcp_localdev"},lgt={key:1,class:"fs_mcp_help_text fs_mcp_instructions"},cgt={class:"fs_mcp_copy_action"},dgt={key:1,class:"fs_mcp_disabled_desc"};const ugt=[{path:"/",name:"dashboard",component:rW,meta:{active:"dashboard"}},{path:"/setup",name:"setup",component:Nj,meta:{active:""}},{path:"/tickets",component:Lq,meta:{active:"tickets"},children:[{name:"tickets",path:"",component:Sre},{name:"view_ticket",path:":ticket_id/view",component:Kfe,props:!0}]},{path:"/settings",component:cge,meta:{active:"settings"},children:[{name:"global_settings",path:"",component:mge},{name:"reCaptcha",path:"reCaptcha",component:Ibe},{name:"ticket-form-config",path:"ticket-form-config",component:Fbe},{name:"custom_fields",path:"custom-fields",component:fye},{name:"tags",path:"ticket-tags",component:dme},{name:"products",path:"products",component:Gge},{path:"support-staffs",name:"support-staffs",component:y_e},{path:"integration",name:"integration",component:mbe},{path:"upload_integration",name:"upload_integration",component:Kxe},{path:"fluentcrm-integration",name:"fluentcrm_integration",component:fxe},{path:"license-management",name:"license",component:nxe},{path:"incoming-webhook",name:"incoming-webhook",component:lpt},{path:"auto-close",name:"auto_close",component:xxe},{path:"ticket_importer",name:"ticket_importer",component:tht},{path:"/integration_statuses",name:"integration_statuses",component:lH({name:"IntegrationStatuses",data:()=>({connections:{},loading:!1}),methods:{fetchSettings(){this.loading=!0,this.$get("settings/integration-statuses").then(e=>{this.connections=e.connections}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},redirectToDocs(e){e&&window.open(e,"_blank","noopener")}},mounted(){this.fetchSettings(),this.$setTitle("Integration Statuses")}},[["render",function(e,t,i,a,n,s){const o=Sk,r=AL;return zd(),qd("div",sht,[tu("div",oht,[tu("div",rht,[tu("h3",null,me(e.$t("Integration Statuses")),1)])]),n.loading?(zd(),qd("div",xht,[iu(r,{animated:!0,rows:3})])):(zd(),qd("div",lht,[tu("div",cht,[(zd(!0),qd(Fd,null,sc(n.connections,(t,i)=>(zd(),qd("div",{key:i,class:"fs_storage_integration_card"},[tu("div",dht,[tu("div",uht,[tu("div",pht,[tu("img",{src:t.logo,alt:t.title,class:"fs_storage_icon"},null,8,hht)]),tu("div",fht,[tu("div",ght,[tu("h3",mht,me(t.title),1),t.is_integrated?(zd(),qd("span",_ht,me(e.$t("Connected")),1)):ru("",!0)]),tu("p",{class:"fs_storage_card_description",innerHTML:t.description},null,8,vht)])]),tu("div",bht,[tu("div",yht,[t.doc_url?(zd(),Kd(o,{key:0,onClick:e=>s.redirectToDocs(t.doc_url),class:"fs_outline_btn"},{default:vr(()=>[su(me(e.$t("Learn More")),1)],void 0),_:1},8,["onClick"])):ru("",!0)])])])]))),128))])]))])}]]),props:!0},{path:"/ai_integration",name:"ai_integration",component:lH({name:"AIIntegration",components:{NarrowPromo:Fne},data:()=>({loading:!1,saving:!1,isEnabled:!1,provider:"openai",apiKey:"",selectedModel:"",modelOptions:[],providers:[{value:"openai",label:"OpenAI"},{value:"gemini",label:"Google Gemini"},{value:"anthropic",label:"Anthropic Claude"}],availableModels:{}}),computed:{isKeySaved(){return this.apiKey&&this.apiKey.startsWith("****")}},methods:{onProviderChange(e){var t;this.modelOptions=this.availableModels[e]||[],this.selectedModel=(null==(t=this.modelOptions[0])?void 0:t.value)||"",this.apiKey=""},fetchSettings(){this.loading=!0,this.$get("settings/ai-integration").then(e=>{this.isEnabled="no"!==e.enabled,this.provider=e.provider||"openai",this.apiKey=e.api_key||"",this.availableModels=e.available_models||{},this.modelOptions=this.availableModels[this.provider]||[],this.selectedModel=e.model||(this.modelOptions[0]?this.modelOptions[0].value:""),this.loading=!1}).catch(e=>{this.$handleError(e),this.loading=!1})},saveSettings(){this.saving=!0,this.$post("settings/ai-integration",{enabled:this.isEnabled?"yes":"no",provider:this.provider,api_key:this.apiKey,model:this.selectedModel}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.saving=!1,this.appVars.open_ai_integration=this.isEnabled&&!!this.apiKey}).catch(e=>{this.$handleError(e),this.saving=!1})}},mounted(){this.has_pro&&this.fetchSettings(),this.$setTitle("AI Model Setup")}},[["render",function(e,t,i,a,n,s){const o=Sk,r=AL,l=BL,c=wA,d=SA,u=cE,p=Jl("NarrowPromo");return zd(),qd("div",Sht,[tu("div",wht,[tu("div",Cht,[tu("h3",null,me(e.$t("AI Model Setup")),1)]),e.has_pro&&!n.loading?(zd(),qd("div",Eht,[iu(o,{class:"fs_filled_btn",type:"primary",loading:n.saving,onClick:s.saveSettings},{default:vr(()=>[su(me(e.$t("Save")),1)],void 0),_:1},8,["loading","onClick"])])):ru("",!0)]),e.has_pro?(zd(),qd(Fd,{key:0},[n.loading?(zd(),qd("div",kht,[iu(r,{animated:!0,rows:5})])):(zd(),qd("div",Tht,[tu("div",Aht,[tu("div",Rht,[iu(l,{modelValue:n.isEnabled,"onUpdate:modelValue":t[0]||(t[0]=e=>n.isEnabled=e)},null,8,["modelValue"]),tu("div",Iht,[tu("span",Dht,me(e.$t("Enable AI")),1),tu("span",Oht,me(e.$t("When enabled, AI will be available for response suggestions and ticket summaries.")),1)])])]),n.isEnabled?(zd(),qd("div",Mht,[tu("div",Nht,me(e.$t("AI Provider")),1),tu("div",Lht,[tu("div",Pht,[tu("p",Fht,me(e.$t("Provider")),1),tu("p",Bht,me(e.$t("Select the AI service you want to use.")),1)]),tu("div",$ht,[iu(d,{modelValue:n.provider,"onUpdate:modelValue":t[1]||(t[1]=e=>n.provider=e),onChange:s.onProviderChange,class:"fs_ai_select fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.providers,e=>(zd(),Kd(c,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"])])]),t[4]||(t[4]=tu("div",{class:"fs_ai_divider"},null,-1)),tu("div",Vht,[tu("div",Uht,[tu("p",Hht,me(e.$t("Model")),1),tu("p",zht,me(e.$t("Choose the AI model for text generation.")),1)]),tu("div",Yht,[iu(d,{modelValue:n.selectedModel,"onUpdate:modelValue":t[2]||(t[2]=e=>n.selectedModel=e),class:"fs_ai_select fs_select_field"},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.modelOptions,e=>(zd(),Kd(c,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"])])])])):ru("",!0),n.isEnabled&&n.provider?(zd(),qd("div",Ght,[tu("div",Wht,me(e.$t("API Key")),1),tu("div",jht,[tu("div",qht,[tu("p",Kht,me(e.$t("API Key")),1),tu("p",Xht,me(e.$t("Enter your API key. It will be stored securely.")),1)]),tu("div",Zht,[iu(u,{modelValue:n.apiKey,"onUpdate:modelValue":t[3]||(t[3]=e=>n.apiKey=e),autocomplete:"off","data-1p-ignore":"","data-lpignore":"true",placeholder:s.isKeySaved?e.$t("Enter a new key to replace the saved one"):e.$t("Enter your API key"),class:"fs_ai_input fs_text_input"},null,8,["modelValue","placeholder"]),s.isKeySaved?(zd(),qd("p",Qht,[su(me(e.$t("A key ending in"))+" ",1),tu("strong",null,me(n.apiKey.slice(-4)),1),su(" "+me(e.$t("is saved.")),1)])):ru("",!0)])])])):ru("",!0)]))],64)):(zd(),Kd(p,{key:1,heading:e.$t("Use AI for responses, ticket summaries, and sentiment analysis"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro"),"utm-content":"feature_lock_ai_integration"},null,8,["heading","description","button-text"]))])}]]),props:!0},{path:"/fluent_bot_integration",name:"fluent_bot_integration",component:lH({name:"FluentBotIntegration",components:{draggable:rH},data:()=>({activeTab:"configuration",isEnabled:!1,isLoading:!1,isSaving:!1,isSavingPresets:!1,fetching:!0,config:{generalBotId:"",generalApiKey:"",generalBotEnabled:!0,productMappings:[]},allProducts:[],hasApiKey:!1,selectedProduct:null,originalConfig:null,isWatcherReady:!1,presets:[]}),computed:{availableProducts(){const e=this.config.productMappings.map(e=>e.productId);return this.allProducts.filter(t=>!e.includes(t.id))},generalBotRules(){return this.config.generalBotEnabled?{generalBotId:[{required:!0,message:this.$t("Bot ID is required"),trigger:"blur"}]}:{}},mappingBotRules(){return{botId:[{required:!0,message:this.$t("Bot ID is required"),trigger:"blur"}]}},apiKeyRules(){return this.hasApiKey?{}:{generalApiKey:[{required:!0,message:this.$t("API key is required"),trigger:"blur"}]}}},methods:{fetchData(){this.isLoading=!0,this.$get("settings/fluent-bot-integration").then(e=>{this.config={generalBotId:e.generalBotId||"",generalApiKey:"",generalBotEnabled:!1!==e.generalBotEnabled,productMappings:e.productMappings||[]},this.hasApiKey=!0===e.hasApiKey,this.allProducts=e.products||[],this.isEnabled=!0===e.isEnabled||"true"===e.isEnabled,this.originalConfig=JSON.parse(JSON.stringify(this.config)),this.isLoading=!1,this.fetching=!1}).catch(e=>{this.isLoading=!1,this.$handleError(e)})},saveToggle(){this.isEnabled?this.validateAllForms().then(()=>this.submitConfiguration()).catch(()=>{this.isEnabled=!1}):this.submitConfiguration()},saveConfiguration(){this.validateAllForms().then(()=>{this.submitConfiguration()}).catch(()=>{})},validateAllForms(){const e=[];if(this.$refs.apiKeyForm&&e.push(this.$refs.apiKeyForm.validate()),this.config.generalBotEnabled){if(!this.$refs.generalBotForm)return Promise.reject();e.push(this.$refs.generalBotForm.validate())}return this.config.productMappings.forEach((t,i)=>{const a=this.$refs["mappingForm_"+i],n=Array.isArray(a)?a[0]:a;n&&e.push(n.validate())}),Promise.all(e)},submitConfiguration(){this.isSaving=!0,this.$post("settings/fluent-bot-integration",{...this.config,isEnabled:this.isEnabled}).then(e=>{e.data&&!0===e.data.hasApiKey&&(this.hasApiKey=!0),this.config.generalApiKey="",this.originalConfig=JSON.parse(JSON.stringify(this.config)),this.isSaving=!1,this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.isSaving=!1,this.$handleError(e)})},addProductMapping(){if(!this.selectedProduct)return;const e=this.allProducts.find(e=>e.id===this.selectedProduct);this.config.productMappings.push({productId:e.id,productTitle:e.title,botId:""}),this.selectedProduct=null},removeMapping(e){this.config.productMappings.splice(e,1)},fetchPresets(){this.$get("settings/fluent-bot-presets").then(e=>{this.presets=(e.presets||[]).map((e,t)=>({...e,position:e.position??t}))}).catch(e=>{this.$handleError(e)})},addPreset(){this.presets.push({label:"",text:"preset_"+Date.now(),description:"",position:this.presets.length})},removePreset(e){this.presets.splice(e,1),this.updatePositions()},updatePositions(){this.presets.forEach((e,t)=>{e.position=t})},savePresets(){this.isSavingPresets=!0,this.$post("settings/fluent-bot-presets",{presets:this.presets}).then(e=>{this.presets=e.presets||this.presets,this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.isSavingPresets=!1})},resetToDefaults(){y$.confirm(this.$t("This will remove all custom prompt options and restore the original defaults. This action cannot be undone."),this.$t("Reset to Defaults"),{confirmButtonText:this.$t("Reset"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.isSavingPresets=!0,this.$post("settings/fluent-bot-presets",{presets:[]}).then(()=>{this.fetchPresets(),this.$notify({message:this.$t("Reset to defaults"),type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.isSavingPresets=!1})}).catch(()=>{})}},mounted(){this.fetchData(),this.fetchPresets(),this.$setTitle("FluentBot Integration")}},[["render",function(e,t,i,a,n,s){const o=BL,r=cE,l=oC,c=sC,d=Jl("Delete"),u=KS,p=Sk,h=wA,f=SA,g=fF,m=Jl("draggable"),_=hF,v=AL;return zd(),qd("div",Jht,[tu("div",eft,[tu("div",tft,[tu("div",ift,[tu("h3",null,me(e.$t("FluentBot Integration")),1)]),tu("div",aft,[tu("span",nft,me(e.$t("Disabled")),1),iu(o,{onChange:s.saveToggle,modelValue:n.isEnabled,"onUpdate:modelValue":t[0]||(t[0]=e=>n.isEnabled=e)},null,8,["onChange","modelValue"]),tu("span",sft,me(e.$t("Enabled")),1)])]),n.fetching?(zd(),qd("div",Oft,[iu(v,{rows:5,animated:""})])):(zd(),qd("div",oft,[iu(_,{modelValue:n.activeTab,"onUpdate:modelValue":t[6]||(t[6]=e=>n.activeTab=e),class:"fs_bot_tabs"},{default:vr(()=>[iu(g,{label:e.$t("Bot Configuration"),name:"configuration"},{default:vr(()=>[tu("div",rft,[tu("div",lft,[tu("div",cft,[tu("div",null,[tu("h3",null,me(e.$t("API Key")),1),tu("p",dft,me(e.$t("Team API key from your FluentBot dashboard (Settings → API Keys). Required to connect.")),1)])]),tu("div",uft,[iu(c,{ref:"apiKeyForm",model:n.config,rules:s.apiKeyRules,"label-position":"top"},{default:vr(()=>[iu(l,{class:"fs_form_item",label:e.$t("API Key"),prop:"generalApiKey"},{default:vr(()=>[iu(r,{class:"fs_text_input",modelValue:n.config.generalApiKey,"onUpdate:modelValue":t[1]||(t[1]=e=>n.config.generalApiKey=e),type:"password","show-password":"",placeholder:n.hasApiKey?e.$t("API key saved — leave blank to keep it"):e.$t("Paste your FluentBot API key (fbt_...)")},null,8,["modelValue","placeholder"]),n.hasApiKey?(zd(),qd("span",pft,me(e.$t("A key is already saved. Enter a new one only to replace it.")),1)):ru("",!0)],void 0),_:1},8,["label"])],void 0),_:1},8,["model","rules"])])]),tu("div",hft,[tu("div",fft,[tu("div",null,[tu("h3",null,me(e.$t("General Bot")),1),tu("p",gft,me(e.$t("This bot will handle general queries for all products")),1)]),iu(o,{modelValue:n.config.generalBotEnabled,"onUpdate:modelValue":t[2]||(t[2]=e=>n.config.generalBotEnabled=e),"aria-label":e.$t("Enable general bot")},null,8,["modelValue","aria-label"])]),n.config.generalBotEnabled?(zd(),qd("div",mft,[iu(c,{ref:"generalBotForm",model:n.config,rules:s.generalBotRules,"label-position":"top"},{default:vr(()=>[iu(l,{class:"fs_form_item",label:e.$t("Bot ID"),prop:"generalBotId"},{default:vr(()=>[iu(r,{class:"fs_text_input",modelValue:n.config.generalBotId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.config.generalBotId=e),placeholder:e.$t("Enter General Bot ID (Required)")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1},8,["model","rules"])])):ru("",!0)]),tu("div",_ft,[tu("h3",null,me(e.$t("Product-Specific Bots")),1),tu("p",vft,me(e.$t("Configure specialized bots trained for specific products")),1),tu("div",bft,[tu("div",yft,[(zd(!0),qd(Fd,null,sc(n.config.productMappings,(t,i)=>(zd(),qd("div",{key:i,class:"fs_mapping_card"},[tu("div",xft,[tu("span",Sft,me(t.productTitle),1),iu(p,{class:"fs_stroke_btn fs_delete_btn",circle:"",size:"small",onClick:e=>s.removeMapping(i)},{default:vr(()=>[iu(u,null,{default:vr(()=>[iu(d)],void 0),_:1})],void 0),_:1},8,["onClick"])]),iu(c,{ref_for:!0,ref:"mappingForm_"+i,model:t,rules:s.mappingBotRules,"label-position":"top",class:"fs_mapping_form"},{default:vr(()=>[iu(l,{class:"fs_form_item",label:e.$t("Bot ID"),prop:"botId"},{default:vr(()=>[iu(r,{class:"fs_text_input",modelValue:t.botId,"onUpdate:modelValue":e=>t.botId=e,placeholder:e.$t("Enter Bot ID (Required)")},null,8,["modelValue","onUpdate:modelValue","placeholder"])],void 0),_:2},1032,["label"])],void 0),_:2},1032,["model","rules"])]))),128))]),tu("div",wft,[iu(f,{modelValue:n.selectedProduct,"onUpdate:modelValue":t[4]||(t[4]=e=>n.selectedProduct=e),placeholder:e.$t("Select a product"),class:"fs_product_select fs_select_field",filterable:"",clearable:""},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(s.availableProducts,e=>(zd(),Kd(h,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),iu(p,{class:"fs_subtle_btn",onClick:s.addProductMapping,disabled:!n.selectedProduct},{default:vr(()=>[su(me(e.$t("+ Add Product Bot")),1)],void 0),_:1},8,["onClick","disabled"])])])]),tu("div",Cft,[iu(p,{class:"fs_filled_btn",onClick:s.saveConfiguration,loading:n.isSaving},{default:vr(()=>[su(me(e.$t("Save Configuration")),1)],void 0),_:1},8,["onClick","loading"])])])],void 0),_:1},8,["label"]),iu(g,{label:e.$t("Prompt Options"),name:"prompts"},{default:vr(()=>[tu("div",Eft,[tu("div",kft,[tu("h3",null,me(e.$t("Prompt Options")),1),tu("p",Tft,me(e.$t("Customize the quick prompt options shown in the FluentBot chat panel")),1),tu("div",Aft,[iu(m,{modelValue:n.presets,"onUpdate:modelValue":t[5]||(t[5]=e=>n.presets=e),"item-key":"text",handle:".fs_drag_handle",animation:250,"ghost-class":"fs_preset_ghost","chosen-class":"fs_preset_chosen","force-fallback":!0,"fallback-class":"fs_preset_fallback",onEnd:s.updatePositions},{item:vr(({element:i,index:a})=>[tu("div",Rft,[t[7]||(t[7]=tu("div",{class:"fs_drag_handle","aria-hidden":"true"},[tu("i",{class:"el-icon"},[tu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},[tu("path",{fill:"currentColor",d:"M6 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm5-9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})])])],-1)),tu("div",Ift,[iu(r,{modelValue:i.label,"onUpdate:modelValue":e=>i.label=e,placeholder:e.$t("Label"),size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),iu(r,{modelValue:i.description,"onUpdate:modelValue":e=>i.description=e,type:"textarea",rows:2,placeholder:e.$t("Prompt description (sent to AI)"),size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),iu(p,{class:"fs_stroke_btn fs_delete_btn",circle:"",size:"small","aria-label":e.$t("Remove prompt option"),onClick:e=>s.removePreset(a)},{default:vr(()=>[iu(u,null,{default:vr(()=>[iu(d)],void 0),_:1})],void 0),_:1},8,["aria-label","onClick"])])]),_:1},8,["modelValue","onEnd"]),tu("div",Dft,[iu(p,{class:"fs_subtle_btn",onClick:s.addPreset},{default:vr(()=>[su(me(e.$t("+ Add Prompt Option")),1)],void 0),_:1},8,["onClick"]),iu(p,{class:"fs_subtle_btn",onClick:s.resetToDefaults},{default:vr(()=>[su(me(e.$t("Reset to Defaults")),1)],void 0),_:1},8,["onClick"]),iu(p,{class:"fs_filled_btn",onClick:s.savePresets,loading:n.isSavingPresets},{default:vr(()=>[su(me(e.$t("Save Prompt Options")),1)],void 0),_:1},8,["onClick","loading"])])])])])],void 0),_:1},8,["label"])],void 0),_:1},8,["modelValue"])]))])])}]]),props:!0},{path:"/ai-agents",name:"mcp_settings",component:lH({name:"McpIntegration",data(){return{fetching:!0,loadFailed:!1,toggling:!1,installing:!1,snippetLoading:!1,snippetsLoaded:!1,mcpEnabled:!1,adapterAvailable:!1,toolkitInstalled:!1,toolkitActive:!1,toolkitVersion:null,canAutoInstall:!1,toolkitDownloadUrl:"",pluginsUrl:"",endpointUrl:"",toolsCount:0,appPasswordsUrl:"",username:"",appPassword:"",localDev:!1,activeClient:"claude-code",snippets:{},clients:[{key:"claude-code",label:"Claude Code"},{key:"claude-desktop",label:"Claude Desktop"},{key:"cursor",label:"Cursor"},{key:"codex",label:"Codex"},{key:"generic",label:this.$t("Other")}]}},computed:{activeSnippet(){return this.snippets[this.activeClient]||null},renderedSnippet(){if(!this.activeSnippet||!this.activeSnippet.snippet)return"";let e=this.activeSnippet.snippet;const t=this.username.trim(),i=this.appPassword.trim();if(t&&i){try{const a=btoa(`${t}:${i}`);e=e.split("<base64(your-username:application-password)>").join(a)}catch(a){}e=e.split("<your-username>").join(t),e=e.split("<your-application-password>").join(i)}return e}},methods:{fetchStatus(){return this.fetching=!0,this.loadFailed=!1,this.$get("settings/mcp").then(e=>{this.mcpEnabled=!!e.mcp_enabled,this.adapterAvailable=!!e.adapter_available,this.toolkitInstalled=!!e.toolkit_installed,this.toolkitActive=!!e.toolkit_active,this.toolkitVersion=e.toolkit_version||null,this.canAutoInstall=!!e.can_auto_install,this.toolkitDownloadUrl=e.toolkit_download_url||"",this.pluginsUrl=e.plugins_url||"",this.endpointUrl=e.endpoint_url||"",this.toolsCount=e.tools_count||0,this.appPasswordsUrl=e.app_passwords_url||"",this.localDev=!!e.is_local_dev,e.current_user_login&&!this.username&&(this.username=e.current_user_login)}).catch(e=>{this.loadFailed=!0,this.$handleError(e)}).always(()=>{this.fetching=!1})},handleToggle(e){this.toggling=!0,this.$post("settings/mcp/toggle",{mcp_enabled:e}).then(e=>{this.mcpEnabled=!!e.mcp_enabled,this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.mcpEnabled&&this.adapterAvailable&&!this.snippetsLoaded&&this.loadSnippets()}).catch(t=>{this.mcpEnabled=!e,this.$handleError(t)}).always(()=>{this.toggling=!1})},loadSnippets(){this.snippetLoading=!0,this.$get("settings/mcp/config-snippets",{local_dev:this.localDev?"yes":"no"}).then(e=>{this.snippets=e.snippets||{},this.snippetsLoaded=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.snippetLoading=!1})},installAdapter(){this.installing=!0,this.$post("settings/mcp/install-adapter",{}).then(e=>{const t=e.adapter_available?"success":"warning";this.$notify({message:e.message,type:t,position:"bottom-right"}),this.toolkitInstalled=!!e.toolkit_installed,this.toolkitActive=!!e.toolkit_active,e.adapter_available?setTimeout(()=>{window.location.reload()},800):this.installing=!1}).catch(e=>{this.$handleError(e),this.installing=!1})},copyEndpoint(){this.$copyToClipboard(this.endpointUrl,this.$t("Endpoint URL copied"))},copySnippet(){this.$copyToClipboard(this.renderedSnippet,this.$t("Connection snippet copied"))}},mounted(){this.$setTitle(this.$t("MCP for AI Agents")),this.fetchStatus().then(()=>{this.mcpEnabled&&this.adapterAvailable&&this.loadSnippets()})}},[["render",function(e,t,i,a,n,s){const o=AL,r=Sk,l=BL,c=cE,d=fF,u=hF,p=AR;return zd(),qd("div",Mft,[tu("div",Nft,[tu("div",Lft,[tu("h3",null,me(e.$t("MCP for AI Agents")),1)])]),n.fetching?(zd(),qd("div",Pft,[iu(o,{animated:!0,rows:5})])):n.loadFailed?(zd(),qd("div",Fft,[tu("p",null,me(e.$t("Could not load MCP settings. The controls below are hidden until the server state is confirmed.")),1),tu("div",Bft,[iu(r,{type:"primary",size:"small",class:"fs_filled_btn",onClick:s.fetchStatus},{default:vr(()=>[su(me(e.$t("Retry")),1)],void 0),_:1},8,["onClick"])])])):(zd(),qd("div",$ft,[tu("div",Vft,[tu("div",Uft,[tu("p",Hft,me(e.$t("Enable MCP for AI Agents")),1),tu("p",zft,me(e.$t("When enabled, Fluent Support exposes its tools through the WordPress Abilities API so AI agents can read and update support tickets with your authorization.")),1)]),iu(l,{modelValue:n.mcpEnabled,"onUpdate:modelValue":t[0]||(t[0]=e=>n.mcpEnabled=e),loading:n.toggling,onChange:s.handleToggle},null,8,["modelValue","loading","onChange"])]),t[6]||(t[6]=tu("div",{class:"fs_mcp_divider"},null,-1)),n.mcpEnabled?(zd(),qd(Fd,{key:0},[n.adapterAvailable?ru("",!0):(zd(),qd(Fd,{key:0},[tu("p",Yft,me(e.$t("Fluent Support ships AI agent tools, but they only become available once FluentHub is installed and active.")),1),tu("div",Gft,[n.canAutoInstall?(zd(),Kd(r,{key:0,type:"primary",class:"fs_filled_btn",loading:n.installing,onClick:s.installAdapter},{default:vr(()=>[su(me(n.toolkitInstalled?e.$t("Activate FluentHub"):e.$t("Install FluentHub")),1)],void 0),_:1},8,["loading","onClick"])):(zd(),qd(Fd,{key:1},[tu("a",{href:n.toolkitDownloadUrl||n.pluginsUrl,target:"_blank",rel:"noopener noreferrer",class:"el-button el-button--primary el-button--default fs_filled_btn"},me(e.$t("Get FluentHub")),9,Wft),tu("span",jft,me(e.$t("Tip: Fluent Support Pro can install it for you in one click.")),1)],64))])],64)),n.adapterAvailable?(zd(),qd(Fd,{key:1},[tu("div",qft,[tu("div",Kft,[tu("span",Xft,me(e.$t("Adapter")),1),n.toolkitVersion?(zd(),qd("span",Zft,"FluentHub "+me(n.toolkitVersion),1)):ru("",!0)]),tu("span",Qft,me(e.$t("Connected")),1)]),tu("div",Jft,[tu("label",egt,me(e.$t("Endpoint URL")),1),iu(c,{"model-value":n.endpointUrl,readonly:""},{append:vr(()=>[iu(r,{onClick:s.copyEndpoint},{default:vr(()=>[su(me(e.$t("Copy")),1)],void 0),_:1},8,["onClick"])]),_:1},8,["model-value"]),tu("span",tgt,[tu("strong",null,me(n.toolsCount),1),su(" "+me(e.$t("tools registered")),1)])]),t[5]||(t[5]=tu("div",{class:"fs_mcp_divider"},null,-1)),tu("div",igt,[tu("h4",agt,me(e.$t("Connect a client")),1),tu("p",ngt,[su(me(e.$t("Create a WordPress application password for your account, enter it below, then copy the snippet for your AI client."))+" ",1),tu("a",{href:n.appPasswordsUrl,target:"_blank",rel:"noopener noreferrer"},me(e.$t("Create an application password")),9,sgt)]),tu("div",ogt,[iu(c,{modelValue:n.username,"onUpdate:modelValue":t[1]||(t[1]=e=>n.username=e),placeholder:e.$t("WordPress username")},null,8,["modelValue","placeholder"]),iu(c,{modelValue:n.appPassword,"onUpdate:modelValue":t[2]||(t[2]=e=>n.appPassword=e),type:"password","show-password":"",placeholder:e.$t("Application password")},null,8,["modelValue","placeholder"])]),iu(u,{modelValue:n.activeClient,"onUpdate:modelValue":t[3]||(t[3]=e=>n.activeClient=e)},{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.clients,e=>(zd(),Kd(d,{key:e.key,label:e.label,name:e.key},null,8,["label","name"]))),128))],void 0),_:1},8,["modelValue"]),"claude-desktop"===n.activeClient?(zd(),qd("div",rgt,[iu(p,{modelValue:n.localDev,"onUpdate:modelValue":t[4]||(t[4]=e=>n.localDev=e),onChange:s.loadSnippets},{default:vr(()=>[su(me(e.$t("Local / self-signed site (disable TLS verification)")),1)],void 0),_:1},8,["modelValue","onChange"])])):ru("",!0),s.activeSnippet&&s.activeSnippet.instructions?(zd(),qd("p",lgt,me(s.activeSnippet.instructions),1)):ru("",!0),n.snippetLoading?(zd(),Kd(o,{key:2,rows:4,animated:""})):s.activeSnippet?(zd(),qd(Fd,{key:3},[iu(c,{type:"textarea",rows:7,"model-value":s.renderedSnippet,readonly:""},null,8,["model-value"]),tu("div",cgt,[iu(r,{type:"primary",class:"fs_filled_btn",disabled:!s.renderedSnippet,onClick:s.copySnippet},{default:vr(()=>[su(me(e.$t("Copy snippet")),1)],void 0),_:1},8,["disabled","onClick"])])],64)):ru("",!0)])],64)):ru("",!0)],64)):(zd(),qd("p",dgt,me(e.$t("MCP (Model Context Protocol) lets compatible AI clients like Claude Desktop, OpenAI Codex, and Cursor read and write your support data with your authorization. Enable the toggle above to connect an AI client to Fluent Support.")),1))]))])}],["__scopeId","data-v-df6c6233"]])}]},{path:"/mailboxes",component:REe,name:"mailboxes",meta:{active:"mailboxes"}},{path:"/notifications",name:"notifications",component:qut,meta:{active:""}},{path:"/mailboxes/:box_id",component:nCe,props:!0,meta:{active:"mailboxes"},children:[{props:!0,path:"settings",name:"box_settings",component:ZEe},{props:!0,path:"email_settings",name:"email_settings",component:wke},{props:!0,path:"email_piping",name:"email_piping",component:nTe}]},{path:"/customers",name:"Customers",component:OSe,meta:{active:"customers"}},{path:"/customers/:customer_id",name:"view_customer",component:Uwe,props:!0,meta:{active:"customers"}},{path:"/saved-replies",name:"saved_replies",component:ZSe,meta:{active:"saved_replies"}},{path:"/reports",name:"reports",component:flt,meta:{active:"reports"}},{path:"/workflows",name:"workflows",component:Qlt,meta:{active:"workflows"}},{path:"/workflows/:workflow_id/edit",name:"edit-workflow",component:qct,props:!0,meta:{active:"workflows"}},{path:"/activity",name:"activity",component:rut,meta:{active:"activity"}},{path:"/help_scout",name:"help_scout",component:nht,props:!0},{path:"/:catchAll(.*)*",name:"not_found",component:rW,meta:{active:"dashboard"}}],pgt=[fS,Rx,VS,nS,SS,eS,aS,PS,gS,kS,dS,_x,yx,Wx,Hx,BS,mS,DS,MS,zx,US,tS,vS,Kx,Ex,Tx,CS,TS,rS,Px,Yx,Bx,mx,Fx,iS,Dx,FS,Jx,Ax,bS,qx,xx,pS,Lx,gx,Mx,Cx,LS,NS,Gx,hS,lS,Xx,Zx,AS,vx,bx,xS,Ix,uS,ES,RS,wS,jx,Qx,Nx,$S,sS,IS,Ux,Sx],hgt=Bh({});[jB,r$,y$,D$,bI,Sk,KS,SA,wA,P$,aN,sN,nN].forEach(e=>{hgt.use(e)}),pgt.forEach(e=>{hgt.component(e.name,e)});var fgt=function(e){return"string"==typeof e&&""!==e&&!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)};var ggt=function(e){return"string"==typeof e&&""!==e&&(!/^__/.test(e)&&!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e))};var mgt=function(e,t){return function(i,a,n,s=10){const o=e[t];if(!ggt(i))return;if(!fgt(a))return;if("function"!=typeof n)return;if("number"!=typeof s)return;const r={callback:n,priority:s,namespace:a};if(o[i]){const e=o[i].handlers;let t;for(t=e.length;t>0&&!(s>=e[t-1].priority);t--);t===e.length?e[t]=r:e.splice(t,0,r),o.__current.forEach(e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex++})}else o[i]={handlers:[r],runs:0};"hookAdded"!==i&&e.doAction("hookAdded",i,a,n,s)}};var _gt=function(e,t,i=!1){return function(a,n){const s=e[t];if(!ggt(a))return;if(!i&&!fgt(n))return;if(!s[a])return 0;let o=0;if(i)o=s[a].handlers.length,s[a]={runs:s[a].runs,handlers:[]};else{const e=s[a].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===n&&(e.splice(t,1),o++,s.__current.forEach(e=>{e.name===a&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==a&&e.doAction("hookRemoved",a,n),o}};var vgt=function(e,t){return function(i,a){const n=e[t];return void 0!==a?i in n&&n[i].handlers.some(e=>e.namespace===a):i in n}};var bgt=function(e,t,i,a){return function(n,...s){const o=e[t];o[n]||(o[n]={handlers:[],runs:0}),o[n].runs++;const r=o[n].handlers;if(!r||!r.length)return i?s[0]:void 0;const l={name:n,currentIndex:0};return(a?async function(){try{o.__current.add(l);let e=i?s[0]:void 0;for(;l.currentIndex<r.length;){const t=r[l.currentIndex];e=await t.callback.apply(null,s),i&&(s[0]=e),l.currentIndex++}return i?e:void 0}finally{o.__current.delete(l)}}:function(){try{o.__current.add(l);let e=i?s[0]:void 0;for(;l.currentIndex<r.length;){e=r[l.currentIndex].callback.apply(null,s),i&&(s[0]=e),l.currentIndex++}return i?e:void 0}finally{o.__current.delete(l)}})()}};var ygt=function(e,t){return function(){var i;const a=e[t];return(null==(i=Array.from(a.__current).at(-1))?void 0:i.name)??null}};var xgt=function(e,t){return function(i){const a=e[t];return void 0===i?a.__current.size>0:Array.from(a.__current).some(e=>e.name===i)}};var Sgt=function(e,t){return function(i){const a=e[t];if(ggt(i))return a[i]&&a[i].runs?a[i].runs:0}},wgt=class{constructor(){o(this,"actions"),o(this,"filters"),o(this,"addAction"),o(this,"addFilter"),o(this,"removeAction"),o(this,"removeFilter"),o(this,"hasAction"),o(this,"hasFilter"),o(this,"removeAllActions"),o(this,"removeAllFilters"),o(this,"doAction"),o(this,"doActionAsync"),o(this,"applyFilters"),o(this,"applyFiltersAsync"),o(this,"currentAction"),o(this,"currentFilter"),o(this,"doingAction"),o(this,"doingFilter"),o(this,"didAction"),o(this,"didFilter"),this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=mgt(this,"actions"),this.addFilter=mgt(this,"filters"),this.removeAction=_gt(this,"actions"),this.removeFilter=_gt(this,"filters"),this.hasAction=vgt(this,"actions"),this.hasFilter=vgt(this,"filters"),this.removeAllActions=_gt(this,"actions",!0),this.removeAllFilters=_gt(this,"filters",!0),this.doAction=bgt(this,"actions",!1,!1),this.doActionAsync=bgt(this,"actions",!1,!0),this.applyFilters=bgt(this,"filters",!0,!1),this.applyFiltersAsync=bgt(this,"filters",!0,!0),this.currentAction=ygt(this,"actions"),this.currentFilter=ygt(this,"filters"),this.doingAction=xgt(this,"actions"),this.doingFilter=xgt(this,"filters"),this.didAction=Sgt(this,"actions"),this.didFilter=Sgt(this,"filters")}};var Cgt=function(){return new wgt}(),{addAction:Egt,addFilter:kgt,removeAction:Tgt,removeFilter:Agt,hasAction:Rgt,hasFilter:Igt,removeAllActions:Dgt,removeAllFilters:Ogt,doAction:Mgt,doActionAsync:Ngt,applyFilters:Lgt,applyFiltersAsync:Pgt,currentAction:Fgt,currentFilter:Bgt,doingAction:$gt,doingFilter:Vgt,didAction:Ugt,didFilter:Hgt,actions:zgt,filters:Ygt}=Cgt,Ggt={exports:{}};Ggt.exports=function(e,t,i){e=e||{};var a=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(e,t,i,n){return a.fromToBase(e,t,i,n)}i.en.relativeTime=n,a.fromToBase=function(t,a,s,o,r){for(var l,c,d,u=s.$locale().relativeTime||n,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=p.length,f=0;f<h;f+=1){var g=p[f];g.d&&(l=o?i(t).diff(s,g.d,!0):s.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(d=l>0,m<=g.r||!g.r){m<=1&&f>0&&(g=p[f-1]);var _=u[g.l];r&&(m=r(""+m)),c="string"==typeof _?_.replace("%d",m):_(m,a,g.l,d);break}}if(a)return c;var v=d?u.future:u.past;return"function"==typeof v?v(c):v.replace("%s",c)},a.to=function(e,t){return s(e,t,this,!0)},a.from=function(e,t){return s(e,t,this)};var o=function(e){return e.$u?i.utc():i()};a.toNow=function(e){return this.to(o(this),e)},a.fromNow=function(e){return this.from(o(this),e)}};const Wgt=Dk(Ggt.exports);var jgt={exports:{}};jgt.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,n,s){var o=n.prototype;s.utc=function(e){return new n({date:e,utc:!0,args:arguments})},o.utc=function(t){var i=s(this.toDate(),{locale:this.$L,utc:!0});return t?i.add(this.utcOffset(),e):i},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var r=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),r.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(a,n){var s=this.$utils().u;if(s(a))return this.$u?0:s(this.$offset)?c.call(this):this.$offset;if("string"==typeof a&&null===(a=function(e){void 0===e&&(e="");var a=e.match(t);if(!a)return null;var n=(""+a[0]).match(i)||["-",0,0],s=n[0],o=60*+n[1]+ +n[2];return 0===o?0:"+"===s?o:-o}(a)))return this;var o=Math.abs(a)<=16?60*a:a;if(0===o)return this.utc(n);var r=this.clone();if(n)return r.$offset=o,r.$u=!1,r;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(r=this.local().add(o+l,e)).$offset=o,r.$x.$localOffset=l,r};var d=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var p=o.diff;o.diff=function(e,t,i){if(e&&this.$u===e.$u)return p.call(this,e,t,i);var a=this.local(),n=s(e).local();return p.call(a,n,t,i)}}}();const qgt=Dk(jgt.exports);!function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),a={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};i.default.locale(a,null,!0)}(Lk()),Pk.extend(Wgt),Pk.extend(qgt),Pk.extend(zO),Pk.locale("en-gb");const Kgt=new Date;const Xgt={class:"fs_color_mode"},Zgt={class:"fs_color_mode_core fs_menu_button"},Qgt={class:"fs_color_mode_action"};const Jgt=lH({name:"ColorMode",components:{IconPack:dY},data(){return{currentTheme:r.getCurrentTheme(),themeOptions:[{value:r.MODE_LIGHT,label:this.$t("Light")},{value:r.MODE_DARK,label:this.$t("Dark")},{value:r.MODE_SYSTEM,label:this.$t("System")}]}},methods:{handleThemeChange(e){this.currentTheme!==e&&(this.currentTheme=e,r.apply(e))}}},[["render",function(e,t,i,a,n,s){const o=Jl("IconPack"),r=nN,l=sN,c=aN;return zd(),qd("div",Xgt,[iu(c,{placement:"bottom-end",trigger:"click","popper-class":"fs_theme_dropdown",onCommand:s.handleThemeChange},{dropdown:vr(()=>[iu(l,null,{default:vr(()=>[(zd(!0),qd(Fd,null,sc(n.themeOptions,e=>(zd(),Kd(r,{key:e.value,command:e.value,class:se({"is-active":n.currentTheme===e.value})},{default:vr(()=>[iu(o,{"icon-key":"theme_"+e.value,width:"16",height:"16"},null,8,["icon-key"]),su(" "+me(e.label),1)],void 0),_:2},1032,["command","class"]))),128))],void 0),_:1})]),default:vr(()=>[tu("div",Zgt,[tu("span",Qgt,[iu(o,{"icon-key":"theme_"+n.currentTheme,width:"20",height:"20"},null,8,["icon-key"])])])],void 0),_:1},8,["onCommand"])])}]]),emt={key:0,class:"fs_box_header"},tmt={class:"fs_box_head"},imt={class:"fs_save_settings_container"},amt={key:1,class:"fs_dialog_footer fs_text_right"};const nmt={name:"NotificationsPop",components:{InternalNotifications:lH({name:"InternalNotifications",components:{FormBuilder:rle},props:{settingsScope:{type:String,default:"enable"},displayMode:{type:String,default:"page"}},emits:["updated"],data:()=>({settings:{},fields:{},fetching:!1,saving:!1,appReady:!1,settingsKey:"_internal_notification_settings"}),computed:{isModal(){return"modal"===this.displayMode},rootClass(){return this.isModal?"fs_internal_notification_settings_modal":"fs_box_wrapper"},bodyClass(){return this.isModal?"fs_internal_notification_settings_modal_body":"fs_box_body fs_business_settings_wrapper"},skeletonClass(){return this.isModal?"fs_internal_notification_settings_modal_body fs_skeleton_loader":"fs_box_body fs_skeleton_loader"},pageTitle(){return"preferences"===this.settingsScope?this.$t("Notification Settings"):this.$t("Internal Notifications")},visibleFields(){const e={...this.fields};return"preferences"===this.settingsScope?(delete e.enabled,{mention_notifications:this.mentionNotificationField(),...e}):e.enabled?{enabled:e.enabled}:{}}},methods:{fetchSettings(){this.fetching=!0,this.$get("settings",{settings_key:this.settingsKey,with:["fields"]}).then(e=>{this.settings=e.settings||{},this.settings.mention_notifications="yes",this.fields=e.fields||{},this.appReady=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0;const e=this.sanitizedSettings();this.$post("settings",{settings_key:this.settingsKey,settings:e}).then(t=>{var i,a;window.fluentSupportAdmin.internal_notification_settings={...e},window.dispatchEvent(new CustomEvent("fluent_support_internal_notification_settings_changed",{detail:{settings:window.fluentSupportAdmin.internal_notification_settings}})),null==(a=(i=window.fluentSupportAdmin).refreshNotificationPolling)||a.call(i),this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.$emit("updated")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},mentionNotificationField(){return{type:"inline-checkbox",true_label:"yes",false_label:"no",checkbox_label:this.$t("Enable Mention Notification"),disabled:!0,help:this.$t("Agents will receive notifications when they are mentioned in replies or internal notes. This cannot be disabled from these settings.")}},sanitizedSettings(){const e={...this.settings};return delete e.mention_notifications,e}},mounted(){this.fetchSettings(),this.isModal||this.$setTitle(this.pageTitle)}},[["render",function(e,t,i,a,n,s){const o=Sk,r=Jl("form-builder"),l=AL,c=WB;return zd(),qd("div",{class:se(s.rootClass)},[s.isModal?ru("",!0):(zd(),qd("div",emt,[tu("div",tmt,[tu("h3",null,me(s.pageTitle),1),tu("div",imt,[iu(o,{size:"default",type:"success",class:"fs_save_settings_btn",loading:n.saving,onClick:s.saveSettings},{default:vr(()=>[su(me(e.$t("Save Settings")),1)],void 0),_:1},8,["loading","onClick"])])])])),n.fetching?(zd(),qd("div",{key:2,class:se(s.skeletonClass)},[iu(l,{rows:6,animated:""})],2)):br((zd(),qd("div",{key:1,class:se(s.bodyClass)},[n.appReady?(zd(),Kd(r,{key:0,fields:s.visibleFields,"form-data":n.settings,label_position:"top"},null,8,["fields","form-data"])):ru("",!0),s.isModal?(zd(),qd("div",amt,[br((zd(),Kd(o,{disabled:n.saving,type:"success",onClick:s.saveSettings,class:"fs_filled_btn"},{default:vr(()=>[su(me(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled","onClick"])),[[c,n.saving]])])):ru("",!0)],2)),[[c,n.saving]])],2)}]]),NotificationItem:Tut,Setting:TS},data(){var e,t;return{visible:!1,settingsModalVisible:!1,selectedCategory:"all",internalNotificationsEnabled:"yes"===(null==(t=null==(e=window.fluentSupportAdmin)?void 0:e.internal_notification_settings)?void 0:t.enabled)}},computed:{...eq(gut,{notifications:"unreadNotifications",unreadCount:"unreadCount",loading:"unreadLoading",working:"working",categories:"notificationCategories"})},methods:{async handleShow(){await this.refreshUnread()},async refreshUnread(){const e=gut();try{await e.fetchUnread({category:this.selectedCategory,limit:8})}catch(t){this.$handleError(t)}},async switchCategory(e){this.selectedCategory=e,await this.refreshUnread()},async markRead(e){const t=gut();try{await t.markAsRead(e.id)}catch(i){this.$handleError(i)}},async handleMarkAllRead(){const e=gut();try{await e.markAllAsRead()}catch(t){this.$handleError(t)}},async openNotification(e){e.is_read||await this.markRead(e),this.visible=!1,e.ticket_id?this.$router.push({name:"view_ticket",params:{ticket_id:e.ticket_id}}):this.$router.push({name:"notifications"})},gotoNotifications(){this.visible=!1,this.$router.push({name:"notifications"})},openNotificationSettings(){this.visible=!1,this.settingsModalVisible=!0},handleSettingsChanged(e){var t,i;const a=(null==(t=e.detail)?void 0:t.settings)||(null==(i=window.fluentSupportAdmin)?void 0:i.internal_notification_settings)||{};this.internalNotificationsEnabled="yes"===a.enabled,this.internalNotificationsEnabled||(this.visible=!1,this.settingsModalVisible=!1)}},mounted(){window.addEventListener("fluent_support_internal_notification_settings_changed",this.handleSettingsChanged)},beforeUnmount(){window.removeEventListener("fluent_support_internal_notification_settings_changed",this.handleSettingsChanged)}},smt={key:0,class:"fs_nav_item fs_item_notifications"},omt=["aria-label"],rmt={key:0,class:"fs_notifications_badge"},lmt={class:"fs_notifications_pop"},cmt={class:"fs_notifications_pop_header"},dmt={class:"fs_notifications_pop_header_actions"},umt=["aria-label"],pmt={class:"fs_notifications_tabs"},hmt={class:"fs_notifications_tabs_list"},fmt=["onClick"],gmt={class:"fs_notifications_pop_body"},mmt={key:0,class:"fs_notifications_loading"},_mt={key:1,class:"fs_notifications_list"},vmt={key:2,class:"fs_notifications_empty"},bmt={class:"fs_notifications_pop_footer"};const ymt=lH(nmt,[["render",function(e,t,i,a,n,s){const o=Jl("Setting"),r=KS,l=Sk,c=AL,d=Jl("NotificationItem"),u=P$,p=Jl("InternalNotifications"),h=dM;return n.internalNotificationsEnabled?(zd(),qd("li",smt,[iu(u,{visible:n.visible,"onUpdate:visible":t[1]||(t[1]=e=>n.visible=e),"popper-class":"fs_notifications_popover",placement:"bottom-end",width:500,trigger:"click",onShow:s.handleShow},{reference:vr(()=>[tu("button",{class:"fs_notifications_trigger",type:"button","aria-label":e.$t("Notifications")},[t[4]||(t[4]=tu("svg",{width:"19",height:"19",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[tu("path",{d:"M10 2.5C7.92894 2.5 6.25 4.17894 6.25 6.25V8.3975C6.25 9.12875 5.99125 9.83625 5.52 10.395L4.0145 12.1812C3.815 12.4175 3.77225 12.745 3.90425 13.025C4.03625 13.305 4.31825 13.4837 4.62875 13.4837H15.3712C15.6817 13.4837 15.9637 13.305 16.0957 13.025C16.2277 12.745 16.185 12.4175 15.9855 12.1812L14.48 10.395C14.0087 9.83625 13.75 9.12875 13.75 8.3975V6.25C13.75 4.17894 12.0711 2.5 10 2.5ZM8.5 15.25C8.5 16.0784 9.17157 16.75 10 16.75C10.8284 16.75 11.5 16.0784 11.5 15.25",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),e.unreadCount?(zd(),qd("span",rmt,me(e.unreadCount>99?"99+":e.unreadCount),1)):ru("",!0)],8,omt)]),default:vr(()=>[tu("div",lmt,[tu("div",cmt,[tu("h3",null,me(e.$t("Unread Notifications")),1),tu("div",dmt,[tu("button",{class:"fs_notifications_settings_btn",type:"button","aria-label":e.$t("Notification Settings"),onClick:t[0]||(t[0]=(...e)=>s.openNotificationSettings&&s.openNotificationSettings(...e))},[iu(r,null,{default:vr(()=>[iu(o)],void 0),_:1})],8,umt),iu(l,{size:"small",loading:e.working,disabled:e.working||!e.unreadCount,onClick:s.handleMarkAllRead},{default:vr(()=>[su(me(e.$t("Mark all as read")),1)],void 0),_:1},8,["loading","disabled","onClick"])])]),tu("div",pmt,[tu("ul",hmt,[(zd(!0),qd(Fd,null,sc(e.categories,e=>(zd(),qd("li",{key:e.key},[tu("button",{type:"button",class:se(["fs_notifications_tab",{"is-active":n.selectedCategory===e.key}]),onClick:t=>s.switchCategory(e.key)},me(e.label),11,fmt)]))),128))])]),tu("div",gmt,[e.loading?(zd(),qd("div",mmt,[iu(c,{rows:3,animated:""})])):e.notifications.length?(zd(),qd("div",_mt,[(zd(!0),qd(Fd,null,sc(e.notifications,e=>(zd(),Kd(d,{key:e.id,notification:e,onOpen:s.openNotification,onMarkRead:s.markRead},null,8,["notification","onOpen","onMarkRead"]))),128))])):(zd(),qd("div",vmt,me(e.$t("No unread notifications found")),1))]),tu("div",bmt,[iu(l,{class:"fs_outline_btn",onClick:s.gotoNotifications},{default:vr(()=>[su(me(e.$t("View All")),1)],void 0),_:1},8,["onClick"])])])],void 0),_:1},8,["visible","onShow"]),iu(h,{modelValue:n.settingsModalVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>n.settingsModalVisible=e),title:e.$t("Notification Settings"),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:vr(()=>[iu(p,{"settings-scope":"preferences","display-mode":"modal",onUpdated:t[2]||(t[2]=e=>n.settingsModalVisible=!1)})],void 0),_:1},8,["modelValue","title"])])):ru("",!0)}]]),xmt=function(e){const t=zve(e.routes,e),i=e.parseQuery||gve,a=e.stringifyQuery||mve,n=e.history,s=wve(),o=wve(),r=wve(),l=_o(eve);let c=eve;x_e&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=C_e.bind(null,e=>""+e),u=C_e.bind(null,G_e),p=C_e.bind(null,W_e);function h(e,s){if(s=w_e({},s||l.value),"string"==typeof e){const a=q_e(i,e,s.path),o=t.resolve({path:a.path},s),r=n.createHref(a.fullPath);return w_e(a,o,{params:p(o.params),hash:W_e(a.hash),redirectedFrom:void 0,href:r})}let o;if(null!=e.path)o=w_e({},e,{path:q_e(i,e.path,s.path).path});else{const t=w_e({},e.params);for(const e in t)null==t[e]&&delete t[e];o=w_e({},e,{params:u(t)}),s.params=u(s.params)}const r=t.resolve(o,s),c=e.hash||"";r.params=d(p(r.params));const h=function(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}(a,w_e({},e,{hash:(f=c,H_e(f).replace(B_e,"{").replace(V_e,"}").replace(P_e,"^")),path:r.path}));var f;const g=n.createHref(h);return w_e({fullPath:h,hash:c,query:a===mve?_ve(e.query):e.query||{}},r,{redirectedFrom:void 0,href:g})}function f(e){return"string"==typeof e?q_e(i,e,l.value.path):w_e({},e)}function g(e,t){if(c!==e)return hve(uve.NAVIGATION_CANCELLED,{from:t,to:e})}function m(e){return v(e)}function _(e,t){const i=e.matched[e.matched.length-1];if(i&&i.redirect){const{redirect:a}=i;let n="function"==typeof a?a(e,t):a;return"string"==typeof n&&(n=n.includes("?")||n.includes("#")?n=f(n):{path:n},n.params={}),w_e({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function v(e,t){const i=c=h(e),n=l.value,s=e.state,o=e.force,r=!0===e.replace,d=_(i,n);if(d)return v(w_e(f(d),{state:"object"==typeof d?w_e({},s,d.state):s,force:o,replace:r}),t||i);const u=i;let p;return u.redirectedFrom=t,!o&&function(e,t,i){const a=t.matched.length-1,n=i.matched.length-1;return a>-1&&a===n&&X_e(t.matched[a],i.matched[n])&&Z_e(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}(a,n,i)&&(p=hve(uve.NAVIGATION_DUPLICATED,{to:u,from:n}),D(n,n,!0,!1)),(p?Promise.resolve(p):x(u,n)).catch(e=>fve(e)?fve(e,uve.NAVIGATION_GUARD_REDIRECT)?e:I(e):R(e,u,n)).then(e=>{if(e){if(fve(e,uve.NAVIGATION_GUARD_REDIRECT))return v(w_e({replace:r},f(e.to),{state:"object"==typeof e.to?w_e({},s,e.to.state):s,force:o}),t||u)}else e=w(u,n,!0,r,s);return S(u,n,e),e})}function b(e,t){const i=g(e,t);return i?Promise.reject(i):Promise.resolve()}function y(e){const t=N.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function x(e,t){let i;const[a,n,r]=function(e,t){const i=[],a=[],n=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;o<s;o++){const s=t.matched[o];s&&(e.matched.find(e=>X_e(e,s))?a.push(s):i.push(s));const r=e.matched[o];r&&(t.matched.find(e=>X_e(e,r))||n.push(r))}return[i,a,n]}(e,t);i=Eve(a.reverse(),"beforeRouteLeave",e,t);for(const s of a)s.leaveGuards.forEach(a=>{i.push(Cve(a,e,t))});const l=b.bind(null,e,t);return i.push(l),P(i).then(()=>{i=[];for(const a of s.list())i.push(Cve(a,e,t));return i.push(l),P(i)}).then(()=>{i=Eve(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{i.push(Cve(a,e,t))});return i.push(l),P(i)}).then(()=>{i=[];for(const a of r)if(a.beforeEnter)if(k_e(a.beforeEnter))for(const n of a.beforeEnter)i.push(Cve(n,e,t));else i.push(Cve(a.beforeEnter,e,t));return i.push(l),P(i)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),i=Eve(r,"beforeRouteEnter",e,t,y),i.push(l),P(i))).then(()=>{i=[];for(const a of o.list())i.push(Cve(a,e,t));return i.push(l),P(i)}).catch(e=>fve(e,uve.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function S(e,t,i){r.list().forEach(a=>y(()=>a(e,t,i)))}function w(e,t,i,a,s){const o=g(e,t);if(o)return o;const r=t===eve,c=x_e?history.state:{};i&&(a||r?n.replace(e.fullPath,w_e({scroll:r&&c&&c.scroll},s)):n.push(e.fullPath,s)),l.value=e,D(e,t,i,r),I()}let C;function E(){C||(C=n.listen((e,t,i)=>{if(!L.listening)return;const a=h(e),s=_(a,L.currentRoute.value);if(s)return void v(w_e(s,{replace:!0,force:!0}),a).catch(E_e);c=a;const o=l.value;var r,d;x_e&&(r=lve(o.fullPath,i.delta),d=ove(),cve.set(r,d)),x(a,o).catch(e=>fve(e,uve.NAVIGATION_ABORTED|uve.NAVIGATION_CANCELLED)?e:fve(e,uve.NAVIGATION_GUARD_REDIRECT)?(v(w_e(f(e.to),{force:!0}),a).then(e=>{fve(e,uve.NAVIGATION_ABORTED|uve.NAVIGATION_DUPLICATED)&&!i.delta&&i.type===tve.pop&&n.go(-1,!1)}).catch(E_e),Promise.reject()):(i.delta&&n.go(-i.delta,!1),R(e,a,o))).then(e=>{(e=e||w(a,o,!1))&&(i.delta&&!fve(e,uve.NAVIGATION_CANCELLED)?n.go(-i.delta,!1):i.type===tve.pop&&fve(e,uve.NAVIGATION_ABORTED|uve.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),S(a,o,e)}).catch(E_e)}))}let k,T=wve(),A=wve();function R(e,t,i){I(e);const a=A.list();return a.length&&a.forEach(a=>a(e,t,i)),Promise.reject(e)}function I(e){return k||(k=!e,E(),T.list().forEach(([t,i])=>e?i(e):t()),T.reset()),e}function D(t,i,a,n){const{scrollBehavior:s}=e;if(!x_e||!s)return Promise.resolve();const o=!a&&function(e){const t=cve.get(e);return cve.delete(e),t}(lve(t.fullPath,0))||(n||!a)&&history.state&&history.state.scroll||null;return ir().then(()=>s(t,i,o)).then(e=>e&&rve(e)).catch(e=>R(e,t,i))}const O=e=>n.go(e);let M;const N=new Set,L={currentRoute:l,listening:!0,addRoute:function(e,i){let a,n;return dve(e)?(a=t.getRecordMatcher(e),n=i):n=e,t.addRoute(n,a)},removeRoute:function(e){const i=t.getRecordMatcher(e);i&&t.removeRoute(i)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:h,options:e,push:m,replace:function(e){return m(w_e(f(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:s.add,beforeResolve:o.add,afterEach:r.add,onError:A.add,isReady:function(){return k&&l.value!==eve?Promise.resolve():new Promise((e,t)=>{T.add([e,t])})},install(e){e.component("RouterLink",Zve),e.component("RouterView",ibe),e.config.globalProperties.$router=L,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>xo(l)}),x_e&&!M&&l.value===eve&&(M=!0,m(n.location).catch(e=>{}));const t={};for(const a in eve)Object.defineProperty(t,a,{get:()=>l.value[a],enumerable:!0});e.provide(yve,L),e.provide(xve,io(t)),e.provide(Sve,l);const i=e.unmount;N.add(e),e.unmount=function(){N.delete(e),N.size<1&&(c=eve,C&&C(),C=null,l.value=eve,M=!1,k=!1),i()}}};function P(e){return e.reduce((e,t)=>e.then(()=>y(t)),Promise.resolve())}return L}({history:((Smt=location.host?Smt||location.pathname+location.search:"").includes("#")||(Smt+="#"),Rve(Smt)),routes:ugt});var Smt;const wmt=new class{constructor(){this.doAction=Mgt,this.addFilter=kgt,this.addAction=Egt,this.applyFilters=Lgt,this.removeAllActions=Dgt,this.$rest=iq,this.appVars=window.fluentSupportAdmin,this.app=this.extendVueConstructor()}extendVueConstructor(){const e=this;return hgt.mixin({methods:{addFilter:kgt,applyFilters:Lgt,doAction:Mgt,addAction:Egt,removeAllActions:Dgt,longLocalDate:e.longLocalDate,longLocalDateTime:e.longLocalDateTime,dateTimeFormat:e.dateTimeFormat,localDate:e.localDate,ucFirst:e.ucFirst,ucWords:e.ucWords,slugify:e.slugify,$dayjs:Pk,$get:e.$get,$post:e.$post,$del:e.$del,$put:e.$put,$patch:e.$patch,$handleError:e.handleError,$saveData:e.saveData,$getData:e.getData,$removeData:e.removeData,$timeDiff:e.humanDiffTime,$waitingTime:e.waitingTime,convertToText:e.convertToText,getCurrencySymbol:e.getCurrencySymbol,smartDate:e.smartDate,$copyToClipboard:e.copyToClipboard,$notify:e.notify,$confirm:e.confirm,$scrollToRef:e.scrollToRef,$getSourceIcon:e.getSourceIcon,$setTitle(e){document.title=e},$t:e=>window.window.fluentSupportAdmin.i18n[e]||e,renewOptions(t){this.$get(t).then(t=>{t.option_key&&(e.appVars[t.option_key]=t.options)})}}}),hgt}getExtraComponents(){return{"ticket-header":{template:"<h1>OK</h1>"}}}registerBlock(e,t,i){this.addFilter(e,this.appVars.slug,function(e){return e[t]=i,e})}registerTopMenu(e,t){e&&t.name&&t.path&&t.component&&(this.addFilter("fluent_framework_top_menus",this.appVars.slug,function(i){return(i=i.filter(e=>e.route!==t.name)).push({route:t.name,title:e}),i}),this.addFilter("fluent_framework_global_routes",this.appVars.slug,function(e){return(e=e.filter(e=>e.name!==t.name)).push(t),e}))}$get(e,t={}){return iq.get(e,t)}$post(e,t={}){return iq.post(e,t)}$del(e,t={}){return iq.delete(e,t)}$put(e,t={}){return iq.put(e,t)}$patch(e,t={}){return iq.patch(e,t)}dateTimeFormat(e,t){const i=Pk(void 0===e?null:e);return i.isValid()?i.format(t):null}localDate(e){return Pk.utc(e).local()}longLocalDate(e){return this.dateTimeFormat(e,"ddd, DD MMM, YYYY")}saveData(e,t){let i=window.localStorage.getItem("__fluentsupport_data");i=i?JSON.parse(i):{},i[e]=t,window.localStorage.setItem("__fluentsupport_data",JSON.stringify(i))}getData(e,t=!1){let i=window.localStorage.getItem("__fluentsupport_data");return i=JSON.parse(i),i&&i[e]?i[e]:t}removeData(e){let t=window.localStorage.getItem("__fluentsupport_data");if(!t)return[];t=JSON.parse(t),delete t[e],window.localStorage.setItem("__fluentsupport_data",JSON.stringify(t))}longLocalDateTime(e){return this.dateTimeFormat(e,"ddd, DD MMM, YYYY hh:mm:ssa")}ucFirst(e){return e&&"string"==typeof e?e[0].toUpperCase()+e.slice(1).toLowerCase():""}ucWords(e){return(e+"").replace(/^(.)|\s+(.)/g,function(e){return e.toUpperCase()})}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\\-]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}handleError(e){e.responseJSON&&(e=e.responseJSON);let t="";t="string"==typeof e?e:e&&e.message?e.message:this.convertToText(e),t||(t="Something is wrong!");const i=t.split("<br />"),a=i.length>1?Pu("div",i.filter(Boolean).map(e=>Pu("p",{style:"margin: 0"},e))):t;this.$notify({type:"error",title:"Error",message:a,position:"bottom-right"})}convertToText(e){const t=[];if("object"==typeof e&&void 0===e.join)for(const i in e)t.push(this.convertToText(e[i]));else if("object"==typeof e&&void 0!==e.join)for(const i in e)t.push(this.convertToText(e[i]));else"function"==typeof e||"string"==typeof e&&t.push(e);return t.join("<br />")}humanDiffTime(e){const t=void 0===e?null:e;if(!t)return"";const i=new Date-Kgt;return Pk(t).from(Pk(window.fluentSupportAdmin.server_time).add(i,"milliseconds"))}waitingTime(e,t){return t&&e?(e=Pk(e),(t=Pk(t)).from(e)):""}getCurrencySymbol(e){return{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CNY:"¥",KRW:"₩",INR:"₹",CAD:"C$",AUD:"A$",CHF:"CHF",SEK:"kr",NOK:"kr",DKK:"kr",PLN:"zł",CZK:"Kč",HUF:"Ft",RUB:"₽",BRL:"R$",MXN:"$",ZAR:"R",SGD:"S$",HKD:"HK$",NZD:"NZ$",THB:"฿",MYR:"RM",PHP:"₱",IDR:"Rp",VND:"₫",TRY:"₺",ILS:"₪",AED:"د.إ",SAR:"ر.س",EGP:"ج.م",NGN:"₦",KES:"KSh",GHS:"₵",XOF:"CFA",XAF:"FCFA",MAD:"د.م.",TND:"د.ت",DZD:"د.ج",LYD:"ل.د",SDG:"ج.س.",ETB:"Br",UGX:"USh",TZS:"TSh",RWF:"RF",MWK:"MK",ZMW:"ZK",BWP:"P",SZL:"L",LSL:"L",NAD:"N$",MZN:"MT",AOA:"Kz",CVE:"$",GMD:"D",GNF:"FG",LRD:"L$",SLL:"Le",STD:"Db"}[e]||e}smartDate(e,t=!1){if(!e)return"";let i="D MMM, YYYY";Pk(e).isSame(new Date,"year")&&(i="D MMM",t&&(i="D MMM, hh:mm a"));const a=Pk(e);return a.isValid()?a.format(i):null}copyToClipboard(e,t="Copied to clipboard!",i="Failed to copy to clipboard"){const a=this.$notify||this.notify;return"function"!=typeof a?Promise.resolve(!1):e?navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(()=>(a({type:"success",title:"Success",message:t,position:"bottom-right"}),!0)).catch(e=>(a({type:"error",title:"Error",message:i,position:"bottom-right"}),!1)):(a({type:"error",title:"Error",message:"Copy to clipboard requires HTTPS",position:"bottom-right"}),Promise.resolve(!1)):(a({type:"warning",title:"Warning",message:"Nothing to copy",position:"bottom-right"}),Promise.resolve(!1))}notify(e){D$({position:e.position||"bottom-right",...e})}confirm(e){return y$.confirm(e.message,e.title,e.options)}scrollToRef(e){e&&e.scrollIntoView({behavior:"smooth"})}getSourceIcon(e){if(!e)return null;const t="source"+this.ucFirst(e)+".svg";return window.fluentSupportAdmin.asset_url+"images/"+t}};wmt.app.component("color-mode",Jgt),wmt.app.component("fs-notifications-pop",ymt),wmt.app.config.globalProperties.appVars=to(window.fluentSupportAdmin),wmt.app.config.globalProperties.has_pro=window.fluentSupportAdmin.has_pro,wmt.app.config.globalProperties.$upgradeUrl=function(e,t){const i=this.appVars&&this.appVars.upgrade_url;if(!i)return i;try{const a=new URL(i);return e&&a.searchParams.set("utm_content",e),t&&a.searchParams.set("utm_campaign",t),a.toString()}catch(NO){return i}},window.fluentSupportAdmin&&(window.fluentSupportAdmin.hooks={addFilter:wmt.addFilter,applyFilters:wmt.applyFilters,addAction:wmt.addAction,doAction:wmt.doAction,removeAllActions:wmt.removeAllActions}),wmt.app.config.globalProperties.is_mobile=window.innerWidth<769;const Cmt=function(){const e=Hn(!0),t=e.run(()=>mo({}));let i=[],a=[];const n=po({install(e){Pj(n),n._a=e,e.provide(Fj,n),e.config.globalProperties.$pinia=n,a.forEach(e=>i.push(e)),a=[]},use(e){return this._a?i.push(e):a.push(e),this},_p:i,_a:null,_e:e,_s:new Map,state:t});return n}();window.fluentSupportAppp=wmt.app.use(Cmt).use(xmt).mount("#alpha_app");const Emt=gut(Cmt);let kmt=null;const Tmt=()=>{Emt.fetchUnreadCount().catch(()=>{})},Amt=()=>{var e,t;kmt&&clearInterval(kmt),"yes"===(null==(t=null==(e=window.fluentSupportAdmin)?void 0:e.internal_notification_settings)?void 0:t.enabled)&&(Tmt(),kmt=setInterval(Tmt,(()=>{const e=parseInt(wmt.applyFilters("fluent_support_internal_notification_polling_interval",60),10);return Number.isNaN(e)?6e4:1e3*Math.max(30,Math.min(300,e))})()))};function Rmt(e){var t;jQuery(".fs_nav_item").removeClass("current"),jQuery(".fframe_menu_item").removeClass("fs_active");let i=null==(t=e.meta)?void 0:t.active;i&&(jQuery(".fs_nav_item[data-key="+i+"]").addClass("current"),jQuery(".fframe_main-menu-items").find("li[data-key="+i+"]").addClass("fs_active"))}window.fluentSupportAdmin.refreshNotificationPolling=Amt,Amt(),setTimeout(()=>{!function(){if(!document.querySelector(".fs_main_navbar"))return;const e=()=>{document.querySelector(".fs_main_navbar");const e=document.querySelector("#alpha_app");e&&((window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0)>10?e.classList.add("fs-scroll-header"):e.classList.remove("fs-scroll-header"))};window.addEventListener("scroll",e,{passive:!0}),e()}()},100),xmt.afterEach((e,t)=>{Rmt(e)}),xmt.isReady().then(()=>{Rmt(xmt.currentRoute.value)}),window.fluentSupportAdmin.is_frontend&&jQuery("body").addClass("has_fluent_support"),setInterval(()=>{window.fluentSupportAppp.$get("tickets/ping")},3e4),window.location.hash.includes("setup")&&jQuery(".fframe_main-menu-items").hide();
56