@qualityunit/liveagent-ticket-grid 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.js +7 -7
- package/package.json +1 -1
package/dist/assets/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var or=Object.defineProperty;var sr=(e,t,n)=>t in e?or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(sr(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function X(){}function gt(e,t){for(const n in t)e[n]=t[n];return e}function hi(e){return e()}function An(){return Object.create(null)}function Re(e){e.forEach(hi)}function Ft(e){return typeof e=="function"}function te(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Lt;function Dt(e,t){return e===t?!0:(Lt||(Lt=document.createElement("a")),Lt.href=t,e===Lt.href)}function ar(e){return Object.keys(e).length===0}function vn(e,...t){if(e==null){for(const i of t)i(void 0);return X}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ke(e){let t;return vn(e,n=>t=n)(),t}function K(e,t,n){e.$$.on_destroy.push(vn(t,n))}function bt(e,t,n,i){if(e){const r=mi(e,t,n,i);return e[0](r)}}function mi(e,t,n,i){return e[1]&&i?gt(n.ctx.slice(),e[1](i(t))):n.ctx}function wt(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const o=[],s=Math.max(t.dirty.length,r.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|r[a];return o}return t.dirty|r}return t.dirty}function Et(e,t,n,i,r,o){if(r){const s=mi(t,n,i,o);e.p(s,r)}}function Tt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function lr(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function On(e,t){const n={};t=new Set(t);for(const i in e)!t.has(i)&&i[0]!=="$"&&(n[i]=e[i]);return n}function ce(e){return e??""}function ur(e,t,n){return e.set(n),t}const cr=["",!0,1,"true","contenteditable"];function w(e,t){e.appendChild(t)}function ue(e,t,n){const i=fr(e);if(!i.getElementById(t)){const r=x("style");r.id=t,r.textContent=n,dr(i,r)}}function fr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function dr(e,t){return w(e.head||e,t),t.sheet}function N(e,t,n){e.insertBefore(t,n||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function yn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function x(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function V(){return j(" ")}function xt(){return j("")}function he(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function on(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const hr=["width","height"];function Rn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&hr.indexOf(i)===-1?e[i]=t[i]:v(e,i,t[i])}function mr(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function gr(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function pr(e,t,n){~cr.indexOf(n)?gr(e,t):se(e,t)}function Nn(e,t){e.value=t??""}function Zt(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function In(e,t,n){e.classList.toggle(t,!!n)}function _r(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function vr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let pt;function ft(e){pt=e}function gi(){if(!pt)throw new Error("Function called outside component initialization");return pt}function $t(e){gi().$$.on_mount.push(e)}function pi(){const e=gi();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const o=_r(t,n,{cancelable:i});return r.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}const Ue=[],Je=[];let Ke=[];const Dn=[],yr=Promise.resolve();let sn=!1;function br(){sn||(sn=!0,yr.then(Me))}function an(e){Ke.push(e)}const Yt=new Set;let $e=0;function Me(){if($e!==0)return;const e=pt;do{try{for(;$e<Ue.length;){const t=Ue[$e];$e++,ft(t),wr(t.$$)}}catch(t){throw Ue.length=0,$e=0,t}for(ft(null),Ue.length=0,$e=0;Je.length;)Je.pop()();for(let t=0;t<Ke.length;t+=1){const n=Ke[t];Yt.has(n)||(Yt.add(n),n())}Ke.length=0}while(Ue.length);for(;Dn.length;)Dn.pop()();sn=!1,Yt.clear(),ft(e)}function wr(e){if(e.fragment!==null){e.update(),Re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(an)}}function Er(e){const t=[],n=[];Ke.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),Ke=t}const Ot=new Set;let Be;function be(){Be={r:0,c:[],p:Be}}function we(){Be.r||Re(Be.c),Be=Be.p}function T(e,t){e&&e.i&&(Ot.delete(e),e.i(t))}function k(e,t,n,i){if(e&&e.o){if(Ot.has(e))return;Ot.add(e),Be.c.push(()=>{Ot.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Ze(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function _i(e,t){const n={},i={},r={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const u in s)u in a||(i[u]=1);for(const u in a)r[u]||(n[u]=a[u],r[u]=1);e[o]=a}else for(const u in s)r[u]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Tr(e){return typeof e=="object"&&e!==null?e:{}}function G(e){e&&e.c()}function F(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),an(()=>{const o=e.$$.on_mount.map(hi).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...o):Re(o),e.$$.on_mount=[]}),r.forEach(an)}function $(e,t){const n=e.$$;n.fragment!==null&&(Er(n.after_update),Re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function xr(e,t){e.$$.dirty[0]===-1&&(Ue.push(e),br(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,o,s=null,a=[-1]){const u=pt;ft(e);const l=e.$$={fragment:null,ctx:[],props:o,update:X,not_equal:r,bound:An(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:An(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(f,d,...h)=>{const p=h.length?h[0]:d;return l.ctx&&r(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&xr(e,f)),d}):[],l.update(),c=!0,Re(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=mr(t.target);l.fragment&&l.fragment.l(f),f.forEach(R)}else l.fragment&&l.fragment.c();t.intro&&T(e.$$.fragment),F(e,t.target,t.anchor),Me()}ft(u)}let vi;typeof HTMLElement=="function"&&(vi=class extends HTMLElement{constructor(t,n,i){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(s){return()=>{let a;return{c:function(){a=x("slot"),s!=="default"&&v(a,"name",s)},m:function(c,f){N(c,a,f)},d:function(c){c&&R(a)}}}};var t=n;if(await Promise.resolve(),!this.$$cn)return;const i={},r=vr(this);for(const s of this.$$s)s in r&&(i[s]=[n(s)]);for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Rt(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const a=Rt(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const a of this.$$l[s]){const u=this.$$c.$on(s,a);this.$$l_u.set(a,u)}this.$$l={}}}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Rt(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Rt(e,t,n,i){var o;const r=(o=n[e])==null?void 0:o.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function kr(e,t,n,i,r,o){let s=class extends vi{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Rt(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),o&&(s=o(s)),e.element=s,s}class re{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){$(this,1),this.$destroy=X}$on(t,n){if(!Ft(n))return X;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ar(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Cr="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cr);function Lr(e){ue(e,"svelte-uqg1eo",".Icon.svelte-uqg1eo:before{font-family:'la-icon-font';display:inline-block;margin:0;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;font-size:1em}")}function Sr(e){let t,n;return{c(){t=x("span"),v(t,"class",n=ce(`Icon ${e[0]} ${e[1]}`)+" svelte-uqg1eo")},m(i,r){N(i,t,r)},p(i,[r]){r&3&&n!==(n=ce(`Icon ${i[0]} ${i[1]}`)+" svelte-uqg1eo")&&v(t,"class",n)},i:X,o:X,d(i){i&&R(t)}}}function Ar(e,t,n){let{className:i=""}=t,{iconLaClassName:r}=t;return e.$$set=o=>{"className"in o&&n(0,i=o.className),"iconLaClassName"in o&&n(1,r=o.iconLaClassName)},[i,r]}class Oe extends re{constructor(t){super(),ie(this,t,Ar,Sr,te,{className:0,iconLaClassName:1},Lr)}}const Ge=[];function Or(e,t){return{subscribe:me(e,t).subscribe}}function me(e,t=X){let n;const i=new Set;function r(a){if(te(e,a)&&(e=a,n)){const u=!Ge.length;for(const l of i)l[1](),Ge.push(l,e);if(u){for(let l=0;l<Ge.length;l+=2)Ge[l][0](Ge[l+1]);Ge.length=0}}}function o(a){r(a(e))}function s(a,u=X){const l=[a,u];return i.add(l),i.size===1&&(n=t(r,o)||X),a(e),()=>{i.delete(l),i.size===0&&n&&(n(),n=null)}}return{set:r,update:o,subscribe:s}}function tt(e,t,n){const i=!Array.isArray(e),r=i?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Or(n,(s,a)=>{let u=!1;const l=[];let c=0,f=X;const d=()=>{if(c)return;f();const p=t(i?l[0]:l,s,a);o?s(p):f=Ft(p)?p:X},h=r.map((p,_)=>vn(p,y=>{l[_]=y,c&=~(1<<_),u&&d()},()=>{c|=1<<_}));return u=!0,d(),function(){Re(h),f(),u=!1}})}var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr=function(t){return Nr(t)&&!Ir(t)};function Nr(e){return!!e&&typeof e=="object"}function Ir(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pr(e)}var Dr=typeof Symbol=="function"&&Symbol.for,Hr=Dr?Symbol.for("react.element"):60103;function Pr(e){return e.$$typeof===Hr}function Mr(e){return Array.isArray(e)?[]:{}}function _t(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ye(Mr(e),e,t):e}function Br(e,t,n){return e.concat(t).map(function(i){return _t(i,n)})}function Fr(e,t){if(!t.customMerge)return Ye;var n=t.customMerge(e);return typeof n=="function"?n:Ye}function $r(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Hn(e){return Object.keys(e).concat($r(e))}function bi(e,t){try{return t in e}catch{return!1}}function Gr(e,t){return bi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ur(e,t,n){var i={};return n.isMergeableObject(e)&&Hn(e).forEach(function(r){i[r]=_t(e[r],n)}),Hn(t).forEach(function(r){Gr(e,r)||(bi(e,r)&&n.isMergeableObject(t[r])?i[r]=Fr(r,n)(e[r],t[r],n):i[r]=_t(t[r],n))}),i}function Ye(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Br,n.isMergeableObject=n.isMergeableObject||Rr,n.cloneUnlessOtherwiseSpecified=_t;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):Ur(e,t,n):_t(t,n)}Ye.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ye(i,r,n)},{})};var Vr=Ye,zr=Vr;const Kr=Gt(zr);var ln=function(e,t){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},ln(e,t)};function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ln(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var q=function(){return q=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},q.apply(this,arguments)};function Wr(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Qt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}var W;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(W||(W={}));var le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(le||(le={}));var Qe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qe||(Qe={}));function Pn(e){return e.type===le.literal}function Xr(e){return e.type===le.argument}function wi(e){return e.type===le.number}function Ei(e){return e.type===le.date}function Ti(e){return e.type===le.time}function xi(e){return e.type===le.select}function ki(e){return e.type===le.plural}function Jr(e){return e.type===le.pound}function Ci(e){return e.type===le.tag}function Li(e){return!!(e&&typeof e=="object"&&e.type===Qe.number)}function un(e){return!!(e&&typeof e=="object"&&e.type===Qe.dateTime)}var Si=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Zr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Yr(e){var t={};return e.replace(Zr,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Qr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Qr).filter(function(d){return d.length>0}),n=[],i=0,r=t;i<r.length;i++){var o=r[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var f=c[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function jr(e){return e.replace(/^(.*?)-/,"")}var Mn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ai=/^(@+)?(\+|#+)?[rs]?$/g,eo=/(\*)(0+)|(#+)(0+)|(0+)/g,Oi=/^(0+)$/;function Bn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ai,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function Ri(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function to(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Oi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Fn(e){var t={},n=Ri(e);return n||t}function no(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=jr(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),r.options.reduce(function(u,l){return q(q({},u),Fn(l))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),r.options.reduce(function(u,l){return q(q({},u),Fn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(eo,function(u,l,c,f,d,h){if(l)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oi.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Mn.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Mn,function(u,l,c,f,d,h){return c==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=r.options[0];o==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=q(q({},t),Bn(o)));continue}if(Ai.test(r.stem)){t=q(q({},t),Bn(r.stem));continue}var s=Ri(r.stem);s&&(t=q(q({},t),s));var a=to(r.stem);a&&(t=q(q({},t),a))}return t}var St={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function io(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=ro(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else r==="J"?n+="H":n+=r}return n}function ro(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=St[i||""]||St[n||""]||St["".concat(n,"-001")]||St["001"];return r[0]}var qt,oo=new RegExp("^".concat(Si.source,"*")),so=new RegExp("".concat(Si.source,"*$"));function Z(e,t){return{start:e,end:t}}var ao=!!String.prototype.startsWith&&"_a".startsWith("a",1),lo=!!String.fromCodePoint,uo=!!Object.fromEntries,co=!!String.prototype.codePointAt,fo=!!String.prototype.trimStart,ho=!!String.prototype.trimEnd,mo=!!Number.isSafeInteger,go=mo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{var po=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cn=((qt=po.exec("a"))===null||qt===void 0?void 0:qt[0])==="a"}catch{cn=!1}var $n=ao?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},fn=lo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,o=0,s;r>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Gn=uo?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var o=r[i],s=o[0],a=o[1];n[s]=a}return n},Ni=co?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),o;return r<55296||r>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},_o=fo?function(t){return t.trimStart()}:function(t){return t.replace(oo,"")},vo=ho?function(t){return t.trimEnd()}:function(t){return t.replace(so,"")};function Ii(e,t){return new RegExp(e,t)}var dn;if(cn){var Un=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dn=function(t,n){var i;Un.lastIndex=n;var r=Un.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else dn=function(t,n){for(var i=[];;){var r=Ni(t,n);if(r===void 0||Di(r)||Eo(r))break;i.push(r),n+=r>=65536?2:1}return fn.apply(void 0,i)};var yo=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;r.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:le.pound,location:Z(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(W.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hn(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;r.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;r.push(s.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:le.literal,value:"<".concat(r,"/>"),location:Z(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hn(this.char()))return this.error(W.INVALID_TAG,Z(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return r!==l?this.error(W.UNMATCHED_CLOSING_TAG,Z(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:le.tag,value:r,children:s,location:Z(i,this.clonePosition())},err:null}:this.error(W.INVALID_TAG,Z(a,this.clonePosition())))}else return this.error(W.UNCLOSED_TAG,Z(i,this.clonePosition()))}else return this.error(W.INVALID_TAG,Z(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(n);if(o){r+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){r+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var u=Z(i,this.clonePosition());return{val:{type:le.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!bo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return fn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),fn(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(W.EMPTY_ARGUMENT,Z(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(W.MALFORMED_ARGUMENT,Z(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:le.argument,value:r,location:Z(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(W.MALFORMED_ARGUMENT,Z(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=dn(this.message,n),r=n+i.length;this.bumpTo(r);var o=this.clonePosition(),s=Z(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,n,i,r){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(W.EXPECT_ARGUMENT_TYPE,Z(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=vo(f.val);if(d.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));var h=Z(c,this.clonePosition());l={style:d,styleLocation:h}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var _=Z(r,this.clonePosition());if(l&&$n(l==null?void 0:l.style,"::",0)){var y=_o(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(y,l.styleLocation);return f.err?f:{val:{type:le.number,value:i,location:_,style:f.val},err:null}}else{if(y.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,_);var g=y;this.locale&&(g=io(y,this.locale));var d={type:Qe.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Yr(g):{}},E=a==="date"?le.date:le.time;return{val:{type:E,value:i,location:_,style:d},err:null}}}return{val:{type:a==="number"?le.number:a==="date"?le.date:le.time,value:i,location:_,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var L=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(L,q({},L)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),I=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),O=this.parseIdentifierIfPossible(),I=f.val}var Y=this.tryParsePluralOrSelectOptions(t,a,n,O);if(Y.err)return Y;var p=this.tryParseArgumentClose(r);if(p.err)return p;var de=Z(r,this.clonePosition());return a==="select"?{val:{type:le.select,value:i,options:Gn(Y.val),location:de},err:null}:{val:{type:le.plural,value:i,options:Gn(Y.val),offset:I,pluralType:a==="plural"?"cardinal":"ordinal",location:de},err:null}}default:return this.error(W.INVALID_ARGUMENT_TYPE,Z(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(W.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=qr(t)}catch{return this.error(W.INVALID_NUMBER_SKELETON,n)}return{val:{type:Qe.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?no(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var o,s=!1,a=[],u=new Set,l=r.value,c=r.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_SELECTOR,W.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Z(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:W.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,i);if(p.err)return p;var _=this.tryParseArgumentClose(h);if(_.err)return _;a.push([l,{value:p.val,location:Z(h,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return a.length===0?this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR:W.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(W.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=Z(r,this.clonePosition());return o?(s*=i,go(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Ni(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if($n(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Di(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function hn(e){return e>=97&&e<=122||e>=65&&e<=90}function bo(e){return hn(e)||e===47}function wo(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Di(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Eo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function mn(e){e.forEach(function(t){if(delete t.location,xi(t)||ki(t))for(var n in t.options)delete t.options[n].location,mn(t.options[n].value);else wi(t)&&Li(t.style)||(Ei(t)||Ti(t))&&un(t.style)?delete t.style.location:Ci(t)&&mn(t.children)})}function To(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new yo(e,t).parse();if(n.err){var i=SyntaxError(W[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||mn(n.val),n.val}function jt(e,t){var n=t&&t.cache?t.cache:Ao,i=t&&t.serializer?t.serializer:So,r=t&&t.strategy?t.strategy:ko;return r(e,{cache:n,serializer:i})}function xo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Hi(e,t,n,i){var r=xo(i)?i:n(i),o=t.get(r);return typeof o>"u"&&(o=e.call(this,i),t.set(r,o)),o}function Pi(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return typeof o>"u"&&(o=e.apply(this,i),t.set(r,o)),o}function bn(e,t,n,i,r){return n.bind(t,e,i,r)}function ko(e,t){var n=e.length===1?Hi:Pi;return bn(e,this,n,t.cache.create(),t.serializer)}function Co(e,t){return bn(e,this,Pi,t.cache.create(),t.serializer)}function Lo(e,t){return bn(e,this,Hi,t.cache.create(),t.serializer)}var So=function(){return JSON.stringify(arguments)};function wn(){this.cache=Object.create(null)}wn.prototype.get=function(e){return this.cache[e]};wn.prototype.set=function(e,t){this.cache[e]=t};var Ao={create:function(){return new wn}},en={variadic:Co,monadic:Lo},qe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(qe||(qe={}));var Vt=function(e){Ut(t,e);function t(n,i,r){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=r,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Vn=function(e){Ut(t,e);function t(n,i,r,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),qe.INVALID_VALUE,o)||this}return t}(Vt),Oo=function(e){Ut(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),qe.INVALID_VALUE,r)||this}return t}(Vt),Ro=function(e){Ut(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),qe.MISSING_VALUE,i)||this}return t}(Vt),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function No(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==pe.literal||n.type!==pe.literal?t.push(n):i.value+=n.value,t},[])}function Io(e){return typeof e=="function"}function Nt(e,t,n,i,r,o,s){if(e.length===1&&Pn(e[0]))return[{type:pe.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Pn(c)){a.push({type:pe.literal,value:c.value});continue}if(Jr(c)){typeof o=="number"&&a.push({type:pe.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(r&&f in r))throw new Ro(f,s);var d=r[f];if(Xr(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?pe.literal:pe.object,value:d});continue}if(Ei(c)){var h=typeof c.style=="string"?i.date[c.style]:un(c.style)?c.style.parsedOptions:void 0;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(Ti(c)){var h=typeof c.style=="string"?i.time[c.style]:un(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(wi(c)){var h=typeof c.style=="string"?i.number[c.style]:Li(c.style)?c.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),a.push({type:pe.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(Ci(c)){var p=c.children,_=c.value,y=r[_];if(!Io(y))throw new Oo(_,"function",s);var g=Nt(p,t,n,i,r,o),E=y(g.map(function(I){return I.value}));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map(function(I){return{type:typeof I=="string"?pe.literal:pe.object,value:I}}))}if(xi(c)){var L=c.options[d]||c.options.other;if(!L)throw new Vn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nt(L.value,t,n,i,r));continue}if(ki(c)){var L=c.options["=".concat(d)];if(!L){if(!Intl.PluralRules)throw new Vt(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
var ar=Object.defineProperty;var lr=(e,t,n)=>t in e?ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(lr(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function J(){}function pt(e,t){for(const n in t)e[n]=t[n];return e}function gi(e){return e()}function On(){return Object.create(null)}function Oe(e){e.forEach(gi)}function Gt(e){return typeof e=="function"}function te(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let St;function Pt(e,t){return e===t?!0:(St||(St=document.createElement("a")),St.href=t,e===St.href)}function ur(e){return Object.keys(e).length===0}function yn(e,...t){if(e==null){for(const i of t)i(void 0);return J}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ke(e){let t;return yn(e,n=>t=n)(),t}function K(e,t,n){e.$$.on_destroy.push(yn(t,n))}function wt(e,t,n,i){if(e){const r=pi(e,t,n,i);return e[0](r)}}function pi(e,t,n,i){return e[1]&&i?pt(n.ctx.slice(),e[1](i(t))):n.ctx}function Et(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const o=[],s=Math.max(t.dirty.length,r.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|r[a];return o}return t.dirty|r}return t.dirty}function Tt(e,t,n,i,r,o){if(r){const s=pi(t,n,i,o);e.p(s,r)}}function xt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function cr(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Rn(e,t){const n={};t=new Set(t);for(const i in e)!t.has(i)&&i[0]!=="$"&&(n[i]=e[i]);return n}function ce(e){return e??""}function fr(e,t,n){return e.set(n),t}const dr=["",!0,1,"true","contenteditable"];function w(e,t){e.appendChild(t)}function ue(e,t,n){const i=hr(e);if(!i.getElementById(t)){const r=x("style");r.id=t,r.textContent=n,mr(i,r)}}function hr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function mr(e,t){return w(e.head||e,t),t.sheet}function N(e,t,n){e.insertBefore(t,n||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function bn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function x(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function V(){return j(" ")}function kt(){return j("")}function he(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function sn(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const gr=["width","height"];function Nn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&gr.indexOf(i)===-1?e[i]=t[i]:v(e,i,t[i])}function pr(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function _r(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function vr(e,t,n){~dr.indexOf(n)?_r(e,t):se(e,t)}function In(e,t){e.value=t??""}function Qt(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function Dn(e,t,n){e.classList.toggle(t,!!n)}function yr(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function br(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let _t;function dt(e){_t=e}function _i(){if(!_t)throw new Error("Function called outside component initialization");return _t}function Ut(e){_i().$$.on_mount.push(e)}function vi(){const e=_i();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const o=yr(t,n,{cancelable:i});return r.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}const Ue=[],Xe=[];let Ke=[];const Hn=[],wr=Promise.resolve();let an=!1;function Er(){an||(an=!0,wr.then(Pe))}function ln(e){Ke.push(e)}const qt=new Set;let $e=0;function Pe(){if($e!==0)return;const e=_t;do{try{for(;$e<Ue.length;){const t=Ue[$e];$e++,dt(t),Tr(t.$$)}}catch(t){throw Ue.length=0,$e=0,t}for(dt(null),Ue.length=0,$e=0;Xe.length;)Xe.pop()();for(let t=0;t<Ke.length;t+=1){const n=Ke[t];qt.has(n)||(qt.add(n),n())}Ke.length=0}while(Ue.length);for(;Hn.length;)Hn.pop()();an=!1,qt.clear(),dt(e)}function Tr(e){if(e.fragment!==null){e.update(),Oe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ln)}}function xr(e){const t=[],n=[];Ke.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),Ke=t}const Rt=new Set;let Me;function be(){Me={r:0,c:[],p:Me}}function we(){Me.r||Oe(Me.c),Me=Me.p}function T(e,t){e&&e.i&&(Rt.delete(e),e.i(t))}function k(e,t,n,i){if(e&&e.o){if(Rt.has(e))return;Rt.add(e),Me.c.push(()=>{Rt.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Ze(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function yi(e,t){const n={},i={},r={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const u in s)u in a||(i[u]=1);for(const u in a)r[u]||(n[u]=a[u],r[u]=1);e[o]=a}else for(const u in s)r[u]=1}for(const s in i)s in n||(n[s]=void 0);return n}function kr(e){return typeof e=="object"&&e!==null?e:{}}function G(e){e&&e.c()}function F(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),ln(()=>{const o=e.$$.on_mount.map(gi).filter(Gt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Oe(o),e.$$.on_mount=[]}),r.forEach(ln)}function $(e,t){const n=e.$$;n.fragment!==null&&(xr(n.after_update),Oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Cr(e,t){e.$$.dirty[0]===-1&&(Ue.push(e),Er(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,o,s=null,a=[-1]){const u=_t;dt(e);const l=e.$$={fragment:null,ctx:[],props:o,update:J,not_equal:r,bound:On(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:On(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(f,d,...h)=>{const p=h.length?h[0]:d;return l.ctx&&r(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&Cr(e,f)),d}):[],l.update(),c=!0,Oe(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=pr(t.target);l.fragment&&l.fragment.l(f),f.forEach(R)}else l.fragment&&l.fragment.c();t.intro&&T(e.$$.fragment),F(e,t.target,t.anchor),Pe()}dt(u)}let bi;typeof HTMLElement=="function"&&(bi=class extends HTMLElement{constructor(t,n,i){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(s){return()=>{let a;return{c:function(){a=x("slot"),s!=="default"&&v(a,"name",s)},m:function(c,f){N(c,a,f)},d:function(c){c&&R(a)}}}};var t=n;if(await Promise.resolve(),!this.$$cn)return;const i={},r=br(this);for(const s of this.$$s)s in r&&(i[s]=[n(s)]);for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Nt(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const a=Nt(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const a of this.$$l[s]){const u=this.$$c.$on(s,a);this.$$l_u.set(a,u)}this.$$l={}}}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Nt(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Nt(e,t,n,i){var o;const r=(o=n[e])==null?void 0:o.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Lr(e,t,n,i,r,o){let s=class extends bi{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Nt(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),o&&(s=o(s)),e.element=s,s}class re{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){$(this,1),this.$destroy=J}$on(t,n){if(!Gt(n))return J;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ur(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Sr="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Sr);function Ar(e){ue(e,"svelte-uqg1eo",".Icon.svelte-uqg1eo:before{font-family:'la-icon-font';display:inline-block;margin:0;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;font-size:1em}")}function Or(e){let t,n;return{c(){t=x("span"),v(t,"class",n=ce(`Icon ${e[0]} ${e[1]}`)+" svelte-uqg1eo")},m(i,r){N(i,t,r)},p(i,[r]){r&3&&n!==(n=ce(`Icon ${i[0]} ${i[1]}`)+" svelte-uqg1eo")&&v(t,"class",n)},i:J,o:J,d(i){i&&R(t)}}}function Rr(e,t,n){let{className:i=""}=t,{iconLaClassName:r}=t;return e.$$set=o=>{"className"in o&&n(0,i=o.className),"iconLaClassName"in o&&n(1,r=o.iconLaClassName)},[i,r]}class Ae extends re{constructor(t){super(),ie(this,t,Rr,Or,te,{className:0,iconLaClassName:1},Ar)}}const Ge=[];function Nr(e,t){return{subscribe:me(e,t).subscribe}}function me(e,t=J){let n;const i=new Set;function r(a){if(te(e,a)&&(e=a,n)){const u=!Ge.length;for(const l of i)l[1](),Ge.push(l,e);if(u){for(let l=0;l<Ge.length;l+=2)Ge[l][0](Ge[l+1]);Ge.length=0}}}function o(a){r(a(e))}function s(a,u=J){const l=[a,u];return i.add(l),i.size===1&&(n=t(r,o)||J),a(e),()=>{i.delete(l),i.size===0&&n&&(n(),n=null)}}return{set:r,update:o,subscribe:s}}function tt(e,t,n){const i=!Array.isArray(e),r=i?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Nr(n,(s,a)=>{let u=!1;const l=[];let c=0,f=J;const d=()=>{if(c)return;f();const p=t(i?l[0]:l,s,a);o?s(p):f=Gt(p)?p:J},h=r.map((p,_)=>yn(p,y=>{l[_]=y,c&=~(1<<_),u&&d()},()=>{c|=1<<_}));return u=!0,d(),function(){Oe(h),f(),u=!1}})}var wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ir=function(t){return Dr(t)&&!Hr(t)};function Dr(e){return!!e&&typeof e=="object"}function Hr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Br(e)}var Pr=typeof Symbol=="function"&&Symbol.for,Mr=Pr?Symbol.for("react.element"):60103;function Br(e){return e.$$typeof===Mr}function Fr(e){return Array.isArray(e)?[]:{}}function vt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ye(Fr(e),e,t):e}function $r(e,t,n){return e.concat(t).map(function(i){return vt(i,n)})}function Gr(e,t){if(!t.customMerge)return Ye;var n=t.customMerge(e);return typeof n=="function"?n:Ye}function Ur(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Pn(e){return Object.keys(e).concat(Ur(e))}function Ei(e,t){try{return t in e}catch{return!1}}function Vr(e,t){return Ei(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function zr(e,t,n){var i={};return n.isMergeableObject(e)&&Pn(e).forEach(function(r){i[r]=vt(e[r],n)}),Pn(t).forEach(function(r){Vr(e,r)||(Ei(e,r)&&n.isMergeableObject(t[r])?i[r]=Gr(r,n)(e[r],t[r],n):i[r]=vt(t[r],n))}),i}function Ye(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||$r,n.isMergeableObject=n.isMergeableObject||Ir,n.cloneUnlessOtherwiseSpecified=vt;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):zr(e,t,n):vt(t,n)}Ye.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ye(i,r,n)},{})};var Kr=Ye,Wr=Kr;const Jr=Vt(Wr);var un=function(e,t){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},un(e,t)};function zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");un(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var q=function(){return q=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},q.apply(this,arguments)};function Xr(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function jt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}var W;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(W||(W={}));var le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(le||(le={}));var Qe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qe||(Qe={}));function Mn(e){return e.type===le.literal}function Zr(e){return e.type===le.argument}function Ti(e){return e.type===le.number}function xi(e){return e.type===le.date}function ki(e){return e.type===le.time}function Ci(e){return e.type===le.select}function Li(e){return e.type===le.plural}function Yr(e){return e.type===le.pound}function Si(e){return e.type===le.tag}function Ai(e){return!!(e&&typeof e=="object"&&e.type===Qe.number)}function cn(e){return!!(e&&typeof e=="object"&&e.type===Qe.dateTime)}var Oi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qr(e){var t={};return e.replace(Qr,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var jr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function eo(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(jr).filter(function(d){return d.length>0}),n=[],i=0,r=t;i<r.length;i++){var o=r[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var f=c[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function to(e){return e.replace(/^(.*?)-/,"")}var Bn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ri=/^(@+)?(\+|#+)?[rs]?$/g,no=/(\*)(0+)|(#+)(0+)|(0+)/g,Ni=/^(0+)$/;function Fn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ri,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function Ii(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function io(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ni.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $n(e){var t={},n=Ii(e);return n||t}function ro(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=to(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),r.options.reduce(function(u,l){return q(q({},u),$n(l))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),r.options.reduce(function(u,l){return q(q({},u),$n(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(no,function(u,l,c,f,d,h){if(l)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ni.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Bn.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Bn,function(u,l,c,f,d,h){return c==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=r.options[0];o==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=q(q({},t),Fn(o)));continue}if(Ri.test(r.stem)){t=q(q({},t),Fn(r.stem));continue}var s=Ii(r.stem);s&&(t=q(q({},t),s));var a=io(r.stem);a&&(t=q(q({},t),a))}return t}var At={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oo(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=so(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else r==="J"?n+="H":n+=r}return n}function so(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=At[i||""]||At[n||""]||At["".concat(n,"-001")]||At["001"];return r[0]}var en,ao=new RegExp("^".concat(Oi.source,"*")),lo=new RegExp("".concat(Oi.source,"*$"));function Z(e,t){return{start:e,end:t}}var uo=!!String.prototype.startsWith&&"_a".startsWith("a",1),co=!!String.fromCodePoint,fo=!!Object.fromEntries,ho=!!String.prototype.codePointAt,mo=!!String.prototype.trimStart,go=!!String.prototype.trimEnd,po=!!Number.isSafeInteger,_o=po?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fn=!0;try{var vo=Hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fn=((en=vo.exec("a"))===null||en===void 0?void 0:en[0])==="a"}catch{fn=!1}var Gn=uo?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},dn=co?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,o=0,s;r>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Un=fo?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var o=r[i],s=o[0],a=o[1];n[s]=a}return n},Di=ho?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),o;return r<55296||r>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},yo=mo?function(t){return t.trimStart()}:function(t){return t.replace(ao,"")},bo=go?function(t){return t.trimEnd()}:function(t){return t.replace(lo,"")};function Hi(e,t){return new RegExp(e,t)}var hn;if(fn){var Vn=Hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hn=function(t,n){var i;Vn.lastIndex=n;var r=Vn.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else hn=function(t,n){for(var i=[];;){var r=Di(t,n);if(r===void 0||Pi(r)||xo(r))break;i.push(r),n+=r>=65536?2:1}return dn.apply(void 0,i)};var wo=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;r.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:le.pound,location:Z(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(W.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&mn(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;r.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;r.push(s.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:le.literal,value:"<".concat(r,"/>"),location:Z(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mn(this.char()))return this.error(W.INVALID_TAG,Z(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return r!==l?this.error(W.UNMATCHED_CLOSING_TAG,Z(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:le.tag,value:r,children:s,location:Z(i,this.clonePosition())},err:null}:this.error(W.INVALID_TAG,Z(a,this.clonePosition())))}else return this.error(W.UNCLOSED_TAG,Z(i,this.clonePosition()))}else return this.error(W.INVALID_TAG,Z(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&To(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(n);if(o){r+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){r+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var u=Z(i,this.clonePosition());return{val:{type:le.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Eo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return dn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),dn(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(W.EMPTY_ARGUMENT,Z(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(W.MALFORMED_ARGUMENT,Z(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:le.argument,value:r,location:Z(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(W.MALFORMED_ARGUMENT,Z(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=hn(this.message,n),r=n+i.length;this.bumpTo(r);var o=this.clonePosition(),s=Z(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,n,i,r){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(W.EXPECT_ARGUMENT_TYPE,Z(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=bo(f.val);if(d.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));var h=Z(c,this.clonePosition());l={style:d,styleLocation:h}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var _=Z(r,this.clonePosition());if(l&&Gn(l==null?void 0:l.style,"::",0)){var y=yo(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(y,l.styleLocation);return f.err?f:{val:{type:le.number,value:i,location:_,style:f.val},err:null}}else{if(y.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,_);var g=y;this.locale&&(g=oo(y,this.locale));var d={type:Qe.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?qr(g):{}},E=a==="date"?le.date:le.time;return{val:{type:E,value:i,location:_,style:d},err:null}}}return{val:{type:a==="number"?le.number:a==="date"?le.date:le.time,value:i,location:_,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var L=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(L,q({},L)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),I=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),O=this.parseIdentifierIfPossible(),I=f.val}var Y=this.tryParsePluralOrSelectOptions(t,a,n,O);if(Y.err)return Y;var p=this.tryParseArgumentClose(r);if(p.err)return p;var de=Z(r,this.clonePosition());return a==="select"?{val:{type:le.select,value:i,options:Un(Y.val),location:de},err:null}:{val:{type:le.plural,value:i,options:Un(Y.val),offset:I,pluralType:a==="plural"?"cardinal":"ordinal",location:de},err:null}}default:return this.error(W.INVALID_ARGUMENT_TYPE,Z(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(W.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=eo(t)}catch{return this.error(W.INVALID_NUMBER_SKELETON,n)}return{val:{type:Qe.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?ro(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var o,s=!1,a=[],u=new Set,l=r.value,c=r.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_SELECTOR,W.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Z(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:W.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,i);if(p.err)return p;var _=this.tryParseArgumentClose(h);if(_.err)return _;a.push([l,{value:p.val,location:Z(h,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return a.length===0?this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR:W.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(W.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=Z(r,this.clonePosition());return o?(s*=i,_o(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Di(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Gn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function mn(e){return e>=97&&e<=122||e>=65&&e<=90}function Eo(e){return mn(e)||e===47}function To(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Pi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function xo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function gn(e){e.forEach(function(t){if(delete t.location,Ci(t)||Li(t))for(var n in t.options)delete t.options[n].location,gn(t.options[n].value);else Ti(t)&&Ai(t.style)||(xi(t)||ki(t))&&cn(t.style)?delete t.style.location:Si(t)&&gn(t.children)})}function ko(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new wo(e,t).parse();if(n.err){var i=SyntaxError(W[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||gn(n.val),n.val}function tn(e,t){var n=t&&t.cache?t.cache:Ro,i=t&&t.serializer?t.serializer:Oo,r=t&&t.strategy?t.strategy:Lo;return r(e,{cache:n,serializer:i})}function Co(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Mi(e,t,n,i){var r=Co(i)?i:n(i),o=t.get(r);return typeof o>"u"&&(o=e.call(this,i),t.set(r,o)),o}function Bi(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return typeof o>"u"&&(o=e.apply(this,i),t.set(r,o)),o}function wn(e,t,n,i,r){return n.bind(t,e,i,r)}function Lo(e,t){var n=e.length===1?Mi:Bi;return wn(e,this,n,t.cache.create(),t.serializer)}function So(e,t){return wn(e,this,Bi,t.cache.create(),t.serializer)}function Ao(e,t){return wn(e,this,Mi,t.cache.create(),t.serializer)}var Oo=function(){return JSON.stringify(arguments)};function En(){this.cache=Object.create(null)}En.prototype.get=function(e){return this.cache[e]};En.prototype.set=function(e,t){this.cache[e]=t};var Ro={create:function(){return new En}},nn={variadic:So,monadic:Ao},qe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(qe||(qe={}));var Kt=function(e){zt(t,e);function t(n,i,r){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=r,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),zn=function(e){zt(t,e);function t(n,i,r,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),qe.INVALID_VALUE,o)||this}return t}(Kt),No=function(e){zt(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),qe.INVALID_VALUE,r)||this}return t}(Kt),Io=function(e){zt(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),qe.MISSING_VALUE,i)||this}return t}(Kt),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function Do(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==pe.literal||n.type!==pe.literal?t.push(n):i.value+=n.value,t},[])}function Ho(e){return typeof e=="function"}function It(e,t,n,i,r,o,s){if(e.length===1&&Mn(e[0]))return[{type:pe.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Mn(c)){a.push({type:pe.literal,value:c.value});continue}if(Yr(c)){typeof o=="number"&&a.push({type:pe.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(r&&f in r))throw new Io(f,s);var d=r[f];if(Zr(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?pe.literal:pe.object,value:d});continue}if(xi(c)){var h=typeof c.style=="string"?i.date[c.style]:cn(c.style)?c.style.parsedOptions:void 0;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(ki(c)){var h=typeof c.style=="string"?i.time[c.style]:cn(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(Ti(c)){var h=typeof c.style=="string"?i.number[c.style]:Ai(c.style)?c.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),a.push({type:pe.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(Si(c)){var p=c.children,_=c.value,y=r[_];if(!Ho(y))throw new No(_,"function",s);var g=It(p,t,n,i,r,o),E=y(g.map(function(I){return I.value}));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map(function(I){return{type:typeof I=="string"?pe.literal:pe.object,value:I}}))}if(Ci(c)){var L=c.options[d]||c.options.other;if(!L)throw new zn(c.value,d,Object.keys(c.options),s);a.push.apply(a,It(L.value,t,n,i,r));continue}if(Li(c)){var L=c.options["=".concat(d)];if(!L){if(!Intl.PluralRules)throw new Kt(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,qe.MISSING_INTL_API,s);var O=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));L=c.options[O]||c.options.other}if(!L)throw new
|
|
3
|
+
`,qe.MISSING_INTL_API,s);var O=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));L=c.options[O]||c.options.other}if(!L)throw new zn(c.value,d,Object.keys(c.options),s);a.push.apply(a,It(L.value,t,n,i,r,d-(c.offset||0)));continue}}return Do(a)}function Po(e,t){return t?q(q(q({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=q(q({},e[i]),t[i]||{}),n},{})):e}function Mo(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Po(e[i],t[i]),n},q({},e)):e}function rn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Bo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tn(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,jt([void 0],n,!1)))},{cache:rn(e.number),strategy:nn.variadic}),getDateTimeFormat:tn(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,jt([void 0],n,!1)))},{cache:rn(e.dateTime),strategy:nn.variadic}),getPluralRules:tn(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,jt([void 0],n,!1)))},{cache:rn(e.pluralRules),strategy:nn.variadic})}}var Fi=function(){function e(t,n,i,r){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(f,d){return!f.length||d.type!==pe.literal||typeof f[f.length-1]!="string"?f.push(d.value):f[f.length-1]+=d.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return It(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=r||{};s.formatters;var a=Xr(s,["formatters"]);this.ast=e.__parse(t,q(q({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mo(e.formats,i),this.formatters=r&&r.formatters||Bo(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ko,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Fo(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let i=e;for(let r=0;r<n.length;r++)if(typeof i=="object"){if(r>0){const o=n.slice(r,n.length).join(".");if(o in i){i=i[o];break}}i=i[n[r]]}else i=void 0;return i}const Ie={},$o=(e,t,n)=>n&&(t in Ie||(Ie[t]={}),e in Ie[t]||(Ie[t][e]=n),n),$i=(e,t)=>{if(t==null)return;if(t in Ie&&e in Ie[t])return Ie[t][e];const n=Ct(t);for(let i=0;i<n.length;i++){const r=n[i],o=Uo(r,e);if(o)return $o(e,t,o)}};let Tn;const nt=me({});function Go(e){return Tn[e]||null}function xn(e){return e in Tn}function Uo(e,t){if(!xn(e))return null;const n=Go(e);return Fo(n,t)}function Vo(e){if(e==null)return;const t=Ct(e);for(let n=0;n<t.length;n++){const i=t[n];if(xn(i))return i}}function zo(e,...t){delete Ie[e],nt.update(n=>(n[e]=Jr.all([n[e]||{},...t]),n))}tt([nt],([e])=>Object.keys(e));nt.subscribe(e=>Tn=e);const ht={};function Ko(e){ht[e]=new Set}function Wo(e,t){ht[e].delete(t),ht[e].size===0&&delete ht[e]}function mt(e){return ht[e]}function Jo(e){return Ct(e).map(t=>{const n=mt(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Mt(e){return e==null?!1:Ct(e).some(t=>{var n;return(n=mt(t))==null?void 0:n.size})}function Xo(e,t){return Promise.all(t.map(i=>(Wo(e,i),i().then(r=>r.default||r)))).then(i=>zo(e,...i))}const at={};function Gi(e){if(!Mt(e))return e in at?at[e]:Promise.resolve();const t=Jo(e);return at[e]=Promise.all(t.map(([n,i])=>Xo(n,i))).then(()=>{if(Mt(e))return Gi(e);delete at[e]}),at[e]}function Kn(e,t){mt(e)||Ko(e);const n=mt(e);mt(e).has(t)||(xn(e)||nt.update(i=>(i[e]={},i)),n.add(t))}var Wn=Object.getOwnPropertySymbols,Zo=Object.prototype.hasOwnProperty,Yo=Object.prototype.propertyIsEnumerable,Qo=(e,t)=>{var n={};for(var i in e)Zo.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Wn)for(var i of Wn(e))t.indexOf(i)<0&&Yo.call(e,i)&&(n[i]=e[i]);return n};const qo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function jo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Ct(e).join('", "')}".${Mt(De())?`
|
|
4
4
|
|
|
5
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const qo={fallbackLocale:null,loadingDelay:200,formats:Yo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ut=qo;function je(){return ut}function jo(e){const t=e,{formats:n}=t,i=Zo(t,["formats"]);let r=e.fallbackLocale;if(e.initialLocale)try{Mi.resolveLocale(e.initialLocale)&&(r=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=Qo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ut,i,{initialLocale:r}),n&&("number"in n&&Object.assign(ut.formats.number,n.number),"date"in n&&Object.assign(ut.formats.date,n.date),"time"in n&&Object.assign(ut.formats.time,n.time)),it.set(r)}const It=me(!1);var es=Object.defineProperty,ts=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,os=(e,t)=>{for(var n in t||(t={}))is.call(t,n)&&Xn(e,n,t[n]);if(Wn)for(var n of Wn(t))rs.call(t,n)&&Xn(e,n,t[n]);return e},ss=(e,t)=>ts(e,ns(t));let gn;const Pt=me(null);function Jn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function kt(e,t=je().fallbackLocale){const n=Jn(e);return t?[...new Set([...n,...Jn(t)])]:n}function He(){return gn??void 0}Pt.subscribe(e=>{gn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const as=e=>{if(e&&Go(e)&&Ht(e)){const{loadingDelay:t}=je();let n;return typeof window<"u"&&He()!=null&&t?n=window.setTimeout(()=>It.set(!0),t):It.set(!0),Fi(e).then(()=>{Pt.set(e)}).finally(()=>{clearTimeout(n),It.set(!1)})}return Pt.set(e)},it=ss(os({},Pt),{set:as}),zt=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var ls=Object.defineProperty,Mt=Object.getOwnPropertySymbols,$i=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Zn=(e,t,n)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t)=>{for(var n in t||(t={}))$i.call(t,n)&&Zn(e,n,t[n]);if(Mt)for(var n of Mt(t))Gi.call(t,n)&&Zn(e,n,t[n]);return e},rt=(e,t)=>{var n={};for(var i in e)$i.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Mt)for(var i of Mt(e))t.indexOf(i)<0&&Gi.call(e,i)&&(n[i]=e[i]);return n};const vt=(e,t)=>{const{formats:n}=je();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},us=zt(e=>{var t=e,{locale:n,format:i}=t,r=rt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=vt("number",i)),new Intl.NumberFormat(n,r)}),cs=zt(e=>{var t=e,{locale:n,format:i}=t,r=rt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=vt("date",i):Object.keys(r).length===0&&(r=vt("date","short")),new Intl.DateTimeFormat(n,r)}),fs=zt(e=>{var t=e,{locale:n,format:i}=t,r=rt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=vt("time",i):Object.keys(r).length===0&&(r=vt("time","short")),new Intl.DateTimeFormat(n,r)}),ds=(e={})=>{var t=e,{locale:n=He()}=t,i=rt(t,["locale"]);return us(xn({locale:n},i))},hs=(e={})=>{var t=e,{locale:n=He()}=t,i=rt(t,["locale"]);return cs(xn({locale:n},i))},ms=(e={})=>{var t=e,{locale:n=He()}=t,i=rt(t,["locale"]);return fs(xn({locale:n},i))},gs=zt((e,t=He())=>new Mi(e,t,je().formats,{ignoreTag:je().ignoreTag})),ps=(e,t={})=>{var n,i,r,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=He(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Bi(e,u);if(!c)c=(o=(r=(i=(n=je()).handleMissingMessage)==null?void 0:i.call(n,{locale:u,id:e,defaultValue:l}))!=null?r:l)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let f=c;try{f=gs(c,u).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},_s=(e,t)=>ms(t).format(e),vs=(e,t)=>hs(t).format(e),ys=(e,t)=>ds(t).format(e),bs=(e,t=He())=>Bi(e,t),Ee=tt([it,nt],()=>ps);tt([it],()=>_s);tt([it],()=>vs);tt([it],()=>ys);tt([it,nt],()=>bs);var Ve=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{l(i.next(c))}catch(f){s(f)}}function u(c){try{l(i.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};const ws="https://localhost/api/v3".replace(/\/+$/,"");class kn{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:ws}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Ui}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:()=>Ve(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Es=new kn;class Kt{constructor(t=Es){this.configuration=t,this.fetchApi=(n,i)=>Ve(this,void 0,void 0,function*(){let r={url:n,init:i};for(const s of this.middleware)s.pre&&(r=(yield s.pre(Object.assign({fetch:this.fetchApi},r)))||r);let o;try{o=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(s){for(const a of this.middleware)a.onError&&(o=(yield a.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:s,response:o?o.clone():void 0}))||o);if(o===void 0)throw s instanceof Error?new Cs(s,"The request failed and the interceptors did not return an alternative response"):s}for(const s of this.middleware)s.post&&(o=(yield s.post({fetch:this.fetchApi,url:r.url,init:r.init,response:o.clone()}))||o);return o}),this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(i=>({pre:i}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(i=>({post:i}));return this.withMiddleware(...n)}isJsonMime(t){return t?Kt.jsonRegex.test(t):!1}request(t,n){return Ve(this,void 0,void 0,function*(){const{url:i,init:r}=yield this.createFetchParams(t,n),o=yield this.fetchApi(i,r);if(o&&o.status>=200&&o.status<300)return o;throw new ks(o,"Response returned an error code")})}createFetchParams(t,n){return Ve(this,void 0,void 0,function*(){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const r=Object.assign({},this.configuration.headers,t.headers);Object.keys(r).forEach(l=>r[l]===void 0?delete r[l]:{});const o=typeof n=="function"?n:()=>Ve(this,void 0,void 0,function*(){return n}),s={method:t.method,headers:r,body:t.body,credentials:this.configuration.credentials},a=Object.assign(Object.assign({},s),yield o({init:s,context:t})),u=Object.assign(Object.assign({},a),{body:xs(a.body)||a.body instanceof URLSearchParams||Ts(a.body)?a.body:JSON.stringify(a.body)});return{url:i,init:u}})}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}}Kt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function Ts(e){return typeof Blob<"u"&&e instanceof Blob}function xs(e){return typeof FormData<"u"&&e instanceof FormData}class ks extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class Cs extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class Yn extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}function m(e,t){const n=e[t];return n!=null}function Ui(e,t=""){return Object.keys(e).map(n=>Vi(n,e[n],t)).filter(n=>n.length>0).join("&")}function Vi(e,t,n=""){const i=n+(n.length?`[${e}]`:e);if(t instanceof Array){const r=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(t instanceof Set){const r=Array.from(t);return Vi(e,r,n)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Ui(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}class oe{constructor(t,n=i=>i){this.raw=t,this.transformer=n}value(){return Ve(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function Ls(e){return Ss(e)}function Ss(e,t){return e==null?e:{departmentid:m(e,"departmentid")?e.departmentid:void 0,onlineStatus:m(e,"online_status")?e.online_status:void 0,presetStatus:m(e,"preset_status")?e.preset_status:void 0}}function As(e){return Os(e)}function Os(e,t){return e==null?e:{agentid:m(e,"agentid")?e.agentid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,username:m(e,"username")?e.username:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,roleid:m(e,"roleid")?e.roleid:void 0,departmentsStatuses:m(e,"departments_statuses")?e.departments_statuses.map(Ls):void 0,twofa:m(e,"twofa")?e.twofa:void 0,lastPswdChange:m(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:m(e,"userstatus")?e.userstatus:void 0}}function Rs(e){return Ns(e)}function Ns(e,t){return e==null?e:{conversationid:m(e,"conversationid")?e.conversationid:void 0,datechanged:m(e,"datechanged")?new Date(e.datechanged):void 0,status:m(e,"status")?e.status:void 0,preview:m(e,"preview")?e.preview:void 0,subject:m(e,"subject")?e.subject:void 0,departmentname:m(e,"departmentname")?e.departmentname:void 0,agentname:m(e,"agentname")?e.agentname:void 0,tags:m(e,"tags")?e.tags:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,emails:m(e,"emails")?e.emails:void 0,city:m(e,"city")?e.city:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,rstatus:m(e,"rstatus")?e.rstatus:void 0,statusdatestarted:m(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:m(e,"chat_order")?e.chat_order:void 0}}function Is(e){return Ds(e)}function Ds(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,name:m(e,"name")?e.name:void 0,type:m(e,"type")?e.type:void 0,onlineCode:m(e,"online_code")?e.online_code:void 0,offlineCode:m(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:m(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:m(e,"offline_code_css")?e.offline_code_css:void 0,provide:m(e,"provide")?e.provide:void 0,impressions:m(e,"impressions")?e.impressions:void 0,tickets:m(e,"tickets")?e.tickets:void 0,status:m(e,"status")?e.status:void 0,lastDisplayTime:m(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:m(e,"last_display_url")?e.last_display_url:void 0}}function xe(e){return Hs(e)}function Hs(e,t){return e==null?e:{count:m(e,"count")?e.count:void 0}}function Ps(e){return Ms(e)}function Ms(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,name:m(e,"name")?e.name:void 0,agentCount:m(e,"agent_count")?e.agent_count:void 0}}function Bs(e){return Fs(e)}function Fs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,logid:m(e,"logid")?e.logid:void 0,line:m(e,"line")?e.line:void 0,filename:m(e,"filename")?e.filename:void 0,created:m(e,"created")?e.created:void 0,level:m(e,"level")?e.level:void 0,type:m(e,"type")?e.type:void 0,message:m(e,"message")?e.message:void 0,ip:m(e,"ip")?e.ip:void 0,groupid:m(e,"groupid")?e.groupid:void 0}}function $s(e){return Gs(e)}function Gs(e,t){return e==null?e:{agentid:m(e,"agentid")?e.agentid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,chats:m(e,"chats")?e.chats:void 0}}function Us(e){return Vs(e)}function Vs(e,t){return e==null?e:{name:m(e,"name")?e.name:void 0,code:m(e,"code")?e.code:void 0,engName:m(e,"eng_name")?e.eng_name:void 0,translated:m(e,"translated")?e.translated:void 0,isDefault:m(e,"is_default")?e.is_default:void 0,active:m(e,"active")?e.active:void 0,isCustom:m(e,"is_custom")?e.is_custom:void 0,isBuiltIn:m(e,"is_builtIn")?e.is_builtIn:void 0}}function zs(e){return Ks(e)}function Ks(e,t){return e==null?e:{codeName:m(e,"code_name")?e.code_name:void 0,name:m(e,"name")?e.name:void 0,description:m(e,"description")?e.description:void 0,active:m(e,"active")?e.active:void 0,help:m(e,"help")?e.help:void 0,multiple:m(e,"multiple")?e.multiple:void 0,configFile:m(e,"config_file")?e.config_file:void 0,price:m(e,"price")?e.price:void 0,legacyIntegration:m(e,"legacy_integration")?e.legacy_integration:void 0}}function nn(e){return Ws(e)}function Ws(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,conversationid:m(e,"conversationid")?e.conversationid:void 0,code:m(e,"code")?e.code:void 0,slaTicketId:m(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:m(e,"departmentid")?e.departmentid:void 0,departmentName:m(e,"department_name")?e.department_name:void 0,levelid:m(e,"levelid")?e.levelid:void 0,slaLevelName:m(e,"sla_level_name")?e.sla_level_name:void 0,sla:m(e,"sla")?e.sla:void 0,dateCreated:m(e,"date_created")?e.date_created:void 0,dateClosed:m(e,"date_closed")?e.date_closed:void 0,dateDue:m(e,"date_due")?e.date_due:void 0,slaLevelId:m(e,"sla_level_id")?e.sla_level_id:void 0,slaType:m(e,"sla_type")?new Date(e.sla_type):void 0,agentid:m(e,"agentid")?e.agentid:void 0,agentFirstname:m(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:m(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:m(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:m(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:m(e,"req_firstname")?e.req_firstname:void 0,reqLastname:m(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:m(e,"req_systemname")?e.req_systemname:void 0,reqContactName:m(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:m(e,"req_avatar_url")?e.req_avatar_url:void 0}}function Qn(e){return Xs(e)}function Xs(e,t){return e==null?e:{tagid:m(e,"tagid")?e.tagid:void 0,name:m(e,"name")?e.name:void 0,type:m(e,"type")?e.type:void 0,color:m(e,"color")?e.color:void 0,backgroundcolor:m(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:m(e,"is_public")?e.is_public:void 0}}function zi(e){return Js(e)}function Js(e,t){return e==null?e:{conversationid:m(e,"conversationid")?e.conversationid:void 0,code:m(e,"code")?e.code:void 0,datecreated:m(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:m(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:m(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:m(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:m(e,"rorder")?e.rorder:void 0,datedue:m(e,"datedue")?new Date(e.datedue):void 0,datereopen:m(e,"datereopen")?new Date(e.datereopen):void 0,status:m(e,"status")?e.status:void 0,channelType:m(e,"channel_type")?e.channel_type:void 0,departmentid:m(e,"departmentid")?e.departmentid:void 0,agentid:m(e,"agentid")?e.agentid:void 0,preview:m(e,"preview")?e.preview:void 0,subject:m(e,"subject")?e.subject:void 0,departmentname:m(e,"departmentname")?e.departmentname:void 0,agentname:m(e,"agentname")?e.agentname:void 0,tags:m(e,"tags")?e.tags:void 0,messagegroupsIn:m(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:m(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:m(e,"contactid")?e.contactid:void 0,parentContactid:m(e,"parent_contactid")?e.parent_contactid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,emails:m(e,"emails")?e.emails:void 0,phones:m(e,"phones")?e.phones:void 0,jobPosition:m(e,"job_position")?e.job_position:void 0,contactType:m(e,"contact_type")?e.contact_type:void 0,city:m(e,"city")?e.city:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,timeOffset:m(e,"time_offset")?e.time_offset:void 0,gender:m(e,"gender")?e.gender:void 0,levelid:m(e,"levelid")?e.levelid:void 0,groups:m(e,"groups")?e.groups:void 0,contactStatus:m(e,"contact_status")?e.contact_status:void 0,company:m(e,"company")?e.company:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,userid:m(e,"userid")?e.userid:void 0,roleid:m(e,"roleid")?e.roleid:void 0,userstatus:m(e,"userstatus")?e.userstatus:void 0,accountuserstatus:m(e,"accountuserstatus")?e.accountuserstatus:void 0,description:m(e,"description")?e.description:void 0,note:m(e,"note")?e.note:void 0,lastActivity:m(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:m(e,"tagnames")?e.tagnames:void 0,groupnames:m(e,"groupnames")?e.groupnames:void 0}}function Zs(e){return Ys(e)}function Ys(e,t){return e==null?e:{cursor:m(e,"cursor")?e.cursor:void 0,rows:m(e,"rows")?e.rows.map(zi):void 0}}function Qs(e){return qs(e)}function qs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,agentid:m(e,"agentid")?e.agentid:void 0,agent:m(e,"agent")?e.agent:void 0,conversationid:m(e,"conversationid")?e.conversationid:void 0,ticket:m(e,"ticket")?e.ticket:void 0,parentContactid:m(e,"parent_contactid")?e.parent_contactid:void 0,company:m(e,"company")?e.company:void 0,contactid:m(e,"contactid")?e.contactid:void 0,customer:m(e,"customer")?e.customer:void 0,customerFirstname:m(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:m(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:m(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:m(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:m(e,"reportdate")?e.reportdate:void 0,reportedtime:m(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:m(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:m(e,"spenttime")?e.spenttime:void 0,dateinvoiced:m(e,"dateinvoiced")?e.dateinvoiced:void 0,note:m(e,"note")?e.note:void 0,type:m(e,"type")?e.type:void 0}}var H=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{l(i.next(c))}catch(f){s(f)}}function u(c){try{l(i.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};class Ki extends Kt{getAgentsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/agents",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(As))})}getAgentsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,n)).value()})}getAgentsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/agents/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getAgentsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,n)).value()})}getCallsSlaLogGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/calls/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(nn))})}getCallsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,n)).value()})}getCallsSlaLogGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getCallsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,n)).value()})}getChatsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Rs))})}getChatsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,n)).value()})}getChatsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getChatsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,n)).value()})}getChatsSlaLogGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(nn))})}getChatsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,n)).value()})}getChatsSlaLogGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getChatsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,n)).value()})}getContactWidgetsCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getContactWidgetsCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,n)).value()})}getContactWidgetsListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Is))})}getContactWidgetsList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,n)).value()})}getCustomerGroupsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/customer_groups",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Qn))})}getCustomerGroupsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,n)).value()})}getDepartmensGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/departments/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getDepartmensGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,n)).value()})}getDepartmentsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/departments",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Ps))})}getDepartmentsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,n)).value()})}getEventLogsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/eventlogs",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Bs))})}getEventLogsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,n)).value()})}getEventLogsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getEventLogsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,n)).value()})}getInviteAgentsGridListRaw(t,n){return H(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new Yn("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map($s))})}getInviteAgentsGridList(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,n)).value()})}getLanguagesGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/languages",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Us))})}getLanguagesGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,n)).value()})}getLanguagesGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/languages/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getLanguagesGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,n)).value()})}getPlugindGridListRaw(t,n){return H(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new Yn("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.pluginPurpose!==void 0&&(i.pluginPurpose=t.pluginPurpose);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/plugins",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(zs))})}getPlugindGridList(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,n)).value()})}getTagsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tags",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Qn))})}getTagsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,n)).value()})}getTicketsGridDatasetRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets_new",method:"GET",headers:r,query:i},n);return new oe(o,s=>Zs(s))})}getTicketsGridDataset(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,n)).value()})}getTicketsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(zi))})}getTicketsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,n)).value()})}getTicketsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTicketsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,n)).value()})}getTicketsSlaLogGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(nn))})}getTicketsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,n)).value()})}getTicketsSlaLogGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTicketsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,n)).value()})}getTimeReportsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.sortField!==void 0&&(i._sortField=t.sortField),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/reports/time",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Qs))})}getTimeReportsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,n)).value()})}getTimeReportsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTimeReportsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,n)).value()})}}const qn={Asc:"ASC",Desc:"DESC"},lt={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},js={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},We=me(!1),Cn=me([]),Bt=me(null),yt=me(null),Xe=me(!1),mt=me(!1),Wi=me({}),ye=me([]),Xi=me(null),Fe=me(null),Wt=me(!0),Ln=me(js.Rorder),ea="modulepreload",ta=function(e){return"/"+e},jn={},b=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=ta(o),o in jn)return;jn[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===o&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":ea,s||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),s)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},ei=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((i,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rn="en-US",ti="S",Ji="N",Zi="C",pn="D",na="A";let Se;function ia(e){Se===void 0&&(Se=e,zn(rn,()=>ei(Object.assign({"../../locales/ar-SA.json":()=>b(()=>import("./ar-SA.js"),[]),"../../locales/bg-BG.json":()=>b(()=>import("./bg-BG.js"),[]),"../../locales/bs-BA.json":()=>b(()=>import("./bs-BA.js"),[]),"../../locales/ca-ES.json":()=>b(()=>import("./ca-ES.js"),[]),"../../locales/cs-CZ.json":()=>b(()=>import("./cs-CZ.js"),[]),"../../locales/da-DK.json":()=>b(()=>import("./da-DK.js"),[]),"../../locales/de-DE.json":()=>b(()=>import("./de-DE.js"),[]),"../../locales/el-GR.json":()=>b(()=>import("./el-GR.js"),[]),"../../locales/en-US.json":()=>b(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>b(()=>import("./en.js"),[]),"../../locales/es-ES.json":()=>b(()=>import("./es-ES.js"),[]),"../../locales/et-EE.json":()=>b(()=>import("./et-EE.js"),[]),"../../locales/fa-IR.json":()=>b(()=>import("./fa-IR.js"),[]),"../../locales/fi-FI.json":()=>b(()=>import("./fi-FI.js"),[]),"../../locales/fil-PH.json":()=>b(()=>import("./fil-PH.js"),[]),"../../locales/fr-FR.json":()=>b(()=>import("./fr-FR.js"),[]),"../../locales/he-IL.json":()=>b(()=>import("./he-IL.js"),[]),"../../locales/hr-HR.json":()=>b(()=>import("./hr-HR.js"),[]),"../../locales/hu-HU.json":()=>b(()=>import("./hu-HU.js"),[]),"../../locales/id-ID.json":()=>b(()=>import("./id-ID.js"),[]),"../../locales/it-IT.json":()=>b(()=>import("./it-IT.js"),[]),"../../locales/ja-JP.json":()=>b(()=>import("./ja-JP.js"),[]),"../../locales/ko-KR.json":()=>b(()=>import("./ko-KR.js"),[]),"../../locales/lt-LT.json":()=>b(()=>import("./lt-LT.js"),[]),"../../locales/lv-LV.json":()=>b(()=>import("./lv-LV.js"),[]),"../../locales/me-ME.json":()=>b(()=>import("./me-ME.js"),[]),"../../locales/mk-MK.json":()=>b(()=>import("./mk-MK.js"),[]),"../../locales/ms-MY.json":()=>b(()=>import("./ms-MY.js"),[]),"../../locales/nl-NL.json":()=>b(()=>import("./nl-NL.js"),[]),"../../locales/no-NO.json":()=>b(()=>import("./no-NO.js"),[]),"../../locales/pl-PL.json":()=>b(()=>import("./pl-PL.js"),[]),"../../locales/pt-BR.json":()=>b(()=>import("./pt-BR.js"),[]),"../../locales/ro-RO.json":()=>b(()=>import("./ro-RO.js"),[]),"../../locales/ru-RU.json":()=>b(()=>import("./ru-RU.js"),[]),"../../locales/sk-SK.json":()=>b(()=>import("./sk-SK.js"),[]),"../../locales/sl-SI.json":()=>b(()=>import("./sl-SI.js"),[]),"../../locales/sr-CS.json":()=>b(()=>import("./sr-CS.js"),[]),"../../locales/sv-SE.json":()=>b(()=>import("./sv-SE.js"),[]),"../../locales/th-TH.json":()=>b(()=>import("./th-TH.js"),[]),"../../locales/tl-PH.json":()=>b(()=>import("./tl-PH.js"),[]),"../../locales/tr-TR.json":()=>b(()=>import("./tr-TR.js"),[]),"../../locales/uk-UA.json":()=>b(()=>import("./uk-UA.js"),[]),"../../locales/vi-VN.json":()=>b(()=>import("./vi-VN.js"),[]),"../../locales/vls-BE.json":()=>b(()=>import("./vls-BE.js"),[]),"../../locales/zh-CN.json":()=>b(()=>import("./zh-CN.js"),[]),"../../locales/zh-TW.json":()=>b(()=>import("./zh-TW.js"),[])}),`../../locales/${rn}.json`)),zn(Se.locale,()=>ei(Object.assign({"../../locales/ar-SA.json":()=>b(()=>import("./ar-SA.js"),[]),"../../locales/bg-BG.json":()=>b(()=>import("./bg-BG.js"),[]),"../../locales/bs-BA.json":()=>b(()=>import("./bs-BA.js"),[]),"../../locales/ca-ES.json":()=>b(()=>import("./ca-ES.js"),[]),"../../locales/cs-CZ.json":()=>b(()=>import("./cs-CZ.js"),[]),"../../locales/da-DK.json":()=>b(()=>import("./da-DK.js"),[]),"../../locales/de-DE.json":()=>b(()=>import("./de-DE.js"),[]),"../../locales/el-GR.json":()=>b(()=>import("./el-GR.js"),[]),"../../locales/en-US.json":()=>b(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>b(()=>import("./en.js"),[]),"../../locales/es-ES.json":()=>b(()=>import("./es-ES.js"),[]),"../../locales/et-EE.json":()=>b(()=>import("./et-EE.js"),[]),"../../locales/fa-IR.json":()=>b(()=>import("./fa-IR.js"),[]),"../../locales/fi-FI.json":()=>b(()=>import("./fi-FI.js"),[]),"../../locales/fil-PH.json":()=>b(()=>import("./fil-PH.js"),[]),"../../locales/fr-FR.json":()=>b(()=>import("./fr-FR.js"),[]),"../../locales/he-IL.json":()=>b(()=>import("./he-IL.js"),[]),"../../locales/hr-HR.json":()=>b(()=>import("./hr-HR.js"),[]),"../../locales/hu-HU.json":()=>b(()=>import("./hu-HU.js"),[]),"../../locales/id-ID.json":()=>b(()=>import("./id-ID.js"),[]),"../../locales/it-IT.json":()=>b(()=>import("./it-IT.js"),[]),"../../locales/ja-JP.json":()=>b(()=>import("./ja-JP.js"),[]),"../../locales/ko-KR.json":()=>b(()=>import("./ko-KR.js"),[]),"../../locales/lt-LT.json":()=>b(()=>import("./lt-LT.js"),[]),"../../locales/lv-LV.json":()=>b(()=>import("./lv-LV.js"),[]),"../../locales/me-ME.json":()=>b(()=>import("./me-ME.js"),[]),"../../locales/mk-MK.json":()=>b(()=>import("./mk-MK.js"),[]),"../../locales/ms-MY.json":()=>b(()=>import("./ms-MY.js"),[]),"../../locales/nl-NL.json":()=>b(()=>import("./nl-NL.js"),[]),"../../locales/no-NO.json":()=>b(()=>import("./no-NO.js"),[]),"../../locales/pl-PL.json":()=>b(()=>import("./pl-PL.js"),[]),"../../locales/pt-BR.json":()=>b(()=>import("./pt-BR.js"),[]),"../../locales/ro-RO.json":()=>b(()=>import("./ro-RO.js"),[]),"../../locales/ru-RU.json":()=>b(()=>import("./ru-RU.js"),[]),"../../locales/sk-SK.json":()=>b(()=>import("./sk-SK.js"),[]),"../../locales/sl-SI.json":()=>b(()=>import("./sl-SI.js"),[]),"../../locales/sr-CS.json":()=>b(()=>import("./sr-CS.js"),[]),"../../locales/sv-SE.json":()=>b(()=>import("./sv-SE.js"),[]),"../../locales/th-TH.json":()=>b(()=>import("./th-TH.js"),[]),"../../locales/tl-PH.json":()=>b(()=>import("./tl-PH.js"),[]),"../../locales/tr-TR.json":()=>b(()=>import("./tr-TR.js"),[]),"../../locales/uk-UA.json":()=>b(()=>import("./uk-UA.js"),[]),"../../locales/vi-VN.json":()=>b(()=>import("./vi-VN.js"),[]),"../../locales/vls-BE.json":()=>b(()=>import("./vls-BE.js"),[]),"../../locales/zh-CN.json":()=>b(()=>import("./zh-CN.js"),[]),"../../locales/zh-TW.json":()=>b(()=>import("./zh-TW.js"),[])}),`../../locales/${Se.locale}.json`)),jo({fallbackLocale:rn,initialLocale:Se.locale}))}function ra(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function At(e){return ra(new Date(e))}function oa(){return Se.dateFormat.toUpperCase()}function sa(){return Se.timeFormat}function aa(){return oa()+" "+sa()}function ze(e){return la(e,2)}function la(e,t){let n="";return fa(t).formatToParts(e).forEach(i=>{i.type==="group"?n+=ua():i.type==="decimal"?n+=ca():n+=i.value}),n}function ua(){let e=Se.thousandsSeparator;switch(e==null&&(e=ti),e){case Zi:return",";case ti:return" ";case pn:return".";case na:return"'";case Ji:case"":return" ";default:return e}}function ca(){let e=Se.decimalSeparator;switch(e==null&&(e=pn),e){case Zi:return",";case Ji:case pn:return".";default:return e}}function fa(e){return new Intl.NumberFormat(Se.locale,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function da(e){ue(e,"svelte-mupm4a",".Counter.svelte-mupm4a{display:none}span.svelte-mupm4a{margin-right:5px}.Selection.svelte-mupm4a{color:var(--ticket-selected-textcolor);background-color:var(--ticket-selected-bg);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:20px}.text.svelte-mupm4a{font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-mupm4a{color:var(--main-textcolor);padding:2px 12px;border:1px solid var(--menu-hover-bg);border-radius:4px;font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px;cursor:pointer}.many.loading.svelte-mupm4a{border:none;padding:2px 0}@media(min-width: 768px){.Counter.svelte-mupm4a{display:block}}")}function ha(e){let t,n=e[5]("Displaying %count of %allCount",{values:{count:ze(e[7].length),allCount:ze(e[0])}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","text svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&161&&n!==(n=r[5]("Displaying %count of %allCount",{values:{count:ze(r[7].length),allCount:ze(r[0])}})+"")&&se(i,n)},d(r){r&&R(t)}}}function ma(e){let t,n=e[5]("Displaying %count of",{values:{count:ze(e[7].length)}})+"",i,r,o,s=(e[1]?e[5]("Loading..."):e[5]("many"))+"",a,u,l,c;return{c(){t=x("span"),i=j(n),r=V(),o=x("span"),a=j(s),v(t,"class","text svelte-mupm4a"),v(o,"class",u=ce(e[2])+" svelte-mupm4a")},m(f,d){N(f,t,d),w(t,i),N(f,r,d),N(f,o,d),w(o,a),l||(c=he(o,"click",e[8]),l=!0)},p(f,d){d&160&&n!==(n=f[5]("Displaying %count of",{values:{count:ze(f[7].length)}})+"")&&se(i,n),d&34&&s!==(s=(f[1]?f[5]("Loading..."):f[5]("many"))+"")&&se(a,s),d&4&&u!==(u=ce(f[2])+" svelte-mupm4a")&&v(o,"class",u)},d(f){f&&(R(t),R(r),R(o)),l=!1,c()}}}function ga(e){let t,n=e[5]("Loading...")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","text svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&32&&n!==(n=r[5]("Loading...")+"")&&se(i,n)},d(r){r&&R(t)}}}function pa(e){let t;function n(o,s){return o[3]?va:_a}let i=n(e),r=i(e);return{c(){r.c(),t=xt()},m(o,s){r.m(o,s),N(o,t,s)},p(o,s){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){o&&R(t),r.d(o)}}}function _a(e){let t,n=e[5]("%pCount rows selected",{values:{pCount:e[4].length}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&48&&n!==(n=r[5]("%pCount rows selected",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&R(t)}}}function va(e){let t;function n(o,s){return o[4].length>0?ba:ya}let i=n(e),r=i(e);return{c(){r.c(),t=xt()},m(o,s){r.m(o,s),N(o,t,s)},p(o,s){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){o&&R(t),r.d(o)}}}function ya(e){let t,n=e[5]("all rows selected")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&32&&n!==(n=r[5]("all rows selected")+"")&&se(i,n)},d(r){r&&R(t)}}}function ba(e){let t,n=e[5]("all rows selected except %pCount rows",{values:{pCount:e[4].length}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&48&&n!==(n=r[5]("all rows selected except %pCount rows",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&R(t)}}}function wa(e){let t;function n(o,s){return o[3]||o[4].length>0?pa:o[6]?ga:o[0]==null?ma:ha}let i=n(e),r=i(e);return{c(){t=x("div"),r.c(),v(t,"class","Counter svelte-mupm4a")},m(o,s){N(o,t,s),r.m(t,null)},p(o,[s]){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t,null)))},i:X,o:X,d(o){o&&R(t),r.d()}}}function Ea(e,t,n){let i,r,o,s,a,u,l;K(e,yt,_=>n(9,i=_)),K(e,Bt,_=>n(10,r=_)),K(e,We,_=>n(3,o=_)),K(e,Cn,_=>n(4,s=_)),K(e,Ee,_=>n(5,a=_)),K(e,Xe,_=>n(6,u=_)),K(e,ye,_=>n(7,l=_));let c=null,f=!1,d="many";function h(){n(0,c=null)}async function p(){n(2,d="many loading"),n(1,f=!0);let _=await r.getTicketsGridListCount({filters:i,timezoneOffset:new Date().getTimezoneOffset()});n(0,c=_.count),n(1,f=!1)}return e.$$.update=()=>{e.$$.dirty&512&&i&&h()},[c,f,d,o,s,a,u,l,p,i]}class Ta extends re{constructor(t){super(),ie(this,t,Ea,wa,te,{},da)}}async function et(e=!1){if(!(ke(Xe)||!ke(Bt))&&(e&&(Fe.set(null),mt.set(!1)),!(!ke(Fe)&&ke(mt)))){Xe.set(!0);try{const n=await(await ke(Bt).getTicketsGridDatasetRaw(xa())).value();e&&ye.set([]),ye.set([...ke(ye),...n.rows]),Fe.set(n.cursor),mt.set(!0)}catch(t){Xi.set(t.toString())}Xe.set(!1)}}function xa(){return{perPage:20,sortDir:ke(Wt)?qn.Asc:qn.Desc,filters:ke(yt),sortField:ke(Ln),cursor:ke(Fe)?ke(Fe):""}}function ka(e){ue(e,"svelte-oyjuek",".Head.svelte-oyjuek.svelte-oyjuek{display:flex;position:sticky;top:0;color:var(--panel_text_color);margin-bottom:20px;align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--main-lighter-textcolor);padding:0 23px 6px 44px}.FilterIcon{font-size:20px;margin-right:2px}.headCheckbox.svelte-oyjuek.svelte-oyjuek{width:20px;margin-right:16px}.headCheckbox.svelte-oyjuek input[type=checkbox].svelte-oyjuek{vertical-align:middle;cursor:pointer;margin:3px}button.svelte-oyjuek.svelte-oyjuek{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-oyjuek.svelte-oyjuek{font-size:16px;cursor:pointer}.rightPanel.svelte-oyjuek.svelte-oyjuek{display:flex;margin-inline-start:auto}.Sorting.svelte-oyjuek.svelte-oyjuek{cursor:pointer;text-align:left;font-weight:bold}.loading.svelte-oyjuek.svelte-oyjuek{animation-name:svelte-oyjuek-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes svelte-oyjuek-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.headCheckbox.svelte-oyjuek.svelte-oyjuek{margin-right:42px}}")}function Ca(e){let t,n,i,r,o,s,a,u,l,c,f,d,h,p,_,y,g,E,L,O;return o=new Oe({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),c=new Oe({props:{iconLaClassName:"la-show"}}),h=new Ta({}),y=new Oe({props:{iconLaClassName:"la-refresh"}}),{c(){t=x("div"),n=x("div"),i=x("input"),r=V(),G(o.$$.fragment),s=V(),a=x("button"),u=j(e[0]),l=V(),G(c.$$.fragment),f=V(),d=x("div"),G(h.$$.fragment),p=V(),_=x("button"),G(y.$$.fragment),v(i,"type","checkbox"),v(i,"class","svelte-oyjuek"),v(n,"class","headCheckbox svelte-oyjuek"),v(a,"class","Sorting svelte-oyjuek"),v(_,"class","spinner svelte-oyjuek"),v(_,"title",g=e[4]("Reload")),In(_,"loading",e[3]),v(d,"class","rightPanel svelte-oyjuek"),v(t,"class","Head svelte-oyjuek")},m(I,Y){N(I,t,Y),w(t,n),w(n,i),i.checked=e[2],w(t,r),F(o,t,null),w(t,s),w(t,a),w(a,u),e[8](a),w(t,l),F(c,t,null),w(t,f),w(t,d),F(h,d,null),w(d,p),w(d,_),F(y,_,null),E=!0,L||(O=[he(i,"change",e[7]),he(i,"click",e[5]),he(a,"click",e[6]),he(_,"click",e[9])],L=!0)},p(I,[Y]){Y&4&&(i.checked=I[2]),(!E||Y&1)&&se(u,I[0]),(!E||Y&16&&g!==(g=I[4]("Reload")))&&v(_,"title",g),(!E||Y&8)&&In(_,"loading",I[3])},i(I){E||(T(o.$$.fragment,I),T(c.$$.fragment,I),T(h.$$.fragment,I),T(y.$$.fragment,I),E=!0)},o(I){k(o.$$.fragment,I),k(c.$$.fragment,I),k(h.$$.fragment,I),k(y.$$.fragment,I),E=!1},d(I){I&&R(t),$(o),e[8](null),$(c),$(h),$(y),L=!1,Re(O)}}}function La(e,t,n){let i,r,o;K(e,Wt,y=>n(12,y)),K(e,We,y=>n(2,i=y)),K(e,Xe,y=>n(3,r=y)),K(e,Ee,y=>n(4,o=y));let{currentFilter:s}=t;const a=pi();let u,l,c;function f(){We.set(!i),ye.update(y=>y.map(g=>({...g,__selected:i})))}function d(){u=l.getBoundingClientRect();let g=u.bottom-58,E=u.left-7;window.innerWidth>=768&&(E-=258),c=`position: absolute; top: ${g}px; left: ${E}px;`,a("openModal",{dialogStyles:c})}function h(){i=this.checked,We.set(i)}function p(y){Je[y?"unshift":"push"](()=>{l=y,n(1,l)})}const _=()=>et(!0);return e.$$set=y=>{"currentFilter"in y&&n(0,s=y.currentFilter)},[s,l,i,r,o,f,d,h,p,_]}class Sa extends re{constructor(t){super(),ie(this,t,La,Ca,te,{currentFilter:0},ka)}}function Ie(e){switch(e){case"A":return{bg:"var(--ticket-status-answered-background)",text:"var(--ticket-status-answered-text)",border:"var(--ticket-status-answered-border)"};case"T":return{bg:"var(--ticket-status-chat-background)",text:"var(--ticket-status-chat-text)",border:"var(--ticket-status-chat-border)"};case"P":return{bg:"var(--ticket-status-phone-background)",text:"var(--ticket-status-phone-text)",border:"var(--ticket-status-phone-border)"};case"X":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"B":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"I":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"R":return{bg:"var(--ticket-status-resolved-background)",text:"var(--ticket-status-resolved-text)",border:"var(--ticket-status-resolved-border)"};case"N":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"C":return{bg:"var(--ticket-status-open-background)",text:"var(--ticket-status-open-text)",border:"var(--ticket-status-open-border)"};case"W":return{bg:"var(--ticket-status-postponed-background)",text:"var(--ticket-status-postponed-text)",border:"var(--ticket-status-postponed-border)"};default:return{bg:"",text:"",border:""}}}const Aa=()=>{const e=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#FFEB3B","#FFC107","#FF5722","#795548"],t=Math.floor(Math.random()*e.length);return e[t]},Oa=e=>{let t=e.split(" ");return t.length>1?t=t.shift().charAt(0)+t.pop().charAt(0):t=e.substring(0,2),t.toUpperCase()};function Ra(e){ue(e,"svelte-hbozhk",".wrapper.svelte-hbozhk{position:relative;width:var(--size);height:var(--size)}.innerImage.svelte-hbozhk,.innerInitials.svelte-hbozhk,.imageLoading.svelte-hbozhk{display:block;width:100%;height:100%;border-radius:var(--borderRadius)}.innerInitials.svelte-hbozhk{line-height:var(--size);background-color:var(--bgColor);color:var(--textColor);text-align:center;font-size:calc(var(--size) / (var(--abbrLength) + 0.5))}.imageLoading.svelte-hbozhk{background-color:var(--bgColor)}.imageLoading.svelte-hbozhk::before{content:'';display:block;height:100%;width:100%;background:linear-gradient(90deg, transparent, #ffffff38, transparent);position:absolute;top:0;left:0;animation:svelte-hbozhk-skeleton-animation 1.2s linear infinite}@keyframes svelte-hbozhk-skeleton-animation{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}")}function Na(e){let t;return{c(){t=x("div"),t.textContent=`${e[10]}`,v(t,"class","innerInitials svelte-hbozhk")},m(n,i){N(n,t,i)},p:X,d(n){n&&R(t)}}}function Ia(e){let t,n,i,r,o,s;return{c(){t=x("div"),n=x("img"),v(n,"alt",""),v(n,"class",ce("innerImage")+" svelte-hbozhk"),Dt(n.src,i=e[2])||v(n,"src",i),v(t,"class",r=ce(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(a,u){N(a,t,u),w(t,n),o||(s=[he(n,"error",e[15]),he(n,"load",e[16])],o=!0)},p(a,u){u&4&&!Dt(n.src,i=a[2])&&v(n,"src",i),u&256&&r!==(r=ce(a[8]?"imageLoading":"")+" svelte-hbozhk")&&v(t,"class",r)},d(a){a&&R(t),o=!1,Re(s)}}}function Da(e){let t,n;function i(s,a){return s[2]&&!s[7]?Ia:Na}let r=i(e),o=r(e);return{c(){t=x("div"),o.c(),v(t,"aria-label",e[1]),v(t,"class","wrapper svelte-hbozhk"),v(t,"style",n=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(s,a){N(s,t,a),o.m(t,null)},p(s,[a]){r===(r=i(s))&&o?o.p(s,a):(o.d(1),o=r(s),o&&(o.c(),o.m(t,null))),a&2&&v(t,"aria-label",s[1]),a&125&&n!==(n=s[0]+"--borderRadius:"+(s[6]?0:s[5])+"; --size:"+s[4]+"; --bgColor:"+s[9]+"; --src:"+s[2]+"; --textColor:"+s[3]+"; --abbrLength:"+s[11])&&v(t,"style",n)},i:X,o:X,d(s){s&&R(t),o.d()}}}function Ha(e,t,n){let{style:i=""}=t,{name:r="Avatar"}=t,{initials:o}=t,{src:s}=t,{bgColor:a="lightGrey"}=t,{textColor:u="white"}=t,{size:l="50px"}=t,{borderRadius:c="50%"}=t,{square:f=!1}=t,{randomBgColor:d=!1}=t;const h=d?Aa():a,p=o||Oa(r),_=p.length;let y=!1,g=!0;const E=()=>n(7,y=!0),L=()=>n(8,g=!1);return e.$$set=O=>{"style"in O&&n(0,i=O.style),"name"in O&&n(1,r=O.name),"initials"in O&&n(12,o=O.initials),"src"in O&&n(2,s=O.src),"bgColor"in O&&n(13,a=O.bgColor),"textColor"in O&&n(3,u=O.textColor),"size"in O&&n(4,l=O.size),"borderRadius"in O&&n(5,c=O.borderRadius),"square"in O&&n(6,f=O.square),"randomBgColor"in O&&n(14,d=O.randomBgColor)},[i,r,s,u,l,c,f,y,g,h,p,_,o,a,d,E,L]}class Pa extends re{constructor(t){super(),ie(this,t,Ha,Da,te,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},Ra)}}function Ma(e){let t,n;return t=new Pa({props:{bgColor:e[0],name:e[1],src:e[2],initials:e[3],size:"40px"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.bgColor=i[0]),r&2&&(o.name=i[1]),r&4&&(o.src=i[2]),r&8&&(o.initials=i[3]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ba(e,t,n){let{bgColor:i}=t,{name:r}=t,{src:o}=t,{initials:s}=t;return e.$$set=a=>{"bgColor"in a&&n(0,i=a.bgColor),"name"in a&&n(1,r=a.name),"src"in a&&n(2,o=a.src),"initials"in a&&n(3,s=a.initials)},[i,r,o,s]}class Fa extends re{constructor(t){super(),ie(this,t,Ba,Ma,te,{bgColor:0,name:1,src:2,initials:3})}}var Yi={exports:{}},Qi={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,i){return n<<i|n>>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var i=0;i<n.length;i++)n[i]=t.endian(n[i]);return n},randomBytes:function(n){for(var i=[];n>0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],r=0,o=0;r<n.length;r++,o+=8)i[o>>>5]|=n[r]<<24-o%32;return i},wordsToBytes:function(n){for(var i=[],r=0;r<n.length*32;r+=8)i.push(n[r>>>5]>>>24-r%32&255);return i},bytesToHex:function(n){for(var i=[],r=0;r<n.length;r++)i.push((n[r]>>>4).toString(16)),i.push((n[r]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(parseInt(n.substr(r,2),16));return i},bytesToBase64:function(n){for(var i=[],r=0;r<n.length;r+=3)for(var o=n[r]<<16|n[r+1]<<8|n[r+2],s=0;s<4;s++)r*8+s*6<=n.length*8?i.push(e.charAt(o>>>6*(3-s)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],r=0,o=0;r<n.length;o=++r%4)o!=0&&i.push((e.indexOf(n.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(r))>>>6-o*2);return i}};Qi.exports=t})();var $a=Qi.exports,_n={utf8:{stringToBytes:function(e){return _n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(_n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},ni=_n;/*!
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const es={fallbackLocale:null,loadingDelay:200,formats:qo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ut=es;function je(){return ut}function ts(e){const t=e,{formats:n}=t,i=Qo(t,["formats"]);let r=e.fallbackLocale;if(e.initialLocale)try{Fi.resolveLocale(e.initialLocale)&&(r=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=jo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ut,i,{initialLocale:r}),n&&("number"in n&&Object.assign(ut.formats.number,n.number),"date"in n&&Object.assign(ut.formats.date,n.date),"time"in n&&Object.assign(ut.formats.time,n.time)),it.set(r)}const Dt=me(!1);var ns=Object.defineProperty,is=Object.defineProperties,rs=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,as=(e,t)=>{for(var n in t||(t={}))os.call(t,n)&&Xn(e,n,t[n]);if(Jn)for(var n of Jn(t))ss.call(t,n)&&Xn(e,n,t[n]);return e},ls=(e,t)=>is(e,rs(t));let pn;const Bt=me(null);function Zn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function Ct(e,t=je().fallbackLocale){const n=Zn(e);return t?[...new Set([...n,...Zn(t)])]:n}function De(){return pn??void 0}Bt.subscribe(e=>{pn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const us=e=>{if(e&&Vo(e)&&Mt(e)){const{loadingDelay:t}=je();let n;return typeof window<"u"&&De()!=null&&t?n=window.setTimeout(()=>Dt.set(!0),t):Dt.set(!0),Gi(e).then(()=>{Bt.set(e)}).finally(()=>{clearTimeout(n),Dt.set(!1)})}return Bt.set(e)},it=ls(as({},Bt),{set:us}),Wt=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var cs=Object.defineProperty,Ft=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,Yn=(e,t,n)=>t in e?cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kn=(e,t)=>{for(var n in t||(t={}))Ui.call(t,n)&&Yn(e,n,t[n]);if(Ft)for(var n of Ft(t))Vi.call(t,n)&&Yn(e,n,t[n]);return e},rt=(e,t)=>{var n={};for(var i in e)Ui.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Ft)for(var i of Ft(e))t.indexOf(i)<0&&Vi.call(e,i)&&(n[i]=e[i]);return n};const yt=(e,t)=>{const{formats:n}=je();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},fs=Wt(e=>{var t=e,{locale:n,format:i}=t,r=rt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=yt("number",i)),new Intl.NumberFormat(n,r)}),ds=Wt(e=>{var t=e,{locale:n,format:i}=t,r=rt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=yt("date",i):Object.keys(r).length===0&&(r=yt("date","short")),new Intl.DateTimeFormat(n,r)}),hs=Wt(e=>{var t=e,{locale:n,format:i}=t,r=rt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=yt("time",i):Object.keys(r).length===0&&(r=yt("time","short")),new Intl.DateTimeFormat(n,r)}),ms=(e={})=>{var t=e,{locale:n=De()}=t,i=rt(t,["locale"]);return fs(kn({locale:n},i))},gs=(e={})=>{var t=e,{locale:n=De()}=t,i=rt(t,["locale"]);return ds(kn({locale:n},i))},ps=(e={})=>{var t=e,{locale:n=De()}=t,i=rt(t,["locale"]);return hs(kn({locale:n},i))},_s=Wt((e,t=De())=>new Fi(e,t,je().formats,{ignoreTag:je().ignoreTag})),vs=(e,t={})=>{var n,i,r,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=De(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=$i(e,u);if(!c)c=(o=(r=(i=(n=je()).handleMissingMessage)==null?void 0:i.call(n,{locale:u,id:e,defaultValue:l}))!=null?r:l)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let f=c;try{f=_s(c,u).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},ys=(e,t)=>ps(t).format(e),bs=(e,t)=>gs(t).format(e),ws=(e,t)=>ms(t).format(e),Es=(e,t=De())=>$i(e,t),Ee=tt([it,nt],()=>vs);tt([it],()=>ys);tt([it],()=>bs);tt([it],()=>ws);tt([it,nt],()=>Es);var Ve=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{l(i.next(c))}catch(f){s(f)}}function u(c){try{l(i.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};const Ts="https://localhost/api/v3".replace(/\/+$/,"");class Cn{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Ts}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||zi}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:()=>Ve(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const xs=new Cn;class Jt{constructor(t=xs){this.configuration=t,this.fetchApi=(n,i)=>Ve(this,void 0,void 0,function*(){let r={url:n,init:i};for(const s of this.middleware)s.pre&&(r=(yield s.pre(Object.assign({fetch:this.fetchApi},r)))||r);let o;try{o=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(s){for(const a of this.middleware)a.onError&&(o=(yield a.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:s,response:o?o.clone():void 0}))||o);if(o===void 0)throw s instanceof Error?new Ss(s,"The request failed and the interceptors did not return an alternative response"):s}for(const s of this.middleware)s.post&&(o=(yield s.post({fetch:this.fetchApi,url:r.url,init:r.init,response:o.clone()}))||o);return o}),this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(i=>({pre:i}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(i=>({post:i}));return this.withMiddleware(...n)}isJsonMime(t){return t?Jt.jsonRegex.test(t):!1}request(t,n){return Ve(this,void 0,void 0,function*(){const{url:i,init:r}=yield this.createFetchParams(t,n),o=yield this.fetchApi(i,r);if(o&&o.status>=200&&o.status<300)return o;throw new Ls(o,"Response returned an error code")})}createFetchParams(t,n){return Ve(this,void 0,void 0,function*(){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const r=Object.assign({},this.configuration.headers,t.headers);Object.keys(r).forEach(l=>r[l]===void 0?delete r[l]:{});const o=typeof n=="function"?n:()=>Ve(this,void 0,void 0,function*(){return n}),s={method:t.method,headers:r,body:t.body,credentials:this.configuration.credentials},a=Object.assign(Object.assign({},s),yield o({init:s,context:t})),u=Object.assign(Object.assign({},a),{body:Cs(a.body)||a.body instanceof URLSearchParams||ks(a.body)?a.body:JSON.stringify(a.body)});return{url:i,init:u}})}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}}Jt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function ks(e){return typeof Blob<"u"&&e instanceof Blob}function Cs(e){return typeof FormData<"u"&&e instanceof FormData}class Ls extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class Ss extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class Qn extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}function m(e,t){const n=e[t];return n!=null}function zi(e,t=""){return Object.keys(e).map(n=>Ki(n,e[n],t)).filter(n=>n.length>0).join("&")}function Ki(e,t,n=""){const i=n+(n.length?`[${e}]`:e);if(t instanceof Array){const r=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(t instanceof Set){const r=Array.from(t);return Ki(e,r,n)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?zi(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}class oe{constructor(t,n=i=>i){this.raw=t,this.transformer=n}value(){return Ve(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function As(e){return Os(e)}function Os(e,t){return e==null?e:{departmentid:m(e,"departmentid")?e.departmentid:void 0,onlineStatus:m(e,"online_status")?e.online_status:void 0,presetStatus:m(e,"preset_status")?e.preset_status:void 0}}function Rs(e){return Ns(e)}function Ns(e,t){return e==null?e:{agentid:m(e,"agentid")?e.agentid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,username:m(e,"username")?e.username:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,roleid:m(e,"roleid")?e.roleid:void 0,departmentsStatuses:m(e,"departments_statuses")?e.departments_statuses.map(As):void 0,twofa:m(e,"twofa")?e.twofa:void 0,lastPswdChange:m(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:m(e,"userstatus")?e.userstatus:void 0}}function Is(e){return Ds(e)}function Ds(e,t){return e==null?e:{conversationid:m(e,"conversationid")?e.conversationid:void 0,datechanged:m(e,"datechanged")?new Date(e.datechanged):void 0,status:m(e,"status")?e.status:void 0,preview:m(e,"preview")?e.preview:void 0,subject:m(e,"subject")?e.subject:void 0,departmentname:m(e,"departmentname")?e.departmentname:void 0,agentname:m(e,"agentname")?e.agentname:void 0,tags:m(e,"tags")?e.tags:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,emails:m(e,"emails")?e.emails:void 0,city:m(e,"city")?e.city:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,rstatus:m(e,"rstatus")?e.rstatus:void 0,statusdatestarted:m(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:m(e,"chat_order")?e.chat_order:void 0}}function Hs(e){return Ps(e)}function Ps(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,name:m(e,"name")?e.name:void 0,type:m(e,"type")?e.type:void 0,onlineCode:m(e,"online_code")?e.online_code:void 0,offlineCode:m(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:m(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:m(e,"offline_code_css")?e.offline_code_css:void 0,provide:m(e,"provide")?e.provide:void 0,impressions:m(e,"impressions")?e.impressions:void 0,tickets:m(e,"tickets")?e.tickets:void 0,status:m(e,"status")?e.status:void 0,lastDisplayTime:m(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:m(e,"last_display_url")?e.last_display_url:void 0}}function xe(e){return Ms(e)}function Ms(e,t){return e==null?e:{count:m(e,"count")?e.count:void 0}}function Bs(e){return Fs(e)}function Fs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,name:m(e,"name")?e.name:void 0,agentCount:m(e,"agent_count")?e.agent_count:void 0}}function $s(e){return Gs(e)}function Gs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,logid:m(e,"logid")?e.logid:void 0,line:m(e,"line")?e.line:void 0,filename:m(e,"filename")?e.filename:void 0,created:m(e,"created")?e.created:void 0,level:m(e,"level")?e.level:void 0,type:m(e,"type")?e.type:void 0,message:m(e,"message")?e.message:void 0,ip:m(e,"ip")?e.ip:void 0,groupid:m(e,"groupid")?e.groupid:void 0}}function Us(e){return Vs(e)}function Vs(e,t){return e==null?e:{agentid:m(e,"agentid")?e.agentid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,chats:m(e,"chats")?e.chats:void 0}}function zs(e){return Ks(e)}function Ks(e,t){return e==null?e:{name:m(e,"name")?e.name:void 0,code:m(e,"code")?e.code:void 0,engName:m(e,"eng_name")?e.eng_name:void 0,translated:m(e,"translated")?e.translated:void 0,isDefault:m(e,"is_default")?e.is_default:void 0,active:m(e,"active")?e.active:void 0,isCustom:m(e,"is_custom")?e.is_custom:void 0,isBuiltIn:m(e,"is_builtIn")?e.is_builtIn:void 0}}function Ws(e){return Js(e)}function Js(e,t){return e==null?e:{codeName:m(e,"code_name")?e.code_name:void 0,name:m(e,"name")?e.name:void 0,description:m(e,"description")?e.description:void 0,active:m(e,"active")?e.active:void 0,help:m(e,"help")?e.help:void 0,multiple:m(e,"multiple")?e.multiple:void 0,configFile:m(e,"config_file")?e.config_file:void 0,price:m(e,"price")?e.price:void 0,legacyIntegration:m(e,"legacy_integration")?e.legacy_integration:void 0}}function on(e){return Xs(e)}function Xs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,conversationid:m(e,"conversationid")?e.conversationid:void 0,code:m(e,"code")?e.code:void 0,slaTicketId:m(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:m(e,"departmentid")?e.departmentid:void 0,departmentName:m(e,"department_name")?e.department_name:void 0,levelid:m(e,"levelid")?e.levelid:void 0,slaLevelName:m(e,"sla_level_name")?e.sla_level_name:void 0,sla:m(e,"sla")?e.sla:void 0,dateCreated:m(e,"date_created")?e.date_created:void 0,dateClosed:m(e,"date_closed")?e.date_closed:void 0,dateDue:m(e,"date_due")?e.date_due:void 0,slaLevelId:m(e,"sla_level_id")?e.sla_level_id:void 0,slaType:m(e,"sla_type")?new Date(e.sla_type):void 0,agentid:m(e,"agentid")?e.agentid:void 0,agentFirstname:m(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:m(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:m(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:m(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:m(e,"req_firstname")?e.req_firstname:void 0,reqLastname:m(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:m(e,"req_systemname")?e.req_systemname:void 0,reqContactName:m(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:m(e,"req_avatar_url")?e.req_avatar_url:void 0}}function qn(e){return Zs(e)}function Zs(e,t){return e==null?e:{tagid:m(e,"tagid")?e.tagid:void 0,name:m(e,"name")?e.name:void 0,type:m(e,"type")?e.type:void 0,color:m(e,"color")?e.color:void 0,backgroundcolor:m(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:m(e,"is_public")?e.is_public:void 0}}function Wi(e){return Ys(e)}function Ys(e,t){return e==null?e:{conversationid:m(e,"conversationid")?e.conversationid:void 0,code:m(e,"code")?e.code:void 0,datecreated:m(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:m(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:m(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:m(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:m(e,"rorder")?e.rorder:void 0,datedue:m(e,"datedue")?new Date(e.datedue):void 0,datereopen:m(e,"datereopen")?new Date(e.datereopen):void 0,status:m(e,"status")?e.status:void 0,channelType:m(e,"channel_type")?e.channel_type:void 0,departmentid:m(e,"departmentid")?e.departmentid:void 0,agentid:m(e,"agentid")?e.agentid:void 0,preview:m(e,"preview")?e.preview:void 0,subject:m(e,"subject")?e.subject:void 0,departmentname:m(e,"departmentname")?e.departmentname:void 0,agentname:m(e,"agentname")?e.agentname:void 0,tags:m(e,"tags")?e.tags:void 0,messagegroupsIn:m(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:m(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:m(e,"contactid")?e.contactid:void 0,parentContactid:m(e,"parent_contactid")?e.parent_contactid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,emails:m(e,"emails")?e.emails:void 0,phones:m(e,"phones")?e.phones:void 0,jobPosition:m(e,"job_position")?e.job_position:void 0,contactType:m(e,"contact_type")?e.contact_type:void 0,city:m(e,"city")?e.city:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,timeOffset:m(e,"time_offset")?e.time_offset:void 0,gender:m(e,"gender")?e.gender:void 0,levelid:m(e,"levelid")?e.levelid:void 0,groups:m(e,"groups")?e.groups:void 0,contactStatus:m(e,"contact_status")?e.contact_status:void 0,company:m(e,"company")?e.company:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,userid:m(e,"userid")?e.userid:void 0,roleid:m(e,"roleid")?e.roleid:void 0,userstatus:m(e,"userstatus")?e.userstatus:void 0,accountuserstatus:m(e,"accountuserstatus")?e.accountuserstatus:void 0,description:m(e,"description")?e.description:void 0,note:m(e,"note")?e.note:void 0,lastActivity:m(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:m(e,"tagnames")?e.tagnames:void 0,groupnames:m(e,"groupnames")?e.groupnames:void 0}}function Qs(e){return qs(e)}function qs(e,t){return e==null?e:{cursor:m(e,"cursor")?e.cursor:void 0,rows:m(e,"rows")?e.rows.map(Wi):void 0}}function js(e){return ea(e)}function ea(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,agentid:m(e,"agentid")?e.agentid:void 0,agent:m(e,"agent")?e.agent:void 0,conversationid:m(e,"conversationid")?e.conversationid:void 0,ticket:m(e,"ticket")?e.ticket:void 0,parentContactid:m(e,"parent_contactid")?e.parent_contactid:void 0,company:m(e,"company")?e.company:void 0,contactid:m(e,"contactid")?e.contactid:void 0,customer:m(e,"customer")?e.customer:void 0,customerFirstname:m(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:m(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:m(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:m(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:m(e,"reportdate")?e.reportdate:void 0,reportedtime:m(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:m(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:m(e,"spenttime")?e.spenttime:void 0,dateinvoiced:m(e,"dateinvoiced")?e.dateinvoiced:void 0,note:m(e,"note")?e.note:void 0,type:m(e,"type")?e.type:void 0}}var H=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{l(i.next(c))}catch(f){s(f)}}function u(c){try{l(i.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};class Ji extends Jt{getAgentsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/agents",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Rs))})}getAgentsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,n)).value()})}getAgentsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/agents/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getAgentsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,n)).value()})}getCallsSlaLogGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/calls/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(on))})}getCallsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,n)).value()})}getCallsSlaLogGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getCallsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,n)).value()})}getChatsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Is))})}getChatsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,n)).value()})}getChatsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getChatsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,n)).value()})}getChatsSlaLogGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(on))})}getChatsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,n)).value()})}getChatsSlaLogGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getChatsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,n)).value()})}getContactWidgetsCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getContactWidgetsCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,n)).value()})}getContactWidgetsListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Hs))})}getContactWidgetsList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,n)).value()})}getCustomerGroupsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/customer_groups",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(qn))})}getCustomerGroupsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,n)).value()})}getDepartmensGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/departments/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getDepartmensGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,n)).value()})}getDepartmentsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/departments",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Bs))})}getDepartmentsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,n)).value()})}getEventLogsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/eventlogs",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map($s))})}getEventLogsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,n)).value()})}getEventLogsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getEventLogsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,n)).value()})}getInviteAgentsGridListRaw(t,n){return H(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new Qn("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Us))})}getInviteAgentsGridList(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,n)).value()})}getLanguagesGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/languages",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(zs))})}getLanguagesGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,n)).value()})}getLanguagesGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/languages/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getLanguagesGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,n)).value()})}getPlugindGridListRaw(t,n){return H(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new Qn("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.pluginPurpose!==void 0&&(i.pluginPurpose=t.pluginPurpose);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/plugins",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Ws))})}getPlugindGridList(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,n)).value()})}getTagsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tags",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(qn))})}getTagsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,n)).value()})}getTicketsGridDatasetRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets_new",method:"GET",headers:r,query:i},n);return new oe(o,s=>Qs(s))})}getTicketsGridDataset(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,n)).value()})}getTicketsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Wi))})}getTicketsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,n)).value()})}getTicketsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTicketsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,n)).value()})}getTicketsSlaLogGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(on))})}getTicketsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,n)).value()})}getTicketsSlaLogGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTicketsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,n)).value()})}getTimeReportsGridListRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.sortField!==void 0&&(i._sortField=t.sortField),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/reports/time",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(js))})}getTimeReportsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,n)).value()})}getTimeReportsGridListCountRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTimeReportsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,n)).value()})}}const jn={Asc:"ASC",Desc:"DESC"},lt={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},ta={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},We=me(!1),Ln=me([]),$t=me(null),bt=me(null),Je=me(!1),gt=me(!1),Xi=me({}),ye=me([]),Zi=me(null),Be=me(null),Xt=me(!0),Sn=me(ta.Rorder),na="modulepreload",ia=function(e){return"/"+e},ei={},b=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=ia(o),o in ei)return;ei[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===o&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":na,s||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),s)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},ti=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((i,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ni=["ar-SA","bg-BG","bs-BA","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","et-EE","fa-IR","fi-FI","fil-PH","fr-FR","he-IL","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","lt-LT","lv-LV","me-ME","mk-MK","ms-MY","nl-NL","no-NO","pl-PL","pt-BR","ro-RO","ru-RU","sk-SK","sl-SI","sr-CS","sv-SE","th-TH","tl-PH","tr-TR","uk-UA","vi-VN","vls-BE","zh-CN","zh-TW"];function ra(e){if(e!=null&&e.trim()!=""){const t=e.trim();if(ni.find(r=>r===t)!=null)return t;const n=t.substring(0,2),i=ni.find(r=>r.substring(0,2)===n);if(i!=null)return i}return null}const Ht="en-US",ii="S",Yi="N",Qi="C",_n="D",oa="A";let Fe,ct=Ht;function sa(e){if(Fe!==void 0)return;Fe=e;let t={fallbackLocale:Ht};Kn(Ht,()=>ti(Object.assign({"../../locales/ar-SA.json":()=>b(()=>import("./ar-SA.js"),[]),"../../locales/bg-BG.json":()=>b(()=>import("./bg-BG.js"),[]),"../../locales/bs-BA.json":()=>b(()=>import("./bs-BA.js"),[]),"../../locales/ca-ES.json":()=>b(()=>import("./ca-ES.js"),[]),"../../locales/cs-CZ.json":()=>b(()=>import("./cs-CZ.js"),[]),"../../locales/da-DK.json":()=>b(()=>import("./da-DK.js"),[]),"../../locales/de-DE.json":()=>b(()=>import("./de-DE.js"),[]),"../../locales/el-GR.json":()=>b(()=>import("./el-GR.js"),[]),"../../locales/en-US.json":()=>b(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>b(()=>import("./en.js"),[]),"../../locales/es-ES.json":()=>b(()=>import("./es-ES.js"),[]),"../../locales/et-EE.json":()=>b(()=>import("./et-EE.js"),[]),"../../locales/fa-IR.json":()=>b(()=>import("./fa-IR.js"),[]),"../../locales/fi-FI.json":()=>b(()=>import("./fi-FI.js"),[]),"../../locales/fil-PH.json":()=>b(()=>import("./fil-PH.js"),[]),"../../locales/fr-FR.json":()=>b(()=>import("./fr-FR.js"),[]),"../../locales/he-IL.json":()=>b(()=>import("./he-IL.js"),[]),"../../locales/hr-HR.json":()=>b(()=>import("./hr-HR.js"),[]),"../../locales/hu-HU.json":()=>b(()=>import("./hu-HU.js"),[]),"../../locales/id-ID.json":()=>b(()=>import("./id-ID.js"),[]),"../../locales/it-IT.json":()=>b(()=>import("./it-IT.js"),[]),"../../locales/ja-JP.json":()=>b(()=>import("./ja-JP.js"),[]),"../../locales/ko-KR.json":()=>b(()=>import("./ko-KR.js"),[]),"../../locales/lt-LT.json":()=>b(()=>import("./lt-LT.js"),[]),"../../locales/lv-LV.json":()=>b(()=>import("./lv-LV.js"),[]),"../../locales/me-ME.json":()=>b(()=>import("./me-ME.js"),[]),"../../locales/mk-MK.json":()=>b(()=>import("./mk-MK.js"),[]),"../../locales/ms-MY.json":()=>b(()=>import("./ms-MY.js"),[]),"../../locales/nl-NL.json":()=>b(()=>import("./nl-NL.js"),[]),"../../locales/no-NO.json":()=>b(()=>import("./no-NO.js"),[]),"../../locales/pl-PL.json":()=>b(()=>import("./pl-PL.js"),[]),"../../locales/pt-BR.json":()=>b(()=>import("./pt-BR.js"),[]),"../../locales/ro-RO.json":()=>b(()=>import("./ro-RO.js"),[]),"../../locales/ru-RU.json":()=>b(()=>import("./ru-RU.js"),[]),"../../locales/sk-SK.json":()=>b(()=>import("./sk-SK.js"),[]),"../../locales/sl-SI.json":()=>b(()=>import("./sl-SI.js"),[]),"../../locales/sr-CS.json":()=>b(()=>import("./sr-CS.js"),[]),"../../locales/sv-SE.json":()=>b(()=>import("./sv-SE.js"),[]),"../../locales/th-TH.json":()=>b(()=>import("./th-TH.js"),[]),"../../locales/tl-PH.json":()=>b(()=>import("./tl-PH.js"),[]),"../../locales/tr-TR.json":()=>b(()=>import("./tr-TR.js"),[]),"../../locales/uk-UA.json":()=>b(()=>import("./uk-UA.js"),[]),"../../locales/vi-VN.json":()=>b(()=>import("./vi-VN.js"),[]),"../../locales/vls-BE.json":()=>b(()=>import("./vls-BE.js"),[]),"../../locales/zh-CN.json":()=>b(()=>import("./zh-CN.js"),[]),"../../locales/zh-TW.json":()=>b(()=>import("./zh-TW.js"),[])}),`../../locales/${Ht}.json`));const n=ra(Fe.locale);n!==null&&(ct=n,t.initialLocale=ct,Kn(ct,()=>ti(Object.assign({"../../locales/ar-SA.json":()=>b(()=>import("./ar-SA.js"),[]),"../../locales/bg-BG.json":()=>b(()=>import("./bg-BG.js"),[]),"../../locales/bs-BA.json":()=>b(()=>import("./bs-BA.js"),[]),"../../locales/ca-ES.json":()=>b(()=>import("./ca-ES.js"),[]),"../../locales/cs-CZ.json":()=>b(()=>import("./cs-CZ.js"),[]),"../../locales/da-DK.json":()=>b(()=>import("./da-DK.js"),[]),"../../locales/de-DE.json":()=>b(()=>import("./de-DE.js"),[]),"../../locales/el-GR.json":()=>b(()=>import("./el-GR.js"),[]),"../../locales/en-US.json":()=>b(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>b(()=>import("./en.js"),[]),"../../locales/es-ES.json":()=>b(()=>import("./es-ES.js"),[]),"../../locales/et-EE.json":()=>b(()=>import("./et-EE.js"),[]),"../../locales/fa-IR.json":()=>b(()=>import("./fa-IR.js"),[]),"../../locales/fi-FI.json":()=>b(()=>import("./fi-FI.js"),[]),"../../locales/fil-PH.json":()=>b(()=>import("./fil-PH.js"),[]),"../../locales/fr-FR.json":()=>b(()=>import("./fr-FR.js"),[]),"../../locales/he-IL.json":()=>b(()=>import("./he-IL.js"),[]),"../../locales/hr-HR.json":()=>b(()=>import("./hr-HR.js"),[]),"../../locales/hu-HU.json":()=>b(()=>import("./hu-HU.js"),[]),"../../locales/id-ID.json":()=>b(()=>import("./id-ID.js"),[]),"../../locales/it-IT.json":()=>b(()=>import("./it-IT.js"),[]),"../../locales/ja-JP.json":()=>b(()=>import("./ja-JP.js"),[]),"../../locales/ko-KR.json":()=>b(()=>import("./ko-KR.js"),[]),"../../locales/lt-LT.json":()=>b(()=>import("./lt-LT.js"),[]),"../../locales/lv-LV.json":()=>b(()=>import("./lv-LV.js"),[]),"../../locales/me-ME.json":()=>b(()=>import("./me-ME.js"),[]),"../../locales/mk-MK.json":()=>b(()=>import("./mk-MK.js"),[]),"../../locales/ms-MY.json":()=>b(()=>import("./ms-MY.js"),[]),"../../locales/nl-NL.json":()=>b(()=>import("./nl-NL.js"),[]),"../../locales/no-NO.json":()=>b(()=>import("./no-NO.js"),[]),"../../locales/pl-PL.json":()=>b(()=>import("./pl-PL.js"),[]),"../../locales/pt-BR.json":()=>b(()=>import("./pt-BR.js"),[]),"../../locales/ro-RO.json":()=>b(()=>import("./ro-RO.js"),[]),"../../locales/ru-RU.json":()=>b(()=>import("./ru-RU.js"),[]),"../../locales/sk-SK.json":()=>b(()=>import("./sk-SK.js"),[]),"../../locales/sl-SI.json":()=>b(()=>import("./sl-SI.js"),[]),"../../locales/sr-CS.json":()=>b(()=>import("./sr-CS.js"),[]),"../../locales/sv-SE.json":()=>b(()=>import("./sv-SE.js"),[]),"../../locales/th-TH.json":()=>b(()=>import("./th-TH.js"),[]),"../../locales/tl-PH.json":()=>b(()=>import("./tl-PH.js"),[]),"../../locales/tr-TR.json":()=>b(()=>import("./tr-TR.js"),[]),"../../locales/uk-UA.json":()=>b(()=>import("./uk-UA.js"),[]),"../../locales/vi-VN.json":()=>b(()=>import("./vi-VN.js"),[]),"../../locales/vls-BE.json":()=>b(()=>import("./vls-BE.js"),[]),"../../locales/zh-CN.json":()=>b(()=>import("./zh-CN.js"),[]),"../../locales/zh-TW.json":()=>b(()=>import("./zh-TW.js"),[])}),`../../locales/${ct}.json`))),ts(t)}function aa(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function Ot(e){return aa(new Date(e))}function la(){return Fe.dateFormat.toUpperCase()}function ua(){return Fe.timeFormat}function ca(){return la()+" "+ua()}function ze(e){return fa(e,2)}function fa(e,t){let n="";return ma(t).formatToParts(e).forEach(i=>{i.type==="group"?n+=da():i.type==="decimal"?n+=ha():n+=i.value}),n}function da(){let e=Fe.thousandsSeparator;switch(e==null&&(e=ii),e){case Qi:return",";case ii:return" ";case _n:return".";case oa:return"'";case Yi:case"":return" ";default:return e}}function ha(){let e=Fe.decimalSeparator;switch(e==null&&(e=_n),e){case Qi:return",";case Yi:case _n:return".";default:return e}}function ma(e){return new Intl.NumberFormat(ct,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function ga(e){ue(e,"svelte-mupm4a",".Counter.svelte-mupm4a{display:none}span.svelte-mupm4a{margin-right:5px}.Selection.svelte-mupm4a{color:var(--ticket-selected-textcolor);background-color:var(--ticket-selected-bg);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:20px}.text.svelte-mupm4a{font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-mupm4a{color:var(--main-textcolor);padding:2px 12px;border:1px solid var(--menu-hover-bg);border-radius:4px;font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px;cursor:pointer}.many.loading.svelte-mupm4a{border:none;padding:2px 0}@media(min-width: 768px){.Counter.svelte-mupm4a{display:block}}")}function pa(e){let t,n=e[5]("Displaying %count of %allCount",{values:{count:ze(e[7].length),allCount:ze(e[0])}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","text svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&161&&n!==(n=r[5]("Displaying %count of %allCount",{values:{count:ze(r[7].length),allCount:ze(r[0])}})+"")&&se(i,n)},d(r){r&&R(t)}}}function _a(e){let t,n=e[5]("Displaying %count of",{values:{count:ze(e[7].length)}})+"",i,r,o,s=(e[1]?e[5]("Loading..."):e[5]("many"))+"",a,u,l,c;return{c(){t=x("span"),i=j(n),r=V(),o=x("span"),a=j(s),v(t,"class","text svelte-mupm4a"),v(o,"class",u=ce(e[2])+" svelte-mupm4a")},m(f,d){N(f,t,d),w(t,i),N(f,r,d),N(f,o,d),w(o,a),l||(c=he(o,"click",e[8]),l=!0)},p(f,d){d&160&&n!==(n=f[5]("Displaying %count of",{values:{count:ze(f[7].length)}})+"")&&se(i,n),d&34&&s!==(s=(f[1]?f[5]("Loading..."):f[5]("many"))+"")&&se(a,s),d&4&&u!==(u=ce(f[2])+" svelte-mupm4a")&&v(o,"class",u)},d(f){f&&(R(t),R(r),R(o)),l=!1,c()}}}function va(e){let t,n=e[5]("Loading...")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","text svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&32&&n!==(n=r[5]("Loading...")+"")&&se(i,n)},d(r){r&&R(t)}}}function ya(e){let t;function n(o,s){return o[3]?wa:ba}let i=n(e),r=i(e);return{c(){r.c(),t=kt()},m(o,s){r.m(o,s),N(o,t,s)},p(o,s){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){o&&R(t),r.d(o)}}}function ba(e){let t,n=e[5]("%pCount rows selected",{values:{pCount:e[4].length}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&48&&n!==(n=r[5]("%pCount rows selected",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&R(t)}}}function wa(e){let t;function n(o,s){return o[4].length>0?Ta:Ea}let i=n(e),r=i(e);return{c(){r.c(),t=kt()},m(o,s){r.m(o,s),N(o,t,s)},p(o,s){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){o&&R(t),r.d(o)}}}function Ea(e){let t,n=e[5]("all rows selected")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&32&&n!==(n=r[5]("all rows selected")+"")&&se(i,n)},d(r){r&&R(t)}}}function Ta(e){let t,n=e[5]("all rows selected except %pCount rows",{values:{pCount:e[4].length}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&48&&n!==(n=r[5]("all rows selected except %pCount rows",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&R(t)}}}function xa(e){let t;function n(o,s){return o[3]||o[4].length>0?ya:o[6]?va:o[0]==null?_a:pa}let i=n(e),r=i(e);return{c(){t=x("div"),r.c(),v(t,"class","Counter svelte-mupm4a")},m(o,s){N(o,t,s),r.m(t,null)},p(o,[s]){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t,null)))},i:J,o:J,d(o){o&&R(t),r.d()}}}function ka(e,t,n){let i,r,o,s,a,u,l;K(e,bt,_=>n(9,i=_)),K(e,$t,_=>n(10,r=_)),K(e,We,_=>n(3,o=_)),K(e,Ln,_=>n(4,s=_)),K(e,Ee,_=>n(5,a=_)),K(e,Je,_=>n(6,u=_)),K(e,ye,_=>n(7,l=_));let c=null,f=!1,d="many";function h(){n(0,c=null)}async function p(){n(2,d="many loading"),n(1,f=!0);let _=await r.getTicketsGridListCount({filters:i,timezoneOffset:new Date().getTimezoneOffset()});n(0,c=_.count),n(1,f=!1)}return e.$$.update=()=>{e.$$.dirty&512&&i&&h()},[c,f,d,o,s,a,u,l,p,i]}class Ca extends re{constructor(t){super(),ie(this,t,ka,xa,te,{},ga)}}async function et(e=!1){if(!(ke(Je)||!ke($t))&&(e&&(Be.set(null),gt.set(!1)),!(!ke(Be)&&ke(gt)))){Je.set(!0);try{const n=await(await ke($t).getTicketsGridDatasetRaw(La())).value();e&&ye.set([]),ye.set([...ke(ye),...n.rows]),Be.set(n.cursor),gt.set(!0)}catch(t){Zi.set(t.toString())}Je.set(!1)}}function La(){return{perPage:20,sortDir:ke(Xt)?jn.Asc:jn.Desc,filters:ke(bt),sortField:ke(Sn),cursor:ke(Be)?ke(Be):""}}function Sa(e){ue(e,"svelte-oyjuek",".Head.svelte-oyjuek.svelte-oyjuek{display:flex;position:sticky;top:0;color:var(--panel_text_color);margin-bottom:20px;align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--main-lighter-textcolor);padding:0 23px 6px 44px}.FilterIcon{font-size:20px;margin-right:2px}.headCheckbox.svelte-oyjuek.svelte-oyjuek{width:20px;margin-right:16px}.headCheckbox.svelte-oyjuek input[type=checkbox].svelte-oyjuek{vertical-align:middle;cursor:pointer;margin:3px}button.svelte-oyjuek.svelte-oyjuek{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-oyjuek.svelte-oyjuek{font-size:16px;cursor:pointer}.rightPanel.svelte-oyjuek.svelte-oyjuek{display:flex;margin-inline-start:auto}.Sorting.svelte-oyjuek.svelte-oyjuek{cursor:pointer;text-align:left;font-weight:bold}.loading.svelte-oyjuek.svelte-oyjuek{animation-name:svelte-oyjuek-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes svelte-oyjuek-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.headCheckbox.svelte-oyjuek.svelte-oyjuek{margin-right:42px}}")}function Aa(e){let t,n,i,r,o,s,a,u,l,c,f,d,h,p,_,y,g,E,L,O;return o=new Ae({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),c=new Ae({props:{iconLaClassName:"la-show"}}),h=new Ca({}),y=new Ae({props:{iconLaClassName:"la-refresh"}}),{c(){t=x("div"),n=x("div"),i=x("input"),r=V(),G(o.$$.fragment),s=V(),a=x("button"),u=j(e[0]),l=V(),G(c.$$.fragment),f=V(),d=x("div"),G(h.$$.fragment),p=V(),_=x("button"),G(y.$$.fragment),v(i,"type","checkbox"),v(i,"class","svelte-oyjuek"),v(n,"class","headCheckbox svelte-oyjuek"),v(a,"class","Sorting svelte-oyjuek"),v(_,"class","spinner svelte-oyjuek"),v(_,"title",g=e[4]("Reload")),Dn(_,"loading",e[3]),v(d,"class","rightPanel svelte-oyjuek"),v(t,"class","Head svelte-oyjuek")},m(I,Y){N(I,t,Y),w(t,n),w(n,i),i.checked=e[2],w(t,r),F(o,t,null),w(t,s),w(t,a),w(a,u),e[8](a),w(t,l),F(c,t,null),w(t,f),w(t,d),F(h,d,null),w(d,p),w(d,_),F(y,_,null),E=!0,L||(O=[he(i,"change",e[7]),he(i,"click",e[5]),he(a,"click",e[6]),he(_,"click",e[9])],L=!0)},p(I,[Y]){Y&4&&(i.checked=I[2]),(!E||Y&1)&&se(u,I[0]),(!E||Y&16&&g!==(g=I[4]("Reload")))&&v(_,"title",g),(!E||Y&8)&&Dn(_,"loading",I[3])},i(I){E||(T(o.$$.fragment,I),T(c.$$.fragment,I),T(h.$$.fragment,I),T(y.$$.fragment,I),E=!0)},o(I){k(o.$$.fragment,I),k(c.$$.fragment,I),k(h.$$.fragment,I),k(y.$$.fragment,I),E=!1},d(I){I&&R(t),$(o),e[8](null),$(c),$(h),$(y),L=!1,Oe(O)}}}function Oa(e,t,n){let i,r,o;K(e,Xt,y=>n(12,y)),K(e,We,y=>n(2,i=y)),K(e,Je,y=>n(3,r=y)),K(e,Ee,y=>n(4,o=y));let{currentFilter:s}=t;const a=vi();let u,l,c;function f(){We.set(!i),ye.update(y=>y.map(g=>({...g,__selected:i})))}function d(){u=l.getBoundingClientRect();let g=u.bottom-58,E=u.left-7;window.innerWidth>=768&&(E-=258),c=`position: absolute; top: ${g}px; left: ${E}px;`,a("openModal",{dialogStyles:c})}function h(){i=this.checked,We.set(i)}function p(y){Xe[y?"unshift":"push"](()=>{l=y,n(1,l)})}const _=()=>et(!0);return e.$$set=y=>{"currentFilter"in y&&n(0,s=y.currentFilter)},[s,l,i,r,o,f,d,h,p,_]}class Ra extends re{constructor(t){super(),ie(this,t,Oa,Aa,te,{currentFilter:0},Sa)}}function Ne(e){switch(e){case"A":return{bg:"var(--ticket-status-answered-background)",text:"var(--ticket-status-answered-text)",border:"var(--ticket-status-answered-border)"};case"T":return{bg:"var(--ticket-status-chat-background)",text:"var(--ticket-status-chat-text)",border:"var(--ticket-status-chat-border)"};case"P":return{bg:"var(--ticket-status-phone-background)",text:"var(--ticket-status-phone-text)",border:"var(--ticket-status-phone-border)"};case"X":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"B":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"I":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"R":return{bg:"var(--ticket-status-resolved-background)",text:"var(--ticket-status-resolved-text)",border:"var(--ticket-status-resolved-border)"};case"N":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"C":return{bg:"var(--ticket-status-open-background)",text:"var(--ticket-status-open-text)",border:"var(--ticket-status-open-border)"};case"W":return{bg:"var(--ticket-status-postponed-background)",text:"var(--ticket-status-postponed-text)",border:"var(--ticket-status-postponed-border)"};default:return{bg:"",text:"",border:""}}}const Na=()=>{const e=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#FFEB3B","#FFC107","#FF5722","#795548"],t=Math.floor(Math.random()*e.length);return e[t]},Ia=e=>{let t=e.split(" ");return t.length>1?t=t.shift().charAt(0)+t.pop().charAt(0):t=e.substring(0,2),t.toUpperCase()};function Da(e){ue(e,"svelte-hbozhk",".wrapper.svelte-hbozhk{position:relative;width:var(--size);height:var(--size)}.innerImage.svelte-hbozhk,.innerInitials.svelte-hbozhk,.imageLoading.svelte-hbozhk{display:block;width:100%;height:100%;border-radius:var(--borderRadius)}.innerInitials.svelte-hbozhk{line-height:var(--size);background-color:var(--bgColor);color:var(--textColor);text-align:center;font-size:calc(var(--size) / (var(--abbrLength) + 0.5))}.imageLoading.svelte-hbozhk{background-color:var(--bgColor)}.imageLoading.svelte-hbozhk::before{content:'';display:block;height:100%;width:100%;background:linear-gradient(90deg, transparent, #ffffff38, transparent);position:absolute;top:0;left:0;animation:svelte-hbozhk-skeleton-animation 1.2s linear infinite}@keyframes svelte-hbozhk-skeleton-animation{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}")}function Ha(e){let t;return{c(){t=x("div"),t.textContent=`${e[10]}`,v(t,"class","innerInitials svelte-hbozhk")},m(n,i){N(n,t,i)},p:J,d(n){n&&R(t)}}}function Pa(e){let t,n,i,r,o,s;return{c(){t=x("div"),n=x("img"),v(n,"alt",""),v(n,"class",ce("innerImage")+" svelte-hbozhk"),Pt(n.src,i=e[2])||v(n,"src",i),v(t,"class",r=ce(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(a,u){N(a,t,u),w(t,n),o||(s=[he(n,"error",e[15]),he(n,"load",e[16])],o=!0)},p(a,u){u&4&&!Pt(n.src,i=a[2])&&v(n,"src",i),u&256&&r!==(r=ce(a[8]?"imageLoading":"")+" svelte-hbozhk")&&v(t,"class",r)},d(a){a&&R(t),o=!1,Oe(s)}}}function Ma(e){let t,n;function i(s,a){return s[2]&&!s[7]?Pa:Ha}let r=i(e),o=r(e);return{c(){t=x("div"),o.c(),v(t,"aria-label",e[1]),v(t,"class","wrapper svelte-hbozhk"),v(t,"style",n=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(s,a){N(s,t,a),o.m(t,null)},p(s,[a]){r===(r=i(s))&&o?o.p(s,a):(o.d(1),o=r(s),o&&(o.c(),o.m(t,null))),a&2&&v(t,"aria-label",s[1]),a&125&&n!==(n=s[0]+"--borderRadius:"+(s[6]?0:s[5])+"; --size:"+s[4]+"; --bgColor:"+s[9]+"; --src:"+s[2]+"; --textColor:"+s[3]+"; --abbrLength:"+s[11])&&v(t,"style",n)},i:J,o:J,d(s){s&&R(t),o.d()}}}function Ba(e,t,n){let{style:i=""}=t,{name:r="Avatar"}=t,{initials:o}=t,{src:s}=t,{bgColor:a="lightGrey"}=t,{textColor:u="white"}=t,{size:l="50px"}=t,{borderRadius:c="50%"}=t,{square:f=!1}=t,{randomBgColor:d=!1}=t;const h=d?Na():a,p=o||Ia(r),_=p.length;let y=!1,g=!0;const E=()=>n(7,y=!0),L=()=>n(8,g=!1);return e.$$set=O=>{"style"in O&&n(0,i=O.style),"name"in O&&n(1,r=O.name),"initials"in O&&n(12,o=O.initials),"src"in O&&n(2,s=O.src),"bgColor"in O&&n(13,a=O.bgColor),"textColor"in O&&n(3,u=O.textColor),"size"in O&&n(4,l=O.size),"borderRadius"in O&&n(5,c=O.borderRadius),"square"in O&&n(6,f=O.square),"randomBgColor"in O&&n(14,d=O.randomBgColor)},[i,r,s,u,l,c,f,y,g,h,p,_,o,a,d,E,L]}class Fa extends re{constructor(t){super(),ie(this,t,Ba,Ma,te,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},Da)}}function $a(e){let t,n;return t=new Fa({props:{bgColor:e[0],name:e[1],src:e[2],initials:e[3],size:"40px"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.bgColor=i[0]),r&2&&(o.name=i[1]),r&4&&(o.src=i[2]),r&8&&(o.initials=i[3]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ga(e,t,n){let{bgColor:i}=t,{name:r}=t,{src:o}=t,{initials:s}=t;return e.$$set=a=>{"bgColor"in a&&n(0,i=a.bgColor),"name"in a&&n(1,r=a.name),"src"in a&&n(2,o=a.src),"initials"in a&&n(3,s=a.initials)},[i,r,o,s]}class Ua extends re{constructor(t){super(),ie(this,t,Ga,$a,te,{bgColor:0,name:1,src:2,initials:3})}}var qi={exports:{}},ji={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,i){return n<<i|n>>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var i=0;i<n.length;i++)n[i]=t.endian(n[i]);return n},randomBytes:function(n){for(var i=[];n>0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],r=0,o=0;r<n.length;r++,o+=8)i[o>>>5]|=n[r]<<24-o%32;return i},wordsToBytes:function(n){for(var i=[],r=0;r<n.length*32;r+=8)i.push(n[r>>>5]>>>24-r%32&255);return i},bytesToHex:function(n){for(var i=[],r=0;r<n.length;r++)i.push((n[r]>>>4).toString(16)),i.push((n[r]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(parseInt(n.substr(r,2),16));return i},bytesToBase64:function(n){for(var i=[],r=0;r<n.length;r+=3)for(var o=n[r]<<16|n[r+1]<<8|n[r+2],s=0;s<4;s++)r*8+s*6<=n.length*8?i.push(e.charAt(o>>>6*(3-s)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],r=0,o=0;r<n.length;o=++r%4)o!=0&&i.push((e.indexOf(n.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(r))>>>6-o*2);return i}};ji.exports=t})();var Va=ji.exports,vn={utf8:{stringToBytes:function(e){return vn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(vn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},ri=vn;/*!
|
|
6
6
|
* Determine if an object is a Buffer
|
|
7
7
|
*
|
|
8
8
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
9
9
|
* @license MIT
|
|
10
|
-
*/var Ga=function(e){return e!=null&&(qi(e)||Ua(e)||!!e._isBuffer)};function qi(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ua(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&qi(e.slice(0,0))}(function(){var e=$a,t=ni.utf8,n=Ga,i=ni.bin,r=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=i.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var a=e.bytesToWords(o),u=o.length*8,l=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h<a.length;h++)a[h]=(a[h]<<8|a[h]>>>24)&16711935|(a[h]<<24|a[h]>>>8)&4278255360;a[u>>>5]|=128<<u%32,a[(u+64>>>9<<4)+14]=u;for(var p=r._ff,_=r._gg,y=r._hh,g=r._ii,h=0;h<a.length;h+=16){var E=l,L=c,O=f,I=d;l=p(l,c,f,d,a[h+0],7,-680876936),d=p(d,l,c,f,a[h+1],12,-389564586),f=p(f,d,l,c,a[h+2],17,606105819),c=p(c,f,d,l,a[h+3],22,-1044525330),l=p(l,c,f,d,a[h+4],7,-176418897),d=p(d,l,c,f,a[h+5],12,1200080426),f=p(f,d,l,c,a[h+6],17,-1473231341),c=p(c,f,d,l,a[h+7],22,-45705983),l=p(l,c,f,d,a[h+8],7,1770035416),d=p(d,l,c,f,a[h+9],12,-1958414417),f=p(f,d,l,c,a[h+10],17,-42063),c=p(c,f,d,l,a[h+11],22,-1990404162),l=p(l,c,f,d,a[h+12],7,1804603682),d=p(d,l,c,f,a[h+13],12,-40341101),f=p(f,d,l,c,a[h+14],17,-1502002290),c=p(c,f,d,l,a[h+15],22,1236535329),l=_(l,c,f,d,a[h+1],5,-165796510),d=_(d,l,c,f,a[h+6],9,-1069501632),f=_(f,d,l,c,a[h+11],14,643717713),c=_(c,f,d,l,a[h+0],20,-373897302),l=_(l,c,f,d,a[h+5],5,-701558691),d=_(d,l,c,f,a[h+10],9,38016083),f=_(f,d,l,c,a[h+15],14,-660478335),c=_(c,f,d,l,a[h+4],20,-405537848),l=_(l,c,f,d,a[h+9],5,568446438),d=_(d,l,c,f,a[h+14],9,-1019803690),f=_(f,d,l,c,a[h+3],14,-187363961),c=_(c,f,d,l,a[h+8],20,1163531501),l=_(l,c,f,d,a[h+13],5,-1444681467),d=_(d,l,c,f,a[h+2],9,-51403784),f=_(f,d,l,c,a[h+7],14,1735328473),c=_(c,f,d,l,a[h+12],20,-1926607734),l=y(l,c,f,d,a[h+5],4,-378558),d=y(d,l,c,f,a[h+8],11,-2022574463),f=y(f,d,l,c,a[h+11],16,1839030562),c=y(c,f,d,l,a[h+14],23,-35309556),l=y(l,c,f,d,a[h+1],4,-1530992060),d=y(d,l,c,f,a[h+4],11,1272893353),f=y(f,d,l,c,a[h+7],16,-155497632),c=y(c,f,d,l,a[h+10],23,-1094730640),l=y(l,c,f,d,a[h+13],4,681279174),d=y(d,l,c,f,a[h+0],11,-358537222),f=y(f,d,l,c,a[h+3],16,-722521979),c=y(c,f,d,l,a[h+6],23,76029189),l=y(l,c,f,d,a[h+9],4,-640364487),d=y(d,l,c,f,a[h+12],11,-421815835),f=y(f,d,l,c,a[h+15],16,530742520),c=y(c,f,d,l,a[h+2],23,-995338651),l=g(l,c,f,d,a[h+0],6,-198630844),d=g(d,l,c,f,a[h+7],10,1126891415),f=g(f,d,l,c,a[h+14],15,-1416354905),c=g(c,f,d,l,a[h+5],21,-57434055),l=g(l,c,f,d,a[h+12],6,1700485571),d=g(d,l,c,f,a[h+3],10,-1894986606),f=g(f,d,l,c,a[h+10],15,-1051523),c=g(c,f,d,l,a[h+1],21,-2054922799),l=g(l,c,f,d,a[h+8],6,1873313359),d=g(d,l,c,f,a[h+15],10,-30611744),f=g(f,d,l,c,a[h+6],15,-1560198380),c=g(c,f,d,l,a[h+13],21,1309151649),l=g(l,c,f,d,a[h+4],6,-145523070),d=g(d,l,c,f,a[h+11],10,-1120210379),f=g(f,d,l,c,a[h+2],15,718787259),c=g(c,f,d,l,a[h+9],21,-343485551),l=l+E>>>0,c=c+L>>>0,f=f+O>>>0,d=d+I>>>0}return e.endian([l,c,f,d])};r._ff=function(o,s,a,u,l,c,f){var d=o+(s&a|~s&u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._gg=function(o,s,a,u,l,c,f){var d=o+(s&u|a&~u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._hh=function(o,s,a,u,l,c,f){var d=o+(s^a^u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._ii=function(o,s,a,u,l,c,f){var d=o+(a^(s|~u))+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._blocksize=16,r._digestsize=16,Yi.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var a=e.wordsToBytes(r(o,s));return s&&s.asBytes?a:s&&s.asString?i.bytesToString(a):e.bytesToHex(a)}})();var Va=Yi.exports;const za=Gt(Va);function Ka(e){return[...e].reduce((t,n)=>Math.imul(31,t)+n.charCodeAt(0)|0,0)}function Wa(e){ue(e,"svelte-1rap1nb",".Column.svelte-1rap1nb{height:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.Column.importanceColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Xa(e){let t,n,i;const r=e[2].default,o=bt(r,e,e[1],null);return{c(){t=x("div"),o&&o.c(),v(t,"class",n="Column "+e[0]+" svelte-1rap1nb")},m(s,a){N(s,t,a),o&&o.m(t,null),i=!0},p(s,[a]){o&&o.p&&(!i||a&2)&&Et(o,r,s,s[1],i?wt(r,s[1],a,null):Tt(s[1]),null),(!i||a&1&&n!==(n="Column "+s[0]+" svelte-1rap1nb"))&&v(t,"class",n)},i(s){i||(T(o,s),i=!0)},o(s){k(o,s),i=!1},d(s){s&&R(t),o&&o.d(s)}}}function Ja(e,t,n){let{$$slots:i={},$$scope:r}=t,{className:o=""}=t;return e.$$set=s=>{"className"in s&&n(0,o=s.className),"$$scope"in s&&n(1,r=s.$$scope)},[o,r,i]}class Sn extends re{constructor(t){super(),ie(this,t,Ja,Xa,te,{className:0},Wa)}}var ji={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(yi,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",c="week",f="month",d="quarter",h="year",p="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|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,E={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(M){var S=["th","st","nd","rd"],C=M%100;return"["+M+(S[(C-20)%10]||S[C]||S[0])+"]"}},L=function(M,S,C){var D=String(M);return!D||D.length>=S?M:""+Array(S+1-D.length).join(C)+M},O={s:L,z:function(M){var S=-M.utcOffset(),C=Math.abs(S),D=Math.floor(C/60),A=C%60;return(S<=0?"+":"-")+L(D,2,"0")+":"+L(A,2,"0")},m:function M(S,C){if(S.date()<C.date())return-M(C,S);var D=12*(C.year()-S.year())+(C.month()-S.month()),A=S.clone().add(D,f),B=C-A<0,U=S.clone().add(D+(B?-1:1),f);return+(-(D+(C-A)/(B?A-U:U-A))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:c,d:l,D:p,h:u,m:a,s,ms:o,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},I="en",Y={};Y[I]=E;var de="$isDayjsObject",ne=function(M){return M instanceof Te||!(!M||!M[de])},fe=function M(S,C,D){var A;if(!S)return I;if(typeof S=="string"){var B=S.toLowerCase();Y[B]&&(A=B),C&&(Y[B]=C,A=B);var U=S.split("-");if(!A&&U.length>1)return M(U[0])}else{var J=S.name;Y[J]=S,A=J}return!D&&A&&(I=A),A||!D&&I},ae=function(M,S){if(ne(M))return M.clone();var C=typeof S=="object"?S:{};return C.date=M,C.args=arguments,new Te(C)},z=O;z.l=fe,z.i=ne,z.w=function(M,S){return ae(M,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Te=function(){function M(C){this.$L=fe(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[de]=!0}var S=M.prototype;return S.parse=function(C){this.$d=function(D){var A=D.date,B=D.utc;if(A===null)return new Date(NaN);if(z.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var U=A.match(y);if(U){var J=U[2]-1||0,ee=(U[7]||"0").substring(0,3);return B?new Date(Date.UTC(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)):new Date(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)}}return new Date(A)}(C),this.init()},S.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},S.$utils=function(){return z},S.isValid=function(){return this.$d.toString()!==_},S.isSame=function(C,D){var A=ae(C);return this.startOf(D)<=A&&A<=this.endOf(D)},S.isAfter=function(C,D){return ae(C)<this.startOf(D)},S.isBefore=function(C,D){return this.endOf(D)<ae(C)},S.$g=function(C,D,A){return z.u(C)?this[D]:this.set(A,C)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(C,D){var A=this,B=!!z.u(D)||D,U=z.p(C),J=function(Pe,_e){var Ne=z.w(A.$u?Date.UTC(A.$y,_e,Pe):new Date(A.$y,_e,Pe),A);return B?Ne:Ne.endOf(l)},ee=function(Pe,_e){return z.w(A.toDate()[Pe].apply(A.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(_e)),A)},P=this.$W,Q=this.$M,ge=this.$D,Ae="set"+(this.$u?"UTC":"");switch(U){case h:return B?J(1,0):J(31,11);case f:return B?J(1,Q):J(0,Q+1);case c:var Le=this.$locale().weekStart||0,ot=(P<Le?P+7:P)-Le;return J(B?ge-ot:ge+(6-ot),Q);case l:case p:return ee(Ae+"Hours",0);case u:return ee(Ae+"Minutes",1);case a:return ee(Ae+"Seconds",2);case s:return ee(Ae+"Milliseconds",3);default:return this.clone()}},S.endOf=function(C){return this.startOf(C,!1)},S.$set=function(C,D){var A,B=z.p(C),U="set"+(this.$u?"UTC":""),J=(A={},A[l]=U+"Date",A[p]=U+"Date",A[f]=U+"Month",A[h]=U+"FullYear",A[u]=U+"Hours",A[a]=U+"Minutes",A[s]=U+"Seconds",A[o]=U+"Milliseconds",A)[B],ee=B===l?this.$D+(D-this.$W):D;if(B===f||B===h){var P=this.clone().set(p,1);P.$d[J](ee),P.init(),this.$d=P.set(p,Math.min(this.$D,P.daysInMonth())).$d}else J&&this.$d[J](ee);return this.init(),this},S.set=function(C,D){return this.clone().$set(C,D)},S.get=function(C){return this[z.p(C)]()},S.add=function(C,D){var A,B=this;C=Number(C);var U=z.p(D),J=function(Q){var ge=ae(B);return z.w(ge.date(ge.date()+Math.round(Q*C)),B)};if(U===f)return this.set(f,this.$M+C);if(U===h)return this.set(h,this.$y+C);if(U===l)return J(1);if(U===c)return J(7);var ee=(A={},A[a]=i,A[u]=r,A[s]=n,A)[U]||1,P=this.$d.getTime()+C*ee;return z.w(P,this)},S.subtract=function(C,D){return this.add(-1*C,D)},S.format=function(C){var D=this,A=this.$locale();if(!this.isValid())return A.invalidDate||_;var B=C||"YYYY-MM-DDTHH:mm:ssZ",U=z.z(this),J=this.$H,ee=this.$m,P=this.$M,Q=A.weekdays,ge=A.months,Ae=A.meridiem,Le=function(_e,Ne,st,Ct){return _e&&(_e[Ne]||_e(D,B))||st[Ne].slice(0,Ct)},ot=function(_e){return z.s(J%12||12,_e,"0")},Pe=Ae||function(_e,Ne,st){var Ct=_e<12?"AM":"PM";return st?Ct.toLowerCase():Ct};return B.replace(g,function(_e,Ne){return Ne||function(st){switch(st){case"YY":return String(D.$y).slice(-2);case"YYYY":return z.s(D.$y,4,"0");case"M":return P+1;case"MM":return z.s(P+1,2,"0");case"MMM":return Le(A.monthsShort,P,ge,3);case"MMMM":return Le(ge,P);case"D":return D.$D;case"DD":return z.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return Le(A.weekdaysMin,D.$W,Q,2);case"ddd":return Le(A.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(J);case"HH":return z.s(J,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return Pe(J,ee,!0);case"A":return Pe(J,ee,!1);case"m":return String(ee);case"mm":return z.s(ee,2,"0");case"s":return String(D.$s);case"ss":return z.s(D.$s,2,"0");case"SSS":return z.s(D.$ms,3,"0");case"Z":return U}return null}(_e)||U.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(C,D,A){var B,U=this,J=z.p(D),ee=ae(C),P=(ee.utcOffset()-this.utcOffset())*i,Q=this-ee,ge=function(){return z.m(U,ee)};switch(J){case h:B=ge()/12;break;case f:B=ge();break;case d:B=ge()/3;break;case c:B=(Q-P)/6048e5;break;case l:B=(Q-P)/864e5;break;case u:B=Q/r;break;case a:B=Q/i;break;case s:B=Q/n;break;default:B=Q}return A?B:z.a(B)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return Y[this.$L]},S.locale=function(C,D){if(!C)return this.$L;var A=this.clone(),B=fe(C,D,!0);return B&&(A.$L=B),A},S.clone=function(){return z.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},M}(),Ce=Te.prototype;return ae.prototype=Ce,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",f],["$y",h],["$D",p]].forEach(function(M){Ce[M[1]]=function(S){return this.$g(S,M[0],M[1])}}),ae.extend=function(M,S){return M.$i||(M(S,Te,ae),M.$i=!0),ae},ae.locale=fe,ae.isDayjs=ne,ae.unix=function(M){return ae(1e3*M)},ae.en=Y[I],ae.Ls=Y,ae.p={},ae})})(ji);var Za=ji.exports;const ct=Gt(Za);var er={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(yi,function(){return function(n,i,r){n=n||{};var o=i.prototype,s={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 a(l,c,f,d){return o.fromToBase(l,c,f,d)}r.en.relativeTime=s,o.fromToBase=function(l,c,f,d,h){for(var p,_,y,g=f.$locale().relativeTime||s,E=n.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"}],L=E.length,O=0;O<L;O+=1){var I=E[O];I.d&&(p=d?r(l).diff(f,I.d,!0):f.diff(l,I.d,!0));var Y=(n.rounding||Math.round)(Math.abs(p));if(y=p>0,Y<=I.r||!I.r){Y<=1&&O>0&&(I=E[O-1]);var de=g[I.l];h&&(Y=h(""+Y)),_=typeof de=="string"?de.replace("%d",Y):de(Y,c,I.l,y);break}}if(c)return _;var ne=y?g.future:g.past;return typeof ne=="function"?ne(_):ne.replace("%s",_)},o.to=function(l,c){return a(l,c,this,!0)},o.from=function(l,c){return a(l,c,this)};var u=function(l){return l.$u?r.utc():r()};o.toNow=function(l){return this.to(u(this),l)},o.fromNow=function(l){return this.from(u(this),l)}}})})(er);var Ya=er.exports;const Qa=Gt(Ya);ct.extend(Qa);function qa(e){let t,n,i=[e[3],{title:e[2]},{datetime:e[1]}],r={};for(let o=0;o<i.length;o+=1)r=gt(r,i[o]);return{c(){t=x("time"),n=j(e[0]),Rn(t,r)},m(o,s){N(o,t,s),w(t,n)},p(o,[s]){s&1&&pr(n,o[0],r.contenteditable),Rn(t,r=_i(i,[s&8&&o[3],s&4&&{title:o[2]},s&2&&{datetime:o[1]}]))},i:X,o:X,d(o){o&&R(t)}}}function ja(e,t,n){let i;const r=["timestamp","format","relative","live","formatted"];let o=On(t,r),{timestamp:s=new Date().toISOString()}=t,{format:a="MMM DD, YYYY"}=t,{relative:u=!1}=t,{live:l=!1}=t,{formatted:c=""}=t,f;const d=60*1e3;return $t(()=>()=>clearInterval(f)),e.$$set=h=>{t=gt(gt({},t),lr(h)),n(3,o=On(t,r)),"timestamp"in h&&n(1,s=h.timestamp),"format"in h&&n(4,a=h.format),"relative"in h&&n(5,u=h.relative),"live"in h&&n(6,l=h.live),"formatted"in h&&n(0,c=h.formatted)},e.$$.update=()=>{e.$$.dirty&98&&u&&l!==!1&&(f=setInterval(()=>{n(0,c=ct(s).from())},Math.abs(typeof l=="number"?l:d))),e.$$.dirty&50&&n(0,c=u?ct(s).from():ct(s).format(a)),e.$$.dirty&50&&n(2,i=u?ct(s).format(a):void 0)},[c,s,i,o,a,u,l]}class tr extends re{constructor(t){super(),ie(this,t,ja,qa,te,{timestamp:1,format:4,relative:5,live:6,formatted:0})}}function el(e){ue(e,"svelte-1xxfpqg",`.Tag.svelte-1xxfpqg{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;font-size:13px;font-weight:bold;line-height:20px;padding:2px 6px;margin-right:6px;margin-top:2px;border-radius:69px}.empty.svelte-1xxfpqg{display:none}.Tag.svelte-1xxfpqg:before{font-family:"la-icon-font"}.SLA.svelte-1xxfpqg{border:1px solid var(--main-lighter-textcolor);border-radius:4px;color:var(--main-lighter-textcolor)
|
|
11
|
-
}@media(min-width: 768px){.Tag.svelte-1xxfpqg{font-size:12px}}`)}function tl(e){let t,n;return{c(){t=x("span"),n=j(e[1]),v(t,"class","text")},m(i,r){N(i,t,r),w(t,n)},p(i,r){r&2&&se(n,i[1])},i:X,o:X,d(i){i&&R(t)}}}function nl(e){let t,n,i,r,o;const s=[rl,il],a=[];function u(l,c){return c&2&&(t=null),t==null&&(t=!isNaN(l[1].getTime())),t?0:1}return n=u(e,-1),i=a[n]=s[n](e),{c(){i.c(),r=xt()},m(l,c){a[n].m(l,c),N(l,r,c),o=!0},p(l,c){let f=n;n=u(l,c),n===f?a[n].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),i=a[n],i?i.p(l,c):(i=a[n]=s[n](l),i.c()),T(i,1),i.m(r.parentNode,r))},i(l){o||(T(i),o=!0)},o(l){k(i),o=!1},d(l){l&&R(r),a[n].d(l)}}}function il(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","invalid")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:X,o:X,d(r){r&&R(t)}}}function rl(e){let t,n;return t=new tr({props:{style:e[3],timestamp:e[1],format:"",relative:!0}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&8&&(o.style=i[3]),r&2&&(o.timestamp=i[1]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ol(e){let t,n,i,r,o,s;const a=e[6].default,u=bt(a,e,e[5],null),l=[nl,tl],c=[];function f(d,h){return d[1]instanceof Date?0:1}return i=f(e),r=c[i]=l[i](e),{c(){t=x("div"),u&&u.c(),n=V(),r.c(),v(t,"class",o="Tag "+e[0]+" svelte-1xxfpqg"),v(t,"style",e[2])},m(d,h){N(d,t,h),u&&u.m(t,null),w(t,n),c[i].m(t,null),s=!0},p(d,[h]){u&&u.p&&(!s||h&32)&&Et(u,a,d,d[5],s?wt(a,d[5],h,null):Tt(d[5]),null);let p=i;i=f(d),i===p?c[i].p(d,h):(be(),k(c[p],1,1,()=>{c[p]=null}),we(),r=c[i],r?r.p(d,h):(r=c[i]=l[i](d),r.c()),T(r,1),r.m(t,null)),(!s||h&1&&o!==(o="Tag "+d[0]+" svelte-1xxfpqg"))&&v(t,"class",o),(!s||h&4)&&v(t,"style",d[2])},i(d){s||(T(u,d),T(r),s=!0)},o(d){k(u,d),k(r),s=!1},d(d){d&&R(t),u&&u.d(d),c[i].d()}}}function sl(e,t,n){let i;K(e,Ee,c=>n(4,i=c));let{$$slots:r={},$$scope:o}=t,{text:s}=t,{className:a=""}=t,{style:u=""}=t,{timeStyle:l=""}=t;return e.$$set=c=>{"text"in c&&n(1,s=c.text),"className"in c&&n(0,a=c.className),"style"in c&&n(2,u=c.style),"timeStyle"in c&&n(3,l=c.timeStyle),"$$scope"in c&&n(5,o=c.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&s===""&&n(0,a="empty")},[a,s,u,l,i,o,r]}class Xt extends re{constructor(t){super(),ie(this,t,sl,ol,te,{text:1,className:0,style:2,timeStyle:3},el)}}function al(e){ue(e,"svelte-1ify73x","div.Tag.IconTag{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:4px}.IconTag .Icon{display:flex;align-items:center;justify-content:center;font-size:16px;width:16px;height:16px}div.Tag.IconTag.Department{background-color:var(--department-bg-color);color:white}")}function ll(e){let t,n;return t=new Oe({props:{iconLaClassName:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&4&&(o.iconLaClassName=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ul(e){let t,n;return t=new Xt({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[ll]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.text=i[0]),r&2&&(o.style=i[1]),r&36&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function cl(e,t,n){let{text:i}=t,{className:r=""}=t,{style:o=""}=t,{iconLaClassName:s}=t,a=`IconTag ${r}`;return e.$$set=u=>{"text"in u&&n(0,i=u.text),"className"in u&&n(4,r=u.className),"style"in u&&n(1,o=u.style),"iconLaClassName"in u&&n(2,s=u.iconLaClassName)},[i,o,s,a,r]}class Jt extends re{constructor(t){super(),ie(this,t,cl,ul,te,{text:0,className:4,style:1,iconLaClassName:2},al)}}function fl(e){ue(e,"svelte-1wen6ck",".Column.userColumn{display:flex;align-items:center}.Tag.CompanyTag{background-color:var(--department-bg-color);color:var(--main-textcolor)}div.Tag.NoCompanyTag{color:var(--main-lighter-textcolor);border:1px solid var(--main-lighter-textcolor)}.avatar.svelte-1wen6ck{display:none}.companyTag.svelte-1wen6ck{display:none}.name.svelte-1wen6ck{font-size:14px;line-height:20px;font-weight:bold;padding-right:8px;margin-right:6px;position:relative}.name.svelte-1wen6ck::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-1wen6ck{font-weight:400;color:var(--main-lighter-textcolor)}.email.svelte-1wen6ck{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-1wen6ck{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 900px){.avatar.svelte-1wen6ck{display:flex;align-items:center;justify-content:center;margin:0 10px;width:40px;height:40px}.name.svelte-1wen6ck{padding:0;border:none;font-size:13px}.name.svelte-1wen6ck::after{display:none}.email.svelte-1wen6ck{font-size:13px;padding:0}.companyTag.svelte-1wen6ck{display:flex}.texts.svelte-1wen6ck{display:flex;flex-direction:column;justify-content:space-around}}")}function ii(e){let t,n;const i=[e[2]];let r={};for(let o=0;o<i.length;o+=1)r=gt(r,i[o]);return t=new Fa({props:r}),{c(){G(t.$$.fragment)},m(o,s){F(t,o,s),n=!0},p(o,s){const a=s&4?_i(i,[Tr(o[2])]):{};t.$set(a)},i(o){n||(T(t.$$.fragment,o),n=!0)},o(o){k(t.$$.fragment,o),n=!1},d(o){$(t,o)}}}function dl(e){let t,n=e[2].name,i,r,o,s=(e[3]!==void 0?e[3]:e[4]("No name"))+"",a,u,l,c,f=(e[0].emails.length!==0?e[0].emails[0]:e[4]("No email"))+"",d,h,p,_,y,g,E=ii(e);return y=new Jt({props:{text:e[0].company==="Y"?"Company":e[4]("No Company"),className:(e[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag",iconLaClassName:"la-companies"}}),{c(){t=x("div"),E.c(),i=V(),r=x("div"),o=x("div"),a=j(s),l=V(),c=x("div"),d=j(f),p=V(),_=x("div"),G(y.$$.fragment),v(t,"class","avatar svelte-1wen6ck"),v(o,"class",u=ce(e[3]?"name":"no name")+" svelte-1wen6ck"),v(c,"class",h=ce(e[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"),v(_,"class","companyTag svelte-1wen6ck"),v(r,"class","texts svelte-1wen6ck")},m(L,O){N(L,t,O),E.m(t,null),N(L,i,O),N(L,r,O),w(r,o),w(o,a),w(r,l),w(r,c),w(c,d),w(r,p),w(r,_),F(y,_,null),g=!0},p(L,O){O&4&&te(n,n=L[2].name)?(be(),k(E,1,1,X),we(),E=ii(L),E.c(),T(E,1),E.m(t,null)):E.p(L,O),(!g||O&24)&&s!==(s=(L[3]!==void 0?L[3]:L[4]("No name"))+"")&&se(a,s),(!g||O&8&&u!==(u=ce(L[3]?"name":"no name")+" svelte-1wen6ck"))&&v(o,"class",u),(!g||O&17)&&f!==(f=(L[0].emails.length!==0?L[0].emails[0]:L[4]("No email"))+"")&&se(d,f),(!g||O&1&&h!==(h=ce(L[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"))&&v(c,"class",h);const I={};O&17&&(I.text=L[0].company==="Y"?"Company":L[4]("No Company")),O&1&&(I.className=(L[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag"),y.$set(I)},i(L){g||(T(E),T(y.$$.fragment,L),g=!0)},o(L){k(E),k(y.$$.fragment,L),g=!1},d(L){L&&(R(t),R(i),R(r)),E.d(L),$(y)}}}function hl(e){let t,n;return t=new Sn({props:{className:e[1],$$slots:{default:[dl]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&2&&(o.className=i[1]),r&285&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ml(e,t,n){if(!e)return(n[0]+n[1]).toUpperCase();let i=e[0];return t&&(i+=t[0]),i}function gl(e,t,n){let i,r,o;K(e,Ee,f=>n(4,o=f));let{row:s}=t,{className:a="userColumn"}=t;function u(f,d,h){if(!f)return"";let p=f+" "+d;return p.trim()||(p=h),p}function l(f,d){let h=f;return h||(h="https://www.gravatar.com/avatar/"+za(d[0]??"")+"?s=200&d=404"),h}function c(f,d,h,p){let _;p?_=Ka(u(f,d,p)+h):_=Math.floor(Math.random()*16777215);let y=(_&16711680)>>16,g=(_&65280)>>8,E=_&255;return y+g+E<150&&(y=150),y+g+E>400&&(y=0),`rgb(${y},${g},${E})`}return e.$$set=f=>{"row"in f&&n(0,s=f.row),"className"in f&&n(1,a=f.className)},e.$$.update=()=>{e.$$.dirty&1&&n(3,i=s.name),e.$$.dirty&1&&n(2,r={bgColor:c(s.firstname,s.lastname,s.emails,s.systemName),name:u(s.firstname,s.lastname,s.systemName),src:l(s.avatarUrl,s.emails),initials:ml(s.firstname,s.lastname,s.systemName)})},[s,a,r,i,o]}class pl extends re{constructor(t){super(),ie(this,t,gl,hl,te,{row:0,className:1},fl)}}function _l(e){ue(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function vl(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","invalid svelte-hsbbji")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:X,o:X,d(r){r&&R(t)}}}function yl(e){let t,n;return t=new tr({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&4&&(o.style=i[2]),r&1&&(o.timestamp=i[0]),r&2&&(o.format=i[1]),r&8&&(o.relative=i[3]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function bl(e){let t,n,i,r,o;const s=[yl,vl],a=[];function u(l,c){return c&1&&(n=null),n==null&&(n=l[0]instanceof Date&&!isNaN(l[0].getTime())),n?0:1}return i=u(e,-1),r=a[i]=s[i](e),{c(){t=x("div"),r.c(),v(t,"class","Date svelte-hsbbji")},m(l,c){N(l,t,c),a[i].m(t,null),o=!0},p(l,[c]){let f=i;i=u(l,c),i===f?a[i].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),r=a[i],r?r.p(l,c):(r=a[i]=s[i](l),r.c()),T(r,1),r.m(t,null))},i(l){o||(T(r),o=!0)},o(l){k(r),o=!1},d(l){l&&R(t),a[i].d()}}}function wl(e,t,n){let i;K(e,Ee,u=>n(4,i=u));let{data:r}=t,{format:o=aa()}=t,{style:s=""}=t,{relative:a=!1}=t;return e.$$set=u=>{"data"in u&&n(0,r=u.data),"format"in u&&n(1,o=u.format),"style"in u&&n(2,s=u.style),"relative"in u&&n(3,a=u.relative)},[r,o,s,a,i]}class ri extends re{constructor(t){super(),ie(this,t,wl,bl,te,{data:0,format:1,style:2,relative:3},_l)}}function El(e){ue(e,"svelte-1q9wgt3",".IconWrapper.svelte-1q9wgt3{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-1q9wgt3{display:inline-flex;flex-direction:row;border-radius:4px;margin-top:2px;margin-right:6px;padding-right:0}.Pending.svelte-1q9wgt3{background-color:var(--ok-color)}.Overdue.svelte-1q9wgt3{background-color:var(--notif-error-color)}")}function Tl(e){let t,n,i,r;n=new Oe({props:{iconLaClassName:e[2]}});const o=e[7].default,s=bt(o,e,e[6],null);return{c(){t=x("div"),G(n.$$.fragment),i=V(),s&&s.c(),v(t,"class","IconWrapper svelte-1q9wgt3")},m(a,u){N(a,t,u),F(n,t,null),N(a,i,u),s&&s.m(a,u),r=!0},p(a,u){const l={};u&4&&(l.iconLaClassName=a[2]),n.$set(l),s&&s.p&&(!r||u&64)&&Et(s,o,a,a[6],r?wt(o,a[6],u,null):Tt(a[6]),null)},i(a){r||(T(n.$$.fragment,a),T(s,a),r=!0)},o(a){k(n.$$.fragment,a),k(s,a),r=!1},d(a){a&&(R(t),R(i)),$(n),s&&s.d(a)}}}function xl(e){let t,n;return t=new Jt({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&16&&(o.style=i[4]),r&1&&(o.text=i[0]),r&4&&(o.iconLaClassName=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function kl(e){let t,n,i,r,o,s,a;const u=[xl,Tl],l=[];function c(f,d){return f[0]!==""?0:1}return n=c(e),i=l[n]=u[n](e),o=new Xt({props:{style:e[5],text:e[1]}}),{c(){t=x("div"),i.c(),r=V(),G(o.$$.fragment),v(t,"class",s=ce(`CombinedTag ${e[3]}`)+" svelte-1q9wgt3")},m(f,d){N(f,t,d),l[n].m(t,null),w(t,r),F(o,t,null),a=!0},p(f,[d]){let h=n;n=c(f),n===h?l[n].p(f,d):(be(),k(l[h],1,1,()=>{l[h]=null}),we(),i=l[n],i?i.p(f,d):(i=l[n]=u[n](f),i.c()),T(i,1),i.m(t,r));const p={};d&32&&(p.style=f[5]),d&2&&(p.text=f[1]),o.$set(p),(!a||d&8&&s!==(s=ce(`CombinedTag ${f[3]}`)+" svelte-1q9wgt3"))&&v(t,"class",s)},i(f){a||(T(i),T(o.$$.fragment,f),a=!0)},o(f){k(i),k(o.$$.fragment,f),a=!1},d(f){f&&R(t),l[n].d(),$(o)}}}function Cl(e,t,n){let{$$slots:i={},$$scope:r}=t,{iconText:o=""}=t,{tagText:s}=t,{iconLaClassName:a}=t,{className:u}=t,{iconTagStyles:l}=t,{tagStyles:c}=t;return e.$$set=f=>{"iconText"in f&&n(0,o=f.iconText),"tagText"in f&&n(1,s=f.tagText),"iconLaClassName"in f&&n(2,a=f.iconLaClassName),"className"in f&&n(3,u=f.className),"iconTagStyles"in f&&n(4,l=f.iconTagStyles),"tagStyles"in f&&n(5,c=f.tagStyles),"$$scope"in f&&n(6,r=f.$$scope)},[o,s,a,u,l,c,r,i]}class nr extends re{constructor(t){super(),ie(this,t,Cl,kl,te,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},El)}}function Ll(e){let t,n;return t=new Xt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&16&&(o.text=i[4]("No SLA")),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Sl(e){let t,n;return t=new nr({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&2&&(o.iconText=i[1]),r&8&&(o.iconLaClassName=i[3].icon),r&1&&(o.tagText=i[0]),r&8&&(o.className=i[3].className),r&8&&(o.tagStyles=i[3].tagStyles),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Al(e){let t,n,i,r;const o=[Sl,Ll],s=[];function a(u,l){return u[2]?0:1}return t=a(e),n=s[t]=o[t](e),{c(){n.c(),i=xt()},m(u,l){s[t].m(u,l),N(u,i,l),r=!0},p(u,[l]){let c=t;t=a(u),t===c?s[t].p(u,l):(be(),k(s[c],1,1,()=>{s[c]=null}),we(),n=s[t],n?n.p(u,l):(n=s[t]=o[t](u),n.c()),T(n,1),n.m(i.parentNode,i))},i(u){r||(T(n),r=!0)},o(u){k(n),r=!1},d(u){u&&R(i),s[t].d(u)}}}function Ol(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-sla",tagStyles:"color: var(--ok-color); background-color: #D9FAE0; border-radius: 4px; border: 1px solid var(--ok-color); margin: 0"}:{className:"SLATag Overdue",icon:"la-sla-compliance",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function Rl(e,t,n){let i,r,o;K(e,Ee,u=>n(4,o=u));let{tagText:s=o("First answer")}=t,{due:a}=t;return e.$$set=u=>{"tagText"in u&&n(0,s=u.tagText),"due"in u&&n(1,a=u.due)},e.$$.update=()=>{e.$$.dirty&2&&n(3,i=Ol(a)),e.$$.dirty&2&&n(2,r=a instanceof Date&&!isNaN(a))},[s,a,r,i,o]}class Nl extends re{constructor(t){super(),ie(this,t,Rl,Al,te,{tagText:0,due:1})}}function Il(e){ue(e,"svelte-eafxx5",".TicketId.svelte-eafxx5{font-weight:bold;font-size:14px;line-height:20px;margin-right:14px}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:14px;line-height:20px}.Communication.svelte-eafxx5{font-size:14px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.ticketDetails.svelte-eafxx5{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}@media(min-width: 900px){.Changed.svelte-eafxx5{display:none}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:13px}.TicketId.svelte-eafxx5{font-size:13px}.ticketDetails.svelte-eafxx5{margin:0}.Communication.svelte-eafxx5{font-size:13px}}")}function Dl(e){let t,n,i=e[1].code+"",r,o,s,a,u,l,c,f=e[1].messagegroupsIn+"",d,h,p,_,y,g,E=e[1].messagegroupsOut+"",L,O,I,Y,de=e[2]("Created")+"",ne,fe,ae,z,Te,Ce,M,S=e[2]("Changed")+"",C,D,A,B,U,J,ee;return u=new Oe({props:{iconLaClassName:"la-incoming"}}),_=new Oe({props:{iconLaClassName:"la-outgoing"}}),z=new ri({props:{data:At(e[1].datecreated)}}),B=new ri({props:{data:At(e[1].datechanged)}}),J=new Nl({props:{tagText:"",due:e[1].datedue}}),{c(){t=x("div"),n=x("span"),r=j(i),o=V(),s=x("div"),a=x("div"),G(u.$$.fragment),l=V(),c=x("span"),d=j(f),h=V(),p=x("div"),G(_.$$.fragment),y=V(),g=x("span"),L=j(E),O=V(),I=x("div"),Y=x("span"),ne=j(de),fe=j(":"),ae=V(),G(z.$$.fragment),Te=V(),Ce=x("div"),M=x("span"),C=j(S),D=j(":"),A=V(),G(B.$$.fragment),U=V(),G(J.$$.fragment),v(n,"class","TicketId svelte-eafxx5"),v(a,"class","Communication incomingMessages svelte-eafxx5"),v(p,"class","Communication outgoingMessages svelte-eafxx5"),v(s,"class","arrows"),v(t,"class","ticketDetails svelte-eafxx5"),v(I,"class","Created svelte-eafxx5"),v(Ce,"class","Changed svelte-eafxx5")},m(P,Q){N(P,t,Q),w(t,n),w(n,r),w(t,o),w(t,s),w(s,a),F(u,a,null),w(a,l),w(a,c),w(c,d),w(s,h),w(s,p),F(_,p,null),w(p,y),w(p,g),w(g,L),N(P,O,Q),N(P,I,Q),w(I,Y),w(Y,ne),w(Y,fe),w(I,ae),F(z,I,null),N(P,Te,Q),N(P,Ce,Q),w(Ce,M),w(M,C),w(M,D),w(Ce,A),F(B,Ce,null),N(P,U,Q),F(J,P,Q),ee=!0},p(P,Q){(!ee||Q&2)&&i!==(i=P[1].code+"")&&se(r,i),(!ee||Q&2)&&f!==(f=P[1].messagegroupsIn+"")&&se(d,f),(!ee||Q&2)&&E!==(E=P[1].messagegroupsOut+"")&&se(L,E),(!ee||Q&4)&&de!==(de=P[2]("Created")+"")&&se(ne,de);const ge={};Q&2&&(ge.data=At(P[1].datecreated)),z.$set(ge),(!ee||Q&4)&&S!==(S=P[2]("Changed")+"")&&se(C,S);const Ae={};Q&2&&(Ae.data=At(P[1].datechanged)),B.$set(Ae);const Le={};Q&2&&(Le.due=P[1].datedue),J.$set(Le)},i(P){ee||(T(u.$$.fragment,P),T(_.$$.fragment,P),T(z.$$.fragment,P),T(B.$$.fragment,P),T(J.$$.fragment,P),ee=!0)},o(P){k(u.$$.fragment,P),k(_.$$.fragment,P),k(z.$$.fragment,P),k(B.$$.fragment,P),k(J.$$.fragment,P),ee=!1},d(P){P&&(R(t),R(O),R(I),R(Te),R(Ce),R(U)),$(u),$(_),$(z),$(B),$(J,P)}}}function Hl(e){let t,n;return t=new Sn({props:{className:e[0],$$slots:{default:[Dl]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.className=i[0]),r&14&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Pl(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{className:r="importanceColumn"}=t,{row:o}=t;return e.$$set=s=>{"className"in s&&n(0,r=s.className),"row"in s&&n(1,o=s.row)},[r,o,i]}class Ml extends re{constructor(t){super(),ie(this,t,Pl,Hl,te,{className:0,row:1},Il)}}function Bl(e){ue(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function Fl(e){let t,n;return t=new Xt({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&6&&(o.style="color: #"+i[2]+"; background: #"+i[1]+"99; border: 1px solid #"+i[1]),r&1&&(o.text=i[0]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function $l(e,t,n){let i,r,o,s;K(e,Wi,u=>n(4,s=u));let{tagId:a}=t;return console.log(s[a]),e.$$set=u=>{"tagId"in u&&n(3,a=u.tagId)},e.$$.update=()=>{var u,l,c;e.$$.dirty&24&&n(2,i=((u=s[a])==null?void 0:u.color)??0),e.$$.dirty&24&&n(1,r=((l=s[a])==null?void 0:l.backgroundcolor)??0),e.$$.dirty&24&&n(0,o=((c=s[a])==null?void 0:c.name)??"")},[o,r,i,a,s]}class Gl extends re{constructor(t){super(),ie(this,t,$l,Fl,te,{tagId:3},Bl)}}function oi(e,t,n){const i=e.slice();return i[1]=t[n],i}function si(e){let t,n;return t=new Gl({props:{tagId:e[1]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.tagId=i[1]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ul(e){let t,n,i=Ze(e[0]),r=[];for(let s=0;s<i.length;s+=1)r[s]=si(oi(e,i,s));const o=s=>k(r[s],1,1,()=>{r[s]=null});return{c(){t=x("span");for(let s=0;s<r.length;s+=1)r[s].c()},m(s,a){N(s,t,a);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(t,null);n=!0},p(s,[a]){if(a&1){i=Ze(s[0]);let u;for(u=0;u<i.length;u+=1){const l=oi(s,i,u);r[u]?(r[u].p(l,a),T(r[u],1)):(r[u]=si(l),r[u].c(),T(r[u],1),r[u].m(t,null))}for(be(),u=i.length;u<r.length;u+=1)o(u);we()}},i(s){if(!n){for(let a=0;a<i.length;a+=1)T(r[a]);n=!0}},o(s){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)k(r[a]);n=!1},d(s){s&&R(t),yn(r,s)}}}function Vl(e,t,n){let{tags:i}=t;return e.$$set=r=>{"tags"in r&&n(0,i=r.tags)},[i]}class zl extends re{constructor(t){super(),ie(this,t,Vl,Ul,te,{tags:0})}}function Kl(e){ue(e,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function Wl(e){let t,n;return t=new Jt({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Ie(e[0]).text+"; background-color: "+Ie(e[0]).bg+"; border-color: "+Ie(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.className="StatusTag "+i[1][i[0]].text),r&1&&(o.style="color: "+Ie(i[0]).text+"; background-color: "+Ie(i[0]).bg+"; border-color: "+Ie(i[0]).border),r&1&&(o.text=i[1][i[0]].text),r&1&&(o.iconLaClassName=i[1][i[0]].icon),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Xl(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{status:r}=t;const o={A:{text:i("Answered"),icon:"la-ticket-answered"},T:{text:i("Chatting"),icon:"la-chatting"},P:{text:i("Calling"),icon:"la-call"},X:{text:i("Deleted"),icon:"la-ticket-deleted"},B:{text:i("Spam"),icon:"la-spam"},I:{text:i("Init"),icon:""},R:{text:i("Resolved"),icon:"la-ticket-resolved"},N:{text:i("New"),icon:"la-ticket-new"},C:{text:i("Open"),icon:"la-ticket-open"},W:{text:i("Postponed"),icon:"la-ticket-postponed"}};return e.$$set=s=>{"status"in s&&n(0,r=s.status)},[r,o]}class Jl extends re{constructor(t){super(),ie(this,t,Xl,Wl,te,{status:0},Kl)}}function Zl(e){let t,n;return t=new Jt({props:{className:rr,text:e[0].departmentname,iconLaClassName:ir}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.text=i[0].departmentname),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Yl(e){let t,n;return t=new nr({props:{iconText:e[0].departmentname,tagText:e[0].agentname,iconLaClassName:ir,className:rr,iconTagStyles:e[1],tagStyles:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.iconText=i[0].departmentname),r&1&&(o.tagText=i[0].agentname),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ql(e){let t,n,i,r,o;const s=[Yl,Zl],a=[];function u(l,c){return c&1&&(t=null),t==null&&(t=l[0].agentname.trim()!==""),t?0:1}return n=u(e,-1),i=a[n]=s[n](e),{c(){i.c(),r=xt()},m(l,c){a[n].m(l,c),N(l,r,c),o=!0},p(l,[c]){let f=n;n=u(l,c),n===f?a[n].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),i=a[n],i?i.p(l,c):(i=a[n]=s[n](l),i.c()),T(i,1),i.m(r.parentNode,r))},i(l){o||(T(i),o=!0)},o(l){k(i),o=!1},d(l){l&&R(r),a[n].d(l)}}}const ir="la-department",rr="Department";function ql(e,t,n){let{data:i}=t,r="color: white; background-color: var(--department-bg-color); margin-top: 0;",o="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return e.$$set=s=>{"data"in s&&n(0,i=s.data)},[i,r,o]}class jl extends re{constructor(t){super(),ie(this,t,ql,Ql,te,{data:0})}}function eu(e){ue(e,"svelte-ccmpo7",`.subject.svelte-ccmpo7{font-size:14px;font-weight:bold;line-height:20px;margin:0}.preview.svelte-ccmpo7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px;margin:0 0 4px;line-height:20px;font-size:14px}.no-text.svelte-ccmpo7{color:var(--main-lighter-textcolor)}.additional.svelte-ccmpo7{display:flex}.CombinedTag.Department{background-color:var(--department-bg-color)}@media(min-width: 768px){.subject.svelte-ccmpo7{font-size:13px
|
|
12
|
-
}.preview.svelte-ccmpo7{font-size:13px;margin:0}}`)}function
|
|
10
|
+
*/var za=function(e){return e!=null&&(er(e)||Ka(e)||!!e._isBuffer)};function er(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ka(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&er(e.slice(0,0))}(function(){var e=Va,t=ri.utf8,n=za,i=ri.bin,r=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=i.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var a=e.bytesToWords(o),u=o.length*8,l=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h<a.length;h++)a[h]=(a[h]<<8|a[h]>>>24)&16711935|(a[h]<<24|a[h]>>>8)&4278255360;a[u>>>5]|=128<<u%32,a[(u+64>>>9<<4)+14]=u;for(var p=r._ff,_=r._gg,y=r._hh,g=r._ii,h=0;h<a.length;h+=16){var E=l,L=c,O=f,I=d;l=p(l,c,f,d,a[h+0],7,-680876936),d=p(d,l,c,f,a[h+1],12,-389564586),f=p(f,d,l,c,a[h+2],17,606105819),c=p(c,f,d,l,a[h+3],22,-1044525330),l=p(l,c,f,d,a[h+4],7,-176418897),d=p(d,l,c,f,a[h+5],12,1200080426),f=p(f,d,l,c,a[h+6],17,-1473231341),c=p(c,f,d,l,a[h+7],22,-45705983),l=p(l,c,f,d,a[h+8],7,1770035416),d=p(d,l,c,f,a[h+9],12,-1958414417),f=p(f,d,l,c,a[h+10],17,-42063),c=p(c,f,d,l,a[h+11],22,-1990404162),l=p(l,c,f,d,a[h+12],7,1804603682),d=p(d,l,c,f,a[h+13],12,-40341101),f=p(f,d,l,c,a[h+14],17,-1502002290),c=p(c,f,d,l,a[h+15],22,1236535329),l=_(l,c,f,d,a[h+1],5,-165796510),d=_(d,l,c,f,a[h+6],9,-1069501632),f=_(f,d,l,c,a[h+11],14,643717713),c=_(c,f,d,l,a[h+0],20,-373897302),l=_(l,c,f,d,a[h+5],5,-701558691),d=_(d,l,c,f,a[h+10],9,38016083),f=_(f,d,l,c,a[h+15],14,-660478335),c=_(c,f,d,l,a[h+4],20,-405537848),l=_(l,c,f,d,a[h+9],5,568446438),d=_(d,l,c,f,a[h+14],9,-1019803690),f=_(f,d,l,c,a[h+3],14,-187363961),c=_(c,f,d,l,a[h+8],20,1163531501),l=_(l,c,f,d,a[h+13],5,-1444681467),d=_(d,l,c,f,a[h+2],9,-51403784),f=_(f,d,l,c,a[h+7],14,1735328473),c=_(c,f,d,l,a[h+12],20,-1926607734),l=y(l,c,f,d,a[h+5],4,-378558),d=y(d,l,c,f,a[h+8],11,-2022574463),f=y(f,d,l,c,a[h+11],16,1839030562),c=y(c,f,d,l,a[h+14],23,-35309556),l=y(l,c,f,d,a[h+1],4,-1530992060),d=y(d,l,c,f,a[h+4],11,1272893353),f=y(f,d,l,c,a[h+7],16,-155497632),c=y(c,f,d,l,a[h+10],23,-1094730640),l=y(l,c,f,d,a[h+13],4,681279174),d=y(d,l,c,f,a[h+0],11,-358537222),f=y(f,d,l,c,a[h+3],16,-722521979),c=y(c,f,d,l,a[h+6],23,76029189),l=y(l,c,f,d,a[h+9],4,-640364487),d=y(d,l,c,f,a[h+12],11,-421815835),f=y(f,d,l,c,a[h+15],16,530742520),c=y(c,f,d,l,a[h+2],23,-995338651),l=g(l,c,f,d,a[h+0],6,-198630844),d=g(d,l,c,f,a[h+7],10,1126891415),f=g(f,d,l,c,a[h+14],15,-1416354905),c=g(c,f,d,l,a[h+5],21,-57434055),l=g(l,c,f,d,a[h+12],6,1700485571),d=g(d,l,c,f,a[h+3],10,-1894986606),f=g(f,d,l,c,a[h+10],15,-1051523),c=g(c,f,d,l,a[h+1],21,-2054922799),l=g(l,c,f,d,a[h+8],6,1873313359),d=g(d,l,c,f,a[h+15],10,-30611744),f=g(f,d,l,c,a[h+6],15,-1560198380),c=g(c,f,d,l,a[h+13],21,1309151649),l=g(l,c,f,d,a[h+4],6,-145523070),d=g(d,l,c,f,a[h+11],10,-1120210379),f=g(f,d,l,c,a[h+2],15,718787259),c=g(c,f,d,l,a[h+9],21,-343485551),l=l+E>>>0,c=c+L>>>0,f=f+O>>>0,d=d+I>>>0}return e.endian([l,c,f,d])};r._ff=function(o,s,a,u,l,c,f){var d=o+(s&a|~s&u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._gg=function(o,s,a,u,l,c,f){var d=o+(s&u|a&~u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._hh=function(o,s,a,u,l,c,f){var d=o+(s^a^u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._ii=function(o,s,a,u,l,c,f){var d=o+(a^(s|~u))+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._blocksize=16,r._digestsize=16,qi.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var a=e.wordsToBytes(r(o,s));return s&&s.asBytes?a:s&&s.asString?i.bytesToString(a):e.bytesToHex(a)}})();var Wa=qi.exports;const Ja=Vt(Wa);function Xa(e){return[...e].reduce((t,n)=>Math.imul(31,t)+n.charCodeAt(0)|0,0)}function Za(e){ue(e,"svelte-1rap1nb",".Column.svelte-1rap1nb{height:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.Column.importanceColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Ya(e){let t,n,i;const r=e[2].default,o=wt(r,e,e[1],null);return{c(){t=x("div"),o&&o.c(),v(t,"class",n="Column "+e[0]+" svelte-1rap1nb")},m(s,a){N(s,t,a),o&&o.m(t,null),i=!0},p(s,[a]){o&&o.p&&(!i||a&2)&&Tt(o,r,s,s[1],i?Et(r,s[1],a,null):xt(s[1]),null),(!i||a&1&&n!==(n="Column "+s[0]+" svelte-1rap1nb"))&&v(t,"class",n)},i(s){i||(T(o,s),i=!0)},o(s){k(o,s),i=!1},d(s){s&&R(t),o&&o.d(s)}}}function Qa(e,t,n){let{$$slots:i={},$$scope:r}=t,{className:o=""}=t;return e.$$set=s=>{"className"in s&&n(0,o=s.className),"$$scope"in s&&n(1,r=s.$$scope)},[o,r,i]}class An extends re{constructor(t){super(),ie(this,t,Qa,Ya,te,{className:0},Za)}}var tr={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(wi,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",c="week",f="month",d="quarter",h="year",p="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|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,E={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(M){var S=["th","st","nd","rd"],C=M%100;return"["+M+(S[(C-20)%10]||S[C]||S[0])+"]"}},L=function(M,S,C){var D=String(M);return!D||D.length>=S?M:""+Array(S+1-D.length).join(C)+M},O={s:L,z:function(M){var S=-M.utcOffset(),C=Math.abs(S),D=Math.floor(C/60),A=C%60;return(S<=0?"+":"-")+L(D,2,"0")+":"+L(A,2,"0")},m:function M(S,C){if(S.date()<C.date())return-M(C,S);var D=12*(C.year()-S.year())+(C.month()-S.month()),A=S.clone().add(D,f),B=C-A<0,U=S.clone().add(D+(B?-1:1),f);return+(-(D+(C-A)/(B?A-U:U-A))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:c,d:l,D:p,h:u,m:a,s,ms:o,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},I="en",Y={};Y[I]=E;var de="$isDayjsObject",ne=function(M){return M instanceof Te||!(!M||!M[de])},fe=function M(S,C,D){var A;if(!S)return I;if(typeof S=="string"){var B=S.toLowerCase();Y[B]&&(A=B),C&&(Y[B]=C,A=B);var U=S.split("-");if(!A&&U.length>1)return M(U[0])}else{var X=S.name;Y[X]=S,A=X}return!D&&A&&(I=A),A||!D&&I},ae=function(M,S){if(ne(M))return M.clone();var C=typeof S=="object"?S:{};return C.date=M,C.args=arguments,new Te(C)},z=O;z.l=fe,z.i=ne,z.w=function(M,S){return ae(M,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Te=function(){function M(C){this.$L=fe(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[de]=!0}var S=M.prototype;return S.parse=function(C){this.$d=function(D){var A=D.date,B=D.utc;if(A===null)return new Date(NaN);if(z.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var U=A.match(y);if(U){var X=U[2]-1||0,ee=(U[7]||"0").substring(0,3);return B?new Date(Date.UTC(U[1],X,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)):new Date(U[1],X,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)}}return new Date(A)}(C),this.init()},S.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},S.$utils=function(){return z},S.isValid=function(){return this.$d.toString()!==_},S.isSame=function(C,D){var A=ae(C);return this.startOf(D)<=A&&A<=this.endOf(D)},S.isAfter=function(C,D){return ae(C)<this.startOf(D)},S.isBefore=function(C,D){return this.endOf(D)<ae(C)},S.$g=function(C,D,A){return z.u(C)?this[D]:this.set(A,C)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(C,D){var A=this,B=!!z.u(D)||D,U=z.p(C),X=function(He,_e){var Re=z.w(A.$u?Date.UTC(A.$y,_e,He):new Date(A.$y,_e,He),A);return B?Re:Re.endOf(l)},ee=function(He,_e){return z.w(A.toDate()[He].apply(A.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(_e)),A)},P=this.$W,Q=this.$M,ge=this.$D,Se="set"+(this.$u?"UTC":"");switch(U){case h:return B?X(1,0):X(31,11);case f:return B?X(1,Q):X(0,Q+1);case c:var Le=this.$locale().weekStart||0,ot=(P<Le?P+7:P)-Le;return X(B?ge-ot:ge+(6-ot),Q);case l:case p:return ee(Se+"Hours",0);case u:return ee(Se+"Minutes",1);case a:return ee(Se+"Seconds",2);case s:return ee(Se+"Milliseconds",3);default:return this.clone()}},S.endOf=function(C){return this.startOf(C,!1)},S.$set=function(C,D){var A,B=z.p(C),U="set"+(this.$u?"UTC":""),X=(A={},A[l]=U+"Date",A[p]=U+"Date",A[f]=U+"Month",A[h]=U+"FullYear",A[u]=U+"Hours",A[a]=U+"Minutes",A[s]=U+"Seconds",A[o]=U+"Milliseconds",A)[B],ee=B===l?this.$D+(D-this.$W):D;if(B===f||B===h){var P=this.clone().set(p,1);P.$d[X](ee),P.init(),this.$d=P.set(p,Math.min(this.$D,P.daysInMonth())).$d}else X&&this.$d[X](ee);return this.init(),this},S.set=function(C,D){return this.clone().$set(C,D)},S.get=function(C){return this[z.p(C)]()},S.add=function(C,D){var A,B=this;C=Number(C);var U=z.p(D),X=function(Q){var ge=ae(B);return z.w(ge.date(ge.date()+Math.round(Q*C)),B)};if(U===f)return this.set(f,this.$M+C);if(U===h)return this.set(h,this.$y+C);if(U===l)return X(1);if(U===c)return X(7);var ee=(A={},A[a]=i,A[u]=r,A[s]=n,A)[U]||1,P=this.$d.getTime()+C*ee;return z.w(P,this)},S.subtract=function(C,D){return this.add(-1*C,D)},S.format=function(C){var D=this,A=this.$locale();if(!this.isValid())return A.invalidDate||_;var B=C||"YYYY-MM-DDTHH:mm:ssZ",U=z.z(this),X=this.$H,ee=this.$m,P=this.$M,Q=A.weekdays,ge=A.months,Se=A.meridiem,Le=function(_e,Re,st,Lt){return _e&&(_e[Re]||_e(D,B))||st[Re].slice(0,Lt)},ot=function(_e){return z.s(X%12||12,_e,"0")},He=Se||function(_e,Re,st){var Lt=_e<12?"AM":"PM";return st?Lt.toLowerCase():Lt};return B.replace(g,function(_e,Re){return Re||function(st){switch(st){case"YY":return String(D.$y).slice(-2);case"YYYY":return z.s(D.$y,4,"0");case"M":return P+1;case"MM":return z.s(P+1,2,"0");case"MMM":return Le(A.monthsShort,P,ge,3);case"MMMM":return Le(ge,P);case"D":return D.$D;case"DD":return z.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return Le(A.weekdaysMin,D.$W,Q,2);case"ddd":return Le(A.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(X);case"HH":return z.s(X,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return He(X,ee,!0);case"A":return He(X,ee,!1);case"m":return String(ee);case"mm":return z.s(ee,2,"0");case"s":return String(D.$s);case"ss":return z.s(D.$s,2,"0");case"SSS":return z.s(D.$ms,3,"0");case"Z":return U}return null}(_e)||U.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(C,D,A){var B,U=this,X=z.p(D),ee=ae(C),P=(ee.utcOffset()-this.utcOffset())*i,Q=this-ee,ge=function(){return z.m(U,ee)};switch(X){case h:B=ge()/12;break;case f:B=ge();break;case d:B=ge()/3;break;case c:B=(Q-P)/6048e5;break;case l:B=(Q-P)/864e5;break;case u:B=Q/r;break;case a:B=Q/i;break;case s:B=Q/n;break;default:B=Q}return A?B:z.a(B)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return Y[this.$L]},S.locale=function(C,D){if(!C)return this.$L;var A=this.clone(),B=fe(C,D,!0);return B&&(A.$L=B),A},S.clone=function(){return z.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},M}(),Ce=Te.prototype;return ae.prototype=Ce,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",f],["$y",h],["$D",p]].forEach(function(M){Ce[M[1]]=function(S){return this.$g(S,M[0],M[1])}}),ae.extend=function(M,S){return M.$i||(M(S,Te,ae),M.$i=!0),ae},ae.locale=fe,ae.isDayjs=ne,ae.unix=function(M){return ae(1e3*M)},ae.en=Y[I],ae.Ls=Y,ae.p={},ae})})(tr);var qa=tr.exports;const ft=Vt(qa);var nr={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(wi,function(){return function(n,i,r){n=n||{};var o=i.prototype,s={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 a(l,c,f,d){return o.fromToBase(l,c,f,d)}r.en.relativeTime=s,o.fromToBase=function(l,c,f,d,h){for(var p,_,y,g=f.$locale().relativeTime||s,E=n.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"}],L=E.length,O=0;O<L;O+=1){var I=E[O];I.d&&(p=d?r(l).diff(f,I.d,!0):f.diff(l,I.d,!0));var Y=(n.rounding||Math.round)(Math.abs(p));if(y=p>0,Y<=I.r||!I.r){Y<=1&&O>0&&(I=E[O-1]);var de=g[I.l];h&&(Y=h(""+Y)),_=typeof de=="string"?de.replace("%d",Y):de(Y,c,I.l,y);break}}if(c)return _;var ne=y?g.future:g.past;return typeof ne=="function"?ne(_):ne.replace("%s",_)},o.to=function(l,c){return a(l,c,this,!0)},o.from=function(l,c){return a(l,c,this)};var u=function(l){return l.$u?r.utc():r()};o.toNow=function(l){return this.to(u(this),l)},o.fromNow=function(l){return this.from(u(this),l)}}})})(nr);var ja=nr.exports;const el=Vt(ja);ft.extend(el);function tl(e){let t,n,i=[e[3],{title:e[2]},{datetime:e[1]}],r={};for(let o=0;o<i.length;o+=1)r=pt(r,i[o]);return{c(){t=x("time"),n=j(e[0]),Nn(t,r)},m(o,s){N(o,t,s),w(t,n)},p(o,[s]){s&1&&vr(n,o[0],r.contenteditable),Nn(t,r=yi(i,[s&8&&o[3],s&4&&{title:o[2]},s&2&&{datetime:o[1]}]))},i:J,o:J,d(o){o&&R(t)}}}function nl(e,t,n){let i;const r=["timestamp","format","relative","live","formatted"];let o=Rn(t,r),{timestamp:s=new Date().toISOString()}=t,{format:a="MMM DD, YYYY"}=t,{relative:u=!1}=t,{live:l=!1}=t,{formatted:c=""}=t,f;const d=60*1e3;return Ut(()=>()=>clearInterval(f)),e.$$set=h=>{t=pt(pt({},t),cr(h)),n(3,o=Rn(t,r)),"timestamp"in h&&n(1,s=h.timestamp),"format"in h&&n(4,a=h.format),"relative"in h&&n(5,u=h.relative),"live"in h&&n(6,l=h.live),"formatted"in h&&n(0,c=h.formatted)},e.$$.update=()=>{e.$$.dirty&98&&u&&l!==!1&&(f=setInterval(()=>{n(0,c=ft(s).from())},Math.abs(typeof l=="number"?l:d))),e.$$.dirty&50&&n(0,c=u?ft(s).from():ft(s).format(a)),e.$$.dirty&50&&n(2,i=u?ft(s).format(a):void 0)},[c,s,i,o,a,u,l]}class ir extends re{constructor(t){super(),ie(this,t,nl,tl,te,{timestamp:1,format:4,relative:5,live:6,formatted:0})}}function il(e){ue(e,"svelte-1xxfpqg",`.Tag.svelte-1xxfpqg{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;font-size:13px;font-weight:bold;line-height:20px;padding:2px 6px;margin-right:6px;margin-top:2px;border-radius:69px}.empty.svelte-1xxfpqg{display:none}.Tag.svelte-1xxfpqg:before{font-family:"la-icon-font"}.SLA.svelte-1xxfpqg{border:1px solid var(--main-lighter-textcolor);border-radius:4px;color:var(--main-lighter-textcolor)
|
|
11
|
+
}@media(min-width: 768px){.Tag.svelte-1xxfpqg{font-size:12px}}`)}function rl(e){let t,n;return{c(){t=x("span"),n=j(e[1]),v(t,"class","text")},m(i,r){N(i,t,r),w(t,n)},p(i,r){r&2&&se(n,i[1])},i:J,o:J,d(i){i&&R(t)}}}function ol(e){let t,n,i,r,o;const s=[al,sl],a=[];function u(l,c){return c&2&&(t=null),t==null&&(t=!isNaN(l[1].getTime())),t?0:1}return n=u(e,-1),i=a[n]=s[n](e),{c(){i.c(),r=kt()},m(l,c){a[n].m(l,c),N(l,r,c),o=!0},p(l,c){let f=n;n=u(l,c),n===f?a[n].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),i=a[n],i?i.p(l,c):(i=a[n]=s[n](l),i.c()),T(i,1),i.m(r.parentNode,r))},i(l){o||(T(i),o=!0)},o(l){k(i),o=!1},d(l){l&&R(r),a[n].d(l)}}}function sl(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","invalid")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:J,o:J,d(r){r&&R(t)}}}function al(e){let t,n;return t=new ir({props:{style:e[3],timestamp:e[1],format:"",relative:!0}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&8&&(o.style=i[3]),r&2&&(o.timestamp=i[1]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ll(e){let t,n,i,r,o,s;const a=e[6].default,u=wt(a,e,e[5],null),l=[ol,rl],c=[];function f(d,h){return d[1]instanceof Date?0:1}return i=f(e),r=c[i]=l[i](e),{c(){t=x("div"),u&&u.c(),n=V(),r.c(),v(t,"class",o="Tag "+e[0]+" svelte-1xxfpqg"),v(t,"style",e[2])},m(d,h){N(d,t,h),u&&u.m(t,null),w(t,n),c[i].m(t,null),s=!0},p(d,[h]){u&&u.p&&(!s||h&32)&&Tt(u,a,d,d[5],s?Et(a,d[5],h,null):xt(d[5]),null);let p=i;i=f(d),i===p?c[i].p(d,h):(be(),k(c[p],1,1,()=>{c[p]=null}),we(),r=c[i],r?r.p(d,h):(r=c[i]=l[i](d),r.c()),T(r,1),r.m(t,null)),(!s||h&1&&o!==(o="Tag "+d[0]+" svelte-1xxfpqg"))&&v(t,"class",o),(!s||h&4)&&v(t,"style",d[2])},i(d){s||(T(u,d),T(r),s=!0)},o(d){k(u,d),k(r),s=!1},d(d){d&&R(t),u&&u.d(d),c[i].d()}}}function ul(e,t,n){let i;K(e,Ee,c=>n(4,i=c));let{$$slots:r={},$$scope:o}=t,{text:s}=t,{className:a=""}=t,{style:u=""}=t,{timeStyle:l=""}=t;return e.$$set=c=>{"text"in c&&n(1,s=c.text),"className"in c&&n(0,a=c.className),"style"in c&&n(2,u=c.style),"timeStyle"in c&&n(3,l=c.timeStyle),"$$scope"in c&&n(5,o=c.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&s===""&&n(0,a="empty")},[a,s,u,l,i,o,r]}class Zt extends re{constructor(t){super(),ie(this,t,ul,ll,te,{text:1,className:0,style:2,timeStyle:3},il)}}function cl(e){ue(e,"svelte-1ify73x","div.Tag.IconTag{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:4px}.IconTag .Icon{display:flex;align-items:center;justify-content:center;font-size:16px;width:16px;height:16px}div.Tag.IconTag.Department{background-color:var(--department-bg-color);color:white}")}function fl(e){let t,n;return t=new Ae({props:{iconLaClassName:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&4&&(o.iconLaClassName=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function dl(e){let t,n;return t=new Zt({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[fl]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.text=i[0]),r&2&&(o.style=i[1]),r&36&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function hl(e,t,n){let{text:i}=t,{className:r=""}=t,{style:o=""}=t,{iconLaClassName:s}=t,a=`IconTag ${r}`;return e.$$set=u=>{"text"in u&&n(0,i=u.text),"className"in u&&n(4,r=u.className),"style"in u&&n(1,o=u.style),"iconLaClassName"in u&&n(2,s=u.iconLaClassName)},[i,o,s,a,r]}class Yt extends re{constructor(t){super(),ie(this,t,hl,dl,te,{text:0,className:4,style:1,iconLaClassName:2},cl)}}function ml(e){ue(e,"svelte-1wen6ck",".Column.userColumn{display:flex;align-items:center}.Tag.CompanyTag{background-color:var(--department-bg-color);color:var(--main-textcolor)}div.Tag.NoCompanyTag{color:var(--main-lighter-textcolor);border:1px solid var(--main-lighter-textcolor)}.avatar.svelte-1wen6ck{display:none}.companyTag.svelte-1wen6ck{display:none}.name.svelte-1wen6ck{font-size:14px;line-height:20px;font-weight:bold;padding-right:8px;margin-right:6px;position:relative}.name.svelte-1wen6ck::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-1wen6ck{font-weight:400;color:var(--main-lighter-textcolor)}.email.svelte-1wen6ck{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-1wen6ck{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 900px){.avatar.svelte-1wen6ck{display:flex;align-items:center;justify-content:center;margin:0 10px;width:40px;height:40px}.name.svelte-1wen6ck{padding:0;border:none;font-size:13px}.name.svelte-1wen6ck::after{display:none}.email.svelte-1wen6ck{font-size:13px;padding:0}.companyTag.svelte-1wen6ck{display:flex}.texts.svelte-1wen6ck{display:flex;flex-direction:column;justify-content:space-around}}")}function oi(e){let t,n;const i=[e[2]];let r={};for(let o=0;o<i.length;o+=1)r=pt(r,i[o]);return t=new Ua({props:r}),{c(){G(t.$$.fragment)},m(o,s){F(t,o,s),n=!0},p(o,s){const a=s&4?yi(i,[kr(o[2])]):{};t.$set(a)},i(o){n||(T(t.$$.fragment,o),n=!0)},o(o){k(t.$$.fragment,o),n=!1},d(o){$(t,o)}}}function gl(e){let t,n=e[2].name,i,r,o,s=(e[3]!==void 0?e[3]:e[4]("No name"))+"",a,u,l,c,f=(e[0].emails.length!==0?e[0].emails[0]:e[4]("No email"))+"",d,h,p,_,y,g,E=oi(e);return y=new Yt({props:{text:e[0].company==="Y"?"Company":e[4]("No Company"),className:(e[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag",iconLaClassName:"la-companies"}}),{c(){t=x("div"),E.c(),i=V(),r=x("div"),o=x("div"),a=j(s),l=V(),c=x("div"),d=j(f),p=V(),_=x("div"),G(y.$$.fragment),v(t,"class","avatar svelte-1wen6ck"),v(o,"class",u=ce(e[3]?"name":"no name")+" svelte-1wen6ck"),v(c,"class",h=ce(e[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"),v(_,"class","companyTag svelte-1wen6ck"),v(r,"class","texts svelte-1wen6ck")},m(L,O){N(L,t,O),E.m(t,null),N(L,i,O),N(L,r,O),w(r,o),w(o,a),w(r,l),w(r,c),w(c,d),w(r,p),w(r,_),F(y,_,null),g=!0},p(L,O){O&4&&te(n,n=L[2].name)?(be(),k(E,1,1,J),we(),E=oi(L),E.c(),T(E,1),E.m(t,null)):E.p(L,O),(!g||O&24)&&s!==(s=(L[3]!==void 0?L[3]:L[4]("No name"))+"")&&se(a,s),(!g||O&8&&u!==(u=ce(L[3]?"name":"no name")+" svelte-1wen6ck"))&&v(o,"class",u),(!g||O&17)&&f!==(f=(L[0].emails.length!==0?L[0].emails[0]:L[4]("No email"))+"")&&se(d,f),(!g||O&1&&h!==(h=ce(L[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"))&&v(c,"class",h);const I={};O&17&&(I.text=L[0].company==="Y"?"Company":L[4]("No Company")),O&1&&(I.className=(L[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag"),y.$set(I)},i(L){g||(T(E),T(y.$$.fragment,L),g=!0)},o(L){k(E),k(y.$$.fragment,L),g=!1},d(L){L&&(R(t),R(i),R(r)),E.d(L),$(y)}}}function pl(e){let t,n;return t=new An({props:{className:e[1],$$slots:{default:[gl]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&2&&(o.className=i[1]),r&285&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function _l(e,t,n){if(!e)return(n[0]+n[1]).toUpperCase();let i=e[0];return t&&(i+=t[0]),i}function vl(e,t,n){let i,r,o;K(e,Ee,f=>n(4,o=f));let{row:s}=t,{className:a="userColumn"}=t;function u(f,d,h){if(!f)return"";let p=f+" "+d;return p.trim()||(p=h),p}function l(f,d){let h=f;return h||(h="https://www.gravatar.com/avatar/"+Ja(d[0]??"")+"?s=200&d=404"),h}function c(f,d,h,p){let _;p?_=Xa(u(f,d,p)+h):_=Math.floor(Math.random()*16777215);let y=(_&16711680)>>16,g=(_&65280)>>8,E=_&255;return y+g+E<150&&(y=150),y+g+E>400&&(y=0),`rgb(${y},${g},${E})`}return e.$$set=f=>{"row"in f&&n(0,s=f.row),"className"in f&&n(1,a=f.className)},e.$$.update=()=>{e.$$.dirty&1&&n(3,i=s.name),e.$$.dirty&1&&n(2,r={bgColor:c(s.firstname,s.lastname,s.emails,s.systemName),name:u(s.firstname,s.lastname,s.systemName),src:l(s.avatarUrl,s.emails),initials:_l(s.firstname,s.lastname,s.systemName)})},[s,a,r,i,o]}class yl extends re{constructor(t){super(),ie(this,t,vl,pl,te,{row:0,className:1},ml)}}function bl(e){ue(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function wl(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","invalid svelte-hsbbji")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:J,o:J,d(r){r&&R(t)}}}function El(e){let t,n;return t=new ir({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&4&&(o.style=i[2]),r&1&&(o.timestamp=i[0]),r&2&&(o.format=i[1]),r&8&&(o.relative=i[3]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Tl(e){let t,n,i,r,o;const s=[El,wl],a=[];function u(l,c){return c&1&&(n=null),n==null&&(n=l[0]instanceof Date&&!isNaN(l[0].getTime())),n?0:1}return i=u(e,-1),r=a[i]=s[i](e),{c(){t=x("div"),r.c(),v(t,"class","Date svelte-hsbbji")},m(l,c){N(l,t,c),a[i].m(t,null),o=!0},p(l,[c]){let f=i;i=u(l,c),i===f?a[i].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),r=a[i],r?r.p(l,c):(r=a[i]=s[i](l),r.c()),T(r,1),r.m(t,null))},i(l){o||(T(r),o=!0)},o(l){k(r),o=!1},d(l){l&&R(t),a[i].d()}}}function xl(e,t,n){let i;K(e,Ee,u=>n(4,i=u));let{data:r}=t,{format:o=ca()}=t,{style:s=""}=t,{relative:a=!1}=t;return e.$$set=u=>{"data"in u&&n(0,r=u.data),"format"in u&&n(1,o=u.format),"style"in u&&n(2,s=u.style),"relative"in u&&n(3,a=u.relative)},[r,o,s,a,i]}class si extends re{constructor(t){super(),ie(this,t,xl,Tl,te,{data:0,format:1,style:2,relative:3},bl)}}function kl(e){ue(e,"svelte-1q9wgt3",".IconWrapper.svelte-1q9wgt3{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-1q9wgt3{display:inline-flex;flex-direction:row;border-radius:4px;margin-top:2px;margin-right:6px;padding-right:0}.Pending.svelte-1q9wgt3{background-color:var(--ok-color)}.Overdue.svelte-1q9wgt3{background-color:var(--notif-error-color)}")}function Cl(e){let t,n,i,r;n=new Ae({props:{iconLaClassName:e[2]}});const o=e[7].default,s=wt(o,e,e[6],null);return{c(){t=x("div"),G(n.$$.fragment),i=V(),s&&s.c(),v(t,"class","IconWrapper svelte-1q9wgt3")},m(a,u){N(a,t,u),F(n,t,null),N(a,i,u),s&&s.m(a,u),r=!0},p(a,u){const l={};u&4&&(l.iconLaClassName=a[2]),n.$set(l),s&&s.p&&(!r||u&64)&&Tt(s,o,a,a[6],r?Et(o,a[6],u,null):xt(a[6]),null)},i(a){r||(T(n.$$.fragment,a),T(s,a),r=!0)},o(a){k(n.$$.fragment,a),k(s,a),r=!1},d(a){a&&(R(t),R(i)),$(n),s&&s.d(a)}}}function Ll(e){let t,n;return t=new Yt({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&16&&(o.style=i[4]),r&1&&(o.text=i[0]),r&4&&(o.iconLaClassName=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Sl(e){let t,n,i,r,o,s,a;const u=[Ll,Cl],l=[];function c(f,d){return f[0]!==""?0:1}return n=c(e),i=l[n]=u[n](e),o=new Zt({props:{style:e[5],text:e[1]}}),{c(){t=x("div"),i.c(),r=V(),G(o.$$.fragment),v(t,"class",s=ce(`CombinedTag ${e[3]}`)+" svelte-1q9wgt3")},m(f,d){N(f,t,d),l[n].m(t,null),w(t,r),F(o,t,null),a=!0},p(f,[d]){let h=n;n=c(f),n===h?l[n].p(f,d):(be(),k(l[h],1,1,()=>{l[h]=null}),we(),i=l[n],i?i.p(f,d):(i=l[n]=u[n](f),i.c()),T(i,1),i.m(t,r));const p={};d&32&&(p.style=f[5]),d&2&&(p.text=f[1]),o.$set(p),(!a||d&8&&s!==(s=ce(`CombinedTag ${f[3]}`)+" svelte-1q9wgt3"))&&v(t,"class",s)},i(f){a||(T(i),T(o.$$.fragment,f),a=!0)},o(f){k(i),k(o.$$.fragment,f),a=!1},d(f){f&&R(t),l[n].d(),$(o)}}}function Al(e,t,n){let{$$slots:i={},$$scope:r}=t,{iconText:o=""}=t,{tagText:s}=t,{iconLaClassName:a}=t,{className:u}=t,{iconTagStyles:l}=t,{tagStyles:c}=t;return e.$$set=f=>{"iconText"in f&&n(0,o=f.iconText),"tagText"in f&&n(1,s=f.tagText),"iconLaClassName"in f&&n(2,a=f.iconLaClassName),"className"in f&&n(3,u=f.className),"iconTagStyles"in f&&n(4,l=f.iconTagStyles),"tagStyles"in f&&n(5,c=f.tagStyles),"$$scope"in f&&n(6,r=f.$$scope)},[o,s,a,u,l,c,r,i]}class rr extends re{constructor(t){super(),ie(this,t,Al,Sl,te,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},kl)}}function Ol(e){let t,n;return t=new Zt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&16&&(o.text=i[4]("No SLA")),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Rl(e){let t,n;return t=new rr({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&2&&(o.iconText=i[1]),r&8&&(o.iconLaClassName=i[3].icon),r&1&&(o.tagText=i[0]),r&8&&(o.className=i[3].className),r&8&&(o.tagStyles=i[3].tagStyles),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Nl(e){let t,n,i,r;const o=[Rl,Ol],s=[];function a(u,l){return u[2]?0:1}return t=a(e),n=s[t]=o[t](e),{c(){n.c(),i=kt()},m(u,l){s[t].m(u,l),N(u,i,l),r=!0},p(u,[l]){let c=t;t=a(u),t===c?s[t].p(u,l):(be(),k(s[c],1,1,()=>{s[c]=null}),we(),n=s[t],n?n.p(u,l):(n=s[t]=o[t](u),n.c()),T(n,1),n.m(i.parentNode,i))},i(u){r||(T(n),r=!0)},o(u){k(n),r=!1},d(u){u&&R(i),s[t].d(u)}}}function Il(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-sla",tagStyles:"color: var(--ok-color); background-color: #D9FAE0; border-radius: 4px; border: 1px solid var(--ok-color); margin: 0"}:{className:"SLATag Overdue",icon:"la-sla-compliance",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function Dl(e,t,n){let i,r,o;K(e,Ee,u=>n(4,o=u));let{tagText:s=o("First answer")}=t,{due:a}=t;return e.$$set=u=>{"tagText"in u&&n(0,s=u.tagText),"due"in u&&n(1,a=u.due)},e.$$.update=()=>{e.$$.dirty&2&&n(3,i=Il(a)),e.$$.dirty&2&&n(2,r=a instanceof Date&&!isNaN(a))},[s,a,r,i,o]}class Hl extends re{constructor(t){super(),ie(this,t,Dl,Nl,te,{tagText:0,due:1})}}function Pl(e){ue(e,"svelte-eafxx5",".TicketId.svelte-eafxx5{font-weight:bold;font-size:14px;line-height:20px;margin-right:14px}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:14px;line-height:20px}.Communication.svelte-eafxx5{font-size:14px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.ticketDetails.svelte-eafxx5{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}@media(min-width: 900px){.Changed.svelte-eafxx5{display:none}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:13px}.TicketId.svelte-eafxx5{font-size:13px}.ticketDetails.svelte-eafxx5{margin:0}.Communication.svelte-eafxx5{font-size:13px}}")}function Ml(e){let t,n,i=e[1].code+"",r,o,s,a,u,l,c,f=e[1].messagegroupsIn+"",d,h,p,_,y,g,E=e[1].messagegroupsOut+"",L,O,I,Y,de=e[2]("Created")+"",ne,fe,ae,z,Te,Ce,M,S=e[2]("Changed")+"",C,D,A,B,U,X,ee;return u=new Ae({props:{iconLaClassName:"la-incoming"}}),_=new Ae({props:{iconLaClassName:"la-outgoing"}}),z=new si({props:{data:Ot(e[1].datecreated)}}),B=new si({props:{data:Ot(e[1].datechanged)}}),X=new Hl({props:{tagText:"",due:e[1].datedue}}),{c(){t=x("div"),n=x("span"),r=j(i),o=V(),s=x("div"),a=x("div"),G(u.$$.fragment),l=V(),c=x("span"),d=j(f),h=V(),p=x("div"),G(_.$$.fragment),y=V(),g=x("span"),L=j(E),O=V(),I=x("div"),Y=x("span"),ne=j(de),fe=j(":"),ae=V(),G(z.$$.fragment),Te=V(),Ce=x("div"),M=x("span"),C=j(S),D=j(":"),A=V(),G(B.$$.fragment),U=V(),G(X.$$.fragment),v(n,"class","TicketId svelte-eafxx5"),v(a,"class","Communication incomingMessages svelte-eafxx5"),v(p,"class","Communication outgoingMessages svelte-eafxx5"),v(s,"class","arrows"),v(t,"class","ticketDetails svelte-eafxx5"),v(I,"class","Created svelte-eafxx5"),v(Ce,"class","Changed svelte-eafxx5")},m(P,Q){N(P,t,Q),w(t,n),w(n,r),w(t,o),w(t,s),w(s,a),F(u,a,null),w(a,l),w(a,c),w(c,d),w(s,h),w(s,p),F(_,p,null),w(p,y),w(p,g),w(g,L),N(P,O,Q),N(P,I,Q),w(I,Y),w(Y,ne),w(Y,fe),w(I,ae),F(z,I,null),N(P,Te,Q),N(P,Ce,Q),w(Ce,M),w(M,C),w(M,D),w(Ce,A),F(B,Ce,null),N(P,U,Q),F(X,P,Q),ee=!0},p(P,Q){(!ee||Q&2)&&i!==(i=P[1].code+"")&&se(r,i),(!ee||Q&2)&&f!==(f=P[1].messagegroupsIn+"")&&se(d,f),(!ee||Q&2)&&E!==(E=P[1].messagegroupsOut+"")&&se(L,E),(!ee||Q&4)&&de!==(de=P[2]("Created")+"")&&se(ne,de);const ge={};Q&2&&(ge.data=Ot(P[1].datecreated)),z.$set(ge),(!ee||Q&4)&&S!==(S=P[2]("Changed")+"")&&se(C,S);const Se={};Q&2&&(Se.data=Ot(P[1].datechanged)),B.$set(Se);const Le={};Q&2&&(Le.due=P[1].datedue),X.$set(Le)},i(P){ee||(T(u.$$.fragment,P),T(_.$$.fragment,P),T(z.$$.fragment,P),T(B.$$.fragment,P),T(X.$$.fragment,P),ee=!0)},o(P){k(u.$$.fragment,P),k(_.$$.fragment,P),k(z.$$.fragment,P),k(B.$$.fragment,P),k(X.$$.fragment,P),ee=!1},d(P){P&&(R(t),R(O),R(I),R(Te),R(Ce),R(U)),$(u),$(_),$(z),$(B),$(X,P)}}}function Bl(e){let t,n;return t=new An({props:{className:e[0],$$slots:{default:[Ml]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.className=i[0]),r&14&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Fl(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{className:r="importanceColumn"}=t,{row:o}=t;return e.$$set=s=>{"className"in s&&n(0,r=s.className),"row"in s&&n(1,o=s.row)},[r,o,i]}class $l extends re{constructor(t){super(),ie(this,t,Fl,Bl,te,{className:0,row:1},Pl)}}function Gl(e){ue(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function Ul(e){let t,n;return t=new Zt({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&6&&(o.style="color: #"+i[2]+"; background: #"+i[1]+"99; border: 1px solid #"+i[1]),r&1&&(o.text=i[0]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Vl(e,t,n){let i,r,o,s;K(e,Xi,u=>n(4,s=u));let{tagId:a}=t;return console.log(s[a]),e.$$set=u=>{"tagId"in u&&n(3,a=u.tagId)},e.$$.update=()=>{var u,l,c;e.$$.dirty&24&&n(2,i=((u=s[a])==null?void 0:u.color)??0),e.$$.dirty&24&&n(1,r=((l=s[a])==null?void 0:l.backgroundcolor)??0),e.$$.dirty&24&&n(0,o=((c=s[a])==null?void 0:c.name)??"")},[o,r,i,a,s]}class zl extends re{constructor(t){super(),ie(this,t,Vl,Ul,te,{tagId:3},Gl)}}function ai(e,t,n){const i=e.slice();return i[1]=t[n],i}function li(e){let t,n;return t=new zl({props:{tagId:e[1]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.tagId=i[1]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Kl(e){let t,n,i=Ze(e[0]),r=[];for(let s=0;s<i.length;s+=1)r[s]=li(ai(e,i,s));const o=s=>k(r[s],1,1,()=>{r[s]=null});return{c(){t=x("span");for(let s=0;s<r.length;s+=1)r[s].c()},m(s,a){N(s,t,a);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(t,null);n=!0},p(s,[a]){if(a&1){i=Ze(s[0]);let u;for(u=0;u<i.length;u+=1){const l=ai(s,i,u);r[u]?(r[u].p(l,a),T(r[u],1)):(r[u]=li(l),r[u].c(),T(r[u],1),r[u].m(t,null))}for(be(),u=i.length;u<r.length;u+=1)o(u);we()}},i(s){if(!n){for(let a=0;a<i.length;a+=1)T(r[a]);n=!0}},o(s){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)k(r[a]);n=!1},d(s){s&&R(t),bn(r,s)}}}function Wl(e,t,n){let{tags:i}=t;return e.$$set=r=>{"tags"in r&&n(0,i=r.tags)},[i]}class Jl extends re{constructor(t){super(),ie(this,t,Wl,Kl,te,{tags:0})}}function Xl(e){ue(e,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function Zl(e){let t,n;return t=new Yt({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Ne(e[0]).text+"; background-color: "+Ne(e[0]).bg+"; border-color: "+Ne(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.className="StatusTag "+i[1][i[0]].text),r&1&&(o.style="color: "+Ne(i[0]).text+"; background-color: "+Ne(i[0]).bg+"; border-color: "+Ne(i[0]).border),r&1&&(o.text=i[1][i[0]].text),r&1&&(o.iconLaClassName=i[1][i[0]].icon),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Yl(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{status:r}=t;const o={A:{text:i("Answered"),icon:"la-ticket-answered"},T:{text:i("Chatting"),icon:"la-chatting"},P:{text:i("Calling"),icon:"la-call"},X:{text:i("Deleted"),icon:"la-ticket-deleted"},B:{text:i("Spam"),icon:"la-spam"},I:{text:i("Init"),icon:""},R:{text:i("Resolved"),icon:"la-ticket-resolved"},N:{text:i("New"),icon:"la-ticket-new"},C:{text:i("Open"),icon:"la-ticket-open"},W:{text:i("Postponed"),icon:"la-ticket-postponed"}};return e.$$set=s=>{"status"in s&&n(0,r=s.status)},[r,o]}class Ql extends re{constructor(t){super(),ie(this,t,Yl,Zl,te,{status:0},Xl)}}function ql(e){let t,n;return t=new Yt({props:{className:sr,text:e[0].departmentname,iconLaClassName:or}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.text=i[0].departmentname),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function jl(e){let t,n;return t=new rr({props:{iconText:e[0].departmentname,tagText:e[0].agentname,iconLaClassName:or,className:sr,iconTagStyles:e[1],tagStyles:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.iconText=i[0].departmentname),r&1&&(o.tagText=i[0].agentname),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function eu(e){let t,n,i,r,o;const s=[jl,ql],a=[];function u(l,c){return c&1&&(t=null),t==null&&(t=l[0].agentname.trim()!==""),t?0:1}return n=u(e,-1),i=a[n]=s[n](e),{c(){i.c(),r=kt()},m(l,c){a[n].m(l,c),N(l,r,c),o=!0},p(l,[c]){let f=n;n=u(l,c),n===f?a[n].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),i=a[n],i?i.p(l,c):(i=a[n]=s[n](l),i.c()),T(i,1),i.m(r.parentNode,r))},i(l){o||(T(i),o=!0)},o(l){k(i),o=!1},d(l){l&&R(r),a[n].d(l)}}}const or="la-department",sr="Department";function tu(e,t,n){let{data:i}=t,r="color: white; background-color: var(--department-bg-color); margin-top: 0;",o="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return e.$$set=s=>{"data"in s&&n(0,i=s.data)},[i,r,o]}class nu extends re{constructor(t){super(),ie(this,t,tu,eu,te,{data:0})}}function iu(e){ue(e,"svelte-ccmpo7",`.subject.svelte-ccmpo7{font-size:14px;font-weight:bold;line-height:20px;margin:0}.preview.svelte-ccmpo7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px;margin:0 0 4px;line-height:20px;font-size:14px}.no-text.svelte-ccmpo7{color:var(--main-lighter-textcolor)}.additional.svelte-ccmpo7{display:flex}.CombinedTag.Department{background-color:var(--department-bg-color)}@media(min-width: 768px){.subject.svelte-ccmpo7{font-size:13px
|
|
12
|
+
}.preview.svelte-ccmpo7{font-size:13px;margin:0}}`)}function ru(e){let t,n=e[0].subject+"",i,r,o,s=(e[0].preview?e[0].preview:e[2]("No text for preview"))+"",a,u,l,c,f,d,h,p,_,y;return f=new Ql({props:{status:e[0].status}}),h=new nu({props:{data:e[0]}}),_=new Jl({props:{tags:e[0].tags}}),{c(){t=x("h1"),i=j(n),r=V(),o=x("p"),a=j(s),l=V(),c=x("div"),G(f.$$.fragment),d=V(),G(h.$$.fragment),p=V(),G(_.$$.fragment),v(t,"class","subject svelte-ccmpo7"),v(o,"class",u=ce(e[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"),v(c,"class","additional svelte-ccmpo7")},m(g,E){N(g,t,E),w(t,i),N(g,r,E),N(g,o,E),w(o,a),N(g,l,E),N(g,c,E),F(f,c,null),w(c,d),F(h,c,null),w(c,p),F(_,c,null),y=!0},p(g,E){(!y||E&1)&&n!==(n=g[0].subject+"")&&se(i,n),(!y||E&5)&&s!==(s=(g[0].preview?g[0].preview:g[2]("No text for preview"))+"")&&se(a,s),(!y||E&1&&u!==(u=ce(g[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"))&&v(o,"class",u);const L={};E&1&&(L.status=g[0].status),f.$set(L);const O={};E&1&&(O.data=g[0]),h.$set(O);const I={};E&1&&(I.tags=g[0].tags),_.$set(I)},i(g){y||(T(f.$$.fragment,g),T(h.$$.fragment,g),T(_.$$.fragment,g),y=!0)},o(g){k(f.$$.fragment,g),k(h.$$.fragment,g),k(_.$$.fragment,g),y=!1},d(g){g&&(R(t),R(r),R(o),R(l),R(c)),$(f),$(h),$(_)}}}function ou(e){let t,n;return t=new An({props:{className:e[1],$$slots:{default:[ru]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&2&&(o.className=i[1]),r&13&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function su(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{row:r}=t,{className:o="statusColumn"}=t;return e.$$set=s=>{"row"in s&&n(0,r=s.row),"className"in s&&n(1,o=s.className)},[r,o,i]}class au extends re{constructor(t){super(),ie(this,t,su,ou,te,{row:0,className:1},iu)}}function lu(e){ue(e,"svelte-d34xx3",`.Body.svelte-d34xx3.svelte-d34xx3{padding:0px 20px}.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-columns:60px 1fr;grid-template-rows:auto;grid-template-areas:"checkbox user"
|
|
13
13
|
"checkbox status"
|
|
14
14
|
"checkbox importance";border-radius:12px;box-shadow:var(--header-tickets-shadow);border-bottom:1px solid var(--menu-selected-bg);padding:4px 0;margin-top:8px;background-color:var(--main-background);cursor:pointer}.Row.svelte-d34xx3.svelte-d34xx3:hover{background-color:var(--menu-hover-bg)}.Row.Selected.svelte-d34xx3.svelte-d34xx3{background-color:var(--ticket-selected-bg) !important}.UserColumn.svelte-d34xx3.svelte-d34xx3{grid-area:user}.StatusColumn.svelte-d34xx3.svelte-d34xx3{grid-area:status;display:flex;flex-direction:column;justify-content:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ImportanceColumn.svelte-d34xx3.svelte-d34xx3{grid-area:importance}.Checkbox.svelte-d34xx3.svelte-d34xx3{grid-area:checkbox;position:relative}.StatusBar.svelte-d34xx3.svelte-d34xx3{position:absolute;left:0;top:10%;content:"";width:6px;height:80%;margin-left:8px;border-radius:69px;transition:width 0.1s ease}.Row.svelte-d34xx3:hover .StatusBar.svelte-d34xx3{width:10px}input.svelte-d34xx3.svelte-d34xx3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(min-width: 768px){.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-areas:"checkbox user importance"
|
|
15
|
-
"checkbox status importance";grid-template-columns:60px 3fr 1fr;height:110px;column-gap:6px}}@media(min-width: 900px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-areas:"checkbox user status importance";grid-template-columns:60px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-columns:60px 260px auto 230px}}`)}function ai(e,t,n){const i=e.slice();return i[9]=t[n],i[10]=t,i[11]=n,i}function li(e){let t,n,i,r,o,s,a,u,l,c,f,d,h,p,_,y,g,E,L;function O(){e[5].call(o,e[11])}function I(...ne){return e[6](e[11],...ne)}l=new pl({props:{row:e[9]}}),d=new ru({props:{row:e[9]}}),_=new Ml({props:{row:e[9]}});function Y(){return e[7](e[9])}function de(...ne){return e[8](e[9],...ne)}return{c(){t=x("div"),n=x("div"),i=x("div"),r=V(),o=x("input"),a=V(),u=x("div"),G(l.$$.fragment),c=V(),f=x("div"),G(d.$$.fragment),h=V(),p=x("div"),G(_.$$.fragment),v(i,"class","StatusBar svelte-d34xx3"),Zt(i,"background-color",Ie(e[9].status).border),v(o,"type","checkbox"),o.__value=s=e[9].conversationid,Nn(o,o.__value),v(o,"class","svelte-d34xx3"),v(n,"class","Checkbox svelte-d34xx3"),Zt(n,"position","relative"),v(u,"class","UserColumn svelte-d34xx3"),v(f,"class","StatusColumn svelte-d34xx3"),v(p,"class","ImportanceColumn svelte-d34xx3"),v(t,"class",y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(ne,fe){N(ne,t,fe),w(t,n),w(n,i),w(n,r),w(n,o),o.checked=e[1][e[11]].__selected,w(t,a),w(t,u),F(l,u,null),w(t,c),w(t,f),F(d,f,null),w(t,h),w(t,p),F(_,p,null),g=!0,E||(L=[he(o,"change",O),he(o,"click",on(I)),he(n,"click",on(au)),he(t,"click",Y),he(t,"mousedown",de)],E=!0)},p(ne,fe){e=ne,(!g||fe&2)&&Zt(i,"background-color",Ie(e[9].status).border),(!g||fe&2&&s!==(s=e[9].conversationid))&&(o.__value=s,Nn(o,o.__value)),fe&2&&(o.checked=e[1][e[11]].__selected);const ae={};fe&2&&(ae.row=e[9]),l.$set(ae);const z={};fe&2&&(z.row=e[9]),d.$set(z);const Te={};fe&2&&(Te.row=e[9]),_.$set(Te),(!g||fe&2&&y!==(y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&v(t,"class",y)},i(ne){g||(T(l.$$.fragment,ne),T(d.$$.fragment,ne),T(_.$$.fragment,ne),g=!0)},o(ne){k(l.$$.fragment,ne),k(d.$$.fragment,ne),k(_.$$.fragment,ne),g=!1},d(ne){ne&&R(t),$(l),$(d),$(_),E=!1,Re(L)}}}function su(e){let t,n,i,r=Ze(e[1]),o=[];for(let l=0;l<r.length;l+=1)o[l]=li(ai(e,r,l));const s=l=>k(o[l],1,1,()=>{o[l]=null}),a=e[4].default,u=bt(a,e,e[3],null);return{c(){t=x("div");for(let l=0;l<o.length;l+=1)o[l].c();n=V(),u&&u.c(),v(t,"class","Body svelte-d34xx3")},m(l,c){N(l,t,c);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(t,null);w(t,n),u&&u.m(t,null),i=!0},p(l,[c]){if(c&7){r=Ze(l[1]);let f;for(f=0;f<r.length;f+=1){const d=ai(l,r,f);o[f]?(o[f].p(d,c),T(o[f],1)):(o[f]=li(d),o[f].c(),T(o[f],1),o[f].m(t,n))}for(be(),f=r.length;f<o.length;f+=1)s(f);we()}u&&u.p&&(!i||c&8)&&Et(u,a,l,l[3],i?wt(a,l[3],c,null):Tt(l[3]),null)},i(l){if(!i){for(let c=0;c<r.length;c+=1)T(o[c]);T(u,l),i=!0}},o(l){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)k(o[c]);k(u,l),i=!1},d(l){l&&R(t),yn(o,l),u&&u.d(l)}}}const au=()=>{};function lu(e,t,n){let i;K(e,ye,d=>n(1,i=d));let{$$slots:r={},$$scope:o}=t,{rowMiddleClickHandler:s}=t;function a(d,h){if(d.shiftKey){let p=i.findIndex(_=>_.__selected);if(p!==-1){let _=Math.min(p,h),y=Math.max(p,h);for(let g=_;g<=y;g++)ur(ye,i[g].__selected=!0,i)}}}function u(d){i[d].__selected=this.checked,ye.set(i)}const l=(d,h)=>a(h,d),c=d=>location.assign("#Conversation;id="+d.conversationid),f=(d,h)=>{h.button===1&&s&&(s(d.conversationid),h.preventDefault(),h.stopPropagation())};return e.$$set=d=>{"rowMiddleClickHandler"in d&&n(0,s=d.rowMiddleClickHandler),"$$scope"in d&&n(3,o=d.$$scope)},[s,i,a,o,r,u,l,c,f]}class uu extends re{constructor(t){super(),ie(this,t,lu,su,te,{rowMiddleClickHandler:0},ou)}}function cu(e){ue(e,"svelte-1nok758","div.svelte-1nok758{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}")}function fu(e){let t,n,i;return{c(){t=x("div"),n=x("p"),i=j(e[0]),v(t,"class","svelte-1nok758")},m(r,o){N(r,t,o),w(t,n),w(n,i)},p(r,[o]){o&1&&se(i,r[0])},i:X,o:X,d(r){r&&R(t)}}}function du(e,t,n){let i,r,o,s,a,u;return K(e,Ee,l=>n(1,r=l)),K(e,Fe,l=>n(2,o=l)),K(e,ye,l=>n(3,s=l)),K(e,Xi,l=>n(4,a=l)),K(e,Xe,l=>n(5,u=l)),e.$$.update=()=>{e.$$.dirty&62&&n(0,i=u?r("Loading..."):a?r("Loading failed. Please try again later."):!s||s.length===0?r("No results match your filter. Try broadening the search criteria."):o==null?r("All data loaded"):r("Load more data"))},[i,r,o,s,a,u]}class hu extends re{constructor(t){super(),ie(this,t,du,fu,te,{},cu)}}function mu(e){ue(e,"svelte-1srt8g7",`button.SortingButton{width:calc(100% - 8px);text-align:left;font-weight:normal;margin:0 0 0 30px}button.SortingButton.Selected{width:100%;text-align:left;font-weight:bold}.radio-option.svelte-1srt8g7 input[type="radio"].svelte-1srt8g7{display:none}.radio-option.svelte-1srt8g7.svelte-1srt8g7{display:flex;align-items:center;position:relative;width:calc(100% - 8px);padding:6px 10px;color:var(--main-textcolor);cursor:pointer}.radio-option.svelte-1srt8g7.svelte-1srt8g7::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--menu-selected-bg);background-color:white}.selected.svelte-1srt8g7.svelte-1srt8g7{font-weight:700}.selected.svelte-1srt8g7.svelte-1srt8g7::before{width:10px;height:10px;border:5px solid var(--ticket-status-chat-background)}.radio-option.svelte-1srt8g7.svelte-1srt8g7:hover{background:var(--menu-hover-bg)}.Title.svelte-1srt8g7.svelte-1srt8g7{width:100%;margin:4px 0 12px 10px;color:var(--main-textcolor);font-size:13px;font-style:normal;font-weight:700;line-height:20px;font-family:'Roboto', sans-serif}.Title.svelte-1srt8g7.svelte-1srt8g7::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}.modal.svelte-1srt8g7.svelte-1srt8g7{min-width:200px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--main-background);border:none;border-radius:6px;overflow:hidden;z-index:99999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}`)}function ui(e,t,n){const i=e.slice();return i[9]=t[n],i}function ci(e){let t,n,i,r,o=e[9].label+"",s,a,u,l,c;return{c(){t=x("label"),n=x("input"),r=V(),s=j(o),a=V(),v(n,"type","radio"),v(n,"name","sorting"),n.value=e[9].value,n.checked=i=e[0]&&e[0].value===e[9].value,v(n,"class","svelte-1srt8g7"),v(t,"class",u=ce(e[0].value===e[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(f,d){N(f,t,d),w(t,n),w(t,r),w(t,s),w(t,a),l||(c=he(n,"click",e[5]),l=!0)},p(f,d){d&1&&i!==(i=f[0]&&f[0].value===f[9].value)&&(n.checked=i),d&1&&u!==(u=ce(f[0].value===f[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&v(t,"class",u)},d(f){f&&R(t),l=!1,c()}}}function gu(e){let t,n,i=e[3]("Sort by")+"",r,o,s=Ze(e[4]),a=[];for(let u=0;u<s.length;u+=1)a[u]=ci(ui(e,s,u));return{c(){t=x("dialog"),n=x("span"),r=j(i),o=V();for(let u=0;u<a.length;u+=1)a[u].c();v(n,"class","Title svelte-1srt8g7"),v(t,"class","modal svelte-1srt8g7"),v(t,"style",e[1])},m(u,l){N(u,t,l),w(t,n),w(n,r),w(t,o);for(let c=0;c<a.length;c+=1)a[c]&&a[c].m(t,null);e[7](t)},p(u,[l]){if(l&8&&i!==(i=u[3]("Sort by")+"")&&se(r,i),l&49){s=Ze(u[4]);let c;for(c=0;c<s.length;c+=1){const f=ui(u,s,c);a[c]?a[c].p(f,l):(a[c]=ci(f),a[c].c(),a[c].m(t,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=s.length}l&2&&v(t,"style",u[1])},i:X,o:X,d(u){u&&R(t),yn(a,u),e[7](null)}}}function pu(e,t,n){let i;K(e,Ee,d=>n(3,i=d));let{currentFilter:r}=t,{closeModal:o=()=>l.close()}=t,{style:s=""}=t;const a=pi(),u=[{value:"Datedue",label:i("Importance"),sort:lt.Datedue,dir:!1},{value:"Created-newest",label:i("Date created - Newest"),sort:lt.Datecreated,dir:!1},{value:"Created-oldest",label:i("Date created - Oldest"),sort:lt.Datecreated,dir:!0},{value:"Changed-newest",label:i("Date changed - Newest"),sort:lt.Datechanged,dir:!1},{value:"Changed-oldest",label:i("Date changed - Oldest"),sort:lt.Datechanged,dir:!0}];let l;function c(d){const h=u.find(p=>p.value===d.target.value);n(0,r=h),a("filterChange",{option:h}),o()}function f(d){Je[d?"unshift":"push"](()=>{l=d,n(2,l)})}return e.$$set=d=>{"currentFilter"in d&&n(0,r=d.currentFilter),"closeModal"in d&&n(6,o=d.closeModal),"style"in d&&n(1,s=d.style)},[r,s,l,i,u,c,o,f]}class _u extends re{constructor(t){super(),ie(this,t,pu,gu,te,{currentFilter:0,closeModal:6,style:1},mu)}}function vu(e){ue(e,"svelte-657q9o",".backdrop.svelte-657q9o{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:100}")}function yu(e){let t,n,i;return{c(){t=x("div"),v(t,"class","backdrop svelte-657q9o")},m(r,o){N(r,t,o),n||(i=he(t,"click",on(function(){Ft(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(r,[o]){e=r},i:X,o:X,d(r){r&&R(t),n=!1,i()}}}function bu(e,t,n){let{onClick:i}=t;return e.$$set=r=>{"onClick"in r&&n(0,i=r.onClick)},[i]}class wu extends re{constructor(t){super(),ie(this,t,bu,yu,te,{onClick:0},vu)}}function Eu(e){ue(e,"svelte-1od4wyj",".load.svelte-1od4wyj{display:block}.container.svelte-1od4wyj{width:100%;flex-grow:1;flex-basis:0;overflow-y:scroll;overflow-x:hidden;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1od4wyj{width:100%}}")}function Tu(e){let t,n,i,r,o,s;return i=new hu({}),{c(){t=x("div"),n=x("div"),G(i.$$.fragment),v(n,"class","load svelte-1od4wyj"),v(t,"class","load svelte-1od4wyj")},m(a,u){N(a,t,u),w(t,n),F(i,n,null),e[11](n),r=!0,o||(s=he(n,"click",e[12]),o=!0)},p:X,i(a){r||(T(i.$$.fragment,a),r=!0)},o(a){k(i.$$.fragment,a),r=!1},d(a){a&&R(t),$(i),e[11](null),o=!1,s()}}}function fi(e){let t,n,i,r;return t=new _u({props:{closeModal:e[8],currentFilter:e[5],style:e[4]}}),t.$on("filterChange",e[10]),i=new wu({props:{onClick:e[8]}}),{c(){G(t.$$.fragment),n=V(),G(i.$$.fragment)},m(o,s){F(t,o,s),N(o,n,s),F(i,o,s),r=!0},p(o,s){const a={};s&32&&(a.currentFilter=o[5]),s&16&&(a.style=o[4]),t.$set(a)},i(o){r||(T(t.$$.fragment,o),T(i.$$.fragment,o),r=!0)},o(o){k(t.$$.fragment,o),k(i.$$.fragment,o),r=!1},d(o){o&&R(n),$(t,o),$(i,o)}}}function xu(e){let t,n,i,r,o,s;n=new Sa({props:{currentFilter:e[5].label}}),n.$on("openModal",e[9]),r=new uu({props:{rowMiddleClickHandler:e[0],$$slots:{default:[Tu]},$$scope:{ctx:e}}});let a=e[3]&&fi(e);return{c(){t=x("div"),G(n.$$.fragment),i=V(),G(r.$$.fragment),o=V(),a&&a.c(),v(t,"class","container svelte-1od4wyj")},m(u,l){N(u,t,l),F(n,t,null),w(t,i),F(r,t,null),w(t,o),a&&a.m(t,null),e[13](t),s=!0},p(u,[l]){const c={};l&32&&(c.currentFilter=u[5].label),n.$set(c);const f={};l&1&&(f.rowMiddleClickHandler=u[0]),l&16578&&(f.$$scope={dirty:l,ctx:u}),r.$set(f),u[3]?a?(a.p(u,l),l&8&&T(a,1)):(a=fi(u),a.c(),T(a,1),a.m(t,null)):a&&(be(),k(a,1,1,()=>{a=null}),we())},i(u){s||(T(n.$$.fragment,u),T(r.$$.fragment,u),T(a),s=!0)},o(u){k(n.$$.fragment,u),k(r.$$.fragment,u),k(a),s=!1},d(u){u&&R(t),$(n),$(r),a&&a.d(),e[13](null)}}}function ku(e,t,n){let i,r,o;K(e,mt,g=>n(6,r=g)),K(e,Fe,g=>n(7,o=g));let{rowMiddleClickHandler:s}=t,a,u,l=!1,c="";$t(()=>{const g=localStorage.getItem("TicketGridCurrentFilter");g&&n(5,i=JSON.parse(g));const E=new IntersectionObserver(L=>{L[0].isIntersecting&&et()},{root:u,threshold:.5});return E.observe(a),()=>E.unobserve(a)});function f(){n(3,l=!1)}function d(g){n(3,l=!0),n(4,c=g.detail.dialogStyles)}function h(g){f(),console.log("filter changed: "+g.detail.option.sort+" "+g.detail.option.dir),g.detail.option.value!==i.value&&(n(5,i=g.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(i)),Wt.set(i.dir),Ln.set(i.sort))}function p(g){Je[g?"unshift":"push"](()=>{a=g,n(1,a)})}const _=()=>et(r&&!o);function y(g){Je[g?"unshift":"push"](()=>{u=g,n(2,u)})}return e.$$set=g=>{"rowMiddleClickHandler"in g&&n(0,s=g.rowMiddleClickHandler)},n(5,i={value:"Datedue",label:"Importance"}),[s,a,u,l,c,i,r,o,f,d,h,p,_,y]}class Cu extends re{constructor(t){super(),ie(this,t,ku,xu,te,{rowMiddleClickHandler:0},Eu)}}class Lu{constructor(t,n){const i=new kn({apiKey:t,basePath:n+"/api/v3"});this.api=new Ki(i)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((n,i)=>(n[i.tagid]=i,n),{}),Wi.set(t)}}function Su(e){ue(e,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Au(e){let t,n,i,r,o;const s=e[4].default,a=bt(s,e,e[3],null);return{c(){t=x("button"),a&&a.c(),v(t,"class",n=ce(e[0])+" svelte-10fvxzv")},m(u,l){N(u,t,l),a&&a.m(t,null),i=!0,r||(o=he(t,"click",e[1]),r=!0)},p(u,[l]){a&&a.p&&(!i||l&8)&&Et(a,s,u,u[3],i?wt(s,u[3],l,null):Tt(u[3]),null),(!i||l&1&&n!==(n=ce(u[0])+" svelte-10fvxzv"))&&v(t,"class",n)},i(u){i||(T(a,u),i=!0)},o(u){k(a,u),i=!1},d(u){u&&R(t),a&&a.d(u),r=!1,o()}}}function Ou(e,t,n){let{$$slots:i={},$$scope:r}=t,{onAction:o=u=>{}}=t,{className:s=""}=t;function a(u){o(u)}return e.$$set=u=>{"onAction"in u&&n(2,o=u.onAction),"className"in u&&n(0,s=u.className),"$$scope"in u&&n(3,r=u.$$scope)},[s,a,o,r,i]}class di extends re{constructor(t){super(),ie(this,t,Ou,Au,te,{onAction:2,className:0},Su)}}function Ru(e){ue(e,"svelte-19qi61t",".NoTickets.svelte-19qi61t{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}p.svelte-19qi61t{max-width:450px;font-size:13px;font-weight:400;text-align:center}h1.svelte-19qi61t{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-19qi61t{max-width:300px}")}function Nu(e){let t,n,i=e[2]("Change filter")+"",r,o;return t=new Oe({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){G(t.$$.fragment),n=V(),r=j(i)},m(s,a){F(t,s,a),N(s,n,a),N(s,r,a),o=!0},p(s,a){(!o||a&4)&&i!==(i=s[2]("Change filter")+"")&&se(r,i)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){k(t.$$.fragment,s),o=!1},d(s){s&&(R(n),R(r)),$(t,s)}}}function Iu(e){let t,n,i=e[2]("Configure chat button")+"",r,o;return t=new Oe({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){G(t.$$.fragment),n=V(),r=j(i)},m(s,a){F(t,s,a),N(s,n,a),N(s,r,a),o=!0},p(s,a){(!o||a&4)&&i!==(i=s[2]("Configure chat button")+"")&&se(r,i)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){k(t.$$.fragment,s),o=!1},d(s){s&&(R(n),R(r)),$(t,s)}}}function Du(e){let t,n,i,r,o,s=e[2]("No tickets found")+"",a,u,l,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",f,d,h,p,_,y,g;return p=new di({props:{className:"Filter",onAction:e[3],$$slots:{default:[Nu]},$$scope:{ctx:e}}}),y=new di({props:{className:"Configure",onAction:e[4],$$slots:{default:[Iu]},$$scope:{ctx:e}}}),{c(){t=x("div"),n=x("img"),r=V(),o=x("h1"),a=j(s),u=V(),l=x("p"),f=j(c),d=V(),h=x("div"),G(p.$$.fragment),_=V(),G(y.$$.fragment),v(n,"alt","No results placeholder"),Dt(n.src,i=e[0]+"/themes/agent/obsidian/img/no-result.svg")||v(n,"src",i),v(n,"class","svelte-19qi61t"),v(o,"class","svelte-19qi61t"),v(l,"class","svelte-19qi61t"),v(h,"class","Buttons"),v(t,"class","NoTickets svelte-19qi61t")},m(E,L){N(E,t,L),w(t,n),w(t,r),w(t,o),w(o,a),w(t,u),w(t,l),w(l,f),w(t,d),w(t,h),F(p,h,null),w(h,_),F(y,h,null),g=!0},p(E,[L]){(!g||L&1&&!Dt(n.src,i=E[0]+"/themes/agent/obsidian/img/no-result.svg"))&&v(n,"src",i),(!g||L&4)&&s!==(s=E[2]("No tickets found")+"")&&se(a,s),(!g||L&4)&&c!==(c=E[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&se(f,c);const O={};L&2&&(O.onAction=E[3]),L&36&&(O.$$scope={dirty:L,ctx:E}),p.$set(O);const I={};L&36&&(I.$$scope={dirty:L,ctx:E}),y.$set(I)},i(E){g||(T(p.$$.fragment,E),T(y.$$.fragment,E),g=!0)},o(E){k(p.$$.fragment,E),k(y.$$.fragment,E),g=!1},d(E){E&&R(t),$(p),$(y)}}}function Hu(e,t,n){let i;K(e,Ee,u=>n(2,i=u));let{basePath:r}=t,{changeFilterHandler:o=()=>{}}=t;const s=()=>o(),a=()=>window.location.hash="Chat-Buttons";return e.$$set=u=>{"basePath"in u&&n(0,r=u.basePath),"changeFilterHandler"in u&&n(1,o=u.changeFilterHandler)},[r,o,i,s,a]}class Pu extends re{constructor(t){super(),ie(this,t,Hu,Du,te,{basePath:0,changeFilterHandler:1},Ru)}}function Mu(e){ue(e,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function Bu(e){let t,n;return t=new Cu({props:{rowMiddleClickHandler:e[0]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.rowMiddleClickHandler=i[0]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Fu(e){let t,n;return t=new Pu({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&2&&(o.basePath=i[1]),r&4&&(o.changeFilterHandler=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function $u(e){let t,n,i,r;const o=[Fu,Bu],s=[];function a(u,l){return!u[3].length&&u[4]?0:1}return n=a(e),i=s[n]=o[n](e),{c(){t=x("main"),i.c(),v(t,"class","svelte-14f2ism")},m(u,l){N(u,t,l),s[n].m(t,null),r=!0},p(u,[l]){let c=n;n=a(u),n===c?s[n].p(u,l):(be(),k(s[c],1,1,()=>{s[c]=null}),we(),i=s[n],i?i.p(u,l):(i=s[n]=o[n](u),i.c()),T(i,1),i.m(t,null))},i(u){r||(T(i),r=!0)},o(u){k(i),r=!1},d(u){u&&R(t),s[n].d()}}}function Gu(e,t,n){let i,r,o,s,a,u;K(e,We,h=>n(9,i=h)),K(e,yt,h=>n(6,r=h)),K(e,Ln,h=>n(7,o=h)),K(e,Wt,h=>n(8,s=h)),K(e,ye,h=>n(3,a=h)),K(e,mt,h=>n(4,u=h));let{apiKey:l}=t,{rowMiddleClickHandler:c}=t,{basePath:f}=t,{changeFilterHandler:d}=t;return $t(async()=>{await new Lu(l,f).load();const h=new Ki(new kn({apiKey:l,basePath:f+"/api/v3"}));Bt.set(h),await et(!0)}),ye.subscribe(h=>{Cn.set(i?h.filter(p=>!p.__selected).map(p=>p.conversationid):h.filter(p=>p.__selected).map(p=>p.conversationid))}),e.$$set=h=>{"apiKey"in h&&n(5,l=h.apiKey),"rowMiddleClickHandler"in h&&n(0,c=h.rowMiddleClickHandler),"basePath"in h&&n(1,f=h.basePath),"changeFilterHandler"in h&&n(2,d=h.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&448&&(s||o||r)&&et(!0)},[c,f,d,a,u,l,r,o,s]}class Uu extends re{constructor(t){super(),ie(this,t,Gu,$u,te,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},Mu)}}function Vu(e){let t,n;return t=new Uu({props:{apiKey:e[0].apiKey,basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.apiKey=i[0].apiKey),r&1&&(o.basePath=i[0].basePath),r&2&&(o.rowMiddleClickHandler=i[1]),r&4&&(o.changeFilterHandler=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function zu(e){let t;return{c(){t=x("p"),t.textContent="Loading..."},m(n,i){N(n,t,i)},p:X,i:X,o:X,d(n){n&&R(t)}}}function Ku(e){let t,n,i,r,o,s;const a=[zu,Vu],u=[];function l(c,f){return c[3]?0:c[0].apiKey?1:-1}return~(t=l(e))&&(n=u[t]=a[t](e)),{c(){n&&n.c(),i=V(),r=x("link"),v(r,"rel","stylesheet"),v(r,"href",o=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,f){~t&&u[t].m(c,f),N(c,i,f),N(c,r,f),s=!0},p(c,[f]){let d=t;t=l(c),t===d?~t&&u[t].p(c,f):(n&&(be(),k(u[d],1,1,()=>{u[d]=null}),we()),~t?(n=u[t],n?n.p(c,f):(n=u[t]=a[t](c),n.c()),T(n,1),n.m(i.parentNode,i)):n=null),(!s||f&1&&o!==(o=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&v(r,"href",o)},i(c){s||(T(n),s=!0)},o(c){k(n),s=!1},d(c){c&&(R(i),R(r)),~t&&u[t].d(c)}}}function Wu(e,t,n){let i,r,o,s;K(e,ye,h=>n(7,i=h)),K(e,We,h=>n(8,r=h)),K(e,Cn,h=>n(9,o=h)),K(e,It,h=>n(3,s=h));let{filters:a='[["rstatus","IN","A,P,T,N,C,R,W"],["channel_type","IN","B,M,E,F,A,I,Q,S,C,W,T,V"]]'}=t,{options:u={apiKey:null,basePath:null,localeOptions:{thousandsSeparator:"S",decimalSeparator:"D",dateFormat:"MM/d/yyyy",timeFormat:"HH:mm:ss",timeShortFormat:"HH:mm",locale:"sk"}}}=t,{rowMiddleClickHandler:l=h=>{}}=t,{ticketSelectionChangeHandler:c=(h,p,_)=>{}}=t,{changeFilterHandler:f=()=>{}}=t;const d=function(h=!1){et(h)};return ia(u.localeOptions),$t(()=>{yt.set(a)}),e.$$set=h=>{"filters"in h&&n(4,a=h.filters),"options"in h&&n(0,u=h.options),"rowMiddleClickHandler"in h&&n(1,l=h.rowMiddleClickHandler),"ticketSelectionChangeHandler"in h&&n(5,c=h.ticketSelectionChangeHandler),"changeFilterHandler"in h&&n(2,f=h.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&16&&a&&yt.set(a),e.$$.dirty&928&&c(o,r,i.length)},[u,l,f,s,a,c,d,i,r,o]}class Xu extends re{constructor(t){super(),ie(this,t,Wu,Ku,te,{filters:4,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:5,changeFilterHandler:2,reload:6})}get filters(){return this.$$.ctx[4]}set filters(t){this.$$set({filters:t}),Me()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),Me()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),Me()}get ticketSelectionChangeHandler(){return this.$$.ctx[5]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),Me()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),Me()}get reload(){return this.$$.ctx[6]}}customElements.define("tickets-table",kr(Xu,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));
|
|
15
|
+
"checkbox status importance";grid-template-columns:60px 3fr 1fr;height:110px;column-gap:6px}}@media(min-width: 900px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-areas:"checkbox user status importance";grid-template-columns:60px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-columns:60px 260px auto 230px}}`)}function ui(e,t,n){const i=e.slice();return i[9]=t[n],i[10]=t,i[11]=n,i}function ci(e){let t,n,i,r,o,s,a,u,l,c,f,d,h,p,_,y,g,E,L;function O(){e[5].call(o,e[11])}function I(...ne){return e[6](e[11],...ne)}l=new yl({props:{row:e[9]}}),d=new au({props:{row:e[9]}}),_=new $l({props:{row:e[9]}});function Y(){return e[7](e[9])}function de(...ne){return e[8](e[9],...ne)}return{c(){t=x("div"),n=x("div"),i=x("div"),r=V(),o=x("input"),a=V(),u=x("div"),G(l.$$.fragment),c=V(),f=x("div"),G(d.$$.fragment),h=V(),p=x("div"),G(_.$$.fragment),v(i,"class","StatusBar svelte-d34xx3"),Qt(i,"background-color",Ne(e[9].status).border),v(o,"type","checkbox"),o.__value=s=e[9].conversationid,In(o,o.__value),v(o,"class","svelte-d34xx3"),v(n,"class","Checkbox svelte-d34xx3"),Qt(n,"position","relative"),v(u,"class","UserColumn svelte-d34xx3"),v(f,"class","StatusColumn svelte-d34xx3"),v(p,"class","ImportanceColumn svelte-d34xx3"),v(t,"class",y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(ne,fe){N(ne,t,fe),w(t,n),w(n,i),w(n,r),w(n,o),o.checked=e[1][e[11]].__selected,w(t,a),w(t,u),F(l,u,null),w(t,c),w(t,f),F(d,f,null),w(t,h),w(t,p),F(_,p,null),g=!0,E||(L=[he(o,"change",O),he(o,"click",sn(I)),he(n,"click",sn(cu)),he(t,"click",Y),he(t,"mousedown",de)],E=!0)},p(ne,fe){e=ne,(!g||fe&2)&&Qt(i,"background-color",Ne(e[9].status).border),(!g||fe&2&&s!==(s=e[9].conversationid))&&(o.__value=s,In(o,o.__value)),fe&2&&(o.checked=e[1][e[11]].__selected);const ae={};fe&2&&(ae.row=e[9]),l.$set(ae);const z={};fe&2&&(z.row=e[9]),d.$set(z);const Te={};fe&2&&(Te.row=e[9]),_.$set(Te),(!g||fe&2&&y!==(y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&v(t,"class",y)},i(ne){g||(T(l.$$.fragment,ne),T(d.$$.fragment,ne),T(_.$$.fragment,ne),g=!0)},o(ne){k(l.$$.fragment,ne),k(d.$$.fragment,ne),k(_.$$.fragment,ne),g=!1},d(ne){ne&&R(t),$(l),$(d),$(_),E=!1,Oe(L)}}}function uu(e){let t,n,i,r=Ze(e[1]),o=[];for(let l=0;l<r.length;l+=1)o[l]=ci(ui(e,r,l));const s=l=>k(o[l],1,1,()=>{o[l]=null}),a=e[4].default,u=wt(a,e,e[3],null);return{c(){t=x("div");for(let l=0;l<o.length;l+=1)o[l].c();n=V(),u&&u.c(),v(t,"class","Body svelte-d34xx3")},m(l,c){N(l,t,c);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(t,null);w(t,n),u&&u.m(t,null),i=!0},p(l,[c]){if(c&7){r=Ze(l[1]);let f;for(f=0;f<r.length;f+=1){const d=ui(l,r,f);o[f]?(o[f].p(d,c),T(o[f],1)):(o[f]=ci(d),o[f].c(),T(o[f],1),o[f].m(t,n))}for(be(),f=r.length;f<o.length;f+=1)s(f);we()}u&&u.p&&(!i||c&8)&&Tt(u,a,l,l[3],i?Et(a,l[3],c,null):xt(l[3]),null)},i(l){if(!i){for(let c=0;c<r.length;c+=1)T(o[c]);T(u,l),i=!0}},o(l){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)k(o[c]);k(u,l),i=!1},d(l){l&&R(t),bn(o,l),u&&u.d(l)}}}const cu=()=>{};function fu(e,t,n){let i;K(e,ye,d=>n(1,i=d));let{$$slots:r={},$$scope:o}=t,{rowMiddleClickHandler:s}=t;function a(d,h){if(d.shiftKey){let p=i.findIndex(_=>_.__selected);if(p!==-1){let _=Math.min(p,h),y=Math.max(p,h);for(let g=_;g<=y;g++)fr(ye,i[g].__selected=!0,i)}}}function u(d){i[d].__selected=this.checked,ye.set(i)}const l=(d,h)=>a(h,d),c=d=>location.assign("#Conversation;id="+d.conversationid),f=(d,h)=>{h.button===1&&s&&(s(d.conversationid),h.preventDefault(),h.stopPropagation())};return e.$$set=d=>{"rowMiddleClickHandler"in d&&n(0,s=d.rowMiddleClickHandler),"$$scope"in d&&n(3,o=d.$$scope)},[s,i,a,o,r,u,l,c,f]}class du extends re{constructor(t){super(),ie(this,t,fu,uu,te,{rowMiddleClickHandler:0},lu)}}function hu(e){ue(e,"svelte-1nok758","div.svelte-1nok758{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}")}function mu(e){let t,n,i;return{c(){t=x("div"),n=x("p"),i=j(e[0]),v(t,"class","svelte-1nok758")},m(r,o){N(r,t,o),w(t,n),w(n,i)},p(r,[o]){o&1&&se(i,r[0])},i:J,o:J,d(r){r&&R(t)}}}function gu(e,t,n){let i,r,o,s,a,u;return K(e,Ee,l=>n(1,r=l)),K(e,Be,l=>n(2,o=l)),K(e,ye,l=>n(3,s=l)),K(e,Zi,l=>n(4,a=l)),K(e,Je,l=>n(5,u=l)),e.$$.update=()=>{e.$$.dirty&62&&n(0,i=u?r("Loading..."):a?r("Loading failed. Please try again later."):!s||s.length===0?r("No results match your filter. Try broadening the search criteria."):o==null?r("All data loaded"):r("Load more data"))},[i,r,o,s,a,u]}class pu extends re{constructor(t){super(),ie(this,t,gu,mu,te,{},hu)}}function _u(e){ue(e,"svelte-1srt8g7",`button.SortingButton{width:calc(100% - 8px);text-align:left;font-weight:normal;margin:0 0 0 30px}button.SortingButton.Selected{width:100%;text-align:left;font-weight:bold}.radio-option.svelte-1srt8g7 input[type="radio"].svelte-1srt8g7{display:none}.radio-option.svelte-1srt8g7.svelte-1srt8g7{display:flex;align-items:center;position:relative;width:calc(100% - 8px);padding:6px 10px;color:var(--main-textcolor);cursor:pointer}.radio-option.svelte-1srt8g7.svelte-1srt8g7::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--menu-selected-bg);background-color:white}.selected.svelte-1srt8g7.svelte-1srt8g7{font-weight:700}.selected.svelte-1srt8g7.svelte-1srt8g7::before{width:10px;height:10px;border:5px solid var(--ticket-status-chat-background)}.radio-option.svelte-1srt8g7.svelte-1srt8g7:hover{background:var(--menu-hover-bg)}.Title.svelte-1srt8g7.svelte-1srt8g7{width:100%;margin:4px 0 12px 10px;color:var(--main-textcolor);font-size:13px;font-style:normal;font-weight:700;line-height:20px;font-family:'Roboto', sans-serif}.Title.svelte-1srt8g7.svelte-1srt8g7::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}.modal.svelte-1srt8g7.svelte-1srt8g7{min-width:200px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--main-background);border:none;border-radius:6px;overflow:hidden;z-index:99999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}`)}function fi(e,t,n){const i=e.slice();return i[9]=t[n],i}function di(e){let t,n,i,r,o=e[9].label+"",s,a,u,l,c;return{c(){t=x("label"),n=x("input"),r=V(),s=j(o),a=V(),v(n,"type","radio"),v(n,"name","sorting"),n.value=e[9].value,n.checked=i=e[0]&&e[0].value===e[9].value,v(n,"class","svelte-1srt8g7"),v(t,"class",u=ce(e[0].value===e[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(f,d){N(f,t,d),w(t,n),w(t,r),w(t,s),w(t,a),l||(c=he(n,"click",e[5]),l=!0)},p(f,d){d&1&&i!==(i=f[0]&&f[0].value===f[9].value)&&(n.checked=i),d&1&&u!==(u=ce(f[0].value===f[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&v(t,"class",u)},d(f){f&&R(t),l=!1,c()}}}function vu(e){let t,n,i=e[3]("Sort by")+"",r,o,s=Ze(e[4]),a=[];for(let u=0;u<s.length;u+=1)a[u]=di(fi(e,s,u));return{c(){t=x("dialog"),n=x("span"),r=j(i),o=V();for(let u=0;u<a.length;u+=1)a[u].c();v(n,"class","Title svelte-1srt8g7"),v(t,"class","modal svelte-1srt8g7"),v(t,"style",e[1])},m(u,l){N(u,t,l),w(t,n),w(n,r),w(t,o);for(let c=0;c<a.length;c+=1)a[c]&&a[c].m(t,null);e[7](t)},p(u,[l]){if(l&8&&i!==(i=u[3]("Sort by")+"")&&se(r,i),l&49){s=Ze(u[4]);let c;for(c=0;c<s.length;c+=1){const f=fi(u,s,c);a[c]?a[c].p(f,l):(a[c]=di(f),a[c].c(),a[c].m(t,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=s.length}l&2&&v(t,"style",u[1])},i:J,o:J,d(u){u&&R(t),bn(a,u),e[7](null)}}}function yu(e,t,n){let i;K(e,Ee,d=>n(3,i=d));let{currentFilter:r}=t,{closeModal:o=()=>l.close()}=t,{style:s=""}=t;const a=vi(),u=[{value:"Datedue",label:i("Importance"),sort:lt.Datedue,dir:!1},{value:"Created-newest",label:i("Date created - Newest"),sort:lt.Datecreated,dir:!1},{value:"Created-oldest",label:i("Date created - Oldest"),sort:lt.Datecreated,dir:!0},{value:"Changed-newest",label:i("Date changed - Newest"),sort:lt.Datechanged,dir:!1},{value:"Changed-oldest",label:i("Date changed - Oldest"),sort:lt.Datechanged,dir:!0}];let l;function c(d){const h=u.find(p=>p.value===d.target.value);n(0,r=h),a("filterChange",{option:h}),o()}function f(d){Xe[d?"unshift":"push"](()=>{l=d,n(2,l)})}return e.$$set=d=>{"currentFilter"in d&&n(0,r=d.currentFilter),"closeModal"in d&&n(6,o=d.closeModal),"style"in d&&n(1,s=d.style)},[r,s,l,i,u,c,o,f]}class bu extends re{constructor(t){super(),ie(this,t,yu,vu,te,{currentFilter:0,closeModal:6,style:1},_u)}}function wu(e){ue(e,"svelte-657q9o",".backdrop.svelte-657q9o{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:100}")}function Eu(e){let t,n,i;return{c(){t=x("div"),v(t,"class","backdrop svelte-657q9o")},m(r,o){N(r,t,o),n||(i=he(t,"click",sn(function(){Gt(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(r,[o]){e=r},i:J,o:J,d(r){r&&R(t),n=!1,i()}}}function Tu(e,t,n){let{onClick:i}=t;return e.$$set=r=>{"onClick"in r&&n(0,i=r.onClick)},[i]}class xu extends re{constructor(t){super(),ie(this,t,Tu,Eu,te,{onClick:0},wu)}}function ku(e){ue(e,"svelte-1od4wyj",".load.svelte-1od4wyj{display:block}.container.svelte-1od4wyj{width:100%;flex-grow:1;flex-basis:0;overflow-y:scroll;overflow-x:hidden;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1od4wyj{width:100%}}")}function Cu(e){let t,n,i,r,o,s;return i=new pu({}),{c(){t=x("div"),n=x("div"),G(i.$$.fragment),v(n,"class","load svelte-1od4wyj"),v(t,"class","load svelte-1od4wyj")},m(a,u){N(a,t,u),w(t,n),F(i,n,null),e[11](n),r=!0,o||(s=he(n,"click",e[12]),o=!0)},p:J,i(a){r||(T(i.$$.fragment,a),r=!0)},o(a){k(i.$$.fragment,a),r=!1},d(a){a&&R(t),$(i),e[11](null),o=!1,s()}}}function hi(e){let t,n,i,r;return t=new bu({props:{closeModal:e[8],currentFilter:e[5],style:e[4]}}),t.$on("filterChange",e[10]),i=new xu({props:{onClick:e[8]}}),{c(){G(t.$$.fragment),n=V(),G(i.$$.fragment)},m(o,s){F(t,o,s),N(o,n,s),F(i,o,s),r=!0},p(o,s){const a={};s&32&&(a.currentFilter=o[5]),s&16&&(a.style=o[4]),t.$set(a)},i(o){r||(T(t.$$.fragment,o),T(i.$$.fragment,o),r=!0)},o(o){k(t.$$.fragment,o),k(i.$$.fragment,o),r=!1},d(o){o&&R(n),$(t,o),$(i,o)}}}function Lu(e){let t,n,i,r,o,s;n=new Ra({props:{currentFilter:e[5].label}}),n.$on("openModal",e[9]),r=new du({props:{rowMiddleClickHandler:e[0],$$slots:{default:[Cu]},$$scope:{ctx:e}}});let a=e[3]&&hi(e);return{c(){t=x("div"),G(n.$$.fragment),i=V(),G(r.$$.fragment),o=V(),a&&a.c(),v(t,"class","container svelte-1od4wyj")},m(u,l){N(u,t,l),F(n,t,null),w(t,i),F(r,t,null),w(t,o),a&&a.m(t,null),e[13](t),s=!0},p(u,[l]){const c={};l&32&&(c.currentFilter=u[5].label),n.$set(c);const f={};l&1&&(f.rowMiddleClickHandler=u[0]),l&16578&&(f.$$scope={dirty:l,ctx:u}),r.$set(f),u[3]?a?(a.p(u,l),l&8&&T(a,1)):(a=hi(u),a.c(),T(a,1),a.m(t,null)):a&&(be(),k(a,1,1,()=>{a=null}),we())},i(u){s||(T(n.$$.fragment,u),T(r.$$.fragment,u),T(a),s=!0)},o(u){k(n.$$.fragment,u),k(r.$$.fragment,u),k(a),s=!1},d(u){u&&R(t),$(n),$(r),a&&a.d(),e[13](null)}}}function Su(e,t,n){let i,r,o;K(e,gt,g=>n(6,r=g)),K(e,Be,g=>n(7,o=g));let{rowMiddleClickHandler:s}=t,a,u,l=!1,c="";Ut(()=>{const g=localStorage.getItem("TicketGridCurrentFilter");g&&n(5,i=JSON.parse(g));const E=new IntersectionObserver(L=>{L[0].isIntersecting&&et()},{root:u,threshold:.5});return E.observe(a),()=>E.unobserve(a)});function f(){n(3,l=!1)}function d(g){n(3,l=!0),n(4,c=g.detail.dialogStyles)}function h(g){f(),console.log("filter changed: "+g.detail.option.sort+" "+g.detail.option.dir),g.detail.option.value!==i.value&&(n(5,i=g.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(i)),Xt.set(i.dir),Sn.set(i.sort))}function p(g){Xe[g?"unshift":"push"](()=>{a=g,n(1,a)})}const _=()=>et(r&&!o);function y(g){Xe[g?"unshift":"push"](()=>{u=g,n(2,u)})}return e.$$set=g=>{"rowMiddleClickHandler"in g&&n(0,s=g.rowMiddleClickHandler)},n(5,i={value:"Datedue",label:"Importance"}),[s,a,u,l,c,i,r,o,f,d,h,p,_,y]}class Au extends re{constructor(t){super(),ie(this,t,Su,Lu,te,{rowMiddleClickHandler:0},ku)}}class Ou{constructor(t,n){const i=new Cn({apiKey:t,basePath:n+"/api/v3"});this.api=new Ji(i)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((n,i)=>(n[i.tagid]=i,n),{}),Xi.set(t)}}function Ru(e){ue(e,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Nu(e){let t,n,i,r,o;const s=e[4].default,a=wt(s,e,e[3],null);return{c(){t=x("button"),a&&a.c(),v(t,"class",n=ce(e[0])+" svelte-10fvxzv")},m(u,l){N(u,t,l),a&&a.m(t,null),i=!0,r||(o=he(t,"click",e[1]),r=!0)},p(u,[l]){a&&a.p&&(!i||l&8)&&Tt(a,s,u,u[3],i?Et(s,u[3],l,null):xt(u[3]),null),(!i||l&1&&n!==(n=ce(u[0])+" svelte-10fvxzv"))&&v(t,"class",n)},i(u){i||(T(a,u),i=!0)},o(u){k(a,u),i=!1},d(u){u&&R(t),a&&a.d(u),r=!1,o()}}}function Iu(e,t,n){let{$$slots:i={},$$scope:r}=t,{onAction:o=u=>{}}=t,{className:s=""}=t;function a(u){o(u)}return e.$$set=u=>{"onAction"in u&&n(2,o=u.onAction),"className"in u&&n(0,s=u.className),"$$scope"in u&&n(3,r=u.$$scope)},[s,a,o,r,i]}class mi extends re{constructor(t){super(),ie(this,t,Iu,Nu,te,{onAction:2,className:0},Ru)}}function Du(e){ue(e,"svelte-19qi61t",".NoTickets.svelte-19qi61t{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}p.svelte-19qi61t{max-width:450px;font-size:13px;font-weight:400;text-align:center}h1.svelte-19qi61t{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-19qi61t{max-width:300px}")}function Hu(e){let t,n,i=e[2]("Change filter")+"",r,o;return t=new Ae({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){G(t.$$.fragment),n=V(),r=j(i)},m(s,a){F(t,s,a),N(s,n,a),N(s,r,a),o=!0},p(s,a){(!o||a&4)&&i!==(i=s[2]("Change filter")+"")&&se(r,i)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){k(t.$$.fragment,s),o=!1},d(s){s&&(R(n),R(r)),$(t,s)}}}function Pu(e){let t,n,i=e[2]("Configure chat button")+"",r,o;return t=new Ae({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){G(t.$$.fragment),n=V(),r=j(i)},m(s,a){F(t,s,a),N(s,n,a),N(s,r,a),o=!0},p(s,a){(!o||a&4)&&i!==(i=s[2]("Configure chat button")+"")&&se(r,i)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){k(t.$$.fragment,s),o=!1},d(s){s&&(R(n),R(r)),$(t,s)}}}function Mu(e){let t,n,i,r,o,s=e[2]("No tickets found")+"",a,u,l,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",f,d,h,p,_,y,g;return p=new mi({props:{className:"Filter",onAction:e[3],$$slots:{default:[Hu]},$$scope:{ctx:e}}}),y=new mi({props:{className:"Configure",onAction:e[4],$$slots:{default:[Pu]},$$scope:{ctx:e}}}),{c(){t=x("div"),n=x("img"),r=V(),o=x("h1"),a=j(s),u=V(),l=x("p"),f=j(c),d=V(),h=x("div"),G(p.$$.fragment),_=V(),G(y.$$.fragment),v(n,"alt","No results placeholder"),Pt(n.src,i=e[0]+"/themes/agent/obsidian/img/no-result.svg")||v(n,"src",i),v(n,"class","svelte-19qi61t"),v(o,"class","svelte-19qi61t"),v(l,"class","svelte-19qi61t"),v(h,"class","Buttons"),v(t,"class","NoTickets svelte-19qi61t")},m(E,L){N(E,t,L),w(t,n),w(t,r),w(t,o),w(o,a),w(t,u),w(t,l),w(l,f),w(t,d),w(t,h),F(p,h,null),w(h,_),F(y,h,null),g=!0},p(E,[L]){(!g||L&1&&!Pt(n.src,i=E[0]+"/themes/agent/obsidian/img/no-result.svg"))&&v(n,"src",i),(!g||L&4)&&s!==(s=E[2]("No tickets found")+"")&&se(a,s),(!g||L&4)&&c!==(c=E[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&se(f,c);const O={};L&2&&(O.onAction=E[3]),L&36&&(O.$$scope={dirty:L,ctx:E}),p.$set(O);const I={};L&36&&(I.$$scope={dirty:L,ctx:E}),y.$set(I)},i(E){g||(T(p.$$.fragment,E),T(y.$$.fragment,E),g=!0)},o(E){k(p.$$.fragment,E),k(y.$$.fragment,E),g=!1},d(E){E&&R(t),$(p),$(y)}}}function Bu(e,t,n){let i;K(e,Ee,u=>n(2,i=u));let{basePath:r}=t,{changeFilterHandler:o=()=>{}}=t;const s=()=>o(),a=()=>window.location.hash="Chat-Buttons";return e.$$set=u=>{"basePath"in u&&n(0,r=u.basePath),"changeFilterHandler"in u&&n(1,o=u.changeFilterHandler)},[r,o,i,s,a]}class Fu extends re{constructor(t){super(),ie(this,t,Bu,Mu,te,{basePath:0,changeFilterHandler:1},Du)}}function $u(e){ue(e,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function Gu(e){let t,n;return t=new Au({props:{rowMiddleClickHandler:e[0]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.rowMiddleClickHandler=i[0]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Uu(e){let t,n;return t=new Fu({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&2&&(o.basePath=i[1]),r&4&&(o.changeFilterHandler=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Vu(e){let t,n,i,r;const o=[Uu,Gu],s=[];function a(u,l){return!u[3].length&&u[4]?0:1}return n=a(e),i=s[n]=o[n](e),{c(){t=x("main"),i.c(),v(t,"class","svelte-14f2ism")},m(u,l){N(u,t,l),s[n].m(t,null),r=!0},p(u,[l]){let c=n;n=a(u),n===c?s[n].p(u,l):(be(),k(s[c],1,1,()=>{s[c]=null}),we(),i=s[n],i?i.p(u,l):(i=s[n]=o[n](u),i.c()),T(i,1),i.m(t,null))},i(u){r||(T(i),r=!0)},o(u){k(i),r=!1},d(u){u&&R(t),s[n].d()}}}function zu(e,t,n){let i,r,o,s,a,u;K(e,We,h=>n(9,i=h)),K(e,bt,h=>n(6,r=h)),K(e,Sn,h=>n(7,o=h)),K(e,Xt,h=>n(8,s=h)),K(e,ye,h=>n(3,a=h)),K(e,gt,h=>n(4,u=h));let{apiKey:l}=t,{rowMiddleClickHandler:c}=t,{basePath:f}=t,{changeFilterHandler:d}=t;return Ut(async()=>{await new Ou(l,f).load();const h=new Ji(new Cn({apiKey:l,basePath:f+"/api/v3"}));$t.set(h),await et(!0)}),ye.subscribe(h=>{Ln.set(i?h.filter(p=>!p.__selected).map(p=>p.conversationid):h.filter(p=>p.__selected).map(p=>p.conversationid))}),e.$$set=h=>{"apiKey"in h&&n(5,l=h.apiKey),"rowMiddleClickHandler"in h&&n(0,c=h.rowMiddleClickHandler),"basePath"in h&&n(1,f=h.basePath),"changeFilterHandler"in h&&n(2,d=h.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&448&&(s||o||r)&&et(!0)},[c,f,d,a,u,l,r,o,s]}class Ku extends re{constructor(t){super(),ie(this,t,zu,Vu,te,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},$u)}}function Wu(e){let t,n;return t=new Ku({props:{apiKey:e[0].apiKey,basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.apiKey=i[0].apiKey),r&1&&(o.basePath=i[0].basePath),r&2&&(o.rowMiddleClickHandler=i[1]),r&4&&(o.changeFilterHandler=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ju(e){let t;return{c(){t=x("p"),t.textContent="Loading..."},m(n,i){N(n,t,i)},p:J,i:J,o:J,d(n){n&&R(t)}}}function Xu(e){let t,n,i,r,o,s;const a=[Ju,Wu],u=[];function l(c,f){return c[3]?0:c[0].apiKey?1:-1}return~(t=l(e))&&(n=u[t]=a[t](e)),{c(){n&&n.c(),i=V(),r=x("link"),v(r,"rel","stylesheet"),v(r,"href",o=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,f){~t&&u[t].m(c,f),N(c,i,f),N(c,r,f),s=!0},p(c,[f]){let d=t;t=l(c),t===d?~t&&u[t].p(c,f):(n&&(be(),k(u[d],1,1,()=>{u[d]=null}),we()),~t?(n=u[t],n?n.p(c,f):(n=u[t]=a[t](c),n.c()),T(n,1),n.m(i.parentNode,i)):n=null),(!s||f&1&&o!==(o=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&v(r,"href",o)},i(c){s||(T(n),s=!0)},o(c){k(n),s=!1},d(c){c&&(R(i),R(r)),~t&&u[t].d(c)}}}function Zu(e,t,n){let i,r,o,s;K(e,ye,h=>n(7,i=h)),K(e,We,h=>n(8,r=h)),K(e,Ln,h=>n(9,o=h)),K(e,Dt,h=>n(3,s=h));let{filters:a='[["rstatus","IN","A,P,T,N,C,R,W"],["channel_type","IN","B,M,E,F,A,I,Q,S,C,W,T,V"]]'}=t,{options:u={apiKey:null,basePath:null,localeOptions:{thousandsSeparator:"S",decimalSeparator:"D",dateFormat:"MM/d/yyyy",timeFormat:"HH:mm:ss",timeShortFormat:"HH:mm",locale:"sk"}}}=t,{rowMiddleClickHandler:l=h=>{}}=t,{ticketSelectionChangeHandler:c=(h,p,_)=>{}}=t,{changeFilterHandler:f=()=>{}}=t;const d=function(h=!1){et(h)};return sa(u.localeOptions),Ut(()=>{bt.set(a)}),e.$$set=h=>{"filters"in h&&n(4,a=h.filters),"options"in h&&n(0,u=h.options),"rowMiddleClickHandler"in h&&n(1,l=h.rowMiddleClickHandler),"ticketSelectionChangeHandler"in h&&n(5,c=h.ticketSelectionChangeHandler),"changeFilterHandler"in h&&n(2,f=h.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&16&&a&&bt.set(a),e.$$.dirty&928&&c(o,r,i.length)},[u,l,f,s,a,c,d,i,r,o]}class Yu extends re{constructor(t){super(),ie(this,t,Zu,Xu,te,{filters:4,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:5,changeFilterHandler:2,reload:6})}get filters(){return this.$$.ctx[4]}set filters(t){this.$$set({filters:t}),Pe()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),Pe()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),Pe()}get ticketSelectionChangeHandler(){return this.$$.ctx[5]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),Pe()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),Pe()}get reload(){return this.$$.ctx[6]}}customElements.define("tickets-table",Lr(Yu,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));
|