@qualityunit/liveagent-ticket-grid 0.0.102 → 0.0.103
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 +8 -8
- package/package.json +2 -2
package/dist/assets/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var Bs=Object.defineProperty;var Fs=(e,t,i)=>t in e?Bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var pe=(e,t,i)=>(Fs(e,typeof t!="symbol"?t+"":t,i),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function i(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=i(s);fetch(s.href,r)}})();const Gs="modulepreload",js=function(e){return"/"+e},Hi={},a=function(t,i,n){if(!i||i.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(i.map(r=>{if(r=js(r),r in Hi)return;Hi[r]=!0;const o=r.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!n)for(let c=s.length-1;c>=0;c--){const _=s[c];if(_.href===r&&(!o||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Gs,o||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),o)return new Promise((c,_)=>{u.addEventListener("load",c),u.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},Mi=(e,t)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((n,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})};function X(){}function Et(e,t){for(const i in t)e[i]=t[i];return e}function On(e){return e()}function Bi(){return Object.create(null)}function ke(e){e.forEach(On)}function wi(e){return typeof e=="function"}function te(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let kt;function Ht(e,t){return e===t?!0:(kt||(kt=document.createElement("a")),kt.href=t,e===kt.href)}function zs(e){return Object.keys(e).length===0}function Oi(e,...t){if(e==null){for(const n of t)n(void 0);return X}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Pe(e){let t;return Oi(e,i=>t=i)(),t}function G(e,t,i){e.$$.on_destroy.push(Oi(t,i))}function Lt(e,t,i,n){if(e){const s=In(e,t,i,n);return e[0](s)}}function In(e,t,i,n){return e[1]&&n?Et(i.ctx.slice(),e[1](n(t))):i.ctx}function At(e,t,i,n){if(e[2]&&n){const s=e[2](n(i));if(t.dirty===void 0)return s;if(typeof s=="object"){const r=[],o=Math.max(t.dirty.length,s.length);for(let l=0;l<o;l+=1)r[l]=t.dirty[l]|s[l];return r}return t.dirty|s}return t.dirty}function wt(e,t,i,n,s,r){if(s){const o=In(t,i,n,r);e.p(o,s)}}function Ot(e){if(e.ctx.length>32){const t=[],i=e.ctx.length/32;for(let n=0;n<i;n++)t[n]=-1;return t}return-1}function Us(e){const t={};for(const i in e)i[0]!=="$"&&(t[i]=e[i]);return t}function Fi(e,t){const i={};t=new Set(t);for(const n in e)!t.has(n)&&n[0]!=="$"&&(i[n]=e[n]);return i}function Ee(e){return e??""}function ii(e,t,i){return e.set(i),t}const Ks=["",!0,1,"true","contenteditable"];function I(e,t){e.appendChild(t)}function _e(e,t,i){const n=Js(e);if(!n.getElementById(t)){const s=x("style");s.id=t,s.textContent=i,Ws(n,s)}}function Js(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ws(e,t){return I(e.head||e,t),t.sheet}function S(e,t,i){e.insertBefore(t,i||null)}function $(e){e.parentNode&&e.parentNode.removeChild(e)}function jt(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function x(e){return document.createElement(e)}function Dd(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Q(e){return document.createTextNode(e)}function K(){return Q(" ")}function It(){return Q("")}function we(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function di(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Xs(e){return function(t){t.target===this&&e.call(this,t)}}function y(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}const qs=["width","height"];function Gi(e,t){const i=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:i[n]&&i[n].set&&qs.indexOf(n)===-1?e[n]=t[n]:y(e,n,t[n])}function Rd(e,t){for(const i in t)y(e,i,t[i])}function xd(e,t,i){e.setAttributeNS("http://www.w3.org/1999/xlink",t,i)}function Zs(e){return Array.from(e.childNodes)}function le(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ys(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Qs(e,t,i){~Ks.indexOf(i)?Ys(e,t):le(e,t)}function ji(e,t){e.value=t??""}function Je(e,t,i,n){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function We(e,t,i){e.classList.toggle(t,!!i)}function er(e,t,{bubbles:i=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:i,cancelable:n})}function tr(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function zi(e,t){return new e(t)}let yt;function mt(e){yt=e}function Dt(){if(!yt)throw new Error("Function called outside component initialization");return yt}function Rt(e){Dt().$$.on_mount.push(e)}function Dn(){const e=Dt();return(t,i,{cancelable:n=!1}={})=>{const s=e.$$.callbacks[t];if(s){const r=er(t,i,{cancelable:n});return s.slice().forEach(o=>{o.call(e,r)}),!r.defaultPrevented}return!0}}function Ii(e,t){return Dt().$$.context.set(e,t),t}function zt(e){return Dt().$$.context.get(e)}function Rn(e){return Dt().$$.context.has(e)}function xn(e,t){const i=e.$$.callbacks[t.type];i&&i.slice().forEach(n=>n.call(this,t))}const Ue=[],Qe=[];let Ye=[];const ci=[],ir=Promise.resolve();let _i=!1;function nr(){_i||(_i=!0,ir.then(C))}function fi(e){Ye.push(e)}function sr(e){ci.push(e)}const ni=new Set;let Ge=0;function C(){if(Ge!==0)return;const e=yt;do{try{for(;Ge<Ue.length;){const t=Ue[Ge];Ge++,mt(t),rr(t.$$)}}catch(t){throw Ue.length=0,Ge=0,t}for(mt(null),Ue.length=0,Ge=0;Qe.length;)Qe.pop()();for(let t=0;t<Ye.length;t+=1){const i=Ye[t];ni.has(i)||(ni.add(i),i())}Ye.length=0}while(Ue.length);for(;ci.length;)ci.pop()();_i=!1,ni.clear(),mt(e)}function rr(e){if(e.fragment!==null){e.update(),ke(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(fi)}}function or(e){const t=[],i=[];Ye.forEach(n=>e.indexOf(n)===-1?t.push(n):i.push(n)),i.forEach(n=>n()),Ye=t}const $t=new Set;let Me;function be(){Me={r:0,c:[],p:Me}}function Te(){Me.r||ke(Me.c),Me=Me.p}function w(e,t){e&&e.i&&($t.delete(e),e.i(t))}function D(e,t,i,n){if(e&&e.o){if($t.has(e))return;$t.add(e),Me.c.push(()=>{$t.delete(e),n&&(i&&e.d(1),n())}),e.o(t)}else n&&n()}function Ne(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Pn(e,t){const i={},n={},s={$$scope:1};let r=e.length;for(;r--;){const o=e[r],l=t[r];if(l){for(const d in o)d in l||(n[d]=1);for(const d in l)s[d]||(i[d]=l[d],s[d]=1);e[r]=l}else for(const d in o)s[d]=1}for(const o in n)o in i||(i[o]=void 0);return i}function lr(e){return typeof e=="object"&&e!==null?e:{}}function ar(e,t,i){const n=e.$$.props[t];n!==void 0&&(e.$$.bound[n]=i,i(e.$$.ctx[n]))}function F(e){e&&e.c()}function H(e,t,i){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,i),fi(()=>{const r=e.$$.on_mount.map(On).filter(wi);e.$$.on_destroy?e.$$.on_destroy.push(...r):ke(r),e.$$.on_mount=[]}),s.forEach(fi)}function M(e,t){const i=e.$$;i.fragment!==null&&(or(i.after_update),ke(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function ur(e,t){e.$$.dirty[0]===-1&&(Ue.push(e),nr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,t,i,n,s,r,o=null,l=[-1]){const d=yt;mt(e);const u=e.$$={fragment:null,ctx:[],props:r,update:X,not_equal:s,bound:Bi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:Bi(),dirty:l,skip_bound:!1,root:t.target||d.$$.root};o&&o(u.root);let c=!1;if(u.ctx=i?i(e,t.props||{},(_,f,...m)=>{const g=m.length?m[0]:f;return u.ctx&&s(u.ctx[_],u.ctx[_]=g)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](g),c&&ur(e,_)),f}):[],u.update(),c=!0,ke(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const _=Zs(t.target);u.fragment&&u.fragment.l(_),_.forEach($)}else u.fragment&&u.fragment.c();t.intro&&w(e.$$.fragment),H(e,t.target,t.anchor),C()}mt(d)}let kn;typeof HTMLElement=="function"&&(kn=class extends HTMLElement{constructor(t,i,n){super();pe(this,"$$ctor");pe(this,"$$s");pe(this,"$$c");pe(this,"$$cn",!1);pe(this,"$$d",{});pe(this,"$$r",!1);pe(this,"$$p_d",{});pe(this,"$$l",{});pe(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(t,i,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(i),this.$$c){const s=this.$$c.$on(t,i);this.$$l_u.set(i,s)}super.addEventListener(t,i,n)}removeEventListener(t,i,n){if(super.removeEventListener(t,i,n),this.$$c){const s=this.$$l_u.get(i);s&&(s(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let o;return{c:function(){o=x("slot"),r!=="default"&&y(o,"name",r)},m:function(u,c){S(u,o,c)},d:function(u){u&&$(o)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},n=tr(this);for(const r of this.$$s)r in n&&(i[r]=[t(r)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=St(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const o=St(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const o of this.$$l[r]){const l=this.$$c.$on(r,o);this.$$l_u.set(o,l)}this.$$l={}}}attributeChangedCallback(t,i,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=St(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(i=>this.$$p_d[i].attribute===t||!this.$$p_d[i].attribute&&i.toLowerCase()===t)||t}});function St(e,t,i,n){var r;const s=(r=i[e])==null?void 0:r.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function re(e,t,i,n,s,r){let o=class extends kn{constructor(){super(e,i,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(d){var u;d=St(l,d,t),this.$$d[l]=d,(u=this.$$c)==null||u.$set({[l]:d})}})}),n.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var d;return(d=this.$$c)==null?void 0:d[l]}})}),r&&(o=r(o)),e.element=o,o}class oe{constructor(){pe(this,"$$");pe(this,"$$set")}$destroy(){M(this,1),this.$destroy=X}$on(t,i){if(!wi(i))return X;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const s=n.indexOf(i);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!zs(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const dr="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dr);function cr(e){_e(e,"svelte-9xt2rh",".Icon.svelte-9xt2rh{position:relative;width:16px;height:16px;transition:all .5s ease}.Icon.svelte-9xt2rh:before{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:inline-block;font-family:'la-icon-font';margin:0;text-transform:none;line-height:1;font-size:1em}.Rotate.svelte-9xt2rh{transform:rotate(180deg)}")}function _r(e){let t,i;return{c(){t=x("span"),y(t,"class",i=Ee(`Icon ${e[0]} ${e[1]}`)+" svelte-9xt2rh")},m(n,s){S(n,t,s)},p(n,[s]){s&3&&i!==(i=Ee(`Icon ${n[0]} ${n[1]}`)+" svelte-9xt2rh")&&y(t,"class",i)},i:X,o:X,d(n){n&&$(t)}}}function fr(e,t,i){let{className:n=""}=t,{iconLaClassName:s}=t;return e.$$set=r=>{"className"in r&&i(0,n=r.className),"iconLaClassName"in r&&i(1,s=r.iconLaClassName)},[n,s]}class Re extends oe{constructor(t){super(),se(this,t,fr,_r,te,{className:0,iconLaClassName:1},cr)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),C()}get iconLaClassName(){return this.$$.ctx[1]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),C()}}re(Re,{className:{},iconLaClassName:{}},[],[],!0);const je=[];function Cn(e,t){return{subscribe:Oe(e,t).subscribe}}function Oe(e,t=X){let i;const n=new Set;function s(l){if(te(e,l)&&(e=l,i)){const d=!je.length;for(const u of n)u[1](),je.push(u,e);if(d){for(let u=0;u<je.length;u+=2)je[u][0](je[u+1]);je.length=0}}}function r(l){s(l(e))}function o(l,d=X){const u=[l,d];return n.add(u),n.size===1&&(i=t(s,r)||X),l(e),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:s,update:r,subscribe:o}}function rt(e,t,i){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=t.length<2;return Cn(i,(o,l)=>{let d=!1;const u=[];let c=0,_=X;const f=()=>{if(c)return;_();const g=t(n?u[0]:u,o,l);r?o(g):_=wi(g)?g:X},m=s.map((g,v)=>Oi(g,L=>{u[v]=L,c&=~(1<<v),d&&f()},()=>{c|=1<<v}));return d=!0,f(),function(){ke(m),_(),d=!1}})}var $n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mr=function(t){return hr(t)&&!gr(t)};function hr(e){return!!e&&typeof e=="object"}function gr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Er(e)}var pr=typeof Symbol=="function"&&Symbol.for,vr=pr?Symbol.for("react.element"):60103;function Er(e){return e.$$typeof===vr}function yr(e){return Array.isArray(e)?[]:{}}function bt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?et(yr(e),e,t):e}function br(e,t,i){return e.concat(t).map(function(n){return bt(n,i)})}function Tr(e,t){if(!t.customMerge)return et;var i=t.customMerge(e);return typeof i=="function"?i:et}function Lr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ui(e){return Object.keys(e).concat(Lr(e))}function Sn(e,t){try{return t in e}catch{return!1}}function Ar(e,t){return Sn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function wr(e,t,i){var n={};return i.isMergeableObject(e)&&Ui(e).forEach(function(s){n[s]=bt(e[s],i)}),Ui(t).forEach(function(s){Ar(e,s)||(Sn(e,s)&&i.isMergeableObject(t[s])?n[s]=Tr(s,i)(e[s],t[s],i):n[s]=bt(t[s],i))}),n}function et(e,t,i){i=i||{},i.arrayMerge=i.arrayMerge||br,i.isMergeableObject=i.isMergeableObject||mr,i.cloneUnlessOtherwiseSpecified=bt;var n=Array.isArray(t),s=Array.isArray(e),r=n===s;return r?n?i.arrayMerge(e,t,i):wr(e,t,i):bt(t,i)}et.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return et(n,s,i)},{})};var Or=et,Ir=Or;const Dr=Ut(Ir);var mi=function(e,t){return mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},mi(e,t)};function Kt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mi(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var ee=function(){return ee=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},ee.apply(this,arguments)};function Rr(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}function si(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,r;n<s;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}var q;(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"})(q||(q={}));var me;(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"})(me||(me={}));var tt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tt||(tt={}));function Ki(e){return e.type===me.literal}function xr(e){return e.type===me.argument}function Vn(e){return e.type===me.number}function Nn(e){return e.type===me.date}function Hn(e){return e.type===me.time}function Mn(e){return e.type===me.select}function Bn(e){return e.type===me.plural}function Pr(e){return e.type===me.pound}function Fn(e){return e.type===me.tag}function Gn(e){return!!(e&&typeof e=="object"&&e.type===tt.number)}function hi(e){return!!(e&&typeof e=="object"&&e.type===tt.dateTime)}var jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kr=/(?:[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 Cr(e){var t={};return e.replace(kr,function(i){var n=i.length;switch(i[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 $r=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Sr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split($r).filter(function(f){return f.length>0}),i=[],n=0,s=t;n<s.length;n++){var r=s[n],o=r.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],d=o.slice(1),u=0,c=d;u<c.length;u++){var _=c[u];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:l,options:d})}return i}function Vr(e){return e.replace(/^(.*?)-/,"")}var Ji=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zn=/^(@+)?(\+|#+)?[rs]?$/g,Nr=/(\*)(0+)|(#+)(0+)|(0+)/g,Un=/^(0+)$/;function Wi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zn,function(i,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function Kn(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 Hr(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 i=e.slice(0,2);if(i==="+!"?(t.signDisplay="always",e=e.slice(2)):i==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Un.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Xi(e){var t={},i=Kn(e);return i||t}function Mr(e){for(var t={},i=0,n=e;i<n.length;i++){var s=n[i];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.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=Vr(s.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=ee(ee(ee({},t),{notation:"scientific"}),s.options.reduce(function(d,u){return ee(ee({},d),Xi(u))},{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),s.options.reduce(function(d,u){return ee(ee({},d),Xi(u))},{}));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(s.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(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Nr,function(d,u,c,_,f,m){if(u)t.minimumIntegerDigits=c.length;else{if(_&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Un.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Ji.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Ji,function(d,u,c,_,f,m){return c==="*"?t.minimumFractionDigits=u.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var r=s.options[0];r==="w"?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):r&&(t=ee(ee({},t),Wi(r)));continue}if(zn.test(s.stem)){t=ee(ee({},t),Wi(s.stem));continue}var o=Kn(s.stem);o&&(t=ee(ee({},t),o));var l=Hr(s.stem);l&&(t=ee(ee({},t),l))}return t}var Ct={"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 Br(e,t){for(var i="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var r=0;n+1<e.length&&e.charAt(n+1)===s;)r++,n++;var o=1+(r&1),l=r<2?1:3+(r>>1),d="a",u=Fr(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)i+=d;for(;o-- >0;)i=u+i}else s==="J"?i+="H":i+=s}return i}function Fr(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 i=e.language,n;i!=="root"&&(n=e.maximize().region);var s=Ct[n||""]||Ct[i||""]||Ct["".concat(i,"-001")]||Ct["001"];return s[0]}var ri,Gr=new RegExp("^".concat(jn.source,"*")),jr=new RegExp("".concat(jn.source,"*$"));function Y(e,t){return{start:e,end:t}}var zr=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ur=!!String.fromCodePoint,Kr=!!Object.fromEntries,Jr=!!String.prototype.codePointAt,Wr=!!String.prototype.trimStart,Xr=!!String.prototype.trimEnd,qr=!!Number.isSafeInteger,Zr=qr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},gi=!0;try{var Yr=Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gi=((ri=Yr.exec("a"))===null||ri===void 0?void 0:ri[0])==="a"}catch{gi=!1}var qi=zr?function(t,i,n){return t.startsWith(i,n)}:function(t,i,n){return t.slice(n,n+i.length)===i},pi=Ur?String.fromCodePoint:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var n="",s=t.length,r=0,o;s>r;){if(o=t[r++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Zi=Kr?Object.fromEntries:function(t){for(var i={},n=0,s=t;n<s.length;n++){var r=s[n],o=r[0],l=r[1];i[o]=l}return i},Jn=Jr?function(t,i){return t.codePointAt(i)}:function(t,i){var n=t.length;if(!(i<0||i>=n)){var s=t.charCodeAt(i),r;return s<55296||s>56319||i+1===n||(r=t.charCodeAt(i+1))<56320||r>57343?s:(s-55296<<10)+(r-56320)+65536}},Qr=Wr?function(t){return t.trimStart()}:function(t){return t.replace(Gr,"")},eo=Xr?function(t){return t.trimEnd()}:function(t){return t.replace(jr,"")};function Wn(e,t){return new RegExp(e,t)}var vi;if(gi){var Yi=Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vi=function(t,i){var n;Yi.lastIndex=i;var s=Yi.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else vi=function(t,i){for(var n=[];;){var s=Jn(t,i);if(s===void 0||Xn(s)||so(s))break;n.push(s),i+=s>=65536?2:1}return pi.apply(void 0,n)};var to=function(){function e(t,i){i===void 0&&(i={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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,i,n){for(var s=[];!this.isEOF();){var r=this.char();if(r===123){var o=this.parseArgument(t,n);if(o.err)return o;s.push(o.val)}else{if(r===125&&t>0)break;if(r===35&&(i==="plural"||i==="selectordinal")){var l=this.clonePosition();this.bump(),s.push({type:me.pound,location:Y(l,this.clonePosition())})}else if(r===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(q.UNMATCHED_CLOSING_TAG,Y(this.clonePosition(),this.clonePosition()))}else if(r===60&&!this.ignoreTag&&Ei(this.peek()||0)){var o=this.parseTag(t,i);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,i);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,i){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:me.literal,value:"<".concat(s,"/>"),location:Y(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(t+1,i,!0);if(r.err)return r;var o=r.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ei(this.char()))return this.error(q.INVALID_TAG,Y(l,this.clonePosition()));var d=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(q.UNMATCHED_CLOSING_TAG,Y(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:me.tag,value:s,children:o,location:Y(n,this.clonePosition())},err:null}:this.error(q.INVALID_TAG,Y(l,this.clonePosition())))}else return this.error(q.UNCLOSED_TAG,Y(n,this.clonePosition()))}else return this.error(q.INVALID_TAG,Y(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&no(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,i){for(var n=this.clonePosition(),s="";;){var r=this.tryParseQuote(i);if(r){s+=r;continue}var o=this.tryParseUnquoted(t,i);if(o){s+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){s+=l;continue}break}var d=Y(n,this.clonePosition());return{val:{type:me.literal,value:s,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!io(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 i=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(n);this.bump()}return pi.apply(void 0,i)},e.prototype.tryParseUnquoted=function(t,i){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(i==="plural"||i==="selectordinal")||n===125&&t>0?null:(this.bump(),pi(n))},e.prototype.parseArgument=function(t,i){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(q.EMPTY_ARGUMENT,Y(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(q.MALFORMED_ARGUMENT,Y(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:me.argument,value:s,location:Y(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(n,this.clonePosition())):this.parseArgumentOptions(t,i,s,n);default:return this.error(q.MALFORMED_ARGUMENT,Y(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),i=this.offset(),n=vi(this.message,i),s=i+n.length;this.bumpTo(s);var r=this.clonePosition(),o=Y(t,r);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,i,n,s){var r,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(q.EXPECT_ARGUMENT_TYPE,Y(o,d));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var f=eo(_.val);if(f.length===0)return this.error(q.EXPECT_ARGUMENT_STYLE,Y(this.clonePosition(),this.clonePosition()));var m=Y(c,this.clonePosition());u={style:f,styleLocation:m}}var g=this.tryParseArgumentClose(s);if(g.err)return g;var v=Y(s,this.clonePosition());if(u&&qi(u==null?void 0:u.style,"::",0)){var L=Qr(u.style.slice(2));if(l==="number"){var _=this.parseNumberSkeletonFromString(L,u.styleLocation);return _.err?_:{val:{type:me.number,value:n,location:v,style:_.val},err:null}}else{if(L.length===0)return this.error(q.EXPECT_DATE_TIME_SKELETON,v);var p=L;this.locale&&(p=Br(L,this.locale));var f={type:tt.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Cr(p):{}},E=l==="date"?me.date:me.time;return{val:{type:E,value:n,location:v,style:f},err:null}}}return{val:{type:l==="number"?me.number:l==="date"?me.date:me.time,value:n,location:v,style:(r=u==null?void 0:u.style)!==null&&r!==void 0?r:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(q.EXPECT_SELECT_ARGUMENT_OPTIONS,Y(T,ee({},T)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),O=0;if(l!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),A=this.parseIdentifierIfPossible(),O=_.val}var N=this.tryParsePluralOrSelectOptions(t,l,i,A);if(N.err)return N;var g=this.tryParseArgumentClose(s);if(g.err)return g;var he=Y(s,this.clonePosition());return l==="select"?{val:{type:me.select,value:n,options:Zi(N.val),location:he},err:null}:{val:{type:me.plural,value:n,options:Zi(N.val),offset:O,pluralType:l==="plural"?"cardinal":"ordinal",location:he},err:null}}default:return this.error(q.INVALID_ARGUMENT_TYPE,Y(o,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,i=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Y(s,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(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,i){var n=[];try{n=Sr(t)}catch{return this.error(q.INVALID_NUMBER_SKELETON,i)}return{val:{type:tt.number,tokens:n,location:i,parsedOptions:this.shouldParseSkeletons?Mr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,i,n,s){for(var r,o=!1,l=[],d=new Set,u=s.value,c=s.location;;){if(u.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=Y(_,this.clonePosition()),u=this.message.slice(_.offset,this.offset())}else break}if(d.has(u))return this.error(i==="select"?q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Y(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,i,n);if(g.err)return g;var v=this.tryParseArgumentClose(m);if(v.err)return v;l.push([u,{value:g.val,location:Y(m,this.clonePosition())}]),d.add(u),this.bumpSpace(),r=this.parseIdentifierIfPossible(),u=r.value,c=r.location}return l.length===0?this.error(i==="select"?q.EXPECT_SELECT_ARGUMENT_SELECTOR:q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(q.MISSING_OTHER_CLAUSE,Y(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,i){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)r=!0,o=o*10+(l-48),this.bump();else break}var d=Y(s,this.clonePosition());return r?(o*=n,Zr(o)?{val:o,err:null}:this.error(i,d)):this.error(t,d)},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 i=Jn(this.message,t);if(i===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(t,i){return{val:null,err:{kind:t,message:this.message,location:i}}},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(qi(this.message,t,this.offset())){for(var i=0;i<t.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var i=this.offset(),n=this.message.indexOf(t,i);return n>=0?(this.bumpTo(n),!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 i=this.offset();if(i===t)break;if(i>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()&&Xn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),i=this.offset(),n=this.message.charCodeAt(i+(t>=65536?2:1));return n??null},e}();function Ei(e){return e>=97&&e<=122||e>=65&&e<=90}function io(e){return Ei(e)||e===47}function no(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 Xn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function so(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 yi(e){e.forEach(function(t){if(delete t.location,Mn(t)||Bn(t))for(var i in t.options)delete t.options[i].location,yi(t.options[i].value);else Vn(t)&&Gn(t.style)||(Nn(t)||Hn(t))&&hi(t.style)?delete t.style.location:Fn(t)&&yi(t.children)})}function ro(e,t){t===void 0&&(t={}),t=ee({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new to(e,t).parse();if(i.err){var n=SyntaxError(q[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return t!=null&&t.captureLocation||yi(i.val),i.val}function oi(e,t){var i=t&&t.cache?t.cache:_o,n=t&&t.serializer?t.serializer:co,s=t&&t.strategy?t.strategy:lo;return s(e,{cache:i,serializer:n})}function oo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function qn(e,t,i,n){var s=oo(n)?n:i(n),r=t.get(s);return typeof r>"u"&&(r=e.call(this,n),t.set(s,r)),r}function Zn(e,t,i){var n=Array.prototype.slice.call(arguments,3),s=i(n),r=t.get(s);return typeof r>"u"&&(r=e.apply(this,n),t.set(s,r)),r}function Di(e,t,i,n,s){return i.bind(t,e,n,s)}function lo(e,t){var i=e.length===1?qn:Zn;return Di(e,this,i,t.cache.create(),t.serializer)}function ao(e,t){return Di(e,this,Zn,t.cache.create(),t.serializer)}function uo(e,t){return Di(e,this,qn,t.cache.create(),t.serializer)}var co=function(){return JSON.stringify(arguments)};function Ri(){this.cache=Object.create(null)}Ri.prototype.get=function(e){return this.cache[e]};Ri.prototype.set=function(e,t){this.cache[e]=t};var _o={create:function(){return new Ri}},li={variadic:ao,monadic:uo},it;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(it||(it={}));var Jt=function(e){Kt(t,e);function t(i,n,s){var r=e.call(this,i)||this;return r.code=n,r.originalMessage=s,r}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Qi=function(e){Kt(t,e);function t(i,n,s,r){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),it.INVALID_VALUE,r)||this}return t}(Jt),fo=function(e){Kt(t,e);function t(i,n,s){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(n),it.INVALID_VALUE,s)||this}return t}(Jt),mo=function(e){Kt(t,e);function t(i,n){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(n,'"'),it.MISSING_VALUE,n)||this}return t}(Jt),Ae;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ae||(Ae={}));function ho(e){return e.length<2?e:e.reduce(function(t,i){var n=t[t.length-1];return!n||n.type!==Ae.literal||i.type!==Ae.literal?t.push(i):n.value+=i.value,t},[])}function go(e){return typeof e=="function"}function Vt(e,t,i,n,s,r,o){if(e.length===1&&Ki(e[0]))return[{type:Ae.literal,value:e[0].value}];for(var l=[],d=0,u=e;d<u.length;d++){var c=u[d];if(Ki(c)){l.push({type:Ae.literal,value:c.value});continue}if(Pr(c)){typeof r=="number"&&l.push({type:Ae.literal,value:i.getNumberFormat(t).format(r)});continue}var _=c.value;if(!(s&&_ in s))throw new mo(_,o);var f=s[_];if(xr(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?Ae.literal:Ae.object,value:f});continue}if(Nn(c)){var m=typeof c.style=="string"?n.date[c.style]:hi(c.style)?c.style.parsedOptions:void 0;l.push({type:Ae.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(Hn(c)){var m=typeof c.style=="string"?n.time[c.style]:hi(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:Ae.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(Vn(c)){var m=typeof c.style=="string"?n.number[c.style]:Gn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),l.push({type:Ae.literal,value:i.getNumberFormat(t,m).format(f)});continue}if(Fn(c)){var g=c.children,v=c.value,L=s[v];if(!go(L))throw new fo(v,"function",o);var p=Vt(g,t,i,n,s,r),E=L(p.map(function(O){return O.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(O){return{type:typeof O=="string"?Ae.literal:Ae.object,value:O}}))}if(Mn(c)){var T=c.options[f]||c.options.other;if(!T)throw new Qi(c.value,f,Object.keys(c.options),o);l.push.apply(l,Vt(T.value,t,i,n,s));continue}if(Bn(c)){var T=c.options["=".concat(f)];if(!T){if(!Intl.PluralRules)throw new Jt(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
var Bs=Object.defineProperty;var Fs=(e,t,i)=>t in e?Bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Ee=(e,t,i)=>(Fs(e,typeof t!="symbol"?t+"":t,i),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();const Gs="modulepreload",zs=function(e){return"/"+e},Hi={},a=function(t,i,n){if(!i||i.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(i.map(o=>{if(o=zs(o),o in Hi)return;Hi[o]=!0;const r=o.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!n)for(let c=s.length-1;c>=0;c--){const _=s[c];if(_.href===o&&(!r||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=r?"stylesheet":Gs,r||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),r)return new Promise((c,_)=>{u.addEventListener("load",c),u.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})},Mi=(e,t)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((n,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})};function Z(){}function Et(e,t){for(const i in t)e[i]=t[i];return e}function On(e){return e()}function Bi(){return Object.create(null)}function ke(e){e.forEach(On)}function Oi(e){return typeof e=="function"}function ne(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let kt;function Ht(e,t){return e===t?!0:(kt||(kt=document.createElement("a")),kt.href=t,e===kt.href)}function js(e){return Object.keys(e).length===0}function Ii(e,...t){if(e==null){for(const n of t)n(void 0);return Z}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Pe(e){let t;return Ii(e,i=>t=i)(),t}function z(e,t,i){e.$$.on_destroy.push(Ii(t,i))}function Lt(e,t,i,n){if(e){const s=In(e,t,i,n);return e[0](s)}}function In(e,t,i,n){return e[1]&&n?Et(i.ctx.slice(),e[1](n(t))):i.ctx}function At(e,t,i,n){if(e[2]&&n){const s=e[2](n(i));if(t.dirty===void 0)return s;if(typeof s=="object"){const o=[],r=Math.max(t.dirty.length,s.length);for(let l=0;l<r;l+=1)o[l]=t.dirty[l]|s[l];return o}return t.dirty|s}return t.dirty}function wt(e,t,i,n,s,o){if(s){const r=In(t,i,n,o);e.p(r,s)}}function Ot(e){if(e.ctx.length>32){const t=[],i=e.ctx.length/32;for(let n=0;n<i;n++)t[n]=-1;return t}return-1}function Us(e){const t={};for(const i in e)i[0]!=="$"&&(t[i]=e[i]);return t}function Fi(e,t){const i={};t=new Set(t);for(const n in e)!t.has(n)&&n[0]!=="$"&&(i[n]=e[n]);return i}function ye(e){return e??""}function ni(e,t,i){return e.set(i),t}const Ks=["",!0,1,"true","contenteditable"];function w(e,t){e.appendChild(t)}function me(e,t,i){const n=Js(e);if(!n.getElementById(t)){const s=D("style");s.id=t,s.textContent=i,Ws(n,s)}}function Js(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ws(e,t){return w(e.head||e,t),t.sheet}function C(e,t,i){e.insertBefore(t,i||null)}function $(e){e.parentNode&&e.parentNode.removeChild(e)}function zt(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function D(e){return document.createElement(e)}function Rd(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function te(e){return document.createTextNode(e)}function J(){return te(" ")}function It(){return te("")}function we(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function ci(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Xs(e){return function(t){t.target===this&&e.call(this,t)}}function E(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}const qs=["width","height"];function Gi(e,t){const i=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:i[n]&&i[n].set&&qs.indexOf(n)===-1?e[n]=t[n]:E(e,n,t[n])}function Dd(e,t){for(const i in t)E(e,i,t[i])}function xd(e,t,i){e.setAttributeNS("http://www.w3.org/1999/xlink",t,i)}function Zs(e){return Array.from(e.childNodes)}function ae(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ys(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Qs(e,t,i){~Ks.indexOf(i)?Ys(e,t):ae(e,t)}function zi(e,t){e.value=t??""}function Je(e,t,i,n){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function We(e,t,i){e.classList.toggle(t,!!i)}function eo(e,t,{bubbles:i=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:i,cancelable:n})}function to(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function ji(e,t){return new e(t)}let yt;function mt(e){yt=e}function Rt(){if(!yt)throw new Error("Function called outside component initialization");return yt}function Dt(e){Rt().$$.on_mount.push(e)}function Rn(){const e=Rt();return(t,i,{cancelable:n=!1}={})=>{const s=e.$$.callbacks[t];if(s){const o=eo(t,i,{cancelable:n});return s.slice().forEach(r=>{r.call(e,o)}),!o.defaultPrevented}return!0}}function Ri(e,t){return Rt().$$.context.set(e,t),t}function jt(e){return Rt().$$.context.get(e)}function Dn(e){return Rt().$$.context.has(e)}function xn(e,t){const i=e.$$.callbacks[t.type];i&&i.slice().forEach(n=>n.call(this,t))}const Ue=[],Qe=[];let Ye=[];const _i=[],io=Promise.resolve();let fi=!1;function no(){fi||(fi=!0,io.then(P))}function mi(e){Ye.push(e)}function so(e){_i.push(e)}const si=new Set;let Ge=0;function P(){if(Ge!==0)return;const e=yt;do{try{for(;Ge<Ue.length;){const t=Ue[Ge];Ge++,mt(t),oo(t.$$)}}catch(t){throw Ue.length=0,Ge=0,t}for(mt(null),Ue.length=0,Ge=0;Qe.length;)Qe.pop()();for(let t=0;t<Ye.length;t+=1){const i=Ye[t];si.has(i)||(si.add(i),i())}Ye.length=0}while(Ue.length);for(;_i.length;)_i.pop()();fi=!1,si.clear(),mt(e)}function oo(e){if(e.fragment!==null){e.update(),ke(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(mi)}}function ro(e){const t=[],i=[];Ye.forEach(n=>e.indexOf(n)===-1?t.push(n):i.push(n)),i.forEach(n=>n()),Ye=t}const Ct=new Set;let Me;function Te(){Me={r:0,c:[],p:Me}}function Le(){Me.r||ke(Me.c),Me=Me.p}function A(e,t){e&&e.i&&(Ct.delete(e),e.i(t))}function I(e,t,i,n){if(e&&e.o){if(Ct.has(e))return;Ct.add(e),Me.c.push(()=>{Ct.delete(e),n&&(i&&e.d(1),n())}),e.o(t)}else n&&n()}function Ne(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Pn(e,t){const i={},n={},s={$$scope:1};let o=e.length;for(;o--;){const r=e[o],l=t[o];if(l){for(const d in r)d in l||(n[d]=1);for(const d in l)s[d]||(i[d]=l[d],s[d]=1);e[o]=l}else for(const d in r)s[d]=1}for(const r in n)r in i||(i[r]=void 0);return i}function lo(e){return typeof e=="object"&&e!==null?e:{}}function ao(e,t,i){const n=e.$$.props[t];n!==void 0&&(e.$$.bound[n]=i,i(e.$$.ctx[n]))}function F(e){e&&e.c()}function N(e,t,i){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,i),mi(()=>{const o=e.$$.on_mount.map(On).filter(Oi);e.$$.on_destroy?e.$$.on_destroy.push(...o):ke(o),e.$$.on_mount=[]}),s.forEach(mi)}function H(e,t){const i=e.$$;i.fragment!==null&&(ro(i.after_update),ke(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function uo(e,t){e.$$.dirty[0]===-1&&(Ue.push(e),no(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function oe(e,t,i,n,s,o,r=null,l=[-1]){const d=yt;mt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Z,not_equal:s,bound:Bi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:Bi(),dirty:l,skip_bound:!1,root:t.target||d.$$.root};r&&r(u.root);let c=!1;if(u.ctx=i?i(e,t.props||{},(_,f,...m)=>{const g=m.length?m[0]:f;return u.ctx&&s(u.ctx[_],u.ctx[_]=g)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](g),c&&uo(e,_)),f}):[],u.update(),c=!0,ke(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const _=Zs(t.target);u.fragment&&u.fragment.l(_),_.forEach($)}else u.fragment&&u.fragment.c();t.intro&&A(e.$$.fragment),N(e,t.target,t.anchor),P()}mt(d)}let kn;typeof HTMLElement=="function"&&(kn=class extends HTMLElement{constructor(t,i,n){super();Ee(this,"$$ctor");Ee(this,"$$s");Ee(this,"$$c");Ee(this,"$$cn",!1);Ee(this,"$$d",{});Ee(this,"$$r",!1);Ee(this,"$$p_d",{});Ee(this,"$$l",{});Ee(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(t,i,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(i),this.$$c){const s=this.$$c.$on(t,i);this.$$l_u.set(i,s)}super.addEventListener(t,i,n)}removeEventListener(t,i,n){if(super.removeEventListener(t,i,n),this.$$c){const s=this.$$l_u.get(i);s&&(s(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let r;return{c:function(){r=D("slot"),o!=="default"&&E(r,"name",o)},m:function(u,c){C(u,r,c)},d:function(u){u&&$(r)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},n=to(this);for(const o of this.$$s)o in n&&(i[o]=[t(o)]);for(const o of this.attributes){const r=this.$$g_p(o.name);r in this.$$d||(this.$$d[r]=St(r,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const r=St(o,this.$$d[o],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,r)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const r of this.$$l[o]){const l=this.$$c.$on(o,r);this.$$l_u.set(r,l)}this.$$l={}}}attributeChangedCallback(t,i,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=St(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(i=>this.$$p_d[i].attribute===t||!this.$$p_d[i].attribute&&i.toLowerCase()===t)||t}});function St(e,t,i,n){var o;const s=(o=i[e])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function re(e,t,i,n,s,o){let r=class extends kn{constructor(){super(e,i,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(r.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(d){var u;d=St(l,d,t),this.$$d[l]=d,(u=this.$$c)==null||u.$set({[l]:d})}})}),n.forEach(l=>{Object.defineProperty(r.prototype,l,{get(){var d;return(d=this.$$c)==null?void 0:d[l]}})}),o&&(r=o(r)),e.element=r,r}class le{constructor(){Ee(this,"$$");Ee(this,"$$set")}$destroy(){H(this,1),this.$destroy=Z}$on(t,i){if(!Oi(i))return Z;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const s=n.indexOf(i);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!js(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const co="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(co);function _o(e){me(e,"svelte-9xt2rh",".Icon.svelte-9xt2rh{position:relative;width:16px;height:16px;transition:all .5s ease}.Icon.svelte-9xt2rh:before{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:inline-block;font-family:'la-icon-font';margin:0;text-transform:none;line-height:1;font-size:1em}.Rotate.svelte-9xt2rh{transform:rotate(180deg)}")}function fo(e){let t,i;return{c(){t=D("span"),E(t,"class",i=ye(`Icon ${e[0]} ${e[1]}`)+" svelte-9xt2rh")},m(n,s){C(n,t,s)},p(n,[s]){s&3&&i!==(i=ye(`Icon ${n[0]} ${n[1]}`)+" svelte-9xt2rh")&&E(t,"class",i)},i:Z,o:Z,d(n){n&&$(t)}}}function mo(e,t,i){let{className:n=""}=t,{iconLaClassName:s}=t;return e.$$set=o=>{"className"in o&&i(0,n=o.className),"iconLaClassName"in o&&i(1,s=o.iconLaClassName)},[n,s]}class De extends le{constructor(t){super(),oe(this,t,mo,fo,ne,{className:0,iconLaClassName:1},_o)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),P()}get iconLaClassName(){return this.$$.ctx[1]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),P()}}re(De,{className:{},iconLaClassName:{}},[],[],!0);const ze=[];function $n(e,t){return{subscribe:Re(e,t).subscribe}}function Re(e,t=Z){let i;const n=new Set;function s(l){if(ne(e,l)&&(e=l,i)){const d=!ze.length;for(const u of n)u[1](),ze.push(u,e);if(d){for(let u=0;u<ze.length;u+=2)ze[u][0](ze[u+1]);ze.length=0}}}function o(l){s(l(e))}function r(l,d=Z){const u=[l,d];return n.add(u),n.size===1&&(i=t(s,o)||Z),l(e),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:s,update:o,subscribe:r}}function ot(e,t,i){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return $n(i,(r,l)=>{let d=!1;const u=[];let c=0,_=Z;const f=()=>{if(c)return;_();const g=t(n?u[0]:u,r,l);o?r(g):_=Oi(g)?g:Z},m=s.map((g,p)=>Ii(g,v=>{u[p]=v,c&=~(1<<p),d&&f()},()=>{c|=1<<p}));return d=!0,f(),function(){ke(m),_(),d=!1}})}var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ho=function(t){return go(t)&&!po(t)};function go(e){return!!e&&typeof e=="object"}function po(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||yo(e)}var vo=typeof Symbol=="function"&&Symbol.for,Eo=vo?Symbol.for("react.element"):60103;function yo(e){return e.$$typeof===Eo}function bo(e){return Array.isArray(e)?[]:{}}function bt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?et(bo(e),e,t):e}function To(e,t,i){return e.concat(t).map(function(n){return bt(n,i)})}function Lo(e,t){if(!t.customMerge)return et;var i=t.customMerge(e);return typeof i=="function"?i:et}function Ao(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ui(e){return Object.keys(e).concat(Ao(e))}function Sn(e,t){try{return t in e}catch{return!1}}function wo(e,t){return Sn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Oo(e,t,i){var n={};return i.isMergeableObject(e)&&Ui(e).forEach(function(s){n[s]=bt(e[s],i)}),Ui(t).forEach(function(s){wo(e,s)||(Sn(e,s)&&i.isMergeableObject(t[s])?n[s]=Lo(s,i)(e[s],t[s],i):n[s]=bt(t[s],i))}),n}function et(e,t,i){i=i||{},i.arrayMerge=i.arrayMerge||To,i.isMergeableObject=i.isMergeableObject||ho,i.cloneUnlessOtherwiseSpecified=bt;var n=Array.isArray(t),s=Array.isArray(e),o=n===s;return o?n?i.arrayMerge(e,t,i):Oo(e,t,i):bt(t,i)}et.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return et(n,s,i)},{})};var Io=et,Ro=Io;const Do=Ut(Ro);var hi=function(e,t){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},hi(e,t)};function Kt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hi(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var ie=function(){return ie=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ie.apply(this,arguments)};function xo(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}function oi(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Y;(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"})(Y||(Y={}));var pe;(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"})(pe||(pe={}));var tt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tt||(tt={}));function Ki(e){return e.type===pe.literal}function Po(e){return e.type===pe.argument}function Vn(e){return e.type===pe.number}function Nn(e){return e.type===pe.date}function Hn(e){return e.type===pe.time}function Mn(e){return e.type===pe.select}function Bn(e){return e.type===pe.plural}function ko(e){return e.type===pe.pound}function Fn(e){return e.type===pe.tag}function Gn(e){return!!(e&&typeof e=="object"&&e.type===tt.number)}function gi(e){return!!(e&&typeof e=="object"&&e.type===tt.dateTime)}var zn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$o=/(?:[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 Co(e){var t={};return e.replace($o,function(i){var n=i.length;switch(i[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 So=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Vo(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(So).filter(function(f){return f.length>0}),i=[],n=0,s=t;n<s.length;n++){var o=s[n],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var l=r[0],d=r.slice(1),u=0,c=d;u<c.length;u++){var _=c[u];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:l,options:d})}return i}function No(e){return e.replace(/^(.*?)-/,"")}var Ji=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,jn=/^(@+)?(\+|#+)?[rs]?$/g,Ho=/(\*)(0+)|(#+)(0+)|(0+)/g,Un=/^(0+)$/;function Wi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(jn,function(i,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function Kn(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 Mo(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 i=e.slice(0,2);if(i==="+!"?(t.signDisplay="always",e=e.slice(2)):i==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Un.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Xi(e){var t={},i=Kn(e);return i||t}function Bo(e){for(var t={},i=0,n=e;i<n.length;i++){var s=n[i];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.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=No(s.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=ie(ie(ie({},t),{notation:"scientific"}),s.options.reduce(function(d,u){return ie(ie({},d),Xi(u))},{}));continue;case"engineering":t=ie(ie(ie({},t),{notation:"engineering"}),s.options.reduce(function(d,u){return ie(ie({},d),Xi(u))},{}));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(s.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(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Ho,function(d,u,c,_,f,m){if(u)t.minimumIntegerDigits=c.length;else{if(_&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Un.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Ji.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Ji,function(d,u,c,_,f,m){return c==="*"?t.minimumFractionDigits=u.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=s.options[0];o==="w"?t=ie(ie({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ie(ie({},t),Wi(o)));continue}if(jn.test(s.stem)){t=ie(ie({},t),Wi(s.stem));continue}var r=Kn(s.stem);r&&(t=ie(ie({},t),r));var l=Mo(s.stem);l&&(t=ie(ie({},t),l))}return t}var $t={"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 Fo(e,t){for(var i="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===s;)o++,n++;var r=1+(o&1),l=o<2?1:3+(o>>1),d="a",u=Go(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)i+=d;for(;r-- >0;)i=u+i}else s==="J"?i+="H":i+=s}return i}function Go(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 i=e.language,n;i!=="root"&&(n=e.maximize().region);var s=$t[n||""]||$t[i||""]||$t["".concat(i,"-001")]||$t["001"];return s[0]}var ri,zo=new RegExp("^".concat(zn.source,"*")),jo=new RegExp("".concat(zn.source,"*$"));function ee(e,t){return{start:e,end:t}}var Uo=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ko=!!String.fromCodePoint,Jo=!!Object.fromEntries,Wo=!!String.prototype.codePointAt,Xo=!!String.prototype.trimStart,qo=!!String.prototype.trimEnd,Zo=!!Number.isSafeInteger,Yo=Zo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pi=!0;try{var Qo=Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pi=((ri=Qo.exec("a"))===null||ri===void 0?void 0:ri[0])==="a"}catch{pi=!1}var qi=Uo?function(t,i,n){return t.startsWith(i,n)}:function(t,i,n){return t.slice(n,n+i.length)===i},vi=Ko?String.fromCodePoint:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var n="",s=t.length,o=0,r;s>o;){if(r=t[o++],r>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return n},Zi=Jo?Object.fromEntries:function(t){for(var i={},n=0,s=t;n<s.length;n++){var o=s[n],r=o[0],l=o[1];i[r]=l}return i},Jn=Wo?function(t,i){return t.codePointAt(i)}:function(t,i){var n=t.length;if(!(i<0||i>=n)){var s=t.charCodeAt(i),o;return s<55296||s>56319||i+1===n||(o=t.charCodeAt(i+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},er=Xo?function(t){return t.trimStart()}:function(t){return t.replace(zo,"")},tr=qo?function(t){return t.trimEnd()}:function(t){return t.replace(jo,"")};function Wn(e,t){return new RegExp(e,t)}var Ei;if(pi){var Yi=Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ei=function(t,i){var n;Yi.lastIndex=i;var s=Yi.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else Ei=function(t,i){for(var n=[];;){var s=Jn(t,i);if(s===void 0||Xn(s)||or(s))break;n.push(s),i+=s>=65536?2:1}return vi.apply(void 0,n)};var ir=function(){function e(t,i){i===void 0&&(i={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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,i,n){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(t,n);if(r.err)return r;s.push(r.val)}else{if(o===125&&t>0)break;if(o===35&&(i==="plural"||i==="selectordinal")){var l=this.clonePosition();this.bump(),s.push({type:pe.pound,location:ee(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,ee(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&yi(this.peek()||0)){var r=this.parseTag(t,i);if(r.err)return r;s.push(r.val)}else{var r=this.parseLiteral(t,i);if(r.err)return r;s.push(r.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,i){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:pe.literal,value:"<".concat(s,"/>"),location:ee(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,i,!0);if(o.err)return o;var r=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yi(this.char()))return this.error(Y.INVALID_TAG,ee(l,this.clonePosition()));var d=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(Y.UNMATCHED_CLOSING_TAG,ee(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:pe.tag,value:s,children:r,location:ee(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,ee(l,this.clonePosition())))}else return this.error(Y.UNCLOSED_TAG,ee(n,this.clonePosition()))}else return this.error(Y.INVALID_TAG,ee(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&sr(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,i){for(var n=this.clonePosition(),s="";;){var o=this.tryParseQuote(i);if(o){s+=o;continue}var r=this.tryParseUnquoted(t,i);if(r){s+=r;continue}var l=this.tryParseLeftAngleBracket();if(l){s+=l;continue}break}var d=ee(n,this.clonePosition());return{val:{type:pe.literal,value:s,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nr(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 i=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(n);this.bump()}return vi.apply(void 0,i)},e.prototype.tryParseUnquoted=function(t,i){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(i==="plural"||i==="selectordinal")||n===125&&t>0?null:(this.bump(),vi(n))},e.prototype.parseArgument=function(t,i){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Y.EMPTY_ARGUMENT,ee(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(Y.MALFORMED_ARGUMENT,ee(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:pe.argument,value:s,location:ee(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition())):this.parseArgumentOptions(t,i,s,n);default:return this.error(Y.MALFORMED_ARGUMENT,ee(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),i=this.offset(),n=Ei(this.message,i),s=i+n.length;this.bumpTo(s);var o=this.clonePosition(),r=ee(t,o);return{value:n,location:r}},e.prototype.parseArgumentOptions=function(t,i,n,s){var o,r=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(Y.EXPECT_ARGUMENT_TYPE,ee(r,d));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var f=tr(_.val);if(f.length===0)return this.error(Y.EXPECT_ARGUMENT_STYLE,ee(this.clonePosition(),this.clonePosition()));var m=ee(c,this.clonePosition());u={style:f,styleLocation:m}}var g=this.tryParseArgumentClose(s);if(g.err)return g;var p=ee(s,this.clonePosition());if(u&&qi(u==null?void 0:u.style,"::",0)){var v=er(u.style.slice(2));if(l==="number"){var _=this.parseNumberSkeletonFromString(v,u.styleLocation);return _.err?_:{val:{type:pe.number,value:n,location:p,style:_.val},err:null}}else{if(v.length===0)return this.error(Y.EXPECT_DATE_TIME_SKELETON,p);var y=v;this.locale&&(y=Fo(v,this.locale));var f={type:tt.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Co(y):{}},b=l==="date"?pe.date:pe.time;return{val:{type:b,value:n,location:p,style:f},err:null}}}return{val:{type:l==="number"?pe.number:l==="date"?pe.date:pe.time,value:n,location:p,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,ee(T,ie({},T)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),O=0;if(l!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),L=this.parseIdentifierIfPossible(),O=_.val}var S=this.tryParsePluralOrSelectOptions(t,l,i,L);if(S.err)return S;var g=this.tryParseArgumentClose(s);if(g.err)return g;var _e=ee(s,this.clonePosition());return l==="select"?{val:{type:pe.select,value:n,options:Zi(S.val),location:_e},err:null}:{val:{type:pe.plural,value:n,options:Zi(S.val),offset:O,pluralType:l==="plural"?"cardinal":"ordinal",location:_e},err:null}}default:return this.error(Y.INVALID_ARGUMENT_TYPE,ee(r,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,i=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ee(s,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(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,i){var n=[];try{n=Vo(t)}catch{return this.error(Y.INVALID_NUMBER_SKELETON,i)}return{val:{type:tt.number,tokens:n,location:i,parsedOptions:this.shouldParseSkeletons?Bo(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,i,n,s){for(var o,r=!1,l=[],d=new Set,u=s.value,c=s.location;;){if(u.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=ee(_,this.clonePosition()),u=this.message.slice(_.offset,this.offset())}else break}if(d.has(u))return this.error(i==="select"?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(r=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ee(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,i,n);if(g.err)return g;var p=this.tryParseArgumentClose(m);if(p.err)return p;l.push([u,{value:g.val,location:ee(m,this.clonePosition())}]),d.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return l.length===0?this.error(i==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(Y.MISSING_OTHER_CLAUSE,ee(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,i){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,r=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,r=r*10+(l-48),this.bump();else break}var d=ee(s,this.clonePosition());return o?(r*=n,Yo(r)?{val:r,err:null}:this.error(i,d)):this.error(t,d)},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 i=Jn(this.message,t);if(i===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(t,i){return{val:null,err:{kind:t,message:this.message,location:i}}},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(qi(this.message,t,this.offset())){for(var i=0;i<t.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var i=this.offset(),n=this.message.indexOf(t,i);return n>=0?(this.bumpTo(n),!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 i=this.offset();if(i===t)break;if(i>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()&&Xn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),i=this.offset(),n=this.message.charCodeAt(i+(t>=65536?2:1));return n??null},e}();function yi(e){return e>=97&&e<=122||e>=65&&e<=90}function nr(e){return yi(e)||e===47}function sr(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 Xn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function or(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 bi(e){e.forEach(function(t){if(delete t.location,Mn(t)||Bn(t))for(var i in t.options)delete t.options[i].location,bi(t.options[i].value);else Vn(t)&&Gn(t.style)||(Nn(t)||Hn(t))&&gi(t.style)?delete t.style.location:Fn(t)&&bi(t.children)})}function rr(e,t){t===void 0&&(t={}),t=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new ir(e,t).parse();if(i.err){var n=SyntaxError(Y[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return t!=null&&t.captureLocation||bi(i.val),i.val}function li(e,t){var i=t&&t.cache?t.cache:_r,n=t&&t.serializer?t.serializer:cr,s=t&&t.strategy?t.strategy:ar;return s(e,{cache:i,serializer:n})}function lr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function qn(e,t,i,n){var s=lr(n)?n:i(n),o=t.get(s);return typeof o>"u"&&(o=e.call(this,n),t.set(s,o)),o}function Zn(e,t,i){var n=Array.prototype.slice.call(arguments,3),s=i(n),o=t.get(s);return typeof o>"u"&&(o=e.apply(this,n),t.set(s,o)),o}function Di(e,t,i,n,s){return i.bind(t,e,n,s)}function ar(e,t){var i=e.length===1?qn:Zn;return Di(e,this,i,t.cache.create(),t.serializer)}function ur(e,t){return Di(e,this,Zn,t.cache.create(),t.serializer)}function dr(e,t){return Di(e,this,qn,t.cache.create(),t.serializer)}var cr=function(){return JSON.stringify(arguments)};function xi(){this.cache=Object.create(null)}xi.prototype.get=function(e){return this.cache[e]};xi.prototype.set=function(e,t){this.cache[e]=t};var _r={create:function(){return new xi}},ai={variadic:ur,monadic:dr},it;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(it||(it={}));var Jt=function(e){Kt(t,e);function t(i,n,s){var o=e.call(this,i)||this;return o.code=n,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Qi=function(e){Kt(t,e);function t(i,n,s,o){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),it.INVALID_VALUE,o)||this}return t}(Jt),fr=function(e){Kt(t,e);function t(i,n,s){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(n),it.INVALID_VALUE,s)||this}return t}(Jt),mr=function(e){Kt(t,e);function t(i,n){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(n,'"'),it.MISSING_VALUE,n)||this}return t}(Jt),Ae;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ae||(Ae={}));function hr(e){return e.length<2?e:e.reduce(function(t,i){var n=t[t.length-1];return!n||n.type!==Ae.literal||i.type!==Ae.literal?t.push(i):n.value+=i.value,t},[])}function gr(e){return typeof e=="function"}function Vt(e,t,i,n,s,o,r){if(e.length===1&&Ki(e[0]))return[{type:Ae.literal,value:e[0].value}];for(var l=[],d=0,u=e;d<u.length;d++){var c=u[d];if(Ki(c)){l.push({type:Ae.literal,value:c.value});continue}if(ko(c)){typeof o=="number"&&l.push({type:Ae.literal,value:i.getNumberFormat(t).format(o)});continue}var _=c.value;if(!(s&&_ in s))throw new mr(_,r);var f=s[_];if(Po(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?Ae.literal:Ae.object,value:f});continue}if(Nn(c)){var m=typeof c.style=="string"?n.date[c.style]:gi(c.style)?c.style.parsedOptions:void 0;l.push({type:Ae.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(Hn(c)){var m=typeof c.style=="string"?n.time[c.style]:gi(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:Ae.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(Vn(c)){var m=typeof c.style=="string"?n.number[c.style]:Gn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),l.push({type:Ae.literal,value:i.getNumberFormat(t,m).format(f)});continue}if(Fn(c)){var g=c.children,p=c.value,v=s[p];if(!gr(v))throw new fr(p,"function",r);var y=Vt(g,t,i,n,s,o),b=v(y.map(function(O){return O.value}));Array.isArray(b)||(b=[b]),l.push.apply(l,b.map(function(O){return{type:typeof O=="string"?Ae.literal:Ae.object,value:O}}))}if(Mn(c)){var T=c.options[f]||c.options.other;if(!T)throw new Qi(c.value,f,Object.keys(c.options),r);l.push.apply(l,Vt(T.value,t,i,n,s));continue}if(Bn(c)){var T=c.options["=".concat(f)];if(!T){if(!Intl.PluralRules)throw new Jt(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,it.MISSING_INTL_API,
|
|
3
|
+
`,it.MISSING_INTL_API,r);var L=i.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));T=c.options[L]||c.options.other}if(!T)throw new Qi(c.value,f,Object.keys(c.options),r);l.push.apply(l,Vt(T.value,t,i,n,s,f-(c.offset||0)));continue}}return hr(l)}function pr(e,t){return t?ie(ie(ie({},e||{}),t||{}),Object.keys(e).reduce(function(i,n){return i[n]=ie(ie({},e[n]),t[n]||{}),i},{})):e}function vr(e,t){return t?Object.keys(e).reduce(function(i,n){return i[n]=pr(e[n],t[n]),i},ie({},e)):e}function ui(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}function Er(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:li(function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,oi([void 0],i,!1)))},{cache:ui(e.number),strategy:ai.variadic}),getDateTimeFormat:li(function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,oi([void 0],i,!1)))},{cache:ui(e.dateTime),strategy:ai.variadic}),getPluralRules:li(function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,oi([void 0],i,!1)))},{cache:ui(e.pluralRules),strategy:ai.variadic})}}var Yn=function(){function e(t,i,n,s){var o=this;if(i===void 0&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var u=o.formatToParts(d);if(u.length===1)return u[0].value;var c=u.reduce(function(_,f){return!_.length||f.type!==Ae.literal||typeof _[_.length-1]!="string"?_.push(f.value):_[_.length-1]+=f.value,_},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return Vt(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return{locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=s||{};r.formatters;var l=xo(r,["formatters"]);this.ast=e.__parse(t,ie(ie({},l),{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=vr(e.formats,n),this.formatters=s&&s.formatters||Er(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 i=Intl.NumberFormat.supportedLocalesOf(t);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=rr,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 yr(e,t){if(t==null)return;if(t in e)return e[t];const i=t.split(".");let n=e;for(let s=0;s<i.length;s++)if(typeof n=="object"){if(s>0){const o=i.slice(s,i.length).join(".");if(o in n){n=n[o];break}}n=n[i[s]]}else n=void 0;return n}const Ve={},br=(e,t,i)=>i&&(t in Ve||(Ve[t]={}),e in Ve[t]||(Ve[t][e]=i),i),Qn=(e,t)=>{if(t==null)return;if(t in Ve&&e in Ve[t])return Ve[t][e];const i=xt(t);for(let n=0;n<i.length;n++){const s=i[n],o=Lr(s,e);if(o)return br(e,t,o)}};let Pi;const rt=Re({});function Tr(e){return Pi[e]||null}function ki(e){return e in Pi}function Lr(e,t){if(!ki(e))return null;const i=Tr(e);return yr(i,t)}function Ar(e){if(e==null)return;const t=xt(e);for(let i=0;i<t.length;i++){const n=t[i];if(ki(n))return n}}function wr(e,...t){delete Ve[e],rt.update(i=>(i[e]=Do.all([i[e]||{},...t]),i))}ot([rt],([e])=>Object.keys(e));rt.subscribe(e=>Pi=e);const ht={};function Or(e){ht[e]=new Set}function Ir(e,t){ht[e].delete(t),ht[e].size===0&&delete ht[e]}function gt(e){return ht[e]}function Rr(e){return xt(e).map(t=>{const i=gt(t);return[t,i?[...i]:[]]}).filter(([,t])=>t.length>0)}function Mt(e){return e==null?!1:xt(e).some(t=>{var i;return(i=gt(t))==null?void 0:i.size})}function Dr(e,t){return Promise.all(t.map(n=>(Ir(e,n),n().then(s=>s.default||s)))).then(n=>wr(e,...n))}const _t={};function es(e){if(!Mt(e))return e in _t?_t[e]:Promise.resolve();const t=Rr(e);return _t[e]=Promise.all(t.map(([i,n])=>Dr(i,n))).then(()=>{if(Mt(e))return es(e);delete _t[e]}),_t[e]}function en(e,t){gt(e)||Or(e);const i=gt(e);gt(e).has(t)||(ki(e)||rt.update(n=>(n[e]={},n)),i.add(t))}var tn=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,kr=(e,t)=>{var i={};for(var n in e)xr.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&tn)for(var n of tn(e))t.indexOf(n)<0&&Pr.call(e,n)&&(i[n]=e[n]);return i};const $r={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 Cr({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${xt(e).join('", "')}".${Mt(He())?`
|
|
4
4
|
|
|
5
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const So={fallbackLocale:null,loadingDelay:200,formats:Co,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ft=So;function nt(){return ft}function Vo(e){const t=e,{formats:i}=t,n=ko(t,["formats"]);let s=e.fallbackLocale;if(e.initialLocale)try{Yn.resolveLocale(e.initialLocale)&&(s=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=$o:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ft,n,{initialLocale:s}),i&&("number"in i&&Object.assign(ft.formats.number,i.number),"date"in i&&Object.assign(ft.formats.date,i.date),"time"in i&&Object.assign(ft.formats.time,i.time)),lt.set(s)}const Nt=Oe(!1);var No=Object.defineProperty,Ho=Object.defineProperties,Mo=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,sn=(e,t,i)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Go=(e,t)=>{for(var i in t||(t={}))Bo.call(t,i)&&sn(e,i,t[i]);if(nn)for(var i of nn(t))Fo.call(t,i)&&sn(e,i,t[i]);return e},jo=(e,t)=>Ho(e,Mo(t));let bi;const Bt=Oe(null);function rn(e){return e.split("-").map((t,i,n)=>n.slice(0,i+1).join("-")).reverse()}function xt(e,t=nt().fallbackLocale){const i=rn(e);return t?[...new Set([...i,...rn(t)])]:i}function He(){return bi??void 0}Bt.subscribe(e=>{bi=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const zo=e=>{if(e&&Ao(e)&&Mt(e)){const{loadingDelay:t}=nt();let i;return typeof window<"u"&&He()!=null&&t?i=window.setTimeout(()=>Nt.set(!0),t):Nt.set(!0),es(e).then(()=>{Bt.set(e)}).finally(()=>{clearTimeout(i),Nt.set(!1)})}return Bt.set(e)},lt=jo(Go({},Bt),{set:zo}),Wt=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var Uo=Object.defineProperty,Ft=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable,on=(e,t,i)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ki=(e,t)=>{for(var i in t||(t={}))ts.call(t,i)&&on(e,i,t[i]);if(Ft)for(var i of Ft(t))is.call(t,i)&&on(e,i,t[i]);return e},at=(e,t)=>{var i={};for(var n in e)ts.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Ft)for(var n of Ft(e))t.indexOf(n)<0&&is.call(e,n)&&(i[n]=e[n]);return i};const Tt=(e,t)=>{const{formats:i}=nt();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ko=Wt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=Tt("number",n)),new Intl.NumberFormat(i,s)}),Jo=Wt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=Tt("date",n):Object.keys(s).length===0&&(s=Tt("date","short")),new Intl.DateTimeFormat(i,s)}),Wo=Wt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=Tt("time",n):Object.keys(s).length===0&&(s=Tt("time","short")),new Intl.DateTimeFormat(i,s)}),Xo=(e={})=>{var t=e,{locale:i=He()}=t,n=at(t,["locale"]);return Ko(ki({locale:i},n))},qo=(e={})=>{var t=e,{locale:i=He()}=t,n=at(t,["locale"]);return Jo(ki({locale:i},n))},Zo=(e={})=>{var t=e,{locale:i=He()}=t,n=at(t,["locale"]);return Wo(ki({locale:i},n))},Yo=Wt((e,t=He())=>new Yn(e,t,nt().formats,{ignoreTag:nt().ignoreTag})),Qo=(e,t={})=>{var i,n,s,r;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:d=He(),default:u}=o;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Qn(e,d);if(!c)c=(r=(s=(n=(i=nt()).handleMissingMessage)==null?void 0:n.call(i,{locale:d,id:e,defaultValue:u}))!=null?s:u)!=null?r: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(!l)return c;let _=c;try{_=Yo(c,d).format(l)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return _},el=(e,t)=>Zo(t).format(e),tl=(e,t)=>qo(t).format(e),il=(e,t)=>Xo(t).format(e),nl=(e,t=He())=>Qn(e,t),Ie=rt([lt,ot],()=>Qo);rt([lt],()=>el);rt([lt],()=>tl);rt([lt],()=>il);rt([lt,ot],()=>nl);var Xe=globalThis&&globalThis.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function l(c){try{u(n.next(c))}catch(_){o(_)}}function d(c){try{u(n.throw(c))}catch(_){o(_)}}function u(c){c.done?r(c.value):s(c.value).then(l,d)}u((n=n.apply(e,t||[])).next())})};const sl="https://localhost/api/v3".replace(/\/+$/,"");class ns{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:sl}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||ss}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:()=>Xe(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const rl=new ns;class Xt{constructor(t=rl){this.configuration=t,this.fetchApi=(i,n)=>Xe(this,void 0,void 0,function*(){let s={url:i,init:n};for(const o of this.middleware)o.pre&&(s=(yield o.pre(Object.assign({fetch:this.fetchApi},s)))||s);let r;try{r=yield(this.configuration.fetchApi||fetch)(s.url,s.init)}catch(o){for(const l of this.middleware)l.onError&&(r=(yield l.onError({fetch:this.fetchApi,url:s.url,init:s.init,error:o,response:r?r.clone():void 0}))||r);if(r===void 0)throw o instanceof Error?new ul(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(r=(yield o.post({fetch:this.fetchApi,url:s.url,init:s.init,response:r.clone()}))||r);return r}),this.middleware=t.middleware}withMiddleware(...t){const i=this.clone();return i.middleware=i.middleware.concat(...t),i}withPreMiddleware(...t){const i=t.map(n=>({pre:n}));return this.withMiddleware(...i)}withPostMiddleware(...t){const i=t.map(n=>({post:n}));return this.withMiddleware(...i)}isJsonMime(t){return t?Xt.jsonRegex.test(t):!1}request(t,i){return Xe(this,void 0,void 0,function*(){const{url:n,init:s}=yield this.createFetchParams(t,i),r=yield this.fetchApi(n,s);if(r&&r.status>=200&&r.status<300)return r;throw new al(r,"Response returned an error code")})}createFetchParams(t,i){return Xe(this,void 0,void 0,function*(){let n=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(t.query));const s=Object.assign({},this.configuration.headers,t.headers);Object.keys(s).forEach(u=>s[u]===void 0?delete s[u]:{});const r=typeof i=="function"?i:()=>Xe(this,void 0,void 0,function*(){return i}),o={method:t.method,headers:s,body:t.body,credentials:this.configuration.credentials},l=Object.assign(Object.assign({},o),yield r({init:o,context:t})),d=Object.assign(Object.assign({},l),{body:ll(l.body)||l.body instanceof URLSearchParams||ol(l.body)?l.body:JSON.stringify(l.body)});return{url:n,init:d}})}clone(){const t=this.constructor,i=new t(this.configuration);return i.middleware=this.middleware.slice(),i}}Xt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function ol(e){return typeof Blob<"u"&&e instanceof Blob}function ll(e){return typeof FormData<"u"&&e instanceof FormData}class al extends Error{constructor(t,i){super(i),this.response=t,this.name="ResponseError"}}class ul extends Error{constructor(t,i){super(i),this.cause=t,this.name="FetchError"}}class ln extends Error{constructor(t,i){super(i),this.field=t,this.name="RequiredError"}}function h(e,t){const i=e[t];return i!=null}function ss(e,t=""){return Object.keys(e).map(i=>rs(i,e[i],t)).filter(i=>i.length>0).join("&")}function rs(e,t,i=""){const n=i+(i.length?`[${e}]`:e);if(t instanceof Array){const s=t.map(r=>encodeURIComponent(String(r))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${s}`}if(t instanceof Set){const s=Array.from(t);return rs(e,s,i)}return t instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?ss(t,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(t))}`}class ue{constructor(t,i=n=>n){this.raw=t,this.transformer=i}value(){return Xe(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function dl(e){return cl(e)}function cl(e,t){return e==null?e:{departmentid:h(e,"departmentid")?e.departmentid:void 0,onlineStatus:h(e,"online_status")?e.online_status:void 0,presetStatus:h(e,"preset_status")?e.preset_status:void 0}}function _l(e){return fl(e)}function fl(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,username:h(e,"username")?e.username:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,roleid:h(e,"roleid")?e.roleid:void 0,departmentsStatuses:h(e,"departments_statuses")?e.departments_statuses.map(dl):void 0,twofa:h(e,"twofa")?e.twofa:void 0,lastPswdChange:h(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0}}function ml(e){return hl(e)}function hl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,status:h(e,"status")?e.status:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,rstatus:h(e,"rstatus")?e.rstatus:void 0,statusdatestarted:h(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:h(e,"chat_order")?e.chat_order:void 0}}function gl(e){return pl(e)}function pl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,onlineCode:h(e,"online_code")?e.online_code:void 0,offlineCode:h(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:h(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:h(e,"offline_code_css")?e.offline_code_css:void 0,provide:h(e,"provide")?e.provide:void 0,impressions:h(e,"impressions")?e.impressions:void 0,tickets:h(e,"tickets")?e.tickets:void 0,status:h(e,"status")?e.status:void 0,lastDisplayTime:h(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:h(e,"last_display_url")?e.last_display_url:void 0}}function De(e){return vl(e)}function vl(e,t){return e==null?e:{count:h(e,"count")?e.count:void 0}}function El(e){return yl(e)}function yl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,agentCount:h(e,"agent_count")?e.agent_count:void 0}}function bl(e){return Tl(e)}function Tl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,logid:h(e,"logid")?e.logid:void 0,line:h(e,"line")?e.line:void 0,filename:h(e,"filename")?e.filename:void 0,created:h(e,"created")?e.created:void 0,level:h(e,"level")?e.level:void 0,type:h(e,"type")?e.type:void 0,message:h(e,"message")?e.message:void 0,ip:h(e,"ip")?e.ip:void 0,groupid:h(e,"groupid")?e.groupid:void 0}}function Ll(e){return Al(e)}function Al(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,chats:h(e,"chats")?e.chats:void 0}}function wl(e){return Ol(e)}function Ol(e,t){return e==null?e:{name:h(e,"name")?e.name:void 0,code:h(e,"code")?e.code:void 0,engName:h(e,"eng_name")?e.eng_name:void 0,translated:h(e,"translated")?e.translated:void 0,isDefault:h(e,"is_default")?e.is_default:void 0,active:h(e,"active")?e.active:void 0,isCustom:h(e,"is_custom")?e.is_custom:void 0,isBuiltIn:h(e,"is_builtIn")?e.is_builtIn:void 0}}function Il(e){return Dl(e)}function Dl(e,t){return e==null?e:{codeName:h(e,"code_name")?e.code_name:void 0,name:h(e,"name")?e.name:void 0,description:h(e,"description")?e.description:void 0,active:h(e,"active")?e.active:void 0,help:h(e,"help")?e.help:void 0,multiple:h(e,"multiple")?e.multiple:void 0,configFile:h(e,"config_file")?e.config_file:void 0,price:h(e,"price")?e.price:void 0,legacyIntegration:h(e,"legacy_integration")?e.legacy_integration:void 0}}function ui(e){return Rl(e)}function Rl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,slaTicketId:h(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,departmentName:h(e,"department_name")?e.department_name:void 0,levelid:h(e,"levelid")?e.levelid:void 0,slaLevelName:h(e,"sla_level_name")?e.sla_level_name:void 0,sla:h(e,"sla")?e.sla:void 0,dateCreated:h(e,"date_created")?e.date_created:void 0,dateClosed:h(e,"date_closed")?e.date_closed:void 0,dateDue:h(e,"date_due")?e.date_due:void 0,slaLevelId:h(e,"sla_level_id")?e.sla_level_id:void 0,slaType:h(e,"sla_type")?new Date(e.sla_type):void 0,agentid:h(e,"agentid")?e.agentid:void 0,agentFirstname:h(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:h(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:h(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:h(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:h(e,"req_firstname")?e.req_firstname:void 0,reqLastname:h(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:h(e,"req_systemname")?e.req_systemname:void 0,reqContactName:h(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:h(e,"req_avatar_url")?e.req_avatar_url:void 0}}function an(e){return xl(e)}function xl(e,t){return e==null?e:{tagid:h(e,"tagid")?e.tagid:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,color:h(e,"color")?e.color:void 0,backgroundcolor:h(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:h(e,"is_public")?e.is_public:void 0}}function os(e){return Pl(e)}function Pl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,datecreated:h(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:h(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:h(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:h(e,"rorder")?e.rorder:void 0,datedue:h(e,"datedue")?new Date(e.datedue):void 0,datereopen:h(e,"datereopen")?new Date(e.datereopen):void 0,status:h(e,"status")?e.status:void 0,channelType:h(e,"channel_type")?e.channel_type:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,agentid:h(e,"agentid")?e.agentid:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,messagegroupsIn:h(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:h(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:h(e,"contactid")?e.contactid:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,phones:h(e,"phones")?e.phones:void 0,jobPosition:h(e,"job_position")?e.job_position:void 0,contactType:h(e,"contact_type")?e.contact_type:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,timeOffset:h(e,"time_offset")?e.time_offset:void 0,gender:h(e,"gender")?e.gender:void 0,levelid:h(e,"levelid")?e.levelid:void 0,groups:h(e,"groups")?e.groups:void 0,contactStatus:h(e,"contact_status")?e.contact_status:void 0,company:h(e,"company")?e.company:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,userid:h(e,"userid")?e.userid:void 0,roleid:h(e,"roleid")?e.roleid:void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0,accountuserstatus:h(e,"accountuserstatus")?e.accountuserstatus:void 0,description:h(e,"description")?e.description:void 0,note:h(e,"note")?e.note:void 0,lastActivity:h(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:h(e,"tagnames")?e.tagnames:void 0,groupnames:h(e,"groupnames")?e.groupnames:void 0}}function kl(e){return Cl(e)}function Cl(e,t){return e==null?e:{cursor:h(e,"cursor")?e.cursor:void 0,rows:h(e,"rows")?e.rows.map(os):void 0}}function $l(e){return Sl(e)}function Sl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,agentid:h(e,"agentid")?e.agentid:void 0,agent:h(e,"agent")?e.agent:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,ticket:h(e,"ticket")?e.ticket:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,company:h(e,"company")?e.company:void 0,contactid:h(e,"contactid")?e.contactid:void 0,customer:h(e,"customer")?e.customer:void 0,customerFirstname:h(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:h(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:h(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:h(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:h(e,"reportdate")?e.reportdate:void 0,reportedtime:h(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:h(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:h(e,"spenttime")?e.spenttime:void 0,dateinvoiced:h(e,"dateinvoiced")?e.dateinvoiced:void 0,note:h(e,"note")?e.note:void 0,type:h(e,"type")?e.type:void 0}}var B=globalThis&&globalThis.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function l(c){try{u(n.next(c))}catch(_){o(_)}}function d(c){try{u(n.throw(c))}catch(_){o(_)}}function u(c){c.done?r(c.value):s(c.value).then(l,d)}u((n=n.apply(e,t||[])).next())})};class qt extends Xt{getAgentsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/agents",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(_l))})}getAgentsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,i)).value()})}getAgentsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/agents/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getAgentsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,i)).value()})}getCallsSlaLogGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/calls/sla",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(ui))})}getCallsSlaLogGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,i)).value()})}getCallsSlaLogGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getCallsSlaLogGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,i)).value()})}getChatsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(ml))})}getChatsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,i)).value()})}getChatsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getChatsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,i)).value()})}getChatsSlaLogGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats/sla",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(ui))})}getChatsSlaLogGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,i)).value()})}getChatsSlaLogGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getChatsSlaLogGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,i)).value()})}getContactWidgetsCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getContactWidgetsCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,i)).value()})}getContactWidgetsListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(gl))})}getContactWidgetsList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,i)).value()})}getCustomerGroupsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/customer_groups",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(an))})}getCustomerGroupsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,i)).value()})}getDepartmensGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/departments/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getDepartmensGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,i)).value()})}getDepartmentsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/departments",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(El))})}getDepartmentsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,i)).value()})}getEventLogsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/eventlogs",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(bl))})}getEventLogsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,i)).value()})}getEventLogsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getEventLogsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,i)).value()})}getInviteAgentsGridListRaw(t,i){return B(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new ln("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(Ll))})}getInviteAgentsGridList(t,i){return B(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,i)).value()})}getLanguagesGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/languages",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(wl))})}getLanguagesGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,i)).value()})}getLanguagesGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/languages/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getLanguagesGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,i)).value()})}getPlugindGridListRaw(t,i){return B(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new ln("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.pluginPurpose!==void 0&&(n.pluginPurpose=t.pluginPurpose);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/plugins",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(Il))})}getPlugindGridList(t,i){return B(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,i)).value()})}getTagsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tags",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(an))})}getTagsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,i)).value()})}getTicketsGridDatasetRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets_new",method:"GET",headers:s,query:n},i);return new ue(r,o=>kl(o))})}getTicketsGridDataset(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,i)).value()})}getTicketsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(os))})}getTicketsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,i)).value()})}getTicketsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getTicketsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,i)).value()})}getTicketsSlaLogGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map(ui))})}getTicketsSlaLogGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,i)).value()})}getTicketsSlaLogGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getTicketsSlaLogGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,i)).value()})}getTimeReportsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.sortField!==void 0&&(n._sortField=t.sortField),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/reports/time",method:"GET",headers:s,query:n},i);return new ue(r,o=>o.map($l))})}getTimeReportsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,i)).value()})}getTimeReportsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:s,query:n},i);return new ue(r,o=>De(o))})}getTimeReportsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,i)).value()})}}const un={Asc:"ASC",Desc:"DESC"},Ke={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"},Vl={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"};class Nl{constructor(){pe(this,"filter",Oe(""));pe(this,"loading",Oe(!1));pe(this,"loaded",Oe(!1));pe(this,"data",Oe([]));pe(this,"error",Oe(""));pe(this,"cursor",Oe(""));pe(this,"direction",Oe(!0));pe(this,"sort",Oe(Vl.Rorder))}getFilter(){return this.filter}getLoading(){return this.loading}getLoaded(){return this.loaded}getData(){return this.data}getError(){return this.error}getCursor(){return this.cursor}getDirection(){return this.direction}getSort(){return this.sort}}const ls=(e,t,i)=>{if(Rn(e))return zt(e);const n=t(i);return Ii(e,n),n},Hl=(e,t)=>Rn(e)?zt(e):(Ii(e,t),t),ut=(e,t)=>ls(e,Oe,t),Ml=(e,t)=>ls(e,Cn,t),Zt=()=>ut("allTicketsSelected",!1),Yt=()=>ut("selectionMap",[]),Ci=()=>ut("ticketsCount",0),Bl=e=>Ml("apiConfig",e),Qt=()=>zt("apiConfig"),Fe=()=>Hl("ticketsData",new Nl),as=()=>ut("tags",{}),us=()=>ut("groups",new Map),$i=()=>ut("currentFilter",{value:"Datedue",label:"Importance",sort:Ke.Datedue,dir:!1}),dn=["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 Fl(e){if(e!=null&&e.trim()!=""){const t=e.trim();if(dn.find(s=>s===t)!=null)return t;const i=t.substring(0,2),n=dn.find(s=>s.substring(0,2)===i);if(n!=null)return n}return null}var ds={exports:{}};(function(e,t){(function(i,n){e.exports=n()})($n,function(){var i=1e3,n=6e4,s=36e5,r="millisecond",o="second",l="minute",d="hour",u="day",c="week",_="month",f="quarter",m="year",g="date",v="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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(R){var k=["th","st","nd","rd"],b=R%100;return"["+R+(k[(b-20)%10]||k[b]||k[0])+"]"}},T=function(R,k,b){var V=String(R);return!V||V.length>=k?R:""+Array(k+1-V.length).join(b)+R},A={s:T,z:function(R){var k=-R.utcOffset(),b=Math.abs(k),V=Math.floor(b/60),P=b%60;return(k<=0?"+":"-")+T(V,2,"0")+":"+T(P,2,"0")},m:function R(k,b){if(k.date()<b.date())return-R(b,k);var V=12*(b.year()-k.year())+(b.month()-k.month()),P=k.clone().add(V,_),j=b-P<0,U=k.clone().add(V+(j?-1:1),_);return+(-(V+(b-P)/(j?P-U:U-P))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:_,y:m,w:c,d:u,D:g,h:d,m:l,s:o,ms:r,Q:f}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},O="en",N={};N[O]=E;var he="$isDayjsObject",z=function(R){return R instanceof ve||!(!R||!R[he])},ne=function R(k,b,V){var P;if(!k)return O;if(typeof k=="string"){var j=k.toLowerCase();N[j]&&(P=j),b&&(N[j]=b,P=j);var U=k.split("-");if(!P&&U.length>1)return R(U[0])}else{var Z=k.name;N[Z]=k,P=Z}return!V&&P&&(O=P),P||!V&&O},ie=function(R,k){if(z(R))return R.clone();var b=typeof k=="object"?k:{};return b.date=R,b.args=arguments,new ve(b)},W=A;W.l=ne,W.i=z,W.w=function(R,k){return ie(R,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var ve=function(){function R(b){this.$L=ne(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[he]=!0}var k=R.prototype;return k.parse=function(b){this.$d=function(V){var P=V.date,j=V.utc;if(P===null)return new Date(NaN);if(W.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var U=P.match(L);if(U){var Z=U[2]-1||0,de=(U[7]||"0").substring(0,3);return j?new Date(Date.UTC(U[1],Z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,de)):new Date(U[1],Z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,de)}}return new Date(P)}(b),this.init()},k.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},k.$utils=function(){return W},k.isValid=function(){return this.$d.toString()!==v},k.isSame=function(b,V){var P=ie(b);return this.startOf(V)<=P&&P<=this.endOf(V)},k.isAfter=function(b,V){return ie(b)<this.startOf(V)},k.isBefore=function(b,V){return this.endOf(V)<ie(b)},k.$g=function(b,V,P){return W.u(b)?this[V]:this.set(P,b)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(b,V){var P=this,j=!!W.u(V)||V,U=W.p(b),Z=function(xe,ye){var $e=W.w(P.$u?Date.UTC(P.$y,ye,xe):new Date(P.$y,ye,xe),P);return j?$e:$e.endOf(u)},de=function(xe,ye){return W.w(P.toDate()[xe].apply(P.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(ye)),P)},ge=this.$W,fe=this.$M,ce=this.$D,J="set"+(this.$u?"UTC":"");switch(U){case m:return j?Z(1,0):Z(31,11);case _:return j?Z(1,fe):Z(0,fe+1);case c:var ae=this.$locale().weekStart||0,Ce=(ge<ae?ge+7:ge)-ae;return Z(j?ce-Ce:ce+(6-Ce),fe);case u:case g:return de(J+"Hours",0);case d:return de(J+"Minutes",1);case l:return de(J+"Seconds",2);case o:return de(J+"Milliseconds",3);default:return this.clone()}},k.endOf=function(b){return this.startOf(b,!1)},k.$set=function(b,V){var P,j=W.p(b),U="set"+(this.$u?"UTC":""),Z=(P={},P[u]=U+"Date",P[g]=U+"Date",P[_]=U+"Month",P[m]=U+"FullYear",P[d]=U+"Hours",P[l]=U+"Minutes",P[o]=U+"Seconds",P[r]=U+"Milliseconds",P)[j],de=j===u?this.$D+(V-this.$W):V;if(j===_||j===m){var ge=this.clone().set(g,1);ge.$d[Z](de),ge.init(),this.$d=ge.set(g,Math.min(this.$D,ge.daysInMonth())).$d}else Z&&this.$d[Z](de);return this.init(),this},k.set=function(b,V){return this.clone().$set(b,V)},k.get=function(b){return this[W.p(b)]()},k.add=function(b,V){var P,j=this;b=Number(b);var U=W.p(V),Z=function(fe){var ce=ie(j);return W.w(ce.date(ce.date()+Math.round(fe*b)),j)};if(U===_)return this.set(_,this.$M+b);if(U===m)return this.set(m,this.$y+b);if(U===u)return Z(1);if(U===c)return Z(7);var de=(P={},P[l]=n,P[d]=s,P[o]=i,P)[U]||1,ge=this.$d.getTime()+b*de;return W.w(ge,this)},k.subtract=function(b,V){return this.add(-1*b,V)},k.format=function(b){var V=this,P=this.$locale();if(!this.isValid())return P.invalidDate||v;var j=b||"YYYY-MM-DDTHH:mm:ssZ",U=W.z(this),Z=this.$H,de=this.$m,ge=this.$M,fe=P.weekdays,ce=P.months,J=P.meridiem,ae=function(ye,$e,ct,Pt){return ye&&(ye[$e]||ye(V,j))||ct[$e].slice(0,Pt)},Ce=function(ye){return W.s(Z%12||12,ye,"0")},xe=J||function(ye,$e,ct){var Pt=ye<12?"AM":"PM";return ct?Pt.toLowerCase():Pt};return j.replace(p,function(ye,$e){return $e||function(ct){switch(ct){case"YY":return String(V.$y).slice(-2);case"YYYY":return W.s(V.$y,4,"0");case"M":return ge+1;case"MM":return W.s(ge+1,2,"0");case"MMM":return ae(P.monthsShort,ge,ce,3);case"MMMM":return ae(ce,ge);case"D":return V.$D;case"DD":return W.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return ae(P.weekdaysMin,V.$W,fe,2);case"ddd":return ae(P.weekdaysShort,V.$W,fe,3);case"dddd":return fe[V.$W];case"H":return String(Z);case"HH":return W.s(Z,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return xe(Z,de,!0);case"A":return xe(Z,de,!1);case"m":return String(de);case"mm":return W.s(de,2,"0");case"s":return String(V.$s);case"ss":return W.s(V.$s,2,"0");case"SSS":return W.s(V.$ms,3,"0");case"Z":return U}return null}(ye)||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(b,V,P){var j,U=this,Z=W.p(V),de=ie(b),ge=(de.utcOffset()-this.utcOffset())*n,fe=this-de,ce=function(){return W.m(U,de)};switch(Z){case m:j=ce()/12;break;case _:j=ce();break;case f:j=ce()/3;break;case c:j=(fe-ge)/6048e5;break;case u:j=(fe-ge)/864e5;break;case d:j=fe/s;break;case l:j=fe/n;break;case o:j=fe/i;break;default:j=fe}return P?j:W.a(j)},k.daysInMonth=function(){return this.endOf(_).$D},k.$locale=function(){return N[this.$L]},k.locale=function(b,V){if(!b)return this.$L;var P=this.clone(),j=ne(b,V,!0);return j&&(P.$L=j),P},k.clone=function(){return W.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},R}(),Le=ve.prototype;return ie.prototype=Le,[["$ms",r],["$s",o],["$m",l],["$H",d],["$W",u],["$M",_],["$y",m],["$D",g]].forEach(function(R){Le[R[1]]=function(k){return this.$g(k,R[0],R[1])}}),ie.extend=function(R,k){return R.$i||(R(k,ve,ie),R.$i=!0),ie},ie.locale=ne,ie.isDayjs=z,ie.unix=function(R){return ie(1e3*R)},ie.en=N[O],ie.Ls=N,ie.p={},ie})})(ds);var Gl=ds.exports;const qe=Ut(Gl);var cs={exports:{}};(function(e,t){(function(i,n){e.exports=n()})($n,function(){return function(i,n,s){i=i||{};var r=n.prototype,o={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 l(u,c,_,f){return r.fromToBase(u,c,_,f)}s.en.relativeTime=o,r.fromToBase=function(u,c,_,f,m){for(var g,v,L,p=_.$locale().relativeTime||o,E=i.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"}],T=E.length,A=0;A<T;A+=1){var O=E[A];O.d&&(g=f?s(u).diff(_,O.d,!0):_.diff(u,O.d,!0));var N=(i.rounding||Math.round)(Math.abs(g));if(L=g>0,N<=O.r||!O.r){N<=1&&A>0&&(O=E[A-1]);var he=p[O.l];m&&(N=m(""+N)),v=typeof he=="string"?he.replace("%d",N):he(N,c,O.l,L);break}}if(c)return v;var z=L?p.future:p.past;return typeof z=="function"?z(v):z.replace("%s",v)},r.to=function(u,c){return l(u,c,this,!0)},r.from=function(u,c){return l(u,c,this)};var d=function(u){return u.$u?s.utc():s()};r.toNow=function(u){return this.to(d(this),u)},r.fromNow=function(u){return this.from(d(this),u)}}})})(cs);var jl=cs.exports;const zl=Ut(jl);qe.extend(zl);function Ul(e){let t,i,n=[{title:e[2]},e[3],{datetime:e[1]}],s={};for(let r=0;r<n.length;r+=1)s=Et(s,n[r]);return{c(){t=x("time"),i=Q(e[0]),Gi(t,s)},m(r,o){S(r,t,o),I(t,i)},p(r,[o]){o&1&&Qs(i,r[0],s.contenteditable),Gi(t,s=Pn(n,[o&4&&{title:r[2]},o&8&&r[3],o&2&&{datetime:r[1]}]))},i:X,o:X,d(r){r&&$(t)}}}function Kl(e,t,i){let n;const s=["timestamp","format","relative","live","formatted"];let r=Fi(t,s),{timestamp:o=new Date().toISOString()}=t,{format:l="MMM DD, YYYY"}=t,{relative:d=!1}=t,{live:u=!1}=t,{formatted:c=""}=t,_;const f=60*1e3;return Rt(()=>()=>clearInterval(_)),e.$$set=m=>{t=Et(Et({},t),Us(m)),i(3,r=Fi(t,s)),"timestamp"in m&&i(1,o=m.timestamp),"format"in m&&i(4,l=m.format),"relative"in m&&i(5,d=m.relative),"live"in m&&i(6,u=m.live),"formatted"in m&&i(0,c=m.formatted)},e.$$.update=()=>{e.$$.dirty&98&&d&&u!==!1&&(_=setInterval(()=>{i(0,c=qe(o).from())},Math.abs(typeof u=="number"?u:f))),e.$$.dirty&50&&i(0,c=d?qe(o).from():qe(o).format(l)),e.$$.dirty&50&&i(2,n=d?qe(o).format(l):void 0)},[c,o,n,r,l,d,u]}class Si extends oe{constructor(t){super(),se(this,t,Kl,Ul,te,{timestamp:1,format:4,relative:5,live:6,formatted:0})}get timestamp(){return this.$$.ctx[1]}set timestamp(t){this.$$set({timestamp:t}),C()}get format(){return this.$$.ctx[4]}set format(t){this.$$set({format:t}),C()}get relative(){return this.$$.ctx[5]}set relative(t){this.$$set({relative:t}),C()}get live(){return this.$$.ctx[6]}set live(t){this.$$set({live:t}),C()}get formatted(){return this.$$.ctx[0]}set formatted(t){this.$$set({formatted:t}),C()}}re(Si,{timestamp:{},format:{},relative:{type:"Boolean"},live:{type:"Boolean"},formatted:{}},[],[],!0);const pt="en-US",cn="S",_s="N",fs="C",Ti="D",Jl="A";let Be,vt=pt;function Wl(e,t,i){if(Be!==void 0)return;Be=e;let n={fallbackLocale:pt};en(pt,t);const s=Fl(Be.locale);s!==null&&s!==pt&&(vt=s,n.initialLocale=vt,en(vt,i)),Vo(n)}function Xl(e){const t=e.substring(0,2).toLowerCase();if(t==="en")return;const i="/node_modules/dayjs/esm/locale/"+t+".js",n=Object.assign({"/node_modules/dayjs/esm/locale/af.js":()=>a(()=>import("./af.js"),["assets/af.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/am.js":()=>a(()=>import("./am.js"),["assets/am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-dz.js":()=>a(()=>import("./ar-dz.js"),["assets/ar-dz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-iq.js":()=>a(()=>import("./ar-iq.js"),["assets/ar-iq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-kw.js":()=>a(()=>import("./ar-kw.js"),["assets/ar-kw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ly.js":()=>a(()=>import("./ar-ly.js"),["assets/ar-ly.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ma.js":()=>a(()=>import("./ar-ma.js"),["assets/ar-ma.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-sa.js":()=>a(()=>import("./ar-sa.js"),["assets/ar-sa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-tn.js":()=>a(()=>import("./ar-tn.js"),["assets/ar-tn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar.js":()=>a(()=>import("./ar.js"),["assets/ar.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/az.js":()=>a(()=>import("./az.js"),["assets/az.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/be.js":()=>a(()=>import("./be.js"),["assets/be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bg.js":()=>a(()=>import("./bg.js"),["assets/bg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bi.js":()=>a(()=>import("./bi.js"),["assets/bi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bm.js":()=>a(()=>import("./bm.js"),["assets/bm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn-bd.js":()=>a(()=>import("./bn-bd.js"),["assets/bn-bd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn.js":()=>a(()=>import("./bn.js"),["assets/bn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bo.js":()=>a(()=>import("./bo.js"),["assets/bo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/br.js":()=>a(()=>import("./br.js"),["assets/br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bs.js":()=>a(()=>import("./bs.js"),["assets/bs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ca.js":()=>a(()=>import("./ca.js"),["assets/ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cs.js":()=>a(()=>import("./cs.js"),["assets/cs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cv.js":()=>a(()=>import("./cv.js"),["assets/cv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cy.js":()=>a(()=>import("./cy.js"),["assets/cy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/da.js":()=>a(()=>import("./da.js"),["assets/da.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-at.js":()=>a(()=>import("./de-at.js"),["assets/de-at.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-ch.js":()=>a(()=>import("./de-ch.js"),["assets/de-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de.js":()=>a(()=>import("./de.js"),["assets/de.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/dv.js":()=>a(()=>import("./dv.js"),["assets/dv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/el.js":()=>a(()=>import("./el.js"),["assets/el.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-au.js":()=>a(()=>import("./en-au.js"),["assets/en-au.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ca.js":()=>a(()=>import("./en-ca.js"),["assets/en-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-gb.js":()=>a(()=>import("./en-gb.js"),["assets/en-gb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ie.js":()=>a(()=>import("./en-ie.js"),["assets/en-ie.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-il.js":()=>a(()=>import("./en-il.js"),["assets/en-il.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-in.js":()=>a(()=>import("./en-in.js"),["assets/en-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-nz.js":()=>a(()=>import("./en-nz.js"),["assets/en-nz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-sg.js":()=>a(()=>import("./en-sg.js"),["assets/en-sg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-tt.js":()=>a(()=>import("./en-tt.js"),["assets/en-tt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en.js":()=>a(()=>import("./en.js"),[]),"/node_modules/dayjs/esm/locale/eo.js":()=>a(()=>import("./eo.js"),["assets/eo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-do.js":()=>a(()=>import("./es-do.js"),["assets/es-do.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-mx.js":()=>a(()=>import("./es-mx.js"),["assets/es-mx.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-pr.js":()=>a(()=>import("./es-pr.js"),["assets/es-pr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-us.js":()=>a(()=>import("./es-us.js"),["assets/es-us.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es.js":()=>a(()=>import("./es.js"),["assets/es.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/et.js":()=>a(()=>import("./et.js"),["assets/et.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/eu.js":()=>a(()=>import("./eu.js"),["assets/eu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fa.js":()=>a(()=>import("./fa.js"),["assets/fa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fi.js":()=>a(()=>import("./fi.js"),["assets/fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fo.js":()=>a(()=>import("./fo.js"),["assets/fo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ca.js":()=>a(()=>import("./fr-ca.js"),["assets/fr-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ch.js":()=>a(()=>import("./fr-ch.js"),["assets/fr-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr.js":()=>a(()=>import("./fr.js"),["assets/fr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fy.js":()=>a(()=>import("./fy.js"),["assets/fy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ga.js":()=>a(()=>import("./ga.js"),["assets/ga.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gd.js":()=>a(()=>import("./gd.js"),["assets/gd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gl.js":()=>a(()=>import("./gl.js"),["assets/gl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gom-latn.js":()=>a(()=>import("./gom-latn.js"),["assets/gom-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gu.js":()=>a(()=>import("./gu.js"),["assets/gu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/he.js":()=>a(()=>import("./he.js"),["assets/he.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hi.js":()=>a(()=>import("./hi.js"),["assets/hi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hr.js":()=>a(()=>import("./hr.js"),["assets/hr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ht.js":()=>a(()=>import("./ht.js"),["assets/ht.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hu.js":()=>a(()=>import("./hu.js"),["assets/hu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hy-am.js":()=>a(()=>import("./hy-am.js"),["assets/hy-am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/id.js":()=>a(()=>import("./id.js"),["assets/id.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/is.js":()=>a(()=>import("./is.js"),["assets/is.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it-ch.js":()=>a(()=>import("./it-ch.js"),["assets/it-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it.js":()=>a(()=>import("./it.js"),["assets/it.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ja.js":()=>a(()=>import("./ja.js"),["assets/ja.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/jv.js":()=>a(()=>import("./jv.js"),["assets/jv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ka.js":()=>a(()=>import("./ka.js"),["assets/ka.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kk.js":()=>a(()=>import("./kk.js"),["assets/kk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/km.js":()=>a(()=>import("./km.js"),["assets/km.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kn.js":()=>a(()=>import("./kn.js"),["assets/kn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ko.js":()=>a(()=>import("./ko.js"),["assets/ko.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ku.js":()=>a(()=>import("./ku.js"),["assets/ku.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ky.js":()=>a(()=>import("./ky.js"),["assets/ky.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lb.js":()=>a(()=>import("./lb.js"),["assets/lb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lo.js":()=>a(()=>import("./lo.js"),["assets/lo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lt.js":()=>a(()=>import("./lt.js"),["assets/lt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lv.js":()=>a(()=>import("./lv.js"),["assets/lv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/me.js":()=>a(()=>import("./me.js"),["assets/me.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mi.js":()=>a(()=>import("./mi.js"),["assets/mi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mk.js":()=>a(()=>import("./mk.js"),["assets/mk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ml.js":()=>a(()=>import("./ml.js"),["assets/ml.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mn.js":()=>a(()=>import("./mn.js"),["assets/mn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mr.js":()=>a(()=>import("./mr.js"),["assets/mr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms-my.js":()=>a(()=>import("./ms-my.js"),["assets/ms-my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms.js":()=>a(()=>import("./ms.js"),["assets/ms.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mt.js":()=>a(()=>import("./mt.js"),["assets/mt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/my.js":()=>a(()=>import("./my.js"),["assets/my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nb.js":()=>a(()=>import("./nb.js"),["assets/nb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ne.js":()=>a(()=>import("./ne.js"),["assets/ne.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl-be.js":()=>a(()=>import("./nl-be.js"),["assets/nl-be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl.js":()=>a(()=>import("./nl.js"),["assets/nl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nn.js":()=>a(()=>import("./nn.js"),["assets/nn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/oc-lnc.js":()=>a(()=>import("./oc-lnc.js"),["assets/oc-lnc.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pa-in.js":()=>a(()=>import("./pa-in.js"),["assets/pa-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pl.js":()=>a(()=>import("./pl.js"),["assets/pl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt-br.js":()=>a(()=>import("./pt-br.js"),["assets/pt-br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt.js":()=>a(()=>import("./pt.js"),["assets/pt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rn.js":()=>a(()=>import("./rn.js"),["assets/rn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ro.js":()=>a(()=>import("./ro.js"),["assets/ro.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ru.js":()=>a(()=>import("./ru.js"),["assets/ru.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rw.js":()=>a(()=>import("./rw.js"),["assets/rw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sd.js":()=>a(()=>import("./sd.js"),["assets/sd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/se.js":()=>a(()=>import("./se.js"),["assets/se.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/si.js":()=>a(()=>import("./si.js"),["assets/si.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sk.js":()=>a(()=>import("./sk.js"),["assets/sk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sl.js":()=>a(()=>import("./sl.js"),["assets/sl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sq.js":()=>a(()=>import("./sq.js"),["assets/sq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr-cyrl.js":()=>a(()=>import("./sr-cyrl.js"),["assets/sr-cyrl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr.js":()=>a(()=>import("./sr.js"),["assets/sr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ss.js":()=>a(()=>import("./ss.js"),["assets/ss.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv-fi.js":()=>a(()=>import("./sv-fi.js"),["assets/sv-fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv.js":()=>a(()=>import("./sv.js"),["assets/sv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sw.js":()=>a(()=>import("./sw.js"),["assets/sw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ta.js":()=>a(()=>import("./ta.js"),["assets/ta.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/te.js":()=>a(()=>import("./te.js"),["assets/te.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tet.js":()=>a(()=>import("./tet.js"),["assets/tet.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tg.js":()=>a(()=>import("./tg.js"),["assets/tg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/th.js":()=>a(()=>import("./th.js"),["assets/th.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tk.js":()=>a(()=>import("./tk.js"),["assets/tk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tl-ph.js":()=>a(()=>import("./tl-ph.js"),["assets/tl-ph.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tlh.js":()=>a(()=>import("./tlh.js"),["assets/tlh.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tr.js":()=>a(()=>import("./tr.js"),["assets/tr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzl.js":()=>a(()=>import("./tzl.js"),["assets/tzl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm-latn.js":()=>a(()=>import("./tzm-latn.js"),["assets/tzm-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm.js":()=>a(()=>import("./tzm.js"),["assets/tzm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ug-cn.js":()=>a(()=>import("./ug-cn.js"),["assets/ug-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uk.js":()=>a(()=>import("./uk.js"),["assets/uk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ur.js":()=>a(()=>import("./ur.js"),["assets/ur.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz-latn.js":()=>a(()=>import("./uz-latn.js"),["assets/uz-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz.js":()=>a(()=>import("./uz.js"),["assets/uz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/vi.js":()=>a(()=>import("./vi.js"),["assets/vi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/x-pseudo.js":()=>a(()=>import("./x-pseudo.js"),["assets/x-pseudo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/yo.js":()=>a(()=>import("./yo.js"),["assets/yo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-cn.js":()=>a(()=>import("./zh-cn.js"),["assets/zh-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-hk.js":()=>a(()=>import("./zh-hk.js"),["assets/zh-hk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-tw.js":()=>a(()=>import("./zh-tw.js"),["assets/zh-tw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh.js":()=>a(()=>import("./zh.js"),["assets/zh.js","assets/index2.js","assets/en.js"])});n[i]&&n[i]().then(s=>{qe.locale(s.default)})}function ql(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function ze(e){return ql(new Date(e))}function Zl(){return Be.dateFormat.toUpperCase()}function Yl(){return Be.timeFormat}function ms(){return Zl()+" "+Yl()}function Ze(e){return Ql(e,2)}function Ql(e,t){let i="";return ia(t).formatToParts(e).forEach(n=>{n.type==="group"?i+=ea():n.type==="decimal"?i+=ta():i+=n.value}),i}function ea(){let e=Be.thousandsSeparator;switch(e==null&&(e=cn),e){case fs:return",";case cn:return" ";case Ti:return".";case Jl:return"'";case _s:case"":return" ";default:return e}}function ta(){let e=Be.decimalSeparator;switch(e==null&&(e=Ti),e){case fs:return",";case _s:case Ti:return".";default:return e}}function ia(e){return new Intl.NumberFormat(vt,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function na(e){_e(e,"svelte-1u37lur","button.svelte-1u37lur{padding:10px;margin:5px;border:none;border-radius:4px;background:none;cursor:pointer}.button-secondary.svelte-1u37lur{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 20px;color:var(--main-textcolor);border:1px solid var(--menu-hover-bg)}.button-small.svelte-1u37lur{padding:0 4px}.borderless.svelte-1u37lur{border:none;padding:2px 0}")}function sa(e){let t,i,n,s,r;const o=e[4].default,l=Lt(o,e,e[3],null);return{c(){t=x("button"),l&&l.c(),y(t,"class",i=Ee(e[0])+" svelte-1u37lur")},m(d,u){S(d,t,u),l&&l.m(t,null),n=!0,s||(r=we(t,"click",e[1]),s=!0)},p(d,[u]){l&&l.p&&(!n||u&8)&&wt(l,o,d,d[3],n?At(o,d[3],u,null):Ot(d[3]),null),(!n||u&1&&i!==(i=Ee(d[0])+" svelte-1u37lur"))&&y(t,"class",i)},i(d){n||(w(l,d),n=!0)},o(d){D(l,d),n=!1},d(d){d&&$(t),l&&l.d(d),s=!1,r()}}}function ra(e,t,i){let{$$slots:n={},$$scope:s}=t,{onAction:r=d=>{}}=t,{className:o=""}=t;function l(d){r(d)}return e.$$set=d=>{"onAction"in d&&i(2,r=d.onAction),"className"in d&&i(0,o=d.className),"$$scope"in d&&i(3,s=d.$$scope)},[o,l,r,s,n]}class Gt extends oe{constructor(t){super(),se(this,t,ra,sa,te,{onAction:2,className:0},na)}get onAction(){return this.$$.ctx[2]}set onAction(t){this.$$set({onAction:t}),C()}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),C()}}re(Gt,{onAction:{},className:{}},["default"],[],!0);function oa(e){_e(e,"svelte-kc7zi0",".Counter.svelte-kc7zi0{display:none}.Selection.svelte-kc7zi0{color:var(--ticket-selected-textcolor);background-color:var(--ticket-background-selected);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:12px;box-sizing:border-box}.text.svelte-kc7zi0{color:var(--main-lighter-textcolor);font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-kc7zi0{color:var(--main-lighter-textcolor);font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px}@media(min-width: 768px){.Counter.svelte-kc7zi0{display:flex;align-items:center}}")}function la(e){let t,i=e[4]("Displaying %count of %allCount",{values:{count:Ze(e[6].length),allCount:Ze(e[0])}})+"",n;return{c(){t=x("span"),n=Q(i),y(t,"class","text svelte-kc7zi0")},m(s,r){S(s,t,r),I(t,n)},p(s,r){r&81&&i!==(i=s[4]("Displaying %count of %allCount",{values:{count:Ze(s[6].length),allCount:Ze(s[0])}})+"")&&le(n,i)},i:X,o:X,d(s){s&&$(t)}}}function aa(e){let t,i=e[4]("Displaying %count of",{values:{count:Ze(e[6].length)}})+"",n,s,r,o;return r=new Gt({props:{onAction:e[13],className:"button-secondary button-small "+(e[1]?"borderless":""),$$slots:{default:[_a]},$$scope:{ctx:e}}}),{c(){t=x("span"),n=Q(i),s=K(),F(r.$$.fragment),y(t,"class","text svelte-kc7zi0")},m(l,d){S(l,t,d),I(t,n),S(l,s,d),H(r,l,d),o=!0},p(l,d){(!o||d&80)&&i!==(i=l[4]("Displaying %count of",{values:{count:Ze(l[6].length)}})+"")&&le(n,i);const u={};d&2&&(u.className="button-secondary button-small "+(l[1]?"borderless":"")),d&262162&&(u.$$scope={dirty:d,ctx:l}),r.$set(u)},i(l){o||(w(r.$$.fragment,l),o=!0)},o(l){D(r.$$.fragment,l),o=!1},d(l){l&&($(t),$(s)),M(r,l)}}}function ua(e){let t,i=e[4]("Loading...")+"",n;return{c(){t=x("span"),n=Q(i),y(t,"class","text svelte-kc7zi0")},m(s,r){S(s,t,r),I(t,n)},p(s,r){r&16&&i!==(i=s[4]("Loading...")+"")&&le(n,i)},i:X,o:X,d(s){s&&$(t)}}}function da(e){let t,i=e[4]("%pCount rows selected",{values:{pCount:e[3].length}})+"",n;return{c(){t=x("span"),n=Q(i),y(t,"class","Selection svelte-kc7zi0")},m(s,r){S(s,t,r),I(t,n)},p(s,r){r&24&&i!==(i=s[4]("%pCount rows selected",{values:{pCount:s[3].length}})+"")&&le(n,i)},i:X,o:X,d(s){s&&$(t)}}}function ca(e){let t;function i(r,o){return r[3].length===0?ma:fa}let n=i(e),s=n(e);return{c(){t=x("span"),s.c(),y(t,"class","Selection svelte-kc7zi0")},m(r,o){S(r,t,o),s.m(t,null)},p(r,o){n===(n=i(r))&&s?s.p(r,o):(s.d(1),s=n(r),s&&(s.c(),s.m(t,null)))},i:X,o:X,d(r){r&&$(t),s.d()}}}function _a(e){let t,i=(e[1]?e[4]("Loading..."):e[4]("many"))+"",n;return{c(){t=x("span"),n=Q(i),y(t,"class","many svelte-kc7zi0")},m(s,r){S(s,t,r),I(t,n)},p(s,r){r&18&&i!==(i=(s[1]?s[4]("Loading..."):s[4]("many"))+"")&&le(n,i)},d(s){s&&$(t)}}}function fa(e){let t=e[4]("all rows selected except %pCount rows",{values:{pCount:e[3].length}})+"",i;return{c(){i=Q(t)},m(n,s){S(n,i,s)},p(n,s){s&24&&t!==(t=n[4]("all rows selected except %pCount rows",{values:{pCount:n[3].length}})+"")&&le(i,t)},d(n){n&&$(i)}}}function ma(e){let t=e[4]("all rows selected")+"",i;return{c(){i=Q(t)},m(n,s){S(n,i,s)},p(n,s){s&16&&t!==(t=n[4]("all rows selected")+"")&&le(i,t)},d(n){n&&$(i)}}}function ha(e){let t,i,n,s;const r=[ca,da,ua,aa,la],o=[];function l(d,u){return d[2]?0:d[3].length>0?1:d[5]?2:d[0]==null?3:4}return i=l(e),n=o[i]=r[i](e),{c(){t=x("div"),n.c(),y(t,"class","Counter svelte-kc7zi0")},m(d,u){S(d,t,u),o[i].m(t,null),s=!0},p(d,[u]){let c=i;i=l(d),i===c?o[i].p(d,u):(be(),D(o[c],1,1,()=>{o[c]=null}),Te(),n=o[i],n?n.p(d,u):(n=o[i]=r[i](d),n.c()),w(n,1),n.m(t,null))},i(d){s||(w(n),s=!0)},o(d){D(n),s=!1},d(d){d&&$(t),o[i].d()}}}function ga(e,t,i){let n,s,r,o,l,d,u;G(e,Ie,O=>i(4,l=O));let c=null,_=!1;const f=Zt();G(e,f,O=>i(2,r=O));const m=Yt();G(e,m,O=>i(3,o=O));const g=Qt();G(e,g,O=>i(15,s=O));const v=Fe(),L=v.getData();G(e,L,O=>i(6,u=O));const p=v.getFilter();G(e,p,O=>i(14,n=O));const E=v.getLoading();G(e,E,O=>i(5,d=O));function T(){i(0,c=null)}async function A(){i(1,_=!0);let O=await new qt(s).getTicketsGridListCount({filters:n,timezoneOffset:new Date().getTimezoneOffset()});i(0,c=O.count),i(1,_=!1)}return e.$$.update=()=>{e.$$.dirty&16384&&n&&T()},[c,_,r,o,l,d,u,f,m,g,L,p,E,A,n]}class hs extends oe{constructor(t){super(),se(this,t,ga,ha,te,{},oa)}}re(hs,{},[],[],!0);async function st(e,t,i=!1){if(!(Pe(t.getLoading())||e===void 0)&&(i&&(t.getCursor().set(null),t.getLoaded().set(!1)),!(!Pe(t.getCursor())&&Pe(t.getLoaded())))){t.getLoading().set(!0);try{const s=await(await new qt(e).getTicketsGridDatasetRaw(pa(t))).value();i&&t.getData().set([]),t.getData().set([...Pe(t.getData()),...s.rows]),t.getCursor().set(s.cursor),t.getLoaded().set(!0)}catch(n){t.getError().set(n.toString())}finally{t.getLoading().set(!1)}}}function pa(e){return{perPage:20,sortDir:Pe(e.getDirection())?un.Asc:un.Desc,filters:Pe(e.getFilter()),sortField:Pe(e.getSort()),cursor:Pe(e.getCursor())?Pe(e.getCursor()):""}}function va(e){_e(e,"svelte-75n78x",".custom-checkbox.svelte-75n78x{display:inline-block;position:absolute;top:50%;right:15%;transform:translate(0, -50%);height:16px;width:16px}.hidden-checkbox.svelte-75n78x{display:none}.custom-checkbox-label.svelte-75n78x{position:relative;display:inline-block;width:14px;height:14px;background-color:transparent;border-radius:4px;border:1px solid var(--ticket-border-primary);transition:all .3s ease;cursor:pointer}.custom-checkbox-label.checked.svelte-75n78x,.custom-checkbox-label.indeterminate.svelte-75n78x{background-color:var(--chat-color)}.Checkbox-icon{display:inline-block;position:absolute;top:50%;left:50%;color:white;font-size:16px;transform:translate(-50%, -50%)}")}function Ea(e){let t,i,n,s,r,o,l,d;return r=new Re({props:{iconLaClassName:e[0]&&!e[1]?"la-n-checkmark":e[1]?"la-n-line":"",className:"Checkbox-icon"}}),{c(){t=x("div"),i=x("input"),n=K(),s=x("label"),F(r.$$.fragment),y(i,"type","checkbox"),y(i,"id",e[3]),i.__value=e[2],ji(i,i.__value),y(i,"class","hidden-checkbox svelte-75n78x"),y(s,"for",e[3]),y(s,"class","custom-checkbox-label svelte-75n78x"),We(s,"checked",e[0]&&!e[1]),We(s,"indeterminate",e[1]),y(t,"class","custom-checkbox svelte-75n78x")},m(u,c){S(u,t,c),I(t,i),i.checked=e[0],I(t,n),I(t,s),H(r,s,null),o=!0,l||(d=[we(i,"change",e[6]),we(i,"change",e[4])],l=!0)},p(u,[c]){(!o||c&4)&&(i.__value=u[2],ji(i,i.__value)),c&1&&(i.checked=u[0]);const _={};c&3&&(_.iconLaClassName=u[0]&&!u[1]?"la-n-checkmark":u[1]?"la-n-line":""),r.$set(_),(!o||c&3)&&We(s,"checked",u[0]&&!u[1]),(!o||c&2)&&We(s,"indeterminate",u[1])},i(u){o||(w(r.$$.fragment,u),o=!0)},o(u){D(r.$$.fragment,u),o=!1},d(u){u&&$(t),M(r),l=!1,ke(d)}}}function ya(e,t,i){let{onChange:n}=t,{value:s}=t,{checked:r=!1}=t,{indeterminate:o=!1}=t;const l=Dn(),d=`checkbox-${Math.random().toString(36).substring(2,9)}`;function u(_){i(0,r=_.target.checked),l("change",_),n&&n(_)}function c(){r=this.checked,i(0,r)}return e.$$set=_=>{"onChange"in _&&i(5,n=_.onChange),"value"in _&&i(2,s=_.value),"checked"in _&&i(0,r=_.checked),"indeterminate"in _&&i(1,o=_.indeterminate)},e.$$.update=()=>{e.$$.dirty&1&&r&&i(1,o=!1)},[r,o,s,d,u,n,c]}class Vi extends oe{constructor(t){super(),se(this,t,ya,Ea,te,{onChange:5,value:2,checked:0,indeterminate:1},va)}get onChange(){return this.$$.ctx[5]}set onChange(t){this.$$set({onChange:t}),C()}get value(){return this.$$.ctx[2]}set value(t){this.$$set({value:t}),C()}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),C()}get indeterminate(){return this.$$.ctx[1]}set indeterminate(t){this.$$set({indeterminate:t}),C()}}re(Vi,{onChange:{},value:{},checked:{type:"Boolean"},indeterminate:{type:"Boolean"}},[],[],!0);function ba(e){_e(e,"svelte-x4ls8b",`.dropdown.svelte-x4ls8b.svelte-x4ls8b{position:relative;display:inline-block}.dropdown-button.svelte-x4ls8b.svelte-x4ls8b{display:flex;align-items:center;justify-items:center;gap:8px;color:var(--main-lighter-textcolor);background:none;border:none;font-size:13px;font-weight:700;cursor:pointer}.dropdown-menu.svelte-x4ls8b.svelte-x4ls8b{position:absolute;top:100%;left:0;min-width:200px;max-width:280px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--ticket-background-primary);border:none;border-radius:6px;overflow:hidden;z-index:9999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}.DropdownIcon{font-size:16px;color:var(--main-lighter-textcolor)}.radio-option.svelte-x4ls8b input[type="radio"].svelte-x4ls8b{display:none}.radio-option.svelte-x4ls8b.svelte-x4ls8b{display:flex;align-items:center;position:relative;width:100%;padding:6px 10px;color:var(--main-textcolor);cursor:pointer;border-radius:4px;box-sizing:border-box}.radio-option.svelte-x4ls8b.svelte-x4ls8b::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--ticket-border-primary);background-color:white;box-sizing:border-box}.selected.svelte-x4ls8b.svelte-x4ls8b{font-weight:700;background-color:var(--menu-hover-bg)}.selected.svelte-x4ls8b.svelte-x4ls8b::before{border:4px solid var(--chat-color)}.radio-option.svelte-x4ls8b.svelte-x4ls8b:hover{background:var(--menu-hover-bg)}.Title.svelte-x4ls8b.svelte-x4ls8b{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-x4ls8b.svelte-x4ls8b::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}`)}function _n(e,t,i){const n=e.slice();return n[12]=t[i],n}function fn(e){let t,i,n=e[3]("Sort by")+"",s,r,o,l,d=Ne(e[4]),u=[];for(let c=0;c<d.length;c+=1)u[c]=mn(_n(e,d,c));return{c(){t=x("div"),i=x("span"),s=Q(n),r=K();for(let c=0;c<u.length;c+=1)u[c].c();y(i,"class","Title svelte-x4ls8b"),y(t,"class","dropdown-menu svelte-x4ls8b")},m(c,_){S(c,t,_),I(t,i),I(i,s),I(t,r);for(let f=0;f<u.length;f+=1)u[f]&&u[f].m(t,null);e[8](t),o||(l=we(t,"click",di(e[7])),o=!0)},p(c,_){if(_&8&&n!==(n=c[3]("Sort by")+"")&&le(s,n),_&81){d=Ne(c[4]);let f;for(f=0;f<d.length;f+=1){const m=_n(c,d,f);u[f]?u[f].p(m,_):(u[f]=mn(m),u[f].c(),u[f].m(t,null))}for(;f<u.length;f+=1)u[f].d(1);u.length=d.length}},d(c){c&&$(t),jt(u,c),e[8](null),o=!1,l()}}}function mn(e){let t,i,n,s,r=e[12].label+"",o,l,d,u,c;return{c(){t=x("label"),i=x("input"),s=K(),o=Q(r),l=K(),y(i,"type","radio"),y(i,"name","sorting"),i.value=e[12].value,i.checked=n=e[0]&&e[0].value===e[12].value,y(i,"class","svelte-x4ls8b"),y(t,"class",d=Ee(e[0]&&e[0].value===e[12].value?"radio-option selected":"radio-option")+" svelte-x4ls8b")},m(_,f){S(_,t,f),I(t,i),I(t,s),I(t,o),I(t,l),u||(c=we(i,"click",e[6]),u=!0)},p(_,f){f&1&&n!==(n=_[0]&&_[0].value===_[12].value)&&(i.checked=n),f&1&&d!==(d=Ee(_[0]&&_[0].value===_[12].value?"radio-option selected":"radio-option")+" svelte-x4ls8b")&&y(t,"class",d)},d(_){_&&$(t),u=!1,c()}}}function Ta(e){let t,i,n,s,r=e[3](e[0]?e[0].label:"Select Filter")+"",o,l,d,u,c,_,f;n=new Re({props:{iconLaClassName:"la-n-sort",className:"DropdownIcon"}}),d=new Re({props:{iconLaClassName:"la-n-arrow_down",className:"DropdownIcon "+(e[1]?"Rotate":"")}});let m=e[1]&&fn(e);return{c(){t=x("div"),i=x("button"),F(n.$$.fragment),s=K(),o=Q(r),l=K(),F(d.$$.fragment),u=K(),m&&m.c(),y(i,"class","dropdown-button svelte-x4ls8b"),y(i,"tabindex","0"),y(t,"class","dropdown svelte-x4ls8b")},m(g,v){S(g,t,v),I(t,i),H(n,i,null),I(i,s),I(i,o),I(i,l),H(d,i,null),I(t,u),m&&m.m(t,null),c=!0,_||(f=we(i,"click",e[5]),_=!0)},p(g,[v]){(!c||v&9)&&r!==(r=g[3](g[0]?g[0].label:"Select Filter")+"")&&le(o,r);const L={};v&2&&(L.className="DropdownIcon "+(g[1]?"Rotate":"")),d.$set(L),g[1]?m?m.p(g,v):(m=fn(g),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i(g){c||(w(n.$$.fragment,g),w(d.$$.fragment,g),c=!0)},o(g){D(n.$$.fragment,g),D(d.$$.fragment,g),c=!1},d(g){g&&$(t),M(n),M(d),m&&m.d(),_=!1,f()}}}function La(e,t,i){let n;G(e,Ie,v=>i(3,n=v));let{currentFilter:s}=t;const r=Dn();let o=!1,l;const d=[{value:"Datedue",label:n("Importance"),sort:Ke.Datedue,dir:!1},{value:"Created-newest",label:n("Date created - Newest"),sort:Ke.Datecreated,dir:!1},{value:"Created-oldest",label:n("Date created - Oldest"),sort:Ke.Datecreated,dir:!0},{value:"Changed-newest",label:n("Date changed - Newest"),sort:Ke.Datechanged,dir:!1},{value:"Changed-oldest",label:n("Date changed - Oldest"),sort:Ke.Datechanged,dir:!0}];function u(){i(1,o=!o),o?setTimeout(()=>{document.addEventListener("click",_)},0):document.removeEventListener("click",_)}function c(v){const L=d.find(p=>p.value===v.target.value);i(0,s=L),r("filterChange",{option:L}),f()}function _(v){l&&!l.contains(v.target)&&f()}function f(){i(1,o=!1),document.removeEventListener("click",_)}function m(v){xn.call(this,e,v)}function g(v){Qe[v?"unshift":"push"](()=>{l=v,i(2,l)})}return e.$$set=v=>{"currentFilter"in v&&i(0,s=v.currentFilter)},[s,o,l,n,d,u,c,m,g]}class gs extends oe{constructor(t){super(),se(this,t,La,Ta,te,{currentFilter:0},ba)}get currentFilter(){return this.$$.ctx[0]}set currentFilter(t){this.$$set({currentFilter:t}),C()}}re(gs,{currentFilter:{}},[],[],!0);function Aa(e){_e(e,"svelte-qtb4nj",".Head.svelte-qtb4nj{display:flex;height:100%;max-height:37px;color:var(--panel_text_color);align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--border-primary);padding:0 23px 0 52px}.SpinnerIcon{display:block;height:18px;width:18px}button.svelte-qtb4nj{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-qtb4nj{font-size:16px;cursor:pointer}.rightPanel.svelte-qtb4nj{display:flex;margin-inline-start:auto}.loading.svelte-qtb4nj{animation-name:svelte-qtb4nj-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}.checkbox-wrapper.svelte-qtb4nj{position:relative;display:inline-block;margin-right:16px;margin-left:6px}@keyframes svelte-qtb4nj-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media(min-width: 768px){.checkbox-wrapper.svelte-qtb4nj{margin-right:44px}}")}function wa(e){let t,i,n,s,r,o,l,d,u,c,_,f,m,g,v,L;function p(T){e[20](T)}let E={value:"all",indeterminate:e[0],onChange:e[19]};return e[1]!==void 0&&(E.checked=e[1]),n=new Vi({props:E}),Qe.push(()=>ar(n,"checked",p)),o=new gs({props:{currentFilter:e[2]}}),o.$on("filterChange",e[21]),u=new hs({}),f=new Re({props:{className:"SpinnerIcon",iconLaClassName:"la-refresh"}}),{c(){t=x("div"),i=x("div"),F(n.$$.fragment),r=K(),F(o.$$.fragment),l=K(),d=x("div"),F(u.$$.fragment),c=K(),_=x("button"),F(f.$$.fragment),y(i,"class","checkbox-wrapper svelte-qtb4nj"),y(_,"class","spinner svelte-qtb4nj"),y(_,"title",m=e[5]("Reload")),We(_,"loading",e[3]),y(d,"class","rightPanel svelte-qtb4nj"),y(t,"class","Head svelte-qtb4nj")},m(T,A){S(T,t,A),I(t,i),H(n,i,null),I(t,r),H(o,t,null),I(t,l),I(t,d),H(u,d,null),I(d,c),I(d,_),H(f,_,null),g=!0,v||(L=we(_,"click",e[22]),v=!0)},p(T,[A]){const O={};A&1&&(O.indeterminate=T[0]),!s&&A&2&&(s=!0,O.checked=T[1],sr(()=>s=!1)),n.$set(O);const N={};A&4&&(N.currentFilter=T[2]),o.$set(N),(!g||A&32&&m!==(m=T[5]("Reload")))&&y(_,"title",m),(!g||A&8)&&We(_,"loading",T[3])},i(T){g||(w(n.$$.fragment,T),w(o.$$.fragment,T),w(u.$$.fragment,T),w(f.$$.fragment,T),g=!0)},o(T){D(n.$$.fragment,T),D(o.$$.fragment,T),D(u.$$.fragment,T),D(f.$$.fragment,T),g=!1},d(T){T&&$(t),M(n),M(o),M(u),M(f),v=!1,L()}}}function Oa(e,t,i){let n,s,r,o,l,d,u,c,_;G(e,Ie,R=>i(5,_=R));let f=!1;const m=Zt();G(e,m,R=>i(1,l=R));const g=Yt();G(e,g,R=>i(18,o=R));const v=Ci();G(e,v,R=>i(17,r=R));const L=$i();G(e,L,R=>i(2,d=R));const p=Qt();G(e,p,R=>i(4,c=R));const E=Fe(),T=E.getData();G(e,T,R=>i(24,s=R));const A=E.getLoading();G(e,A,R=>i(3,u=R));const O=E.getLoaded();G(e,O,R=>i(23,n=R));const N=E.getDirection(),he=E.getSort();function z(R){let k=R.target.checked||f;m.set(k),T.update(b=>b.map(V=>({...V,__selected:k})))}function ne(R){R.detail.option.value!==d.value&&(L.set(R.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(d)),N.set(d.dir),he.set(d.sort))}g.subscribe(()=>{l&&o.length===r&&s.filter(R=>R.__selected).length===0&&(m.set(!1),g.set([]))}),O.subscribe(()=>{n||(m.set(!1),g.set([]))});const ie=R=>z(R);function W(R){l=R,m.set(l)}const ve=R=>ne(R),Le=()=>st(c,E,!0);return e.$$.update=()=>{if(e.$$.dirty&393216){const R=o.length;i(0,f=R>0&&R<r)}},[f,l,d,u,c,_,m,g,v,L,p,E,T,A,O,z,ne,r,o,ie,W,ve,Le]}class ps extends oe{constructor(t){super(),se(this,t,Oa,wa,te,{},Aa)}}re(ps,{},[],[],!0);const Ia={A:"answered",T:"chat",P:"phone",X:"deleted",B:"deleted",I:"deleted",R:"resolved",N:"new",C:"open",W:"postponed",L:"closed"};function Se(e){const t=Ia[e];return t?{bg:`var(--ticket-status-${t}-background)`,text:`var(--ticket-status-${t}-text)`,border:`var(--ticket-status-${t}-border)`,line:`var(--ticket-status-${t}-line)`}:{bg:"",text:"",border:"",line:""}}const Da=()=>{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]},Ra=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 xa(e){_e(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 Pa(e){let t;return{c(){t=x("div"),t.textContent=`${e[10]}`,y(t,"class","innerInitials svelte-hbozhk")},m(i,n){S(i,t,n)},p:X,d(i){i&&$(t)}}}function ka(e){let t,i,n,s,r,o;return{c(){t=x("div"),i=x("img"),y(i,"alt",""),y(i,"class",Ee("innerImage")+" svelte-hbozhk"),Ht(i.src,n=e[2])||y(i,"src",n),y(t,"class",s=Ee(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(l,d){S(l,t,d),I(t,i),r||(o=[we(i,"error",e[15]),we(i,"load",e[16])],r=!0)},p(l,d){d&4&&!Ht(i.src,n=l[2])&&y(i,"src",n),d&256&&s!==(s=Ee(l[8]?"imageLoading":"")+" svelte-hbozhk")&&y(t,"class",s)},d(l){l&&$(t),r=!1,ke(o)}}}function Ca(e){let t,i;function n(o,l){return o[2]&&!o[7]?ka:Pa}let s=n(e),r=s(e);return{c(){t=x("div"),r.c(),y(t,"aria-label",e[1]),y(t,"class","wrapper svelte-hbozhk"),y(t,"style",i=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(o,l){S(o,t,l),r.m(t,null)},p(o,[l]){s===(s=n(o))&&r?r.p(o,l):(r.d(1),r=s(o),r&&(r.c(),r.m(t,null))),l&2&&y(t,"aria-label",o[1]),l&125&&i!==(i=o[0]+"--borderRadius:"+(o[6]?0:o[5])+"; --size:"+o[4]+"; --bgColor:"+o[9]+"; --src:"+o[2]+"; --textColor:"+o[3]+"; --abbrLength:"+o[11])&&y(t,"style",i)},i:X,o:X,d(o){o&&$(t),r.d()}}}function $a(e,t,i){let{style:n=""}=t,{name:s="Avatar"}=t,{initials:r}=t,{src:o}=t,{bgColor:l="lightGrey"}=t,{textColor:d="white"}=t,{size:u="50px"}=t,{borderRadius:c="50%"}=t,{square:_=!1}=t,{randomBgColor:f=!1}=t;const m=f?Da():l,g=r||Ra(s),v=g.length;let L=!1,p=!0;const E=()=>i(7,L=!0),T=()=>i(8,p=!1);return e.$$set=A=>{"style"in A&&i(0,n=A.style),"name"in A&&i(1,s=A.name),"initials"in A&&i(12,r=A.initials),"src"in A&&i(2,o=A.src),"bgColor"in A&&i(13,l=A.bgColor),"textColor"in A&&i(3,d=A.textColor),"size"in A&&i(4,u=A.size),"borderRadius"in A&&i(5,c=A.borderRadius),"square"in A&&i(6,_=A.square),"randomBgColor"in A&&i(14,f=A.randomBgColor)},[n,s,o,d,u,c,_,L,p,m,g,v,r,l,f,E,T]}class vs extends oe{constructor(t){super(),se(this,t,$a,Ca,te,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},xa)}get style(){return this.$$.ctx[0]}set style(t){this.$$set({style:t}),C()}get name(){return this.$$.ctx[1]}set name(t){this.$$set({name:t}),C()}get initials(){return this.$$.ctx[12]}set initials(t){this.$$set({initials:t}),C()}get src(){return this.$$.ctx[2]}set src(t){this.$$set({src:t}),C()}get bgColor(){return this.$$.ctx[13]}set bgColor(t){this.$$set({bgColor:t}),C()}get textColor(){return this.$$.ctx[3]}set textColor(t){this.$$set({textColor:t}),C()}get size(){return this.$$.ctx[4]}set size(t){this.$$set({size:t}),C()}get borderRadius(){return this.$$.ctx[5]}set borderRadius(t){this.$$set({borderRadius:t}),C()}get square(){return this.$$.ctx[6]}set square(t){this.$$set({square:t}),C()}get randomBgColor(){return this.$$.ctx[14]}set randomBgColor(t){this.$$set({randomBgColor:t}),C()}}re(vs,{style:{},name:{},initials:{},src:{},bgColor:{},textColor:{},size:{},borderRadius:{},square:{type:"Boolean"},randomBgColor:{type:"Boolean"}},[],[],!0);function Sa(e){let t=0;for(let i=0;i<e.length;i++)t=Math.imul(31,t)+e.charCodeAt(i)|0;return t}var Es={exports:{}},ys={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(i,n){return i<<n|i>>>32-n},rotr:function(i,n){return i<<32-n|i>>>n},endian:function(i){if(i.constructor==Number)return t.rotl(i,8)&16711935|t.rotl(i,24)&4278255360;for(var n=0;n<i.length;n++)i[n]=t.endian(i[n]);return i},randomBytes:function(i){for(var n=[];i>0;i--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(i){for(var n=[],s=0,r=0;s<i.length;s++,r+=8)n[r>>>5]|=i[s]<<24-r%32;return n},wordsToBytes:function(i){for(var n=[],s=0;s<i.length*32;s+=8)n.push(i[s>>>5]>>>24-s%32&255);return n},bytesToHex:function(i){for(var n=[],s=0;s<i.length;s++)n.push((i[s]>>>4).toString(16)),n.push((i[s]&15).toString(16));return n.join("")},hexToBytes:function(i){for(var n=[],s=0;s<i.length;s+=2)n.push(parseInt(i.substr(s,2),16));return n},bytesToBase64:function(i){for(var n=[],s=0;s<i.length;s+=3)for(var r=i[s]<<16|i[s+1]<<8|i[s+2],o=0;o<4;o++)s*8+o*6<=i.length*8?n.push(e.charAt(r>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],s=0,r=0;s<i.length;r=++s%4)r!=0&&n.push((e.indexOf(i.charAt(s-1))&Math.pow(2,-2*r+8)-1)<<r*2|e.indexOf(i.charAt(s))>>>6-r*2);return n}};ys.exports=t})();var Va=ys.exports,Li={utf8:{stringToBytes:function(e){return Li.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Li.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e.charCodeAt(i)&255);return t},bytesToString:function(e){for(var t=[],i=0;i<e.length;i++)t.push(String.fromCharCode(e[i]));return t.join("")}}},hn=Li;/*!
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Sr={fallbackLocale:null,loadingDelay:200,formats:$r,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ft=Sr;function nt(){return ft}function Vr(e){const t=e,{formats:i}=t,n=kr(t,["formats"]);let s=e.fallbackLocale;if(e.initialLocale)try{Yn.resolveLocale(e.initialLocale)&&(s=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Cr:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ft,n,{initialLocale:s}),i&&("number"in i&&Object.assign(ft.formats.number,i.number),"date"in i&&Object.assign(ft.formats.date,i.date),"time"in i&&Object.assign(ft.formats.time,i.time)),lt.set(s)}const Nt=Re(!1);var Nr=Object.defineProperty,Hr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,sn=(e,t,i)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Gr=(e,t)=>{for(var i in t||(t={}))Br.call(t,i)&&sn(e,i,t[i]);if(nn)for(var i of nn(t))Fr.call(t,i)&&sn(e,i,t[i]);return e},zr=(e,t)=>Hr(e,Mr(t));let Ti;const Bt=Re(null);function on(e){return e.split("-").map((t,i,n)=>n.slice(0,i+1).join("-")).reverse()}function xt(e,t=nt().fallbackLocale){const i=on(e);return t?[...new Set([...i,...on(t)])]:i}function He(){return Ti??void 0}Bt.subscribe(e=>{Ti=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const jr=e=>{if(e&&Ar(e)&&Mt(e)){const{loadingDelay:t}=nt();let i;return typeof window<"u"&&He()!=null&&t?i=window.setTimeout(()=>Nt.set(!0),t):Nt.set(!0),es(e).then(()=>{Bt.set(e)}).finally(()=>{clearTimeout(i),Nt.set(!1)})}return Bt.set(e)},lt=zr(Gr({},Bt),{set:jr}),Wt=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var Ur=Object.defineProperty,Ft=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable,rn=(e,t,i)=>t in e?Ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,$i=(e,t)=>{for(var i in t||(t={}))ts.call(t,i)&&rn(e,i,t[i]);if(Ft)for(var i of Ft(t))is.call(t,i)&&rn(e,i,t[i]);return e},at=(e,t)=>{var i={};for(var n in e)ts.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Ft)for(var n of Ft(e))t.indexOf(n)<0&&is.call(e,n)&&(i[n]=e[n]);return i};const Tt=(e,t)=>{const{formats:i}=nt();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Wt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=Tt("number",n)),new Intl.NumberFormat(i,s)}),Jr=Wt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=Tt("date",n):Object.keys(s).length===0&&(s=Tt("date","short")),new Intl.DateTimeFormat(i,s)}),Wr=Wt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=Tt("time",n):Object.keys(s).length===0&&(s=Tt("time","short")),new Intl.DateTimeFormat(i,s)}),Xr=(e={})=>{var t=e,{locale:i=He()}=t,n=at(t,["locale"]);return Kr($i({locale:i},n))},qr=(e={})=>{var t=e,{locale:i=He()}=t,n=at(t,["locale"]);return Jr($i({locale:i},n))},Zr=(e={})=>{var t=e,{locale:i=He()}=t,n=at(t,["locale"]);return Wr($i({locale:i},n))},Yr=Wt((e,t=He())=>new Yn(e,t,nt().formats,{ignoreTag:nt().ignoreTag})),Qr=(e,t={})=>{var i,n,s,o;let r=t;typeof e=="object"&&(r=e,e=r.id);const{values:l,locale:d=He(),default:u}=r;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Qn(e,d);if(!c)c=(o=(s=(n=(i=nt()).handleMissingMessage)==null?void 0:n.call(i,{locale:d,id:e,defaultValue:u}))!=null?s:u)!=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(!l)return c;let _=c;try{_=Yr(c,d).format(l)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return _},el=(e,t)=>Zr(t).format(e),tl=(e,t)=>qr(t).format(e),il=(e,t)=>Xr(t).format(e),nl=(e,t=He())=>Qn(e,t),Oe=ot([lt,rt],()=>Qr);ot([lt],()=>el);ot([lt],()=>tl);ot([lt],()=>il);ot([lt,rt],()=>nl);var Xe=globalThis&&globalThis.__awaiter||function(e,t,i,n){function s(o){return o instanceof i?o:new i(function(r){r(o)})}return new(i||(i=Promise))(function(o,r){function l(c){try{u(n.next(c))}catch(_){r(_)}}function d(c){try{u(n.throw(c))}catch(_){r(_)}}function u(c){c.done?o(c.value):s(c.value).then(l,d)}u((n=n.apply(e,t||[])).next())})};const sl="https://localhost/api/v3".replace(/\/+$/,"");class ns{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:sl}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||ss}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:()=>Xe(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const ol=new ns;class Xt{constructor(t=ol){this.configuration=t,this.fetchApi=(i,n)=>Xe(this,void 0,void 0,function*(){let s={url:i,init:n};for(const r of this.middleware)r.pre&&(s=(yield r.pre(Object.assign({fetch:this.fetchApi},s)))||s);let o;try{o=yield(this.configuration.fetchApi||fetch)(s.url,s.init)}catch(r){for(const l of this.middleware)l.onError&&(o=(yield l.onError({fetch:this.fetchApi,url:s.url,init:s.init,error:r,response:o?o.clone():void 0}))||o);if(o===void 0)throw r instanceof Error?new ul(r,"The request failed and the interceptors did not return an alternative response"):r}for(const r of this.middleware)r.post&&(o=(yield r.post({fetch:this.fetchApi,url:s.url,init:s.init,response:o.clone()}))||o);return o}),this.middleware=t.middleware}withMiddleware(...t){const i=this.clone();return i.middleware=i.middleware.concat(...t),i}withPreMiddleware(...t){const i=t.map(n=>({pre:n}));return this.withMiddleware(...i)}withPostMiddleware(...t){const i=t.map(n=>({post:n}));return this.withMiddleware(...i)}isJsonMime(t){return t?Xt.jsonRegex.test(t):!1}request(t,i){return Xe(this,void 0,void 0,function*(){const{url:n,init:s}=yield this.createFetchParams(t,i),o=yield this.fetchApi(n,s);if(o&&o.status>=200&&o.status<300)return o;throw new al(o,"Response returned an error code")})}createFetchParams(t,i){return Xe(this,void 0,void 0,function*(){let n=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(t.query));const s=Object.assign({},this.configuration.headers,t.headers);Object.keys(s).forEach(u=>s[u]===void 0?delete s[u]:{});const o=typeof i=="function"?i:()=>Xe(this,void 0,void 0,function*(){return i}),r={method:t.method,headers:s,body:t.body,credentials:this.configuration.credentials},l=Object.assign(Object.assign({},r),yield o({init:r,context:t})),d=Object.assign(Object.assign({},l),{body:ll(l.body)||l.body instanceof URLSearchParams||rl(l.body)?l.body:JSON.stringify(l.body)});return{url:n,init:d}})}clone(){const t=this.constructor,i=new t(this.configuration);return i.middleware=this.middleware.slice(),i}}Xt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function rl(e){return typeof Blob<"u"&&e instanceof Blob}function ll(e){return typeof FormData<"u"&&e instanceof FormData}class al extends Error{constructor(t,i){super(i),this.response=t,this.name="ResponseError"}}class ul extends Error{constructor(t,i){super(i),this.cause=t,this.name="FetchError"}}class ln extends Error{constructor(t,i){super(i),this.field=t,this.name="RequiredError"}}function h(e,t){const i=e[t];return i!=null}function ss(e,t=""){return Object.keys(e).map(i=>os(i,e[i],t)).filter(i=>i.length>0).join("&")}function os(e,t,i=""){const n=i+(i.length?`[${e}]`:e);if(t instanceof Array){const s=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${s}`}if(t instanceof Set){const s=Array.from(t);return os(e,s,i)}return t instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?ss(t,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(t))}`}class de{constructor(t,i=n=>n){this.raw=t,this.transformer=i}value(){return Xe(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function dl(e){return cl(e)}function cl(e,t){return e==null?e:{departmentid:h(e,"departmentid")?e.departmentid:void 0,onlineStatus:h(e,"online_status")?e.online_status:void 0,presetStatus:h(e,"preset_status")?e.preset_status:void 0}}function _l(e){return fl(e)}function fl(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,username:h(e,"username")?e.username:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,roleid:h(e,"roleid")?e.roleid:void 0,departmentsStatuses:h(e,"departments_statuses")?e.departments_statuses.map(dl):void 0,twofa:h(e,"twofa")?e.twofa:void 0,lastPswdChange:h(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0}}function ml(e){return hl(e)}function hl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,status:h(e,"status")?e.status:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,rstatus:h(e,"rstatus")?e.rstatus:void 0,statusdatestarted:h(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:h(e,"chat_order")?e.chat_order:void 0}}function gl(e){return pl(e)}function pl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,onlineCode:h(e,"online_code")?e.online_code:void 0,offlineCode:h(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:h(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:h(e,"offline_code_css")?e.offline_code_css:void 0,provide:h(e,"provide")?e.provide:void 0,impressions:h(e,"impressions")?e.impressions:void 0,tickets:h(e,"tickets")?e.tickets:void 0,status:h(e,"status")?e.status:void 0,lastDisplayTime:h(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:h(e,"last_display_url")?e.last_display_url:void 0}}function Ie(e){return vl(e)}function vl(e,t){return e==null?e:{count:h(e,"count")?e.count:void 0}}function El(e){return yl(e)}function yl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,agentCount:h(e,"agent_count")?e.agent_count:void 0}}function bl(e){return Tl(e)}function Tl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,logid:h(e,"logid")?e.logid:void 0,line:h(e,"line")?e.line:void 0,filename:h(e,"filename")?e.filename:void 0,created:h(e,"created")?e.created:void 0,level:h(e,"level")?e.level:void 0,type:h(e,"type")?e.type:void 0,message:h(e,"message")?e.message:void 0,ip:h(e,"ip")?e.ip:void 0,groupid:h(e,"groupid")?e.groupid:void 0}}function Ll(e){return Al(e)}function Al(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,chats:h(e,"chats")?e.chats:void 0}}function wl(e){return Ol(e)}function Ol(e,t){return e==null?e:{name:h(e,"name")?e.name:void 0,code:h(e,"code")?e.code:void 0,engName:h(e,"eng_name")?e.eng_name:void 0,translated:h(e,"translated")?e.translated:void 0,isDefault:h(e,"is_default")?e.is_default:void 0,active:h(e,"active")?e.active:void 0,isCustom:h(e,"is_custom")?e.is_custom:void 0,isBuiltIn:h(e,"is_builtIn")?e.is_builtIn:void 0}}function Il(e){return Rl(e)}function Rl(e,t){return e==null?e:{codeName:h(e,"code_name")?e.code_name:void 0,name:h(e,"name")?e.name:void 0,description:h(e,"description")?e.description:void 0,active:h(e,"active")?e.active:void 0,help:h(e,"help")?e.help:void 0,multiple:h(e,"multiple")?e.multiple:void 0,configFile:h(e,"config_file")?e.config_file:void 0,price:h(e,"price")?e.price:void 0,legacyIntegration:h(e,"legacy_integration")?e.legacy_integration:void 0}}function di(e){return Dl(e)}function Dl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,slaTicketId:h(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,departmentName:h(e,"department_name")?e.department_name:void 0,levelid:h(e,"levelid")?e.levelid:void 0,slaLevelName:h(e,"sla_level_name")?e.sla_level_name:void 0,sla:h(e,"sla")?e.sla:void 0,dateCreated:h(e,"date_created")?e.date_created:void 0,dateClosed:h(e,"date_closed")?e.date_closed:void 0,dateDue:h(e,"date_due")?e.date_due:void 0,slaLevelId:h(e,"sla_level_id")?e.sla_level_id:void 0,slaType:h(e,"sla_type")?new Date(e.sla_type):void 0,agentid:h(e,"agentid")?e.agentid:void 0,agentFirstname:h(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:h(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:h(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:h(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:h(e,"req_firstname")?e.req_firstname:void 0,reqLastname:h(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:h(e,"req_systemname")?e.req_systemname:void 0,reqContactName:h(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:h(e,"req_avatar_url")?e.req_avatar_url:void 0}}function an(e){return xl(e)}function xl(e,t){return e==null?e:{tagid:h(e,"tagid")?e.tagid:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,color:h(e,"color")?e.color:void 0,backgroundcolor:h(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:h(e,"is_public")?e.is_public:void 0}}function rs(e){return Pl(e)}function Pl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,datecreated:h(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:h(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:h(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:h(e,"rorder")?e.rorder:void 0,datedue:h(e,"datedue")?new Date(e.datedue):void 0,datereopen:h(e,"datereopen")?new Date(e.datereopen):void 0,status:h(e,"status")?e.status:void 0,channelType:h(e,"channel_type")?e.channel_type:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,agentid:h(e,"agentid")?e.agentid:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,messagegroupsIn:h(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:h(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:h(e,"contactid")?e.contactid:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,phones:h(e,"phones")?e.phones:void 0,jobPosition:h(e,"job_position")?e.job_position:void 0,contactType:h(e,"contact_type")?e.contact_type:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,timeOffset:h(e,"time_offset")?e.time_offset:void 0,gender:h(e,"gender")?e.gender:void 0,levelid:h(e,"levelid")?e.levelid:void 0,groups:h(e,"groups")?e.groups:void 0,contactStatus:h(e,"contact_status")?e.contact_status:void 0,company:h(e,"company")?e.company:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,userid:h(e,"userid")?e.userid:void 0,roleid:h(e,"roleid")?e.roleid:void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0,accountuserstatus:h(e,"accountuserstatus")?e.accountuserstatus:void 0,description:h(e,"description")?e.description:void 0,note:h(e,"note")?e.note:void 0,lastActivity:h(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:h(e,"tagnames")?e.tagnames:void 0,groupnames:h(e,"groupnames")?e.groupnames:void 0}}function kl(e){return $l(e)}function $l(e,t){return e==null?e:{cursor:h(e,"cursor")?e.cursor:void 0,rows:h(e,"rows")?e.rows.map(rs):void 0}}function Cl(e){return Sl(e)}function Sl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,agentid:h(e,"agentid")?e.agentid:void 0,agent:h(e,"agent")?e.agent:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,ticket:h(e,"ticket")?e.ticket:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,company:h(e,"company")?e.company:void 0,contactid:h(e,"contactid")?e.contactid:void 0,customer:h(e,"customer")?e.customer:void 0,customerFirstname:h(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:h(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:h(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:h(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:h(e,"reportdate")?e.reportdate:void 0,reportedtime:h(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:h(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:h(e,"spenttime")?e.spenttime:void 0,dateinvoiced:h(e,"dateinvoiced")?e.dateinvoiced:void 0,note:h(e,"note")?e.note:void 0,type:h(e,"type")?e.type:void 0}}var B=globalThis&&globalThis.__awaiter||function(e,t,i,n){function s(o){return o instanceof i?o:new i(function(r){r(o)})}return new(i||(i=Promise))(function(o,r){function l(c){try{u(n.next(c))}catch(_){r(_)}}function d(c){try{u(n.throw(c))}catch(_){r(_)}}function u(c){c.done?o(c.value):s(c.value).then(l,d)}u((n=n.apply(e,t||[])).next())})};class qt extends Xt{getAgentsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/agents",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(_l))})}getAgentsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,i)).value()})}getAgentsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/agents/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getAgentsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,i)).value()})}getCallsSlaLogGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/calls/sla",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(di))})}getCallsSlaLogGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,i)).value()})}getCallsSlaLogGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getCallsSlaLogGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,i)).value()})}getChatsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(ml))})}getChatsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,i)).value()})}getChatsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getChatsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,i)).value()})}getChatsSlaLogGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/sla",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(di))})}getChatsSlaLogGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,i)).value()})}getChatsSlaLogGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getChatsSlaLogGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,i)).value()})}getContactWidgetsCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getContactWidgetsCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,i)).value()})}getContactWidgetsListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(gl))})}getContactWidgetsList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,i)).value()})}getCustomerGroupsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/customer_groups",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(an))})}getCustomerGroupsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,i)).value()})}getDepartmensGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/departments/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getDepartmensGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,i)).value()})}getDepartmentsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/departments",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(El))})}getDepartmentsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,i)).value()})}getEventLogsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/eventlogs",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(bl))})}getEventLogsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,i)).value()})}getEventLogsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getEventLogsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,i)).value()})}getInviteAgentsGridListRaw(t,i){return B(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new ln("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(Ll))})}getInviteAgentsGridList(t,i){return B(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,i)).value()})}getLanguagesGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/languages",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(wl))})}getLanguagesGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,i)).value()})}getLanguagesGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/languages/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getLanguagesGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,i)).value()})}getPlugindGridListRaw(t,i){return B(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new ln("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.pluginPurpose!==void 0&&(n.pluginPurpose=t.pluginPurpose);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/plugins",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(Il))})}getPlugindGridList(t,i){return B(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,i)).value()})}getTagsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tags",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(an))})}getTagsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,i)).value()})}getTicketsGridDatasetRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets_new",method:"GET",headers:s,query:n},i);return new de(o,r=>kl(r))})}getTicketsGridDataset(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,i)).value()})}getTicketsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(rs))})}getTicketsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,i)).value()})}getTicketsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getTicketsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,i)).value()})}getTicketsSlaLogGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(di))})}getTicketsSlaLogGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,i)).value()})}getTicketsSlaLogGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getTicketsSlaLogGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,i)).value()})}getTimeReportsGridListRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.sortField!==void 0&&(n._sortField=t.sortField),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/reports/time",method:"GET",headers:s,query:n},i);return new de(o,r=>r.map(Cl))})}getTimeReportsGridList(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,i)).value()})}getTimeReportsGridListCountRaw(t,i){return B(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const o=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:s,query:n},i);return new de(o,r=>Ie(r))})}getTimeReportsGridListCount(t={},i){return B(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,i)).value()})}}const un={Asc:"ASC",Desc:"DESC"},Ke={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"};class Vl{constructor(t){Ee(this,"filter",Re(""));Ee(this,"loading",Re(!1));Ee(this,"loaded",Re(!1));Ee(this,"data",Re([]));Ee(this,"error",Re(""));Ee(this,"cursor",Re(""));Ee(this,"sorting");this.sorting=t}getFilter(){return this.filter}getLoading(){return this.loading}getLoaded(){return this.loaded}getData(){return this.data}getError(){return this.error}getCursor(){return this.cursor}getSorting(){return this.sorting}}function Nl(){const e=localStorage.getItem("TicketGridCurrentFilter");if(e)try{return JSON.parse(e)}catch{}return{value:"Datedue",label:"Importance",sort:Ke.Datedue,dir:!1}}const ls=(e,t,i)=>{if(Dn(e))return jt(e);const n=t(i);return Ri(e,n),n},Hl=(e,t)=>Dn(e)?jt(e):(Ri(e,t),t),ut=(e,t)=>ls(e,Re,t),Ml=(e,t)=>ls(e,$n,t),Zt=()=>ut("allTicketsSelected",!1),Yt=()=>ut("selectionMap",[]),Ci=()=>ut("ticketsCount",0),Bl=e=>Ml("apiConfig",e),Qt=()=>jt("apiConfig"),Fe=()=>Hl("ticketsData",new Vl(ei())),as=()=>ut("tags",{}),us=()=>ut("groups",new Map),ei=()=>ut("sorting",Nl()),dn=["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 Fl(e){if(e!=null&&e.trim()!=""){const t=e.trim();if(dn.find(s=>s===t)!=null)return t;const i=t.substring(0,2),n=dn.find(s=>s.substring(0,2)===i);if(n!=null)return n}return null}var ds={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Cn,function(){var i=1e3,n=6e4,s=36e5,o="millisecond",r="second",l="minute",d="hour",u="day",c="week",_="month",f="quarter",m="year",g="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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 R=["th","st","nd","rd"],x=M%100;return"["+M+(R[(x-20)%10]||R[x]||R[0])+"]"}},T=function(M,R,x){var V=String(M);return!V||V.length>=R?M:""+Array(R+1-V.length).join(x)+M},L={s:T,z:function(M){var R=-M.utcOffset(),x=Math.abs(R),V=Math.floor(x/60),k=x%60;return(R<=0?"+":"-")+T(V,2,"0")+":"+T(k,2,"0")},m:function M(R,x){if(R.date()<x.date())return-M(x,R);var V=12*(x.year()-R.year())+(x.month()-R.month()),k=R.clone().add(V,_),U=x-k<0,K=R.clone().add(V+(U?-1:1),_);return+(-(V+(x-k)/(U?k-K:K-k))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:_,y:m,w:c,d:u,D:g,h:d,m:l,s:r,ms:o,Q:f}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},O="en",S={};S[O]=b;var _e="$isDayjsObject",j=function(M){return M instanceof G||!(!M||!M[_e])},he=function M(R,x,V){var k;if(!R)return O;if(typeof R=="string"){var U=R.toLowerCase();S[U]&&(k=U),x&&(S[U]=x,k=U);var K=R.split("-");if(!k&&K.length>1)return M(K[0])}else{var Q=R.name;S[Q]=R,k=Q}return!V&&k&&(O=k),k||!V&&O},se=function(M,R){if(j(M))return M.clone();var x=typeof R=="object"?R:{};return x.date=M,x.args=arguments,new G(x)},q=L;q.l=he,q.i=j,q.w=function(M,R){return se(M,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var G=function(){function M(x){this.$L=he(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[_e]=!0}var R=M.prototype;return R.parse=function(x){this.$d=function(V){var k=V.date,U=V.utc;if(k===null)return new Date(NaN);if(q.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var K=k.match(v);if(K){var Q=K[2]-1||0,ce=(K[7]||"0").substring(0,3);return U?new Date(Date.UTC(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ce)):new Date(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ce)}}return new Date(k)}(x),this.init()},R.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},R.$utils=function(){return q},R.isValid=function(){return this.$d.toString()!==p},R.isSame=function(x,V){var k=se(x);return this.startOf(V)<=k&&k<=this.endOf(V)},R.isAfter=function(x,V){return se(x)<this.startOf(V)},R.isBefore=function(x,V){return this.endOf(V)<se(x)},R.$g=function(x,V,k){return q.u(x)?this[V]:this.set(k,x)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(x,V){var k=this,U=!!q.u(V)||V,K=q.p(x),Q=function(xe,be){var Ce=q.w(k.$u?Date.UTC(k.$y,be,xe):new Date(k.$y,be,xe),k);return U?Ce:Ce.endOf(u)},ce=function(xe,be){return q.w(k.toDate()[xe].apply(k.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(be)),k)},ve=this.$W,ge=this.$M,fe=this.$D,X="set"+(this.$u?"UTC":"");switch(K){case m:return U?Q(1,0):Q(31,11);case _:return U?Q(1,ge):Q(0,ge+1);case c:var ue=this.$locale().weekStart||0,$e=(ve<ue?ve+7:ve)-ue;return Q(U?fe-$e:fe+(6-$e),ge);case u:case g:return ce(X+"Hours",0);case d:return ce(X+"Minutes",1);case l:return ce(X+"Seconds",2);case r:return ce(X+"Milliseconds",3);default:return this.clone()}},R.endOf=function(x){return this.startOf(x,!1)},R.$set=function(x,V){var k,U=q.p(x),K="set"+(this.$u?"UTC":""),Q=(k={},k[u]=K+"Date",k[g]=K+"Date",k[_]=K+"Month",k[m]=K+"FullYear",k[d]=K+"Hours",k[l]=K+"Minutes",k[r]=K+"Seconds",k[o]=K+"Milliseconds",k)[U],ce=U===u?this.$D+(V-this.$W):V;if(U===_||U===m){var ve=this.clone().set(g,1);ve.$d[Q](ce),ve.init(),this.$d=ve.set(g,Math.min(this.$D,ve.daysInMonth())).$d}else Q&&this.$d[Q](ce);return this.init(),this},R.set=function(x,V){return this.clone().$set(x,V)},R.get=function(x){return this[q.p(x)]()},R.add=function(x,V){var k,U=this;x=Number(x);var K=q.p(V),Q=function(ge){var fe=se(U);return q.w(fe.date(fe.date()+Math.round(ge*x)),U)};if(K===_)return this.set(_,this.$M+x);if(K===m)return this.set(m,this.$y+x);if(K===u)return Q(1);if(K===c)return Q(7);var ce=(k={},k[l]=n,k[d]=s,k[r]=i,k)[K]||1,ve=this.$d.getTime()+x*ce;return q.w(ve,this)},R.subtract=function(x,V){return this.add(-1*x,V)},R.format=function(x){var V=this,k=this.$locale();if(!this.isValid())return k.invalidDate||p;var U=x||"YYYY-MM-DDTHH:mm:ssZ",K=q.z(this),Q=this.$H,ce=this.$m,ve=this.$M,ge=k.weekdays,fe=k.months,X=k.meridiem,ue=function(be,Ce,ct,Pt){return be&&(be[Ce]||be(V,U))||ct[Ce].slice(0,Pt)},$e=function(be){return q.s(Q%12||12,be,"0")},xe=X||function(be,Ce,ct){var Pt=be<12?"AM":"PM";return ct?Pt.toLowerCase():Pt};return U.replace(y,function(be,Ce){return Ce||function(ct){switch(ct){case"YY":return String(V.$y).slice(-2);case"YYYY":return q.s(V.$y,4,"0");case"M":return ve+1;case"MM":return q.s(ve+1,2,"0");case"MMM":return ue(k.monthsShort,ve,fe,3);case"MMMM":return ue(fe,ve);case"D":return V.$D;case"DD":return q.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return ue(k.weekdaysMin,V.$W,ge,2);case"ddd":return ue(k.weekdaysShort,V.$W,ge,3);case"dddd":return ge[V.$W];case"H":return String(Q);case"HH":return q.s(Q,2,"0");case"h":return $e(1);case"hh":return $e(2);case"a":return xe(Q,ce,!0);case"A":return xe(Q,ce,!1);case"m":return String(ce);case"mm":return q.s(ce,2,"0");case"s":return String(V.$s);case"ss":return q.s(V.$s,2,"0");case"SSS":return q.s(V.$ms,3,"0");case"Z":return K}return null}(be)||K.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(x,V,k){var U,K=this,Q=q.p(V),ce=se(x),ve=(ce.utcOffset()-this.utcOffset())*n,ge=this-ce,fe=function(){return q.m(K,ce)};switch(Q){case m:U=fe()/12;break;case _:U=fe();break;case f:U=fe()/3;break;case c:U=(ge-ve)/6048e5;break;case u:U=(ge-ve)/864e5;break;case d:U=ge/s;break;case l:U=ge/n;break;case r:U=ge/i;break;default:U=ge}return k?U:q.a(U)},R.daysInMonth=function(){return this.endOf(_).$D},R.$locale=function(){return S[this.$L]},R.locale=function(x,V){if(!x)return this.$L;var k=this.clone(),U=he(x,V,!0);return U&&(k.$L=U),k},R.clone=function(){return q.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},M}(),W=G.prototype;return se.prototype=W,[["$ms",o],["$s",r],["$m",l],["$H",d],["$W",u],["$M",_],["$y",m],["$D",g]].forEach(function(M){W[M[1]]=function(R){return this.$g(R,M[0],M[1])}}),se.extend=function(M,R){return M.$i||(M(R,G,se),M.$i=!0),se},se.locale=he,se.isDayjs=j,se.unix=function(M){return se(1e3*M)},se.en=S[O],se.Ls=S,se.p={},se})})(ds);var Gl=ds.exports;const qe=Ut(Gl);var cs={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Cn,function(){return function(i,n,s){i=i||{};var o=n.prototype,r={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 l(u,c,_,f){return o.fromToBase(u,c,_,f)}s.en.relativeTime=r,o.fromToBase=function(u,c,_,f,m){for(var g,p,v,y=_.$locale().relativeTime||r,b=i.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"}],T=b.length,L=0;L<T;L+=1){var O=b[L];O.d&&(g=f?s(u).diff(_,O.d,!0):_.diff(u,O.d,!0));var S=(i.rounding||Math.round)(Math.abs(g));if(v=g>0,S<=O.r||!O.r){S<=1&&L>0&&(O=b[L-1]);var _e=y[O.l];m&&(S=m(""+S)),p=typeof _e=="string"?_e.replace("%d",S):_e(S,c,O.l,v);break}}if(c)return p;var j=v?y.future:y.past;return typeof j=="function"?j(p):j.replace("%s",p)},o.to=function(u,c){return l(u,c,this,!0)},o.from=function(u,c){return l(u,c,this)};var d=function(u){return u.$u?s.utc():s()};o.toNow=function(u){return this.to(d(this),u)},o.fromNow=function(u){return this.from(d(this),u)}}})})(cs);var zl=cs.exports;const jl=Ut(zl);qe.extend(jl);function Ul(e){let t,i,n=[{title:e[2]},e[3],{datetime:e[1]}],s={};for(let o=0;o<n.length;o+=1)s=Et(s,n[o]);return{c(){t=D("time"),i=te(e[0]),Gi(t,s)},m(o,r){C(o,t,r),w(t,i)},p(o,[r]){r&1&&Qs(i,o[0],s.contenteditable),Gi(t,s=Pn(n,[r&4&&{title:o[2]},r&8&&o[3],r&2&&{datetime:o[1]}]))},i:Z,o:Z,d(o){o&&$(t)}}}function Kl(e,t,i){let n;const s=["timestamp","format","relative","live","formatted"];let o=Fi(t,s),{timestamp:r=new Date().toISOString()}=t,{format:l="MMM DD, YYYY"}=t,{relative:d=!1}=t,{live:u=!1}=t,{formatted:c=""}=t,_;const f=60*1e3;return Dt(()=>()=>clearInterval(_)),e.$$set=m=>{t=Et(Et({},t),Us(m)),i(3,o=Fi(t,s)),"timestamp"in m&&i(1,r=m.timestamp),"format"in m&&i(4,l=m.format),"relative"in m&&i(5,d=m.relative),"live"in m&&i(6,u=m.live),"formatted"in m&&i(0,c=m.formatted)},e.$$.update=()=>{e.$$.dirty&98&&d&&u!==!1&&(_=setInterval(()=>{i(0,c=qe(r).from())},Math.abs(typeof u=="number"?u:f))),e.$$.dirty&50&&i(0,c=d?qe(r).from():qe(r).format(l)),e.$$.dirty&50&&i(2,n=d?qe(r).format(l):void 0)},[c,r,n,o,l,d,u]}class Si extends le{constructor(t){super(),oe(this,t,Kl,Ul,ne,{timestamp:1,format:4,relative:5,live:6,formatted:0})}get timestamp(){return this.$$.ctx[1]}set timestamp(t){this.$$set({timestamp:t}),P()}get format(){return this.$$.ctx[4]}set format(t){this.$$set({format:t}),P()}get relative(){return this.$$.ctx[5]}set relative(t){this.$$set({relative:t}),P()}get live(){return this.$$.ctx[6]}set live(t){this.$$set({live:t}),P()}get formatted(){return this.$$.ctx[0]}set formatted(t){this.$$set({formatted:t}),P()}}re(Si,{timestamp:{},format:{},relative:{type:"Boolean"},live:{type:"Boolean"},formatted:{}},[],[],!0);const pt="en-US",cn="S",_s="N",fs="C",Li="D",Jl="A";let Be,vt=pt;function Wl(e,t,i){if(Be!==void 0)return;Be=e;let n={fallbackLocale:pt};en(pt,t);const s=Fl(Be.locale);s!==null&&s!==pt&&(vt=s,n.initialLocale=vt,en(vt,i)),Vr(n)}function Xl(e){const t=e.substring(0,2).toLowerCase();if(t==="en")return;const i="/node_modules/dayjs/esm/locale/"+t+".js",n=Object.assign({"/node_modules/dayjs/esm/locale/af.js":()=>a(()=>import("./af.js"),["assets/af.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/am.js":()=>a(()=>import("./am.js"),["assets/am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-dz.js":()=>a(()=>import("./ar-dz.js"),["assets/ar-dz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-iq.js":()=>a(()=>import("./ar-iq.js"),["assets/ar-iq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-kw.js":()=>a(()=>import("./ar-kw.js"),["assets/ar-kw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ly.js":()=>a(()=>import("./ar-ly.js"),["assets/ar-ly.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ma.js":()=>a(()=>import("./ar-ma.js"),["assets/ar-ma.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-sa.js":()=>a(()=>import("./ar-sa.js"),["assets/ar-sa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-tn.js":()=>a(()=>import("./ar-tn.js"),["assets/ar-tn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar.js":()=>a(()=>import("./ar.js"),["assets/ar.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/az.js":()=>a(()=>import("./az.js"),["assets/az.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/be.js":()=>a(()=>import("./be.js"),["assets/be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bg.js":()=>a(()=>import("./bg.js"),["assets/bg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bi.js":()=>a(()=>import("./bi.js"),["assets/bi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bm.js":()=>a(()=>import("./bm.js"),["assets/bm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn-bd.js":()=>a(()=>import("./bn-bd.js"),["assets/bn-bd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn.js":()=>a(()=>import("./bn.js"),["assets/bn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bo.js":()=>a(()=>import("./bo.js"),["assets/bo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/br.js":()=>a(()=>import("./br.js"),["assets/br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bs.js":()=>a(()=>import("./bs.js"),["assets/bs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ca.js":()=>a(()=>import("./ca.js"),["assets/ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cs.js":()=>a(()=>import("./cs.js"),["assets/cs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cv.js":()=>a(()=>import("./cv.js"),["assets/cv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cy.js":()=>a(()=>import("./cy.js"),["assets/cy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/da.js":()=>a(()=>import("./da.js"),["assets/da.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-at.js":()=>a(()=>import("./de-at.js"),["assets/de-at.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-ch.js":()=>a(()=>import("./de-ch.js"),["assets/de-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de.js":()=>a(()=>import("./de.js"),["assets/de.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/dv.js":()=>a(()=>import("./dv.js"),["assets/dv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/el.js":()=>a(()=>import("./el.js"),["assets/el.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-au.js":()=>a(()=>import("./en-au.js"),["assets/en-au.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ca.js":()=>a(()=>import("./en-ca.js"),["assets/en-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-gb.js":()=>a(()=>import("./en-gb.js"),["assets/en-gb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ie.js":()=>a(()=>import("./en-ie.js"),["assets/en-ie.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-il.js":()=>a(()=>import("./en-il.js"),["assets/en-il.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-in.js":()=>a(()=>import("./en-in.js"),["assets/en-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-nz.js":()=>a(()=>import("./en-nz.js"),["assets/en-nz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-sg.js":()=>a(()=>import("./en-sg.js"),["assets/en-sg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-tt.js":()=>a(()=>import("./en-tt.js"),["assets/en-tt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en.js":()=>a(()=>import("./en.js"),[]),"/node_modules/dayjs/esm/locale/eo.js":()=>a(()=>import("./eo.js"),["assets/eo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-do.js":()=>a(()=>import("./es-do.js"),["assets/es-do.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-mx.js":()=>a(()=>import("./es-mx.js"),["assets/es-mx.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-pr.js":()=>a(()=>import("./es-pr.js"),["assets/es-pr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-us.js":()=>a(()=>import("./es-us.js"),["assets/es-us.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es.js":()=>a(()=>import("./es.js"),["assets/es.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/et.js":()=>a(()=>import("./et.js"),["assets/et.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/eu.js":()=>a(()=>import("./eu.js"),["assets/eu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fa.js":()=>a(()=>import("./fa.js"),["assets/fa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fi.js":()=>a(()=>import("./fi.js"),["assets/fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fo.js":()=>a(()=>import("./fo.js"),["assets/fo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ca.js":()=>a(()=>import("./fr-ca.js"),["assets/fr-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ch.js":()=>a(()=>import("./fr-ch.js"),["assets/fr-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr.js":()=>a(()=>import("./fr.js"),["assets/fr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fy.js":()=>a(()=>import("./fy.js"),["assets/fy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ga.js":()=>a(()=>import("./ga.js"),["assets/ga.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gd.js":()=>a(()=>import("./gd.js"),["assets/gd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gl.js":()=>a(()=>import("./gl.js"),["assets/gl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gom-latn.js":()=>a(()=>import("./gom-latn.js"),["assets/gom-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gu.js":()=>a(()=>import("./gu.js"),["assets/gu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/he.js":()=>a(()=>import("./he.js"),["assets/he.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hi.js":()=>a(()=>import("./hi.js"),["assets/hi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hr.js":()=>a(()=>import("./hr.js"),["assets/hr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ht.js":()=>a(()=>import("./ht.js"),["assets/ht.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hu.js":()=>a(()=>import("./hu.js"),["assets/hu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hy-am.js":()=>a(()=>import("./hy-am.js"),["assets/hy-am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/id.js":()=>a(()=>import("./id.js"),["assets/id.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/is.js":()=>a(()=>import("./is.js"),["assets/is.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it-ch.js":()=>a(()=>import("./it-ch.js"),["assets/it-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it.js":()=>a(()=>import("./it.js"),["assets/it.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ja.js":()=>a(()=>import("./ja.js"),["assets/ja.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/jv.js":()=>a(()=>import("./jv.js"),["assets/jv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ka.js":()=>a(()=>import("./ka.js"),["assets/ka.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kk.js":()=>a(()=>import("./kk.js"),["assets/kk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/km.js":()=>a(()=>import("./km.js"),["assets/km.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kn.js":()=>a(()=>import("./kn.js"),["assets/kn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ko.js":()=>a(()=>import("./ko.js"),["assets/ko.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ku.js":()=>a(()=>import("./ku.js"),["assets/ku.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ky.js":()=>a(()=>import("./ky.js"),["assets/ky.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lb.js":()=>a(()=>import("./lb.js"),["assets/lb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lo.js":()=>a(()=>import("./lo.js"),["assets/lo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lt.js":()=>a(()=>import("./lt.js"),["assets/lt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lv.js":()=>a(()=>import("./lv.js"),["assets/lv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/me.js":()=>a(()=>import("./me.js"),["assets/me.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mi.js":()=>a(()=>import("./mi.js"),["assets/mi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mk.js":()=>a(()=>import("./mk.js"),["assets/mk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ml.js":()=>a(()=>import("./ml.js"),["assets/ml.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mn.js":()=>a(()=>import("./mn.js"),["assets/mn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mr.js":()=>a(()=>import("./mr.js"),["assets/mr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms-my.js":()=>a(()=>import("./ms-my.js"),["assets/ms-my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms.js":()=>a(()=>import("./ms.js"),["assets/ms.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mt.js":()=>a(()=>import("./mt.js"),["assets/mt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/my.js":()=>a(()=>import("./my.js"),["assets/my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nb.js":()=>a(()=>import("./nb.js"),["assets/nb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ne.js":()=>a(()=>import("./ne.js"),["assets/ne.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl-be.js":()=>a(()=>import("./nl-be.js"),["assets/nl-be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl.js":()=>a(()=>import("./nl.js"),["assets/nl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nn.js":()=>a(()=>import("./nn.js"),["assets/nn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/oc-lnc.js":()=>a(()=>import("./oc-lnc.js"),["assets/oc-lnc.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pa-in.js":()=>a(()=>import("./pa-in.js"),["assets/pa-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pl.js":()=>a(()=>import("./pl.js"),["assets/pl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt-br.js":()=>a(()=>import("./pt-br.js"),["assets/pt-br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt.js":()=>a(()=>import("./pt.js"),["assets/pt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rn.js":()=>a(()=>import("./rn.js"),["assets/rn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ro.js":()=>a(()=>import("./ro.js"),["assets/ro.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ru.js":()=>a(()=>import("./ru.js"),["assets/ru.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rw.js":()=>a(()=>import("./rw.js"),["assets/rw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sd.js":()=>a(()=>import("./sd.js"),["assets/sd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/se.js":()=>a(()=>import("./se.js"),["assets/se.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/si.js":()=>a(()=>import("./si.js"),["assets/si.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sk.js":()=>a(()=>import("./sk.js"),["assets/sk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sl.js":()=>a(()=>import("./sl.js"),["assets/sl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sq.js":()=>a(()=>import("./sq.js"),["assets/sq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr-cyrl.js":()=>a(()=>import("./sr-cyrl.js"),["assets/sr-cyrl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr.js":()=>a(()=>import("./sr.js"),["assets/sr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ss.js":()=>a(()=>import("./ss.js"),["assets/ss.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv-fi.js":()=>a(()=>import("./sv-fi.js"),["assets/sv-fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv.js":()=>a(()=>import("./sv.js"),["assets/sv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sw.js":()=>a(()=>import("./sw.js"),["assets/sw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ta.js":()=>a(()=>import("./ta.js"),["assets/ta.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/te.js":()=>a(()=>import("./te.js"),["assets/te.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tet.js":()=>a(()=>import("./tet.js"),["assets/tet.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tg.js":()=>a(()=>import("./tg.js"),["assets/tg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/th.js":()=>a(()=>import("./th.js"),["assets/th.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tk.js":()=>a(()=>import("./tk.js"),["assets/tk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tl-ph.js":()=>a(()=>import("./tl-ph.js"),["assets/tl-ph.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tlh.js":()=>a(()=>import("./tlh.js"),["assets/tlh.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tr.js":()=>a(()=>import("./tr.js"),["assets/tr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzl.js":()=>a(()=>import("./tzl.js"),["assets/tzl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm-latn.js":()=>a(()=>import("./tzm-latn.js"),["assets/tzm-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm.js":()=>a(()=>import("./tzm.js"),["assets/tzm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ug-cn.js":()=>a(()=>import("./ug-cn.js"),["assets/ug-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uk.js":()=>a(()=>import("./uk.js"),["assets/uk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ur.js":()=>a(()=>import("./ur.js"),["assets/ur.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz-latn.js":()=>a(()=>import("./uz-latn.js"),["assets/uz-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz.js":()=>a(()=>import("./uz.js"),["assets/uz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/vi.js":()=>a(()=>import("./vi.js"),["assets/vi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/x-pseudo.js":()=>a(()=>import("./x-pseudo.js"),["assets/x-pseudo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/yo.js":()=>a(()=>import("./yo.js"),["assets/yo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-cn.js":()=>a(()=>import("./zh-cn.js"),["assets/zh-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-hk.js":()=>a(()=>import("./zh-hk.js"),["assets/zh-hk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-tw.js":()=>a(()=>import("./zh-tw.js"),["assets/zh-tw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh.js":()=>a(()=>import("./zh.js"),["assets/zh.js","assets/index2.js","assets/en.js"])});n[i]&&n[i]().then(s=>{qe.locale(s.default)})}function ql(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function je(e){return ql(new Date(e))}function Zl(){return Be.dateFormat.toUpperCase()}function Yl(){return Be.timeFormat}function ms(){return Zl()+" "+Yl()}function Ze(e){return Ql(e,2)}function Ql(e,t){let i="";return ia(t).formatToParts(e).forEach(n=>{n.type==="group"?i+=ea():n.type==="decimal"?i+=ta():i+=n.value}),i}function ea(){let e=Be.thousandsSeparator;switch(e==null&&(e=cn),e){case fs:return",";case cn:return" ";case Li:return".";case Jl:return"'";case _s:case"":return" ";default:return e}}function ta(){let e=Be.decimalSeparator;switch(e==null&&(e=Li),e){case fs:return",";case _s:case Li:return".";default:return e}}function ia(e){return new Intl.NumberFormat(vt,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function na(e){me(e,"svelte-1u37lur","button.svelte-1u37lur{padding:10px;margin:5px;border:none;border-radius:4px;background:none;cursor:pointer}.button-secondary.svelte-1u37lur{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 20px;color:var(--main-textcolor);border:1px solid var(--menu-hover-bg)}.button-small.svelte-1u37lur{padding:0 4px}.borderless.svelte-1u37lur{border:none;padding:2px 0}")}function sa(e){let t,i,n,s,o;const r=e[4].default,l=Lt(r,e,e[3],null);return{c(){t=D("button"),l&&l.c(),E(t,"class",i=ye(e[0])+" svelte-1u37lur")},m(d,u){C(d,t,u),l&&l.m(t,null),n=!0,s||(o=we(t,"click",e[1]),s=!0)},p(d,[u]){l&&l.p&&(!n||u&8)&&wt(l,r,d,d[3],n?At(r,d[3],u,null):Ot(d[3]),null),(!n||u&1&&i!==(i=ye(d[0])+" svelte-1u37lur"))&&E(t,"class",i)},i(d){n||(A(l,d),n=!0)},o(d){I(l,d),n=!1},d(d){d&&$(t),l&&l.d(d),s=!1,o()}}}function oa(e,t,i){let{$$slots:n={},$$scope:s}=t,{onAction:o=d=>{}}=t,{className:r=""}=t;function l(d){o(d)}return e.$$set=d=>{"onAction"in d&&i(2,o=d.onAction),"className"in d&&i(0,r=d.className),"$$scope"in d&&i(3,s=d.$$scope)},[r,l,o,s,n]}class Gt extends le{constructor(t){super(),oe(this,t,oa,sa,ne,{onAction:2,className:0},na)}get onAction(){return this.$$.ctx[2]}set onAction(t){this.$$set({onAction:t}),P()}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),P()}}re(Gt,{onAction:{},className:{}},["default"],[],!0);function ra(e){me(e,"svelte-kc7zi0",".Counter.svelte-kc7zi0{display:none}.Selection.svelte-kc7zi0{color:var(--ticket-selected-textcolor);background-color:var(--ticket-background-selected);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:12px;box-sizing:border-box}.text.svelte-kc7zi0{color:var(--main-lighter-textcolor);font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-kc7zi0{color:var(--main-lighter-textcolor);font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px}@media(min-width: 768px){.Counter.svelte-kc7zi0{display:flex;align-items:center}}")}function la(e){let t,i=e[4]("Displaying %count of %allCount",{values:{count:Ze(e[6].length),allCount:Ze(e[0])}})+"",n;return{c(){t=D("span"),n=te(i),E(t,"class","text svelte-kc7zi0")},m(s,o){C(s,t,o),w(t,n)},p(s,o){o&81&&i!==(i=s[4]("Displaying %count of %allCount",{values:{count:Ze(s[6].length),allCount:Ze(s[0])}})+"")&&ae(n,i)},i:Z,o:Z,d(s){s&&$(t)}}}function aa(e){let t,i=e[4]("Displaying %count of",{values:{count:Ze(e[6].length)}})+"",n,s,o,r;return o=new Gt({props:{onAction:e[13],className:"button-secondary button-small "+(e[1]?"borderless":""),$$slots:{default:[_a]},$$scope:{ctx:e}}}),{c(){t=D("span"),n=te(i),s=J(),F(o.$$.fragment),E(t,"class","text svelte-kc7zi0")},m(l,d){C(l,t,d),w(t,n),C(l,s,d),N(o,l,d),r=!0},p(l,d){(!r||d&80)&&i!==(i=l[4]("Displaying %count of",{values:{count:Ze(l[6].length)}})+"")&&ae(n,i);const u={};d&2&&(u.className="button-secondary button-small "+(l[1]?"borderless":"")),d&262162&&(u.$$scope={dirty:d,ctx:l}),o.$set(u)},i(l){r||(A(o.$$.fragment,l),r=!0)},o(l){I(o.$$.fragment,l),r=!1},d(l){l&&($(t),$(s)),H(o,l)}}}function ua(e){let t,i=e[4]("Loading...")+"",n;return{c(){t=D("span"),n=te(i),E(t,"class","text svelte-kc7zi0")},m(s,o){C(s,t,o),w(t,n)},p(s,o){o&16&&i!==(i=s[4]("Loading...")+"")&&ae(n,i)},i:Z,o:Z,d(s){s&&$(t)}}}function da(e){let t,i=e[4]("%pCount rows selected",{values:{pCount:e[3].length}})+"",n;return{c(){t=D("span"),n=te(i),E(t,"class","Selection svelte-kc7zi0")},m(s,o){C(s,t,o),w(t,n)},p(s,o){o&24&&i!==(i=s[4]("%pCount rows selected",{values:{pCount:s[3].length}})+"")&&ae(n,i)},i:Z,o:Z,d(s){s&&$(t)}}}function ca(e){let t;function i(o,r){return o[3].length===0?ma:fa}let n=i(e),s=n(e);return{c(){t=D("span"),s.c(),E(t,"class","Selection svelte-kc7zi0")},m(o,r){C(o,t,r),s.m(t,null)},p(o,r){n===(n=i(o))&&s?s.p(o,r):(s.d(1),s=n(o),s&&(s.c(),s.m(t,null)))},i:Z,o:Z,d(o){o&&$(t),s.d()}}}function _a(e){let t,i=(e[1]?e[4]("Loading..."):e[4]("many"))+"",n;return{c(){t=D("span"),n=te(i),E(t,"class","many svelte-kc7zi0")},m(s,o){C(s,t,o),w(t,n)},p(s,o){o&18&&i!==(i=(s[1]?s[4]("Loading..."):s[4]("many"))+"")&&ae(n,i)},d(s){s&&$(t)}}}function fa(e){let t=e[4]("all rows selected except %pCount rows",{values:{pCount:e[3].length}})+"",i;return{c(){i=te(t)},m(n,s){C(n,i,s)},p(n,s){s&24&&t!==(t=n[4]("all rows selected except %pCount rows",{values:{pCount:n[3].length}})+"")&&ae(i,t)},d(n){n&&$(i)}}}function ma(e){let t=e[4]("all rows selected")+"",i;return{c(){i=te(t)},m(n,s){C(n,i,s)},p(n,s){s&16&&t!==(t=n[4]("all rows selected")+"")&&ae(i,t)},d(n){n&&$(i)}}}function ha(e){let t,i,n,s;const o=[ca,da,ua,aa,la],r=[];function l(d,u){return d[2]?0:d[3].length>0?1:d[5]?2:d[0]==null?3:4}return i=l(e),n=r[i]=o[i](e),{c(){t=D("div"),n.c(),E(t,"class","Counter svelte-kc7zi0")},m(d,u){C(d,t,u),r[i].m(t,null),s=!0},p(d,[u]){let c=i;i=l(d),i===c?r[i].p(d,u):(Te(),I(r[c],1,1,()=>{r[c]=null}),Le(),n=r[i],n?n.p(d,u):(n=r[i]=o[i](d),n.c()),A(n,1),n.m(t,null))},i(d){s||(A(n),s=!0)},o(d){I(n),s=!1},d(d){d&&$(t),r[i].d()}}}function ga(e,t,i){let n,s,o,r,l,d,u;z(e,Oe,O=>i(4,l=O));let c=null,_=!1;const f=Zt();z(e,f,O=>i(2,o=O));const m=Yt();z(e,m,O=>i(3,r=O));const g=Qt();z(e,g,O=>i(15,s=O));const p=Fe(),v=p.getData();z(e,v,O=>i(6,u=O));const y=p.getFilter();z(e,y,O=>i(14,n=O));const b=p.getLoading();z(e,b,O=>i(5,d=O));function T(){i(0,c=null)}async function L(){i(1,_=!0);let O=await new qt(s).getTicketsGridListCount({filters:n,timezoneOffset:new Date().getTimezoneOffset()});i(0,c=O.count),i(1,_=!1)}return e.$$.update=()=>{e.$$.dirty&16384&&n&&T()},[c,_,o,r,l,d,u,f,m,g,v,y,b,L,n]}class hs extends le{constructor(t){super(),oe(this,t,ga,ha,ne,{},ra)}}re(hs,{},[],[],!0);async function st(e,t,i=!1){if(!(Pe(t.getLoading())||e===void 0)&&(i&&(t.getCursor().set(null),t.getLoaded().set(!1)),!(!Pe(t.getCursor())&&Pe(t.getLoaded())))){t.getLoading().set(!0);try{const s=await(await new qt(e).getTicketsGridDatasetRaw(pa(t))).value();i&&t.getData().set([]),t.getData().set([...Pe(t.getData()),...s.rows]),t.getCursor().set(s.cursor),t.getLoaded().set(!0)}catch(n){t.getError().set(n.toString())}finally{t.getLoading().set(!1)}}}function pa(e){return{perPage:20,sortDir:Pe(e.getSorting()).dir?un.Asc:un.Desc,filters:Pe(e.getFilter()),sortField:Pe(e.getSorting()).sort,cursor:Pe(e.getCursor())?Pe(e.getCursor()):""}}function va(e){me(e,"svelte-75n78x",".custom-checkbox.svelte-75n78x{display:inline-block;position:absolute;top:50%;right:15%;transform:translate(0, -50%);height:16px;width:16px}.hidden-checkbox.svelte-75n78x{display:none}.custom-checkbox-label.svelte-75n78x{position:relative;display:inline-block;width:14px;height:14px;background-color:transparent;border-radius:4px;border:1px solid var(--ticket-border-primary);transition:all .3s ease;cursor:pointer}.custom-checkbox-label.checked.svelte-75n78x,.custom-checkbox-label.indeterminate.svelte-75n78x{background-color:var(--chat-color)}.Checkbox-icon{display:inline-block;position:absolute;top:50%;left:50%;color:white;font-size:16px;transform:translate(-50%, -50%)}")}function Ea(e){let t,i,n,s,o,r,l,d;return o=new De({props:{iconLaClassName:e[0]&&!e[1]?"la-n-checkmark":e[1]?"la-n-line":"",className:"Checkbox-icon"}}),{c(){t=D("div"),i=D("input"),n=J(),s=D("label"),F(o.$$.fragment),E(i,"type","checkbox"),E(i,"id",e[3]),i.__value=e[2],zi(i,i.__value),E(i,"class","hidden-checkbox svelte-75n78x"),E(s,"for",e[3]),E(s,"class","custom-checkbox-label svelte-75n78x"),We(s,"checked",e[0]&&!e[1]),We(s,"indeterminate",e[1]),E(t,"class","custom-checkbox svelte-75n78x")},m(u,c){C(u,t,c),w(t,i),i.checked=e[0],w(t,n),w(t,s),N(o,s,null),r=!0,l||(d=[we(i,"change",e[6]),we(i,"change",e[4])],l=!0)},p(u,[c]){(!r||c&4)&&(i.__value=u[2],zi(i,i.__value)),c&1&&(i.checked=u[0]);const _={};c&3&&(_.iconLaClassName=u[0]&&!u[1]?"la-n-checkmark":u[1]?"la-n-line":""),o.$set(_),(!r||c&3)&&We(s,"checked",u[0]&&!u[1]),(!r||c&2)&&We(s,"indeterminate",u[1])},i(u){r||(A(o.$$.fragment,u),r=!0)},o(u){I(o.$$.fragment,u),r=!1},d(u){u&&$(t),H(o),l=!1,ke(d)}}}function ya(e,t,i){let{onChange:n}=t,{value:s}=t,{checked:o=!1}=t,{indeterminate:r=!1}=t;const l=Rn(),d=`checkbox-${Math.random().toString(36).substring(2,9)}`;function u(_){i(0,o=_.target.checked),l("change",_),n&&n(_)}function c(){o=this.checked,i(0,o)}return e.$$set=_=>{"onChange"in _&&i(5,n=_.onChange),"value"in _&&i(2,s=_.value),"checked"in _&&i(0,o=_.checked),"indeterminate"in _&&i(1,r=_.indeterminate)},e.$$.update=()=>{e.$$.dirty&1&&o&&i(1,r=!1)},[o,r,s,d,u,n,c]}class Vi extends le{constructor(t){super(),oe(this,t,ya,Ea,ne,{onChange:5,value:2,checked:0,indeterminate:1},va)}get onChange(){return this.$$.ctx[5]}set onChange(t){this.$$set({onChange:t}),P()}get value(){return this.$$.ctx[2]}set value(t){this.$$set({value:t}),P()}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),P()}get indeterminate(){return this.$$.ctx[1]}set indeterminate(t){this.$$set({indeterminate:t}),P()}}re(Vi,{onChange:{},value:{},checked:{type:"Boolean"},indeterminate:{type:"Boolean"}},[],[],!0);function ba(e){me(e,"svelte-x4ls8b",`.dropdown.svelte-x4ls8b.svelte-x4ls8b{position:relative;display:inline-block}.dropdown-button.svelte-x4ls8b.svelte-x4ls8b{display:flex;align-items:center;justify-items:center;gap:8px;color:var(--main-lighter-textcolor);background:none;border:none;font-size:13px;font-weight:700;cursor:pointer}.dropdown-menu.svelte-x4ls8b.svelte-x4ls8b{position:absolute;top:100%;left:0;min-width:200px;max-width:280px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--ticket-background-primary);border:none;border-radius:6px;overflow:hidden;z-index:9999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}.DropdownIcon{font-size:16px;color:var(--main-lighter-textcolor)}.radio-option.svelte-x4ls8b input[type="radio"].svelte-x4ls8b{display:none}.radio-option.svelte-x4ls8b.svelte-x4ls8b{display:flex;align-items:center;position:relative;width:100%;padding:6px 10px;color:var(--main-textcolor);cursor:pointer;border-radius:4px;box-sizing:border-box}.radio-option.svelte-x4ls8b.svelte-x4ls8b::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--ticket-border-primary);background-color:white;box-sizing:border-box}.selected.svelte-x4ls8b.svelte-x4ls8b{font-weight:700;background-color:var(--menu-hover-bg)}.selected.svelte-x4ls8b.svelte-x4ls8b::before{border:4px solid var(--chat-color)}.radio-option.svelte-x4ls8b.svelte-x4ls8b:hover{background:var(--menu-hover-bg)}.Title.svelte-x4ls8b.svelte-x4ls8b{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-x4ls8b.svelte-x4ls8b::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}`)}function _n(e,t,i){const n=e.slice();return n[12]=t[i],n}function fn(e){let t,i,n=e[3]("Sort by")+"",s,o,r,l,d=Ne(e[4]),u=[];for(let c=0;c<d.length;c+=1)u[c]=mn(_n(e,d,c));return{c(){t=D("div"),i=D("span"),s=te(n),o=J();for(let c=0;c<u.length;c+=1)u[c].c();E(i,"class","Title svelte-x4ls8b"),E(t,"class","dropdown-menu svelte-x4ls8b")},m(c,_){C(c,t,_),w(t,i),w(i,s),w(t,o);for(let f=0;f<u.length;f+=1)u[f]&&u[f].m(t,null);e[8](t),r||(l=we(t,"click",ci(e[7])),r=!0)},p(c,_){if(_&8&&n!==(n=c[3]("Sort by")+"")&&ae(s,n),_&81){d=Ne(c[4]);let f;for(f=0;f<d.length;f+=1){const m=_n(c,d,f);u[f]?u[f].p(m,_):(u[f]=mn(m),u[f].c(),u[f].m(t,null))}for(;f<u.length;f+=1)u[f].d(1);u.length=d.length}},d(c){c&&$(t),zt(u,c),e[8](null),r=!1,l()}}}function mn(e){let t,i,n,s,o=e[12].label+"",r,l,d,u,c;return{c(){t=D("label"),i=D("input"),s=J(),r=te(o),l=J(),E(i,"type","radio"),E(i,"name","sorting"),i.value=e[12].value,i.checked=n=e[0]&&e[0].value===e[12].value,E(i,"class","svelte-x4ls8b"),E(t,"class",d=ye(e[0]&&e[0].value===e[12].value?"radio-option selected":"radio-option")+" svelte-x4ls8b")},m(_,f){C(_,t,f),w(t,i),w(t,s),w(t,r),w(t,l),u||(c=we(i,"click",e[6]),u=!0)},p(_,f){f&1&&n!==(n=_[0]&&_[0].value===_[12].value)&&(i.checked=n),f&1&&d!==(d=ye(_[0]&&_[0].value===_[12].value?"radio-option selected":"radio-option")+" svelte-x4ls8b")&&E(t,"class",d)},d(_){_&&$(t),u=!1,c()}}}function Ta(e){let t,i,n,s,o=e[3](e[0]?e[0].label:"Select Filter")+"",r,l,d,u,c,_,f;n=new De({props:{iconLaClassName:"la-n-sort",className:"DropdownIcon"}}),d=new De({props:{iconLaClassName:"la-n-arrow_down",className:"DropdownIcon "+(e[1]?"Rotate":"")}});let m=e[1]&&fn(e);return{c(){t=D("div"),i=D("button"),F(n.$$.fragment),s=J(),r=te(o),l=J(),F(d.$$.fragment),u=J(),m&&m.c(),E(i,"class","dropdown-button svelte-x4ls8b"),E(i,"tabindex","0"),E(t,"class","dropdown svelte-x4ls8b")},m(g,p){C(g,t,p),w(t,i),N(n,i,null),w(i,s),w(i,r),w(i,l),N(d,i,null),w(t,u),m&&m.m(t,null),c=!0,_||(f=we(i,"click",e[5]),_=!0)},p(g,[p]){(!c||p&9)&&o!==(o=g[3](g[0]?g[0].label:"Select Filter")+"")&&ae(r,o);const v={};p&2&&(v.className="DropdownIcon "+(g[1]?"Rotate":"")),d.$set(v),g[1]?m?m.p(g,p):(m=fn(g),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i(g){c||(A(n.$$.fragment,g),A(d.$$.fragment,g),c=!0)},o(g){I(n.$$.fragment,g),I(d.$$.fragment,g),c=!1},d(g){g&&$(t),H(n),H(d),m&&m.d(),_=!1,f()}}}function La(e,t,i){let n;z(e,Oe,p=>i(3,n=p));let{sorting:s}=t;const o=Rn();let r=!1,l;const d=[{value:"Datedue",label:n("Importance"),sort:Ke.Datedue,dir:!1},{value:"Created-newest",label:n("Date created - Newest"),sort:Ke.Datecreated,dir:!1},{value:"Created-oldest",label:n("Date created - Oldest"),sort:Ke.Datecreated,dir:!0},{value:"Changed-newest",label:n("Date changed - Newest"),sort:Ke.Datechanged,dir:!1},{value:"Changed-oldest",label:n("Date changed - Oldest"),sort:Ke.Datechanged,dir:!0}];function u(){i(1,r=!r),r?setTimeout(()=>{document.addEventListener("click",_)},0):document.removeEventListener("click",_)}function c(p){const v=d.find(y=>y.value===p.target.value);i(0,s=v),o("filterChange",{option:v}),f()}function _(p){l&&!l.contains(p.target)&&f()}function f(){i(1,r=!1),document.removeEventListener("click",_)}function m(p){xn.call(this,e,p)}function g(p){Qe[p?"unshift":"push"](()=>{l=p,i(2,l)})}return e.$$set=p=>{"sorting"in p&&i(0,s=p.sorting)},[s,r,l,n,d,u,c,m,g]}class gs extends le{constructor(t){super(),oe(this,t,La,Ta,ne,{sorting:0},ba)}get sorting(){return this.$$.ctx[0]}set sorting(t){this.$$set({sorting:t}),P()}}re(gs,{sorting:{}},[],[],!0);function Aa(e){me(e,"svelte-qtb4nj",".Head.svelte-qtb4nj{display:flex;height:100%;max-height:37px;color:var(--panel_text_color);align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--border-primary);padding:0 23px 0 52px}.SpinnerIcon{display:block;height:18px;width:18px}button.svelte-qtb4nj{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-qtb4nj{font-size:16px;cursor:pointer}.rightPanel.svelte-qtb4nj{display:flex;margin-inline-start:auto}.loading.svelte-qtb4nj{animation-name:svelte-qtb4nj-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}.checkbox-wrapper.svelte-qtb4nj{position:relative;display:inline-block;margin-right:16px;margin-left:6px}@keyframes svelte-qtb4nj-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media(min-width: 768px){.checkbox-wrapper.svelte-qtb4nj{margin-right:44px}}")}function wa(e){let t,i,n,s,o,r,l,d,u,c,_,f,m,g,p,v;function y(T){e[20](T)}let b={value:"all",indeterminate:e[0],onChange:e[19]};return e[1]!==void 0&&(b.checked=e[1]),n=new Vi({props:b}),Qe.push(()=>ao(n,"checked",y)),r=new gs({props:{sorting:e[2]}}),r.$on("filterChange",e[21]),u=new hs({}),f=new De({props:{className:"SpinnerIcon",iconLaClassName:"la-refresh"}}),{c(){t=D("div"),i=D("div"),F(n.$$.fragment),o=J(),F(r.$$.fragment),l=J(),d=D("div"),F(u.$$.fragment),c=J(),_=D("button"),F(f.$$.fragment),E(i,"class","checkbox-wrapper svelte-qtb4nj"),E(_,"class","spinner svelte-qtb4nj"),E(_,"title",m=e[5]("Reload")),We(_,"loading",e[3]),E(d,"class","rightPanel svelte-qtb4nj"),E(t,"class","Head svelte-qtb4nj")},m(T,L){C(T,t,L),w(t,i),N(n,i,null),w(t,o),N(r,t,null),w(t,l),w(t,d),N(u,d,null),w(d,c),w(d,_),N(f,_,null),g=!0,p||(v=we(_,"click",e[22]),p=!0)},p(T,[L]){const O={};L&1&&(O.indeterminate=T[0]),!s&&L&2&&(s=!0,O.checked=T[1],so(()=>s=!1)),n.$set(O);const S={};L&4&&(S.sorting=T[2]),r.$set(S),(!g||L&32&&m!==(m=T[5]("Reload")))&&E(_,"title",m),(!g||L&8)&&We(_,"loading",T[3])},i(T){g||(A(n.$$.fragment,T),A(r.$$.fragment,T),A(u.$$.fragment,T),A(f.$$.fragment,T),g=!0)},o(T){I(n.$$.fragment,T),I(r.$$.fragment,T),I(u.$$.fragment,T),I(f.$$.fragment,T),g=!1},d(T){T&&$(t),H(n),H(r),H(u),H(f),p=!1,v()}}}function Oa(e,t,i){let n,s,o,r,l,d,u,c,_;z(e,Oe,G=>i(5,_=G));let f=!1;const m=Zt();z(e,m,G=>i(1,l=G));const g=Yt();z(e,g,G=>i(18,r=G));const p=Ci();z(e,p,G=>i(17,o=G));const v=ei();z(e,v,G=>i(2,d=G));const y=Qt();z(e,y,G=>i(4,c=G));const b=Fe(),T=b.getData();z(e,T,G=>i(24,s=G));const L=b.getLoading();z(e,L,G=>i(3,u=G));const O=b.getLoaded();z(e,O,G=>i(23,n=G));function S(G){let W=G.target.checked||f;m.set(W),T.update(M=>M.map(R=>({...R,__selected:W})))}function _e(G){G.detail.option.value!==d.value&&(v.set(G.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(d)))}g.subscribe(()=>{l&&r.length===o&&s.filter(G=>G.__selected).length===0&&(m.set(!1),g.set([]))}),O.subscribe(()=>{n||(m.set(!1),g.set([]))});const j=G=>S(G);function he(G){l=G,m.set(l)}const se=G=>_e(G),q=()=>st(c,b,!0);return e.$$.update=()=>{if(e.$$.dirty&393216){const G=r.length;i(0,f=G>0&&G<o)}},[f,l,d,u,c,_,m,g,p,v,y,b,T,L,O,S,_e,o,r,j,he,se,q]}class ps extends le{constructor(t){super(),oe(this,t,Oa,wa,ne,{},Aa)}}re(ps,{},[],[],!0);const Ia={A:"answered",T:"chat",P:"phone",X:"deleted",B:"deleted",I:"deleted",R:"resolved",N:"new",C:"open",W:"postponed",L:"closed"};function Se(e){const t=Ia[e];return t?{bg:`var(--ticket-status-${t}-background)`,text:`var(--ticket-status-${t}-text)`,border:`var(--ticket-status-${t}-border)`,line:`var(--ticket-status-${t}-line)`}:{bg:"",text:"",border:"",line:""}}const Ra=()=>{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]},Da=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 xa(e){me(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 Pa(e){let t;return{c(){t=D("div"),t.textContent=`${e[10]}`,E(t,"class","innerInitials svelte-hbozhk")},m(i,n){C(i,t,n)},p:Z,d(i){i&&$(t)}}}function ka(e){let t,i,n,s,o,r;return{c(){t=D("div"),i=D("img"),E(i,"alt",""),E(i,"class",ye("innerImage")+" svelte-hbozhk"),Ht(i.src,n=e[2])||E(i,"src",n),E(t,"class",s=ye(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(l,d){C(l,t,d),w(t,i),o||(r=[we(i,"error",e[15]),we(i,"load",e[16])],o=!0)},p(l,d){d&4&&!Ht(i.src,n=l[2])&&E(i,"src",n),d&256&&s!==(s=ye(l[8]?"imageLoading":"")+" svelte-hbozhk")&&E(t,"class",s)},d(l){l&&$(t),o=!1,ke(r)}}}function $a(e){let t,i;function n(r,l){return r[2]&&!r[7]?ka:Pa}let s=n(e),o=s(e);return{c(){t=D("div"),o.c(),E(t,"aria-label",e[1]),E(t,"class","wrapper svelte-hbozhk"),E(t,"style",i=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(r,l){C(r,t,l),o.m(t,null)},p(r,[l]){s===(s=n(r))&&o?o.p(r,l):(o.d(1),o=s(r),o&&(o.c(),o.m(t,null))),l&2&&E(t,"aria-label",r[1]),l&125&&i!==(i=r[0]+"--borderRadius:"+(r[6]?0:r[5])+"; --size:"+r[4]+"; --bgColor:"+r[9]+"; --src:"+r[2]+"; --textColor:"+r[3]+"; --abbrLength:"+r[11])&&E(t,"style",i)},i:Z,o:Z,d(r){r&&$(t),o.d()}}}function Ca(e,t,i){let{style:n=""}=t,{name:s="Avatar"}=t,{initials:o}=t,{src:r}=t,{bgColor:l="lightGrey"}=t,{textColor:d="white"}=t,{size:u="50px"}=t,{borderRadius:c="50%"}=t,{square:_=!1}=t,{randomBgColor:f=!1}=t;const m=f?Ra():l,g=o||Da(s),p=g.length;let v=!1,y=!0;const b=()=>i(7,v=!0),T=()=>i(8,y=!1);return e.$$set=L=>{"style"in L&&i(0,n=L.style),"name"in L&&i(1,s=L.name),"initials"in L&&i(12,o=L.initials),"src"in L&&i(2,r=L.src),"bgColor"in L&&i(13,l=L.bgColor),"textColor"in L&&i(3,d=L.textColor),"size"in L&&i(4,u=L.size),"borderRadius"in L&&i(5,c=L.borderRadius),"square"in L&&i(6,_=L.square),"randomBgColor"in L&&i(14,f=L.randomBgColor)},[n,s,r,d,u,c,_,v,y,m,g,p,o,l,f,b,T]}class vs extends le{constructor(t){super(),oe(this,t,Ca,$a,ne,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},xa)}get style(){return this.$$.ctx[0]}set style(t){this.$$set({style:t}),P()}get name(){return this.$$.ctx[1]}set name(t){this.$$set({name:t}),P()}get initials(){return this.$$.ctx[12]}set initials(t){this.$$set({initials:t}),P()}get src(){return this.$$.ctx[2]}set src(t){this.$$set({src:t}),P()}get bgColor(){return this.$$.ctx[13]}set bgColor(t){this.$$set({bgColor:t}),P()}get textColor(){return this.$$.ctx[3]}set textColor(t){this.$$set({textColor:t}),P()}get size(){return this.$$.ctx[4]}set size(t){this.$$set({size:t}),P()}get borderRadius(){return this.$$.ctx[5]}set borderRadius(t){this.$$set({borderRadius:t}),P()}get square(){return this.$$.ctx[6]}set square(t){this.$$set({square:t}),P()}get randomBgColor(){return this.$$.ctx[14]}set randomBgColor(t){this.$$set({randomBgColor:t}),P()}}re(vs,{style:{},name:{},initials:{},src:{},bgColor:{},textColor:{},size:{},borderRadius:{},square:{type:"Boolean"},randomBgColor:{type:"Boolean"}},[],[],!0);function Sa(e){let t=0;for(let i=0;i<e.length;i++)t=Math.imul(31,t)+e.charCodeAt(i)|0;return t}var Es={exports:{}},ys={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(i,n){return i<<n|i>>>32-n},rotr:function(i,n){return i<<32-n|i>>>n},endian:function(i){if(i.constructor==Number)return t.rotl(i,8)&16711935|t.rotl(i,24)&4278255360;for(var n=0;n<i.length;n++)i[n]=t.endian(i[n]);return i},randomBytes:function(i){for(var n=[];i>0;i--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(i){for(var n=[],s=0,o=0;s<i.length;s++,o+=8)n[o>>>5]|=i[s]<<24-o%32;return n},wordsToBytes:function(i){for(var n=[],s=0;s<i.length*32;s+=8)n.push(i[s>>>5]>>>24-s%32&255);return n},bytesToHex:function(i){for(var n=[],s=0;s<i.length;s++)n.push((i[s]>>>4).toString(16)),n.push((i[s]&15).toString(16));return n.join("")},hexToBytes:function(i){for(var n=[],s=0;s<i.length;s+=2)n.push(parseInt(i.substr(s,2),16));return n},bytesToBase64:function(i){for(var n=[],s=0;s<i.length;s+=3)for(var o=i[s]<<16|i[s+1]<<8|i[s+2],r=0;r<4;r++)s*8+r*6<=i.length*8?n.push(e.charAt(o>>>6*(3-r)&63)):n.push("=");return n.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],s=0,o=0;s<i.length;o=++s%4)o!=0&&n.push((e.indexOf(i.charAt(s-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(i.charAt(s))>>>6-o*2);return n}};ys.exports=t})();var Va=ys.exports,Ai={utf8:{stringToBytes:function(e){return Ai.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Ai.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e.charCodeAt(i)&255);return t},bytesToString:function(e){for(var t=[],i=0;i<e.length;i++)t.push(String.fromCharCode(e[i]));return t.join("")}}},hn=Ai;/*!
|
|
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 Na=function(e){return e!=null&&(bs(e)||Ha(e)||!!e._isBuffer)};function bs(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ha(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&bs(e.slice(0,0))}(function(){var e=Va,t=hn.utf8,i=Na,n=hn.bin,s=function(r,o){r.constructor==String?o&&o.encoding==="binary"?r=n.stringToBytes(r):r=t.stringToBytes(r):i(r)?r=Array.prototype.slice.call(r,0):!Array.isArray(r)&&r.constructor!==Uint8Array&&(r=r.toString());for(var l=e.bytesToWords(r),d=r.length*8,u=1732584193,c=-271733879,_=-1732584194,f=271733878,m=0;m<l.length;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360;l[d>>>5]|=128<<d%32,l[(d+64>>>9<<4)+14]=d;for(var g=s._ff,v=s._gg,L=s._hh,p=s._ii,m=0;m<l.length;m+=16){var E=u,T=c,A=_,O=f;u=g(u,c,_,f,l[m+0],7,-680876936),f=g(f,u,c,_,l[m+1],12,-389564586),_=g(_,f,u,c,l[m+2],17,606105819),c=g(c,_,f,u,l[m+3],22,-1044525330),u=g(u,c,_,f,l[m+4],7,-176418897),f=g(f,u,c,_,l[m+5],12,1200080426),_=g(_,f,u,c,l[m+6],17,-1473231341),c=g(c,_,f,u,l[m+7],22,-45705983),u=g(u,c,_,f,l[m+8],7,1770035416),f=g(f,u,c,_,l[m+9],12,-1958414417),_=g(_,f,u,c,l[m+10],17,-42063),c=g(c,_,f,u,l[m+11],22,-1990404162),u=g(u,c,_,f,l[m+12],7,1804603682),f=g(f,u,c,_,l[m+13],12,-40341101),_=g(_,f,u,c,l[m+14],17,-1502002290),c=g(c,_,f,u,l[m+15],22,1236535329),u=v(u,c,_,f,l[m+1],5,-165796510),f=v(f,u,c,_,l[m+6],9,-1069501632),_=v(_,f,u,c,l[m+11],14,643717713),c=v(c,_,f,u,l[m+0],20,-373897302),u=v(u,c,_,f,l[m+5],5,-701558691),f=v(f,u,c,_,l[m+10],9,38016083),_=v(_,f,u,c,l[m+15],14,-660478335),c=v(c,_,f,u,l[m+4],20,-405537848),u=v(u,c,_,f,l[m+9],5,568446438),f=v(f,u,c,_,l[m+14],9,-1019803690),_=v(_,f,u,c,l[m+3],14,-187363961),c=v(c,_,f,u,l[m+8],20,1163531501),u=v(u,c,_,f,l[m+13],5,-1444681467),f=v(f,u,c,_,l[m+2],9,-51403784),_=v(_,f,u,c,l[m+7],14,1735328473),c=v(c,_,f,u,l[m+12],20,-1926607734),u=L(u,c,_,f,l[m+5],4,-378558),f=L(f,u,c,_,l[m+8],11,-2022574463),_=L(_,f,u,c,l[m+11],16,1839030562),c=L(c,_,f,u,l[m+14],23,-35309556),u=L(u,c,_,f,l[m+1],4,-1530992060),f=L(f,u,c,_,l[m+4],11,1272893353),_=L(_,f,u,c,l[m+7],16,-155497632),c=L(c,_,f,u,l[m+10],23,-1094730640),u=L(u,c,_,f,l[m+13],4,681279174),f=L(f,u,c,_,l[m+0],11,-358537222),_=L(_,f,u,c,l[m+3],16,-722521979),c=L(c,_,f,u,l[m+6],23,76029189),u=L(u,c,_,f,l[m+9],4,-640364487),f=L(f,u,c,_,l[m+12],11,-421815835),_=L(_,f,u,c,l[m+15],16,530742520),c=L(c,_,f,u,l[m+2],23,-995338651),u=p(u,c,_,f,l[m+0],6,-198630844),f=p(f,u,c,_,l[m+7],10,1126891415),_=p(_,f,u,c,l[m+14],15,-1416354905),c=p(c,_,f,u,l[m+5],21,-57434055),u=p(u,c,_,f,l[m+12],6,1700485571),f=p(f,u,c,_,l[m+3],10,-1894986606),_=p(_,f,u,c,l[m+10],15,-1051523),c=p(c,_,f,u,l[m+1],21,-2054922799),u=p(u,c,_,f,l[m+8],6,1873313359),f=p(f,u,c,_,l[m+15],10,-30611744),_=p(_,f,u,c,l[m+6],15,-1560198380),c=p(c,_,f,u,l[m+13],21,1309151649),u=p(u,c,_,f,l[m+4],6,-145523070),f=p(f,u,c,_,l[m+11],10,-1120210379),_=p(_,f,u,c,l[m+2],15,718787259),c=p(c,_,f,u,l[m+9],21,-343485551),u=u+E>>>0,c=c+T>>>0,_=_+A>>>0,f=f+O>>>0}return e.endian([u,c,_,f])};s._ff=function(r,o,l,d,u,c,_){var f=r+(o&l|~o&d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._gg=function(r,o,l,d,u,c,_){var f=r+(o&d|l&~d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._hh=function(r,o,l,d,u,c,_){var f=r+(o^l^d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._ii=function(r,o,l,d,u,c,_){var f=r+(l^(o|~d))+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._blocksize=16,s._digestsize=16,Es.exports=function(r,o){if(r==null)throw new Error("Illegal argument "+r);var l=e.wordsToBytes(s(r,o));return o&&o.asBytes?l:o&&o.asString?n.bytesToString(l):e.bytesToHex(l)}})();var Ma=Es.exports;const Ba=Ut(Ma);function Fa(e){_e(e,"svelte-1lioxcq",".avatar.svelte-1lioxcq{display:none}.flag-icon.svelte-1lioxcq{display:none}.innerInitials{font-size:24px !important}@media(min-width: 900px){.avatar.svelte-1lioxcq{position:relative;display:flex;align-items:center;justify-content:center;margin-right:10px;width:40px;height:40px}.flag-icon.svelte-1lioxcq{position:absolute;right:0;bottom:7px;display:flex;width:14px;height:14px}}")}function gn(e){let t,i;const n=[e[1],{size:"40px"}];let s={};for(let r=0;r<n.length;r+=1)s=Et(s,n[r]);return t=new vs({props:s}),{c(){F(t.$$.fragment)},m(r,o){H(t,r,o),i=!0},p(r,o){const l=o&2?Pn(n,[lr(r[1]),n[1]]):{};t.$set(l)},i(r){i||(w(t.$$.fragment,r),i=!0)},o(r){D(t.$$.fragment,r),i=!1},d(r){M(t,r)}}}function pn(e){let t,i,n;var s=e[0];function r(o,l){return{props:{size:"30"}}}return s&&(i=zi(s,r())),{c(){t=x("div"),i&&F(i.$$.fragment),y(t,"class","flag-icon svelte-1lioxcq")},m(o,l){S(o,t,l),i&&H(i,t,null),n=!0},p(o,l){if(l&1&&s!==(s=o[0])){if(i){be();const d=i;D(d.$$.fragment,1,0,()=>{M(d,1)}),Te()}s?(i=zi(s,r()),F(i.$$.fragment),w(i.$$.fragment,1),H(i,t,null)):i=null}},i(o){n||(i&&w(i.$$.fragment,o),n=!0)},o(o){i&&D(i.$$.fragment,o),n=!1},d(o){o&&$(t),i&&M(i)}}}function Ga(e){let t,i=e[1].name,n,s,r=gn(e),o=e[0]!==null&&pn(e);return{c(){t=x("div"),r.c(),n=K(),o&&o.c(),y(t,"class","avatar svelte-1lioxcq")},m(l,d){S(l,t,d),r.m(t,null),I(t,n),o&&o.m(t,null),s=!0},p(l,[d]){d&2&&te(i,i=l[1].name)?(be(),D(r,1,1,X),Te(),r=gn(l),r.c(),w(r,1),r.m(t,n)):r.p(l,d),l[0]!==null?o?(o.p(l,d),d&1&&w(o,1)):(o=pn(l),o.c(),w(o,1),o.m(t,null)):o&&(be(),D(o,1,1,()=>{o=null}),Te())},i(l){s||(w(r),w(o),s=!0)},o(l){D(r),D(o),s=!1},d(l){l&&$(t),r.d(l),o&&o.d()}}}function ja(e,t){return e?e[0].toUpperCase():t?t[0].toUpperCase():"?"}function za(e,t,i,n){return`${e||""} ${t||""}`.trim()||n||i}function Ua(e,t,i){let n,{row:s}=t,r=null;Rt(()=>{l(s.countrycode)});function o(u,c){let _=u;return _||(_="https://www.gravatar.com/avatar/"+Ba(c[0]??"")+"?s=200&d=404"),_}function l(u){if(u!=null&&u!==""&&u.length===2){const _="/node_modules/svelte-flag-icons/dist/"+(u[0].toUpperCase()+u[1].toLowerCase())+".svelte",f=Object.assign({"/node_modules/svelte-flag-icons/dist/Ac.svelte":()=>a(()=>import("./Ac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ad.svelte":()=>a(()=>import("./Ad.js"),[]),"/node_modules/svelte-flag-icons/dist/Ae.svelte":()=>a(()=>import("./Ae.js"),[]),"/node_modules/svelte-flag-icons/dist/Af.svelte":()=>a(()=>import("./Af2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ag.svelte":()=>a(()=>import("./Ag.js"),[]),"/node_modules/svelte-flag-icons/dist/Ai.svelte":()=>a(()=>import("./Ai.js"),[]),"/node_modules/svelte-flag-icons/dist/Al.svelte":()=>a(()=>import("./Al.js"),[]),"/node_modules/svelte-flag-icons/dist/Am.svelte":()=>a(()=>import("./Am2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ao.svelte":()=>a(()=>import("./Ao.js"),[]),"/node_modules/svelte-flag-icons/dist/Aq.svelte":()=>a(()=>import("./Aq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ar.svelte":()=>a(()=>import("./Ar2.js"),[]),"/node_modules/svelte-flag-icons/dist/Arab.svelte":()=>a(()=>import("./Arab.js"),[]),"/node_modules/svelte-flag-icons/dist/As.svelte":()=>a(()=>import("./As.js"),[]),"/node_modules/svelte-flag-icons/dist/At.svelte":()=>a(()=>import("./At.js"),[]),"/node_modules/svelte-flag-icons/dist/Au.svelte":()=>a(()=>import("./Au.js"),[]),"/node_modules/svelte-flag-icons/dist/Aw.svelte":()=>a(()=>import("./Aw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ax.svelte":()=>a(()=>import("./Ax.js"),[]),"/node_modules/svelte-flag-icons/dist/Az.svelte":()=>a(()=>import("./Az2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ba.svelte":()=>a(()=>import("./Ba.js"),[]),"/node_modules/svelte-flag-icons/dist/Bb.svelte":()=>a(()=>import("./Bb.js"),[]),"/node_modules/svelte-flag-icons/dist/Bd.svelte":()=>a(()=>import("./Bd.js"),[]),"/node_modules/svelte-flag-icons/dist/Be.svelte":()=>a(()=>import("./Be2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bf.svelte":()=>a(()=>import("./Bf.js"),[]),"/node_modules/svelte-flag-icons/dist/Bg.svelte":()=>a(()=>import("./Bg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bh.svelte":()=>a(()=>import("./Bh.js"),[]),"/node_modules/svelte-flag-icons/dist/Bi.svelte":()=>a(()=>import("./Bi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bj.svelte":()=>a(()=>import("./Bj.js"),[]),"/node_modules/svelte-flag-icons/dist/Bl.svelte":()=>a(()=>import("./Bl.js"),[]),"/node_modules/svelte-flag-icons/dist/Bm.svelte":()=>a(()=>import("./Bm2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bn.svelte":()=>a(()=>import("./Bn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bo.svelte":()=>a(()=>import("./Bo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bq.svelte":()=>a(()=>import("./Bq.js"),[]),"/node_modules/svelte-flag-icons/dist/Br.svelte":()=>a(()=>import("./Br2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bs.svelte":()=>a(()=>import("./Bs2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bt.svelte":()=>a(()=>import("./Bt.js"),[]),"/node_modules/svelte-flag-icons/dist/Bv.svelte":()=>a(()=>import("./Bv.js"),[]),"/node_modules/svelte-flag-icons/dist/Bw.svelte":()=>a(()=>import("./Bw.js"),[]),"/node_modules/svelte-flag-icons/dist/By.svelte":()=>a(()=>import("./By.js"),[]),"/node_modules/svelte-flag-icons/dist/Bz.svelte":()=>a(()=>import("./Bz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ca.svelte":()=>a(()=>import("./Ca2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cc.svelte":()=>a(()=>import("./Cc.js"),[]),"/node_modules/svelte-flag-icons/dist/Cd.svelte":()=>a(()=>import("./Cd.js"),[]),"/node_modules/svelte-flag-icons/dist/Cefta.svelte":()=>a(()=>import("./Cefta.js"),[]),"/node_modules/svelte-flag-icons/dist/Cf.svelte":()=>a(()=>import("./Cf.js"),[]),"/node_modules/svelte-flag-icons/dist/Cg.svelte":()=>a(()=>import("./Cg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ch.svelte":()=>a(()=>import("./Ch.js"),[]),"/node_modules/svelte-flag-icons/dist/Ci.svelte":()=>a(()=>import("./Ci.js"),[]),"/node_modules/svelte-flag-icons/dist/Ck.svelte":()=>a(()=>import("./Ck.js"),[]),"/node_modules/svelte-flag-icons/dist/Cl.svelte":()=>a(()=>import("./Cl.js"),[]),"/node_modules/svelte-flag-icons/dist/Cm.svelte":()=>a(()=>import("./Cm.js"),[]),"/node_modules/svelte-flag-icons/dist/Cn.svelte":()=>a(()=>import("./Cn.js"),[]),"/node_modules/svelte-flag-icons/dist/Co.svelte":()=>a(()=>import("./Co.js"),[]),"/node_modules/svelte-flag-icons/dist/Cp.svelte":()=>a(()=>import("./Cp.js"),[]),"/node_modules/svelte-flag-icons/dist/Cr.svelte":()=>a(()=>import("./Cr.js"),[]),"/node_modules/svelte-flag-icons/dist/Cu.svelte":()=>a(()=>import("./Cu.js"),[]),"/node_modules/svelte-flag-icons/dist/Cv.svelte":()=>a(()=>import("./Cv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cw.svelte":()=>a(()=>import("./Cw.js"),[]),"/node_modules/svelte-flag-icons/dist/Cx.svelte":()=>a(()=>import("./Cx.js"),[]),"/node_modules/svelte-flag-icons/dist/Cy.svelte":()=>a(()=>import("./Cy2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cz.svelte":()=>a(()=>import("./Cz.js"),[]),"/node_modules/svelte-flag-icons/dist/De.svelte":()=>a(()=>import("./De2.js"),[]),"/node_modules/svelte-flag-icons/dist/Dg.svelte":()=>a(()=>import("./Dg.js"),[]),"/node_modules/svelte-flag-icons/dist/Dj.svelte":()=>a(()=>import("./Dj.js"),[]),"/node_modules/svelte-flag-icons/dist/Dk.svelte":()=>a(()=>import("./Dk.js"),[]),"/node_modules/svelte-flag-icons/dist/Dm.svelte":()=>a(()=>import("./Dm.js"),[]),"/node_modules/svelte-flag-icons/dist/Do.svelte":()=>a(()=>import("./Do.js"),[]),"/node_modules/svelte-flag-icons/dist/Dz.svelte":()=>a(()=>import("./Dz.js"),[]),"/node_modules/svelte-flag-icons/dist/Eac.svelte":()=>a(()=>import("./Eac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ec.svelte":()=>a(()=>import("./Ec.js"),[]),"/node_modules/svelte-flag-icons/dist/Ee.svelte":()=>a(()=>import("./Ee.js"),[]),"/node_modules/svelte-flag-icons/dist/Eg.svelte":()=>a(()=>import("./Eg.js"),[]),"/node_modules/svelte-flag-icons/dist/Eh.svelte":()=>a(()=>import("./Eh.js"),[]),"/node_modules/svelte-flag-icons/dist/Er.svelte":()=>a(()=>import("./Er.js"),[]),"/node_modules/svelte-flag-icons/dist/Es.svelte":()=>a(()=>import("./Es2.js"),[]),"/node_modules/svelte-flag-icons/dist/EsCt.svelte":()=>a(()=>import("./EsCt.js"),[]),"/node_modules/svelte-flag-icons/dist/EsGa.svelte":()=>a(()=>import("./EsGa.js"),[]),"/node_modules/svelte-flag-icons/dist/EsPv.svelte":()=>a(()=>import("./EsPv.js"),[]),"/node_modules/svelte-flag-icons/dist/Et.svelte":()=>a(()=>import("./Et2.js"),[]),"/node_modules/svelte-flag-icons/dist/Eu.svelte":()=>a(()=>import("./Eu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fi.svelte":()=>a(()=>import("./Fi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fj.svelte":()=>a(()=>import("./Fj.js"),[]),"/node_modules/svelte-flag-icons/dist/Fk.svelte":()=>a(()=>import("./Fk.js"),[]),"/node_modules/svelte-flag-icons/dist/Fm.svelte":()=>a(()=>import("./Fm.js"),[]),"/node_modules/svelte-flag-icons/dist/Fo.svelte":()=>a(()=>import("./Fo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fr.svelte":()=>a(()=>import("./Fr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ga.svelte":()=>a(()=>import("./Ga2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gb.svelte":()=>a(()=>import("./Gb.js"),[]),"/node_modules/svelte-flag-icons/dist/GbEng.svelte":()=>a(()=>import("./GbEng.js"),[]),"/node_modules/svelte-flag-icons/dist/GbNir.svelte":()=>a(()=>import("./GbNir.js"),[]),"/node_modules/svelte-flag-icons/dist/GbSct.svelte":()=>a(()=>import("./GbSct.js"),[]),"/node_modules/svelte-flag-icons/dist/GbWls.svelte":()=>a(()=>import("./GbWls.js"),[]),"/node_modules/svelte-flag-icons/dist/Gd.svelte":()=>a(()=>import("./Gd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ge.svelte":()=>a(()=>import("./Ge.js"),[]),"/node_modules/svelte-flag-icons/dist/Gf.svelte":()=>a(()=>import("./Gf.js"),[]),"/node_modules/svelte-flag-icons/dist/Gg.svelte":()=>a(()=>import("./Gg.js"),[]),"/node_modules/svelte-flag-icons/dist/Gh.svelte":()=>a(()=>import("./Gh.js"),[]),"/node_modules/svelte-flag-icons/dist/Gi.svelte":()=>a(()=>import("./Gi.js"),[]),"/node_modules/svelte-flag-icons/dist/Gl.svelte":()=>a(()=>import("./Gl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gm.svelte":()=>a(()=>import("./Gm.js"),[]),"/node_modules/svelte-flag-icons/dist/Gn.svelte":()=>a(()=>import("./Gn.js"),[]),"/node_modules/svelte-flag-icons/dist/Gp.svelte":()=>a(()=>import("./Gp.js"),[]),"/node_modules/svelte-flag-icons/dist/Gq.svelte":()=>a(()=>import("./Gq.js"),[]),"/node_modules/svelte-flag-icons/dist/Gr.svelte":()=>a(()=>import("./Gr.js"),[]),"/node_modules/svelte-flag-icons/dist/Gs.svelte":()=>a(()=>import("./Gs.js"),[]),"/node_modules/svelte-flag-icons/dist/Gt.svelte":()=>a(()=>import("./Gt.js"),[]),"/node_modules/svelte-flag-icons/dist/Gu.svelte":()=>a(()=>import("./Gu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gw.svelte":()=>a(()=>import("./Gw.js"),[]),"/node_modules/svelte-flag-icons/dist/Gy.svelte":()=>a(()=>import("./Gy.js"),[]),"/node_modules/svelte-flag-icons/dist/Hk.svelte":()=>a(()=>import("./Hk.js"),[]),"/node_modules/svelte-flag-icons/dist/Hm.svelte":()=>a(()=>import("./Hm.js"),[]),"/node_modules/svelte-flag-icons/dist/Hn.svelte":()=>a(()=>import("./Hn.js"),[]),"/node_modules/svelte-flag-icons/dist/Hr.svelte":()=>a(()=>import("./Hr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ht.svelte":()=>a(()=>import("./Ht2.js"),[]),"/node_modules/svelte-flag-icons/dist/Hu.svelte":()=>a(()=>import("./Hu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ic.svelte":()=>a(()=>import("./Ic.js"),[]),"/node_modules/svelte-flag-icons/dist/Icon.svelte":()=>a(()=>import("./Icon.js"),[]),"/node_modules/svelte-flag-icons/dist/Id.svelte":()=>a(()=>import("./Id2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ie.svelte":()=>a(()=>import("./Ie.js"),[]),"/node_modules/svelte-flag-icons/dist/Il.svelte":()=>a(()=>import("./Il.js"),[]),"/node_modules/svelte-flag-icons/dist/Im.svelte":()=>a(()=>import("./Im.js"),[]),"/node_modules/svelte-flag-icons/dist/In.svelte":()=>a(()=>import("./In.js"),[]),"/node_modules/svelte-flag-icons/dist/Io.svelte":()=>a(()=>import("./Io.js"),[]),"/node_modules/svelte-flag-icons/dist/Iq.svelte":()=>a(()=>import("./Iq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ir.svelte":()=>a(()=>import("./Ir.js"),[]),"/node_modules/svelte-flag-icons/dist/Is.svelte":()=>a(()=>import("./Is2.js"),[]),"/node_modules/svelte-flag-icons/dist/It.svelte":()=>a(()=>import("./It2.js"),[]),"/node_modules/svelte-flag-icons/dist/Je.svelte":()=>a(()=>import("./Je.js"),[]),"/node_modules/svelte-flag-icons/dist/Jm.svelte":()=>a(()=>import("./Jm.js"),[]),"/node_modules/svelte-flag-icons/dist/Jo.svelte":()=>a(()=>import("./Jo.js"),[]),"/node_modules/svelte-flag-icons/dist/Jp.svelte":()=>a(()=>import("./Jp.js"),[]),"/node_modules/svelte-flag-icons/dist/Ke.svelte":()=>a(()=>import("./Ke.js"),[]),"/node_modules/svelte-flag-icons/dist/Kg.svelte":()=>a(()=>import("./Kg.js"),[]),"/node_modules/svelte-flag-icons/dist/Kh.svelte":()=>a(()=>import("./Kh.js"),[]),"/node_modules/svelte-flag-icons/dist/Ki.svelte":()=>a(()=>import("./Ki.js"),[]),"/node_modules/svelte-flag-icons/dist/Km.svelte":()=>a(()=>import("./Km2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kn.svelte":()=>a(()=>import("./Kn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kp.svelte":()=>a(()=>import("./Kp.js"),[]),"/node_modules/svelte-flag-icons/dist/Kr.svelte":()=>a(()=>import("./Kr.js"),[]),"/node_modules/svelte-flag-icons/dist/Kw.svelte":()=>a(()=>import("./Kw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ky.svelte":()=>a(()=>import("./Ky2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kz.svelte":()=>a(()=>import("./Kz.js"),[]),"/node_modules/svelte-flag-icons/dist/La.svelte":()=>a(()=>import("./La.js"),[]),"/node_modules/svelte-flag-icons/dist/Lb.svelte":()=>a(()=>import("./Lb2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lc.svelte":()=>a(()=>import("./Lc.js"),[]),"/node_modules/svelte-flag-icons/dist/Li.svelte":()=>a(()=>import("./Li.js"),[]),"/node_modules/svelte-flag-icons/dist/Lk.svelte":()=>a(()=>import("./Lk.js"),[]),"/node_modules/svelte-flag-icons/dist/Lr.svelte":()=>a(()=>import("./Lr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ls.svelte":()=>a(()=>import("./Ls.js"),[]),"/node_modules/svelte-flag-icons/dist/Lt.svelte":()=>a(()=>import("./Lt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lu.svelte":()=>a(()=>import("./Lu.js"),[]),"/node_modules/svelte-flag-icons/dist/Lv.svelte":()=>a(()=>import("./Lv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ly.svelte":()=>a(()=>import("./Ly.js"),[]),"/node_modules/svelte-flag-icons/dist/Ma.svelte":()=>a(()=>import("./Ma.js"),[]),"/node_modules/svelte-flag-icons/dist/Mc.svelte":()=>a(()=>import("./Mc.js"),[]),"/node_modules/svelte-flag-icons/dist/Md.svelte":()=>a(()=>import("./Md.js"),[]),"/node_modules/svelte-flag-icons/dist/Me.svelte":()=>a(()=>import("./Me2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mf.svelte":()=>a(()=>import("./Mf.js"),[]),"/node_modules/svelte-flag-icons/dist/Mg.svelte":()=>a(()=>import("./Mg.js"),[]),"/node_modules/svelte-flag-icons/dist/Mh.svelte":()=>a(()=>import("./Mh.js"),[]),"/node_modules/svelte-flag-icons/dist/Mk.svelte":()=>a(()=>import("./Mk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ml.svelte":()=>a(()=>import("./Ml2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mm.svelte":()=>a(()=>import("./Mm.js"),[]),"/node_modules/svelte-flag-icons/dist/Mn.svelte":()=>a(()=>import("./Mn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mo.svelte":()=>a(()=>import("./Mo.js"),[]),"/node_modules/svelte-flag-icons/dist/Mp.svelte":()=>a(()=>import("./Mp.js"),[]),"/node_modules/svelte-flag-icons/dist/Mq.svelte":()=>a(()=>import("./Mq.js"),[]),"/node_modules/svelte-flag-icons/dist/Mr.svelte":()=>a(()=>import("./Mr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ms.svelte":()=>a(()=>import("./Ms2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mt.svelte":()=>a(()=>import("./Mt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mu.svelte":()=>a(()=>import("./Mu.js"),[]),"/node_modules/svelte-flag-icons/dist/Mv.svelte":()=>a(()=>import("./Mv.js"),[]),"/node_modules/svelte-flag-icons/dist/Mw.svelte":()=>a(()=>import("./Mw.js"),[]),"/node_modules/svelte-flag-icons/dist/Mx.svelte":()=>a(()=>import("./Mx.js"),[]),"/node_modules/svelte-flag-icons/dist/My.svelte":()=>a(()=>import("./My2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mz.svelte":()=>a(()=>import("./Mz.js"),[]),"/node_modules/svelte-flag-icons/dist/Na.svelte":()=>a(()=>import("./Na.js"),[]),"/node_modules/svelte-flag-icons/dist/Nc.svelte":()=>a(()=>import("./Nc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ne.svelte":()=>a(()=>import("./Ne2.js"),[]),"/node_modules/svelte-flag-icons/dist/Nf.svelte":()=>a(()=>import("./Nf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ng.svelte":()=>a(()=>import("./Ng.js"),[]),"/node_modules/svelte-flag-icons/dist/Ni.svelte":()=>a(()=>import("./Ni.js"),[]),"/node_modules/svelte-flag-icons/dist/Nl.svelte":()=>a(()=>import("./Nl2.js"),[]),"/node_modules/svelte-flag-icons/dist/No.svelte":()=>a(()=>import("./No.js"),[]),"/node_modules/svelte-flag-icons/dist/Np.svelte":()=>a(()=>import("./Np.js"),[]),"/node_modules/svelte-flag-icons/dist/Nr.svelte":()=>a(()=>import("./Nr.js"),[]),"/node_modules/svelte-flag-icons/dist/Nu.svelte":()=>a(()=>import("./Nu.js"),[]),"/node_modules/svelte-flag-icons/dist/Nz.svelte":()=>a(()=>import("./Nz.js"),[]),"/node_modules/svelte-flag-icons/dist/Om.svelte":()=>a(()=>import("./Om.js"),[]),"/node_modules/svelte-flag-icons/dist/Pa.svelte":()=>a(()=>import("./Pa.js"),[]),"/node_modules/svelte-flag-icons/dist/Pe.svelte":()=>a(()=>import("./Pe.js"),[]),"/node_modules/svelte-flag-icons/dist/Pf.svelte":()=>a(()=>import("./Pf.js"),[]),"/node_modules/svelte-flag-icons/dist/Pg.svelte":()=>a(()=>import("./Pg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ph.svelte":()=>a(()=>import("./Ph.js"),[]),"/node_modules/svelte-flag-icons/dist/Pk.svelte":()=>a(()=>import("./Pk.js"),[]),"/node_modules/svelte-flag-icons/dist/Pl.svelte":()=>a(()=>import("./Pl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pm.svelte":()=>a(()=>import("./Pm.js"),[]),"/node_modules/svelte-flag-icons/dist/Pn.svelte":()=>a(()=>import("./Pn.js"),[]),"/node_modules/svelte-flag-icons/dist/Pr.svelte":()=>a(()=>import("./Pr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ps.svelte":()=>a(()=>import("./Ps.js"),[]),"/node_modules/svelte-flag-icons/dist/Pt.svelte":()=>a(()=>import("./Pt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pw.svelte":()=>a(()=>import("./Pw.js"),[]),"/node_modules/svelte-flag-icons/dist/Py.svelte":()=>a(()=>import("./Py.js"),[]),"/node_modules/svelte-flag-icons/dist/Qa.svelte":()=>a(()=>import("./Qa.js"),[]),"/node_modules/svelte-flag-icons/dist/Re.svelte":()=>a(()=>import("./Re.js"),[]),"/node_modules/svelte-flag-icons/dist/Ro.svelte":()=>a(()=>import("./Ro2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rs.svelte":()=>a(()=>import("./Rs.js"),[]),"/node_modules/svelte-flag-icons/dist/Ru.svelte":()=>a(()=>import("./Ru2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rw.svelte":()=>a(()=>import("./Rw2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sa.svelte":()=>a(()=>import("./Sa.js"),[]),"/node_modules/svelte-flag-icons/dist/Sb.svelte":()=>a(()=>import("./Sb.js"),[]),"/node_modules/svelte-flag-icons/dist/Sc.svelte":()=>a(()=>import("./Sc.js"),[]),"/node_modules/svelte-flag-icons/dist/Sd.svelte":()=>a(()=>import("./Sd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Se.svelte":()=>a(()=>import("./Se2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sg.svelte":()=>a(()=>import("./Sg.js"),[]),"/node_modules/svelte-flag-icons/dist/Sh.svelte":()=>a(()=>import("./Sh.js"),[]),"/node_modules/svelte-flag-icons/dist/Si.svelte":()=>a(()=>import("./Si2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sj.svelte":()=>a(()=>import("./Sj.js"),[]),"/node_modules/svelte-flag-icons/dist/Sk.svelte":()=>a(()=>import("./Sk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sl.svelte":()=>a(()=>import("./Sl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sm.svelte":()=>a(()=>import("./Sm.js"),[]),"/node_modules/svelte-flag-icons/dist/Sn.svelte":()=>a(()=>import("./Sn.js"),[]),"/node_modules/svelte-flag-icons/dist/So.svelte":()=>a(()=>import("./So.js"),[]),"/node_modules/svelte-flag-icons/dist/Sr.svelte":()=>a(()=>import("./Sr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ss.svelte":()=>a(()=>import("./Ss2.js"),[]),"/node_modules/svelte-flag-icons/dist/St.svelte":()=>a(()=>import("./St.js"),[]),"/node_modules/svelte-flag-icons/dist/Sv.svelte":()=>a(()=>import("./Sv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sx.svelte":()=>a(()=>import("./Sx.js"),[]),"/node_modules/svelte-flag-icons/dist/Sy.svelte":()=>a(()=>import("./Sy.js"),[]),"/node_modules/svelte-flag-icons/dist/Sz.svelte":()=>a(()=>import("./Sz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ta.svelte":()=>a(()=>import("./Ta2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tc.svelte":()=>a(()=>import("./Tc.js"),[]),"/node_modules/svelte-flag-icons/dist/Td.svelte":()=>a(()=>import("./Td.js"),[]),"/node_modules/svelte-flag-icons/dist/Tf.svelte":()=>a(()=>import("./Tf.js"),[]),"/node_modules/svelte-flag-icons/dist/Tg.svelte":()=>a(()=>import("./Tg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Th.svelte":()=>a(()=>import("./Th2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tj.svelte":()=>a(()=>import("./Tj.js"),[]),"/node_modules/svelte-flag-icons/dist/Tk.svelte":()=>a(()=>import("./Tk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tl.svelte":()=>a(()=>import("./Tl.js"),[]),"/node_modules/svelte-flag-icons/dist/Tm.svelte":()=>a(()=>import("./Tm.js"),[]),"/node_modules/svelte-flag-icons/dist/Tn.svelte":()=>a(()=>import("./Tn.js"),[]),"/node_modules/svelte-flag-icons/dist/To.svelte":()=>a(()=>import("./To.js"),[]),"/node_modules/svelte-flag-icons/dist/Tr.svelte":()=>a(()=>import("./Tr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tt.svelte":()=>a(()=>import("./Tt.js"),[]),"/node_modules/svelte-flag-icons/dist/Tv.svelte":()=>a(()=>import("./Tv.js"),[]),"/node_modules/svelte-flag-icons/dist/Tw.svelte":()=>a(()=>import("./Tw.js"),[]),"/node_modules/svelte-flag-icons/dist/Tz.svelte":()=>a(()=>import("./Tz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ua.svelte":()=>a(()=>import("./Ua.js"),[]),"/node_modules/svelte-flag-icons/dist/Ug.svelte":()=>a(()=>import("./Ug.js"),[]),"/node_modules/svelte-flag-icons/dist/Um.svelte":()=>a(()=>import("./Um.js"),[]),"/node_modules/svelte-flag-icons/dist/Un.svelte":()=>a(()=>import("./Un.js"),[]),"/node_modules/svelte-flag-icons/dist/Us.svelte":()=>a(()=>import("./Us.js"),[]),"/node_modules/svelte-flag-icons/dist/Uy.svelte":()=>a(()=>import("./Uy.js"),[]),"/node_modules/svelte-flag-icons/dist/Uz.svelte":()=>a(()=>import("./Uz2.js"),[]),"/node_modules/svelte-flag-icons/dist/Va.svelte":()=>a(()=>import("./Va.js"),[]),"/node_modules/svelte-flag-icons/dist/Vc.svelte":()=>a(()=>import("./Vc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ve.svelte":()=>a(()=>import("./Ve.js"),[]),"/node_modules/svelte-flag-icons/dist/Vg.svelte":()=>a(()=>import("./Vg.js"),[]),"/node_modules/svelte-flag-icons/dist/Vi.svelte":()=>a(()=>import("./Vi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Vn.svelte":()=>a(()=>import("./Vn.js"),[]),"/node_modules/svelte-flag-icons/dist/Vu.svelte":()=>a(()=>import("./Vu.js"),[]),"/node_modules/svelte-flag-icons/dist/Wf.svelte":()=>a(()=>import("./Wf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ws.svelte":()=>a(()=>import("./Ws.js"),[]),"/node_modules/svelte-flag-icons/dist/Xk.svelte":()=>a(()=>import("./Xk.js"),[]),"/node_modules/svelte-flag-icons/dist/Xx.svelte":()=>a(()=>import("./Xx.js"),[]),"/node_modules/svelte-flag-icons/dist/Ye.svelte":()=>a(()=>import("./Ye.js"),[]),"/node_modules/svelte-flag-icons/dist/Yt.svelte":()=>a(()=>import("./Yt.js"),[]),"/node_modules/svelte-flag-icons/dist/Za.svelte":()=>a(()=>import("./Za.js"),[]),"/node_modules/svelte-flag-icons/dist/Zm.svelte":()=>a(()=>import("./Zm.js"),[]),"/node_modules/svelte-flag-icons/dist/Zw.svelte":()=>a(()=>import("./Zw.js"),[])});f[_]&&f[_]().then(m=>{i(0,r=m.default)})}}function d(u,c,_){let f=Sa(name+_[0]),m=(f&16711680)>>16,g=(f&65280)>>8,v=f&255;return m+g+v<150&&(m=150),m+g+v>400&&(m=0),`rgb(${m},${g},${v})`}return e.$$set=u=>{"row"in u&&i(2,s=u.row)},e.$$.update=()=>{e.$$.dirty&4&&(name=za(s.firstname,s.lastname,s.systemName,s.emails[0]),l(s.countrycode)),e.$$.dirty&4&&i(1,n={bgColor:d(s.firstname,s.lastname,s.emails,s.systemName),name,src:o(s.avatarUrl,s.emails),initials:ja(name,s.emails[0])})},[r,n,s]}class Ts extends oe{constructor(t){super(),se(this,t,Ua,Ga,te,{row:2},Fa)}get row(){return this.$$.ctx[2]}set row(t){this.$$set({row:t}),C()}}re(Ts,{row:{}},[],[],!0);function Ka(e){_e(e,"svelte-6v56sj",".Column.svelte-6v56sj{height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0}@media(min-width: 768px){.Column.importanceColumn.svelte-6v56sj{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-6v56sj{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Ja(e){let t,i,n;const s=e[2].default,r=Lt(s,e,e[1],null);return{c(){t=x("div"),r&&r.c(),y(t,"class",i="Column "+e[0]+" svelte-6v56sj")},m(o,l){S(o,t,l),r&&r.m(t,null),n=!0},p(o,[l]){r&&r.p&&(!n||l&2)&&wt(r,s,o,o[1],n?At(s,o[1],l,null):Ot(o[1]),null),(!n||l&1&&i!==(i="Column "+o[0]+" svelte-6v56sj"))&&y(t,"class",i)},i(o){n||(w(r,o),n=!0)},o(o){D(r,o),n=!1},d(o){o&&$(t),r&&r.d(o)}}}function Wa(e,t,i){let{$$slots:n={},$$scope:s}=t,{className:r=""}=t;return e.$$set=o=>{"className"in o&&i(0,r=o.className),"$$scope"in o&&i(1,s=o.$$scope)},[r,s,n]}class ei extends oe{constructor(t){super(),se(this,t,Wa,Ja,te,{className:0},Ka)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),C()}}re(ei,{className:{}},["default"],[],!0);function Xa(e){_e(e,"svelte-wwxfno",".groupTag.svelte-wwxfno{display:inline-flex;align-items:center;align-self:flex-start;height:26px;padding-left:6px;color:var(--group-tag-color);background-color:var(--group-tag-background);position:relative;border-radius:6px 0 0 6px;margin-right:10px;white-space:nowrap}.groupTag.svelte-wwxfno::after{content:'';position:absolute;top:0;right:-12px;width:12px;height:100%;background-color:var(--group-tag-background);clip-path:polygon(0 0, 10px 43%, 10px 57%, 0 100%)}span.svelte-wwxfno{font-family:Roboto;font-size:12px;font-weight:700;line-height:20px}")}function qa(e){let t,i,n=(e[0].name??"")+"",s;return{c(){t=x("div"),i=x("span"),s=Q(n),y(i,"class","svelte-wwxfno"),y(t,"class","groupTag svelte-wwxfno"),Je(t,"--group-tag-color","#"+(e[0].color??0)),Je(t,"--group-tag-background","#"+(e[0].backgroundcolor?e[0].backgroundcolor:"#000000"))},m(r,o){S(r,t,o),I(t,i),I(i,s)},p(r,[o]){o&1&&n!==(n=(r[0].name??"")+"")&&le(s,n),o&1&&Je(t,"--group-tag-color","#"+(r[0].color??0)),o&1&&Je(t,"--group-tag-background","#"+(r[0].backgroundcolor?r[0].backgroundcolor:"#000000"))},i:X,o:X,d(r){r&&$(t)}}}function Za(e,t,i){let{group:n}=t;return e.$$set=s=>{"group"in s&&i(0,n=s.group)},[n]}class Ls extends oe{constructor(t){super(),se(this,t,Za,qa,te,{group:0},Xa)}get group(){return this.$$.ctx[0]}set group(t){this.$$set({group:t}),C()}}re(Ls,{group:{}},[],[],!0);function vn(e,t,i){const n=e.slice();n[3]=t[i];const s=n[1].get(n[3]);return n[4]=s,n}function En(e){let t,i;return t=new Ls({props:{group:e[4]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&3&&(r.group=n[4]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function yn(e){let t,i,n=e[4]!==void 0&&En(e);return{c(){n&&n.c(),t=It()},m(s,r){n&&n.m(s,r),S(s,t,r),i=!0},p(s,r){s[4]!==void 0?n?(n.p(s,r),r&3&&w(n,1)):(n=En(s),n.c(),w(n,1),n.m(t.parentNode,t)):n&&(be(),D(n,1,1,()=>{n=null}),Te())},i(s){i||(w(n),i=!0)},o(s){D(n),i=!1},d(s){s&&$(t),n&&n.d(s)}}}function Ya(e){let t,i,n=Ne(e[0]),s=[];for(let o=0;o<n.length;o+=1)s[o]=yn(vn(e,n,o));const r=o=>D(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;o<s.length;o+=1)s[o].c();t=It()},m(o,l){for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(o,l);S(o,t,l),i=!0},p(o,[l]){if(l&3){n=Ne(o[0]);let d;for(d=0;d<n.length;d+=1){const u=vn(o,n,d);s[d]?(s[d].p(u,l),w(s[d],1)):(s[d]=yn(u),s[d].c(),w(s[d],1),s[d].m(t.parentNode,t))}for(be(),d=n.length;d<s.length;d+=1)r(d);Te()}},i(o){if(!i){for(let l=0;l<n.length;l+=1)w(s[l]);i=!0}},o(o){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)D(s[l]);i=!1},d(o){o&&$(t),jt(s,o)}}}function Qa(e,t,i){let n,{groupIds:s}=t;const r=us();return G(e,r,o=>i(1,n=o)),e.$$set=o=>{"groupIds"in o&&i(0,s=o.groupIds)},[s,n,r]}class As extends oe{constructor(t){super(),se(this,t,Qa,Ya,te,{groupIds:0})}get groupIds(){return this.$$.ctx[0]}set groupIds(t){this.$$set({groupIds:t}),C()}}re(As,{groupIds:{}},[],[],!0);function eu(e){_e(e,"svelte-1cm070y",`.Tag.svelte-1cm070y{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;padding:2px 6px;border-radius:69px;font-size:13px;font-weight:bold;line-height:20px}.empty.svelte-1cm070y{display:none}.Tag.svelte-1cm070y:before{font-family:"la-icon-font"}.SLA.svelte-1cm070y{border:1px solid var(--suggestion-status-declined-border);border-radius:4px;color:var(--main-lighter-textcolor)
|
|
11
|
-
}.Dimmed .Tag{opacity:0.8}@media(min-width: 768px){.Tag.svelte-1cm070y{font-size:12px}}`)}function tu(e){let t,i;return{c(){t=x("span"),i=Q(e[0]),y(t,"class","text")},m(n,s){S(n,t,s),I(t,i)},p(n,s){s&1&&le(i,n[0])},i:X,o:X,d(n){n&&$(t)}}}function iu(e){let t,i,n,s,r;const o=[su,nu],l=[];function d(u,c){return c&1&&(t=null),t==null&&(t=!isNaN(u[0].getTime())),t?0:1}return i=d(e,-1),n=l[i]=o[i](e),{c(){n.c(),s=It()},m(u,c){l[i].m(u,c),S(u,s,c),r=!0},p(u,c){let _=i;i=d(u,c),i===_?l[i].p(u,c):(be(),D(l[_],1,1,()=>{l[_]=null}),Te(),n=l[i],n?n.p(u,c):(n=l[i]=o[i](u),n.c()),w(n,1),n.m(s.parentNode,s))},i(u){r||(w(n),r=!0)},o(u){D(n),r=!1},d(u){u&&$(s),l[i].d(u)}}}function nu(e){let t,i=e[4]("Invalid data")+"",n;return{c(){t=x("span"),n=Q(i),y(t,"class","invalid")},m(s,r){S(s,t,r),I(t,n)},p(s,r){r&16&&i!==(i=s[4]("Invalid data")+"")&&le(n,i)},i:X,o:X,d(s){s&&$(t)}}}function su(e){let t,i;return t=new Si({props:{style:e[3],timestamp:e[0],format:ms(),relative:!0}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&8&&(r.style=n[3]),s&1&&(r.timestamp=n[0]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function ru(e){let t,i,n,s,r,o;const l=e[6].default,d=Lt(l,e,e[5],null),u=[iu,tu],c=[];function _(f,m){return f[0]instanceof Date?0:1}return n=_(e),s=c[n]=u[n](e),{c(){t=x("div"),d&&d.c(),i=K(),s.c(),y(t,"class",r="Tag "+(e[0]===""?"empty":e[1])+" svelte-1cm070y"),y(t,"style",e[2])},m(f,m){S(f,t,m),d&&d.m(t,null),I(t,i),c[n].m(t,null),o=!0},p(f,[m]){d&&d.p&&(!o||m&32)&&wt(d,l,f,f[5],o?At(l,f[5],m,null):Ot(f[5]),null);let g=n;n=_(f),n===g?c[n].p(f,m):(be(),D(c[g],1,1,()=>{c[g]=null}),Te(),s=c[n],s?s.p(f,m):(s=c[n]=u[n](f),s.c()),w(s,1),s.m(t,null)),(!o||m&3&&r!==(r="Tag "+(f[0]===""?"empty":f[1])+" svelte-1cm070y"))&&y(t,"class",r),(!o||m&4)&&y(t,"style",f[2])},i(f){o||(w(d,f),w(s),o=!0)},o(f){D(d,f),D(s),o=!1},d(f){f&&$(t),d&&d.d(f),c[n].d()}}}function ou(e,t,i){let n;G(e,Ie,c=>i(4,n=c));let{$$slots:s={},$$scope:r}=t,{text:o}=t,{className:l=""}=t,{style:d=""}=t,{timeStyle:u=""}=t;return e.$$set=c=>{"text"in c&&i(0,o=c.text),"className"in c&&i(1,l=c.className),"style"in c&&i(2,d=c.style),"timeStyle"in c&&i(3,u=c.timeStyle),"$$scope"in c&&i(5,r=c.$$scope)},[o,l,d,u,n,r,s]}class dt extends oe{constructor(t){super(),se(this,t,ou,ru,te,{text:0,className:1,style:2,timeStyle:3},eu)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),C()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),C()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),C()}get timeStyle(){return this.$$.ctx[3]}set timeStyle(t){this.$$set({timeStyle:t}),C()}}re(dt,{text:{},className:{},style:{},timeStyle:{}},["default"],[],!0);function lu(e,t,i){if(!e)return i;let n=e+" "+t;return n.trim()||(n=i),n}function au(e){_e(e,"svelte-150y7wb",".Column.userColumn{display:flex;align-items:center}div.Tag.NoGroup{align-self:flex-start;color:var(--main-lighter-textcolor);border:1px solid var(--suggestion-status-declined-border);border-radius:6px}.groupTags.svelte-150y7wb{display:none}.name.svelte-150y7wb{position:relative;padding-right:8px;margin-right:6px;font-size:14px;line-height:20px;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.name.svelte-150y7wb::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-150y7wb{font-weight:400;color:var(--main-lighter-textcolor)}.name.Dimmed.svelte-150y7wb,.email.Dimmed.svelte-150y7wb{color:var(--text-color-secondary)}.email.svelte-150y7wb{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-150y7wb{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 768px){.name.svelte-150y7wb,.email.svelte-150y7wb{font-size:13px}}@media(min-width: 900px){.name.svelte-150y7wb{padding:0;border:none}.name.svelte-150y7wb::after{display:none}.email.svelte-150y7wb{padding:0}.groupTags.svelte-150y7wb{display:flex;gap:6px}.texts.svelte-150y7wb{display:flex;flex-direction:column;justify-content:space-around;height:100%}}")}function uu(e){let t,i;return t=new dt({props:{className:"NoGroup",text:e[4]("No Group")}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&16&&(r.text=n[4]("No Group")),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function du(e){let t,i;return t=new As({props:{groupIds:e[0].groups}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.groupIds=n[0].groups),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function cu(e){let t,i,n,s,r=(e[3]!==void 0?e[3]:e[4]("No name"))+"",o,l,d,u,c=(e[0].emails.length!==0?e[0].emails[0]:e[4]("No email"))+"",_,f,m,g,v,L,p;t=new Ts({props:{row:e[0]}});const E=[du,uu],T=[];function A(O,N){return O[0].groups.length>0?0:1}return v=A(e),L=T[v]=E[v](e),{c(){F(t.$$.fragment),i=K(),n=x("div"),s=x("div"),o=Q(r),d=K(),u=x("div"),_=Q(c),m=K(),g=x("div"),L.c(),y(s,"class",l=(e[3]?"name":"no name")+e[2]+" svelte-150y7wb"),y(u,"class",f=(e[0].emails.length===0?"no email":"email")+e[2]+" svelte-150y7wb"),y(g,"class","groupTags svelte-150y7wb"),y(n,"class","texts svelte-150y7wb")},m(O,N){H(t,O,N),S(O,i,N),S(O,n,N),I(n,s),I(s,o),I(n,d),I(n,u),I(u,_),I(n,m),I(n,g),T[v].m(g,null),p=!0},p(O,N){const he={};N&1&&(he.row=O[0]),t.$set(he),(!p||N&24)&&r!==(r=(O[3]!==void 0?O[3]:O[4]("No name"))+"")&&le(o,r),(!p||N&12&&l!==(l=(O[3]?"name":"no name")+O[2]+" svelte-150y7wb"))&&y(s,"class",l),(!p||N&17)&&c!==(c=(O[0].emails.length!==0?O[0].emails[0]:O[4]("No email"))+"")&&le(_,c),(!p||N&5&&f!==(f=(O[0].emails.length===0?"no email":"email")+O[2]+" svelte-150y7wb"))&&y(u,"class",f);let z=v;v=A(O),v===z?T[v].p(O,N):(be(),D(T[z],1,1,()=>{T[z]=null}),Te(),L=T[v],L?L.p(O,N):(L=T[v]=E[v](O),L.c()),w(L,1),L.m(g,null))},i(O){p||(w(t.$$.fragment,O),w(L),p=!0)},o(O){D(t.$$.fragment,O),D(L),p=!1},d(O){O&&($(i),$(n)),M(t,O),T[v].d()}}}function _u(e){let t,i;return t=new ei({props:{className:e[1],$$slots:{default:[cu]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,[s]){const r={};s&2&&(r.className=n[1]),s&61&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function fu(e,t,i){let n,s,r;G(e,Ie,d=>i(4,r=d));let{row:o}=t,{className:l="userColumn"}=t;return e.$$set=d=>{"row"in d&&i(0,o=d.row),"className"in d&&i(1,l=d.className)},e.$$.update=()=>{e.$$.dirty&1&&i(3,n=lu(o.firstname,o.lastname,o.systemName)),e.$$.dirty&1&&i(2,s=o.__dimmed?" Dimmed":"")},[o,l,s,n,r]}class ws extends oe{constructor(t){super(),se(this,t,fu,_u,te,{row:0,className:1},au)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),C()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),C()}}re(ws,{row:{},className:{}},[],[],!0);function mu(e){_e(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function hu(e){let t,i=e[4]("Invalid data")+"",n;return{c(){t=x("span"),n=Q(i),y(t,"class","invalid svelte-hsbbji")},m(s,r){S(s,t,r),I(t,n)},p(s,r){r&16&&i!==(i=s[4]("Invalid data")+"")&&le(n,i)},i:X,o:X,d(s){s&&$(t)}}}function gu(e){let t,i;return t=new Si({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&4&&(r.style=n[2]),s&1&&(r.timestamp=n[0]),s&2&&(r.format=n[1]),s&8&&(r.relative=n[3]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function pu(e){let t,i,n,s,r;const o=[gu,hu],l=[];function d(u,c){return c&1&&(i=null),i==null&&(i=u[0]instanceof Date&&!isNaN(u[0].getTime())),i?0:1}return n=d(e,-1),s=l[n]=o[n](e),{c(){t=x("div"),s.c(),y(t,"class","Date svelte-hsbbji")},m(u,c){S(u,t,c),l[n].m(t,null),r=!0},p(u,[c]){let _=n;n=d(u,c),n===_?l[n].p(u,c):(be(),D(l[_],1,1,()=>{l[_]=null}),Te(),s=l[n],s?s.p(u,c):(s=l[n]=o[n](u),s.c()),w(s,1),s.m(t,null))},i(u){r||(w(s),r=!0)},o(u){D(s),r=!1},d(u){u&&$(t),l[n].d()}}}function vu(e,t,i){let n;G(e,Ie,d=>i(4,n=d));let{data:s}=t,{format:r=ms()}=t,{style:o=""}=t,{relative:l=!1}=t;return e.$$set=d=>{"data"in d&&i(0,s=d.data),"format"in d&&i(1,r=d.format),"style"in d&&i(2,o=d.style),"relative"in d&&i(3,l=d.relative)},[s,r,o,l,n]}class Ai extends oe{constructor(t){super(),se(this,t,vu,pu,te,{data:0,format:1,style:2,relative:3},mu)}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),C()}get format(){return this.$$.ctx[1]}set format(t){this.$$set({format:t}),C()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),C()}get relative(){return this.$$.ctx[3]}set relative(t){this.$$set({relative:t}),C()}}re(Ai,{data:{},format:{},style:{},relative:{type:"Boolean"}},[],[],!0);function Eu(e){_e(e,"svelte-cpyv29","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 yu(e){let t,i;return t=new Re({props:{iconLaClassName:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&4&&(r.iconLaClassName=n[2]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function bu(e){let t,i;return t=new dt({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[yu]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,[s]){const r={};s&1&&(r.text=n[0]),s&2&&(r.style=n[1]),s&36&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Tu(e,t,i){let{text:n}=t,{className:s=""}=t,{style:r=""}=t,{iconLaClassName:o}=t,l=`IconTag ${s}`;return e.$$set=d=>{"text"in d&&i(0,n=d.text),"className"in d&&i(4,s=d.className),"style"in d&&i(1,r=d.style),"iconLaClassName"in d&&i(2,o=d.iconLaClassName)},[n,r,o,l,s]}class ti extends oe{constructor(t){super(),se(this,t,Tu,bu,te,{text:0,className:4,style:1,iconLaClassName:2},Eu)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),C()}get className(){return this.$$.ctx[4]}set className(t){this.$$set({className:t}),C()}get style(){return this.$$.ctx[1]}set style(t){this.$$set({style:t}),C()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),C()}}re(ti,{text:{},className:{},style:{},iconLaClassName:{}},[],[],!0);function Lu(e){_e(e,"svelte-qax2i",".IconWrapper.svelte-qax2i{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-qax2i{display:inline-flex;flex-direction:row;border-radius:4px}.Pending.svelte-qax2i{background-color:var(--ok-color)}.Overdue.svelte-qax2i{background-color:var(--notif-error-color)}.Department.svelte-qax2i{background-color:var(--department-bg-color)}")}function Au(e){let t,i,n,s;i=new Re({props:{iconLaClassName:e[2]}});const r=e[7].default,o=Lt(r,e,e[6],null);return{c(){t=x("div"),F(i.$$.fragment),n=K(),o&&o.c(),y(t,"class","IconWrapper svelte-qax2i")},m(l,d){S(l,t,d),H(i,t,null),S(l,n,d),o&&o.m(l,d),s=!0},p(l,d){const u={};d&4&&(u.iconLaClassName=l[2]),i.$set(u),o&&o.p&&(!s||d&64)&&wt(o,r,l,l[6],s?At(r,l[6],d,null):Ot(l[6]),null)},i(l){s||(w(i.$$.fragment,l),w(o,l),s=!0)},o(l){D(i.$$.fragment,l),D(o,l),s=!1},d(l){l&&($(t),$(n)),M(i),o&&o.d(l)}}}function wu(e){let t,i;return t=new ti({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&16&&(r.style=n[4]),s&1&&(r.text=n[0]),s&4&&(r.iconLaClassName=n[2]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Ou(e){let t,i,n,s,r,o,l;const d=[wu,Au],u=[];function c(_,f){return _[0]!==""?0:1}return i=c(e),n=u[i]=d[i](e),r=new dt({props:{style:e[5],text:e[1]}}),{c(){t=x("div"),n.c(),s=K(),F(r.$$.fragment),y(t,"class",o=Ee(`Tag CombinedTag ${e[3]}`)+" svelte-qax2i")},m(_,f){S(_,t,f),u[i].m(t,null),I(t,s),H(r,t,null),l=!0},p(_,[f]){let m=i;i=c(_),i===m?u[i].p(_,f):(be(),D(u[m],1,1,()=>{u[m]=null}),Te(),n=u[i],n?n.p(_,f):(n=u[i]=d[i](_),n.c()),w(n,1),n.m(t,s));const g={};f&32&&(g.style=_[5]),f&2&&(g.text=_[1]),r.$set(g),(!l||f&8&&o!==(o=Ee(`Tag CombinedTag ${_[3]}`)+" svelte-qax2i"))&&y(t,"class",o)},i(_){l||(w(n),w(r.$$.fragment,_),l=!0)},o(_){D(n),D(r.$$.fragment,_),l=!1},d(_){_&&$(t),u[i].d(),M(r)}}}function Iu(e,t,i){let{$$slots:n={},$$scope:s}=t,{iconText:r=""}=t,{tagText:o}=t,{iconLaClassName:l}=t,{className:d}=t,{iconTagStyles:u}=t,{tagStyles:c}=t;return e.$$set=_=>{"iconText"in _&&i(0,r=_.iconText),"tagText"in _&&i(1,o=_.tagText),"iconLaClassName"in _&&i(2,l=_.iconLaClassName),"className"in _&&i(3,d=_.className),"iconTagStyles"in _&&i(4,u=_.iconTagStyles),"tagStyles"in _&&i(5,c=_.tagStyles),"$$scope"in _&&i(6,s=_.$$scope)},[r,o,l,d,u,c,s,n]}class Ni extends oe{constructor(t){super(),se(this,t,Iu,Ou,te,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},Lu)}get iconText(){return this.$$.ctx[0]}set iconText(t){this.$$set({iconText:t}),C()}get tagText(){return this.$$.ctx[1]}set tagText(t){this.$$set({tagText:t}),C()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),C()}get className(){return this.$$.ctx[3]}set className(t){this.$$set({className:t}),C()}get iconTagStyles(){return this.$$.ctx[4]}set iconTagStyles(t){this.$$set({iconTagStyles:t}),C()}get tagStyles(){return this.$$.ctx[5]}set tagStyles(t){this.$$set({tagStyles:t}),C()}}re(Ni,{iconText:{},tagText:{},iconLaClassName:{},className:{},iconTagStyles:{},tagStyles:{}},["default"],[],!0);function Du(e){let t,i;return t=new dt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&16&&(r.text=n[4]("No SLA")),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Ru(e){let t,i;return t=new Ni({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&2&&(r.iconText=n[1]),s&8&&(r.iconLaClassName=n[3].icon),s&1&&(r.tagText=n[0]),s&8&&(r.className=n[3].className),s&8&&(r.tagStyles=n[3].tagStyles),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function xu(e){let t,i,n,s;const r=[Ru,Du],o=[];function l(d,u){return d[2]?0:1}return t=l(e),i=o[t]=r[t](e),{c(){i.c(),n=It()},m(d,u){o[t].m(d,u),S(d,n,u),s=!0},p(d,[u]){let c=t;t=l(d),t===c?o[t].p(d,u):(be(),D(o[c],1,1,()=>{o[c]=null}),Te(),i=o[t],i?i.p(d,u):(i=o[t]=r[t](d),i.c()),w(i,1),i.m(n.parentNode,n))},i(d){s||(w(i),s=!0)},o(d){D(i),s=!1},d(d){d&&$(n),o[t].d(d)}}}function Pu(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-n-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-n-sla-alert",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function ku(e,t,i){let n,s,r;G(e,Ie,d=>i(4,r=d));let{tagText:o=r("First answer")}=t,{due:l}=t;return e.$$set=d=>{"tagText"in d&&i(0,o=d.tagText),"due"in d&&i(1,l=d.due)},e.$$.update=()=>{e.$$.dirty&2&&i(3,n=Pu(l)),e.$$.dirty&2&&i(2,s=l instanceof Date&&!isNaN(l))},[o,l,s,n,r]}class Os extends oe{constructor(t){super(),se(this,t,ku,xu,te,{tagText:0,due:1})}get tagText(){return this.$$.ctx[0]}set tagText(t){this.$$set({tagText:t}),C()}get due(){return this.$$.ctx[1]}set due(t){this.$$set({due:t}),C()}}re(Os,{tagText:{},due:{}},[],[],!0);function Cu(e){_e(e,"svelte-1e3dqfj",".Dimmed.svelte-1e3dqfj{color:var(--text-color-secondary)}.TicketId.svelte-1e3dqfj{font-weight:bold;margin-right:10px}.Created.svelte-1e3dqfj,.Changed.svelte-1e3dqfj,.TicketId.svelte-1e3dqfj{font-size:14px;line-height:20px}.Communication.svelte-1e3dqfj{display:inline-flex;align-items:center;justify-content:center;margin-right:6px;font-size:14px;line-height:20px}.ticketDetails.svelte-1e3dqfj{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}.arrows.svelte-1e3dqfj{display:flex}@media(min-width: 768px){.Created.svelte-1e3dqfj,.Changed.svelte-1e3dqfj,.TicketId.svelte-1e3dqfj,.Communication.svelte-1e3dqfj{font-size:13px}}@media(min-width: 900px){.hide.svelte-1e3dqfj{display:none}.ticketDetails.svelte-1e3dqfj{margin:0}}")}function $u(e){let t,i,n=e[1].code+"",s,r,o,l,d,u,c,_=e[1].messagegroupsIn+"",f,m,g,v,L,p,E=e[1].messagegroupsOut+"",T,A,O,N,he,z=e[4]("Created")+"",ne,ie,W,ve,Le,R,k,b,V=e[4]("Changed")+"",P,j,U,Z,de,ge,fe,ce;return d=new Re({props:{iconLaClassName:"la-n-arrow_down_left"}}),v=new Re({props:{iconLaClassName:"la-n-arrow_up_right"}}),ve=new Ai({props:{data:ze(e[1].datecreated)}}),Z=new Ai({props:{data:ze(e[1].datechanged)}}),fe=new Os({props:{tagText:"",due:ze(e[1].datedue)}}),{c(){t=x("div"),i=x("span"),s=Q(n),r=K(),o=x("div"),l=x("div"),F(d.$$.fragment),u=K(),c=x("span"),f=Q(_),m=K(),g=x("div"),F(v.$$.fragment),L=K(),p=x("span"),T=Q(E),O=K(),N=x("div"),he=x("span"),ne=Q(z),ie=Q(":"),W=K(),F(ve.$$.fragment),R=K(),k=x("div"),b=x("span"),P=Q(V),j=Q(":"),U=K(),F(Z.$$.fragment),ge=K(),F(fe.$$.fragment),y(i,"class","TicketId svelte-1e3dqfj"),y(l,"class","Communication incomingMessages svelte-1e3dqfj"),y(g,"class","Communication outgoingMessages svelte-1e3dqfj"),y(o,"class","arrows svelte-1e3dqfj"),y(t,"class",A=Ee(`ticketDetails ${e[3]}`)+" svelte-1e3dqfj"),y(N,"class",Le=Ee(`Created ${e[2]?"":"hide"} ${e[3]}`)+" svelte-1e3dqfj"),y(k,"class",de=Ee(`Changed ${e[2]?"hide":""} ${e[3]}`)+" svelte-1e3dqfj")},m(J,ae){S(J,t,ae),I(t,i),I(i,s),I(t,r),I(t,o),I(o,l),H(d,l,null),I(l,u),I(l,c),I(c,f),I(o,m),I(o,g),H(v,g,null),I(g,L),I(g,p),I(p,T),S(J,O,ae),S(J,N,ae),I(N,he),I(he,ne),I(he,ie),I(N,W),H(ve,N,null),S(J,R,ae),S(J,k,ae),I(k,b),I(b,P),I(b,j),I(k,U),H(Z,k,null),S(J,ge,ae),H(fe,J,ae),ce=!0},p(J,ae){(!ce||ae&2)&&n!==(n=J[1].code+"")&&le(s,n),(!ce||ae&2)&&_!==(_=J[1].messagegroupsIn+"")&&le(f,_),(!ce||ae&2)&&E!==(E=J[1].messagegroupsOut+"")&&le(T,E),(!ce||ae&8&&A!==(A=Ee(`ticketDetails ${J[3]}`)+" svelte-1e3dqfj"))&&y(t,"class",A),(!ce||ae&16)&&z!==(z=J[4]("Created")+"")&&le(ne,z);const Ce={};ae&2&&(Ce.data=ze(J[1].datecreated)),ve.$set(Ce),(!ce||ae&12&&Le!==(Le=Ee(`Created ${J[2]?"":"hide"} ${J[3]}`)+" svelte-1e3dqfj"))&&y(N,"class",Le),(!ce||ae&16)&&V!==(V=J[4]("Changed")+"")&&le(P,V);const xe={};ae&2&&(xe.data=ze(J[1].datechanged)),Z.$set(xe),(!ce||ae&12&&de!==(de=Ee(`Changed ${J[2]?"hide":""} ${J[3]}`)+" svelte-1e3dqfj"))&&y(k,"class",de);const ye={};ae&2&&(ye.due=ze(J[1].datedue)),fe.$set(ye)},i(J){ce||(w(d.$$.fragment,J),w(v.$$.fragment,J),w(ve.$$.fragment,J),w(Z.$$.fragment,J),w(fe.$$.fragment,J),ce=!0)},o(J){D(d.$$.fragment,J),D(v.$$.fragment,J),D(ve.$$.fragment,J),D(Z.$$.fragment,J),D(fe.$$.fragment,J),ce=!1},d(J){J&&($(t),$(O),$(N),$(R),$(k),$(ge)),M(d),M(v),M(ve),M(Z),M(fe,J)}}}function Su(e){let t,i;return t=new ei({props:{className:e[0],$$slots:{default:[$u]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,[s]){const r={};s&1&&(r.className=n[0]),s&286&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Vu(e,t,i){let n,s,r;G(e,Ie,_=>i(4,r=_));let{className:o="importanceColumn"}=t,{row:l}=t,d=!0;const u=$i();G(e,u,_=>i(6,s=_));function c(){i(2,d=!(s.value==="Changed-newest"||s.value==="Changed-oldest")),l.__hovered&&i(2,d=!d)}return e.$$set=_=>{"className"in _&&i(0,o=_.className),"row"in _&&i(1,l=_.row)},e.$$.update=()=>{e.$$.dirty&2&&l&&c(),e.$$.dirty&2&&i(3,n=l.__dimmed?"Dimmed":"")},[o,l,d,n,r,u]}class Is extends oe{constructor(t){super(),se(this,t,Vu,Su,te,{className:0,row:1},Cu)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),C()}get row(){return this.$$.ctx[1]}set row(t){this.$$set({row:t}),C()}}re(Is,{className:{},row:{}},[],[],!0);function Nu(e){_e(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function Hu(e){let t,i;return t=new dt({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,[s]){const r={};s&6&&(r.style="color: #"+n[2]+"; background: #"+n[1]+"99; border: 1px solid #"+n[1]),s&1&&(r.text=n[0]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Mu(e,t,i){let n,s,r,o,{tagId:l}=t;const d=as();return G(e,d,u=>i(5,o=u)),e.$$set=u=>{"tagId"in u&&i(4,l=u.tagId)},e.$$.update=()=>{var u,c,_;e.$$.dirty&48&&i(2,n=((u=o[l])==null?void 0:u.color)??0),e.$$.dirty&48&&i(1,s=((c=o[l])==null?void 0:c.backgroundcolor)??0),e.$$.dirty&48&&i(0,r=((_=o[l])==null?void 0:_.name)??"")},[r,s,n,d,l,o]}class Ds extends oe{constructor(t){super(),se(this,t,Mu,Hu,te,{tagId:4},Nu)}get tagId(){return this.$$.ctx[4]}set tagId(t){this.$$set({tagId:t}),C()}}re(Ds,{tagId:{}},[],[],!0);function Bu(e){_e(e,"svelte-ht89e6",".tags-container.svelte-ht89e6{display:flex;flex-direction:row;gap:6px;width:100%}@media(min-width: 768px){.tags-container.svelte-ht89e6{overflow:hidden}.Tag.TicketTag{display:flex;align-items:center;min-width:20px;max-width:fit-content;flex-grow:1;flex-shrink:1;transition:flex-shrink 0.3s ease}.Tag.TicketTag:hover{flex-grow:0;flex-shrink:0}.Tag.TicketTag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}")}function bn(e,t,i){const n=e.slice();return n[1]=t[i],n}function Tn(e){let t,i;return t=new Ds({props:{tagId:e[1]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.tagId=n[1]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Fu(e){let t,i,n=Ne(e[0]),s=[];for(let o=0;o<n.length;o+=1)s[o]=Tn(bn(e,n,o));const r=o=>D(s[o],1,1,()=>{s[o]=null});return{c(){t=x("div");for(let o=0;o<s.length;o+=1)s[o].c();y(t,"class","tags-container svelte-ht89e6")},m(o,l){S(o,t,l);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);i=!0},p(o,[l]){if(l&1){n=Ne(o[0]);let d;for(d=0;d<n.length;d+=1){const u=bn(o,n,d);s[d]?(s[d].p(u,l),w(s[d],1)):(s[d]=Tn(u),s[d].c(),w(s[d],1),s[d].m(t,null))}for(be(),d=n.length;d<s.length;d+=1)r(d);Te()}},i(o){if(!i){for(let l=0;l<n.length;l+=1)w(s[l]);i=!0}},o(o){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)D(s[l]);i=!1},d(o){o&&$(t),jt(s,o)}}}function Gu(e,t,i){let{tags:n}=t;return e.$$set=s=>{"tags"in s&&i(0,n=s.tags)},[n]}class Rs extends oe{constructor(t){super(),se(this,t,Gu,Fu,te,{tags:0},Bu)}get tags(){return this.$$.ctx[0]}set tags(t){this.$$set({tags:t}),C()}}re(Rs,{tags:{}},[],[],!0);function ju(e){_e(e,"svelte-1o2tm98",".Tag.IconTag.StatusTag{gap:0;transition:gap 0.3s ease}.Tag.IconTag.StatusTag .text{max-width:0;width:auto;overflow:hidden;white-space:nowrap;transition:max-width 0.3s ease}@media(min-width: 768px){.Tag.IconTag.StatusTag:hover{gap:5px}.Tag.IconTag.StatusTag:hover .text{max-width:200px}}@media(min-width: 1300px){.Tag.IconTag.StatusTag .text{max-width:200px}.Tag.IconTag.StatusTag{gap:5px}}")}function zu(e){let t,i;return t=new ti({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Se(e[0]).text+`;
|
|
10
|
+
*/var Na=function(e){return e!=null&&(bs(e)||Ha(e)||!!e._isBuffer)};function bs(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ha(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&bs(e.slice(0,0))}(function(){var e=Va,t=hn.utf8,i=Na,n=hn.bin,s=function(o,r){o.constructor==String?r&&r.encoding==="binary"?o=n.stringToBytes(o):o=t.stringToBytes(o):i(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var l=e.bytesToWords(o),d=o.length*8,u=1732584193,c=-271733879,_=-1732584194,f=271733878,m=0;m<l.length;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360;l[d>>>5]|=128<<d%32,l[(d+64>>>9<<4)+14]=d;for(var g=s._ff,p=s._gg,v=s._hh,y=s._ii,m=0;m<l.length;m+=16){var b=u,T=c,L=_,O=f;u=g(u,c,_,f,l[m+0],7,-680876936),f=g(f,u,c,_,l[m+1],12,-389564586),_=g(_,f,u,c,l[m+2],17,606105819),c=g(c,_,f,u,l[m+3],22,-1044525330),u=g(u,c,_,f,l[m+4],7,-176418897),f=g(f,u,c,_,l[m+5],12,1200080426),_=g(_,f,u,c,l[m+6],17,-1473231341),c=g(c,_,f,u,l[m+7],22,-45705983),u=g(u,c,_,f,l[m+8],7,1770035416),f=g(f,u,c,_,l[m+9],12,-1958414417),_=g(_,f,u,c,l[m+10],17,-42063),c=g(c,_,f,u,l[m+11],22,-1990404162),u=g(u,c,_,f,l[m+12],7,1804603682),f=g(f,u,c,_,l[m+13],12,-40341101),_=g(_,f,u,c,l[m+14],17,-1502002290),c=g(c,_,f,u,l[m+15],22,1236535329),u=p(u,c,_,f,l[m+1],5,-165796510),f=p(f,u,c,_,l[m+6],9,-1069501632),_=p(_,f,u,c,l[m+11],14,643717713),c=p(c,_,f,u,l[m+0],20,-373897302),u=p(u,c,_,f,l[m+5],5,-701558691),f=p(f,u,c,_,l[m+10],9,38016083),_=p(_,f,u,c,l[m+15],14,-660478335),c=p(c,_,f,u,l[m+4],20,-405537848),u=p(u,c,_,f,l[m+9],5,568446438),f=p(f,u,c,_,l[m+14],9,-1019803690),_=p(_,f,u,c,l[m+3],14,-187363961),c=p(c,_,f,u,l[m+8],20,1163531501),u=p(u,c,_,f,l[m+13],5,-1444681467),f=p(f,u,c,_,l[m+2],9,-51403784),_=p(_,f,u,c,l[m+7],14,1735328473),c=p(c,_,f,u,l[m+12],20,-1926607734),u=v(u,c,_,f,l[m+5],4,-378558),f=v(f,u,c,_,l[m+8],11,-2022574463),_=v(_,f,u,c,l[m+11],16,1839030562),c=v(c,_,f,u,l[m+14],23,-35309556),u=v(u,c,_,f,l[m+1],4,-1530992060),f=v(f,u,c,_,l[m+4],11,1272893353),_=v(_,f,u,c,l[m+7],16,-155497632),c=v(c,_,f,u,l[m+10],23,-1094730640),u=v(u,c,_,f,l[m+13],4,681279174),f=v(f,u,c,_,l[m+0],11,-358537222),_=v(_,f,u,c,l[m+3],16,-722521979),c=v(c,_,f,u,l[m+6],23,76029189),u=v(u,c,_,f,l[m+9],4,-640364487),f=v(f,u,c,_,l[m+12],11,-421815835),_=v(_,f,u,c,l[m+15],16,530742520),c=v(c,_,f,u,l[m+2],23,-995338651),u=y(u,c,_,f,l[m+0],6,-198630844),f=y(f,u,c,_,l[m+7],10,1126891415),_=y(_,f,u,c,l[m+14],15,-1416354905),c=y(c,_,f,u,l[m+5],21,-57434055),u=y(u,c,_,f,l[m+12],6,1700485571),f=y(f,u,c,_,l[m+3],10,-1894986606),_=y(_,f,u,c,l[m+10],15,-1051523),c=y(c,_,f,u,l[m+1],21,-2054922799),u=y(u,c,_,f,l[m+8],6,1873313359),f=y(f,u,c,_,l[m+15],10,-30611744),_=y(_,f,u,c,l[m+6],15,-1560198380),c=y(c,_,f,u,l[m+13],21,1309151649),u=y(u,c,_,f,l[m+4],6,-145523070),f=y(f,u,c,_,l[m+11],10,-1120210379),_=y(_,f,u,c,l[m+2],15,718787259),c=y(c,_,f,u,l[m+9],21,-343485551),u=u+b>>>0,c=c+T>>>0,_=_+L>>>0,f=f+O>>>0}return e.endian([u,c,_,f])};s._ff=function(o,r,l,d,u,c,_){var f=o+(r&l|~r&d)+(u>>>0)+_;return(f<<c|f>>>32-c)+r},s._gg=function(o,r,l,d,u,c,_){var f=o+(r&d|l&~d)+(u>>>0)+_;return(f<<c|f>>>32-c)+r},s._hh=function(o,r,l,d,u,c,_){var f=o+(r^l^d)+(u>>>0)+_;return(f<<c|f>>>32-c)+r},s._ii=function(o,r,l,d,u,c,_){var f=o+(l^(r|~d))+(u>>>0)+_;return(f<<c|f>>>32-c)+r},s._blocksize=16,s._digestsize=16,Es.exports=function(o,r){if(o==null)throw new Error("Illegal argument "+o);var l=e.wordsToBytes(s(o,r));return r&&r.asBytes?l:r&&r.asString?n.bytesToString(l):e.bytesToHex(l)}})();var Ma=Es.exports;const Ba=Ut(Ma);function Fa(e){me(e,"svelte-1lioxcq",".avatar.svelte-1lioxcq{display:none}.flag-icon.svelte-1lioxcq{display:none}.innerInitials{font-size:24px !important}@media(min-width: 900px){.avatar.svelte-1lioxcq{position:relative;display:flex;align-items:center;justify-content:center;margin-right:10px;width:40px;height:40px}.flag-icon.svelte-1lioxcq{position:absolute;right:0;bottom:7px;display:flex;width:14px;height:14px}}")}function gn(e){let t,i;const n=[e[1],{size:"40px"}];let s={};for(let o=0;o<n.length;o+=1)s=Et(s,n[o]);return t=new vs({props:s}),{c(){F(t.$$.fragment)},m(o,r){N(t,o,r),i=!0},p(o,r){const l=r&2?Pn(n,[lo(o[1]),n[1]]):{};t.$set(l)},i(o){i||(A(t.$$.fragment,o),i=!0)},o(o){I(t.$$.fragment,o),i=!1},d(o){H(t,o)}}}function pn(e){let t,i,n;var s=e[0];function o(r,l){return{props:{size:"30"}}}return s&&(i=ji(s,o())),{c(){t=D("div"),i&&F(i.$$.fragment),E(t,"class","flag-icon svelte-1lioxcq")},m(r,l){C(r,t,l),i&&N(i,t,null),n=!0},p(r,l){if(l&1&&s!==(s=r[0])){if(i){Te();const d=i;I(d.$$.fragment,1,0,()=>{H(d,1)}),Le()}s?(i=ji(s,o()),F(i.$$.fragment),A(i.$$.fragment,1),N(i,t,null)):i=null}},i(r){n||(i&&A(i.$$.fragment,r),n=!0)},o(r){i&&I(i.$$.fragment,r),n=!1},d(r){r&&$(t),i&&H(i)}}}function Ga(e){let t,i=e[1].name,n,s,o=gn(e),r=e[0]!==null&&pn(e);return{c(){t=D("div"),o.c(),n=J(),r&&r.c(),E(t,"class","avatar svelte-1lioxcq")},m(l,d){C(l,t,d),o.m(t,null),w(t,n),r&&r.m(t,null),s=!0},p(l,[d]){d&2&&ne(i,i=l[1].name)?(Te(),I(o,1,1,Z),Le(),o=gn(l),o.c(),A(o,1),o.m(t,n)):o.p(l,d),l[0]!==null?r?(r.p(l,d),d&1&&A(r,1)):(r=pn(l),r.c(),A(r,1),r.m(t,null)):r&&(Te(),I(r,1,1,()=>{r=null}),Le())},i(l){s||(A(o),A(r),s=!0)},o(l){I(o),I(r),s=!1},d(l){l&&$(t),o.d(l),r&&r.d()}}}function za(e,t){return e?e[0].toUpperCase():t?t[0].toUpperCase():"?"}function ja(e,t,i,n){return`${e||""} ${t||""}`.trim()||n||i}function Ua(e,t,i){let n,{row:s}=t,o=null;Dt(()=>{l(s.countrycode)});function r(u,c){let _=u;return _||(_="https://www.gravatar.com/avatar/"+Ba(c[0]??"")+"?s=200&d=404"),_}function l(u){if(u!=null&&u!==""&&u.length===2){const _="/node_modules/svelte-flag-icons/dist/"+(u[0].toUpperCase()+u[1].toLowerCase())+".svelte",f=Object.assign({"/node_modules/svelte-flag-icons/dist/Ac.svelte":()=>a(()=>import("./Ac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ad.svelte":()=>a(()=>import("./Ad.js"),[]),"/node_modules/svelte-flag-icons/dist/Ae.svelte":()=>a(()=>import("./Ae.js"),[]),"/node_modules/svelte-flag-icons/dist/Af.svelte":()=>a(()=>import("./Af2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ag.svelte":()=>a(()=>import("./Ag.js"),[]),"/node_modules/svelte-flag-icons/dist/Ai.svelte":()=>a(()=>import("./Ai.js"),[]),"/node_modules/svelte-flag-icons/dist/Al.svelte":()=>a(()=>import("./Al.js"),[]),"/node_modules/svelte-flag-icons/dist/Am.svelte":()=>a(()=>import("./Am2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ao.svelte":()=>a(()=>import("./Ao.js"),[]),"/node_modules/svelte-flag-icons/dist/Aq.svelte":()=>a(()=>import("./Aq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ar.svelte":()=>a(()=>import("./Ar2.js"),[]),"/node_modules/svelte-flag-icons/dist/Arab.svelte":()=>a(()=>import("./Arab.js"),[]),"/node_modules/svelte-flag-icons/dist/As.svelte":()=>a(()=>import("./As.js"),[]),"/node_modules/svelte-flag-icons/dist/At.svelte":()=>a(()=>import("./At.js"),[]),"/node_modules/svelte-flag-icons/dist/Au.svelte":()=>a(()=>import("./Au.js"),[]),"/node_modules/svelte-flag-icons/dist/Aw.svelte":()=>a(()=>import("./Aw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ax.svelte":()=>a(()=>import("./Ax.js"),[]),"/node_modules/svelte-flag-icons/dist/Az.svelte":()=>a(()=>import("./Az2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ba.svelte":()=>a(()=>import("./Ba.js"),[]),"/node_modules/svelte-flag-icons/dist/Bb.svelte":()=>a(()=>import("./Bb.js"),[]),"/node_modules/svelte-flag-icons/dist/Bd.svelte":()=>a(()=>import("./Bd.js"),[]),"/node_modules/svelte-flag-icons/dist/Be.svelte":()=>a(()=>import("./Be2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bf.svelte":()=>a(()=>import("./Bf.js"),[]),"/node_modules/svelte-flag-icons/dist/Bg.svelte":()=>a(()=>import("./Bg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bh.svelte":()=>a(()=>import("./Bh.js"),[]),"/node_modules/svelte-flag-icons/dist/Bi.svelte":()=>a(()=>import("./Bi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bj.svelte":()=>a(()=>import("./Bj.js"),[]),"/node_modules/svelte-flag-icons/dist/Bl.svelte":()=>a(()=>import("./Bl.js"),[]),"/node_modules/svelte-flag-icons/dist/Bm.svelte":()=>a(()=>import("./Bm2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bn.svelte":()=>a(()=>import("./Bn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bo.svelte":()=>a(()=>import("./Bo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bq.svelte":()=>a(()=>import("./Bq.js"),[]),"/node_modules/svelte-flag-icons/dist/Br.svelte":()=>a(()=>import("./Br2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bs.svelte":()=>a(()=>import("./Bs2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bt.svelte":()=>a(()=>import("./Bt.js"),[]),"/node_modules/svelte-flag-icons/dist/Bv.svelte":()=>a(()=>import("./Bv.js"),[]),"/node_modules/svelte-flag-icons/dist/Bw.svelte":()=>a(()=>import("./Bw.js"),[]),"/node_modules/svelte-flag-icons/dist/By.svelte":()=>a(()=>import("./By.js"),[]),"/node_modules/svelte-flag-icons/dist/Bz.svelte":()=>a(()=>import("./Bz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ca.svelte":()=>a(()=>import("./Ca2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cc.svelte":()=>a(()=>import("./Cc.js"),[]),"/node_modules/svelte-flag-icons/dist/Cd.svelte":()=>a(()=>import("./Cd.js"),[]),"/node_modules/svelte-flag-icons/dist/Cefta.svelte":()=>a(()=>import("./Cefta.js"),[]),"/node_modules/svelte-flag-icons/dist/Cf.svelte":()=>a(()=>import("./Cf.js"),[]),"/node_modules/svelte-flag-icons/dist/Cg.svelte":()=>a(()=>import("./Cg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ch.svelte":()=>a(()=>import("./Ch.js"),[]),"/node_modules/svelte-flag-icons/dist/Ci.svelte":()=>a(()=>import("./Ci.js"),[]),"/node_modules/svelte-flag-icons/dist/Ck.svelte":()=>a(()=>import("./Ck.js"),[]),"/node_modules/svelte-flag-icons/dist/Cl.svelte":()=>a(()=>import("./Cl.js"),[]),"/node_modules/svelte-flag-icons/dist/Cm.svelte":()=>a(()=>import("./Cm.js"),[]),"/node_modules/svelte-flag-icons/dist/Cn.svelte":()=>a(()=>import("./Cn.js"),[]),"/node_modules/svelte-flag-icons/dist/Co.svelte":()=>a(()=>import("./Co.js"),[]),"/node_modules/svelte-flag-icons/dist/Cp.svelte":()=>a(()=>import("./Cp.js"),[]),"/node_modules/svelte-flag-icons/dist/Cr.svelte":()=>a(()=>import("./Cr.js"),[]),"/node_modules/svelte-flag-icons/dist/Cu.svelte":()=>a(()=>import("./Cu.js"),[]),"/node_modules/svelte-flag-icons/dist/Cv.svelte":()=>a(()=>import("./Cv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cw.svelte":()=>a(()=>import("./Cw.js"),[]),"/node_modules/svelte-flag-icons/dist/Cx.svelte":()=>a(()=>import("./Cx.js"),[]),"/node_modules/svelte-flag-icons/dist/Cy.svelte":()=>a(()=>import("./Cy2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cz.svelte":()=>a(()=>import("./Cz.js"),[]),"/node_modules/svelte-flag-icons/dist/De.svelte":()=>a(()=>import("./De2.js"),[]),"/node_modules/svelte-flag-icons/dist/Dg.svelte":()=>a(()=>import("./Dg.js"),[]),"/node_modules/svelte-flag-icons/dist/Dj.svelte":()=>a(()=>import("./Dj.js"),[]),"/node_modules/svelte-flag-icons/dist/Dk.svelte":()=>a(()=>import("./Dk.js"),[]),"/node_modules/svelte-flag-icons/dist/Dm.svelte":()=>a(()=>import("./Dm.js"),[]),"/node_modules/svelte-flag-icons/dist/Do.svelte":()=>a(()=>import("./Do.js"),[]),"/node_modules/svelte-flag-icons/dist/Dz.svelte":()=>a(()=>import("./Dz.js"),[]),"/node_modules/svelte-flag-icons/dist/Eac.svelte":()=>a(()=>import("./Eac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ec.svelte":()=>a(()=>import("./Ec.js"),[]),"/node_modules/svelte-flag-icons/dist/Ee.svelte":()=>a(()=>import("./Ee.js"),[]),"/node_modules/svelte-flag-icons/dist/Eg.svelte":()=>a(()=>import("./Eg.js"),[]),"/node_modules/svelte-flag-icons/dist/Eh.svelte":()=>a(()=>import("./Eh.js"),[]),"/node_modules/svelte-flag-icons/dist/Er.svelte":()=>a(()=>import("./Er.js"),[]),"/node_modules/svelte-flag-icons/dist/Es.svelte":()=>a(()=>import("./Es2.js"),[]),"/node_modules/svelte-flag-icons/dist/EsCt.svelte":()=>a(()=>import("./EsCt.js"),[]),"/node_modules/svelte-flag-icons/dist/EsGa.svelte":()=>a(()=>import("./EsGa.js"),[]),"/node_modules/svelte-flag-icons/dist/EsPv.svelte":()=>a(()=>import("./EsPv.js"),[]),"/node_modules/svelte-flag-icons/dist/Et.svelte":()=>a(()=>import("./Et2.js"),[]),"/node_modules/svelte-flag-icons/dist/Eu.svelte":()=>a(()=>import("./Eu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fi.svelte":()=>a(()=>import("./Fi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fj.svelte":()=>a(()=>import("./Fj.js"),[]),"/node_modules/svelte-flag-icons/dist/Fk.svelte":()=>a(()=>import("./Fk.js"),[]),"/node_modules/svelte-flag-icons/dist/Fm.svelte":()=>a(()=>import("./Fm.js"),[]),"/node_modules/svelte-flag-icons/dist/Fo.svelte":()=>a(()=>import("./Fo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fr.svelte":()=>a(()=>import("./Fr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ga.svelte":()=>a(()=>import("./Ga2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gb.svelte":()=>a(()=>import("./Gb.js"),[]),"/node_modules/svelte-flag-icons/dist/GbEng.svelte":()=>a(()=>import("./GbEng.js"),[]),"/node_modules/svelte-flag-icons/dist/GbNir.svelte":()=>a(()=>import("./GbNir.js"),[]),"/node_modules/svelte-flag-icons/dist/GbSct.svelte":()=>a(()=>import("./GbSct.js"),[]),"/node_modules/svelte-flag-icons/dist/GbWls.svelte":()=>a(()=>import("./GbWls.js"),[]),"/node_modules/svelte-flag-icons/dist/Gd.svelte":()=>a(()=>import("./Gd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ge.svelte":()=>a(()=>import("./Ge.js"),[]),"/node_modules/svelte-flag-icons/dist/Gf.svelte":()=>a(()=>import("./Gf.js"),[]),"/node_modules/svelte-flag-icons/dist/Gg.svelte":()=>a(()=>import("./Gg.js"),[]),"/node_modules/svelte-flag-icons/dist/Gh.svelte":()=>a(()=>import("./Gh.js"),[]),"/node_modules/svelte-flag-icons/dist/Gi.svelte":()=>a(()=>import("./Gi.js"),[]),"/node_modules/svelte-flag-icons/dist/Gl.svelte":()=>a(()=>import("./Gl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gm.svelte":()=>a(()=>import("./Gm.js"),[]),"/node_modules/svelte-flag-icons/dist/Gn.svelte":()=>a(()=>import("./Gn.js"),[]),"/node_modules/svelte-flag-icons/dist/Gp.svelte":()=>a(()=>import("./Gp.js"),[]),"/node_modules/svelte-flag-icons/dist/Gq.svelte":()=>a(()=>import("./Gq.js"),[]),"/node_modules/svelte-flag-icons/dist/Gr.svelte":()=>a(()=>import("./Gr.js"),[]),"/node_modules/svelte-flag-icons/dist/Gs.svelte":()=>a(()=>import("./Gs.js"),[]),"/node_modules/svelte-flag-icons/dist/Gt.svelte":()=>a(()=>import("./Gt.js"),[]),"/node_modules/svelte-flag-icons/dist/Gu.svelte":()=>a(()=>import("./Gu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gw.svelte":()=>a(()=>import("./Gw.js"),[]),"/node_modules/svelte-flag-icons/dist/Gy.svelte":()=>a(()=>import("./Gy.js"),[]),"/node_modules/svelte-flag-icons/dist/Hk.svelte":()=>a(()=>import("./Hk.js"),[]),"/node_modules/svelte-flag-icons/dist/Hm.svelte":()=>a(()=>import("./Hm.js"),[]),"/node_modules/svelte-flag-icons/dist/Hn.svelte":()=>a(()=>import("./Hn.js"),[]),"/node_modules/svelte-flag-icons/dist/Hr.svelte":()=>a(()=>import("./Hr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ht.svelte":()=>a(()=>import("./Ht2.js"),[]),"/node_modules/svelte-flag-icons/dist/Hu.svelte":()=>a(()=>import("./Hu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ic.svelte":()=>a(()=>import("./Ic.js"),[]),"/node_modules/svelte-flag-icons/dist/Icon.svelte":()=>a(()=>import("./Icon.js"),[]),"/node_modules/svelte-flag-icons/dist/Id.svelte":()=>a(()=>import("./Id2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ie.svelte":()=>a(()=>import("./Ie.js"),[]),"/node_modules/svelte-flag-icons/dist/Il.svelte":()=>a(()=>import("./Il.js"),[]),"/node_modules/svelte-flag-icons/dist/Im.svelte":()=>a(()=>import("./Im.js"),[]),"/node_modules/svelte-flag-icons/dist/In.svelte":()=>a(()=>import("./In.js"),[]),"/node_modules/svelte-flag-icons/dist/Io.svelte":()=>a(()=>import("./Io.js"),[]),"/node_modules/svelte-flag-icons/dist/Iq.svelte":()=>a(()=>import("./Iq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ir.svelte":()=>a(()=>import("./Ir.js"),[]),"/node_modules/svelte-flag-icons/dist/Is.svelte":()=>a(()=>import("./Is2.js"),[]),"/node_modules/svelte-flag-icons/dist/It.svelte":()=>a(()=>import("./It2.js"),[]),"/node_modules/svelte-flag-icons/dist/Je.svelte":()=>a(()=>import("./Je.js"),[]),"/node_modules/svelte-flag-icons/dist/Jm.svelte":()=>a(()=>import("./Jm.js"),[]),"/node_modules/svelte-flag-icons/dist/Jo.svelte":()=>a(()=>import("./Jo.js"),[]),"/node_modules/svelte-flag-icons/dist/Jp.svelte":()=>a(()=>import("./Jp.js"),[]),"/node_modules/svelte-flag-icons/dist/Ke.svelte":()=>a(()=>import("./Ke.js"),[]),"/node_modules/svelte-flag-icons/dist/Kg.svelte":()=>a(()=>import("./Kg.js"),[]),"/node_modules/svelte-flag-icons/dist/Kh.svelte":()=>a(()=>import("./Kh.js"),[]),"/node_modules/svelte-flag-icons/dist/Ki.svelte":()=>a(()=>import("./Ki.js"),[]),"/node_modules/svelte-flag-icons/dist/Km.svelte":()=>a(()=>import("./Km2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kn.svelte":()=>a(()=>import("./Kn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kp.svelte":()=>a(()=>import("./Kp.js"),[]),"/node_modules/svelte-flag-icons/dist/Kr.svelte":()=>a(()=>import("./Kr.js"),[]),"/node_modules/svelte-flag-icons/dist/Kw.svelte":()=>a(()=>import("./Kw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ky.svelte":()=>a(()=>import("./Ky2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kz.svelte":()=>a(()=>import("./Kz.js"),[]),"/node_modules/svelte-flag-icons/dist/La.svelte":()=>a(()=>import("./La.js"),[]),"/node_modules/svelte-flag-icons/dist/Lb.svelte":()=>a(()=>import("./Lb2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lc.svelte":()=>a(()=>import("./Lc.js"),[]),"/node_modules/svelte-flag-icons/dist/Li.svelte":()=>a(()=>import("./Li.js"),[]),"/node_modules/svelte-flag-icons/dist/Lk.svelte":()=>a(()=>import("./Lk.js"),[]),"/node_modules/svelte-flag-icons/dist/Lr.svelte":()=>a(()=>import("./Lr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ls.svelte":()=>a(()=>import("./Ls.js"),[]),"/node_modules/svelte-flag-icons/dist/Lt.svelte":()=>a(()=>import("./Lt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lu.svelte":()=>a(()=>import("./Lu.js"),[]),"/node_modules/svelte-flag-icons/dist/Lv.svelte":()=>a(()=>import("./Lv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ly.svelte":()=>a(()=>import("./Ly.js"),[]),"/node_modules/svelte-flag-icons/dist/Ma.svelte":()=>a(()=>import("./Ma.js"),[]),"/node_modules/svelte-flag-icons/dist/Mc.svelte":()=>a(()=>import("./Mc.js"),[]),"/node_modules/svelte-flag-icons/dist/Md.svelte":()=>a(()=>import("./Md.js"),[]),"/node_modules/svelte-flag-icons/dist/Me.svelte":()=>a(()=>import("./Me2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mf.svelte":()=>a(()=>import("./Mf.js"),[]),"/node_modules/svelte-flag-icons/dist/Mg.svelte":()=>a(()=>import("./Mg.js"),[]),"/node_modules/svelte-flag-icons/dist/Mh.svelte":()=>a(()=>import("./Mh.js"),[]),"/node_modules/svelte-flag-icons/dist/Mk.svelte":()=>a(()=>import("./Mk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ml.svelte":()=>a(()=>import("./Ml2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mm.svelte":()=>a(()=>import("./Mm.js"),[]),"/node_modules/svelte-flag-icons/dist/Mn.svelte":()=>a(()=>import("./Mn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mo.svelte":()=>a(()=>import("./Mo.js"),[]),"/node_modules/svelte-flag-icons/dist/Mp.svelte":()=>a(()=>import("./Mp.js"),[]),"/node_modules/svelte-flag-icons/dist/Mq.svelte":()=>a(()=>import("./Mq.js"),[]),"/node_modules/svelte-flag-icons/dist/Mr.svelte":()=>a(()=>import("./Mr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ms.svelte":()=>a(()=>import("./Ms2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mt.svelte":()=>a(()=>import("./Mt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mu.svelte":()=>a(()=>import("./Mu.js"),[]),"/node_modules/svelte-flag-icons/dist/Mv.svelte":()=>a(()=>import("./Mv.js"),[]),"/node_modules/svelte-flag-icons/dist/Mw.svelte":()=>a(()=>import("./Mw.js"),[]),"/node_modules/svelte-flag-icons/dist/Mx.svelte":()=>a(()=>import("./Mx.js"),[]),"/node_modules/svelte-flag-icons/dist/My.svelte":()=>a(()=>import("./My2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mz.svelte":()=>a(()=>import("./Mz.js"),[]),"/node_modules/svelte-flag-icons/dist/Na.svelte":()=>a(()=>import("./Na.js"),[]),"/node_modules/svelte-flag-icons/dist/Nc.svelte":()=>a(()=>import("./Nc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ne.svelte":()=>a(()=>import("./Ne2.js"),[]),"/node_modules/svelte-flag-icons/dist/Nf.svelte":()=>a(()=>import("./Nf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ng.svelte":()=>a(()=>import("./Ng.js"),[]),"/node_modules/svelte-flag-icons/dist/Ni.svelte":()=>a(()=>import("./Ni.js"),[]),"/node_modules/svelte-flag-icons/dist/Nl.svelte":()=>a(()=>import("./Nl2.js"),[]),"/node_modules/svelte-flag-icons/dist/No.svelte":()=>a(()=>import("./No.js"),[]),"/node_modules/svelte-flag-icons/dist/Np.svelte":()=>a(()=>import("./Np.js"),[]),"/node_modules/svelte-flag-icons/dist/Nr.svelte":()=>a(()=>import("./Nr.js"),[]),"/node_modules/svelte-flag-icons/dist/Nu.svelte":()=>a(()=>import("./Nu.js"),[]),"/node_modules/svelte-flag-icons/dist/Nz.svelte":()=>a(()=>import("./Nz.js"),[]),"/node_modules/svelte-flag-icons/dist/Om.svelte":()=>a(()=>import("./Om.js"),[]),"/node_modules/svelte-flag-icons/dist/Pa.svelte":()=>a(()=>import("./Pa.js"),[]),"/node_modules/svelte-flag-icons/dist/Pe.svelte":()=>a(()=>import("./Pe.js"),[]),"/node_modules/svelte-flag-icons/dist/Pf.svelte":()=>a(()=>import("./Pf.js"),[]),"/node_modules/svelte-flag-icons/dist/Pg.svelte":()=>a(()=>import("./Pg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ph.svelte":()=>a(()=>import("./Ph.js"),[]),"/node_modules/svelte-flag-icons/dist/Pk.svelte":()=>a(()=>import("./Pk.js"),[]),"/node_modules/svelte-flag-icons/dist/Pl.svelte":()=>a(()=>import("./Pl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pm.svelte":()=>a(()=>import("./Pm.js"),[]),"/node_modules/svelte-flag-icons/dist/Pn.svelte":()=>a(()=>import("./Pn.js"),[]),"/node_modules/svelte-flag-icons/dist/Pr.svelte":()=>a(()=>import("./Pr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ps.svelte":()=>a(()=>import("./Ps.js"),[]),"/node_modules/svelte-flag-icons/dist/Pt.svelte":()=>a(()=>import("./Pt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pw.svelte":()=>a(()=>import("./Pw.js"),[]),"/node_modules/svelte-flag-icons/dist/Py.svelte":()=>a(()=>import("./Py.js"),[]),"/node_modules/svelte-flag-icons/dist/Qa.svelte":()=>a(()=>import("./Qa.js"),[]),"/node_modules/svelte-flag-icons/dist/Re.svelte":()=>a(()=>import("./Re.js"),[]),"/node_modules/svelte-flag-icons/dist/Ro.svelte":()=>a(()=>import("./Ro2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rs.svelte":()=>a(()=>import("./Rs.js"),[]),"/node_modules/svelte-flag-icons/dist/Ru.svelte":()=>a(()=>import("./Ru2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rw.svelte":()=>a(()=>import("./Rw2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sa.svelte":()=>a(()=>import("./Sa.js"),[]),"/node_modules/svelte-flag-icons/dist/Sb.svelte":()=>a(()=>import("./Sb.js"),[]),"/node_modules/svelte-flag-icons/dist/Sc.svelte":()=>a(()=>import("./Sc.js"),[]),"/node_modules/svelte-flag-icons/dist/Sd.svelte":()=>a(()=>import("./Sd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Se.svelte":()=>a(()=>import("./Se2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sg.svelte":()=>a(()=>import("./Sg.js"),[]),"/node_modules/svelte-flag-icons/dist/Sh.svelte":()=>a(()=>import("./Sh.js"),[]),"/node_modules/svelte-flag-icons/dist/Si.svelte":()=>a(()=>import("./Si2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sj.svelte":()=>a(()=>import("./Sj.js"),[]),"/node_modules/svelte-flag-icons/dist/Sk.svelte":()=>a(()=>import("./Sk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sl.svelte":()=>a(()=>import("./Sl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sm.svelte":()=>a(()=>import("./Sm.js"),[]),"/node_modules/svelte-flag-icons/dist/Sn.svelte":()=>a(()=>import("./Sn.js"),[]),"/node_modules/svelte-flag-icons/dist/So.svelte":()=>a(()=>import("./So.js"),[]),"/node_modules/svelte-flag-icons/dist/Sr.svelte":()=>a(()=>import("./Sr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ss.svelte":()=>a(()=>import("./Ss2.js"),[]),"/node_modules/svelte-flag-icons/dist/St.svelte":()=>a(()=>import("./St.js"),[]),"/node_modules/svelte-flag-icons/dist/Sv.svelte":()=>a(()=>import("./Sv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sx.svelte":()=>a(()=>import("./Sx.js"),[]),"/node_modules/svelte-flag-icons/dist/Sy.svelte":()=>a(()=>import("./Sy.js"),[]),"/node_modules/svelte-flag-icons/dist/Sz.svelte":()=>a(()=>import("./Sz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ta.svelte":()=>a(()=>import("./Ta2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tc.svelte":()=>a(()=>import("./Tc.js"),[]),"/node_modules/svelte-flag-icons/dist/Td.svelte":()=>a(()=>import("./Td.js"),[]),"/node_modules/svelte-flag-icons/dist/Tf.svelte":()=>a(()=>import("./Tf.js"),[]),"/node_modules/svelte-flag-icons/dist/Tg.svelte":()=>a(()=>import("./Tg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Th.svelte":()=>a(()=>import("./Th2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tj.svelte":()=>a(()=>import("./Tj.js"),[]),"/node_modules/svelte-flag-icons/dist/Tk.svelte":()=>a(()=>import("./Tk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tl.svelte":()=>a(()=>import("./Tl.js"),[]),"/node_modules/svelte-flag-icons/dist/Tm.svelte":()=>a(()=>import("./Tm.js"),[]),"/node_modules/svelte-flag-icons/dist/Tn.svelte":()=>a(()=>import("./Tn.js"),[]),"/node_modules/svelte-flag-icons/dist/To.svelte":()=>a(()=>import("./To.js"),[]),"/node_modules/svelte-flag-icons/dist/Tr.svelte":()=>a(()=>import("./Tr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tt.svelte":()=>a(()=>import("./Tt.js"),[]),"/node_modules/svelte-flag-icons/dist/Tv.svelte":()=>a(()=>import("./Tv.js"),[]),"/node_modules/svelte-flag-icons/dist/Tw.svelte":()=>a(()=>import("./Tw.js"),[]),"/node_modules/svelte-flag-icons/dist/Tz.svelte":()=>a(()=>import("./Tz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ua.svelte":()=>a(()=>import("./Ua.js"),[]),"/node_modules/svelte-flag-icons/dist/Ug.svelte":()=>a(()=>import("./Ug.js"),[]),"/node_modules/svelte-flag-icons/dist/Um.svelte":()=>a(()=>import("./Um.js"),[]),"/node_modules/svelte-flag-icons/dist/Un.svelte":()=>a(()=>import("./Un.js"),[]),"/node_modules/svelte-flag-icons/dist/Us.svelte":()=>a(()=>import("./Us.js"),[]),"/node_modules/svelte-flag-icons/dist/Uy.svelte":()=>a(()=>import("./Uy.js"),[]),"/node_modules/svelte-flag-icons/dist/Uz.svelte":()=>a(()=>import("./Uz2.js"),[]),"/node_modules/svelte-flag-icons/dist/Va.svelte":()=>a(()=>import("./Va.js"),[]),"/node_modules/svelte-flag-icons/dist/Vc.svelte":()=>a(()=>import("./Vc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ve.svelte":()=>a(()=>import("./Ve.js"),[]),"/node_modules/svelte-flag-icons/dist/Vg.svelte":()=>a(()=>import("./Vg.js"),[]),"/node_modules/svelte-flag-icons/dist/Vi.svelte":()=>a(()=>import("./Vi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Vn.svelte":()=>a(()=>import("./Vn.js"),[]),"/node_modules/svelte-flag-icons/dist/Vu.svelte":()=>a(()=>import("./Vu.js"),[]),"/node_modules/svelte-flag-icons/dist/Wf.svelte":()=>a(()=>import("./Wf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ws.svelte":()=>a(()=>import("./Ws.js"),[]),"/node_modules/svelte-flag-icons/dist/Xk.svelte":()=>a(()=>import("./Xk.js"),[]),"/node_modules/svelte-flag-icons/dist/Xx.svelte":()=>a(()=>import("./Xx.js"),[]),"/node_modules/svelte-flag-icons/dist/Ye.svelte":()=>a(()=>import("./Ye.js"),[]),"/node_modules/svelte-flag-icons/dist/Yt.svelte":()=>a(()=>import("./Yt.js"),[]),"/node_modules/svelte-flag-icons/dist/Za.svelte":()=>a(()=>import("./Za.js"),[]),"/node_modules/svelte-flag-icons/dist/Zm.svelte":()=>a(()=>import("./Zm.js"),[]),"/node_modules/svelte-flag-icons/dist/Zw.svelte":()=>a(()=>import("./Zw.js"),[])});f[_]&&f[_]().then(m=>{i(0,o=m.default)})}}function d(u,c,_){let f=Sa(name+_[0]),m=(f&16711680)>>16,g=(f&65280)>>8,p=f&255;return m+g+p<150&&(m=150),m+g+p>400&&(m=0),`rgb(${m},${g},${p})`}return e.$$set=u=>{"row"in u&&i(2,s=u.row)},e.$$.update=()=>{e.$$.dirty&4&&(name=ja(s.firstname,s.lastname,s.systemName,s.emails[0]),l(s.countrycode)),e.$$.dirty&4&&i(1,n={bgColor:d(s.firstname,s.lastname,s.emails,s.systemName),name,src:r(s.avatarUrl,s.emails),initials:za(name,s.emails[0])})},[o,n,s]}class Ts extends le{constructor(t){super(),oe(this,t,Ua,Ga,ne,{row:2},Fa)}get row(){return this.$$.ctx[2]}set row(t){this.$$set({row:t}),P()}}re(Ts,{row:{}},[],[],!0);function Ka(e){me(e,"svelte-6v56sj",".Column.svelte-6v56sj{height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0}@media(min-width: 768px){.Column.importanceColumn.svelte-6v56sj{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-6v56sj{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Ja(e){let t,i,n;const s=e[2].default,o=Lt(s,e,e[1],null);return{c(){t=D("div"),o&&o.c(),E(t,"class",i="Column "+e[0]+" svelte-6v56sj")},m(r,l){C(r,t,l),o&&o.m(t,null),n=!0},p(r,[l]){o&&o.p&&(!n||l&2)&&wt(o,s,r,r[1],n?At(s,r[1],l,null):Ot(r[1]),null),(!n||l&1&&i!==(i="Column "+r[0]+" svelte-6v56sj"))&&E(t,"class",i)},i(r){n||(A(o,r),n=!0)},o(r){I(o,r),n=!1},d(r){r&&$(t),o&&o.d(r)}}}function Wa(e,t,i){let{$$slots:n={},$$scope:s}=t,{className:o=""}=t;return e.$$set=r=>{"className"in r&&i(0,o=r.className),"$$scope"in r&&i(1,s=r.$$scope)},[o,s,n]}class ti extends le{constructor(t){super(),oe(this,t,Wa,Ja,ne,{className:0},Ka)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),P()}}re(ti,{className:{}},["default"],[],!0);function Xa(e){me(e,"svelte-wwxfno",".groupTag.svelte-wwxfno{display:inline-flex;align-items:center;align-self:flex-start;height:26px;padding-left:6px;color:var(--group-tag-color);background-color:var(--group-tag-background);position:relative;border-radius:6px 0 0 6px;margin-right:10px;white-space:nowrap}.groupTag.svelte-wwxfno::after{content:'';position:absolute;top:0;right:-12px;width:12px;height:100%;background-color:var(--group-tag-background);clip-path:polygon(0 0, 10px 43%, 10px 57%, 0 100%)}span.svelte-wwxfno{font-family:Roboto;font-size:12px;font-weight:700;line-height:20px}")}function qa(e){let t,i,n=(e[0].name??"")+"",s;return{c(){t=D("div"),i=D("span"),s=te(n),E(i,"class","svelte-wwxfno"),E(t,"class","groupTag svelte-wwxfno"),Je(t,"--group-tag-color","#"+(e[0].color??0)),Je(t,"--group-tag-background","#"+(e[0].backgroundcolor?e[0].backgroundcolor:"#000000"))},m(o,r){C(o,t,r),w(t,i),w(i,s)},p(o,[r]){r&1&&n!==(n=(o[0].name??"")+"")&&ae(s,n),r&1&&Je(t,"--group-tag-color","#"+(o[0].color??0)),r&1&&Je(t,"--group-tag-background","#"+(o[0].backgroundcolor?o[0].backgroundcolor:"#000000"))},i:Z,o:Z,d(o){o&&$(t)}}}function Za(e,t,i){let{group:n}=t;return e.$$set=s=>{"group"in s&&i(0,n=s.group)},[n]}class Ls extends le{constructor(t){super(),oe(this,t,Za,qa,ne,{group:0},Xa)}get group(){return this.$$.ctx[0]}set group(t){this.$$set({group:t}),P()}}re(Ls,{group:{}},[],[],!0);function vn(e,t,i){const n=e.slice();n[3]=t[i];const s=n[1].get(n[3]);return n[4]=s,n}function En(e){let t,i;return t=new Ls({props:{group:e[4]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&3&&(o.group=n[4]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function yn(e){let t,i,n=e[4]!==void 0&&En(e);return{c(){n&&n.c(),t=It()},m(s,o){n&&n.m(s,o),C(s,t,o),i=!0},p(s,o){s[4]!==void 0?n?(n.p(s,o),o&3&&A(n,1)):(n=En(s),n.c(),A(n,1),n.m(t.parentNode,t)):n&&(Te(),I(n,1,1,()=>{n=null}),Le())},i(s){i||(A(n),i=!0)},o(s){I(n),i=!1},d(s){s&&$(t),n&&n.d(s)}}}function Ya(e){let t,i,n=Ne(e[0]),s=[];for(let r=0;r<n.length;r+=1)s[r]=yn(vn(e,n,r));const o=r=>I(s[r],1,1,()=>{s[r]=null});return{c(){for(let r=0;r<s.length;r+=1)s[r].c();t=It()},m(r,l){for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(r,l);C(r,t,l),i=!0},p(r,[l]){if(l&3){n=Ne(r[0]);let d;for(d=0;d<n.length;d+=1){const u=vn(r,n,d);s[d]?(s[d].p(u,l),A(s[d],1)):(s[d]=yn(u),s[d].c(),A(s[d],1),s[d].m(t.parentNode,t))}for(Te(),d=n.length;d<s.length;d+=1)o(d);Le()}},i(r){if(!i){for(let l=0;l<n.length;l+=1)A(s[l]);i=!0}},o(r){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)I(s[l]);i=!1},d(r){r&&$(t),zt(s,r)}}}function Qa(e,t,i){let n,{groupIds:s}=t;const o=us();return z(e,o,r=>i(1,n=r)),e.$$set=r=>{"groupIds"in r&&i(0,s=r.groupIds)},[s,n,o]}class As extends le{constructor(t){super(),oe(this,t,Qa,Ya,ne,{groupIds:0})}get groupIds(){return this.$$.ctx[0]}set groupIds(t){this.$$set({groupIds:t}),P()}}re(As,{groupIds:{}},[],[],!0);function eu(e){me(e,"svelte-1cm070y",`.Tag.svelte-1cm070y{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;padding:2px 6px;border-radius:69px;font-size:13px;font-weight:bold;line-height:20px}.empty.svelte-1cm070y{display:none}.Tag.svelte-1cm070y:before{font-family:"la-icon-font"}.SLA.svelte-1cm070y{border:1px solid var(--suggestion-status-declined-border);border-radius:4px;color:var(--main-lighter-textcolor)
|
|
11
|
+
}.Dimmed .Tag{opacity:0.8}@media(min-width: 768px){.Tag.svelte-1cm070y{font-size:12px}}`)}function tu(e){let t,i;return{c(){t=D("span"),i=te(e[0]),E(t,"class","text")},m(n,s){C(n,t,s),w(t,i)},p(n,s){s&1&&ae(i,n[0])},i:Z,o:Z,d(n){n&&$(t)}}}function iu(e){let t,i,n,s,o;const r=[su,nu],l=[];function d(u,c){return c&1&&(t=null),t==null&&(t=!isNaN(u[0].getTime())),t?0:1}return i=d(e,-1),n=l[i]=r[i](e),{c(){n.c(),s=It()},m(u,c){l[i].m(u,c),C(u,s,c),o=!0},p(u,c){let _=i;i=d(u,c),i===_?l[i].p(u,c):(Te(),I(l[_],1,1,()=>{l[_]=null}),Le(),n=l[i],n?n.p(u,c):(n=l[i]=r[i](u),n.c()),A(n,1),n.m(s.parentNode,s))},i(u){o||(A(n),o=!0)},o(u){I(n),o=!1},d(u){u&&$(s),l[i].d(u)}}}function nu(e){let t,i=e[4]("Invalid data")+"",n;return{c(){t=D("span"),n=te(i),E(t,"class","invalid")},m(s,o){C(s,t,o),w(t,n)},p(s,o){o&16&&i!==(i=s[4]("Invalid data")+"")&&ae(n,i)},i:Z,o:Z,d(s){s&&$(t)}}}function su(e){let t,i;return t=new Si({props:{style:e[3],timestamp:e[0],format:ms(),relative:!0}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&8&&(o.style=n[3]),s&1&&(o.timestamp=n[0]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function ou(e){let t,i,n,s,o,r;const l=e[6].default,d=Lt(l,e,e[5],null),u=[iu,tu],c=[];function _(f,m){return f[0]instanceof Date?0:1}return n=_(e),s=c[n]=u[n](e),{c(){t=D("div"),d&&d.c(),i=J(),s.c(),E(t,"class",o="Tag "+(e[0]===""?"empty":e[1])+" svelte-1cm070y"),E(t,"style",e[2])},m(f,m){C(f,t,m),d&&d.m(t,null),w(t,i),c[n].m(t,null),r=!0},p(f,[m]){d&&d.p&&(!r||m&32)&&wt(d,l,f,f[5],r?At(l,f[5],m,null):Ot(f[5]),null);let g=n;n=_(f),n===g?c[n].p(f,m):(Te(),I(c[g],1,1,()=>{c[g]=null}),Le(),s=c[n],s?s.p(f,m):(s=c[n]=u[n](f),s.c()),A(s,1),s.m(t,null)),(!r||m&3&&o!==(o="Tag "+(f[0]===""?"empty":f[1])+" svelte-1cm070y"))&&E(t,"class",o),(!r||m&4)&&E(t,"style",f[2])},i(f){r||(A(d,f),A(s),r=!0)},o(f){I(d,f),I(s),r=!1},d(f){f&&$(t),d&&d.d(f),c[n].d()}}}function ru(e,t,i){let n;z(e,Oe,c=>i(4,n=c));let{$$slots:s={},$$scope:o}=t,{text:r}=t,{className:l=""}=t,{style:d=""}=t,{timeStyle:u=""}=t;return e.$$set=c=>{"text"in c&&i(0,r=c.text),"className"in c&&i(1,l=c.className),"style"in c&&i(2,d=c.style),"timeStyle"in c&&i(3,u=c.timeStyle),"$$scope"in c&&i(5,o=c.$$scope)},[r,l,d,u,n,o,s]}class dt extends le{constructor(t){super(),oe(this,t,ru,ou,ne,{text:0,className:1,style:2,timeStyle:3},eu)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),P()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),P()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),P()}get timeStyle(){return this.$$.ctx[3]}set timeStyle(t){this.$$set({timeStyle:t}),P()}}re(dt,{text:{},className:{},style:{},timeStyle:{}},["default"],[],!0);function lu(e,t,i){if(!e)return i;let n=e+" "+t;return n.trim()||(n=i),n}function au(e){me(e,"svelte-150y7wb",".Column.userColumn{display:flex;align-items:center}div.Tag.NoGroup{align-self:flex-start;color:var(--main-lighter-textcolor);border:1px solid var(--suggestion-status-declined-border);border-radius:6px}.groupTags.svelte-150y7wb{display:none}.name.svelte-150y7wb{position:relative;padding-right:8px;margin-right:6px;font-size:14px;line-height:20px;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.name.svelte-150y7wb::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-150y7wb{font-weight:400;color:var(--main-lighter-textcolor)}.name.Dimmed.svelte-150y7wb,.email.Dimmed.svelte-150y7wb{color:var(--text-color-secondary)}.email.svelte-150y7wb{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-150y7wb{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 768px){.name.svelte-150y7wb,.email.svelte-150y7wb{font-size:13px}}@media(min-width: 900px){.name.svelte-150y7wb{padding:0;border:none}.name.svelte-150y7wb::after{display:none}.email.svelte-150y7wb{padding:0}.groupTags.svelte-150y7wb{display:flex;gap:6px}.texts.svelte-150y7wb{display:flex;flex-direction:column;justify-content:space-around;height:100%}}")}function uu(e){let t,i;return t=new dt({props:{className:"NoGroup",text:e[4]("No Group")}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&16&&(o.text=n[4]("No Group")),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function du(e){let t,i;return t=new As({props:{groupIds:e[0].groups}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&1&&(o.groupIds=n[0].groups),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function cu(e){let t,i,n,s,o=(e[3]!==void 0?e[3]:e[4]("No name"))+"",r,l,d,u,c=(e[0].emails.length!==0?e[0].emails[0]:e[4]("No email"))+"",_,f,m,g,p,v,y;t=new Ts({props:{row:e[0]}});const b=[du,uu],T=[];function L(O,S){return O[0].groups.length>0?0:1}return p=L(e),v=T[p]=b[p](e),{c(){F(t.$$.fragment),i=J(),n=D("div"),s=D("div"),r=te(o),d=J(),u=D("div"),_=te(c),m=J(),g=D("div"),v.c(),E(s,"class",l=(e[3]?"name":"no name")+e[2]+" svelte-150y7wb"),E(u,"class",f=(e[0].emails.length===0?"no email":"email")+e[2]+" svelte-150y7wb"),E(g,"class","groupTags svelte-150y7wb"),E(n,"class","texts svelte-150y7wb")},m(O,S){N(t,O,S),C(O,i,S),C(O,n,S),w(n,s),w(s,r),w(n,d),w(n,u),w(u,_),w(n,m),w(n,g),T[p].m(g,null),y=!0},p(O,S){const _e={};S&1&&(_e.row=O[0]),t.$set(_e),(!y||S&24)&&o!==(o=(O[3]!==void 0?O[3]:O[4]("No name"))+"")&&ae(r,o),(!y||S&12&&l!==(l=(O[3]?"name":"no name")+O[2]+" svelte-150y7wb"))&&E(s,"class",l),(!y||S&17)&&c!==(c=(O[0].emails.length!==0?O[0].emails[0]:O[4]("No email"))+"")&&ae(_,c),(!y||S&5&&f!==(f=(O[0].emails.length===0?"no email":"email")+O[2]+" svelte-150y7wb"))&&E(u,"class",f);let j=p;p=L(O),p===j?T[p].p(O,S):(Te(),I(T[j],1,1,()=>{T[j]=null}),Le(),v=T[p],v?v.p(O,S):(v=T[p]=b[p](O),v.c()),A(v,1),v.m(g,null))},i(O){y||(A(t.$$.fragment,O),A(v),y=!0)},o(O){I(t.$$.fragment,O),I(v),y=!1},d(O){O&&($(i),$(n)),H(t,O),T[p].d()}}}function _u(e){let t,i;return t=new ti({props:{className:e[1],$$slots:{default:[cu]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,[s]){const o={};s&2&&(o.className=n[1]),s&61&&(o.$$scope={dirty:s,ctx:n}),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function fu(e,t,i){let n,s,o;z(e,Oe,d=>i(4,o=d));let{row:r}=t,{className:l="userColumn"}=t;return e.$$set=d=>{"row"in d&&i(0,r=d.row),"className"in d&&i(1,l=d.className)},e.$$.update=()=>{e.$$.dirty&1&&i(3,n=lu(r.firstname,r.lastname,r.systemName)),e.$$.dirty&1&&i(2,s=r.__dimmed?" Dimmed":"")},[r,l,s,n,o]}class ws extends le{constructor(t){super(),oe(this,t,fu,_u,ne,{row:0,className:1},au)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),P()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),P()}}re(ws,{row:{},className:{}},[],[],!0);function mu(e){me(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function hu(e){let t,i=e[4]("Invalid data")+"",n;return{c(){t=D("span"),n=te(i),E(t,"class","invalid svelte-hsbbji")},m(s,o){C(s,t,o),w(t,n)},p(s,o){o&16&&i!==(i=s[4]("Invalid data")+"")&&ae(n,i)},i:Z,o:Z,d(s){s&&$(t)}}}function gu(e){let t,i;return t=new Si({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&4&&(o.style=n[2]),s&1&&(o.timestamp=n[0]),s&2&&(o.format=n[1]),s&8&&(o.relative=n[3]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function pu(e){let t,i,n,s,o;const r=[gu,hu],l=[];function d(u,c){return c&1&&(i=null),i==null&&(i=u[0]instanceof Date&&!isNaN(u[0].getTime())),i?0:1}return n=d(e,-1),s=l[n]=r[n](e),{c(){t=D("div"),s.c(),E(t,"class","Date svelte-hsbbji")},m(u,c){C(u,t,c),l[n].m(t,null),o=!0},p(u,[c]){let _=n;n=d(u,c),n===_?l[n].p(u,c):(Te(),I(l[_],1,1,()=>{l[_]=null}),Le(),s=l[n],s?s.p(u,c):(s=l[n]=r[n](u),s.c()),A(s,1),s.m(t,null))},i(u){o||(A(s),o=!0)},o(u){I(s),o=!1},d(u){u&&$(t),l[n].d()}}}function vu(e,t,i){let n;z(e,Oe,d=>i(4,n=d));let{data:s}=t,{format:o=ms()}=t,{style:r=""}=t,{relative:l=!1}=t;return e.$$set=d=>{"data"in d&&i(0,s=d.data),"format"in d&&i(1,o=d.format),"style"in d&&i(2,r=d.style),"relative"in d&&i(3,l=d.relative)},[s,o,r,l,n]}class wi extends le{constructor(t){super(),oe(this,t,vu,pu,ne,{data:0,format:1,style:2,relative:3},mu)}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),P()}get format(){return this.$$.ctx[1]}set format(t){this.$$set({format:t}),P()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),P()}get relative(){return this.$$.ctx[3]}set relative(t){this.$$set({relative:t}),P()}}re(wi,{data:{},format:{},style:{},relative:{type:"Boolean"}},[],[],!0);function Eu(e){me(e,"svelte-cpyv29","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 yu(e){let t,i;return t=new De({props:{iconLaClassName:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&4&&(o.iconLaClassName=n[2]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function bu(e){let t,i;return t=new dt({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[yu]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,[s]){const o={};s&1&&(o.text=n[0]),s&2&&(o.style=n[1]),s&36&&(o.$$scope={dirty:s,ctx:n}),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Tu(e,t,i){let{text:n}=t,{className:s=""}=t,{style:o=""}=t,{iconLaClassName:r}=t,l=`IconTag ${s}`;return e.$$set=d=>{"text"in d&&i(0,n=d.text),"className"in d&&i(4,s=d.className),"style"in d&&i(1,o=d.style),"iconLaClassName"in d&&i(2,r=d.iconLaClassName)},[n,o,r,l,s]}class ii extends le{constructor(t){super(),oe(this,t,Tu,bu,ne,{text:0,className:4,style:1,iconLaClassName:2},Eu)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),P()}get className(){return this.$$.ctx[4]}set className(t){this.$$set({className:t}),P()}get style(){return this.$$.ctx[1]}set style(t){this.$$set({style:t}),P()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),P()}}re(ii,{text:{},className:{},style:{},iconLaClassName:{}},[],[],!0);function Lu(e){me(e,"svelte-qax2i",".IconWrapper.svelte-qax2i{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-qax2i{display:inline-flex;flex-direction:row;border-radius:4px}.Pending.svelte-qax2i{background-color:var(--ok-color)}.Overdue.svelte-qax2i{background-color:var(--notif-error-color)}.Department.svelte-qax2i{background-color:var(--department-bg-color)}")}function Au(e){let t,i,n,s;i=new De({props:{iconLaClassName:e[2]}});const o=e[7].default,r=Lt(o,e,e[6],null);return{c(){t=D("div"),F(i.$$.fragment),n=J(),r&&r.c(),E(t,"class","IconWrapper svelte-qax2i")},m(l,d){C(l,t,d),N(i,t,null),C(l,n,d),r&&r.m(l,d),s=!0},p(l,d){const u={};d&4&&(u.iconLaClassName=l[2]),i.$set(u),r&&r.p&&(!s||d&64)&&wt(r,o,l,l[6],s?At(o,l[6],d,null):Ot(l[6]),null)},i(l){s||(A(i.$$.fragment,l),A(r,l),s=!0)},o(l){I(i.$$.fragment,l),I(r,l),s=!1},d(l){l&&($(t),$(n)),H(i),r&&r.d(l)}}}function wu(e){let t,i;return t=new ii({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&16&&(o.style=n[4]),s&1&&(o.text=n[0]),s&4&&(o.iconLaClassName=n[2]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Ou(e){let t,i,n,s,o,r,l;const d=[wu,Au],u=[];function c(_,f){return _[0]!==""?0:1}return i=c(e),n=u[i]=d[i](e),o=new dt({props:{style:e[5],text:e[1]}}),{c(){t=D("div"),n.c(),s=J(),F(o.$$.fragment),E(t,"class",r=ye(`Tag CombinedTag ${e[3]}`)+" svelte-qax2i")},m(_,f){C(_,t,f),u[i].m(t,null),w(t,s),N(o,t,null),l=!0},p(_,[f]){let m=i;i=c(_),i===m?u[i].p(_,f):(Te(),I(u[m],1,1,()=>{u[m]=null}),Le(),n=u[i],n?n.p(_,f):(n=u[i]=d[i](_),n.c()),A(n,1),n.m(t,s));const g={};f&32&&(g.style=_[5]),f&2&&(g.text=_[1]),o.$set(g),(!l||f&8&&r!==(r=ye(`Tag CombinedTag ${_[3]}`)+" svelte-qax2i"))&&E(t,"class",r)},i(_){l||(A(n),A(o.$$.fragment,_),l=!0)},o(_){I(n),I(o.$$.fragment,_),l=!1},d(_){_&&$(t),u[i].d(),H(o)}}}function Iu(e,t,i){let{$$slots:n={},$$scope:s}=t,{iconText:o=""}=t,{tagText:r}=t,{iconLaClassName:l}=t,{className:d}=t,{iconTagStyles:u}=t,{tagStyles:c}=t;return e.$$set=_=>{"iconText"in _&&i(0,o=_.iconText),"tagText"in _&&i(1,r=_.tagText),"iconLaClassName"in _&&i(2,l=_.iconLaClassName),"className"in _&&i(3,d=_.className),"iconTagStyles"in _&&i(4,u=_.iconTagStyles),"tagStyles"in _&&i(5,c=_.tagStyles),"$$scope"in _&&i(6,s=_.$$scope)},[o,r,l,d,u,c,s,n]}class Ni extends le{constructor(t){super(),oe(this,t,Iu,Ou,ne,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},Lu)}get iconText(){return this.$$.ctx[0]}set iconText(t){this.$$set({iconText:t}),P()}get tagText(){return this.$$.ctx[1]}set tagText(t){this.$$set({tagText:t}),P()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),P()}get className(){return this.$$.ctx[3]}set className(t){this.$$set({className:t}),P()}get iconTagStyles(){return this.$$.ctx[4]}set iconTagStyles(t){this.$$set({iconTagStyles:t}),P()}get tagStyles(){return this.$$.ctx[5]}set tagStyles(t){this.$$set({tagStyles:t}),P()}}re(Ni,{iconText:{},tagText:{},iconLaClassName:{},className:{},iconTagStyles:{},tagStyles:{}},["default"],[],!0);function Ru(e){let t,i;return t=new dt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&16&&(o.text=n[4]("No SLA")),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Du(e){let t,i;return t=new Ni({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&2&&(o.iconText=n[1]),s&8&&(o.iconLaClassName=n[3].icon),s&1&&(o.tagText=n[0]),s&8&&(o.className=n[3].className),s&8&&(o.tagStyles=n[3].tagStyles),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function xu(e){let t,i,n,s;const o=[Du,Ru],r=[];function l(d,u){return d[2]?0:1}return t=l(e),i=r[t]=o[t](e),{c(){i.c(),n=It()},m(d,u){r[t].m(d,u),C(d,n,u),s=!0},p(d,[u]){let c=t;t=l(d),t===c?r[t].p(d,u):(Te(),I(r[c],1,1,()=>{r[c]=null}),Le(),i=r[t],i?i.p(d,u):(i=r[t]=o[t](d),i.c()),A(i,1),i.m(n.parentNode,n))},i(d){s||(A(i),s=!0)},o(d){I(i),s=!1},d(d){d&&$(n),r[t].d(d)}}}function Pu(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-n-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-n-sla-alert",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function ku(e,t,i){let n,s,o;z(e,Oe,d=>i(4,o=d));let{tagText:r=o("First answer")}=t,{due:l}=t;return e.$$set=d=>{"tagText"in d&&i(0,r=d.tagText),"due"in d&&i(1,l=d.due)},e.$$.update=()=>{e.$$.dirty&2&&i(3,n=Pu(l)),e.$$.dirty&2&&i(2,s=l instanceof Date&&!isNaN(l))},[r,l,s,n,o]}class Os extends le{constructor(t){super(),oe(this,t,ku,xu,ne,{tagText:0,due:1})}get tagText(){return this.$$.ctx[0]}set tagText(t){this.$$set({tagText:t}),P()}get due(){return this.$$.ctx[1]}set due(t){this.$$set({due:t}),P()}}re(Os,{tagText:{},due:{}},[],[],!0);function $u(e){me(e,"svelte-1e3dqfj",".Dimmed.svelte-1e3dqfj{color:var(--text-color-secondary)}.TicketId.svelte-1e3dqfj{font-weight:bold;margin-right:10px}.Created.svelte-1e3dqfj,.Changed.svelte-1e3dqfj,.TicketId.svelte-1e3dqfj{font-size:14px;line-height:20px}.Communication.svelte-1e3dqfj{display:inline-flex;align-items:center;justify-content:center;margin-right:6px;font-size:14px;line-height:20px}.ticketDetails.svelte-1e3dqfj{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}.arrows.svelte-1e3dqfj{display:flex}@media(min-width: 768px){.Created.svelte-1e3dqfj,.Changed.svelte-1e3dqfj,.TicketId.svelte-1e3dqfj,.Communication.svelte-1e3dqfj{font-size:13px}}@media(min-width: 900px){.hide.svelte-1e3dqfj{display:none}.ticketDetails.svelte-1e3dqfj{margin:0}}")}function Cu(e){let t,i,n=e[1].code+"",s,o,r,l,d,u,c,_=e[1].messagegroupsIn+"",f,m,g,p,v,y,b=e[1].messagegroupsOut+"",T,L,O,S,_e,j=e[4]("Created")+"",he,se,q,G,W,M,R,x,V=e[4]("Changed")+"",k,U,K,Q,ce,ve,ge,fe;return d=new De({props:{iconLaClassName:"la-n-arrow_down_left"}}),p=new De({props:{iconLaClassName:"la-n-arrow_up_right"}}),G=new wi({props:{data:je(e[1].datecreated)}}),Q=new wi({props:{data:je(e[1].datechanged)}}),ge=new Os({props:{tagText:"",due:je(e[1].datedue)}}),{c(){t=D("div"),i=D("span"),s=te(n),o=J(),r=D("div"),l=D("div"),F(d.$$.fragment),u=J(),c=D("span"),f=te(_),m=J(),g=D("div"),F(p.$$.fragment),v=J(),y=D("span"),T=te(b),O=J(),S=D("div"),_e=D("span"),he=te(j),se=te(":"),q=J(),F(G.$$.fragment),M=J(),R=D("div"),x=D("span"),k=te(V),U=te(":"),K=J(),F(Q.$$.fragment),ve=J(),F(ge.$$.fragment),E(i,"class","TicketId svelte-1e3dqfj"),E(l,"class","Communication incomingMessages svelte-1e3dqfj"),E(g,"class","Communication outgoingMessages svelte-1e3dqfj"),E(r,"class","arrows svelte-1e3dqfj"),E(t,"class",L=ye(`ticketDetails ${e[3]}`)+" svelte-1e3dqfj"),E(S,"class",W=ye(`Created ${e[2]?"":"hide"} ${e[3]}`)+" svelte-1e3dqfj"),E(R,"class",ce=ye(`Changed ${e[2]?"hide":""} ${e[3]}`)+" svelte-1e3dqfj")},m(X,ue){C(X,t,ue),w(t,i),w(i,s),w(t,o),w(t,r),w(r,l),N(d,l,null),w(l,u),w(l,c),w(c,f),w(r,m),w(r,g),N(p,g,null),w(g,v),w(g,y),w(y,T),C(X,O,ue),C(X,S,ue),w(S,_e),w(_e,he),w(_e,se),w(S,q),N(G,S,null),C(X,M,ue),C(X,R,ue),w(R,x),w(x,k),w(x,U),w(R,K),N(Q,R,null),C(X,ve,ue),N(ge,X,ue),fe=!0},p(X,ue){(!fe||ue&2)&&n!==(n=X[1].code+"")&&ae(s,n),(!fe||ue&2)&&_!==(_=X[1].messagegroupsIn+"")&&ae(f,_),(!fe||ue&2)&&b!==(b=X[1].messagegroupsOut+"")&&ae(T,b),(!fe||ue&8&&L!==(L=ye(`ticketDetails ${X[3]}`)+" svelte-1e3dqfj"))&&E(t,"class",L),(!fe||ue&16)&&j!==(j=X[4]("Created")+"")&&ae(he,j);const $e={};ue&2&&($e.data=je(X[1].datecreated)),G.$set($e),(!fe||ue&12&&W!==(W=ye(`Created ${X[2]?"":"hide"} ${X[3]}`)+" svelte-1e3dqfj"))&&E(S,"class",W),(!fe||ue&16)&&V!==(V=X[4]("Changed")+"")&&ae(k,V);const xe={};ue&2&&(xe.data=je(X[1].datechanged)),Q.$set(xe),(!fe||ue&12&&ce!==(ce=ye(`Changed ${X[2]?"hide":""} ${X[3]}`)+" svelte-1e3dqfj"))&&E(R,"class",ce);const be={};ue&2&&(be.due=je(X[1].datedue)),ge.$set(be)},i(X){fe||(A(d.$$.fragment,X),A(p.$$.fragment,X),A(G.$$.fragment,X),A(Q.$$.fragment,X),A(ge.$$.fragment,X),fe=!0)},o(X){I(d.$$.fragment,X),I(p.$$.fragment,X),I(G.$$.fragment,X),I(Q.$$.fragment,X),I(ge.$$.fragment,X),fe=!1},d(X){X&&($(t),$(O),$(S),$(M),$(R),$(ve)),H(d),H(p),H(G),H(Q),H(ge,X)}}}function Su(e){let t,i;return t=new ti({props:{className:e[0],$$slots:{default:[Cu]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,[s]){const o={};s&1&&(o.className=n[0]),s&286&&(o.$$scope={dirty:s,ctx:n}),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Vu(e,t,i){let n,s,o;z(e,Oe,_=>i(4,o=_));let{className:r="importanceColumn"}=t,{row:l}=t,d=!0;const u=ei();z(e,u,_=>i(6,s=_));function c(){i(2,d=!(s.value==="Changed-newest"||s.value==="Changed-oldest")),l.__hovered&&i(2,d=!d)}return e.$$set=_=>{"className"in _&&i(0,r=_.className),"row"in _&&i(1,l=_.row)},e.$$.update=()=>{e.$$.dirty&2&&l&&c(),e.$$.dirty&2&&i(3,n=l.__dimmed?"Dimmed":"")},[r,l,d,n,o,u]}class Is extends le{constructor(t){super(),oe(this,t,Vu,Su,ne,{className:0,row:1},$u)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),P()}get row(){return this.$$.ctx[1]}set row(t){this.$$set({row:t}),P()}}re(Is,{className:{},row:{}},[],[],!0);function Nu(e){me(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function Hu(e){let t,i;return t=new dt({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,[s]){const o={};s&6&&(o.style="color: #"+n[2]+"; background: #"+n[1]+"99; border: 1px solid #"+n[1]),s&1&&(o.text=n[0]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Mu(e,t,i){let n,s,o,r,{tagId:l}=t;const d=as();return z(e,d,u=>i(5,r=u)),e.$$set=u=>{"tagId"in u&&i(4,l=u.tagId)},e.$$.update=()=>{var u,c,_;e.$$.dirty&48&&i(2,n=((u=r[l])==null?void 0:u.color)??0),e.$$.dirty&48&&i(1,s=((c=r[l])==null?void 0:c.backgroundcolor)??0),e.$$.dirty&48&&i(0,o=((_=r[l])==null?void 0:_.name)??"")},[o,s,n,d,l,r]}class Rs extends le{constructor(t){super(),oe(this,t,Mu,Hu,ne,{tagId:4},Nu)}get tagId(){return this.$$.ctx[4]}set tagId(t){this.$$set({tagId:t}),P()}}re(Rs,{tagId:{}},[],[],!0);function Bu(e){me(e,"svelte-ht89e6",".tags-container.svelte-ht89e6{display:flex;flex-direction:row;gap:6px;width:100%}@media(min-width: 768px){.tags-container.svelte-ht89e6{overflow:hidden}.Tag.TicketTag{display:flex;align-items:center;min-width:20px;max-width:fit-content;flex-grow:1;flex-shrink:1;transition:flex-shrink 0.3s ease}.Tag.TicketTag:hover{flex-grow:0;flex-shrink:0}.Tag.TicketTag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}")}function bn(e,t,i){const n=e.slice();return n[1]=t[i],n}function Tn(e){let t,i;return t=new Rs({props:{tagId:e[1]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&1&&(o.tagId=n[1]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Fu(e){let t,i,n=Ne(e[0]),s=[];for(let r=0;r<n.length;r+=1)s[r]=Tn(bn(e,n,r));const o=r=>I(s[r],1,1,()=>{s[r]=null});return{c(){t=D("div");for(let r=0;r<s.length;r+=1)s[r].c();E(t,"class","tags-container svelte-ht89e6")},m(r,l){C(r,t,l);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);i=!0},p(r,[l]){if(l&1){n=Ne(r[0]);let d;for(d=0;d<n.length;d+=1){const u=bn(r,n,d);s[d]?(s[d].p(u,l),A(s[d],1)):(s[d]=Tn(u),s[d].c(),A(s[d],1),s[d].m(t,null))}for(Te(),d=n.length;d<s.length;d+=1)o(d);Le()}},i(r){if(!i){for(let l=0;l<n.length;l+=1)A(s[l]);i=!0}},o(r){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)I(s[l]);i=!1},d(r){r&&$(t),zt(s,r)}}}function Gu(e,t,i){let{tags:n}=t;return e.$$set=s=>{"tags"in s&&i(0,n=s.tags)},[n]}class Ds extends le{constructor(t){super(),oe(this,t,Gu,Fu,ne,{tags:0},Bu)}get tags(){return this.$$.ctx[0]}set tags(t){this.$$set({tags:t}),P()}}re(Ds,{tags:{}},[],[],!0);function zu(e){me(e,"svelte-1o2tm98",".Tag.IconTag.StatusTag{gap:0;transition:gap 0.3s ease}.Tag.IconTag.StatusTag .text{max-width:0;width:auto;overflow:hidden;white-space:nowrap;transition:max-width 0.3s ease}@media(min-width: 768px){.Tag.IconTag.StatusTag:hover{gap:5px}.Tag.IconTag.StatusTag:hover .text{max-width:200px}}@media(min-width: 1300px){.Tag.IconTag.StatusTag .text{max-width:200px}.Tag.IconTag.StatusTag{gap:5px}}")}function ju(e){let t,i;return t=new ii({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Se(e[0]).text+`;
|
|
12
12
|
background-color: `+Se(e[0]).bg+`;
|
|
13
|
-
border-color: `+Se(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){F(t.$$.fragment)},m(n,s){
|
|
13
|
+
border-color: `+Se(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,[s]){const o={};s&1&&(o.className="StatusTag "+n[1][n[0]].text),s&1&&(o.style="color: "+Se(n[0]).text+`;
|
|
14
14
|
background-color: `+Se(n[0]).bg+`;
|
|
15
|
-
border-color: `+Se(n[0]).border),s&1&&(
|
|
15
|
+
border-color: `+Se(n[0]).border),s&1&&(o.text=n[1][n[0]].text),s&1&&(o.iconLaClassName=n[1][n[0]].icon),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Uu(e,t,i){let n;z(e,Oe,r=>i(2,n=r));let{status:s}=t;const o={A:{text:n("Answered"),icon:"la-n-answered"},T:{text:n("Chatting"),icon:"la-n-chatting"},P:{text:n("Calling"),icon:"la-n-call"},X:{text:n("Deleted"),icon:"la-n-delete"},B:{text:n("Spam"),icon:"la-n-spam"},I:{text:n("Init"),icon:""},R:{text:n("Resolved"),icon:"la-n-resolve"},N:{text:n("New"),icon:"la-n-ticket"},C:{text:n("Open"),icon:"la-n-ticket_open"},W:{text:n("Postponed"),icon:"la-n-postponed"},L:{text:n("Closed"),icon:"la-n-close_archive"}};return e.$$set=r=>{"status"in r&&i(0,s=r.status)},[s,o]}class xs extends le{constructor(t){super(),oe(this,t,Uu,ju,ne,{status:0},zu)}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),P()}}re(xs,{status:{}},[],[],!0);function Ku(e){let t,i;return t=new ii({props:{className:ks,text:e[0].departmentname,iconLaClassName:Ps}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&1&&(o.text=n[0].departmentname),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Ju(e){let t,i;return t=new Ni({props:{iconText:e[0].departmentname,tagText:e[0].agentname,iconLaClassName:Ps,className:ks,iconTagStyles:e[1],tagStyles:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&1&&(o.iconText=n[0].departmentname),s&1&&(o.tagText=n[0].agentname),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Wu(e){let t,i,n,s,o;const r=[Ju,Ku],l=[];function d(u,c){return c&1&&(t=null),t==null&&(t=u[0].agentname.trim()!==""),t?0:1}return i=d(e,-1),n=l[i]=r[i](e),{c(){n.c(),s=It()},m(u,c){l[i].m(u,c),C(u,s,c),o=!0},p(u,[c]){let _=i;i=d(u,c),i===_?l[i].p(u,c):(Te(),I(l[_],1,1,()=>{l[_]=null}),Le(),n=l[i],n?n.p(u,c):(n=l[i]=r[i](u),n.c()),A(n,1),n.m(s.parentNode,s))},i(u){o||(A(n),o=!0)},o(u){I(n),o=!1},d(u){u&&$(s),l[i].d(u)}}}const Ps="la-n-department",ks="Department";function Xu(e,t,i){let{data:n}=t,s="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=r=>{"data"in r&&i(0,n=r.data)},[n,s,o]}class $s extends le{constructor(t){super(),oe(this,t,Xu,Wu,ne,{data:0})}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),P()}}re($s,{data:{}},[],[],!0);function qu(e){me(e,"svelte-b19fyk",".subject.svelte-b19fyk{font-size:14px;font-weight:bold;line-height:20px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview.svelte-b19fyk{max-width:100%;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px;font-size:14px}.no-text.svelte-b19fyk{color:var(--main-lighter-textcolor)}.tags-wrapper.svelte-b19fyk{display:flex;gap:6px;width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.tags-wrapper.svelte-b19fyk::-webkit-scrollbar{display:none}.subject.Dimmed.svelte-b19fyk,.preview.Dimmed.svelte-b19fyk{color:var(--text-color-secondary)}@media(min-width: 768px){.subject.svelte-b19fyk{font-size:13px}.preview.svelte-b19fyk{font-size:13px;margin:0}.tags-wrapper.svelte-b19fyk{overflow:hidden}}")}function Zu(e){let t,i=e[0].subject+"",n,s,o,r,l=(e[0].preview?e[0].preview:e[3]("No text for preview"))+"",d,u,c,_,f,m,g,p,v,y;return f=new xs({props:{status:e[0].status}}),g=new $s({props:{data:e[0]}}),v=new Ds({props:{tags:e[0].tags}}),{c(){t=D("h1"),n=te(i),o=J(),r=D("p"),d=te(l),c=J(),_=D("div"),F(f.$$.fragment),m=J(),F(g.$$.fragment),p=J(),F(v.$$.fragment),E(t,"class",s="subject "+e[2]+" svelte-b19fyk"),E(r,"class",u=(e[0].preview?"preview":"preview no-text")+e[2]+" svelte-b19fyk"),E(_,"class","tags-wrapper svelte-b19fyk")},m(b,T){C(b,t,T),w(t,n),C(b,o,T),C(b,r,T),w(r,d),C(b,c,T),C(b,_,T),N(f,_,null),w(_,m),N(g,_,null),w(_,p),N(v,_,null),y=!0},p(b,T){(!y||T&1)&&i!==(i=b[0].subject+"")&&ae(n,i),(!y||T&4&&s!==(s="subject "+b[2]+" svelte-b19fyk"))&&E(t,"class",s),(!y||T&9)&&l!==(l=(b[0].preview?b[0].preview:b[3]("No text for preview"))+"")&&ae(d,l),(!y||T&5&&u!==(u=(b[0].preview?"preview":"preview no-text")+b[2]+" svelte-b19fyk"))&&E(r,"class",u);const L={};T&1&&(L.status=b[0].status),f.$set(L);const O={};T&1&&(O.data=b[0]),g.$set(O);const S={};T&1&&(S.tags=b[0].tags),v.$set(S)},i(b){y||(A(f.$$.fragment,b),A(g.$$.fragment,b),A(v.$$.fragment,b),y=!0)},o(b){I(f.$$.fragment,b),I(g.$$.fragment,b),I(v.$$.fragment,b),y=!1},d(b){b&&($(t),$(o),$(r),$(c),$(_)),H(f),H(g),H(v)}}}function Yu(e){let t,i;return t=new ti({props:{className:e[1],$$slots:{default:[Zu]},$$scope:{ctx:e}}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,[s]){const o={};s&2&&(o.className=n[1]),s&29&&(o.$$scope={dirty:s,ctx:n}),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Qu(e,t,i){let n,s;z(e,Oe,l=>i(3,s=l));let{row:o}=t,{className:r="statusColumn"}=t;return e.$$set=l=>{"row"in l&&i(0,o=l.row),"className"in l&&i(1,r=l.className)},e.$$.update=()=>{e.$$.dirty&1&&i(2,n=o.__dimmed?" Dimmed":"")},[o,r,n,s]}class Cs extends le{constructor(t){super(),oe(this,t,Qu,Yu,ne,{row:0,className:1},qu)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),P()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),P()}}re(Cs,{row:{},className:{}},[],[],!0);function ed(e){me(e,"svelte-1syhxwc",`.Body.svelte-1syhxwc.svelte-1syhxwc{height:100%;overflow-y:auto;overflow-x:hidden;padding:20px}.Row.svelte-1syhxwc.svelte-1syhxwc{position:relative;display:grid;grid-template-columns:45px 1fr;grid-template-rows:auto;grid-template-areas:"checkbox user"
|
|
16
16
|
"checkbox status"
|
|
17
17
|
"checkbox importance";grid-column-gap:6px;border-radius:12px;box-shadow:var(--ticket-shadow);border-bottom:1px solid var(--ticket-border-primary);padding:4px 0;margin-top:8px;background-color:var(--ticket-background-primary);overflow:hidden;cursor:pointer}.Row.svelte-1syhxwc.svelte-1syhxwc:hover{background-color:var(--ticket-background-hover) !important}.Row.Selected.svelte-1syhxwc.svelte-1syhxwc{background-color:var(--ticket-background-selected) !important}.Row.Dimmed.svelte-1syhxwc.svelte-1syhxwc{background-color:var(--ticket-background-secondary)}.UserColumn.svelte-1syhxwc.svelte-1syhxwc{grid-area:user}.StatusColumn.svelte-1syhxwc.svelte-1syhxwc{grid-area:status}.ImportanceColumn.svelte-1syhxwc.svelte-1syhxwc{grid-area:importance}.UserColumn.svelte-1syhxwc.svelte-1syhxwc,.StatusColumn.svelte-1syhxwc.svelte-1syhxwc,.ImportanceColumn.svelte-1syhxwc.svelte-1syhxwc{overflow:hidden;height:100%}.Checkbox.svelte-1syhxwc.svelte-1syhxwc{grid-area:checkbox;position:relative}.StatusBar.svelte-1syhxwc.svelte-1syhxwc{position:absolute;left:0;top:10%;content:"";width:6px;height:80%;margin-left:8px;border-radius:69px;transition:width 0.1s ease}.Row.svelte-1syhxwc:hover .StatusBar.svelte-1syhxwc{width:10px}@media(min-width: 768px){.Row.svelte-1syhxwc.svelte-1syhxwc{display:grid;grid-template-areas:"checkbox user importance"
|
|
18
|
-
"checkbox status importance";grid-template-columns:45px 3fr 2fr;height:110px}}@media(min-width: 900px){.Row.svelte-1syhxwc.svelte-1syhxwc{grid-template-areas:"checkbox user status importance";grid-template-columns:45px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-1syhxwc.svelte-1syhxwc{grid-template-columns:45px 260px auto 230px}}`)}function Ln(e,t,i){const n=e.slice();return n[14]=t[i],n[16]=i,n}function An(e){let t,i,n,s,r,o,l,d,u,c,_,f,m,g,v,L,p,E;function T(...z){return e[8](e[16],...z)}r=new Vi({props:{checked:e[1][e[16]].__selected,onChange:T,value:e[14].conversationid}});function A(...z){return e[9](e[16],...z)}d=new ws({props:{row:e[14]}}),_=new $s({props:{row:e[14]}}),g=new Is({props:{row:e[14]}});function O(){return e[10](e[16])}function N(){return e[11](e[16])}function he(...z){return e[12](e[14],...z)}return{c(){t=x("div"),i=x("div"),n=x("div"),s=K(),F(r.$$.fragment),o=K(),l=x("div"),F(d.$$.fragment),u=K(),c=x("div"),F(_.$$.fragment),f=K(),m=x("div"),F(g.$$.fragment),y(n,"class","StatusBar svelte-1syhxwc"),Je(n,"background-color",Se(e[14].status).line),y(i,"class","Checkbox svelte-1syhxwc"),y(l,"class","UserColumn svelte-1syhxwc"),y(c,"class","StatusColumn svelte-1syhxwc"),y(m,"class","ImportanceColumn svelte-1syhxwc"),y(t,"class",v=Ee(wn(e[1][e[16]]))+" svelte-1syhxwc")},m(z,ne){S(z,t,ne),I(t,i),I(i,n),I(i,s),H(r,i,null),I(t,o),I(t,l),H(d,l,null),I(t,u),I(t,c),H(_,c,null),I(t,f),I(t,m),H(g,m,null),L=!0,p||(E=[we(i,"mousedown",di(e[7])),we(i,"click",Xs(di(A))),we(t,"mouseenter",O),we(t,"mouseleave",N),we(t,"mousedown",he)],p=!0)},p(z,ne){e=z,(!L||ne&2)&&Je(n,"background-color",Se(e[14].status).line);const ie={};ne&2&&(ie.checked=e[1][e[16]].__selected),ne&2&&(ie.value=e[14].conversationid),r.$set(ie);const W={};ne&2&&(W.row=e[14]),d.$set(W);const ve={};ne&2&&(ve.row=e[14]),_.$set(ve);const Le={};ne&2&&(Le.row=e[14]),g.$set(Le),(!L||ne&2&&v!==(v=Ee(wn(e[1][e[16]]))+" svelte-1syhxwc"))&&y(t,"class",v)},i(z){L||(w(r.$$.fragment,z),w(d.$$.fragment,z),w(_.$$.fragment,z),w(g.$$.fragment,z),L=!0)},o(z){D(r.$$.fragment,z),D(d.$$.fragment,z),D(_.$$.fragment,z),D(g.$$.fragment,z),L=!1},d(z){z&&$(t),M(r),M(d),M(_),M(g),p=!1,ke(E)}}}function td(e){let t,i,n,s=Ne(e[1]),r=[];for(let u=0;u<s.length;u+=1)r[u]=An(Ln(e,s,u));const o=u=>D(r[u],1,1,()=>{r[u]=null}),l=e[6].default,d=Lt(l,e,e[5],null);return{c(){t=x("div");for(let u=0;u<r.length;u+=1)r[u].c();i=K(),d&&d.c(),y(t,"class","Body svelte-1syhxwc")},m(u,c){S(u,t,c);for(let _=0;_<r.length;_+=1)r[_]&&r[_].m(t,null);I(t,i),d&&d.m(t,null),n=!0},p(u,[c]){if(c&27){s=Ne(u[1]);let _;for(_=0;_<s.length;_+=1){const f=Ln(u,s,_);r[_]?(r[_].p(f,c),w(r[_],1)):(r[_]=An(f),r[_].c(),w(r[_],1),r[_].m(t,i))}for(be(),_=s.length;_<r.length;_+=1)o(_);Te()}d&&d.p&&(!n||c&32)&&wt(d,l,u,u[5],n?At(l,u[5],c,null):Ot(u[5]),null)},i(u){if(!n){for(let c=0;c<s.length;c+=1)w(r[c]);w(d,u),n=!0}},o(u){r=r.filter(Boolean);for(let c=0;c<r.length;c+=1)D(r[c]);D(d,u),n=!1},d(u){u&&$(t),jt(r,u),d&&d.d(u)}}}function wn(e){let t="Row";e.__selected&&(t+=" Selected");const i=e.status;return(i==="R"||i==="A"||i==="X"||i==="B"||i==="I"||i==="L")&&(t+=" Dimmed",e.__dimmed=!0),t}function id(e,t,i){let n,{$$slots:s={},$$scope:r}=t,{rowMiddleClickHandler:o}=t;const d=Fe().getData();G(e,d,p=>i(1,n=p));function u(p,E){if(p.shiftKey){let T=n.findIndex(A=>A.__selected);if(T!==-1){let A=Math.min(T,E),O=Math.max(T,E);for(let N=A;N<=O;N++)ii(d,n[N].__selected=!0,n)}}else ii(d,n[E].__selected=!n[E].__selected,n)}function c(p,E){ii(d,n[p].__hovered=E,n)}function _(p){xn.call(this,e,p)}const f=(p,E)=>u(E,p),m=(p,E)=>u(E,p),g=p=>c(p,!0),v=p=>c(p,!1),L=(p,E)=>{(E.ctrlKey||E.metaKey||E.button===1)&&o?(o(p.conversationid),E.preventDefault(),E.stopPropagation()):E.button===0&&location.assign("#Conversation;id="+p.conversationid)};return e.$$set=p=>{"rowMiddleClickHandler"in p&&i(0,o=p.rowMiddleClickHandler),"$$scope"in p&&i(5,r=p.$$scope)},[o,n,d,u,c,r,s,_,f,m,g,v,L]}class Ss extends oe{constructor(t){super(),se(this,t,id,td,te,{rowMiddleClickHandler:0},ed)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),C()}}re(Ss,{rowMiddleClickHandler:{}},["default"],[],!0);function nd(e){_e(e,"svelte-1eshayv","div.svelte-1eshayv{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}p.svelte-1eshayv{color:var(--main-lighter-textcolor);font-size:12px;line-height:20px;margin:10px 0 0;padding:2px 10px;border-radius:69px;border:1px solid var(--menu-hover-bg);cursor:pointer}")}function sd(e){let t,i,n;return{c(){t=x("div"),i=x("p"),n=Q(e[0]),y(i,"class","svelte-1eshayv"),y(t,"class","svelte-1eshayv")},m(s,r){S(s,t,r),I(t,i),I(i,n)},p(s,[r]){r&1&&le(n,s[0])},i:X,o:X,d(s){s&&$(t)}}}function rd(e,t,i){let n,s,r,o,l,d;G(e,Ie,g=>i(5,s=g));const u=Fe(),c=u.getData();G(e,c,g=>i(7,o=g));const _=u.getLoading();G(e,_,g=>i(9,d=g));const f=u.getError();G(e,f,g=>i(8,l=g));const m=u.getCursor();return G(e,m,g=>i(6,r=g)),e.$$.update=()=>{e.$$.dirty&992&&i(0,n=d?s("Loading..."):l?s("Loading failed. Please try again later."):!o||o.length===0?s("No results match your filter. Try broadening the search criteria."):r==null?s("All data loaded"):s("Load more data"))},[n,c,_,f,m,s,r,o,l,d]}class Vs extends oe{constructor(t){super(),se(this,t,rd,sd,te,{},nd)}}re(Vs,{},[],[],!0);function od(e){_e(e,"svelte-1jf0rsj",".load.svelte-1jf0rsj{display:block}.container.svelte-1jf0rsj{display:flex;flex-direction:column;width:100%;height:100%;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1jf0rsj{width:100%}}")}function ld(e){let t,i,n,s,r,o;return n=new Vs({}),{c(){t=x("div"),i=x("div"),F(n.$$.fragment),y(i,"class","load svelte-1jf0rsj"),y(t,"class","load svelte-1jf0rsj")},m(l,d){S(l,t,d),I(t,i),H(n,i,null),e[10](i),s=!0,r||(o=we(i,"click",e[11]),r=!0)},p:X,i(l){s||(w(n.$$.fragment,l),s=!0)},o(l){D(n.$$.fragment,l),s=!1},d(l){l&&$(t),M(n),e[10](null),r=!1,o()}}}function ad(e){let t,i,n,s,r;return i=new ps({}),s=new Ss({props:{rowMiddleClickHandler:e[0],$$slots:{default:[ld]},$$scope:{ctx:e}}}),{c(){t=x("div"),F(i.$$.fragment),n=K(),F(s.$$.fragment),y(t,"class","container svelte-1jf0rsj")},m(o,l){S(o,t,l),H(i,t,null),I(t,n),H(s,t,null),e[12](t),r=!0},p(o,[l]){const d={};l&1&&(d.rowMiddleClickHandler=o[0]),l&16442&&(d.$$scope={dirty:l,ctx:o}),s.$set(d)},i(o){r||(w(i.$$.fragment,o),w(s.$$.fragment,o),r=!0)},o(o){D(i.$$.fragment,o),D(s.$$.fragment,o),r=!1},d(o){o&&$(t),M(i),M(s),e[12](null)}}}function ud(e,t,i){let n,s,r,{rowMiddleClickHandler:o}=t,l,d;const u=$i(),c=Qt();G(e,c,p=>i(3,n=p));const _=Fe(),f=_.getLoaded();G(e,f,p=>i(4,s=p));const m=_.getCursor();G(e,m,p=>i(5,r=p)),Rt(()=>{const p=localStorage.getItem("TicketGridCurrentFilter");p&&u.set(JSON.parse(p));const E=new IntersectionObserver(T=>{T[0].isIntersecting&&st(n,_)},{root:d,threshold:.5});return E.observe(l),()=>E.unobserve(l)});function g(p){Qe[p?"unshift":"push"](()=>{l=p,i(1,l)})}const v=()=>st(n,_,s&&!r);function L(p){Qe[p?"unshift":"push"](()=>{d=p,i(2,d)})}return e.$$set=p=>{"rowMiddleClickHandler"in p&&i(0,o=p.rowMiddleClickHandler)},[o,l,d,n,s,r,c,_,f,m,g,v,L]}class Ns extends oe{constructor(t){super(),se(this,t,ud,ad,te,{rowMiddleClickHandler:0},od)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),C()}}re(Ns,{rowMiddleClickHandler:{}},[],[],!0);class dd{constructor(t,i){this.tags=i,this.api=new qt(t)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((i,n)=>(i[n.tagid]=n,i),{}),this.tags.set(t)}}class cd{constructor(t,i){pe(this,"groups");pe(this,"api");this.groups=i,this.api=new qt(t)}async load(){const i=(await this.api.getCustomerGroupsGridList()).reduce((n,s)=>(n.set(s.tagid,s),n),new Map);this.groups.set(i)}}function _d(e){_e(e,"svelte-zin6my",".ChangeFilterIcon{font-size:13px}.Buttons.svelte-zin6my{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.NoTickets.svelte-zin6my{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:0 24px;box-sizing:border-box}p.svelte-zin6my{max-width:450px;margin-top:10px;margin-bottom:20px;font-size:14px;font-weight:400;text-align:center}h1.svelte-zin6my{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-zin6my{max-width:300px}.button-text.svelte-zin6my{color:var(--main-textcolor);font-size:14px;line-height:20px;font-family:Roboto}@media(min-width: 768px){.Buttons.svelte-zin6my{flex-direction:row}.button-text.svelte-zin6my,p.svelte-zin6my{font-size:13px}}")}function fd(e){let t,i,n,s=e[2]("Change filter")+"",r,o;return t=new Re({props:{className:"ChangeFilterIcon",iconLaClassName:"la-tune"}}),{c(){F(t.$$.fragment),i=K(),n=x("span"),r=Q(s),y(n,"class","button-text svelte-zin6my")},m(l,d){H(t,l,d),S(l,i,d),S(l,n,d),I(n,r),o=!0},p(l,d){(!o||d&4)&&s!==(s=l[2]("Change filter")+"")&&le(r,s)},i(l){o||(w(t.$$.fragment,l),o=!0)},o(l){D(t.$$.fragment,l),o=!1},d(l){l&&($(i),$(n)),M(t,l)}}}function md(e){let t,i,n,s=e[2]("Configure chat button")+"",r,o;return t=new Re({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){F(t.$$.fragment),i=K(),n=x("span"),r=Q(s),y(n,"class","button-text svelte-zin6my")},m(l,d){H(t,l,d),S(l,i,d),S(l,n,d),I(n,r),o=!0},p(l,d){(!o||d&4)&&s!==(s=l[2]("Configure chat button")+"")&&le(r,s)},i(l){o||(w(t.$$.fragment,l),o=!0)},o(l){D(t.$$.fragment,l),o=!1},d(l){l&&($(i),$(n)),M(t,l)}}}function hd(e){let t,i,n,s,r,o=e[2]("No tickets found")+"",l,d,u,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",_,f,m,g,v,L,p;return g=new Gt({props:{className:"button-secondary",onAction:e[4],$$slots:{default:[fd]},$$scope:{ctx:e}}}),L=new Gt({props:{className:"button-secondary",onAction:e[5],$$slots:{default:[md]},$$scope:{ctx:e}}}),{c(){t=x("div"),i=x("img"),s=K(),r=x("h1"),l=Q(o),d=K(),u=x("p"),_=Q(c),f=K(),m=x("div"),F(g.$$.fragment),v=K(),F(L.$$.fragment),y(i,"alt","No results placeholder"),Ht(i.src,n=e[0]+"/themes/agent/"+e[3]+"/img/no-result.svg")||y(i,"src",n),y(i,"class","svelte-zin6my"),y(r,"class","svelte-zin6my"),y(u,"class","svelte-zin6my"),y(m,"class","Buttons svelte-zin6my"),y(t,"class","NoTickets svelte-zin6my")},m(E,T){S(E,t,T),I(t,i),I(t,s),I(t,r),I(r,l),I(t,d),I(t,u),I(u,_),I(t,f),I(t,m),H(g,m,null),I(m,v),H(L,m,null),p=!0},p(E,[T]){(!p||T&1&&!Ht(i.src,n=E[0]+"/themes/agent/"+E[3]+"/img/no-result.svg"))&&y(i,"src",n),(!p||T&4)&&o!==(o=E[2]("No tickets found")+"")&&le(l,o),(!p||T&4)&&c!==(c=E[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&le(_,c);const A={};T&2&&(A.onAction=E[4]),T&68&&(A.$$scope={dirty:T,ctx:E}),g.$set(A);const O={};T&68&&(O.$$scope={dirty:T,ctx:E}),L.$set(O)},i(E){p||(w(g.$$.fragment,E),w(L.$$.fragment,E),p=!0)},o(E){D(g.$$.fragment,E),D(L.$$.fragment,E),p=!1},d(E){E&&$(t),M(g),M(L)}}}function gd(e,t,i){let n;G(e,Ie,u=>i(2,n=u));let{basePath:s}=t,{changeFilterHandler:r=()=>{}}=t,o=zt("theme");const l=()=>r(),d=()=>window.location.hash="Chat-Buttons";return e.$$set=u=>{"basePath"in u&&i(0,s=u.basePath),"changeFilterHandler"in u&&i(1,r=u.changeFilterHandler)},[s,r,n,o,l,d]}class Hs extends oe{constructor(t){super(),se(this,t,gd,hd,te,{basePath:0,changeFilterHandler:1},_d)}get basePath(){return this.$$.ctx[0]}set basePath(t){this.$$set({basePath:t}),C()}get changeFilterHandler(){return this.$$.ctx[1]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),C()}}re(Hs,{basePath:{},changeFilterHandler:{}},[],[],!0);function pd(e){_e(e,"svelte-64fz0g","main.svelte-64fz0g{height:100%;display:flex;flex-direction:column}")}function vd(e){let t,i;return t=new Ns({props:{rowMiddleClickHandler:e[0]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.rowMiddleClickHandler=n[0]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Ed(e){let t,i;return t=new Hs({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&2&&(r.basePath=n[1]),s&4&&(r.changeFilterHandler=n[2]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function yd(e){let t,i,n,s;const r=[Ed,vd],o=[];function l(d,u){return!d[3].length&&d[4]?0:1}return i=l(e),n=o[i]=r[i](e),{c(){t=x("main"),n.c(),y(t,"class","svelte-64fz0g")},m(d,u){S(d,t,u),o[i].m(t,null),s=!0},p(d,[u]){let c=i;i=l(d),i===c?o[i].p(d,u):(be(),D(o[c],1,1,()=>{o[c]=null}),Te(),n=o[i],n?n.p(d,u):(n=o[i]=r[i](d),n.c()),w(n,1),n.m(t,null))},i(d){s||(w(n),s=!0)},o(d){D(n),s=!1},d(d){d&&$(t),o[i].d()}}}function bd(e,t,i){let n,s,r,o,l,d,u,c,_,f,{rowMiddleClickHandler:m}=t,{basePath:g}=t,{changeFilterHandler:v}=t,L=JSON.stringify(u),p=JSON.stringify(d),E=JSON.stringify(l);const T=Yt();G(e,T,b=>i(24,s=b));const A=Zt();G(e,A,b=>i(25,r=b));const O=Ci();G(e,O,b=>i(23,n=b));const N=us(),he=as(),z=Qt();G(e,z,b=>i(18,o=b));const ne=Fe(),ie=ne.getData();G(e,ie,b=>i(3,_=b));const W=ne.getFilter();G(e,W,b=>i(19,l=b));const ve=ne.getLoading();G(e,ve,b=>i(22,c=b));const Le=ne.getLoaded();G(e,Le,b=>i(4,f=b));const R=ne.getDirection();G(e,R,b=>i(21,u=b));const k=ne.getSort();return G(e,k,b=>i(20,d=b)),Rt(async()=>{await new dd(o,he).load(),await new cd(o,N).load(),await st(o,ne,!0)}),ie.subscribe(b=>{let V=r?b.filter(P=>!P.__selected).map(P=>P.conversationid):b.filter(P=>P.__selected).map(P=>P.conversationid);(V.length!==s.length||!V.every((P,j)=>P===s[j]))&&T.set(V),b.length!==n&&O.set(b.length)}),e.$$set=b=>{"rowMiddleClickHandler"in b&&i(0,m=b.rowMiddleClickHandler),"basePath"in b&&i(1,g=b.basePath),"changeFilterHandler"in b&&i(2,v=b.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&8355840&&(JSON.stringify(u)!==L||JSON.stringify(d)!==p||JSON.stringify(l)!==E)&&!c&&(i(15,L=JSON.stringify(u)),i(16,p=JSON.stringify(d)),i(17,E=JSON.stringify(l)),st(o,ne,!0))},[m,g,v,_,f,T,A,O,z,ie,W,ve,Le,R,k,L,p,E,o,l,d,u,c]}class Ms extends oe{constructor(t){super(),se(this,t,bd,yd,te,{rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},pd)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),C()}get basePath(){return this.$$.ctx[1]}set basePath(t){this.$$set({basePath:t}),C()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),C()}}re(Ms,{rowMiddleClickHandler:{},basePath:{},changeFilterHandler:{}},[],[],!0);function Td(e){let t,i;return t=new Ms({props:{basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){H(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.basePath=n[0].basePath),s&2&&(r.rowMiddleClickHandler=n[1]),s&4&&(r.changeFilterHandler=n[2]),t.$set(r)},i(n){i||(w(t.$$.fragment,n),i=!0)},o(n){D(t.$$.fragment,n),i=!1},d(n){M(t,n)}}}function Ld(e){let t;return{c(){t=x("p"),t.textContent="Loading..."},m(i,n){S(i,t,n)},p:X,i:X,o:X,d(i){i&&$(t)}}}function Ad(e){let t,i,n,s,r,o;const l=[Ld,Td],d=[];function u(c,_){return c[3]?0:c[0].apiKey?1:-1}return~(t=u(e))&&(i=d[t]=l[t](e)),{c(){i&&i.c(),n=K(),s=x("link"),y(s,"rel","stylesheet"),y(s,"href",r=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,_){~t&&d[t].m(c,_),S(c,n,_),S(c,s,_),o=!0},p(c,[_]){let f=t;t=u(c),t===f?~t&&d[t].p(c,_):(i&&(be(),D(d[f],1,1,()=>{d[f]=null}),Te()),~t?(i=d[t],i?i.p(c,_):(i=d[t]=l[t](c),i.c()),w(i,1),i.m(n.parentNode,n)):i=null),(!o||_&1&&r!==(r=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&y(s,"href",r)},i(c){o||(w(i),o=!0)},o(c){D(i),o=!1},d(c){c&&($(n),$(s)),~t&&d[t].d(c)}}}function wd(e,t,i){let n,s,r,o,l;G(e,Nt,A=>i(3,l=A));let{filters:d='[["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"},currentTheme:"material"}}=t,{rowMiddleClickHandler:c=A=>{}}=t,{ticketSelectionChangeHandler:_=(A,O,N)=>{}}=t,{changeFilterHandler:f=()=>{}}=t;const m=function(A=!1){st(o,E,A)},g=Zt();G(e,g,A=>i(12,s=A));const v=Yt();G(e,v,A=>i(13,r=A));const L=Ci();G(e,L,A=>i(11,n=A));const p=Bl(new ns({apiKey:u.apiKey,basePath:u.basePath+"/api/v3"}));G(e,p,A=>i(14,o=A));const E=Fe(),T=E.getFilter();return Wl(u.localeOptions,()=>Mi(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/ckb-IR.json":()=>a(()=>import("./ckb-IR.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/hy-AM.json":()=>a(()=>import("./hy-AM2.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${pt}.json`),()=>Mi(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/ckb-IR.json":()=>a(()=>import("./ckb-IR.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/hy-AM.json":()=>a(()=>import("./hy-AM2.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${vt}.json`)),Xl(u.localeOptions.locale),Rt(()=>{T.set(d)}),Ii("theme",u.currentTheme),e.$$set=A=>{"filters"in A&&i(8,d=A.filters),"options"in A&&i(0,u=A.options),"rowMiddleClickHandler"in A&&i(1,c=A.rowMiddleClickHandler),"ticketSelectionChangeHandler"in A&&i(9,_=A.ticketSelectionChangeHandler),"changeFilterHandler"in A&&i(2,f=A.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&256&&d&&T.set(d),e.$$.dirty&14848&&_(r,s,n)},[u,c,f,l,g,v,L,p,d,_,m,n,s,r]}class Od extends oe{constructor(t){super(),se(this,t,wd,Ad,te,{filters:8,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:9,changeFilterHandler:2,reload:10})}get filters(){return this.$$.ctx[8]}set filters(t){this.$$set({filters:t}),C()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),C()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),C()}get ticketSelectionChangeHandler(){return this.$$.ctx[9]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),C()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),C()}get reload(){return this.$$.ctx[10]}}customElements.define("tickets-table",re(Od,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));export{be as A,D as B,M as C,Te as D,w as E,lr as F,oe as S,Et as a,Dd as b,re as c,y as d,Rd as e,C as f,S as g,I as h,se as i,Pn as j,$ as k,we as l,Fi as m,X as n,zt as o,Us as p,xn as q,ke as r,te as s,Je as t,Q as u,zi as v,F as w,xd as x,It as y,H as z};
|
|
18
|
+
"checkbox status importance";grid-template-columns:45px 3fr 2fr;height:110px}}@media(min-width: 900px){.Row.svelte-1syhxwc.svelte-1syhxwc{grid-template-areas:"checkbox user status importance";grid-template-columns:45px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-1syhxwc.svelte-1syhxwc{grid-template-columns:45px 260px auto 230px}}`)}function Ln(e,t,i){const n=e.slice();return n[14]=t[i],n[16]=i,n}function An(e){let t,i,n,s,o,r,l,d,u,c,_,f,m,g,p,v,y,b;function T(...j){return e[8](e[16],...j)}o=new Vi({props:{checked:e[1][e[16]].__selected,onChange:T,value:e[14].conversationid}});function L(...j){return e[9](e[16],...j)}d=new ws({props:{row:e[14]}}),_=new Cs({props:{row:e[14]}}),g=new Is({props:{row:e[14]}});function O(){return e[10](e[16])}function S(){return e[11](e[16])}function _e(...j){return e[12](e[14],...j)}return{c(){t=D("div"),i=D("div"),n=D("div"),s=J(),F(o.$$.fragment),r=J(),l=D("div"),F(d.$$.fragment),u=J(),c=D("div"),F(_.$$.fragment),f=J(),m=D("div"),F(g.$$.fragment),E(n,"class","StatusBar svelte-1syhxwc"),Je(n,"background-color",Se(e[14].status).line),E(i,"class","Checkbox svelte-1syhxwc"),E(l,"class","UserColumn svelte-1syhxwc"),E(c,"class","StatusColumn svelte-1syhxwc"),E(m,"class","ImportanceColumn svelte-1syhxwc"),E(t,"class",p=ye(wn(e[1][e[16]]))+" svelte-1syhxwc")},m(j,he){C(j,t,he),w(t,i),w(i,n),w(i,s),N(o,i,null),w(t,r),w(t,l),N(d,l,null),w(t,u),w(t,c),N(_,c,null),w(t,f),w(t,m),N(g,m,null),v=!0,y||(b=[we(i,"mousedown",ci(e[7])),we(i,"click",Xs(ci(L))),we(t,"mouseenter",O),we(t,"mouseleave",S),we(t,"mousedown",_e)],y=!0)},p(j,he){e=j,(!v||he&2)&&Je(n,"background-color",Se(e[14].status).line);const se={};he&2&&(se.checked=e[1][e[16]].__selected),he&2&&(se.value=e[14].conversationid),o.$set(se);const q={};he&2&&(q.row=e[14]),d.$set(q);const G={};he&2&&(G.row=e[14]),_.$set(G);const W={};he&2&&(W.row=e[14]),g.$set(W),(!v||he&2&&p!==(p=ye(wn(e[1][e[16]]))+" svelte-1syhxwc"))&&E(t,"class",p)},i(j){v||(A(o.$$.fragment,j),A(d.$$.fragment,j),A(_.$$.fragment,j),A(g.$$.fragment,j),v=!0)},o(j){I(o.$$.fragment,j),I(d.$$.fragment,j),I(_.$$.fragment,j),I(g.$$.fragment,j),v=!1},d(j){j&&$(t),H(o),H(d),H(_),H(g),y=!1,ke(b)}}}function td(e){let t,i,n,s=Ne(e[1]),o=[];for(let u=0;u<s.length;u+=1)o[u]=An(Ln(e,s,u));const r=u=>I(o[u],1,1,()=>{o[u]=null}),l=e[6].default,d=Lt(l,e,e[5],null);return{c(){t=D("div");for(let u=0;u<o.length;u+=1)o[u].c();i=J(),d&&d.c(),E(t,"class","Body svelte-1syhxwc")},m(u,c){C(u,t,c);for(let _=0;_<o.length;_+=1)o[_]&&o[_].m(t,null);w(t,i),d&&d.m(t,null),n=!0},p(u,[c]){if(c&27){s=Ne(u[1]);let _;for(_=0;_<s.length;_+=1){const f=Ln(u,s,_);o[_]?(o[_].p(f,c),A(o[_],1)):(o[_]=An(f),o[_].c(),A(o[_],1),o[_].m(t,i))}for(Te(),_=s.length;_<o.length;_+=1)r(_);Le()}d&&d.p&&(!n||c&32)&&wt(d,l,u,u[5],n?At(l,u[5],c,null):Ot(u[5]),null)},i(u){if(!n){for(let c=0;c<s.length;c+=1)A(o[c]);A(d,u),n=!0}},o(u){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)I(o[c]);I(d,u),n=!1},d(u){u&&$(t),zt(o,u),d&&d.d(u)}}}function wn(e){let t="Row";e.__selected&&(t+=" Selected");const i=e.status;return(i==="R"||i==="A"||i==="X"||i==="B"||i==="I"||i==="L")&&(t+=" Dimmed",e.__dimmed=!0),t}function id(e,t,i){let n,{$$slots:s={},$$scope:o}=t,{rowMiddleClickHandler:r}=t;const d=Fe().getData();z(e,d,y=>i(1,n=y));function u(y,b){if(y.shiftKey){let T=n.findIndex(L=>L.__selected);if(T!==-1){let L=Math.min(T,b),O=Math.max(T,b);for(let S=L;S<=O;S++)ni(d,n[S].__selected=!0,n)}}else ni(d,n[b].__selected=!n[b].__selected,n)}function c(y,b){ni(d,n[y].__hovered=b,n)}function _(y){xn.call(this,e,y)}const f=(y,b)=>u(b,y),m=(y,b)=>u(b,y),g=y=>c(y,!0),p=y=>c(y,!1),v=(y,b)=>{(b.ctrlKey||b.metaKey||b.button===1)&&r?(r(y.conversationid),b.preventDefault(),b.stopPropagation()):b.button===0&&location.assign("#Conversation;id="+y.conversationid)};return e.$$set=y=>{"rowMiddleClickHandler"in y&&i(0,r=y.rowMiddleClickHandler),"$$scope"in y&&i(5,o=y.$$scope)},[r,n,d,u,c,o,s,_,f,m,g,p,v]}class Ss extends le{constructor(t){super(),oe(this,t,id,td,ne,{rowMiddleClickHandler:0},ed)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),P()}}re(Ss,{rowMiddleClickHandler:{}},["default"],[],!0);function nd(e){me(e,"svelte-1eshayv","div.svelte-1eshayv{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}p.svelte-1eshayv{color:var(--main-lighter-textcolor);font-size:12px;line-height:20px;margin:10px 0 0;padding:2px 10px;border-radius:69px;border:1px solid var(--menu-hover-bg);cursor:pointer}")}function sd(e){let t,i,n;return{c(){t=D("div"),i=D("p"),n=te(e[0]),E(i,"class","svelte-1eshayv"),E(t,"class","svelte-1eshayv")},m(s,o){C(s,t,o),w(t,i),w(i,n)},p(s,[o]){o&1&&ae(n,s[0])},i:Z,o:Z,d(s){s&&$(t)}}}function od(e,t,i){let n,s,o,r,l,d;z(e,Oe,g=>i(5,s=g));const u=Fe(),c=u.getData();z(e,c,g=>i(7,r=g));const _=u.getLoading();z(e,_,g=>i(9,d=g));const f=u.getError();z(e,f,g=>i(8,l=g));const m=u.getCursor();return z(e,m,g=>i(6,o=g)),e.$$.update=()=>{e.$$.dirty&992&&i(0,n=d?s("Loading..."):l?s("Loading failed. Please try again later."):!r||r.length===0?s("No results match your filter. Try broadening the search criteria."):o==null?s("All data loaded"):s("Load more data"))},[n,c,_,f,m,s,o,r,l,d]}class Vs extends le{constructor(t){super(),oe(this,t,od,sd,ne,{},nd)}}re(Vs,{},[],[],!0);function rd(e){me(e,"svelte-1jf0rsj",".load.svelte-1jf0rsj{display:block}.container.svelte-1jf0rsj{display:flex;flex-direction:column;width:100%;height:100%;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1jf0rsj{width:100%}}")}function ld(e){let t,i,n,s,o,r;return n=new Vs({}),{c(){t=D("div"),i=D("div"),F(n.$$.fragment),E(i,"class","load svelte-1jf0rsj"),E(t,"class","load svelte-1jf0rsj")},m(l,d){C(l,t,d),w(t,i),N(n,i,null),e[10](i),s=!0,o||(r=we(i,"click",e[11]),o=!0)},p:Z,i(l){s||(A(n.$$.fragment,l),s=!0)},o(l){I(n.$$.fragment,l),s=!1},d(l){l&&$(t),H(n),e[10](null),o=!1,r()}}}function ad(e){let t,i,n,s,o;return i=new ps({}),s=new Ss({props:{rowMiddleClickHandler:e[0],$$slots:{default:[ld]},$$scope:{ctx:e}}}),{c(){t=D("div"),F(i.$$.fragment),n=J(),F(s.$$.fragment),E(t,"class","container svelte-1jf0rsj")},m(r,l){C(r,t,l),N(i,t,null),w(t,n),N(s,t,null),e[12](t),o=!0},p(r,[l]){const d={};l&1&&(d.rowMiddleClickHandler=r[0]),l&8250&&(d.$$scope={dirty:l,ctx:r}),s.$set(d)},i(r){o||(A(i.$$.fragment,r),A(s.$$.fragment,r),o=!0)},o(r){I(i.$$.fragment,r),I(s.$$.fragment,r),o=!1},d(r){r&&$(t),H(i),H(s),e[12](null)}}}function ud(e,t,i){let n,s,o,{rowMiddleClickHandler:r}=t,l,d;const u=Qt();z(e,u,v=>i(3,n=v));const c=Fe(),_=c.getLoaded();z(e,_,v=>i(4,s=v));const f=c.getCursor();z(e,f,v=>i(5,o=v)),Dt(()=>{const v=new IntersectionObserver(y=>{y[0].isIntersecting&&st(n,c)},{root:d,threshold:.5});return v.observe(l),()=>v.unobserve(l)});function m(v){Qe[v?"unshift":"push"](()=>{l=v,i(1,l)})}const g=()=>st(n,c,s&&!o);function p(v){Qe[v?"unshift":"push"](()=>{d=v,i(2,d)})}return e.$$set=v=>{"rowMiddleClickHandler"in v&&i(0,r=v.rowMiddleClickHandler)},[r,l,d,n,s,o,u,c,_,f,m,g,p]}class Ns extends le{constructor(t){super(),oe(this,t,ud,ad,ne,{rowMiddleClickHandler:0},rd)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),P()}}re(Ns,{rowMiddleClickHandler:{}},[],[],!0);class dd{constructor(t,i){this.tags=i,this.api=new qt(t)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((i,n)=>(i[n.tagid]=n,i),{}),this.tags.set(t)}}class cd{constructor(t,i){Ee(this,"groups");Ee(this,"api");this.groups=i,this.api=new qt(t)}async load(){const i=(await this.api.getCustomerGroupsGridList()).reduce((n,s)=>(n.set(s.tagid,s),n),new Map);this.groups.set(i)}}function _d(e){me(e,"svelte-zin6my",".ChangeFilterIcon{font-size:13px}.Buttons.svelte-zin6my{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.NoTickets.svelte-zin6my{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:0 24px;box-sizing:border-box}p.svelte-zin6my{max-width:450px;margin-top:10px;margin-bottom:20px;font-size:14px;font-weight:400;text-align:center}h1.svelte-zin6my{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-zin6my{max-width:300px}.button-text.svelte-zin6my{color:var(--main-textcolor);font-size:14px;line-height:20px;font-family:Roboto}@media(min-width: 768px){.Buttons.svelte-zin6my{flex-direction:row}.button-text.svelte-zin6my,p.svelte-zin6my{font-size:13px}}")}function fd(e){let t,i,n,s=e[2]("Change filter")+"",o,r;return t=new De({props:{className:"ChangeFilterIcon",iconLaClassName:"la-tune"}}),{c(){F(t.$$.fragment),i=J(),n=D("span"),o=te(s),E(n,"class","button-text svelte-zin6my")},m(l,d){N(t,l,d),C(l,i,d),C(l,n,d),w(n,o),r=!0},p(l,d){(!r||d&4)&&s!==(s=l[2]("Change filter")+"")&&ae(o,s)},i(l){r||(A(t.$$.fragment,l),r=!0)},o(l){I(t.$$.fragment,l),r=!1},d(l){l&&($(i),$(n)),H(t,l)}}}function md(e){let t,i,n,s=e[2]("Configure chat button")+"",o,r;return t=new De({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){F(t.$$.fragment),i=J(),n=D("span"),o=te(s),E(n,"class","button-text svelte-zin6my")},m(l,d){N(t,l,d),C(l,i,d),C(l,n,d),w(n,o),r=!0},p(l,d){(!r||d&4)&&s!==(s=l[2]("Configure chat button")+"")&&ae(o,s)},i(l){r||(A(t.$$.fragment,l),r=!0)},o(l){I(t.$$.fragment,l),r=!1},d(l){l&&($(i),$(n)),H(t,l)}}}function hd(e){let t,i,n,s,o,r=e[2]("No tickets found")+"",l,d,u,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",_,f,m,g,p,v,y;return g=new Gt({props:{className:"button-secondary",onAction:e[4],$$slots:{default:[fd]},$$scope:{ctx:e}}}),v=new Gt({props:{className:"button-secondary",onAction:e[5],$$slots:{default:[md]},$$scope:{ctx:e}}}),{c(){t=D("div"),i=D("img"),s=J(),o=D("h1"),l=te(r),d=J(),u=D("p"),_=te(c),f=J(),m=D("div"),F(g.$$.fragment),p=J(),F(v.$$.fragment),E(i,"alt","No results placeholder"),Ht(i.src,n=e[0]+"/themes/agent/"+e[3]+"/img/no-result.svg")||E(i,"src",n),E(i,"class","svelte-zin6my"),E(o,"class","svelte-zin6my"),E(u,"class","svelte-zin6my"),E(m,"class","Buttons svelte-zin6my"),E(t,"class","NoTickets svelte-zin6my")},m(b,T){C(b,t,T),w(t,i),w(t,s),w(t,o),w(o,l),w(t,d),w(t,u),w(u,_),w(t,f),w(t,m),N(g,m,null),w(m,p),N(v,m,null),y=!0},p(b,[T]){(!y||T&1&&!Ht(i.src,n=b[0]+"/themes/agent/"+b[3]+"/img/no-result.svg"))&&E(i,"src",n),(!y||T&4)&&r!==(r=b[2]("No tickets found")+"")&&ae(l,r),(!y||T&4)&&c!==(c=b[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&ae(_,c);const L={};T&2&&(L.onAction=b[4]),T&68&&(L.$$scope={dirty:T,ctx:b}),g.$set(L);const O={};T&68&&(O.$$scope={dirty:T,ctx:b}),v.$set(O)},i(b){y||(A(g.$$.fragment,b),A(v.$$.fragment,b),y=!0)},o(b){I(g.$$.fragment,b),I(v.$$.fragment,b),y=!1},d(b){b&&$(t),H(g),H(v)}}}function gd(e,t,i){let n;z(e,Oe,u=>i(2,n=u));let{basePath:s}=t,{changeFilterHandler:o=()=>{}}=t,r=jt("theme");const l=()=>o(),d=()=>window.location.hash="Chat-Buttons";return e.$$set=u=>{"basePath"in u&&i(0,s=u.basePath),"changeFilterHandler"in u&&i(1,o=u.changeFilterHandler)},[s,o,n,r,l,d]}class Hs extends le{constructor(t){super(),oe(this,t,gd,hd,ne,{basePath:0,changeFilterHandler:1},_d)}get basePath(){return this.$$.ctx[0]}set basePath(t){this.$$set({basePath:t}),P()}get changeFilterHandler(){return this.$$.ctx[1]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),P()}}re(Hs,{basePath:{},changeFilterHandler:{}},[],[],!0);function pd(e){me(e,"svelte-64fz0g","main.svelte-64fz0g{height:100%;display:flex;flex-direction:column}")}function vd(e){let t,i;return t=new Ns({props:{rowMiddleClickHandler:e[0]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&1&&(o.rowMiddleClickHandler=n[0]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Ed(e){let t,i;return t=new Hs({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&2&&(o.basePath=n[1]),s&4&&(o.changeFilterHandler=n[2]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function yd(e){let t,i,n,s;const o=[Ed,vd],r=[];function l(d,u){return!d[3].length&&d[4]?0:1}return i=l(e),n=r[i]=o[i](e),{c(){t=D("main"),n.c(),E(t,"class","svelte-64fz0g")},m(d,u){C(d,t,u),r[i].m(t,null),s=!0},p(d,[u]){let c=i;i=l(d),i===c?r[i].p(d,u):(Te(),I(r[c],1,1,()=>{r[c]=null}),Le(),n=r[i],n?n.p(d,u):(n=r[i]=o[i](d),n.c()),A(n,1),n.m(t,null))},i(d){s||(A(n),s=!0)},o(d){I(n),s=!1},d(d){d&&$(t),r[i].d()}}}function bd(e,t,i){let n,s,o,r,l,d,u,c,_,{rowMiddleClickHandler:f}=t,{basePath:m}=t,{changeFilterHandler:g}=t,p=JSON.stringify(d),v=JSON.stringify(l);const y=Yt();z(e,y,W=>i(21,s=W));const b=Zt();z(e,b,W=>i(22,o=W));const T=Ci();z(e,T,W=>i(20,n=W));const L=us(),O=as(),S=Qt();z(e,S,W=>i(16,r=W));const _e=ei();z(e,_e,W=>i(18,d=W));const j=Fe(),he=j.getData();z(e,he,W=>i(3,c=W));const se=j.getFilter();z(e,se,W=>i(17,l=W));const q=j.getLoading();z(e,q,W=>i(19,u=W));const G=j.getLoaded();return z(e,G,W=>i(4,_=W)),Dt(async()=>{await new dd(r,O).load(),await new cd(r,L).load(),await st(r,j,!0)}),he.subscribe(W=>{let M=o?W.filter(R=>!R.__selected).map(R=>R.conversationid):W.filter(R=>R.__selected).map(R=>R.conversationid);(M.length!==s.length||!M.every((R,x)=>R===s[x]))&&y.set(M),W.length!==n&&T.set(W.length)}),e.$$set=W=>{"rowMiddleClickHandler"in W&&i(0,f=W.rowMiddleClickHandler),"basePath"in W&&i(1,m=W.basePath),"changeFilterHandler"in W&&i(2,g=W.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&1032192&&(JSON.stringify(d)!==p||JSON.stringify(l)!==v)&&!u&&(i(14,p=JSON.stringify(d)),i(15,v=JSON.stringify(l)),st(r,j,!0))},[f,m,g,c,_,y,b,T,S,_e,he,se,q,G,p,v,r,l,d,u]}class Ms extends le{constructor(t){super(),oe(this,t,bd,yd,ne,{rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},pd)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),P()}get basePath(){return this.$$.ctx[1]}set basePath(t){this.$$set({basePath:t}),P()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),P()}}re(Ms,{rowMiddleClickHandler:{},basePath:{},changeFilterHandler:{}},[],[],!0);function Td(e){let t,i;return t=new Ms({props:{basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){F(t.$$.fragment)},m(n,s){N(t,n,s),i=!0},p(n,s){const o={};s&1&&(o.basePath=n[0].basePath),s&2&&(o.rowMiddleClickHandler=n[1]),s&4&&(o.changeFilterHandler=n[2]),t.$set(o)},i(n){i||(A(t.$$.fragment,n),i=!0)},o(n){I(t.$$.fragment,n),i=!1},d(n){H(t,n)}}}function Ld(e){let t;return{c(){t=D("p"),t.textContent="Loading..."},m(i,n){C(i,t,n)},p:Z,i:Z,o:Z,d(i){i&&$(t)}}}function Ad(e){let t,i,n,s,o,r;const l=[Ld,Td],d=[];function u(c,_){return c[3]?0:c[0].apiKey?1:-1}return~(t=u(e))&&(i=d[t]=l[t](e)),{c(){i&&i.c(),n=J(),s=D("link"),E(s,"rel","stylesheet"),E(s,"href",o=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,_){~t&&d[t].m(c,_),C(c,n,_),C(c,s,_),r=!0},p(c,[_]){let f=t;t=u(c),t===f?~t&&d[t].p(c,_):(i&&(Te(),I(d[f],1,1,()=>{d[f]=null}),Le()),~t?(i=d[t],i?i.p(c,_):(i=d[t]=l[t](c),i.c()),A(i,1),i.m(n.parentNode,n)):i=null),(!r||_&1&&o!==(o=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&E(s,"href",o)},i(c){r||(A(i),r=!0)},o(c){I(i),r=!1},d(c){c&&($(n),$(s)),~t&&d[t].d(c)}}}function wd(e,t,i){let n,s,o,r,l;z(e,Nt,L=>i(3,l=L));let{filters:d='[["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"},currentTheme:"material"}}=t,{rowMiddleClickHandler:c=L=>{}}=t,{ticketSelectionChangeHandler:_=(L,O,S)=>{}}=t,{changeFilterHandler:f=()=>{}}=t;const m=function(L=!1){st(r,b,L)},g=Zt();z(e,g,L=>i(12,s=L));const p=Yt();z(e,p,L=>i(13,o=L));const v=Ci();z(e,v,L=>i(11,n=L));const y=Bl(new ns({apiKey:u.apiKey,basePath:u.basePath+"/api/v3"}));z(e,y,L=>i(14,r=L));const b=Fe(),T=b.getFilter();return Wl(u.localeOptions,()=>Mi(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/ckb-IR.json":()=>a(()=>import("./ckb-IR.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/hy-AM.json":()=>a(()=>import("./hy-AM2.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${pt}.json`),()=>Mi(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/ckb-IR.json":()=>a(()=>import("./ckb-IR.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/hy-AM.json":()=>a(()=>import("./hy-AM2.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${vt}.json`)),Xl(u.localeOptions.locale),Dt(()=>{T.set(d)}),Ri("theme",u.currentTheme),e.$$set=L=>{"filters"in L&&i(8,d=L.filters),"options"in L&&i(0,u=L.options),"rowMiddleClickHandler"in L&&i(1,c=L.rowMiddleClickHandler),"ticketSelectionChangeHandler"in L&&i(9,_=L.ticketSelectionChangeHandler),"changeFilterHandler"in L&&i(2,f=L.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&256&&d&&T.set(d),e.$$.dirty&14848&&_(o,s,n)},[u,c,f,l,g,p,v,y,d,_,m,n,s,o]}class Od extends le{constructor(t){super(),oe(this,t,wd,Ad,ne,{filters:8,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:9,changeFilterHandler:2,reload:10})}get filters(){return this.$$.ctx[8]}set filters(t){this.$$set({filters:t}),P()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),P()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),P()}get ticketSelectionChangeHandler(){return this.$$.ctx[9]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),P()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),P()}get reload(){return this.$$.ctx[10]}}customElements.define("tickets-table",re(Od,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));export{Te as A,I as B,H as C,Le as D,A as E,lo as F,le as S,Et as a,Rd as b,re as c,E as d,Dd as e,P as f,C as g,w as h,oe as i,Pn as j,$ as k,we as l,Fi as m,Z as n,jt as o,Us as p,xn as q,ke as r,ne as s,Je as t,te as u,ji as v,F as w,xd as x,It as y,N as z};
|