@cling-se/widget 0.9.26 → 0.9.27
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/{AddClientCallout-1d22cff1.js → AddClientCallout-dd99d0d5.js} +5 -5
- package/dist/{AnswerModal-7d4a4ad6.js → AnswerModal-6afa03a5.js} +3 -3
- package/dist/{AttachmentItem-fa4a7b2f.js → AttachmentItem-f77592a9.js} +3 -3
- package/dist/{BaseDatePicker-bb3c9290.js → BaseDatePicker-8a39d0c2.js} +1 -1
- package/dist/{BaseInput-d46c6aab.js → BaseInput-dbd3178b.js} +1 -1
- package/dist/{BaseUpload-61a6ae84.js → BaseUpload-38ad6097.js} +2 -2
- package/dist/{BlockMedia-c0765d5f.js → BlockMedia-843990e1.js} +1 -1
- package/dist/{CCallout-e9eb8421.js → CCallout-c0f901a7.js} +2 -2
- package/dist/{CDropdownItem-0c39e15e.js → CDropdownItem-fa88e012.js} +1 -1
- package/dist/{CField-9a36ccbe.js → CField-3a437b10.js} +1 -1
- package/dist/{CPhoneFormat-14fb2bfe.js → CPhoneFormat-a9139d94.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-473e3473.js → CSlider.vue_vue_type_style_index_0_lang-76a4be84.js} +1 -1
- package/dist/{ClientAutocomplete-ea948de7.js → ClientAutocomplete-7cb8a2e1.js} +2 -2
- package/dist/{ClientModal-03f9a7ad.js → ClientModal-26774205.js} +5 -5
- package/dist/{ColorPicker-9d6e8692.js → ColorPicker-98baa7d4.js} +1 -1
- package/dist/{CompanyModal-9a2797e4.js → CompanyModal-897f5534.js} +3 -3
- package/dist/{ContentWrapper-cd0abb46.js → ContentWrapper-e1e093b7.js} +13 -13
- package/dist/{CoverBlockSettings-9e6926e5.js → CoverBlockSettings-97d062e1.js} +8 -8
- package/dist/{DocAnswer-760aca52.js → DocAnswer-a8c69056.js} +4 -4
- package/dist/{DocDetails-a49d9706.js → DocDetails-f092d872.js} +4 -4
- package/dist/{DocForm-9296137d.js → DocForm-889f2750.js} +30 -30
- package/dist/{DocFormSend-d53627b6.js → DocFormSend-58b44424.js} +18 -18
- package/dist/{DocLinks-ebb434cf.js → DocLinks-1bdb3110.js} +2 -2
- package/dist/{DocModalBase-788ecca2.js → DocModalBase-afd069cd.js} +1 -1
- package/dist/{DocPrint-76494770.js → DocPrint-3ff914fd.js} +1 -1
- package/dist/{DocReceipt-91a22031.js → DocReceipt-19de0274.js} +1 -1
- package/dist/{DocSendReminder-8fb4f42a.js → DocSendReminder-23716d0b.js} +1 -1
- package/dist/{DocTextEditor-718701da.js → DocTextEditor-6b614e43.js} +8 -8
- package/dist/{DocTimeline-745f11ca.js → DocTimeline-df7cb5f4.js} +1 -1
- package/dist/{DocumentClient-9484dac6.js → DocumentClient-61d7e50f.js} +7 -7
- package/dist/{DocumentLayout-b35834b7.js → DocumentLayout-86646c16.js} +4 -4
- package/dist/{DocumentLogotype-ac609ac3.js → DocumentLogotype-14929724.js} +3 -3
- package/dist/{DocumentVoided-35a08aae.js → DocumentVoided-a9d41411.js} +1 -1
- package/dist/{EmbedInput-b4e82feb.js → EmbedInput-71fd2f2a.js} +2 -2
- package/dist/{EmbedSettings-e1a34a42.js → EmbedSettings-2254a7c3.js} +3 -3
- package/dist/{ErrorCallout-028c5129.js → ErrorCallout-b482d289.js} +1 -1
- package/dist/{FilePreviewModal-317d0164.js → FilePreviewModal-1802c766.js} +5 -5
- package/dist/{HeaderSettings-6b47fc81.js → HeaderSettings-10cfcc90.js} +16 -16
- package/dist/{ImageSelectModal-844c6bc3.js → ImageSelectModal-594227d6.js} +9 -9
- package/dist/{ImageUploadWrapper-50277abb.js → ImageUploadWrapper-452e463d.js} +2 -2
- package/dist/{Index-de524825.js → Index-0966b580.js} +8 -8
- package/dist/{Index-bbf0ffc1.js → Index-098078af.js} +2 -2
- package/dist/{Index-80b0143a.js → Index-0f8c36f0.js} +2 -2
- package/dist/{Index-15208945.js → Index-17b82242.js} +13 -13
- package/dist/{Index-baae6f49.js → Index-2131fa69.js} +4 -4
- package/dist/{Index-2d8c6cb4.js → Index-225e8cef.js} +10 -10
- package/dist/{Index-891aef3c.js → Index-235cb5f0.js} +9 -9
- package/dist/{Index-a07fdebf.js → Index-2564d031.js} +5 -5
- package/dist/{Index-e3a4b413.js → Index-2621d373.js} +4 -4
- package/dist/{Index-f87f5334.js → Index-28ce2c21.js} +3 -3
- package/dist/{Index-3806962a.js → Index-2e9bbe9d.js} +4 -4
- package/dist/{Index-19a722f7.js → Index-354b4c80.js} +2 -2
- package/dist/{Index-c4573294.js → Index-3ee432f2.js} +6 -6
- package/dist/{Index-05284370.js → Index-529ba57d.js} +2 -2
- package/dist/{Index-3149ec57.js → Index-5736c4f7.js} +14 -14
- package/dist/{Index-7088fac5.js → Index-5921d2de.js} +7 -7
- package/dist/{Index-4372b425.js → Index-5d37606d.js} +14 -14
- package/dist/{Index-150fb782.js → Index-780a5e8f.js} +2 -2
- package/dist/{Index-9db11c22.js → Index-83ef778b.js} +4 -4
- package/dist/{Index-7dc7112d.js → Index-84a484ed.js} +9 -9
- package/dist/{Index-b2aac451.js → Index-88854d18.js} +6 -6
- package/dist/{Index-bd96ee96.js → Index-8fc860de.js} +6 -6
- package/dist/{Index-9a60040d.js → Index-9fd01853.js} +4 -4
- package/dist/{Index-d7279e3d.js → Index-a7b08aa1.js} +2 -2
- package/dist/{Index-ede7b036.js → Index-a8206849.js} +2 -2
- package/dist/{Index-2d053662.js → Index-be92553f.js} +4 -4
- package/dist/{Index-2167f5b1.js → Index-c1d06810.js} +7 -7
- package/dist/{Index-7746750d.js → Index-d036b1fb.js} +2 -2
- package/dist/{Index-6cf07e69.js → Index-d645b179.js} +4 -4
- package/dist/{Index-e30aeae7.js → Index-dceaf93a.js} +4 -4
- package/dist/{Index-95d81511.js → Index-ddfe7813.js} +8 -8
- package/dist/{Index-577f50c3.js → Index-e361a308.js} +1 -1
- package/dist/{Index-3dab1bc2.js → Index-f1afee11.js} +4 -4
- package/dist/{Index-c17f0725.js → Index-fe07902d.js} +1 -1
- package/dist/{InputToggleRow-88c816d8.js → InputToggleRow-04cc08de.js} +1 -1
- package/dist/{IsPremiumPreStep-3665f985.js → IsPremiumPreStep-94901e25.js} +3 -3
- package/dist/{ManualPopover-db213d5f.js → ManualPopover-2fb96f78.js} +1 -1
- package/dist/{MediaWrapper-fd7c4863.js → MediaWrapper-abd398c1.js} +3 -3
- package/dist/{NotBindingText-c2e4a00c.js → NotBindingText-92aa597b.js} +2 -2
- package/dist/{PackageGroup-d8077d12.js → PackageGroup-ea7e992f.js} +12 -12
- package/dist/{PdfTerms-ca12cb7a.js → PdfTerms-aa7ad8cd.js} +5 -5
- package/dist/{PdfViewer-0bd06c00.js → PdfViewer-a0c897a2.js} +2 -2
- package/dist/{PlainHtml-9326653d.js → PlainHtml-234e0e43.js} +1 -1
- package/dist/{PriceHeader-b8225846.js → PriceHeader-1b81d019.js} +13 -13
- package/dist/{SearchApi-2070fc66.js → SearchApi-953a1b13.js} +2 -2
- package/dist/{Setup-112a316f.js → Setup-7928d952.js} +1 -1
- package/dist/{TermsSettings-181622d1.js → TermsSettings-d40ea3f3.js} +7 -7
- package/dist/{ThemeColorRow-7dd6979b.js → ThemeColorRow-0a8e8f1d.js} +3 -3
- package/dist/{ToggleBinding-482c9df9.js → ToggleBinding-1d872e1c.js} +3 -3
- package/dist/{UploadModal-fc9b0c7b.js → UploadModal-006e32ff.js} +3 -3
- package/dist/{VideoPlayerInput-c1465b51.js → VideoPlayerInput-d2418095.js} +3 -3
- package/dist/{VideoPlayerSettings-a3e8a905.js → VideoPlayerSettings-d1fa2cde.js} +4 -4
- package/dist/{VideoSelectModal-0834b28c.js → VideoSelectModal-84cc0824.js} +8 -8
- package/dist/{answerDocumentMixin-77a657f2.js → answerDocumentMixin-a896581b.js} +3 -3
- package/dist/{debounce-7a30cd28.js → debounce-b30e6f76.js} +1 -1
- package/dist/{focusDrawerMixin-4b8dc020.js → focusDrawerMixin-8b4c70e5.js} +1 -1
- package/dist/{formComponentsInstall-b7ccf504.js → formComponentsInstall-07c350b0.js} +12 -12
- package/dist/{formDrawerState-66870f5d.js → formDrawerState-e3da6074.js} +1 -1
- package/dist/{formValidationMixin-00449d9c.js → formValidationMixin-05028cb3.js} +1 -1
- package/dist/{image-025ccec3.js → image-1b55e804.js} +1 -1
- package/dist/{index-86143b34.js → index-3197309d.js} +2 -2
- package/dist/{index-75dcd2c7.js → index-71ec8e8e.js} +4 -4
- package/dist/{index-9ed00aac.js → index-7300a7f5.js} +1 -1
- package/dist/{index-26b885b0.js → index-8a437f3d.js} +1 -1
- package/dist/{index-47104181.js → index-a03d80b9.js} +9 -9
- package/dist/{index-c2b908d6.js → index-fe840ba4.js} +5 -5
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/{main-046afb6a.js → main-989855f4.js} +20 -16
- package/dist/{mapFormMixin-55374367.js → mapFormMixin-e6b8b5ef.js} +1 -1
- package/dist/{publicSenderState-6a3c9ab7.js → publicSenderState-4d6c69b4.js} +1 -1
- package/dist/{simplebar.min-536ba2c3.js → simplebar.min-1ce579b3.js} +1 -1
- package/dist/{template-b0d55fd8.js → template-641a5e0d.js} +2 -2
- package/dist/{throttle-c63892db.js → throttle-440ddd80.js} +2 -2
- package/dist/{tinycolor-acb2af47.js → tinycolor-f6c2d00e.js} +1 -1
- package/dist/{tippy.esm-33ba8b66.js → tippy.esm-75dfd42d.js} +5 -5
- package/dist/{utils-0876161d.js → utils-e1c6e4eb.js} +1 -1
- package/dist/{vuedraggable.umd-b517a242.js → vuedraggable.umd-909ba53a.js} +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -433,7 +433,7 @@ $t(documentTemplateView.smsContent) $t(documentTemplateView.readMore)
|
|
|
433
433
|
* (c) 2017 Evan You
|
|
434
434
|
* @license MIT
|
|
435
435
|
*/function N3(n){return Object.prototype.toString.call(n).indexOf("Error")>-1}var S5e={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,r){var i=r.props,a=r.children,o=r.parent,s=r.data;s.routerView=!0;for(var c=o.$createElement,l=i.name,u=o.$route,d=o._routerViewCache||(o._routerViewCache={}),p=0,f=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&p++,o._inactive&&(f=!0),o=o.$parent;if(s.routerViewDepth=p,f)return c(d[l],s,a);var h=u.matched[p];if(!h)return d[l]=null,c();var m=d[l]=h.components[l];s.registerRouteInstance=function(w,S){var k=h.instances[l];(S&&k!==w||!S&&k===w)&&(h.instances[l]=S)},(s.hook||(s.hook={})).prepatch=function(w,S){h.instances[l]=S.componentInstance};var g=s.props=T5e(u,h.props&&h.props[l]);if(g){g=s.props=E5e({},g);var y=s.attrs=s.attrs||{};for(var b in g)(!m.props||!(b in m.props))&&(y[b]=g[b],delete g[b])}return c(m,s,a)}};function T5e(n,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(n);case"boolean":return t?n.params:void 0}}function E5e(n,t){for(var r in t)n[r]=t[r];return n}var $5e=/[!'()*]/g,A5e=function(n){return"%"+n.charCodeAt(0).toString(16)},O5e=/%2C/g,Np=function(n){return encodeURIComponent(n).replace($5e,A5e).replace(O5e,",")},BI=decodeURIComponent;function D5e(n,t,r){t===void 0&&(t={});var i=r||M5e,a;try{a=i(n||"")}catch{a={}}for(var o in t)a[o]=t[o];return a}function M5e(n){var t={};return n=n.trim().replace(/^(\?|#|&)/,""),n&&n.split("&").forEach(function(r){var i=r.replace(/\+/g," ").split("="),a=BI(i.shift()),o=i.length>0?BI(i.join("=")):null;t[a]===void 0?t[a]=o:Array.isArray(t[a])?t[a].push(o):t[a]=[t[a],o]}),t}function P5e(n){var t=n?Object.keys(n).map(function(r){var i=n[r];if(i===void 0)return"";if(i===null)return Np(r);if(Array.isArray(i)){var a=[];return i.forEach(function(o){o!==void 0&&(o===null?a.push(Np(r)):a.push(Np(r)+"="+Np(o)))}),a.join("&")}return Np(r)+"="+Np(i)}).filter(function(r){return r.length>0}).join("&"):null;return t?"?"+t:""}var X0=/\/?$/;function Q0(n,t,r,i){var a=i&&i.options.stringifyQuery,o=t.query||{};try{o=F3(o)}catch{}var s={name:t.name||n&&n.name,meta:n&&n.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:jI(t,a),matched:n?I5e(n):[]};return r&&(s.redirectedFrom=jI(r,a)),Object.freeze(s)}function F3(n){if(Array.isArray(n))return n.map(F3);if(n&&typeof n=="object"){var t={};for(var r in n)t[r]=F3(n[r]);return t}else return n}var ey=Q0(null,{path:"/"});function I5e(n){for(var t=[];n;)t.unshift(n),n=n.parent;return t}function jI(n,t){var r=n.path,i=n.query;i===void 0&&(i={});var a=n.hash;a===void 0&&(a="");var o=t||P5e;return(r||"/")+o(i)+a}function zI(n,t){return t===ey?n===t:t?n.path&&t.path?n.path.replace(X0,"")===t.path.replace(X0,"")&&n.hash===t.hash&&ty(n.query,t.query):n.name&&t.name?n.name===t.name&&n.hash===t.hash&&ty(n.query,t.query)&&ty(n.params,t.params):!1:!1}function ty(n,t){if(n===void 0&&(n={}),t===void 0&&(t={}),!n||!t)return n===t;var r=Object.keys(n),i=Object.keys(t);return r.length!==i.length?!1:r.every(function(a){var o=n[a],s=t[a];return typeof o=="object"&&typeof s=="object"?ty(o,s):String(o)===String(s)})}function R5e(n,t){return n.path.replace(X0,"/").indexOf(t.path.replace(X0,"/"))===0&&(!t.hash||n.hash===t.hash)&&L5e(n.query,t.query)}function L5e(n,t){for(var r in t)if(!(r in n))return!1;return!0}var N5e=[String,Object],F5e=[String,Array],B5e={name:"router-link",props:{to:{type:N5e,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:F5e,default:"click"}},render:function(t){var r=this,i=this.$router,a=this.$route,o=i.resolve(this.to,a,this.append),s=o.location,c=o.route,l=o.href,u={},d=i.options.linkActiveClass,p=i.options.linkExactActiveClass,f=d??"router-link-active",h=p??"router-link-exact-active",m=this.activeClass==null?f:this.activeClass,g=this.exactActiveClass==null?h:this.exactActiveClass,y=s.path?Q0(null,s,null,i):c;u[g]=zI(a,y),u[m]=this.exact?u[g]:R5e(a,y);var b=function(E){VI(E)&&(r.replace?i.replace(s):i.push(s))},w={click:VI};Array.isArray(this.event)?this.event.forEach(function(E){w[E]=b}):w[this.event]=b;var S={class:u};if(this.tag==="a")S.on=w,S.attrs={href:l};else{var k=UI(this.$slots.default);if(k){k.isStatic=!1;var $=qm.util.extend,T=k.data=$({},k.data);T.on=w;var A=k.data.attrs=$({},k.data.attrs);A.href=l}else S.on=w}return t(this.tag,S,this.$slots.default)}};function VI(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){var t=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return n.preventDefault&&n.preventDefault(),!0}}function UI(n){if(n){for(var t,r=0;r<n.length;r++)if(t=n[r],t.tag==="a"||t.children&&(t=UI(t.children)))return t}}var qm;function B3(n){if(!(B3.installed&&qm===n)){B3.installed=!0,qm=n;var t=function(a){return a!==void 0},r=function(a,o){var s=a.$options._parentVnode;t(s)&&t(s=s.data)&&t(s=s.registerRouteInstance)&&s(a,o)};n.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),n.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(n.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(n.prototype,"$route",{get:function(){return this._routerRoot._route}}),n.component("router-view",S5e),n.component("router-link",B5e);var i=n.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var Ym=typeof window<"u";function HI(n,t,r){var i=n.charAt(0);if(i==="/")return n;if(i==="?"||i==="#")return t+n;var a=t.split("/");(!r||!a[a.length-1])&&a.pop();for(var o=n.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var c=o[s];c===".."?a.pop():c!=="."&&a.push(c)}return a[0]!==""&&a.unshift(""),a.join("/")}function j5e(n){var t="",r="",i=n.indexOf("#");i>=0&&(t=n.slice(i),n=n.slice(0,i));var a=n.indexOf("?");return a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),{path:n,query:r,hash:t}}function Au(n){return n.replace(/\/\//g,"/")}var ny=Array.isArray||function(n){return Object.prototype.toString.call(n)=="[object Array]"},Fp=YI,z5e=j3,V5e=G5e,U5e=WI,H5e=qI,W5e=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function j3(n,t){for(var r=[],i=0,a=0,o="",s=t&&t.delimiter||"/",c;(c=W5e.exec(n))!=null;){var l=c[0],u=c[1],d=c.index;if(o+=n.slice(a,d),a=d+l.length,u){o+=u[1];continue}var p=n[a],f=c[2],h=c[3],m=c[4],g=c[5],y=c[6],b=c[7];o&&(r.push(o),o="");var w=f!=null&&p!=null&&p!==f,S=y==="+"||y==="*",k=y==="?"||y==="*",$=c[2]||s,T=m||g;r.push({name:h||i++,prefix:f||"",delimiter:$,optional:k,repeat:S,partial:w,asterisk:!!b,pattern:T?K5e(T):b?".*":"[^"+ry($)+"]+?"})}return a<n.length&&(o+=n.substr(a)),o&&r.push(o),r}function G5e(n,t){return WI(j3(n,t))}function q5e(n){return encodeURI(n).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Y5e(n){return encodeURI(n).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function WI(n){for(var t=new Array(n.length),r=0;r<n.length;r++)typeof n[r]=="object"&&(t[r]=new RegExp("^(?:"+n[r].pattern+")$"));return function(i,a){for(var o="",s=i||{},c=a||{},l=c.pretty?q5e:encodeURIComponent,u=0;u<n.length;u++){var d=n[u];if(typeof d=="string"){o+=d;continue}var p=s[d.name],f;if(p==null)if(d.optional){d.partial&&(o+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(ny(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(f=l(p[h]),!t[u].test(f))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(h===0?d.prefix:d.delimiter)+f}continue}if(f=d.asterisk?Y5e(p):l(p),!t[u].test(f))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+f+'"');o+=d.prefix+f}return o}}function ry(n){return n.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function K5e(n){return n.replace(/([=!:$\/()])/g,"\\$1")}function z3(n,t){return n.keys=t,n}function GI(n){return n.sensitive?"":"i"}function Z5e(n,t){var r=n.source.match(/\((?!\?)/g);if(r)for(var i=0;i<r.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return z3(n,t)}function J5e(n,t,r){for(var i=[],a=0;a<n.length;a++)i.push(YI(n[a],t,r).source);var o=new RegExp("(?:"+i.join("|")+")",GI(r));return z3(o,t)}function X5e(n,t,r){return qI(j3(n,r),t,r)}function qI(n,t,r){ny(t)||(r=t||r,t=[]),r=r||{};for(var i=r.strict,a=r.end!==!1,o="",s=0;s<n.length;s++){var c=n[s];if(typeof c=="string")o+=ry(c);else{var l=ry(c.prefix),u="(?:"+c.pattern+")";t.push(c),c.repeat&&(u+="(?:"+l+u+")*"),c.optional?c.partial?u=l+"("+u+")?":u="(?:"+l+"("+u+"))?":u=l+"("+u+")",o+=u}}var d=ry(r.delimiter||"/"),p=o.slice(-d.length)===d;return i||(o=(p?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),a?o+="$":o+=i&&p?"":"(?="+d+"|$)",z3(new RegExp("^"+o,GI(r)),t)}function YI(n,t,r){return ny(t)||(r=t||r,t=[]),r=r||{},n instanceof RegExp?Z5e(n,t):ny(n)?J5e(n,t,r):X5e(n,t,r)}Fp.parse=z5e,Fp.compile=V5e,Fp.tokensToFunction=U5e,Fp.tokensToRegExp=H5e;var KI=Object.create(null);function iy(n,t,r){try{var i=KI[n]||(KI[n]=Fp.compile(n));return i(t||{},{pretty:!0})}catch{return""}}function ZI(n,t,r,i){var a=t||[],o=r||Object.create(null),s=i||Object.create(null);n.forEach(function(u){V3(a,o,s,u)});for(var c=0,l=a.length;c<l;c++)a[c]==="*"&&(a.push(a.splice(c,1)[0]),l--,c--);return{pathList:a,pathMap:o,nameMap:s}}function V3(n,t,r,i,a,o){var s=i.path,c=i.name,l=i.pathToRegexpOptions||{},u=e4e(s,a,l.strict);typeof i.caseSensitive=="boolean"&&(l.sensitive=i.caseSensitive);var d={path:u,regex:Q5e(u,l),components:i.components||{default:i.component},instances:{},name:c,parent:a,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:i.props==null?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach(function(f){var h=o?Au(o+"/"+f.path):void 0;V3(n,t,r,f,d,h)}),i.alias!==void 0){var p=Array.isArray(i.alias)?i.alias:[i.alias];p.forEach(function(f){var h={path:f,children:i.children};V3(n,t,r,h,a,d.path||"/")})}t[d.path]||(n.push(d.path),t[d.path]=d),c&&(r[c]||(r[c]=d))}function Q5e(n,t){var r=Fp(n,[],t);return r}function e4e(n,t,r){return r||(n=n.replace(/\/$/,"")),n[0]==="/"||t==null?n:Au(t.path+"/"+n)}function JI(n,t,r,i){var a=typeof n=="string"?{path:n}:n;if(a.name||a._normalized)return a;if(!a.path&&a.params&&t){a=U3({},a),a._normalized=!0;var o=U3(U3({},t.params),a.params);if(t.name)a.name=t.name,a.params=o;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;a.path=iy(s,o,"path "+t.path)}return a}var c=j5e(a.path||""),l=t&&t.path||"/",u=c.path?HI(c.path,l,r||a.append):l,d=D5e(c.query,a.query,i&&i.options.parseQuery),p=a.hash||c.hash;return p&&p.charAt(0)!=="#"&&(p="#"+p),{_normalized:!0,path:u,query:d,hash:p}}function U3(n,t){for(var r in t)n[r]=t[r];return n}function t4e(n,t){var r=ZI(n),i=r.pathList,a=r.pathMap,o=r.nameMap;function s(p){ZI(p,i,a,o)}function c(p,f,h){var m=JI(p,f,!1,t),g=m.name;if(g){var y=o[g];if(!y)return d(null,m);var b=y.regex.keys.filter(function(T){return!T.optional}).map(function(T){return T.name});if(typeof m.params!="object"&&(m.params={}),f&&typeof f.params=="object")for(var w in f.params)!(w in m.params)&&b.indexOf(w)>-1&&(m.params[w]=f.params[w]);if(y)return m.path=iy(y.path,m.params),d(y,m,h)}else if(m.path){m.params={};for(var S=0;S<i.length;S++){var k=i[S],$=a[k];if(n4e($.regex,m.path,m.params))return d($,m,h)}}return d(null,m)}function l(p,f){var h=p.redirect,m=typeof h=="function"?h(Q0(p,f,null,t)):h;if(typeof m=="string"&&(m={path:m}),!m||typeof m!="object")return d(null,f);var g=m,y=g.name,b=g.path,w=f.query,S=f.hash,k=f.params;if(w=g.hasOwnProperty("query")?g.query:w,S=g.hasOwnProperty("hash")?g.hash:S,k=g.hasOwnProperty("params")?g.params:k,y)return o[y],c({_normalized:!0,name:y,query:w,hash:S,params:k},void 0,f);if(b){var $=r4e(b,p),T=iy($,k);return c({_normalized:!0,path:T,query:w,hash:S},void 0,f)}else return d(null,f)}function u(p,f,h){var m=iy(h,f.params),g=c({_normalized:!0,path:m});if(g){var y=g.matched,b=y[y.length-1];return f.params=g.params,d(b,f)}return d(null,f)}function d(p,f,h){return p&&p.redirect?l(p,h||f):p&&p.matchAs?u(p,f,p.matchAs):Q0(p,f,h,t)}return{match:c,addRoutes:s}}function n4e(n,t,r){var i=t.match(n);if(i){if(!r)return!0}else return!1;for(var a=1,o=i.length;a<o;++a){var s=n.keys[a-1],c=typeof i[a]=="string"?decodeURIComponent(i[a]):i[a];s&&(r[s.name]=c)}return!0}function r4e(n,t){return HI(n,t.parent?t.parent.path:"/",!0)}var XI=Object.create(null);function QI(){window.history.replaceState({key:H3()},""),window.addEventListener("popstate",function(n){eR(),n.state&&n.state.key&&l4e(n.state.key)})}function Bp(n,t,r,i){if(n.app){var a=n.options.scrollBehavior;a&&n.app.$nextTick(function(){var o=i4e(),s=a(t,r,i?o:null);s&&(typeof s.then=="function"?s.then(function(c){rR(c,o)}).catch(function(c){}):rR(s,o))})}}function eR(){var n=H3();n&&(XI[n]={x:window.pageXOffset,y:window.pageYOffset})}function i4e(){var n=H3();if(n)return XI[n]}function a4e(n,t){var r=document.documentElement,i=r.getBoundingClientRect(),a=n.getBoundingClientRect();return{x:a.left-i.left-t.x,y:a.top-i.top-t.y}}function tR(n){return jp(n.x)||jp(n.y)}function nR(n){return{x:jp(n.x)?n.x:window.pageXOffset,y:jp(n.y)?n.y:window.pageYOffset}}function o4e(n){return{x:jp(n.x)?n.x:0,y:jp(n.y)?n.y:0}}function jp(n){return typeof n=="number"}function rR(n,t){var r=typeof n=="object";if(r&&typeof n.selector=="string"){var i=document.querySelector(n.selector);if(i){var a=n.offset&&typeof n.offset=="object"?n.offset:{};a=o4e(a),t=a4e(i,a)}else tR(n)&&(t=nR(n))}else r&&tR(n)&&(t=nR(n));t&&window.scrollTo(t.x,t.y)}var zp=Ym&&function(){var n=window.navigator.userAgent;return(n.indexOf("Android 2.")!==-1||n.indexOf("Android 4.0")!==-1)&&n.indexOf("Mobile Safari")!==-1&&n.indexOf("Chrome")===-1&&n.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}(),s4e=Ym&&window.performance&&window.performance.now?window.performance:Date,Km=iR();function iR(){return s4e.now().toFixed(3)}function H3(){return Km}function l4e(n){Km=n}function ay(n,t){eR();var r=window.history;try{t?r.replaceState({key:Km},"",n):(Km=iR(),r.pushState({key:Km},"",n))}catch{window.location[t?"replace":"assign"](n)}}function W3(n){ay(n,!0)}function aR(n,t,r){var i=function(a){a>=n.length?r():n[a]?t(n[a],function(){i(a+1)}):i(a+1)};i(0)}function c4e(n){return function(t,r,i){var a=!1,o=0,s=null;oR(n,function(c,l,u,d){if(typeof c=="function"&&c.cid===void 0){a=!0,o++;var p=lR(function(g){d4e(g)&&(g=g.default),c.resolved=typeof g=="function"?g:qm.extend(g),u.components[d]=g,o--,o<=0&&i()}),f=lR(function(g){var y="Failed to resolve async component "+d+": "+g;s||(s=N3(g)?g:new Error(y),i(s))}),h;try{h=c(p,f)}catch(g){f(g)}if(h)if(typeof h.then=="function")h.then(p,f);else{var m=h.component;m&&typeof m.then=="function"&&m.then(p,f)}}}),a||i()}}function oR(n,t){return sR(n.map(function(r){return Object.keys(r.components).map(function(i){return t(r.components[i],r.instances[i],r,i)})}))}function sR(n){return Array.prototype.concat.apply([],n)}var u4e=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function d4e(n){return n.__esModule||u4e&&n[Symbol.toStringTag]==="Module"}function lR(n){var t=!1;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(!t)return t=!0,n.apply(this,r)}}var Ys=function(t,r){this.router=t,this.base=p4e(r),this.current=ey,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};Ys.prototype.listen=function(t){this.cb=t},Ys.prototype.onReady=function(t,r){this.ready?t():(this.readyCbs.push(t),r&&this.readyErrorCbs.push(r))},Ys.prototype.onError=function(t){this.errorCbs.push(t)},Ys.prototype.transitionTo=function(t,r,i){var a=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){a.updateRoute(o),r&&r(o),a.ensureURL(),a.ready||(a.ready=!0,a.readyCbs.forEach(function(s){s(o)}))},function(s){i&&i(s),s&&!a.ready&&(a.ready=!0,a.readyErrorCbs.forEach(function(c){c(s)}))})},Ys.prototype.confirmTransition=function(t,r,i){var a=this,o=this.current,s=function(h){N3(h)&&(a.errorCbs.length?a.errorCbs.forEach(function(m){m(h)}):console.error(h)),i&&i(h)};if(zI(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),s();var c=f4e(this.current.matched,t.matched),l=c.updated,u=c.deactivated,d=c.activated,p=[].concat(m4e(u),this.router.beforeHooks,g4e(l),d.map(function(h){return h.beforeEnter}),c4e(d));this.pending=t;var f=function(h,m){if(a.pending!==t)return s();try{h(t,o,function(g){g===!1||N3(g)?(a.ensureURL(!0),s(g)):typeof g=="string"||typeof g=="object"&&(typeof g.path=="string"||typeof g.name=="string")?(s(),typeof g=="object"&&g.replace?a.replace(g):a.push(g)):m(g)})}catch(g){s(g)}};aR(p,f,function(){var h=[],m=function(){return a.current===t},g=v4e(d,h,m),y=g.concat(a.router.resolveHooks);aR(y,f,function(){if(a.pending!==t)return s();a.pending=null,r(t),a.router.app&&a.router.app.$nextTick(function(){h.forEach(function(b){b()})})})})},Ys.prototype.updateRoute=function(t){var r=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(i){i&&i(t,r)})};function p4e(n){if(!n)if(Ym){var t=document.querySelector("base");n=t&&t.getAttribute("href")||"/",n=n.replace(/^https?:\/\/[^\/]+/,"")}else n="/";return n.charAt(0)!=="/"&&(n="/"+n),n.replace(/\/$/,"")}function f4e(n,t){var r,i=Math.max(n.length,t.length);for(r=0;r<i&&n[r]===t[r];r++);return{updated:t.slice(0,r),activated:t.slice(r),deactivated:n.slice(r)}}function G3(n,t,r,i){var a=oR(n,function(o,s,c,l){var u=h4e(o,t);if(u)return Array.isArray(u)?u.map(function(d){return r(d,s,c,l)}):r(u,s,c,l)});return sR(i?a.reverse():a)}function h4e(n,t){return typeof n!="function"&&(n=qm.extend(n)),n.options[t]}function m4e(n){return G3(n,"beforeRouteLeave",cR,!0)}function g4e(n){return G3(n,"beforeRouteUpdate",cR)}function cR(n,t){if(t)return function(){return n.apply(t,arguments)}}function v4e(n,t,r){return G3(n,"beforeRouteEnter",function(i,a,o,s){return y4e(i,o,s,t,r)})}function y4e(n,t,r,i,a){return function(s,c,l){return n(s,c,function(u){l(u),typeof u=="function"&&i.push(function(){uR(u,t.instances,r,a)})})}}function uR(n,t,r,i){t[r]?n(t[r]):i()&&setTimeout(function(){uR(n,t,r,i)},16)}var dR=function(n){function t(r,i){var a=this;n.call(this,r,i);var o=r.options.scrollBehavior;o&&QI();var s=Zm(this.base);window.addEventListener("popstate",function(c){var l=a.current,u=Zm(a.base);a.current===ey&&u===s||a.transitionTo(u,function(d){o&&Bp(r,d,l,!0)})})}return n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t,t.prototype.go=function(i){window.history.go(i)},t.prototype.push=function(i,a,o){var s=this,c=this,l=c.current;this.transitionTo(i,function(u){ay(Au(s.base+u.fullPath)),Bp(s.router,u,l,!1),a&&a(u)},o)},t.prototype.replace=function(i,a,o){var s=this,c=this,l=c.current;this.transitionTo(i,function(u){W3(Au(s.base+u.fullPath)),Bp(s.router,u,l,!1),a&&a(u)},o)},t.prototype.ensureURL=function(i){if(Zm(this.base)!==this.current.fullPath){var a=Au(this.base+this.current.fullPath);i?ay(a):W3(a)}},t.prototype.getCurrentLocation=function(){return Zm(this.base)},t}(Ys);function Zm(n){var t=window.location.pathname;return n&&t.indexOf(n)===0&&(t=t.slice(n.length)),(t||"/")+window.location.search+window.location.hash}var pR=function(n){function t(r,i,a){n.call(this,r,i),!(a&&b4e(this.base))&&fR()}return n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var i=this,a=this.router,o=a.options.scrollBehavior,s=zp&&o;s&&QI(),window.addEventListener(zp?"popstate":"hashchange",function(){var c=i.current;fR()&&i.transitionTo(oy(),function(l){s&&Bp(i.router,l,c,!0),zp||sy(l.fullPath)})})},t.prototype.push=function(i,a,o){var s=this,c=this,l=c.current;this.transitionTo(i,function(u){hR(u.fullPath),Bp(s.router,u,l,!1),a&&a(u)},o)},t.prototype.replace=function(i,a,o){var s=this,c=this,l=c.current;this.transitionTo(i,function(u){sy(u.fullPath),Bp(s.router,u,l,!1),a&&a(u)},o)},t.prototype.go=function(i){window.history.go(i)},t.prototype.ensureURL=function(i){var a=this.current.fullPath;oy()!==a&&(i?hR(a):sy(a))},t.prototype.getCurrentLocation=function(){return oy()},t}(Ys);function b4e(n){var t=Zm(n);if(!/^\/#/.test(t))return window.location.replace(Au(n+"/#"+t)),!0}function fR(){var n=oy();return n.charAt(0)==="/"?!0:(sy("/"+n),!1)}function oy(){var n=window.location.href,t=n.indexOf("#");return t===-1?"":n.slice(t+1)}function q3(n){var t=window.location.href,r=t.indexOf("#"),i=r>=0?t.slice(0,r):t;return i+"#"+n}function hR(n){zp?ay(q3(n)):window.location.hash=n}function sy(n){zp?W3(q3(n)):window.location.replace(q3(n))}var _4e=function(n){function t(r,i){n.call(this,r,i),this.stack=[],this.index=-1}return n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t,t.prototype.push=function(i,a,o){var s=this;this.transitionTo(i,function(c){s.stack=s.stack.slice(0,s.index+1).concat(c),s.index++,a&&a(c)},o)},t.prototype.replace=function(i,a,o){var s=this;this.transitionTo(i,function(c){s.stack=s.stack.slice(0,s.index).concat(c),a&&a(c)},o)},t.prototype.go=function(i){var a=this,o=this.index+i;if(!(o<0||o>=this.stack.length)){var s=this.stack[o];this.confirmTransition(s,function(){a.index=o,a.updateRoute(s)})}},t.prototype.getCurrentLocation=function(){var i=this.stack[this.stack.length-1];return i?i.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ys),yr=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=t4e(t.routes||[],this);var r=t.mode||"hash";switch(this.fallback=r==="history"&&!zp&&t.fallback!==!1,this.fallback&&(r="hash"),Ym||(r="abstract"),this.mode=r,r){case"history":this.history=new dR(this,t.base);break;case"hash":this.history=new pR(this,t.base,this.fallback);break;case"abstract":this.history=new _4e(this,t.base);break}},mR={currentRoute:{configurable:!0}};yr.prototype.match=function(t,r,i){return this.matcher.match(t,r,i)},mR.currentRoute.get=function(){return this.history&&this.history.current},yr.prototype.init=function(t){var r=this;if(this.apps.push(t),!this.app){this.app=t;var i=this.history;if(i instanceof dR)i.transitionTo(i.getCurrentLocation());else if(i instanceof pR){var a=function(){i.setupListeners()};i.transitionTo(i.getCurrentLocation(),a,a)}i.listen(function(o){r.apps.forEach(function(s){s._route=o})})}},yr.prototype.beforeEach=function(t){return Y3(this.beforeHooks,t)},yr.prototype.beforeResolve=function(t){return Y3(this.resolveHooks,t)},yr.prototype.afterEach=function(t){return Y3(this.afterHooks,t)},yr.prototype.onReady=function(t,r){this.history.onReady(t,r)},yr.prototype.onError=function(t){this.history.onError(t)},yr.prototype.push=function(t,r,i){this.history.push(t,r,i)},yr.prototype.replace=function(t,r,i){this.history.replace(t,r,i)},yr.prototype.go=function(t){this.history.go(t)},yr.prototype.back=function(){this.go(-1)},yr.prototype.forward=function(){this.go(1)},yr.prototype.getMatchedComponents=function(t){var r=t?t.matched?t:this.resolve(t).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(i){return Object.keys(i.components).map(function(a){return i.components[a]})})):[]},yr.prototype.resolve=function(t,r,i){var a=JI(t,r||this.history.current,i,this),o=this.match(a,r),s=o.redirectedFrom||o.fullPath,c=this.history.base,l=w4e(c,s,this.mode);return{location:a,route:o,href:l,normalizedTo:a,resolved:o}},yr.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==ey&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(yr.prototype,mR);function Y3(n,t){return n.push(t),function(){var r=n.indexOf(t);r>-1&&n.splice(r,1)}}function w4e(n,t,r){var i=r==="hash"?"#"+t:t;return n?Au(n+"/"+i):i}yr.install=B3,yr.version="3.0.1",Ym&&window.Vue&&window.Vue.use(yr);const x4e=[{name:"form",path:"/form",component:()=>Promise.resolve().then(()=>fyt),props:!0,meta:{mode:"modal",placement:"center",width:"100vw",height:"100vh"}},{name:"document",path:"/document",component:()=>Promise.resolve().then(()=>Wat),props:!0,meta:{mode:"modal",placement:"center",width:"100vw",height:"100vh",scroll:!0}},{name:"send",path:"/send",component:()=>Promise.resolve().then(()=>byt),props:!0,meta:{mode:"drawer",placement:"right",width:620,height:"100%"}},{name:"print",path:"/print",component:()=>Promise.resolve().then(()=>Ayt),props:!0,meta:{mode:"modal",placement:"center",width:400}},{name:"sendReminder",path:"/sendReminder",component:()=>Promise.resolve().then(()=>jyt),props:!0,meta:{mode:"modal",placement:"center",width:400}},{name:"timeline",path:"/timeline",component:()=>Promise.resolve().then(()=>d2t),props:!0,meta:{mode:"modal",width:400}},{name:"receipt",path:"/receipt",component:()=>Promise.resolve().then(()=>w2t),props:!0,meta:{mode:"modal",width:600}},{name:"clientLinks",path:"/clientLinks",component:()=>Promise.resolve().then(()=>E2t),props:!0,meta:{mode:"modal",width:400}},{name:"documentClient",path:"/documentClient",component:()=>Promise.resolve().then(()=>U2t),props:!0,meta:{mode:"modal",placement:"center",width:"100vw",height:"100vh"}},{name:"setup",path:"/setup",component:()=>Promise.resolve().then(()=>K2t),props:!0,meta:{mode:"modal",placement:"center",width:"500px",height:"700px"}},{name:"docAnswer",path:"/docAnswer",component:()=>Promise.resolve().then(()=>tbt),props:!0,meta:{mode:"modal",placement:"center",width:420}},{name:"docDetails",path:"/docDetails",component:()=>Promise.resolve().then(()=>_bt),props:!0,meta:{mode:"drawer",placement:"right",width:540,height:"100%"}}];Fe.use(yr);const Ks=new yr({mode:"abstract",routes:x4e}),mn=Fe.observable({_openViews:[],_styleVars:{},get openViews(){return this._openViews},get view(){var n;return this.open&&((n=Ks.currentRoute)==null?void 0:n.name)||null},get language(){return Be.lang},get locale(){return Be.locale},get styleVars(){return this._styleVars},set styleVars(n){this._styleVars={...n}},addView({key:n,view:t,mode:r,viewOpts:i}){const a={view:t,mode:r,key:n,viewOpts:i};if(["modal","drawer"].includes(r)&&Ks.push({name:t,params:i}),r==="mount"){const{routes:o}=Ks.options||[];if(!o.map(c=>c.name).includes(t))throw new Error(`View ${t} not supported`);const s=o.find(c=>c.name===t);a.viewOpts={component:s.component,...i}}this._openViews.push(a),Pr.trigger("ui:open",{key:n,view:t,mode:r})},removeView({key:n,view:t,mode:r}){const i=this._openViews.findIndex(a=>a.key===n&&a.mode===r&&a.view===t);if(r==="mount"){const a=document.getElementById(`${n}-${r}-${t}`);a&&(a.textContent="")}i>-1&&this._openViews.splice(i,1),["modal","drawer"].includes(r)&&Ks.push("/"),Pr.trigger("ui:close",{key:n,mode:r,view:t})},removeAllOverlayViews(){var n,t,r,i;(r=(t=(n=Fe.prototype)==null?void 0:n.$modal)==null?void 0:t.hideAll)==null||r.call(t),(i=this._openViews.filter(a=>a.mode==="modal"||a.mode==="dynamicModal"||a.mode==="drawer"))==null||i.forEach(a=>this.removeView(a))},setLanguage(n){Be.i18next.changeLanguage(n,!0)},setLocale(n){Be.l10n.changeLocale(n,!0)},on(n,t){if(!["open","close","document.block.answer.visible"].includes(n))throw new Error(`Event ${n} not supported`);return Pr.on(`ui:${n}`,t)}});var C4e=vp,k4e=Ws,S4e="[object Symbol]";function T4e(n){return typeof n=="symbol"||k4e(n)&&C4e(n)==S4e}var ly=T4e,E4e=Jo,$4e=ly,A4e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O4e=/^\w*$/;function D4e(n,t){if(E4e(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||$4e(n)?!0:O4e.test(n)||!A4e.test(n)||t!=null&&n in Object(t)}var K3=D4e,gR=O4,M4e="Expected a function";function Z3(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new TypeError(M4e);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],o=r.cache;if(o.has(a))return o.get(a);var s=n.apply(this,i);return r.cache=o.set(a,s)||o,s};return r.cache=new(Z3.Cache||gR),r}Z3.Cache=gR;var P4e=Z3,I4e=P4e,R4e=500;function L4e(n){var t=I4e(n,function(i){return r.size===R4e&&r.clear(),i}),r=t.cache;return t}var N4e=L4e,F4e=N4e,B4e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j4e=/\\(\\)?/g,z4e=F4e(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(B4e,function(r,i,a,o){t.push(a?o.replace(j4e,"$1"):i||r)}),t}),V4e=z4e;function U4e(n,t){for(var r=-1,i=n==null?0:n.length,a=Array(i);++r<i;)a[r]=t(n[r],r,n);return a}var J3=U4e,vR=gp,H4e=J3,W4e=Jo,G4e=ly,q4e=1/0,yR=vR?vR.prototype:void 0,bR=yR?yR.toString:void 0;function _R(n){if(typeof n=="string")return n;if(W4e(n))return H4e(n,_R)+"";if(G4e(n))return bR?bR.call(n):"";var t=n+"";return t=="0"&&1/n==-q4e?"-0":t}var Y4e=_R,K4e=Y4e;function Z4e(n){return n==null?"":K4e(n)}var J4e=Z4e,X4e=Jo,Q4e=K3,e3e=V4e,t3e=J4e;function n3e(n,t){return X4e(n)?n:Q4e(n,t)?[n]:e3e(t3e(n))}var Vp=n3e,r3e=ly,i3e=1/0;function a3e(n){if(typeof n=="string"||r3e(n))return n;var t=n+"";return t=="0"&&1/n==-i3e?"-0":t}var Up=a3e,o3e=Vp,s3e=Up;function l3e(n,t){t=o3e(t,n);for(var r=0,i=t.length;n!=null&&r<i;)n=n[s3e(t[r++])];return r&&r==i?n:void 0}var cy=l3e,c3e=M4,u3e=Vp,d3e=R4,wR=Zo,p3e=Up;function f3e(n,t,r,i){if(!wR(n))return n;t=u3e(t,n);for(var a=-1,o=t.length,s=o-1,c=n;c!=null&&++a<o;){var l=p3e(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(a!=s){var d=c[l];u=i?i(d,l,c):void 0,u===void 0&&(u=wR(d)?d:d3e(t[a+1])?[]:{})}c3e(c,l,u),c=c[l]}return n}var xR=f3e,h3e=cy,m3e=xR,g3e=Vp;function v3e(n,t,r){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=h3e(n,s);r(c,s)&&m3e(o,g3e(s,n),c)}return o}var y3e=v3e;function b3e(n,t){return n!=null&&t in Object(n)}var _3e=b3e,w3e=Vp,x3e=P4,C3e=Jo,k3e=R4,S3e=L4,T3e=Up;function E3e(n,t,r){t=w3e(t,n);for(var i=-1,a=t.length,o=!1;++i<a;){var s=T3e(t[i]);if(!(o=n!=null&&r(n,s)))break;n=n[s]}return o||++i!=a?o:(a=n==null?0:n.length,!!a&&S3e(a)&&k3e(s,a)&&(C3e(n)||x3e(n)))}var $3e=E3e,A3e=_3e,O3e=$3e;function D3e(n,t){return n!=null&&O3e(n,t,A3e)}var CR=D3e,M3e=y3e,P3e=CR;function I3e(n,t){return M3e(n,t,function(r,i){return P3e(n,i)})}var R3e=I3e,kR=gp,L3e=P4,N3e=Jo,SR=kR?kR.isConcatSpreadable:void 0;function F3e(n){return N3e(n)||L3e(n)||!!(SR&&n&&n[SR])}var B3e=F3e,j3e=V4,z3e=B3e;function TR(n,t,r,i,a){var o=-1,s=n.length;for(r||(r=z3e),a||(a=[]);++o<s;){var c=n[o];t>0&&r(c)?t>1?TR(c,t-1,r,i,a):j3e(a,c):i||(a[a.length]=c)}return a}var ER=TR,V3e=ER;function U3e(n){var t=n==null?0:n.length;return t?V3e(n,1):[]}var H3e=U3e;function W3e(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}var G3e=W3e,q3e=G3e,$R=Math.max;function Y3e(n,t,r){return t=$R(t===void 0?n.length-1:t,0),function(){for(var i=arguments,a=-1,o=$R(i.length-t,0),s=Array(o);++a<o;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(s),q3e(n,this,c)}}var AR=Y3e;function K3e(n){return function(){return n}}var Z3e=K3e;function J3e(n){return n}var X3=J3e,X3e=Z3e,OR=nM,Q3e=X3,eCe=OR?function(n,t){return OR(n,"toString",{configurable:!0,enumerable:!1,value:X3e(t),writable:!0})}:Q3e,tCe=eCe,nCe=800,rCe=16,iCe=Date.now;function aCe(n){var t=0,r=0;return function(){var i=iCe(),a=rCe-(i-r);if(r=i,a>0){if(++t>=nCe)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}var oCe=aCe,sCe=tCe,lCe=oCe,cCe=lCe(sCe),DR=cCe,uCe=H3e,dCe=AR,pCe=DR;function fCe(n){return pCe(dCe(n,void 0,uCe),n+"")}var MR=fCe,hCe=R3e,mCe=MR;mCe(function(n,t){return n==null?{}:hCe(n,t)});var gCe=Z4,vCe=1,yCe=4;function bCe(n){return gCe(n,vCe|yCe)}var _Ce=bCe;const Zs=tn(_Ce);class Jm extends Error{constructor(r={}){super(r);$n(this,"isCustom",!0);$n(this,"code",null);$n(this,"httpStatusCode",null);$n(this,"payload",{code:null,fallbackCode:null,string:null,object:null,objectId:null,action:null,actionPayload:null,retries:0,axios:null,showMessage:!0});typeof r.stack=="string"&&(this.stack=r.stack.replace(/.*\n/i,`${this.constructor.name}: ${r.message}
|
|
436
|
-
`))}add(r){return this.payload={...this.payload,...r},this}getPayload(){return this.payload}setErrorCodeFromResponse(){const{data:r,status:i}=this.getPayload().axios||{};if(!r&&!i)return;const{errorCode:a}=r||{};a&&this.add({code:a}),i&&(this.httpStatusCode=i)}setMessageFromResponse(){const{data:r}=this.getPayload().axios||{};if(!r)return!1;const{message:i}=r||{};return i?(this.message=i,!0):!1}}class PR extends Jm{constructor(t){if(super(t),this.name="NotFoundError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse()}}class IR extends Jm{constructor(t){if(super(t),this.name="ForbiddenError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class RR extends Jm{constructor(t){if(super(t),this.name="ValidationError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class LR extends Jm{constructor(t){if(super(t),this.name="NetworkError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{config:r}=t;this.add({axios:r}),this.code="ECONNREFUSED"}}class Js extends Jm{constructor(t){if(super(t),this.name="GeneralError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}const NR=Object.freeze(Object.defineProperty({__proto__:null,ForbiddenError:IR,GeneralError:Js,NetworkError:LR,NotFoundError:PR,ValidationError:RR},Symbol.toStringTag,{value:"Module"})),wCe=n=>{const t=Object.keys(n);let r="";return t.forEach(i=>{const a=typeof n[i]=="object",o=a&&n[i].length>=0;a||(r+=`${i}=${n[i]}&`),a&&o&&n[i].forEach(s=>{r+=`${i}=${s}&`})}),r&&r.slice(0,-1)},FR=n=>{Q3.push(n)},xCe=n=>{Q3.map(t=>t(n))};function BR(){console.error("User should be logged out!!"),wt.removeItem("token"),wt.removeItem("tokenExpires"),wt.removeItem("refreshToken"),Pr.trigger("user:unauthorized",{error})}let Xm=!1,Q3=[];const CCe=(n,{renewToken:t})=>{n.interceptors.request.use(r=>{const i=r;if(i.url.includes("/auth")||i.url.startsWith("/public/"))return i;const a=i.headers["X-TOKEN"];if(!a)return i;const o=wt.getItem("tokenExpires");if(a&&o){const s=new Date;s.setSeconds(s.getSeconds()+30);const c=new Date(o);if(s>c)return t(),new Promise(u=>{FR(d=>{i.headers["X-TOKEN"]=d,u(i)})})}return i},r=>Promise.reject(r))},kCe=(n,{renewToken:t})=>{n.interceptors.response.use(r=>r,r=>{if(!r||!r.response)return Promise.reject(r);const{config:i,response:a}=r,{status:o,data:s}=a,{errorCode:c}=s,l=i;if(l.url.startsWith("/public/"))return Promise.reject(r);function u(){if(c===8001)return!0;const d=wt.getItem("tokenExpires");if(d){const p=new Date,f=new Date(d);return p>f}return!1}if(o===401&&l.headers["X-TOKEN"]&&u()&&!Xm)return t(),new Promise(p=>{FR(f=>{l.headers["X-TOKEN"]=f,p(ni(l))})});if(o===401&&typeof c>"u"){if(l.url.includes("auth/companyUser")&&!l.headers["X-TOKEN"])return Promise.reject(r);if(l.url.includes("auth/actionlink")&&!l.headers["X-TOKEN"])return Promise.reject(r);BR()}return Promise.reject(r)})},jR=n=>(E0(n.data),n),SCe=n=>{n.interceptors.response.use(jR,t=>{const{response:r,config:i}=t;if(!r)throw new LR(t);if(Object.prototype.hasOwnProperty.call(i,"errorHandle")&&i.errorHandle===!1)return Promise.reject(t);const{status:a}=r;switch(a){case 404:throw new PR(t);case 401:throw new IR(t);case 412:throw new RR(t);default:throw new Js(t)}})},TCe=n=>{n.interceptors.response.use(t=>{var r,i;if((i=(r=t.config)==null?void 0:r.url)!=null&&i.includes("document")&&t.config.method==="post"){const a=JSON.parse(t.config.data);a.__tempId&&(t.data.__tempId=a.__tempId)}return t},t=>Promise.reject(t))},ECe=n=>{n.interceptors.request.use(t=>{if(["post","put"].includes(t.method)&&t.data&&!(t.data instanceof FormData)){const r=Zs(t.data);Q4(r),t.data=r}return t},t=>Promise.reject(t))},$Ce=({baseUrl:n,withCredentials:t,cache:r})=>{const i=ni.create({baseURL:n,timeout:2e4,adapter:r,withCredentials:t,paramsSerializer:p=>wCe(p)});i.defaults.headers["X-CLIENT"]="widget",i.defaults.headers["X-CLIENT-VERSION"]="0.9.26";const a=async(p,f,h=null,m={})=>{const g=f.startsWith("/public/"),y=wt.getItem("token");switch(y&&!g&&(i.defaults.headers["X-TOKEN"]=y),p){case"get":return i.get(f,m);case"post":return i.post(f,h,m);case"put":return i.put(f,h,m);case"delete":return i.delete(f,m);case"patch":return i.patch(f,h,m);default:throw new Error(`SendRequest failed as method: '${p}' is not implemented`)}},o=(p,f={})=>a("get",p,null,f),s=(p,f={},h={})=>a("put",p,f,h),c=(p,f,h={})=>a("post",p,f,h),l=(p,f={})=>a("delete",p,null,f),u=(p,f={})=>a("patch",p,null,f),d=async()=>{if(!Xm)try{Xm=!0;const p=wt.getItem("refreshToken"),f=await c("/auth/companyUser",{refreshToken:p});if(!f.data||!f.data.token)throw new Error("No token was defined in result");const{token:h,tokenExpires:m,refreshToken:g}=f.data;wt.setItem("token",h),wt.setItem("tokenExpires",m),g&&wt.setItem("refreshToken",g),Xm=!1,xCe(h),Q3=[]}catch(p){return console.error(p),BR()}finally{Xm=!1}};return CCe(i,{renewToken:d}),kCe(i,{renewToken:d}),jR(i),SCe(i),ECe(i),TCe(i),{instance:i,get:o,put:s,post:c,del:l,patch:u,renewToken:d}},eC=new Map;function ACe(n){if(typeof n>"u")throw new Error("Missing valid parameter url");if(typeof n!="string")throw new Error("Parameter url must be a string");const{data:t,cachedAt:r,expiresAt:i}=eC.get(n)||{};return Date.now()>r+6e4*30||i&&Date.now()>i?(eC.delete(n),null):t}const OCe=async n=>{const{url:t,params:r={}}=n,i=Object.keys(r).map(s=>`${s}=${r[s]}`).join("&"),a=`${t}${i?`?${i}`:""}`;return ACe(a),await ni({...n,adapter:ni.defaults.adapter})},Ou={withCredentials:!0,baseUrl:Xe.api.baseUrl},{get:bt,post:Yt,put:Ir,patch:ts,del:Yi,instance:oRt,renewToken:DCe}=$Ce({withCredentials:Ou.withCredentials,baseUrl:Ou.baseUrl,cache:OCe});async function zR(n){const t=i0e(n);return bt(`/project${t}`,{saveCache:!0})}const MCe=async(n,t={})=>bt("/project",n,{params:t}),PCe=async(n,t={})=>bt(`/project/${n}`,{params:t,saveCache:!0}),ICe=async(n,t,r={})=>Ir(`/project/${n}`,t,{params:r,invalidateCache:{type:"project",id:n}}),RCe=async n=>ts(`/project/${n}`),LCe=async(n,t={})=>Yi(`/project/${n}`,{params:t,invalidateCache:{type:"project",id:n}}),NCe=async()=>bt("/project/createDemo"),FCe=()=>bt("/"),BCe=async(n,t={})=>Yt("/auth/actionlink",{token:n,...t}),jCe=async n=>Yt("/register",n),zCe=async(n,t)=>Yt("/companyUser/forgottenPassword/new",{password:n,resetPasswordToken:t}),VCe=async n=>Yt("/public/consent",n),UCe=async n=>bt(`/projectFile/${n}`),HCe=async n=>Yt("/projectFile",n),WCe=async(n,t)=>Ir(`/projectFile/${n}`,t),GCe=async n=>Yi(`/projectFile/${n}`),qCe=async n=>ts(`/projectFile/${n}`),YCe=async(n,t={})=>bt(`/projectNote/${n}`,{params:t}),KCe=async(n,t={})=>Yt("/projectNote",n,{params:t}),ZCe=async(n,t,r={})=>Ir(`/projectNote/${n}`,t,{params:r}),JCe=async n=>bt(`/file/${n}`),VR=async n=>Yt("/file",n),XCe=async(n,t)=>Ir(`/file/${n}`,t),QCe=async n=>Yi(`/file/${n}`),eke=async n=>ts(`/file/${n}`),tke=async(n={})=>bt("/article",{params:n}),nke=async n=>bt(`/article/${n}`),rke=async n=>Yt("/article",n),ike=async(n,t)=>Ir(`/article/${n}`,t),ake=async n=>Yi(`/article/${n}`),oke=async n=>ts(`/article/${n}`),ske=async n=>Yt("/search",{type:"article",query:n}),Qm={get:async(n,t={})=>bt(n?`/unitType/${n}`:"/unitType",{params:t,saveCache:!0}),post:async(n,t={})=>Yt("/unitType",n,{params:t}),put:async(n,t,r={})=>Ir(`/unitType/${n}`,t,{params:r,invalidateCache:{type:"unitType",id:n}}),delete:async(n,t={})=>Yi(`/unitType/${n}`,{params:t,invalidateCache:{type:"unitType",id:n}})},lke=async(n={})=>bt("/templateMessage",{params:n,saveCache:!0}),cke=async(n,t={})=>bt(`/templateMessage/${n}`,{params:t,saveCache:!0}),uke=async(n,t={})=>Yt("/templateMessage",n,{params:t}),dke=async(n,t,r={})=>Ir(`/templateMessage/${n}`,t,{params:r,invalidateCache:{type:"templateMessage",id:n}}),pke=async(n,t={})=>Yi(`/templateMessage/${n}`,{params:t,invalidateCache:{type:"templateMessage",id:n}}),fke=async(n,t={})=>ts(`/templateMessage/${n}`,{params:t}),hke=async(n={})=>bt("/endCustomer",{params:n}),mke=async(n,t={})=>bt(`/endCustomer/${n}`,{params:t}),gke=async(n,t={})=>Yt("/endCustomer",n,{params:t}),vke=async(n,t,r={})=>Ir(`/endCustomer/${n}`,t,{params:r}),yke=async(n,t={})=>Yi(`/endCustomer/${n}`,{params:t}),bke=async(n,t={})=>ts(`/endCustomer/${n}`,{params:t}),_ke=async n=>Yt("/search",{type:"endCustomer",query:n}),wke=async(n={})=>bt("/companyUser",{params:n,saveCache:!0}),xke=async(n,t={})=>bt(`/companyUser/${n}`,{params:t,saveCache:!0}),Cke=async(n,t={})=>Yt("/companyUser",n,{params:t}),kke=async(n,t,r={})=>Ir(`/companyUser/${n}`,t,{params:r,invalidateCache:{type:"companyUser",id:n}}),Ske=async(n,t={})=>Yi(`/companyUser/${n}`,{params:t,invalidateCache:{type:"companyUser",id:n}}),Tke=async(n,t={})=>ts(`/companyUser/${n}`,{params:t}),UR={getPublic:async(n,t={})=>bt(`/public/companyUser/${n}`,{params:t}),getConnectedUsers:async(n={})=>bt("/companyUser/self/connectedUsers",{params:n}),getConnectedUserAuth:async(n,t={})=>bt(`/companyUser/self/connectedUsers/${n}/auth`,{params:t}),setConnectedUserDefault:async(n,t={})=>Ir(`/companyUser/self/connectedUsers/${n}/setDefaultAuth`,{params:t}),verifyEmail:async(n,t={})=>Yt("/public/verifyEmail/companyUser",n,{params:t})},Eke=async(n,t=null,r={})=>Ir(`/companyAccount/accountType/${n}`,t,{params:r}),$ke=async(n={})=>bt("/companyAccount/getNumberOfManagers",{params:n}),Ake=async(n={})=>Yt("/companyAccount/addUserLicenseInvoice",{},{params:n}),Oke=async(n,t={})=>bt(`/promotionCode/${n}/canUse`,{params:t}),Dke=async(n,t={})=>bt("/promotionCode/inUse",{params:t}),uy={product:async(n,t={})=>Yt("/companyAccount/product",n,{params:t}),cancelAll:async(n={})=>Yi("/companyAccount/subscription",{params:n}),getPrices:async(n={})=>bt("/companyAccount/price",{params:n}),getUpcomingInvoices:async(n={})=>bt("/companyAccount/upcomingInvoice",{params:n}),getPaymentHistory:async(n={})=>bt("/companyAccount/paymentHistory",{params:n}),putPaymentMethod:async(n,t={})=>Ir("/companyAccount/paymentMethod",n,{params:t}),putCustomer:async(n,t={})=>Ir("/companyAccount/customer",n,{params:t}),createCheckoutSession:async(n,t={})=>Yt("/companyAccount/create-checkout-session",n,{params:t})},Mke=async(n,t)=>Yt(`/project/${n}/projectMember/${t}`,null,{invalidateCache:{type:"project",id:n}}),Pke=async(n,t)=>Yi(`/project/${n}/projectMember/${t}`,{invalidateCache:{type:"project",id:n}}),Ike=async(n={})=>bt("/companyInvoiceSetting",{params:n}),Rke=async(n,t={})=>Ir("/companyInvoiceSetting",n,{params:t}),Lke={get:async(n={})=>bt("/companyKYC",{params:n}),post:async(n,t={})=>Yt("/companyKYC",n,{params:t}),sign:async(n,t={})=>Yt("/companyKYC/sign",n,{params:t})},Ki={get:async(n,t={})=>bt(`/document/${n}`,{params:t,saveCache:!0}),getAll:async(n={})=>bt("/document",{params:n,saveCache:!0}),post:async(n,t={})=>Yt("/document",n,{params:t}),send:async(n,t={},r={})=>Yt(`/document/${n}/send`,t,{params:r,invalidateCache:{type:"document",id:n}}),clearAnswers:async(n,t={},r={})=>Yt(`/document/${n}/clearAnswers`,t,{params:r,invalidateCache:{type:"document",id:n}}),put:async(n,t,r={})=>Ir(`/document/${n}`,t,{params:r,invalidateCache:{type:"document",id:n}}),delete:async(n,t={})=>Yi(`/document/${n}`,{params:t,invalidateCache:{type:"document",id:n}}),patch:async(n,t={})=>ts(`/document/${n}`,{params:t}),validate:async(n,t={})=>Yt("/documentValidate",n,{params:t})},Du={get:async(n,t={})=>bt(n?`/template/${n}`:"/template",{params:t}),post:async(n,t={})=>Yt("/template",n,{params:t}),put:async(n,t,r={})=>Ir(`/template/${n}`,t,{params:r}),delete:async(n,t={})=>Yi(`/template/${n}`,{params:t}),patch:async(n,t={})=>ts(`/template/${n}`,{params:t})},Nke={get:async(n={})=>bt("/templateGallery",{params:n})},Fke={get:async(n,t={})=>bt(`/public/templateStat/${n}`,{params:t})},Hp={get:async(n,t={})=>bt(`/public/document/${n}`,{params:t}),put:async(n,t,r={})=>Ir(`/public/document/${n}`,t,{headers:r}),answer:async(n,t,r={},i={})=>Yt(`/public/document/${n}/answer`,t,{params:r,headers:i}),feedback:async(n,t,r={})=>Yt(`/public/document/${n}/feedback`,t,{params:r})},HR={get:async(n,t={})=>bt(`/public/pdfJob/${n}`,{params:t}),addDocument:async(n,t={})=>bt(`/public/document/${n}/pdfJob/start`,{params:t})},tC={getDocuments:async(n={})=>{const t=wt.getItem("clientToken");return ni.get(`${Ou.baseUrl}/client/document`,{headers:{Authorization:t},params:n})},getInvoices:async(n={})=>{const t=wt.getItem("clientToken");return ni.get(`${Ou.baseUrl}/client/invoice`,{headers:{Authorization:t},params:n})},requestMagicLink:async(n,t={})=>ni.post(`${Ou.baseUrl}/client/requestMagicLink`,n,{params:t})},dy={get:async(n,t={})=>bt(`/public/company/${n}`,{params:t}),getCertificates:async(n,t={})=>bt(`/public/company/${n}/certificates`,{params:t}),getReferences:async(n,t={})=>bt(`/public/company/${n}/references`,{params:t})},Bke={get:async(n,t={})=>bt(`${Ou.baseUrl}/public/signature/${n}`,{params:t})},WR={post:async(n,t={})=>Yt("/voucher",n,{params:t}),canUse:async(n,t={})=>bt(`/voucher/${n}/canUse`,{params:t})},nc={getAuthUrl:async(n,t={})=>bt("/extension/authUrl",{params:{...t,service:n}}),getPublicAuthUrl:async(n,t={})=>bt("/public/extension/authUrl",{params:{...t,service:n}}),install:async(n,t,r={})=>Yt("/extension/install",t,{params:{...r,service:n}}),uninstall:async(n,t={})=>Yi("/extension/uninstall",{params:{...t,service:n}}),suggestClients:async(n,t={})=>bt("/extension/suggestClients",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),signupWithCrm:async(n,t,r={})=>Yt("/public/extension/register",t,{params:{...r,service:n}}),search:async(n,t={})=>bt("/extension/search",{params:{...t,service:n},saveCache:!0,cacheTtl:10}),getFields:async(n,t={})=>bt("/extension/fields",{params:{...t,service:n},saveCache:!0,cacheTtl:60}),getExternalReferenceDetails:async(n,t={})=>bt("/extension/externalReferenceDetails",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),settings:async(n,t={})=>bt("/extension/settings",{params:{...t,service:n}})},ri={get:bt,post:Yt,put:Ir,del:Yi,patch:ts,authData:Ou,getProjects:zR};var GR={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(Vt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,function(u){return o[u]}.bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=6)}([function(r,i,a){var o=a(12),s={};function c($,T){return T===l($)}function l($){var T=typeof $;return T!=="object"?T:$?$ instanceof Error?"error":{}.toString.call($).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function u($){return c($,"function")}function d($){var T=Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),A=RegExp("^"+T+"$");return p($)&&A.test($)}function p($){var T=typeof $;return $!=null&&(T=="object"||T=="function")}function f(){var $=k();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(T){var A=($+16*Math.random())%16|0;return $=Math.floor($/16),(T==="x"?A:7&A|8).toString(16)})}var h={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function m($,T){var A,E;try{A=s.stringify($)}catch(I){if(T&&u(T))try{A=T($)}catch(R){E=R}else E=I}return{error:E,value:A}}function g($,T){return function(A,E){try{T(A,E)}catch(I){$.error(I)}}}function y($){return function T(A,E){var I,R,Y,L={};try{for(R in A)(I=A[R])&&(c(I,"object")||c(I,"array"))?E.includes(I)?L[R]="Removed circular reference: "+l(I):((Y=E.slice()).push(I),L[R]=T(I,Y)):L[R]=I}catch(D){L="Failed cloning custom data: "+D.message}return L}($,[$])}var b=["log","network","dom","navigation","error","manual"],w=["critical","error","warning","info","debug"];function S($,T){for(var A=0;A<$.length;++A)if($[A]===T)return!0;return!1}function k(){return Date.now?+Date.now():+new Date}r.exports={addParamsAndAccessTokenToPath:function($,T,A){(A=A||{}).access_token=$;var E,I=[];for(E in A)Object.prototype.hasOwnProperty.call(A,E)&&I.push([E,A[E]].join("="));var R="?"+I.sort().join("&");(T=T||{}).path=T.path||"";var Y,L=T.path.indexOf("?"),D=T.path.indexOf("#");L!==-1&&(D===-1||D>L)?(Y=T.path,T.path=Y.substring(0,L)+R+"&"+Y.substring(L+1)):D!==-1?(Y=T.path,T.path=Y.substring(0,D)+R+Y.substring(D)):T.path=T.path+R},createItem:function($,T,A,E,I){for(var R,Y,L,D,B,z,K=[],te=[],j=0,M=$.length;j<M;++j){var q=l(z=$[j]);switch(te.push(q),q){case"undefined":break;case"string":R?K.push(z):R=z;break;case"function":D=g(T,z);break;case"date":K.push(z);break;case"error":case"domexception":case"exception":Y?K.push(z):Y=z;break;case"object":case"array":if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}if(E&&q==="object"&&!B){for(var G=0,ee=E.length;G<ee;++G)if(z[E[G]]!==void 0){B=z;break}if(B)break}L?K.push(z):L=z;break;default:if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}K.push(z)}}L&&(L=y(L)),K.length>0&&(L||(L=y({})),L.extraArgs=y(K));var ae={message:R,err:Y,custom:L,timestamp:k(),callback:D,notifier:A,diagnostic:{},uuid:f()};return function(ve,ye){ye&&ye.level!==void 0&&(ve.level=ye.level,delete ye.level),ye&&ye.skipFrames!==void 0&&(ve.skipFrames=ye.skipFrames,delete ye.skipFrames)}(ae,L),E&&B&&(ae.request=B),I&&(ae.lambdaContext=I),ae._originalArgs=$,ae.diagnostic.original_arg_types=te,ae},addErrorContext:function($,T){var A=$.data.custom||{},E=!1;try{for(var I=0;I<T.length;++I)T[I].hasOwnProperty("rollbarContext")&&(A=o(A,y(T[I].rollbarContext)),E=!0);E&&($.data.custom=A)}catch(R){$.diagnostic.error_context="Failed: "+R.message}},createTelemetryEvent:function($){for(var T,A,E,I,R=0,Y=$.length;R<Y;++R)switch(l(I=$[R])){case"string":!T&&S(b,I)?T=I:!E&&S(w,I)&&(E=I);break;case"object":A=I}return{type:T||"manual",metadata:A||{},level:E}},filterIp:function($,T){if($&&$.user_ip&&T!==!0){var A=$.user_ip;if(T)try{var E;if(A.indexOf(".")!==-1)(E=A.split(".")).pop(),E.push("0"),A=E.join(".");else if(A.indexOf(":")!==-1){if((E=A.split(":")).length>2){var I=E.slice(0,3),R=I[2].indexOf("/");R!==-1&&(I[2]=I[2].substring(0,R)),A=I.concat("0000:0000:0000:0000:0000").join(":")}}else A=null}catch{A=null}else A=null;$.user_ip=A}},formatArgsAsString:function($){var T,A,E,I=[];for(T=0,A=$.length;T<A;++T){switch(l(E=$[T])){case"object":(E=(E=m(E)).error||E.value).length>500&&(E=E.substr(0,497)+"...");break;case"null":E="null";break;case"undefined":E="undefined";break;case"symbol":E=E.toString()}I.push(E)}return I.join(" ")},formatUrl:function($,T){if(!(T=T||$.protocol)&&$.port&&($.port===80?T="http:":$.port===443&&(T="https:")),T=T||"https:",!$.hostname)return null;var A=T+"//"+$.hostname;return $.port&&(A=A+":"+$.port),$.path&&(A+=$.path),A},get:function($,T){if($){var A=T.split("."),E=$;try{for(var I=0,R=A.length;I<R;++I)E=E[A[I]]}catch{E=void 0}return E}},handleOptions:function($,T,A,E){var I=o($,T,A);return I=function(R,Y){return R.hostWhiteList&&!R.hostSafeList&&(R.hostSafeList=R.hostWhiteList,R.hostWhiteList=void 0,Y&&Y.log("hostWhiteList is deprecated. Use hostSafeList.")),R.hostBlackList&&!R.hostBlockList&&(R.hostBlockList=R.hostBlackList,R.hostBlackList=void 0,Y&&Y.log("hostBlackList is deprecated. Use hostBlockList.")),R}(I,E),!T||T.overwriteScrubFields||T.scrubFields&&(I.scrubFields=($.scrubFields||[]).concat(T.scrubFields)),I},isError:function($){return c($,"error")||c($,"exception")},isFiniteNumber:function($){return Number.isFinite($)},isFunction:u,isIterable:function($){var T=l($);return T==="object"||T==="array"},isNativeFunction:d,isObject:p,isString:function($){return typeof $=="string"||$ instanceof String},isType:c,isPromise:function($){return p($)&&c($.then,"function")},jsonParse:function($){var T,A;try{T=s.parse($)}catch(E){A=E}return{error:A,value:T}},LEVELS:{debug:0,info:1,warning:2,error:3,critical:4},makeUnhandledStackInfo:function($,T,A,E,I,R,Y,L){var D={url:T||"",line:A,column:E};D.func=L.guessFunctionName(D.url,D.line),D.context=L.gatherContext(D.url,D.line);var B=typeof document<"u"&&document&&document.location&&document.location.href,z=typeof window<"u"&&window&&window.navigator&&window.navigator.userAgent;return{mode:R,message:I?String(I):$||Y,url:B,stack:[D],useragent:z}},merge:o,now:k,redact:function(){return"********"},RollbarJSON:s,sanitizeUrl:function($){var T=function(A){if(c(A,"string")){for(var E=h,I=E.parser[E.strictMode?"strict":"loose"].exec(A),R={},Y=0,L=E.key.length;Y<L;++Y)R[E.key[Y]]=I[Y]||"";return R[E.q.name]={},R[E.key[12]].replace(E.q.parser,function(D,B,z){B&&(R[E.q.name][B]=z)}),R}}($);return T?(T.anchor===""&&(T.source=T.source.replace("#","")),$=T.source.replace("?"+T.query,"")):"(unknown)"},set:function($,T,A){if($){var E=T.split("."),I=E.length;if(!(I<1))if(I!==1)try{for(var R=$[E[0]]||{},Y=R,L=1;L<I-1;++L)R[E[L]]=R[E[L]]||{},R=R[E[L]];R[E[I-1]]=A,$[E[0]]=Y}catch{return}else $[E[0]]=A}},setupJSON:function($){u(s.stringify)&&u(s.parse)||(c(JSON,"undefined")||($?(d(JSON.stringify)&&(s.stringify=JSON.stringify),d(JSON.parse)&&(s.parse=JSON.parse)):(u(JSON.stringify)&&(s.stringify=JSON.stringify),u(JSON.parse)&&(s.parse=JSON.parse))),u(s.stringify)&&u(s.parse)||$&&$(s))},stringify:m,maxByteSize:function($){for(var T=0,A=$.length,E=0;E<A;E++){var I=$.charCodeAt(E);I<128?T+=1:I<2048?T+=2:I<65536&&(T+=3)}return T},typeName:l,uuid4:f}},function(r,i,a){a(17);var o=a(18),s=a(0);r.exports={error:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.error(s.formatArgsAsString(c)):console.error.apply(console,c)},info:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.info(s.formatArgsAsString(c)):console.info.apply(console,c)},log:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.log(s.formatArgsAsString(c)):console.log.apply(console,c)}}},function(r,i,a){r.exports={parse:function(o){var s,c,l={protocol:null,auth:null,host:null,path:null,hash:null,href:o,hostname:null,port:null,pathname:null,search:null,query:null};if((s=o.indexOf("//"))!==-1?(l.protocol=o.substring(0,s),c=s+2):c=0,(s=o.indexOf("@",c))!==-1&&(l.auth=o.substring(c,s),c=s+1),(s=o.indexOf("/",c))===-1){if((s=o.indexOf("?",c))===-1)return(s=o.indexOf("#",c))===-1?l.host=o.substring(c):(l.host=o.substring(c,s),l.hash=o.substring(s)),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),l;l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s}else l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s;if((s=o.indexOf("#",c))===-1?l.path=o.substring(c):(l.path=o.substring(c,s),l.hash=o.substring(s)),l.path){var u=l.path.split("?");l.pathname=u[0],l.query=u[1],l.search=l.query?"?"+l.query:null}return l}}},function(r,i,a){var o=a(24),s=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function c(){return null}function l(p){var f={};return f._stackFrame=p,f.url=p.fileName,f.line=p.lineNumber,f.func=p.functionName,f.column=p.columnNumber,f.args=p.args,f.context=null,f}function u(p,f){return{stack:function(){var h=[];f=f||0;try{h=o.parse(p)}catch{h=[]}for(var m=[],g=f;g<h.length;g++)m.push(new l(h[g]));return m}(),message:p.message,name:d(p),rawStack:p.stack,rawException:p}}function d(p){var f=p.name&&p.name.length&&p.name,h=p.constructor.name&&p.constructor.name.length&&p.constructor.name;return f&&h?f==="Error"?h:f:f||h}r.exports={guessFunctionName:function(){return"?"},guessErrorClass:function(p){if(!p||!p.match)return["Unknown error. There was no error message to display.",""];var f=p.match(s),h="(unknown)";return f&&(h=f[f.length-1],p=(p=p.replace((f[f.length-2]||"")+h+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[h,p]},gatherContext:c,parse:function(p,f){var h=p;if(h.nested||h.cause){for(var m=[];h;)m.push(new u(h,f)),h=h.nested||h.cause,f=0;return m[0].traceChain=m,m[0]}return new u(h,f)},Stack:u,Frame:l}},function(r,i,a){var o=a(0),s=a(5);function c(l,u){var d=u.split("."),p=d.length-1;try{for(var f=0;f<=p;++f)f<p?l=l[d[f]]:l[d[f]]=o.redact()}catch{}}r.exports=function(l,u,d){if(u=u||[],d)for(var p=0;p<d.length;++p)c(l,d[p]);var f=function(g){for(var y,b=[],w=0;w<g.length;++w)y="^\\[?(%5[bB])?"+g[w]+"\\[?(%5[bB])?\\]?(%5[dD])?$",b.push(new RegExp(y,"i"));return b}(u),h=function(g){for(var y,b=[],w=0;w<g.length;++w)y="\\[?(%5[bB])?"+g[w]+"\\[?(%5[bB])?\\]?(%5[dD])?",b.push(new RegExp("("+y+"=)([^&\\n]+)","igm"));return b}(u);function m(g,y){return y+o.redact()}return s(l,function g(y,b,w){var S=function(k,$){var T;for(T=0;T<f.length;++T)if(f[T].test(k)){$=o.redact();break}return $}(y,b);return S===b?o.isType(b,"object")||o.isType(b,"array")?s(b,g,w):function(k){var $;if(o.isType(k,"string"))for($=0;$<h.length;++$)k=k.replace(h[$],m);return k}(S):S})}},function(r,i,a){var o=a(0);r.exports=function(s,c,l){var u,d,p,f,h=o.isType(s,"object"),m=o.isType(s,"array"),g=[];if(l=l||{obj:[],mapped:[]},h){if(f=l.obj.indexOf(s),h&&f!==-1)return l.mapped[f]||l.obj[f];l.obj.push(s),f=l.obj.length-1}if(h)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&g.push(u);else if(m)for(p=0;p<s.length;++p)g.push(p);var y=h?{}:[],b=!0;for(p=0;p<g.length;++p)d=s[u=g[p]],y[u]=c(u,d,l),b=b&&y[u]===s[u];return h&&!b&&(l.mapped[f]=y),b?s:y}},function(r,i,a){r.exports=a(7)},function(r,i,a){var o=a(8),s=typeof window<"u"&&window._rollbarConfig,c=s&&s.globalAlias||"Rollbar",l=typeof window<"u"&&window[c]&&typeof window[c].shimId=="function"&&window[c].shimId()!==void 0;if(typeof window>"u"||window._rollbarStartTime||(window._rollbarStartTime=new Date().getTime()),!l&&s){var u=new o(s);window[c]=u}else typeof window<"u"?(window.rollbar=o,window._rollbarDidLoad=!0):typeof self<"u"&&(self.rollbar=o,self._rollbarDidLoad=!0);r.exports=o},function(r,i,a){var o=a(9),s=a(31),c=a(32),l=a(35),u=a(37),d=a(4),p=a(38);o.setComponents({telemeter:s,instrumenter:c,polyfillJSON:l,wrapGlobals:u,scrub:d,truncation:p}),r.exports=o},function(r,i,a){var o=a(10),s=a(0),c=a(15),l=a(1),u=a(19),d=a(20),p=a(2),f=a(23),h=a(26),m=a(27),g=a(28),y=a(3);function b(I,R){this.options=s.handleOptions(E,I,null,l),this.options._configuredOptions=I;var Y=this.components.telemeter,L=this.components.instrumenter,D=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var B=this.components.truncation,z=new d(B),K=new c(this.options,z,p,B);Y&&(this.telemeter=new Y(this.options)),this.client=R||new o(this.options,K,l,this.telemeter,"browser");var te=$(),j=typeof document<"u"&&document;this.isChrome=te.chrome&&te.chrome.runtime,this.anonymousErrorsPending=0,function(M,q,G){M.addTransform(f.handleDomException).addTransform(f.handleItemWithError).addTransform(f.ensureItemHasSomethingToSay).addTransform(f.addBaseInfo).addTransform(f.addRequestInfo(G)).addTransform(f.addClientInfo(G)).addTransform(f.addPluginInfo(G)).addTransform(f.addBody).addTransform(h.addMessageWithError).addTransform(h.addTelemetryData).addTransform(h.addConfigToPayload).addTransform(f.addScrubber(q.scrub)).addTransform(h.addPayloadOptions).addTransform(h.userTransform(l)).addTransform(h.addConfiguredOptions).addTransform(h.addDiagnosticKeys).addTransform(h.itemToPayload)}(this.client.notifier,this,te),this.client.queue.addPredicate(g.checkLevel).addPredicate(m.checkIgnore).addPredicate(g.userCheckIgnore(l)).addPredicate(g.urlIsNotBlockListed(l)).addPredicate(g.urlIsSafeListed(l)).addPredicate(g.messageIsIgnored(l)),this.setupUnhandledCapture(),L&&(this.instrumenter=new L(this.options,this.client.telemeter,this,te,j),this.instrumenter.instrument()),s.setupJSON(D),this.rollbar=this}var w=null;function S(I){var R="Rollbar is not initialized";l.error(R),I&&I(new Error(R))}function k(I){for(var R=0,Y=I.length;R<Y;++R)if(s.isFunction(I[R]))return I[R]}function $(){return typeof window<"u"&&window||typeof self<"u"&&self}b.init=function(I,R){return w?w.global(I).configure(I):w=new b(I,R)},b.prototype.components={},b.setComponents=function(I){b.prototype.components=I},b.prototype.global=function(I){return this.client.global(I),this},b.global=function(I){if(w)return w.global(I);S()},b.prototype.configure=function(I,R){var Y=this.options,L={};return R&&(L={payload:R}),this.options=s.handleOptions(Y,I,L,l),this.options._configuredOptions=s.handleOptions(Y._configuredOptions,I,L),this.client.configure(this.options,R),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this},b.configure=function(I,R){if(w)return w.configure(I,R);S()},b.prototype.lastError=function(){return this.client.lastError},b.lastError=function(){if(w)return w.lastError();S()},b.prototype.log=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.log(I),{uuid:R}},b.log=function(){if(w)return w.log.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.debug=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.debug(I),{uuid:R}},b.debug=function(){if(w)return w.debug.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.info=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.info(I),{uuid:R}},b.info=function(){if(w)return w.info.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.warn=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warn(I),{uuid:R}},b.warn=function(){if(w)return w.warn.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.warning=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warning(I),{uuid:R}},b.warning=function(){if(w)return w.warning.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.error=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.error(I),{uuid:R}},b.error=function(){if(w)return w.error.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.critical=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.critical(I),{uuid:R}},b.critical=function(){if(w)return w.critical.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.buildJsonPayload=function(I){return this.client.buildJsonPayload(I)},b.buildJsonPayload=function(){if(w)return w.buildJsonPayload.apply(w,arguments);S()},b.prototype.sendJsonPayload=function(I){return this.client.sendJsonPayload(I)},b.sendJsonPayload=function(){if(w)return w.sendJsonPayload.apply(w,arguments);S()},b.prototype.setupUnhandledCapture=function(){var I=$();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(u.captureUncaughtExceptions(I,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(I,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(u.captureUnhandledRejections(I,this),this.unhandledRejectionsInitialized=!0)},b.prototype.handleUncaughtException=function(I,R,Y,L,D,B){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&D===null&&R==="")return"anonymous";var z,K=s.makeUnhandledStackInfo(I,R,Y,L,D,"onerror","uncaught exception",y);s.isError(D)?(z=this._createItem([I,D,B]))._unhandledStackInfo=K:s.isError(R)?(z=this._createItem([I,R,B]))._unhandledStackInfo=K:(z=this._createItem([I,B])).stackInfo=K,z.level=this.options.uncaughtErrorLevel,z._isUncaught=!0,this.client.log(z)}},b.prototype.handleAnonymousErrors=function(){if(this.options.inspectAnonymousErrors&&this.isChrome){var I=this;try{Error.prepareStackTrace=function(R,Y){if(I.options.inspectAnonymousErrors&&I.anonymousErrorsPending){if(I.anonymousErrorsPending-=1,!R)return;R._isAnonymous=!0,I.handleUncaughtException(R.message,null,null,null,R)}return R.stack}}catch(R){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",R)}}},b.prototype.handleUnhandledRejection=function(I,R){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var Y="unhandled rejection was null or undefined!";if(I)if(I.message)Y=I.message;else{var L=s.stringify(I);L.value&&(Y=L.value)}var D,B=I&&I._rollbarContext||R&&R._rollbarContext;s.isError(I)?D=this._createItem([Y,I,B]):(D=this._createItem([Y,I,B])).stackInfo=s.makeUnhandledStackInfo(Y,"",0,0,null,"unhandledrejection","",y),D.level=this.options.uncaughtErrorLevel,D._isUncaught=!0,D._originalArgs=D._originalArgs||[],D._originalArgs.push(R),this.client.log(D)}},b.prototype.wrap=function(I,R,Y){try{var L;if(L=s.isFunction(R)?R:function(){return R||{}},!s.isFunction(I)||I._isWrap)return I;if(!I._rollbar_wrapped&&(I._rollbar_wrapped=function(){Y&&s.isFunction(Y)&&Y.apply(this,arguments);try{return I.apply(this,arguments)}catch(z){var B=z;throw B&&window._rollbarWrappedError!==B&&(s.isType(B,"string")&&(B=new String(B)),B._rollbarContext=L()||{},B._rollbarContext._wrappedSource=I.toString(),window._rollbarWrappedError=B),B}},I._rollbar_wrapped._isWrap=!0,I.hasOwnProperty))for(var D in I)I.hasOwnProperty(D)&&D!=="_rollbar_wrapped"&&(I._rollbar_wrapped[D]=I[D]);return I._rollbar_wrapped}catch{return I}},b.wrap=function(I,R){if(w)return w.wrap(I,R);S()},b.prototype.captureEvent=function(){var I=s.createTelemetryEvent(arguments);return this.client.captureEvent(I.type,I.metadata,I.level)},b.captureEvent=function(){if(w)return w.captureEvent.apply(w,arguments);S()},b.prototype.captureDomContentLoaded=function(I,R){return R||(R=new Date),this.client.captureDomContentLoaded(R)},b.prototype.captureLoad=function(I,R){return R||(R=new Date),this.client.captureLoad(R)},b.prototype.loadFull=function(){l.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")},b.prototype._createItem=function(I){return s.createItem(I,l,this)};var T=a(29),A=a(30),E={version:T.version,scrubFields:A.scrubFields,logLevel:T.logLevel,reportLevel:T.reportLevel,uncaughtErrorLevel:T.uncaughtErrorLevel,endpoint:T.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1};r.exports=b},function(r,i,a){var o=a(11),s=a(13),c=a(14),l=a(0);function u(f,h,m,g,y){this.options=l.merge(f),this.logger=m,u.rateLimiter.configureGlobal(this.options),u.rateLimiter.setPlatformOptions(y,this.options),this.api=h,this.queue=new s(u.rateLimiter,h,m,this.options);var b=this.options.tracer||null;p(b)?(this.tracer=b,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new c(this.queue,this.options),this.telemeter=g,d(f),this.lastError=null,this.lastErrorHash="none"}function d(f){f.stackTraceLimit&&(Error.stackTraceLimit=f.stackTraceLimit)}function p(f){if(!f||!f.scope||typeof f.scope!="function")return!1;var h=f.scope();return!(!h||!h.active||typeof h.active!="function")}u.rateLimiter=new o({maxItems:0,itemsPerMinute:60}),u.prototype.global=function(f){return u.rateLimiter.configureGlobal(f),this},u.prototype.configure=function(f,h){var m=this.options,g={};h&&(g={payload:h}),this.options=l.merge(m,f,g);var y=this.options.tracer||null;return p(y)?(this.tracer=y,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),d(f),this.global(this.options),p(f.tracer)&&(this.tracer=f.tracer),this},u.prototype.log=function(f){var h=this._defaultLogLevel();return this._log(h,f)},u.prototype.debug=function(f){this._log("debug",f)},u.prototype.info=function(f){this._log("info",f)},u.prototype.warn=function(f){this._log("warning",f)},u.prototype.warning=function(f){this._log("warning",f)},u.prototype.error=function(f){this._log("error",f)},u.prototype.critical=function(f){this._log("critical",f)},u.prototype.wait=function(f){this.queue.wait(f)},u.prototype.captureEvent=function(f,h,m){return this.telemeter&&this.telemeter.captureEvent(f,h,m)},u.prototype.captureDomContentLoaded=function(f){return this.telemeter&&this.telemeter.captureDomContentLoaded(f)},u.prototype.captureLoad=function(f){return this.telemeter&&this.telemeter.captureLoad(f)},u.prototype.buildJsonPayload=function(f){return this.api.buildJsonPayload(f)},u.prototype.sendJsonPayload=function(f){this.api.postJsonPayload(f)},u.prototype._log=function(f,h){var m;if(h.callback&&(m=h.callback,delete h.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(h)){if(m){var g=new Error("ignored identical item");g.item=h,m(g)}}else try{this._addTracingInfo(h),h.level=h.level||f,this.telemeter&&this.telemeter._captureRollbarItem(h),h.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(h,m)}catch(y){m&&m(y),this.logger.error(y)}},u.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},u.prototype._sameAsLastError=function(f){if(!f._isUncaught)return!1;var h=function(m){var g=m.message||"",y=(m.err||{}).stack||String(m.err);return g+"::"+y}(f);return this.lastErrorHash===h||(this.lastError=f.err,this.lastErrorHash=h,!1)},u.prototype._addTracingInfo=function(f){if(this.tracer){var h=this.tracer.scope().active();if(function(y){if(!y||!y.context||typeof y.context!="function")return!1;var b=y.context();return!(!b||!b.toSpanId||!b.toTraceId||typeof b.toSpanId!="function"||typeof b.toTraceId!="function")}(h)){h.setTag("rollbar.error_uuid",f.uuid),h.setTag("rollbar.has_error",!0),h.setTag("error",!0),h.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid="+f.uuid),h.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid="+f.uuid);var m=h.context().toSpanId(),g=h.context().toTraceId();f.custom?(f.custom.opentracing_span_id=m,f.custom.opentracing_trace_id=g):f.custom={opentracing_span_id:m,opentracing_trace_id:g}}}},r.exports=u},function(r,i,a){var o=a(0);function s(u){this.startTime=o.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(u)}function c(u,d,p){return!u.ignoreRateLimit&&d>=1&&p>d}function l(u,d,p,f,h,m,g){var y=null;return p&&(p=new Error(p)),p||f||(y=function(b,w,S,k,$){var T,A=w.environment||w.payload&&w.payload.environment;T=$?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.";var E={body:{message:{body:T,extra:{maxItems:S,itemsPerMinute:k}}},language:"javascript",environment:A,notifier:{version:w.notifier&&w.notifier.version||w.version}};return b==="browser"?(E.platform="browser",E.framework="browser-js",E.notifier.name="rollbar-browser-js"):b==="server"?(E.framework=w.framework||"node-js",E.notifier.name=w.notifier.name):b==="react-native"&&(E.framework=w.framework||"react-native",E.notifier.name=w.notifier.name),E}(u,d,h,m,g)),{error:p,shouldSend:f,payload:y}}s.globalSettings={startTime:o.now(),maxItems:void 0,itemsPerMinute:void 0},s.prototype.configureGlobal=function(u){u.startTime!==void 0&&(s.globalSettings.startTime=u.startTime),u.maxItems!==void 0&&(s.globalSettings.maxItems=u.maxItems),u.itemsPerMinute!==void 0&&(s.globalSettings.itemsPerMinute=u.itemsPerMinute)},s.prototype.shouldSend=function(u,d){var p=(d=d||o.now())-this.startTime;(p<0||p>=6e4)&&(this.startTime=d,this.perMinCounter=0);var f=s.globalSettings.maxItems,h=s.globalSettings.itemsPerMinute;if(c(u,f,this.counter))return l(this.platform,this.platformOptions,f+" max items reached",!1);if(c(u,h,this.perMinCounter))return l(this.platform,this.platformOptions,h+" items per minute reached",!1);this.counter++,this.perMinCounter++;var m=!c(u,f,this.counter),g=m;return m=m&&!c(u,h,this.perMinCounter),l(this.platform,this.platformOptions,null,m,f,h,g)},s.prototype.setPlatformOptions=function(u,d){this.platform=u,this.platformOptions=d},r.exports=s},function(r,i,a){var o=Object.prototype.hasOwnProperty,s=Object.prototype.toString,c=function(l){if(!l||s.call(l)!=="[object Object]")return!1;var u,d=o.call(l,"constructor"),p=l.constructor&&l.constructor.prototype&&o.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!p)return!1;for(u in l);return u===void 0||o.call(l,u)};r.exports=function l(){var u,d,p,f,h,m={},g=null,y=arguments.length;for(u=0;u<y;u++)if((g=arguments[u])!=null)for(h in g)d=m[h],m!==(p=g[h])&&(p&&c(p)?(f=d&&c(d)?d:{},m[h]=l(f,p)):p!==void 0&&(m[h]=p));return m}},function(r,i,a){var o=a(0);function s(l,u,d,p){this.rateLimiter=l,this.api=u,this.logger=d,this.options=p,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}s.prototype.configure=function(l){this.api&&this.api.configure(l);var u=this.options;return this.options=o.merge(u,l),this},s.prototype.addPredicate=function(l){return o.isFunction(l)&&this.predicates.push(l),this},s.prototype.addPendingItem=function(l){this.pendingItems.push(l)},s.prototype.removePendingItem=function(l){var u=this.pendingItems.indexOf(l);u!==-1&&this.pendingItems.splice(u,1)},s.prototype.addItem=function(l,u,d,p){u&&o.isFunction(u)||(u=function(){});var f=this._applyPredicates(l);if(f.stop)return this.removePendingItem(p),void u(f.err);if(this._maybeLog(l,d),this.removePendingItem(p),this.options.transmit){this.pendingRequests.push(l);try{this._makeApiRequest(l,function(h,m){this._dequeuePendingRequest(l),u(h,m)}.bind(this))}catch(h){this._dequeuePendingRequest(l),u(h)}}else u(new Error("Transmit disabled"))},s.prototype.wait=function(l){o.isFunction(l)&&(this.waitCallback=l,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(function(){this._maybeCallWait()}.bind(this),500)))},s.prototype._applyPredicates=function(l){for(var u=null,d=0,p=this.predicates.length;d<p;d++)if(!(u=this.predicates[d](l,this.options))||u.err!==void 0)return{stop:!0,err:u.err};return{stop:!1,err:null}},s.prototype._makeApiRequest=function(l,u){var d=this.rateLimiter.shouldSend(l);d.shouldSend?this.api.postItem(l,function(p,f){p?this._maybeRetry(p,l,u):u(p,f)}.bind(this)):d.error?u(d.error):this.api.postItem(d.payload,u)};var c=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];s.prototype._maybeRetry=function(l,u,d){var p=!1;if(this.options.retryInterval){for(var f=0,h=c.length;f<h;f++)if(l.code===c[f]){p=!0;break}p&&o.isFiniteNumber(this.options.maxRetries)&&(u.retries=u.retries?u.retries+1:1,u.retries>this.options.maxRetries&&(p=!1))}p?this._retryApiRequest(u,d):d(l)},s.prototype._retryApiRequest=function(l,u){this.retryQueue.push({item:l,callback:u}),this.retryHandle||(this.retryHandle=setInterval(function(){for(;this.retryQueue.length;){var d=this.retryQueue.shift();this._makeApiRequest(d.item,d.callback)}}.bind(this),this.options.retryInterval))},s.prototype._dequeuePendingRequest=function(l){var u=this.pendingRequests.indexOf(l);u!==-1&&(this.pendingRequests.splice(u,1),this._maybeCallWait())},s.prototype._maybeLog=function(l,u){if(this.logger&&this.options.verbose){var d=u;if(d=(d=d||o.get(l,"body.trace.exception.message"))||o.get(l,"body.trace_chain.0.exception.message"))return void this.logger.error(d);(d=o.get(l,"body.message.body"))&&this.logger.log(d)}},s.prototype._maybeCallWait=function(){return!(!o.isFunction(this.waitCallback)||this.pendingItems.length!==0||this.pendingRequests.length!==0)&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0)},r.exports=s},function(r,i,a){var o=a(0);function s(c,l){this.queue=c,this.options=l,this.transforms=[],this.diagnostic={}}s.prototype.configure=function(c){this.queue&&this.queue.configure(c);var l=this.options;return this.options=o.merge(l,c),this},s.prototype.addTransform=function(c){return o.isFunction(c)&&this.transforms.push(c),this},s.prototype.log=function(c,l){if(l&&o.isFunction(l)||(l=function(){}),!this.options.enabled)return l(new Error("Rollbar is not enabled"));this.queue.addPendingItem(c);var u=c.err;this._applyTransforms(c,function(d,p){if(d)return this.queue.removePendingItem(c),l(d,null);this.queue.addItem(p,l,u,c)}.bind(this))},s.prototype._applyTransforms=function(c,l){var u=-1,d=this.transforms.length,p=this.transforms,f=this.options,h=function(m,g){m?l(m,null):++u!==d?p[u](g,f,h):l(null,g)};h(null,c)},r.exports=s},function(r,i,a){var o=a(0),s=a(16),c={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function l(d,p,f,h,m){this.options=d,this.transport=p,this.url=f,this.truncation=h,this.jsonBackup=m,this.accessToken=d.accessToken,this.transportOptions=u(d,f)}function u(d,p){return s.getTransportFromOptions(d,c,p)}l.prototype.postItem=function(d,p){var f=s.transportOptions(this.transportOptions,"POST"),h=s.buildPayload(this.accessToken,d,this.jsonBackup),m=this;setTimeout(function(){m.transport.post(m.accessToken,f,h,p)},0)},l.prototype.buildJsonPayload=function(d,p){var f,h=s.buildPayload(this.accessToken,d,this.jsonBackup);return(f=this.truncation?this.truncation.truncate(h):o.stringify(h)).error?(p&&p(f.error),null):f.value},l.prototype.postJsonPayload=function(d,p){var f=s.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,f,d,p)},l.prototype.configure=function(d){var p=this.oldOptions;return this.options=o.merge(p,d),this.transportOptions=u(this.options,this.url),this.options.accessToken!==void 0&&(this.accessToken=this.options.accessToken),this},r.exports=l},function(r,i,a){var o=a(0);r.exports={buildPayload:function(s,c,l){if(!o.isType(c.context,"string")){var u=o.stringify(c.context,l);u.error?c.context="Error: could not serialize 'context'":c.context=u.value||"",c.context.length>255&&(c.context=c.context.substr(0,255))}return{access_token:s,data:c}},getTransportFromOptions:function(s,c,l){var u=c.hostname,d=c.protocol,p=c.port,f=c.path,h=c.search,m=s.timeout,g=function(w){var S=typeof window<"u"&&window||typeof self<"u"&&self,k=w.defaultTransport||"xhr";return S.fetch===void 0&&(k="xhr"),S.XMLHttpRequest===void 0&&(k="fetch"),k}(s),y=s.proxy;if(s.endpoint){var b=l.parse(s.endpoint);u=b.hostname,d=b.protocol,p=b.port,f=b.pathname,h=b.search}return{timeout:m,hostname:u,protocol:d,port:p,path:f,search:h,proxy:y,transport:g}},transportOptions:function(s,c){var l=s.protocol||"https:",u=s.port||(l==="http:"?80:l==="https:"?443:void 0),d=s.hostname,p=s.path,f=s.timeout,h=s.transport;return s.search&&(p+=s.search),s.proxy&&(p=l+"//"+d+p,d=s.proxy.host||s.proxy.hostname,u=s.proxy.port,l=s.proxy.protocol||l),{timeout:f,protocol:l,hostname:d,path:p,port:u,method:c,transport:h}},appendPathToPath:function(s,c){var l=/\/$/.test(s),u=/^\//.test(c);return l&&u?c=c.substring(1):l||u||(c="/"+c),s+c}}},function(r,i){(function(a){a.console||(a.console={});for(var o,s,c=a.console,l=function(){},u=["memory"],d="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");o=u.pop();)c[o]||(c[o]={});for(;s=d.pop();)c[s]||(c[s]=l)})(typeof window>"u"?this:window)},function(r,i,a){var o={ieVersion:function(){if(typeof document<"u"){for(var s=3,c=document.createElement("div"),l=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++s+"]><i></i><![endif]-->",l[0];);return s>4?s:void 0}}};r.exports=o},function(r,i,a){function o(s,c,l,u){s._rollbarWrappedError&&(u[4]||(u[4]=s._rollbarWrappedError),u[5]||(u[5]=s._rollbarWrappedError._rollbarContext),s._rollbarWrappedError=null);var d=c.handleUncaughtException.apply(c,u);l&&l.apply(s,u),d==="anonymous"&&(c.anonymousErrorsPending+=1)}r.exports={captureUncaughtExceptions:function(s,c,l){if(s){var u;if(typeof c._rollbarOldOnError=="function")u=c._rollbarOldOnError;else if(s.onerror){for(u=s.onerror;u._rollbarOldOnError;)u=u._rollbarOldOnError;c._rollbarOldOnError=u}c.handleAnonymousErrors();var d=function(){var p=Array.prototype.slice.call(arguments,0);o(s,c,u,p)};l&&(d._rollbarOldOnError=u),s.onerror=d}},captureUnhandledRejections:function(s,c,l){if(s){typeof s._rollbarURH=="function"&&s._rollbarURH.belongsToShim&&s.removeEventListener("unhandledrejection",s._rollbarURH);var u=function(d){var p,f,h;try{p=d.reason}catch{p=void 0}try{f=d.promise}catch{f="[unhandledrejection] error getting `promise` from event"}try{h=d.detail,!p&&h&&(p=h.reason,f=h.promise)}catch{}p||(p="[unhandledrejection] error getting `reason` from event"),c&&c.handleUnhandledRejection&&c.handleUnhandledRejection(p,f)};u.belongsToShim=l,s._rollbarURH=u,s.addEventListener("unhandledrejection",u)}}}},function(r,i,a){var o=a(0),s=a(21),c=a(22);function l(u){this.truncation=u}l.prototype.get=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){}),o.addParamsAndAccessTokenToPath(u,d,p);var m=o.formatUrl(d);this._makeZoneRequest(u,m,"GET",null,f,h,d.timeout,d.transport)},l.prototype.post=function(u,d,p,f,h){if(f&&o.isFunction(f)||(f=function(){}),!p)return f(new Error("Cannot send empty request"));var m;if((m=this.truncation?this.truncation.truncate(p):o.stringify(p)).error)return f(m.error);var g=m.value,y=o.formatUrl(d);this._makeZoneRequest(u,y,"POST",g,f,h,d.timeout,d.transport)},l.prototype.postJsonPayload=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){});var m=o.formatUrl(d);this._makeZoneRequest(u,m,"POST",p,f,h,d.timeout,d.transport)},l.prototype._makeZoneRequest=function(){var u=typeof window<"u"&&window||h!==void 0&&h,d=u&&u.Zone&&u.Zone.current,p=Array.prototype.slice.call(arguments);if(d&&d._name==="angular"){var f=d._parent,h=this;f.run(function(){h._makeRequest.apply(void 0,p)})}else this._makeRequest.apply(void 0,p)},l.prototype._makeRequest=function(u,d,p,f,h,m,g,y){if(typeof RollbarProxy<"u")return function(b,w){new RollbarProxy().sendJsonPayload(b,function(S){},function(S){w(new Error(S))})}(f,h);y==="fetch"?s(u,d,p,f,h,g):c(u,d,p,f,h,m,g)},r.exports=l},function(r,i,a){var o=a(1),s=a(0);r.exports=function(c,l,u,d,p,f){var h,m;s.isFiniteNumber(f)&&(h=new AbortController,m=setTimeout(function(){h.abort()},f)),fetch(l,{method:u,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":c,signal:h&&h.signal},body:d}).then(function(g){return m&&clearTimeout(m),g.json()}).then(function(g){p(null,g)}).catch(function(g){o.error(g.message),p(g)})}},function(r,i,a){var o=a(0),s=a(1);function c(l,u){var d=new Error(l);return d.code=u||"ENOTFOUND",d}r.exports=function(l,u,d,p,f,h,m){var g;if(!(g=h?h():function(){var w,S,k=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],$=k.length;for(S=0;S<$;S++)try{w=k[S]();break}catch{}return w}()))return f(new Error("No way to send a request"));try{try{var y=function(){try{if(y&&g.readyState===4){y=void 0;var w=o.jsonParse(g.responseText);if(($=g)&&$.status&&$.status===200)return void f(w.error,w.value);if(function(T){return T&&o.isType(T.status,"number")&&T.status>=400&&T.status<600}(g)){if(g.status===403){var S=w.value&&w.value.message;s.error(S)}f(new Error(String(g.status)))}else f(c("XHR response had no status code (likely connection failure)"))}}catch(T){var k;k=T&&T.stack?T:new Error(T),f(k)}var $};g.open(d,u,!0),g.setRequestHeader&&(g.setRequestHeader("Content-Type","application/json"),g.setRequestHeader("X-Rollbar-Access-Token",l)),o.isFiniteNumber(m)&&(g.timeout=m),g.onreadystatechange=y,g.send(p)}catch{if(typeof XDomainRequest<"u"){if(!window||!window.location)return f(new Error("No window available during request, unknown environment"));window.location.href.substring(0,5)==="http:"&&u.substring(0,5)==="https"&&(u="http"+u.substring(5));var b=new XDomainRequest;b.onprogress=function(){},b.ontimeout=function(){f(c("Request timed out","ETIMEDOUT"))},b.onerror=function(){f(new Error("Error during request"))},b.onload=function(){var S=o.jsonParse(b.responseText);f(S.error,S.value)},b.open(d,u,!0),b.send(p)}else f(new Error("Cannot find a method to transport a request"))}}catch(w){f(w)}}},function(r,i,a){var o=a(0),s=a(3),c=a(1);function l(f,h,m){var g=f.message,y=f.custom;g||(g="Item sent with null or missing arguments.");var b={body:g};y&&(b.extra=o.merge(y)),o.set(f,"data.body",{message:b}),m(null,f)}function u(f){var h=f.stackInfo.stack;return h&&h.length===0&&f._unhandledStackInfo&&f._unhandledStackInfo.stack&&(h=f._unhandledStackInfo.stack),h}function d(f,h,m){var g=f&&f.data.description,y=f&&f.custom,b=u(f),w=s.guessErrorClass(h.message),S={exception:{class:p(h,w[0],m),message:w[1]}};if(g&&(S.exception.description=g),b){var k,$,T,A,E,I,R,Y;for(b.length===0&&(S.exception.stack=h.rawStack,S.exception.raw=String(h.rawException)),S.frames=[],R=0;R<b.length;++R)$={filename:(k=b[R]).url?o.sanitizeUrl(k.url):"(unknown)",lineno:k.line||null,method:k.func&&k.func!=="?"?k.func:"[anonymous]",colno:k.column},m.sendFrameUrl&&($.url=k.url),$.method&&$.method.endsWith&&$.method.endsWith("_rollbar_wrapped")||(T=A=E=null,(I=k.context?k.context.length:0)&&(Y=Math.floor(I/2),A=k.context.slice(0,Y),T=k.context[Y],E=k.context.slice(Y)),T&&($.code=T),(A||E)&&($.context={},A&&A.length&&($.context.pre=A),E&&E.length&&($.context.post=E)),k.args&&($.args=k.args),S.frames.push($));S.frames.reverse(),y&&(S.extra=o.merge(y))}return S}function p(f,h,m){return f.name?f.name:m.guessErrorClass?h:"(unknown)"}r.exports={handleDomException:function(f,h,m){if(f.err&&s.Stack(f.err).name==="DOMException"){var g=new Error;g.name=f.err.name,g.message=f.err.message,g.stack=f.err.stack,g.nested=f.err,f.err=g}m(null,f)},handleItemWithError:function(f,h,m){if(f.data=f.data||{},f.err)try{f.stackInfo=f.err._savedStackTrace||s.parse(f.err,f.skipFrames),h.addErrorContext&&function(g){var y=[],b=g.err;for(y.push(b);b.nested||b.cause;)b=b.nested||b.cause,y.push(b);o.addErrorContext(g,y)}(f)}catch(g){c.error("Error while parsing the error object.",g);try{f.message=f.err.message||f.err.description||f.message||String(f.err)}catch(y){f.message=String(f.err)||String(y)}delete f.err}m(null,f)},ensureItemHasSomethingToSay:function(f,h,m){f.message||f.stackInfo||f.custom||m(new Error("No message, stack info, or custom data"),null),m(null,f)},addBaseInfo:function(f,h,m){var g=h.payload&&h.payload.environment||h.environment;f.data=o.merge(f.data,{environment:g,level:f.level,endpoint:h.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:f.uuid,notifier:{name:"rollbar-browser-js",version:h.version},custom:f.custom}),m(null,f)},addRequestInfo:function(f){return function(h,m,g){var y={};f&&f.location&&(y.url=f.location.href,y.query_string=f.location.search);var b="$remote_ip";m.captureIp?m.captureIp!==!0&&(b+="_anonymize"):b=null,b&&(y.user_ip=b),Object.keys(y).length>0&&o.set(h,"data.request",y),g(null,h)}},addClientInfo:function(f){return function(h,m,g){if(!f)return g(null,h);var y=f.navigator||{},b=f.screen||{};o.set(h,"data.client",{runtime_ms:h.timestamp-f._rollbarStartTime,timestamp:Math.round(h.timestamp/1e3),javascript:{browser:y.userAgent,language:y.language,cookie_enabled:y.cookieEnabled,screen:{width:b.width,height:b.height}}}),g(null,h)}},addPluginInfo:function(f){return function(h,m,g){if(!f||!f.navigator)return g(null,h);for(var y,b=[],w=f.navigator.plugins||[],S=0,k=w.length;S<k;++S)y=w[S],b.push({name:y.name,description:y.description});o.set(h,"data.client.javascript.plugins",b),g(null,h)}},addBody:function(f,h,m){f.stackInfo?f.stackInfo.traceChain?function(g,y,b){for(var w=g.stackInfo.traceChain,S=[],k=w.length,$=0;$<k;$++){var T=d(g,w[$],y);S.push(T)}o.set(g,"data.body",{trace_chain:S}),b(null,g)}(f,h,m):function(g,y,b){if(u(g)){var w=d(g,g.stackInfo,y);o.set(g,"data.body",{trace:w}),b(null,g)}else{var S=g.stackInfo,k=s.guessErrorClass(S.message),$=p(S,k[0],y),T=k[1];g.message=$+": "+T,l(g,y,b)}}(f,h,m):l(f,h,m)},addScrubber:function(f){return function(h,m,g){if(f){var y=m.scrubFields||[],b=m.scrubPaths||[];h.data=f(h.data,y,b)}g(null,h)}}}},function(r,i,a){var o,s,c;(function(l,u){s=[a(25)],(c=typeof(o=function(d){var p=/(^|@)\S+:\d+/,f=/^\s*at .*(\S+:\d+|\(native\))/m,h=/^(eval@)?(\[native code])?$/;return{parse:function(m){if(m.stacktrace!==void 0||m["opera#sourceloc"]!==void 0)return this.parseOpera(m);if(m.stack&&m.stack.match(f))return this.parseV8OrIE(m);if(m.stack)return this.parseFFOrSafari(m);throw new Error("Cannot parse given Error object")},extractLocation:function(m){if(m.indexOf(":")===-1)return[m];var g=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(m.replace(/[()]/g,""));return[g[1],g[2]||void 0,g[3]||void 0]},parseV8OrIE:function(m){return m.stack.split(`
|
|
436
|
+
`))}add(r){return this.payload={...this.payload,...r},this}getPayload(){return this.payload}setErrorCodeFromResponse(){const{data:r,status:i}=this.getPayload().axios||{};if(!r&&!i)return;const{errorCode:a}=r||{};a&&this.add({code:a}),i&&(this.httpStatusCode=i)}setMessageFromResponse(){const{data:r}=this.getPayload().axios||{};if(!r)return!1;const{message:i}=r||{};return i?(this.message=i,!0):!1}}class PR extends Jm{constructor(t){if(super(t),this.name="NotFoundError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse()}}class IR extends Jm{constructor(t){if(super(t),this.name="ForbiddenError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class RR extends Jm{constructor(t){if(super(t),this.name="ValidationError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class LR extends Jm{constructor(t){if(super(t),this.name="NetworkError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{config:r}=t;this.add({axios:r}),this.code="ECONNREFUSED"}}class Js extends Jm{constructor(t){if(super(t),this.name="GeneralError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}const NR=Object.freeze(Object.defineProperty({__proto__:null,ForbiddenError:IR,GeneralError:Js,NetworkError:LR,NotFoundError:PR,ValidationError:RR},Symbol.toStringTag,{value:"Module"})),wCe=n=>{const t=Object.keys(n);let r="";return t.forEach(i=>{const a=typeof n[i]=="object",o=a&&n[i].length>=0;a||(r+=`${i}=${n[i]}&`),a&&o&&n[i].forEach(s=>{r+=`${i}=${s}&`})}),r&&r.slice(0,-1)},FR=n=>{Q3.push(n)},xCe=n=>{Q3.map(t=>t(n))};function BR(){console.error("User should be logged out!!"),wt.removeItem("token"),wt.removeItem("tokenExpires"),wt.removeItem("refreshToken"),Pr.trigger("user:unauthorized",{error})}let Xm=!1,Q3=[];const CCe=(n,{renewToken:t})=>{n.interceptors.request.use(r=>{const i=r;if(i.url.includes("/auth")||i.url.startsWith("/public/"))return i;const a=i.headers["X-TOKEN"];if(!a)return i;const o=wt.getItem("tokenExpires");if(a&&o){const s=new Date;s.setSeconds(s.getSeconds()+30);const c=new Date(o);if(s>c)return t(),new Promise(u=>{FR(d=>{i.headers["X-TOKEN"]=d,u(i)})})}return i},r=>Promise.reject(r))},kCe=(n,{renewToken:t})=>{n.interceptors.response.use(r=>r,r=>{if(!r||!r.response)return Promise.reject(r);const{config:i,response:a}=r,{status:o,data:s}=a,{errorCode:c}=s,l=i;if(l.url.startsWith("/public/"))return Promise.reject(r);function u(){if(c===8001)return!0;const d=wt.getItem("tokenExpires");if(d){const p=new Date,f=new Date(d);return p>f}return!1}if(o===401&&l.headers["X-TOKEN"]&&u()&&!Xm)return t(),new Promise(p=>{FR(f=>{l.headers["X-TOKEN"]=f,p(ni(l))})});if(o===401&&typeof c>"u"){if(l.url.includes("auth/companyUser")&&!l.headers["X-TOKEN"])return Promise.reject(r);if(l.url.includes("auth/actionlink")&&!l.headers["X-TOKEN"])return Promise.reject(r);BR()}return Promise.reject(r)})},jR=n=>(E0(n.data),n),SCe=n=>{n.interceptors.response.use(jR,t=>{const{response:r,config:i}=t;if(!r)throw new LR(t);if(Object.prototype.hasOwnProperty.call(i,"errorHandle")&&i.errorHandle===!1)return Promise.reject(t);const{status:a}=r;switch(a){case 404:throw new PR(t);case 401:throw new IR(t);case 412:throw new RR(t);default:throw new Js(t)}})},TCe=n=>{n.interceptors.response.use(t=>{var r,i;if((i=(r=t.config)==null?void 0:r.url)!=null&&i.includes("document")&&t.config.method==="post"){const a=JSON.parse(t.config.data);a.__tempId&&(t.data.__tempId=a.__tempId)}return t},t=>Promise.reject(t))},ECe=n=>{n.interceptors.request.use(t=>{if(["post","put"].includes(t.method)&&t.data&&!(t.data instanceof FormData)){const r=Zs(t.data);Q4(r),t.data=r}return t},t=>Promise.reject(t))},$Ce=({baseUrl:n,withCredentials:t,cache:r})=>{const i=ni.create({baseURL:n,timeout:2e4,adapter:r,withCredentials:t,paramsSerializer:p=>wCe(p)});i.defaults.headers["X-CLIENT"]="widget",i.defaults.headers["X-CLIENT-VERSION"]="0.9.27";const a=async(p,f,h=null,m={})=>{const g=f.startsWith("/public/"),y=wt.getItem("token");switch(y&&!g&&(i.defaults.headers["X-TOKEN"]=y),p){case"get":return i.get(f,m);case"post":return i.post(f,h,m);case"put":return i.put(f,h,m);case"delete":return i.delete(f,m);case"patch":return i.patch(f,h,m);default:throw new Error(`SendRequest failed as method: '${p}' is not implemented`)}},o=(p,f={})=>a("get",p,null,f),s=(p,f={},h={})=>a("put",p,f,h),c=(p,f,h={})=>a("post",p,f,h),l=(p,f={})=>a("delete",p,null,f),u=(p,f={})=>a("patch",p,null,f),d=async()=>{if(!Xm)try{Xm=!0;const p=wt.getItem("refreshToken"),f=await c("/auth/companyUser",{refreshToken:p});if(!f.data||!f.data.token)throw new Error("No token was defined in result");const{token:h,tokenExpires:m,refreshToken:g}=f.data;wt.setItem("token",h),wt.setItem("tokenExpires",m),g&&wt.setItem("refreshToken",g),Xm=!1,xCe(h),Q3=[]}catch(p){return console.error(p),BR()}finally{Xm=!1}};return CCe(i,{renewToken:d}),kCe(i,{renewToken:d}),jR(i),SCe(i),ECe(i),TCe(i),{instance:i,get:o,put:s,post:c,del:l,patch:u,renewToken:d}},eC=new Map;function ACe(n){if(typeof n>"u")throw new Error("Missing valid parameter url");if(typeof n!="string")throw new Error("Parameter url must be a string");const{data:t,cachedAt:r,expiresAt:i}=eC.get(n)||{};return Date.now()>r+6e4*30||i&&Date.now()>i?(eC.delete(n),null):t}const OCe=async n=>{const{url:t,params:r={}}=n,i=Object.keys(r).map(s=>`${s}=${r[s]}`).join("&"),a=`${t}${i?`?${i}`:""}`;return ACe(a),await ni({...n,adapter:ni.defaults.adapter})},Ou={withCredentials:!0,baseUrl:Xe.api.baseUrl},{get:bt,post:Yt,put:Ir,patch:ts,del:Yi,instance:oRt,renewToken:DCe}=$Ce({withCredentials:Ou.withCredentials,baseUrl:Ou.baseUrl,cache:OCe});async function zR(n){const t=i0e(n);return bt(`/project${t}`,{saveCache:!0})}const MCe=async(n,t={})=>bt("/project",n,{params:t}),PCe=async(n,t={})=>bt(`/project/${n}`,{params:t,saveCache:!0}),ICe=async(n,t,r={})=>Ir(`/project/${n}`,t,{params:r,invalidateCache:{type:"project",id:n}}),RCe=async n=>ts(`/project/${n}`),LCe=async(n,t={})=>Yi(`/project/${n}`,{params:t,invalidateCache:{type:"project",id:n}}),NCe=async()=>bt("/project/createDemo"),FCe=()=>bt("/"),BCe=async(n,t={})=>Yt("/auth/actionlink",{token:n,...t}),jCe=async n=>Yt("/register",n),zCe=async(n,t)=>Yt("/companyUser/forgottenPassword/new",{password:n,resetPasswordToken:t}),VCe=async n=>Yt("/public/consent",n),UCe=async n=>bt(`/projectFile/${n}`),HCe=async n=>Yt("/projectFile",n),WCe=async(n,t)=>Ir(`/projectFile/${n}`,t),GCe=async n=>Yi(`/projectFile/${n}`),qCe=async n=>ts(`/projectFile/${n}`),YCe=async(n,t={})=>bt(`/projectNote/${n}`,{params:t}),KCe=async(n,t={})=>Yt("/projectNote",n,{params:t}),ZCe=async(n,t,r={})=>Ir(`/projectNote/${n}`,t,{params:r}),JCe=async n=>bt(`/file/${n}`),VR=async n=>Yt("/file",n),XCe=async(n,t)=>Ir(`/file/${n}`,t),QCe=async n=>Yi(`/file/${n}`),eke=async n=>ts(`/file/${n}`),tke=async(n={})=>bt("/article",{params:n}),nke=async n=>bt(`/article/${n}`),rke=async n=>Yt("/article",n),ike=async(n,t)=>Ir(`/article/${n}`,t),ake=async n=>Yi(`/article/${n}`),oke=async n=>ts(`/article/${n}`),ske=async n=>Yt("/search",{type:"article",query:n}),Qm={get:async(n,t={})=>bt(n?`/unitType/${n}`:"/unitType",{params:t,saveCache:!0}),post:async(n,t={})=>Yt("/unitType",n,{params:t}),put:async(n,t,r={})=>Ir(`/unitType/${n}`,t,{params:r,invalidateCache:{type:"unitType",id:n}}),delete:async(n,t={})=>Yi(`/unitType/${n}`,{params:t,invalidateCache:{type:"unitType",id:n}})},lke=async(n={})=>bt("/templateMessage",{params:n,saveCache:!0}),cke=async(n,t={})=>bt(`/templateMessage/${n}`,{params:t,saveCache:!0}),uke=async(n,t={})=>Yt("/templateMessage",n,{params:t}),dke=async(n,t,r={})=>Ir(`/templateMessage/${n}`,t,{params:r,invalidateCache:{type:"templateMessage",id:n}}),pke=async(n,t={})=>Yi(`/templateMessage/${n}`,{params:t,invalidateCache:{type:"templateMessage",id:n}}),fke=async(n,t={})=>ts(`/templateMessage/${n}`,{params:t}),hke=async(n={})=>bt("/endCustomer",{params:n}),mke=async(n,t={})=>bt(`/endCustomer/${n}`,{params:t}),gke=async(n,t={})=>Yt("/endCustomer",n,{params:t}),vke=async(n,t,r={})=>Ir(`/endCustomer/${n}`,t,{params:r}),yke=async(n,t={})=>Yi(`/endCustomer/${n}`,{params:t}),bke=async(n,t={})=>ts(`/endCustomer/${n}`,{params:t}),_ke=async n=>Yt("/search",{type:"endCustomer",query:n}),wke=async(n={})=>bt("/companyUser",{params:n,saveCache:!0}),xke=async(n,t={})=>bt(`/companyUser/${n}`,{params:t,saveCache:!0}),Cke=async(n,t={})=>Yt("/companyUser",n,{params:t}),kke=async(n,t,r={})=>Ir(`/companyUser/${n}`,t,{params:r,invalidateCache:{type:"companyUser",id:n}}),Ske=async(n,t={})=>Yi(`/companyUser/${n}`,{params:t,invalidateCache:{type:"companyUser",id:n}}),Tke=async(n,t={})=>ts(`/companyUser/${n}`,{params:t}),UR={getPublic:async(n,t={})=>bt(`/public/companyUser/${n}`,{params:t}),getConnectedUsers:async(n={})=>bt("/companyUser/self/connectedUsers",{params:n}),getConnectedUserAuth:async(n,t={})=>bt(`/companyUser/self/connectedUsers/${n}/auth`,{params:t}),setConnectedUserDefault:async(n,t={})=>Ir(`/companyUser/self/connectedUsers/${n}/setDefaultAuth`,{params:t}),verifyEmail:async(n,t={})=>Yt("/public/verifyEmail/companyUser",n,{params:t})},Eke=async(n,t=null,r={})=>Ir(`/companyAccount/accountType/${n}`,t,{params:r}),$ke=async(n={})=>bt("/companyAccount/getNumberOfManagers",{params:n}),Ake=async(n={})=>Yt("/companyAccount/addUserLicenseInvoice",{},{params:n}),Oke=async(n,t={})=>bt(`/promotionCode/${n}/canUse`,{params:t}),Dke=async(n,t={})=>bt("/promotionCode/inUse",{params:t}),uy={product:async(n,t={})=>Yt("/companyAccount/product",n,{params:t}),cancelAll:async(n={})=>Yi("/companyAccount/subscription",{params:n}),getPrices:async(n={})=>bt("/companyAccount/price",{params:n}),getUpcomingInvoices:async(n={})=>bt("/companyAccount/upcomingInvoice",{params:n}),getPaymentHistory:async(n={})=>bt("/companyAccount/paymentHistory",{params:n}),putPaymentMethod:async(n,t={})=>Ir("/companyAccount/paymentMethod",n,{params:t}),putCustomer:async(n,t={})=>Ir("/companyAccount/customer",n,{params:t}),createCheckoutSession:async(n,t={})=>Yt("/companyAccount/create-checkout-session",n,{params:t})},Mke=async(n,t)=>Yt(`/project/${n}/projectMember/${t}`,null,{invalidateCache:{type:"project",id:n}}),Pke=async(n,t)=>Yi(`/project/${n}/projectMember/${t}`,{invalidateCache:{type:"project",id:n}}),Ike=async(n={})=>bt("/companyInvoiceSetting",{params:n}),Rke=async(n,t={})=>Ir("/companyInvoiceSetting",n,{params:t}),Lke={get:async(n={})=>bt("/companyKYC",{params:n}),post:async(n,t={})=>Yt("/companyKYC",n,{params:t}),sign:async(n,t={})=>Yt("/companyKYC/sign",n,{params:t})},Ki={get:async(n,t={})=>bt(`/document/${n}`,{params:t,saveCache:!0}),getAll:async(n={})=>bt("/document",{params:n,saveCache:!0}),post:async(n,t={})=>Yt("/document",n,{params:t}),send:async(n,t={},r={})=>Yt(`/document/${n}/send`,t,{params:r,invalidateCache:{type:"document",id:n}}),clearAnswers:async(n,t={},r={})=>Yt(`/document/${n}/clearAnswers`,t,{params:r,invalidateCache:{type:"document",id:n}}),put:async(n,t,r={})=>Ir(`/document/${n}`,t,{params:r,invalidateCache:{type:"document",id:n}}),delete:async(n,t={})=>Yi(`/document/${n}`,{params:t,invalidateCache:{type:"document",id:n}}),patch:async(n,t={})=>ts(`/document/${n}`,{params:t}),validate:async(n,t={})=>Yt("/documentValidate",n,{params:t})},Du={get:async(n,t={})=>bt(n?`/template/${n}`:"/template",{params:t}),post:async(n,t={})=>Yt("/template",n,{params:t}),put:async(n,t,r={})=>Ir(`/template/${n}`,t,{params:r}),delete:async(n,t={})=>Yi(`/template/${n}`,{params:t}),patch:async(n,t={})=>ts(`/template/${n}`,{params:t})},Nke={get:async(n={})=>bt("/templateGallery",{params:n})},Fke={get:async(n,t={})=>bt(`/public/templateStat/${n}`,{params:t})},Hp={get:async(n,t={})=>bt(`/public/document/${n}`,{params:t}),put:async(n,t,r={})=>Ir(`/public/document/${n}`,t,{headers:r}),answer:async(n,t,r={},i={})=>Yt(`/public/document/${n}/answer`,t,{params:r,headers:i}),feedback:async(n,t,r={})=>Yt(`/public/document/${n}/feedback`,t,{params:r})},HR={get:async(n,t={})=>bt(`/public/pdfJob/${n}`,{params:t}),addDocument:async(n,t={})=>bt(`/public/document/${n}/pdfJob/start`,{params:t})},tC={getDocuments:async(n={})=>{const t=wt.getItem("clientToken");return ni.get(`${Ou.baseUrl}/client/document`,{headers:{Authorization:t},params:n})},getInvoices:async(n={})=>{const t=wt.getItem("clientToken");return ni.get(`${Ou.baseUrl}/client/invoice`,{headers:{Authorization:t},params:n})},requestMagicLink:async(n,t={})=>ni.post(`${Ou.baseUrl}/client/requestMagicLink`,n,{params:t})},dy={get:async(n,t={})=>bt(`/public/company/${n}`,{params:t}),getCertificates:async(n,t={})=>bt(`/public/company/${n}/certificates`,{params:t}),getReferences:async(n,t={})=>bt(`/public/company/${n}/references`,{params:t})},Bke={get:async(n,t={})=>bt(`${Ou.baseUrl}/public/signature/${n}`,{params:t})},WR={post:async(n,t={})=>Yt("/voucher",n,{params:t}),canUse:async(n,t={})=>bt(`/voucher/${n}/canUse`,{params:t})},nc={getAuthUrl:async(n,t={})=>bt("/extension/authUrl",{params:{...t,service:n}}),getPublicAuthUrl:async(n,t={})=>bt("/public/extension/authUrl",{params:{...t,service:n}}),install:async(n,t,r={})=>Yt("/extension/install",t,{params:{...r,service:n}}),uninstall:async(n,t={})=>Yi("/extension/uninstall",{params:{...t,service:n}}),suggestClients:async(n,t={})=>bt("/extension/suggestClients",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),signupWithCrm:async(n,t,r={})=>Yt("/public/extension/register",t,{params:{...r,service:n}}),search:async(n,t={})=>bt("/extension/search",{params:{...t,service:n},saveCache:!0,cacheTtl:10}),getFields:async(n,t={})=>bt("/extension/fields",{params:{...t,service:n},saveCache:!0,cacheTtl:60}),getExternalReferenceDetails:async(n,t={})=>bt("/extension/externalReferenceDetails",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),settings:async(n,t={})=>bt("/extension/settings",{params:{...t,service:n}})},ri={get:bt,post:Yt,put:Ir,del:Yi,patch:ts,authData:Ou,getProjects:zR};var GR={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(Vt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,function(u){return o[u]}.bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=6)}([function(r,i,a){var o=a(12),s={};function c($,T){return T===l($)}function l($){var T=typeof $;return T!=="object"?T:$?$ instanceof Error?"error":{}.toString.call($).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function u($){return c($,"function")}function d($){var T=Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),A=RegExp("^"+T+"$");return p($)&&A.test($)}function p($){var T=typeof $;return $!=null&&(T=="object"||T=="function")}function f(){var $=k();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(T){var A=($+16*Math.random())%16|0;return $=Math.floor($/16),(T==="x"?A:7&A|8).toString(16)})}var h={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function m($,T){var A,E;try{A=s.stringify($)}catch(I){if(T&&u(T))try{A=T($)}catch(R){E=R}else E=I}return{error:E,value:A}}function g($,T){return function(A,E){try{T(A,E)}catch(I){$.error(I)}}}function y($){return function T(A,E){var I,R,Y,L={};try{for(R in A)(I=A[R])&&(c(I,"object")||c(I,"array"))?E.includes(I)?L[R]="Removed circular reference: "+l(I):((Y=E.slice()).push(I),L[R]=T(I,Y)):L[R]=I}catch(D){L="Failed cloning custom data: "+D.message}return L}($,[$])}var b=["log","network","dom","navigation","error","manual"],w=["critical","error","warning","info","debug"];function S($,T){for(var A=0;A<$.length;++A)if($[A]===T)return!0;return!1}function k(){return Date.now?+Date.now():+new Date}r.exports={addParamsAndAccessTokenToPath:function($,T,A){(A=A||{}).access_token=$;var E,I=[];for(E in A)Object.prototype.hasOwnProperty.call(A,E)&&I.push([E,A[E]].join("="));var R="?"+I.sort().join("&");(T=T||{}).path=T.path||"";var Y,L=T.path.indexOf("?"),D=T.path.indexOf("#");L!==-1&&(D===-1||D>L)?(Y=T.path,T.path=Y.substring(0,L)+R+"&"+Y.substring(L+1)):D!==-1?(Y=T.path,T.path=Y.substring(0,D)+R+Y.substring(D)):T.path=T.path+R},createItem:function($,T,A,E,I){for(var R,Y,L,D,B,z,K=[],te=[],j=0,M=$.length;j<M;++j){var q=l(z=$[j]);switch(te.push(q),q){case"undefined":break;case"string":R?K.push(z):R=z;break;case"function":D=g(T,z);break;case"date":K.push(z);break;case"error":case"domexception":case"exception":Y?K.push(z):Y=z;break;case"object":case"array":if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}if(E&&q==="object"&&!B){for(var G=0,ee=E.length;G<ee;++G)if(z[E[G]]!==void 0){B=z;break}if(B)break}L?K.push(z):L=z;break;default:if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}K.push(z)}}L&&(L=y(L)),K.length>0&&(L||(L=y({})),L.extraArgs=y(K));var ae={message:R,err:Y,custom:L,timestamp:k(),callback:D,notifier:A,diagnostic:{},uuid:f()};return function(ve,ye){ye&&ye.level!==void 0&&(ve.level=ye.level,delete ye.level),ye&&ye.skipFrames!==void 0&&(ve.skipFrames=ye.skipFrames,delete ye.skipFrames)}(ae,L),E&&B&&(ae.request=B),I&&(ae.lambdaContext=I),ae._originalArgs=$,ae.diagnostic.original_arg_types=te,ae},addErrorContext:function($,T){var A=$.data.custom||{},E=!1;try{for(var I=0;I<T.length;++I)T[I].hasOwnProperty("rollbarContext")&&(A=o(A,y(T[I].rollbarContext)),E=!0);E&&($.data.custom=A)}catch(R){$.diagnostic.error_context="Failed: "+R.message}},createTelemetryEvent:function($){for(var T,A,E,I,R=0,Y=$.length;R<Y;++R)switch(l(I=$[R])){case"string":!T&&S(b,I)?T=I:!E&&S(w,I)&&(E=I);break;case"object":A=I}return{type:T||"manual",metadata:A||{},level:E}},filterIp:function($,T){if($&&$.user_ip&&T!==!0){var A=$.user_ip;if(T)try{var E;if(A.indexOf(".")!==-1)(E=A.split(".")).pop(),E.push("0"),A=E.join(".");else if(A.indexOf(":")!==-1){if((E=A.split(":")).length>2){var I=E.slice(0,3),R=I[2].indexOf("/");R!==-1&&(I[2]=I[2].substring(0,R)),A=I.concat("0000:0000:0000:0000:0000").join(":")}}else A=null}catch{A=null}else A=null;$.user_ip=A}},formatArgsAsString:function($){var T,A,E,I=[];for(T=0,A=$.length;T<A;++T){switch(l(E=$[T])){case"object":(E=(E=m(E)).error||E.value).length>500&&(E=E.substr(0,497)+"...");break;case"null":E="null";break;case"undefined":E="undefined";break;case"symbol":E=E.toString()}I.push(E)}return I.join(" ")},formatUrl:function($,T){if(!(T=T||$.protocol)&&$.port&&($.port===80?T="http:":$.port===443&&(T="https:")),T=T||"https:",!$.hostname)return null;var A=T+"//"+$.hostname;return $.port&&(A=A+":"+$.port),$.path&&(A+=$.path),A},get:function($,T){if($){var A=T.split("."),E=$;try{for(var I=0,R=A.length;I<R;++I)E=E[A[I]]}catch{E=void 0}return E}},handleOptions:function($,T,A,E){var I=o($,T,A);return I=function(R,Y){return R.hostWhiteList&&!R.hostSafeList&&(R.hostSafeList=R.hostWhiteList,R.hostWhiteList=void 0,Y&&Y.log("hostWhiteList is deprecated. Use hostSafeList.")),R.hostBlackList&&!R.hostBlockList&&(R.hostBlockList=R.hostBlackList,R.hostBlackList=void 0,Y&&Y.log("hostBlackList is deprecated. Use hostBlockList.")),R}(I,E),!T||T.overwriteScrubFields||T.scrubFields&&(I.scrubFields=($.scrubFields||[]).concat(T.scrubFields)),I},isError:function($){return c($,"error")||c($,"exception")},isFiniteNumber:function($){return Number.isFinite($)},isFunction:u,isIterable:function($){var T=l($);return T==="object"||T==="array"},isNativeFunction:d,isObject:p,isString:function($){return typeof $=="string"||$ instanceof String},isType:c,isPromise:function($){return p($)&&c($.then,"function")},jsonParse:function($){var T,A;try{T=s.parse($)}catch(E){A=E}return{error:A,value:T}},LEVELS:{debug:0,info:1,warning:2,error:3,critical:4},makeUnhandledStackInfo:function($,T,A,E,I,R,Y,L){var D={url:T||"",line:A,column:E};D.func=L.guessFunctionName(D.url,D.line),D.context=L.gatherContext(D.url,D.line);var B=typeof document<"u"&&document&&document.location&&document.location.href,z=typeof window<"u"&&window&&window.navigator&&window.navigator.userAgent;return{mode:R,message:I?String(I):$||Y,url:B,stack:[D],useragent:z}},merge:o,now:k,redact:function(){return"********"},RollbarJSON:s,sanitizeUrl:function($){var T=function(A){if(c(A,"string")){for(var E=h,I=E.parser[E.strictMode?"strict":"loose"].exec(A),R={},Y=0,L=E.key.length;Y<L;++Y)R[E.key[Y]]=I[Y]||"";return R[E.q.name]={},R[E.key[12]].replace(E.q.parser,function(D,B,z){B&&(R[E.q.name][B]=z)}),R}}($);return T?(T.anchor===""&&(T.source=T.source.replace("#","")),$=T.source.replace("?"+T.query,"")):"(unknown)"},set:function($,T,A){if($){var E=T.split("."),I=E.length;if(!(I<1))if(I!==1)try{for(var R=$[E[0]]||{},Y=R,L=1;L<I-1;++L)R[E[L]]=R[E[L]]||{},R=R[E[L]];R[E[I-1]]=A,$[E[0]]=Y}catch{return}else $[E[0]]=A}},setupJSON:function($){u(s.stringify)&&u(s.parse)||(c(JSON,"undefined")||($?(d(JSON.stringify)&&(s.stringify=JSON.stringify),d(JSON.parse)&&(s.parse=JSON.parse)):(u(JSON.stringify)&&(s.stringify=JSON.stringify),u(JSON.parse)&&(s.parse=JSON.parse))),u(s.stringify)&&u(s.parse)||$&&$(s))},stringify:m,maxByteSize:function($){for(var T=0,A=$.length,E=0;E<A;E++){var I=$.charCodeAt(E);I<128?T+=1:I<2048?T+=2:I<65536&&(T+=3)}return T},typeName:l,uuid4:f}},function(r,i,a){a(17);var o=a(18),s=a(0);r.exports={error:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.error(s.formatArgsAsString(c)):console.error.apply(console,c)},info:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.info(s.formatArgsAsString(c)):console.info.apply(console,c)},log:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.log(s.formatArgsAsString(c)):console.log.apply(console,c)}}},function(r,i,a){r.exports={parse:function(o){var s,c,l={protocol:null,auth:null,host:null,path:null,hash:null,href:o,hostname:null,port:null,pathname:null,search:null,query:null};if((s=o.indexOf("//"))!==-1?(l.protocol=o.substring(0,s),c=s+2):c=0,(s=o.indexOf("@",c))!==-1&&(l.auth=o.substring(c,s),c=s+1),(s=o.indexOf("/",c))===-1){if((s=o.indexOf("?",c))===-1)return(s=o.indexOf("#",c))===-1?l.host=o.substring(c):(l.host=o.substring(c,s),l.hash=o.substring(s)),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),l;l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s}else l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s;if((s=o.indexOf("#",c))===-1?l.path=o.substring(c):(l.path=o.substring(c,s),l.hash=o.substring(s)),l.path){var u=l.path.split("?");l.pathname=u[0],l.query=u[1],l.search=l.query?"?"+l.query:null}return l}}},function(r,i,a){var o=a(24),s=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function c(){return null}function l(p){var f={};return f._stackFrame=p,f.url=p.fileName,f.line=p.lineNumber,f.func=p.functionName,f.column=p.columnNumber,f.args=p.args,f.context=null,f}function u(p,f){return{stack:function(){var h=[];f=f||0;try{h=o.parse(p)}catch{h=[]}for(var m=[],g=f;g<h.length;g++)m.push(new l(h[g]));return m}(),message:p.message,name:d(p),rawStack:p.stack,rawException:p}}function d(p){var f=p.name&&p.name.length&&p.name,h=p.constructor.name&&p.constructor.name.length&&p.constructor.name;return f&&h?f==="Error"?h:f:f||h}r.exports={guessFunctionName:function(){return"?"},guessErrorClass:function(p){if(!p||!p.match)return["Unknown error. There was no error message to display.",""];var f=p.match(s),h="(unknown)";return f&&(h=f[f.length-1],p=(p=p.replace((f[f.length-2]||"")+h+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[h,p]},gatherContext:c,parse:function(p,f){var h=p;if(h.nested||h.cause){for(var m=[];h;)m.push(new u(h,f)),h=h.nested||h.cause,f=0;return m[0].traceChain=m,m[0]}return new u(h,f)},Stack:u,Frame:l}},function(r,i,a){var o=a(0),s=a(5);function c(l,u){var d=u.split("."),p=d.length-1;try{for(var f=0;f<=p;++f)f<p?l=l[d[f]]:l[d[f]]=o.redact()}catch{}}r.exports=function(l,u,d){if(u=u||[],d)for(var p=0;p<d.length;++p)c(l,d[p]);var f=function(g){for(var y,b=[],w=0;w<g.length;++w)y="^\\[?(%5[bB])?"+g[w]+"\\[?(%5[bB])?\\]?(%5[dD])?$",b.push(new RegExp(y,"i"));return b}(u),h=function(g){for(var y,b=[],w=0;w<g.length;++w)y="\\[?(%5[bB])?"+g[w]+"\\[?(%5[bB])?\\]?(%5[dD])?",b.push(new RegExp("("+y+"=)([^&\\n]+)","igm"));return b}(u);function m(g,y){return y+o.redact()}return s(l,function g(y,b,w){var S=function(k,$){var T;for(T=0;T<f.length;++T)if(f[T].test(k)){$=o.redact();break}return $}(y,b);return S===b?o.isType(b,"object")||o.isType(b,"array")?s(b,g,w):function(k){var $;if(o.isType(k,"string"))for($=0;$<h.length;++$)k=k.replace(h[$],m);return k}(S):S})}},function(r,i,a){var o=a(0);r.exports=function(s,c,l){var u,d,p,f,h=o.isType(s,"object"),m=o.isType(s,"array"),g=[];if(l=l||{obj:[],mapped:[]},h){if(f=l.obj.indexOf(s),h&&f!==-1)return l.mapped[f]||l.obj[f];l.obj.push(s),f=l.obj.length-1}if(h)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&g.push(u);else if(m)for(p=0;p<s.length;++p)g.push(p);var y=h?{}:[],b=!0;for(p=0;p<g.length;++p)d=s[u=g[p]],y[u]=c(u,d,l),b=b&&y[u]===s[u];return h&&!b&&(l.mapped[f]=y),b?s:y}},function(r,i,a){r.exports=a(7)},function(r,i,a){var o=a(8),s=typeof window<"u"&&window._rollbarConfig,c=s&&s.globalAlias||"Rollbar",l=typeof window<"u"&&window[c]&&typeof window[c].shimId=="function"&&window[c].shimId()!==void 0;if(typeof window>"u"||window._rollbarStartTime||(window._rollbarStartTime=new Date().getTime()),!l&&s){var u=new o(s);window[c]=u}else typeof window<"u"?(window.rollbar=o,window._rollbarDidLoad=!0):typeof self<"u"&&(self.rollbar=o,self._rollbarDidLoad=!0);r.exports=o},function(r,i,a){var o=a(9),s=a(31),c=a(32),l=a(35),u=a(37),d=a(4),p=a(38);o.setComponents({telemeter:s,instrumenter:c,polyfillJSON:l,wrapGlobals:u,scrub:d,truncation:p}),r.exports=o},function(r,i,a){var o=a(10),s=a(0),c=a(15),l=a(1),u=a(19),d=a(20),p=a(2),f=a(23),h=a(26),m=a(27),g=a(28),y=a(3);function b(I,R){this.options=s.handleOptions(E,I,null,l),this.options._configuredOptions=I;var Y=this.components.telemeter,L=this.components.instrumenter,D=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var B=this.components.truncation,z=new d(B),K=new c(this.options,z,p,B);Y&&(this.telemeter=new Y(this.options)),this.client=R||new o(this.options,K,l,this.telemeter,"browser");var te=$(),j=typeof document<"u"&&document;this.isChrome=te.chrome&&te.chrome.runtime,this.anonymousErrorsPending=0,function(M,q,G){M.addTransform(f.handleDomException).addTransform(f.handleItemWithError).addTransform(f.ensureItemHasSomethingToSay).addTransform(f.addBaseInfo).addTransform(f.addRequestInfo(G)).addTransform(f.addClientInfo(G)).addTransform(f.addPluginInfo(G)).addTransform(f.addBody).addTransform(h.addMessageWithError).addTransform(h.addTelemetryData).addTransform(h.addConfigToPayload).addTransform(f.addScrubber(q.scrub)).addTransform(h.addPayloadOptions).addTransform(h.userTransform(l)).addTransform(h.addConfiguredOptions).addTransform(h.addDiagnosticKeys).addTransform(h.itemToPayload)}(this.client.notifier,this,te),this.client.queue.addPredicate(g.checkLevel).addPredicate(m.checkIgnore).addPredicate(g.userCheckIgnore(l)).addPredicate(g.urlIsNotBlockListed(l)).addPredicate(g.urlIsSafeListed(l)).addPredicate(g.messageIsIgnored(l)),this.setupUnhandledCapture(),L&&(this.instrumenter=new L(this.options,this.client.telemeter,this,te,j),this.instrumenter.instrument()),s.setupJSON(D),this.rollbar=this}var w=null;function S(I){var R="Rollbar is not initialized";l.error(R),I&&I(new Error(R))}function k(I){for(var R=0,Y=I.length;R<Y;++R)if(s.isFunction(I[R]))return I[R]}function $(){return typeof window<"u"&&window||typeof self<"u"&&self}b.init=function(I,R){return w?w.global(I).configure(I):w=new b(I,R)},b.prototype.components={},b.setComponents=function(I){b.prototype.components=I},b.prototype.global=function(I){return this.client.global(I),this},b.global=function(I){if(w)return w.global(I);S()},b.prototype.configure=function(I,R){var Y=this.options,L={};return R&&(L={payload:R}),this.options=s.handleOptions(Y,I,L,l),this.options._configuredOptions=s.handleOptions(Y._configuredOptions,I,L),this.client.configure(this.options,R),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this},b.configure=function(I,R){if(w)return w.configure(I,R);S()},b.prototype.lastError=function(){return this.client.lastError},b.lastError=function(){if(w)return w.lastError();S()},b.prototype.log=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.log(I),{uuid:R}},b.log=function(){if(w)return w.log.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.debug=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.debug(I),{uuid:R}},b.debug=function(){if(w)return w.debug.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.info=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.info(I),{uuid:R}},b.info=function(){if(w)return w.info.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.warn=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warn(I),{uuid:R}},b.warn=function(){if(w)return w.warn.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.warning=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warning(I),{uuid:R}},b.warning=function(){if(w)return w.warning.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.error=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.error(I),{uuid:R}},b.error=function(){if(w)return w.error.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.critical=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.critical(I),{uuid:R}},b.critical=function(){if(w)return w.critical.apply(w,arguments);var I=k(arguments);S(I)},b.prototype.buildJsonPayload=function(I){return this.client.buildJsonPayload(I)},b.buildJsonPayload=function(){if(w)return w.buildJsonPayload.apply(w,arguments);S()},b.prototype.sendJsonPayload=function(I){return this.client.sendJsonPayload(I)},b.sendJsonPayload=function(){if(w)return w.sendJsonPayload.apply(w,arguments);S()},b.prototype.setupUnhandledCapture=function(){var I=$();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(u.captureUncaughtExceptions(I,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(I,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(u.captureUnhandledRejections(I,this),this.unhandledRejectionsInitialized=!0)},b.prototype.handleUncaughtException=function(I,R,Y,L,D,B){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&D===null&&R==="")return"anonymous";var z,K=s.makeUnhandledStackInfo(I,R,Y,L,D,"onerror","uncaught exception",y);s.isError(D)?(z=this._createItem([I,D,B]))._unhandledStackInfo=K:s.isError(R)?(z=this._createItem([I,R,B]))._unhandledStackInfo=K:(z=this._createItem([I,B])).stackInfo=K,z.level=this.options.uncaughtErrorLevel,z._isUncaught=!0,this.client.log(z)}},b.prototype.handleAnonymousErrors=function(){if(this.options.inspectAnonymousErrors&&this.isChrome){var I=this;try{Error.prepareStackTrace=function(R,Y){if(I.options.inspectAnonymousErrors&&I.anonymousErrorsPending){if(I.anonymousErrorsPending-=1,!R)return;R._isAnonymous=!0,I.handleUncaughtException(R.message,null,null,null,R)}return R.stack}}catch(R){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",R)}}},b.prototype.handleUnhandledRejection=function(I,R){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var Y="unhandled rejection was null or undefined!";if(I)if(I.message)Y=I.message;else{var L=s.stringify(I);L.value&&(Y=L.value)}var D,B=I&&I._rollbarContext||R&&R._rollbarContext;s.isError(I)?D=this._createItem([Y,I,B]):(D=this._createItem([Y,I,B])).stackInfo=s.makeUnhandledStackInfo(Y,"",0,0,null,"unhandledrejection","",y),D.level=this.options.uncaughtErrorLevel,D._isUncaught=!0,D._originalArgs=D._originalArgs||[],D._originalArgs.push(R),this.client.log(D)}},b.prototype.wrap=function(I,R,Y){try{var L;if(L=s.isFunction(R)?R:function(){return R||{}},!s.isFunction(I)||I._isWrap)return I;if(!I._rollbar_wrapped&&(I._rollbar_wrapped=function(){Y&&s.isFunction(Y)&&Y.apply(this,arguments);try{return I.apply(this,arguments)}catch(z){var B=z;throw B&&window._rollbarWrappedError!==B&&(s.isType(B,"string")&&(B=new String(B)),B._rollbarContext=L()||{},B._rollbarContext._wrappedSource=I.toString(),window._rollbarWrappedError=B),B}},I._rollbar_wrapped._isWrap=!0,I.hasOwnProperty))for(var D in I)I.hasOwnProperty(D)&&D!=="_rollbar_wrapped"&&(I._rollbar_wrapped[D]=I[D]);return I._rollbar_wrapped}catch{return I}},b.wrap=function(I,R){if(w)return w.wrap(I,R);S()},b.prototype.captureEvent=function(){var I=s.createTelemetryEvent(arguments);return this.client.captureEvent(I.type,I.metadata,I.level)},b.captureEvent=function(){if(w)return w.captureEvent.apply(w,arguments);S()},b.prototype.captureDomContentLoaded=function(I,R){return R||(R=new Date),this.client.captureDomContentLoaded(R)},b.prototype.captureLoad=function(I,R){return R||(R=new Date),this.client.captureLoad(R)},b.prototype.loadFull=function(){l.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")},b.prototype._createItem=function(I){return s.createItem(I,l,this)};var T=a(29),A=a(30),E={version:T.version,scrubFields:A.scrubFields,logLevel:T.logLevel,reportLevel:T.reportLevel,uncaughtErrorLevel:T.uncaughtErrorLevel,endpoint:T.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1};r.exports=b},function(r,i,a){var o=a(11),s=a(13),c=a(14),l=a(0);function u(f,h,m,g,y){this.options=l.merge(f),this.logger=m,u.rateLimiter.configureGlobal(this.options),u.rateLimiter.setPlatformOptions(y,this.options),this.api=h,this.queue=new s(u.rateLimiter,h,m,this.options);var b=this.options.tracer||null;p(b)?(this.tracer=b,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new c(this.queue,this.options),this.telemeter=g,d(f),this.lastError=null,this.lastErrorHash="none"}function d(f){f.stackTraceLimit&&(Error.stackTraceLimit=f.stackTraceLimit)}function p(f){if(!f||!f.scope||typeof f.scope!="function")return!1;var h=f.scope();return!(!h||!h.active||typeof h.active!="function")}u.rateLimiter=new o({maxItems:0,itemsPerMinute:60}),u.prototype.global=function(f){return u.rateLimiter.configureGlobal(f),this},u.prototype.configure=function(f,h){var m=this.options,g={};h&&(g={payload:h}),this.options=l.merge(m,f,g);var y=this.options.tracer||null;return p(y)?(this.tracer=y,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),d(f),this.global(this.options),p(f.tracer)&&(this.tracer=f.tracer),this},u.prototype.log=function(f){var h=this._defaultLogLevel();return this._log(h,f)},u.prototype.debug=function(f){this._log("debug",f)},u.prototype.info=function(f){this._log("info",f)},u.prototype.warn=function(f){this._log("warning",f)},u.prototype.warning=function(f){this._log("warning",f)},u.prototype.error=function(f){this._log("error",f)},u.prototype.critical=function(f){this._log("critical",f)},u.prototype.wait=function(f){this.queue.wait(f)},u.prototype.captureEvent=function(f,h,m){return this.telemeter&&this.telemeter.captureEvent(f,h,m)},u.prototype.captureDomContentLoaded=function(f){return this.telemeter&&this.telemeter.captureDomContentLoaded(f)},u.prototype.captureLoad=function(f){return this.telemeter&&this.telemeter.captureLoad(f)},u.prototype.buildJsonPayload=function(f){return this.api.buildJsonPayload(f)},u.prototype.sendJsonPayload=function(f){this.api.postJsonPayload(f)},u.prototype._log=function(f,h){var m;if(h.callback&&(m=h.callback,delete h.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(h)){if(m){var g=new Error("ignored identical item");g.item=h,m(g)}}else try{this._addTracingInfo(h),h.level=h.level||f,this.telemeter&&this.telemeter._captureRollbarItem(h),h.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(h,m)}catch(y){m&&m(y),this.logger.error(y)}},u.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},u.prototype._sameAsLastError=function(f){if(!f._isUncaught)return!1;var h=function(m){var g=m.message||"",y=(m.err||{}).stack||String(m.err);return g+"::"+y}(f);return this.lastErrorHash===h||(this.lastError=f.err,this.lastErrorHash=h,!1)},u.prototype._addTracingInfo=function(f){if(this.tracer){var h=this.tracer.scope().active();if(function(y){if(!y||!y.context||typeof y.context!="function")return!1;var b=y.context();return!(!b||!b.toSpanId||!b.toTraceId||typeof b.toSpanId!="function"||typeof b.toTraceId!="function")}(h)){h.setTag("rollbar.error_uuid",f.uuid),h.setTag("rollbar.has_error",!0),h.setTag("error",!0),h.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid="+f.uuid),h.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid="+f.uuid);var m=h.context().toSpanId(),g=h.context().toTraceId();f.custom?(f.custom.opentracing_span_id=m,f.custom.opentracing_trace_id=g):f.custom={opentracing_span_id:m,opentracing_trace_id:g}}}},r.exports=u},function(r,i,a){var o=a(0);function s(u){this.startTime=o.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(u)}function c(u,d,p){return!u.ignoreRateLimit&&d>=1&&p>d}function l(u,d,p,f,h,m,g){var y=null;return p&&(p=new Error(p)),p||f||(y=function(b,w,S,k,$){var T,A=w.environment||w.payload&&w.payload.environment;T=$?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.";var E={body:{message:{body:T,extra:{maxItems:S,itemsPerMinute:k}}},language:"javascript",environment:A,notifier:{version:w.notifier&&w.notifier.version||w.version}};return b==="browser"?(E.platform="browser",E.framework="browser-js",E.notifier.name="rollbar-browser-js"):b==="server"?(E.framework=w.framework||"node-js",E.notifier.name=w.notifier.name):b==="react-native"&&(E.framework=w.framework||"react-native",E.notifier.name=w.notifier.name),E}(u,d,h,m,g)),{error:p,shouldSend:f,payload:y}}s.globalSettings={startTime:o.now(),maxItems:void 0,itemsPerMinute:void 0},s.prototype.configureGlobal=function(u){u.startTime!==void 0&&(s.globalSettings.startTime=u.startTime),u.maxItems!==void 0&&(s.globalSettings.maxItems=u.maxItems),u.itemsPerMinute!==void 0&&(s.globalSettings.itemsPerMinute=u.itemsPerMinute)},s.prototype.shouldSend=function(u,d){var p=(d=d||o.now())-this.startTime;(p<0||p>=6e4)&&(this.startTime=d,this.perMinCounter=0);var f=s.globalSettings.maxItems,h=s.globalSettings.itemsPerMinute;if(c(u,f,this.counter))return l(this.platform,this.platformOptions,f+" max items reached",!1);if(c(u,h,this.perMinCounter))return l(this.platform,this.platformOptions,h+" items per minute reached",!1);this.counter++,this.perMinCounter++;var m=!c(u,f,this.counter),g=m;return m=m&&!c(u,h,this.perMinCounter),l(this.platform,this.platformOptions,null,m,f,h,g)},s.prototype.setPlatformOptions=function(u,d){this.platform=u,this.platformOptions=d},r.exports=s},function(r,i,a){var o=Object.prototype.hasOwnProperty,s=Object.prototype.toString,c=function(l){if(!l||s.call(l)!=="[object Object]")return!1;var u,d=o.call(l,"constructor"),p=l.constructor&&l.constructor.prototype&&o.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!p)return!1;for(u in l);return u===void 0||o.call(l,u)};r.exports=function l(){var u,d,p,f,h,m={},g=null,y=arguments.length;for(u=0;u<y;u++)if((g=arguments[u])!=null)for(h in g)d=m[h],m!==(p=g[h])&&(p&&c(p)?(f=d&&c(d)?d:{},m[h]=l(f,p)):p!==void 0&&(m[h]=p));return m}},function(r,i,a){var o=a(0);function s(l,u,d,p){this.rateLimiter=l,this.api=u,this.logger=d,this.options=p,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}s.prototype.configure=function(l){this.api&&this.api.configure(l);var u=this.options;return this.options=o.merge(u,l),this},s.prototype.addPredicate=function(l){return o.isFunction(l)&&this.predicates.push(l),this},s.prototype.addPendingItem=function(l){this.pendingItems.push(l)},s.prototype.removePendingItem=function(l){var u=this.pendingItems.indexOf(l);u!==-1&&this.pendingItems.splice(u,1)},s.prototype.addItem=function(l,u,d,p){u&&o.isFunction(u)||(u=function(){});var f=this._applyPredicates(l);if(f.stop)return this.removePendingItem(p),void u(f.err);if(this._maybeLog(l,d),this.removePendingItem(p),this.options.transmit){this.pendingRequests.push(l);try{this._makeApiRequest(l,function(h,m){this._dequeuePendingRequest(l),u(h,m)}.bind(this))}catch(h){this._dequeuePendingRequest(l),u(h)}}else u(new Error("Transmit disabled"))},s.prototype.wait=function(l){o.isFunction(l)&&(this.waitCallback=l,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(function(){this._maybeCallWait()}.bind(this),500)))},s.prototype._applyPredicates=function(l){for(var u=null,d=0,p=this.predicates.length;d<p;d++)if(!(u=this.predicates[d](l,this.options))||u.err!==void 0)return{stop:!0,err:u.err};return{stop:!1,err:null}},s.prototype._makeApiRequest=function(l,u){var d=this.rateLimiter.shouldSend(l);d.shouldSend?this.api.postItem(l,function(p,f){p?this._maybeRetry(p,l,u):u(p,f)}.bind(this)):d.error?u(d.error):this.api.postItem(d.payload,u)};var c=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];s.prototype._maybeRetry=function(l,u,d){var p=!1;if(this.options.retryInterval){for(var f=0,h=c.length;f<h;f++)if(l.code===c[f]){p=!0;break}p&&o.isFiniteNumber(this.options.maxRetries)&&(u.retries=u.retries?u.retries+1:1,u.retries>this.options.maxRetries&&(p=!1))}p?this._retryApiRequest(u,d):d(l)},s.prototype._retryApiRequest=function(l,u){this.retryQueue.push({item:l,callback:u}),this.retryHandle||(this.retryHandle=setInterval(function(){for(;this.retryQueue.length;){var d=this.retryQueue.shift();this._makeApiRequest(d.item,d.callback)}}.bind(this),this.options.retryInterval))},s.prototype._dequeuePendingRequest=function(l){var u=this.pendingRequests.indexOf(l);u!==-1&&(this.pendingRequests.splice(u,1),this._maybeCallWait())},s.prototype._maybeLog=function(l,u){if(this.logger&&this.options.verbose){var d=u;if(d=(d=d||o.get(l,"body.trace.exception.message"))||o.get(l,"body.trace_chain.0.exception.message"))return void this.logger.error(d);(d=o.get(l,"body.message.body"))&&this.logger.log(d)}},s.prototype._maybeCallWait=function(){return!(!o.isFunction(this.waitCallback)||this.pendingItems.length!==0||this.pendingRequests.length!==0)&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0)},r.exports=s},function(r,i,a){var o=a(0);function s(c,l){this.queue=c,this.options=l,this.transforms=[],this.diagnostic={}}s.prototype.configure=function(c){this.queue&&this.queue.configure(c);var l=this.options;return this.options=o.merge(l,c),this},s.prototype.addTransform=function(c){return o.isFunction(c)&&this.transforms.push(c),this},s.prototype.log=function(c,l){if(l&&o.isFunction(l)||(l=function(){}),!this.options.enabled)return l(new Error("Rollbar is not enabled"));this.queue.addPendingItem(c);var u=c.err;this._applyTransforms(c,function(d,p){if(d)return this.queue.removePendingItem(c),l(d,null);this.queue.addItem(p,l,u,c)}.bind(this))},s.prototype._applyTransforms=function(c,l){var u=-1,d=this.transforms.length,p=this.transforms,f=this.options,h=function(m,g){m?l(m,null):++u!==d?p[u](g,f,h):l(null,g)};h(null,c)},r.exports=s},function(r,i,a){var o=a(0),s=a(16),c={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function l(d,p,f,h,m){this.options=d,this.transport=p,this.url=f,this.truncation=h,this.jsonBackup=m,this.accessToken=d.accessToken,this.transportOptions=u(d,f)}function u(d,p){return s.getTransportFromOptions(d,c,p)}l.prototype.postItem=function(d,p){var f=s.transportOptions(this.transportOptions,"POST"),h=s.buildPayload(this.accessToken,d,this.jsonBackup),m=this;setTimeout(function(){m.transport.post(m.accessToken,f,h,p)},0)},l.prototype.buildJsonPayload=function(d,p){var f,h=s.buildPayload(this.accessToken,d,this.jsonBackup);return(f=this.truncation?this.truncation.truncate(h):o.stringify(h)).error?(p&&p(f.error),null):f.value},l.prototype.postJsonPayload=function(d,p){var f=s.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,f,d,p)},l.prototype.configure=function(d){var p=this.oldOptions;return this.options=o.merge(p,d),this.transportOptions=u(this.options,this.url),this.options.accessToken!==void 0&&(this.accessToken=this.options.accessToken),this},r.exports=l},function(r,i,a){var o=a(0);r.exports={buildPayload:function(s,c,l){if(!o.isType(c.context,"string")){var u=o.stringify(c.context,l);u.error?c.context="Error: could not serialize 'context'":c.context=u.value||"",c.context.length>255&&(c.context=c.context.substr(0,255))}return{access_token:s,data:c}},getTransportFromOptions:function(s,c,l){var u=c.hostname,d=c.protocol,p=c.port,f=c.path,h=c.search,m=s.timeout,g=function(w){var S=typeof window<"u"&&window||typeof self<"u"&&self,k=w.defaultTransport||"xhr";return S.fetch===void 0&&(k="xhr"),S.XMLHttpRequest===void 0&&(k="fetch"),k}(s),y=s.proxy;if(s.endpoint){var b=l.parse(s.endpoint);u=b.hostname,d=b.protocol,p=b.port,f=b.pathname,h=b.search}return{timeout:m,hostname:u,protocol:d,port:p,path:f,search:h,proxy:y,transport:g}},transportOptions:function(s,c){var l=s.protocol||"https:",u=s.port||(l==="http:"?80:l==="https:"?443:void 0),d=s.hostname,p=s.path,f=s.timeout,h=s.transport;return s.search&&(p+=s.search),s.proxy&&(p=l+"//"+d+p,d=s.proxy.host||s.proxy.hostname,u=s.proxy.port,l=s.proxy.protocol||l),{timeout:f,protocol:l,hostname:d,path:p,port:u,method:c,transport:h}},appendPathToPath:function(s,c){var l=/\/$/.test(s),u=/^\//.test(c);return l&&u?c=c.substring(1):l||u||(c="/"+c),s+c}}},function(r,i){(function(a){a.console||(a.console={});for(var o,s,c=a.console,l=function(){},u=["memory"],d="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");o=u.pop();)c[o]||(c[o]={});for(;s=d.pop();)c[s]||(c[s]=l)})(typeof window>"u"?this:window)},function(r,i,a){var o={ieVersion:function(){if(typeof document<"u"){for(var s=3,c=document.createElement("div"),l=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++s+"]><i></i><![endif]-->",l[0];);return s>4?s:void 0}}};r.exports=o},function(r,i,a){function o(s,c,l,u){s._rollbarWrappedError&&(u[4]||(u[4]=s._rollbarWrappedError),u[5]||(u[5]=s._rollbarWrappedError._rollbarContext),s._rollbarWrappedError=null);var d=c.handleUncaughtException.apply(c,u);l&&l.apply(s,u),d==="anonymous"&&(c.anonymousErrorsPending+=1)}r.exports={captureUncaughtExceptions:function(s,c,l){if(s){var u;if(typeof c._rollbarOldOnError=="function")u=c._rollbarOldOnError;else if(s.onerror){for(u=s.onerror;u._rollbarOldOnError;)u=u._rollbarOldOnError;c._rollbarOldOnError=u}c.handleAnonymousErrors();var d=function(){var p=Array.prototype.slice.call(arguments,0);o(s,c,u,p)};l&&(d._rollbarOldOnError=u),s.onerror=d}},captureUnhandledRejections:function(s,c,l){if(s){typeof s._rollbarURH=="function"&&s._rollbarURH.belongsToShim&&s.removeEventListener("unhandledrejection",s._rollbarURH);var u=function(d){var p,f,h;try{p=d.reason}catch{p=void 0}try{f=d.promise}catch{f="[unhandledrejection] error getting `promise` from event"}try{h=d.detail,!p&&h&&(p=h.reason,f=h.promise)}catch{}p||(p="[unhandledrejection] error getting `reason` from event"),c&&c.handleUnhandledRejection&&c.handleUnhandledRejection(p,f)};u.belongsToShim=l,s._rollbarURH=u,s.addEventListener("unhandledrejection",u)}}}},function(r,i,a){var o=a(0),s=a(21),c=a(22);function l(u){this.truncation=u}l.prototype.get=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){}),o.addParamsAndAccessTokenToPath(u,d,p);var m=o.formatUrl(d);this._makeZoneRequest(u,m,"GET",null,f,h,d.timeout,d.transport)},l.prototype.post=function(u,d,p,f,h){if(f&&o.isFunction(f)||(f=function(){}),!p)return f(new Error("Cannot send empty request"));var m;if((m=this.truncation?this.truncation.truncate(p):o.stringify(p)).error)return f(m.error);var g=m.value,y=o.formatUrl(d);this._makeZoneRequest(u,y,"POST",g,f,h,d.timeout,d.transport)},l.prototype.postJsonPayload=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){});var m=o.formatUrl(d);this._makeZoneRequest(u,m,"POST",p,f,h,d.timeout,d.transport)},l.prototype._makeZoneRequest=function(){var u=typeof window<"u"&&window||h!==void 0&&h,d=u&&u.Zone&&u.Zone.current,p=Array.prototype.slice.call(arguments);if(d&&d._name==="angular"){var f=d._parent,h=this;f.run(function(){h._makeRequest.apply(void 0,p)})}else this._makeRequest.apply(void 0,p)},l.prototype._makeRequest=function(u,d,p,f,h,m,g,y){if(typeof RollbarProxy<"u")return function(b,w){new RollbarProxy().sendJsonPayload(b,function(S){},function(S){w(new Error(S))})}(f,h);y==="fetch"?s(u,d,p,f,h,g):c(u,d,p,f,h,m,g)},r.exports=l},function(r,i,a){var o=a(1),s=a(0);r.exports=function(c,l,u,d,p,f){var h,m;s.isFiniteNumber(f)&&(h=new AbortController,m=setTimeout(function(){h.abort()},f)),fetch(l,{method:u,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":c,signal:h&&h.signal},body:d}).then(function(g){return m&&clearTimeout(m),g.json()}).then(function(g){p(null,g)}).catch(function(g){o.error(g.message),p(g)})}},function(r,i,a){var o=a(0),s=a(1);function c(l,u){var d=new Error(l);return d.code=u||"ENOTFOUND",d}r.exports=function(l,u,d,p,f,h,m){var g;if(!(g=h?h():function(){var w,S,k=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],$=k.length;for(S=0;S<$;S++)try{w=k[S]();break}catch{}return w}()))return f(new Error("No way to send a request"));try{try{var y=function(){try{if(y&&g.readyState===4){y=void 0;var w=o.jsonParse(g.responseText);if(($=g)&&$.status&&$.status===200)return void f(w.error,w.value);if(function(T){return T&&o.isType(T.status,"number")&&T.status>=400&&T.status<600}(g)){if(g.status===403){var S=w.value&&w.value.message;s.error(S)}f(new Error(String(g.status)))}else f(c("XHR response had no status code (likely connection failure)"))}}catch(T){var k;k=T&&T.stack?T:new Error(T),f(k)}var $};g.open(d,u,!0),g.setRequestHeader&&(g.setRequestHeader("Content-Type","application/json"),g.setRequestHeader("X-Rollbar-Access-Token",l)),o.isFiniteNumber(m)&&(g.timeout=m),g.onreadystatechange=y,g.send(p)}catch{if(typeof XDomainRequest<"u"){if(!window||!window.location)return f(new Error("No window available during request, unknown environment"));window.location.href.substring(0,5)==="http:"&&u.substring(0,5)==="https"&&(u="http"+u.substring(5));var b=new XDomainRequest;b.onprogress=function(){},b.ontimeout=function(){f(c("Request timed out","ETIMEDOUT"))},b.onerror=function(){f(new Error("Error during request"))},b.onload=function(){var S=o.jsonParse(b.responseText);f(S.error,S.value)},b.open(d,u,!0),b.send(p)}else f(new Error("Cannot find a method to transport a request"))}}catch(w){f(w)}}},function(r,i,a){var o=a(0),s=a(3),c=a(1);function l(f,h,m){var g=f.message,y=f.custom;g||(g="Item sent with null or missing arguments.");var b={body:g};y&&(b.extra=o.merge(y)),o.set(f,"data.body",{message:b}),m(null,f)}function u(f){var h=f.stackInfo.stack;return h&&h.length===0&&f._unhandledStackInfo&&f._unhandledStackInfo.stack&&(h=f._unhandledStackInfo.stack),h}function d(f,h,m){var g=f&&f.data.description,y=f&&f.custom,b=u(f),w=s.guessErrorClass(h.message),S={exception:{class:p(h,w[0],m),message:w[1]}};if(g&&(S.exception.description=g),b){var k,$,T,A,E,I,R,Y;for(b.length===0&&(S.exception.stack=h.rawStack,S.exception.raw=String(h.rawException)),S.frames=[],R=0;R<b.length;++R)$={filename:(k=b[R]).url?o.sanitizeUrl(k.url):"(unknown)",lineno:k.line||null,method:k.func&&k.func!=="?"?k.func:"[anonymous]",colno:k.column},m.sendFrameUrl&&($.url=k.url),$.method&&$.method.endsWith&&$.method.endsWith("_rollbar_wrapped")||(T=A=E=null,(I=k.context?k.context.length:0)&&(Y=Math.floor(I/2),A=k.context.slice(0,Y),T=k.context[Y],E=k.context.slice(Y)),T&&($.code=T),(A||E)&&($.context={},A&&A.length&&($.context.pre=A),E&&E.length&&($.context.post=E)),k.args&&($.args=k.args),S.frames.push($));S.frames.reverse(),y&&(S.extra=o.merge(y))}return S}function p(f,h,m){return f.name?f.name:m.guessErrorClass?h:"(unknown)"}r.exports={handleDomException:function(f,h,m){if(f.err&&s.Stack(f.err).name==="DOMException"){var g=new Error;g.name=f.err.name,g.message=f.err.message,g.stack=f.err.stack,g.nested=f.err,f.err=g}m(null,f)},handleItemWithError:function(f,h,m){if(f.data=f.data||{},f.err)try{f.stackInfo=f.err._savedStackTrace||s.parse(f.err,f.skipFrames),h.addErrorContext&&function(g){var y=[],b=g.err;for(y.push(b);b.nested||b.cause;)b=b.nested||b.cause,y.push(b);o.addErrorContext(g,y)}(f)}catch(g){c.error("Error while parsing the error object.",g);try{f.message=f.err.message||f.err.description||f.message||String(f.err)}catch(y){f.message=String(f.err)||String(y)}delete f.err}m(null,f)},ensureItemHasSomethingToSay:function(f,h,m){f.message||f.stackInfo||f.custom||m(new Error("No message, stack info, or custom data"),null),m(null,f)},addBaseInfo:function(f,h,m){var g=h.payload&&h.payload.environment||h.environment;f.data=o.merge(f.data,{environment:g,level:f.level,endpoint:h.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:f.uuid,notifier:{name:"rollbar-browser-js",version:h.version},custom:f.custom}),m(null,f)},addRequestInfo:function(f){return function(h,m,g){var y={};f&&f.location&&(y.url=f.location.href,y.query_string=f.location.search);var b="$remote_ip";m.captureIp?m.captureIp!==!0&&(b+="_anonymize"):b=null,b&&(y.user_ip=b),Object.keys(y).length>0&&o.set(h,"data.request",y),g(null,h)}},addClientInfo:function(f){return function(h,m,g){if(!f)return g(null,h);var y=f.navigator||{},b=f.screen||{};o.set(h,"data.client",{runtime_ms:h.timestamp-f._rollbarStartTime,timestamp:Math.round(h.timestamp/1e3),javascript:{browser:y.userAgent,language:y.language,cookie_enabled:y.cookieEnabled,screen:{width:b.width,height:b.height}}}),g(null,h)}},addPluginInfo:function(f){return function(h,m,g){if(!f||!f.navigator)return g(null,h);for(var y,b=[],w=f.navigator.plugins||[],S=0,k=w.length;S<k;++S)y=w[S],b.push({name:y.name,description:y.description});o.set(h,"data.client.javascript.plugins",b),g(null,h)}},addBody:function(f,h,m){f.stackInfo?f.stackInfo.traceChain?function(g,y,b){for(var w=g.stackInfo.traceChain,S=[],k=w.length,$=0;$<k;$++){var T=d(g,w[$],y);S.push(T)}o.set(g,"data.body",{trace_chain:S}),b(null,g)}(f,h,m):function(g,y,b){if(u(g)){var w=d(g,g.stackInfo,y);o.set(g,"data.body",{trace:w}),b(null,g)}else{var S=g.stackInfo,k=s.guessErrorClass(S.message),$=p(S,k[0],y),T=k[1];g.message=$+": "+T,l(g,y,b)}}(f,h,m):l(f,h,m)},addScrubber:function(f){return function(h,m,g){if(f){var y=m.scrubFields||[],b=m.scrubPaths||[];h.data=f(h.data,y,b)}g(null,h)}}}},function(r,i,a){var o,s,c;(function(l,u){s=[a(25)],(c=typeof(o=function(d){var p=/(^|@)\S+:\d+/,f=/^\s*at .*(\S+:\d+|\(native\))/m,h=/^(eval@)?(\[native code])?$/;return{parse:function(m){if(m.stacktrace!==void 0||m["opera#sourceloc"]!==void 0)return this.parseOpera(m);if(m.stack&&m.stack.match(f))return this.parseV8OrIE(m);if(m.stack)return this.parseFFOrSafari(m);throw new Error("Cannot parse given Error object")},extractLocation:function(m){if(m.indexOf(":")===-1)return[m];var g=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(m.replace(/[()]/g,""));return[g[1],g[2]||void 0,g[3]||void 0]},parseV8OrIE:function(m){return m.stack.split(`
|
|
437
437
|
`).filter(function(g){return!!g.match(f)},this).map(function(g){g.indexOf("(eval ")>-1&&(g=g.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var y=g.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),b=y.match(/ (\(.+\)$)/);y=b?y.replace(b[0],""):y;var w=this.extractLocation(b?b[1]:y),S=b&&y||void 0,k=["eval","<anonymous>"].indexOf(w[0])>-1?void 0:w[0];return new d({functionName:S,fileName:k,lineNumber:w[1],columnNumber:w[2],source:g})},this)},parseFFOrSafari:function(m){return m.stack.split(`
|
|
438
438
|
`).filter(function(g){return!g.match(h)},this).map(function(g){if(g.indexOf(" > eval")>-1&&(g=g.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),g.indexOf("@")===-1&&g.indexOf(":")===-1)return new d({functionName:g});var y=/((.*".+"[^@]*)?[^@]*)(?:@)/,b=g.match(y),w=b&&b[1]?b[1]:void 0,S=this.extractLocation(g.replace(y,""));return new d({functionName:w,fileName:S[0],lineNumber:S[1],columnNumber:S[2],source:g})},this)},parseOpera:function(m){return!m.stacktrace||m.message.indexOf(`
|
|
439
439
|
`)>-1&&m.message.split(`
|
|
@@ -448,7 +448,7 @@ $t(documentTemplateView.smsContent) $t(documentTemplateView.readMore)
|
|
|
448
448
|
`+o+te.join(`,
|
|
449
449
|
`+o)+`
|
|
450
450
|
`+j+"}":"{"+te.join(",")+"}",o=j,z}}("",{"":T})}),typeof a.parse!="function"&&(a.parse=(m={"\\":"\\",'"':'"',"/":"/",t:" ",n:`
|
|
451
|
-
`,r:"\r",f:"\f",b:"\b"},g={go:function(){u="ok"},firstokey:function(){f=h,u="colon"},okey:function(){f=h,u="colon"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},y={go:function(){u="ok"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},b={"{":{go:function(){d.push({state:"ok"}),p={},u="firstokey"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p={},u="firstokey"},firstavalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"},avalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"}},"}":{firstokey:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},ocomma:function(){var T=d.pop();p[f]=h,h=p,p=T.container,f=T.key,u=T.state}},"[":{go:function(){d.push({state:"ok"}),p=[],u="firstavalue"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p=[],u="firstavalue"},firstavalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"},avalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"}},"]":{firstavalue:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},acomma:function(){var T=d.pop();p.push(h),h=p,p=T.container,f=T.key,u=T.state}},":":{colon:function(){if(Object.hasOwnProperty.call(p,f))throw new SyntaxError("Duplicate key '"+f+'"');u="ovalue"}},",":{ocomma:function(){p[f]=h,u="okey"},acomma:function(){p.push(h),u="avalue"}},true:{go:function(){h=!0,u="ok"},ovalue:function(){h=!0,u="ocomma"},firstavalue:function(){h=!0,u="acomma"},avalue:function(){h=!0,u="acomma"}},false:{go:function(){h=!1,u="ok"},ovalue:function(){h=!1,u="ocomma"},firstavalue:function(){h=!1,u="acomma"},avalue:function(){h=!1,u="acomma"}},null:{go:function(){h=null,u="ok"},ovalue:function(){h=null,u="ocomma"},firstavalue:function(){h=null,u="acomma"},avalue:function(){h=null,u="acomma"}}},function(T,A){var E,I,R=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;u="go",d=[];try{for(;E=R.exec(T);)E[1]?b[E[1]][u]():E[2]?(h=+E[2],y[u]()):(I=E[3],h=I.replace(/\\(?:u(.{4})|([^u]))/g,function(Y,L,D){return L?String.fromCharCode(parseInt(L,16)):m[D]}),g[u]()),T=T.slice(E[0].length)}catch(Y){u=Y}if(u!=="ok"||/[^\u0020\t\n\r]/.test(T))throw u instanceof SyntaxError?u:new SyntaxError("JSON");return typeof A=="function"?function Y(L,D){var B,z,K=L[D];if(K&&typeof K=="object")for(B in h)Object.prototype.hasOwnProperty.call(K,B)&&((z=Y(K,B))!==void 0?K[B]=z:delete K[B]);return A.call(L,D,K)}({"":h},""):h}))}},function(r,i,a){function o(s,c,l){if(c.hasOwnProperty&&c.hasOwnProperty("addEventListener")){for(var u=c.addEventListener;u._rollbarOldAdd&&u.belongsToShim;)u=u._rollbarOldAdd;var d=function(h,m,g){u.call(this,h,s.wrap(m),g)};d._rollbarOldAdd=u,d.belongsToShim=l,c.addEventListener=d;for(var p=c.removeEventListener;p._rollbarOldRemove&&p.belongsToShim;)p=p._rollbarOldRemove;var f=function(h,m,g){p.call(this,h,m&&m._rollbar_wrapped||m,g)};f._rollbarOldRemove=p,f.belongsToShim=l,c.removeEventListener=f}}r.exports=function(s,c,l){if(s){var u,d,p="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(u=0;u<p.length;++u)s[d=p[u]]&&s[d].prototype&&o(c,s[d].prototype,l)}}},function(r,i,a){var o=a(0),s=a(5);function c(g,y){return[g,o.stringify(g,y)]}function l(g,y){var b=g.length;return b>2*y?g.slice(0,y).concat(g.slice(b-y)):g}function u(g,y,b){b=b===void 0?30:b;var w,S=g.data.body;if(S.trace_chain)for(var k=S.trace_chain,$=0;$<k.length;$++)w=l(w=k[$].frames,b),k[$].frames=w;else S.trace&&(w=l(w=S.trace.frames,b),S.trace.frames=w);return[g,o.stringify(g,y)]}function d(g,y){return y&&y.length>g?y.slice(0,g-3).concat("..."):y}function p(g,y,b){return[y=s(y,function w(S,k,$){switch(o.typeName(k)){case"string":return d(g,k);case"object":case"array":return s(k,w,$);default:return k}}),o.stringify(y,b)]}function f(g){return g.exception&&(delete g.exception.description,g.exception.message=d(255,g.exception.message)),g.frames=l(g.frames,1),g}function h(g,y){var b=g.data.body;if(b.trace_chain)for(var w=b.trace_chain,S=0;S<w.length;S++)w[S]=f(w[S]);else b.trace&&(b.trace=f(b.trace));return[g,o.stringify(g,y)]}function m(g,y){return o.maxByteSize(g)>y}r.exports={truncate:function(g,y,b){b=b===void 0?524288:b;for(var w,S,k,$=[c,u,p.bind(null,1024),p.bind(null,512),p.bind(null,256),h];w=$.shift();)if(g=(S=w(g,y))[0],(k=S[1]).error||!m(k.value,b))return k;return k},raw:c,truncateFrames:u,truncateStrings:p,maybeTruncateValue:d}}])})})(GR);var jke=GR.exports;const zke=tn(jke);function Vke(n){if(typeof n!="string")throw new Error("Param name must be a string");try{const t=`${n}=`,r=document.cookie.split(";");for(let i=0;i<r.length;i++){let a=r[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}}catch{}return null}const Uke="disabledThirdParties",Hke=["google","facebook","segment","logrocket","rollbar"];function Wke(){let n=[];try{const t=JSON.parse(Vke(Uke));Array.isArray(t)&&(n=t)}catch{}return n.filter(t=>Hke.includes(t))}const qR=Xe.rollbar.clientToken,nC=new zke({accessToken:qR,captureUncaught:!0,captureUnhandledRejections:!0,source_map_enabled:!0,environment:Xe.rollbar.environment||Xe.environment,enabled:!1,ignoredMessages:["The operation is insecure","Script error.","null is not an object (evaluating 'localStorage.getItem')","Unexpected token '<'","expected expression, got '<'","ChunkLoadError","Loading chunk","ResizeObserver loop limit exceeded","Failed to update a ServiceWorker for scope","Object Not Found Matching Id","newestWorker is null"],payload:{client:{javascript:{code_version:"0.9.
|
|
451
|
+
`,r:"\r",f:"\f",b:"\b"},g={go:function(){u="ok"},firstokey:function(){f=h,u="colon"},okey:function(){f=h,u="colon"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},y={go:function(){u="ok"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},b={"{":{go:function(){d.push({state:"ok"}),p={},u="firstokey"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p={},u="firstokey"},firstavalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"},avalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"}},"}":{firstokey:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},ocomma:function(){var T=d.pop();p[f]=h,h=p,p=T.container,f=T.key,u=T.state}},"[":{go:function(){d.push({state:"ok"}),p=[],u="firstavalue"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p=[],u="firstavalue"},firstavalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"},avalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"}},"]":{firstavalue:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},acomma:function(){var T=d.pop();p.push(h),h=p,p=T.container,f=T.key,u=T.state}},":":{colon:function(){if(Object.hasOwnProperty.call(p,f))throw new SyntaxError("Duplicate key '"+f+'"');u="ovalue"}},",":{ocomma:function(){p[f]=h,u="okey"},acomma:function(){p.push(h),u="avalue"}},true:{go:function(){h=!0,u="ok"},ovalue:function(){h=!0,u="ocomma"},firstavalue:function(){h=!0,u="acomma"},avalue:function(){h=!0,u="acomma"}},false:{go:function(){h=!1,u="ok"},ovalue:function(){h=!1,u="ocomma"},firstavalue:function(){h=!1,u="acomma"},avalue:function(){h=!1,u="acomma"}},null:{go:function(){h=null,u="ok"},ovalue:function(){h=null,u="ocomma"},firstavalue:function(){h=null,u="acomma"},avalue:function(){h=null,u="acomma"}}},function(T,A){var E,I,R=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;u="go",d=[];try{for(;E=R.exec(T);)E[1]?b[E[1]][u]():E[2]?(h=+E[2],y[u]()):(I=E[3],h=I.replace(/\\(?:u(.{4})|([^u]))/g,function(Y,L,D){return L?String.fromCharCode(parseInt(L,16)):m[D]}),g[u]()),T=T.slice(E[0].length)}catch(Y){u=Y}if(u!=="ok"||/[^\u0020\t\n\r]/.test(T))throw u instanceof SyntaxError?u:new SyntaxError("JSON");return typeof A=="function"?function Y(L,D){var B,z,K=L[D];if(K&&typeof K=="object")for(B in h)Object.prototype.hasOwnProperty.call(K,B)&&((z=Y(K,B))!==void 0?K[B]=z:delete K[B]);return A.call(L,D,K)}({"":h},""):h}))}},function(r,i,a){function o(s,c,l){if(c.hasOwnProperty&&c.hasOwnProperty("addEventListener")){for(var u=c.addEventListener;u._rollbarOldAdd&&u.belongsToShim;)u=u._rollbarOldAdd;var d=function(h,m,g){u.call(this,h,s.wrap(m),g)};d._rollbarOldAdd=u,d.belongsToShim=l,c.addEventListener=d;for(var p=c.removeEventListener;p._rollbarOldRemove&&p.belongsToShim;)p=p._rollbarOldRemove;var f=function(h,m,g){p.call(this,h,m&&m._rollbar_wrapped||m,g)};f._rollbarOldRemove=p,f.belongsToShim=l,c.removeEventListener=f}}r.exports=function(s,c,l){if(s){var u,d,p="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(u=0;u<p.length;++u)s[d=p[u]]&&s[d].prototype&&o(c,s[d].prototype,l)}}},function(r,i,a){var o=a(0),s=a(5);function c(g,y){return[g,o.stringify(g,y)]}function l(g,y){var b=g.length;return b>2*y?g.slice(0,y).concat(g.slice(b-y)):g}function u(g,y,b){b=b===void 0?30:b;var w,S=g.data.body;if(S.trace_chain)for(var k=S.trace_chain,$=0;$<k.length;$++)w=l(w=k[$].frames,b),k[$].frames=w;else S.trace&&(w=l(w=S.trace.frames,b),S.trace.frames=w);return[g,o.stringify(g,y)]}function d(g,y){return y&&y.length>g?y.slice(0,g-3).concat("..."):y}function p(g,y,b){return[y=s(y,function w(S,k,$){switch(o.typeName(k)){case"string":return d(g,k);case"object":case"array":return s(k,w,$);default:return k}}),o.stringify(y,b)]}function f(g){return g.exception&&(delete g.exception.description,g.exception.message=d(255,g.exception.message)),g.frames=l(g.frames,1),g}function h(g,y){var b=g.data.body;if(b.trace_chain)for(var w=b.trace_chain,S=0;S<w.length;S++)w[S]=f(w[S]);else b.trace&&(b.trace=f(b.trace));return[g,o.stringify(g,y)]}function m(g,y){return o.maxByteSize(g)>y}r.exports={truncate:function(g,y,b){b=b===void 0?524288:b;for(var w,S,k,$=[c,u,p.bind(null,1024),p.bind(null,512),p.bind(null,256),h];w=$.shift();)if(g=(S=w(g,y))[0],(k=S[1]).error||!m(k.value,b))return k;return k},raw:c,truncateFrames:u,truncateStrings:p,maybeTruncateValue:d}}])})})(GR);var jke=GR.exports;const zke=tn(jke);function Vke(n){if(typeof n!="string")throw new Error("Param name must be a string");try{const t=`${n}=`,r=document.cookie.split(";");for(let i=0;i<r.length;i++){let a=r[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}}catch{}return null}const Uke="disabledThirdParties",Hke=["google","facebook","segment","logrocket","rollbar"];function Wke(){let n=[];try{const t=JSON.parse(Vke(Uke));Array.isArray(t)&&(n=t)}catch{}return n.filter(t=>Hke.includes(t))}const qR=Xe.rollbar.clientToken,nC=new zke({accessToken:qR,captureUncaught:!0,captureUnhandledRejections:!0,source_map_enabled:!0,environment:Xe.rollbar.environment||Xe.environment,enabled:!1,ignoredMessages:["The operation is insecure","Script error.","null is not an object (evaluating 'localStorage.getItem')","Unexpected token '<'","expected expression, got '<'","ChunkLoadError","Loading chunk","ResizeObserver loop limit exceeded","Failed to update a ServiceWorker for scope","Object Not Found Matching Id","newestWorker is null"],payload:{client:{javascript:{code_version:"0.9.27",source_map_enabled:!0,guess_uncaught_frames:!0}}},transform:n=>{const{trace:t}=n.body;if(t&&t.frames)for(let r=0;r<t.frames.length;r++){const{filename:i}=t.frames[r];i&&(t.frames[r].filename=t.frames[r].filename.replace(Xe.baseUrl,"https://dynamichost"))}}}),Gke=!!qR&&!Wke().includes("rollbar");window.enableErrorTracker=()=>{Gke&&nC.configure({enabled:!0})};const qke=[9001,9002,9003,9004,9005,9006],Yke=[401];function Kke(n){const{payload:t}=n,r=a=>Be.te(`errors:${a}`)&&Be.t(`errors:${a}`);let i=r(n.code);return t.code&&r(t.code)?i=r(t.code):t.fallbackCode&&r(t.fallbackCode)?i=r(t.fallbackCode):t.string&&(i=t.string),i}class Zke{constructor(){$n(this,"errors",new Map);this.handleError.bind(this)}init({logger:t=console,showMessage:r,onNetworkError:i,clearNetworkError:a}={}){if(this._logger=t,typeof r!="function")throw Error("showMessage must be a function");this._showMessage=r,this._onNetworkError=i,this._clearNetworkError=a}normalizeError(t){return this.getErrorType(t)!=="Error"?t:new Js(t)}_showNotification(t,r){const i=` Tyvärr har ett okänt fel inträffat, vi har loggat felet och kommer snarast att åtgärda det.
|
|
452
452
|
`;this._showMessage({type:r||"error",message:t||i})}logError(t){this._logger?(this._logger.error(t),this._logger.debug(`${t.name}: ${t.message}`,t.payload)):(console.error(t),console.debug(`${t.name}: ${t.message}`,t.payload))}getErrorType(t){return Object.keys(NR).some(i=>t instanceof NR[i])?t.name:"Error"}addCustomData(t,r){cn(r)!=="object"||this.getErrorType(t)==="Error"||t.add(r)}saveError(t){const r=this.getErrorType(t);this.errors.has(r)||this.errors.set(r,[]);const i=this.errors.get(r);this.errors.set(r,{...i,[t.message]:{count:((i[t.message]||{}).count||0)+1,lastError:new Date}})}isDuplicate(t,r=1){const i=this.getErrorType(t),{lastError:a}=(this.errors.get(i)||{})[t.message]||{};return!!(a&&Kve(Xve(a,r)))}notifyUser(t){if(this.isDuplicate(t)||t.payload&&!t.payload.showMessage)return;const r=Kke(t);r&&this._showNotification(r)}sendRollbarError(t,r=10){if(this.isDuplicate(t,r))return;const{payload:i={},httpStatusCode:a}=t||{},{code:o}=i;o&&qke.includes(o)||!o&&a&&Yke.includes(a)||nC.error(t,i)}async resolveNetworkError(t){var r;try{await FCe(),(r=this._clearNetworkError)==null||r.call(this)}catch(i){this.getErrorType(i)!=="NetworkError"&&this.handleError(i),setTimeout(()=>{this.resolveNetworkError(t).catch(this.handleError)},5e3)}}}class Jke extends Zke{handleError(t,r){var a;const i=this.normalizeError(t);this.addCustomData(i,r),this.notifyUser(i),this.logError(i),this.sendRollbarError(i),!this.isDuplicate(i)&&this.getErrorType(i)==="NetworkError"&&((a=this._onNetworkError)==null||a.call(this,i),this.resolveNetworkError(i).catch(this.handleError)),this.saveError(i)}onVueException(t,r,i){r.$nextTick(()=>{this.handleError(t)})}}const YR=new Jke,Rr=YR.handleError.bind(YR),ns=Fe.observable({messages:[],actions:{}}),Xke=n=>ns.messages.push(kp(n)),eg=n=>{const t=ns.messages[n];ns.actions[t==null?void 0:t._uniqueId]&&delete ns.actions[t._uniqueId],ns.messages.splice(n,1)},KR=({index:n,type:t})=>{try{const r={cancel:()=>eg(n)},i=ns.messages[n];if(!i||!i._uniqueId)throw Error("message not found, failed to trigger action");const a=ns.actions[i._uniqueId];if(!a)throw Error("message has no actions, failed to trigger action");const o=a[t];if(!o)throw Error(`message has no action of type ${t}`);let s=o;if(typeof o=="string"&&(s=r[o],!s))throw Error(`No predefined action of type ${o}`);if(typeof s!="function")throw Error("Unable to extract function from message action");return s(i)}catch(r){return Rr(r)}},tg=n=>{const{type:t,displayType:r="notification",time:i=5e3,title:a,message:o,closeButton:s,omit:c=""}=n,l={},u={};if((f=>f.split(",").some(h=>{const[m="foo",g="bar"]=h.split(":");return Fe.prototype[m]===g}))(c))return;n.actions&&Object.keys(n.actions).forEach(f=>{const h=n.actions[f];if(typeof h=="object"&&!Array.isArray(h)){if(!h.fn&&!h.callback)throw Error(`No callback function provided for action ${f}`);l[f]=h.fn||h.callback,delete h.fn,delete h.callback,u[f]=h}else if(typeof h=="string")l[f]=h,u[f]={};else if(typeof h=="function")l[f]=h,u[f]={};else throw Error(`Action, ${f} , must be one of: object|string|function`)}),Xke({actions:u,title:a,message:o,type:t,displayType:r,time:i,closeButton:s});const p=ns.messages.slice(-1)[0];ns.actions[p._uniqueId]=l},Xs=(n,t)=>tg({type:n,message:t}),ZR=ns,sRt="";function he(n,t,r,i,a,o,s,c){var l=typeof n=="function"?n.options:n;t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o);var u;if(s?(u=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),a&&a.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(s)},l._ssrRegister=u):a&&(u=c?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),u)if(l.functional){l._injectStyles=u;var d=l.render;l.render=function(h,m){return u.call(m),d(h,m)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,u):[u]}return{exports:n,options:l}}const Qke={props:{size:{type:String,default:"40px"},strokeWidth:{type:Number,default:6},color:{type:String,default:""}}};var eSe=function(t,r){return t("svg",{staticClass:"spinner spinner--circle inline-block",class:[r.props.color],style:{width:r.props.size,height:r.props.size,lineHeight:r.props.size,...r.data.staticStyle},attrs:{viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{staticClass:"path",attrs:{fill:"none","stroke-width":r.props.strokeWidth,"stroke-linecap":"round",cx:"33",cy:"33",r:"30"}})])},tSe=[],nSe=he(Qke,eSe,tSe,!0,null,"c4dd8c6e",null,null);const ng=nSe.exports,rSe={name:"UserMessages",components:{Spinner:ng},props:{notification:{type:Object,default:()=>({message:"",time:null,type:"error",actions:[],closeButton:!0})},index:{type:Number,default:null}},data(){return{timer:null,displayTimer:null,countDownInterval:null}},async mounted(){this.notification&&(this.notification.time&&await this.addTimer(this.notification.time),this.notification.type==="countdown"&&this.startCountDown(Math.round(this.notification.time/1e3)))},beforeDestroy(){this.countDownInterval&&this.stopCountDown()},methods:{close(){eg(this.index)},async addTimer(n){if(typeof this.notification.time=="function"){await this.notification.time()==="close"&&this.close();return}const t=()=>eg(this.index);this.timer=setTimeout(t,n)},clearTimer(){this.timer&&clearTimeout(this.timer)},onMouseOver(){this.clearTimer()},onMouseOut(){this.notification.time,this.addTimer(3e3)},onActionClick(n){KR({index:this.index,type:n}),eg(this.index)},startCountDown(n){this.displayTimer=n,this.countDownInterval=setInterval(()=>{this.displayTimer===0&&this.stopCountDown(),this.displayTimer-=1},1e3)},stopCountDown(){clearInterval(this.countDownInterval)}}};var iSe=function(){var t=this,r=t._self._c;return r("transition",{attrs:{appear:"","enter-active-class":"transition-all duration-200 ease-out","enter-class":"translate-y-full opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-all duration-200 ease-in","leave-class":"opacity-100","leave-to-class":"translate-y-full opacity-0"}},[r("div",{staticClass:"flex justify-center w-full left-1/2 fixed z-[2147483647] -translate-x-1/2 bottom-4 pointer-events-none",class:[t.notification.type]},[r("div",{staticClass:"z-[100] flex items-center leading-none text-white font-medium h-11 pl-4 rounded-lg pointer-events-auto",class:["notification",t.notification.type,t.notification.closeButton||Object.keys(t.notification.actions||{}).length?"pr-2":"pr-5",{"bg-green-600":t.notification.type==="success","bg-red-500":t.notification.type==="error","bg-orange-600":t.notification.type==="warning","bg-primary-500":!["success","error","warning"].includes(t.notification.type)}],staticStyle:{"max-width":"calc(100% - calc(2 * var(--rem)))"},on:{"mouse-over":t.onMouseOver,"mouse-leave":t.onMouseOut}},[r("div",{staticClass:"block mt-px mr-3 font-semibold"},[t.notification.type==="success"?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[r("path",{attrs:{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"}})]):t.notification.type==="error"?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[r("polygon",{attrs:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}}),r("line",{attrs:{x1:"12",y1:"8",x2:"12",y2:"12"}}),r("line",{attrs:{x1:"12",y1:"16",x2:"12",y2:"16"}})]):t.notification.type==="warning"?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[r("path",{attrs:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}}),r("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"13"}}),r("line",{attrs:{x1:"12",y1:"17",x2:"12",y2:"17"}})]):["spinner","countdown"].includes(t.notification.type)?r("Spinner",{attrs:{size:"18px",color:"white","stroke-width":8}}):r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[r("path",{attrs:{d:"M22 17H2a3 3 0 0 0 3-3V9a7 7 0 0 1 14 0v5a3 3 0 0 0 3 3zm-8.27 4a2 2 0 0 1-3.46 0"}})])],1),r("div",{staticClass:"flex-auto text-sm"},[t._v(" "+t._s(t.notification.message)+" ")]),t.notification.type==="countdown"?r("div",{staticClass:"ml-5 font-medium countdown-text"},[t._v(" "+t._s(t.$t("time.secondsLeft",{time:t.displayTimer}))+" ")]):t._e(),Object.keys(t.notification.actions||{}).length?r("div",{staticClass:"w-4"}):t._e(),t.notification.actions&&t.notification.actions.submit?r("div",{staticClass:"px-3 py-2 ml-1 font-semibold leading-none text-white transition-all rounded-md cursor-pointer font-sm bg-white/20 hover:bg-white/30 active:scale-95",on:{click:function(i){return i.preventDefault(),t.onActionClick("submit")}}},[t._v(" "+t._s(t.notification.actions.submit.text)+" ")]):t._e(),t.notification.actions&&t.notification.actions.undo?r("div",{staticClass:"px-3 py-2 ml-1 font-semibold leading-none text-white transition-all rounded-md cursor-pointer font-sm bg-white/20 hover:bg-white/30 active:scale-95",on:{click:function(i){return i.preventDefault(),t.onActionClick("undo")}}},[t._v(" "+t._s(t.notification.actions.undo.text||t.$t("undo"))+" ")]):t._e(),t.notification.closeButton?r("div",{staticClass:"flex items-center justify-center p-2 ml-1 text-white transition-all rounded-full cursor-pointer hover:bg-white/30 active:scale-95",on:{click:function(i){return i.preventDefault(),t.close.apply(null,arguments)}}},[r("BaseIcon",{attrs:{type:"x",size:"14"}})],1):t._e()])])])},aSe=[],oSe=he(rSe,iSe,aSe,!1,null,null,null,null);const sSe=oSe.exports,lRt="",lSe={name:"Dialog",props:{dialog:{type:Object,default:()=>({type:""})},index:{type:Number,default:null}},data(){return{name:"dialog-modal"}},computed:{hasSubmit(){const{submit:n}=this.dialog.actions||{};return typeof n=="object"&&!Array.isArray(n)},submitText(){const{submit:n={}}=this.dialog.actions||{};return n.text||this.$t("continue")},submitType(){return this.dialog.type||"danger"},hasCancel(){const{cancel:n}=this.dialog.actions||{};return typeof n=="object"&&!Array.isArray(n)},cancelText(){const{cancel:n={}}=this.dialog.actions||{};return n.text||this.$t("cancel")}},mounted(){this.$modal.show(this.name),setTimeout(()=>{this.$refs.action&&this.$refs.action.$el.focus()},100),window.addEventListener("keyup",this.handleEscapeKeyUp)},beforeDestroy(){this.$modal.hide(this.name),window.removeEventListener("keyup",this.handleEscapeKeyUp)},methods:{onMessageAction(n){KR({index:this.index,type:n}),eg(this.index),this.$modal.hide(this.name)},handleEscapeKeyUp(n){n.which===27&&this.onMessageAction("cancel")}}};var cSe=function(){var t=this,r=t._self._c;return r("modal",{staticClass:"transition-fix",staticStyle:{"z-index":"99999999"},attrs:{classes:["v--modal",t.name,"bg-white !rounded-xl shadow-2xl py-4 px-4 duration-100 border border-gray-200"],adaptive:!0,width:"90%","max-width":380,scrollable:!1,height:"auto","click-to-close":!1,transition:"modal-pop",name:"dialog-modal"}},[r("div",{staticClass:"p-2 mb-6 text-base font-normal text-gray-700 select-none"},[t.dialog.title?r("div",{staticClass:"text-md font-bold mb-1 text-gray-900"},[t._v(" "+t._s(t.dialog.title)+" ")]):t._e(),r("div",{staticClass:"text-sm"},[t._v(" "+t._s(t.dialog.message)+" ")])]),r("div",{staticClass:"button-row flex justify-end"},[t.hasCancel?r("CButton",{attrs:{type:"none",pattern:"tertiary",tabindex:"-1",size:"small",taller:""},on:{click:function(i){return t.onMessageAction("cancel")}}},[t._v(" "+t._s(t.cancelText)+" ")]):t._e(),t.hasSubmit?r("CButton",{ref:"action",staticStyle:{"margin-left":"calc(1 * var(--rem))"},attrs:{type:t.submitType,tabindex:"0",size:"small",taller:""},on:{click:function(i){return t.onMessageAction("submit")}}},[t._v(" "+t._s(t.submitText)+" ")]):t._e()],1)])},uSe=[],dSe=he(lSe,cSe,uSe,!1,null,null,null,null);const pSe=dSe.exports,fSe={name:"UserMessages",components:{Notification:sSe,Dialog:pSe},props:{disableNotification:{type:Boolean,default:!1},disableDialog:{type:Boolean,default:!1}},computed:{notification(){const{messages:n}=ZR,t=n.findIndex(r=>r.displayType==="notification");return t!==-1&&{index:t,data:n[t]}},dialog(){const{messages:n}=ZR,t=n.findIndex(r=>r.displayType==="dialog");return t!==-1&&{index:t,data:n[t]}}}};var hSe=function(){var t=this,r=t._self._c;return r("div",[t.notification&&!t.disableNotification?r("Notification",{key:t.notification.data&&t.notification.data._uniqueId,attrs:{notification:t.notification.data,index:t.notification.index}}):t._e(),t.dialog&&!t.disableDialog?r("Dialog",{key:t.dialog.data&&t.dialog.data._uniqueId,attrs:{dialog:t.dialog.data,index:t.dialog.index}}):t._e()],1)},mSe=[],gSe=he(fSe,hSe,mSe,!1,null,null,null,null);const vSe=gSe.exports;var py=function(n){return n&&n.Math==Math&&n},Vr=py(typeof globalThis=="object"&&globalThis)||py(typeof window=="object"&&window)||py(typeof self=="object"&&self)||py(typeof Vt=="object"&&Vt)||function(){return this}()||Function("return this")(),rC={},Hn=function(n){try{return!!n()}catch{return!0}},ySe=Hn,ho=!ySe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bSe=Hn,fy=!bSe(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")}),_Se=fy,hy=Function.prototype.call,ja=_Se?hy.bind(hy):function(){return hy.apply(hy,arguments)},iC={},JR={}.propertyIsEnumerable,XR=Object.getOwnPropertyDescriptor,wSe=XR&&!JR.call({1:2},1);iC.f=wSe?function(t){var r=XR(this,t);return!!r&&r.enumerable}:JR;var my=function(n,t){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:t}},QR=fy,eL=Function.prototype,aC=eL.call,xSe=QR&&eL.bind.bind(aC,aC),tL=QR?xSe:function(n){return function(){return aC.apply(n,arguments)}},nL=tL,CSe=nL({}.toString),kSe=nL("".slice),rc=function(n){return kSe(CSe(n),8,-1)},SSe=rc,TSe=tL,Kn=function(n){if(SSe(n)==="Function")return TSe(n)},ESe=Kn,$Se=Hn,ASe=rc,oC=Object,OSe=ESe("".split),gy=$Se(function(){return!oC("z").propertyIsEnumerable(0)})?function(n){return ASe(n)=="String"?OSe(n,""):oC(n)}:oC,Mu=function(n){return n==null},DSe=Mu,MSe=TypeError,Wp=function(n){if(DSe(n))throw MSe("Can't call method on "+n);return n},PSe=gy,ISe=Wp,Gp=function(n){return PSe(ISe(n))},sC=typeof document=="object"&&document.all,RSe=typeof sC>"u"&&sC!==void 0,rL={all:sC,IS_HTMLDDA:RSe},iL=rL,LSe=iL.all,kr=iL.IS_HTMLDDA?function(n){return typeof n=="function"||n===LSe}:function(n){return typeof n=="function"},aL=kr,oL=rL,NSe=oL.all,Zi=oL.IS_HTMLDDA?function(n){return typeof n=="object"?n!==null:aL(n)||n===NSe}:function(n){return typeof n=="object"?n!==null:aL(n)},lC=Vr,FSe=kr,BSe=function(n){return FSe(n)?n:void 0},rg=function(n,t){return arguments.length<2?BSe(lC[n]):lC[n]&&lC[n][t]},jSe=Kn,cC=jSe({}.isPrototypeOf),zSe=rg,VSe=zSe("navigator","userAgent")||"",sL=Vr,uC=VSe,lL=sL.process,cL=sL.Deno,uL=lL&&lL.versions||cL&&cL.version,dL=uL&&uL.v8,mo,vy;dL&&(mo=dL.split("."),vy=mo[0]>0&&mo[0]<4?1:+(mo[0]+mo[1])),!vy&&uC&&(mo=uC.match(/Edge\/(\d+)/),(!mo||mo[1]>=74)&&(mo=uC.match(/Chrome\/(\d+)/),mo&&(vy=+mo[1])));var yy=vy,pL=yy,USe=Hn,fL=!!Object.getOwnPropertySymbols&&!USe(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&pL&&pL<41}),HSe=fL,hL=HSe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",WSe=rg,GSe=kr,qSe=cC,YSe=hL,KSe=Object,mL=YSe?function(n){return typeof n=="symbol"}:function(n){var t=WSe("Symbol");return GSe(t)&&qSe(t.prototype,KSe(n))},ZSe=String,dC=function(n){try{return ZSe(n)}catch{return"Object"}},JSe=kr,XSe=dC,QSe=TypeError,by=function(n){if(JSe(n))return n;throw QSe(XSe(n)+" is not a function")},e6e=by,t6e=Mu,ig=function(n,t){var r=n[t];return t6e(r)?void 0:e6e(r)},pC=ja,fC=kr,hC=Zi,n6e=TypeError,r6e=function(n,t){var r,i;if(t==="string"&&fC(r=n.toString)&&!hC(i=pC(r,n))||fC(r=n.valueOf)&&!hC(i=pC(r,n))||t!=="string"&&fC(r=n.toString)&&!hC(i=pC(r,n)))return i;throw n6e("Can't convert object to primitive value")},gL={exports:{}},vL=Vr,i6e=Object.defineProperty,mC=function(n,t){try{i6e(vL,n,{value:t,configurable:!0,writable:!0})}catch{vL[n]=t}return t},a6e=Vr,o6e=mC,yL="__core-js_shared__",s6e=a6e[yL]||o6e(yL,{}),gC=s6e,bL=gC;(gL.exports=function(n,t){return bL[n]||(bL[n]=t!==void 0?t:{})})("versions",[]).push({version:"3.26.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var vC=gL.exports,l6e=Wp,c6e=Object,Pu=function(n){return c6e(l6e(n))},u6e=Kn,d6e=Pu,p6e=u6e({}.hasOwnProperty),go=Object.hasOwn||function(t,r){return p6e(d6e(t),r)},f6e=Kn,h6e=0,m6e=Math.random(),g6e=f6e(1 .toString),yC=function(n){return"Symbol("+(n===void 0?"":n)+")_"+g6e(++h6e+m6e,36)},v6e=Vr,y6e=vC,_L=go,b6e=yC,wL=fL,xL=hL,qp=y6e("wks"),Iu=v6e.Symbol,CL=Iu&&Iu.for,_6e=xL?Iu:Iu&&Iu.withoutSetter||b6e,vi=function(n){if(!_L(qp,n)||!(wL||typeof qp[n]=="string")){var t="Symbol."+n;wL&&_L(Iu,n)?qp[n]=Iu[n]:xL&&CL?qp[n]=CL(t):qp[n]=_6e(t)}return qp[n]},w6e=ja,kL=Zi,SL=mL,x6e=ig,C6e=r6e,k6e=vi,S6e=TypeError,T6e=k6e("toPrimitive"),E6e=function(n,t){if(!kL(n)||SL(n))return n;var r=x6e(n,T6e),i;if(r){if(t===void 0&&(t="default"),i=w6e(r,n,t),!kL(i)||SL(i))return i;throw S6e("Can't convert object to primitive value")}return t===void 0&&(t="number"),C6e(n,t)},$6e=E6e,A6e=mL,bC=function(n){var t=$6e(n,"string");return A6e(t)?t:t+""},O6e=Vr,TL=Zi,_C=O6e.document,D6e=TL(_C)&&TL(_C.createElement),wC=function(n){return D6e?_C.createElement(n):{}},M6e=ho,P6e=Hn,I6e=wC,EL=!M6e&&!P6e(function(){return Object.defineProperty(I6e("div"),"a",{get:function(){return 7}}).a!=7}),R6e=ho,L6e=ja,N6e=iC,F6e=my,B6e=Gp,j6e=bC,z6e=go,V6e=EL,$L=Object.getOwnPropertyDescriptor;rC.f=R6e?$L:function(t,r){if(t=B6e(t),r=j6e(r),V6e)try{return $L(t,r)}catch{}if(z6e(t,r))return F6e(!L6e(N6e.f,t,r),t[r])};var vo={},U6e=ho,H6e=Hn,AL=U6e&&H6e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),W6e=Zi,G6e=String,q6e=TypeError,ga=function(n){if(W6e(n))return n;throw q6e(G6e(n)+" is not an object")},Y6e=ho,K6e=EL,Z6e=AL,_y=ga,OL=bC,J6e=TypeError,xC=Object.defineProperty,X6e=Object.getOwnPropertyDescriptor,CC="enumerable",kC="configurable",SC="writable";vo.f=Y6e?Z6e?function(t,r,i){if(_y(t),r=OL(r),_y(i),typeof t=="function"&&r==="prototype"&&"value"in i&&SC in i&&!i[SC]){var a=X6e(t,r);a&&a[SC]&&(t[r]=i.value,i={configurable:kC in i?i[kC]:a[kC],enumerable:CC in i?i[CC]:a[CC],writable:!1})}return xC(t,r,i)}:xC:function(t,r,i){if(_y(t),r=OL(r),_y(i),K6e)try{return xC(t,r,i)}catch{}if("get"in i||"set"in i)throw J6e("Accessors not supported");return"value"in i&&(t[r]=i.value),t};var Q6e=ho,eTe=vo,tTe=my,Yp=Q6e?function(n,t,r){return eTe.f(n,t,tTe(1,r))}:function(n,t,r){return n[t]=r,n},DL={exports:{}},TC=ho,nTe=go,ML=Function.prototype,rTe=TC&&Object.getOwnPropertyDescriptor,EC=nTe(ML,"name"),iTe=EC&&function(){}.name==="something",aTe=EC&&(!TC||TC&&rTe(ML,"name").configurable),$C={EXISTS:EC,PROPER:iTe,CONFIGURABLE:aTe},oTe=Kn,sTe=kr,AC=gC,lTe=oTe(Function.toString);sTe(AC.inspectSource)||(AC.inspectSource=function(n){return lTe(n)});var PL=AC.inspectSource,cTe=Vr,uTe=kr,IL=cTe.WeakMap,RL=uTe(IL)&&/native code/.test(String(IL)),dTe=vC,pTe=yC,LL=dTe("keys"),OC=function(n){return LL[n]||(LL[n]=pTe(n))},wy={},fTe=RL,NL=Vr,hTe=Zi,mTe=Yp,DC=go,MC=gC,gTe=OC,vTe=wy,FL="Object already initialized",PC=NL.TypeError,yTe=NL.WeakMap,xy,ag,Cy,bTe=function(n){return Cy(n)?ag(n):xy(n,{})},_Te=function(n){return function(t){var r;if(!hTe(t)||(r=ag(t)).type!==n)throw PC("Incompatible receiver, "+n+" required");return r}};if(fTe||MC.state){var rs=MC.state||(MC.state=new yTe);rs.get=rs.get,rs.has=rs.has,rs.set=rs.set,xy=function(n,t){if(rs.has(n))throw PC(FL);return t.facade=n,rs.set(n,t),t},ag=function(n){return rs.get(n)||{}},Cy=function(n){return rs.has(n)}}else{var Kp=gTe("state");vTe[Kp]=!0,xy=function(n,t){if(DC(n,Kp))throw PC(FL);return t.facade=n,mTe(n,Kp,t),t},ag=function(n){return DC(n,Kp)?n[Kp]:{}},Cy=function(n){return DC(n,Kp)}}var Zp={set:xy,get:ag,has:Cy,enforce:bTe,getterFor:_Te},wTe=Hn,xTe=kr,ky=go,IC=ho,CTe=$C.CONFIGURABLE,kTe=PL,BL=Zp,STe=BL.enforce,TTe=BL.get,Sy=Object.defineProperty,ETe=IC&&!wTe(function(){return Sy(function(){},"length",{value:8}).length!==8}),$Te=String(String).split("String"),ATe=DL.exports=function(n,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!ky(n,"name")||CTe&&n.name!==t)&&(IC?Sy(n,"name",{value:t,configurable:!0}):n.name=t),ETe&&r&&ky(r,"arity")&&n.length!==r.arity&&Sy(n,"length",{value:r.arity});try{r&&ky(r,"constructor")&&r.constructor?IC&&Sy(n,"prototype",{writable:!1}):n.prototype&&(n.prototype=void 0)}catch{}var i=STe(n);return ky(i,"source")||(i.source=$Te.join(typeof t=="string"?t:"")),n};Function.prototype.toString=ATe(function(){return xTe(this)&&TTe(this).source||kTe(this)},"toString");var OTe=DL.exports,DTe=kr,MTe=vo,PTe=OTe,ITe=mC,Ru=function(n,t,r,i){i||(i={});var a=i.enumerable,o=i.name!==void 0?i.name:t;if(DTe(r)&&PTe(r,o,i),i.global)a?n[t]=r:ITe(t,r);else{try{i.unsafe?n[t]&&(a=!0):delete n[t]}catch{}a?n[t]=r:MTe.f(n,t,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return n},Ty={},RTe=Math.ceil,LTe=Math.floor,NTe=Math.trunc||function(t){var r=+t;return(r>0?LTe:RTe)(r)},FTe=NTe,Ey=function(n){var t=+n;return t!==t||t===0?0:FTe(t)},BTe=Ey,jTe=Math.max,zTe=Math.min,jL=function(n,t){var r=BTe(n);return r<0?jTe(r+t,0):zTe(r,t)},VTe=Ey,UTe=Math.min,RC=function(n){return n>0?UTe(VTe(n),9007199254740991):0},HTe=RC,Jp=function(n){return HTe(n.length)},WTe=Gp,GTe=jL,qTe=Jp,zL=function(n){return function(t,r,i){var a=WTe(t),o=qTe(a),s=GTe(i,o),c;if(n&&r!=r){for(;o>s;)if(c=a[s++],c!=c)return!0}else for(;o>s;s++)if((n||s in a)&&a[s]===r)return n||s||0;return!n&&-1}},YTe={includes:zL(!0),indexOf:zL(!1)},KTe=Kn,LC=go,ZTe=Gp,JTe=YTe.indexOf,XTe=wy,VL=KTe([].push),UL=function(n,t){var r=ZTe(n),i=0,a=[],o;for(o in r)!LC(XTe,o)&&LC(r,o)&&VL(a,o);for(;t.length>i;)LC(r,o=t[i++])&&(~JTe(a,o)||VL(a,o));return a},NC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QTe=UL,eEe=NC,tEe=eEe.concat("length","prototype");Ty.f=Object.getOwnPropertyNames||function(t){return QTe(t,tEe)};var FC={};FC.f=Object.getOwnPropertySymbols;var nEe=rg,rEe=Kn,iEe=Ty,aEe=FC,oEe=ga,sEe=rEe([].concat),lEe=nEe("Reflect","ownKeys")||function(t){var r=iEe.f(oEe(t)),i=aEe.f;return i?sEe(r,i(t)):r},HL=go,cEe=lEe,uEe=rC,dEe=vo,pEe=function(n,t,r){for(var i=cEe(t),a=dEe.f,o=uEe.f,s=0;s<i.length;s++){var c=i[s];!HL(n,c)&&!(r&&HL(r,c))&&a(n,c,o(t,c))}},fEe=Hn,hEe=kr,mEe=/#|\.prototype\./,og=function(n,t){var r=vEe[gEe(n)];return r==bEe?!0:r==yEe?!1:hEe(t)?fEe(t):!!t},gEe=og.normalize=function(n){return String(n).replace(mEe,".").toLowerCase()},vEe=og.data={},yEe=og.NATIVE="N",bEe=og.POLYFILL="P",WL=og,BC=Vr,_Ee=rC.f,wEe=Yp,xEe=Ru,CEe=mC,kEe=pEe,SEe=WL,Qs=function(n,t){var r=n.target,i=n.global,a=n.stat,o,s,c,l,u,d;if(i?s=BC:a?s=BC[r]||CEe(r,{}):s=(BC[r]||{}).prototype,s)for(c in t){if(u=t[c],n.dontCallGetSet?(d=_Ee(s,c),l=d&&d.value):l=s[c],o=SEe(i?c:r+(a?".":"#")+c,n.forced),!o&&l!==void 0){if(typeof u==typeof l)continue;kEe(u,l)}(n.sham||l&&l.sham)&&wEe(u,"sham",!0),xEe(s,c,u,n)}},TEe=rc,GL=Array.isArray||function(t){return TEe(t)=="Array"},EEe=TypeError,$Ee=9007199254740991,AEe=function(n){if(n>$Ee)throw EEe("Maximum allowed index exceeded");return n},OEe=bC,DEe=vo,MEe=my,qL=function(n,t,r){var i=OEe(t);i in n?DEe.f(n,i,MEe(0,r)):n[i]=r},PEe=vi,IEe=PEe("toStringTag"),YL={};YL[IEe]="z";var jC=String(YL)==="[object z]",REe=jC,LEe=kr,$y=rc,NEe=vi,FEe=NEe("toStringTag"),BEe=Object,jEe=$y(function(){return arguments}())=="Arguments",zEe=function(n,t){try{return n[t]}catch{}},Ay=REe?$y:function(n){var t,r,i;return n===void 0?"Undefined":n===null?"Null":typeof(r=zEe(t=BEe(n),FEe))=="string"?r:jEe?$y(t):(i=$y(t))=="Object"&&LEe(t.callee)?"Arguments":i},VEe=Kn,UEe=Hn,KL=kr,HEe=Ay,WEe=rg,GEe=PL,ZL=function(){},qEe=[],JL=WEe("Reflect","construct"),zC=/^\s*(?:class|function)\b/,YEe=VEe(zC.exec),KEe=!zC.exec(ZL),sg=function(t){if(!KL(t))return!1;try{return JL(ZL,qEe,t),!0}catch{return!1}},XL=function(t){if(!KL(t))return!1;switch(HEe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return KEe||!!YEe(zC,GEe(t))}catch{return!0}};XL.sham=!0;var ZEe=!JL||UEe(function(){var n;return sg(sg.call)||!sg(Object)||!sg(function(){n=!0})||n})?XL:sg,QL=GL,JEe=ZEe,XEe=Zi,QEe=vi,e8e=QEe("species"),eN=Array,t8e=function(n){var t;return QL(n)&&(t=n.constructor,JEe(t)&&(t===eN||QL(t.prototype))?t=void 0:XEe(t)&&(t=t[e8e],t===null&&(t=void 0))),t===void 0?eN:t},n8e=t8e,tN=function(n,t){return new(n8e(n))(t===0?0:t)},r8e=Hn,i8e=vi,a8e=yy,o8e=i8e("species"),nN=function(n){return a8e>=51||!r8e(function(){var t=[],r=t.constructor={};return r[o8e]=function(){return{foo:1}},t[n](Boolean).foo!==1})},s8e=Qs,l8e=Hn,c8e=GL,u8e=Zi,d8e=Pu,p8e=Jp,rN=AEe,iN=qL,f8e=tN,h8e=nN,m8e=vi,g8e=yy,aN=m8e("isConcatSpreadable"),v8e=g8e>=51||!l8e(function(){var n=[];return n[aN]=!1,n.concat()[0]!==n}),y8e=h8e("concat"),b8e=function(n){if(!u8e(n))return!1;var t=n[aN];return t!==void 0?!!t:c8e(n)},_8e=!v8e||!y8e;s8e({target:"Array",proto:!0,arity:1,forced:_8e},{concat:function(t){var r=d8e(this),i=f8e(r,0),a=0,o,s,c,l,u;for(o=-1,c=arguments.length;o<c;o++)if(u=o===-1?r:arguments[o],b8e(u))for(l=p8e(u),rN(a+l),s=0;s<l;s++,a++)s in u&&iN(i,a,u[s]);else rN(a+1),iN(i,a++,u);return i.length=a,i}});var w8e=jC,x8e=Ay,C8e=w8e?{}.toString:function(){return"[object "+x8e(this)+"]"},k8e=jC,S8e=Ru,T8e=C8e;k8e||S8e(Object.prototype,"toString",T8e,{unsafe:!0});var oN={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},E8e=wC,VC=E8e("span").classList,sN=VC&&VC.constructor&&VC.constructor.prototype,lN=sN===Object.prototype?void 0:sN,cN=Kn,$8e=by,A8e=fy,O8e=cN(cN.bind),uN=function(n,t){return $8e(n),t===void 0?n:A8e?O8e(n,t):function(){return n.apply(t,arguments)}},D8e=uN,M8e=Kn,P8e=gy,I8e=Pu,R8e=Jp,L8e=tN,dN=M8e([].push),ic=function(n){var t=n==1,r=n==2,i=n==3,a=n==4,o=n==6,s=n==7,c=n==5||o;return function(l,u,d,p){for(var f=I8e(l),h=P8e(f),m=D8e(u,d),g=R8e(h),y=0,b=p||L8e,w=t?b(l,g):r||s?b(l,0):void 0,S,k;g>y;y++)if((c||y in h)&&(S=h[y],k=m(S,y,f),n))if(t)w[y]=k;else if(k)switch(n){case 3:return!0;case 5:return S;case 6:return y;case 2:dN(w,S)}else switch(n){case 4:return!1;case 7:dN(w,S)}return o?-1:i||a?a:w}},UC={forEach:ic(0),map:ic(1),filter:ic(2),some:ic(3),every:ic(4),find:ic(5),findIndex:ic(6),filterReject:ic(7)},N8e=Hn,pN=function(n,t){var r=[][n];return!!r&&N8e(function(){r.call(null,t||function(){return 1},1)})},F8e=UC.forEach,B8e=pN,j8e=B8e("forEach"),z8e=j8e?[].forEach:function(t){return F8e(this,t,arguments.length>1?arguments[1]:void 0)},fN=Vr,hN=oN,V8e=lN,HC=z8e,U8e=Yp,mN=function(n){if(n&&n.forEach!==HC)try{U8e(n,"forEach",HC)}catch{n.forEach=HC}};for(var WC in hN)hN[WC]&&mN(fN[WC]&&fN[WC].prototype);mN(V8e);var H8e=!!(typeof window<"u"&&window.document&&window.document.createElement),W8e=H8e;const GC=tn(W8e);var G8e=Ay,q8e=String,Lu=function(n){if(G8e(n)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return q8e(n)},gN=`
|
|
453
453
|
\v\f\r \u2028\u2029\uFEFF`,Y8e=Kn,K8e=Wp,Z8e=Lu,J8e=gN,vN=Y8e("".replace),Oy="["+J8e+"]",X8e=RegExp("^"+Oy+Oy+"*"),Q8e=RegExp(Oy+Oy+"*$"),qC=function(n){return function(t){var r=Z8e(K8e(t));return n&1&&(r=vN(r,X8e,"")),n&2&&(r=vN(r,Q8e,"")),r}},e7e={start:qC(1),end:qC(2),trim:qC(3)},yN=Vr,t7e=Hn,n7e=Kn,r7e=Lu,i7e=e7e.trim,bN=gN,lg=yN.parseInt,_N=yN.Symbol,wN=_N&&_N.iterator,xN=/^[+-]?0x/i,a7e=n7e(xN.exec),o7e=lg(bN+"08")!==8||lg(bN+"0x16")!==22||wN&&!t7e(function(){lg(Object(wN))}),s7e=o7e?function(t,r){var i=i7e(r7e(t));return lg(i,r>>>0||(a7e(xN,i)?16:10))}:lg,l7e=Qs,CN=s7e;l7e({global:!0,forced:parseInt!=CN},{parseInt:CN});var c7e=UL,u7e=NC,kN=Object.keys||function(t){return c7e(t,u7e)},SN=ho,d7e=Kn,p7e=ja,f7e=Hn,YC=kN,h7e=FC,m7e=iC,g7e=Pu,v7e=gy,Xp=Object.assign,TN=Object.defineProperty,y7e=d7e([].concat),b7e=!Xp||f7e(function(){if(SN&&Xp({b:1},Xp(TN({},"a",{enumerable:!0,get:function(){TN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var n={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return n[r]=7,i.split("").forEach(function(a){t[a]=a}),Xp({},n)[r]!=7||YC(Xp({},t)).join("")!=i})?function(t,r){for(var i=g7e(t),a=arguments.length,o=1,s=h7e.f,c=m7e.f;a>o;)for(var l=v7e(arguments[o++]),u=s?y7e(YC(l),s(l)):YC(l),d=u.length,p=0,f;d>p;)f=u[p++],(!SN||p7e(c,l,f))&&(i[f]=l[f]);return i}:Xp,_7e=Qs,EN=b7e;_7e({target:"Object",stat:!0,arity:2,forced:Object.assign!==EN},{assign:EN});var w7e=Qs,x7e=UC.filter,C7e=nN,k7e=C7e("filter");w7e({target:"Array",proto:!0,forced:!k7e},{filter:function(t){return x7e(this,t,arguments.length>1?arguments[1]:void 0)}});var $N={},S7e=ho,T7e=AL,E7e=vo,$7e=ga,A7e=Gp,O7e=kN;$N.f=S7e&&!T7e?Object.defineProperties:function(t,r){$7e(t);for(var i=A7e(r),a=O7e(r),o=a.length,s=0,c;o>s;)E7e.f(t,c=a[s++],i[c]);return t};var D7e=rg,M7e=D7e("document","documentElement"),P7e=ga,I7e=$N,AN=NC,R7e=wy,L7e=M7e,N7e=wC,F7e=OC,ON=">",DN="<",KC="prototype",ZC="script",MN=F7e("IE_PROTO"),JC=function(){},PN=function(n){return DN+ZC+ON+n+DN+"/"+ZC+ON},IN=function(n){n.write(PN("")),n.close();var t=n.parentWindow.Object;return n=null,t},B7e=function(){var n=N7e("iframe"),t="java"+ZC+":",r;return n.style.display="none",L7e.appendChild(n),n.src=String(t),r=n.contentWindow.document,r.open(),r.write(PN("document.F=Object")),r.close(),r.F},Dy,My=function(){try{Dy=new ActiveXObject("htmlfile")}catch{}My=typeof document<"u"?document.domain&&Dy?IN(Dy):B7e():IN(Dy);for(var n=AN.length;n--;)delete My[KC][AN[n]];return My()};R7e[MN]=!0;var XC=Object.create||function(t,r){var i;return t!==null?(JC[KC]=P7e(t),i=new JC,JC[KC]=null,i[MN]=t):i=My(),r===void 0?i:I7e.f(i,r)},j7e=vi,z7e=XC,V7e=vo.f,QC=j7e("unscopables"),ek=Array.prototype;ek[QC]==null&&V7e(ek,QC,{configurable:!0,value:z7e(null)});var U7e=function(n){ek[QC][n]=!0},cg={},H7e=Hn,W7e=!H7e(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),G7e=go,q7e=kr,Y7e=Pu,K7e=OC,Z7e=W7e,RN=K7e("IE_PROTO"),tk=Object,J7e=tk.prototype,LN=Z7e?tk.getPrototypeOf:function(n){var t=Y7e(n);if(G7e(t,RN))return t[RN];var r=t.constructor;return q7e(r)&&t instanceof r?r.prototype:t instanceof tk?J7e:null},X7e=Hn,Q7e=kr,e9e=Zi,NN=LN,t9e=Ru,n9e=vi,nk=n9e("iterator"),FN=!1,Nu,rk,ik;[].keys&&(ik=[].keys(),"next"in ik?(rk=NN(NN(ik)),rk!==Object.prototype&&(Nu=rk)):FN=!0);var r9e=!e9e(Nu)||X7e(function(){var n={};return Nu[nk].call(n)!==n});r9e&&(Nu={}),Q7e(Nu[nk])||t9e(Nu,nk,function(){return this});var BN={IteratorPrototype:Nu,BUGGY_SAFARI_ITERATORS:FN},i9e=vo.f,a9e=go,o9e=vi,jN=o9e("toStringTag"),ak=function(n,t,r){n&&!r&&(n=n.prototype),n&&!a9e(n,jN)&&i9e(n,jN,{configurable:!0,value:t})},s9e=BN.IteratorPrototype,l9e=XC,c9e=my,u9e=ak,d9e=cg,p9e=function(){return this},f9e=function(n,t,r,i){var a=t+" Iterator";return n.prototype=l9e(s9e,{next:c9e(+!i,r)}),u9e(n,a,!1),d9e[a]=p9e,n},h9e=kr,m9e=String,g9e=TypeError,v9e=function(n){if(typeof n=="object"||h9e(n))return n;throw g9e("Can't set "+m9e(n)+" as a prototype")},y9e=Kn,b9e=ga,_9e=v9e,zN=Object.setPrototypeOf||("__proto__"in{}?function(){var n=!1,t={},r;try{r=y9e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),n=t instanceof Array}catch{}return function(a,o){return b9e(a),_9e(o),n?r(a,o):a.__proto__=o,a}}():void 0),w9e=Qs,x9e=ja,VN=$C,C9e=kr,k9e=f9e,UN=LN,HN=zN,S9e=ak,T9e=Yp,ok=Ru,E9e=vi,$9e=cg,WN=BN,A9e=VN.PROPER,O9e=VN.CONFIGURABLE,GN=WN.IteratorPrototype,Py=WN.BUGGY_SAFARI_ITERATORS,ug=E9e("iterator"),qN="keys",dg="values",YN="entries",D9e=function(){return this},KN=function(n,t,r,i,a,o,s){k9e(r,t,i);var c=function(b){if(b===a&&f)return f;if(!Py&&b in d)return d[b];switch(b){case qN:return function(){return new r(this,b)};case dg:return function(){return new r(this,b)};case YN:return function(){return new r(this,b)}}return function(){return new r(this)}},l=t+" Iterator",u=!1,d=n.prototype,p=d[ug]||d["@@iterator"]||a&&d[a],f=!Py&&p||c(a),h=t=="Array"&&d.entries||p,m,g,y;if(h&&(m=UN(h.call(new n)),m!==Object.prototype&&m.next&&(UN(m)!==GN&&(HN?HN(m,GN):C9e(m[ug])||ok(m,ug,D9e)),S9e(m,l,!0))),A9e&&a==dg&&p&&p.name!==dg&&(O9e?T9e(d,"name",dg):(u=!0,f=function(){return x9e(p,this)})),a)if(g={values:c(dg),keys:o?f:c(qN),entries:c(YN)},s)for(y in g)(Py||u||!(y in d))&&ok(d,y,g[y]);else w9e({target:t,proto:!0,forced:Py||u},g);return d[ug]!==f&&ok(d,ug,f,{name:a}),$9e[t]=f,g},ZN=function(n,t){return{value:n,done:t}},M9e=Gp,sk=U7e,JN=cg,XN=Zp,P9e=vo.f,I9e=KN,Iy=ZN,R9e=ho,QN="Array Iterator",L9e=XN.set,N9e=XN.getterFor(QN),F9e=I9e(Array,"Array",function(n,t){L9e(this,{type:QN,target:M9e(n),index:0,kind:t})},function(){var n=N9e(this),t=n.target,r=n.kind,i=n.index++;return!t||i>=t.length?(n.target=void 0,Iy(void 0,!0)):r=="keys"?Iy(i,!1):r=="values"?Iy(t[i],!1):Iy([i,t[i]],!1)},"values"),eF=JN.Arguments=JN.Array;if(sk("keys"),sk("values"),sk("entries"),R9e&&eF.name!=="values")try{P9e(eF,"name",{value:"values"})}catch{}var lk=Kn,B9e=Ey,j9e=Lu,z9e=Wp,V9e=lk("".charAt),tF=lk("".charCodeAt),U9e=lk("".slice),nF=function(n){return function(t,r){var i=j9e(z9e(t)),a=B9e(r),o=i.length,s,c;return a<0||a>=o?n?"":void 0:(s=tF(i,a),s<55296||s>56319||a+1===o||(c=tF(i,a+1))<56320||c>57343?n?V9e(i,a):s:n?U9e(i,a,a+2):(s-55296<<10)+(c-56320)+65536)}},rF={codeAt:nF(!1),charAt:nF(!0)},H9e=rF.charAt,W9e=Lu,iF=Zp,G9e=KN,aF=ZN,oF="String Iterator",q9e=iF.set,Y9e=iF.getterFor(oF);G9e(String,"String",function(n){q9e(this,{type:oF,string:W9e(n),index:0})},function(){var t=Y9e(this),r=t.string,i=t.index,a;return i>=r.length?aF(void 0,!0):(a=H9e(r,i),t.index+=a.length,aF(a,!1))});var K9e=Ru,sF=function(n,t,r){for(var i in t)K9e(n,i,t[i],r);return n},lF={exports:{}},cF={},uF=jL,Z9e=Jp,J9e=qL,X9e=Array,Q9e=Math.max,e$e=function(n,t,r){for(var i=Z9e(n),a=uF(t,i),o=uF(r===void 0?i:r,i),s=X9e(Q9e(o-a,0)),c=0;a<o;a++,c++)J9e(s,c,n[a]);return s.length=c,s},t$e=rc,n$e=Gp,dF=Ty.f,r$e=e$e,pF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i$e=function(n){try{return dF(n)}catch{return r$e(pF)}};cF.f=function(t){return pF&&t$e(t)=="Window"?i$e(t):dF(n$e(t))};var a$e=Hn,o$e=a$e(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}}),s$e=Hn,l$e=Zi,c$e=rc,fF=o$e,Ry=Object.isExtensible,u$e=s$e(function(){Ry(1)}),hF=u$e||fF?function(t){return!l$e(t)||fF&&c$e(t)=="ArrayBuffer"?!1:Ry?Ry(t):!0}:Ry,d$e=Hn,p$e=!d$e(function(){return Object.isExtensible(Object.preventExtensions({}))}),f$e=Qs,h$e=Kn,m$e=wy,g$e=Zi,ck=go,v$e=vo.f,mF=Ty,y$e=cF,uk=hF,b$e=yC,_$e=p$e,gF=!1,el=b$e("meta"),w$e=0,dk=function(n){v$e(n,el,{value:{objectID:"O"+w$e++,weakData:{}}})},x$e=function(n,t){if(!g$e(n))return typeof n=="symbol"?n:(typeof n=="string"?"S":"P")+n;if(!ck(n,el)){if(!uk(n))return"F";if(!t)return"E";dk(n)}return n[el].objectID},C$e=function(n,t){if(!ck(n,el)){if(!uk(n))return!0;if(!t)return!1;dk(n)}return n[el].weakData},k$e=function(n){return _$e&&gF&&uk(n)&&!ck(n,el)&&dk(n),n},S$e=function(){T$e.enable=function(){},gF=!0;var n=mF.f,t=h$e([].splice),r={};r[el]=1,n(r).length&&(mF.f=function(i){for(var a=n(i),o=0,s=a.length;o<s;o++)if(a[o]===el){t(a,o,1);break}return a},f$e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:y$e.f}))},T$e=lF.exports={enable:S$e,fastKey:x$e,getWeakData:C$e,onFreeze:k$e};m$e[el]=!0;var pk=lF.exports,E$e=vi,$$e=cg,A$e=E$e("iterator"),O$e=Array.prototype,D$e=function(n){return n!==void 0&&($$e.Array===n||O$e[A$e]===n)},M$e=Ay,vF=ig,P$e=Mu,I$e=cg,R$e=vi,L$e=R$e("iterator"),yF=function(n){if(!P$e(n))return vF(n,L$e)||vF(n,"@@iterator")||I$e[M$e(n)]},N$e=ja,F$e=by,B$e=ga,j$e=dC,z$e=yF,V$e=TypeError,U$e=function(n,t){var r=arguments.length<2?z$e(n):t;if(F$e(r))return B$e(N$e(r,n));throw V$e(j$e(n)+" is not iterable")},H$e=ja,bF=ga,W$e=ig,G$e=function(n,t,r){var i,a;bF(n);try{if(i=W$e(n,"return"),!i){if(t==="throw")throw r;return r}i=H$e(i,n)}catch(o){a=!0,i=o}if(t==="throw")throw r;if(a)throw i;return bF(i),r},q$e=uN,Y$e=ja,K$e=ga,Z$e=dC,J$e=D$e,X$e=Jp,_F=cC,Q$e=U$e,eAe=yF,wF=G$e,tAe=TypeError,Ly=function(n,t){this.stopped=n,this.result=t},xF=Ly.prototype,CF=function(n,t,r){var i=r&&r.that,a=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),s=!!(r&&r.IS_ITERATOR),c=!!(r&&r.INTERRUPTED),l=q$e(t,i),u,d,p,f,h,m,g,y=function(w){return u&&wF(u,"normal",w),new Ly(!0,w)},b=function(w){return a?(K$e(w),c?l(w[0],w[1],y):l(w[0],w[1])):c?l(w,y):l(w)};if(o)u=n.iterator;else if(s)u=n;else{if(d=eAe(n),!d)throw tAe(Z$e(n)+" is not iterable");if(J$e(d)){for(p=0,f=X$e(n);f>p;p++)if(h=b(n[p]),h&&_F(xF,h))return h;return new Ly(!1)}u=Q$e(n,d)}for(m=o?n.next:u.next;!(g=Y$e(m,u)).done;){try{h=b(g.value)}catch(w){wF(u,"throw",w)}if(typeof h=="object"&&h&&_F(xF,h))return h}return new Ly(!1)},nAe=cC,rAe=TypeError,kF=function(n,t){if(nAe(t,n))return n;throw rAe("Incorrect invocation")},iAe=vi,SF=iAe("iterator"),TF=!1;try{var aAe=0,EF={next:function(){return{done:!!aAe++}},return:function(){TF=!0}};EF[SF]=function(){return this},Array.from(EF,function(){throw 2})}catch{}var oAe=function(n,t){if(!t&&!TF)return!1;var r=!1;try{var i={};i[SF]=function(){return{next:function(){return{done:r=!0}}}},n(i)}catch{}return r},sAe=kr,lAe=Zi,$F=zN,cAe=function(n,t,r){var i,a;return $F&&sAe(i=t.constructor)&&i!==r&&lAe(a=i.prototype)&&a!==r.prototype&&$F(n,a),n},uAe=Qs,dAe=Vr,pAe=Kn,AF=WL,fAe=Ru,hAe=pk,mAe=CF,gAe=kF,vAe=kr,yAe=Mu,fk=Zi,hk=Hn,bAe=oAe,_Ae=ak,wAe=cAe,xAe=function(n,t,r){var i=n.indexOf("Map")!==-1,a=n.indexOf("Weak")!==-1,o=i?"set":"add",s=dAe[n],c=s&&s.prototype,l=s,u={},d=function(b){var w=pAe(c[b]);fAe(c,b,b=="add"?function(k){return w(this,k===0?0:k),this}:b=="delete"?function(S){return a&&!fk(S)?!1:w(this,S===0?0:S)}:b=="get"?function(k){return a&&!fk(k)?void 0:w(this,k===0?0:k)}:b=="has"?function(k){return a&&!fk(k)?!1:w(this,k===0?0:k)}:function(k,$){return w(this,k===0?0:k,$),this})},p=AF(n,!vAe(s)||!(a||c.forEach&&!hk(function(){new s().entries().next()})));if(p)l=r.getConstructor(t,n,i,o),hAe.enable();else if(AF(n,!0)){var f=new l,h=f[o](a?{}:-0,1)!=f,m=hk(function(){f.has(1)}),g=bAe(function(b){new s(b)}),y=!a&&hk(function(){for(var b=new s,w=5;w--;)b[o](w,w);return!b.has(-0)});g||(l=t(function(b,w){gAe(b,c);var S=wAe(new s,b,l);return yAe(w)||mAe(w,S[o],{that:S,AS_ENTRIES:i}),S}),l.prototype=c,c.constructor=l),(m||y)&&(d("delete"),d("has"),i&&d("get")),(y||h)&&d(o),a&&c.clear&&delete c.clear}return u[n]=l,uAe({global:!0,constructor:!0,forced:l!=s},u),_Ae(l,n),a||r.setStrong(l,n,i),l},CAe=Kn,OF=sF,Ny=pk.getWeakData,kAe=kF,SAe=ga,TAe=Mu,mk=Zi,EAe=CF,DF=UC,MF=go,PF=Zp,$Ae=PF.set,AAe=PF.getterFor,OAe=DF.find,DAe=DF.findIndex,MAe=CAe([].splice),PAe=0,Fy=function(n){return n.frozen||(n.frozen=new IF)},IF=function(){this.entries=[]},gk=function(n,t){return OAe(n.entries,function(r){return r[0]===t})};IF.prototype={get:function(n){var t=gk(this,n);if(t)return t[1]},has:function(n){return!!gk(this,n)},set:function(n,t){var r=gk(this,n);r?r[1]=t:this.entries.push([n,t])},delete:function(n){var t=DAe(this.entries,function(r){return r[0]===n});return~t&&MAe(this.entries,t,1),!!~t}};var IAe={getConstructor:function(n,t,r,i){var a=n(function(l,u){kAe(l,o),$Ae(l,{type:t,id:PAe++,frozen:void 0}),TAe(u)||EAe(u,l[i],{that:l,AS_ENTRIES:r})}),o=a.prototype,s=AAe(t),c=function(l,u,d){var p=s(l),f=Ny(SAe(u),!0);return f===!0?Fy(p).set(u,d):f[p.id]=d,l};return OF(o,{delete:function(l){var u=s(this);if(!mk(l))return!1;var d=Ny(l);return d===!0?Fy(u).delete(l):d&&MF(d,u.id)&&delete d[u.id]},has:function(u){var d=s(this);if(!mk(u))return!1;var p=Ny(u);return p===!0?Fy(d).has(u):p&&MF(p,d.id)}}),OF(o,r?{get:function(u){var d=s(this);if(mk(u)){var p=Ny(u);return p===!0?Fy(d).get(u):p?p[d.id]:void 0}},set:function(u,d){return c(this,u,d)}}:{add:function(u){return c(this,u,!0)}}),a}},RF=Vr,By=Kn,RAe=sF,LAe=pk,NAe=xAe,LF=IAe,jy=Zi,zy=hF,Vy=Zp.enforce,FAe=RL,BAe=!RF.ActiveXObject&&"ActiveXObject"in RF,pg,NF=function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},jAe=NAe("WeakMap",NF,LF);if(FAe&&BAe){pg=LF.getConstructor(NF,"WeakMap",!0),LAe.enable();var fg=jAe.prototype,FF=By(fg.delete),Uy=By(fg.has),BF=By(fg.get),jF=By(fg.set);RAe(fg,{delete:function(n){if(jy(n)&&!zy(n)){var t=Vy(this);return t.frozen||(t.frozen=new pg),FF(this,n)||t.frozen.delete(n)}return FF(this,n)},has:function(t){if(jy(t)&&!zy(t)){var r=Vy(this);return r.frozen||(r.frozen=new pg),Uy(this,t)||r.frozen.has(t)}return Uy(this,t)},get:function(t){if(jy(t)&&!zy(t)){var r=Vy(this);return r.frozen||(r.frozen=new pg),Uy(this,t)?BF(this,t):r.frozen.get(t)}return BF(this,t)},set:function(t,r){if(jy(t)&&!zy(t)){var i=Vy(this);i.frozen||(i.frozen=new pg),Uy(this,t)?jF(this,t,r):i.frozen.set(t,r)}else jF(this,t,r);return this}})}var zF=Vr,VF=oN,zAe=lN,hg=F9e,vk=Yp,UF=vi,yk=UF("iterator"),HF=UF("toStringTag"),bk=hg.values,WF=function(n,t){if(n){if(n[yk]!==bk)try{vk(n,yk,bk)}catch{n[yk]=bk}if(n[HF]||vk(n,HF,t),VF[t]){for(var r in hg)if(n[r]!==hg[r])try{vk(n,r,hg[r])}catch{n[r]=hg[r]}}}};for(var _k in VF)WF(zF[_k]&&zF[_k].prototype,_k);WF(zAe,"DOMTokenList");var GF="Expected a function",qF=0/0,VAe="[object Symbol]",UAe=/^\s+|\s+$/g,HAe=/^[-+]0x[0-9a-f]+$/i,WAe=/^0b[01]+$/i,GAe=/^0o[0-7]+$/i,qAe=parseInt,YAe=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,KAe=typeof self=="object"&&self&&self.Object===Object&&self,ZAe=YAe||KAe||Function("return this")(),JAe=Object.prototype,XAe=JAe.toString,QAe=Math.max,eOe=Math.min,wk=function(){return ZAe.Date.now()};function tOe(n,t,r){var i,a,o,s,c,l,u=0,d=!1,p=!1,f=!0;if(typeof n!="function")throw new TypeError(GF);t=YF(t)||0,Hy(r)&&(d=!!r.leading,p="maxWait"in r,o=p?QAe(YF(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f);function h(T){var A=i,E=a;return i=a=void 0,u=T,s=n.apply(E,A),s}function m(T){return u=T,c=setTimeout(b,t),d?h(T):s}function g(T){var A=T-l,E=T-u,I=t-A;return p?eOe(I,o-E):I}function y(T){var A=T-l,E=T-u;return l===void 0||A>=t||A<0||p&&E>=o}function b(){var T=wk();if(y(T))return w(T);c=setTimeout(b,g(T))}function w(T){return c=void 0,f&&i?h(T):(i=a=void 0,s)}function S(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function k(){return c===void 0?s:w(wk())}function $(){var T=wk(),A=y(T);if(i=arguments,a=this,l=T,A){if(c===void 0)return m(l);if(p)return c=setTimeout(b,t),h(l)}return c===void 0&&(c=setTimeout(b,t)),s}return $.cancel=S,$.flush=k,$}function nOe(n,t,r){var i=!0,a=!0;if(typeof n!="function")throw new TypeError(GF);return Hy(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),tOe(n,t,{leading:i,maxWait:t,trailing:a})}function Hy(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function rOe(n){return!!n&&typeof n=="object"}function iOe(n){return typeof n=="symbol"||rOe(n)&&XAe.call(n)==VAe}function YF(n){if(typeof n=="number")return n;if(iOe(n))return qF;if(Hy(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Hy(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(UAe,"");var r=WAe.test(n);return r||GAe.test(n)?qAe(n.slice(2),r?2:8):HAe.test(n)?qF:+n}var aOe=nOe;const KF=tn(aOe);var oOe="Expected a function",ZF=0/0,sOe="[object Symbol]",lOe=/^\s+|\s+$/g,cOe=/^[-+]0x[0-9a-f]+$/i,uOe=/^0b[01]+$/i,dOe=/^0o[0-7]+$/i,pOe=parseInt,fOe=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,hOe=typeof self=="object"&&self&&self.Object===Object&&self,mOe=fOe||hOe||Function("return this")(),gOe=Object.prototype,vOe=gOe.toString,yOe=Math.max,bOe=Math.min,xk=function(){return mOe.Date.now()};function _Oe(n,t,r){var i,a,o,s,c,l,u=0,d=!1,p=!1,f=!0;if(typeof n!="function")throw new TypeError(oOe);t=JF(t)||0,Ck(r)&&(d=!!r.leading,p="maxWait"in r,o=p?yOe(JF(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f);function h(T){var A=i,E=a;return i=a=void 0,u=T,s=n.apply(E,A),s}function m(T){return u=T,c=setTimeout(b,t),d?h(T):s}function g(T){var A=T-l,E=T-u,I=t-A;return p?bOe(I,o-E):I}function y(T){var A=T-l,E=T-u;return l===void 0||A>=t||A<0||p&&E>=o}function b(){var T=xk();if(y(T))return w(T);c=setTimeout(b,g(T))}function w(T){return c=void 0,f&&i?h(T):(i=a=void 0,s)}function S(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function k(){return c===void 0?s:w(xk())}function $(){var T=xk(),A=y(T);if(i=arguments,a=this,l=T,A){if(c===void 0)return m(l);if(p)return c=setTimeout(b,t),h(l)}return c===void 0&&(c=setTimeout(b,t)),s}return $.cancel=S,$.flush=k,$}function Ck(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function wOe(n){return!!n&&typeof n=="object"}function xOe(n){return typeof n=="symbol"||wOe(n)&&vOe.call(n)==sOe}function JF(n){if(typeof n=="number")return n;if(xOe(n))return ZF;if(Ck(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Ck(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(lOe,"");var r=uOe.test(n);return r||dOe.test(n)?pOe(n.slice(2),r?2:8):cOe.test(n)?ZF:+n}var COe=_Oe;const XF=tn(COe);var kOe="Expected a function",QF="__lodash_hash_undefined__",SOe="[object Function]",TOe="[object GeneratorFunction]",EOe=/[\\^$.*+?()[\]{}|]/g,$Oe=/^\[object .+?Constructor\]$/,AOe=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,OOe=typeof self=="object"&&self&&self.Object===Object&&self,eB=AOe||OOe||Function("return this")();function DOe(n,t){return n==null?void 0:n[t]}function MOe(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch{}return t}var POe=Array.prototype,IOe=Function.prototype,tB=Object.prototype,kk=eB["__core-js_shared__"],nB=function(){var n=/[^.]+$/.exec(kk&&kk.keys&&kk.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),rB=IOe.toString,Sk=tB.hasOwnProperty,ROe=tB.toString,LOe=RegExp("^"+rB.call(Sk).replace(EOe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),NOe=POe.splice,FOe=iB(eB,"Map"),mg=iB(Object,"create");function Fu(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function BOe(){this.__data__=mg?mg(null):{}}function jOe(n){return this.has(n)&&delete this.__data__[n]}function zOe(n){var t=this.__data__;if(mg){var r=t[n];return r===QF?void 0:r}return Sk.call(t,n)?t[n]:void 0}function VOe(n){var t=this.__data__;return mg?t[n]!==void 0:Sk.call(t,n)}function UOe(n,t){var r=this.__data__;return r[n]=mg&&t===void 0?QF:t,this}Fu.prototype.clear=BOe,Fu.prototype.delete=jOe,Fu.prototype.get=zOe,Fu.prototype.has=VOe,Fu.prototype.set=UOe;function Qp(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function HOe(){this.__data__=[]}function WOe(n){var t=this.__data__,r=Wy(t,n);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():NOe.call(t,r,1),!0}function GOe(n){var t=this.__data__,r=Wy(t,n);return r<0?void 0:t[r][1]}function qOe(n){return Wy(this.__data__,n)>-1}function YOe(n,t){var r=this.__data__,i=Wy(r,n);return i<0?r.push([n,t]):r[i][1]=t,this}Qp.prototype.clear=HOe,Qp.prototype.delete=WOe,Qp.prototype.get=GOe,Qp.prototype.has=qOe,Qp.prototype.set=YOe;function Bu(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function KOe(){this.__data__={hash:new Fu,map:new(FOe||Qp),string:new Fu}}function ZOe(n){return Gy(this,n).delete(n)}function JOe(n){return Gy(this,n).get(n)}function XOe(n){return Gy(this,n).has(n)}function QOe(n,t){return Gy(this,n).set(n,t),this}Bu.prototype.clear=KOe,Bu.prototype.delete=ZOe,Bu.prototype.get=JOe,Bu.prototype.has=XOe,Bu.prototype.set=QOe;function Wy(n,t){for(var r=n.length;r--;)if(iDe(n[r][0],t))return r;return-1}function eDe(n){if(!aB(n)||nDe(n))return!1;var t=aDe(n)||MOe(n)?LOe:$Oe;return t.test(rDe(n))}function Gy(n,t){var r=n.__data__;return tDe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function iB(n,t){var r=DOe(n,t);return eDe(r)?r:void 0}function tDe(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function nDe(n){return!!nB&&nB in n}function rDe(n){if(n!=null){try{return rB.call(n)}catch{}try{return n+""}catch{}}return""}function Tk(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new TypeError(kOe);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],o=r.cache;if(o.has(a))return o.get(a);var s=n.apply(this,i);return r.cache=o.set(a,s),s};return r.cache=new(Tk.Cache||Bu),r}Tk.Cache=Bu;function iDe(n,t){return n===t||n!==n&&t!==t}function aDe(n){var t=aB(n)?ROe.call(n):"";return t==SOe||t==TOe}function aB(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}var oDe=Tk;const sDe=tn(oDe);var ju=[],lDe=function(){return ju.some(function(n){return n.activeTargets.length>0})},cDe=function(){return ju.some(function(n){return n.skippedTargets.length>0})},oB="ResizeObserver loop completed with undelivered notifications.",uDe=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:oB}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=oB),window.dispatchEvent(n)},gg;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(gg||(gg={}));var zu=function(n){return Object.freeze(n)},dDe=function(){function n(t,r){this.inlineSize=t,this.blockSize=r,zu(this)}return n}(),sB=function(){function n(t,r,i,a){return this.x=t,this.y=r,this.width=i,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zu(this)}return n.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,a=t.top,o=t.right,s=t.bottom,c=t.left,l=t.width,u=t.height;return{x:r,y:i,top:a,right:o,bottom:s,left:c,width:l,height:u}},n.fromRect=function(t){return new n(t.x,t.y,t.width,t.height)},n}(),Ek=function(n){return n instanceof SVGElement&&"getBBox"in n},lB=function(n){if(Ek(n)){var t=n.getBBox(),r=t.width,i=t.height;return!r&&!i}var a=n,o=a.offsetWidth,s=a.offsetHeight;return!(o||s||n.getClientRects().length)},cB=function(n){var t;if(n instanceof Element)return!0;var r=(t=n==null?void 0:n.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&n instanceof r.Element)},pDe=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},vg=typeof window<"u"?window:{},qy=new WeakMap,uB=/auto|scroll/,fDe=/^tb|vertical/,hDe=/msie|trident/i.test(vg.navigator&&vg.navigator.userAgent),is=function(n){return parseFloat(n||"0")},ef=function(n,t,r){return n===void 0&&(n=0),t===void 0&&(t=0),r===void 0&&(r=!1),new dDe((r?t:n)||0,(r?n:t)||0)},dB=zu({devicePixelContentBoxSize:ef(),borderBoxSize:ef(),contentBoxSize:ef(),contentRect:new sB(0,0,0,0)}),pB=function(n,t){if(t===void 0&&(t=!1),qy.has(n)&&!t)return qy.get(n);if(lB(n))return qy.set(n,dB),dB;var r=getComputedStyle(n),i=Ek(n)&&n.ownerSVGElement&&n.getBBox(),a=!hDe&&r.boxSizing==="border-box",o=fDe.test(r.writingMode||""),s=!i&&uB.test(r.overflowY||""),c=!i&&uB.test(r.overflowX||""),l=i?0:is(r.paddingTop),u=i?0:is(r.paddingRight),d=i?0:is(r.paddingBottom),p=i?0:is(r.paddingLeft),f=i?0:is(r.borderTopWidth),h=i?0:is(r.borderRightWidth),m=i?0:is(r.borderBottomWidth),g=i?0:is(r.borderLeftWidth),y=p+u,b=l+d,w=g+h,S=f+m,k=c?n.offsetHeight-S-n.clientHeight:0,$=s?n.offsetWidth-w-n.clientWidth:0,T=a?y+w:0,A=a?b+S:0,E=i?i.width:is(r.width)-T-$,I=i?i.height:is(r.height)-A-k,R=E+y+$+w,Y=I+b+k+S,L=zu({devicePixelContentBoxSize:ef(Math.round(E*devicePixelRatio),Math.round(I*devicePixelRatio),o),borderBoxSize:ef(R,Y,o),contentBoxSize:ef(E,I,o),contentRect:new sB(p,l,E,I)});return qy.set(n,L),L},fB=function(n,t,r){var i=pB(n,r),a=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(t){case gg.DEVICE_PIXEL_CONTENT_BOX:return s;case gg.BORDER_BOX:return a;default:return o}},mDe=function(){function n(t){var r=pB(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=zu([r.borderBoxSize]),this.contentBoxSize=zu([r.contentBoxSize]),this.devicePixelContentBoxSize=zu([r.devicePixelContentBoxSize])}return n}(),hB=function(n){if(lB(n))return 1/0;for(var t=0,r=n.parentNode;r;)t+=1,r=r.parentNode;return t},gDe=function(){var n=1/0,t=[];ju.forEach(function(s){if(s.activeTargets.length!==0){var c=[];s.activeTargets.forEach(function(u){var d=new mDe(u.target),p=hB(u.target);c.push(d),u.lastReportedSize=fB(u.target,u.observedBox),p<n&&(n=p)}),t.push(function(){s.callback.call(s.observer,c,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,i=t;r<i.length;r++){var a=i[r];a()}return n},mB=function(n){ju.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(a){a.isActive()&&(hB(a.target)>n?r.activeTargets.push(a):r.skippedTargets.push(a))})})},vDe=function(){var n=0;for(mB(n);lDe();)n=gDe(),mB(n);return cDe()&&uDe(),n>0},$k,gB=[],yDe=function(){return gB.splice(0).forEach(function(n){return n()})},bDe=function(n){if(!$k){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return yDe()}).observe(r,i),$k=function(){r.textContent="".concat(t?t--:t++)}}gB.push(n),$k()},_De=function(n){bDe(function(){requestAnimationFrame(n)})},Yy=0,wDe=function(){return!!Yy},xDe=250,CDe={attributes:!0,characterData:!0,childList:!0,subtree:!0},vB=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],yB=function(n){return n===void 0&&(n=0),Date.now()+n},Ak=!1,kDe=function(){function n(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return n.prototype.run=function(t){var r=this;if(t===void 0&&(t=xDe),!Ak){Ak=!0;var i=yB(t);_De(function(){var a=!1;try{a=vDe()}finally{if(Ak=!1,t=i-yB(),!wDe())return;a?r.run(1e3):t>0?r.run(t):r.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,CDe)};document.body?r():vg.addEventListener("DOMContentLoaded",r)},n.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),vB.forEach(function(r){return vg.addEventListener(r,t.listener,!0)}))},n.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),vB.forEach(function(r){return vg.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},n}(),Ok=new kDe,bB=function(n){!Yy&&n>0&&Ok.start(),Yy+=n,!Yy&&Ok.stop()},SDe=function(n){return!Ek(n)&&!pDe(n)&&getComputedStyle(n).display==="inline"},TDe=function(){function n(t,r){this.target=t,this.observedBox=r||gg.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var t=fB(this.target,this.observedBox,!0);return SDe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},n}(),EDe=function(){function n(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return n}(),Ky=new WeakMap,_B=function(n,t){for(var r=0;r<n.length;r+=1)if(n[r].target===t)return r;return-1},Zy=function(){function n(){}return n.connect=function(t,r){var i=new EDe(t,r);Ky.set(t,i)},n.observe=function(t,r,i){var a=Ky.get(t),o=a.observationTargets.length===0;_B(a.observationTargets,r)<0&&(o&&ju.push(a),a.observationTargets.push(new TDe(r,i&&i.box)),bB(1),Ok.schedule())},n.unobserve=function(t,r){var i=Ky.get(t),a=_B(i.observationTargets,r),o=i.observationTargets.length===1;a>=0&&(o&&ju.splice(ju.indexOf(i),1),i.observationTargets.splice(a,1),bB(-1))},n.disconnect=function(t){var r=this,i=Ky.get(t);i.observationTargets.slice().forEach(function(a){return r.unobserve(t,a.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),$De=function(){function n(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Zy.connect(this,t)}return n.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!cB(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Zy.observe(this,t,r)},n.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!cB(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Zy.unobserve(this,t)},n.prototype.disconnect=function(){Zy.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}(),ADe=by,ODe=Pu,DDe=gy,MDe=Jp,PDe=TypeError,wB=function(n){return function(t,r,i,a){ADe(r);var o=ODe(t),s=DDe(o),c=MDe(o),l=n?c-1:0,u=n?-1:1;if(i<2)for(;;){if(l in s){a=s[l],l+=u;break}if(l+=u,n?l<0:c<=l)throw PDe("Reduce of empty array with no initial value")}for(;n?l>=0:c>l;l+=u)l in s&&(a=r(a,s[l],l,o));return a}},IDe={left:wB(!1),right:wB(!0)},RDe=rc,LDe=Vr,NDe=RDe(LDe.process)=="process",FDe=Qs,BDe=IDe.left,jDe=pN,xB=yy,zDe=NDe,VDe=jDe("reduce"),UDe=!zDe&&xB>79&&xB<83;FDe({target:"Array",proto:!0,forced:!VDe||UDe},{reduce:function(t){var r=arguments.length;return BDe(this,t,r,r>1?arguments[1]:void 0)}});var HDe=ga,WDe=function(){var n=HDe(this),t="";return n.hasIndices&&(t+="d"),n.global&&(t+="g"),n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.dotAll&&(t+="s"),n.unicode&&(t+="u"),n.unicodeSets&&(t+="v"),n.sticky&&(t+="y"),t},Dk=Hn,GDe=Vr,Mk=GDe.RegExp,Pk=Dk(function(){var n=Mk("a","y");return n.lastIndex=2,n.exec("abcd")!=null}),qDe=Pk||Dk(function(){return!Mk("a","y").sticky}),YDe=Pk||Dk(function(){var n=Mk("^r","gy");return n.lastIndex=2,n.exec("str")!=null}),KDe={BROKEN_CARET:YDe,MISSED_STICKY:qDe,UNSUPPORTED_Y:Pk},ZDe=Hn,JDe=Vr,XDe=JDe.RegExp,QDe=ZDe(function(){var n=XDe(".","s");return!(n.dotAll&&n.exec(`
|
|
454
454
|
`)&&n.flags==="s")}),eMe=Hn,tMe=Vr,nMe=tMe.RegExp,rMe=eMe(function(){var n=nMe("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"}),tf=ja,Jy=Kn,iMe=Lu,aMe=WDe,oMe=KDe,sMe=vC,lMe=XC,cMe=Zp.get,uMe=QDe,dMe=rMe,pMe=sMe("native-string-replace",String.prototype.replace),Xy=RegExp.prototype.exec,Ik=Xy,fMe=Jy("".charAt),hMe=Jy("".indexOf),mMe=Jy("".replace),Rk=Jy("".slice),Lk=function(){var n=/a/,t=/b*/g;return tf(Xy,n,"a"),tf(Xy,t,"a"),n.lastIndex!==0||t.lastIndex!==0}(),CB=oMe.BROKEN_CARET,Nk=/()??/.exec("")[1]!==void 0,gMe=Lk||Nk||CB||uMe||dMe;gMe&&(Ik=function(t){var r=this,i=cMe(r),a=iMe(t),o=i.raw,s,c,l,u,d,p,f;if(o)return o.lastIndex=r.lastIndex,s=tf(Ik,o,a),r.lastIndex=o.lastIndex,s;var h=i.groups,m=CB&&r.sticky,g=tf(aMe,r),y=r.source,b=0,w=a;if(m&&(g=mMe(g,"y",""),hMe(g,"g")===-1&&(g+="g"),w=Rk(a,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&fMe(a,r.lastIndex-1)!==`
|
|
@@ -616,7 +616,7 @@ Glöm inte bort att läsa dokumentet från {{company.name}}. Läs mer och lämna
|
|
|
616
616
|
|
|
617
617
|
{{docLink}}`}}},expires:{type:"object",required:["subject","title","content"],properties:{subject:{type:"string",default:"Påminnelse! Dokumentet - {{document.data.name}} - behöver ditt svar"},title:{type:"string",default:"Hej{{clientFirstName}}!"},content:{type:"string",default:"Dokumentet från {{company.name}} löper snart ut, lämna ett svar innan det är för sent. Klicka på knappen för att läsa mer och lämna ett svar."},text:{type:"string",default:`Hej{{clientFirstName}}! Du har ett dokument från {{company.name}} där giltighetstiden snart går ut. Lämna ett svar innan det blir för sent på:
|
|
618
618
|
|
|
619
|
-
{{docLink}}`}}}}},z2={isEditable:!1,nodes:[{itemId:"emailTemplate",itemType:"emailTemplate",value:{subject:"data.emailTemplate.first.subject",text:"data.emailTemplate.first.text",title:"data.emailTemplate.first.title",content:"data.emailTemplate.first.content"}}]},V2={isEditable:!1,nodes:[{itemId:"smsText",itemType:"smsText",value:{text:"data.smsTemplate.first.text"}}]},U2=In[Xe.brand].defaultRegion==="SE",i6={type:"object",default:{useVat:U2,vatType:"vat",rounding:{enabled:U2,interval:U2?100:1,show:U2}}},a6={$ref:`${Xe.api.baseUrl}/schemas/css/1.json`,default:{'[data-typography="title"]':{fontFamily:"Inter",fontSize:"56px",fontWeight:800},h1:{fontFamily:"Inter",fontSize:"48px",fontWeight:800},h2:{fontFamily:"Inter",fontSize:"36px",fontWeight:700},h3:{fontFamily:"Inter",fontSize:"21px",fontWeight:600},blockquote:{fontFamily:"Inter",fontSize:"18px",borderLeftStyle:"solid",borderLeftWidth:"3px",borderColor:"currentColor"},p:{fontFamily:"Inter",fontSize:"16px"}}},o6={type:"object",default:{}},s6={anyOf:[{type:"string"},{type:"null"}],default:""},l6={anyOf:[{type:"string"},{type:"null"}]},c6={anyOf:[{type:"string"},{type:"null"}]},u6={$ref:`${Xe.api.baseUrl}/schemas/price/1.json`},d6={type:"string",format:"date-time"},p6={type:"object"},DV={reminders:Mg,smsTemplate:n6,emailTemplate:r6,emailView:z2,smsView:V2,formSettings:i6,sender:o6,name:s6,senderString:l6,receiverString:c6,prices:u6,css:a6,expiresAt:d6,fields:p6};let vze=class{constructor({data:t,clients:r=[],useVat:i,rounding:a,currency:o}){if(!t)throw new Error("Missing param data");this._data=t,this._clients=r,this._useVat=i,this._rounding=a,this._currency=o}get data(){return this._data}get useVat(){return this._useVat}get rounding(){return this._rounding}get title(){return this._data.title}get type(){return this._data.type}get selectedPackages(){return this.packages.filter(t=>t.isSelected)||[]}get selectedArticles(){return this.selectedPackages.reduce((t,{articles:r})=>[...t,...r],[])}get priceType(){return Ce(this,"selectedPackages[0].prices.type","fixed")}get currency(){return Ce(this,"selectedPackages[0].prices.currency")||this._currency}get maxTotal(){return this.priceType==="openAccMaxPrice"?this.selectedPackages.reduce((t,{prices:r})=>t+r.maxTotal,0):null}get houseWorkManualAmount(){return this.selectedPackages.some(({prices:t})=>Ce(t,"region.houseWorkManualAmount",null)!==null)?this.selectedPackages.reduce((t,{prices:r})=>{const{houseWorkManualAmount:i}=r.region||{};return i?t+i:t},0):null}get prices(){return $2({type:this.priceType,currency:this.currency,articles:this.selectedArticles,clients:this._clients,maxTotal:this.maxTotal,region:{country:"sweden",houseWorkManualAmount:this.houseWorkManualAmount},useVat:this._useVat,rounding:this._rounding})}get packages(){return this._data.packages.map(t=>({...t,type:this.type,prices:$2({type:Ce(t,"data.prices.type","fixed"),currency:Ce(t,"data.prices.currency")||this.currency,articles:t.articles,clients:t.clients,maxTotal:Ce(t,"data.prices.maxTotal",null),region:{country:"sweden",houseWorkManualAmount:Ce(t,"data.prices.region.houseWorkManualAmount",null)},useVat:this._useVat,rounding:this._rounding})}))||[]}get articles(){return this.packages.reduce((t,{articles:r})=>[...t,...r],[])}getPackageById(t){return this.packages.find(({packageId:r})=>r===t)}};class yze{constructor({data:t={},articles:r=[],clients:i=[],useVat:a,rounding:o,currency:s}){if(!t)throw new Error("Missing param data");this._data=Object.keys(t||{}).reduce((c,l)=>({...c,[l]:new vze({data:{...t[l],packages:t[l].packages.map(u=>({...u,articles:r.filter(({packageId:d})=>d===u.packageId),clients:i}))},clients:i,useVat:a,rounding:o,currency:s})}),{})}get packages(){return Object.keys(this._data).reduce((t,r)=>[...t,...this._data[r].packages],[])}get selectedPackages(){return this.packages.filter(({isSelected:t})=>t)}get selectedArticles(){return Object.keys(this._data).reduce((t,r)=>[...t,...this._data[r].selectedArticles],[])}get selectedIds(){return Object.keys(this._data).reduce((t,r)=>[...t,...this._data[r].packages.filter(({isSelected:i})=>i).map(({packageId:i})=>i)],[])}get groups(){return Object.keys(this._data).map(t=>this._data[t])}get groupsPrices(){return(this.groups||[]).map(({prices:t})=>t)}getPackageGroupById(t){const r=Object.keys(this._data).find(i=>this._data[i].packages.find(({packageId:a})=>a===t));return this._data[r]}getPackageGroupUniqId(t){return this._data[t]||{}}getPackageById(t){const r=this.getPackageGroupById(t);return r?r.getPackageById(t):{}}}let f6=class{constructor(t,{computedPricing:r=!0,isPreview:i=!1,readPrices:a=!0,props:o={},settingsTheme:s={}}={}){if(!t)throw new Error("Missing param data");this._doc=t,this._doc=yNe(this._doc,s),this._doc=Fz(this._doc),this._computedPricing=r,this._theme=s,this._props=o,this._readPrices=a,this._isPreview=i,this._pdfOptions={},this._template=this._doc.template?new il(this._doc.template):null,this._dirtyKeys={}}get data(){return this._doc.data}deleteProperty(t){Hz(this,`_doc.${t}`)}get receiverString(){return Ce(this._doc,"data.receiverString")||Ce(this._props,"defaultReceiverString")||Be.t("_common:receiver",{lng:this.language,postProcess:"capitalize"})}get senderString(){return Ce(this._doc,"data.senderString")||Ce(this._props,"defaultSenderString")||Be.t("_common:sender",{lng:this.language,postProcess:"capitalize"})}get sender(){const t=Ce(this._doc,"data.sender",{});return{company:{...this._doc.company&&{publicId:this._doc.company.publicId,name:this._doc.company.name,orgNo:this._doc.company.organisationNumber,phone:this._doc.company.phone,logotype:this._doc.company.LogotypePublicId?`${Xe.api.baseUrl}/file/${this._doc.company.LogotypePublicId}/download`:null,hasFSkatt:this._doc.company.fSkatt,hasInsurance:this._doc.company.insurance,region:this._doc.company.region},...mf(t.company)},user:{...this._doc.companyUser&&{name:`${this._doc.companyUser.firstname||""} ${this._doc.companyUser.lastname||""}`.trim(),email:this._doc.companyUser.email,cellphone:this._doc.companyUser.cellphone,avatar:this._doc.companyUser.AvatarPublicId?`${Xe.api.baseUrl}/file/${this._doc.companyUser.AvatarPublicId}/download`:null},...mf(t.user)}}}set sender(t){t.company&&(this._doc.company=t.company),t.user&&(this._doc.companyUser=t.user)}get senderClient(){return this._doc.senderClient?{...this._doc.senderClient,isSender:!0}:null}get viewer(){return this._doc.viewerId?this.clients.find(({publicDocumentId:r})=>r===this._doc.viewerId):null}get remainingSignatures(){return this.clients.filter(({documentRole:t})=>["signee","approver"].includes(t)).reduce((t,r)=>Ce(r,"answer.didAccept")?t:t+1,0)}get answerActions(){const t={canAnswer:!1,hasAnswered:!1,showActions:!1,waitingForOthers:!1},r=!!Ce(this.viewer,"answer"),i=!!Ce(this.viewer,"answerMethod.accept",!1)&&["signee","approver"].includes(Ce(this.viewer,"documentRole")),a=["sent","draft"].includes(this.status);return i&&a&&!r&&(t.canAnswer=!0),t.showActions=i||this.isPreview,t.hasAnswered=r,t.waitingForOthers=r&&a,t}get id(){return this._doc.id||null}set id(t){this._doc.id=t}get publicId(){return this._doc.publicId||null}get name(){return this.data.name||null}set name(t){this.data.name=t}get articles(){return[...this.packageGroups.selectedArticles,...this.allArticles.filter(({packageId:t})=>!t)]}get allArticles(){return this._doc.articles||[]}set allArticles(t){this._doc.articles=t}get createdAt(){return this._doc.createdAt}get sentAt(){return this._doc.sentAt||null}get lastSentAt(){return this._doc.lastSentAt||null}get expiresAt(){return this.data.expiresAt||null}set expiresAt(t){this.data.expiresAt=t}get acceptedAt(){return this._doc.acceptedAt||null}get projectId(){return this._doc.projectId||null}get docNumber(){return this._doc.docNumber||{series:"document",value:null}}set docNumber(t){this._doc.docNumber=t}get status(){return this._doc.status||null}get useSignOrder(){return this._doc.useSignOrder||!1}get clients(){return this._doc.clients||[]}set clients(t){this._doc.clients=t}get recipients(){return[...this.senderClient?[this.senderClient]:[],...this.clients]}get template(){return this._template}get isPreview(){return this._isPreview||!1}get isHidden(){return this._doc.isHidden||!1}get excludeFromStats(){return this._doc.excludeFromStats||!1}get setPricesIncVat(){return Ce(this,"data.formSettings.setPricesIncVat",null)&&this.useVat}get formSettings(){return Ce(this,"data.formSettings")}get useVat(){return this.formSettings.useVat}get rounding(){return this.formSettings.rounding}get vatType(){return this.formSettings.vatType}get rejectReasons(){const{rejectReasons:t}=this.data;if(!t)return null;const r=cn(t);return r==="array"?t:r==="object"?Object.keys(t).map(i=>t[i]):null}get personalMessage(){return this.data.personalMessage||null}get sourceDocument(){return this.data.sourceDocument||null}get reminders(){return this._doc.data.reminders||[]}set reminders(t){this._doc.data.reminders=t}set packageGroups(t){this._doc.data.packageGroups=t}get packageGroups(){return new yze({data:this._doc.data.packageGroups,articles:this.allArticles,clients:this.clients,useVat:this.useVat,rounding:this.rounding,currency:this.currency})}get events(){const{events:t=[]}=this._doc,r=t.filter(a=>a.code!=="statusChanged"||["accepted","denied"].includes(a.data.status)),i=this.clients.filter(a=>["signee","approver"].includes(a.documentRole)).length;for(const[a,o]of r.entries()){const s=r[a+1];s&&s.code==="statusChanged"&&(s.data.status!==o.code||i<=1)&&r.splice(a+1,1)}return["viewed","mailOpened"].reduce((a,o)=>pNe(a,o),r)}get virtualStatus(){const{status:t,scheduledFirstDelivery:r}=this||{};return t==="draft"&&(r==null?void 0:r.status)==="active"?"scheduled":t}get lastViewedAgo(){var i;let t=null;const{events:r=[]}=this._doc;return(i=r==null?void 0:r.filter(a=>a.code==="viewed"))==null||i.forEach(a=>{(!t||a.updatedAt>t)&&(t=a.updatedAt)}),t&&p0e({code:"viewed",updatedAt:t})}get scheduledFirstDelivery(){const{reminders:t=[]}=this.data;return t.length&&t.find(r=>r.type==="first")||null}get type(){return this.categoryTags[0]}get categoryTags(){return Ce(this._doc,"tags",[]).reduce((t,r)=>[...t,r.name],[])}get language(){return Ce(this,"_doc.language","en")}set language(t){return Ur(this,"_doc.language",t)}get externalReferences(){return Ce(this,"_doc.externalReferences",[])}set externalReferences(t){return Ur(this,"_doc.externalReferences",t)}get currency(){return Ce(this,"_doc.currency")}get tags(){return Ce(this,"_doc.tags",[])}set tags(t){return Ur(this,"_doc.tags",t)}setTag(t,r){const i=this.tags.find(a=>a.type===t);i?i.name=r:this.tags.push({type:t,name:r})}get readPrices(){return this._readPrices}get prices(){return fNe(this._doc)}get dynamicPrices(){const{groups:t}=this.packageGroups,r={min:0,max:0};return(t||[]).forEach(({type:i,prices:a={},packages:o,articles:s,useVat:c,rounding:l})=>{const{total:u,type:d}=a;let p={min:u,max:u};if(o&&o.length){if(i==="radio")p=o.reduce((f,{prices:h})=>(f.min===null&&(f.min=h.total),h.total>f.max&&(f.max=h.total),h.total<f.min&&(f.min=h.total),f),{...p,min:null});else if(i==="checkbox"){const[f,h]=o.reduce(([m,g],y)=>y.toggable?[[...m,y],g]:[m,[...g,y]],[[],[]]);if(f.length){const{maxTotal:m,houseWorkManualAmount:g}=o.reduce((b,{prices:w})=>(b.maxTotal+=w.maxTotal,b.houseWorkManualAmount+=Ce(w,"region.houseWorkManualAmount",0),b),{maxTotal:0,houseWorkManualAmount:0}),{total:y}=$2({type:d,articles:s,currency:this.currency,clients:this.clients,maxTotal:m,region:{country:"sweden",houseWorkManualAmount:g},useVat:c,rounding:l});p.max=y}h.length?p.min=h[0].prices.total:p.min=f.reduce((m,g)=>((m===null||m>g.prices.total)&&(m=g.prices.total),m),null)}}r.min+=p.min,r.max+=p.max}),r}get cachedInvoices(){const{cachedInvoices:t}=this._doc;return!t||!t.invoices?[]:Object.keys(t.invoices).map(r=>t.invoices[r])}get invoiceIds(){const{cachedInvoices:t}=this._doc;return!t||!t.invoices?[]:Object.keys(t.invoices)}get invoicedAmount(){const{cachedInvoices:t}=this._doc;if(!t||!t.invoices)return 0;const r=t.invoices;return Object.keys(r).reduce((i,a)=>r[a]&&r[a].totalAmount?i+r[a].totalAmount:i,0)}set props(t){this._props=t}get theme(){const t={background:"https://images.unsplash.com/photo-1468233748640-b31327627610?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&w=1280&q=80",backgroundFilter:null,showClingLogo:null,showPriceSummary:!0,priceSummaryBackground:"hsla(215, 14%, 34%, 1)",headingColor:"hsla(215, 14%, 34%, 1)",fontFamily:null},r=Ce(this._doc,"data.theme",{});return{...t,...this._theme,...mf(r)}}set theme(t){this._theme=t}set pdfOptions(t){this._pdfOptions=t}getAllNodesWithType(t){return(Ce(this,"template.views.read.nodes")||[]).filter(({itemType:i})=>i===t)}get attachedFiles(){const t=[];return this.getAllNodesWithType("attachments").forEach(r=>{const i=r.value.attachments;if(!i)return;const a=Ce(this,i);a&&Array.isArray(a)&&t.push(...a)}),t}get readLayout(){return this.getReadLayout()}getReadLayout({showHiddenNodes:t=!1}={}){if(!this.template)return[];const r={...this.template.defaultData,...this._doc,data:{...this._doc.data,...this.clients.length&&{clients:this.clients.filter(o=>o.documentRole!=="recipient")},...this._computedPricing&&{prices:this.prices},sender:{...this.sender.company,...this.sender.user,name:this.sender.user.name,avatar:this.sender.user.avatar,...this.sender.user.email&&{email:this.sender.user.email},...this.sender.user.cellphone&&{cellphone:this.sender.user.cellphone},type:"company",companyName:this.sender.company.name},receiverString:this.receiverString,senderString:this.senderString}},a=[...OV({data:r,tree:this.template.views.read.nodes,bindData:!0,customProps:this._props,pdfOptions:this._pdfOptions})];return t?a:Rz({nodes:a,data:r})}get fields(){return{...hNe(this._doc),...this._doc.data.fields}}get textTemplateMap(){const{fields:t}=this;return Object.keys(t).reduce((r,i)=>({...r,[t[i].key]:t[i].label}),{})}get textTemplateItems(){const t=this.textTemplateMap||{};return Object.keys(t).reduce((r,i)=>[...r,{id:i,label:t[i],tooltip:Ce(this._doc,i)}],[])}get usedFields(){return t6(this.data)}get hasAnswers(){return this.clients.filter(({documentRole:t})=>["signee","approver"].includes(t)).some(({answer:t})=>!!t)}removeAnswer(){this._doc.acceptedAt=null,this._doc.status="draft",this.clients.forEach(t=>{t.answer=null})}setAnswerMethod({accept:t,deny:r}){if(typeof t>"u"&&typeof r>"u")throw new Error("Missing param accept or deny");this.removeAnswer(),t&&(Ur(this,"_doc.data.defaultAnswerMethod.accept",t),Ur(this,"_doc.template.defaultAnswerMethod.accept",t)),r&&(Ur(this,"_doc.data.defaultAnswerMethod.deny",r),Ur(this,"_doc.template.defaultAnswerMethod.deny",r)),this.clients.filter(({documentRole:i})=>["signee","approver"].includes(i)).forEach(i=>{i.answer=null,t&&(i.answerMethod.accept=t),r&&(i.answerMethod.accept=t)})}resetReminders(){const{template:t}=this,{reminders:r}=t;this.reminders=r}resetDefaultSelected(){const t=this._doc.data.packageGroups;t&&(this.packageGroups=Object.keys(t).reduce((r,i)=>({...r,[i]:{...t[i],packages:(t[i].packages||[]).map(a=>({...a,isSelected:a.isSelectedDefault||t[i].type==="single"}))}}),{}))}clone(){const t=this;return Object.assign(Object.create(Object.getPrototypeOf(t)),JSON.parse(JSON.stringify(t)))}duplicate(){const t=this.clone();return t.id=null,t._doc._id=null,t.deleteProperty("data.expiresAt"),t.deleteProperty("data.rejectReasons"),t.deleteProperty("company"),t.deleteProperty("companyUser"),t.deleteProperty("senderClient"),t.clients=t.clients.map(r=>es(r,["id","_id","publicDocumentId","answer"])),t.allArticles=t.allArticles.map(r=>es(r,["id","_id","createdAt","updatedAt","deletedAt"])),t.resetReminders(),t.resetDefaultSelected(),t}copyTemplateDocDefault({keepClients:t=!1}={}){const{template:r,articles:i,data:a,tags:o,docNumber:s,language:c,currency:l,clients:u,useSignOrder:d}=this.duplicate().getRawData();Object.keys(a).forEach(f=>{Ce(r,`validationSchema.properties.data.properties.${f}`)?Ur(r,`validationSchema.properties.data.properties.${f}.default`,a[f]):Object.keys(DV).includes(f)&&Ur(r,`validationSchema.properties.data.properties.${f}`,{...DV[f],default:a[f]})});const p={articles:i,tags:o,docNumber:s,currency:l,useSignOrder:d};return delete s.value,t&&(p.clients=u),Object.keys(p).forEach(f=>{p[f]&&Ur(r,`validationSchema.properties.${f}.default`,p[f])}),r.language=c,r}getRawData(){return{...this._doc,data:{...this._doc.data,prices:this.prices,name:this.name||""}}}get allowVerification(){return this.status==="accepted"||this.clients.some(({answerMethod:t})=>t&&t.accept==="inPerson")}async formatPhone(t,{defaultRegion:r}={}){return qM(t,{defaultRegion:r||this.sender.company.region})}setDirty(t){this._dirtyKeys[t]=!0}isDirty(t){return!!this._dirtyKeys[t]}$t(t,r={},{fnType:i="t"}={}){const a={lng:this.language,...r},o=["exVat","incVat","vat.exVat","vat.incVat"],s=t&&t.includes(":")?t.split(":")[1]:t;return s==="vat"?Cu[i](`vat.${this.vatType}`,{...a}):(o.includes(s)&&(a.thing=Cu[i](`vat.${this.vatType}`,a)),Cu[i](t,{...a}))}$tc(t,r={}){return this.$t(t,r,{fnType:"tc"})}};const bze=n=>n.map(t=>({...t,price:0,totalAmount:0,invoicedAmount:0,showPrice:!1}));class fc extends f6{constructor({data:t,documentOptions:r={},can:i,getters:a,updateSender:o=!1}){if(!a)throw new Error("Missing param getters");let s=t;i&&!i("prices","read")&&Ce(t,"articles",[]).length&&(s={...t,articles:bze(t.articles)});const{senderString:c,receiverString:l,fSkatt:u,insurance:d,offerBrandingBackgroundUrl:p,documentThemeBackgroundFilter:f,documentShowPriceSummary:h,documentThemePriceBackground:m,documentThemePrimaryColor:g,presentationFontFamily:y,showClingLogo:b}=a["settings/allCompanySettings"]||{};super(s,{...r,props:{defaultSenderString:c,defaultReceiverString:l,...r.props},readPrices:i?i("prices","read"):!0,isPreview:!0,settingsTheme:mf({background:p,backgroundFilter:f,showPriceSummary:h,priceSummaryBackground:m,headingColor:g,fontFamily:y,showClingLogo:b})}),this._documentOptions=r,this._can=i,this._defaultScope="documents",this._getters=a;const w=o||!Object.keys(Ce(this,"_doc.company",{})).length||!Object.keys(Ce(this,"_doc.companyUser",{})).length,S=w?this._doc.companyId?a["companies/companyById"](this._doc.companyId):a["application/company"]:this._doc.company;S&&w&&(S.fSkatt=u,S.insurance=d);const k=w?this._doc.companyUserId?a["companyUsers/referenceById"](this._doc.companyUserId):a["application/user"]:this._doc.companyUser;this.sender=this._documentOptions.sender||{company:S,user:k};const $=this._getters["application/companyAccount"],T=Ce($,"customViewRoute"),A=this._getters["application/feature"]("subdomain")&&T;this._baseDomain=A?T:Xe.baseUrl}can(t,r=null,i=null){if(!this._can)return!0;if(typeof t!="string")throw new Error("Permission must be of type String");return this._can(r||this._defaultScope,t,i||this.id)}get companyId(){return this._doc.companyId}get companyUserId(){return this._doc.companyUserId}resetReminders(){super.resetReminders();let{reminders:t}=this;if(!t.length)return;const{_getters:r}=this,i=r["settings/reminderSettings"],a=(o,s)=>t.filter(({type:c})=>c===o).map(c=>(c.sendDays=s,!0));typeof i.notAnswered<"u"&&a("reminder",i.notAnswered),typeof i.notViewed<"u"&&a("viewed",i.notViewed),typeof i.expires<"u"&&a("expires",i.expires),t=t.filter(({type:o,sendDays:s})=>o==="first"||s),this.reminders=t}clone(){return new fc({data:JSON.parse(JSON.stringify(this._doc)),documentOptions:this._documentOptions,can:this._can,getters:this._getters})}async isValid(){const t=this.getRawData();try{return await Ki.validate(t),!0}catch{return!1}}get clients(){return super.clients.map(t=>({...t,docLink:`${this._baseDomain}/document/${t.publicDocumentId}`,...t.customDocLinkRendered?{docLink:t.customDocLinkRendered}:{}}))}set clients(t){super.clients=t}}const _ze=n=>({id:null,name:"Default Empty",validationSchema:{type:"object",required:["clients","data"],properties:{tags:{type:"array",default:[{name:"document",type:"category"}]},docNumber:{type:"object",properties:{series:{type:"string",default:"document"}}},clients:{type:"array",default:[]},data:{type:"object",required:["name"],properties:{partiesString:{anyOf:[{type:"string"},{type:"null"}],default:Be.t("components:document.chapters.parties.title",{lng:n})},"header-kh0loiq7":{default:{layout:"vertical",baseStyle:{textAlign:"left",textColor:"#f0ce84"},items:[{type:"media",size:35,media:{type:"image",resourceUrl:"https://images.unsplash.com/photo-1581660545544-83b8812f9516?ixlib=rb-1.2.1&auto=format&fit=crop&w=1800&q=80"}},{type:"content",size:65,media:{type:"color",backgroundColor:"#17346e"},value:{preText:"",documentName:'<p data-typography="title"></p>',postText:"<p></p>",showLogo:!0,logotype:""}}]},$ref:`${Xe.api.baseUrl}/schemas/header/2.json`},packageGroups:{default:{kh0lol91:{type:"",title:Be.t("components:document.chapters.packageGroup.title",{lng:n}),hideGroupPrice:!1,packages:[]}},$ref:`${Xe.api.baseUrl}/schemas/packageGroups/1.json`},"title-kh0los53":{anyOf:[{type:"string"},{type:"null"}]},"content-kh0los54":{anyOf:[{type:"string"},{type:"null"}]},defaultAnswerMethod:{default:{accept:"signature",deny:"button"},$ref:`${Xe.api.baseUrl}/schemas/answer/1.json`},name:s6,sender:o6,senderString:l6,receiverString:c6,prices:u6,css:a6,fields:p6,expiresAt:d6,formSettings:i6,reminders:Mg,smsTemplate:n6,emailTemplate:r6}}}},views:{edit:{isEditable:!0,nodes:[]},read:{isEditable:!0,nodes:[{itemId:"header-kh0loiq7",itemType:"header",value:{header:"data.header-kh0loiq7"}},{itemId:"parties",itemType:"section",value:{title:"data.partiesString"},children:[{itemId:"clients",itemType:"subSection",value:{title:"data.receiverString"},children:[{itemId:"clientsList",itemType:"party",value:{parties:"clients"}}]},{itemId:"sender",itemType:"subSection",value:{title:"data.senderString"},children:[{itemId:"senderList",itemType:"party",value:{parties:"data.sender"}}]}]},{itemId:"packageGroup-kh0lol91",itemType:"section",value:{title:"data.packageGroups.kh0lol91.title"},children:[{itemId:"group",itemType:"selectionGroup",value:{groupId:"kh0lol91",type:"data.packageGroups.kh0lol91.type",packages:"data.packageGroups.kh0lol91.packages"}}]},{itemId:"titleAndText2",itemType:"section",value:{title:"data.title-kh0los53"},children:[{itemId:"kh0los52",itemType:"html",value:{content:"data.content-kh0los54"}}]},{itemId:"answer",itemType:"answer",value:{defaultAnswerMethod:"data.defaultAnswerMethod"}}]},email:z2,sms:V2},isVisible:!0,language:n}),MV={default:n=>{const t=_ze(n);return{...t,views:Object.keys(t.views).reduce((r,i)=>({...r,[i]:{...t.views[i],nodes:bf(t.views[i].nodes,{setId:!0})}}),{})}},empty:n=>({id:null,name:"Empty",validationSchema:{type:"object",required:["clients","data"],properties:{tags:{type:"array",default:[{name:"document",type:"category"}]},docNumber:{type:"object",properties:{series:{type:"string",default:"document"}}},clients:{type:"array",default:[]},data:{type:"object",required:["name"],properties:{name:s6,sender:o6,senderString:l6,receiverString:c6,prices:u6,css:a6,fields:p6,expiresAt:d6,formSettings:i6,reminders:Mg,smsTemplate:n6,emailTemplate:r6}}}},views:{edit:{isEditable:!0,nodes:[]},read:{isEditable:!0,nodes:[]},email:{...z2,nodes:bf(z2.nodes,{setId:!0})},sms:{...V2,nodes:bf(V2.nodes,{setId:!0})}},isVisible:!0,language:n})},{FORM_CLEAR_FORM:PV,CLEAR_DOCUMENT2_ANSWERS:IV,DO_SEND_DOCUMENT2:wze,SHOW_MESSAGE:xze,LOAD_ENDCUSTOMER:Cze,UPDATE_TEMPLATE:kze,DO_CREATE_TEMPLATE:Sze}=He,{LOAD_DOCUMENT2_FORM:Tze,LOAD_DOCUMENT2_PUBLIC_FORM:Eze,LOAD_DUPLICATE_DOCUMENT2_FORM:RV,SAVE_DYNDOC_FORM:$ze,CLEAR_DYNDOC_FORM:Aze,DO_SAVE_DYNDOC:LV,HANDLE_DOCUMENT2_EDIT:Oze,SAVE_TEMPLATE_FORM:Dze,LOAD_EXTERNAL_FORM_FIELDS:h6}=hj,{SET_FORM:m6,SET_FORM_VALUE:NV}=$t.forms;async function Mze({id:n=null,templateId:t=null,rootState:r,state:i,rootGetters:a,dispatch:o}){if(!r)throw new Error("Missing parameter rootState");if(!i)throw new Error("Missing parameter state");if(!a)throw new Error("Missing parameter rootGetters");if(!o)throw new Error("Missing parameter dispatch");let s=!1;const c=a["forms/document"];if(!c)return!1;const{name:l,params:{id:u}}=r.route||{},{id:d,template:{id:p}}=c;return["documentForm"].includes(l)&&(n?d&&d===u&&d===n&&(Pn.debug("DYNDOC_FORM: Using existing store data existing id match route"),s=!0):!d&&!n&&(t==="default"&&!p||t===p)&&(Pn.debug("DYNDOC_FORM: Using existing store data as no ids was found"),s=!0)),s&&Pn.debug("DYNDOC_FORM: Dont reload as forms/document2 is already defined"),s}const Pze={async[Tze]({commit:n,rootState:t,rootGetters:r,state:i,dispatch:a},{documentId:o=null,templateId:s=null,addonDocumentSourceId:c=null,projectId:l=null,clientId:u=null,formData:d=null,_formData:p=null,dummyClient:f=!1}={}){if(await Mze({id:o,templateId:s,rootState:t,state:i,rootGetters:r,dispatch:a})&&!c)return;let m={id:null,__tempId:Ut(),companyUserId:this.getters["application/user"].id,language:this.getters["settings/getCompanyUserSetting"]("defaultLanguage")||"en",currency:this.getters["settings/getCompanyUserSetting"]("defaultCurrency"),data:{},template:null,articles:[],clients:[],...p&&{...p},...d};if(!d){if(o){await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:o});const w=this.getters["documents2/byId"](o);m={...m,...w.getRawData()}}else if(s){let w=["default","empty"].includes(s)?new il(MV[s](m.language)):this.getters["templates/byId"](s);if(["offertaPdfTemplate","onboardingTemplate"].includes(s)){const{data:S}=await Du.get(s);w=new il(S)}if(w||(await this.dispatch(He.LOAD_TEMPLATE,{id:s}),w=this.getters["templates/byId"](s)),!w)throw new Error(`Could not find template by id: '${s}'`);m.template={...w._data,defaultData:w.defaultData}}const b=Ce(m,"template.defaultData",{});if(m={...m,...b,clients:[...(b==null?void 0:b.clients)||[],...m.clients]},Object.keys(t.settings.company).length||await this.dispatch(He.LOAD_SETTINGS_COMPANY),c){await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:c});const w=this.getters["documents2/byId"](c),{publicId:S,clients:k}=w.duplicate();m={...m,projectId:w.projectId,clients:k,data:{...m.data,sourceDocument:{id:c,publicId:S}}}}}if(l&&(m.projectId=l),u){await this.dispatch(Cze,{id:u});const b=r["endCustomers/endCustomerById"](u),w=Ce(m,"template.defaultData.data.defaultAnswerMethod"),S=TS(b,{...w&&{answerMethod:w}});m.clients=[...m.clients,S]}if(f){const b=["email"];ai.checkFeature("sms")&&b.push("sms"),m.clients=[...m.clients,{name:"Pernilla P.",email:"pernilla@mail.se",cellphone:"073 123 56 78",documentRole:"signee",type:"individual",deliveryTypes:b}]}if(s==="onboardingTemplate"){const b=r["application/user"]||{},w=r["application/company"]||{},S={type:"company",email:b.email,companyName:w.name||(m.language==="sv"?"Konsulterna AB":"The consultants Corp."),name:b.fullName||(m.language==="sv"?"Test Testson":"John Doe"),...b.cellphone?{cellphone:b.cellphone}:{},...w.region&&{cellphoneRegion:w.region}};m.clients=[...m.clients,kp({...Sg(),...S})]}const g=Ce(m,"data.defaultAnswerMethod",null);g&&(m.clients=m.clients.map(b=>Ce(b,"answerMethod.accept")!=="inPerson"?{...b,answerMethod:g}:b)||[]);let y={...m,data:{...m.data,...!o&&{reminders:this.getters["forms/getDocumentAccountDefault"]("reminders",{template:new il(m.template)})}}};y=Fz(y),n(m6,{key:"document2",formData:y}),a(h6)},async[Eze]({commit:n},{formData:t=null}={}){let r={id:null,language:Be.lang,currency:In[Xe.brand].defaultCurrency,data:{},template:null,articles:[],clients:[],...t};if(!t){if(!r.template){const o=new il(MV.default(r.language));r.template={...o._data,defaultData:o.defaultData}}const a=Ce(r,"template.defaultData",{});r={...r,...a}}r.language==="sv"&&r.data.defaultAnswerMethod&&(r.data.defaultAnswerMethod.accept="bankId");const i=Ce(r,"data.defaultAnswerMethod",null);i&&(r.clients=r.clients.map(a=>Ce(a,"answerMethod.accept")!=="inPerson"?{...a,answerMethod:i}:a)||[]),n(m6,{key:"document2",formData:{...r,data:{...r.data}}})},async[RV]({commit:n,dispatch:t},{id:r,publicDocId:i,projectId:a=null,keepClients:o=!1,isPublicForm:s=!1,_formData:c=null}){if(!r&&!i)throw new Error("Missing parameter id");let l;if(i){const{data:S}=await Hp.get(i,{preview:!0});l=new fc({data:S,can:s?null:permissions.checkPermission.bind(permissions),getters:this.getters})}else await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:r}),l=this.getters["documents2/byId"](r);if(!l)throw new Error("Could not find document to duplicate");const u=l.duplicate(),{defaultData:d}=u.template,{template:p,data:f,articles:h,clients:m,language:g,currency:y,externalReferences:b}=u.getRawData(),w={...d,template:p,articles:h,clients:o?m:[],language:g,currency:y,externalReferences:b,...c,data:{...d.data,...f,...c==null?void 0:c.data}};a&&(w.projectId=a),n(m6,{key:"document2",formData:w}),t(h6)},async[Dze](n,{body:t,callback:r}){try{if(!t)throw new Error("Missing param body");t.id?await this.dispatch(kze,{id:t.id,body:t}):await this.dispatch(Sze,{body:t}),typeof r=="function"&&r()}catch(i){this.handleError(i)}},async[$ze]({dispatch:n},{doSend:t=!1}={}){try{const r=await n(LV),i=this.getters["documents2/byId"](r),a=!!Ce(i,"senderClient");return t&&!a&&await this.dispatch(wze,{id:r}),r}catch(r){return this.handleError(r),null}},async[Aze](){try{await this.dispatch(PV,{key:"_old_document2"}),await this.dispatch(PV,{key:"document2"})}catch(n){this.handleError(n)}},async[LV]({rootGetters:n,getters:t,commit:r},{showMessage:i=!0}={}){const{document:a}=t;let{id:o}=a;const s=u=>Cu.t(`documentTemplateView.${u}`,{lng:a.language,interpolation:{prefix:"__",suffix:"__"}}),c=Ce(a,"data.defaultAnswerMethod",null);c&&(a.clients=a.clients.map(u=>Ce(u,"answerMethod.accept")!=="inPerson"?{...u,answerMethod:c}:u));const l={...a,data:{...a.data,name:a.data.name||"",smsTemplate:{first:{text:s("smsTemplate.first.text")},reminder:{text:s("smsTemplate.reminder.text")},expires:{text:s("smsTemplate.expires.text")},viewed:{text:s("smsTemplate.viewed.text")}},emailTemplate:{first:{subject:s("emailTemplate.first.subject"),title:s("emailTemplate.first.title"),content:s("emailTemplate.first.content"),text:s("emailTemplate.first.text")},viewed:{subject:s("emailTemplate.viewed.subject"),title:s("emailTemplate.viewed.title"),content:s("emailTemplate.viewed.content"),text:s("emailTemplate.viewed.text")},reminder:{subject:s("emailTemplate.reminder.subject"),title:s("emailTemplate.reminder.title"),content:s("emailTemplate.reminder.content"),text:s("emailTemplate.reminder.text")},expires:{subject:s("emailTemplate.expires.subject"),title:s("emailTemplate.expires.title"),content:s("emailTemplate.expires.content"),text:s("emailTemplate.expires.text")}}},pdfConfig:{locale:Cu.locale,timeZone:Ce(Intl.DateTimeFormat().resolvedOptions(),"timeZone")||""}};return delete l.company,delete l.companyUser,o?(a.clearAnswerBeforePut&&(await this.dispatch(IV,{id:o,doFetch:!1}),await this.dispatch(He.DO_UPDATE_DOCUMENT2,{id:o,body:{status:"draft"},showMessage:i})),await this.dispatch(He.DO_UPDATE_DOCUMENT2,{id:o,body:l,showMessage:i})):(o=await this.dispatch(He.DO_CREATE_DOCUMENT2,{body:l}),r(NV,{key:"document2.id",value:o})),n["settings/showOverviewOnboardingOverlay"]&&this.dispatch("settings/UPDATE_SETTINGS",{key:"companyUser",settings:{showOverviewOnboardingOverlay:!1}}),o},async[Oze]({getters:n,dispatch:t},{documentId:r=null}={}){let i;if(r?(await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:r}),i=this.getters["documents2/byId"](r)):{document:i}=n,!i)throw new Error("Missing document");const a=i.id?i.can("modify"):i.can("create"),{id:o,status:s,projectId:c,hasAnswers:l}=i;if(a&&(s==="accepted"||l)){const u=s==="accepted"?"accepted":"hasAnswers";this.dispatch(xze,{displayType:"dialog",type:"primary",title:Be.t(`actions:editDocumentDialog.${u}.title`),message:Be.t(`actions:editDocumentDialog.${u}.message`),actions:{cancel:{text:Be.t("_common:cancel"),callback:"cancel"},submit:{text:Be.t(`actions:editDocumentDialog.${u}.submit`),callback:async()=>{if(u==="accepted")await t(RV,{id:o,projectId:c,keepClients:!0}),this.$router.push({name:"documentForm"});else if(u==="hasAnswers"){await this.dispatch(IV,{id:o,doFetch:!0});const d={name:"documentForm",params:o?{id:o}:{}};this.$router.push(d)}}}}})}else if(a){const u={name:"documentForm",params:o?{id:o}:{}};return this.$router.push(u)}return null},async[h6]({rootGetters:n,getters:t,commit:r}){const{document:i}=t;if(i!=null&&i.externalReferences&&i.externalReferences.length)try{await Promise.all((i.externalReferences||[]).map(async({service:a,type:o,typeId:s})=>{if(o&&s&&a&&n["settings/isAuthenticatedCRM"](a)){const{data:c}=await nc.getFields(a,{type:o,typeId:s,populated:!0});r(NV,{key:"document2.data.fields",value:{...Ce(i,"data.fields"),...c}})}}))}catch(a){this.handleError(a)}}},Ize={...eNe,...FNe,...zNe,...Pze,async[ss.FORM_CLEAR_FORM]({commit:n},{key:t}){return n(ls.CLEAR_FORM,{key:t})},async[ss.SET_FORM]({commit:n},{key:t,formData:r}){return n(ls.SET_FORM,{key:t,formData:r})},async[ss.SET_FORM_VALUE]({commit:n},{key:t,value:r}){return n(ls.SET_FORM_VALUE,{key:t,value:r})},async[ss.REMOVE_FORM_VALUE]({commit:n},t){return n(ls.REMOVE_FORM_VALUE,t)},async[ss.REMOVE_FORM_KEY_VALUE]({commit:n},t){return n(ls.REMOVE_FORM_KEY_VALUE,t)},async[ss.FORM_RESET_OLD]({commit:n,rootGetters:t},r){const i=t["forms/getFormByKey"](r);return n(ls.SET_FORM,{key:r,formData:i})}},Rze={},Lze={setDocumentField(n,t){const{path:r,value:i}=t,{root:a,prop:o}=rl(n.document,r,!0);ff(a,{path:o,value:i})}},{SET_FORM:Nze,CLEAR_FORM:Fze,SET_FORM_VALUE:Bze,REMOVE_FORM_VALUE:jze,REMOVE_FORM_KEY_VALUE:zze}=ls,Vze={updateField:ff,...Rze,...Lze,[Nze](n,{key:t,formData:r}){if(cn(r)==="undefined"){console.warn("FormData was undefined!");return}const i=JSON.parse(JSON.stringify(r)),{root:a,prop:o}=rl(n,t,!0);if(Array.isArray(i))Fe.set(a,o,i);else if(typeof i=="object"&&i!==null){const s=Object.assign({},i);Fe.set(a,o,s)}else Fe.set(a,o,i);if(t.split(".").length!==1){console.warn("Using SET_FORM to set individual values");return}n[`_old_${t}`]=JSON.parse(JSON.stringify(n[t]||{}))},[Fze](n,{key:t}){const{root:r,prop:i}=rl(n,t);Fe.set(r,i,{})},[jze](n,t){const{root:r,prop:i}=rl(n,t);if(Array.isArray(r)){Fe.delete(r,i);return}if(r[i]&&Array.isArray(r[i])){Fe.set(r,i,[]);return}if(r[i]&&typeof r[i]=="object"){Fe.set(r,i,{});return}r[i]=void 0},[zze](n,t){const{root:r,prop:i}=rl(n,t);r&&i in r&&delete r[i]},[Bze](n,{key:t,value:r}){const{root:i,prop:a}=rl(n,t,!0),o=cn(r)==="null",s=cn(r)==="array"&&!r.length;if(!o&&i[a]&&cn(i[a])==="array"&&!s&&cn(r)!=="array"){i[a].push(kp(r));return}if(!o&&cn(i)==="array"&&!s){let c=kp(r);typeof i[a]=="object"&&i[a]._uniqueId&&(c={...c,_uniqueId:i[a]._uniqueId}),Fe.set(i,a,c);return}Fe.set(i,a,r)}};function H2(n){const t={email:!1,sms:!1};return Ce(n,"clients",[]).forEach(r=>{r.deliveryTypes.indexOf("sms")>-1&&(t.sms=!0),r.deliveryTypes.indexOf("email")>-1&&(t.email=!0)}),t.sms&&!ai.checkFeature("sms")&&(t.sms=!1),t}const Uze={getField:yg,...{document:({document2:n})=>Object.keys(n).length?n:null,deliveryTypes:n=>H2(n.document2),getDocumentAccountDefault:(n,t,r,i)=>(a,{template:o})=>{let s;if(a==="reminders"){if(s=[],!o)return s;s.push(...o.reminders);const c=(u,d)=>s.filter(({type:p})=>p===u).forEach(p=>{p.sendDays=d}),l=i["settings/reminderSettings"];l.notAnswered!==void 0&&c("reminder",l.notAnswered),l.notViewed!==void 0&&c("viewed",l.notViewed),l.expires!==void 0&&c("expires",l.expires),s=s.filter(({type:u,sendDays:d})=>u==="first"||d)}return s}},...{documentField:n=>t=>{const{document:r={}}=n;let i=t.split(".");i[0]==="document"&&(i=[...i.slice(1)]);let a=r[i[0]];return i.length>1&&(a=i.reduce((o,s)=>o&&o[s],r)),a},isIndivid:n=>{try{return n.document.ModuleEndCustomer.customerType!=="company"}catch{return!0}},isReverseVat:n=>{try{return ai.checkFeature("reverseVat")&&n.document.ModuleEndCustomer.reverseVat===!0}catch{return!1}},getInvoicePrices:({document:n={}},t,r,i)=>{const a={invoiceFee:n.invoiceFee||0,invoiceFeeVat:0,centRoundingAmount:0,totalPriceExVat:0,totalVatAmount:0,totalAmount:0,visualPricing:{},regionPricing:[],reverseVat:t.isReverseVat||!1,type:n.type,paidAmount:0,remainingAmount:0,totalPriceIncVat:0,creditedAmount:0,currency:"SEK"};(n.ModuleArticles||[]).forEach(u=>{const d=Xo(u);if(!d.price||!d.quantity)return;const{totalAmount:p}=d;a.totalPriceExVat+=p,a.totalVatAmount+=p*(d.vat/100),d.vat>a.invoiceFeeVat&&!a.reverseVat&&(a.invoiceFeeVat=d.vat)}),a.totalPriceExVat+=a.invoiceFee,a.totalVatAmount+=a.invoiceFee*a.invoiceFeeVat*.01,a.reverseVat&&(a.totalVatAmount=0),a.regionPricing=t.invoiceRegion.regionPricing;const o=a.regionPricing.reduce((u,d)=>u+d.value,0),s=a.totalPriceExVat+a.totalVatAmount,c=(s+o)*.01,l=Math.round(c)-c;return a.centRoundingAmount=l*100,a.totalAmount=s+o+a.centRoundingAmount,a.type==="credit"&&(a.creditedAmount=a.totalAmount),a.remainingAmount=a.totalAmount,a},invoice:(n,t,r,i)=>{const a={};return Object.keys(Tg).map(s=>(a[s]=i["forms/documentField"](s),s==="ModuleArticles"&&cn(a[s])==="array"&&(a[s]=a[s].filter(c=>c.name),a[s]=a[s].map((c,l)=>({...c,position:l}))),!0)),new $S(a,i)},invoiceRegion:({document:n={}},t,r,i)=>{const a=Xo(n.ModuleArticles||[]),o=n.InvoiceRegionSweden||{},s={applicants:Ce(o,"persons",[]),houseWorkType:null,houseWorkAmount:null,houseWorkMaterial:null,allowRot:!1,allowRut:!1,regionPricing:[],requirePropertyDesignation:!1},c=a.find(f=>f.isDeductable||f.isRut)||{};c.isDeductable?s.houseWorkType="rot":c.isRut&&(s.houseWorkType="rut"),s.requirePropertyDesignation=s.houseWorkType==="rot";const l=a.reduce((f,h)=>f+h.houseWorkDeductionAmount,0),u=a.reduce((f,h)=>!h.isDeductable&&!h.isRut?f:f+h.totalAmount*(100+h.vat)/100,0),d=a.reduce((f,h)=>f+h.houseWorkMaterialCostToReport,0);s.houseWorkAmount=l,s.houseWorkMaterialAmount=d,s.houseWorkDuration=a.reduce((f,h)=>f+h.houseWorkHoursToReport,0),s._totalPriceDeductionArticles=u;const p=o.propertyType==="realEstate";return s.isRealEstate=p,s.propertyId=p?o.realEstateId:o.condominiumId,s.condominiumOrgNo=o.condominiumOrgNo,t.isIndivid&&(s.allowRot=i["settings/getCompanySetting"]("showRot")||!!s.houseWorkAmount,s.allowRut=i["settings/getCompanySetting"]("showRut")||!!s.houseWorkAmount),s.regionPricing=[...s.houseWorkType==="rot"?[{label:"ROT-avdrag",key:"rot",value:-s.houseWorkAmount}]:[],...s.houseWorkType==="rut"?[{label:"RUT-avdrag",key:"rut",value:-s.houseWorkAmount}]:[]],s},kycForm:n=>n.kycForm||null},hasChanged:n=>t=>JSON.stringify(n[t])!==JSON.stringify(n[`_old_${t}`]),getFormByKey:n=>t=>{const r=t.split(".");let i=n;const a=r.pop();return r.length>0&&(i=r.reduce((o,s)=>o[s],n)),i[a]},getArrayElement:n=>(t,r)=>{const{root:i,prop:a}=rl(n,t),o=i[a];if(!Array.isArray(o))throw new Error(`${a} is not an array`);return o.find(c=>c.uniqueId===r)}},Hze={namespaced:!0,state:XLe,getters:Uze,actions:Ize,mutations:Vze},Wze={data:{},ids:[],filePublicIdToId:{},isFetching:!1,isPosting:!1},_f="files",{LOAD_FILE:FV,CREATE_FILE:g6,UPDATE_FILE:v6,DELETE_FILE:BV,PATCH_FILE:jV,FORM_NEW_FILE:Gze,FORM_EDIT_FILE:qze,FORM_SUBMIT_FILE:zV}=u2,{UPDATE_MANY_FILES:VV,DELETE_ONE_FILE:Yze,SET_FILES_FETCHING:UV,SET_FILES_POSTING:hc}=iS,{SET_FORM:HV,CLEAR_FORM:Kze}=$t.forms,Zze={async[FV]({commit:n},{id:t}){try{n(UV,!0);const{data:r}=await JCe(t);return n(VV,{data:r}),!0}catch(r){return this.handleError(r,{object:"file",objectId:t,fallbackCode:"file.get",action:`${_f}/${FV}`,actionPayload:arguments[1]}),!1}finally{n(UV,!1)}},async[g6]({commit:n},{body:t}){try{n(hc,!0);const r=t.fileName||"";let i=null;if(t.blob){const a=new FormData;a.append("file",t.blob,r),{data:i}=await VR(a)}else({data:i}=await VR(t));if(!i)throw new Error("No file was uploaded");return n(VV,{data:i}),i.id}catch(r){return this.handleError(r,{object:"file",fallbackCode:"file.post",action:`${_f}/${g6}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},async[v6]({commit:n,dispatch:t},{id:r,body:i}){try{return n(hc,!0),await XCe(r,i),await t(u2.LOAD_FILE,{id:r}),r}catch(a){return this.handleError(a,{object:"file",objectId:r,fallbackCode:"file.put",action:`${_f}/${v6}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},async[BV]({commit:n},{id:t}){try{return n(hc,!0),await QCe(t),n(Yze,t),t}catch(r){return this.handleError(r,{object:"file",objectId:t,fallbackCode:"file.delete",action:`${_f}/${BV}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},async[jV]({commit:n,dispatch:t},{id:r}){try{return n(hc,!0),await eke(r),await t(u2.LOAD_FILE,{id:r}),r}catch(i){return this.handleError(i,{object:"file",objectId:r,fallbackCode:"file.patch",action:`${_f}/${jV}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},[Gze]({commit:n}){const t={blob:null,fileName:null};return n(`forms/${HV}`,{key:"file",formData:t},{root:!0})},[qze]({commit:n,state:t},{id:r,props:i=[]}){const a={...Gs(t.data[r],i),id:r};return n(`forms/${HV}`,{key:"file",formData:a},{root:!0})},async[zV]({commit:n,rootGetters:t,dispatch:r}){try{const i=t["forms/getFormByKey"]("file");let{id:a}=i;return a?await r(v6,{id:i.id,body:i}):a=await r(g6,{body:i}),n(`forms/${Kze}`,{key:"file"},{root:!0}),a}catch(i){return this.handleError(i,{object:"file",action:`${_f}/${zV}`}),null}}},{UPDATE_MANY_FILES:Jze,DELETE_ONE_FILE:Xze,CLEAR_FILES:Qze,SET_FILES_FETCHING:eVe,SET_FILES_POSTING:tVe}=iS,nVe={[Jze](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a company user or an array of company users!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r),o=i.reduce((s,c)=>!a[c]||!a[c].publicId?s:{...s,[a[c].publicId]:a[c].id},{});ba(n.data,a),n.ids=qi([...i,...n.ids]),n.filePublicIdToId={...n.filePublicIdToId,...o}},[Xze](n,t){n.data[t]&&(Fe.delete(n.filePublicIdToId,n.data[t].publicId),Fe.delete(n.data,t));const i=n.ids.indexOf(t);i!==-1&&n.ids.splice(i,1)},[Qze](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[]),Fe.set(n,"filePublicIdToId",[])},[eVe](n,t){n.isFetching=t},[tVe](n,t){n.isPosting=t}},rVe={namespaced:!0,state:Wze,getters:{fileById:n=>t=>n.data[t],fileByPublicId:(n,t)=>r=>{const i=n.filePublicIdToId[r];return t.fileById(i)}},actions:Zze,mutations:nVe},iVe={data:{},ids:[],projectPublicIdToId:{},isFetching:!1,isPosting:!1,canFetchMore:!0,count:{},searchWord:"",isFetchingProjectNotes:!1,isPostingProjectNotes:!1};var aVe="__lodash_hash_undefined__";function oVe(n){return this.__data__.set(n,aVe),this}var sVe=oVe;function lVe(n){return this.__data__.has(n)}var cVe=lVe,uVe=O4,dVe=sVe,pVe=cVe;function W2(n){var t=-1,r=n==null?0:n.length;for(this.__data__=new uVe;++t<r;)this.add(n[t])}W2.prototype.add=W2.prototype.push=dVe,W2.prototype.has=pVe;var y6=W2;function fVe(n,t,r,i){for(var a=n.length,o=r+(i?1:-1);i?o--:++o<a;)if(t(n[o],o,n))return o;return-1}var hVe=fVe;function mVe(n){return n!==n}var gVe=mVe;function vVe(n,t,r){for(var i=r-1,a=n.length;++i<a;)if(n[i]===t)return i;return-1}var yVe=vVe,bVe=hVe,_Ve=gVe,wVe=yVe;function xVe(n,t,r){return t===t?wVe(n,t,r):bVe(n,_Ve,r)}var CVe=xVe,kVe=CVe;function SVe(n,t){var r=n==null?0:n.length;return!!r&&kVe(n,t,0)>-1}var WV=SVe;function TVe(n,t,r){for(var i=-1,a=n==null?0:n.length;++i<a;)if(r(t,n[i]))return!0;return!1}var GV=TVe;function EVe(n,t){return n.has(t)}var b6=EVe,$Ve=y6,AVe=WV,OVe=GV,DVe=J3,MVe=b0,PVe=b6,IVe=200;function RVe(n,t,r,i){var a=-1,o=AVe,s=!0,c=n.length,l=[],u=t.length;if(!c)return l;r&&(t=DVe(t,MVe(r))),i?(o=OVe,s=!1):t.length>=IVe&&(o=PVe,s=!1,t=new $Ve(t));e:for(;++a<c;){var d=n[a],p=r==null?d:r(d);if(d=i||d!==0?d:0,s&&p===p){for(var f=u;f--;)if(t[f]===p)continue e;l.push(d)}else o(t,p,i)||l.push(d)}return l}var LVe=RVe;function NVe(n,t){for(var r=-1,i=n==null?0:n.length;++r<i;)if(t(n[r],r,n))return!0;return!1}var FVe=NVe,BVe=y6,jVe=FVe,zVe=b6,VVe=1,UVe=2;function HVe(n,t,r,i,a,o){var s=r&VVe,c=n.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(n),d=o.get(t);if(u&&d)return u==t&&d==n;var p=-1,f=!0,h=r&UVe?new BVe:void 0;for(o.set(n,t),o.set(t,n);++p<c;){var m=n[p],g=t[p];if(i)var y=s?i(g,m,p,t,n,o):i(m,g,p,n,t,o);if(y!==void 0){if(y)continue;f=!1;break}if(h){if(!jVe(t,function(b,w){if(!zVe(h,w)&&(m===b||a(m,b,r,i,o)))return h.push(w)})){f=!1;break}}else if(!(m===g||a(m,g,r,i,o))){f=!1;break}}return o.delete(n),o.delete(t),f}var qV=HVe;function WVe(n){var t=-1,r=Array(n.size);return n.forEach(function(i,a){r[++t]=[a,i]}),r}var GVe=WVe;function qVe(n){var t=-1,r=Array(n.size);return n.forEach(function(i){r[++t]=i}),r}var _6=qVe,YV=gp,KV=SM,YVe=E4,KVe=qV,ZVe=GVe,JVe=_6,XVe=1,QVe=2,eUe="[object Boolean]",tUe="[object Date]",nUe="[object Error]",rUe="[object Map]",iUe="[object Number]",aUe="[object RegExp]",oUe="[object Set]",sUe="[object String]",lUe="[object Symbol]",cUe="[object ArrayBuffer]",uUe="[object DataView]",ZV=YV?YV.prototype:void 0,w6=ZV?ZV.valueOf:void 0;function dUe(n,t,r,i,a,o,s){switch(r){case uUe:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case cUe:return!(n.byteLength!=t.byteLength||!o(new KV(n),new KV(t)));case eUe:case tUe:case iUe:return YVe(+n,+t);case nUe:return n.name==t.name&&n.message==t.message;case aUe:case sUe:return n==t+"";case rUe:var c=ZVe;case oUe:var l=i&XVe;if(c||(c=JVe),n.size!=t.size&&!l)return!1;var u=s.get(n);if(u)return u==t;i|=QVe,s.set(n,t);var d=KVe(c(n),c(t),i,a,o,s);return s.delete(n),d;case lUe:if(w6)return w6.call(n)==w6.call(t)}return!1}var pUe=dUe,JV=gM,fUe=1,hUe=Object.prototype,mUe=hUe.hasOwnProperty;function gUe(n,t,r,i,a,o){var s=r&fUe,c=JV(n),l=c.length,u=JV(t),d=u.length;if(l!=d&&!s)return!1;for(var p=l;p--;){var f=c[p];if(!(s?f in t:mUe.call(t,f)))return!1}var h=o.get(n),m=o.get(t);if(h&&m)return h==t&&m==n;var g=!0;o.set(n,t),o.set(t,n);for(var y=s;++p<l;){f=c[p];var b=n[f],w=t[f];if(i)var S=s?i(w,b,f,t,n,o):i(b,w,f,n,t,o);if(!(S===void 0?b===w||a(b,w,r,i,o):S)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var k=n.constructor,$=t.constructor;k!=$&&"constructor"in n&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof $=="function"&&$ instanceof $)&&(g=!1)}return o.delete(n),o.delete(t),g}var vUe=gUe,x6=D4,yUe=qV,bUe=pUe,_Ue=vUe,XV=C0,QV=Jo,eU=I4,wUe=cM,xUe=1,tU="[object Arguments]",nU="[object Array]",G2="[object Object]",CUe=Object.prototype,rU=CUe.hasOwnProperty;function kUe(n,t,r,i,a,o){var s=QV(n),c=QV(t),l=s?nU:XV(n),u=c?nU:XV(t);l=l==tU?G2:l,u=u==tU?G2:u;var d=l==G2,p=u==G2,f=l==u;if(f&&eU(n)){if(!eU(t))return!1;s=!0,d=!1}if(f&&!d)return o||(o=new x6),s||wUe(n)?yUe(n,t,r,i,a,o):bUe(n,t,l,r,i,a,o);if(!(r&xUe)){var h=d&&rU.call(n,"__wrapped__"),m=p&&rU.call(t,"__wrapped__");if(h||m){var g=h?n.value():n,y=m?t.value():t;return o||(o=new x6),a(g,y,r,i,o)}}return f?(o||(o=new x6),_Ue(n,t,r,i,a,o)):!1}var SUe=kUe,TUe=SUe,iU=Ws;function aU(n,t,r,i,a){return n===t?!0:n==null||t==null||!iU(n)&&!iU(t)?n!==n&&t!==t:TUe(n,t,r,i,aU,a)}var oU=aU,EUe=D4,$Ue=oU,AUe=1,OUe=2;function DUe(n,t,r,i){var a=r.length,o=a,s=!i;if(n==null)return!o;for(n=Object(n);a--;){var c=r[a];if(s&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++a<o;){c=r[a];var l=c[0],u=n[l],d=c[1];if(s&&c[2]){if(u===void 0&&!(l in n))return!1}else{var p=new EUe;if(i)var f=i(u,d,l,n,t,p);if(!(f===void 0?$Ue(d,u,AUe|OUe,i,p):f))return!1}}return!0}var MUe=DUe,PUe=Zo;function IUe(n){return n===n&&!PUe(n)}var sU=IUe,RUe=sU,LUe=w0;function NUe(n){for(var t=LUe(n),r=t.length;r--;){var i=t[r],a=n[i];t[r]=[i,a,RUe(a)]}return t}var FUe=NUe;function BUe(n,t){return function(r){return r==null?!1:r[n]===t&&(t!==void 0||n in Object(r))}}var lU=BUe,jUe=MUe,zUe=FUe,VUe=lU;function UUe(n){var t=zUe(n);return t.length==1&&t[0][2]?VUe(t[0][0],t[0][1]):function(r){return r===n||jUe(r,n,t)}}var HUe=UUe,WUe=oU,GUe=sj,qUe=CR,YUe=K3,KUe=sU,ZUe=lU,JUe=Up,XUe=1,QUe=2;function eHe(n,t){return YUe(n)&&KUe(t)?ZUe(JUe(n),t):function(r){var i=GUe(r,n);return i===void 0&&i===t?qUe(r,n):WUe(t,i,XUe|QUe)}}var tHe=eHe;function nHe(n){return function(t){return t==null?void 0:t[n]}}var rHe=nHe,iHe=cy;function aHe(n){return function(t){return iHe(t,n)}}var oHe=aHe,sHe=rHe,lHe=oHe,cHe=K3,uHe=Up;function dHe(n){return cHe(n)?sHe(uHe(n)):lHe(n)}var pHe=dHe,fHe=HUe,hHe=tHe,mHe=X3,gHe=Jo,vHe=pHe;function yHe(n){return typeof n=="function"?n:n==null?mHe:typeof n=="object"?gHe(n)?hHe(n[0],n[1]):fHe(n):vHe(n)}var cU=yHe,bHe=X3,_He=AR,wHe=DR;function xHe(n,t){return wHe(_He(n,t,bHe),n+"")}var CHe=xHe,kHe=B4,SHe=Ws;function THe(n){return SHe(n)&&kHe(n)}var EHe=THe,$He=LVe,AHe=ER,OHe=cU,DHe=CHe,C6=EHe,MHe=Vz,PHe=DHe(function(n,t){var r=MHe(t);return C6(r)&&(r=void 0),C6(n)?$He(n,AHe(t,1,C6,!0),OHe(r)):[]}),IHe=PHe;const RHe=tn(IHe),k6="projects",{LOAD_PROJECT_NOTE:S6,DO_CREATE_PROJECT_NOTE:uU,DO_UPDATE_PROJECT_NOTE:dU,FORM_NEW_PROJECT_NOTE:LHe,FORM_EDIT_PROJECT_NOTE:pU,FORM_SUBMIT_PROJECT_NOTE:fU}=as,{SET_PROJECT_NOTES:hU,SET_PROJECT_NOTES_FETCHING:mU,SET_PROJECT_NOTES_POSTING:q2}=ya,{SET_FORM:gU}=ls,NHe={async[S6]({commit:n},{id:t}){try{if(n(mU,!0),!t)return;const{data:r}=await YCe(t);if(!r)return;n(hU,{projectNotes:[r]})}catch(r){this.handleError(r,{object:"projectNote",objectId:t,fallbackCode:"projectNote.get",action:`${k6}/${S6}`,actionPayload:arguments[1]})}finally{n(mU,!1)}},async[uU]({commit:n},{body:t}){try{n(q2,!0);const{data:r}=await KCe(t);return n(hU,{projectNotes:[r]}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("note")})}),r.id}catch(r){throw r}finally{n(q2,!1)}},async[dU]({commit:n,dispatch:t},{id:r,body:i}){try{return n(q2,!0),await ZCe(r,i),await t(S6,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("note")})}),r}catch(a){throw a}finally{n(q2,!1)}},[LHe]({commit:n},{projectId:t=null}){const r={ProjectId:t,text:""};n(`forms/${gU}`,{key:"projectNote",formData:r},{root:!0})},async[pU]({commit:n,state:t},{projectId:r}){try{const i=t.data[r].ProjectNote;n(`forms/${gU}`,{key:"projectNote",formData:i},{root:!0})}catch(i){this.handleError(i,{object:"projectNote",fallbackCode:"projectNote.edit",action:`${k6}/${pU}`,actionPayload:arguments[1]})}},async[fU]({rootGetters:n,dispatch:t}){try{const r=n["forms/getFormByKey"]("projectNote");let{id:i}=r;return i?await t(dU,{id:r.id,body:r}):i=await t(uU,{body:r}),i}catch(r){return this.handleError(r,{object:"projectNote",fallbackCode:"projectNote.submit",action:`${k6}/${fU}`}),null}}},Pg="projects",{LOAD_PROJECT_FILE:Y2,CREATE_PROJECT_FILE:vU,UPDATE_PROJECT_FILE:yU,DELETE_PROJECT_FILE:bU,PATCH_PROJECT_FILE:T6}=pj,FHe={async[Y2](n,{id:t}){try{const{data:r}=await UCe(t);return await this.dispatch(He.SET_AS_NORMALIZED_DATA,{data:[r],schema:"projectFiles"}),!0}catch(r){return this.handleError(r,{object:"projectFile",objectId:t,fallbackCode:"projectFile.get",action:`${Pg}/${Y2}`,actionPayload:arguments[1]}),!1}},async[vU](n,{projectId:t,fileId:r}){try{if(typeof t>"u")throw new Error("Missing parameter projectId");if(typeof r>"u")throw new Error("Missing parameter fileId");const{data:i}=await HCe({ProjectId:t,FileId:r});return await this.dispatch(He.SET_AS_NORMALIZED_DATA,{data:[i],schema:"projectFiles"}),i.id}catch(i){return this.handleError(i,{object:"projectFile",fallbackCode:"projectFile.post",action:`${Pg}/${vU}`,actionPayload:arguments[1]}),null}},async[yU]({dispatch:n},{id:t,body:r}){try{return await WCe(t,r),await n(Y2,{id:t}),t}catch(i){return this.handleError(i,{object:"projectFile",objectId:t,fallbackCode:"projectFile.put",action:`${Pg}/${yU}`,actionPayload:arguments[1]}),null}},async[bU]({commit:n,getters:t},{projectId:r,id:i}){try{const a=t.byId(r);if(a){const o=a.files.find(c=>c.id===i),{FileId:s}=o;this.dispatch(He.DELETE_FILE,{id:s})}return await GCe(i),n(c2.DELETE_PROJECT_FILE,{projectId:r,id:i}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("file")}),actions:{undo:()=>{this.dispatch(`projects/${T6}`,{id:i,projectId:r})}}}),i}catch(a){return this.handleError(a,{object:"projectFile",objectId:i,fallbackCode:"projectFile.delete",action:`${Pg}/${bU}`,actionPayload:arguments[1]}),null}},async[T6]({dispatch:n,getters:t},{projectId:r,id:i}){try{await qCe(i),await n(Y2,{id:i});const a=t.byId(r);if(a){const o=a.files.find(c=>c.id===i),{FileId:s}=o;await this.dispatch(He.PATCH_FILE,{id:s})}return i}catch(a){return this.handleError(a,{object:"file",objectId:i,fallbackCode:"file.patch",action:`${Pg}/${T6}`,actionPayload:arguments[1]}),null}}},{LOAD_EVENTS_FOR_PROJECT:BHe}=as,{SET_EVENTS:jHe}=ya,zHe={async[BHe]({commit:n},{id:t}){const{data:r}=await ri.get(`/project/${t}/event`);return!r||r.length<=0?!1:(n(jHe,{events:r}),!0)}},xa="projects",{LOAD_PROJECT:E6,LOAD_PROJECTS:_U,DO_LOAD_PROJECT:wU,DO_LOAD_PROJECTS:K2,DO_LOAD_PROJECTS_COUNT:VHe,LOAD_PROJECTS_FOR_CLIENT:xU,LOAD_PROJECTS_FOR_USER:CU,LOAD_PUBLIC_PROJECT:kU,CREATE_PROJECT:UHe,CREATE_DEMOPROJECT:SU,UPDATE_PROJECT:TU,DELETE_PROJECT:EU,PATCH_PROJECT:$6,DO_SUBMIT_PROJECT:$U,SUBMIT_PROJECT:AU,SUBMIT_PROJECT_MEMBER:A6,DELETE_PROJECT_MEMBER:O6,SET_PROJECT_LEADER:OU,SET_PROJECT_FILTER:HHe,SET_PROJECT_SORT:WHe,SET_QUICKVIEW_PROJECT:D6,CLEAR_PROJECTS:GHe}=as,{UPDATE_VIEW_SETTINGS:qHe,DO_UPDATE_SETTINGS:M6,DO_LOAD_CURRENT_COMPANY:YHe}=He,{CLEAR_PROJECT_DATA:KHe,SET_PROJECTS_POSTING:dr,SET_PROJECTS_FETCHING:Qu,DELETE_MANY_PROJECTS:ZHe}=ya,JHe={...NHe,...zHe,...FHe,async[K2]({commit:n,state:t,rootState:r},i={}){try{const a={clearOld:!1,start:i.end?0:void 0,end:void 0,sort:void 0,order:void 0,force:!1,filter:void 0,...i},{canFetchMore:o}=t;let s=!!o;if(a.clearOld&&(s=!0),t.isFetching&&!a.force||cn(a.start)==="number"&&cn(a.end)==="number"&&!s&&!a.force)return;n(Qu,!0);const{data:c}=await zR({start:a.start,end:a.end,sort:a.sort,order:a.order,filter:a.filter});let l={};c.forEach(({cachedDocuments:f})=>{if(f){const h=Object.keys(f.documents).reduce((m,g)=>({...m,[g]:{id:g,data:{name:f.documents[g].name,clients:[{name:Ce(f,`documents[${g}].firstClient.name`,""),type:Ce(f,`documents[${g}].firstClient.type`),addresses:Ce(f,`documents[${g}].firstClient.addresses`)}]},status:f.documents[g].status}}),{});l={...l,...h}}});const u=r.documents2.ids,d=RHe(Object.keys(l),u);this.commit("documents2/SET_DOCUMENTS2",{data:d.map(f=>l[f])}),a.clearOld&&n(KHe),this.dispatch(Uu,{data:c,schema:"projects"}),s=!((cn(a.start)==="number"&&cn(a.end)==="number"?a.end-a.start:0)>c.length),n(ya.SET_PROJECTS_CAN_FETCH_MORE,s)}catch(a){throw a}finally{n(Qu,!1)}},async[VHe]({commit:n}){try{n(Qu,!0);const{data:t}=await ri.get("/project/counts");n(ya.SET_PROJECTS_COUNT,{data:t})}catch(t){throw t}finally{n(Qu,!1)}},async[_U]({dispatch:n},t={}){try{await n(K2,t)}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.get",action:`${xa}/${_U}`,actionPayload:arguments[1]})}},async[E6]({dispatch:n},{id:t}){try{await n(wU,{id:t})}catch(r){this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.get",action:`${xa}/${E6}`,actionPayload:arguments[1]})}},async[wU]({commit:n},{id:t}){try{n(Qu,!0);const r=[],{data:i}=await PCe(t);return i&&r.push(i),this.dispatch(Uu,{data:r,schema:"projects"}),n(Qu,!1),i}catch(r){throw n(Qu,!1),r}},async[xU]({dispatch:n},{id:t}){try{await n(K2,{filter:{clientEndCustomerIds:{[t]:"contains"}}})}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.get",action:`${xa}/${xU}`,actionPayload:arguments[1]})}},async[CU]({dispatch:n},{id:t}){try{await n(K2,{filter:{CompanyUserId:{[t]:!0}}})}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.get",action:`${xa}/${CU}`,actionPayload:arguments[1]})}},async[kU](n,t){try{const{data:r}=await ri.get(`/project/public/${t}`);this.dispatch(Uu,{data:r,schema:HRe})}catch(r){this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.get",action:`${xa}/${kU}`,actionPayload:arguments[1]})}},async[UHe]({dispatch:n,commit:t,rootGetters:r},{body:i}){try{t(dr,!0);const{data:a}=await MCe(i);return await n(as.LOAD_PROJECT,{id:a.id}),r["application/companyAccountType"]==="free"&&this.dispatch(YHe),t(dr,!1),Promise.resolve(a.id)}catch(a){return t(dr,!1),Promise.reject(a)}},async[SU]({dispatch:n,commit:t}){try{t(dr,!0);const{data:r}=await NCe(),{id:i}=r;return this.dispatch(M6,{key:"company",settings:[{name:"demoProjectId",value:i}]}),await n(as.LOAD_PROJECT,{id:i}),t(dr,!1),i}catch(r){return this.handleError(r,{object:"project",fallbackCode:"project.demo",action:`${xa}/${SU}`,actionPayload:arguments[1]}),null}finally{t(dr,!1)}},async[TU]({dispatch:n,commit:t},{id:r,body:i}){try{return t(dr,!0),await ICe(r,i),await n(as.LOAD_PROJECT,{id:r}),t(dr,!1),r}catch(a){throw t(dr,!1),a}},async[EU]({commit:n,dispatch:t},{id:r}){try{return n(dr,!0),await LCe(r),n(ZHe,r),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("project")}),actions:{undo:()=>{this.dispatch(`projects/${$6}`,{id:r})}}}),t(D6,{id:null}),n(dr,!1),!0}catch(i){return n(dr,!1),this.handleError(i,{object:"project",objectId:r,fallbackCode:"project.delete",action:`${xa}/${EU}`,actionPayload:arguments[1]}),!1}},async[$6]({dispatch:n},{id:t}){try{return await RCe(t),await n(E6,{id:t}),t}catch(r){return this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.patch",action:`${xa}/${$6}`,actionPayload:arguments[1]}),!1}},async[D6]({commit:n},{id:t}){try{return this.dispatch(qHe,{view:"projectList",settings:{quickViewProjectId:t}}),t}catch(r){return n(dr,!1),this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.quickview",action:`${xa}/${D6}`,actionPayload:arguments[1]}),!1}},async[OU]({dispatch:n,commit:t,getters:r},{projectId:i,companyUserId:a}){try{t(dr,!0);const o=r.byId(i).getProperty("CompanyUserId");return await n(TU,{id:i,body:{CompanyUserId:a}}),await n(O6,{projectId:i,companyUserId:a}),await n(A6,{projectId:i,companyUserId:o}),t(dr,!1),!0}catch(o){return t(dr,!1),this.handleError(o,{object:"project",objectId:i,fallbackCode:"project.projectLeader",action:`${xa}/${OU}`,actionPayload:arguments[1]}),!1}},async[$U]({dispatch:n},{data:t}){let{id:r}=t;return r?await n(as.UPDATE_PROJECT,{id:t.id,body:t}):r=await n(as.CREATE_PROJECT,{body:t}),await n(as.LOAD_PROJECT,{id:r}),r},async[AU]({dispatch:n},t){try{await n($U,t)}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.post",action:`${xa}/${AU}`,actionPayload:arguments[1]})}return!0},async[A6]({commit:n},{projectId:t,companyUserId:r}){try{return n(dr,!0),await Mke(t,r),n(ya.ADD_PROJECT_MEMBER,{projectId:t,companyUserId:r}),n(dr,!1),!0}catch(i){return n(dr,!1),this.handleError(i,{object:"project",objectId:t,fallbackCode:"project.member.post",action:`${xa}/${A6}`,actionPayload:arguments[1]}),!1}},async[O6]({commit:n},{projectId:t,companyUserId:r}){try{return n(dr,!0),await Pke(t,r),n(ya.DELETE_PROJECT_MEMBER,{projectId:t,companyUserId:r}),n(dr,!1),!0}catch(i){return n(dr,!1),this.handleError(i,{object:"project",objectId:t,fallbackCode:"project.member.delete",action:`${xa}/${O6}`,actionPayload:arguments[1]}),!1}},async[HHe](n,t){const r=JSON.stringify(t);await this.dispatch(M6,{key:"companyUser",settings:[{name:"projectListFilter",value:r}]})},async[WHe](n,t){const r=JSON.stringify(t);await this.dispatch(M6,{key:"companyUser",settings:[{name:"projectListSort",value:r}]})},[GHe]({commit:n}){n(ya.CLEAR_PROJECT_DATA),n(ya.SET_PROJECTS_CAN_FETCH_MORE,!0)}},{SET_PROJECT_NOTES:XHe,SET_PROJECT_NOTES_FETCHING:QHe,SET_PROJECT_NOTES_POSTING:eWe}=ya,tWe={[XHe](n,{projectNotes:t=[]}){t.forEach(r=>{const{ProjectId:i}=r;return!i||!n.data[i]?!1:(Fe.set(n.data[i],"ProjectNote",r),!0)})},[QHe](n,t){n.isFetchingProjectNotes=t},[eWe](n,t){n.isPostingProjectNotes=t}},{SET_EVENTS:nWe}=ya,rWe={[nWe](n,{events:t=[]}){t.forEach(r=>{const{ProjectId:i}=r;if(!i||!n.data[i])return!1;let a=[];n.data[i].Events?a=n.data[i].Events:Fe.set(n.data[i],"Events",a);const o=a.findIndex(s=>s.id===r.id);return o!==-1?a[o]=Object.assign(a[o],r):a.push(r),!0})}},iWe={[c2.SET_PROJECT_FILES](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a projectFile or an array of projectFiles!");(Array.isArray(t)?t:[t]).forEach(i=>{const{ProjectId:a}=i;if(!a||!n.data[a])return!1;let o=[];n.data[a].ProjectFiles?o=n.data[a].ProjectFiles:Fe.set(n.data[a],"ProjectFiles",o);const s=o.findIndex(c=>c.id===i.id);return s!==-1?o[s]=Object.assign(o[s],i):o.push(i),!0})},[c2.DELETE_PROJECT_FILE](n,{projectId:t,id:r}){if(!t||!n.data[t])return!1;const i=n.data[t].ProjectFiles;if(i&&Array.isArray(i)){const a=i.findIndex(o=>o.id===r);a!==-1&&i.splice(a,1)}return!0}},{SET_PROJECTS:aWe,CLEAR_PROJECT_DATA:oWe,DELETE_MANY_PROJECTS:sWe,ADD_PROJECT_MEMBER:lWe,DELETE_PROJECT_MEMBER:cWe,SET_PROJECTS_FETCHING:uWe,SET_PROJECTS_POSTING:dWe,SET_PROJECTS_CAN_FETCH_MORE:pWe,SET_PROJECTS_COUNT:fWe}=ya,hWe={...tWe,...rWe,...iWe,updateField:ff,[aWe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a project or an array of projects!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[oWe](n){Object.assign(n,{data:{},ids:[],projectPublicIdToId:{}})},[sWe](n,t){(Array.isArray(t)?t:[t]).forEach(i=>{if(!n.data[i])return;const{publicId:a}=n.data[i];Fe.delete(n.data,i),n.ids=n.ids.filter(o=>o!==i),Fe.delete(n.projectPublicIdToId,a)})},[lWe](n,{projectId:t,companyUserId:r}){if(!t)throw Error("Cannot add member as no projectId is defined");if(!r)throw Error("Cannot add member as no companyUserId is defined");if(!n.data[t])return!1;let i=[];n.data[t].ProjectMembers?i=n.data[t].ProjectMembers:Fe.set(n.data[t],"ProjectMembers",i);const a=i.findIndex(o=>o===r);return a!==-1?i[a]=r:i.push(r),!0},[cWe](n,{projectId:t,companyUserId:r}){if(!t)throw Error("Cannot delete member as no projectId is defined");if(!r)throw Error("Cannot delete member as no companyUserId is defined");if(!n.data[t])return!1;let i=[];n.data[t].ProjectMembers?i=n.data[t].ProjectMembers:Fe.set(n.data[t],"ProjectMembers",i);const a=i.findIndex(o=>o===r);return a!==-1&&i.splice(a,1),!0},[uWe](n,t){n.isFetching=t},[dWe](n,t){n.isPosting=t},[pWe](n,t){n.canFetchMore=t},[fWe](n,{data:t={}}){if(typeof t!="object"||Array.isArray(t))throw Error("Data must be an object!");const r={};Object.keys(t).forEach(i=>{r[i]=t[i]||0}),n.count=r}},mWe={id:{$default:null,$type:Number,$scope:["project","offer","contract"]},name:{$default:"",$type:String,$scope:["project","offer","contract"]},isDemo:{$default:!1,$type:Boolean,$scope:["project"]},externalId:{$default:"",$type:Number},publicId:{$default:null,$type:String},projectNumber:{$default:null,$type:Number},CompanyId:{$default:null,$type:"ref",$ref:"companies"},CompanyUserId:{$default:null,$type:"ref",$ref:"companyUsers"},ProjectMembers:[{$type:"ref",$ref:"companyUsers"}],ProjectSettings:{$default:[],$type:Array,$scope:["project","offer","contract"]},status:{$default:"new",$type:String},createdAt:{$default:null,$type:Date},updatedAt:{$default:null,$type:Date},deletedAt:{$default:null,$type:Date}},F9=class{constructor(t,r,i){if(!t)throw Error("First arg. id is required");if(!r)throw Error("Seccond arg. getters is required");this._getters=r,this._project=t,this._documents=[]}get id(){return this._project.id}getId(){const{id:t}=this.getProject()||{};return t||null}getProject(){const{_project:t}=this;return t||null}get documents(){if(!this.documentIds.length)return[];let t=[];const r=Ce(this._project,"cachedDocuments.mainDocument.id");return this.documentIds.forEach(i=>{const a=this._getters["documents2/byId"](i);a&&(a.id===r?t=[a,...t]:t.push(a))}),t}get cachedDocumentsInfo(){let t=[];const{cachedDocuments:r}=this._project;if(!r)return[];const{documents:i={},mainDocument:a={}}=r;return Object.keys(i).forEach(o=>{const s=i[o];s&&(s.id===a.id?t=[s,...t]:t.push(s))}),t}get documentIds(){const{cachedDocuments:t}=this._project;if(!t)return[];const{documents:r}=t;return r?Object.keys(r):[]}get invoices(){return this._getters["invoices/byProjectId"](this.getId())||[]}get events(){return this._project.Events||[]}get creatorId(){return this._project.CompanyUser}get creator(){const{_getters:t}=this,{CompanyUser:r}=this.getProject()||{};return t["companyUsers/byId"](r)}get name(){return this._project.name}get status(){return this._project.status}get subStatus(){const{status:t,mainDocument:r}=this;return["offer","contract"].includes(t)&&r?r.status:null}get clients(){const t=[];return this.documents.reduce((i,a)=>(a.clients.forEach(o=>{t.includes(o.endCustomerId)||(t.push(o.endCustomerId),i.push(o))}),i),[])}get mainDocument(){return this.documents[0]}get currency(){return Ce(this,"mainDocument.currency",null)}get members(){const{_getters:t}=this,{ProjectMembers:r=[]}=this.getProject()||{};return r.map(a=>t["companyUsers/byId"](a))}get projectNumber(){return this._project.projectNumber}get note(){return this._project.ProjectNote}get files(){return this._project.ProjectFiles}get firstClientName(){return this._project.firstClientName}get firstClientStreet(){return this._project.firstClientStreet}get prices(){const t={types:[],subTotal:0,taxAmount:0,total:0,maxTotal:0,invoicedAmount:0,paidAmount:0,hasDeductions:!1,currency:this.currency};if(!this.documents.length)return t;this.documents.forEach(i=>{t.types=[...new Set([...t.types,...i.prices.type])],!(t.currency&&t.currency!==i.currency)&&(t.subTotal+=i.prices.subTotal,t.taxAmount+=i.prices.taxAmount,t.total+=i.prices.total,t.maxTotal+=i.prices.maxTotal,i.prices.region&&i.prices.region.houseWorkAmount&&(t.hasDeductions=!0))});const{invoices:r}=this;return r.forEach(i=>{t.invoicedAmount+=i.totalAmount,t.paidAmount+=i.paidAmount}),t}get isDemo(){return this.getProperty("isDemo")}getProperty(t=""){return t.replace(/\[(.*)\]/ig,(a,o)=>`.${o}`).split(".").reduce((a,o)=>a&&(typeof a[o]!="object",a[o]),this._project)}getProperties({scope:t=null}={}){let r=t;typeof r=="string"&&(r=[r]);const{schema:i}=F9,a={};i&&Object.keys(i).map(s=>(i[s].$default!=="undefined"&&(a[s]=i[s].$default),!0));const o=Object.assign({},a,this._project);return i&&r&&Array.isArray(r)&&Object.keys(i).map(s=>i[s].$scope?(r.some(l=>i[s].$scope.indexOf(l)>=0)||delete o[s],!0):(delete o[s],!0)),JSON.parse(JSON.stringify(o))}};let ed=F9;$n(ed,"schema",mWe),$n(ed,"statuses",{new:{statusText:"Utkast",statusClass:"draft"},sent:{statusText:"Skickad",statusClass:"sent"},denied:{statusText:"Nekad",statusClass:"denied"},accepted:{statusText:"Accepterad",statusClass:"accepted"},signed:{statusText:"Signerad",statusClass:"accepted"},semiSigned:{statusText:"Delsignerad",statusClass:"accepted"},active:{statusText:"Pågående",statusClass:"active"},completed:{statusText:"Klar",statusClass:"completed"},archived:{statusText:"Arkiverad",statusClass:"archived"}});const gWe={getField:yg,...{isPostingProjectNote:n=>n.isPostingProjectNotes,isFetchingProjectNote:n=>n.isFetchingProjectNotes},byId:(n,t,r,i)=>a=>n.data[a]?new ed(n.data[a],i):null,projectIdsByClientId:n=>t=>n.ids.filter(r=>{const i=Ce(n.data[r],"clientEndCustomerIds","");return i?i.split(",").includes(`${t}`):!1}),projectIdsOwnedByUserId:(n,t)=>r=>n.ids.filter(i=>{const a=t.byId(i);if(!a)return!1;const o=a.getProperty("CompanyUserId");return o?o===r:!1}),projects:(n,t,r,i)=>n.ids.map(a=>new ed(n.data[a],i)),projectByPublicId:(n,t,r,i)=>a=>{const o=n.projectPublicIdToId[a];return o?new ed(n.data[o],i):null},projectsByStatus:(n,{projects:t})=>r=>t.filter(i=>i.status===r),filter:(n,t,r,i)=>{const a=i["settings/getCompanyUserSetting"]("projectListFilter");let o={};return a?o=JSON.parse(a):o={or:{docStatuses:{draft:"contains",sent:"contains",accepted:"contains",denied:"contains",expired:"contains",voided:"contains"},status:{active:!0,completed:!0}}},Ce(o,"or.docStatuses.sent")?Ur(o,"or.docStatuses.voided","contains"):Hz(o,"or.docStatuses.voided"),o},sort:(n,t,r,i)=>{const a=i["settings/getCompanyUserSetting"]("projectListSort");return a?JSON.parse(a):{sort:"updatedAt",order:"DESC"}},isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,canFetchMore:n=>n.canFetchMore,count:n=>n.count},vWe={namespaced:!0,state:iVe,getters:gWe,actions:JHe,mutations:hWe},yWe={data:{},ids:[],isPosting:!1,isFetching:!1},wf="templates",{DO_LOAD_TEMPLATE:Ig,DO_LOAD_TEMPLATES:DU,LOAD_TEMPLATE:MU,LOAD_TEMPLATES:PU,DO_UPDATE_TEMPLATE:IU,DO_CREATE_TEMPLATE:RU,UPDATE_TEMPLATE:LU,REMOVE_TEMPLATE:NU,DELETE_TEMPLATE:P6,PATCH_TEMPLATE:I6,HIDE_TEMPLATE:R6,DUPLICATE_PROTECTED_TEMPLATE:FU}=xj,{SET_TEMPLATE_POSTING:ps,SET_TEMPLATE_FETCHING:Z2,SET_TEMPLATES:BU,DELETE_MANY_TEMPLATES:bWe}=sS,_We={async[Ig]({commit:n},{id:t,params:r={}}){try{n(Z2,!0);const{data:i}=await Du.get(t,r);n(BU,{data:[i]})}catch(i){throw i}finally{n(Z2,!1)}},async[DU]({commit:n},t={}){try{n(Z2,!0);const{data:r}=await Du.get(null,t),{items:i}=r;n(BU,{data:i})}catch(r){throw r}finally{n(Z2,!1)}},async[PU]({dispatch:n},t={}){try{await n(DU,t)}catch(r){this.handleError(r,{object:"template",fallbackCode:"template.getMany",action:`${wf}/${PU}`})}},async[MU]({dispatch:n},{id:t}){try{await n(Ig,{id:t})}catch(r){this.handleError(r,{object:"template",fallbackCode:"template.getOne",action:`${wf}/${MU}`,actionPayload:arguments[1]})}},async[RU]({commit:n,dispatch:t},{body:r,showMessage:i=!0}){try{n(ps,!0);const{data:a}=await Du.post(r),{id:o}=a;return await t(Ig,{id:o}),i&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("template")})}),o}catch(a){throw a}finally{n(ps,!1)}},async[IU]({dispatch:n,commit:t},{id:r,body:i}){try{return t(ps,!0),await Du.put(r,i),await n(Ig,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("template")})}),r}catch(a){throw a}finally{t(ps,!1)}},async[LU]({dispatch:n},{id:t,body:r}){try{switch(r.onModify){case"update":return await n(IU,{id:t,body:r}),t;case"create":return n(FU,{body:r,doHide:r.doConsumeDocumentQuota});default:throw new Error("Invalid onModify value")}}catch(i){return this.handleError(i,{object:"template",objectId:t,fallbackCode:"template.put",action:`${wf}/${LU}`,actionPayload:arguments[1]}),null}},async[NU]({dispatch:n},{template:t}){try{const{id:r}=t;switch(t.onModify){case"update":return n(P6,{id:r});case"create":return await n(R6,{id:r}),r;default:throw new Error("Invalid onModify value")}}catch(r){return this.handleError(r,{object:"template",objectId:t==null?void 0:t.id,fallbackCode:"template.remove",action:`${wf}/${NU}`}),null}},async[P6]({commit:n},{id:t}){try{return n(ps,!0),await Du.delete(t),n(bWe,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("template")}),actions:{undo:()=>{this.dispatch(`templates/${I6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"templates",objectId:t,fallbackCode:"documentTemplate.delete",action:`${wf}/${P6}`,actionPayload:arguments[1]}),null}finally{n(ps,!1)}},async[I6]({commit:n,dispatch:t},{id:r}){try{return n(ps,!0),await Du.patch(r),await t(Ig,{id:r}),r}catch(i){return this.handleError(i,{object:"templates",objectId:r,fallbackCode:"documentTemplate.patch",action:`${wf}/${I6}`,actionPayload:arguments[1]}),null}finally{n(ps,!1)}},async[R6]({rootGetters:n},{id:t}){if(!t)return;const r=n["settings/getCompanySetting"]("templateHiddenIds")||[];r.push(t),await this.dispatch(He.UPDATE_SETTINGS,{key:"company",settings:{templateHiddenIds:r}})},async[FU]({commit:n,dispatch:t},{body:r,doHide:i}){try{n(ps,!0);const a=es(r,["_id","id","companyId"]),o=await t(RU,{body:a});return i&&await t(R6,{id:r.id}),o}catch(a){throw a}finally{n(ps,!1)}}},{SET_TEMPLATES:wWe,SET_TEMPLATE_FETCHING:xWe,SET_TEMPLATE_POSTING:CWe,DELETE_MANY_TEMPLATES:kWe}=sS,SWe={[wWe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a template or an array of templates!");const r=Array.isArray(t)?t:[t],i=[];r.forEach(a=>{a.id&&(n.ids.includes(a.id)||i.push(a.id),Fe.set(n.data,a.id,a))}),n.ids=qi([...i,...n.ids])},[xWe](n,t){n.isFetching=t},[CWe](n,t){n.isPosting=t},[kWe](n,t){(Array.isArray(t)?t:[t]).forEach(i=>{n.data[i]&&(Fe.delete(n.data,i),n.ids=n.ids.filter(a=>a!==i))})}},TWe={namespaced:!0,state:yWe,getters:{byId:n=>t=>n.data[t]?new il(n.data[t]):null,idList:n=>n.ids,isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,hiddenTemplateIds:(n,t,r,i)=>i["settings/getCompanySetting"]("templateHiddenIds")||[],availableTemplates:(n,t)=>{const{idList:r,hiddenTemplateIds:i}=t;return r.filter(o=>!i.includes(o)).map(o=>new il(n.data[o]))},hiddenTemplates:(n,t)=>{const{idList:r,hiddenTemplateIds:i}=t;return i.filter(o=>r.includes(o)).map(o=>new il(n.data[o]))}},actions:_We,mutations:SWe},EWe={data:{},ids:[],isPosting:!1,isFetching:!1},ll="templateMessages",{FORM_RESET_OLD:$We}=He,{LOAD_TEMPLATE_MESSAGES:jU,LOAD_TEMPLATE_MESSAGE:L6,CREATE_TEMPLATE_MESSAGE:zU,UPDATE_TEMPLATE_MESSAGE:VU,DELETE_TEMPLATE_MESSAGE:UU,PATCH_TEMPLATE_MESSAGE:N6,FORM_NEW_TEMPLATE_MESSAGE:HU,FORM_EDIT_TEMPLATE_MESSAGE:WU,FORM_SUBMIT_TEMPLATE_MESSAGE:GU}=uf,{SET_TEMPLATE_MESSAGES:F6,SET_TEMPLATE_MESSAGES_POSTING:mc,SET_TEMPLATE_MESSAGES_FETCHING:J2}=oS,AWe={async[jU]({commit:n}){try{n(J2,!0);const{data:t}=await lke();return n(F6,{data:t}),!0}catch(t){return this.handleError(t,{object:"templateMessage",fallbackCode:"templateMessage.getAll",action:`${ll}/${jU}`,actionPayload:arguments[1]}),!1}finally{n(J2,!1)}},async[L6]({commit:n},{id:t}){try{n(J2,!0);const{data:r}=await cke(t);return n(F6,{data:r}),!0}catch(r){return this.handleError(r,{object:"templateMessage",objectId:t,fallbackCode:"templateMessage.get",action:`${ll}/${L6}`,actionPayload:arguments[1]}),!1}finally{n(J2,!1)}},async[zU]({commit:n},{body:t}){try{n(mc,!0);const{data:r}=await uke(t);return n(F6,{data:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("template")})}),r.id}catch(r){return this.handleError(r,{object:"templateMessage",fallbackCode:"templateMessage.post",action:`${ll}/${zU}`,actionPayload:arguments[1]}),null}finally{n(mc,!1)}},async[VU]({dispatch:n,commit:t},{id:r,body:i}){try{return t(mc,!0),await dke(r,i),await n(uf.LOAD_TEMPLATE_MESSAGE,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("template")})}),r}catch(a){return this.handleError(a,{object:"templateMessage",objectId:r,fallbackCode:"templateMessage.put",action:`${ll}/${VU}`,actionPayload:arguments[1]}),!1}finally{t(mc,!1)}},async[UU]({commit:n},{id:t}){try{return n(mc,!0),await pke(t),n(oS.DELETE_TEMPLATE_MESSAGE,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("template")}),actions:{undo:()=>{this.dispatch(`templateMessages/${N6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"templateMessage",objectId:t,fallbackCode:"templateMessage.delete",action:`${ll}/${UU}`,actionPayload:arguments[1]}),!1}finally{n(mc,!1)}},async[N6]({dispatch:n,commit:t},{id:r}){try{return t(mc,!0),await fke(r),await n(L6,{id:r}),r}catch(i){return this.handleError(i,{object:"templateMessage",objectId:r,fallbackCode:"templateMessage.patch",action:`${ll}/${N6}`,actionPayload:arguments[1]}),null}finally{t(mc,!1)}},async[HU]({commit:n}){try{const t={name:"",message:""};n(`forms/${$t.SET_FORM}`,{key:"templateMessage",formData:t},{root:!0})}catch(t){this.handleError(t,{object:"templateMessage",fallbackCode:"templateMessage.new",action:`${ll}/${HU}`,actionPayload:arguments[1]})}},async[WU]({commit:n,state:t},{id:r}){try{const i=t.data[r];return n(`forms/${$t.SET_FORM}`,{key:"templateMessage",formData:i},{root:!0}),r}catch(i){return this.handleError(i,{object:"templateMessage",objectId:r,fallbackCode:"templateMessage.edit",action:`${ll}/${WU}`,actionPayload:arguments[1]}),null}},async[GU]({rootGetters:n,dispatch:t}){try{const r=n["forms/getFormByKey"]("templateMessage");let{id:i}=r;return i?await t(uf.UPDATE_TEMPLATE_MESSAGE,{id:r.id,body:r}):i=await t(uf.CREATE_TEMPLATE_MESSAGE,{body:r}),t(uf.LOAD_TEMPLATE_MESSAGE,{id:i}),await this.dispatch($We,"templateMessage"),i}catch(r){return this.handleError(r,{object:"templateMessage",fallbackCode:"templateMessage.submit",action:`${ll}/${GU}`,actionPayload:arguments[1]}),null}}},{SET_TEMPLATE_MESSAGES:OWe,DELETE_TEMPLATE_MESSAGE:DWe,CLEAR_TEMPLATE_MESSAGES:MWe,SET_TEMPLATE_MESSAGES_FETCHING:PWe,SET_TEMPLATE_MESSAGES_POSTING:IWe}=oS,RWe={[OWe](n,{data:t}){if(typeof t!="object")throw Error("Data must be a company user or an array of company users!");const r=Array.isArray(t)?t:[t],i=[],a={};r.forEach(o=>{a[o.id]=o,i.push(o.id)}),ba(n.data,a),n.ids=qi([...i,...n.ids])},[DWe](n,t){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[MWe](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[])},[PWe](n,t){n.isFetching=t},[IWe](n,t){n.isPosting=t}},LWe={namespaced:!0,state:EWe,getters:{isPosting:n=>n.isPosting,isFetching:n=>n.isFetching},actions:AWe,mutations:RWe},NWe={data:{},ids:[],isFetching:!1,isPosting:!1},xf="documents2",{DELETE_DOCUMENT2:qU,DO_CREATE_DOCUMENT2:FWe,DO_LOAD_DOCUMENT2:td,DO_LOAD_DOCUMENTS2:YU,DO_UPDATE_DOCUMENT2:X2,LOAD_DOCUMENT2:KU,LOAD_DOCUMENTS2:B6,LOAD_DOCUMENTS2_EXTERNAL:BWe,PATCH_DOCUMENT2:j6,UPDATE_DOCUMENT2:ZU,UPDATE_DOCUMENT2_STATUS:JU,DO_SEND_DOCUMENT2:jWe,SEND_REMINDER_DOCUMENT2:zWe,REQUEST_PROPERTY_DOCUMENT2:VWe,CLEAR_DOCUMENT2_ANSWERS:XU,ANSWER_OWN_DOCUMENT2:UWe}=mj,{DELETE_MANY_DOCUMENTS2:HWe,SET_DOCUMENT2_POSTING:bi,SET_DOCUMENT2_FETCHING:Q2,SET_DOCUMENTS2:QU}=rS,{SHOW_MESSAGE:WWe,DO_LOAD_CURRENT_COMPANY:GWe}=He,qWe={async[td]({commit:n},{id:t,emit:r=!1}){try{n(Q2,!0);const{data:i}=await Ki.get(t);r&&Pr.trigger("document:watch",i),n(QU,{data:[i]})}catch(i){throw i}finally{n(Q2,!1)}},async[YU]({commit:n},t={}){try{n(Q2,!0);const{data:r}=await Ki.getAll(t),{items:i}=r;n(QU,{data:i})}catch(r){throw r}finally{n(Q2,!1)}},async[B6]({dispatch:n},t={isHidden:!1}){try{await n(YU,t)}catch(r){this.handleError(r,{object:"document2",fallbackCode:"document2.getMany",action:`${xf}/${B6}`})}},async[BWe]({dispatch:n},{service:t,type:r=null,typeId:i=null}){if(typeof t>"u")throw new Error("Missing param service");await n(B6,{isHidden:!1,returnType:"template","externalReferences.service":t,...r&&{"externalReferences.type":r},...i&&{"externalReferences.typeId":i}})},async[KU]({dispatch:n},{id:t,emit:r}){try{await n(td,{id:t,emit:r})}catch(i){this.handleError(i,{object:"document2",fallbackCode:"document2.getOne",action:`${xf}/${KU}`,actionPayload:arguments[1]})}},async[FWe]({rootGetters:n,commit:t,dispatch:r},{body:i}){try{t(bi,!0);const{data:a}=await Ki.post(i),{id:o}=a;return await r(td,{id:o}),Pr.trigger("document:create",a),Pr.trigger("document:save",a),n["application/companyAccountType"]==="free"&&await this.dispatch(GWe),o}catch(a){throw a}finally{t(bi,!1)}},async[jWe]({state:n,commit:t},{id:r}){try{t(bi,!0),await Ki.send(r),Pr.trigger("document:send",n.data[r]),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("sentThing",{thing:Be.t("document")}),omit:"$view:extension,$view:widget"})}catch(i){throw i}finally{t(bi,!1)}},async[zWe]({commit:n},{id:t,body:r={}}){try{const i={views:{sms:{nodes:[{nodeId:1,parentId:null,itemId:"smsText",itemType:"smsText",value:{text:"data.smsTemplate.reminder.text"}}]},email:{nodes:[{nodeId:1,parentId:null,itemId:"emailTemplate",itemType:"emailTemplate",value:{subject:"data.emailTemplate.reminder.subject",title:"data.emailTemplate.reminder.title",content:"data.emailTemplate.reminder.content",text:"data.emailTemplate.reminder.text"}}]}}};n(bi,!0),await Ki.send(t,{...i,...r,sendSource:"reminder"}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("sentThing",{thing:Be.t("reminder")})})}catch(i){throw i}finally{n(bi,!1)}},async[VWe]({commit:n},{id:t,body:r={}}){try{const i={views:{sms:{nodes:[{nodeId:1,parentId:null,itemId:"smsText",itemType:"smsText",value:{text:"data.smsTemplate.propertyDesignation.text"}}]},email:{nodes:[{nodeId:1,parentId:null,itemId:"emailTemplate",itemType:"emailTemplate",value:{subject:"data.emailTemplate.propertyDesignation.subject",title:"data.emailTemplate.propertyDesignation.title",content:"data.emailTemplate.propertyDesignation.content",text:"data.emailTemplate.propertyDesignation.text",actionUrl:"data.emailTemplate.propertyDesignation.actionUrl"}}]}}},{data:a}=await Ki.get(t),o=c=>Be.t(`propertyDesignationRequest.${c}`,{ns:"actions",interpolation:{prefix:"__",suffix:"__"}});Ur(a,"data.smsTemplate.propertyDesignation",{text:o("smsTemplate.text")}),Ur(a,"data.emailTemplate.propertyDesignation",{subject:o("emailTemplate.subject"),title:o("emailTemplate.title"),content:o("emailTemplate.content"),text:o("emailTemplate.text"),actionUrl:o("emailTemplate.actionUrl")});const s={...i,document:a,clients:[a.clients[0]]};n(bi,!0),await Ki.send(t,{...s,...r,sendSource:"propertyDesignation"}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("actions:propertyDesignationRequest.successMessage")})}catch(i){throw i}finally{n(bi,!1)}},async[X2]({state:n,dispatch:t,commit:r},{id:i,body:a,params:o={},showMessage:s=!0}){try{r(bi,!0),await Ki.put(i,a,o),await t(td,{id:i});const c=n.data[i];return Pr.trigger("document:update",c),Pr.trigger("document:save",c),s&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("document")}),omit:"$view:extension,$view:widget"}),i}catch(c){throw c}finally{r(bi,!1)}},async[ZU]({dispatch:n},{id:t,body:r,params:i={}}){try{return await n(X2,{id:t,body:r,params:i}),t}catch(a){return this.handleError(a,{object:"document2",objectId:t,fallbackCode:"document2.put",action:`${xf}/${ZU}`,actionPayload:arguments[1]}),null}},async[qU]({commit:n},{id:t}){try{return n(bi,!0),await Ki.delete(t),n(HWe,t),Pr.trigger("document:remove",t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("document")}),actions:{undo:()=>{this.dispatch(`documents2/${j6}`,{id:t})}},omit:"$view:widget"}),t}catch(r){return this.handleError(r,{object:"document2",objectId:t,fallbackCode:"document2.delete",action:`${xf}/${qU}`,actionPayload:arguments[1]}),null}finally{n(bi,!1)}},async[j6]({commit:n,dispatch:t},{id:r}){try{return n(bi,!0),await Ki.patch(r),await t(td,{id:r}),r}catch(i){return this.handleError(i,{object:"document2",objectId:r,fallbackCode:"document2.patch",action:`${xf}/${j6}`,actionPayload:arguments[1]}),null}finally{n(bi,!1)}},async[JU]({dispatch:n,getters:t},{id:r,status:i}){try{const{hasAnswers:a}=t.byId(r)||{};return a&&!["accepted","denied"].includes(i)?await this.dispatch(WWe,{displayType:"dialog",type:"warning",title:Be.t("actions:updateDocumentDialog.title"),message:Be.t("actions:updateDocumentDialog.message"),actions:{cancel:{text:Be.t("actions:updateDocumentDialog.cancel"),callback:"cancel"},submit:{text:Be.t("actions:updateDocumentDialog.submit"),callback:async()=>{await n(XU,{id:r,doFetch:!1}),await n(X2,{id:r,body:{status:i}})}}}}):await n(X2,{id:r,body:{status:i}}),r}catch(a){return this.handleError(a,{object:"document2",objectId:r,fallbackCode:"document2.updateStatus",action:`${xf}/${JU}`,actionPayload:arguments[1]}),null}},async[XU]({dispatch:n},{id:t,doFetch:r=!0}){await Ki.clearAnswers(t),r&&await n(td,{id:t})},async[UWe]({commit:n,dispatch:t},{id:r,publicId:i,body:a,checksum:o}){try{n(bi,!0);const s={docChecksum:o},{data:c}=await Hp.answer(i,a,{},s);return await t(td,{id:r}),c}catch(s){throw s}finally{n(bi,!1)}}},{DELETE_MANY_DOCUMENTS2:YWe,SET_DOCUMENTS2:KWe,SET_DOCUMENT2_FETCHING:ZWe,SET_DOCUMENT2_POSTING:JWe}=rS,XWe={[KWe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a document2 or an array of documents2!");const r=Array.isArray(t)?t:[t],i=[];r.forEach(a=>{a.id&&(n.ids.includes(a.id)||i.push(a.id),Fe.set(n.data,a.id,a))}),n.ids=qi([...i,...n.ids])},[YWe](n,t){(Array.isArray(t)?t:[t]).forEach(i=>{n.data[i]&&(Fe.delete(n.data,i),n.ids=n.ids.filter(a=>a!==i))})},[ZWe](n,t){n.isFetching=t},[JWe](n,t){n.isPosting=t}},QWe={namespaced:!0,state:NWe,getters:{byData:(n,t,r,i)=>({data:a,documentOptions:o})=>new fc({data:a,documentOptions:o,can:wg.checkPermission.bind(wg),getters:i}),byId:(n,t)=>r=>{const i=n.data[r];return i?t.byData({data:i}):null},byExternalReference:(n,t)=>({service:r,type:i=null,typeId:a=null})=>{if(typeof r>"u")throw new Error("Missing param service");if(typeof r!="string")throw new Error("Param service must be a string");return n.ids.filter(s=>{const c=n.data[s],{externalReferences:l=[]}=c;return l.some(u=>u.service===r&&(!i||u.type===i)&&(!a||u.typeId===a))}).map(s=>t.byId(s))},isPosting:n=>n.isPosting,isFetching:n=>n.isFetching},actions:qWe,mutations:XWe},eGe={data:{},ids:[],isFetching:!1,isPosting:!1},gc="endCustomers",{SET_ENDCUSTOMER_FETCHING:eb,SET_ENDCUSTOMER_POSTING:vc,CLEAR_END_CUSTOMER:tGe}=cf,{LOAD_ENDCUSTOMERS:eH,LOAD_ENDCUSTOMER:tb,UPDATE_ENDCUSTOMER:z6,CREATE_ENDCUSTOMER:V6,DELETE_ENDCUSTOMER:tH,PATCH_ENDCUSTOMER:U6,FORM_NEW_ENDCUSTOMER:nH,FORM_EDIT_ENDCUSTOMER:nGe,FORM_SUBMIT_ENDCUSTOMER:rH}=wj,rGe={async[eH]({commit:n},{options:t={}}={}){try{n(eb,!0);const r={...typeof t.start=="number"&&{_start:t.start},...t.end&&{_end:t.end},...t.sort&&{_sort:t.sort},...t.order&&{_order:t.order}};if(t.searchQuery.trim()){const a=encodeURIComponent(t.searchQuery);r._where=`or(name*=${a},email*=${a},cellphone*=${a})`}t.clearOld&&n(tGe);const{data:i}=await hke(r);return n(cf.SET_ENDCUSTOMERS,{data:i}),i.length}catch(r){return this.handleError(r,{object:"endCustomer",fallbackCode:"endCustomer.getAll",action:`${gc}/${eH}`}),!1}finally{n(eb,!1)}},async[tb]({commit:n},{id:t}){try{n(eb,!0);const{data:r}=await mke(t);n(cf.SET_ENDCUSTOMERS,{data:r})}catch(r){this.handleError(r,{object:"endCustomer",objectId:t,fallbackCode:"endCustomer.get",action:`${gc}/${tb}`,actionPayload:arguments[1]})}finally{n(eb,!1)}},async[V6]({commit:n},{body:t,showNotification:r=!0}){try{n(vc,!0);const{data:i}=await gke(t);return n(cf.SET_ENDCUSTOMERS,{data:i}),r&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("client")}),omit:"$view:widget"}),i.id}catch(i){return this.handleError(i,{object:"endCustomer",fallbackCode:"endCustomer.post",action:`${gc}/${V6}`,actionPayload:arguments[1]}),null}finally{n(vc,!1)}},async[z6]({dispatch:n,commit:t},{id:r,body:i}){try{return t(vc,!0),await vke(r,i),await n(tb,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("client")}),omit:"$view:widget"}),!0}catch(a){return this.handleError(a,{object:"endCustomer",objectId:r,fallbackCode:"endCustomer.put",action:`${gc}/${z6}`,actionPayload:arguments[1]}),null}finally{t(vc,!1)}},async[tH]({commit:n},{id:t}){try{return n(vc,!0),await yke(t),n(cf.DELETE_ENDCUSTOMER,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("client")}),actions:{undo:()=>{this.dispatch(`endCustomers/${U6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"endCustomer",objectId:t,fallbackCode:"endCustomer.delete",action:`${gc}/${tH}`,actionPayload:arguments[1]}),null}finally{n(vc,!1)}},async[U6]({dispatch:n,commit:t},{id:r}){try{return t(vc,!0),await bke(r),await n(tb,{id:r}),r}catch(i){return this.handleError(i,{object:"endCustomer",objectId:r,fallbackCode:"endCustomer.patch",action:`${gc}/${U6}`,actionPayload:arguments[1]}),null}finally{t(vc,!1)}},async[nH]({getters:n}){try{const t={id:null,customerType:n.defaultClientType(),org_no:null,name:null,reference:null,email:null,street:null,zip:null,city:null,cellphone:null,cellphoneRegion:null,separateWorkAddress:!1,workStreet:null,workZip:null,workCity:null,reverseVat:!1,vatNumber:null,externalId:null,note:null};return this.commit(`forms/${$t.SET_FORM}`,{key:"endCustomer",formData:t}),!0}catch(t){return this.handleError(t,{object:"endCustomer",action:`${gc}/${nH}`}),!1}},async[nGe]({getters:n},{id:t,props:r=[]}){const i=Gs(n.endCustomerById(t),r);this.dispatch(`forms/${$t.forms.SET_FORM_VALUE}`,{key:"endCustomer",value:i})},async[rH]({rootGetters:n,dispatch:t},{showNotification:r=!0}={}){try{const i=n["forms/getFormByKey"]("endCustomer");let{id:a}=i;return a?await t(z6,{id:i.id,body:i}):a=await t(V6,{body:i,showNotification:r}),a}catch(i){return this.handleError(i,{object:"endCustomer",fallbackCode:"endCustomer.submit",action:`${gc}/${rH}`}),null}}},{CLEAR_END_CUSTOMER:iGe,SET_ENDCUSTOMERS:aGe,DELETE_ENDCUSTOMER:oGe,SET_ENDCUSTOMER_FETCHING:sGe,SET_ENDCUSTOMER_POSTING:lGe}=cf,cGe={[aGe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a company user or an array of company users!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[oGe](n,t){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[iGe](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[])},[sGe](n,t){n.isFetching=t},[lGe](n,t){n.isPosting=t}},uGe={namespaced:!0,state:eGe,getters:{endCustomerById:n=>t=>n.data[t],isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,idList:n=>n.ids,clients:n=>n.data,defaultClientType:(n,t,r,i)=>()=>{const a=wt.getItem("defaultClientType");return a&&["individual","company"].includes(a)?a:i["settings/getCompanySetting"]("defaultClientType")||"company"}},actions:rGe,mutations:cGe},dGe={data:{},ids:[],tableDensity:"normal",isFetching:!1,isPosting:!1},nd="articles",{LOAD_ARTICLES:iH,LOAD_ARTICLE:nb,SET_ARTICLES:pGe,UPDATE_ARTICLE:H6,DO_CREATE_ARTICLE:aH,DELETE_ARTICLE:oH,PATCH_ARTICLE:W6,SEARCH_ARTICLE:sH,FORM_NEW_ARTICLE:fGe,FORM_EDIT_ARTICLE:hGe,FORM_SUBMIT_ARTICLE:lH}=bj,{SET_ARTICLES_FETCHING:rb,SET_ARTICLES_POSTING:yc}=_j,mGe={async[iH]({commit:n},t={}){try{n(rb,!0);const{data:r}=await tke(t);n($t.SET_ARTICLES,{data:r})}catch(r){this.handleError(r,{object:"article",fallbackCode:"article.get",action:`${nd}/${iH}`})}finally{n(rb,!1)}},async[nb]({commit:n},{id:t}){try{n(rb,!0);const{data:r}=await nke(t);n($t.SET_ARTICLES,{data:r})}catch(r){this.handleError(r,{object:"article",objectId:t,fallbackCode:"article.get",action:`${nd}/${nb}`,actionPayload:arguments[1]})}finally{n(rb,!1)}},async[H6]({dispatch:n,commit:t},{id:r,body:i}){try{return t(yc,!0),await ike(r,i),await n(nb,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("article")})}),r}catch(a){return this.handleError(a,{object:"article",objectId:r,fallbackCode:"article.put",action:`${nd}/${H6}`,actionPayload:arguments[1]}),null}finally{t(yc,!1)}},async[aH]({commit:n},{body:t,showMessage:r=!0}){try{n(yc,!0);const{data:i}=await rke(t);return await n(pGe,{data:i}),r&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("article")})}),i.id}catch(i){throw i}finally{n(yc,!1)}},async[oH]({commit:n},{id:t}){try{return n(yc,!0),await ake(t),n($t.DELETE_ARTICLE,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("article")}),actions:{undo:()=>{this.dispatch(`articles/${W6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"article",objectId:t,fallbackCode:"article.delete",action:`${nd}/${oH}`,actionPayload:arguments[1]}),null}finally{n(yc,!1)}},async[W6]({dispatch:n,commit:t},{id:r}){try{return t(yc,!0),await oke(r),await n(nb,{id:r}),r}catch(i){return this.handleError(i,{object:"article",objectId:r,fallbackCode:"article.patch",action:`${nd}/${W6}`,actionPayload:arguments[1]}),null}finally{t(yc,!1)}},async[sH](n,{query:t}){try{if(!t||t.length<=0)return[];const{data:r}=await ske(t);return r}catch(r){return this.handleError(r,{object:"article",fallbackCode:"article.search",action:`${nd}/${sH}`,actionPayload:arguments[1]}),[]}},[fGe]({commit:n,rootGetters:t}){const r=t["articles/getNewArticle"]();return n(`forms/${$t.SET_FORM}`,{key:"article",formData:r},{root:!0})},[hGe]({commit:n,getters:t},{id:r}){const i=t.articleById(r);return n(`forms/${$t.SET_FORM}`,{key:"article",formData:i},{root:!0})},async[lH]({rootGetters:n,dispatch:t}){try{const r=n["forms/getFormByKey"]("article");let{id:i}=r;return i?await t(H6,{id:r.id,body:r}):i=await t(aH,{body:r}),i}catch(r){return this.handleError(r,{object:"article",fallbackCode:"article.submit",action:`${nd}/${lH}`}),null}}},{SET_ARTICLES:gGe,DELETE_ARTICLE:vGe,CLEAR_ARTICLES:yGe,SET_ARTICLES_FETCHING:bGe,SET_ARTICLES_POSTING:_Ge}=_j,wGe={updateField:ff,[gGe](n,{data:t}){if(typeof t!="object")throw Error("Data must be an article or array of articles!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[vGe](n,t=""){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[yGe](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[])},[bGe](n,t){n.isFetching=t},[_Ge](n,t){n.isPosting=t}},xGe={namespaced:!0,state:dGe,getters:{getField:yg,articles:n=>n.data,articleIdList:n=>n.ids,articleById:n=>t=>n.data[t],isFetching:n=>n.isFetching,isPosting:n=>n.isPosting,getNewArticle:(n,t,r,i)=>a=>Qo({vat:i["settings/defaultVatRate"],showPrice:!i["settings/hidePriceOnNewlyAddedArticles"],currency:i["settings/defaultCurrency"],...a})},actions:mGe,mutations:wGe},CGe={data:{},ids:[],isFetching:!1,isPosting:!1},ib="unitTypes",{LOAD_UNIT_TYPES:cH,LOAD_UNIT_TYPE:G6,UPDATE_UNIT_TYPE:uH,CREATE_UNIT_TYPE:kGe,DELETE_UNIT_TYPE:dH}=Sj,{SET_UNIT_TYPES:q6,SET_UNIT_TYPE_FETCHING:ab,SET_UNIT_TYPE_POSTING:Cf}=d2,SGe={async[cH]({commit:n},t={}){try{n(ab,!0);const{data:r}=await Qm.get(null,t);n(q6,{data:r})}catch(r){this.handleError(r,{object:"unitType",fallbackCode:"unitType.get",action:`${ib}/${cH}`})}finally{n(ab,!1)}},async[G6]({commit:n},{id:t,params:r={}}){try{n(ab,!0);const{data:i}=await Qm.get(t,r);n(q6,{data:i})}catch(i){this.handleError(i,{object:"unitType",objectId:t,fallbackCode:"unitType.get",action:`${ib}/${G6}`,actionPayload:arguments[1]})}finally{n(ab,!1)}},async[uH]({dispatch:n,commit:t},{id:r,body:i}){try{return t(Cf,!0),await Qm.put(r,i),await n(G6,{id:r}),r}catch(a){return this.handleError(a,{object:"unitType",objectId:r,fallbackCode:"unitType.put",action:`${ib}/${uH}`,actionPayload:arguments[1]}),null}finally{t(Cf,!1)}},async[kGe]({commit:n},{body:t,showMessage:r=!0}){try{n(Cf,!0);const{data:i}=await Qm.post(t);return await n(q6,{data:i}),i.id}catch(i){throw i}finally{n(Cf,!1)}},async[dH]({commit:n},{id:t}){try{return n(Cf,!0),await Qm.delete(t),n(d2.DELETE_UNIT_TYPE,t),t}catch(r){return this.handleError(r,{object:"unitType",objectId:t,fallbackCode:"unitType.delete",action:`${ib}/${dH}`,actionPayload:arguments[1]}),null}finally{n(Cf,!1)}}},{SET_UNIT_TYPES:TGe,DELETE_UNIT_TYPE:EGe,SET_UNIT_TYPE_FETCHING:$Ge,SET_UNIT_TYPE_POSTING:AGe}=d2,OGe={[TGe](n,{data:t}){if(typeof t!="object")throw Error("Data must be an unitType or array of unitTypes!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[EGe](n,t=""){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[$Ge](n,t){n.isFetching=t},[AGe](n,t){n.isPosting=t}},DGe={namespaced:!0,state:CGe,getters:{byId:n=>t=>n.data[t],ids:n=>n.ids,isPosting:n=>n.isPosting,isFetching:n=>n.isFetching},actions:SGe,mutations:OGe},fs=Object.create(null);fs.open="0",fs.close="1",fs.ping="2",fs.pong="3",fs.message="4",fs.upgrade="5",fs.noop="6";const ob=Object.create(null);Object.keys(fs).forEach(n=>{ob[fs[n]]=n});const MGe={type:"error",data:"parser error"},PGe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",IGe=typeof ArrayBuffer=="function",RGe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,pH=({type:n,data:t},r,i)=>PGe&&t instanceof Blob?r?i(t):fH(t,i):IGe&&(t instanceof ArrayBuffer||RGe(t))?r?i(t):fH(new Blob([t]),i):i(fs[n]+(t||"")),fH=(n,t)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];t("b"+i)},r.readAsDataURL(n)},hH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<hH.length;n++)Rg[hH.charCodeAt(n)]=n;const LGe=n=>{let t=n.length*.75,r=n.length,i,a=0,o,s,c,l;n[n.length-1]==="="&&(t--,n[n.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(i=0;i<r;i+=4)o=Rg[n.charCodeAt(i)],s=Rg[n.charCodeAt(i+1)],c=Rg[n.charCodeAt(i+2)],l=Rg[n.charCodeAt(i+3)],d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|c>>2,d[a++]=(c&3)<<6|l&63;return u},NGe=typeof ArrayBuffer=="function",mH=(n,t)=>{if(typeof n!="string")return{type:"message",data:gH(n,t)};const r=n.charAt(0);return r==="b"?{type:"message",data:FGe(n.substring(1),t)}:ob[r]?n.length>1?{type:ob[r],data:n.substring(1)}:{type:ob[r]}:MGe},FGe=(n,t)=>{if(NGe){const r=LGe(n);return gH(r,t)}else return{base64:!0,data:n}},gH=(n,t)=>{switch(t){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},vH=String.fromCharCode(30),BGe=(n,t)=>{const r=n.length,i=new Array(r);let a=0;n.forEach((o,s)=>{pH(o,!1,c=>{i[s]=c,++a===r&&t(i.join(vH))})})},jGe=(n,t)=>{const r=n.split(vH),i=[];for(let a=0;a<r.length;a++){const o=mH(r[a],t);if(i.push(o),o.type==="error")break}return i},yH=4;function Tr(n){if(n)return zGe(n)}function zGe(n){for(var t in Tr.prototype)n[t]=Tr.prototype[t];return n}Tr.prototype.on=Tr.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(t),this},Tr.prototype.once=function(n,t){function r(){this.off(n,r),t.apply(this,arguments)}return r.fn=t,this.on(n,r),this},Tr.prototype.off=Tr.prototype.removeListener=Tr.prototype.removeAllListeners=Tr.prototype.removeEventListener=function(n,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+n];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,a=0;a<r.length;a++)if(i=r[a],i===t||i.fn===t){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+n],this},Tr.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+n],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,a=r.length;i<a;++i)r[i].apply(this,t)}return this},Tr.prototype.emitReserved=Tr.prototype.emit,Tr.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},Tr.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Va=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function bH(n,...t){return t.reduce((r,i)=>(n.hasOwnProperty(i)&&(r[i]=n[i]),r),{})}const VGe=Va.setTimeout,UGe=Va.clearTimeout;function sb(n,t){t.useNativeTimers?(n.setTimeoutFn=VGe.bind(Va),n.clearTimeoutFn=UGe.bind(Va)):(n.setTimeoutFn=Va.setTimeout.bind(Va),n.clearTimeoutFn=Va.clearTimeout.bind(Va))}const HGe=1.33;function WGe(n){return typeof n=="string"?GGe(n):Math.ceil((n.byteLength||n.size)*HGe)}function GGe(n){let t=0,r=0;for(let i=0,a=n.length;i<a;i++)t=n.charCodeAt(i),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}class qGe extends Error{constructor(t,r,i){super(t),this.description=r,this.context=i,this.type="TransportError"}}class _H extends Tr{constructor(t){super(),this.writable=!1,sb(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,r,i){return super.emitReserved("error",new qGe(t,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=mH(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const wH="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Y6=64,YGe={};let xH=0,lb=0,CH;function kH(n){let t="";do t=wH[n%Y6]+t,n=Math.floor(n/Y6);while(n>0);return t}function SH(){const n=kH(+new Date);return n!==CH?(xH=0,CH=n):n+"."+kH(xH++)}for(;lb<Y6;lb++)YGe[wH[lb]]=lb;function TH(n){let t="";for(let r in n)n.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return t}function KGe(n){let t={},r=n.split("&");for(let i=0,a=r.length;i<a;i++){let o=r[i].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}let EH=!1;try{EH=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ZGe=EH;function $H(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||ZGe))return new XMLHttpRequest}catch{}if(!t)try{return new Va[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function JGe(){}const XGe=function(){return new $H({xdomain:!1}).responseType!=null}();class QGe extends _H{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let a=location.port;a||(a=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||a!==t.port,this.xs=t.secure!==i}const r=t&&t.forceBase64;this.supportsBinary=XGe&&!r}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};jGe(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,BGe(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const r=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=SH()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(r==="https"&&Number(this.opts.port)!==443||r==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const a=TH(t),o=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(a.length?"?"+a:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new hs(this.uri(),t)}doWrite(t,r){const i=this.request({method:"POST",data:t});i.on("success",r),i.on("error",(a,o)=>{this.onError("xhr post error",a,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=t}}class hs extends Tr{constructor(t,r){super(),sb(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=r.async!==!1,this.data=r.data!==void 0?r.data:null,this.create()}create(){const t=bH(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new $H(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=hs.requestsCount++,hs.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=JGe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete hs.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(hs.requestsCount=0,hs.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",AH);else if(typeof addEventListener=="function"){const n="onpagehide"in Va?"pagehide":"unload";addEventListener(n,AH,!1)}}function AH(){for(let n in hs.requests)hs.requests.hasOwnProperty(n)&&hs.requests[n].abort()}const OH=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),cb=Va.WebSocket||Va.MozWebSocket,DH=!0,eqe="arraybuffer",MH=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",tqe={websocket:class extends _H{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,i=MH?{}:bH(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=DH&&!MH?r?new cb(t,r):new cb(t):new cb(t,r,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType||eqe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const i=t[r],a=r===t.length-1;pH(i,this.supportsBinary,o=>{const s={};try{DH&&this.ws.send(o)}catch{}a&&OH(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const r=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=SH()),this.supportsBinary||(t.b64=1);const a=TH(t),o=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(a.length?"?"+a:"")}check(){return!!cb}},polling:QGe},nqe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rqe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function K6(n){const t=n,r=n.indexOf("["),i=n.indexOf("]");r!=-1&&i!=-1&&(n=n.substring(0,r)+n.substring(r,i).replace(/:/g,";")+n.substring(i,n.length));let a=nqe.exec(n||""),o={},s=14;for(;s--;)o[rqe[s]]=a[s]||"";return r!=-1&&i!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=iqe(o,o.path),o.queryKey=aqe(o,o.query),o}function iqe(n,t){const r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function aqe(n,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,o){a&&(r[a]=o)}),r}let PH=class Yh extends Tr{constructor(t,r={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(r=t,t=null),t?(t=K6(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=K6(r.host).host),sb(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=KGe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=yH,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new tqe[t](i)}open(){let t;if(this.opts.rememberUpgrade&&Yh.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),i=!1;Yh.priorWebsocketSuccess=!1;const a=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!i)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Yh.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function o(){i||(i=!0,d(),r.close(),r=null)}const s=p=>{const f=new Error("probe error: "+p);f.transport=r.name,o(),this.emitReserved("upgradeError",f)};function c(){s("transport closed")}function l(){s("socket closed")}function u(p){r&&p.name!==r.name&&o()}const d=()=>{r.removeListener("open",a),r.removeListener("error",s),r.removeListener("close",c),this.off("close",l),this.off("upgrading",u)};r.once("open",a),r.once("error",s),r.once("close",c),this.once("close",l),this.once("upgrading",u),r.open()}onOpen(){if(this.readyState="open",Yh.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(r+=WGe(a)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(t,r,i){return this.sendPacket("message",t,r,i),this}send(t,r,i){return this.sendPacket("message",t,r,i),this}sendPacket(t,r,i,a){if(typeof r=="function"&&(a=r,r=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:t,data:r,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){Yh.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let i=0;const a=t.length;for(;i<a;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}};PH.protocol=yH;function oqe(n,t="",r){let i=n;r=r||typeof location<"u"&&location,n==null&&(n=r.protocol+"//"+r.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=r.protocol+n:n=r.host+n),/^(https?|wss?):\/\//.test(n)||(typeof r<"u"?n=r.protocol+"//"+n:n="https://"+n),i=K6(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+t,i.href=i.protocol+"://"+o+(r&&r.port===i.port?"":":"+i.port),i}const sqe=typeof ArrayBuffer=="function",lqe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,IH=Object.prototype.toString,cqe=typeof Blob=="function"||typeof Blob<"u"&&IH.call(Blob)==="[object BlobConstructor]",uqe=typeof File=="function"||typeof File<"u"&&IH.call(File)==="[object FileConstructor]";function Z6(n){return sqe&&(n instanceof ArrayBuffer||lqe(n))||cqe&&n instanceof Blob||uqe&&n instanceof File}function ub(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,i=n.length;r<i;r++)if(ub(n[r]))return!0;return!1}if(Z6(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ub(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&ub(n[r]))return!0;return!1}function dqe(n){const t=[],r=n.data,i=n;return i.data=J6(r,t),i.attachments=t.length,{packet:i,buffers:t}}function J6(n,t){if(!n)return n;if(Z6(n)){const r={_placeholder:!0,num:t.length};return t.push(n),r}else if(Array.isArray(n)){const r=new Array(n.length);for(let i=0;i<n.length;i++)r[i]=J6(n[i],t);return r}else if(typeof n=="object"&&!(n instanceof Date)){const r={};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=J6(n[i],t));return r}return n}function pqe(n,t){return n.data=X6(n.data,t),n.attachments=void 0,n}function X6(n,t){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<t.length)return t[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let r=0;r<n.length;r++)n[r]=X6(n[r],t);else if(typeof n=="object")for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=X6(n[r],t));return n}const fqe=5;var sn;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(sn||(sn={}));class hqe{constructor(t){this.replacer=t}encode(t){return(t.type===sn.EVENT||t.type===sn.ACK)&&ub(t)?(t.type=t.type===sn.EVENT?sn.BINARY_EVENT:sn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===sn.BINARY_EVENT||t.type===sn.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=dqe(t),i=this.encodeAsString(r.packet),a=r.buffers;return a.unshift(i),a}}class Q6 extends Tr{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t),r.type===sn.BINARY_EVENT||r.type===sn.BINARY_ACK?(this.reconstructor=new mqe(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Z6(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const i={type:Number(t.charAt(0))};if(sn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===sn.BINARY_EVENT||i.type===sn.BINARY_ACK){const o=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const s=t.substring(o,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(t.charAt(r+1)==="/"){const o=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););i.nsp=t.substring(o,r)}else i.nsp="/";const a=t.charAt(r+1);if(a!==""&&Number(a)==a){const o=r+1;for(;++r;){const s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}i.id=Number(t.substring(o,r+1))}if(t.charAt(++r)){const o=this.tryParse(t.substr(r));if(Q6.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case sn.CONNECT:return typeof r=="object";case sn.DISCONNECT:return r===void 0;case sn.CONNECT_ERROR:return typeof r=="string"||typeof r=="object";case sn.EVENT:case sn.BINARY_EVENT:return Array.isArray(r)&&r.length>0;case sn.ACK:case sn.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class mqe{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=pqe(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gqe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Q6,Encoder:hqe,get PacketType(){return sn},protocol:fqe},Symbol.toStringTag,{value:"Module"}));function wo(n,t,r){return n.on(t,r),function(){n.off(t,r)}}const vqe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let RH=class extends Tr{constructor(t,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[wo(t,"open",this.onopen.bind(this)),wo(t,"packet",this.onpacket.bind(this)),wo(t,"error",this.onerror.bind(this)),wo(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){if(vqe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const i={type:sn.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const s=this.ids++,c=r.pop();this._registerAckCallback(s,c),i.id=s}const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},a);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),r.apply(this,[null,...s])}}emitWithAck(t,...r){const i=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((a,o)=>{r.push((s,c)=>i?s?o(s):a(c):a(s)),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const i={id:this.ids++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...o)=>i!==this._queue[0]?void 0:(a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(a)):(this._queue.shift(),r&&r(null,...o)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(){if(this._queue.length===0)return;const t=this._queue[0];if(t.pending)return;t.pending=!0,t.tryCount++;const r=this.ids;this.ids=t.id,this.flags=t.flags,this.emit.apply(this,t.args),this.ids=r}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:sn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case sn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case sn.EVENT:case sn.BINARY_EVENT:this.onevent(t);break;case sn.ACK:case sn.BINARY_ACK:this.onack(t);break;case sn.DISCONNECT:this.ondisconnect();break;case sn.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let i=!1;return function(...a){i||(i=!0,r.packet({type:sn.ACK,id:t,data:a}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.apply(this,t.data),delete this.acks[t.id])}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:sn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,t.data)}}};function kf(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}kf.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*n);n=Math.floor(t*10)&1?n+r:n-r}return Math.min(n,this.max)|0},kf.prototype.reset=function(){this.attempts=0},kf.prototype.setMin=function(n){this.ms=n},kf.prototype.setMax=function(n){this.max=n},kf.prototype.setJitter=function(n){this.jitter=n};class eT extends Tr{constructor(t,r){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,sb(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new kf({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const a=r.parser||gqe;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new PH(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=wo(r,"open",function(){i.onopen(),t&&t()}),o=wo(r,"error",s=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",s),t?t(s):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&a();const c=this.setTimeoutFn(()=>{a(),r.close(),r.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&c.unref(),this.subs.push(function(){clearTimeout(c)})}return this.subs.push(a),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(wo(t,"ping",this.onping.bind(this)),wo(t,"data",this.ondata.bind(this)),wo(t,"error",this.onerror.bind(this)),wo(t,"close",this.onclose.bind(this)),wo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){OH(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let i=this.nsps[t];return i||(i=new RH(this,t,r),this.nsps[t]=i),this._autoConnect&&i.connect(),i}_destroy(t){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let i=0;i<r.length;i++)this.engine.write(r[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Lg={};function db(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const r=oqe(n,t.path||"/socket.io"),i=r.source,a=r.id,o=r.path,s=Lg[a]&&o in Lg[a].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return c?l=new eT(i,t):(Lg[a]||(Lg[a]=new eT(i,t)),l=Lg[a]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(db,{Manager:eT,Socket:RH,io:db,connect:db});class yqe{constructor({rootUrl:t,path:r,logger:i=console,getTokenFn:a}){$n(this,"_socket",null);$n(this,"_isConnected",!1);$n(this,"_autoReconnect",!1);$n(this,"_localAutoReconnect",!1);$n(this,"_listeners",[]);$n(this,"_connectionChangedListener",[]);$n(this,"_retryCount",0);this.rootUrl=t,this.path=r,this.logger=i,this.getTokenFn=a}set autoReconnect(t){this._autoReconnect=!!t}onConnectionChanged(t){this._connectionChangedListener.push(t)}_onConnectionChanged(t){this._connectionChangedListener.forEach(r=>{try{r(t)}catch(i){console.error(i)}})}setConnected(t){t||(this._retryCount=this._retryCount+1),this.logger.debug(`Socket: isConnected changed to ${t}`);const r=this._isConnected!==t;this._isConnected=t,r&&this._onConnectionChanged(t)}_onConnected(){const t=this.getTokenFn();t&&this._socket.emit("authenticate",{token:t})}on(t,r){return this._listeners.push({type:t,fn:r}),this._socket&&this._socket.on(t,r),()=>this.off(t,r)}off(t,r){this._listeners.forEach((i,a)=>{var o;i.type===t&&i.fn===r&&(this._listeners.splice(a,1),(o=this._socket)==null||o.off(t,r))})}async connect(){await(a=>new Promise(o=>setTimeout(o,a*2*1e3)))(this._retryCount),this._socket&&(this._localAutoReconnect=!1,this.disconnect(),this._localAutoReconnect=!0);const{origin:r,pathname:i}=new URL(this.rootUrl+this.path);this._socket=db(r,{path:i,transports:["websocket","polling"]}),this._socket.on("connect",this._onConnected.bind(this)),this._socket.on("event",a=>this.logger.debug("Socket: Event:",a)),this._listeners.forEach(({type:a,fn:o})=>{this._socket.on(a,o)}),this._socket.on("disconnect",()=>{this.setConnected(!1),this._localAutoReconnect&&this._autoReconnect&&this.connect()}),this._socket.on("authenticated",()=>{this._retryCount=0,this.setConnected(!0)}),this._socket.on("unauthorized",()=>{this.setConnected(!1)})}disconnect(){this._socket&&(this._socket.close(),this._socket=null)}}const Sf=new yqe({rootUrl:Xe.api.baseUrl,path:Xe.api.socket.path,logger:Pn,getTokenFn:()=>wt.getItem("token")}),bqe=n=>{Sf.onConnectionChanged(t=>{n.commit(`application/${$t.application.SET_SOCKET_CONNECTED}`,t)}),Sf.on("event",({type:t,action:r,id:i})=>{if(t==="document")n.getters["documents2/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`documents2/${$t.documents2.DELETE_MANY_DOCUMENTS2}`,i):n.dispatch(He.LOAD_DOCUMENT2,{id:i,emit:!0})},1);else if(t==="template")n.getters["templates/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`templates/${$t.templates.DELETE_MANY_TEMPLATES}`,i):n.dispatch(He.LOAD_TEMPLATE,{id:i})},1);else if(t==="notification"){if(!n.hasModule("notifications"))return;setTimeout(()=>{r==="deleted"?n.commit(`notifications/${$t.notifications.DELETE_MANY_NOTIFICATIONS}`,i):n.dispatch(He.LOAD_NOTIFICATION,{id:i})},1)}else if(t==="project"){if(!n.hasModule("projects"))return;n.getters["projects/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`projects/${$t.projects.DELETE_MANY_PROJECTS}`,i):n.dispatch(He.LOAD_PROJECT,{id:i})},1)}else t==="companyUser"?n.getters["companyUsers/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`companyUsers/${$t.DELETE_COMPANY_USER}`,i):n.dispatch(He.LOAD_COMPANY_USER,{id:i})},1):t==="companyAccount"?setTimeout(()=>{n.dispatch(He.DO_LOAD_CURRENT_COMPANY)},1):t==="companySetting"?setTimeout(()=>{r==="deleted"?n.commit(`settings/${$t.settings.CLEAR_SETTINGS}`,{key:"company",name:i}):n.dispatch(He.LOAD_SETTINGS_COMPANY)},1):t==="companyUserSetting"?setTimeout(()=>{r==="deleted"?n.commit(`settings/${$t.settings.CLEAR_SETTINGS}`,{key:"companyUser",name:i}):n.dispatch(He.LOAD_SETTINGS_COMPANYUSER)},1):t==="systemClient"&&r==="refreshToken"&&setTimeout(()=>{DCe()},1)}),n.subscribe(async t=>{if(!n.getters["application/socketEnabled"])return;const{type:r,payload:i}=t;r==="application/SET_USER"&&i&&typeof i.userId<"u"&&(Sf.autoReconnect=!!i.userId,i.userId?await Sf.connect():i.userId===null&&await Sf.disconnect())})},LH={projectFiles:"projects",certificates:"certificates",companies:"companies",companyUsers:"companyUsers",projects:"projects",invoices:"invoices",companyReferences:"companyReferences",companyReferenceItems:"companyReferenceItems",files:"files",documents:"documents",timeTracks:"timeTracks",documentTerms:"documentTerms"},NH={projects:$t.SET_PROJECTS,invoices:$t.invoices.SET_INVOICES,offers:$t.SET_OFFERS,companyUsers:$t.SET_COMPANY_USERS,companies:$t.companies.SET_COMPANIES,events:$t.SET_EVENTS,atas:$t.SET_ATAS,contracts:$t.SET_CONTRACTS,projectNotes:$t.SET_PROJECT_NOTES,projectFiles:$t.SET_PROJECT_FILES,articles:$t.SET_ARTICLES,certificates:$t.certificates.SET_CERTIFICATES,companyReferenceItems:$t.companyReferenceItems.SET_COMPANY_REFERENCE_ITEMS,companyReferences:$t.companyReferences.SET_COMPANY_REFERENCES,files:$t.files.UPDATE_MANY_FILES,notifications:$t.SET_NOTIFICATIONS,templateMessages:$t.SET_TEMPLATE_MESSAGES,timeTracks:$t.timeTracks.SET_TIME_TRACKS,documentTerms:$t.documentTerms.SET_DOCUMENT_TERMS},_qe={[Uu](n,t){const r={includedModules:void 0,excludedModules:void 0,schema:void 0,data:void 0,moduleOpts:{},...t};if(!r.schema||!r.data)throw Error("Unable to normalize data, missing schema or data");const i=Array.isArray(r.data)?r.data:[r.data];let a;typeof r.schema=="string"?{entities:a}=dLe(i,r.schema):{entities:a}=Vj(i,r.schema);let o=Object.keys(a);o=o.filter(s=>(!r.includedModules||r.includedModules.includes(s))&&(!r.excludedModules||!r.excludedModules.includes(s))),o.forEach(s=>{if(!NH[s]){Pn.warn(`setActions: '${s}', does not exist`);return}if(!LH[s]){Pn.warn(`moduleKeys: '${s}', does not exist`);return}const c={doClearOld:!1,...r.moduleOpts[s]||{}};this.commit(`${LH[s]}/${NH[s]}`,{data:Object.keys(a[s]).map(l=>a[s][l]),...c})})}};Fe.use(oj);const FH=[TIe({whitelist:["entities"]}),bqe];try{const n=SIe({paths:["forms"]});FH.push(n)}catch(n){Pn.debug(n)}const hn=new oj.Store({modules:{application:DRe,companies:bLe,companyUsers:PLe,documents2:QWe,endCustomers:uGe,forms:Hze,files:rVe,projects:vWe,settings:JLe,templates:TWe,templateMessages:LWe,articles:xGe,unitTypes:DGe},actions:_qe,mutations:{reset:()=>{}},plugins:FH});class wqe{constructor(){$n(this,"id","directive-name");this.store=null,this.isInitialized=!1}install(t,r){this.isInitialized||(t.directive(this.id,this._getDirective()),this.load(t,r),this.isInitialized=!0)}load(t,r){}bind(...t){this.update(...t)}inserted(){}update(t,r,i,a){}componentUpdated(t,r,i,a){}unbind(){}_getDirective(){return{bind:this.bind.bind(this),update:this.update.bind(this),inserted:this.inserted.bind(this),componentUpdated:this.componentUpdated.bind(this),unbind:this.unbind.bind(this)}}}class xqe extends wqe{constructor(){super(...arguments);$n(this,"id","click-outside");$n(this,"HANDLER","_vue_clickaway_handler")}bind(r,i,a){this.unbind(r);const o=a.context,s=i.value;if(typeof s!="function"){Vue.util.warn(`v-${i.name}="${i.expression}" expects a function value, got ${s}`);return}let c=!1;setTimeout(()=>{c=!0},0),r[this.HANDLER]=function(u){const d=u.path||(u.composedPath?u.composedPath():void 0);return c&&(d?d.indexOf(r)<0:!r.contains(u.target))?s.call(o,u):!1},document.documentElement.addEventListener("click",r[this.HANDLER],!1)}unbind(r){document.documentElement.removeEventListener("click",r[this.HANDLER],!1),delete r[this.HANDLER]}}const Cqe=new xqe,kqe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Sqe(n){return Object.keys(n).map(t=>`${t}="${n[t]}"`).join(" ")}class Tqe{constructor(t,r,i=[]){this.name=t,this.contents=r,this.tags=i,this.attrs={...kqe,class:`feather feather-${t}`}}toSvg(t={}){const r={...this.attrs,...t,class:`${this.attrs.class} ${t.class}`};return`<svg ${Sqe(r)}>${this.contents}</svg>`}toString(){return this.contents}}const BH={empty:"<path></path>","chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',email:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',warning:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',edit:'<path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34"></path><polygon points="18 2 22 6 12 16 8 16 8 12 18 2"></polygon>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',"user-add":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',zap:'<polygon points="6 2 3 14 10 14 9 23 21 9 12 9 15 2"></polygon>',handle:'<circle cx="8" cy="12" r="1"></circle><circle cx="8" cy="5" r="1"></circle><circle cx="8" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>',cog:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',template:'<path d="M13.1288235 8.96823529L7.64823529 18.1176471c-.22993777.3981997-.23131063.8885068-.00360637 1.2879879.22770427.3994812.65028474.6481349 1.11007696.6531885H19.7158824c.4597922-.0050536.8823726-.2537073 1.1100769-.6531885.2277043-.3994811.2263314-.8897882-.0036064-1.2879879l-5.4805882-9.14941181c-.2346013-.38675914-.6541207-.622952-1.1064706-.622952-.4523499 0-.8718693.23619286-1.1064706.622952zM9.52035111 1.52159478C8.8745304 1.30537258 8.18329779 1.188235 7.46470624 1.188235 3.89109903 1.188235.994118 4.08521603.994118 7.65882324c0 3.26867116 2.42367552 5.97126256 5.57193953 6.40868706"/><path d="M8.6634487 11.52342624L6.89650942 6.08534626c-.22086107-.67974048.1511342-1.40982229.83087467-1.63068336l8.61545314-2.79933041c.67974054-.2208611 1.40982235.15113417 1.63068342.83087465l2.79933043 8.61545318c.20002516.61561413-.086223 1.2725192-.6469517 1.5550493"/>',"template-color":'<g fill="none" stroke="none" fill-rule="evenodd"><path fill="#3CD740" d="M7.20527962 6.31188761C6.64248136 6.10988982 6.03696274 6 5.40621512 6 2.42045261 6 0 8.46243776 0 11.5000057 0 14.5375966 2.42045261 17 5.40621512 17c1.78482731 0 3.38970782-.9439359 4.37423872-2.3006513l-4.03718867-.690644 1.46201445-7.69681709z"/><path fill="#299DFF" d="M8.79874995 3L7 13.2257595l4.8157688.8511636L16 7l2.0689267 3.6486439L19 4.80307079z"/><path fill="#E60DFF" d="M10 19.2989721L16 9l6 10.2989721z"/></g>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="20" y1="20" x2="16.65" y2="16.65"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',paper:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',"paper-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V8l-6-6z"/><path d="M14 3v5h5M16 13H8M16 17H8M10 9H8"/>',"paper-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',user:'<path d="M5.52 19c.64-2.2 1.84-3 3.22-3h6.52c1.38 0 2.58.8 3.22 3"/><circle cx="12" cy="10" r="3"/><circle cx="12" cy="12" r="10"/>',person:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',"arrow-down":'<path d="M12 5v13M5 12l7 7 7-7"/>',"arrow-up":'<path d="M12 19V6M5 12l7-7 7 7"/>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',"chevron-left":'<polyline points="14 18 8 12 14 6"></polyline>',"chevron-right":'<path d="M9 18l6-6-6-6"/>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-up-down":'<polyline points="17 8 12 3 7 8"></polyline><polyline points="17 15 12 20 7 15"></polyline>',"chevron-up":'<path d="M18 15l-6-6-6 6"/>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',dollar:'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',check:'<polyline points="20 6 9 17 4 12"></polyline>',send:'<line x1="22" y1="11" x2="8" y2="11"></line><polygon points="22 11 4 20 8 11 4 2 22 11"></polygon>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',alert:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"circle-status":'<circle cx="12" cy="12" r="11" fill="currentColor" opacity="0.5"></circle><circle cx="12" cy="12" r="4" fill="currentColor"></circle>',circle:'<circle cx="12" cy="12" r="10"></circle>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"new-window":'<g fill="none" fill-rule="evenodd"><path d="M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"/></g>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',print:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',sort:'<line x1="6" y1="16" x2="8" y2="16"></line><line x1="6" y1="10" x2="14" y2="10"></line><line x1="6" y1="4" x2="20" y2="4"></line>',"square-filled-check":'<path fill="#currentColor" stroke="none" fill-rule="nonzero" d="M7 3h10c2.209139 0 4 1.790861 4 4v10c0 2.209139-1.790861 4-4 4H7c-2.209139 0-4-1.790861-4-4V7c0-2.209139 1.790861-4 4-4zm1.08963645 8.479072c-.2954885-.1600713-.65162073-.1610177-.94795577-.0025191l-.43065247.2303401c-.07620551.0407595-.14427685.0951688-.2008263.1605199-.25504929.2947468-.22286811.7404446.07187866.9954938l3.84044413 3.3232002a1.0000081 1.0000081 0 00.0946803.0725235c.4576881.3090956 1.079289.1886376 1.3883846-.2690505l5.1003142-7.55220409c.2865705-.42433447.2063135-.99658014-.18593-1.3257115l-.0020995-.00176176c-.3854696-.32344738-.9583065-.28155332-1.292616.09453464l-4.9815245 5.60406241-2.45409735-1.3294276z"/>',"colored-dots":'<circle cx="6" cy="6" r="4" stroke="none" fill="red"></circle><circle cx="18" cy="6" r="4" stroke="none" fill="#ff7a14"></circle><circle cx="6" cy="18" r="4" stroke="none" fill="#2bb8d4"></circle><circle cx="18" cy="18" r="4" stroke="none" fill="#3352ff"></circle>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path><',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',crown:'<path d="M2 4L5 16H19L22 4L16 11L12 4L8 11L2 4ZM5 20H19" />',lamp:'<path d="M9 17v3c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-3M15 16.59c0-.77.46-1.45 1.09-1.9a7 7 0 1 0-8.18 0A2.41 2.41 0 0 1 9 16.58V17h6v-.41zM12 17v-5m-2 0h4" />',"paper-invoice":'<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><path d="M14 2v6h6M10 8H8M10 5H8m0 7h8v3.46H8zm8 7h-2"/>',drop:'<path d="M12,21 C15.3137085,21 18,18.3904147 18,15 C18,11.6666667 16,8 12,4 C8,8 6,11.6666667 6,15 C6,18.3904147 8.6862915,21 12,21 Z"></path>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',logout:'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',linkedin:'<path fill="currentColor" stroke="none" d="M22.23 0H1.77C.8 0 0 .77 0 1.72v20.56C0 23.23.8 24 1.77 24h20.46c.98 0 1.77-.77 1.77-1.72V1.72C24 .77 23.2 0 22.23 0zM7.27 20.1H3.65V9.24h3.62V20.1zM5.47 7.76h-.03c-1.22 0-2-.83-2-1.87 0-1.06.8-1.87 2.05-1.87 1.24 0 2 .8 2.02 1.87 0 1.04-.78 1.87-2.05 1.87zM20.34 20.1h-3.63v-5.8c0-1.45-.52-2.45-1.83-2.45-1 0-1.6.67-1.87 1.32-.1.23-.11.55-.11.88v6.05H9.28s.05-9.82 0-10.84h3.63v1.54a3.6 3.6 0 0 1 3.26-1.8c2.39 0 4.18 1.56 4.18 4.89v6.21z"></path>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"rotate-left":'<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38"/>',image:'<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M20.4 14.5L16 10 4 20"/>',textType:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',desktop:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2" /><line x1="12" y1="18" x2="12.01" y2="18" />',mobile:'<rect x="6" y="4" width="12" height="18" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',help:'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',reset:'<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38"/>',company:'<path d="M4 19L4 5H14.5V11.5M14.5 19V11.5M14.5 11.5H20V19" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="7.5" x2="7.75" y2="9.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="7.5" x2="10.75" y2="9.5" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="11.5" x2="7.75" y2="13.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="11.5" x2="10.75" y2="13.5" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="15.5" x2="7.75" y2="17.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="15.5" x2="10.75" y2="17.5" stroke="currentColor" stroke-linecap="butt" />',pipedrive:'<path d="M10.57 5.38c-.06-.47-.37-1.04-1.6-1.04H6v2.58h1.21c.2 0 .26.1.26.28v12.91h3.3v-5.26c.84.7 1.9 1.1 3 1.08 3.1 0 5.1-2.46 5.1-5.97 0-3.57-1.94-5.96-5-5.96a4.3 4.3 0 0 0-3.3 1.38Zm2.7 1.42c1.5 0 2.5 1.29 2.5 3.2 0 2.2-1.27 3.17-2.54 3.17-1.7 0-2.48-1.63-2.48-3.14 0-2.39 1.3-3.23 2.52-3.23Z" fill="currentColor" stroke="none" />',hubspot:'<path d="M15.82 8.26V5.99a1.73 1.73 0 0 0 1-1.57v-.05c0-.96-.78-1.74-1.73-1.74h-.05c-.96 0-1.73.78-1.73 1.74v.05a1.75 1.75 0 0 0 1 1.57v2.27c-.86.13-1.66.48-2.33 1.03L5.82 4.46a1.97 1.97 0 0 0-1.13-2.3 1.93 1.93 0 0 0-2.65 1.42 1.98 1.98 0 0 0 .82 2.01 1.94 1.94 0 0 0 2.04.07l6.06 4.76a4.98 4.98 0 0 0 .08 5.57L9.2 17.85a1.6 1.6 0 0 0-2.06 1.54c0 .89.71 1.61 1.6 1.61a1.6 1.6 0 0 0 1.52-2.08l1.82-1.83a4.88 4.88 0 0 0 5.61.27 4.97 4.97 0 0 0-1.87-9.1Zm-.76 7.44a2.5 2.5 0 0 1-2.39-1.56 2.56 2.56 0 0 1 1.4-3.35c.32-.13.66-.19 1-.18a2.53 2.53 0 0 1 2.43 2.54c0 1.37-1.08 2.5-2.43 2.55" fill="currentColor" stroke="none" />',salesforce:'<path d="M10.15 6.64a3.93 3.93 0 0 1 6.19.8c.58-.26 1.23-.4 1.92-.4A4.7 4.7 0 0 1 23 11.69a4.7 4.7 0 0 1-5.67 4.57 3.49 3.49 0 0 1-4.55 1.4c-.6 1.37-2 2.34-3.64 2.34a3.96 3.96 0 0 1-3.71-2.52A3.64 3.64 0 0 1 1 13.94c0-1.34.74-2.51 1.84-3.14a3.99 3.99 0 0 1-.36-1.65A4.2 4.2 0 0 1 6.75 5a4.3 4.3 0 0 1 3.4 1.64Z" fill="currentColor" stroke="none" />',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',sidebar:'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="8" y1="4" x2="8" y2="20"></line>',table:'<path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4H6.25ZM4.5 10v4h4v-4h-4Zm5.5 0v4h4v-4h-4Zm5.5 0v4h4v-4h-4ZM14 15.5h-4v4h4v-4Zm1.5 4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4v4Zm0-11h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-1.5-4h-4v4h4v-4Zm-9.5 11v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4h-4Z" fill="currentColor" stroke="none"/>',tableMergeCells:'<path d="M6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25ZM4.5 6.25c0-.966.784-1.75 1.75-1.75H11v3H4.5V6.25Zm8 10.25h7v1.25a1.75 1.75 0 0 1-1.75 1.75H12.5v-3Zm7-9h-7v-3h5.25c.966 0 1.75.784 1.75 1.75V7.5Zm-8.5 9v3H6.25a1.75 1.75 0 0 1-1.75-1.75V16.5H11ZM4.5 9h15v6h-15V9Z" fill="currentColor" stroke="none"/>',tableSplitCells:'<path d="M12.5 10H11v4h1.5v-4Z" fill="currentColor" stroke="none"/><path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V7.5H11v-3H6.25Zm13.25 12h-7v3h5.25a1.75 1.75 0 0 0 1.75-1.75V16.5Zm0-10.25a1.75 1.75 0 0 0-1.75-1.75H12.5v3h7V6.25ZM4.5 16.5v1.25c0 .966.784 1.75 1.75 1.75H11v-3H4.5Zm0-1.5h15V9h-15v6Z" fill="currentColor" stroke="none"/>',tableDeleteColumn:'<path d="M22 3.75a.75.75 0 0 0-.75-.75h-1A3.25 3.25 0 0 0 17 6.25v11.5A3.25 3.25 0 0 0 20.25 21h1a.75.75 0 0 0 0-1.5h-1a1.75 1.75 0 0 1-1.75-1.75V15.5h2.75a.75.75 0 0 0 0-1.5H18.5v-4h2.75a.75.75 0 0 0 0-1.5H18.5V6.25c0-.966.784-1.75 1.75-1.75h1a.75.75 0 0 0 .75-.75ZM2 3.75A.75.75 0 0 1 2.75 3h1A3.25 3.25 0 0 1 7 6.25v11.5A3.25 3.25 0 0 1 3.75 21h-1a.75.75 0 0 1 0-1.5h1a1.75 1.75 0 0 0 1.75-1.75V15.5H2.75a.75.75 0 0 1 0-1.5H5.5v-4H2.75a.75.75 0 0 1 0-1.5H5.5V6.25A1.75 1.75 0 0 0 3.75 4.5h-1A.75.75 0 0 1 2 3.75ZM10.94 12l-1.47 1.47a.75.75 0 1 0 1.06 1.06L12 13.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L13.06 12l1.47-1.47a.75.75 0 1 0-1.06-1.06L12 10.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L10.94 12Z" fill="currentColor" stroke="none"/><path d="M11.25 8.727c.026.023.051.047.076.072l.674.674.674-.674c.025-.025.05-.049.076-.072V2.75a.75.75 0 0 0-1.5 0v5.977ZM11.25 15.523v5.727a.75.75 0 0 0 1.5 0v-5.727a1.826 1.826 0 0 1-.076-.072L12 14.777l-.674.674-.076.072Z" fill="currentColor" stroke="none"/>',tableDeleteRow:'<path d="M3.75 2a.75.75 0 0 0-.75.75v1A3.25 3.25 0 0 0 6.25 7h11.5A3.25 3.25 0 0 0 21 3.75v-1a.75.75 0 0 0-1.5 0v1a1.75 1.75 0 0 1-1.75 1.75H15.5V2.75a.75.75 0 0 0-1.5 0V5.5h-4V2.75a.75.75 0 0 0-1.5 0V5.5H6.25A1.75 1.75 0 0 1 4.5 3.75v-1A.75.75 0 0 0 3.75 2ZM3.75 22a.75.75 0 0 1-.75-.75v-1A3.25 3.25 0 0 1 6.25 17h11.5A3.25 3.25 0 0 1 21 20.25v1a.75.75 0 0 1-1.5 0v-1a1.75 1.75 0 0 0-1.75-1.75H15.5v2.75a.75.75 0 0 1-1.5 0V18.5h-4v2.75a.75.75 0 0 1-1.5 0V18.5H6.25a1.75 1.75 0 0 0-1.75 1.75v1a.75.75 0 0 1-.75.75ZM12 13.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L13.06 12l1.47-1.47a.75.75 0 1 0-1.06-1.06L12 10.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L10.94 12l-1.47 1.47a.75.75 0 1 0 1.06 1.06L12 13.06Z" fill="currentColor" stroke="none"/><path d="M8.727 12.75c.023-.026.047-.051.072-.076L9.473 12l-.674-.674a1.845 1.845 0 0 1-.072-.076H2.75a.75.75 0 0 0 0 1.5h5.977ZM15.523 12.75h5.727a.75.75 0 0 0 0-1.5h-5.727a1.826 1.826 0 0 1-.072.076l-.674.674.674.674.072.076Z" fill="currentColor" stroke="none"/>',tableInsertColumn:'<path d="M4.5 3.75v16.5a.75.75 0 0 1-1.5 0V3.75a.75.75 0 0 1 1.5 0ZM14.25 3a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 14.25 21h-4.5a2.25 2.25 0 0 1-2.25-2.25V5.25A2.25 2.25 0 0 1 9.75 3h4.5ZM15 5.25a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0-.75.75V8.5h6V5.25ZM9 14h6v-4H9v4Zm0 1.5v3.25c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75V15.5H9ZM21 20.25V3.75a.75.75 0 0 0-1.5 0v16.5a.75.75 0 0 0 1.5 0Z" fill="currentColor" stroke="none"/>',tableInsertRowBefore:'<path d="M20.25 4.5a.75.75 0 0 0 0-1.5H3.75a.75.75 0 0 0 0 1.5h16.5ZM20.25 8.5a.75.75 0 0 1 .75.75v8.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75v-8.5a.75.75 0 0 1 .75-.75h16.5ZM14 10h-4v4h4v-4Zm-5.5 0h-4v4h4v-4Zm0 5.5h-4v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4Zm5.5 0h-4v4h4v-4Zm1.5 4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4v4Zm4-9.5h-4v4h4v-4Z" fill="currentColor" stroke="none"/>',tableInsertRowAfter:'<path d="M3.75 15.5a.75.75 0 0 1-.75-.75v-8.5A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v8.5a.75.75 0 0 1-.75.75H3.75ZM10 14h4v-4h-4v4Zm0-5.5h4v-4h-4v4Zm5.5 5.5h4v-4h-4v4Zm0-5.5h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-7-4H6.25A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4Zm-4 9.5h4v-4h-4v4ZM3.75 19.5a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75Z" fill="currentColor" stroke="none"/>',tableInsertColumnBefore:'<path d="M4.5 3.75a.75.75 0 0 0-1.5 0v16.5a.75.75 0 0 0 1.5 0V3.75ZM8.5 3.75A.75.75 0 0 1 9.25 3h8.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21h-8.5a.75.75 0 0 1-.75-.75V3.75ZM10 10v4h4v-4h-4Zm0 5.5v4h4v-4h-4Zm5.5 0v4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4Zm0-5.5v4h4v-4h-4Zm4-1.5V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4h4Zm-9.5-4v4h4v-4h-4Z" fill="currentColor" stroke="none"/>',tableInsertColumnAfter:'<path d="M15.5 3.75a.75.75 0 0 0-.75-.75h-8.5A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h8.5a.75.75 0 0 0 .75-.75V3.75ZM14 10v4h-4v-4h4Zm-9.5 4v-4h4v4h-4ZM14 8.5h-4v-4h4v4Zm-5.5 0h-4V6.25c0-.966.784-1.75 1.75-1.75H8.5v4Zm0 11H6.25a1.75 1.75 0 0 1-1.75-1.75V15.5h4v4Zm1.5-4h4v4h-4v-4ZM19.5 3.75a.75.75 0 0 1 1.5 0v16.5a.75.75 0 0 1-1.5 0V3.75Z" fill="currentColor" stroke="none"/>',tableDelete:'<path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V10h-4v1.313a6.471 6.471 0 0 0-1.5.709V10h-4v4h2.022a6.471 6.471 0 0 0-.709 1.5H10v4h1.313c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4H6.25ZM4.5 10v4h4v-4h-4Zm11-1.5h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-1.5-4h-4v4h4v-4Zm-9.5 11v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4h-4Z" fill="currentColor" stroke="none"/><path d="M23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-5.5-.707-1.646-1.647a.5.5 0 0 0-.708.708l1.647 1.646-1.647 1.646a.5.5 0 0 0 .708.708l1.646-1.647 1.646 1.647a.5.5 0 0 0 .708-.708L18.207 17.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 16.793Z" fill="currentColor" stroke="none"/>',tableEditCell:'<path d="M3 8.75A2.25 2.25 0 0 1 5.25 6.5h13.5a2.25 2.25 0 0 1 2.123 1.504A3.285 3.285 0 0 0 20.715 8h-.002c-.466 0-.932.1-1.365.297A.749.749 0 0 0 18.75 8H15.5v3.853l-1.5 1.5V8h-4v6h3.353l-.865.865a3.686 3.686 0 0 0-.508.635H5.25A2.25 2.25 0 0 1 3 13.25v-4.5ZM5.25 8a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75H8.5V8H5.25Zm15.465 1h-.002c-.585 0-1.17.223-1.615.67l-5.902 5.902a2.684 2.684 0 0 0-.707 1.247l-.458 1.831a1.087 1.087 0 0 0 1.319 1.318l1.83-.457a2.684 2.684 0 0 0 1.248-.707l5.902-5.902A2.286 2.286 0 0 0 20.715 9Z" fill="currentColor" stroke="none"/>',tableHeaderCell:'<path d="M3 9.75C3 9.15326 3.23705 8.58097 3.65901 8.15901C4.08097 7.73705 4.65326 7.5 5.25 7.5H18.75C19.3467 7.5 19.919 7.73705 20.341 8.15901C20.7629 8.58097 21 9.15326 21 9.75V14.25C21 14.8467 20.7629 15.419 20.341 15.841C19.919 16.2629 19.3467 16.5 18.75 16.5H5.25C4.65326 16.5 4.08097 16.2629 3.65901 15.841C3.23705 15.419 3 14.8467 3 14.25V9.75ZM5.25 9C5.05109 9 4.86032 9.07902 4.71967 9.21967C4.57902 9.36032 4.5 9.55109 4.5 9.75V14.25C4.5 14.664 4.836 15 5.25 15H8.5V9H5.25ZM15.5 15H18.75C18.9489 15 19.1397 14.921 19.2803 14.7803C19.421 14.6397 19.5 14.4489 19.5 14.25V9.75C19.5 9.55109 19.421 9.36032 19.2803 9.21967C19.1397 9.07902 18.9489 9 18.75 9H15.5V15Z" fill="currentColor" stroke="none"/>',editorImage:'<path d="M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5Zm.58 16.401-5.805-5.686a.75.75 0 0 0-.966-.071l-.084.07-5.807 5.687c.182.064.378.099.582.099h11.5c.203 0 .399-.035.58-.099l-5.805-5.686L18.33 19.4ZM17.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v11.5c0 .208.036.408.103.594l5.823-5.701a2.25 2.25 0 0 1 3.02-.116l.128.116 5.822 5.702c.067-.186.104-.386.104-.595V6.25a1.75 1.75 0 0 0-1.75-1.75Zm-2.498 2a2.252 2.252 0 1 1 0 4.504 2.252 2.252 0 0 1 0-4.504Zm0 1.5a.752.752 0 1 0 0 1.504.752.752 0 0 0 0-1.504Z" stroke-width="0.5" fill="currentColor"/>',editorFont:'<path d="M7 2a.75.75 0 0 1 .704.49l2.951 7.985.013.032.222.602-.828 2.086-.626-1.694H4.564l-1.113 3.01a.75.75 0 1 1-1.407-.521l1.288-3.483a.766.766 0 0 1 .012-.033L6.297 2.49A.75.75 0 0 1 7 2ZM5.12 10H8.88l-1.88-5.087L5.118 10ZM13.806 6.473a.75.75 0 0 1 1.395 0l5.554 14.031h.494a.75.75 0 1 1 0 1.5H18.75a.75.75 0 0 1 0-1.5h.392l-1.19-3.004h-6.91L9.85 20.504h.4a.75.75 0 1 1 0 1.5H7.75a.75.75 0 1 1 0-1.5h.485l5.57-14.03ZM17.36 16l-2.857-7.215L11.638 16h5.72Z" stroke-width="0.5" fill="currentColor"/>',editorLine:'<path d="M2.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 2.5 12ZM6.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 6.5 12ZM10.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM14.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM18.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM4.75 2a.75.75 0 0 0-.75.75V7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2.75a.75.75 0 0 0-1.5 0V7a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V2.75A.75.75 0 0 0 4.75 2ZM19.25 22a.75.75 0 0 0 .75-.75V17a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4.25a.75.75 0 0 0 1.5 0V17a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 .5.5v4.25c0 .414.336.75.75.75Z" stroke-width="0.5" fill="currentColor"/>',editorQuote:'<path d="M7.5 6a2.5 2.5 0 0 1 2.495 2.336l.005.206c-.01 3.555-1.24 6.614-3.705 9.223a.75.75 0 1 1-1.09-1.03c1.64-1.737 2.66-3.674 3.077-5.859A2.5 2.5 0 1 1 7.5 6Zm9 0a2.5 2.5 0 0 1 2.495 2.336l.005.206c-.01 3.56-1.238 6.614-3.705 9.223a.75.75 0 1 1-1.09-1.03c1.643-1.738 2.662-3.672 3.078-5.859A2.5 2.5 0 1 1 16.5 6Z" stroke-width="0.5" fill="currentColor"/>',editorBulletList:'<path d="M3.25 17.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494l-.102.006H6.75a.75.75 0 0 1-.102-1.493L6.75 18h14.5-14.5Zm-3.5-7a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494L21.25 13H6.75a.75.75 0 0 1-.102-1.493l.102-.007h14.5-14.5Zm-3.5-7A1.25 1.25 0 1 1 3.25 7a1.25 1.25 0 0 1 0-2.499Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494l-.102.006H6.75a.75.75 0 0 1-.102-1.493L6.75 5h14.5-14.5Z" stroke-width="0.5" fill="currentColor"/>',editorNumberedList:'<path d="M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003a1.45 1.45 0 0 1-.067.132 4.126 4.126 0 0 1-.238.384c-.217.313-.524.663-.906.902a.75.75 0 1 0 .794 1.272c.125-.078.243-.161.353-.248V7.25a.75.75 0 0 0 1.5 0v-4.5ZM20.5 18.75a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM20.5 12.244a.75.75 0 0 0-.75-.75h-9a.75.75 0 1 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM20.5 5.75a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 1 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a5.88 5.88 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.314.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12ZM2.97 21.28s.093.084.004.005l.006.005.013.013a1.426 1.426 0 0 0 .15.125c.095.07.227.158.397.243.341.17.83.329 1.46.329.64 0 1.196-.181 1.601-.54.408-.36.61-.857.595-1.359A1.775 1.775 0 0 0 6.77 19c.259-.305.412-.685.426-1.101a1.73 1.73 0 0 0-.595-1.36C6.196 16.181 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.592 2.592 0 0 0-.51.334 1.426 1.426 0 0 0-.037.033l-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072 1.1 1.1 0 0 1 .192-.121c.159-.08.42-.171.79-.171.36 0 .536.1.608.164.07.061.09.127.088.187a.325.325 0 0 1-.123.23c-.089.077-.263.169-.573.169a.75.75 0 0 0 0 1.5c.31 0 .484.092.573.168.091.08.121.166.123.231a.232.232 0 0 1-.088.187c-.072.064-.247.164-.608.164a1.75 1.75 0 0 1-.79-.17 1.1 1.1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072Zm.002-4.563-.001.002c.007-.006.2-.168 0-.002Z" stroke-width="0.5" fill="currentColor"/>',editorMention:'<path d="M22 12v1.75a3.75 3.75 0 0 1-7.149 1.586C14.033 16.356 12.84 17 11.5 17 8.992 17 7 14.742 7 12s1.992-5 4.5-5c1.159 0 2.208.482 3.001 1.272L14.5 7.75a.75.75 0 0 1 1.493-.102L16 7.75v6a2.25 2.25 0 0 0 4.495.154l.005-.154V12a8.5 8.5 0 1 0-5.515 7.961.75.75 0 0 1 .527 1.405A9.98 9.98 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2c5.43 0 9.848 4.327 9.996 9.72L22 12v1.75V12ZM11.5 8.5c-1.635 0-3 1.548-3 3.5s1.365 3.5 3 3.5c1.634 0 3-1.548 3-3.5s-1.366-3.5-3-3.5Z" stroke-width="0.5" fill="currentColor"/>',editorH1:'<path d="M19.59 5.081a.746.746 0 0 0-.809.084.751.751 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69ZM3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5V5.75Z" fill="currentColor" stroke-width="0.5"/>',editorH2:'<path d="M4.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H11v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H4.5V5.75Zm10.921 2.085c.23-.46.913-1.335 2.58-1.335.842 0 1.459.26 1.86.639.397.376.64.921.64 1.611 0 1.963-1.3 3.068-2.958 4.343l-.212.163C15.825 14.409 14 15.806 14 18.25a.75.75 0 0 0 .75.75h6.5a.75.75 0 0 0 0-1.5h-5.66c.315-1.252 1.427-2.11 2.866-3.218C20.05 13.057 22 11.537 22 8.75c0-1.06-.383-2.015-1.11-2.702C20.166 5.364 19.158 5 18 5c-2.333 0-3.484 1.291-3.92 2.165a.75.75 0 0 0 1.341.67Z" fill="currentColor" stroke-width="0.5"/>',editorH3:'<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5V5.75Zm11.92 2.085c.23-.46.914-1.335 2.58-1.335.843 0 1.46.26 1.86.639.398.376.64.921.64 1.611 0 .606-.161 1.026-.384 1.332-.228.314-.555.554-.953.735-.816.37-1.802.433-2.383.433a.75.75 0 0 0 0 1.5c.581 0 1.567.063 2.383.433.398.18.725.42.953.735.223.306.384.726.384 1.332 0 1.086-.914 2.25-2.5 2.25-1.727 0-2.348-.76-2.553-1.276a.75.75 0 1 0-1.394.552C14.508 17.926 15.727 19 18 19c2.414 0 4-1.836 4-3.75 0-.894-.245-1.63-.67-2.214A3.679 3.679 0 0 0 20.144 12a3.679 3.679 0 0 0 1.186-1.036c.425-.584.67-1.32.67-2.214 0-1.06-.383-2.015-1.11-2.702C20.165 5.364 19.157 5 18 5c-2.334 0-3.484 1.291-3.92 2.165a.75.75 0 1 0 1.34.67Z" fill="currentColor" stroke-width="0.5"/>',editorSnippets:'<path d="m11.066 8.004.184-.005h7.5a3.25 3.25 0 0 1 3.245 3.065l.005.185v7.5a3.25 3.25 0 0 1-3.066 3.245l-.184.005h-7.5a3.25 3.25 0 0 1-3.245-3.066L8 18.75v-7.5a3.25 3.25 0 0 1 3.066-3.245Zm7.684 1.495h-7.5a1.75 1.75 0 0 0-1.744 1.606l-.006.144v7.5a1.75 1.75 0 0 0 1.607 1.744l.143.006h7.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143v-7.5a1.75 1.75 0 0 0-1.75-1.75ZM15 11a.75.75 0 0 1 .75.75v2.498h2.5a.75.75 0 0 1 0 1.5h-2.5v2.502a.75.75 0 0 1-1.5 0v-2.502h-2.5a.75.75 0 1 1 0-1.5h2.5V11.75A.75.75 0 0 1 15 11Zm.582-6.767.052.177.693 2.588h-1.553l-.588-2.2a1.75 1.75 0 0 0-2.144-1.238L4.798 5.502a1.75 1.75 0 0 0-1.27 1.995l.032.148 1.942 7.244A1.75 1.75 0 0 0 7 16.176v1.506a3.252 3.252 0 0 1-2.895-2.228l-.052-.176-1.941-7.245a3.25 3.25 0 0 1 2.12-3.928l.178-.052 7.244-1.941a3.25 3.25 0 0 1 3.928 2.12Z" fill="currentColor" stroke-width="0.5" />',editorItalic:'<path d="M10.649 18.5h3.847a1 1 0 0 1 0 2h-9.5a.997.997 0 0 1-.996-1c0-.552.445-1 .996-1h3.51L13.332 6H9.997a1 1 0 0 1 0-2H18.5a1 1 0 0 1 0 2h-3.025L10.65 18.5Z" fill="currentColor" stroke-width="0.25" />',question:'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',layout:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',chat:'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',thumbsup:'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',thumbsdown:'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',error:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',bankId:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M6.52062 20.2043C7.26873 20.2043 7.92724 20.5001 7.80085 21.2878L7.65813 22.1764C7.60772 22.4904 7.61709 22.5844 7.97808 22.5913L7.61127 23.4261C6.97292 23.4674 6.66405 23.4024 6.51067 23.1355C6.17212 23.3375 5.79976 23.4379 5.40099 23.4379C4.67773 23.4379 4.42892 23.077 4.49325 22.6741C4.5235 22.4838 4.63953 22.295 4.82386 22.1407C5.22064 21.809 6.2035 21.7611 6.58765 21.5071C6.62116 21.2228 6.50244 21.1219 6.14031 21.1219C5.71725 21.1219 5.36407 21.2584 4.7608 21.6551L4.90779 20.7362C5.43295 20.3698 5.93751 20.2041 6.52062 20.2041V20.2043ZM11.0695 20.2043C11.7643 20.2043 12.088 20.6314 11.9794 21.3358L11.6556 23.4379H10.4098L10.678 21.6974C10.7266 21.3787 10.6354 21.2336 10.39 21.2336C10.1923 21.2336 10.0138 21.3421 9.84014 21.5764L9.55314 23.4379H8.30769L8.79707 20.2575H10.0431L9.97889 20.6735C10.3725 20.336 10.6742 20.2041 11.0695 20.2041V20.2043ZM14.202 19.1483L13.891 21.2615L15.0807 20.1162H16.6154L15.0875 21.5322L16.3123 23.4379H14.754L13.8088 21.903H13.7972L13.5716 23.4379H12.3295L12.9597 19.1483H14.2019H14.202ZM3.06305 19.2803C4.09477 19.2803 4.34798 19.7884 4.2737 20.2538C4.21363 20.6321 3.95049 20.9095 3.49065 21.0925C4.07006 21.305 4.29572 21.6411 4.21264 22.1605C4.10854 22.816 3.52104 23.3059 2.75602 23.3059H0L0.641041 19.2803H3.06305V19.2803ZM21.718 19.2803C23.328 19.2803 23.7929 20.4136 23.6441 21.3462C23.4978 22.261 22.7511 23.3059 21.3364 23.3059H18.989L19.6326 19.2803H21.718ZM18.9231 19.2803L18.2765 23.3059H16.8132L17.4599 19.2803H18.9231ZM6.50386 22.028C6.16417 22.2356 5.53818 22.1998 5.46987 22.6263C5.43749 22.8279 5.56715 22.9756 5.77534 22.9756C5.97799 22.9756 6.22466 22.8928 6.41681 22.7626C6.40388 22.6919 6.41013 22.6146 6.43285 22.4725L6.50386 22.028V22.028ZM2.20133 21.5647H1.72814L1.5485 22.692H1.98533C2.47115 22.692 2.75645 22.5031 2.81922 22.1076C2.87318 21.7711 2.67479 21.5647 2.20133 21.5647V21.5647ZM21.3271 20.2359H20.9365L20.5987 22.3496H20.9831C21.69 22.3496 22.0796 22.0131 22.1952 21.2932C22.2797 20.7619 22.1138 20.2359 21.3271 20.2359ZM2.41292 19.8937H1.99399L1.8257 20.9502H2.24464C2.71811 20.9502 2.93893 20.7083 2.9848 20.4191C3.03366 20.1127 2.88653 19.8937 2.41292 19.8937ZM6.23006 3.04568C6.69004 3.04568 7.04521 3.1404 7.22982 3.31266C7.35863 3.43323 7.40663 3.59101 7.36857 3.7698C7.33165 3.94234 7.13567 4.16701 6.8417 4.36951C6.00866 4.94693 6.15295 5.54537 6.21728 5.71536C6.41013 6.22675 7.05401 6.50267 7.56099 6.50267H8.63744L7.63342 12.7449H7.6506C7.27683 15.0776 6.99877 16.8367 6.94722 17.1683H0.98897C1.10315 16.4348 2.59441 7.11333 2.68885 6.50452H2.78045L3.08989 6.50523H3.16118L3.40204 6.5058L3.46537 6.50594L3.55342 6.50608H3.60611L3.63053 6.50622L3.69458 6.50637H3.76615L3.77439 6.50651H3.78518C4.50135 6.50267 5.16128 6.17988 5.46717 5.68383C5.76625 5.2027 5.6525 4.68691 5.17236 4.33728C5.01231 4.22111 4.82812 4.03266 4.86419 3.79948C4.91361 3.48464 5.45652 3.04568 6.22992 3.04568H6.23006ZM15.4962 1C20.9811 1 24.8058 3.38239 23.8547 9.32686C23.0857 14.1259 19.1722 17.1685 14.3813 17.1685H13.2454L14.0159 12.3253C15.9563 12.3037 17.5822 11.4008 17.9181 9.30542C18.2788 7.05013 17.1333 6.08189 15.0016 6.06542C15.002 6.06201 15.002 6.06017 15.002 6.06017H13.4342C13.0732 6.06017 12.6094 5.86206 12.4891 5.5431C12.4516 5.44426 12.3752 5.08781 12.9597 4.68137C13.1841 4.52502 13.5738 4.20606 13.6556 3.82447C13.7225 3.50466 13.6275 3.1955 13.3936 2.97709C13.1271 2.72757 12.6821 2.59508 12.1068 2.59508C11.1461 2.59508 10.4113 3.16909 10.3278 3.70462C10.3226 3.73941 10.3191 3.78017 10.3191 3.82476C10.3191 4.03778 10.4029 4.35148 10.8016 4.64317C10.9478 4.75011 11.0896 4.90731 11.0896 5.11763C11.0896 5.21406 11.0597 5.32071 10.9869 5.43957C10.7585 5.81051 10.2284 6.0613 9.66604 6.06443L8.63744 6.06201L9.44748 1H15.4962Z" fill="currentColor" />',bankIdColor:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M6.52062 20.2043C7.26873 20.2043 7.92724 20.5001 7.80085 21.2878L7.65813 22.1764C7.60772 22.4904 7.61709 22.5844 7.97808 22.5913L7.61127 23.4261C6.97292 23.4674 6.66405 23.4024 6.51067 23.1355C6.17212 23.3375 5.79976 23.4379 5.40099 23.4379C4.67773 23.4379 4.42892 23.077 4.49325 22.6741C4.5235 22.4838 4.63953 22.295 4.82386 22.1407C5.22064 21.809 6.2035 21.7611 6.58765 21.5071C6.62116 21.2228 6.50244 21.1219 6.14031 21.1219C5.71725 21.1219 5.36407 21.2584 4.7608 21.6551L4.90779 20.7362C5.43295 20.3698 5.93751 20.2041 6.52062 20.2041V20.2043ZM11.0695 20.2043C11.7643 20.2043 12.088 20.6314 11.9794 21.3358L11.6556 23.4379H10.4098L10.678 21.6974C10.7266 21.3787 10.6354 21.2336 10.39 21.2336C10.1923 21.2336 10.0138 21.3421 9.84014 21.5764L9.55314 23.4379H8.30769L8.79707 20.2575H10.0431L9.97889 20.6735C10.3725 20.336 10.6742 20.2041 11.0695 20.2041V20.2043ZM14.202 19.1483L13.891 21.2615L15.0807 20.1162H16.6154L15.0875 21.5322L16.3123 23.4379H14.754L13.8088 21.903H13.7972L13.5716 23.4379H12.3295L12.9597 19.1483H14.2019H14.202ZM3.06305 19.2803C4.09477 19.2803 4.34798 19.7884 4.2737 20.2538C4.21363 20.6321 3.95049 20.9095 3.49065 21.0925C4.07006 21.305 4.29572 21.6411 4.21264 22.1605C4.10854 22.816 3.52104 23.3059 2.75602 23.3059H0L0.641041 19.2803H3.06305V19.2803ZM21.718 19.2803C23.328 19.2803 23.7929 20.4136 23.6441 21.3462C23.4978 22.261 22.7511 23.3059 21.3364 23.3059H18.989L19.6326 19.2803H21.718ZM18.9231 19.2803L18.2765 23.3059H16.8132L17.4599 19.2803H18.9231ZM6.50386 22.028C6.16417 22.2356 5.53818 22.1998 5.46987 22.6263C5.43749 22.8279 5.56715 22.9756 5.77534 22.9756C5.97799 22.9756 6.22466 22.8928 6.41681 22.7626C6.40388 22.6919 6.41013 22.6146 6.43285 22.4725L6.50386 22.028V22.028ZM2.20133 21.5647H1.72814L1.5485 22.692H1.98533C2.47115 22.692 2.75645 22.5031 2.81922 22.1076C2.87318 21.7711 2.67479 21.5647 2.20133 21.5647V21.5647ZM21.3271 20.2359H20.9365L20.5987 22.3496H20.9831C21.69 22.3496 22.0796 22.0131 22.1952 21.2932C22.2797 20.7619 22.1138 20.2359 21.3271 20.2359ZM2.41292 19.8937H1.99399L1.8257 20.9502H2.24464C2.71811 20.9502 2.93893 20.7083 2.9848 20.4191C3.03366 20.1127 2.88653 19.8937 2.41292 19.8937ZM6.23006 3.04568C6.69004 3.04568 7.04521 3.1404 7.22982 3.31266C7.35863 3.43323 7.40663 3.59101 7.36857 3.7698C7.33165 3.94234 7.13567 4.16701 6.8417 4.36951C6.00866 4.94693 6.15295 5.54537 6.21728 5.71536C6.41013 6.22675 7.05401 6.50267 7.56099 6.50267H8.63744L7.63342 12.7449H7.6506C7.27683 15.0776 6.99877 16.8367 6.94722 17.1683H0.98897C1.10315 16.4348 2.59441 7.11333 2.68885 6.50452H2.78045L3.08989 6.50523H3.16118L3.40204 6.5058L3.46537 6.50594L3.55342 6.50608H3.60611L3.63053 6.50622L3.69458 6.50637H3.76615L3.77439 6.50651H3.78518C4.50135 6.50267 5.16128 6.17988 5.46717 5.68383C5.76625 5.2027 5.6525 4.68691 5.17236 4.33728C5.01231 4.22111 4.82812 4.03266 4.86419 3.79948C4.91361 3.48464 5.45652 3.04568 6.22992 3.04568H6.23006ZM15.4962 1C20.9811 1 24.8058 3.38239 23.8547 9.32686C23.0857 14.1259 19.1722 17.1685 14.3813 17.1685H13.2454L14.0159 12.3253C15.9563 12.3037 17.5822 11.4008 17.9181 9.30542C18.2788 7.05013 17.1333 6.08189 15.0016 6.06542C15.002 6.06201 15.002 6.06017 15.002 6.06017H13.4342C13.0732 6.06017 12.6094 5.86206 12.4891 5.5431C12.4516 5.44426 12.3752 5.08781 12.9597 4.68137C13.1841 4.52502 13.5738 4.20606 13.6556 3.82447C13.7225 3.50466 13.6275 3.1955 13.3936 2.97709C13.1271 2.72757 12.6821 2.59508 12.1068 2.59508C11.1461 2.59508 10.4113 3.16909 10.3278 3.70462C10.3226 3.73941 10.3191 3.78017 10.3191 3.82476C10.3191 4.03778 10.4029 4.35148 10.8016 4.64317C10.9478 4.75011 11.0896 4.90731 11.0896 5.11763C11.0896 5.21406 11.0597 5.32071 10.9869 5.43957C10.7585 5.81051 10.2284 6.0613 9.66604 6.06443L8.63744 6.06201L9.44748 1H15.4962Z" fill="#183E4F" />',statusDraft:'<path d="M7.5 4.20996V4.21996" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.21001 7.5V7.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 12V12.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.21001 16.5V16.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M7.5 19.79V19.8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 21V21.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 19.79V19.8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.79 16.5V16.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 12V12.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.79 7.5V7.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 4.20996V4.21996" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 3V3.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>',statusSent:'<path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>',statusScheduled:'<path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 12H15.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 7V12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusSemiSigned:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7V12V17Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusAccepted:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.7474 9.66436C17.1143 9.25158 17.0771 8.61951 16.6644 8.25259C16.2516 7.88567 15.6195 7.92285 15.2526 8.33564L10.6667 13.4948L8.74741 11.3356C8.38049 10.9229 7.74842 10.8857 7.33564 11.2526C6.92285 11.6195 6.88567 12.2516 7.25259 12.6644L9.91926 15.6644C10.109 15.8779 10.381 16 10.6667 16C10.9523 16 11.2243 15.8779 11.4141 15.6644L16.7474 9.66436Z" fill="currentColor" stroke="none" />',statusDenied:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM9.70711 8.29289C9.31658 7.90237 8.68342 7.90237 8.29289 8.29289C7.90237 8.68342 7.90237 9.31658 8.29289 9.70711L10.5858 12L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L12 13.4142L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L13.4142 12L15.7071 9.70711C16.0976 9.31658 16.0976 8.68342 15.7071 8.29289C15.3166 7.90237 14.6834 7.90237 14.2929 8.29289L12 10.5858L9.70711 8.29289Z" fill="currentColor"/>',statusActive:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM10.9577 7.61329L15.781 10.2442C17.1708 11.0022 17.1708 12.9978 15.7811 13.7558L10.9577 16.3867C9.62496 17.1137 8 16.149 8 14.6309V9.36908C8 7.85097 9.62495 6.88634 10.9577 7.61329Z" fill="currentColor"/><path d="M15.781 10.2442L16.2599 9.36631L16.2599 9.36631L15.781 10.2442ZM10.9577 7.61329L10.4789 8.49119L10.4789 8.49119L10.9577 7.61329ZM15.7811 13.7558L15.3022 12.8779L15.3022 12.8779L15.7811 13.7558ZM10.9577 16.3867L10.4789 15.5088L10.4789 15.5088L10.9577 16.3867ZM12 22C17.5228 22 22 17.5228 22 12H20C20 16.4183 16.4183 20 12 20V22ZM2 12C2 17.5228 6.47715 22 12 22V20C7.58172 20 4 16.4183 4 12H2ZM12 2C6.47715 2 2 6.47715 2 12H4C4 7.58172 7.58172 4 12 4V2ZM22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12H22ZM16.2599 9.36631L11.4366 6.7354L10.4789 8.49119L15.3022 11.1221L16.2599 9.36631ZM16.2599 14.6337C18.3445 13.4966 18.3445 10.5034 16.2599 9.36631L15.3022 11.1221C15.9971 11.5011 15.9971 12.4989 15.3022 12.8779L16.2599 14.6337ZM11.4366 17.2646L16.2599 14.6337L15.3022 12.8779L10.4789 15.5088L11.4366 17.2646ZM7 14.6309C7 16.9081 9.43743 18.355 11.4366 17.2646L10.4789 15.5088C9.81248 15.8723 9 15.39 9 14.6309H7ZM7 9.36908V14.6309H9V9.36908H7ZM11.4366 6.7354C9.43743 5.64497 7 7.09191 7 9.36908H9C9 8.61002 9.81248 8.12771 10.4789 8.49119L11.4366 6.7354Z" fill="currentColor" stroke="none" />',statusCompleted:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusArchive:'<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M15 11l-3 3l-3 -3"></path><path d="M20 6.667v10.666a2.667 2.667 0 0 1 -2.667 2.667h-10.666a2.667 2.667 0 0 1 -2.667 -2.667v-10.666a2.667 2.667 0 0 1 2.667 -2.667h10.666a2.667 2.667 0 0 1 2.667 2.667z"></path>',statusExpired:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path stroke="none" d="M18 12.5405C17.8949 13.6778 17.4681 14.7615 16.7696 15.665C16.071 16.5685 15.1296 17.2544 14.0554 17.6424C12.9813 18.0304 11.8189 18.1044 10.7042 17.8559C9.5895 17.6073 8.56866 17.0465 7.7611 16.2389C6.95354 15.4313 6.39267 14.4105 6.14412 13.2958C5.89557 12.1811 5.96962 11.0187 6.35761 9.94457C6.74559 8.87043 7.43147 7.929 8.33497 7.23045C9.23848 6.53189 10.3222 6.10509 11.4595 6C10.7937 6.90076 10.4733 8.01056 10.5566 9.12758C10.6399 10.2446 11.1213 11.2946 11.9134 12.0866C12.7054 12.8787 13.7554 13.3601 14.8724 13.4434C15.9894 13.5267 17.0992 13.2063 18 12.5405Z" fill="currentColor"/>',statusVoided:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13H18C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11H6Z" fill="currentColor"/>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',admin:'<path d="M15 6.99989086C16.1045695 6.99989086 17 7.89532136 17 8.99989086L17 16.458686C17 17.1113133 16.6815784 17.722892 16.1469254 18.0971494L12 21 7.85307456 18.0971494C7.31842164 17.722892 7 17.1113133 7 16.458686L7 8.99989086C7 7.89532136 7.8954305 6.99989086 9 6.99989086 9.00005899 5.34308677 10.3431821 4 12 4 13.6568179 4 14.999941 5.34308677 15 6.99989086zM4 13L7 13"></path><polyline points="3 7 5 9 7 9"></polyline><polyline points="21 7 19 9 17 9"></polyline><polyline points="3 19 5 17 7 17"></polyline><polyline points="17 17 19 17 21 19 21 19"></polyline><path d="M17,13 L20,13"></path>'},NRt="";var Eqe=he({name:"BaseIcon",props:{animation:{type:String,default:void 0},animationSpeed:{type:String,default:void 0},fill:{type:String,default:"none"},size:{type:[Number,String],default:22},stroke:{type:String,default:"currentColor"},strokeLinecap:{type:String,default:"round"},strokeLinejoin:{type:String,default:"round"},strokeWidth:{type:[Number,String],default:2},tag:{type:String,default:"i"},type:{type:String,required:!0,validator(n){if(!BH[n])throw new Error(`"${n}" is not an available icon type.`);return!0}}},render(n){const{animation:t,animationSpeed:r,size:i,type:a}=this,o=new Tqe(a,BH[a]);return n(this.tag,{attrs:{"data-name":a,"data-tags":o?o.tags:"","data-type":a},class:{feather:!0,[`feather--${a}`]:a,[`feather--${t}`]:t,[`feather--${r}`]:r},on:this.$listeners},[o?n("svg",{attrs:{...o.attrs,fill:this.fill||"currentColor",height:i,stroke:this.stroke||"currentColor","stroke-linecap":this.strokeLinecap,"stroke-linejoin":this.strokeLinejoin,"stroke-width":this.strokeWidth,width:i},style:{...i?{width:`${i}px`,height:`${i}px`}:{}},class:[o.attrs?o.attrs.class:"","feather__content"],domProps:{innerHTML:o.contents}}):""])}},null,null,!1,null,"39ce5b63",null,null);const Ng=Eqe.exports;function $qe(){for(var n=0,t,r,i="";n<arguments.length;)(t=arguments[n++])&&(r=jH(t))&&(i&&(i+=" "),i+=r);return i}function jH(n){if(typeof n=="string")return n;for(var t,r="",i=0;i<n.length;i++)n[i]&&(t=jH(n[i]))&&(r&&(r+=" "),r+=t);return r}function tT(){return tT=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},tT.apply(this,arguments)}function Aqe(n){if(n<1)return{get:function(){},set:function(){}};var t=0,r=new Map,i=new Map;function a(o,s){r.set(o,s),t++,t>n&&(t=0,i=r,r=new Map)}return{get:function(s){var c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return a(s,c),c},set:function(s,c){r.has(s)?r.set(s,c):a(s,c)}}}var nT="-";function Oqe(n){var t=Mqe(n);function r(a){var o=a.split(nT);return o[0]===""&&o.length!==1&&o.shift(),zH(o,t)||Dqe(a)}function i(a){return n.conflictingClassGroups[a]||[]}return{getClassGroupId:r,getConflictingClassGroupIds:i}}function zH(n,t){var r;if(n.length===0)return t.classGroupId;var i=n[0],a=t.nextPart.get(i),o=a?zH(n.slice(1),a):void 0;if(o)return o;if(t.validators.length!==0){var s=n.join(nT);return(r=t.validators.find(function(c){var l=c.validator;return l(s)}))==null?void 0:r.classGroupId}}var VH=/^\[(.+)\]$/;function Dqe(n){if(VH.test(n)){var t=VH.exec(n)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Mqe(n){var t=n.theme,r=n.prefix,i={nextPart:new Map,validators:[]},a=Iqe(Object.entries(n.classGroups),r);return a.forEach(function(o){var s=o[0],c=o[1];rT(c,i,s,t)}),i}function rT(n,t,r,i){n.forEach(function(a){if(typeof a=="string"){var o=a===""?t:UH(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Pqe(a)){rT(a(i),t,r,i);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var c=s[0],l=s[1];rT(l,UH(t,c),r,i)})})}function UH(n,t){var r=n;return t.split(nT).forEach(function(i){r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r}function Pqe(n){return n.isThemeGetter}function Iqe(n,t){return t?n.map(function(r){var i=r[0],a=r[1],o=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(c){var l=c[0],u=c[1];return[t+l,u]})):s});return[i,o]}):n}var HH="!";function Rqe(n){var t=n.separator||":";return function(i){for(var a=0,o=[],s=0,c=0;c<i.length;c++){var l=i[c];a===0&&l===t[0]&&(t.length===1||i.slice(c,c+t.length)===t)&&(o.push(i.slice(s,c)),s=c+t.length),l==="["?a++:l==="]"&&a--}var u=o.length===0?i:i.substring(s),d=u.startsWith(HH),p=d?u.substring(1):u;return{modifiers:o,hasImportantModifier:d,baseClassName:p}}}function Lqe(n){if(n.length<=1)return n;var t=[],r=[];return n.forEach(function(i){var a=i[0]==="[";a?(t.push.apply(t,r.sort().concat([i])),r=[]):r.push(i)}),t.push.apply(t,r.sort()),t}function Nqe(n){return tT({cache:Aqe(n.cacheSize),splitModifiers:Rqe(n)},Oqe(n))}var Fqe=/\s+/;function Bqe(n,t){var r=t.splitModifiers,i=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return n.trim().split(Fqe).map(function(s){var c=r(s),l=c.modifiers,u=c.hasImportantModifier,d=c.baseClassName,p=i(d);if(!p)return{isTailwindClass:!1,originalClassName:s};var f=Lqe(l).join(":"),h=u?f+HH:f;return{isTailwindClass:!0,modifierId:h,classGroupId:p,originalClassName:s}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var c=s.modifierId,l=s.classGroupId,u=c+l;return o.has(u)?!1:(o.add(u),a(l).forEach(function(d){return o.add(c+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function jqe(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i,a,o,s=c;function c(u){var d=t[0],p=t.slice(1),f=p.reduce(function(h,m){return m(h)},d());return i=Nqe(f),a=i.cache.get,o=i.cache.set,s=l,l(u)}function l(u){var d=a(u);if(d)return d;var p=Bqe(u,i);return o(u,p),p}return function(){return s($qe.apply(null,arguments))}}function Zn(n){var t=function(i){return i[n]||[]};return t.isThemeGetter=!0,t}var bc=/^\[(.+)\]$/,zqe=/^\d+\/\d+$/,Vqe=new Set(["px","full","screen"]),Uqe=/^(\d+)?(xs|sm|md|lg|xl)$/,Hqe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,Wqe=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function xo(n){return!Number.isNaN(Number(n))||Vqe.has(n)||zqe.test(n)||rd(n)}function rd(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("length:")||Hqe.test(r):!1}function Gqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("size:"):!1}function qqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("position:"):!1}function Yqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("url(")||r.startsWith("url:"):!1}function WH(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?!Number.isNaN(Number(r))||r.startsWith("number:"):!1}function Ri(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?Number.isInteger(Number(r)):Number.isInteger(Number(n))}function si(n){return bc.test(n)}function Fg(){return!0}function _c(n){return Uqe.test(n)}function Kqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?Wqe.test(r):!1}function Zqe(){var n=Zn("colors"),t=Zn("spacing"),r=Zn("blur"),i=Zn("brightness"),a=Zn("borderColor"),o=Zn("borderRadius"),s=Zn("borderSpacing"),c=Zn("borderWidth"),l=Zn("contrast"),u=Zn("grayscale"),d=Zn("hueRotate"),p=Zn("invert"),f=Zn("gap"),h=Zn("gradientColorStops"),m=Zn("inset"),g=Zn("margin"),y=Zn("opacity"),b=Zn("padding"),w=Zn("saturate"),S=Zn("scale"),k=Zn("sepia"),$=Zn("skew"),T=Zn("space"),A=Zn("translate"),E=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},R=function(){return["auto",t]},Y=function(){return["",xo]},L=function(){return["auto",Ri]},D=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},z=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},K=function(){return["start","end","center","between","around","evenly"]},te=function(){return["","0",si]},j=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[Fg],spacing:[xo],blur:["none","",_c,rd],brightness:[Ri],borderColor:[n],borderRadius:["none","","full",_c,rd],borderSpacing:[t],borderWidth:Y(),contrast:[Ri],grayscale:te(),hueRotate:[Ri],invert:te(),gap:[t],gradientColorStops:[n],inset:R(),margin:R(),opacity:[Ri],padding:[t],saturate:[Ri],scale:[Ri],sepia:te(),skew:[Ri,si],space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",si]}],container:["container"],columns:[{columns:[_c]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(D(),[si])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:[Ri]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",si]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Ri]}],"grid-cols":[{"grid-cols":[Fg]}],"col-start-end":[{col:["auto",{span:[Ri]}]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Fg]}],"row-start-end":[{row:["auto",{span:[Ri]}]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",si]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",si]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:K()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(K(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(K(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",xo]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[_c]},_c,rd]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",xo]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",_c,rd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",WH]}],"font-family":[{font:[Fg]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",rd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xo]}],"list-style-type":[{list:["none","disc","decimal",si]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",xo]}],"underline-offset":[{"underline-offset":["auto",xo]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rd]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",si]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(D(),[qqe])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gqe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yqe]}],"bg-color":[{bg:[n]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(B())}],"outline-offset":[{"outline-offset":[xo]}],"outline-w":[{outline:[xo]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[xo]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",_c,Kqe]}],"shadow-color":[{shadow:[Fg]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",_c,si]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",si]}],duration:[{duration:[Ri]}],ease:[{ease:["linear","in","out","in-out",si]}],delay:[{delay:[Ri]}],animate:[{animate:["none","spin","ping","pulse","bounce",si]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ri,si]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",si]}],accent:[{accent:["auto",n]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",si]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",si]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[xo,WH]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var Jqe=jqe(Zqe);const zRt="",GH={defaultLinkTags:["a","button","input","label","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultButtonRounded:!1},Xqe={name:"CButton",components:{BaseIcon:Ng},inheritAttrs:!1,props:{type:{type:String,default:null,validator:n=>["primary","secondary","tertiary","success","warning","danger","text","none"].indexOf(n)>=0},size:{type:String,default:null,validator:n=>["small","normal","default","medium","large"].indexOf(n)>=0},pattern:{type:String,default:"primary",validator:n=>["primary","secondary","tertiary"].indexOf(n)>=0},label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>GH.defaultButtonRounded},loading:Boolean,disabled:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:n=>["button","submit","reset"].indexOf(n)>=0},tag:{type:String,default:"button",validator:n=>GH.defaultLinkTags.indexOf(n)>=0},raised:Boolean,wide:Boolean,circle:Boolean,icon:String,iconProps:{type:Object,default:()=>({})},dropdownIcon:Boolean,taller:Boolean,thinner:Boolean,rounder:Boolean,to:{type:[Object,String],default:void 0,validator(n){return!!(n===void 0||typeof n=="string"||n.name&&typeof n.name=="string")}}},computed:{computedTag(){const n=this.$attrs.disabled!==void 0&&this.$attrs.disabled!==!1;return this.to&&!n?"router-link":n?"button":this.tag},iconSize(){return this.size==="medium"?20:this.size==="large"?24:this.size==="small"?16:18},computedPatternClass(){return["secondary","text","none"].includes(this.type)?"":`is-pattern-${this.pattern}`},computedTypeClass(){return["secondary","text","none"].includes(this.type)?"":`is-${this.type}`}},methods:{tailwindClasses(...n){const t=[];return this.type==="secondary"?(t.push("bg-primary-500 border-primary-500 text-white"),t.push("disabled:bg-primary-500 disabled:border-primary-500 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-primary-600 hover:border-primary-600 hover:text-white"),t.push("focus:bg-primary-700 focus:border-primary-700 focus:text-white focus:!ring focus:ring-primary-500 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-primary-100 border-primary-100 text-primary-600"),t.push("disabled:bg-primary-100 disabled:border-primary-100 disabled:text-primary-600"),t.push("hover:bg-primary-200 hover:border-primary-200 hover:text-primary-700"),t.push("focus:bg-primary-300 focus:border-primary-300 focus:text-primary-700 [&.is-focused]:text-primary-700")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-primary-500"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-primary-500"),t.push("hover:bg-primary-50 hover:border-primary-50 hover:text-primary-500"),t.push("focus:bg-primary-100 focus:border-primary-100 focus:text-primary-500 focus:bg-primary-100 [&.is-focused]:text-primary-500")),this.outlined&&(t.push("bg-transparent text-primary-500"),t.push("disabled:bg-transparent disabled:text-primary-500"))):this.type==="text"?(t.push("bg-gray-800 border-gray-800 text-white"),t.push("disabled:bg-gray-800 disabled:border-gray-800 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-700 hover:border-gray-700 hover:text-white"),t.push("focus:bg-gray-900 focus:border-gray-900 focus:text-white focus:!ring focus:ring-gray-800 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-gray-400 border-gray-400 text-white"),t.push("disabled:bg-gray-400 disabled:border-gray-400 disabled:text-white"),t.push("hover:bg-gray-500 hover:border-gray-500 hover:text-white"),t.push("focus:bg-gray-310 focus:border-gray-310 focus:text-white [&.is-focused]:text-white")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-gray-800"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-gray-800"),t.push("hover:bg-gray-100 hover:border-gray-50 hover:text-gray-800"),t.push("focus:bg-gray-100 focus:border-gray-100 focus:text-gray-800 focus:bg-gray-100 [&.is-focused]:text-gray-800")),this.outlined&&(t.push("bg-transparent text-gray-800"),t.push("disabled:bg-transparent disabled:text-gray-800"))):this.type==="none"?(t.push("bg-gray-500 border-gray-500 text-white"),t.push("disabled:bg-gray-500 disabled:border-gray-500 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-600 hover:border-gray-600 hover:text-white"),t.push("focus:bg-gray-700 focus:border-gray-700 focus:text-white focus:!ring focus:ring-gray-500 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-gray-100 border-gray-100 text-gray-600"),t.push("disabled:bg-gray-100 disabled:border-gray-100 disabled:text-gray-600"),t.push("hover:bg-gray-200 hover:border-gray-200 hover:text-gray-700"),t.push("focus:bg-gray-300 focus:border-gray-300 focus:text-gray-700 [&.is-focused]:text-gray-700")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-gray-500"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-gray-500"),t.push("hover:bg-gray-50 hover:border-gray-50 hover:text-gray-500"),t.push("focus:bg-gray-100 focus:border-gray-100 focus:text-gray-500 focus:bg-gray-100 [&.is-focused]:text-gray-500")),this.outlined&&(t.push("bg-transparent text-gray-500"),t.push("disabled:bg-transparent disabled:text-gray-500"))):this.type===null&&(t.push("bg-white border-white text-gray-800"),t.push("disabled:bg-white disabled:border-white disabled:text-gray-800 disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-100 hover:border-gray-100 hover:text-gray-800"),t.push("focus:bg-white focus:border-white focus:text-gray-800 focus:!ring focus:ring-primary-500 focus:ring-opacity-20 [&.is-focused]:text-gray-800")),Jqe(...t,...n)}}};var Qqe=function(){var t=this,r=t._self._c;return r(t.computedTag,t._g(t._b({tag:"component",staticClass:"c-button font-config button",class:[`is-${t.size}`,t.computedPatternClass,t.computedTypeClass,t.tailwindClasses(t.$attrs.class),{"is-rounded":t.rounded,"is-rounder":t.rounder,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected,"is-raised":t.raised,"is-wide":t.wide,"is-taller":t.taller,"is-thinner":t.thinner,"is-circle":t.circle}],attrs:{type:t.nativeType,disabled:t.disabled||t.loading,to:t.to}},"component",t.$attrs,!1),t.$listeners),[t.icon?r("BaseIcon",t._b({staticClass:"icon",attrs:{type:t.icon}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1)):t._e(),t.iconLeft?r("BaseIcon",t._b({staticClass:"icon",attrs:{type:t.iconLeft}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1)):t._e(),t.label?r("span",[t._v(t._s(t.label))]):t.$slots.default?r("span",[t._t("default")],2):t._e(),t.iconRight||t.dropdownIcon?r("BaseIcon",t._b({staticClass:"icon",class:{"icon-right-absolute":t.dropdownIcon},attrs:{type:t.iconRight||"chevron-up-down"}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1)):t._e()],1)},eYe=[],tYe=he(Xqe,Qqe,eYe,!1,null,null,null,null);const Tf=tYe.exports,iT={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>!1},validationMessage:String},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||""}},computed:{parentField(){let n=this.$parent;for(let t=0;t<3;t++)n&&!n.$data._isField&&(n=n.$parent);return n},statusType(){if(this.parentField&&this.parentField.newType){if(typeof this.parentField.newType=="string")return this.parentField.newType;for(const n in this.parentField.newType)if(this.parentField.newType[n])return n}},statusMessage(){if(this.parentField)return this.parentField.newMessage},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return this.newIconPack==="mdi"?"is-medium":""}}},methods:{focus(){this.$data._elementRef!==void 0&&this.$nextTick(()=>{const n=this.$el.querySelector(this.$data._elementRef);n&&n.focus()})},blur(){this.$nextTick(()=>{const n=this.$el.querySelector(this.$data._elementRef);n&&n.blur()})},onBlur(n){this.isFocused=!1,this.$emit("blur",n),this.checkHtml5Validity()},onFocus(n){this.isFocused=!0,this.$emit("focus",n)},getElement(){return this.$el.querySelector(this.$data._elementRef)},setInvalid(){const n="is-danger",t=this.validationMessage||this.getElement().validationMessage;this.setValidity(n,t)},setValidity(n,t){this.$nextTick(()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=n),this.parentField.message||(this.parentField.newMessage=t))})},checkHtml5Validity(){if(this.useHtml5Validation&&this.$refs[this.$data._elementRef]!==void 0&&this.getElement()!==null)return this.getElement().checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}},VRt="",nYe={name:"CInput",components:{BaseIcon:Ng},mixins:[iT],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>!0},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,filled:Boolean,expanded:Boolean,autoResize:Boolean,reset:Boolean,static:Boolean,iconProps:{type:Object,default:()=>({})}},data(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||"on",isPasswordVisible:!1,_elementRef:this.type==="textarea"?"textarea":"input",inputSuffixOffset:null}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n),!this.isValid&&this.checkHtml5Validity()}},rootClasses(){return[this.iconPosition,`is-${this.size}`,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,`is-${this.size}`,{"is-rounded":this.rounded,"is-filled":this.filled,"is-reset":this.reset,"is-static":this.static}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.statusTypeIcon?this.statusTypeIcon:this.iconRight},rightIconType(){return this.passwordReveal?"is-primary":this.statusTypeIcon?this.statusType:null},iconPosition(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":""},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-triangle";case"is-info":return"information";case"is-warning":return"alert";default:return""}},statusTypeIconColor(){switch(this.statusType){case"is-success":return"text-green-500";case"is-danger":return"text-red-500";case"is-info":return"text-blue-500";case"is-warning":return"text-orange-500";default:return""}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return typeof this.computedValue=="string"?this.computedValue.length:typeof this.computedValue=="number"?this.computedValue.toString().length:0}},watch:{value(n){this.newValue=n}},mounted(){this.type==="textarea"&&this.autoResize&&this.$nextTick(()=>{this.$refs.textarea.setAttribute("style",`height: ${this.$refs.textarea.scrollHeight}px`)}),this.$slots.suffix&&(this.inputSuffixOffset=this.calcInputSuffixOffset())},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(()=>{this.$refs[this.$data._elementRef].focus()})},onInput(n){n.target&&(this.computedValue=n.target.value),this.$nextTick(()=>{n.target&&this.autoResize&&this.type==="textarea"&&this.resize(n)})},iconClick(n,t){this.$emit(n,t),this.$nextTick(()=>{this.$refs[this.$data._elementRef].focus()})},rightIconClick(n){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",n)},resize({target:n}){n.style.height="1px",n.style.height=`${n.scrollHeight}px`},calcInputSuffixOffset(){return this.$slots.suffix?{paddingRight:`${this.$el.querySelector(".suffix").offsetWidth+10}px`}:null}}};var rYe=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:t.rootClasses},[t.type!=="textarea"?r("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],style:[t.inputSuffixOffset],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;t.isFocused}}},"input",t.$attrs,!1)):r("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass,{autosize:t.autoResize}],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;t.isFocused}}},"textarea",t.$attrs,!1)),t._v(" "),t.icon?r("div",{staticClass:"is-left icon",class:{"is-clickable":t.iconClickable},on:{click:function(i){return t.iconClick("icon-click",i)}}},[r("BaseIcon",t._b({attrs:{type:t.icon}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1))],1):t._e(),!t.loading&&t.hasIconRight?r("div",{staticClass:"is-right icon",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},on:{click:t.rightIconClick}},[r("BaseIcon",t._b({class:t.statusTypeIconColor,attrs:{type:t.rightIcon}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1))],1):t._e(),t.$slots.suffix?r("div",{staticClass:"suffix"},[t._t("suffix")],2):t._e()])},iYe=[],aYe=he(nYe,rYe,iYe,!1,null,"28c8c573",null,null);const cl=aYe.exports,aT={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:{type:String,default:"primary"},disabled:Boolean,required:Boolean,name:String,size:{type:String,default:"default"}},data(){return{newValue:this.value}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n)}}},watch:{value(n){this.newValue=n}},methods:{focus(){this.$refs.input.focus()}}},URt="",oYe={name:"CCheckbox",mixins:[aT],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},inverted:Boolean}};var sYe=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"c-checkbox checkbox",class:[`is-${t.size}`,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue,type:"checkbox"},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(i){i.stopPropagation()},change:function(i){var a=t.computedValue,o=i.target,s=o.checked?t.trueValue:t.falseValue;if(Array.isArray(a)){var c=t.nativeValue,l=t._i(a,c);o.checked?l<0&&(t.computedValue=a.concat([c])):l>-1&&(t.computedValue=a.slice(0,l).concat(a.slice(l+1)))}else t.computedValue=s}}}),r("span",{staticClass:"check",class:[`is-${t.type}`,{"is-inverted":t.inverted}]},[r("svg",{attrs:{viewBox:"0 0 30 30"}},[r("polyline",{attrs:{points:"21 8 12 20 7 15"}})])]),t.$slots.default?r("span",{staticClass:"control-label"},[t._t("default")],2):t._e()])},lYe=[],cYe=he(oYe,sYe,lYe,!1,null,null,null,null);const id=cYe.exports;var qH={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(typeof self<"u"?self:Vt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,function(u){return o[u]}.bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=44)}([function(r,i,a){var o=a(28)("wks"),s=a(14),c=a(1).Symbol,l=typeof c=="function";(r.exports=function(u){return o[u]||(o[u]=l&&c[u]||(l?c:s)("Symbol."+u))}).store=o},function(r,i){var a=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(r,i,a){var o=a(1),s=a(7),c=a(3),l=a(19),u=a(24),d=function(p,f,h){var m,g,y,b,w=p&d.F,S=p&d.G,k=p&d.S,$=p&d.P,T=p&d.B,A=S?o:k?o[f]||(o[f]={}):(o[f]||{}).prototype,E=S?s:s[f]||(s[f]={}),I=E.prototype||(E.prototype={});for(m in S&&(h=f),h)y=((g=!w&&A&&A[m]!==void 0)?A:h)[m],b=T&&g?u(y,o):$&&typeof y=="function"?u(Function.call,y):y,A&&l(A,m,y,p&d.U),E[m]!=y&&c(E,m,b),$&&I[m]!=y&&(I[m]=y)};o.core=s,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,r.exports=d},function(r,i,a){var o=a(4),s=a(13);r.exports=a(8)?function(c,l,u){return o.f(c,l,s(1,u))}:function(c,l,u){return c[l]=u,c}},function(r,i,a){var o=a(12),s=a(34),c=a(23),l=Object.defineProperty;i.f=a(8)?Object.defineProperty:function(u,d,p){if(o(u),d=c(d,!0),o(p),s)try{return l(u,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(u[d]=p.value),u}},function(r,i){r.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(r,i){var a={}.hasOwnProperty;r.exports=function(o,s){return a.call(o,s)}},function(r,i){var a=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=a)},function(r,i,a){r.exports=!a(9)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,i){r.exports=function(a){try{return!!a()}catch{return!0}}},function(r,i,a){var o=a(37),s=a(29);r.exports=Object.keys||function(c){return o(c,s)}},function(r,i,a){var o=a(25),s=a(17);r.exports=function(c){return o(s(c))}},function(r,i,a){var o=a(5);r.exports=function(s){if(!o(s))throw TypeError(s+" is not an object!");return s}},function(r,i){r.exports=function(a,o){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:o}}},function(r,i){var a=0,o=Math.random();r.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++a+o).toString(36))}},function(r,i){r.exports={}},function(r,i,a){var o=a(17);r.exports=function(s){return Object(o(s))}},function(r,i){r.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(r,i){r.exports=!1},function(r,i,a){var o=a(1),s=a(3),c=a(6),l=a(14)("src"),u=Function.toString,d=(""+u).split("toString");a(7).inspectSource=function(p){return u.call(p)},(r.exports=function(p,f,h,m){var g=typeof h=="function";g&&(c(h,"name")||s(h,"name",f)),p[f]!==h&&(g&&(c(h,l)||s(h,l,p[f]?""+p[f]:d.join(String(f)))),p===o?p[f]=h:m?p[f]?p[f]=h:s(p,f,h):(delete p[f],s(p,f,h)))})(Function.prototype,"toString",function(){return typeof this=="function"&&this[l]||u.call(this)})},function(r,i){var a={}.toString;r.exports=function(o){return a.call(o).slice(8,-1)}},function(r,i){i.f={}.propertyIsEnumerable},function(r,i){var a=Math.ceil,o=Math.floor;r.exports=function(s){return isNaN(s=+s)?0:(s>0?o:a)(s)}},function(r,i,a){var o=a(5);r.exports=function(s,c){if(!o(s))return s;var l,u;if(c&&typeof(l=s.toString)=="function"&&!o(u=l.call(s))||typeof(l=s.valueOf)=="function"&&!o(u=l.call(s))||!c&&typeof(l=s.toString)=="function"&&!o(u=l.call(s)))return u;throw TypeError("Can't convert object to primitive value")}},function(r,i,a){var o=a(47);r.exports=function(s,c,l){if(o(s),c===void 0)return s;switch(l){case 1:return function(u){return s.call(c,u)};case 2:return function(u,d){return s.call(c,u,d)};case 3:return function(u,d,p){return s.call(c,u,d,p)}}return function(){return s.apply(c,arguments)}}},function(r,i,a){var o=a(20);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return o(s)=="String"?s.split(""):Object(s)}},function(r,i,a){var o=a(22),s=Math.min;r.exports=function(c){return c>0?s(o(c),9007199254740991):0}},function(r,i,a){var o=a(28)("keys"),s=a(14);r.exports=function(c){return o[c]||(o[c]=s(c))}},function(r,i,a){var o=a(7),s=a(1),c=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(r.exports=function(l,u){return c[l]||(c[l]=u!==void 0?u:{})})("versions",[]).push({version:o.version,mode:a(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(r,i){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,i,a){var o=a(4).f,s=a(6),c=a(0)("toStringTag");r.exports=function(l,u,d){l&&!s(l=d?l:l.prototype,c)&&o(l,c,{configurable:!0,value:u})}},function(r,i,a){var o=a(0)("unscopables"),s=Array.prototype;s[o]==null&&a(3)(s,o,{}),r.exports=function(c){s[o][c]=!0}},function(r,i){i.f=Object.getOwnPropertySymbols},function(r,i,a){var o=a(18),s=a(2),c=a(19),l=a(3),u=a(15),d=a(48),p=a(30),f=a(52),h=a(0)("iterator"),m=!([].keys&&"next"in[].keys()),g=function(){return this};r.exports=function(y,b,w,S,k,$,T){d(w,b,S);var A,E,I,R=function(M){if(!m&&M in B)return B[M];switch(M){case"keys":case"values":return function(){return new w(this,M)}}return function(){return new w(this,M)}},Y=b+" Iterator",L=k=="values",D=!1,B=y.prototype,z=B[h]||B["@@iterator"]||k&&B[k],K=z||R(k),te=k?L?R("entries"):K:void 0,j=b=="Array"&&B.entries||z;if(j&&(I=f(j.call(new y)))!==Object.prototype&&I.next&&(p(I,Y,!0),o||typeof I[h]=="function"||l(I,h,g)),L&&z&&z.name!=="values"&&(D=!0,K=function(){return z.call(this)}),o&&!T||!m&&!D&&B[h]||l(B,h,K),u[b]=K,u[Y]=g,k)if(A={values:L?K:R("values"),keys:$?K:R("keys"),entries:te},T)for(E in A)E in B||c(B,E,A[E]);else s(s.P+s.F*(m||D),b,A);return A}},function(r,i,a){r.exports=!a(8)&&!a(9)(function(){return Object.defineProperty(a(35)("div"),"a",{get:function(){return 7}}).a!=7})},function(r,i,a){var o=a(5),s=a(1).document,c=o(s)&&o(s.createElement);r.exports=function(l){return c?s.createElement(l):{}}},function(r,i,a){var o=a(12),s=a(49),c=a(29),l=a(27)("IE_PROTO"),u=function(){},d=function(){var p,f=a(35)("iframe"),h=c.length;for(f.style.display="none",a(51).appendChild(f),f.src="javascript:",(p=f.contentWindow.document).open(),p.write("<script>document.F=Object<\/script>"),p.close(),d=p.F;h--;)delete d.prototype[c[h]];return d()};r.exports=Object.create||function(p,f){var h;return p!==null?(u.prototype=o(p),h=new u,u.prototype=null,h[l]=p):h=d(),f===void 0?h:s(h,f)}},function(r,i,a){var o=a(6),s=a(11),c=a(38)(!1),l=a(27)("IE_PROTO");r.exports=function(u,d){var p,f=s(u),h=0,m=[];for(p in f)p!=l&&o(f,p)&&m.push(p);for(;d.length>h;)o(f,p=d[h++])&&(~c(m,p)||m.push(p));return m}},function(r,i,a){var o=a(11),s=a(26),c=a(50);r.exports=function(l){return function(u,d,p){var f,h=o(u),m=s(h.length),g=c(p,m);if(l&&d!=d){for(;m>g;)if((f=h[g++])!=f)return!0}else for(;m>g;g++)if((l||g in h)&&h[g]===d)return l||g||0;return!l&&-1}}},function(r,i,a){var o=a(31),s=a(65),c=a(15),l=a(11);r.exports=a(33)(Array,"Array",function(u,d){this._t=l(u),this._i=0,this._k=d},function(){var u=this._t,d=this._k,p=this._i++;return!u||p>=u.length?(this._t=void 0,s(1)):s(0,d=="keys"?p:d=="values"?u[p]:[p,u[p]])},"values"),c.Arguments=c.Array,o("keys"),o("values"),o("entries")},function(r,i,a){var o=a(20);r.exports=Array.isArray||function(s){return o(s)=="Array"}},function(r,i,a){var o=a(1),s=a(7),c=a(18),l=a(42),u=a(4).f;r.exports=function(d){var p=s.Symbol||(s.Symbol=c?{}:o.Symbol||{});d.charAt(0)=="_"||d in p||u(p,d,{value:l.f(d)})}},function(r,i,a){i.f=a(0)},function(r,i,a){var o=a(37),s=a(29).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(c){return o(c,s)}},function(r,i,a){a.r(i),a(45),a(53),a(60),a(61),a(39),a(66),a(68),a(70),a(74),a(75),a(80);function o(h,m){for(var g=0;g<m.length;g++){var y=m[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}var s={methods:{$smoothReflow:function(h){var m=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._smoothElements.push(new p(g))}.bind(this);Array.isArray(h)?h.forEach(m):m(h)},$unsmoothReflow:function(h){var m=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d(),y=this.$el,b=this._smoothElements.findIndex(function(w){return l(y,w.options.el)===l(y,g.el)});if(b===-1)return void console.error("VSR_ERROR: $unsmoothReflow failed due to invalid el option");this._smoothElements[b].scheduleRemoval()}.bind(this);Array.isArray(h)?h.forEach(m):m(h)}},beforeMount:function(){var h=this;this._smoothElements=[],this._endListener=function(m){var g=!0,y=!1,b=void 0;try{for(var w,S=h._smoothElements[Symbol.iterator]();!(g=(w=S.next()).done);g=!0)w.value.endListener(m)}catch(k){y=!0,b=k}finally{try{g||S.return==null||S.return()}finally{if(y)throw b}}}},mounted:function(){this.$el.addEventListener("transitionend",this._endListener,{passive:!0})},destroyed:function(){this.$el.removeEventListener("transitionend",this._endListener,{passive:!0})},beforeUpdate:function(){this.$el.addEventListener("transitionend",this._endListener,{passive:!0}),c(this);var h=!0,m=!1,g=void 0;try{for(var y,b=this._smoothElements[Symbol.iterator]();!(h=(y=b.next()).done);h=!0){var w=y.value,S=l(this.$el,w.options.el);w.setSmoothElement(S),w.setBeforeValues()}}catch(k){m=!0,g=k}finally{try{h||b.return==null||b.return()}finally{if(m)throw g}}},updated:function(){var h=this;this.$nextTick(function(){var m=!0,g=!1,y=void 0;try{for(var b,w=h._smoothElements[Symbol.iterator]();!(m=(b=w.next()).done);m=!0){var S=b.value,k=l(h.$el,S.options.el);S.setSmoothElement(k),S.doSmoothReflow()}}catch($){g=!0,y=$}finally{try{m||w.return==null||w.return()}finally{if(g)throw y}}c(h)})}};function c(h){for(var m=h._smoothElements.length;m--;){var g=h._smoothElements[m];g.isRemoved&&(g.stopTransition(),h._smoothElements.splice(m,1))}}function l(h,m){return!h||h instanceof Node&&h.nodeType===Node.COMMENT_NODE?null:m===null?h:function(g,y){return typeof y=="string"?g.matches(y)?g:g.querySelector(y):y}(h,m)}var u={INACTIVE:"INACTIVE",ACTIVE:"ACTIVE"},d=function(){return{el:null,property:"height",transitionEvent:null,hideOverflow:!0,debug:!1}},p=function(){function h(m){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,h);var g=d();Object.assign(g,m);var y=this.parsePropertyOption(g.property);g.transition||(g.transition=y.map(function(w){return"".concat(w," .5s")}).join(","));var b={$smoothEl:null,properties:y,beforeRect:{},state:u.INACTIVE,isRemoved:!1};Object.assign(this,{options:g},b),this.endListener=this.endListener.bind(this),this.debug=this.debug.bind(this)}return function(m,g,y){g&&o(m.prototype,g),y&&o(m,y)}(h,[{key:"setSmoothElement",value:function(m){this.$smoothEl=m}},{key:"transitionTo",value:function(m){this.state=m}},{key:"parsePropertyOption",value:function(m){return typeof m=="string"?[m]:Array.isArray(m)?m:[]}},{key:"setBeforeValues",value:function(){var m=this.$smoothEl;if(this.beforeRect={},m){var g=window.getComputedStyle(m)||{},y=g.transition,b=g.overflowX,w=g.overflowY;this.computedTransition=y,this.overflowX=b,this.overflowY=w,this.beforeRect=f(m),this.state===u.ACTIVE&&(this.stopTransition(),this.debug("Transition was interrupted."))}}},{key:"didValuesChange",value:function(m,g){var y=m,b=g;if(Object.keys(m).length===0)return!1;var w=!0,S=!1,k=void 0;try{for(var $,T=this.properties[Symbol.iterator]();!(w=($=T.next()).done);w=!0){var A=$.value;if(A==="transform"&&(y.top!==b.top||y.left!==b.left)||y[A]!==b[A])return!0}}catch(E){S=!0,k=E}finally{try{w||T.return==null||T.return()}finally{if(S)throw k}}return!1}},{key:"doSmoothReflow",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data update",g=this.$smoothEl;if(!g)return this.debug("Could not find registered el to perform doSmoothReflow."),void this.transitionTo(u.INACTIVE);if(this.state!==u.ACTIVE){var y=this.beforeRect,b=this.properties,w=this.options,S=this.overflowX,k=this.overflowY,$=this.debug;this.transitionTo(u.ACTIVE),$("doSmoothReflow triggered by:",typeof m=="string"?m:m.target);var T=f(g);if(!this.didValuesChange(y,T))return $("Property values did not change."),void this.transitionTo(u.INACTIVE);$("beforeRect",y),$("afterRect",T),this.saveOverflowValues(g,S,k);var A=!0,E=!1,I=void 0;try{for(var R,Y=b[Symbol.iterator]();!(A=(R=Y.next()).done);A=!0){var L=R.value;if(L==="transform"){var D=y.left-T.left,B=y.top-T.top;g.style.transform="translate(".concat(D,"px, ").concat(B,"px)")}else g.style[L]=y[L]+"px"}}catch(G){E=!0,I=G}finally{try{A||Y.return==null||Y.return()}finally{if(E)throw I}}g.offsetHeight,g.style.transition=[this.computedTransition,w.transition].filter(function(G){return G}).join(",");var z=!0,K=!1,te=void 0;try{for(var j,M=b[Symbol.iterator]();!(z=(j=M.next()).done);z=!0){var q=j.value;q==="transform"?g.style.transform="":g.style[q]=T[q]+"px"}}catch(G){K=!0,te=G}finally{try{z||M.return==null||M.return()}finally{if(K)throw te}}}}},{key:"endListener",value:function(m){var g=this.$smoothEl,y=this.properties;g===m.target?y.includes(m.propertyName)&&(this.stopTransition(),this.hasRegisteredEventEmitter()&&this.setBeforeValues()):this.isRegisteredEventEmitter(g,m)&&this.doSmoothReflow(m)}},{key:"hasRegisteredEventEmitter",value:function(){var m=this.options.transitionEvent;return m!==null&&Object.keys(m).length>0}},{key:"isRegisteredEventEmitter",value:function(m,g){if(!this.hasRegisteredEventEmitter())return!1;var y=g.target,b=this.options.transitionEvent,w=b.selector,S=b.propertyName;if(S!=null&&S!==g.propertyName||w!=null&&!y.matches(w))return!1;if(this.properties.indexOf("transform")===-1){var k=!1,$=g.composedPath?g.composedPath():[],T=!0,A=!1,E=void 0;try{for(var I,R=$[Symbol.iterator]();!(T=(I=R.next()).done);T=!0)if(m===I.value){k=!0;break}}catch(Y){A=!0,E=Y}finally{try{T||R.return==null||R.return()}finally{if(A)throw E}}if(!k)return!1}return!0}},{key:"saveOverflowValues",value:function(m,g,y){this.options.hideOverflow&&(this.overflowX=g,this.overflowY=y,m.style.overflowX="hidden",m.style.overflowY="hidden")}},{key:"restoreOverflowValues",value:function(m){var g=this.options,y=this.overflowX,b=this.overflowY;g.hideOverflow&&(m.style.overflowX=y,m.style.overflowY=b)}},{key:"stopTransition",value:function(){var m=this.$smoothEl,g=this.properties,y=!0,b=!1,w=void 0;try{for(var S,k=g[Symbol.iterator]();!(y=(S=k.next()).done);y=!0){var $=S.value;m.style[$]=null}}catch(T){b=!0,w=T}finally{try{y||k.return==null||k.return()}finally{if(b)throw w}}this.restoreOverflowValues(m),m.style.transition=null,this.transitionTo(u.INACTIVE)}},{key:"scheduleRemoval",value:function(){this.isRemoved=!0}},{key:"debug",value:function(){if(this.options.debug){var m=["VSR_DEBUG:"].concat(Array.from(arguments));console.log.apply(null,m)}}}]),h}(),f=function(h){h.style.overflow="hidden";var m=h.getBoundingClientRect(),g=m.top,y=m.right,b=m.bottom,w=m.left,S=m.width,k=m.height,$=m.x,T=m.y;return h.style.overflow=null,{top:g,right:y,bottom:b,left:w,width:S,height:k,x:$,y:T}};typeof Element<"u"&&Element.prototype&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(h){for(var m=(this.document||this.ownerDocument).querySelectorAll(h),g=m.length;--g>=0&&m.item(g)!==this;);return g>-1}),i.default=s},function(r,i,a){var o=a(46)(!0);a(33)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,c=this._t,l=this._i;return l>=c.length?{value:void 0,done:!0}:(s=o(c,l),this._i+=s.length,{value:s,done:!1})})},function(r,i,a){var o=a(22),s=a(17);r.exports=function(c){return function(l,u){var d,p,f=String(s(l)),h=o(u),m=f.length;return h<0||h>=m?c?"":void 0:(d=f.charCodeAt(h))<55296||d>56319||h+1===m||(p=f.charCodeAt(h+1))<56320||p>57343?c?f.charAt(h):d:c?f.slice(h,h+2):p-56320+(d-55296<<10)+65536}}},function(r,i){r.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(r,i,a){var o=a(36),s=a(13),c=a(30),l={};a(3)(l,a(0)("iterator"),function(){return this}),r.exports=function(u,d,p){u.prototype=o(l,{next:s(1,p)}),c(u,d+" Iterator")}},function(r,i,a){var o=a(4),s=a(12),c=a(10);r.exports=a(8)?Object.defineProperties:function(l,u){s(l);for(var d,p=c(u),f=p.length,h=0;f>h;)o.f(l,d=p[h++],u[d]);return l}},function(r,i,a){var o=a(22),s=Math.max,c=Math.min;r.exports=function(l,u){return(l=o(l))<0?s(l+u,0):c(l,u)}},function(r,i,a){var o=a(1).document;r.exports=o&&o.documentElement},function(r,i,a){var o=a(6),s=a(16),c=a(27)("IE_PROTO"),l=Object.prototype;r.exports=Object.getPrototypeOf||function(u){return u=s(u),o(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?l:null}},function(r,i,a){var o=a(24),s=a(2),c=a(16),l=a(54),u=a(55),d=a(26),p=a(56),f=a(57);s(s.S+s.F*!a(59)(function(h){Array.from(h)}),"Array",{from:function(h){var m,g,y,b,w=c(h),S=typeof this=="function"?this:Array,k=arguments.length,$=k>1?arguments[1]:void 0,T=$!==void 0,A=0,E=f(w);if(T&&($=o($,k>2?arguments[2]:void 0,2)),E==null||S==Array&&u(E))for(g=new S(m=d(w.length));m>A;A++)p(g,A,T?$(w[A],A):w[A]);else for(b=E.call(w),g=new S;!(y=b.next()).done;A++)p(g,A,T?l(b,$,[y.value,A],!0):y.value);return g.length=A,g}})},function(r,i,a){var o=a(12);r.exports=function(s,c,l,u){try{return u?c(o(l)[0],l[1]):c(l)}catch(p){var d=s.return;throw d!==void 0&&o(d.call(s)),p}}},function(r,i,a){var o=a(15),s=a(0)("iterator"),c=Array.prototype;r.exports=function(l){return l!==void 0&&(o.Array===l||c[s]===l)}},function(r,i,a){var o=a(4),s=a(13);r.exports=function(c,l,u){l in c?o.f(c,l,s(0,u)):c[l]=u}},function(r,i,a){var o=a(58),s=a(0)("iterator"),c=a(15);r.exports=a(7).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||c[o(l)]}},function(r,i,a){var o=a(20),s=a(0)("toStringTag"),c=o(function(){return arguments}())=="Arguments";r.exports=function(l){var u,d,p;return l===void 0?"Undefined":l===null?"Null":typeof(d=function(f,h){try{return f[h]}catch{}}(u=Object(l),s))=="string"?d:c?o(u):(p=o(u))=="Object"&&typeof u.callee=="function"?"Arguments":p}},function(r,i,a){var o=a(0)("iterator"),s=!1;try{var c=[7][o]();c.return=function(){s=!0},Array.from(c,function(){throw 2})}catch{}r.exports=function(l,u){if(!u&&!s)return!1;var d=!1;try{var p=[7],f=p[o]();f.next=function(){return{done:d=!0}},p[o]=function(){return f},l(p)}catch{}return d}},function(r,i,a){var o=a(2),s=a(38)(!0);o(o.P,"Array",{includes:function(c){return s(this,c,arguments.length>1?arguments[1]:void 0)}}),a(31)("includes")},function(r,i,a){var o=a(2),s=a(62);o(o.P+o.F*a(64)("includes"),"String",{includes:function(c){return!!~s(this,c,"includes").indexOf(c,arguments.length>1?arguments[1]:void 0)}})},function(r,i,a){var o=a(63),s=a(17);r.exports=function(c,l,u){if(o(l))throw TypeError("String#"+u+" doesn't accept regex!");return String(s(c))}},function(r,i,a){var o=a(5),s=a(20),c=a(0)("match");r.exports=function(l){var u;return o(l)&&((u=l[c])!==void 0?!!u:s(l)=="RegExp")}},function(r,i,a){var o=a(0)("match");r.exports=function(s){var c=/./;try{"/./"[s](c)}catch{try{return c[o]=!1,!"/./"[s](c)}catch{}}return!0}},function(r,i){r.exports=function(a,o){return{value:o,done:!!a}}},function(r,i,a){var o=a(16),s=a(10);a(67)("keys",function(){return function(c){return s(o(c))}})},function(r,i,a){var o=a(2),s=a(7),c=a(9);r.exports=function(l,u){var d=(s.Object||{})[l]||Object[l],p={};p[l]=u(d),o(o.S+o.F*c(function(){d(1)}),"Object",p)}},function(r,i,a){var o=a(2);o(o.S+o.F,"Object",{assign:a(69)})},function(r,i,a){var o=a(10),s=a(32),c=a(21),l=a(16),u=a(25),d=Object.assign;r.exports=!d||a(9)(function(){var p={},f={},h=Symbol(),m="abcdefghijklmnopqrst";return p[h]=7,m.split("").forEach(function(g){f[g]=g}),d({},p)[h]!=7||Object.keys(d({},f)).join("")!=m})?function(p,f){for(var h=l(p),m=arguments.length,g=1,y=s.f,b=c.f;m>g;)for(var w,S=u(arguments[g++]),k=y?o(S).concat(y(S)):o(S),$=k.length,T=0;$>T;)b.call(S,w=k[T++])&&(h[w]=S[w]);return h}:d},function(r,i,a){var o=a(2),s=a(71)(6),c="findIndex",l=!0;c in[]&&Array(1)[c](function(){l=!1}),o(o.P+o.F*l,"Array",{findIndex:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}}),a(31)(c)},function(r,i,a){var o=a(24),s=a(25),c=a(16),l=a(26),u=a(72);r.exports=function(d,p){var f=d==1,h=d==2,m=d==3,g=d==4,y=d==6,b=d==5||y,w=p||u;return function(S,k,$){for(var T,A,E=c(S),I=s(E),R=o(k,$,3),Y=l(I.length),L=0,D=f?w(S,Y):h?w(S,0):void 0;Y>L;L++)if((b||L in I)&&(A=R(T=I[L],L,E),d)){if(f)D[L]=A;else if(A)switch(d){case 3:return!0;case 5:return T;case 6:return L;case 2:D.push(T)}else if(g)return!1}return y?-1:m||g?g:D}}},function(r,i,a){var o=a(73);r.exports=function(s,c){return new(o(s))(c)}},function(r,i,a){var o=a(5),s=a(40),c=a(0)("species");r.exports=function(l){var u;return s(l)&&(typeof(u=l.constructor)!="function"||u!==Array&&!s(u.prototype)||(u=void 0),o(u)&&(u=u[c])===null&&(u=void 0)),u===void 0?Array:u}},function(r,i,a){a(41)("asyncIterator")},function(r,i,a){var o=a(1),s=a(6),c=a(8),l=a(2),u=a(19),d=a(76).KEY,p=a(9),f=a(28),h=a(30),m=a(14),g=a(0),y=a(42),b=a(41),w=a(77),S=a(40),k=a(12),$=a(5),T=a(11),A=a(23),E=a(13),I=a(36),R=a(78),Y=a(79),L=a(4),D=a(10),B=Y.f,z=L.f,K=R.f,te=o.Symbol,j=o.JSON,M=j&&j.stringify,q=g("_hidden"),G=g("toPrimitive"),ee={}.propertyIsEnumerable,ae=f("symbol-registry"),ve=f("symbols"),ye=f("op-symbols"),me=Object.prototype,de=typeof te=="function",W=o.QObject,J=!W||!W.prototype||!W.prototype.findChild,Q=c&&p(function(){return I(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(F,Z,pe){var be=B(me,Z);be&&delete me[Z],z(F,Z,pe),be&&F!==me&&z(me,Z,be)}:z,xe=function(F){var Z=ve[F]=I(te.prototype);return Z._k=F,Z},we=de&&typeof te.iterator=="symbol"?function(F){return typeof F=="symbol"}:function(F){return F instanceof te},X=function(F,Z,pe){return F===me&&X(ye,Z,pe),k(F),Z=A(Z,!0),k(pe),s(ve,Z)?(pe.enumerable?(s(F,q)&&F[q][Z]&&(F[q][Z]=!1),pe=I(pe,{enumerable:E(0,!1)})):(s(F,q)||z(F,q,E(1,{})),F[q][Z]=!0),Q(F,Z,pe)):z(F,Z,pe)},ue=function(F,Z){k(F);for(var pe,be=w(Z=T(Z)),Te=0,Ee=be.length;Ee>Te;)X(F,pe=be[Te++],Z[pe]);return F},ie=function(F){var Z=ee.call(this,F=A(F,!0));return!(this===me&&s(ve,F)&&!s(ye,F))&&(!(Z||!s(this,F)||!s(ve,F)||s(this,q)&&this[q][F])||Z)},ke=function(F,Z){if(F=T(F),Z=A(Z,!0),F!==me||!s(ve,Z)||s(ye,Z)){var pe=B(F,Z);return!pe||!s(ve,Z)||s(F,q)&&F[q][Z]||(pe.enumerable=!0),pe}},U=function(F){for(var Z,pe=K(T(F)),be=[],Te=0;pe.length>Te;)s(ve,Z=pe[Te++])||Z==q||Z==d||be.push(Z);return be},oe=function(F){for(var Z,pe=F===me,be=K(pe?ye:T(F)),Te=[],Ee=0;be.length>Ee;)!s(ve,Z=be[Ee++])||pe&&!s(me,Z)||Te.push(ve[Z]);return Te};de||(u((te=function(){if(this instanceof te)throw TypeError("Symbol is not a constructor!");var F=m(arguments.length>0?arguments[0]:void 0),Z=function(pe){this===me&&Z.call(ye,pe),s(this,q)&&s(this[q],F)&&(this[q][F]=!1),Q(this,F,E(1,pe))};return c&&J&&Q(me,F,{configurable:!0,set:Z}),xe(F)}).prototype,"toString",function(){return this._k}),Y.f=ke,L.f=X,a(43).f=R.f=U,a(21).f=ie,a(32).f=oe,c&&!a(18)&&u(me,"propertyIsEnumerable",ie,!0),y.f=function(F){return xe(g(F))}),l(l.G+l.W+l.F*!de,{Symbol:te});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),V=0;re.length>V;)g(re[V++]);for(var P=D(g.store),C=0;P.length>C;)b(P[C++]);l(l.S+l.F*!de,"Symbol",{for:function(F){return s(ae,F+="")?ae[F]:ae[F]=te(F)},keyFor:function(F){if(!we(F))throw TypeError(F+" is not a symbol!");for(var Z in ae)if(ae[Z]===F)return Z},useSetter:function(){J=!0},useSimple:function(){J=!1}}),l(l.S+l.F*!de,"Object",{create:function(F,Z){return Z===void 0?I(F):ue(I(F),Z)},defineProperty:X,defineProperties:ue,getOwnPropertyDescriptor:ke,getOwnPropertyNames:U,getOwnPropertySymbols:oe}),j&&l(l.S+l.F*(!de||p(function(){var F=te();return M([F])!="[null]"||M({a:F})!="{}"||M(Object(F))!="{}"})),"JSON",{stringify:function(F){for(var Z,pe,be=[F],Te=1;arguments.length>Te;)be.push(arguments[Te++]);if(pe=Z=be[1],($(Z)||F!==void 0)&&!we(F))return S(Z)||(Z=function(Ee,ze){if(typeof pe=="function"&&(ze=pe.call(this,Ee,ze)),!we(ze))return ze}),be[1]=Z,M.apply(j,be)}}),te.prototype[G]||a(3)(te.prototype,G,te.prototype.valueOf),h(te,"Symbol"),h(Math,"Math",!0),h(o.JSON,"JSON",!0)},function(r,i,a){var o=a(14)("meta"),s=a(5),c=a(6),l=a(4).f,u=0,d=Object.isExtensible||function(){return!0},p=!a(9)(function(){return d(Object.preventExtensions({}))}),f=function(m){l(m,o,{value:{i:"O"+ ++u,w:{}}})},h=r.exports={KEY:o,NEED:!1,fastKey:function(m,g){if(!s(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!c(m,o)){if(!d(m))return"F";if(!g)return"E";f(m)}return m[o].i},getWeak:function(m,g){if(!c(m,o)){if(!d(m))return!0;if(!g)return!1;f(m)}return m[o].w},onFreeze:function(m){return p&&h.NEED&&d(m)&&!c(m,o)&&f(m),m}}},function(r,i,a){var o=a(10),s=a(32),c=a(21);r.exports=function(l){var u=o(l),d=s.f;if(d)for(var p,f=d(l),h=c.f,m=0;f.length>m;)h.call(l,p=f[m++])&&u.push(p);return u}},function(r,i,a){var o=a(11),s=a(43).f,c={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(u){return l&&c.call(u)=="[object Window]"?function(d){try{return s(d)}catch{return l.slice()}}(u):s(o(u))}},function(r,i,a){var o=a(21),s=a(13),c=a(11),l=a(23),u=a(6),d=a(34),p=Object.getOwnPropertyDescriptor;i.f=a(8)?p:function(f,h){if(f=c(f),h=l(h,!0),d)try{return p(f,h)}catch{}if(u(f,h))return s(!o.f.call(f,h),f[h])}},function(r,i,a){for(var o=a(39),s=a(10),c=a(19),l=a(1),u=a(3),d=a(15),p=a(0),f=p("iterator"),h=p("toStringTag"),m=d.Array,g={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=s(g),b=0;b<y.length;b++){var w,S=y[b],k=g[S],$=l[S],T=$&&$.prototype;if(T&&(T[f]||u(T,f,m),T[h]||u(T,h,S),d[S]=m,k))for(w in o)T[w]||c(T,w,o[w],!0)}}]).default})})(qH);var uYe=qH.exports;const dYe=tn(uYe),pYe={property:["height","width"],transition:"height 150ms cubic-bezier(0.175, 0.885, 0.32, 1), width .25s ease-out, transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1)"},fYe={name:"Animation",mixins:[dYe],props:{tag:{type:String,default:"div"},options:{type:Object,default:null}},mounted(){this.$smoothReflow({...pYe,...this.options})}};var hYe=function(){var t=this,r=t._self._c;return r(t.tag,{tag:"component"},[t._t("default")],2)},mYe=[],gYe=he(fYe,hYe,mYe,!1,null,null,null,null);const pb=gYe.exports;function vYe(){ai.init({store:hn}),wg.init({store:hn}),hn.handleError=Rr,s5e(hn,Ks),hn.$router=Ks}vYe();function yYe(n,t={}){var i;String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},Fe.use(M3,{rootNode:t.rootNode,disposeTimeout:100,defaultDelay:300,defaultContainer:n.parentElement,defaultHtml:!1,popover:{defaultContainer:n.parentElement}}),Fe.use(tP,{dynamic:!0,injectModalsContainer:!1,dynamicDefaults:{transition:"no-animation"}}),Fe.use(k5e),Fe.prototype.$modal.getOpenInstances=()=>{const{_dynamicContainer:a}=tP.rootInstance||{};if(!a||a.modals.length===0)return[];const{modals:o}=a;return o},Fe.prototype.$view="widget",Fe.use(nxe),Fe.use(o5e),Fe.use(Cqe),Fe.component(Ng.name,Ng),Fe.component(Tf.name,Tf),Fe.component(cl.name,cl),Fe.component(id.name,id),Fe.component(pb.name,pb),Xe.debug&&(Fe.config.productionTip=!1,Fe.config.devtools=!0,Fe.config.performance=!0),hn.commit("application/SET_SOCKET_ENABLED",((i=t==null?void 0:t.socket)==null?void 0:i.enabled)||!1);const r=new Fe({el:n,router:Ks,store:hn,i18n:Be,render:a=>a(bIe)});return Ks.beforeEach((a,o,s)=>(Ks.resolve({...a}).href==="/"&&mn.removeAllOverlayViews(),s())),r}var bYe=Array.isArray,Bg=bYe,_Ye=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,wYe=_Ye,xYe=wYe,CYe=typeof self=="object"&&self&&self.Object===Object&&self,kYe=xYe||CYe||Function("return this")(),oT=kYe,SYe=oT,TYe=SYe.Symbol,fb=TYe,YH=fb,KH=Object.prototype,EYe=KH.hasOwnProperty,$Ye=KH.toString,jg=YH?YH.toStringTag:void 0;function AYe(n){var t=EYe.call(n,jg),r=n[jg];try{n[jg]=void 0;var i=!0}catch{}var a=$Ye.call(n);return i&&(t?n[jg]=r:delete n[jg]),a}var OYe=AYe,DYe=Object.prototype,MYe=DYe.toString;function PYe(n){return MYe.call(n)}var IYe=PYe,ZH=fb,RYe=OYe,LYe=IYe,NYe="[object Null]",FYe="[object Undefined]",JH=ZH?ZH.toStringTag:void 0;function BYe(n){return n==null?n===void 0?FYe:NYe:JH&&JH in Object(n)?RYe(n):LYe(n)}var sT=BYe;function jYe(n){return n!=null&&typeof n=="object"}var lT=jYe,zYe=sT,VYe=lT,UYe="[object Symbol]";function HYe(n){return typeof n=="symbol"||VYe(n)&&zYe(n)==UYe}var cT=HYe,WYe=Bg,GYe=cT,qYe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YYe=/^\w*$/;function KYe(n,t){if(WYe(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||GYe(n)?!0:YYe.test(n)||!qYe.test(n)||t!=null&&n in Object(t)}var ZYe=KYe;function JYe(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var uT=JYe,XYe=sT,QYe=uT,eKe="[object AsyncFunction]",tKe="[object Function]",nKe="[object GeneratorFunction]",rKe="[object Proxy]";function iKe(n){if(!QYe(n))return!1;var t=XYe(n);return t==tKe||t==nKe||t==eKe||t==rKe}var aKe=iKe,oKe=oT,sKe=oKe["__core-js_shared__"],lKe=sKe,dT=lKe,XH=function(){var n=/[^.]+$/.exec(dT&&dT.keys&&dT.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function cKe(n){return!!XH&&XH in n}var uKe=cKe,dKe=Function.prototype,pKe=dKe.toString;function fKe(n){if(n!=null){try{return pKe.call(n)}catch{}try{return n+""}catch{}}return""}var hKe=fKe,mKe=aKe,gKe=uKe,vKe=uT,yKe=hKe,bKe=/[\\^$.*+?()[\]{}|]/g,_Ke=/^\[object .+?Constructor\]$/,wKe=Function.prototype,xKe=Object.prototype,CKe=wKe.toString,kKe=xKe.hasOwnProperty,SKe=RegExp("^"+CKe.call(kKe).replace(bKe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function TKe(n){if(!vKe(n)||gKe(n))return!1;var t=mKe(n)?SKe:_Ke;return t.test(yKe(n))}var EKe=TKe;function $Ke(n,t){return n==null?void 0:n[t]}var AKe=$Ke,OKe=EKe,DKe=AKe;function MKe(n,t){var r=DKe(n,t);return OKe(r)?r:void 0}var pT=MKe,PKe=pT,IKe=PKe(Object,"create"),hb=IKe,QH=hb;function RKe(){this.__data__=QH?QH(null):{},this.size=0}var LKe=RKe;function NKe(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}var FKe=NKe,BKe=hb,jKe="__lodash_hash_undefined__",zKe=Object.prototype,VKe=zKe.hasOwnProperty;function UKe(n){var t=this.__data__;if(BKe){var r=t[n];return r===jKe?void 0:r}return VKe.call(t,n)?t[n]:void 0}var HKe=UKe,WKe=hb,GKe=Object.prototype,qKe=GKe.hasOwnProperty;function YKe(n){var t=this.__data__;return WKe?t[n]!==void 0:qKe.call(t,n)}var KKe=YKe,ZKe=hb,JKe="__lodash_hash_undefined__";function XKe(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=ZKe&&t===void 0?JKe:t,this}var QKe=XKe,eZe=LKe,tZe=FKe,nZe=HKe,rZe=KKe,iZe=QKe;function Ef(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}Ef.prototype.clear=eZe,Ef.prototype.delete=tZe,Ef.prototype.get=nZe,Ef.prototype.has=rZe,Ef.prototype.set=iZe;var aZe=Ef;function oZe(){this.__data__=[],this.size=0}var sZe=oZe;function lZe(n,t){return n===t||n!==n&&t!==t}var eW=lZe,cZe=eW;function uZe(n,t){for(var r=n.length;r--;)if(cZe(n[r][0],t))return r;return-1}var mb=uZe,dZe=mb,pZe=Array.prototype,fZe=pZe.splice;function hZe(n){var t=this.__data__,r=dZe(t,n);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():fZe.call(t,r,1),--this.size,!0}var mZe=hZe,gZe=mb;function vZe(n){var t=this.__data__,r=gZe(t,n);return r<0?void 0:t[r][1]}var yZe=vZe,bZe=mb;function _Ze(n){return bZe(this.__data__,n)>-1}var wZe=_Ze,xZe=mb;function CZe(n,t){var r=this.__data__,i=xZe(r,n);return i<0?(++this.size,r.push([n,t])):r[i][1]=t,this}var kZe=CZe,SZe=sZe,TZe=mZe,EZe=yZe,$Ze=wZe,AZe=kZe;function $f(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}$f.prototype.clear=SZe,$f.prototype.delete=TZe,$f.prototype.get=EZe,$f.prototype.has=$Ze,$f.prototype.set=AZe;var OZe=$f,DZe=pT,MZe=oT,PZe=DZe(MZe,"Map"),IZe=PZe,tW=aZe,RZe=OZe,LZe=IZe;function NZe(){this.size=0,this.__data__={hash:new tW,map:new(LZe||RZe),string:new tW}}var FZe=NZe;function BZe(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}var jZe=BZe,zZe=jZe;function VZe(n,t){var r=n.__data__;return zZe(t)?r[typeof t=="string"?"string":"hash"]:r.map}var gb=VZe,UZe=gb;function HZe(n){var t=UZe(this,n).delete(n);return this.size-=t?1:0,t}var WZe=HZe,GZe=gb;function qZe(n){return GZe(this,n).get(n)}var YZe=qZe,KZe=gb;function ZZe(n){return KZe(this,n).has(n)}var JZe=ZZe,XZe=gb;function QZe(n,t){var r=XZe(this,n),i=r.size;return r.set(n,t),this.size+=r.size==i?0:1,this}var eJe=QZe,tJe=FZe,nJe=WZe,rJe=YZe,iJe=JZe,aJe=eJe;function Af(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}Af.prototype.clear=tJe,Af.prototype.delete=nJe,Af.prototype.get=rJe,Af.prototype.has=iJe,Af.prototype.set=aJe;var oJe=Af,nW=oJe,sJe="Expected a function";function fT(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new TypeError(sJe);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],o=r.cache;if(o.has(a))return o.get(a);var s=n.apply(this,i);return r.cache=o.set(a,s)||o,s};return r.cache=new(fT.Cache||nW),r}fT.Cache=nW;var lJe=fT,cJe=lJe,uJe=500;function dJe(n){var t=cJe(n,function(i){return r.size===uJe&&r.clear(),i}),r=t.cache;return t}var pJe=dJe,fJe=pJe,hJe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mJe=/\\(\\)?/g,gJe=fJe(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(hJe,function(r,i,a,o){t.push(a?o.replace(mJe,"$1"):i||r)}),t}),vJe=gJe;function yJe(n,t){for(var r=-1,i=n==null?0:n.length,a=Array(i);++r<i;)a[r]=t(n[r],r,n);return a}var bJe=yJe,rW=fb,_Je=bJe,wJe=Bg,xJe=cT,CJe=1/0,iW=rW?rW.prototype:void 0,aW=iW?iW.toString:void 0;function oW(n){if(typeof n=="string")return n;if(wJe(n))return _Je(n,oW)+"";if(xJe(n))return aW?aW.call(n):"";var t=n+"";return t=="0"&&1/n==-CJe?"-0":t}var kJe=oW,SJe=kJe;function TJe(n){return n==null?"":SJe(n)}var EJe=TJe,$Je=Bg,AJe=ZYe,OJe=vJe,DJe=EJe;function MJe(n,t){return $Je(n)?n:AJe(n,t)?[n]:OJe(DJe(n))}var vb=MJe,PJe=cT,IJe=1/0;function RJe(n){if(typeof n=="string"||PJe(n))return n;var t=n+"";return t=="0"&&1/n==-IJe?"-0":t}var hT=RJe,LJe=vb,NJe=hT;function FJe(n,t){t=LJe(t,n);for(var r=0,i=t.length;n!=null&&r<i;)n=n[NJe(t[r++])];return r&&r==i?n:void 0}var sW=FJe,BJe=sW;function jJe(n,t,r){var i=n==null?void 0:BJe(n,t);return i===void 0?r:i}var zJe=jJe;const mT=tn(zJe);var VJe=pT,UJe=function(){try{var n=VJe(Object,"defineProperty");return n({},"",{}),n}catch{}}(),lW=UJe,cW=lW;function HJe(n,t,r){t=="__proto__"&&cW?cW(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}var WJe=HJe,GJe=WJe,qJe=eW,YJe=Object.prototype,KJe=YJe.hasOwnProperty;function ZJe(n,t,r){var i=n[t];(!(KJe.call(n,t)&&qJe(i,r))||r===void 0&&!(t in n))&&GJe(n,t,r)}var JJe=ZJe,XJe=9007199254740991,QJe=/^(?:0|[1-9]\d*)$/;function eXe(n,t){var r=typeof n;return t=t??XJe,!!t&&(r=="number"||r!="symbol"&&QJe.test(n))&&n>-1&&n%1==0&&n<t}var uW=eXe,tXe=JJe,nXe=vb,rXe=uW,dW=uT,iXe=hT;function aXe(n,t,r,i){if(!dW(n))return n;t=nXe(t,n);for(var a=-1,o=t.length,s=o-1,c=n;c!=null&&++a<o;){var l=iXe(t[a]),u=r;if(a!=s){var d=c[l];u=i?i(d,l,c):void 0,u===void 0&&(u=dW(d)?d:rXe(t[a+1])?[]:{})}tXe(c,l,u),c=c[l]}return n}var pW=aXe,oXe=pW;function sXe(n,t,r){return n==null?n:oXe(n,t,r)}var lXe=sXe;const cXe=tn(lXe);class uXe{static instance(){return new this}static new(...t){return this.instance().new(...t)}static get(t){return this.instance().get(t)}static on(...t){return this.instance().on(...t)}static find(t){return this.instance().find(t)}static remove(t){return this.instance().remove(t)}}class fW extends uXe{constructor(){if(super(),this.storeMap===void 0)throw new Error("You must declare store action/getter map")}_applyInstance(t,r,i=this.constructor){return new i(t,r)}_hasId(){return!!this.getPrimaryKey()}new(...t){if(this.storeMap.new===void 0)throw new Error("No provided NEW action");return hn.dispatch(this.storeMap.new,...t)}get(t){if(this.storeMap.get===void 0)throw new Error("No provided NEW action");if(this.storeMap.byId===void 0)throw new Error("No provided byId getter");return hn.dispatch(this.storeMap.get,{id:t}).then(()=>{const r=hn.getters[this.storeMap.byId](t);return this._applyInstance(r)})}_create(t){if(this.storeMap.create===void 0)throw new Error("No provided CREATE action");return hn.dispatch(this.storeMap.create,{body:t})}_update(...t){if(this.storeMap.update===void 0)throw new Error("No provided UPDATE action");return hn.dispatch(this.storeMap.update,...t)}remove(t){if(this.storeMap.remove===void 0)throw new Error("No provided REMOVE action");return hn.dispatch(this.storeMap.remove,{id:t})}on(t,r){return Pr.on(t,r)}}const hW=({sectionKey:n,tplGenerators:t,document:r=null,contentData:i=null,includeMockData:a=!1})=>{if(!n)throw new Error("Missing param sectionKey");if(!t)throw new Error("Missing param tplGenerators");if(!t[n])throw new Error("Missing valid sectionKey for tplGenerators");return t[n]({includeMockData:a,document:r,contentData:i})},dXe=({set:n,key:t,validationKey:r,type:i,anyOf:a,items:o,properties:s,additionalProperties:c,patternProperties:l,required:u,$ref:d,data:p=void 0,defaultValue:f=void 0,defaultValidation:h=void 0})=>{const m={string:"",boolean:!1,array:[],object:Object()};if(typeof i=="string"&&!Object.keys(m).includes(i))throw Error("Missing valid param type");let g={};a?g={anyOf:a}:i&&(g={type:i});const y=o?{items:o}:{};n({key:`data.${t}`,value:f||m[i]}),p&&Object.keys(p).forEach(b=>n({key:`${b}`,value:p[b]})),n({key:`template.validationSchema.properties.data.properties.${r||t}`,value:{...g,...f&&{default:h||f},...y,...typeof c=="boolean"&&{additionalProperties:c},...s&&{properties:s},...l&&{patternProperties:l},...u&&{required:u},...d&&{$ref:d}}})},mW=({set:n,validation:t,data:r={}})=>t.forEach(i=>dXe({...i,data:r,set:n})),pXe=(n,t,r,i=!1)=>{if(!t)throw new Error("Missing param set");if(!n)throw new Error("Missing param sectionKey");return{sectionKey:n,createNewSection:a=>hW({...a,tplGenerators:r,includeMockData:i}),addValidation:a=>mW({...a,set:t})}},gW=({set:n,sectionKey:t,tplGenerators:r,document:i=null,contentData:a=null,includeMockData:o=!1,emit:s=null})=>{if(!n)throw new Error("Missing param set");if(typeof n!="function")throw new Error("Set needs to be a function");if(!r)throw new Error("Missing param tplGenerators");const{readView:c,validation:l,data:u,onAddFnName:d="onAdd"}=hW({sectionKey:t,tplGenerators:r,document:i,contentData:a,includeMockData:o});mW({set:n,validation:l,data:u}),c.forEach(f=>n({key:"template.views.read.nodes",value:f}));const[{nodeId:p}]=c;return typeof s=="function"&&s("block-added",{nodeId:p,onAddFnName:d}),p},fXe=n=>{const t=Array(2).fill().map(()=>Ut());return[{itemId:"sectionPdf",itemType:"section",value:null,parentId:"0",nodeId:t[0]},{itemId:"pdf",itemType:"pdf",value:{file:`data.pdf-file-${n}`},parentId:t[0],nodeId:t[1]}]},hXe=n=>[{key:`pdf-file-${n}`,anyOf:[{$ref:`${Xe.api.baseUrl}/schemas/file/1.json`},{type:"null"}],default:null}],vW=({contentData:n=null}={})=>{const t=Ut();let r=null;return typeof n=="function"&&(r=n(t)),{readView:fXe(t),validation:hXe(t),...r&&{data:r}}},mXe=()=>[{itemId:"answer",itemType:"answer",value:{defaultAnswerMethod:"data.defaultAnswerMethod"},parentId:"0",nodeId:Ut()}],gXe=ai.checkFeature("bankId")?"bankId":"signature",vXe=()=>[{key:"defaultAnswerMethod",$ref:`${Xe.api.baseUrl}/schemas/answer/1.json`,defaultValue:{accept:gXe,deny:"button"}}],yW=({contentData:n=null}={})=>{let t=null;return typeof n=="function"&&(t=n()),{readView:mXe(),validation:vXe(),...t&&{data:t}}},yXe={pdf:vW,answer:yW},bXe=n=>/^(http|https)/.test(n),bW=(n,t=[])=>{const r=[];return t.forEach(i=>{i.nodeId===n&&r.push(i),i.parentId===n&&r.push(...bW(i.nodeId,t))}),r},_W=(n,t)=>{const{root:r,prop:i}=rl(n,t);r&&i in r&&delete r[i]};class _Xe{constructor({setter:t}){if(!t)throw new Error("Missing param setter");this._addBlock=r=>gW({...r,set:t,tplGenerators:yXe})}async pdf(t){let r=t;if(typeof t=="string"&&bXe(t)){const{data:o}=await ni.get(t,{responseType:"blob"});r=new File([o],"copied-file.pdf",{type:o.type})}if(!(r instanceof File))throw new Error("No file instance found");const i=new FormData;i.append("file",r,r.name||"filename");const{data:a}=await Yt("/file",i,{timeout:6e4});return this._addBlock({sectionKey:"pdf",contentData:o=>({[`data.pdf-file-${o}`]:{fileId:a.id,name:a.displayName,url:a.url,mime:a.mime}})})}answer(){return this._addBlock({sectionKey:"answer",contentData:()=>({"data.defaultAnswerMethod":{accept:"bankId",deny:"button"}})})}removeSection(t){const r=o=>{o&&Object.values(o).forEach(s=>{_W(this._documentJSON,s);const l=`template.validationSchema.properties.${s.replace(/^data.(?!properties)/g,"data.properties.")}`;mT(this._documentJSON,l)!==void 0&&_W(this._documentJSON,l)})},{nodes:i}=this._documentJSON.template.views.read;bW(t,i).forEach(o=>{r(o.value);const s=i.findIndex(c=>c.nodeId===o.nodeId);i.splice(s,1)})}}const{LOAD_DOCUMENT2_FORM:wXe,SAVE_DYNDOC_FORM:wW,CLEAR_DYNDOC_FORM:xXe,SET_FORM_VALUE:xW,REMOVE_FORM_VALUE:CXe,LOAD_DOCUMENT2:kXe,LOAD_DOCUMENTS2:SXe,UPDATE_DOCUMENT2:TXe,DO_CREATE_DOCUMENT2:EXe,DO_SEND_DOCUMENT2:$Xe,DELETE_DOCUMENT2:AXe}=He,gT=n=>`document2.${n}`;let OXe=class extends fW{constructor(r,{isForm:i}={}){super(r);$n(this,"ui",{form:{open:r=>{if(!this._isForm)throw new Error("Doc needs to be initiated in the form: editableDoc = doc.toForm()");this._addView({mode:"modal",view:"form",viewOpts:{closeFunc:()=>this._removeView({mode:"modal",view:"form"}),...r}})},close:()=>{this._removeView({mode:"modal",view:"form"})}},document:{open:r=>{this._addView({mode:"modal",view:"document",viewOpts:r})},close:()=>{this._removeView({mode:"modal",view:"document"})},mount:({targetElement:r})=>{this._addView({mode:"mount",view:"document",viewOpts:{targetElement:r}})},unmount:()=>{this._removeView({mode:"mount",view:"document"})}},send:{open:r=>{if(!this._isForm)throw new Error("Doc needs to be initiated in the form: editableDoc = doc.toForm()");this._addView({mode:"drawer",view:"send",viewOpts:{closeFunc:()=>this._removeView({mode:"drawer",view:"send"}),...r}})}},timeline:{open:r=>{this._addView({mode:"modal",view:"timeline",viewOpts:{...r}})},close:()=>{this._removeView({mode:"modal",view:"timeline"})},mount:r=>{if(!r.targetElement)throw new Error("[ui.timeline.mount] No targetElement specified in options");this._addView({mode:"mount",view:"timeline",viewOpts:{...r}})},unmount:()=>{this._removeView({mode:"mount",view:"timeline"})}},print:{open:r=>{this._addView({mode:"modal",view:"print",viewOpts:r})}},receipt:{open:()=>{this._addView({mode:"modal",view:"receipt"})},close:()=>{this._removeView({mode:"modal",view:"receipt"})}},clientLinks:{open:()=>{this._addView({mode:"modal",view:"clientLinks",viewOpts:{closeFunc:()=>this._removeView({mode:"modal",view:"clientLinks"})}})},close:()=>{this._removeView({mode:"modal",view:"clientLinks"})}},sendReminder:{open:()=>{this._addView({mode:"modal",view:"sendReminder"})},close:()=>{this._removeView({mode:"modal",view:"sendReminder"})}},on:(r,i)=>{const a=mn.on(r,i);return this._addUnregisterListener(`ui:${r}`,a),a}});r&&(this._isForm=i||!1,this._document=r,this._unregisterListeners={},this._builder=new _Xe({setter:({key:a,value:o})=>hn.dispatch(xW,{key:gT(a),value:o})})),this._beforeSave=null,this._beforeSend=null,this._beforeUpdateForm=null}get storeMap(){return{new:wXe,save:wW,get:kXe,find:SXe,update:TXe,create:EXe,remove:AXe,byId:"documents2/byId"}}get isUserLoaded(){return hn.getters["application/isUserLoaded"]}get hasToken(){return!!wt.getItem("token")}checkAuth(){if(!this.hasToken)throw new Error("No authorization token set");if(!this.isUserLoaded)throw new Error("User not loaded");return!0}getProperty(r){var a;if(!this._document)return;let i=(a=this._document)==null?void 0:a._doc;return this._isForm&&(i=hn.getters["forms/document"]),r===""?i:mT(i,r)}setProperty(r,i,a={runHook:!0}){if(!this._document)return;if(!this._isForm)throw new Error("Doc needs to be initiated in the form: editableDoc = doc.toForm()");let o=i;if(a.runHook){const s=this.beforeUpdateForm(r,i);s!==void 0&&(o=s)}return r===""?hn.commit("forms/SET_FORM",{key:"document2",formData:i}):hn.dispatch(xW,{key:gT(r),value:o}).then(()=>this._emitFormUpdate({key:r,value:o}))}removeProperty(r){const i=this.beforeUpdateForm(r);if(i!==void 0){this.setProperty(r,i,{runHook:!1});return}hn.dispatch(CXe,gT(r)).then(()=>this._emitFormUpdate({key:r}))}_emitFormUpdate({key:r,value:i}){Pr.trigger("document:formUpdate",{id:this.getProperty("id"),__tempId:this.getProperty("__tempId"),key:r,value:i})}beforeUpdateForm(r,i){if(typeof this._beforeUpdateForm=="function"){const a=this._beforeUpdateForm({key:r,value:i,oldValue:this.getProperty(r)});return a!==void 0?a:i}}addClient(r){const i=this.getProperty("clients")||[];this.setProperty("clients",[...i,{...Sg(),...r}])}removeClient({email:r,cellphone:i}={}){const a=this.getProperty("clients")||[];this.setProperty("clients",a.filter(o=>!(o.email===r||o.cellphone===i)))}addReference({service:r,type:i,typeId:a}={}){if(!r)throw new Error("Missing or empty param service");if(!i)throw new Error("Missing or empty param type");if(!a)throw new Error("Missing or empty param typeId");if(!this._document)throw new Error("You must provide a document instance");const o=this.getProperty("externalReferences")||[];this.setProperty("externalReferences",[...o,{service:r,type:i,typeId:a}])}removeReference({service:r,type:i,typeId:a}={}){if(!r)throw new Error("Missing or empty param service");if(!i)throw new Error("Missing or empty param type");if(!a)throw new Error("Missing or empty param typeId");if(!this._document)throw new Error("You must provide a document instance");const o=this.getProperty("externalReferences")||[];this.setProperty("externalReferences",o.filter(s=>!(s.service===r&&s.type===i&&s.typeId===a)))}new(r){var a;const i=!r||((a=r==null?void 0:r._formData)==null?void 0:a.__isNew);return this.checkAuth(),super.new({templateId:"empty",_formData:{subscriberCompanyUserIds:[],...i&&{__isNew:i}},...r,...!r&&{__isNew:!0}}).then(()=>{const o=hn.getters["forms/document"],s=new fc({data:o,can:hn.getters["application/can"],getters:hn.getters});return this._applyInstance(s,{isForm:!0})})}get(r){return this.checkAuth(),super.get(r)}find(r={}){return this.checkAuth(),Ki.getAll({isHidden:!1,returnType:"template",...r}).then(i=>{var a;return(((a=i==null?void 0:i.data)==null?void 0:a.items)||[]).map(o=>hn.getters["documents2/byData"]({data:o})).map(o=>this._applyInstance(o))})}async save(){if(this.checkAuth(),!this._document)throw new Error("You must provide a document instance");if(this._beforeSave&&await this._beforeSave(),hn.getters["forms/document"])return hn.dispatch(wW).then(i=>hn.dispatch(xXe).then(()=>i));const r=this._document._doc;return r._id?this._update({id:r._id,body:r}):this._create(r)}remove(){if(this.checkAuth(),!this._document)throw new Error("You must provide a document instance");if(!this._document.id)throw new Error("You must provide an existing document");return super.remove(this._document.id)}on(r,i){if(!["create","update","save","remove","send","beforeSave","beforeSend","beforeUpdateForm","watch","formUpdate"].includes(r))throw new Error(`Event ${r} not supported`);if(r==="beforeSave")return this._beforeSave=i,()=>{this._beforeSave=null};if(r==="beforeSend")return this._beforeSend=i,()=>{this._beforeSend=null};if(r==="beforeUpdateForm")return this._beforeUpdateForm=i,()=>{this._beforeUpdateForm=null};const a=super.on(`document:${r}`,(o,...s)=>{const c=this.getProperty("id")===o.id,l=o.__tempId?this.getProperty("__tempId")===o.__tempId:!1;(c||l)&&i(o,...s)});return this._addUnregisterListener(r,a),a}_addUnregisterListener(r,i){this._unregisterListeners[r]=this._unregisterListeners[r]||[],this._unregisterListeners[r].push(i)}removeAllListeners(){Object.keys(this._unregisterListeners||{}).forEach(r=>{this._unregisterListeners[r].forEach(i=>i()),delete this._unregisterListeners[r]}),this._beforeSave=null,this._beforeSend=null,this._beforeUpdateForm=null}useTemplate(r){return this.new({templateId:r})}async send(){if(this.checkAuth(),!this._document)throw new Error("You must provide a document instance");if(!this._document._id)throw new Error("You must provide an existing document");this._beforeSend&&await this._beforeSend();const r=this._document._id;return await hn.dispatch($Xe,{id:r}),r}addBlock(){if(!this._builder)throw new Error("You must provide a document instance");return this._builder}removeBlock(r){if(!this._builder)throw new Error("You must provide a document instance");if(r===void 0)throw new Error("Missing required param nodeId");return this._builder.removeSection(r)}toForm(){var i;const r=(i=this._document)==null?void 0:i._doc;if(!r)throw new Error("Missing provided document data");return this.new({formData:r})}getAllNodesWithType(r){var i;return((i=this._document)==null?void 0:i.getAllNodesWithType(r))||[]}_addView({mode:r,view:i,viewOpts:a}){var s;const o={key:this._document.id,viewOpts:{document:this._document,beforeSend:this._beforeSend,beforeSave:this._beforeSave,setFormValue:({key:c,value:l})=>this.setProperty(c,l),removeFormValue:this.removeProperty.bind(this),...a}};r==="mount"&&(o.viewOpts={key:this._document.id,...o.viewOpts,props:{...(s=o==null?void 0:o.viewOpts)==null?void 0:s.props,document:this._document}}),mn.addView({mode:r,view:i,...o})}_removeView({mode:r,view:i,viewOpts:a}){mn.removeView({key:this._document.id,mode:r,view:i,viewOpts:a})}};const DXe="publicDocuments",{DO_LOAD_PUBLIC_DOCUMENT:vT,LOAD_PUBLIC_DOCUMENT:yT,ANSWER_PUBLIC_DOCUMENT:CW,ANSWER_CURRENT_PUBLIC_DOCUMENT:MXe,PUT_PUBLIC_DOCUMENT:kW,PUT_CURRENT_PUBLIC_DOCUMENT:SW,DO_SET_CURRENT_DOCUMENT:bT,SET_CURRENT_PUBLIC_DOCUMENT_VALUE:PXe,RELOAD_CURRENT_DOCUMENT:IXe,LOAD_PUBLIC_COMPANY:TW,LOAD_CLIENT_DOCUMENTS:RXe,LOAD_CLIENT_INVOICES:LXe,REQUEST_MAGIC_LINK:NXe}=Cj,{SET_PUBLIC_DOCUMENTS_FETCHING:ad,SET_PUBLIC_DOCUMENTS_POSTING:od,SET_PUBLIC_DOCUMENTS:_T,SET_CURRENT_DOCUMENT:FXe,SET_CURRENT_DOCUMENT_VALUE:EW,SET_VIEWER:$W,SET_PUBLIC_INVOICES:AW,SET_PUBLIC_COMPANIES:OW}=kj,DW=(n,t)=>{const{companySettings:r={},company:i={}}=t.companyById(Ce(n,"company.publicId"))||{},{senderString:a,receiverString:o,offerBrandingBackgroundUrl:s,documentThemeBackgroundFilter:c,documentShowPriceSummary:l,documentThemePriceBackground:u,documentThemePrimaryColor:d,presentationFontFamily:p,showClingLogo:f}=r;return[n,{props:{defaultSenderString:a,defaultReceiverString:o},settingsTheme:mf({background:s,backgroundFilter:c,showClingLogo:f,showPriceSummary:l,priceSummaryBackground:u,headingColor:d,fontFamily:p})}]},BXe={namespaced:!0,state:{currentDocument:{},viewer:{},isFetching:!1,isPosting:!1,changes:{},documentIds:[],invoiceIds:[],companyIds:[],documents:{},invoices:{},companies:{},viewerIdToId:{}},getters:{documentById:(n,t)=>r=>n.documents[r]?new f6(...DW(n.documents[r],t)):null,documentByViewerId:(n,t)=>r=>n.viewerIdToId[r]?t.documentById(n.viewerIdToId[r]):null,invoiceById:n=>t=>n.invoices[t]?n.invoices[t]:null,companyById:n=>t=>n.companies[t]||null,currentDocument:(n,t)=>Object.keys(n.currentDocument).length?new f6(...DW(n.currentDocument,t)):null,changes:n=>n.changes||{},currentDocumentId:n=>Ce(n,"currentDocument.viewerId",null),currentSenderCompany:n=>{var t,r;return n.companies[(r=(t=n.currentDocument)==null?void 0:t.company)==null?void 0:r.publicId]},viewer:n=>n.viewer||null,isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,documentIds:n=>n.documentIds||[],invoiceIds:n=>n.invoiceIds||[],companyIds:n=>n.companyIds||[]},actions:{async[IXe]({dispatch:n,getters:t}){try{if(!t.currentDocumentId)throw Error("No current document have been set yet");await n(yT,{id:t.currentDocumentId,params:{preview:!0}})}catch(r){throw r}},async[bT]({state:n,commit:t,dispatch:r},{id:i,params:a={},showLast4ssn:o=!0}){try{await r(vT,{id:i,params:a,showLast4ssn:o});const s=n.documents[n.viewerIdToId[i]],{language:c}=s||{};if(c&&Be.i18next.changeLanguage(c),t("SET_CURRENT_DOCUMENT",{data:s}),Ce(n,"viewer.publicDocumentId",null)!==i){const l=Ce(s,"clients",[]).find(u=>u.publicDocumentId===i);l&&t($W,l)}}catch(s){throw s}},async[yT]({dispatch:n},{id:t,params:r={}}){try{return await n(vT,{id:t,params:r})}catch(i){return this.handleError(i,{object:"publicDocument",fallbackCode:"publicDocument.getOne",action:`${DXe}/${yT}`,actionPayload:arguments[1]})}},async[vT]({state:n,commit:t,dispatch:r},{id:i,params:a={},showLast4ssn:o=!0}){try{t(ad,!0);const{data:s}=await Hp.get(i,a);o||(s.clients&&Array.isArray(s.clients)&&s.clients.filter(l=>l.socialNo).forEach(l=>{l.socialNo=`${l.socialNo.slice(0,-4)}****`}),s.senderClient&&s.senderClient.socialNo&&(s.senderClient.socialNo=`${s.senderClient.socialNo.slice(0,-4)}****`)),t(_T,{data:[{...s,viewerId:i}]});const c=Ce(n.documents[s.id],"company.publicId");return c&&await r(TW,{id:c}),s.id}catch(s){throw s}finally{t(ad,!1)}},async[CW]({commit:n,dispatch:t},{id:r,body:i,checksum:a}){try{n(od,!0);const o={docChecksum:a},{data:s}=await Hp.answer(r,i,{},o);return await t(bT,{id:r,params:{preview:!0}}),s}catch(o){throw o}finally{n(od,!1)}},async[PXe]({commit:n},{key:t,value:r}){n(EW,{key:t,value:r})},async[MXe]({dispatch:n,getters:t},{body:r}){if(!t.currentDocumentId)throw Error("No current document id have been set yet");if(!t.currentDocument)throw Error("No current document have been set yet");const{currentDocumentId:i,changes:a,currentDocument:o}=t;Object.keys(a).length&&await n(SW,{body:a});const{checksum:s}=(o==null?void 0:o._doc)||{};return n(CW,{id:i,body:r,checksum:s})},async[kW]({commit:n},{id:t,body:r,checksum:i}){try{n(od,!0);const a={docChecksum:i};await Hp.put(t,r,a)}catch(a){throw a}finally{n(od,!1)}},async[SW]({dispatch:n,getters:t},{body:r,includeChanges:i=!1}){if(!t.currentDocumentId)throw Error("No current document have been set yet");const{currentDocument:a,changes:o}=t,{checksum:s}=(a==null?void 0:a._doc)||{};i&&Object.assign(r,o),await n(kW,{id:t.currentDocumentId,body:r,checksum:s}),await n(bT,{id:t.currentDocumentId,params:{preview:!0}})},async[TW]({commit:n,getters:t},{id:r}){try{if(t.companyById(r))return;const{data:i}=await dy.get(r),a={...i,publicId:r};n(OW,{data:a})}catch(i){throw i}},async[RXe]({commit:n},t={}){try{n(ad,!0);const{data:r}=await tC.getDocuments(t);let{items:i=[]}=r||{};i=i.map(a=>({...a,...a._id&&{id:a._id}})),n(_T,{data:[...i]})}catch(r){this.handleError(r,{showMessage:!1}),this.$router.replace({name:"clientLogin"})}finally{n(ad,!1)}},async[LXe]({commit:n}){try{n(ad,!0);const{data:t=[]}=await tC.getInvoices();n(AW,{data:t})}catch(t){this.handleError(t,{showMessage:!1}),this.$router.replace({name:"clientLogin"})}finally{n(ad,!1)}},async[NXe]({commit:n},{email:t,language:r}){try{if(!t)throw Error("Missing param email!");n(od,!0),await tC.requestMagicLink({email:t,language:r,brand:Xe.brand})}catch(i){this.handleError(i,{showMessage:!1})}finally{n(od,!1)}}},mutations:{[EW](n,{key:t,value:r}){Ur(n,`currentDocument.${t}`,r),n.changes[t]=r},[FXe](n,{data:t={}}){if(typeof t!="object")throw Error("Data must be a document or an array of documents!");n.currentDocument=t,n.changes={}},[OW](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a company or an array of companies!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r,{keyId:"publicId"});ba(n.companies,a),n.companyIds=qi([...i,...n.companyIds])},[_T](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a document or an array of documents!");const r=Array.isArray(t)?t:[t],i=[],a={};r.forEach(s=>{a[s.id]=s,n.documentIds.includes(s.id)||i.push(s.id)}),ba(n.documents,a),n.documentIds=qi([...i,...n.documentIds]);const o=n.documentIds.reduce((s,c)=>!a[c]||!a[c].viewerId?s:{...s,[a[c].viewerId]:c},{});n.viewerIdToId={...n.viewerIdToId,...o}},[AW](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be an invoice or an array of invoices!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.invoices,a),n.invoiceIds=qi([...i,...n.invoiceIds])},[$W](n,t){n.viewer=t},[ad](n,t){n.isFetching=t},[od](n,t){n.isPosting=t}}},{SET_CURRENT_PUBLIC_DOCUMENT_VALUE:MW,DO_SET_CURRENT_DOCUMENT:jXe}=He;let zXe=class extends fW{constructor(r){super(r);$n(this,"ui",{document:{open:r=>{mn.addView({key:this._document.id,mode:"modal",viewOpts:{document:this._document,key:this._document.id,setFormValue:({key:i,value:a})=>hn.dispatch(MW,{key:i,value:a}),...r}})},close:()=>{mn.removeView({key:this._document.id,mode:"modal"})},mount:({targetElement:r})=>{mn.addView({key:this._document.id,mode:"mount",view:"documentClient",viewOpts:{targetElement:r,props:{document:this._document,setFormValue:({key:i,value:a})=>hn.dispatch(MW,{key:i,value:a})}}})},unmount:()=>{mn.removeView({key:this._document.id,mode:"mount"})}},details:{open:r=>{const i={key:this._document.id,mode:"drawer",view:"docDetails"};mn.addView({...i,viewOpts:{document:this._document,closeFunc:()=>{mn.removeView(i)},...r}})},close:()=>{mn.removeView({key:this._document.id,mode:"drawer"})}},print:{open:r=>{mn.addView({key:this._document.id,mode:"modal",view:"print",viewOpts:{...r,document:this._document}})}},answer:{open:r=>{if(!this._document.answerActions.canAnswer)throw new Error("[DocAnswer] User is not allowed to answer this document. Check if already answered.");const i={key:this._document.id,mode:"modal",view:"docAnswer"};mn.addView({...i,viewOpts:{document:this._document,closeFunc:()=>{mn.removeView(i)},...r}})}},on:mn.on});r&&(this._document=r,this._unregisterListeners={}),hn.state.publicDocuments||hn.registerModule("publicDocuments",BXe)}get storeMap(){return{get:jXe,byId:"publicDocuments/documentByViewerId"}}getProperty(r){if(this._document)return mT(this._document._doc,r)}setProperty(r,i){if(this._document)return cXe(this._document._doc,r,i)}on(r,i){if(!["answer"].includes(r))throw new Error(`Event ${r} not supported`);const a=super.on(`document:${r}`,(o,...s)=>{this.getProperty("id")===o.id&&i(o,...s)});return this._addUnregisterListener(r,a),a}_addUnregisterListener(r,i){this._unregisterListeners[r]=this._unregisterListeners[r]||[],this._unregisterListeners[r].push(i)}removeAllListeners(){Object.keys(this._unregisterListeners||{}).forEach(r=>{this._unregisterListeners[r].forEach(i=>i()),delete this._unregisterListeners[r]})}};class VXe{constructor(){$n(this,"ui",{setup:{open:t=>{const r=t==null?void 0:t.partnerName;if(!r)throw new Error("Missing or empty param partnerName");const i={key:`setup-${r}`,mode:"modal",view:"setup"};mn.addView({...i,viewOpts:{partnerName:r,closeFunc:()=>mn.removeView(i)},...t})},close:t=>{const r=t==null?void 0:t.partnerName;if(!r)throw new Error("Missing or empty param partnerName");mn.removeView({key:`setup-${r}`,mode:"modal"})}},on:mn.on})}on(t,r){return Pr.on(`account:${t}`,r)}}const UXe={initialized:!1,app:null,_rootId:null,init(n={}){var a,o,s,c,l;if(this.initialized)return;this._rootId=`${n.LIB_NAME}-shadow`;const t=document.createElement("div"),r=document.createElement("div"),i=document.createElement("div");t.setAttribute("id",this._rootId),t.style.zIndex=((o=(a=n.ui)==null?void 0:a.vars)==null?void 0:o["--app-z-index"])||1001,t.style.position="fixed",t.style.top=0,t.style.left=0,r.setAttribute("id",`${this._rootId}-child`),r.classList.add(`${this._rootId}-child`),(s=n.ui)!=null&&s.vars&&(JM(n.ui.vars,r),mn.styleVars=n.ui.vars),n.i18n&&XM(n.i18n),(c=n.ui)!=null&&c.language&&Be.i18next.changeLanguage(n.ui.language,!0),(l=n.ui)!=null&&l.locale&&Be.l10n.changeLocale(n.ui.locale,!0),t.appendChild(r),NPe(r);{const u=document.getElementById("CLING_WIDGET_STYLE");u.disabled=!0;const d=u.cloneNode(!0);d.disabled=!1,r.appendChild(d),r.appendChild(i),t.attachShadow({mode:"open"}).appendChild(r),document.body.appendChild(t)}wt.setPrefix("cling-"),n.rootNode=r,this.app=yYe(i,n),this.initialized=!0},get store(){var n;return(n=this.app)==null?void 0:n.$store},get router(){var n;return(n=this.app)==null?void 0:n.$router},async auth({method:n="standard",email:t,password:r,authToken:i}){var s,c;let o;return n==="standard"?o=await((s=this.store)==null?void 0:s.dispatch("application/LOGIN_USER",{email:t,password:r,doRedirect:!1})):n==="authToken"&&(o=await((c=this.store)==null?void 0:c.dispatch("application/LOGIN_AUTH_TOKEN",{authToken:i,doRedirect:!1}))),o},on(n,t){const r=["user:unauthorized","ui:open","ui:close"];if(!r.includes(n))throw new Error(`Event ${n} not supported, valid events: ${r.join(",")}`);if(typeof t!="function")throw new Error("Callback needs to be a function");Pr.on(n,t)},destroy(){var n,t;this.app.$destroy(),(t=(n=document.getElementById(this._rootId))==null?void 0:n.remove)==null||t.call(n)},ui:mn,...{account:VXe,document:OXe,documentClient:zXe}},HXe=Object.freeze(Object.defineProperty({__proto__:null,default:UXe},Symbol.toStringTag,{value:"Module"}));var WXe=sW,GXe=pW,qXe=vb;function YXe(n,t,r){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=WXe(n,s);r(c,s)&&GXe(o,qXe(s,n),c)}return o}var KXe=YXe;function ZXe(n,t){return n!=null&&t in Object(n)}var JXe=ZXe,XXe=sT,QXe=lT,eQe="[object Arguments]";function tQe(n){return QXe(n)&&XXe(n)==eQe}var nQe=tQe,PW=nQe,rQe=lT,IW=Object.prototype,iQe=IW.hasOwnProperty,aQe=IW.propertyIsEnumerable,oQe=PW(function(){return arguments}())?PW:function(n){return rQe(n)&&iQe.call(n,"callee")&&!aQe.call(n,"callee")},RW=oQe,sQe=9007199254740991;function lQe(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=sQe}var cQe=lQe,uQe=vb,dQe=RW,pQe=Bg,fQe=uW,hQe=cQe,mQe=hT;function gQe(n,t,r){t=uQe(t,n);for(var i=-1,a=t.length,o=!1;++i<a;){var s=mQe(t[i]);if(!(o=n!=null&&r(n,s)))break;n=n[s]}return o||++i!=a?o:(a=n==null?0:n.length,!!a&&hQe(a)&&fQe(s,a)&&(pQe(n)||dQe(n)))}var vQe=gQe,yQe=JXe,bQe=vQe;function _Qe(n,t){return n!=null&&bQe(n,t,yQe)}var wQe=_Qe,xQe=KXe,CQe=wQe;function kQe(n,t){return xQe(n,t,function(r,i){return CQe(n,i)})}var SQe=kQe;function TQe(n,t){for(var r=-1,i=t.length,a=n.length;++r<i;)n[a+r]=t[r];return n}var EQe=TQe,LW=fb,$Qe=RW,AQe=Bg,NW=LW?LW.isConcatSpreadable:void 0;function OQe(n){return AQe(n)||$Qe(n)||!!(NW&&n&&n[NW])}var DQe=OQe,MQe=EQe,PQe=DQe;function FW(n,t,r,i,a){var o=-1,s=n.length;for(r||(r=PQe),a||(a=[]);++o<s;){var c=n[o];t>0&&r(c)?t>1?FW(c,t-1,r,i,a):MQe(a,c):i||(a[a.length]=c)}return a}var IQe=FW,RQe=IQe;function LQe(n){var t=n==null?0:n.length;return t?RQe(n,1):[]}var NQe=LQe;function FQe(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}var BQe=FQe,jQe=BQe,BW=Math.max;function zQe(n,t,r){return t=BW(t===void 0?n.length-1:t,0),function(){for(var i=arguments,a=-1,o=BW(i.length-t,0),s=Array(o);++a<o;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(s),jQe(n,this,c)}}var VQe=zQe;function UQe(n){return function(){return n}}var HQe=UQe;function WQe(n){return n}var GQe=WQe,qQe=HQe,jW=lW,YQe=GQe,KQe=jW?function(n,t){return jW(n,"toString",{configurable:!0,enumerable:!1,value:qQe(t),writable:!0})}:YQe,ZQe=KQe,JQe=800,XQe=16,QQe=Date.now;function eet(n){var t=0,r=0;return function(){var i=QQe(),a=XQe-(i-r);if(r=i,a>0){if(++t>=JQe)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}var tet=eet,net=ZQe,ret=tet,iet=ret(net),aet=iet,oet=NQe,set=VQe,cet=aet;function uet(n){return cet(set(n,void 0,oet),n+"")}var det=uet,pet=SQe,fet=det,het=fet(function(n,t){return n==null?{}:pet(n,t)}),met=het;const get=tn(met);/*!
|
|
619
|
+
{{docLink}}`}}}}},z2={isEditable:!1,nodes:[{itemId:"emailTemplate",itemType:"emailTemplate",value:{subject:"data.emailTemplate.first.subject",text:"data.emailTemplate.first.text",title:"data.emailTemplate.first.title",content:"data.emailTemplate.first.content"}}]},V2={isEditable:!1,nodes:[{itemId:"smsText",itemType:"smsText",value:{text:"data.smsTemplate.first.text"}}]},U2=In[Xe.brand].defaultRegion==="SE",i6={type:"object",default:{useVat:U2,vatType:"vat",rounding:{enabled:U2,interval:U2?100:1,show:U2}}},a6={$ref:`${Xe.api.baseUrl}/schemas/css/1.json`,default:{'[data-typography="title"]':{fontFamily:"Inter",fontSize:"56px",fontWeight:800},h1:{fontFamily:"Inter",fontSize:"48px",fontWeight:800},h2:{fontFamily:"Inter",fontSize:"36px",fontWeight:700},h3:{fontFamily:"Inter",fontSize:"21px",fontWeight:600},blockquote:{fontFamily:"Inter",fontSize:"18px",borderLeftStyle:"solid",borderLeftWidth:"3px",borderColor:"currentColor"},p:{fontFamily:"Inter",fontSize:"16px"}}},o6={type:"object",default:{}},s6={anyOf:[{type:"string"},{type:"null"}],default:""},l6={anyOf:[{type:"string"},{type:"null"}]},c6={anyOf:[{type:"string"},{type:"null"}]},u6={$ref:`${Xe.api.baseUrl}/schemas/price/1.json`},d6={type:"string",format:"date-time"},p6={type:"object"},DV={reminders:Mg,smsTemplate:n6,emailTemplate:r6,emailView:z2,smsView:V2,formSettings:i6,sender:o6,name:s6,senderString:l6,receiverString:c6,prices:u6,css:a6,expiresAt:d6,fields:p6};let vze=class{constructor({data:t,clients:r=[],useVat:i,rounding:a,currency:o}){if(!t)throw new Error("Missing param data");this._data=t,this._clients=r,this._useVat=i,this._rounding=a,this._currency=o}get data(){return this._data}get useVat(){return this._useVat}get rounding(){return this._rounding}get title(){return this._data.title}get type(){return this._data.type}get selectedPackages(){return this.packages.filter(t=>t.isSelected)||[]}get selectedArticles(){return this.selectedPackages.reduce((t,{articles:r})=>[...t,...r],[])}get priceType(){return Ce(this,"selectedPackages[0].prices.type","fixed")}get currency(){return Ce(this,"selectedPackages[0].prices.currency")||this._currency}get maxTotal(){return this.priceType==="openAccMaxPrice"?this.selectedPackages.reduce((t,{prices:r})=>t+r.maxTotal,0):null}get houseWorkManualAmount(){return this.selectedPackages.some(({prices:t})=>Ce(t,"region.houseWorkManualAmount",null)!==null)?this.selectedPackages.reduce((t,{prices:r})=>{const{houseWorkManualAmount:i}=r.region||{};return i?t+i:t},0):null}get prices(){return $2({type:this.priceType,currency:this.currency,articles:this.selectedArticles,clients:this._clients,maxTotal:this.maxTotal,region:{country:"sweden",houseWorkManualAmount:this.houseWorkManualAmount},useVat:this._useVat,rounding:this._rounding})}get packages(){return this._data.packages.map(t=>({...t,type:this.type,prices:$2({type:Ce(t,"data.prices.type","fixed"),currency:Ce(t,"data.prices.currency")||this.currency,articles:t.articles,clients:t.clients,maxTotal:Ce(t,"data.prices.maxTotal",null),region:{country:"sweden",houseWorkManualAmount:Ce(t,"data.prices.region.houseWorkManualAmount",null)},useVat:this._useVat,rounding:this._rounding})}))||[]}get articles(){return this.packages.reduce((t,{articles:r})=>[...t,...r],[])}getPackageById(t){return this.packages.find(({packageId:r})=>r===t)}};class yze{constructor({data:t={},articles:r=[],clients:i=[],useVat:a,rounding:o,currency:s}){if(!t)throw new Error("Missing param data");this._data=Object.keys(t||{}).reduce((c,l)=>({...c,[l]:new vze({data:{...t[l],packages:t[l].packages.map(u=>({...u,articles:r.filter(({packageId:d})=>d===u.packageId),clients:i}))},clients:i,useVat:a,rounding:o,currency:s})}),{})}get packages(){return Object.keys(this._data).reduce((t,r)=>[...t,...this._data[r].packages],[])}get selectedPackages(){return this.packages.filter(({isSelected:t})=>t)}get selectedArticles(){return Object.keys(this._data).reduce((t,r)=>[...t,...this._data[r].selectedArticles],[])}get selectedIds(){return Object.keys(this._data).reduce((t,r)=>[...t,...this._data[r].packages.filter(({isSelected:i})=>i).map(({packageId:i})=>i)],[])}get groups(){return Object.keys(this._data).map(t=>this._data[t])}get groupsPrices(){return(this.groups||[]).map(({prices:t})=>t)}getPackageGroupById(t){const r=Object.keys(this._data).find(i=>this._data[i].packages.find(({packageId:a})=>a===t));return this._data[r]}getPackageGroupUniqId(t){return this._data[t]||{}}getPackageById(t){const r=this.getPackageGroupById(t);return r?r.getPackageById(t):{}}}let f6=class{constructor(t,{computedPricing:r=!0,isPreview:i=!1,readPrices:a=!0,props:o={},settingsTheme:s={}}={}){if(!t)throw new Error("Missing param data");this._doc=t,this._doc=yNe(this._doc,s),this._doc=Fz(this._doc),this._computedPricing=r,this._theme=s,this._props=o,this._readPrices=a,this._isPreview=i,this._pdfOptions={},this._template=this._doc.template?new il(this._doc.template):null,this._dirtyKeys={}}get data(){return this._doc.data}deleteProperty(t){Hz(this,`_doc.${t}`)}get receiverString(){return Ce(this._doc,"data.receiverString")||Ce(this._props,"defaultReceiverString")||Be.t("_common:receiver",{lng:this.language,postProcess:"capitalize"})}get senderString(){return Ce(this._doc,"data.senderString")||Ce(this._props,"defaultSenderString")||Be.t("_common:sender",{lng:this.language,postProcess:"capitalize"})}get sender(){const t=Ce(this._doc,"data.sender",{});return{company:{...this._doc.company&&{publicId:this._doc.company.publicId,name:this._doc.company.name,orgNo:this._doc.company.organisationNumber,phone:this._doc.company.phone,logotype:this._doc.company.LogotypePublicId?`${Xe.api.baseUrl}/file/${this._doc.company.LogotypePublicId}/download`:null,hasFSkatt:this._doc.company.fSkatt,hasInsurance:this._doc.company.insurance,region:this._doc.company.region},...mf(t.company)},user:{...this._doc.companyUser&&{name:`${this._doc.companyUser.firstname||""} ${this._doc.companyUser.lastname||""}`.trim(),email:this._doc.companyUser.email,cellphone:this._doc.companyUser.cellphone,avatar:this._doc.companyUser.AvatarPublicId?`${Xe.api.baseUrl}/file/${this._doc.companyUser.AvatarPublicId}/download`:null},...mf(t.user)}}}set sender(t){t.company&&(this._doc.company=t.company),t.user&&(this._doc.companyUser=t.user)}get senderClient(){return this._doc.senderClient?{...this._doc.senderClient,isSender:!0}:null}get viewer(){return this._doc.viewerId?this.clients.find(({publicDocumentId:r})=>r===this._doc.viewerId):null}get remainingSignatures(){return this.clients.filter(({documentRole:t})=>["signee","approver"].includes(t)).reduce((t,r)=>Ce(r,"answer.didAccept")?t:t+1,0)}get answerActions(){const t={canAnswer:!1,hasAnswered:!1,showActions:!1,waitingForOthers:!1},r=!!Ce(this.viewer,"answer"),i=!!Ce(this.viewer,"answerMethod.accept",!1)&&["signee","approver"].includes(Ce(this.viewer,"documentRole")),a=["sent","draft"].includes(this.status);return i&&a&&!r&&(t.canAnswer=!0),t.showActions=i||this.isPreview,t.hasAnswered=r,t.waitingForOthers=r&&a,t}get id(){return this._doc.id||null}set id(t){this._doc.id=t}get publicId(){return this._doc.publicId||null}get name(){return this.data.name||null}set name(t){this.data.name=t}get articles(){return[...this.packageGroups.selectedArticles,...this.allArticles.filter(({packageId:t})=>!t)]}get allArticles(){return this._doc.articles||[]}set allArticles(t){this._doc.articles=t}get createdAt(){return this._doc.createdAt}get sentAt(){return this._doc.sentAt||null}get lastSentAt(){return this._doc.lastSentAt||null}get expiresAt(){return this.data.expiresAt||null}set expiresAt(t){this.data.expiresAt=t}get acceptedAt(){return this._doc.acceptedAt||null}get projectId(){return this._doc.projectId||null}get docNumber(){return this._doc.docNumber||{series:"document",value:null}}set docNumber(t){this._doc.docNumber=t}get status(){return this._doc.status||null}get useSignOrder(){return this._doc.useSignOrder||!1}get clients(){return this._doc.clients||[]}set clients(t){this._doc.clients=t}get recipients(){return[...this.senderClient?[this.senderClient]:[],...this.clients]}get template(){return this._template}get isPreview(){return this._isPreview||!1}get isHidden(){return this._doc.isHidden||!1}get excludeFromStats(){return this._doc.excludeFromStats||!1}get setPricesIncVat(){return Ce(this,"data.formSettings.setPricesIncVat",null)&&this.useVat}get formSettings(){return Ce(this,"data.formSettings")}get useVat(){return this.formSettings.useVat}get rounding(){return this.formSettings.rounding}get vatType(){return this.formSettings.vatType}get rejectReasons(){const{rejectReasons:t}=this.data;if(!t)return null;const r=cn(t);return r==="array"?t:r==="object"?Object.keys(t).map(i=>t[i]):null}get personalMessage(){return this.data.personalMessage||null}get sourceDocument(){return this.data.sourceDocument||null}get reminders(){return this._doc.data.reminders||[]}set reminders(t){this._doc.data.reminders=t}set packageGroups(t){this._doc.data.packageGroups=t}get packageGroups(){return new yze({data:this._doc.data.packageGroups,articles:this.allArticles,clients:this.clients,useVat:this.useVat,rounding:this.rounding,currency:this.currency})}get events(){const{events:t=[]}=this._doc,r=t.filter(a=>a.code!=="statusChanged"||["accepted","denied"].includes(a.data.status)),i=this.clients.filter(a=>["signee","approver"].includes(a.documentRole)).length;for(const[a,o]of r.entries()){const s=r[a+1];s&&s.code==="statusChanged"&&(s.data.status!==o.code||i<=1)&&r.splice(a+1,1)}return["viewed","mailOpened"].reduce((a,o)=>pNe(a,o),r)}get virtualStatus(){const{status:t,scheduledFirstDelivery:r}=this||{};return t==="draft"&&(r==null?void 0:r.status)==="active"?"scheduled":t}get lastViewedAgo(){var i;let t=null;const{events:r=[]}=this._doc;return(i=r==null?void 0:r.filter(a=>a.code==="viewed"))==null||i.forEach(a=>{(!t||a.updatedAt>t)&&(t=a.updatedAt)}),t&&p0e({code:"viewed",updatedAt:t})}get scheduledFirstDelivery(){const{reminders:t=[]}=this.data;return t.length&&t.find(r=>r.type==="first")||null}get type(){return this.categoryTags[0]}get categoryTags(){return Ce(this._doc,"tags",[]).reduce((t,r)=>[...t,r.name],[])}get language(){return Ce(this,"_doc.language","en")}set language(t){return Ur(this,"_doc.language",t)}get externalReferences(){return Ce(this,"_doc.externalReferences",[])}set externalReferences(t){return Ur(this,"_doc.externalReferences",t)}get currency(){return Ce(this,"_doc.currency")}get tags(){return Ce(this,"_doc.tags",[])}set tags(t){return Ur(this,"_doc.tags",t)}setTag(t,r){const i=this.tags.find(a=>a.type===t);i?i.name=r:this.tags.push({type:t,name:r})}get readPrices(){return this._readPrices}get prices(){return fNe(this._doc)}get dynamicPrices(){const{groups:t}=this.packageGroups,r={min:0,max:0};return(t||[]).forEach(({type:i,prices:a={},packages:o,articles:s,useVat:c,rounding:l})=>{const{total:u,type:d}=a;let p={min:u,max:u};if(o&&o.length){if(i==="radio")p=o.reduce((f,{prices:h})=>(f.min===null&&(f.min=h.total),h.total>f.max&&(f.max=h.total),h.total<f.min&&(f.min=h.total),f),{...p,min:null});else if(i==="checkbox"){const[f,h]=o.reduce(([m,g],y)=>y.toggable?[[...m,y],g]:[m,[...g,y]],[[],[]]);if(f.length){const{maxTotal:m,houseWorkManualAmount:g}=o.reduce((b,{prices:w})=>(b.maxTotal+=w.maxTotal,b.houseWorkManualAmount+=Ce(w,"region.houseWorkManualAmount",0),b),{maxTotal:0,houseWorkManualAmount:0}),{total:y}=$2({type:d,articles:s,currency:this.currency,clients:this.clients,maxTotal:m,region:{country:"sweden",houseWorkManualAmount:g},useVat:c,rounding:l});p.max=y}h.length?p.min=h[0].prices.total:p.min=f.reduce((m,g)=>((m===null||m>g.prices.total)&&(m=g.prices.total),m),null)}}r.min+=p.min,r.max+=p.max}),r}get cachedInvoices(){const{cachedInvoices:t}=this._doc;return!t||!t.invoices?[]:Object.keys(t.invoices).map(r=>t.invoices[r])}get invoiceIds(){const{cachedInvoices:t}=this._doc;return!t||!t.invoices?[]:Object.keys(t.invoices)}get invoicedAmount(){const{cachedInvoices:t}=this._doc;if(!t||!t.invoices)return 0;const r=t.invoices;return Object.keys(r).reduce((i,a)=>r[a]&&r[a].totalAmount?i+r[a].totalAmount:i,0)}set props(t){this._props=t}get theme(){const t={background:"https://images.unsplash.com/photo-1468233748640-b31327627610?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&w=1280&q=80",backgroundFilter:null,showClingLogo:null,showPriceSummary:!0,priceSummaryBackground:"hsla(215, 14%, 34%, 1)",headingColor:"hsla(215, 14%, 34%, 1)",fontFamily:null},r=Ce(this._doc,"data.theme",{});return{...t,...this._theme,...mf(r)}}set theme(t){this._theme=t}set pdfOptions(t){this._pdfOptions=t}getAllNodesWithType(t){return(Ce(this,"template.views.read.nodes")||[]).filter(({itemType:i})=>i===t)}get attachedFiles(){const t=[];return this.getAllNodesWithType("attachments").forEach(r=>{const i=r.value.attachments;if(!i)return;const a=Ce(this,i);a&&Array.isArray(a)&&t.push(...a)}),t}get readLayout(){return this.getReadLayout()}getReadLayout({showHiddenNodes:t=!1}={}){if(!this.template)return[];const r={...this.template.defaultData,...this._doc,data:{...this._doc.data,...this.clients.length&&{clients:this.clients.filter(o=>o.documentRole!=="recipient")},...this._computedPricing&&{prices:this.prices},sender:{...this.sender.company,...this.sender.user,name:this.sender.user.name,avatar:this.sender.user.avatar,...this.sender.user.email&&{email:this.sender.user.email},...this.sender.user.cellphone&&{cellphone:this.sender.user.cellphone},type:"company",companyName:this.sender.company.name},receiverString:this.receiverString,senderString:this.senderString}},a=[...OV({data:r,tree:this.template.views.read.nodes,bindData:!0,customProps:this._props,pdfOptions:this._pdfOptions})];return t?a:Rz({nodes:a,data:r})}get fields(){return{...hNe(this._doc),...this._doc.data.fields}}get textTemplateMap(){const{fields:t}=this;return Object.keys(t).reduce((r,i)=>({...r,[t[i].key]:t[i].label}),{})}get textTemplateItems(){const t=this.textTemplateMap||{};return Object.keys(t).reduce((r,i)=>[...r,{id:i,label:t[i],tooltip:Ce(this._doc,i)}],[])}get usedFields(){return t6(this.data)}get hasAnswers(){return this.clients.filter(({documentRole:t})=>["signee","approver"].includes(t)).some(({answer:t})=>!!t)}removeAnswer(){this._doc.acceptedAt=null,this._doc.status="draft",this.clients.forEach(t=>{t.answer=null})}setAnswerMethod({accept:t,deny:r}){if(typeof t>"u"&&typeof r>"u")throw new Error("Missing param accept or deny");this.removeAnswer(),t&&(Ur(this,"_doc.data.defaultAnswerMethod.accept",t),Ur(this,"_doc.template.defaultAnswerMethod.accept",t)),r&&(Ur(this,"_doc.data.defaultAnswerMethod.deny",r),Ur(this,"_doc.template.defaultAnswerMethod.deny",r)),this.clients.filter(({documentRole:i})=>["signee","approver"].includes(i)).forEach(i=>{i.answer=null,t&&(i.answerMethod.accept=t),r&&(i.answerMethod.accept=t)})}resetReminders(){const{template:t}=this,{reminders:r}=t;this.reminders=r}resetDefaultSelected(){const t=this._doc.data.packageGroups;t&&(this.packageGroups=Object.keys(t).reduce((r,i)=>({...r,[i]:{...t[i],packages:(t[i].packages||[]).map(a=>({...a,isSelected:a.isSelectedDefault||t[i].type==="single"}))}}),{}))}clone(){const t=this;return Object.assign(Object.create(Object.getPrototypeOf(t)),JSON.parse(JSON.stringify(t)))}duplicate(){const t=this.clone();return t.id=null,t._doc._id=null,t.deleteProperty("externalReferences"),t.deleteProperty("data.expiresAt"),t.deleteProperty("data.rejectReasons"),t.deleteProperty("company"),t.deleteProperty("companyUser"),t.deleteProperty("senderClient"),t.clients=t.clients.map(r=>es(r,["id","_id","publicDocumentId","answer"])),t.allArticles=t.allArticles.map(r=>es(r,["id","_id","createdAt","updatedAt","deletedAt"])),t.resetReminders(),t.resetDefaultSelected(),t}copyTemplateDocDefault({keepClients:t=!1}={}){const{template:r,articles:i,data:a,tags:o,docNumber:s,language:c,currency:l,clients:u,useSignOrder:d}=this.duplicate().getRawData();Object.keys(a).forEach(f=>{Ce(r,`validationSchema.properties.data.properties.${f}`)?Ur(r,`validationSchema.properties.data.properties.${f}.default`,a[f]):Object.keys(DV).includes(f)&&Ur(r,`validationSchema.properties.data.properties.${f}`,{...DV[f],default:a[f]})});const p={articles:i,tags:o,docNumber:s,currency:l,useSignOrder:d};return delete s.value,t&&(p.clients=u),Object.keys(p).forEach(f=>{p[f]&&Ur(r,`validationSchema.properties.${f}.default`,p[f])}),r.language=c,r}getRawData(){return{...this._doc,data:{...this._doc.data,prices:this.prices,name:this.name||""}}}get allowVerification(){return this.status==="accepted"||this.clients.some(({answerMethod:t})=>t&&t.accept==="inPerson")}async formatPhone(t,{defaultRegion:r}={}){return qM(t,{defaultRegion:r||this.sender.company.region})}setDirty(t){this._dirtyKeys[t]=!0}isDirty(t){return!!this._dirtyKeys[t]}$t(t,r={},{fnType:i="t"}={}){const a={lng:this.language,...r},o=["exVat","incVat","vat.exVat","vat.incVat"],s=t&&t.includes(":")?t.split(":")[1]:t;return s==="vat"?Cu[i](`vat.${this.vatType}`,{...a}):(o.includes(s)&&(a.thing=Cu[i](`vat.${this.vatType}`,a)),Cu[i](t,{...a}))}$tc(t,r={}){return this.$t(t,r,{fnType:"tc"})}};const bze=n=>n.map(t=>({...t,price:0,totalAmount:0,invoicedAmount:0,showPrice:!1}));class fc extends f6{constructor({data:t,documentOptions:r={},can:i,getters:a,updateSender:o=!1}){if(!a)throw new Error("Missing param getters");let s=t;i&&!i("prices","read")&&Ce(t,"articles",[]).length&&(s={...t,articles:bze(t.articles)});const{senderString:c,receiverString:l,fSkatt:u,insurance:d,offerBrandingBackgroundUrl:p,documentThemeBackgroundFilter:f,documentShowPriceSummary:h,documentThemePriceBackground:m,documentThemePrimaryColor:g,presentationFontFamily:y,showClingLogo:b}=a["settings/allCompanySettings"]||{};super(s,{...r,props:{defaultSenderString:c,defaultReceiverString:l,...r.props},readPrices:i?i("prices","read"):!0,isPreview:!0,settingsTheme:mf({background:p,backgroundFilter:f,showPriceSummary:h,priceSummaryBackground:m,headingColor:g,fontFamily:y,showClingLogo:b})}),this._documentOptions=r,this._can=i,this._defaultScope="documents",this._getters=a;const w=o||!Object.keys(Ce(this,"_doc.company",{})).length||!Object.keys(Ce(this,"_doc.companyUser",{})).length,S=w?this._doc.companyId?a["companies/companyById"](this._doc.companyId):a["application/company"]:this._doc.company;S&&w&&(S.fSkatt=u,S.insurance=d);const k=w?this._doc.companyUserId?a["companyUsers/referenceById"](this._doc.companyUserId):a["application/user"]:this._doc.companyUser;this.sender=this._documentOptions.sender||{company:S,user:k};const $=this._getters["application/companyAccount"],T=Ce($,"customViewRoute"),A=this._getters["application/feature"]("subdomain")&&T;this._baseDomain=A?T:Xe.baseUrl}can(t,r=null,i=null){if(!this._can)return!0;if(typeof t!="string")throw new Error("Permission must be of type String");return this._can(r||this._defaultScope,t,i||this.id)}get companyId(){return this._doc.companyId}get companyUserId(){return this._doc.companyUserId}resetReminders(){super.resetReminders();let{reminders:t}=this;if(!t.length)return;const{_getters:r}=this,i=r["settings/reminderSettings"],a=(o,s)=>t.filter(({type:c})=>c===o).map(c=>(c.sendDays=s,!0));typeof i.notAnswered<"u"&&a("reminder",i.notAnswered),typeof i.notViewed<"u"&&a("viewed",i.notViewed),typeof i.expires<"u"&&a("expires",i.expires),t=t.filter(({type:o,sendDays:s})=>o==="first"||s),this.reminders=t}clone(){return new fc({data:JSON.parse(JSON.stringify(this._doc)),documentOptions:this._documentOptions,can:this._can,getters:this._getters})}async isValid(){const t=this.getRawData();try{return await Ki.validate(t),!0}catch{return!1}}get clients(){return super.clients.map(t=>({...t,docLink:`${this._baseDomain}/document/${t.publicDocumentId}`,...t.customDocLinkRendered?{docLink:t.customDocLinkRendered}:{}}))}set clients(t){super.clients=t}}const _ze=n=>({id:null,name:"Default Empty",validationSchema:{type:"object",required:["clients","data"],properties:{tags:{type:"array",default:[{name:"document",type:"category"}]},docNumber:{type:"object",properties:{series:{type:"string",default:"document"}}},clients:{type:"array",default:[]},data:{type:"object",required:["name"],properties:{partiesString:{anyOf:[{type:"string"},{type:"null"}],default:Be.t("components:document.chapters.parties.title",{lng:n})},"header-kh0loiq7":{default:{layout:"vertical",baseStyle:{textAlign:"left",textColor:"#f0ce84"},items:[{type:"media",size:35,media:{type:"image",resourceUrl:"https://images.unsplash.com/photo-1581660545544-83b8812f9516?ixlib=rb-1.2.1&auto=format&fit=crop&w=1800&q=80"}},{type:"content",size:65,media:{type:"color",backgroundColor:"#17346e"},value:{preText:"",documentName:'<p data-typography="title"></p>',postText:"<p></p>",showLogo:!0,logotype:""}}]},$ref:`${Xe.api.baseUrl}/schemas/header/2.json`},packageGroups:{default:{kh0lol91:{type:"",title:Be.t("components:document.chapters.packageGroup.title",{lng:n}),hideGroupPrice:!1,packages:[]}},$ref:`${Xe.api.baseUrl}/schemas/packageGroups/1.json`},"title-kh0los53":{anyOf:[{type:"string"},{type:"null"}]},"content-kh0los54":{anyOf:[{type:"string"},{type:"null"}]},defaultAnswerMethod:{default:{accept:"signature",deny:"button"},$ref:`${Xe.api.baseUrl}/schemas/answer/1.json`},name:s6,sender:o6,senderString:l6,receiverString:c6,prices:u6,css:a6,fields:p6,expiresAt:d6,formSettings:i6,reminders:Mg,smsTemplate:n6,emailTemplate:r6}}}},views:{edit:{isEditable:!0,nodes:[]},read:{isEditable:!0,nodes:[{itemId:"header-kh0loiq7",itemType:"header",value:{header:"data.header-kh0loiq7"}},{itemId:"parties",itemType:"section",value:{title:"data.partiesString"},children:[{itemId:"clients",itemType:"subSection",value:{title:"data.receiverString"},children:[{itemId:"clientsList",itemType:"party",value:{parties:"clients"}}]},{itemId:"sender",itemType:"subSection",value:{title:"data.senderString"},children:[{itemId:"senderList",itemType:"party",value:{parties:"data.sender"}}]}]},{itemId:"packageGroup-kh0lol91",itemType:"section",value:{title:"data.packageGroups.kh0lol91.title"},children:[{itemId:"group",itemType:"selectionGroup",value:{groupId:"kh0lol91",type:"data.packageGroups.kh0lol91.type",packages:"data.packageGroups.kh0lol91.packages"}}]},{itemId:"titleAndText2",itemType:"section",value:{title:"data.title-kh0los53"},children:[{itemId:"kh0los52",itemType:"html",value:{content:"data.content-kh0los54"}}]},{itemId:"answer",itemType:"answer",value:{defaultAnswerMethod:"data.defaultAnswerMethod"}}]},email:z2,sms:V2},isVisible:!0,language:n}),MV={default:n=>{const t=_ze(n);return{...t,views:Object.keys(t.views).reduce((r,i)=>({...r,[i]:{...t.views[i],nodes:bf(t.views[i].nodes,{setId:!0})}}),{})}},empty:n=>({id:null,name:"Empty",validationSchema:{type:"object",required:["clients","data"],properties:{tags:{type:"array",default:[{name:"document",type:"category"}]},docNumber:{type:"object",properties:{series:{type:"string",default:"document"}}},clients:{type:"array",default:[]},data:{type:"object",required:["name"],properties:{name:s6,sender:o6,senderString:l6,receiverString:c6,prices:u6,css:a6,fields:p6,expiresAt:d6,formSettings:i6,reminders:Mg,smsTemplate:n6,emailTemplate:r6}}}},views:{edit:{isEditable:!0,nodes:[]},read:{isEditable:!0,nodes:[]},email:{...z2,nodes:bf(z2.nodes,{setId:!0})},sms:{...V2,nodes:bf(V2.nodes,{setId:!0})}},isVisible:!0,language:n})},{FORM_CLEAR_FORM:PV,CLEAR_DOCUMENT2_ANSWERS:IV,DO_SEND_DOCUMENT2:wze,SHOW_MESSAGE:xze,LOAD_ENDCUSTOMER:Cze,UPDATE_TEMPLATE:kze,DO_CREATE_TEMPLATE:Sze}=He,{LOAD_DOCUMENT2_FORM:Tze,LOAD_DOCUMENT2_PUBLIC_FORM:Eze,LOAD_DUPLICATE_DOCUMENT2_FORM:RV,SAVE_DYNDOC_FORM:$ze,CLEAR_DYNDOC_FORM:Aze,DO_SAVE_DYNDOC:LV,HANDLE_DOCUMENT2_EDIT:Oze,SAVE_TEMPLATE_FORM:Dze,LOAD_EXTERNAL_FORM_FIELDS:h6}=hj,{SET_FORM:m6,SET_FORM_VALUE:NV}=$t.forms;async function Mze({id:n=null,templateId:t=null,rootState:r,state:i,rootGetters:a,dispatch:o}){if(!r)throw new Error("Missing parameter rootState");if(!i)throw new Error("Missing parameter state");if(!a)throw new Error("Missing parameter rootGetters");if(!o)throw new Error("Missing parameter dispatch");let s=!1;const c=a["forms/document"];if(!c)return!1;const{name:l,params:{id:u}}=r.route||{},{id:d,template:{id:p}}=c;return["documentForm"].includes(l)&&(n?d&&d===u&&d===n&&(Pn.debug("DYNDOC_FORM: Using existing store data existing id match route"),s=!0):!d&&!n&&(t==="default"&&!p||t===p)&&(Pn.debug("DYNDOC_FORM: Using existing store data as no ids was found"),s=!0)),s&&Pn.debug("DYNDOC_FORM: Dont reload as forms/document2 is already defined"),s}const Pze={async[Tze]({commit:n,rootState:t,rootGetters:r,state:i,dispatch:a},{documentId:o=null,templateId:s=null,addonDocumentSourceId:c=null,projectId:l=null,clientId:u=null,formData:d=null,_formData:p=null,dummyClient:f=!1}={}){if(await Mze({id:o,templateId:s,rootState:t,state:i,rootGetters:r,dispatch:a})&&!c)return;let m={id:null,__tempId:Ut(),companyUserId:this.getters["application/user"].id,language:this.getters["settings/getCompanyUserSetting"]("defaultLanguage")||"en",currency:this.getters["settings/getCompanyUserSetting"]("defaultCurrency"),data:{},template:null,articles:[],clients:[],...p&&{...p},...d};if(!d){if(o){await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:o});const w=this.getters["documents2/byId"](o);m={...m,...w.getRawData()}}else if(s){let w=["default","empty"].includes(s)?new il(MV[s](m.language)):this.getters["templates/byId"](s);if(["offertaSuggestionTemplate","offertaPdfTemplate","onboardingTemplate"].includes(s)){const{data:S}=await Du.get(s);w=new il(S)}if(w||(await this.dispatch(He.LOAD_TEMPLATE,{id:s}),w=this.getters["templates/byId"](s)),!w)throw new Error(`Could not find template by id: '${s}'`);m.template={...w._data,defaultData:w.defaultData}}const b=Ce(m,"template.defaultData",{});if(m={...m,...b,clients:[...(b==null?void 0:b.clients)||[],...m.clients]},Object.keys(t.settings.company).length||await this.dispatch(He.LOAD_SETTINGS_COMPANY),c){await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:c});const w=this.getters["documents2/byId"](c),{publicId:S,clients:k}=w.duplicate();m={...m,projectId:w.projectId,clients:k,data:{...m.data,sourceDocument:{id:c,publicId:S}}}}}if(l&&(m.projectId=l),u){await this.dispatch(Cze,{id:u});const b=r["endCustomers/endCustomerById"](u),w=Ce(m,"template.defaultData.data.defaultAnswerMethod"),S=TS(b,{...w&&{answerMethod:w}});m.clients=[...m.clients,S]}if(f){const b=["email"];ai.checkFeature("sms")&&b.push("sms"),m.clients=[...m.clients,{name:"Pernilla P.",email:"pernilla@mail.se",cellphone:"073 123 56 78",documentRole:"signee",type:"individual",deliveryTypes:b}]}if(s==="onboardingTemplate"){const b=r["application/user"]||{},w=r["application/company"]||{},S={type:"company",email:b.email,companyName:w.name||(m.language==="sv"?"Konsulterna AB":"The consultants Corp."),name:b.fullName||(m.language==="sv"?"Test Testson":"John Doe"),...b.cellphone?{cellphone:b.cellphone}:{},...w.region&&{cellphoneRegion:w.region}};m.clients=[...m.clients,kp({...Sg(),...S})]}const g=Ce(m,"data.defaultAnswerMethod",null);g&&(m.clients=m.clients.map(b=>Ce(b,"answerMethod.accept")!=="inPerson"?{...b,answerMethod:g}:b)||[]);let y={...m,data:{...m.data,...!o&&{reminders:this.getters["forms/getDocumentAccountDefault"]("reminders",{template:new il(m.template)})}}};y=Fz(y),n(m6,{key:"document2",formData:y}),a(h6)},async[Eze]({commit:n},{formData:t=null}={}){let r={id:null,language:Be.lang,currency:In[Xe.brand].defaultCurrency,data:{},template:null,articles:[],clients:[],...t};if(!t){if(!r.template){const o=new il(MV.default(r.language));r.template={...o._data,defaultData:o.defaultData}}const a=Ce(r,"template.defaultData",{});r={...r,...a}}r.language==="sv"&&r.data.defaultAnswerMethod&&(r.data.defaultAnswerMethod.accept="bankId");const i=Ce(r,"data.defaultAnswerMethod",null);i&&(r.clients=r.clients.map(a=>Ce(a,"answerMethod.accept")!=="inPerson"?{...a,answerMethod:i}:a)||[]),n(m6,{key:"document2",formData:{...r,data:{...r.data}}})},async[RV]({commit:n,dispatch:t},{id:r,publicDocId:i,projectId:a=null,keepClients:o=!1,isPublicForm:s=!1,_formData:c=null}){if(!r&&!i)throw new Error("Missing parameter id");let l;if(i){const{data:S}=await Hp.get(i,{preview:!0});l=new fc({data:S,can:s?null:permissions.checkPermission.bind(permissions),getters:this.getters})}else await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:r}),l=this.getters["documents2/byId"](r);if(!l)throw new Error("Could not find document to duplicate");const u=l.duplicate(),{defaultData:d}=u.template,{template:p,data:f,articles:h,clients:m,language:g,currency:y,externalReferences:b}=u.getRawData(),w={...d,template:p,articles:h,clients:o?m:[],language:g,currency:y,externalReferences:b,...c,data:{...d.data,...f,...c==null?void 0:c.data}};a&&(w.projectId=a),n(m6,{key:"document2",formData:w}),t(h6)},async[Dze](n,{body:t,callback:r}){try{if(!t)throw new Error("Missing param body");t.id?await this.dispatch(kze,{id:t.id,body:t}):await this.dispatch(Sze,{body:t}),typeof r=="function"&&r()}catch(i){this.handleError(i)}},async[$ze]({dispatch:n},{doSend:t=!1}={}){try{const r=await n(LV),i=this.getters["documents2/byId"](r),a=!!Ce(i,"senderClient");return t&&!a&&await this.dispatch(wze,{id:r}),r}catch(r){return this.handleError(r),null}},async[Aze](){try{await this.dispatch(PV,{key:"_old_document2"}),await this.dispatch(PV,{key:"document2"})}catch(n){this.handleError(n)}},async[LV]({rootGetters:n,getters:t,commit:r},{showMessage:i=!0}={}){const{document:a}=t;let{id:o}=a;const s=u=>Cu.t(`documentTemplateView.${u}`,{lng:a.language,interpolation:{prefix:"__",suffix:"__"}}),c=Ce(a,"data.defaultAnswerMethod",null);c&&(a.clients=a.clients.map(u=>Ce(u,"answerMethod.accept")!=="inPerson"?{...u,answerMethod:c}:u));const l={...a,data:{...a.data,name:a.data.name||"",smsTemplate:{first:{text:s("smsTemplate.first.text")},reminder:{text:s("smsTemplate.reminder.text")},expires:{text:s("smsTemplate.expires.text")},viewed:{text:s("smsTemplate.viewed.text")}},emailTemplate:{first:{subject:s("emailTemplate.first.subject"),title:s("emailTemplate.first.title"),content:s("emailTemplate.first.content"),text:s("emailTemplate.first.text")},viewed:{subject:s("emailTemplate.viewed.subject"),title:s("emailTemplate.viewed.title"),content:s("emailTemplate.viewed.content"),text:s("emailTemplate.viewed.text")},reminder:{subject:s("emailTemplate.reminder.subject"),title:s("emailTemplate.reminder.title"),content:s("emailTemplate.reminder.content"),text:s("emailTemplate.reminder.text")},expires:{subject:s("emailTemplate.expires.subject"),title:s("emailTemplate.expires.title"),content:s("emailTemplate.expires.content"),text:s("emailTemplate.expires.text")}}},pdfConfig:{locale:Cu.locale,timeZone:Ce(Intl.DateTimeFormat().resolvedOptions(),"timeZone")||""}};return delete l.company,delete l.companyUser,o?(a.clearAnswerBeforePut&&(await this.dispatch(IV,{id:o,doFetch:!1}),await this.dispatch(He.DO_UPDATE_DOCUMENT2,{id:o,body:{status:"draft"},showMessage:i})),await this.dispatch(He.DO_UPDATE_DOCUMENT2,{id:o,body:l,showMessage:i})):(o=await this.dispatch(He.DO_CREATE_DOCUMENT2,{body:l}),r(NV,{key:"document2.id",value:o})),n["settings/showOverviewOnboardingOverlay"]&&this.dispatch("settings/UPDATE_SETTINGS",{key:"companyUser",settings:{showOverviewOnboardingOverlay:!1}}),o},async[Oze]({getters:n,dispatch:t},{documentId:r=null}={}){let i;if(r?(await this.dispatch(He.DO_LOAD_DOCUMENT2,{id:r}),i=this.getters["documents2/byId"](r)):{document:i}=n,!i)throw new Error("Missing document");const a=i.id?i.can("modify"):i.can("create"),{id:o,status:s,projectId:c,hasAnswers:l}=i;if(a&&(s==="accepted"||l)){const u=s==="accepted"?"accepted":"hasAnswers";this.dispatch(xze,{displayType:"dialog",type:"primary",title:Be.t(`actions:editDocumentDialog.${u}.title`),message:Be.t(`actions:editDocumentDialog.${u}.message`),actions:{cancel:{text:Be.t("_common:cancel"),callback:"cancel"},submit:{text:Be.t(`actions:editDocumentDialog.${u}.submit`),callback:async()=>{if(u==="accepted")await t(RV,{id:o,projectId:c,keepClients:!0}),this.$router.push({name:"documentForm"});else if(u==="hasAnswers"){await this.dispatch(IV,{id:o,doFetch:!0});const d={name:"documentForm",params:o?{id:o}:{}};this.$router.push(d)}}}}})}else if(a){const u={name:"documentForm",params:o?{id:o}:{}};return this.$router.push(u)}return null},async[h6]({rootGetters:n,getters:t,commit:r}){const{document:i}=t;if(i!=null&&i.externalReferences&&i.externalReferences.length)try{await Promise.all((i.externalReferences||[]).map(async({service:a,type:o,typeId:s})=>{if(o&&s&&a&&n["settings/isAuthenticatedCRM"](a)){const{data:c}=await nc.getFields(a,{type:o,typeId:s,populated:!0});r(NV,{key:"document2.data.fields",value:{...Ce(i,"data.fields"),...c}})}}))}catch(a){this.handleError(a)}}},Ize={...eNe,...FNe,...zNe,...Pze,async[ss.FORM_CLEAR_FORM]({commit:n},{key:t}){return n(ls.CLEAR_FORM,{key:t})},async[ss.SET_FORM]({commit:n},{key:t,formData:r}){return n(ls.SET_FORM,{key:t,formData:r})},async[ss.SET_FORM_VALUE]({commit:n},{key:t,value:r}){return n(ls.SET_FORM_VALUE,{key:t,value:r})},async[ss.REMOVE_FORM_VALUE]({commit:n},t){return n(ls.REMOVE_FORM_VALUE,t)},async[ss.REMOVE_FORM_KEY_VALUE]({commit:n},t){return n(ls.REMOVE_FORM_KEY_VALUE,t)},async[ss.FORM_RESET_OLD]({commit:n,rootGetters:t},r){const i=t["forms/getFormByKey"](r);return n(ls.SET_FORM,{key:r,formData:i})}},Rze={},Lze={setDocumentField(n,t){const{path:r,value:i}=t,{root:a,prop:o}=rl(n.document,r,!0);ff(a,{path:o,value:i})}},{SET_FORM:Nze,CLEAR_FORM:Fze,SET_FORM_VALUE:Bze,REMOVE_FORM_VALUE:jze,REMOVE_FORM_KEY_VALUE:zze}=ls,Vze={updateField:ff,...Rze,...Lze,[Nze](n,{key:t,formData:r}){if(cn(r)==="undefined"){console.warn("FormData was undefined!");return}const i=JSON.parse(JSON.stringify(r)),{root:a,prop:o}=rl(n,t,!0);if(Array.isArray(i))Fe.set(a,o,i);else if(typeof i=="object"&&i!==null){const s=Object.assign({},i);Fe.set(a,o,s)}else Fe.set(a,o,i);if(t.split(".").length!==1){console.warn("Using SET_FORM to set individual values");return}n[`_old_${t}`]=JSON.parse(JSON.stringify(n[t]||{}))},[Fze](n,{key:t}){const{root:r,prop:i}=rl(n,t);Fe.set(r,i,{})},[jze](n,t){const{root:r,prop:i}=rl(n,t);if(Array.isArray(r)){Fe.delete(r,i);return}if(r[i]&&Array.isArray(r[i])){Fe.set(r,i,[]);return}if(r[i]&&typeof r[i]=="object"){Fe.set(r,i,{});return}r[i]=void 0},[zze](n,t){const{root:r,prop:i}=rl(n,t);r&&i in r&&delete r[i]},[Bze](n,{key:t,value:r}){const{root:i,prop:a}=rl(n,t,!0),o=cn(r)==="null",s=cn(r)==="array"&&!r.length;if(!o&&i[a]&&cn(i[a])==="array"&&!s&&cn(r)!=="array"){i[a].push(kp(r));return}if(!o&&cn(i)==="array"&&!s){let c=kp(r);typeof i[a]=="object"&&i[a]._uniqueId&&(c={...c,_uniqueId:i[a]._uniqueId}),Fe.set(i,a,c);return}Fe.set(i,a,r)}};function H2(n){const t={email:!1,sms:!1};return Ce(n,"clients",[]).forEach(r=>{r.deliveryTypes.indexOf("sms")>-1&&(t.sms=!0),r.deliveryTypes.indexOf("email")>-1&&(t.email=!0)}),t.sms&&!ai.checkFeature("sms")&&(t.sms=!1),t}const Uze={getField:yg,...{document:({document2:n})=>Object.keys(n).length?n:null,deliveryTypes:n=>H2(n.document2),getDocumentAccountDefault:(n,t,r,i)=>(a,{template:o})=>{let s;if(a==="reminders"){if(s=[],!o)return s;s.push(...o.reminders);const c=(u,d)=>s.filter(({type:p})=>p===u).forEach(p=>{p.sendDays=d}),l=i["settings/reminderSettings"];l.notAnswered!==void 0&&c("reminder",l.notAnswered),l.notViewed!==void 0&&c("viewed",l.notViewed),l.expires!==void 0&&c("expires",l.expires),s=s.filter(({type:u,sendDays:d})=>u==="first"||d)}return s}},...{documentField:n=>t=>{const{document:r={}}=n;let i=t.split(".");i[0]==="document"&&(i=[...i.slice(1)]);let a=r[i[0]];return i.length>1&&(a=i.reduce((o,s)=>o&&o[s],r)),a},isIndivid:n=>{try{return n.document.ModuleEndCustomer.customerType!=="company"}catch{return!0}},isReverseVat:n=>{try{return ai.checkFeature("reverseVat")&&n.document.ModuleEndCustomer.reverseVat===!0}catch{return!1}},getInvoicePrices:({document:n={}},t,r,i)=>{const a={invoiceFee:n.invoiceFee||0,invoiceFeeVat:0,centRoundingAmount:0,totalPriceExVat:0,totalVatAmount:0,totalAmount:0,visualPricing:{},regionPricing:[],reverseVat:t.isReverseVat||!1,type:n.type,paidAmount:0,remainingAmount:0,totalPriceIncVat:0,creditedAmount:0,currency:"SEK"};(n.ModuleArticles||[]).forEach(u=>{const d=Xo(u);if(!d.price||!d.quantity)return;const{totalAmount:p}=d;a.totalPriceExVat+=p,a.totalVatAmount+=p*(d.vat/100),d.vat>a.invoiceFeeVat&&!a.reverseVat&&(a.invoiceFeeVat=d.vat)}),a.totalPriceExVat+=a.invoiceFee,a.totalVatAmount+=a.invoiceFee*a.invoiceFeeVat*.01,a.reverseVat&&(a.totalVatAmount=0),a.regionPricing=t.invoiceRegion.regionPricing;const o=a.regionPricing.reduce((u,d)=>u+d.value,0),s=a.totalPriceExVat+a.totalVatAmount,c=(s+o)*.01,l=Math.round(c)-c;return a.centRoundingAmount=l*100,a.totalAmount=s+o+a.centRoundingAmount,a.type==="credit"&&(a.creditedAmount=a.totalAmount),a.remainingAmount=a.totalAmount,a},invoice:(n,t,r,i)=>{const a={};return Object.keys(Tg).map(s=>(a[s]=i["forms/documentField"](s),s==="ModuleArticles"&&cn(a[s])==="array"&&(a[s]=a[s].filter(c=>c.name),a[s]=a[s].map((c,l)=>({...c,position:l}))),!0)),new $S(a,i)},invoiceRegion:({document:n={}},t,r,i)=>{const a=Xo(n.ModuleArticles||[]),o=n.InvoiceRegionSweden||{},s={applicants:Ce(o,"persons",[]),houseWorkType:null,houseWorkAmount:null,houseWorkMaterial:null,allowRot:!1,allowRut:!1,regionPricing:[],requirePropertyDesignation:!1},c=a.find(f=>f.isDeductable||f.isRut)||{};c.isDeductable?s.houseWorkType="rot":c.isRut&&(s.houseWorkType="rut"),s.requirePropertyDesignation=s.houseWorkType==="rot";const l=a.reduce((f,h)=>f+h.houseWorkDeductionAmount,0),u=a.reduce((f,h)=>!h.isDeductable&&!h.isRut?f:f+h.totalAmount*(100+h.vat)/100,0),d=a.reduce((f,h)=>f+h.houseWorkMaterialCostToReport,0);s.houseWorkAmount=l,s.houseWorkMaterialAmount=d,s.houseWorkDuration=a.reduce((f,h)=>f+h.houseWorkHoursToReport,0),s._totalPriceDeductionArticles=u;const p=o.propertyType==="realEstate";return s.isRealEstate=p,s.propertyId=p?o.realEstateId:o.condominiumId,s.condominiumOrgNo=o.condominiumOrgNo,t.isIndivid&&(s.allowRot=i["settings/getCompanySetting"]("showRot")||!!s.houseWorkAmount,s.allowRut=i["settings/getCompanySetting"]("showRut")||!!s.houseWorkAmount),s.regionPricing=[...s.houseWorkType==="rot"?[{label:"ROT-avdrag",key:"rot",value:-s.houseWorkAmount}]:[],...s.houseWorkType==="rut"?[{label:"RUT-avdrag",key:"rut",value:-s.houseWorkAmount}]:[]],s},kycForm:n=>n.kycForm||null},hasChanged:n=>t=>JSON.stringify(n[t])!==JSON.stringify(n[`_old_${t}`]),getFormByKey:n=>t=>{const r=t.split(".");let i=n;const a=r.pop();return r.length>0&&(i=r.reduce((o,s)=>o[s],n)),i[a]},getArrayElement:n=>(t,r)=>{const{root:i,prop:a}=rl(n,t),o=i[a];if(!Array.isArray(o))throw new Error(`${a} is not an array`);return o.find(c=>c.uniqueId===r)}},Hze={namespaced:!0,state:XLe,getters:Uze,actions:Ize,mutations:Vze},Wze={data:{},ids:[],filePublicIdToId:{},isFetching:!1,isPosting:!1},_f="files",{LOAD_FILE:FV,CREATE_FILE:g6,UPDATE_FILE:v6,DELETE_FILE:BV,PATCH_FILE:jV,FORM_NEW_FILE:Gze,FORM_EDIT_FILE:qze,FORM_SUBMIT_FILE:zV}=u2,{UPDATE_MANY_FILES:VV,DELETE_ONE_FILE:Yze,SET_FILES_FETCHING:UV,SET_FILES_POSTING:hc}=iS,{SET_FORM:HV,CLEAR_FORM:Kze}=$t.forms,Zze={async[FV]({commit:n},{id:t}){try{n(UV,!0);const{data:r}=await JCe(t);return n(VV,{data:r}),!0}catch(r){return this.handleError(r,{object:"file",objectId:t,fallbackCode:"file.get",action:`${_f}/${FV}`,actionPayload:arguments[1]}),!1}finally{n(UV,!1)}},async[g6]({commit:n},{body:t}){try{n(hc,!0);const r=t.fileName||"";let i=null;if(t.blob){const a=new FormData;a.append("file",t.blob,r),{data:i}=await VR(a)}else({data:i}=await VR(t));if(!i)throw new Error("No file was uploaded");return n(VV,{data:i}),i.id}catch(r){return this.handleError(r,{object:"file",fallbackCode:"file.post",action:`${_f}/${g6}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},async[v6]({commit:n,dispatch:t},{id:r,body:i}){try{return n(hc,!0),await XCe(r,i),await t(u2.LOAD_FILE,{id:r}),r}catch(a){return this.handleError(a,{object:"file",objectId:r,fallbackCode:"file.put",action:`${_f}/${v6}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},async[BV]({commit:n},{id:t}){try{return n(hc,!0),await QCe(t),n(Yze,t),t}catch(r){return this.handleError(r,{object:"file",objectId:t,fallbackCode:"file.delete",action:`${_f}/${BV}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},async[jV]({commit:n,dispatch:t},{id:r}){try{return n(hc,!0),await eke(r),await t(u2.LOAD_FILE,{id:r}),r}catch(i){return this.handleError(i,{object:"file",objectId:r,fallbackCode:"file.patch",action:`${_f}/${jV}`,actionPayload:arguments[1]}),null}finally{n(hc,!1)}},[Gze]({commit:n}){const t={blob:null,fileName:null};return n(`forms/${HV}`,{key:"file",formData:t},{root:!0})},[qze]({commit:n,state:t},{id:r,props:i=[]}){const a={...Gs(t.data[r],i),id:r};return n(`forms/${HV}`,{key:"file",formData:a},{root:!0})},async[zV]({commit:n,rootGetters:t,dispatch:r}){try{const i=t["forms/getFormByKey"]("file");let{id:a}=i;return a?await r(v6,{id:i.id,body:i}):a=await r(g6,{body:i}),n(`forms/${Kze}`,{key:"file"},{root:!0}),a}catch(i){return this.handleError(i,{object:"file",action:`${_f}/${zV}`}),null}}},{UPDATE_MANY_FILES:Jze,DELETE_ONE_FILE:Xze,CLEAR_FILES:Qze,SET_FILES_FETCHING:eVe,SET_FILES_POSTING:tVe}=iS,nVe={[Jze](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a company user or an array of company users!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r),o=i.reduce((s,c)=>!a[c]||!a[c].publicId?s:{...s,[a[c].publicId]:a[c].id},{});ba(n.data,a),n.ids=qi([...i,...n.ids]),n.filePublicIdToId={...n.filePublicIdToId,...o}},[Xze](n,t){n.data[t]&&(Fe.delete(n.filePublicIdToId,n.data[t].publicId),Fe.delete(n.data,t));const i=n.ids.indexOf(t);i!==-1&&n.ids.splice(i,1)},[Qze](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[]),Fe.set(n,"filePublicIdToId",[])},[eVe](n,t){n.isFetching=t},[tVe](n,t){n.isPosting=t}},rVe={namespaced:!0,state:Wze,getters:{fileById:n=>t=>n.data[t],fileByPublicId:(n,t)=>r=>{const i=n.filePublicIdToId[r];return t.fileById(i)}},actions:Zze,mutations:nVe},iVe={data:{},ids:[],projectPublicIdToId:{},isFetching:!1,isPosting:!1,canFetchMore:!0,count:{},searchWord:"",isFetchingProjectNotes:!1,isPostingProjectNotes:!1};var aVe="__lodash_hash_undefined__";function oVe(n){return this.__data__.set(n,aVe),this}var sVe=oVe;function lVe(n){return this.__data__.has(n)}var cVe=lVe,uVe=O4,dVe=sVe,pVe=cVe;function W2(n){var t=-1,r=n==null?0:n.length;for(this.__data__=new uVe;++t<r;)this.add(n[t])}W2.prototype.add=W2.prototype.push=dVe,W2.prototype.has=pVe;var y6=W2;function fVe(n,t,r,i){for(var a=n.length,o=r+(i?1:-1);i?o--:++o<a;)if(t(n[o],o,n))return o;return-1}var hVe=fVe;function mVe(n){return n!==n}var gVe=mVe;function vVe(n,t,r){for(var i=r-1,a=n.length;++i<a;)if(n[i]===t)return i;return-1}var yVe=vVe,bVe=hVe,_Ve=gVe,wVe=yVe;function xVe(n,t,r){return t===t?wVe(n,t,r):bVe(n,_Ve,r)}var CVe=xVe,kVe=CVe;function SVe(n,t){var r=n==null?0:n.length;return!!r&&kVe(n,t,0)>-1}var WV=SVe;function TVe(n,t,r){for(var i=-1,a=n==null?0:n.length;++i<a;)if(r(t,n[i]))return!0;return!1}var GV=TVe;function EVe(n,t){return n.has(t)}var b6=EVe,$Ve=y6,AVe=WV,OVe=GV,DVe=J3,MVe=b0,PVe=b6,IVe=200;function RVe(n,t,r,i){var a=-1,o=AVe,s=!0,c=n.length,l=[],u=t.length;if(!c)return l;r&&(t=DVe(t,MVe(r))),i?(o=OVe,s=!1):t.length>=IVe&&(o=PVe,s=!1,t=new $Ve(t));e:for(;++a<c;){var d=n[a],p=r==null?d:r(d);if(d=i||d!==0?d:0,s&&p===p){for(var f=u;f--;)if(t[f]===p)continue e;l.push(d)}else o(t,p,i)||l.push(d)}return l}var LVe=RVe;function NVe(n,t){for(var r=-1,i=n==null?0:n.length;++r<i;)if(t(n[r],r,n))return!0;return!1}var FVe=NVe,BVe=y6,jVe=FVe,zVe=b6,VVe=1,UVe=2;function HVe(n,t,r,i,a,o){var s=r&VVe,c=n.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(n),d=o.get(t);if(u&&d)return u==t&&d==n;var p=-1,f=!0,h=r&UVe?new BVe:void 0;for(o.set(n,t),o.set(t,n);++p<c;){var m=n[p],g=t[p];if(i)var y=s?i(g,m,p,t,n,o):i(m,g,p,n,t,o);if(y!==void 0){if(y)continue;f=!1;break}if(h){if(!jVe(t,function(b,w){if(!zVe(h,w)&&(m===b||a(m,b,r,i,o)))return h.push(w)})){f=!1;break}}else if(!(m===g||a(m,g,r,i,o))){f=!1;break}}return o.delete(n),o.delete(t),f}var qV=HVe;function WVe(n){var t=-1,r=Array(n.size);return n.forEach(function(i,a){r[++t]=[a,i]}),r}var GVe=WVe;function qVe(n){var t=-1,r=Array(n.size);return n.forEach(function(i){r[++t]=i}),r}var _6=qVe,YV=gp,KV=SM,YVe=E4,KVe=qV,ZVe=GVe,JVe=_6,XVe=1,QVe=2,eUe="[object Boolean]",tUe="[object Date]",nUe="[object Error]",rUe="[object Map]",iUe="[object Number]",aUe="[object RegExp]",oUe="[object Set]",sUe="[object String]",lUe="[object Symbol]",cUe="[object ArrayBuffer]",uUe="[object DataView]",ZV=YV?YV.prototype:void 0,w6=ZV?ZV.valueOf:void 0;function dUe(n,t,r,i,a,o,s){switch(r){case uUe:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case cUe:return!(n.byteLength!=t.byteLength||!o(new KV(n),new KV(t)));case eUe:case tUe:case iUe:return YVe(+n,+t);case nUe:return n.name==t.name&&n.message==t.message;case aUe:case sUe:return n==t+"";case rUe:var c=ZVe;case oUe:var l=i&XVe;if(c||(c=JVe),n.size!=t.size&&!l)return!1;var u=s.get(n);if(u)return u==t;i|=QVe,s.set(n,t);var d=KVe(c(n),c(t),i,a,o,s);return s.delete(n),d;case lUe:if(w6)return w6.call(n)==w6.call(t)}return!1}var pUe=dUe,JV=gM,fUe=1,hUe=Object.prototype,mUe=hUe.hasOwnProperty;function gUe(n,t,r,i,a,o){var s=r&fUe,c=JV(n),l=c.length,u=JV(t),d=u.length;if(l!=d&&!s)return!1;for(var p=l;p--;){var f=c[p];if(!(s?f in t:mUe.call(t,f)))return!1}var h=o.get(n),m=o.get(t);if(h&&m)return h==t&&m==n;var g=!0;o.set(n,t),o.set(t,n);for(var y=s;++p<l;){f=c[p];var b=n[f],w=t[f];if(i)var S=s?i(w,b,f,t,n,o):i(b,w,f,n,t,o);if(!(S===void 0?b===w||a(b,w,r,i,o):S)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var k=n.constructor,$=t.constructor;k!=$&&"constructor"in n&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof $=="function"&&$ instanceof $)&&(g=!1)}return o.delete(n),o.delete(t),g}var vUe=gUe,x6=D4,yUe=qV,bUe=pUe,_Ue=vUe,XV=C0,QV=Jo,eU=I4,wUe=cM,xUe=1,tU="[object Arguments]",nU="[object Array]",G2="[object Object]",CUe=Object.prototype,rU=CUe.hasOwnProperty;function kUe(n,t,r,i,a,o){var s=QV(n),c=QV(t),l=s?nU:XV(n),u=c?nU:XV(t);l=l==tU?G2:l,u=u==tU?G2:u;var d=l==G2,p=u==G2,f=l==u;if(f&&eU(n)){if(!eU(t))return!1;s=!0,d=!1}if(f&&!d)return o||(o=new x6),s||wUe(n)?yUe(n,t,r,i,a,o):bUe(n,t,l,r,i,a,o);if(!(r&xUe)){var h=d&&rU.call(n,"__wrapped__"),m=p&&rU.call(t,"__wrapped__");if(h||m){var g=h?n.value():n,y=m?t.value():t;return o||(o=new x6),a(g,y,r,i,o)}}return f?(o||(o=new x6),_Ue(n,t,r,i,a,o)):!1}var SUe=kUe,TUe=SUe,iU=Ws;function aU(n,t,r,i,a){return n===t?!0:n==null||t==null||!iU(n)&&!iU(t)?n!==n&&t!==t:TUe(n,t,r,i,aU,a)}var oU=aU,EUe=D4,$Ue=oU,AUe=1,OUe=2;function DUe(n,t,r,i){var a=r.length,o=a,s=!i;if(n==null)return!o;for(n=Object(n);a--;){var c=r[a];if(s&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++a<o;){c=r[a];var l=c[0],u=n[l],d=c[1];if(s&&c[2]){if(u===void 0&&!(l in n))return!1}else{var p=new EUe;if(i)var f=i(u,d,l,n,t,p);if(!(f===void 0?$Ue(d,u,AUe|OUe,i,p):f))return!1}}return!0}var MUe=DUe,PUe=Zo;function IUe(n){return n===n&&!PUe(n)}var sU=IUe,RUe=sU,LUe=w0;function NUe(n){for(var t=LUe(n),r=t.length;r--;){var i=t[r],a=n[i];t[r]=[i,a,RUe(a)]}return t}var FUe=NUe;function BUe(n,t){return function(r){return r==null?!1:r[n]===t&&(t!==void 0||n in Object(r))}}var lU=BUe,jUe=MUe,zUe=FUe,VUe=lU;function UUe(n){var t=zUe(n);return t.length==1&&t[0][2]?VUe(t[0][0],t[0][1]):function(r){return r===n||jUe(r,n,t)}}var HUe=UUe,WUe=oU,GUe=sj,qUe=CR,YUe=K3,KUe=sU,ZUe=lU,JUe=Up,XUe=1,QUe=2;function eHe(n,t){return YUe(n)&&KUe(t)?ZUe(JUe(n),t):function(r){var i=GUe(r,n);return i===void 0&&i===t?qUe(r,n):WUe(t,i,XUe|QUe)}}var tHe=eHe;function nHe(n){return function(t){return t==null?void 0:t[n]}}var rHe=nHe,iHe=cy;function aHe(n){return function(t){return iHe(t,n)}}var oHe=aHe,sHe=rHe,lHe=oHe,cHe=K3,uHe=Up;function dHe(n){return cHe(n)?sHe(uHe(n)):lHe(n)}var pHe=dHe,fHe=HUe,hHe=tHe,mHe=X3,gHe=Jo,vHe=pHe;function yHe(n){return typeof n=="function"?n:n==null?mHe:typeof n=="object"?gHe(n)?hHe(n[0],n[1]):fHe(n):vHe(n)}var cU=yHe,bHe=X3,_He=AR,wHe=DR;function xHe(n,t){return wHe(_He(n,t,bHe),n+"")}var CHe=xHe,kHe=B4,SHe=Ws;function THe(n){return SHe(n)&&kHe(n)}var EHe=THe,$He=LVe,AHe=ER,OHe=cU,DHe=CHe,C6=EHe,MHe=Vz,PHe=DHe(function(n,t){var r=MHe(t);return C6(r)&&(r=void 0),C6(n)?$He(n,AHe(t,1,C6,!0),OHe(r)):[]}),IHe=PHe;const RHe=tn(IHe),k6="projects",{LOAD_PROJECT_NOTE:S6,DO_CREATE_PROJECT_NOTE:uU,DO_UPDATE_PROJECT_NOTE:dU,FORM_NEW_PROJECT_NOTE:LHe,FORM_EDIT_PROJECT_NOTE:pU,FORM_SUBMIT_PROJECT_NOTE:fU}=as,{SET_PROJECT_NOTES:hU,SET_PROJECT_NOTES_FETCHING:mU,SET_PROJECT_NOTES_POSTING:q2}=ya,{SET_FORM:gU}=ls,NHe={async[S6]({commit:n},{id:t}){try{if(n(mU,!0),!t)return;const{data:r}=await YCe(t);if(!r)return;n(hU,{projectNotes:[r]})}catch(r){this.handleError(r,{object:"projectNote",objectId:t,fallbackCode:"projectNote.get",action:`${k6}/${S6}`,actionPayload:arguments[1]})}finally{n(mU,!1)}},async[uU]({commit:n},{body:t}){try{n(q2,!0);const{data:r}=await KCe(t);return n(hU,{projectNotes:[r]}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("note")})}),r.id}catch(r){throw r}finally{n(q2,!1)}},async[dU]({commit:n,dispatch:t},{id:r,body:i}){try{return n(q2,!0),await ZCe(r,i),await t(S6,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("note")})}),r}catch(a){throw a}finally{n(q2,!1)}},[LHe]({commit:n},{projectId:t=null}){const r={ProjectId:t,text:""};n(`forms/${gU}`,{key:"projectNote",formData:r},{root:!0})},async[pU]({commit:n,state:t},{projectId:r}){try{const i=t.data[r].ProjectNote;n(`forms/${gU}`,{key:"projectNote",formData:i},{root:!0})}catch(i){this.handleError(i,{object:"projectNote",fallbackCode:"projectNote.edit",action:`${k6}/${pU}`,actionPayload:arguments[1]})}},async[fU]({rootGetters:n,dispatch:t}){try{const r=n["forms/getFormByKey"]("projectNote");let{id:i}=r;return i?await t(dU,{id:r.id,body:r}):i=await t(uU,{body:r}),i}catch(r){return this.handleError(r,{object:"projectNote",fallbackCode:"projectNote.submit",action:`${k6}/${fU}`}),null}}},Pg="projects",{LOAD_PROJECT_FILE:Y2,CREATE_PROJECT_FILE:vU,UPDATE_PROJECT_FILE:yU,DELETE_PROJECT_FILE:bU,PATCH_PROJECT_FILE:T6}=pj,FHe={async[Y2](n,{id:t}){try{const{data:r}=await UCe(t);return await this.dispatch(He.SET_AS_NORMALIZED_DATA,{data:[r],schema:"projectFiles"}),!0}catch(r){return this.handleError(r,{object:"projectFile",objectId:t,fallbackCode:"projectFile.get",action:`${Pg}/${Y2}`,actionPayload:arguments[1]}),!1}},async[vU](n,{projectId:t,fileId:r}){try{if(typeof t>"u")throw new Error("Missing parameter projectId");if(typeof r>"u")throw new Error("Missing parameter fileId");const{data:i}=await HCe({ProjectId:t,FileId:r});return await this.dispatch(He.SET_AS_NORMALIZED_DATA,{data:[i],schema:"projectFiles"}),i.id}catch(i){return this.handleError(i,{object:"projectFile",fallbackCode:"projectFile.post",action:`${Pg}/${vU}`,actionPayload:arguments[1]}),null}},async[yU]({dispatch:n},{id:t,body:r}){try{return await WCe(t,r),await n(Y2,{id:t}),t}catch(i){return this.handleError(i,{object:"projectFile",objectId:t,fallbackCode:"projectFile.put",action:`${Pg}/${yU}`,actionPayload:arguments[1]}),null}},async[bU]({commit:n,getters:t},{projectId:r,id:i}){try{const a=t.byId(r);if(a){const o=a.files.find(c=>c.id===i),{FileId:s}=o;this.dispatch(He.DELETE_FILE,{id:s})}return await GCe(i),n(c2.DELETE_PROJECT_FILE,{projectId:r,id:i}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("file")}),actions:{undo:()=>{this.dispatch(`projects/${T6}`,{id:i,projectId:r})}}}),i}catch(a){return this.handleError(a,{object:"projectFile",objectId:i,fallbackCode:"projectFile.delete",action:`${Pg}/${bU}`,actionPayload:arguments[1]}),null}},async[T6]({dispatch:n,getters:t},{projectId:r,id:i}){try{await qCe(i),await n(Y2,{id:i});const a=t.byId(r);if(a){const o=a.files.find(c=>c.id===i),{FileId:s}=o;await this.dispatch(He.PATCH_FILE,{id:s})}return i}catch(a){return this.handleError(a,{object:"file",objectId:i,fallbackCode:"file.patch",action:`${Pg}/${T6}`,actionPayload:arguments[1]}),null}}},{LOAD_EVENTS_FOR_PROJECT:BHe}=as,{SET_EVENTS:jHe}=ya,zHe={async[BHe]({commit:n},{id:t}){const{data:r}=await ri.get(`/project/${t}/event`);return!r||r.length<=0?!1:(n(jHe,{events:r}),!0)}},xa="projects",{LOAD_PROJECT:E6,LOAD_PROJECTS:_U,DO_LOAD_PROJECT:wU,DO_LOAD_PROJECTS:K2,DO_LOAD_PROJECTS_COUNT:VHe,LOAD_PROJECTS_FOR_CLIENT:xU,LOAD_PROJECTS_FOR_USER:CU,LOAD_PUBLIC_PROJECT:kU,CREATE_PROJECT:UHe,CREATE_DEMOPROJECT:SU,UPDATE_PROJECT:TU,DELETE_PROJECT:EU,PATCH_PROJECT:$6,DO_SUBMIT_PROJECT:$U,SUBMIT_PROJECT:AU,SUBMIT_PROJECT_MEMBER:A6,DELETE_PROJECT_MEMBER:O6,SET_PROJECT_LEADER:OU,SET_PROJECT_FILTER:HHe,SET_PROJECT_SORT:WHe,SET_QUICKVIEW_PROJECT:D6,CLEAR_PROJECTS:GHe}=as,{UPDATE_VIEW_SETTINGS:qHe,DO_UPDATE_SETTINGS:M6,DO_LOAD_CURRENT_COMPANY:YHe}=He,{CLEAR_PROJECT_DATA:KHe,SET_PROJECTS_POSTING:dr,SET_PROJECTS_FETCHING:Qu,DELETE_MANY_PROJECTS:ZHe}=ya,JHe={...NHe,...zHe,...FHe,async[K2]({commit:n,state:t,rootState:r},i={}){try{const a={clearOld:!1,start:i.end?0:void 0,end:void 0,sort:void 0,order:void 0,force:!1,filter:void 0,...i},{canFetchMore:o}=t;let s=!!o;if(a.clearOld&&(s=!0),t.isFetching&&!a.force||cn(a.start)==="number"&&cn(a.end)==="number"&&!s&&!a.force)return;n(Qu,!0);const{data:c}=await zR({start:a.start,end:a.end,sort:a.sort,order:a.order,filter:a.filter});let l={};c.forEach(({cachedDocuments:f})=>{if(f){const h=Object.keys(f.documents).reduce((m,g)=>({...m,[g]:{id:g,data:{name:f.documents[g].name,clients:[{name:Ce(f,`documents[${g}].firstClient.name`,""),type:Ce(f,`documents[${g}].firstClient.type`),addresses:Ce(f,`documents[${g}].firstClient.addresses`)}]},status:f.documents[g].status}}),{});l={...l,...h}}});const u=r.documents2.ids,d=RHe(Object.keys(l),u);this.commit("documents2/SET_DOCUMENTS2",{data:d.map(f=>l[f])}),a.clearOld&&n(KHe),this.dispatch(Uu,{data:c,schema:"projects"}),s=!((cn(a.start)==="number"&&cn(a.end)==="number"?a.end-a.start:0)>c.length),n(ya.SET_PROJECTS_CAN_FETCH_MORE,s)}catch(a){throw a}finally{n(Qu,!1)}},async[VHe]({commit:n}){try{n(Qu,!0);const{data:t}=await ri.get("/project/counts");n(ya.SET_PROJECTS_COUNT,{data:t})}catch(t){throw t}finally{n(Qu,!1)}},async[_U]({dispatch:n},t={}){try{await n(K2,t)}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.get",action:`${xa}/${_U}`,actionPayload:arguments[1]})}},async[E6]({dispatch:n},{id:t}){try{await n(wU,{id:t})}catch(r){this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.get",action:`${xa}/${E6}`,actionPayload:arguments[1]})}},async[wU]({commit:n},{id:t}){try{n(Qu,!0);const r=[],{data:i}=await PCe(t);return i&&r.push(i),this.dispatch(Uu,{data:r,schema:"projects"}),n(Qu,!1),i}catch(r){throw n(Qu,!1),r}},async[xU]({dispatch:n},{id:t}){try{await n(K2,{filter:{clientEndCustomerIds:{[t]:"contains"}}})}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.get",action:`${xa}/${xU}`,actionPayload:arguments[1]})}},async[CU]({dispatch:n},{id:t}){try{await n(K2,{filter:{CompanyUserId:{[t]:!0}}})}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.get",action:`${xa}/${CU}`,actionPayload:arguments[1]})}},async[kU](n,t){try{const{data:r}=await ri.get(`/project/public/${t}`);this.dispatch(Uu,{data:r,schema:HRe})}catch(r){this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.get",action:`${xa}/${kU}`,actionPayload:arguments[1]})}},async[UHe]({dispatch:n,commit:t,rootGetters:r},{body:i}){try{t(dr,!0);const{data:a}=await MCe(i);return await n(as.LOAD_PROJECT,{id:a.id}),r["application/companyAccountType"]==="free"&&this.dispatch(YHe),t(dr,!1),Promise.resolve(a.id)}catch(a){return t(dr,!1),Promise.reject(a)}},async[SU]({dispatch:n,commit:t}){try{t(dr,!0);const{data:r}=await NCe(),{id:i}=r;return this.dispatch(M6,{key:"company",settings:[{name:"demoProjectId",value:i}]}),await n(as.LOAD_PROJECT,{id:i}),t(dr,!1),i}catch(r){return this.handleError(r,{object:"project",fallbackCode:"project.demo",action:`${xa}/${SU}`,actionPayload:arguments[1]}),null}finally{t(dr,!1)}},async[TU]({dispatch:n,commit:t},{id:r,body:i}){try{return t(dr,!0),await ICe(r,i),await n(as.LOAD_PROJECT,{id:r}),t(dr,!1),r}catch(a){throw t(dr,!1),a}},async[EU]({commit:n,dispatch:t},{id:r}){try{return n(dr,!0),await LCe(r),n(ZHe,r),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("project")}),actions:{undo:()=>{this.dispatch(`projects/${$6}`,{id:r})}}}),t(D6,{id:null}),n(dr,!1),!0}catch(i){return n(dr,!1),this.handleError(i,{object:"project",objectId:r,fallbackCode:"project.delete",action:`${xa}/${EU}`,actionPayload:arguments[1]}),!1}},async[$6]({dispatch:n},{id:t}){try{return await RCe(t),await n(E6,{id:t}),t}catch(r){return this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.patch",action:`${xa}/${$6}`,actionPayload:arguments[1]}),!1}},async[D6]({commit:n},{id:t}){try{return this.dispatch(qHe,{view:"projectList",settings:{quickViewProjectId:t}}),t}catch(r){return n(dr,!1),this.handleError(r,{object:"project",objectId:t,fallbackCode:"project.quickview",action:`${xa}/${D6}`,actionPayload:arguments[1]}),!1}},async[OU]({dispatch:n,commit:t,getters:r},{projectId:i,companyUserId:a}){try{t(dr,!0);const o=r.byId(i).getProperty("CompanyUserId");return await n(TU,{id:i,body:{CompanyUserId:a}}),await n(O6,{projectId:i,companyUserId:a}),await n(A6,{projectId:i,companyUserId:o}),t(dr,!1),!0}catch(o){return t(dr,!1),this.handleError(o,{object:"project",objectId:i,fallbackCode:"project.projectLeader",action:`${xa}/${OU}`,actionPayload:arguments[1]}),!1}},async[$U]({dispatch:n},{data:t}){let{id:r}=t;return r?await n(as.UPDATE_PROJECT,{id:t.id,body:t}):r=await n(as.CREATE_PROJECT,{body:t}),await n(as.LOAD_PROJECT,{id:r}),r},async[AU]({dispatch:n},t){try{await n($U,t)}catch(r){this.handleError(r,{object:"project",fallbackCode:"project.post",action:`${xa}/${AU}`,actionPayload:arguments[1]})}return!0},async[A6]({commit:n},{projectId:t,companyUserId:r}){try{return n(dr,!0),await Mke(t,r),n(ya.ADD_PROJECT_MEMBER,{projectId:t,companyUserId:r}),n(dr,!1),!0}catch(i){return n(dr,!1),this.handleError(i,{object:"project",objectId:t,fallbackCode:"project.member.post",action:`${xa}/${A6}`,actionPayload:arguments[1]}),!1}},async[O6]({commit:n},{projectId:t,companyUserId:r}){try{return n(dr,!0),await Pke(t,r),n(ya.DELETE_PROJECT_MEMBER,{projectId:t,companyUserId:r}),n(dr,!1),!0}catch(i){return n(dr,!1),this.handleError(i,{object:"project",objectId:t,fallbackCode:"project.member.delete",action:`${xa}/${O6}`,actionPayload:arguments[1]}),!1}},async[HHe](n,t){const r=JSON.stringify(t);await this.dispatch(M6,{key:"companyUser",settings:[{name:"projectListFilter",value:r}]})},async[WHe](n,t){const r=JSON.stringify(t);await this.dispatch(M6,{key:"companyUser",settings:[{name:"projectListSort",value:r}]})},[GHe]({commit:n}){n(ya.CLEAR_PROJECT_DATA),n(ya.SET_PROJECTS_CAN_FETCH_MORE,!0)}},{SET_PROJECT_NOTES:XHe,SET_PROJECT_NOTES_FETCHING:QHe,SET_PROJECT_NOTES_POSTING:eWe}=ya,tWe={[XHe](n,{projectNotes:t=[]}){t.forEach(r=>{const{ProjectId:i}=r;return!i||!n.data[i]?!1:(Fe.set(n.data[i],"ProjectNote",r),!0)})},[QHe](n,t){n.isFetchingProjectNotes=t},[eWe](n,t){n.isPostingProjectNotes=t}},{SET_EVENTS:nWe}=ya,rWe={[nWe](n,{events:t=[]}){t.forEach(r=>{const{ProjectId:i}=r;if(!i||!n.data[i])return!1;let a=[];n.data[i].Events?a=n.data[i].Events:Fe.set(n.data[i],"Events",a);const o=a.findIndex(s=>s.id===r.id);return o!==-1?a[o]=Object.assign(a[o],r):a.push(r),!0})}},iWe={[c2.SET_PROJECT_FILES](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a projectFile or an array of projectFiles!");(Array.isArray(t)?t:[t]).forEach(i=>{const{ProjectId:a}=i;if(!a||!n.data[a])return!1;let o=[];n.data[a].ProjectFiles?o=n.data[a].ProjectFiles:Fe.set(n.data[a],"ProjectFiles",o);const s=o.findIndex(c=>c.id===i.id);return s!==-1?o[s]=Object.assign(o[s],i):o.push(i),!0})},[c2.DELETE_PROJECT_FILE](n,{projectId:t,id:r}){if(!t||!n.data[t])return!1;const i=n.data[t].ProjectFiles;if(i&&Array.isArray(i)){const a=i.findIndex(o=>o.id===r);a!==-1&&i.splice(a,1)}return!0}},{SET_PROJECTS:aWe,CLEAR_PROJECT_DATA:oWe,DELETE_MANY_PROJECTS:sWe,ADD_PROJECT_MEMBER:lWe,DELETE_PROJECT_MEMBER:cWe,SET_PROJECTS_FETCHING:uWe,SET_PROJECTS_POSTING:dWe,SET_PROJECTS_CAN_FETCH_MORE:pWe,SET_PROJECTS_COUNT:fWe}=ya,hWe={...tWe,...rWe,...iWe,updateField:ff,[aWe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a project or an array of projects!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[oWe](n){Object.assign(n,{data:{},ids:[],projectPublicIdToId:{}})},[sWe](n,t){(Array.isArray(t)?t:[t]).forEach(i=>{if(!n.data[i])return;const{publicId:a}=n.data[i];Fe.delete(n.data,i),n.ids=n.ids.filter(o=>o!==i),Fe.delete(n.projectPublicIdToId,a)})},[lWe](n,{projectId:t,companyUserId:r}){if(!t)throw Error("Cannot add member as no projectId is defined");if(!r)throw Error("Cannot add member as no companyUserId is defined");if(!n.data[t])return!1;let i=[];n.data[t].ProjectMembers?i=n.data[t].ProjectMembers:Fe.set(n.data[t],"ProjectMembers",i);const a=i.findIndex(o=>o===r);return a!==-1?i[a]=r:i.push(r),!0},[cWe](n,{projectId:t,companyUserId:r}){if(!t)throw Error("Cannot delete member as no projectId is defined");if(!r)throw Error("Cannot delete member as no companyUserId is defined");if(!n.data[t])return!1;let i=[];n.data[t].ProjectMembers?i=n.data[t].ProjectMembers:Fe.set(n.data[t],"ProjectMembers",i);const a=i.findIndex(o=>o===r);return a!==-1&&i.splice(a,1),!0},[uWe](n,t){n.isFetching=t},[dWe](n,t){n.isPosting=t},[pWe](n,t){n.canFetchMore=t},[fWe](n,{data:t={}}){if(typeof t!="object"||Array.isArray(t))throw Error("Data must be an object!");const r={};Object.keys(t).forEach(i=>{r[i]=t[i]||0}),n.count=r}},mWe={id:{$default:null,$type:Number,$scope:["project","offer","contract"]},name:{$default:"",$type:String,$scope:["project","offer","contract"]},isDemo:{$default:!1,$type:Boolean,$scope:["project"]},externalId:{$default:"",$type:Number},publicId:{$default:null,$type:String},projectNumber:{$default:null,$type:Number},CompanyId:{$default:null,$type:"ref",$ref:"companies"},CompanyUserId:{$default:null,$type:"ref",$ref:"companyUsers"},ProjectMembers:[{$type:"ref",$ref:"companyUsers"}],ProjectSettings:{$default:[],$type:Array,$scope:["project","offer","contract"]},status:{$default:"new",$type:String},createdAt:{$default:null,$type:Date},updatedAt:{$default:null,$type:Date},deletedAt:{$default:null,$type:Date}},F9=class{constructor(t,r,i){if(!t)throw Error("First arg. id is required");if(!r)throw Error("Seccond arg. getters is required");this._getters=r,this._project=t,this._documents=[]}get id(){return this._project.id}getId(){const{id:t}=this.getProject()||{};return t||null}getProject(){const{_project:t}=this;return t||null}get documents(){if(!this.documentIds.length)return[];let t=[];const r=Ce(this._project,"cachedDocuments.mainDocument.id");return this.documentIds.forEach(i=>{const a=this._getters["documents2/byId"](i);a&&(a.id===r?t=[a,...t]:t.push(a))}),t}get cachedDocumentsInfo(){let t=[];const{cachedDocuments:r}=this._project;if(!r)return[];const{documents:i={},mainDocument:a={}}=r;return Object.keys(i).forEach(o=>{const s=i[o];s&&(s.id===a.id?t=[s,...t]:t.push(s))}),t}get documentIds(){const{cachedDocuments:t}=this._project;if(!t)return[];const{documents:r}=t;return r?Object.keys(r):[]}get invoices(){return this._getters["invoices/byProjectId"](this.getId())||[]}get events(){return this._project.Events||[]}get creatorId(){return this._project.CompanyUser}get creator(){const{_getters:t}=this,{CompanyUser:r}=this.getProject()||{};return t["companyUsers/byId"](r)}get name(){return this._project.name}get status(){return this._project.status}get subStatus(){const{status:t,mainDocument:r}=this;return["offer","contract"].includes(t)&&r?r.status:null}get clients(){const t=[];return this.documents.reduce((i,a)=>(a.clients.forEach(o=>{t.includes(o.endCustomerId)||(t.push(o.endCustomerId),i.push(o))}),i),[])}get mainDocument(){return this.documents[0]}get currency(){return Ce(this,"mainDocument.currency",null)}get members(){const{_getters:t}=this,{ProjectMembers:r=[]}=this.getProject()||{};return r.map(a=>t["companyUsers/byId"](a))}get projectNumber(){return this._project.projectNumber}get note(){return this._project.ProjectNote}get files(){return this._project.ProjectFiles}get firstClientName(){return this._project.firstClientName}get firstClientStreet(){return this._project.firstClientStreet}get prices(){const t={types:[],subTotal:0,taxAmount:0,total:0,maxTotal:0,invoicedAmount:0,paidAmount:0,hasDeductions:!1,currency:this.currency};if(!this.documents.length)return t;this.documents.forEach(i=>{t.types=[...new Set([...t.types,...i.prices.type])],!(t.currency&&t.currency!==i.currency)&&(t.subTotal+=i.prices.subTotal,t.taxAmount+=i.prices.taxAmount,t.total+=i.prices.total,t.maxTotal+=i.prices.maxTotal,i.prices.region&&i.prices.region.houseWorkAmount&&(t.hasDeductions=!0))});const{invoices:r}=this;return r.forEach(i=>{t.invoicedAmount+=i.totalAmount,t.paidAmount+=i.paidAmount}),t}get isDemo(){return this.getProperty("isDemo")}getProperty(t=""){return t.replace(/\[(.*)\]/ig,(a,o)=>`.${o}`).split(".").reduce((a,o)=>a&&(typeof a[o]!="object",a[o]),this._project)}getProperties({scope:t=null}={}){let r=t;typeof r=="string"&&(r=[r]);const{schema:i}=F9,a={};i&&Object.keys(i).map(s=>(i[s].$default!=="undefined"&&(a[s]=i[s].$default),!0));const o=Object.assign({},a,this._project);return i&&r&&Array.isArray(r)&&Object.keys(i).map(s=>i[s].$scope?(r.some(l=>i[s].$scope.indexOf(l)>=0)||delete o[s],!0):(delete o[s],!0)),JSON.parse(JSON.stringify(o))}};let ed=F9;$n(ed,"schema",mWe),$n(ed,"statuses",{new:{statusText:"Utkast",statusClass:"draft"},sent:{statusText:"Skickad",statusClass:"sent"},denied:{statusText:"Nekad",statusClass:"denied"},accepted:{statusText:"Accepterad",statusClass:"accepted"},signed:{statusText:"Signerad",statusClass:"accepted"},semiSigned:{statusText:"Delsignerad",statusClass:"accepted"},active:{statusText:"Pågående",statusClass:"active"},completed:{statusText:"Klar",statusClass:"completed"},archived:{statusText:"Arkiverad",statusClass:"archived"}});const gWe={getField:yg,...{isPostingProjectNote:n=>n.isPostingProjectNotes,isFetchingProjectNote:n=>n.isFetchingProjectNotes},byId:(n,t,r,i)=>a=>n.data[a]?new ed(n.data[a],i):null,projectIdsByClientId:n=>t=>n.ids.filter(r=>{const i=Ce(n.data[r],"clientEndCustomerIds","");return i?i.split(",").includes(`${t}`):!1}),projectIdsOwnedByUserId:(n,t)=>r=>n.ids.filter(i=>{const a=t.byId(i);if(!a)return!1;const o=a.getProperty("CompanyUserId");return o?o===r:!1}),projects:(n,t,r,i)=>n.ids.map(a=>new ed(n.data[a],i)),projectByPublicId:(n,t,r,i)=>a=>{const o=n.projectPublicIdToId[a];return o?new ed(n.data[o],i):null},projectsByStatus:(n,{projects:t})=>r=>t.filter(i=>i.status===r),filter:(n,t,r,i)=>{const a=i["settings/getCompanyUserSetting"]("projectListFilter");let o={};return a?o=JSON.parse(a):o={or:{docStatuses:{draft:"contains",sent:"contains",accepted:"contains",denied:"contains",expired:"contains",voided:"contains"},status:{active:!0,completed:!0}}},Ce(o,"or.docStatuses.sent")?Ur(o,"or.docStatuses.voided","contains"):Hz(o,"or.docStatuses.voided"),o},sort:(n,t,r,i)=>{const a=i["settings/getCompanyUserSetting"]("projectListSort");return a?JSON.parse(a):{sort:"updatedAt",order:"DESC"}},isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,canFetchMore:n=>n.canFetchMore,count:n=>n.count},vWe={namespaced:!0,state:iVe,getters:gWe,actions:JHe,mutations:hWe},yWe={data:{},ids:[],isPosting:!1,isFetching:!1},wf="templates",{DO_LOAD_TEMPLATE:Ig,DO_LOAD_TEMPLATES:DU,LOAD_TEMPLATE:MU,LOAD_TEMPLATES:PU,DO_UPDATE_TEMPLATE:IU,DO_CREATE_TEMPLATE:RU,UPDATE_TEMPLATE:LU,REMOVE_TEMPLATE:NU,DELETE_TEMPLATE:P6,PATCH_TEMPLATE:I6,HIDE_TEMPLATE:R6,DUPLICATE_PROTECTED_TEMPLATE:FU}=xj,{SET_TEMPLATE_POSTING:ps,SET_TEMPLATE_FETCHING:Z2,SET_TEMPLATES:BU,DELETE_MANY_TEMPLATES:bWe}=sS,_We={async[Ig]({commit:n},{id:t,params:r={}}){try{n(Z2,!0);const{data:i}=await Du.get(t,r);n(BU,{data:[i]})}catch(i){throw i}finally{n(Z2,!1)}},async[DU]({commit:n},t={}){try{n(Z2,!0);const{data:r}=await Du.get(null,t),{items:i}=r;n(BU,{data:i})}catch(r){throw r}finally{n(Z2,!1)}},async[PU]({dispatch:n},t={}){try{await n(DU,t)}catch(r){this.handleError(r,{object:"template",fallbackCode:"template.getMany",action:`${wf}/${PU}`})}},async[MU]({dispatch:n},{id:t}){try{await n(Ig,{id:t})}catch(r){this.handleError(r,{object:"template",fallbackCode:"template.getOne",action:`${wf}/${MU}`,actionPayload:arguments[1]})}},async[RU]({commit:n,dispatch:t},{body:r,showMessage:i=!0}){try{n(ps,!0);const{data:a}=await Du.post(r),{id:o}=a;return await t(Ig,{id:o}),i&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("template")})}),o}catch(a){throw a}finally{n(ps,!1)}},async[IU]({dispatch:n,commit:t},{id:r,body:i}){try{return t(ps,!0),await Du.put(r,i),await n(Ig,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("template")})}),r}catch(a){throw a}finally{t(ps,!1)}},async[LU]({dispatch:n},{id:t,body:r}){try{switch(r.onModify){case"update":return await n(IU,{id:t,body:r}),t;case"create":return n(FU,{body:r,doHide:r.doConsumeDocumentQuota});default:throw new Error("Invalid onModify value")}}catch(i){return this.handleError(i,{object:"template",objectId:t,fallbackCode:"template.put",action:`${wf}/${LU}`,actionPayload:arguments[1]}),null}},async[NU]({dispatch:n},{template:t}){try{const{id:r}=t;switch(t.onModify){case"update":return n(P6,{id:r});case"create":return await n(R6,{id:r}),r;default:throw new Error("Invalid onModify value")}}catch(r){return this.handleError(r,{object:"template",objectId:t==null?void 0:t.id,fallbackCode:"template.remove",action:`${wf}/${NU}`}),null}},async[P6]({commit:n},{id:t}){try{return n(ps,!0),await Du.delete(t),n(bWe,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("template")}),actions:{undo:()=>{this.dispatch(`templates/${I6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"templates",objectId:t,fallbackCode:"documentTemplate.delete",action:`${wf}/${P6}`,actionPayload:arguments[1]}),null}finally{n(ps,!1)}},async[I6]({commit:n,dispatch:t},{id:r}){try{return n(ps,!0),await Du.patch(r),await t(Ig,{id:r}),r}catch(i){return this.handleError(i,{object:"templates",objectId:r,fallbackCode:"documentTemplate.patch",action:`${wf}/${I6}`,actionPayload:arguments[1]}),null}finally{n(ps,!1)}},async[R6]({rootGetters:n},{id:t}){if(!t)return;const r=n["settings/getCompanySetting"]("templateHiddenIds")||[];r.push(t),await this.dispatch(He.UPDATE_SETTINGS,{key:"company",settings:{templateHiddenIds:r}})},async[FU]({commit:n,dispatch:t},{body:r,doHide:i}){try{n(ps,!0);const a=es(r,["_id","id","companyId"]),o=await t(RU,{body:a});return i&&await t(R6,{id:r.id}),o}catch(a){throw a}finally{n(ps,!1)}}},{SET_TEMPLATES:wWe,SET_TEMPLATE_FETCHING:xWe,SET_TEMPLATE_POSTING:CWe,DELETE_MANY_TEMPLATES:kWe}=sS,SWe={[wWe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a template or an array of templates!");const r=Array.isArray(t)?t:[t],i=[];r.forEach(a=>{a.id&&(n.ids.includes(a.id)||i.push(a.id),Fe.set(n.data,a.id,a))}),n.ids=qi([...i,...n.ids])},[xWe](n,t){n.isFetching=t},[CWe](n,t){n.isPosting=t},[kWe](n,t){(Array.isArray(t)?t:[t]).forEach(i=>{n.data[i]&&(Fe.delete(n.data,i),n.ids=n.ids.filter(a=>a!==i))})}},TWe={namespaced:!0,state:yWe,getters:{byId:n=>t=>n.data[t]?new il(n.data[t]):null,idList:n=>n.ids,isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,hiddenTemplateIds:(n,t,r,i)=>i["settings/getCompanySetting"]("templateHiddenIds")||[],availableTemplates:(n,t)=>{const{idList:r,hiddenTemplateIds:i}=t;return r.filter(o=>!i.includes(o)).map(o=>new il(n.data[o]))},hiddenTemplates:(n,t)=>{const{idList:r,hiddenTemplateIds:i}=t;return i.filter(o=>r.includes(o)).map(o=>new il(n.data[o]))}},actions:_We,mutations:SWe},EWe={data:{},ids:[],isPosting:!1,isFetching:!1},ll="templateMessages",{FORM_RESET_OLD:$We}=He,{LOAD_TEMPLATE_MESSAGES:jU,LOAD_TEMPLATE_MESSAGE:L6,CREATE_TEMPLATE_MESSAGE:zU,UPDATE_TEMPLATE_MESSAGE:VU,DELETE_TEMPLATE_MESSAGE:UU,PATCH_TEMPLATE_MESSAGE:N6,FORM_NEW_TEMPLATE_MESSAGE:HU,FORM_EDIT_TEMPLATE_MESSAGE:WU,FORM_SUBMIT_TEMPLATE_MESSAGE:GU}=uf,{SET_TEMPLATE_MESSAGES:F6,SET_TEMPLATE_MESSAGES_POSTING:mc,SET_TEMPLATE_MESSAGES_FETCHING:J2}=oS,AWe={async[jU]({commit:n}){try{n(J2,!0);const{data:t}=await lke();return n(F6,{data:t}),!0}catch(t){return this.handleError(t,{object:"templateMessage",fallbackCode:"templateMessage.getAll",action:`${ll}/${jU}`,actionPayload:arguments[1]}),!1}finally{n(J2,!1)}},async[L6]({commit:n},{id:t}){try{n(J2,!0);const{data:r}=await cke(t);return n(F6,{data:r}),!0}catch(r){return this.handleError(r,{object:"templateMessage",objectId:t,fallbackCode:"templateMessage.get",action:`${ll}/${L6}`,actionPayload:arguments[1]}),!1}finally{n(J2,!1)}},async[zU]({commit:n},{body:t}){try{n(mc,!0);const{data:r}=await uke(t);return n(F6,{data:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("template")})}),r.id}catch(r){return this.handleError(r,{object:"templateMessage",fallbackCode:"templateMessage.post",action:`${ll}/${zU}`,actionPayload:arguments[1]}),null}finally{n(mc,!1)}},async[VU]({dispatch:n,commit:t},{id:r,body:i}){try{return t(mc,!0),await dke(r,i),await n(uf.LOAD_TEMPLATE_MESSAGE,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("template")})}),r}catch(a){return this.handleError(a,{object:"templateMessage",objectId:r,fallbackCode:"templateMessage.put",action:`${ll}/${VU}`,actionPayload:arguments[1]}),!1}finally{t(mc,!1)}},async[UU]({commit:n},{id:t}){try{return n(mc,!0),await pke(t),n(oS.DELETE_TEMPLATE_MESSAGE,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("template")}),actions:{undo:()=>{this.dispatch(`templateMessages/${N6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"templateMessage",objectId:t,fallbackCode:"templateMessage.delete",action:`${ll}/${UU}`,actionPayload:arguments[1]}),!1}finally{n(mc,!1)}},async[N6]({dispatch:n,commit:t},{id:r}){try{return t(mc,!0),await fke(r),await n(L6,{id:r}),r}catch(i){return this.handleError(i,{object:"templateMessage",objectId:r,fallbackCode:"templateMessage.patch",action:`${ll}/${N6}`,actionPayload:arguments[1]}),null}finally{t(mc,!1)}},async[HU]({commit:n}){try{const t={name:"",message:""};n(`forms/${$t.SET_FORM}`,{key:"templateMessage",formData:t},{root:!0})}catch(t){this.handleError(t,{object:"templateMessage",fallbackCode:"templateMessage.new",action:`${ll}/${HU}`,actionPayload:arguments[1]})}},async[WU]({commit:n,state:t},{id:r}){try{const i=t.data[r];return n(`forms/${$t.SET_FORM}`,{key:"templateMessage",formData:i},{root:!0}),r}catch(i){return this.handleError(i,{object:"templateMessage",objectId:r,fallbackCode:"templateMessage.edit",action:`${ll}/${WU}`,actionPayload:arguments[1]}),null}},async[GU]({rootGetters:n,dispatch:t}){try{const r=n["forms/getFormByKey"]("templateMessage");let{id:i}=r;return i?await t(uf.UPDATE_TEMPLATE_MESSAGE,{id:r.id,body:r}):i=await t(uf.CREATE_TEMPLATE_MESSAGE,{body:r}),t(uf.LOAD_TEMPLATE_MESSAGE,{id:i}),await this.dispatch($We,"templateMessage"),i}catch(r){return this.handleError(r,{object:"templateMessage",fallbackCode:"templateMessage.submit",action:`${ll}/${GU}`,actionPayload:arguments[1]}),null}}},{SET_TEMPLATE_MESSAGES:OWe,DELETE_TEMPLATE_MESSAGE:DWe,CLEAR_TEMPLATE_MESSAGES:MWe,SET_TEMPLATE_MESSAGES_FETCHING:PWe,SET_TEMPLATE_MESSAGES_POSTING:IWe}=oS,RWe={[OWe](n,{data:t}){if(typeof t!="object")throw Error("Data must be a company user or an array of company users!");const r=Array.isArray(t)?t:[t],i=[],a={};r.forEach(o=>{a[o.id]=o,i.push(o.id)}),ba(n.data,a),n.ids=qi([...i,...n.ids])},[DWe](n,t){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[MWe](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[])},[PWe](n,t){n.isFetching=t},[IWe](n,t){n.isPosting=t}},LWe={namespaced:!0,state:EWe,getters:{isPosting:n=>n.isPosting,isFetching:n=>n.isFetching},actions:AWe,mutations:RWe},NWe={data:{},ids:[],isFetching:!1,isPosting:!1},xf="documents2",{DELETE_DOCUMENT2:qU,DO_CREATE_DOCUMENT2:FWe,DO_LOAD_DOCUMENT2:td,DO_LOAD_DOCUMENTS2:YU,DO_UPDATE_DOCUMENT2:X2,LOAD_DOCUMENT2:KU,LOAD_DOCUMENTS2:B6,LOAD_DOCUMENTS2_EXTERNAL:BWe,PATCH_DOCUMENT2:j6,UPDATE_DOCUMENT2:ZU,UPDATE_DOCUMENT2_STATUS:JU,DO_SEND_DOCUMENT2:jWe,SEND_REMINDER_DOCUMENT2:zWe,REQUEST_PROPERTY_DOCUMENT2:VWe,CLEAR_DOCUMENT2_ANSWERS:XU,ANSWER_OWN_DOCUMENT2:UWe}=mj,{DELETE_MANY_DOCUMENTS2:HWe,SET_DOCUMENT2_POSTING:bi,SET_DOCUMENT2_FETCHING:Q2,SET_DOCUMENTS2:QU}=rS,{SHOW_MESSAGE:WWe,DO_LOAD_CURRENT_COMPANY:GWe}=He,qWe={async[td]({commit:n},{id:t,emit:r=!1}){try{n(Q2,!0);const{data:i}=await Ki.get(t);r&&Pr.trigger("document:watch",i),n(QU,{data:[i]})}catch(i){throw i}finally{n(Q2,!1)}},async[YU]({commit:n},t={}){try{n(Q2,!0);const{data:r}=await Ki.getAll(t),{items:i}=r;n(QU,{data:i})}catch(r){throw r}finally{n(Q2,!1)}},async[B6]({dispatch:n},t={isHidden:!1}){try{await n(YU,t)}catch(r){this.handleError(r,{object:"document2",fallbackCode:"document2.getMany",action:`${xf}/${B6}`})}},async[BWe]({dispatch:n},{service:t,type:r=null,typeId:i=null}){if(typeof t>"u")throw new Error("Missing param service");await n(B6,{isHidden:!1,returnType:"template","externalReferences.service":t,...r&&{"externalReferences.type":r},...i&&{"externalReferences.typeId":i}})},async[KU]({dispatch:n},{id:t,emit:r}){try{await n(td,{id:t,emit:r})}catch(i){this.handleError(i,{object:"document2",fallbackCode:"document2.getOne",action:`${xf}/${KU}`,actionPayload:arguments[1]})}},async[FWe]({rootGetters:n,commit:t,dispatch:r},{body:i}){try{t(bi,!0);const{data:a}=await Ki.post(i),{id:o}=a;return await r(td,{id:o}),Pr.trigger("document:create",a),Pr.trigger("document:save",a),n["application/companyAccountType"]==="free"&&await this.dispatch(GWe),o}catch(a){throw a}finally{t(bi,!1)}},async[jWe]({state:n,commit:t},{id:r}){try{t(bi,!0),await Ki.send(r),Pr.trigger("document:send",n.data[r]),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("sentThing",{thing:Be.t("document")}),omit:"$view:extension,$view:widget"})}catch(i){throw i}finally{t(bi,!1)}},async[zWe]({commit:n},{id:t,body:r={}}){try{const i={views:{sms:{nodes:[{nodeId:1,parentId:null,itemId:"smsText",itemType:"smsText",value:{text:"data.smsTemplate.reminder.text"}}]},email:{nodes:[{nodeId:1,parentId:null,itemId:"emailTemplate",itemType:"emailTemplate",value:{subject:"data.emailTemplate.reminder.subject",title:"data.emailTemplate.reminder.title",content:"data.emailTemplate.reminder.content",text:"data.emailTemplate.reminder.text"}}]}}};n(bi,!0),await Ki.send(t,{...i,...r,sendSource:"reminder"}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("sentThing",{thing:Be.t("reminder")})})}catch(i){throw i}finally{n(bi,!1)}},async[VWe]({commit:n},{id:t,body:r={}}){try{const i={views:{sms:{nodes:[{nodeId:1,parentId:null,itemId:"smsText",itemType:"smsText",value:{text:"data.smsTemplate.propertyDesignation.text"}}]},email:{nodes:[{nodeId:1,parentId:null,itemId:"emailTemplate",itemType:"emailTemplate",value:{subject:"data.emailTemplate.propertyDesignation.subject",title:"data.emailTemplate.propertyDesignation.title",content:"data.emailTemplate.propertyDesignation.content",text:"data.emailTemplate.propertyDesignation.text",actionUrl:"data.emailTemplate.propertyDesignation.actionUrl"}}]}}},{data:a}=await Ki.get(t),o=c=>Be.t(`propertyDesignationRequest.${c}`,{ns:"actions",interpolation:{prefix:"__",suffix:"__"}});Ur(a,"data.smsTemplate.propertyDesignation",{text:o("smsTemplate.text")}),Ur(a,"data.emailTemplate.propertyDesignation",{subject:o("emailTemplate.subject"),title:o("emailTemplate.title"),content:o("emailTemplate.content"),text:o("emailTemplate.text"),actionUrl:o("emailTemplate.actionUrl")});const s={...i,document:a,clients:[a.clients[0]]};n(bi,!0),await Ki.send(t,{...s,...r,sendSource:"propertyDesignation"}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("actions:propertyDesignationRequest.successMessage")})}catch(i){throw i}finally{n(bi,!1)}},async[X2]({state:n,dispatch:t,commit:r},{id:i,body:a,params:o={},showMessage:s=!0}){try{r(bi,!0),await Ki.put(i,a,o),await t(td,{id:i});const c=n.data[i];return Pr.trigger("document:update",c),Pr.trigger("document:save",c),s&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("document")}),omit:"$view:extension,$view:widget"}),i}catch(c){throw c}finally{r(bi,!1)}},async[ZU]({dispatch:n},{id:t,body:r,params:i={}}){try{return await n(X2,{id:t,body:r,params:i}),t}catch(a){return this.handleError(a,{object:"document2",objectId:t,fallbackCode:"document2.put",action:`${xf}/${ZU}`,actionPayload:arguments[1]}),null}},async[qU]({commit:n},{id:t}){try{return n(bi,!0),await Ki.delete(t),n(HWe,t),Pr.trigger("document:remove",t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("document")}),actions:{undo:()=>{this.dispatch(`documents2/${j6}`,{id:t})}},omit:"$view:widget"}),t}catch(r){return this.handleError(r,{object:"document2",objectId:t,fallbackCode:"document2.delete",action:`${xf}/${qU}`,actionPayload:arguments[1]}),null}finally{n(bi,!1)}},async[j6]({commit:n,dispatch:t},{id:r}){try{return n(bi,!0),await Ki.patch(r),await t(td,{id:r}),r}catch(i){return this.handleError(i,{object:"document2",objectId:r,fallbackCode:"document2.patch",action:`${xf}/${j6}`,actionPayload:arguments[1]}),null}finally{n(bi,!1)}},async[JU]({dispatch:n,getters:t},{id:r,status:i}){try{const{hasAnswers:a}=t.byId(r)||{};return a&&!["accepted","denied"].includes(i)?await this.dispatch(WWe,{displayType:"dialog",type:"warning",title:Be.t("actions:updateDocumentDialog.title"),message:Be.t("actions:updateDocumentDialog.message"),actions:{cancel:{text:Be.t("actions:updateDocumentDialog.cancel"),callback:"cancel"},submit:{text:Be.t("actions:updateDocumentDialog.submit"),callback:async()=>{await n(XU,{id:r,doFetch:!1}),await n(X2,{id:r,body:{status:i}})}}}}):await n(X2,{id:r,body:{status:i}}),r}catch(a){return this.handleError(a,{object:"document2",objectId:r,fallbackCode:"document2.updateStatus",action:`${xf}/${JU}`,actionPayload:arguments[1]}),null}},async[XU]({dispatch:n},{id:t,doFetch:r=!0}){await Ki.clearAnswers(t),r&&await n(td,{id:t})},async[UWe]({commit:n,dispatch:t},{id:r,publicId:i,body:a,checksum:o}){try{n(bi,!0);const s={docChecksum:o},{data:c}=await Hp.answer(i,a,{},s);return await t(td,{id:r}),c}catch(s){throw s}finally{n(bi,!1)}}},{DELETE_MANY_DOCUMENTS2:YWe,SET_DOCUMENTS2:KWe,SET_DOCUMENT2_FETCHING:ZWe,SET_DOCUMENT2_POSTING:JWe}=rS,XWe={[KWe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a document2 or an array of documents2!");const r=Array.isArray(t)?t:[t],i=[];r.forEach(a=>{a.id&&(n.ids.includes(a.id)||i.push(a.id),Fe.set(n.data,a.id,a))}),n.ids=qi([...i,...n.ids])},[YWe](n,t){(Array.isArray(t)?t:[t]).forEach(i=>{n.data[i]&&(Fe.delete(n.data,i),n.ids=n.ids.filter(a=>a!==i))})},[ZWe](n,t){n.isFetching=t},[JWe](n,t){n.isPosting=t}},QWe={namespaced:!0,state:NWe,getters:{byData:(n,t,r,i)=>({data:a,documentOptions:o})=>new fc({data:a,documentOptions:o,can:wg.checkPermission.bind(wg),getters:i}),byId:(n,t)=>r=>{const i=n.data[r];return i?t.byData({data:i}):null},byExternalReference:(n,t)=>({service:r,type:i=null,typeId:a=null})=>{if(typeof r>"u")throw new Error("Missing param service");if(typeof r!="string")throw new Error("Param service must be a string");return n.ids.filter(s=>{const c=n.data[s],{externalReferences:l=[]}=c;return l.some(u=>u.service===r&&(!i||u.type===i)&&(!a||u.typeId===a))}).map(s=>t.byId(s))},isPosting:n=>n.isPosting,isFetching:n=>n.isFetching},actions:qWe,mutations:XWe},eGe={data:{},ids:[],isFetching:!1,isPosting:!1},gc="endCustomers",{SET_ENDCUSTOMER_FETCHING:eb,SET_ENDCUSTOMER_POSTING:vc,CLEAR_END_CUSTOMER:tGe}=cf,{LOAD_ENDCUSTOMERS:eH,LOAD_ENDCUSTOMER:tb,UPDATE_ENDCUSTOMER:z6,CREATE_ENDCUSTOMER:V6,DELETE_ENDCUSTOMER:tH,PATCH_ENDCUSTOMER:U6,FORM_NEW_ENDCUSTOMER:nH,FORM_EDIT_ENDCUSTOMER:nGe,FORM_SUBMIT_ENDCUSTOMER:rH}=wj,rGe={async[eH]({commit:n},{options:t={}}={}){try{n(eb,!0);const r={...typeof t.start=="number"&&{_start:t.start},...t.end&&{_end:t.end},...t.sort&&{_sort:t.sort},...t.order&&{_order:t.order}};if(t.searchQuery.trim()){const a=encodeURIComponent(t.searchQuery);r._where=`or(name*=${a},email*=${a},cellphone*=${a})`}t.clearOld&&n(tGe);const{data:i}=await hke(r);return n(cf.SET_ENDCUSTOMERS,{data:i}),i.length}catch(r){return this.handleError(r,{object:"endCustomer",fallbackCode:"endCustomer.getAll",action:`${gc}/${eH}`}),!1}finally{n(eb,!1)}},async[tb]({commit:n},{id:t}){try{n(eb,!0);const{data:r}=await mke(t);n(cf.SET_ENDCUSTOMERS,{data:r})}catch(r){this.handleError(r,{object:"endCustomer",objectId:t,fallbackCode:"endCustomer.get",action:`${gc}/${tb}`,actionPayload:arguments[1]})}finally{n(eb,!1)}},async[V6]({commit:n},{body:t,showNotification:r=!0}){try{n(vc,!0);const{data:i}=await gke(t);return n(cf.SET_ENDCUSTOMERS,{data:i}),r&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("client")}),omit:"$view:widget"}),i.id}catch(i){return this.handleError(i,{object:"endCustomer",fallbackCode:"endCustomer.post",action:`${gc}/${V6}`,actionPayload:arguments[1]}),null}finally{n(vc,!1)}},async[z6]({dispatch:n,commit:t},{id:r,body:i}){try{return t(vc,!0),await vke(r,i),await n(tb,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("client")}),omit:"$view:widget"}),!0}catch(a){return this.handleError(a,{object:"endCustomer",objectId:r,fallbackCode:"endCustomer.put",action:`${gc}/${z6}`,actionPayload:arguments[1]}),null}finally{t(vc,!1)}},async[tH]({commit:n},{id:t}){try{return n(vc,!0),await yke(t),n(cf.DELETE_ENDCUSTOMER,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("client")}),actions:{undo:()=>{this.dispatch(`endCustomers/${U6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"endCustomer",objectId:t,fallbackCode:"endCustomer.delete",action:`${gc}/${tH}`,actionPayload:arguments[1]}),null}finally{n(vc,!1)}},async[U6]({dispatch:n,commit:t},{id:r}){try{return t(vc,!0),await bke(r),await n(tb,{id:r}),r}catch(i){return this.handleError(i,{object:"endCustomer",objectId:r,fallbackCode:"endCustomer.patch",action:`${gc}/${U6}`,actionPayload:arguments[1]}),null}finally{t(vc,!1)}},async[nH]({getters:n}){try{const t={id:null,customerType:n.defaultClientType(),org_no:null,name:null,reference:null,email:null,street:null,zip:null,city:null,cellphone:null,cellphoneRegion:null,separateWorkAddress:!1,workStreet:null,workZip:null,workCity:null,reverseVat:!1,vatNumber:null,externalId:null,note:null};return this.commit(`forms/${$t.SET_FORM}`,{key:"endCustomer",formData:t}),!0}catch(t){return this.handleError(t,{object:"endCustomer",action:`${gc}/${nH}`}),!1}},async[nGe]({getters:n},{id:t,props:r=[]}){const i=Gs(n.endCustomerById(t),r);this.dispatch(`forms/${$t.forms.SET_FORM_VALUE}`,{key:"endCustomer",value:i})},async[rH]({rootGetters:n,dispatch:t},{showNotification:r=!0}={}){try{const i=n["forms/getFormByKey"]("endCustomer");let{id:a}=i;return a?await t(z6,{id:i.id,body:i}):a=await t(V6,{body:i,showNotification:r}),a}catch(i){return this.handleError(i,{object:"endCustomer",fallbackCode:"endCustomer.submit",action:`${gc}/${rH}`}),null}}},{CLEAR_END_CUSTOMER:iGe,SET_ENDCUSTOMERS:aGe,DELETE_ENDCUSTOMER:oGe,SET_ENDCUSTOMER_FETCHING:sGe,SET_ENDCUSTOMER_POSTING:lGe}=cf,cGe={[aGe](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a company user or an array of company users!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[oGe](n,t){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[iGe](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[])},[sGe](n,t){n.isFetching=t},[lGe](n,t){n.isPosting=t}},uGe={namespaced:!0,state:eGe,getters:{endCustomerById:n=>t=>n.data[t],isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,idList:n=>n.ids,clients:n=>n.data,defaultClientType:(n,t,r,i)=>()=>{const a=wt.getItem("defaultClientType");return a&&["individual","company"].includes(a)?a:i["settings/getCompanySetting"]("defaultClientType")||"company"}},actions:rGe,mutations:cGe},dGe={data:{},ids:[],tableDensity:"normal",isFetching:!1,isPosting:!1},nd="articles",{LOAD_ARTICLES:iH,LOAD_ARTICLE:nb,SET_ARTICLES:pGe,UPDATE_ARTICLE:H6,DO_CREATE_ARTICLE:aH,DELETE_ARTICLE:oH,PATCH_ARTICLE:W6,SEARCH_ARTICLE:sH,FORM_NEW_ARTICLE:fGe,FORM_EDIT_ARTICLE:hGe,FORM_SUBMIT_ARTICLE:lH}=bj,{SET_ARTICLES_FETCHING:rb,SET_ARTICLES_POSTING:yc}=_j,mGe={async[iH]({commit:n},t={}){try{n(rb,!0);const{data:r}=await tke(t);n($t.SET_ARTICLES,{data:r})}catch(r){this.handleError(r,{object:"article",fallbackCode:"article.get",action:`${nd}/${iH}`})}finally{n(rb,!1)}},async[nb]({commit:n},{id:t}){try{n(rb,!0);const{data:r}=await nke(t);n($t.SET_ARTICLES,{data:r})}catch(r){this.handleError(r,{object:"article",objectId:t,fallbackCode:"article.get",action:`${nd}/${nb}`,actionPayload:arguments[1]})}finally{n(rb,!1)}},async[H6]({dispatch:n,commit:t},{id:r,body:i}){try{return t(yc,!0),await ike(r,i),await n(nb,{id:r}),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("updatedThing",{thing:Be.t("article")})}),r}catch(a){return this.handleError(a,{object:"article",objectId:r,fallbackCode:"article.put",action:`${nd}/${H6}`,actionPayload:arguments[1]}),null}finally{t(yc,!1)}},async[aH]({commit:n},{body:t,showMessage:r=!0}){try{n(yc,!0);const{data:i}=await rke(t);return await n(pGe,{data:i}),r&&this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("createdThing",{thing:Be.t("article")})}),i.id}catch(i){throw i}finally{n(yc,!1)}},async[oH]({commit:n},{id:t}){try{return n(yc,!0),await ake(t),n($t.DELETE_ARTICLE,t),this.dispatch("application/SHOW_MESSAGE",{type:"success",message:Be.t("removedThing",{thing:Be.t("article")}),actions:{undo:()=>{this.dispatch(`articles/${W6}`,{id:t})}}}),t}catch(r){return this.handleError(r,{object:"article",objectId:t,fallbackCode:"article.delete",action:`${nd}/${oH}`,actionPayload:arguments[1]}),null}finally{n(yc,!1)}},async[W6]({dispatch:n,commit:t},{id:r}){try{return t(yc,!0),await oke(r),await n(nb,{id:r}),r}catch(i){return this.handleError(i,{object:"article",objectId:r,fallbackCode:"article.patch",action:`${nd}/${W6}`,actionPayload:arguments[1]}),null}finally{t(yc,!1)}},async[sH](n,{query:t}){try{if(!t||t.length<=0)return[];const{data:r}=await ske(t);return r}catch(r){return this.handleError(r,{object:"article",fallbackCode:"article.search",action:`${nd}/${sH}`,actionPayload:arguments[1]}),[]}},[fGe]({commit:n,rootGetters:t}){const r=t["articles/getNewArticle"]();return n(`forms/${$t.SET_FORM}`,{key:"article",formData:r},{root:!0})},[hGe]({commit:n,getters:t},{id:r}){const i=t.articleById(r);return n(`forms/${$t.SET_FORM}`,{key:"article",formData:i},{root:!0})},async[lH]({rootGetters:n,dispatch:t}){try{const r=n["forms/getFormByKey"]("article");let{id:i}=r;return i?await t(H6,{id:r.id,body:r}):i=await t(aH,{body:r}),i}catch(r){return this.handleError(r,{object:"article",fallbackCode:"article.submit",action:`${nd}/${lH}`}),null}}},{SET_ARTICLES:gGe,DELETE_ARTICLE:vGe,CLEAR_ARTICLES:yGe,SET_ARTICLES_FETCHING:bGe,SET_ARTICLES_POSTING:_Ge}=_j,wGe={updateField:ff,[gGe](n,{data:t}){if(typeof t!="object")throw Error("Data must be an article or array of articles!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[vGe](n,t=""){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[yGe](n){Fe.set(n,"data",{}),Fe.set(n,"ids",[])},[bGe](n,t){n.isFetching=t},[_Ge](n,t){n.isPosting=t}},xGe={namespaced:!0,state:dGe,getters:{getField:yg,articles:n=>n.data,articleIdList:n=>n.ids,articleById:n=>t=>n.data[t],isFetching:n=>n.isFetching,isPosting:n=>n.isPosting,getNewArticle:(n,t,r,i)=>a=>Qo({vat:i["settings/defaultVatRate"],showPrice:!i["settings/hidePriceOnNewlyAddedArticles"],currency:i["settings/defaultCurrency"],...a})},actions:mGe,mutations:wGe},CGe={data:{},ids:[],isFetching:!1,isPosting:!1},ib="unitTypes",{LOAD_UNIT_TYPES:cH,LOAD_UNIT_TYPE:G6,UPDATE_UNIT_TYPE:uH,CREATE_UNIT_TYPE:kGe,DELETE_UNIT_TYPE:dH}=Sj,{SET_UNIT_TYPES:q6,SET_UNIT_TYPE_FETCHING:ab,SET_UNIT_TYPE_POSTING:Cf}=d2,SGe={async[cH]({commit:n},t={}){try{n(ab,!0);const{data:r}=await Qm.get(null,t);n(q6,{data:r})}catch(r){this.handleError(r,{object:"unitType",fallbackCode:"unitType.get",action:`${ib}/${cH}`})}finally{n(ab,!1)}},async[G6]({commit:n},{id:t,params:r={}}){try{n(ab,!0);const{data:i}=await Qm.get(t,r);n(q6,{data:i})}catch(i){this.handleError(i,{object:"unitType",objectId:t,fallbackCode:"unitType.get",action:`${ib}/${G6}`,actionPayload:arguments[1]})}finally{n(ab,!1)}},async[uH]({dispatch:n,commit:t},{id:r,body:i}){try{return t(Cf,!0),await Qm.put(r,i),await n(G6,{id:r}),r}catch(a){return this.handleError(a,{object:"unitType",objectId:r,fallbackCode:"unitType.put",action:`${ib}/${uH}`,actionPayload:arguments[1]}),null}finally{t(Cf,!1)}},async[kGe]({commit:n},{body:t,showMessage:r=!0}){try{n(Cf,!0);const{data:i}=await Qm.post(t);return await n(q6,{data:i}),i.id}catch(i){throw i}finally{n(Cf,!1)}},async[dH]({commit:n},{id:t}){try{return n(Cf,!0),await Qm.delete(t),n(d2.DELETE_UNIT_TYPE,t),t}catch(r){return this.handleError(r,{object:"unitType",objectId:t,fallbackCode:"unitType.delete",action:`${ib}/${dH}`,actionPayload:arguments[1]}),null}finally{n(Cf,!1)}}},{SET_UNIT_TYPES:TGe,DELETE_UNIT_TYPE:EGe,SET_UNIT_TYPE_FETCHING:$Ge,SET_UNIT_TYPE_POSTING:AGe}=d2,OGe={[TGe](n,{data:t}){if(typeof t!="object")throw Error("Data must be an unitType or array of unitTypes!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.data,a),n.ids=qi([...i,...n.ids])},[EGe](n,t=""){Fe.delete(n.data,t);const r=n.ids.indexOf(t);r!==-1&&n.ids.splice(r,1)},[$Ge](n,t){n.isFetching=t},[AGe](n,t){n.isPosting=t}},DGe={namespaced:!0,state:CGe,getters:{byId:n=>t=>n.data[t],ids:n=>n.ids,isPosting:n=>n.isPosting,isFetching:n=>n.isFetching},actions:SGe,mutations:OGe},fs=Object.create(null);fs.open="0",fs.close="1",fs.ping="2",fs.pong="3",fs.message="4",fs.upgrade="5",fs.noop="6";const ob=Object.create(null);Object.keys(fs).forEach(n=>{ob[fs[n]]=n});const MGe={type:"error",data:"parser error"},PGe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",IGe=typeof ArrayBuffer=="function",RGe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,pH=({type:n,data:t},r,i)=>PGe&&t instanceof Blob?r?i(t):fH(t,i):IGe&&(t instanceof ArrayBuffer||RGe(t))?r?i(t):fH(new Blob([t]),i):i(fs[n]+(t||"")),fH=(n,t)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];t("b"+i)},r.readAsDataURL(n)},hH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<hH.length;n++)Rg[hH.charCodeAt(n)]=n;const LGe=n=>{let t=n.length*.75,r=n.length,i,a=0,o,s,c,l;n[n.length-1]==="="&&(t--,n[n.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(i=0;i<r;i+=4)o=Rg[n.charCodeAt(i)],s=Rg[n.charCodeAt(i+1)],c=Rg[n.charCodeAt(i+2)],l=Rg[n.charCodeAt(i+3)],d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|c>>2,d[a++]=(c&3)<<6|l&63;return u},NGe=typeof ArrayBuffer=="function",mH=(n,t)=>{if(typeof n!="string")return{type:"message",data:gH(n,t)};const r=n.charAt(0);return r==="b"?{type:"message",data:FGe(n.substring(1),t)}:ob[r]?n.length>1?{type:ob[r],data:n.substring(1)}:{type:ob[r]}:MGe},FGe=(n,t)=>{if(NGe){const r=LGe(n);return gH(r,t)}else return{base64:!0,data:n}},gH=(n,t)=>{switch(t){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},vH=String.fromCharCode(30),BGe=(n,t)=>{const r=n.length,i=new Array(r);let a=0;n.forEach((o,s)=>{pH(o,!1,c=>{i[s]=c,++a===r&&t(i.join(vH))})})},jGe=(n,t)=>{const r=n.split(vH),i=[];for(let a=0;a<r.length;a++){const o=mH(r[a],t);if(i.push(o),o.type==="error")break}return i},yH=4;function Tr(n){if(n)return zGe(n)}function zGe(n){for(var t in Tr.prototype)n[t]=Tr.prototype[t];return n}Tr.prototype.on=Tr.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(t),this},Tr.prototype.once=function(n,t){function r(){this.off(n,r),t.apply(this,arguments)}return r.fn=t,this.on(n,r),this},Tr.prototype.off=Tr.prototype.removeListener=Tr.prototype.removeAllListeners=Tr.prototype.removeEventListener=function(n,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+n];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,a=0;a<r.length;a++)if(i=r[a],i===t||i.fn===t){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+n],this},Tr.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+n],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,a=r.length;i<a;++i)r[i].apply(this,t)}return this},Tr.prototype.emitReserved=Tr.prototype.emit,Tr.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},Tr.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Va=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function bH(n,...t){return t.reduce((r,i)=>(n.hasOwnProperty(i)&&(r[i]=n[i]),r),{})}const VGe=Va.setTimeout,UGe=Va.clearTimeout;function sb(n,t){t.useNativeTimers?(n.setTimeoutFn=VGe.bind(Va),n.clearTimeoutFn=UGe.bind(Va)):(n.setTimeoutFn=Va.setTimeout.bind(Va),n.clearTimeoutFn=Va.clearTimeout.bind(Va))}const HGe=1.33;function WGe(n){return typeof n=="string"?GGe(n):Math.ceil((n.byteLength||n.size)*HGe)}function GGe(n){let t=0,r=0;for(let i=0,a=n.length;i<a;i++)t=n.charCodeAt(i),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}class qGe extends Error{constructor(t,r,i){super(t),this.description=r,this.context=i,this.type="TransportError"}}class _H extends Tr{constructor(t){super(),this.writable=!1,sb(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,r,i){return super.emitReserved("error",new qGe(t,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=mH(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const wH="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Y6=64,YGe={};let xH=0,lb=0,CH;function kH(n){let t="";do t=wH[n%Y6]+t,n=Math.floor(n/Y6);while(n>0);return t}function SH(){const n=kH(+new Date);return n!==CH?(xH=0,CH=n):n+"."+kH(xH++)}for(;lb<Y6;lb++)YGe[wH[lb]]=lb;function TH(n){let t="";for(let r in n)n.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return t}function KGe(n){let t={},r=n.split("&");for(let i=0,a=r.length;i<a;i++){let o=r[i].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}let EH=!1;try{EH=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ZGe=EH;function $H(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||ZGe))return new XMLHttpRequest}catch{}if(!t)try{return new Va[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function JGe(){}const XGe=function(){return new $H({xdomain:!1}).responseType!=null}();class QGe extends _H{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let a=location.port;a||(a=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||a!==t.port,this.xs=t.secure!==i}const r=t&&t.forceBase64;this.supportsBinary=XGe&&!r}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};jGe(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,BGe(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const r=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=SH()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(r==="https"&&Number(this.opts.port)!==443||r==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const a=TH(t),o=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(a.length?"?"+a:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new hs(this.uri(),t)}doWrite(t,r){const i=this.request({method:"POST",data:t});i.on("success",r),i.on("error",(a,o)=>{this.onError("xhr post error",a,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=t}}class hs extends Tr{constructor(t,r){super(),sb(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=r.async!==!1,this.data=r.data!==void 0?r.data:null,this.create()}create(){const t=bH(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new $H(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=hs.requestsCount++,hs.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=JGe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete hs.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(hs.requestsCount=0,hs.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",AH);else if(typeof addEventListener=="function"){const n="onpagehide"in Va?"pagehide":"unload";addEventListener(n,AH,!1)}}function AH(){for(let n in hs.requests)hs.requests.hasOwnProperty(n)&&hs.requests[n].abort()}const OH=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),cb=Va.WebSocket||Va.MozWebSocket,DH=!0,eqe="arraybuffer",MH=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",tqe={websocket:class extends _H{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,i=MH?{}:bH(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=DH&&!MH?r?new cb(t,r):new cb(t):new cb(t,r,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType||eqe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const i=t[r],a=r===t.length-1;pH(i,this.supportsBinary,o=>{const s={};try{DH&&this.ws.send(o)}catch{}a&&OH(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const r=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=SH()),this.supportsBinary||(t.b64=1);const a=TH(t),o=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(a.length?"?"+a:"")}check(){return!!cb}},polling:QGe},nqe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rqe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function K6(n){const t=n,r=n.indexOf("["),i=n.indexOf("]");r!=-1&&i!=-1&&(n=n.substring(0,r)+n.substring(r,i).replace(/:/g,";")+n.substring(i,n.length));let a=nqe.exec(n||""),o={},s=14;for(;s--;)o[rqe[s]]=a[s]||"";return r!=-1&&i!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=iqe(o,o.path),o.queryKey=aqe(o,o.query),o}function iqe(n,t){const r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function aqe(n,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,o){a&&(r[a]=o)}),r}let PH=class Yh extends Tr{constructor(t,r={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(r=t,t=null),t?(t=K6(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=K6(r.host).host),sb(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=KGe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=yH,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new tqe[t](i)}open(){let t;if(this.opts.rememberUpgrade&&Yh.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),i=!1;Yh.priorWebsocketSuccess=!1;const a=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!i)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Yh.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function o(){i||(i=!0,d(),r.close(),r=null)}const s=p=>{const f=new Error("probe error: "+p);f.transport=r.name,o(),this.emitReserved("upgradeError",f)};function c(){s("transport closed")}function l(){s("socket closed")}function u(p){r&&p.name!==r.name&&o()}const d=()=>{r.removeListener("open",a),r.removeListener("error",s),r.removeListener("close",c),this.off("close",l),this.off("upgrading",u)};r.once("open",a),r.once("error",s),r.once("close",c),this.once("close",l),this.once("upgrading",u),r.open()}onOpen(){if(this.readyState="open",Yh.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(r+=WGe(a)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(t,r,i){return this.sendPacket("message",t,r,i),this}send(t,r,i){return this.sendPacket("message",t,r,i),this}sendPacket(t,r,i,a){if(typeof r=="function"&&(a=r,r=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:t,data:r,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){Yh.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let i=0;const a=t.length;for(;i<a;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}};PH.protocol=yH;function oqe(n,t="",r){let i=n;r=r||typeof location<"u"&&location,n==null&&(n=r.protocol+"//"+r.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=r.protocol+n:n=r.host+n),/^(https?|wss?):\/\//.test(n)||(typeof r<"u"?n=r.protocol+"//"+n:n="https://"+n),i=K6(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+t,i.href=i.protocol+"://"+o+(r&&r.port===i.port?"":":"+i.port),i}const sqe=typeof ArrayBuffer=="function",lqe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,IH=Object.prototype.toString,cqe=typeof Blob=="function"||typeof Blob<"u"&&IH.call(Blob)==="[object BlobConstructor]",uqe=typeof File=="function"||typeof File<"u"&&IH.call(File)==="[object FileConstructor]";function Z6(n){return sqe&&(n instanceof ArrayBuffer||lqe(n))||cqe&&n instanceof Blob||uqe&&n instanceof File}function ub(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,i=n.length;r<i;r++)if(ub(n[r]))return!0;return!1}if(Z6(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ub(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&ub(n[r]))return!0;return!1}function dqe(n){const t=[],r=n.data,i=n;return i.data=J6(r,t),i.attachments=t.length,{packet:i,buffers:t}}function J6(n,t){if(!n)return n;if(Z6(n)){const r={_placeholder:!0,num:t.length};return t.push(n),r}else if(Array.isArray(n)){const r=new Array(n.length);for(let i=0;i<n.length;i++)r[i]=J6(n[i],t);return r}else if(typeof n=="object"&&!(n instanceof Date)){const r={};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=J6(n[i],t));return r}return n}function pqe(n,t){return n.data=X6(n.data,t),n.attachments=void 0,n}function X6(n,t){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<t.length)return t[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let r=0;r<n.length;r++)n[r]=X6(n[r],t);else if(typeof n=="object")for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=X6(n[r],t));return n}const fqe=5;var sn;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(sn||(sn={}));class hqe{constructor(t){this.replacer=t}encode(t){return(t.type===sn.EVENT||t.type===sn.ACK)&&ub(t)?(t.type=t.type===sn.EVENT?sn.BINARY_EVENT:sn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===sn.BINARY_EVENT||t.type===sn.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=dqe(t),i=this.encodeAsString(r.packet),a=r.buffers;return a.unshift(i),a}}class Q6 extends Tr{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t),r.type===sn.BINARY_EVENT||r.type===sn.BINARY_ACK?(this.reconstructor=new mqe(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Z6(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const i={type:Number(t.charAt(0))};if(sn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===sn.BINARY_EVENT||i.type===sn.BINARY_ACK){const o=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const s=t.substring(o,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(t.charAt(r+1)==="/"){const o=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););i.nsp=t.substring(o,r)}else i.nsp="/";const a=t.charAt(r+1);if(a!==""&&Number(a)==a){const o=r+1;for(;++r;){const s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}i.id=Number(t.substring(o,r+1))}if(t.charAt(++r)){const o=this.tryParse(t.substr(r));if(Q6.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case sn.CONNECT:return typeof r=="object";case sn.DISCONNECT:return r===void 0;case sn.CONNECT_ERROR:return typeof r=="string"||typeof r=="object";case sn.EVENT:case sn.BINARY_EVENT:return Array.isArray(r)&&r.length>0;case sn.ACK:case sn.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class mqe{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=pqe(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gqe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Q6,Encoder:hqe,get PacketType(){return sn},protocol:fqe},Symbol.toStringTag,{value:"Module"}));function wo(n,t,r){return n.on(t,r),function(){n.off(t,r)}}const vqe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let RH=class extends Tr{constructor(t,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[wo(t,"open",this.onopen.bind(this)),wo(t,"packet",this.onpacket.bind(this)),wo(t,"error",this.onerror.bind(this)),wo(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){if(vqe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const i={type:sn.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const s=this.ids++,c=r.pop();this._registerAckCallback(s,c),i.id=s}const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},a);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),r.apply(this,[null,...s])}}emitWithAck(t,...r){const i=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((a,o)=>{r.push((s,c)=>i?s?o(s):a(c):a(s)),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const i={id:this.ids++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...o)=>i!==this._queue[0]?void 0:(a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(a)):(this._queue.shift(),r&&r(null,...o)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(){if(this._queue.length===0)return;const t=this._queue[0];if(t.pending)return;t.pending=!0,t.tryCount++;const r=this.ids;this.ids=t.id,this.flags=t.flags,this.emit.apply(this,t.args),this.ids=r}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:sn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case sn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case sn.EVENT:case sn.BINARY_EVENT:this.onevent(t);break;case sn.ACK:case sn.BINARY_ACK:this.onack(t);break;case sn.DISCONNECT:this.ondisconnect();break;case sn.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let i=!1;return function(...a){i||(i=!0,r.packet({type:sn.ACK,id:t,data:a}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.apply(this,t.data),delete this.acks[t.id])}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:sn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,t.data)}}};function kf(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}kf.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*n);n=Math.floor(t*10)&1?n+r:n-r}return Math.min(n,this.max)|0},kf.prototype.reset=function(){this.attempts=0},kf.prototype.setMin=function(n){this.ms=n},kf.prototype.setMax=function(n){this.max=n},kf.prototype.setJitter=function(n){this.jitter=n};class eT extends Tr{constructor(t,r){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,sb(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new kf({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const a=r.parser||gqe;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new PH(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=wo(r,"open",function(){i.onopen(),t&&t()}),o=wo(r,"error",s=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",s),t?t(s):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&a();const c=this.setTimeoutFn(()=>{a(),r.close(),r.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&c.unref(),this.subs.push(function(){clearTimeout(c)})}return this.subs.push(a),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(wo(t,"ping",this.onping.bind(this)),wo(t,"data",this.ondata.bind(this)),wo(t,"error",this.onerror.bind(this)),wo(t,"close",this.onclose.bind(this)),wo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){OH(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let i=this.nsps[t];return i||(i=new RH(this,t,r),this.nsps[t]=i),this._autoConnect&&i.connect(),i}_destroy(t){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let i=0;i<r.length;i++)this.engine.write(r[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Lg={};function db(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const r=oqe(n,t.path||"/socket.io"),i=r.source,a=r.id,o=r.path,s=Lg[a]&&o in Lg[a].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return c?l=new eT(i,t):(Lg[a]||(Lg[a]=new eT(i,t)),l=Lg[a]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(db,{Manager:eT,Socket:RH,io:db,connect:db});class yqe{constructor({rootUrl:t,path:r,logger:i=console,getTokenFn:a}){$n(this,"_socket",null);$n(this,"_isConnected",!1);$n(this,"_autoReconnect",!1);$n(this,"_localAutoReconnect",!1);$n(this,"_listeners",[]);$n(this,"_connectionChangedListener",[]);$n(this,"_retryCount",0);this.rootUrl=t,this.path=r,this.logger=i,this.getTokenFn=a}set autoReconnect(t){this._autoReconnect=!!t}onConnectionChanged(t){this._connectionChangedListener.push(t)}_onConnectionChanged(t){this._connectionChangedListener.forEach(r=>{try{r(t)}catch(i){console.error(i)}})}setConnected(t){t||(this._retryCount=this._retryCount+1),this.logger.debug(`Socket: isConnected changed to ${t}`);const r=this._isConnected!==t;this._isConnected=t,r&&this._onConnectionChanged(t)}_onConnected(){const t=this.getTokenFn();t&&this._socket.emit("authenticate",{token:t})}on(t,r){return this._listeners.push({type:t,fn:r}),this._socket&&this._socket.on(t,r),()=>this.off(t,r)}off(t,r){this._listeners.forEach((i,a)=>{var o;i.type===t&&i.fn===r&&(this._listeners.splice(a,1),(o=this._socket)==null||o.off(t,r))})}async connect(){await(a=>new Promise(o=>setTimeout(o,a*2*1e3)))(this._retryCount),this._socket&&(this._localAutoReconnect=!1,this.disconnect(),this._localAutoReconnect=!0);const{origin:r,pathname:i}=new URL(this.rootUrl+this.path);this._socket=db(r,{path:i,transports:["websocket","polling"]}),this._socket.on("connect",this._onConnected.bind(this)),this._socket.on("event",a=>this.logger.debug("Socket: Event:",a)),this._listeners.forEach(({type:a,fn:o})=>{this._socket.on(a,o)}),this._socket.on("disconnect",()=>{this.setConnected(!1),this._localAutoReconnect&&this._autoReconnect&&this.connect()}),this._socket.on("authenticated",()=>{this._retryCount=0,this.setConnected(!0)}),this._socket.on("unauthorized",()=>{this.setConnected(!1)})}disconnect(){this._socket&&(this._socket.close(),this._socket=null)}}const Sf=new yqe({rootUrl:Xe.api.baseUrl,path:Xe.api.socket.path,logger:Pn,getTokenFn:()=>wt.getItem("token")}),bqe=n=>{Sf.onConnectionChanged(t=>{n.commit(`application/${$t.application.SET_SOCKET_CONNECTED}`,t)}),Sf.on("event",({type:t,action:r,id:i})=>{if(t==="document")n.getters["documents2/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`documents2/${$t.documents2.DELETE_MANY_DOCUMENTS2}`,i):n.dispatch(He.LOAD_DOCUMENT2,{id:i,emit:!0})},1);else if(t==="template")n.getters["templates/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`templates/${$t.templates.DELETE_MANY_TEMPLATES}`,i):n.dispatch(He.LOAD_TEMPLATE,{id:i})},1);else if(t==="notification"){if(!n.hasModule("notifications"))return;setTimeout(()=>{r==="deleted"?n.commit(`notifications/${$t.notifications.DELETE_MANY_NOTIFICATIONS}`,i):n.dispatch(He.LOAD_NOTIFICATION,{id:i})},1)}else if(t==="project"){if(!n.hasModule("projects"))return;n.getters["projects/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`projects/${$t.projects.DELETE_MANY_PROJECTS}`,i):n.dispatch(He.LOAD_PROJECT,{id:i})},1)}else t==="companyUser"?n.getters["companyUsers/byId"](i)&&setTimeout(()=>{r==="deleted"?n.commit(`companyUsers/${$t.DELETE_COMPANY_USER}`,i):n.dispatch(He.LOAD_COMPANY_USER,{id:i})},1):t==="companyAccount"?setTimeout(()=>{n.dispatch(He.DO_LOAD_CURRENT_COMPANY)},1):t==="companySetting"?setTimeout(()=>{r==="deleted"?n.commit(`settings/${$t.settings.CLEAR_SETTINGS}`,{key:"company",name:i}):n.dispatch(He.LOAD_SETTINGS_COMPANY)},1):t==="companyUserSetting"?setTimeout(()=>{r==="deleted"?n.commit(`settings/${$t.settings.CLEAR_SETTINGS}`,{key:"companyUser",name:i}):n.dispatch(He.LOAD_SETTINGS_COMPANYUSER)},1):t==="systemClient"&&r==="refreshToken"&&setTimeout(()=>{DCe()},1)}),n.subscribe(async t=>{if(!n.getters["application/socketEnabled"])return;const{type:r,payload:i}=t;r==="application/SET_USER"&&i&&typeof i.userId<"u"&&(Sf.autoReconnect=!!i.userId,i.userId?await Sf.connect():i.userId===null&&await Sf.disconnect())})},LH={projectFiles:"projects",certificates:"certificates",companies:"companies",companyUsers:"companyUsers",projects:"projects",invoices:"invoices",companyReferences:"companyReferences",companyReferenceItems:"companyReferenceItems",files:"files",documents:"documents",timeTracks:"timeTracks",documentTerms:"documentTerms"},NH={projects:$t.SET_PROJECTS,invoices:$t.invoices.SET_INVOICES,offers:$t.SET_OFFERS,companyUsers:$t.SET_COMPANY_USERS,companies:$t.companies.SET_COMPANIES,events:$t.SET_EVENTS,atas:$t.SET_ATAS,contracts:$t.SET_CONTRACTS,projectNotes:$t.SET_PROJECT_NOTES,projectFiles:$t.SET_PROJECT_FILES,articles:$t.SET_ARTICLES,certificates:$t.certificates.SET_CERTIFICATES,companyReferenceItems:$t.companyReferenceItems.SET_COMPANY_REFERENCE_ITEMS,companyReferences:$t.companyReferences.SET_COMPANY_REFERENCES,files:$t.files.UPDATE_MANY_FILES,notifications:$t.SET_NOTIFICATIONS,templateMessages:$t.SET_TEMPLATE_MESSAGES,timeTracks:$t.timeTracks.SET_TIME_TRACKS,documentTerms:$t.documentTerms.SET_DOCUMENT_TERMS},_qe={[Uu](n,t){const r={includedModules:void 0,excludedModules:void 0,schema:void 0,data:void 0,moduleOpts:{},...t};if(!r.schema||!r.data)throw Error("Unable to normalize data, missing schema or data");const i=Array.isArray(r.data)?r.data:[r.data];let a;typeof r.schema=="string"?{entities:a}=dLe(i,r.schema):{entities:a}=Vj(i,r.schema);let o=Object.keys(a);o=o.filter(s=>(!r.includedModules||r.includedModules.includes(s))&&(!r.excludedModules||!r.excludedModules.includes(s))),o.forEach(s=>{if(!NH[s]){Pn.warn(`setActions: '${s}', does not exist`);return}if(!LH[s]){Pn.warn(`moduleKeys: '${s}', does not exist`);return}const c={doClearOld:!1,...r.moduleOpts[s]||{}};this.commit(`${LH[s]}/${NH[s]}`,{data:Object.keys(a[s]).map(l=>a[s][l]),...c})})}};Fe.use(oj);const FH=[TIe({whitelist:["entities"]}),bqe];try{const n=SIe({paths:["forms"]});FH.push(n)}catch(n){Pn.debug(n)}const hn=new oj.Store({modules:{application:DRe,companies:bLe,companyUsers:PLe,documents2:QWe,endCustomers:uGe,forms:Hze,files:rVe,projects:vWe,settings:JLe,templates:TWe,templateMessages:LWe,articles:xGe,unitTypes:DGe},actions:_qe,mutations:{reset:()=>{}},plugins:FH});class wqe{constructor(){$n(this,"id","directive-name");this.store=null,this.isInitialized=!1}install(t,r){this.isInitialized||(t.directive(this.id,this._getDirective()),this.load(t,r),this.isInitialized=!0)}load(t,r){}bind(...t){this.update(...t)}inserted(){}update(t,r,i,a){}componentUpdated(t,r,i,a){}unbind(){}_getDirective(){return{bind:this.bind.bind(this),update:this.update.bind(this),inserted:this.inserted.bind(this),componentUpdated:this.componentUpdated.bind(this),unbind:this.unbind.bind(this)}}}class xqe extends wqe{constructor(){super(...arguments);$n(this,"id","click-outside");$n(this,"HANDLER","_vue_clickaway_handler")}bind(r,i,a){this.unbind(r);const o=a.context,s=i.value;if(typeof s!="function"){Vue.util.warn(`v-${i.name}="${i.expression}" expects a function value, got ${s}`);return}let c=!1;setTimeout(()=>{c=!0},0),r[this.HANDLER]=function(u){const d=u.path||(u.composedPath?u.composedPath():void 0);return c&&(d?d.indexOf(r)<0:!r.contains(u.target))?s.call(o,u):!1},document.documentElement.addEventListener("click",r[this.HANDLER],!1)}unbind(r){document.documentElement.removeEventListener("click",r[this.HANDLER],!1),delete r[this.HANDLER]}}const Cqe=new xqe,kqe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Sqe(n){return Object.keys(n).map(t=>`${t}="${n[t]}"`).join(" ")}class Tqe{constructor(t,r,i=[]){this.name=t,this.contents=r,this.tags=i,this.attrs={...kqe,class:`feather feather-${t}`}}toSvg(t={}){const r={...this.attrs,...t,class:`${this.attrs.class} ${t.class}`};return`<svg ${Sqe(r)}>${this.contents}</svg>`}toString(){return this.contents}}const BH={empty:"<path></path>","chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',email:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',warning:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',edit:'<path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34"></path><polygon points="18 2 22 6 12 16 8 16 8 12 18 2"></polygon>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',"user-add":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',zap:'<polygon points="6 2 3 14 10 14 9 23 21 9 12 9 15 2"></polygon>',handle:'<circle cx="8" cy="12" r="1"></circle><circle cx="8" cy="5" r="1"></circle><circle cx="8" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>',cog:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',template:'<path d="M13.1288235 8.96823529L7.64823529 18.1176471c-.22993777.3981997-.23131063.8885068-.00360637 1.2879879.22770427.3994812.65028474.6481349 1.11007696.6531885H19.7158824c.4597922-.0050536.8823726-.2537073 1.1100769-.6531885.2277043-.3994811.2263314-.8897882-.0036064-1.2879879l-5.4805882-9.14941181c-.2346013-.38675914-.6541207-.622952-1.1064706-.622952-.4523499 0-.8718693.23619286-1.1064706.622952zM9.52035111 1.52159478C8.8745304 1.30537258 8.18329779 1.188235 7.46470624 1.188235 3.89109903 1.188235.994118 4.08521603.994118 7.65882324c0 3.26867116 2.42367552 5.97126256 5.57193953 6.40868706"/><path d="M8.6634487 11.52342624L6.89650942 6.08534626c-.22086107-.67974048.1511342-1.40982229.83087467-1.63068336l8.61545314-2.79933041c.67974054-.2208611 1.40982235.15113417 1.63068342.83087465l2.79933043 8.61545318c.20002516.61561413-.086223 1.2725192-.6469517 1.5550493"/>',"template-color":'<g fill="none" stroke="none" fill-rule="evenodd"><path fill="#3CD740" d="M7.20527962 6.31188761C6.64248136 6.10988982 6.03696274 6 5.40621512 6 2.42045261 6 0 8.46243776 0 11.5000057 0 14.5375966 2.42045261 17 5.40621512 17c1.78482731 0 3.38970782-.9439359 4.37423872-2.3006513l-4.03718867-.690644 1.46201445-7.69681709z"/><path fill="#299DFF" d="M8.79874995 3L7 13.2257595l4.8157688.8511636L16 7l2.0689267 3.6486439L19 4.80307079z"/><path fill="#E60DFF" d="M10 19.2989721L16 9l6 10.2989721z"/></g>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="20" y1="20" x2="16.65" y2="16.65"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',paper:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',"paper-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V8l-6-6z"/><path d="M14 3v5h5M16 13H8M16 17H8M10 9H8"/>',"paper-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',user:'<path d="M5.52 19c.64-2.2 1.84-3 3.22-3h6.52c1.38 0 2.58.8 3.22 3"/><circle cx="12" cy="10" r="3"/><circle cx="12" cy="12" r="10"/>',person:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',"arrow-down":'<path d="M12 5v13M5 12l7 7 7-7"/>',"arrow-up":'<path d="M12 19V6M5 12l7-7 7 7"/>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',"chevron-left":'<polyline points="14 18 8 12 14 6"></polyline>',"chevron-right":'<path d="M9 18l6-6-6-6"/>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-up-down":'<polyline points="17 8 12 3 7 8"></polyline><polyline points="17 15 12 20 7 15"></polyline>',"chevron-up":'<path d="M18 15l-6-6-6 6"/>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',dollar:'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',check:'<polyline points="20 6 9 17 4 12"></polyline>',send:'<line x1="22" y1="11" x2="8" y2="11"></line><polygon points="22 11 4 20 8 11 4 2 22 11"></polygon>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',alert:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"circle-status":'<circle cx="12" cy="12" r="11" fill="currentColor" opacity="0.5"></circle><circle cx="12" cy="12" r="4" fill="currentColor"></circle>',circle:'<circle cx="12" cy="12" r="10"></circle>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"new-window":'<g fill="none" fill-rule="evenodd"><path d="M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"/></g>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',print:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',sort:'<line x1="6" y1="16" x2="8" y2="16"></line><line x1="6" y1="10" x2="14" y2="10"></line><line x1="6" y1="4" x2="20" y2="4"></line>',"square-filled-check":'<path fill="#currentColor" stroke="none" fill-rule="nonzero" d="M7 3h10c2.209139 0 4 1.790861 4 4v10c0 2.209139-1.790861 4-4 4H7c-2.209139 0-4-1.790861-4-4V7c0-2.209139 1.790861-4 4-4zm1.08963645 8.479072c-.2954885-.1600713-.65162073-.1610177-.94795577-.0025191l-.43065247.2303401c-.07620551.0407595-.14427685.0951688-.2008263.1605199-.25504929.2947468-.22286811.7404446.07187866.9954938l3.84044413 3.3232002a1.0000081 1.0000081 0 00.0946803.0725235c.4576881.3090956 1.079289.1886376 1.3883846-.2690505l5.1003142-7.55220409c.2865705-.42433447.2063135-.99658014-.18593-1.3257115l-.0020995-.00176176c-.3854696-.32344738-.9583065-.28155332-1.292616.09453464l-4.9815245 5.60406241-2.45409735-1.3294276z"/>',"colored-dots":'<circle cx="6" cy="6" r="4" stroke="none" fill="red"></circle><circle cx="18" cy="6" r="4" stroke="none" fill="#ff7a14"></circle><circle cx="6" cy="18" r="4" stroke="none" fill="#2bb8d4"></circle><circle cx="18" cy="18" r="4" stroke="none" fill="#3352ff"></circle>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path><',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',crown:'<path d="M2 4L5 16H19L22 4L16 11L12 4L8 11L2 4ZM5 20H19" />',lamp:'<path d="M9 17v3c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-3M15 16.59c0-.77.46-1.45 1.09-1.9a7 7 0 1 0-8.18 0A2.41 2.41 0 0 1 9 16.58V17h6v-.41zM12 17v-5m-2 0h4" />',"paper-invoice":'<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><path d="M14 2v6h6M10 8H8M10 5H8m0 7h8v3.46H8zm8 7h-2"/>',drop:'<path d="M12,21 C15.3137085,21 18,18.3904147 18,15 C18,11.6666667 16,8 12,4 C8,8 6,11.6666667 6,15 C6,18.3904147 8.6862915,21 12,21 Z"></path>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',logout:'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',linkedin:'<path fill="currentColor" stroke="none" d="M22.23 0H1.77C.8 0 0 .77 0 1.72v20.56C0 23.23.8 24 1.77 24h20.46c.98 0 1.77-.77 1.77-1.72V1.72C24 .77 23.2 0 22.23 0zM7.27 20.1H3.65V9.24h3.62V20.1zM5.47 7.76h-.03c-1.22 0-2-.83-2-1.87 0-1.06.8-1.87 2.05-1.87 1.24 0 2 .8 2.02 1.87 0 1.04-.78 1.87-2.05 1.87zM20.34 20.1h-3.63v-5.8c0-1.45-.52-2.45-1.83-2.45-1 0-1.6.67-1.87 1.32-.1.23-.11.55-.11.88v6.05H9.28s.05-9.82 0-10.84h3.63v1.54a3.6 3.6 0 0 1 3.26-1.8c2.39 0 4.18 1.56 4.18 4.89v6.21z"></path>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"rotate-left":'<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38"/>',image:'<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M20.4 14.5L16 10 4 20"/>',textType:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',desktop:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2" /><line x1="12" y1="18" x2="12.01" y2="18" />',mobile:'<rect x="6" y="4" width="12" height="18" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',help:'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',reset:'<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38"/>',company:'<path d="M4 19L4 5H14.5V11.5M14.5 19V11.5M14.5 11.5H20V19" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="7.5" x2="7.75" y2="9.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="7.5" x2="10.75" y2="9.5" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="11.5" x2="7.75" y2="13.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="11.5" x2="10.75" y2="13.5" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="15.5" x2="7.75" y2="17.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="15.5" x2="10.75" y2="17.5" stroke="currentColor" stroke-linecap="butt" />',pipedrive:'<path d="M10.57 5.38c-.06-.47-.37-1.04-1.6-1.04H6v2.58h1.21c.2 0 .26.1.26.28v12.91h3.3v-5.26c.84.7 1.9 1.1 3 1.08 3.1 0 5.1-2.46 5.1-5.97 0-3.57-1.94-5.96-5-5.96a4.3 4.3 0 0 0-3.3 1.38Zm2.7 1.42c1.5 0 2.5 1.29 2.5 3.2 0 2.2-1.27 3.17-2.54 3.17-1.7 0-2.48-1.63-2.48-3.14 0-2.39 1.3-3.23 2.52-3.23Z" fill="currentColor" stroke="none" />',hubspot:'<path d="M15.82 8.26V5.99a1.73 1.73 0 0 0 1-1.57v-.05c0-.96-.78-1.74-1.73-1.74h-.05c-.96 0-1.73.78-1.73 1.74v.05a1.75 1.75 0 0 0 1 1.57v2.27c-.86.13-1.66.48-2.33 1.03L5.82 4.46a1.97 1.97 0 0 0-1.13-2.3 1.93 1.93 0 0 0-2.65 1.42 1.98 1.98 0 0 0 .82 2.01 1.94 1.94 0 0 0 2.04.07l6.06 4.76a4.98 4.98 0 0 0 .08 5.57L9.2 17.85a1.6 1.6 0 0 0-2.06 1.54c0 .89.71 1.61 1.6 1.61a1.6 1.6 0 0 0 1.52-2.08l1.82-1.83a4.88 4.88 0 0 0 5.61.27 4.97 4.97 0 0 0-1.87-9.1Zm-.76 7.44a2.5 2.5 0 0 1-2.39-1.56 2.56 2.56 0 0 1 1.4-3.35c.32-.13.66-.19 1-.18a2.53 2.53 0 0 1 2.43 2.54c0 1.37-1.08 2.5-2.43 2.55" fill="currentColor" stroke="none" />',salesforce:'<path d="M10.15 6.64a3.93 3.93 0 0 1 6.19.8c.58-.26 1.23-.4 1.92-.4A4.7 4.7 0 0 1 23 11.69a4.7 4.7 0 0 1-5.67 4.57 3.49 3.49 0 0 1-4.55 1.4c-.6 1.37-2 2.34-3.64 2.34a3.96 3.96 0 0 1-3.71-2.52A3.64 3.64 0 0 1 1 13.94c0-1.34.74-2.51 1.84-3.14a3.99 3.99 0 0 1-.36-1.65A4.2 4.2 0 0 1 6.75 5a4.3 4.3 0 0 1 3.4 1.64Z" fill="currentColor" stroke="none" />',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',sidebar:'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="8" y1="4" x2="8" y2="20"></line>',table:'<path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4H6.25ZM4.5 10v4h4v-4h-4Zm5.5 0v4h4v-4h-4Zm5.5 0v4h4v-4h-4ZM14 15.5h-4v4h4v-4Zm1.5 4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4v4Zm0-11h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-1.5-4h-4v4h4v-4Zm-9.5 11v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4h-4Z" fill="currentColor" stroke="none"/>',tableMergeCells:'<path d="M6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25ZM4.5 6.25c0-.966.784-1.75 1.75-1.75H11v3H4.5V6.25Zm8 10.25h7v1.25a1.75 1.75 0 0 1-1.75 1.75H12.5v-3Zm7-9h-7v-3h5.25c.966 0 1.75.784 1.75 1.75V7.5Zm-8.5 9v3H6.25a1.75 1.75 0 0 1-1.75-1.75V16.5H11ZM4.5 9h15v6h-15V9Z" fill="currentColor" stroke="none"/>',tableSplitCells:'<path d="M12.5 10H11v4h1.5v-4Z" fill="currentColor" stroke="none"/><path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V7.5H11v-3H6.25Zm13.25 12h-7v3h5.25a1.75 1.75 0 0 0 1.75-1.75V16.5Zm0-10.25a1.75 1.75 0 0 0-1.75-1.75H12.5v3h7V6.25ZM4.5 16.5v1.25c0 .966.784 1.75 1.75 1.75H11v-3H4.5Zm0-1.5h15V9h-15v6Z" fill="currentColor" stroke="none"/>',tableDeleteColumn:'<path d="M22 3.75a.75.75 0 0 0-.75-.75h-1A3.25 3.25 0 0 0 17 6.25v11.5A3.25 3.25 0 0 0 20.25 21h1a.75.75 0 0 0 0-1.5h-1a1.75 1.75 0 0 1-1.75-1.75V15.5h2.75a.75.75 0 0 0 0-1.5H18.5v-4h2.75a.75.75 0 0 0 0-1.5H18.5V6.25c0-.966.784-1.75 1.75-1.75h1a.75.75 0 0 0 .75-.75ZM2 3.75A.75.75 0 0 1 2.75 3h1A3.25 3.25 0 0 1 7 6.25v11.5A3.25 3.25 0 0 1 3.75 21h-1a.75.75 0 0 1 0-1.5h1a1.75 1.75 0 0 0 1.75-1.75V15.5H2.75a.75.75 0 0 1 0-1.5H5.5v-4H2.75a.75.75 0 0 1 0-1.5H5.5V6.25A1.75 1.75 0 0 0 3.75 4.5h-1A.75.75 0 0 1 2 3.75ZM10.94 12l-1.47 1.47a.75.75 0 1 0 1.06 1.06L12 13.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L13.06 12l1.47-1.47a.75.75 0 1 0-1.06-1.06L12 10.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L10.94 12Z" fill="currentColor" stroke="none"/><path d="M11.25 8.727c.026.023.051.047.076.072l.674.674.674-.674c.025-.025.05-.049.076-.072V2.75a.75.75 0 0 0-1.5 0v5.977ZM11.25 15.523v5.727a.75.75 0 0 0 1.5 0v-5.727a1.826 1.826 0 0 1-.076-.072L12 14.777l-.674.674-.076.072Z" fill="currentColor" stroke="none"/>',tableDeleteRow:'<path d="M3.75 2a.75.75 0 0 0-.75.75v1A3.25 3.25 0 0 0 6.25 7h11.5A3.25 3.25 0 0 0 21 3.75v-1a.75.75 0 0 0-1.5 0v1a1.75 1.75 0 0 1-1.75 1.75H15.5V2.75a.75.75 0 0 0-1.5 0V5.5h-4V2.75a.75.75 0 0 0-1.5 0V5.5H6.25A1.75 1.75 0 0 1 4.5 3.75v-1A.75.75 0 0 0 3.75 2ZM3.75 22a.75.75 0 0 1-.75-.75v-1A3.25 3.25 0 0 1 6.25 17h11.5A3.25 3.25 0 0 1 21 20.25v1a.75.75 0 0 1-1.5 0v-1a1.75 1.75 0 0 0-1.75-1.75H15.5v2.75a.75.75 0 0 1-1.5 0V18.5h-4v2.75a.75.75 0 0 1-1.5 0V18.5H6.25a1.75 1.75 0 0 0-1.75 1.75v1a.75.75 0 0 1-.75.75ZM12 13.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L13.06 12l1.47-1.47a.75.75 0 1 0-1.06-1.06L12 10.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L10.94 12l-1.47 1.47a.75.75 0 1 0 1.06 1.06L12 13.06Z" fill="currentColor" stroke="none"/><path d="M8.727 12.75c.023-.026.047-.051.072-.076L9.473 12l-.674-.674a1.845 1.845 0 0 1-.072-.076H2.75a.75.75 0 0 0 0 1.5h5.977ZM15.523 12.75h5.727a.75.75 0 0 0 0-1.5h-5.727a1.826 1.826 0 0 1-.072.076l-.674.674.674.674.072.076Z" fill="currentColor" stroke="none"/>',tableInsertColumn:'<path d="M4.5 3.75v16.5a.75.75 0 0 1-1.5 0V3.75a.75.75 0 0 1 1.5 0ZM14.25 3a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 14.25 21h-4.5a2.25 2.25 0 0 1-2.25-2.25V5.25A2.25 2.25 0 0 1 9.75 3h4.5ZM15 5.25a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0-.75.75V8.5h6V5.25ZM9 14h6v-4H9v4Zm0 1.5v3.25c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75V15.5H9ZM21 20.25V3.75a.75.75 0 0 0-1.5 0v16.5a.75.75 0 0 0 1.5 0Z" fill="currentColor" stroke="none"/>',tableInsertRowBefore:'<path d="M20.25 4.5a.75.75 0 0 0 0-1.5H3.75a.75.75 0 0 0 0 1.5h16.5ZM20.25 8.5a.75.75 0 0 1 .75.75v8.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75v-8.5a.75.75 0 0 1 .75-.75h16.5ZM14 10h-4v4h4v-4Zm-5.5 0h-4v4h4v-4Zm0 5.5h-4v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4Zm5.5 0h-4v4h4v-4Zm1.5 4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4v4Zm4-9.5h-4v4h4v-4Z" fill="currentColor" stroke="none"/>',tableInsertRowAfter:'<path d="M3.75 15.5a.75.75 0 0 1-.75-.75v-8.5A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v8.5a.75.75 0 0 1-.75.75H3.75ZM10 14h4v-4h-4v4Zm0-5.5h4v-4h-4v4Zm5.5 5.5h4v-4h-4v4Zm0-5.5h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-7-4H6.25A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4Zm-4 9.5h4v-4h-4v4ZM3.75 19.5a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75Z" fill="currentColor" stroke="none"/>',tableInsertColumnBefore:'<path d="M4.5 3.75a.75.75 0 0 0-1.5 0v16.5a.75.75 0 0 0 1.5 0V3.75ZM8.5 3.75A.75.75 0 0 1 9.25 3h8.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21h-8.5a.75.75 0 0 1-.75-.75V3.75ZM10 10v4h4v-4h-4Zm0 5.5v4h4v-4h-4Zm5.5 0v4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4Zm0-5.5v4h4v-4h-4Zm4-1.5V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4h4Zm-9.5-4v4h4v-4h-4Z" fill="currentColor" stroke="none"/>',tableInsertColumnAfter:'<path d="M15.5 3.75a.75.75 0 0 0-.75-.75h-8.5A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h8.5a.75.75 0 0 0 .75-.75V3.75ZM14 10v4h-4v-4h4Zm-9.5 4v-4h4v4h-4ZM14 8.5h-4v-4h4v4Zm-5.5 0h-4V6.25c0-.966.784-1.75 1.75-1.75H8.5v4Zm0 11H6.25a1.75 1.75 0 0 1-1.75-1.75V15.5h4v4Zm1.5-4h4v4h-4v-4ZM19.5 3.75a.75.75 0 0 1 1.5 0v16.5a.75.75 0 0 1-1.5 0V3.75Z" fill="currentColor" stroke="none"/>',tableDelete:'<path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V10h-4v1.313a6.471 6.471 0 0 0-1.5.709V10h-4v4h2.022a6.471 6.471 0 0 0-.709 1.5H10v4h1.313c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4H6.25ZM4.5 10v4h4v-4h-4Zm11-1.5h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-1.5-4h-4v4h4v-4Zm-9.5 11v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4h-4Z" fill="currentColor" stroke="none"/><path d="M23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-5.5-.707-1.646-1.647a.5.5 0 0 0-.708.708l1.647 1.646-1.647 1.646a.5.5 0 0 0 .708.708l1.646-1.647 1.646 1.647a.5.5 0 0 0 .708-.708L18.207 17.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 16.793Z" fill="currentColor" stroke="none"/>',tableEditCell:'<path d="M3 8.75A2.25 2.25 0 0 1 5.25 6.5h13.5a2.25 2.25 0 0 1 2.123 1.504A3.285 3.285 0 0 0 20.715 8h-.002c-.466 0-.932.1-1.365.297A.749.749 0 0 0 18.75 8H15.5v3.853l-1.5 1.5V8h-4v6h3.353l-.865.865a3.686 3.686 0 0 0-.508.635H5.25A2.25 2.25 0 0 1 3 13.25v-4.5ZM5.25 8a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75H8.5V8H5.25Zm15.465 1h-.002c-.585 0-1.17.223-1.615.67l-5.902 5.902a2.684 2.684 0 0 0-.707 1.247l-.458 1.831a1.087 1.087 0 0 0 1.319 1.318l1.83-.457a2.684 2.684 0 0 0 1.248-.707l5.902-5.902A2.286 2.286 0 0 0 20.715 9Z" fill="currentColor" stroke="none"/>',tableHeaderCell:'<path d="M3 9.75C3 9.15326 3.23705 8.58097 3.65901 8.15901C4.08097 7.73705 4.65326 7.5 5.25 7.5H18.75C19.3467 7.5 19.919 7.73705 20.341 8.15901C20.7629 8.58097 21 9.15326 21 9.75V14.25C21 14.8467 20.7629 15.419 20.341 15.841C19.919 16.2629 19.3467 16.5 18.75 16.5H5.25C4.65326 16.5 4.08097 16.2629 3.65901 15.841C3.23705 15.419 3 14.8467 3 14.25V9.75ZM5.25 9C5.05109 9 4.86032 9.07902 4.71967 9.21967C4.57902 9.36032 4.5 9.55109 4.5 9.75V14.25C4.5 14.664 4.836 15 5.25 15H8.5V9H5.25ZM15.5 15H18.75C18.9489 15 19.1397 14.921 19.2803 14.7803C19.421 14.6397 19.5 14.4489 19.5 14.25V9.75C19.5 9.55109 19.421 9.36032 19.2803 9.21967C19.1397 9.07902 18.9489 9 18.75 9H15.5V15Z" fill="currentColor" stroke="none"/>',editorImage:'<path d="M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5Zm.58 16.401-5.805-5.686a.75.75 0 0 0-.966-.071l-.084.07-5.807 5.687c.182.064.378.099.582.099h11.5c.203 0 .399-.035.58-.099l-5.805-5.686L18.33 19.4ZM17.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v11.5c0 .208.036.408.103.594l5.823-5.701a2.25 2.25 0 0 1 3.02-.116l.128.116 5.822 5.702c.067-.186.104-.386.104-.595V6.25a1.75 1.75 0 0 0-1.75-1.75Zm-2.498 2a2.252 2.252 0 1 1 0 4.504 2.252 2.252 0 0 1 0-4.504Zm0 1.5a.752.752 0 1 0 0 1.504.752.752 0 0 0 0-1.504Z" stroke-width="0.5" fill="currentColor"/>',editorFont:'<path d="M7 2a.75.75 0 0 1 .704.49l2.951 7.985.013.032.222.602-.828 2.086-.626-1.694H4.564l-1.113 3.01a.75.75 0 1 1-1.407-.521l1.288-3.483a.766.766 0 0 1 .012-.033L6.297 2.49A.75.75 0 0 1 7 2ZM5.12 10H8.88l-1.88-5.087L5.118 10ZM13.806 6.473a.75.75 0 0 1 1.395 0l5.554 14.031h.494a.75.75 0 1 1 0 1.5H18.75a.75.75 0 0 1 0-1.5h.392l-1.19-3.004h-6.91L9.85 20.504h.4a.75.75 0 1 1 0 1.5H7.75a.75.75 0 1 1 0-1.5h.485l5.57-14.03ZM17.36 16l-2.857-7.215L11.638 16h5.72Z" stroke-width="0.5" fill="currentColor"/>',editorLine:'<path d="M2.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 2.5 12ZM6.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 6.5 12ZM10.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM14.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM18.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM4.75 2a.75.75 0 0 0-.75.75V7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2.75a.75.75 0 0 0-1.5 0V7a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V2.75A.75.75 0 0 0 4.75 2ZM19.25 22a.75.75 0 0 0 .75-.75V17a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4.25a.75.75 0 0 0 1.5 0V17a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 .5.5v4.25c0 .414.336.75.75.75Z" stroke-width="0.5" fill="currentColor"/>',editorQuote:'<path d="M7.5 6a2.5 2.5 0 0 1 2.495 2.336l.005.206c-.01 3.555-1.24 6.614-3.705 9.223a.75.75 0 1 1-1.09-1.03c1.64-1.737 2.66-3.674 3.077-5.859A2.5 2.5 0 1 1 7.5 6Zm9 0a2.5 2.5 0 0 1 2.495 2.336l.005.206c-.01 3.56-1.238 6.614-3.705 9.223a.75.75 0 1 1-1.09-1.03c1.643-1.738 2.662-3.672 3.078-5.859A2.5 2.5 0 1 1 16.5 6Z" stroke-width="0.5" fill="currentColor"/>',editorBulletList:'<path d="M3.25 17.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494l-.102.006H6.75a.75.75 0 0 1-.102-1.493L6.75 18h14.5-14.5Zm-3.5-7a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494L21.25 13H6.75a.75.75 0 0 1-.102-1.493l.102-.007h14.5-14.5Zm-3.5-7A1.25 1.25 0 1 1 3.25 7a1.25 1.25 0 0 1 0-2.499Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494l-.102.006H6.75a.75.75 0 0 1-.102-1.493L6.75 5h14.5-14.5Z" stroke-width="0.5" fill="currentColor"/>',editorNumberedList:'<path d="M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003a1.45 1.45 0 0 1-.067.132 4.126 4.126 0 0 1-.238.384c-.217.313-.524.663-.906.902a.75.75 0 1 0 .794 1.272c.125-.078.243-.161.353-.248V7.25a.75.75 0 0 0 1.5 0v-4.5ZM20.5 18.75a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM20.5 12.244a.75.75 0 0 0-.75-.75h-9a.75.75 0 1 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM20.5 5.75a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 1 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a5.88 5.88 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.314.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12ZM2.97 21.28s.093.084.004.005l.006.005.013.013a1.426 1.426 0 0 0 .15.125c.095.07.227.158.397.243.341.17.83.329 1.46.329.64 0 1.196-.181 1.601-.54.408-.36.61-.857.595-1.359A1.775 1.775 0 0 0 6.77 19c.259-.305.412-.685.426-1.101a1.73 1.73 0 0 0-.595-1.36C6.196 16.181 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.592 2.592 0 0 0-.51.334 1.426 1.426 0 0 0-.037.033l-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072 1.1 1.1 0 0 1 .192-.121c.159-.08.42-.171.79-.171.36 0 .536.1.608.164.07.061.09.127.088.187a.325.325 0 0 1-.123.23c-.089.077-.263.169-.573.169a.75.75 0 0 0 0 1.5c.31 0 .484.092.573.168.091.08.121.166.123.231a.232.232 0 0 1-.088.187c-.072.064-.247.164-.608.164a1.75 1.75 0 0 1-.79-.17 1.1 1.1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072Zm.002-4.563-.001.002c.007-.006.2-.168 0-.002Z" stroke-width="0.5" fill="currentColor"/>',editorMention:'<path d="M22 12v1.75a3.75 3.75 0 0 1-7.149 1.586C14.033 16.356 12.84 17 11.5 17 8.992 17 7 14.742 7 12s1.992-5 4.5-5c1.159 0 2.208.482 3.001 1.272L14.5 7.75a.75.75 0 0 1 1.493-.102L16 7.75v6a2.25 2.25 0 0 0 4.495.154l.005-.154V12a8.5 8.5 0 1 0-5.515 7.961.75.75 0 0 1 .527 1.405A9.98 9.98 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2c5.43 0 9.848 4.327 9.996 9.72L22 12v1.75V12ZM11.5 8.5c-1.635 0-3 1.548-3 3.5s1.365 3.5 3 3.5c1.634 0 3-1.548 3-3.5s-1.366-3.5-3-3.5Z" stroke-width="0.5" fill="currentColor"/>',editorH1:'<path d="M19.59 5.081a.746.746 0 0 0-.809.084.751.751 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69ZM3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5V5.75Z" fill="currentColor" stroke-width="0.5"/>',editorH2:'<path d="M4.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H11v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H4.5V5.75Zm10.921 2.085c.23-.46.913-1.335 2.58-1.335.842 0 1.459.26 1.86.639.397.376.64.921.64 1.611 0 1.963-1.3 3.068-2.958 4.343l-.212.163C15.825 14.409 14 15.806 14 18.25a.75.75 0 0 0 .75.75h6.5a.75.75 0 0 0 0-1.5h-5.66c.315-1.252 1.427-2.11 2.866-3.218C20.05 13.057 22 11.537 22 8.75c0-1.06-.383-2.015-1.11-2.702C20.166 5.364 19.158 5 18 5c-2.333 0-3.484 1.291-3.92 2.165a.75.75 0 0 0 1.341.67Z" fill="currentColor" stroke-width="0.5"/>',editorH3:'<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5V5.75Zm11.92 2.085c.23-.46.914-1.335 2.58-1.335.843 0 1.46.26 1.86.639.398.376.64.921.64 1.611 0 .606-.161 1.026-.384 1.332-.228.314-.555.554-.953.735-.816.37-1.802.433-2.383.433a.75.75 0 0 0 0 1.5c.581 0 1.567.063 2.383.433.398.18.725.42.953.735.223.306.384.726.384 1.332 0 1.086-.914 2.25-2.5 2.25-1.727 0-2.348-.76-2.553-1.276a.75.75 0 1 0-1.394.552C14.508 17.926 15.727 19 18 19c2.414 0 4-1.836 4-3.75 0-.894-.245-1.63-.67-2.214A3.679 3.679 0 0 0 20.144 12a3.679 3.679 0 0 0 1.186-1.036c.425-.584.67-1.32.67-2.214 0-1.06-.383-2.015-1.11-2.702C20.165 5.364 19.157 5 18 5c-2.334 0-3.484 1.291-3.92 2.165a.75.75 0 1 0 1.34.67Z" fill="currentColor" stroke-width="0.5"/>',editorSnippets:'<path d="m11.066 8.004.184-.005h7.5a3.25 3.25 0 0 1 3.245 3.065l.005.185v7.5a3.25 3.25 0 0 1-3.066 3.245l-.184.005h-7.5a3.25 3.25 0 0 1-3.245-3.066L8 18.75v-7.5a3.25 3.25 0 0 1 3.066-3.245Zm7.684 1.495h-7.5a1.75 1.75 0 0 0-1.744 1.606l-.006.144v7.5a1.75 1.75 0 0 0 1.607 1.744l.143.006h7.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143v-7.5a1.75 1.75 0 0 0-1.75-1.75ZM15 11a.75.75 0 0 1 .75.75v2.498h2.5a.75.75 0 0 1 0 1.5h-2.5v2.502a.75.75 0 0 1-1.5 0v-2.502h-2.5a.75.75 0 1 1 0-1.5h2.5V11.75A.75.75 0 0 1 15 11Zm.582-6.767.052.177.693 2.588h-1.553l-.588-2.2a1.75 1.75 0 0 0-2.144-1.238L4.798 5.502a1.75 1.75 0 0 0-1.27 1.995l.032.148 1.942 7.244A1.75 1.75 0 0 0 7 16.176v1.506a3.252 3.252 0 0 1-2.895-2.228l-.052-.176-1.941-7.245a3.25 3.25 0 0 1 2.12-3.928l.178-.052 7.244-1.941a3.25 3.25 0 0 1 3.928 2.12Z" fill="currentColor" stroke-width="0.5" />',editorItalic:'<path d="M10.649 18.5h3.847a1 1 0 0 1 0 2h-9.5a.997.997 0 0 1-.996-1c0-.552.445-1 .996-1h3.51L13.332 6H9.997a1 1 0 0 1 0-2H18.5a1 1 0 0 1 0 2h-3.025L10.65 18.5Z" fill="currentColor" stroke-width="0.25" />',question:'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',layout:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',chat:'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',thumbsup:'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',thumbsdown:'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',error:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',bankId:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M6.52062 20.2043C7.26873 20.2043 7.92724 20.5001 7.80085 21.2878L7.65813 22.1764C7.60772 22.4904 7.61709 22.5844 7.97808 22.5913L7.61127 23.4261C6.97292 23.4674 6.66405 23.4024 6.51067 23.1355C6.17212 23.3375 5.79976 23.4379 5.40099 23.4379C4.67773 23.4379 4.42892 23.077 4.49325 22.6741C4.5235 22.4838 4.63953 22.295 4.82386 22.1407C5.22064 21.809 6.2035 21.7611 6.58765 21.5071C6.62116 21.2228 6.50244 21.1219 6.14031 21.1219C5.71725 21.1219 5.36407 21.2584 4.7608 21.6551L4.90779 20.7362C5.43295 20.3698 5.93751 20.2041 6.52062 20.2041V20.2043ZM11.0695 20.2043C11.7643 20.2043 12.088 20.6314 11.9794 21.3358L11.6556 23.4379H10.4098L10.678 21.6974C10.7266 21.3787 10.6354 21.2336 10.39 21.2336C10.1923 21.2336 10.0138 21.3421 9.84014 21.5764L9.55314 23.4379H8.30769L8.79707 20.2575H10.0431L9.97889 20.6735C10.3725 20.336 10.6742 20.2041 11.0695 20.2041V20.2043ZM14.202 19.1483L13.891 21.2615L15.0807 20.1162H16.6154L15.0875 21.5322L16.3123 23.4379H14.754L13.8088 21.903H13.7972L13.5716 23.4379H12.3295L12.9597 19.1483H14.2019H14.202ZM3.06305 19.2803C4.09477 19.2803 4.34798 19.7884 4.2737 20.2538C4.21363 20.6321 3.95049 20.9095 3.49065 21.0925C4.07006 21.305 4.29572 21.6411 4.21264 22.1605C4.10854 22.816 3.52104 23.3059 2.75602 23.3059H0L0.641041 19.2803H3.06305V19.2803ZM21.718 19.2803C23.328 19.2803 23.7929 20.4136 23.6441 21.3462C23.4978 22.261 22.7511 23.3059 21.3364 23.3059H18.989L19.6326 19.2803H21.718ZM18.9231 19.2803L18.2765 23.3059H16.8132L17.4599 19.2803H18.9231ZM6.50386 22.028C6.16417 22.2356 5.53818 22.1998 5.46987 22.6263C5.43749 22.8279 5.56715 22.9756 5.77534 22.9756C5.97799 22.9756 6.22466 22.8928 6.41681 22.7626C6.40388 22.6919 6.41013 22.6146 6.43285 22.4725L6.50386 22.028V22.028ZM2.20133 21.5647H1.72814L1.5485 22.692H1.98533C2.47115 22.692 2.75645 22.5031 2.81922 22.1076C2.87318 21.7711 2.67479 21.5647 2.20133 21.5647V21.5647ZM21.3271 20.2359H20.9365L20.5987 22.3496H20.9831C21.69 22.3496 22.0796 22.0131 22.1952 21.2932C22.2797 20.7619 22.1138 20.2359 21.3271 20.2359ZM2.41292 19.8937H1.99399L1.8257 20.9502H2.24464C2.71811 20.9502 2.93893 20.7083 2.9848 20.4191C3.03366 20.1127 2.88653 19.8937 2.41292 19.8937ZM6.23006 3.04568C6.69004 3.04568 7.04521 3.1404 7.22982 3.31266C7.35863 3.43323 7.40663 3.59101 7.36857 3.7698C7.33165 3.94234 7.13567 4.16701 6.8417 4.36951C6.00866 4.94693 6.15295 5.54537 6.21728 5.71536C6.41013 6.22675 7.05401 6.50267 7.56099 6.50267H8.63744L7.63342 12.7449H7.6506C7.27683 15.0776 6.99877 16.8367 6.94722 17.1683H0.98897C1.10315 16.4348 2.59441 7.11333 2.68885 6.50452H2.78045L3.08989 6.50523H3.16118L3.40204 6.5058L3.46537 6.50594L3.55342 6.50608H3.60611L3.63053 6.50622L3.69458 6.50637H3.76615L3.77439 6.50651H3.78518C4.50135 6.50267 5.16128 6.17988 5.46717 5.68383C5.76625 5.2027 5.6525 4.68691 5.17236 4.33728C5.01231 4.22111 4.82812 4.03266 4.86419 3.79948C4.91361 3.48464 5.45652 3.04568 6.22992 3.04568H6.23006ZM15.4962 1C20.9811 1 24.8058 3.38239 23.8547 9.32686C23.0857 14.1259 19.1722 17.1685 14.3813 17.1685H13.2454L14.0159 12.3253C15.9563 12.3037 17.5822 11.4008 17.9181 9.30542C18.2788 7.05013 17.1333 6.08189 15.0016 6.06542C15.002 6.06201 15.002 6.06017 15.002 6.06017H13.4342C13.0732 6.06017 12.6094 5.86206 12.4891 5.5431C12.4516 5.44426 12.3752 5.08781 12.9597 4.68137C13.1841 4.52502 13.5738 4.20606 13.6556 3.82447C13.7225 3.50466 13.6275 3.1955 13.3936 2.97709C13.1271 2.72757 12.6821 2.59508 12.1068 2.59508C11.1461 2.59508 10.4113 3.16909 10.3278 3.70462C10.3226 3.73941 10.3191 3.78017 10.3191 3.82476C10.3191 4.03778 10.4029 4.35148 10.8016 4.64317C10.9478 4.75011 11.0896 4.90731 11.0896 5.11763C11.0896 5.21406 11.0597 5.32071 10.9869 5.43957C10.7585 5.81051 10.2284 6.0613 9.66604 6.06443L8.63744 6.06201L9.44748 1H15.4962Z" fill="currentColor" />',bankIdColor:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M6.52062 20.2043C7.26873 20.2043 7.92724 20.5001 7.80085 21.2878L7.65813 22.1764C7.60772 22.4904 7.61709 22.5844 7.97808 22.5913L7.61127 23.4261C6.97292 23.4674 6.66405 23.4024 6.51067 23.1355C6.17212 23.3375 5.79976 23.4379 5.40099 23.4379C4.67773 23.4379 4.42892 23.077 4.49325 22.6741C4.5235 22.4838 4.63953 22.295 4.82386 22.1407C5.22064 21.809 6.2035 21.7611 6.58765 21.5071C6.62116 21.2228 6.50244 21.1219 6.14031 21.1219C5.71725 21.1219 5.36407 21.2584 4.7608 21.6551L4.90779 20.7362C5.43295 20.3698 5.93751 20.2041 6.52062 20.2041V20.2043ZM11.0695 20.2043C11.7643 20.2043 12.088 20.6314 11.9794 21.3358L11.6556 23.4379H10.4098L10.678 21.6974C10.7266 21.3787 10.6354 21.2336 10.39 21.2336C10.1923 21.2336 10.0138 21.3421 9.84014 21.5764L9.55314 23.4379H8.30769L8.79707 20.2575H10.0431L9.97889 20.6735C10.3725 20.336 10.6742 20.2041 11.0695 20.2041V20.2043ZM14.202 19.1483L13.891 21.2615L15.0807 20.1162H16.6154L15.0875 21.5322L16.3123 23.4379H14.754L13.8088 21.903H13.7972L13.5716 23.4379H12.3295L12.9597 19.1483H14.2019H14.202ZM3.06305 19.2803C4.09477 19.2803 4.34798 19.7884 4.2737 20.2538C4.21363 20.6321 3.95049 20.9095 3.49065 21.0925C4.07006 21.305 4.29572 21.6411 4.21264 22.1605C4.10854 22.816 3.52104 23.3059 2.75602 23.3059H0L0.641041 19.2803H3.06305V19.2803ZM21.718 19.2803C23.328 19.2803 23.7929 20.4136 23.6441 21.3462C23.4978 22.261 22.7511 23.3059 21.3364 23.3059H18.989L19.6326 19.2803H21.718ZM18.9231 19.2803L18.2765 23.3059H16.8132L17.4599 19.2803H18.9231ZM6.50386 22.028C6.16417 22.2356 5.53818 22.1998 5.46987 22.6263C5.43749 22.8279 5.56715 22.9756 5.77534 22.9756C5.97799 22.9756 6.22466 22.8928 6.41681 22.7626C6.40388 22.6919 6.41013 22.6146 6.43285 22.4725L6.50386 22.028V22.028ZM2.20133 21.5647H1.72814L1.5485 22.692H1.98533C2.47115 22.692 2.75645 22.5031 2.81922 22.1076C2.87318 21.7711 2.67479 21.5647 2.20133 21.5647V21.5647ZM21.3271 20.2359H20.9365L20.5987 22.3496H20.9831C21.69 22.3496 22.0796 22.0131 22.1952 21.2932C22.2797 20.7619 22.1138 20.2359 21.3271 20.2359ZM2.41292 19.8937H1.99399L1.8257 20.9502H2.24464C2.71811 20.9502 2.93893 20.7083 2.9848 20.4191C3.03366 20.1127 2.88653 19.8937 2.41292 19.8937ZM6.23006 3.04568C6.69004 3.04568 7.04521 3.1404 7.22982 3.31266C7.35863 3.43323 7.40663 3.59101 7.36857 3.7698C7.33165 3.94234 7.13567 4.16701 6.8417 4.36951C6.00866 4.94693 6.15295 5.54537 6.21728 5.71536C6.41013 6.22675 7.05401 6.50267 7.56099 6.50267H8.63744L7.63342 12.7449H7.6506C7.27683 15.0776 6.99877 16.8367 6.94722 17.1683H0.98897C1.10315 16.4348 2.59441 7.11333 2.68885 6.50452H2.78045L3.08989 6.50523H3.16118L3.40204 6.5058L3.46537 6.50594L3.55342 6.50608H3.60611L3.63053 6.50622L3.69458 6.50637H3.76615L3.77439 6.50651H3.78518C4.50135 6.50267 5.16128 6.17988 5.46717 5.68383C5.76625 5.2027 5.6525 4.68691 5.17236 4.33728C5.01231 4.22111 4.82812 4.03266 4.86419 3.79948C4.91361 3.48464 5.45652 3.04568 6.22992 3.04568H6.23006ZM15.4962 1C20.9811 1 24.8058 3.38239 23.8547 9.32686C23.0857 14.1259 19.1722 17.1685 14.3813 17.1685H13.2454L14.0159 12.3253C15.9563 12.3037 17.5822 11.4008 17.9181 9.30542C18.2788 7.05013 17.1333 6.08189 15.0016 6.06542C15.002 6.06201 15.002 6.06017 15.002 6.06017H13.4342C13.0732 6.06017 12.6094 5.86206 12.4891 5.5431C12.4516 5.44426 12.3752 5.08781 12.9597 4.68137C13.1841 4.52502 13.5738 4.20606 13.6556 3.82447C13.7225 3.50466 13.6275 3.1955 13.3936 2.97709C13.1271 2.72757 12.6821 2.59508 12.1068 2.59508C11.1461 2.59508 10.4113 3.16909 10.3278 3.70462C10.3226 3.73941 10.3191 3.78017 10.3191 3.82476C10.3191 4.03778 10.4029 4.35148 10.8016 4.64317C10.9478 4.75011 11.0896 4.90731 11.0896 5.11763C11.0896 5.21406 11.0597 5.32071 10.9869 5.43957C10.7585 5.81051 10.2284 6.0613 9.66604 6.06443L8.63744 6.06201L9.44748 1H15.4962Z" fill="#183E4F" />',statusDraft:'<path d="M7.5 4.20996V4.21996" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.21001 7.5V7.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 12V12.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.21001 16.5V16.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M7.5 19.79V19.8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 21V21.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 19.79V19.8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.79 16.5V16.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 12V12.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.79 7.5V7.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 4.20996V4.21996" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 3V3.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>',statusSent:'<path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>',statusScheduled:'<path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 12H15.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 7V12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusSemiSigned:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7V12V17Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusAccepted:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.7474 9.66436C17.1143 9.25158 17.0771 8.61951 16.6644 8.25259C16.2516 7.88567 15.6195 7.92285 15.2526 8.33564L10.6667 13.4948L8.74741 11.3356C8.38049 10.9229 7.74842 10.8857 7.33564 11.2526C6.92285 11.6195 6.88567 12.2516 7.25259 12.6644L9.91926 15.6644C10.109 15.8779 10.381 16 10.6667 16C10.9523 16 11.2243 15.8779 11.4141 15.6644L16.7474 9.66436Z" fill="currentColor" stroke="none" />',statusDenied:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM9.70711 8.29289C9.31658 7.90237 8.68342 7.90237 8.29289 8.29289C7.90237 8.68342 7.90237 9.31658 8.29289 9.70711L10.5858 12L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L12 13.4142L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L13.4142 12L15.7071 9.70711C16.0976 9.31658 16.0976 8.68342 15.7071 8.29289C15.3166 7.90237 14.6834 7.90237 14.2929 8.29289L12 10.5858L9.70711 8.29289Z" fill="currentColor"/>',statusActive:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM10.9577 7.61329L15.781 10.2442C17.1708 11.0022 17.1708 12.9978 15.7811 13.7558L10.9577 16.3867C9.62496 17.1137 8 16.149 8 14.6309V9.36908C8 7.85097 9.62495 6.88634 10.9577 7.61329Z" fill="currentColor"/><path d="M15.781 10.2442L16.2599 9.36631L16.2599 9.36631L15.781 10.2442ZM10.9577 7.61329L10.4789 8.49119L10.4789 8.49119L10.9577 7.61329ZM15.7811 13.7558L15.3022 12.8779L15.3022 12.8779L15.7811 13.7558ZM10.9577 16.3867L10.4789 15.5088L10.4789 15.5088L10.9577 16.3867ZM12 22C17.5228 22 22 17.5228 22 12H20C20 16.4183 16.4183 20 12 20V22ZM2 12C2 17.5228 6.47715 22 12 22V20C7.58172 20 4 16.4183 4 12H2ZM12 2C6.47715 2 2 6.47715 2 12H4C4 7.58172 7.58172 4 12 4V2ZM22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12H22ZM16.2599 9.36631L11.4366 6.7354L10.4789 8.49119L15.3022 11.1221L16.2599 9.36631ZM16.2599 14.6337C18.3445 13.4966 18.3445 10.5034 16.2599 9.36631L15.3022 11.1221C15.9971 11.5011 15.9971 12.4989 15.3022 12.8779L16.2599 14.6337ZM11.4366 17.2646L16.2599 14.6337L15.3022 12.8779L10.4789 15.5088L11.4366 17.2646ZM7 14.6309C7 16.9081 9.43743 18.355 11.4366 17.2646L10.4789 15.5088C9.81248 15.8723 9 15.39 9 14.6309H7ZM7 9.36908V14.6309H9V9.36908H7ZM11.4366 6.7354C9.43743 5.64497 7 7.09191 7 9.36908H9C9 8.61002 9.81248 8.12771 10.4789 8.49119L11.4366 6.7354Z" fill="currentColor" stroke="none" />',statusCompleted:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusArchive:'<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M15 11l-3 3l-3 -3"></path><path d="M20 6.667v10.666a2.667 2.667 0 0 1 -2.667 2.667h-10.666a2.667 2.667 0 0 1 -2.667 -2.667v-10.666a2.667 2.667 0 0 1 2.667 -2.667h10.666a2.667 2.667 0 0 1 2.667 2.667z"></path>',statusExpired:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path stroke="none" d="M18 12.5405C17.8949 13.6778 17.4681 14.7615 16.7696 15.665C16.071 16.5685 15.1296 17.2544 14.0554 17.6424C12.9813 18.0304 11.8189 18.1044 10.7042 17.8559C9.5895 17.6073 8.56866 17.0465 7.7611 16.2389C6.95354 15.4313 6.39267 14.4105 6.14412 13.2958C5.89557 12.1811 5.96962 11.0187 6.35761 9.94457C6.74559 8.87043 7.43147 7.929 8.33497 7.23045C9.23848 6.53189 10.3222 6.10509 11.4595 6C10.7937 6.90076 10.4733 8.01056 10.5566 9.12758C10.6399 10.2446 11.1213 11.2946 11.9134 12.0866C12.7054 12.8787 13.7554 13.3601 14.8724 13.4434C15.9894 13.5267 17.0992 13.2063 18 12.5405Z" fill="currentColor"/>',statusVoided:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13H18C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11H6Z" fill="currentColor"/>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',admin:'<path d="M15 6.99989086C16.1045695 6.99989086 17 7.89532136 17 8.99989086L17 16.458686C17 17.1113133 16.6815784 17.722892 16.1469254 18.0971494L12 21 7.85307456 18.0971494C7.31842164 17.722892 7 17.1113133 7 16.458686L7 8.99989086C7 7.89532136 7.8954305 6.99989086 9 6.99989086 9.00005899 5.34308677 10.3431821 4 12 4 13.6568179 4 14.999941 5.34308677 15 6.99989086zM4 13L7 13"></path><polyline points="3 7 5 9 7 9"></polyline><polyline points="21 7 19 9 17 9"></polyline><polyline points="3 19 5 17 7 17"></polyline><polyline points="17 17 19 17 21 19 21 19"></polyline><path d="M17,13 L20,13"></path>'},NRt="";var Eqe=he({name:"BaseIcon",props:{animation:{type:String,default:void 0},animationSpeed:{type:String,default:void 0},fill:{type:String,default:"none"},size:{type:[Number,String],default:22},stroke:{type:String,default:"currentColor"},strokeLinecap:{type:String,default:"round"},strokeLinejoin:{type:String,default:"round"},strokeWidth:{type:[Number,String],default:2},tag:{type:String,default:"i"},type:{type:String,required:!0,validator(n){if(!BH[n])throw new Error(`"${n}" is not an available icon type.`);return!0}}},render(n){const{animation:t,animationSpeed:r,size:i,type:a}=this,o=new Tqe(a,BH[a]);return n(this.tag,{attrs:{"data-name":a,"data-tags":o?o.tags:"","data-type":a},class:{feather:!0,[`feather--${a}`]:a,[`feather--${t}`]:t,[`feather--${r}`]:r},on:this.$listeners},[o?n("svg",{attrs:{...o.attrs,fill:this.fill||"currentColor",height:i,stroke:this.stroke||"currentColor","stroke-linecap":this.strokeLinecap,"stroke-linejoin":this.strokeLinejoin,"stroke-width":this.strokeWidth,width:i},style:{...i?{width:`${i}px`,height:`${i}px`}:{}},class:[o.attrs?o.attrs.class:"","feather__content"],domProps:{innerHTML:o.contents}}):""])}},null,null,!1,null,"39ce5b63",null,null);const Ng=Eqe.exports;function $qe(){for(var n=0,t,r,i="";n<arguments.length;)(t=arguments[n++])&&(r=jH(t))&&(i&&(i+=" "),i+=r);return i}function jH(n){if(typeof n=="string")return n;for(var t,r="",i=0;i<n.length;i++)n[i]&&(t=jH(n[i]))&&(r&&(r+=" "),r+=t);return r}function tT(){return tT=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},tT.apply(this,arguments)}function Aqe(n){if(n<1)return{get:function(){},set:function(){}};var t=0,r=new Map,i=new Map;function a(o,s){r.set(o,s),t++,t>n&&(t=0,i=r,r=new Map)}return{get:function(s){var c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return a(s,c),c},set:function(s,c){r.has(s)?r.set(s,c):a(s,c)}}}var nT="-";function Oqe(n){var t=Mqe(n);function r(a){var o=a.split(nT);return o[0]===""&&o.length!==1&&o.shift(),zH(o,t)||Dqe(a)}function i(a){return n.conflictingClassGroups[a]||[]}return{getClassGroupId:r,getConflictingClassGroupIds:i}}function zH(n,t){var r;if(n.length===0)return t.classGroupId;var i=n[0],a=t.nextPart.get(i),o=a?zH(n.slice(1),a):void 0;if(o)return o;if(t.validators.length!==0){var s=n.join(nT);return(r=t.validators.find(function(c){var l=c.validator;return l(s)}))==null?void 0:r.classGroupId}}var VH=/^\[(.+)\]$/;function Dqe(n){if(VH.test(n)){var t=VH.exec(n)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Mqe(n){var t=n.theme,r=n.prefix,i={nextPart:new Map,validators:[]},a=Iqe(Object.entries(n.classGroups),r);return a.forEach(function(o){var s=o[0],c=o[1];rT(c,i,s,t)}),i}function rT(n,t,r,i){n.forEach(function(a){if(typeof a=="string"){var o=a===""?t:UH(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Pqe(a)){rT(a(i),t,r,i);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var c=s[0],l=s[1];rT(l,UH(t,c),r,i)})})}function UH(n,t){var r=n;return t.split(nT).forEach(function(i){r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r}function Pqe(n){return n.isThemeGetter}function Iqe(n,t){return t?n.map(function(r){var i=r[0],a=r[1],o=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(c){var l=c[0],u=c[1];return[t+l,u]})):s});return[i,o]}):n}var HH="!";function Rqe(n){var t=n.separator||":";return function(i){for(var a=0,o=[],s=0,c=0;c<i.length;c++){var l=i[c];a===0&&l===t[0]&&(t.length===1||i.slice(c,c+t.length)===t)&&(o.push(i.slice(s,c)),s=c+t.length),l==="["?a++:l==="]"&&a--}var u=o.length===0?i:i.substring(s),d=u.startsWith(HH),p=d?u.substring(1):u;return{modifiers:o,hasImportantModifier:d,baseClassName:p}}}function Lqe(n){if(n.length<=1)return n;var t=[],r=[];return n.forEach(function(i){var a=i[0]==="[";a?(t.push.apply(t,r.sort().concat([i])),r=[]):r.push(i)}),t.push.apply(t,r.sort()),t}function Nqe(n){return tT({cache:Aqe(n.cacheSize),splitModifiers:Rqe(n)},Oqe(n))}var Fqe=/\s+/;function Bqe(n,t){var r=t.splitModifiers,i=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return n.trim().split(Fqe).map(function(s){var c=r(s),l=c.modifiers,u=c.hasImportantModifier,d=c.baseClassName,p=i(d);if(!p)return{isTailwindClass:!1,originalClassName:s};var f=Lqe(l).join(":"),h=u?f+HH:f;return{isTailwindClass:!0,modifierId:h,classGroupId:p,originalClassName:s}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var c=s.modifierId,l=s.classGroupId,u=c+l;return o.has(u)?!1:(o.add(u),a(l).forEach(function(d){return o.add(c+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function jqe(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i,a,o,s=c;function c(u){var d=t[0],p=t.slice(1),f=p.reduce(function(h,m){return m(h)},d());return i=Nqe(f),a=i.cache.get,o=i.cache.set,s=l,l(u)}function l(u){var d=a(u);if(d)return d;var p=Bqe(u,i);return o(u,p),p}return function(){return s($qe.apply(null,arguments))}}function Zn(n){var t=function(i){return i[n]||[]};return t.isThemeGetter=!0,t}var bc=/^\[(.+)\]$/,zqe=/^\d+\/\d+$/,Vqe=new Set(["px","full","screen"]),Uqe=/^(\d+)?(xs|sm|md|lg|xl)$/,Hqe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,Wqe=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function xo(n){return!Number.isNaN(Number(n))||Vqe.has(n)||zqe.test(n)||rd(n)}function rd(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("length:")||Hqe.test(r):!1}function Gqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("size:"):!1}function qqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("position:"):!1}function Yqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?r.startsWith("url(")||r.startsWith("url:"):!1}function WH(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?!Number.isNaN(Number(r))||r.startsWith("number:"):!1}function Ri(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?Number.isInteger(Number(r)):Number.isInteger(Number(n))}function si(n){return bc.test(n)}function Fg(){return!0}function _c(n){return Uqe.test(n)}function Kqe(n){var t,r=(t=bc.exec(n))==null?void 0:t[1];return r?Wqe.test(r):!1}function Zqe(){var n=Zn("colors"),t=Zn("spacing"),r=Zn("blur"),i=Zn("brightness"),a=Zn("borderColor"),o=Zn("borderRadius"),s=Zn("borderSpacing"),c=Zn("borderWidth"),l=Zn("contrast"),u=Zn("grayscale"),d=Zn("hueRotate"),p=Zn("invert"),f=Zn("gap"),h=Zn("gradientColorStops"),m=Zn("inset"),g=Zn("margin"),y=Zn("opacity"),b=Zn("padding"),w=Zn("saturate"),S=Zn("scale"),k=Zn("sepia"),$=Zn("skew"),T=Zn("space"),A=Zn("translate"),E=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},R=function(){return["auto",t]},Y=function(){return["",xo]},L=function(){return["auto",Ri]},D=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},z=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},K=function(){return["start","end","center","between","around","evenly"]},te=function(){return["","0",si]},j=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[Fg],spacing:[xo],blur:["none","",_c,rd],brightness:[Ri],borderColor:[n],borderRadius:["none","","full",_c,rd],borderSpacing:[t],borderWidth:Y(),contrast:[Ri],grayscale:te(),hueRotate:[Ri],invert:te(),gap:[t],gradientColorStops:[n],inset:R(),margin:R(),opacity:[Ri],padding:[t],saturate:[Ri],scale:[Ri],sepia:te(),skew:[Ri,si],space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",si]}],container:["container"],columns:[{columns:[_c]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(D(),[si])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:[Ri]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",si]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Ri]}],"grid-cols":[{"grid-cols":[Fg]}],"col-start-end":[{col:["auto",{span:[Ri]}]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Fg]}],"row-start-end":[{row:["auto",{span:[Ri]}]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",si]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",si]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:K()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(K(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(K(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",xo]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[_c]},_c,rd]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",xo]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",_c,rd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",WH]}],"font-family":[{font:[Fg]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",rd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xo]}],"list-style-type":[{list:["none","disc","decimal",si]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",xo]}],"underline-offset":[{"underline-offset":["auto",xo]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rd]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",si]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(D(),[qqe])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gqe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yqe]}],"bg-color":[{bg:[n]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(B())}],"outline-offset":[{"outline-offset":[xo]}],"outline-w":[{outline:[xo]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[xo]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",_c,Kqe]}],"shadow-color":[{shadow:[Fg]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",_c,si]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",si]}],duration:[{duration:[Ri]}],ease:[{ease:["linear","in","out","in-out",si]}],delay:[{delay:[Ri]}],animate:[{animate:["none","spin","ping","pulse","bounce",si]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ri,si]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",si]}],accent:[{accent:["auto",n]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",si]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",si]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[xo,WH]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var Jqe=jqe(Zqe);const zRt="",GH={defaultLinkTags:["a","button","input","label","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultButtonRounded:!1},Xqe={name:"CButton",components:{BaseIcon:Ng},inheritAttrs:!1,props:{type:{type:String,default:null,validator:n=>["primary","secondary","tertiary","success","warning","danger","text","none"].indexOf(n)>=0},size:{type:String,default:null,validator:n=>["small","normal","default","medium","large"].indexOf(n)>=0},pattern:{type:String,default:"primary",validator:n=>["primary","secondary","tertiary"].indexOf(n)>=0},label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>GH.defaultButtonRounded},loading:Boolean,disabled:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:n=>["button","submit","reset"].indexOf(n)>=0},tag:{type:String,default:"button",validator:n=>GH.defaultLinkTags.indexOf(n)>=0},raised:Boolean,wide:Boolean,circle:Boolean,icon:String,iconProps:{type:Object,default:()=>({})},dropdownIcon:Boolean,taller:Boolean,thinner:Boolean,rounder:Boolean,to:{type:[Object,String],default:void 0,validator(n){return!!(n===void 0||typeof n=="string"||n.name&&typeof n.name=="string")}}},computed:{computedTag(){const n=this.$attrs.disabled!==void 0&&this.$attrs.disabled!==!1;return this.to&&!n?"router-link":n?"button":this.tag},iconSize(){return this.size==="medium"?20:this.size==="large"?24:this.size==="small"?16:18},computedPatternClass(){return["secondary","text","none"].includes(this.type)?"":`is-pattern-${this.pattern}`},computedTypeClass(){return["secondary","text","none"].includes(this.type)?"":`is-${this.type}`}},methods:{tailwindClasses(...n){const t=[];return this.type==="secondary"?(t.push("bg-primary-500 border-primary-500 text-white"),t.push("disabled:bg-primary-500 disabled:border-primary-500 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-primary-600 hover:border-primary-600 hover:text-white"),t.push("focus:bg-primary-700 focus:border-primary-700 focus:text-white focus:!ring focus:ring-primary-500 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-primary-100 border-primary-100 text-primary-600"),t.push("disabled:bg-primary-100 disabled:border-primary-100 disabled:text-primary-600"),t.push("hover:bg-primary-200 hover:border-primary-200 hover:text-primary-700"),t.push("focus:bg-primary-300 focus:border-primary-300 focus:text-primary-700 [&.is-focused]:text-primary-700")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-primary-500"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-primary-500"),t.push("hover:bg-primary-50 hover:border-primary-50 hover:text-primary-500"),t.push("focus:bg-primary-100 focus:border-primary-100 focus:text-primary-500 focus:bg-primary-100 [&.is-focused]:text-primary-500")),this.outlined&&(t.push("bg-transparent text-primary-500"),t.push("disabled:bg-transparent disabled:text-primary-500"))):this.type==="text"?(t.push("bg-gray-800 border-gray-800 text-white"),t.push("disabled:bg-gray-800 disabled:border-gray-800 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-700 hover:border-gray-700 hover:text-white"),t.push("focus:bg-gray-900 focus:border-gray-900 focus:text-white focus:!ring focus:ring-gray-800 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-gray-400 border-gray-400 text-white"),t.push("disabled:bg-gray-400 disabled:border-gray-400 disabled:text-white"),t.push("hover:bg-gray-500 hover:border-gray-500 hover:text-white"),t.push("focus:bg-gray-310 focus:border-gray-310 focus:text-white [&.is-focused]:text-white")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-gray-800"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-gray-800"),t.push("hover:bg-gray-100 hover:border-gray-50 hover:text-gray-800"),t.push("focus:bg-gray-100 focus:border-gray-100 focus:text-gray-800 focus:bg-gray-100 [&.is-focused]:text-gray-800")),this.outlined&&(t.push("bg-transparent text-gray-800"),t.push("disabled:bg-transparent disabled:text-gray-800"))):this.type==="none"?(t.push("bg-gray-500 border-gray-500 text-white"),t.push("disabled:bg-gray-500 disabled:border-gray-500 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-600 hover:border-gray-600 hover:text-white"),t.push("focus:bg-gray-700 focus:border-gray-700 focus:text-white focus:!ring focus:ring-gray-500 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-gray-100 border-gray-100 text-gray-600"),t.push("disabled:bg-gray-100 disabled:border-gray-100 disabled:text-gray-600"),t.push("hover:bg-gray-200 hover:border-gray-200 hover:text-gray-700"),t.push("focus:bg-gray-300 focus:border-gray-300 focus:text-gray-700 [&.is-focused]:text-gray-700")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-gray-500"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-gray-500"),t.push("hover:bg-gray-50 hover:border-gray-50 hover:text-gray-500"),t.push("focus:bg-gray-100 focus:border-gray-100 focus:text-gray-500 focus:bg-gray-100 [&.is-focused]:text-gray-500")),this.outlined&&(t.push("bg-transparent text-gray-500"),t.push("disabled:bg-transparent disabled:text-gray-500"))):this.type===null&&(t.push("bg-white border-white text-gray-800"),t.push("disabled:bg-white disabled:border-white disabled:text-gray-800 disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-100 hover:border-gray-100 hover:text-gray-800"),t.push("focus:bg-white focus:border-white focus:text-gray-800 focus:!ring focus:ring-primary-500 focus:ring-opacity-20 [&.is-focused]:text-gray-800")),Jqe(...t,...n)}}};var Qqe=function(){var t=this,r=t._self._c;return r(t.computedTag,t._g(t._b({tag:"component",staticClass:"c-button font-config button",class:[`is-${t.size}`,t.computedPatternClass,t.computedTypeClass,t.tailwindClasses(t.$attrs.class),{"is-rounded":t.rounded,"is-rounder":t.rounder,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected,"is-raised":t.raised,"is-wide":t.wide,"is-taller":t.taller,"is-thinner":t.thinner,"is-circle":t.circle}],attrs:{type:t.nativeType,disabled:t.disabled||t.loading,to:t.to}},"component",t.$attrs,!1),t.$listeners),[t.icon?r("BaseIcon",t._b({staticClass:"icon",attrs:{type:t.icon}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1)):t._e(),t.iconLeft?r("BaseIcon",t._b({staticClass:"icon",attrs:{type:t.iconLeft}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1)):t._e(),t.label?r("span",[t._v(t._s(t.label))]):t.$slots.default?r("span",[t._t("default")],2):t._e(),t.iconRight||t.dropdownIcon?r("BaseIcon",t._b({staticClass:"icon",class:{"icon-right-absolute":t.dropdownIcon},attrs:{type:t.iconRight||"chevron-up-down"}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1)):t._e()],1)},eYe=[],tYe=he(Xqe,Qqe,eYe,!1,null,null,null,null);const Tf=tYe.exports,iT={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>!1},validationMessage:String},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||""}},computed:{parentField(){let n=this.$parent;for(let t=0;t<3;t++)n&&!n.$data._isField&&(n=n.$parent);return n},statusType(){if(this.parentField&&this.parentField.newType){if(typeof this.parentField.newType=="string")return this.parentField.newType;for(const n in this.parentField.newType)if(this.parentField.newType[n])return n}},statusMessage(){if(this.parentField)return this.parentField.newMessage},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return this.newIconPack==="mdi"?"is-medium":""}}},methods:{focus(){this.$data._elementRef!==void 0&&this.$nextTick(()=>{const n=this.$el.querySelector(this.$data._elementRef);n&&n.focus()})},blur(){this.$nextTick(()=>{const n=this.$el.querySelector(this.$data._elementRef);n&&n.blur()})},onBlur(n){this.isFocused=!1,this.$emit("blur",n),this.checkHtml5Validity()},onFocus(n){this.isFocused=!0,this.$emit("focus",n)},getElement(){return this.$el.querySelector(this.$data._elementRef)},setInvalid(){const n="is-danger",t=this.validationMessage||this.getElement().validationMessage;this.setValidity(n,t)},setValidity(n,t){this.$nextTick(()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=n),this.parentField.message||(this.parentField.newMessage=t))})},checkHtml5Validity(){if(this.useHtml5Validation&&this.$refs[this.$data._elementRef]!==void 0&&this.getElement()!==null)return this.getElement().checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}},VRt="",nYe={name:"CInput",components:{BaseIcon:Ng},mixins:[iT],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>!0},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,filled:Boolean,expanded:Boolean,autoResize:Boolean,reset:Boolean,static:Boolean,iconProps:{type:Object,default:()=>({})}},data(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||"on",isPasswordVisible:!1,_elementRef:this.type==="textarea"?"textarea":"input",inputSuffixOffset:null}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n),!this.isValid&&this.checkHtml5Validity()}},rootClasses(){return[this.iconPosition,`is-${this.size}`,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,`is-${this.size}`,{"is-rounded":this.rounded,"is-filled":this.filled,"is-reset":this.reset,"is-static":this.static}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.statusTypeIcon?this.statusTypeIcon:this.iconRight},rightIconType(){return this.passwordReveal?"is-primary":this.statusTypeIcon?this.statusType:null},iconPosition(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":""},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-triangle";case"is-info":return"information";case"is-warning":return"alert";default:return""}},statusTypeIconColor(){switch(this.statusType){case"is-success":return"text-green-500";case"is-danger":return"text-red-500";case"is-info":return"text-blue-500";case"is-warning":return"text-orange-500";default:return""}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return typeof this.computedValue=="string"?this.computedValue.length:typeof this.computedValue=="number"?this.computedValue.toString().length:0}},watch:{value(n){this.newValue=n}},mounted(){this.type==="textarea"&&this.autoResize&&this.$nextTick(()=>{this.$refs.textarea.setAttribute("style",`height: ${this.$refs.textarea.scrollHeight}px`)}),this.$slots.suffix&&(this.inputSuffixOffset=this.calcInputSuffixOffset())},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(()=>{this.$refs[this.$data._elementRef].focus()})},onInput(n){n.target&&(this.computedValue=n.target.value),this.$nextTick(()=>{n.target&&this.autoResize&&this.type==="textarea"&&this.resize(n)})},iconClick(n,t){this.$emit(n,t),this.$nextTick(()=>{this.$refs[this.$data._elementRef].focus()})},rightIconClick(n){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",n)},resize({target:n}){n.style.height="1px",n.style.height=`${n.scrollHeight}px`},calcInputSuffixOffset(){return this.$slots.suffix?{paddingRight:`${this.$el.querySelector(".suffix").offsetWidth+10}px`}:null}}};var rYe=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:t.rootClasses},[t.type!=="textarea"?r("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],style:[t.inputSuffixOffset],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;t.isFocused}}},"input",t.$attrs,!1)):r("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass,{autosize:t.autoResize}],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;t.isFocused}}},"textarea",t.$attrs,!1)),t._v(" "),t.icon?r("div",{staticClass:"is-left icon",class:{"is-clickable":t.iconClickable},on:{click:function(i){return t.iconClick("icon-click",i)}}},[r("BaseIcon",t._b({attrs:{type:t.icon}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1))],1):t._e(),!t.loading&&t.hasIconRight?r("div",{staticClass:"is-right icon",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},on:{click:t.rightIconClick}},[r("BaseIcon",t._b({class:t.statusTypeIconColor,attrs:{type:t.rightIcon}},"BaseIcon",{size:t.iconSize,...t.iconProps},!1))],1):t._e(),t.$slots.suffix?r("div",{staticClass:"suffix"},[t._t("suffix")],2):t._e()])},iYe=[],aYe=he(nYe,rYe,iYe,!1,null,"28c8c573",null,null);const cl=aYe.exports,aT={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:{type:String,default:"primary"},disabled:Boolean,required:Boolean,name:String,size:{type:String,default:"default"}},data(){return{newValue:this.value}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n)}}},watch:{value(n){this.newValue=n}},methods:{focus(){this.$refs.input.focus()}}},URt="",oYe={name:"CCheckbox",mixins:[aT],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},inverted:Boolean}};var sYe=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"c-checkbox checkbox",class:[`is-${t.size}`,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue,type:"checkbox"},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(i){i.stopPropagation()},change:function(i){var a=t.computedValue,o=i.target,s=o.checked?t.trueValue:t.falseValue;if(Array.isArray(a)){var c=t.nativeValue,l=t._i(a,c);o.checked?l<0&&(t.computedValue=a.concat([c])):l>-1&&(t.computedValue=a.slice(0,l).concat(a.slice(l+1)))}else t.computedValue=s}}}),r("span",{staticClass:"check",class:[`is-${t.type}`,{"is-inverted":t.inverted}]},[r("svg",{attrs:{viewBox:"0 0 30 30"}},[r("polyline",{attrs:{points:"21 8 12 20 7 15"}})])]),t.$slots.default?r("span",{staticClass:"control-label"},[t._t("default")],2):t._e()])},lYe=[],cYe=he(oYe,sYe,lYe,!1,null,null,null,null);const id=cYe.exports;var qH={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(typeof self<"u"?self:Vt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,function(u){return o[u]}.bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=44)}([function(r,i,a){var o=a(28)("wks"),s=a(14),c=a(1).Symbol,l=typeof c=="function";(r.exports=function(u){return o[u]||(o[u]=l&&c[u]||(l?c:s)("Symbol."+u))}).store=o},function(r,i){var a=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(r,i,a){var o=a(1),s=a(7),c=a(3),l=a(19),u=a(24),d=function(p,f,h){var m,g,y,b,w=p&d.F,S=p&d.G,k=p&d.S,$=p&d.P,T=p&d.B,A=S?o:k?o[f]||(o[f]={}):(o[f]||{}).prototype,E=S?s:s[f]||(s[f]={}),I=E.prototype||(E.prototype={});for(m in S&&(h=f),h)y=((g=!w&&A&&A[m]!==void 0)?A:h)[m],b=T&&g?u(y,o):$&&typeof y=="function"?u(Function.call,y):y,A&&l(A,m,y,p&d.U),E[m]!=y&&c(E,m,b),$&&I[m]!=y&&(I[m]=y)};o.core=s,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,r.exports=d},function(r,i,a){var o=a(4),s=a(13);r.exports=a(8)?function(c,l,u){return o.f(c,l,s(1,u))}:function(c,l,u){return c[l]=u,c}},function(r,i,a){var o=a(12),s=a(34),c=a(23),l=Object.defineProperty;i.f=a(8)?Object.defineProperty:function(u,d,p){if(o(u),d=c(d,!0),o(p),s)try{return l(u,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(u[d]=p.value),u}},function(r,i){r.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(r,i){var a={}.hasOwnProperty;r.exports=function(o,s){return a.call(o,s)}},function(r,i){var a=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=a)},function(r,i,a){r.exports=!a(9)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,i){r.exports=function(a){try{return!!a()}catch{return!0}}},function(r,i,a){var o=a(37),s=a(29);r.exports=Object.keys||function(c){return o(c,s)}},function(r,i,a){var o=a(25),s=a(17);r.exports=function(c){return o(s(c))}},function(r,i,a){var o=a(5);r.exports=function(s){if(!o(s))throw TypeError(s+" is not an object!");return s}},function(r,i){r.exports=function(a,o){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:o}}},function(r,i){var a=0,o=Math.random();r.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++a+o).toString(36))}},function(r,i){r.exports={}},function(r,i,a){var o=a(17);r.exports=function(s){return Object(o(s))}},function(r,i){r.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(r,i){r.exports=!1},function(r,i,a){var o=a(1),s=a(3),c=a(6),l=a(14)("src"),u=Function.toString,d=(""+u).split("toString");a(7).inspectSource=function(p){return u.call(p)},(r.exports=function(p,f,h,m){var g=typeof h=="function";g&&(c(h,"name")||s(h,"name",f)),p[f]!==h&&(g&&(c(h,l)||s(h,l,p[f]?""+p[f]:d.join(String(f)))),p===o?p[f]=h:m?p[f]?p[f]=h:s(p,f,h):(delete p[f],s(p,f,h)))})(Function.prototype,"toString",function(){return typeof this=="function"&&this[l]||u.call(this)})},function(r,i){var a={}.toString;r.exports=function(o){return a.call(o).slice(8,-1)}},function(r,i){i.f={}.propertyIsEnumerable},function(r,i){var a=Math.ceil,o=Math.floor;r.exports=function(s){return isNaN(s=+s)?0:(s>0?o:a)(s)}},function(r,i,a){var o=a(5);r.exports=function(s,c){if(!o(s))return s;var l,u;if(c&&typeof(l=s.toString)=="function"&&!o(u=l.call(s))||typeof(l=s.valueOf)=="function"&&!o(u=l.call(s))||!c&&typeof(l=s.toString)=="function"&&!o(u=l.call(s)))return u;throw TypeError("Can't convert object to primitive value")}},function(r,i,a){var o=a(47);r.exports=function(s,c,l){if(o(s),c===void 0)return s;switch(l){case 1:return function(u){return s.call(c,u)};case 2:return function(u,d){return s.call(c,u,d)};case 3:return function(u,d,p){return s.call(c,u,d,p)}}return function(){return s.apply(c,arguments)}}},function(r,i,a){var o=a(20);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return o(s)=="String"?s.split(""):Object(s)}},function(r,i,a){var o=a(22),s=Math.min;r.exports=function(c){return c>0?s(o(c),9007199254740991):0}},function(r,i,a){var o=a(28)("keys"),s=a(14);r.exports=function(c){return o[c]||(o[c]=s(c))}},function(r,i,a){var o=a(7),s=a(1),c=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(r.exports=function(l,u){return c[l]||(c[l]=u!==void 0?u:{})})("versions",[]).push({version:o.version,mode:a(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(r,i){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,i,a){var o=a(4).f,s=a(6),c=a(0)("toStringTag");r.exports=function(l,u,d){l&&!s(l=d?l:l.prototype,c)&&o(l,c,{configurable:!0,value:u})}},function(r,i,a){var o=a(0)("unscopables"),s=Array.prototype;s[o]==null&&a(3)(s,o,{}),r.exports=function(c){s[o][c]=!0}},function(r,i){i.f=Object.getOwnPropertySymbols},function(r,i,a){var o=a(18),s=a(2),c=a(19),l=a(3),u=a(15),d=a(48),p=a(30),f=a(52),h=a(0)("iterator"),m=!([].keys&&"next"in[].keys()),g=function(){return this};r.exports=function(y,b,w,S,k,$,T){d(w,b,S);var A,E,I,R=function(M){if(!m&&M in B)return B[M];switch(M){case"keys":case"values":return function(){return new w(this,M)}}return function(){return new w(this,M)}},Y=b+" Iterator",L=k=="values",D=!1,B=y.prototype,z=B[h]||B["@@iterator"]||k&&B[k],K=z||R(k),te=k?L?R("entries"):K:void 0,j=b=="Array"&&B.entries||z;if(j&&(I=f(j.call(new y)))!==Object.prototype&&I.next&&(p(I,Y,!0),o||typeof I[h]=="function"||l(I,h,g)),L&&z&&z.name!=="values"&&(D=!0,K=function(){return z.call(this)}),o&&!T||!m&&!D&&B[h]||l(B,h,K),u[b]=K,u[Y]=g,k)if(A={values:L?K:R("values"),keys:$?K:R("keys"),entries:te},T)for(E in A)E in B||c(B,E,A[E]);else s(s.P+s.F*(m||D),b,A);return A}},function(r,i,a){r.exports=!a(8)&&!a(9)(function(){return Object.defineProperty(a(35)("div"),"a",{get:function(){return 7}}).a!=7})},function(r,i,a){var o=a(5),s=a(1).document,c=o(s)&&o(s.createElement);r.exports=function(l){return c?s.createElement(l):{}}},function(r,i,a){var o=a(12),s=a(49),c=a(29),l=a(27)("IE_PROTO"),u=function(){},d=function(){var p,f=a(35)("iframe"),h=c.length;for(f.style.display="none",a(51).appendChild(f),f.src="javascript:",(p=f.contentWindow.document).open(),p.write("<script>document.F=Object<\/script>"),p.close(),d=p.F;h--;)delete d.prototype[c[h]];return d()};r.exports=Object.create||function(p,f){var h;return p!==null?(u.prototype=o(p),h=new u,u.prototype=null,h[l]=p):h=d(),f===void 0?h:s(h,f)}},function(r,i,a){var o=a(6),s=a(11),c=a(38)(!1),l=a(27)("IE_PROTO");r.exports=function(u,d){var p,f=s(u),h=0,m=[];for(p in f)p!=l&&o(f,p)&&m.push(p);for(;d.length>h;)o(f,p=d[h++])&&(~c(m,p)||m.push(p));return m}},function(r,i,a){var o=a(11),s=a(26),c=a(50);r.exports=function(l){return function(u,d,p){var f,h=o(u),m=s(h.length),g=c(p,m);if(l&&d!=d){for(;m>g;)if((f=h[g++])!=f)return!0}else for(;m>g;g++)if((l||g in h)&&h[g]===d)return l||g||0;return!l&&-1}}},function(r,i,a){var o=a(31),s=a(65),c=a(15),l=a(11);r.exports=a(33)(Array,"Array",function(u,d){this._t=l(u),this._i=0,this._k=d},function(){var u=this._t,d=this._k,p=this._i++;return!u||p>=u.length?(this._t=void 0,s(1)):s(0,d=="keys"?p:d=="values"?u[p]:[p,u[p]])},"values"),c.Arguments=c.Array,o("keys"),o("values"),o("entries")},function(r,i,a){var o=a(20);r.exports=Array.isArray||function(s){return o(s)=="Array"}},function(r,i,a){var o=a(1),s=a(7),c=a(18),l=a(42),u=a(4).f;r.exports=function(d){var p=s.Symbol||(s.Symbol=c?{}:o.Symbol||{});d.charAt(0)=="_"||d in p||u(p,d,{value:l.f(d)})}},function(r,i,a){i.f=a(0)},function(r,i,a){var o=a(37),s=a(29).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(c){return o(c,s)}},function(r,i,a){a.r(i),a(45),a(53),a(60),a(61),a(39),a(66),a(68),a(70),a(74),a(75),a(80);function o(h,m){for(var g=0;g<m.length;g++){var y=m[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}var s={methods:{$smoothReflow:function(h){var m=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._smoothElements.push(new p(g))}.bind(this);Array.isArray(h)?h.forEach(m):m(h)},$unsmoothReflow:function(h){var m=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d(),y=this.$el,b=this._smoothElements.findIndex(function(w){return l(y,w.options.el)===l(y,g.el)});if(b===-1)return void console.error("VSR_ERROR: $unsmoothReflow failed due to invalid el option");this._smoothElements[b].scheduleRemoval()}.bind(this);Array.isArray(h)?h.forEach(m):m(h)}},beforeMount:function(){var h=this;this._smoothElements=[],this._endListener=function(m){var g=!0,y=!1,b=void 0;try{for(var w,S=h._smoothElements[Symbol.iterator]();!(g=(w=S.next()).done);g=!0)w.value.endListener(m)}catch(k){y=!0,b=k}finally{try{g||S.return==null||S.return()}finally{if(y)throw b}}}},mounted:function(){this.$el.addEventListener("transitionend",this._endListener,{passive:!0})},destroyed:function(){this.$el.removeEventListener("transitionend",this._endListener,{passive:!0})},beforeUpdate:function(){this.$el.addEventListener("transitionend",this._endListener,{passive:!0}),c(this);var h=!0,m=!1,g=void 0;try{for(var y,b=this._smoothElements[Symbol.iterator]();!(h=(y=b.next()).done);h=!0){var w=y.value,S=l(this.$el,w.options.el);w.setSmoothElement(S),w.setBeforeValues()}}catch(k){m=!0,g=k}finally{try{h||b.return==null||b.return()}finally{if(m)throw g}}},updated:function(){var h=this;this.$nextTick(function(){var m=!0,g=!1,y=void 0;try{for(var b,w=h._smoothElements[Symbol.iterator]();!(m=(b=w.next()).done);m=!0){var S=b.value,k=l(h.$el,S.options.el);S.setSmoothElement(k),S.doSmoothReflow()}}catch($){g=!0,y=$}finally{try{m||w.return==null||w.return()}finally{if(g)throw y}}c(h)})}};function c(h){for(var m=h._smoothElements.length;m--;){var g=h._smoothElements[m];g.isRemoved&&(g.stopTransition(),h._smoothElements.splice(m,1))}}function l(h,m){return!h||h instanceof Node&&h.nodeType===Node.COMMENT_NODE?null:m===null?h:function(g,y){return typeof y=="string"?g.matches(y)?g:g.querySelector(y):y}(h,m)}var u={INACTIVE:"INACTIVE",ACTIVE:"ACTIVE"},d=function(){return{el:null,property:"height",transitionEvent:null,hideOverflow:!0,debug:!1}},p=function(){function h(m){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,h);var g=d();Object.assign(g,m);var y=this.parsePropertyOption(g.property);g.transition||(g.transition=y.map(function(w){return"".concat(w," .5s")}).join(","));var b={$smoothEl:null,properties:y,beforeRect:{},state:u.INACTIVE,isRemoved:!1};Object.assign(this,{options:g},b),this.endListener=this.endListener.bind(this),this.debug=this.debug.bind(this)}return function(m,g,y){g&&o(m.prototype,g),y&&o(m,y)}(h,[{key:"setSmoothElement",value:function(m){this.$smoothEl=m}},{key:"transitionTo",value:function(m){this.state=m}},{key:"parsePropertyOption",value:function(m){return typeof m=="string"?[m]:Array.isArray(m)?m:[]}},{key:"setBeforeValues",value:function(){var m=this.$smoothEl;if(this.beforeRect={},m){var g=window.getComputedStyle(m)||{},y=g.transition,b=g.overflowX,w=g.overflowY;this.computedTransition=y,this.overflowX=b,this.overflowY=w,this.beforeRect=f(m),this.state===u.ACTIVE&&(this.stopTransition(),this.debug("Transition was interrupted."))}}},{key:"didValuesChange",value:function(m,g){var y=m,b=g;if(Object.keys(m).length===0)return!1;var w=!0,S=!1,k=void 0;try{for(var $,T=this.properties[Symbol.iterator]();!(w=($=T.next()).done);w=!0){var A=$.value;if(A==="transform"&&(y.top!==b.top||y.left!==b.left)||y[A]!==b[A])return!0}}catch(E){S=!0,k=E}finally{try{w||T.return==null||T.return()}finally{if(S)throw k}}return!1}},{key:"doSmoothReflow",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data update",g=this.$smoothEl;if(!g)return this.debug("Could not find registered el to perform doSmoothReflow."),void this.transitionTo(u.INACTIVE);if(this.state!==u.ACTIVE){var y=this.beforeRect,b=this.properties,w=this.options,S=this.overflowX,k=this.overflowY,$=this.debug;this.transitionTo(u.ACTIVE),$("doSmoothReflow triggered by:",typeof m=="string"?m:m.target);var T=f(g);if(!this.didValuesChange(y,T))return $("Property values did not change."),void this.transitionTo(u.INACTIVE);$("beforeRect",y),$("afterRect",T),this.saveOverflowValues(g,S,k);var A=!0,E=!1,I=void 0;try{for(var R,Y=b[Symbol.iterator]();!(A=(R=Y.next()).done);A=!0){var L=R.value;if(L==="transform"){var D=y.left-T.left,B=y.top-T.top;g.style.transform="translate(".concat(D,"px, ").concat(B,"px)")}else g.style[L]=y[L]+"px"}}catch(G){E=!0,I=G}finally{try{A||Y.return==null||Y.return()}finally{if(E)throw I}}g.offsetHeight,g.style.transition=[this.computedTransition,w.transition].filter(function(G){return G}).join(",");var z=!0,K=!1,te=void 0;try{for(var j,M=b[Symbol.iterator]();!(z=(j=M.next()).done);z=!0){var q=j.value;q==="transform"?g.style.transform="":g.style[q]=T[q]+"px"}}catch(G){K=!0,te=G}finally{try{z||M.return==null||M.return()}finally{if(K)throw te}}}}},{key:"endListener",value:function(m){var g=this.$smoothEl,y=this.properties;g===m.target?y.includes(m.propertyName)&&(this.stopTransition(),this.hasRegisteredEventEmitter()&&this.setBeforeValues()):this.isRegisteredEventEmitter(g,m)&&this.doSmoothReflow(m)}},{key:"hasRegisteredEventEmitter",value:function(){var m=this.options.transitionEvent;return m!==null&&Object.keys(m).length>0}},{key:"isRegisteredEventEmitter",value:function(m,g){if(!this.hasRegisteredEventEmitter())return!1;var y=g.target,b=this.options.transitionEvent,w=b.selector,S=b.propertyName;if(S!=null&&S!==g.propertyName||w!=null&&!y.matches(w))return!1;if(this.properties.indexOf("transform")===-1){var k=!1,$=g.composedPath?g.composedPath():[],T=!0,A=!1,E=void 0;try{for(var I,R=$[Symbol.iterator]();!(T=(I=R.next()).done);T=!0)if(m===I.value){k=!0;break}}catch(Y){A=!0,E=Y}finally{try{T||R.return==null||R.return()}finally{if(A)throw E}}if(!k)return!1}return!0}},{key:"saveOverflowValues",value:function(m,g,y){this.options.hideOverflow&&(this.overflowX=g,this.overflowY=y,m.style.overflowX="hidden",m.style.overflowY="hidden")}},{key:"restoreOverflowValues",value:function(m){var g=this.options,y=this.overflowX,b=this.overflowY;g.hideOverflow&&(m.style.overflowX=y,m.style.overflowY=b)}},{key:"stopTransition",value:function(){var m=this.$smoothEl,g=this.properties,y=!0,b=!1,w=void 0;try{for(var S,k=g[Symbol.iterator]();!(y=(S=k.next()).done);y=!0){var $=S.value;m.style[$]=null}}catch(T){b=!0,w=T}finally{try{y||k.return==null||k.return()}finally{if(b)throw w}}this.restoreOverflowValues(m),m.style.transition=null,this.transitionTo(u.INACTIVE)}},{key:"scheduleRemoval",value:function(){this.isRemoved=!0}},{key:"debug",value:function(){if(this.options.debug){var m=["VSR_DEBUG:"].concat(Array.from(arguments));console.log.apply(null,m)}}}]),h}(),f=function(h){h.style.overflow="hidden";var m=h.getBoundingClientRect(),g=m.top,y=m.right,b=m.bottom,w=m.left,S=m.width,k=m.height,$=m.x,T=m.y;return h.style.overflow=null,{top:g,right:y,bottom:b,left:w,width:S,height:k,x:$,y:T}};typeof Element<"u"&&Element.prototype&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(h){for(var m=(this.document||this.ownerDocument).querySelectorAll(h),g=m.length;--g>=0&&m.item(g)!==this;);return g>-1}),i.default=s},function(r,i,a){var o=a(46)(!0);a(33)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,c=this._t,l=this._i;return l>=c.length?{value:void 0,done:!0}:(s=o(c,l),this._i+=s.length,{value:s,done:!1})})},function(r,i,a){var o=a(22),s=a(17);r.exports=function(c){return function(l,u){var d,p,f=String(s(l)),h=o(u),m=f.length;return h<0||h>=m?c?"":void 0:(d=f.charCodeAt(h))<55296||d>56319||h+1===m||(p=f.charCodeAt(h+1))<56320||p>57343?c?f.charAt(h):d:c?f.slice(h,h+2):p-56320+(d-55296<<10)+65536}}},function(r,i){r.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(r,i,a){var o=a(36),s=a(13),c=a(30),l={};a(3)(l,a(0)("iterator"),function(){return this}),r.exports=function(u,d,p){u.prototype=o(l,{next:s(1,p)}),c(u,d+" Iterator")}},function(r,i,a){var o=a(4),s=a(12),c=a(10);r.exports=a(8)?Object.defineProperties:function(l,u){s(l);for(var d,p=c(u),f=p.length,h=0;f>h;)o.f(l,d=p[h++],u[d]);return l}},function(r,i,a){var o=a(22),s=Math.max,c=Math.min;r.exports=function(l,u){return(l=o(l))<0?s(l+u,0):c(l,u)}},function(r,i,a){var o=a(1).document;r.exports=o&&o.documentElement},function(r,i,a){var o=a(6),s=a(16),c=a(27)("IE_PROTO"),l=Object.prototype;r.exports=Object.getPrototypeOf||function(u){return u=s(u),o(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?l:null}},function(r,i,a){var o=a(24),s=a(2),c=a(16),l=a(54),u=a(55),d=a(26),p=a(56),f=a(57);s(s.S+s.F*!a(59)(function(h){Array.from(h)}),"Array",{from:function(h){var m,g,y,b,w=c(h),S=typeof this=="function"?this:Array,k=arguments.length,$=k>1?arguments[1]:void 0,T=$!==void 0,A=0,E=f(w);if(T&&($=o($,k>2?arguments[2]:void 0,2)),E==null||S==Array&&u(E))for(g=new S(m=d(w.length));m>A;A++)p(g,A,T?$(w[A],A):w[A]);else for(b=E.call(w),g=new S;!(y=b.next()).done;A++)p(g,A,T?l(b,$,[y.value,A],!0):y.value);return g.length=A,g}})},function(r,i,a){var o=a(12);r.exports=function(s,c,l,u){try{return u?c(o(l)[0],l[1]):c(l)}catch(p){var d=s.return;throw d!==void 0&&o(d.call(s)),p}}},function(r,i,a){var o=a(15),s=a(0)("iterator"),c=Array.prototype;r.exports=function(l){return l!==void 0&&(o.Array===l||c[s]===l)}},function(r,i,a){var o=a(4),s=a(13);r.exports=function(c,l,u){l in c?o.f(c,l,s(0,u)):c[l]=u}},function(r,i,a){var o=a(58),s=a(0)("iterator"),c=a(15);r.exports=a(7).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||c[o(l)]}},function(r,i,a){var o=a(20),s=a(0)("toStringTag"),c=o(function(){return arguments}())=="Arguments";r.exports=function(l){var u,d,p;return l===void 0?"Undefined":l===null?"Null":typeof(d=function(f,h){try{return f[h]}catch{}}(u=Object(l),s))=="string"?d:c?o(u):(p=o(u))=="Object"&&typeof u.callee=="function"?"Arguments":p}},function(r,i,a){var o=a(0)("iterator"),s=!1;try{var c=[7][o]();c.return=function(){s=!0},Array.from(c,function(){throw 2})}catch{}r.exports=function(l,u){if(!u&&!s)return!1;var d=!1;try{var p=[7],f=p[o]();f.next=function(){return{done:d=!0}},p[o]=function(){return f},l(p)}catch{}return d}},function(r,i,a){var o=a(2),s=a(38)(!0);o(o.P,"Array",{includes:function(c){return s(this,c,arguments.length>1?arguments[1]:void 0)}}),a(31)("includes")},function(r,i,a){var o=a(2),s=a(62);o(o.P+o.F*a(64)("includes"),"String",{includes:function(c){return!!~s(this,c,"includes").indexOf(c,arguments.length>1?arguments[1]:void 0)}})},function(r,i,a){var o=a(63),s=a(17);r.exports=function(c,l,u){if(o(l))throw TypeError("String#"+u+" doesn't accept regex!");return String(s(c))}},function(r,i,a){var o=a(5),s=a(20),c=a(0)("match");r.exports=function(l){var u;return o(l)&&((u=l[c])!==void 0?!!u:s(l)=="RegExp")}},function(r,i,a){var o=a(0)("match");r.exports=function(s){var c=/./;try{"/./"[s](c)}catch{try{return c[o]=!1,!"/./"[s](c)}catch{}}return!0}},function(r,i){r.exports=function(a,o){return{value:o,done:!!a}}},function(r,i,a){var o=a(16),s=a(10);a(67)("keys",function(){return function(c){return s(o(c))}})},function(r,i,a){var o=a(2),s=a(7),c=a(9);r.exports=function(l,u){var d=(s.Object||{})[l]||Object[l],p={};p[l]=u(d),o(o.S+o.F*c(function(){d(1)}),"Object",p)}},function(r,i,a){var o=a(2);o(o.S+o.F,"Object",{assign:a(69)})},function(r,i,a){var o=a(10),s=a(32),c=a(21),l=a(16),u=a(25),d=Object.assign;r.exports=!d||a(9)(function(){var p={},f={},h=Symbol(),m="abcdefghijklmnopqrst";return p[h]=7,m.split("").forEach(function(g){f[g]=g}),d({},p)[h]!=7||Object.keys(d({},f)).join("")!=m})?function(p,f){for(var h=l(p),m=arguments.length,g=1,y=s.f,b=c.f;m>g;)for(var w,S=u(arguments[g++]),k=y?o(S).concat(y(S)):o(S),$=k.length,T=0;$>T;)b.call(S,w=k[T++])&&(h[w]=S[w]);return h}:d},function(r,i,a){var o=a(2),s=a(71)(6),c="findIndex",l=!0;c in[]&&Array(1)[c](function(){l=!1}),o(o.P+o.F*l,"Array",{findIndex:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}}),a(31)(c)},function(r,i,a){var o=a(24),s=a(25),c=a(16),l=a(26),u=a(72);r.exports=function(d,p){var f=d==1,h=d==2,m=d==3,g=d==4,y=d==6,b=d==5||y,w=p||u;return function(S,k,$){for(var T,A,E=c(S),I=s(E),R=o(k,$,3),Y=l(I.length),L=0,D=f?w(S,Y):h?w(S,0):void 0;Y>L;L++)if((b||L in I)&&(A=R(T=I[L],L,E),d)){if(f)D[L]=A;else if(A)switch(d){case 3:return!0;case 5:return T;case 6:return L;case 2:D.push(T)}else if(g)return!1}return y?-1:m||g?g:D}}},function(r,i,a){var o=a(73);r.exports=function(s,c){return new(o(s))(c)}},function(r,i,a){var o=a(5),s=a(40),c=a(0)("species");r.exports=function(l){var u;return s(l)&&(typeof(u=l.constructor)!="function"||u!==Array&&!s(u.prototype)||(u=void 0),o(u)&&(u=u[c])===null&&(u=void 0)),u===void 0?Array:u}},function(r,i,a){a(41)("asyncIterator")},function(r,i,a){var o=a(1),s=a(6),c=a(8),l=a(2),u=a(19),d=a(76).KEY,p=a(9),f=a(28),h=a(30),m=a(14),g=a(0),y=a(42),b=a(41),w=a(77),S=a(40),k=a(12),$=a(5),T=a(11),A=a(23),E=a(13),I=a(36),R=a(78),Y=a(79),L=a(4),D=a(10),B=Y.f,z=L.f,K=R.f,te=o.Symbol,j=o.JSON,M=j&&j.stringify,q=g("_hidden"),G=g("toPrimitive"),ee={}.propertyIsEnumerable,ae=f("symbol-registry"),ve=f("symbols"),ye=f("op-symbols"),me=Object.prototype,de=typeof te=="function",W=o.QObject,J=!W||!W.prototype||!W.prototype.findChild,Q=c&&p(function(){return I(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(F,Z,pe){var be=B(me,Z);be&&delete me[Z],z(F,Z,pe),be&&F!==me&&z(me,Z,be)}:z,xe=function(F){var Z=ve[F]=I(te.prototype);return Z._k=F,Z},we=de&&typeof te.iterator=="symbol"?function(F){return typeof F=="symbol"}:function(F){return F instanceof te},X=function(F,Z,pe){return F===me&&X(ye,Z,pe),k(F),Z=A(Z,!0),k(pe),s(ve,Z)?(pe.enumerable?(s(F,q)&&F[q][Z]&&(F[q][Z]=!1),pe=I(pe,{enumerable:E(0,!1)})):(s(F,q)||z(F,q,E(1,{})),F[q][Z]=!0),Q(F,Z,pe)):z(F,Z,pe)},ue=function(F,Z){k(F);for(var pe,be=w(Z=T(Z)),Te=0,Ee=be.length;Ee>Te;)X(F,pe=be[Te++],Z[pe]);return F},ie=function(F){var Z=ee.call(this,F=A(F,!0));return!(this===me&&s(ve,F)&&!s(ye,F))&&(!(Z||!s(this,F)||!s(ve,F)||s(this,q)&&this[q][F])||Z)},ke=function(F,Z){if(F=T(F),Z=A(Z,!0),F!==me||!s(ve,Z)||s(ye,Z)){var pe=B(F,Z);return!pe||!s(ve,Z)||s(F,q)&&F[q][Z]||(pe.enumerable=!0),pe}},U=function(F){for(var Z,pe=K(T(F)),be=[],Te=0;pe.length>Te;)s(ve,Z=pe[Te++])||Z==q||Z==d||be.push(Z);return be},oe=function(F){for(var Z,pe=F===me,be=K(pe?ye:T(F)),Te=[],Ee=0;be.length>Ee;)!s(ve,Z=be[Ee++])||pe&&!s(me,Z)||Te.push(ve[Z]);return Te};de||(u((te=function(){if(this instanceof te)throw TypeError("Symbol is not a constructor!");var F=m(arguments.length>0?arguments[0]:void 0),Z=function(pe){this===me&&Z.call(ye,pe),s(this,q)&&s(this[q],F)&&(this[q][F]=!1),Q(this,F,E(1,pe))};return c&&J&&Q(me,F,{configurable:!0,set:Z}),xe(F)}).prototype,"toString",function(){return this._k}),Y.f=ke,L.f=X,a(43).f=R.f=U,a(21).f=ie,a(32).f=oe,c&&!a(18)&&u(me,"propertyIsEnumerable",ie,!0),y.f=function(F){return xe(g(F))}),l(l.G+l.W+l.F*!de,{Symbol:te});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),V=0;re.length>V;)g(re[V++]);for(var P=D(g.store),C=0;P.length>C;)b(P[C++]);l(l.S+l.F*!de,"Symbol",{for:function(F){return s(ae,F+="")?ae[F]:ae[F]=te(F)},keyFor:function(F){if(!we(F))throw TypeError(F+" is not a symbol!");for(var Z in ae)if(ae[Z]===F)return Z},useSetter:function(){J=!0},useSimple:function(){J=!1}}),l(l.S+l.F*!de,"Object",{create:function(F,Z){return Z===void 0?I(F):ue(I(F),Z)},defineProperty:X,defineProperties:ue,getOwnPropertyDescriptor:ke,getOwnPropertyNames:U,getOwnPropertySymbols:oe}),j&&l(l.S+l.F*(!de||p(function(){var F=te();return M([F])!="[null]"||M({a:F})!="{}"||M(Object(F))!="{}"})),"JSON",{stringify:function(F){for(var Z,pe,be=[F],Te=1;arguments.length>Te;)be.push(arguments[Te++]);if(pe=Z=be[1],($(Z)||F!==void 0)&&!we(F))return S(Z)||(Z=function(Ee,ze){if(typeof pe=="function"&&(ze=pe.call(this,Ee,ze)),!we(ze))return ze}),be[1]=Z,M.apply(j,be)}}),te.prototype[G]||a(3)(te.prototype,G,te.prototype.valueOf),h(te,"Symbol"),h(Math,"Math",!0),h(o.JSON,"JSON",!0)},function(r,i,a){var o=a(14)("meta"),s=a(5),c=a(6),l=a(4).f,u=0,d=Object.isExtensible||function(){return!0},p=!a(9)(function(){return d(Object.preventExtensions({}))}),f=function(m){l(m,o,{value:{i:"O"+ ++u,w:{}}})},h=r.exports={KEY:o,NEED:!1,fastKey:function(m,g){if(!s(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!c(m,o)){if(!d(m))return"F";if(!g)return"E";f(m)}return m[o].i},getWeak:function(m,g){if(!c(m,o)){if(!d(m))return!0;if(!g)return!1;f(m)}return m[o].w},onFreeze:function(m){return p&&h.NEED&&d(m)&&!c(m,o)&&f(m),m}}},function(r,i,a){var o=a(10),s=a(32),c=a(21);r.exports=function(l){var u=o(l),d=s.f;if(d)for(var p,f=d(l),h=c.f,m=0;f.length>m;)h.call(l,p=f[m++])&&u.push(p);return u}},function(r,i,a){var o=a(11),s=a(43).f,c={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(u){return l&&c.call(u)=="[object Window]"?function(d){try{return s(d)}catch{return l.slice()}}(u):s(o(u))}},function(r,i,a){var o=a(21),s=a(13),c=a(11),l=a(23),u=a(6),d=a(34),p=Object.getOwnPropertyDescriptor;i.f=a(8)?p:function(f,h){if(f=c(f),h=l(h,!0),d)try{return p(f,h)}catch{}if(u(f,h))return s(!o.f.call(f,h),f[h])}},function(r,i,a){for(var o=a(39),s=a(10),c=a(19),l=a(1),u=a(3),d=a(15),p=a(0),f=p("iterator"),h=p("toStringTag"),m=d.Array,g={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=s(g),b=0;b<y.length;b++){var w,S=y[b],k=g[S],$=l[S],T=$&&$.prototype;if(T&&(T[f]||u(T,f,m),T[h]||u(T,h,S),d[S]=m,k))for(w in o)T[w]||c(T,w,o[w],!0)}}]).default})})(qH);var uYe=qH.exports;const dYe=tn(uYe),pYe={property:["height","width"],transition:"height 150ms cubic-bezier(0.175, 0.885, 0.32, 1), width .25s ease-out, transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1)"},fYe={name:"Animation",mixins:[dYe],props:{tag:{type:String,default:"div"},options:{type:Object,default:null}},mounted(){this.$smoothReflow({...pYe,...this.options})}};var hYe=function(){var t=this,r=t._self._c;return r(t.tag,{tag:"component"},[t._t("default")],2)},mYe=[],gYe=he(fYe,hYe,mYe,!1,null,null,null,null);const pb=gYe.exports;function vYe(){ai.init({store:hn}),wg.init({store:hn}),hn.handleError=Rr,s5e(hn,Ks),hn.$router=Ks}vYe();function yYe(n,t={}){var i;String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},Fe.use(M3,{rootNode:t.rootNode,disposeTimeout:100,defaultDelay:300,defaultContainer:n.parentElement,defaultHtml:!1,popover:{defaultContainer:n.parentElement}}),Fe.use(tP,{dynamic:!0,injectModalsContainer:!1,dynamicDefaults:{transition:"no-animation"}}),Fe.use(k5e),Fe.prototype.$modal.getOpenInstances=()=>{const{_dynamicContainer:a}=tP.rootInstance||{};if(!a||a.modals.length===0)return[];const{modals:o}=a;return o},Fe.prototype.$view="widget",Fe.use(nxe),Fe.use(o5e),Fe.use(Cqe),Fe.component(Ng.name,Ng),Fe.component(Tf.name,Tf),Fe.component(cl.name,cl),Fe.component(id.name,id),Fe.component(pb.name,pb),Xe.debug&&(Fe.config.productionTip=!1,Fe.config.devtools=!0,Fe.config.performance=!0),hn.commit("application/SET_SOCKET_ENABLED",((i=t==null?void 0:t.socket)==null?void 0:i.enabled)||!1);const r=new Fe({el:n,router:Ks,store:hn,i18n:Be,render:a=>a(bIe)});return Ks.beforeEach((a,o,s)=>(Ks.resolve({...a}).href==="/"&&mn.removeAllOverlayViews(),s())),r}var bYe=Array.isArray,Bg=bYe,_Ye=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,wYe=_Ye,xYe=wYe,CYe=typeof self=="object"&&self&&self.Object===Object&&self,kYe=xYe||CYe||Function("return this")(),oT=kYe,SYe=oT,TYe=SYe.Symbol,fb=TYe,YH=fb,KH=Object.prototype,EYe=KH.hasOwnProperty,$Ye=KH.toString,jg=YH?YH.toStringTag:void 0;function AYe(n){var t=EYe.call(n,jg),r=n[jg];try{n[jg]=void 0;var i=!0}catch{}var a=$Ye.call(n);return i&&(t?n[jg]=r:delete n[jg]),a}var OYe=AYe,DYe=Object.prototype,MYe=DYe.toString;function PYe(n){return MYe.call(n)}var IYe=PYe,ZH=fb,RYe=OYe,LYe=IYe,NYe="[object Null]",FYe="[object Undefined]",JH=ZH?ZH.toStringTag:void 0;function BYe(n){return n==null?n===void 0?FYe:NYe:JH&&JH in Object(n)?RYe(n):LYe(n)}var sT=BYe;function jYe(n){return n!=null&&typeof n=="object"}var lT=jYe,zYe=sT,VYe=lT,UYe="[object Symbol]";function HYe(n){return typeof n=="symbol"||VYe(n)&&zYe(n)==UYe}var cT=HYe,WYe=Bg,GYe=cT,qYe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YYe=/^\w*$/;function KYe(n,t){if(WYe(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||GYe(n)?!0:YYe.test(n)||!qYe.test(n)||t!=null&&n in Object(t)}var ZYe=KYe;function JYe(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var uT=JYe,XYe=sT,QYe=uT,eKe="[object AsyncFunction]",tKe="[object Function]",nKe="[object GeneratorFunction]",rKe="[object Proxy]";function iKe(n){if(!QYe(n))return!1;var t=XYe(n);return t==tKe||t==nKe||t==eKe||t==rKe}var aKe=iKe,oKe=oT,sKe=oKe["__core-js_shared__"],lKe=sKe,dT=lKe,XH=function(){var n=/[^.]+$/.exec(dT&&dT.keys&&dT.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function cKe(n){return!!XH&&XH in n}var uKe=cKe,dKe=Function.prototype,pKe=dKe.toString;function fKe(n){if(n!=null){try{return pKe.call(n)}catch{}try{return n+""}catch{}}return""}var hKe=fKe,mKe=aKe,gKe=uKe,vKe=uT,yKe=hKe,bKe=/[\\^$.*+?()[\]{}|]/g,_Ke=/^\[object .+?Constructor\]$/,wKe=Function.prototype,xKe=Object.prototype,CKe=wKe.toString,kKe=xKe.hasOwnProperty,SKe=RegExp("^"+CKe.call(kKe).replace(bKe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function TKe(n){if(!vKe(n)||gKe(n))return!1;var t=mKe(n)?SKe:_Ke;return t.test(yKe(n))}var EKe=TKe;function $Ke(n,t){return n==null?void 0:n[t]}var AKe=$Ke,OKe=EKe,DKe=AKe;function MKe(n,t){var r=DKe(n,t);return OKe(r)?r:void 0}var pT=MKe,PKe=pT,IKe=PKe(Object,"create"),hb=IKe,QH=hb;function RKe(){this.__data__=QH?QH(null):{},this.size=0}var LKe=RKe;function NKe(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}var FKe=NKe,BKe=hb,jKe="__lodash_hash_undefined__",zKe=Object.prototype,VKe=zKe.hasOwnProperty;function UKe(n){var t=this.__data__;if(BKe){var r=t[n];return r===jKe?void 0:r}return VKe.call(t,n)?t[n]:void 0}var HKe=UKe,WKe=hb,GKe=Object.prototype,qKe=GKe.hasOwnProperty;function YKe(n){var t=this.__data__;return WKe?t[n]!==void 0:qKe.call(t,n)}var KKe=YKe,ZKe=hb,JKe="__lodash_hash_undefined__";function XKe(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=ZKe&&t===void 0?JKe:t,this}var QKe=XKe,eZe=LKe,tZe=FKe,nZe=HKe,rZe=KKe,iZe=QKe;function Ef(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}Ef.prototype.clear=eZe,Ef.prototype.delete=tZe,Ef.prototype.get=nZe,Ef.prototype.has=rZe,Ef.prototype.set=iZe;var aZe=Ef;function oZe(){this.__data__=[],this.size=0}var sZe=oZe;function lZe(n,t){return n===t||n!==n&&t!==t}var eW=lZe,cZe=eW;function uZe(n,t){for(var r=n.length;r--;)if(cZe(n[r][0],t))return r;return-1}var mb=uZe,dZe=mb,pZe=Array.prototype,fZe=pZe.splice;function hZe(n){var t=this.__data__,r=dZe(t,n);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():fZe.call(t,r,1),--this.size,!0}var mZe=hZe,gZe=mb;function vZe(n){var t=this.__data__,r=gZe(t,n);return r<0?void 0:t[r][1]}var yZe=vZe,bZe=mb;function _Ze(n){return bZe(this.__data__,n)>-1}var wZe=_Ze,xZe=mb;function CZe(n,t){var r=this.__data__,i=xZe(r,n);return i<0?(++this.size,r.push([n,t])):r[i][1]=t,this}var kZe=CZe,SZe=sZe,TZe=mZe,EZe=yZe,$Ze=wZe,AZe=kZe;function $f(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}$f.prototype.clear=SZe,$f.prototype.delete=TZe,$f.prototype.get=EZe,$f.prototype.has=$Ze,$f.prototype.set=AZe;var OZe=$f,DZe=pT,MZe=oT,PZe=DZe(MZe,"Map"),IZe=PZe,tW=aZe,RZe=OZe,LZe=IZe;function NZe(){this.size=0,this.__data__={hash:new tW,map:new(LZe||RZe),string:new tW}}var FZe=NZe;function BZe(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}var jZe=BZe,zZe=jZe;function VZe(n,t){var r=n.__data__;return zZe(t)?r[typeof t=="string"?"string":"hash"]:r.map}var gb=VZe,UZe=gb;function HZe(n){var t=UZe(this,n).delete(n);return this.size-=t?1:0,t}var WZe=HZe,GZe=gb;function qZe(n){return GZe(this,n).get(n)}var YZe=qZe,KZe=gb;function ZZe(n){return KZe(this,n).has(n)}var JZe=ZZe,XZe=gb;function QZe(n,t){var r=XZe(this,n),i=r.size;return r.set(n,t),this.size+=r.size==i?0:1,this}var eJe=QZe,tJe=FZe,nJe=WZe,rJe=YZe,iJe=JZe,aJe=eJe;function Af(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}Af.prototype.clear=tJe,Af.prototype.delete=nJe,Af.prototype.get=rJe,Af.prototype.has=iJe,Af.prototype.set=aJe;var oJe=Af,nW=oJe,sJe="Expected a function";function fT(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new TypeError(sJe);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],o=r.cache;if(o.has(a))return o.get(a);var s=n.apply(this,i);return r.cache=o.set(a,s)||o,s};return r.cache=new(fT.Cache||nW),r}fT.Cache=nW;var lJe=fT,cJe=lJe,uJe=500;function dJe(n){var t=cJe(n,function(i){return r.size===uJe&&r.clear(),i}),r=t.cache;return t}var pJe=dJe,fJe=pJe,hJe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mJe=/\\(\\)?/g,gJe=fJe(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(hJe,function(r,i,a,o){t.push(a?o.replace(mJe,"$1"):i||r)}),t}),vJe=gJe;function yJe(n,t){for(var r=-1,i=n==null?0:n.length,a=Array(i);++r<i;)a[r]=t(n[r],r,n);return a}var bJe=yJe,rW=fb,_Je=bJe,wJe=Bg,xJe=cT,CJe=1/0,iW=rW?rW.prototype:void 0,aW=iW?iW.toString:void 0;function oW(n){if(typeof n=="string")return n;if(wJe(n))return _Je(n,oW)+"";if(xJe(n))return aW?aW.call(n):"";var t=n+"";return t=="0"&&1/n==-CJe?"-0":t}var kJe=oW,SJe=kJe;function TJe(n){return n==null?"":SJe(n)}var EJe=TJe,$Je=Bg,AJe=ZYe,OJe=vJe,DJe=EJe;function MJe(n,t){return $Je(n)?n:AJe(n,t)?[n]:OJe(DJe(n))}var vb=MJe,PJe=cT,IJe=1/0;function RJe(n){if(typeof n=="string"||PJe(n))return n;var t=n+"";return t=="0"&&1/n==-IJe?"-0":t}var hT=RJe,LJe=vb,NJe=hT;function FJe(n,t){t=LJe(t,n);for(var r=0,i=t.length;n!=null&&r<i;)n=n[NJe(t[r++])];return r&&r==i?n:void 0}var sW=FJe,BJe=sW;function jJe(n,t,r){var i=n==null?void 0:BJe(n,t);return i===void 0?r:i}var zJe=jJe;const mT=tn(zJe);var VJe=pT,UJe=function(){try{var n=VJe(Object,"defineProperty");return n({},"",{}),n}catch{}}(),lW=UJe,cW=lW;function HJe(n,t,r){t=="__proto__"&&cW?cW(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}var WJe=HJe,GJe=WJe,qJe=eW,YJe=Object.prototype,KJe=YJe.hasOwnProperty;function ZJe(n,t,r){var i=n[t];(!(KJe.call(n,t)&&qJe(i,r))||r===void 0&&!(t in n))&&GJe(n,t,r)}var JJe=ZJe,XJe=9007199254740991,QJe=/^(?:0|[1-9]\d*)$/;function eXe(n,t){var r=typeof n;return t=t??XJe,!!t&&(r=="number"||r!="symbol"&&QJe.test(n))&&n>-1&&n%1==0&&n<t}var uW=eXe,tXe=JJe,nXe=vb,rXe=uW,dW=uT,iXe=hT;function aXe(n,t,r,i){if(!dW(n))return n;t=nXe(t,n);for(var a=-1,o=t.length,s=o-1,c=n;c!=null&&++a<o;){var l=iXe(t[a]),u=r;if(a!=s){var d=c[l];u=i?i(d,l,c):void 0,u===void 0&&(u=dW(d)?d:rXe(t[a+1])?[]:{})}tXe(c,l,u),c=c[l]}return n}var pW=aXe,oXe=pW;function sXe(n,t,r){return n==null?n:oXe(n,t,r)}var lXe=sXe;const cXe=tn(lXe);class uXe{static instance(){return new this}static new(...t){return this.instance().new(...t)}static get(t){return this.instance().get(t)}static on(...t){return this.instance().on(...t)}static find(t){return this.instance().find(t)}static remove(t){return this.instance().remove(t)}}class fW extends uXe{constructor(){if(super(),this.storeMap===void 0)throw new Error("You must declare store action/getter map")}_applyInstance(t,r,i=this.constructor){return new i(t,r)}_hasId(){return!!this.getPrimaryKey()}new(...t){if(this.storeMap.new===void 0)throw new Error("No provided NEW action");return hn.dispatch(this.storeMap.new,...t)}get(t){if(this.storeMap.get===void 0)throw new Error("No provided NEW action");if(this.storeMap.byId===void 0)throw new Error("No provided byId getter");return hn.dispatch(this.storeMap.get,{id:t}).then(()=>{const r=hn.getters[this.storeMap.byId](t);return this._applyInstance(r)})}_create(t){if(this.storeMap.create===void 0)throw new Error("No provided CREATE action");return hn.dispatch(this.storeMap.create,{body:t})}_update(...t){if(this.storeMap.update===void 0)throw new Error("No provided UPDATE action");return hn.dispatch(this.storeMap.update,...t)}remove(t){if(this.storeMap.remove===void 0)throw new Error("No provided REMOVE action");return hn.dispatch(this.storeMap.remove,{id:t})}on(t,r){return Pr.on(t,r)}}const hW=({sectionKey:n,tplGenerators:t,document:r=null,contentData:i=null,includeMockData:a=!1})=>{if(!n)throw new Error("Missing param sectionKey");if(!t)throw new Error("Missing param tplGenerators");if(!t[n])throw new Error("Missing valid sectionKey for tplGenerators");return t[n]({includeMockData:a,document:r,contentData:i})},dXe=({set:n,key:t,validationKey:r,type:i,anyOf:a,items:o,properties:s,additionalProperties:c,patternProperties:l,required:u,$ref:d,data:p=void 0,defaultValue:f=void 0,defaultValidation:h=void 0})=>{const m={string:"",boolean:!1,array:[],object:Object()};if(typeof i=="string"&&!Object.keys(m).includes(i))throw Error("Missing valid param type");let g={};a?g={anyOf:a}:i&&(g={type:i});const y=o?{items:o}:{};n({key:`data.${t}`,value:f||m[i]}),p&&Object.keys(p).forEach(b=>n({key:`${b}`,value:p[b]})),n({key:`template.validationSchema.properties.data.properties.${r||t}`,value:{...g,...f&&{default:h||f},...y,...typeof c=="boolean"&&{additionalProperties:c},...s&&{properties:s},...l&&{patternProperties:l},...u&&{required:u},...d&&{$ref:d}}})},mW=({set:n,validation:t,data:r={}})=>t.forEach(i=>dXe({...i,data:r,set:n})),pXe=(n,t,r,i=!1)=>{if(!t)throw new Error("Missing param set");if(!n)throw new Error("Missing param sectionKey");return{sectionKey:n,createNewSection:a=>hW({...a,tplGenerators:r,includeMockData:i}),addValidation:a=>mW({...a,set:t})}},gW=({set:n,sectionKey:t,tplGenerators:r,document:i=null,contentData:a=null,includeMockData:o=!1,emit:s=null})=>{if(!n)throw new Error("Missing param set");if(typeof n!="function")throw new Error("Set needs to be a function");if(!r)throw new Error("Missing param tplGenerators");const{readView:c,validation:l,data:u,onAddFnName:d="onAdd"}=hW({sectionKey:t,tplGenerators:r,document:i,contentData:a,includeMockData:o});mW({set:n,validation:l,data:u}),c.forEach(f=>n({key:"template.views.read.nodes",value:f}));const[{nodeId:p}]=c;return typeof s=="function"&&s("block-added",{nodeId:p,onAddFnName:d}),p},fXe=n=>{const t=Array(2).fill().map(()=>Ut());return[{itemId:"sectionPdf",itemType:"section",value:null,parentId:"0",nodeId:t[0]},{itemId:"pdf",itemType:"pdf",value:{file:`data.pdf-file-${n}`},parentId:t[0],nodeId:t[1]}]},hXe=n=>[{key:`pdf-file-${n}`,anyOf:[{$ref:`${Xe.api.baseUrl}/schemas/file/1.json`},{type:"null"}],default:null}],vW=({contentData:n=null}={})=>{const t=Ut();let r=null;return typeof n=="function"&&(r=n(t)),{readView:fXe(t),validation:hXe(t),...r&&{data:r}}},mXe=()=>[{itemId:"answer",itemType:"answer",value:{defaultAnswerMethod:"data.defaultAnswerMethod"},parentId:"0",nodeId:Ut()}],gXe=ai.checkFeature("bankId")?"bankId":"signature",vXe=()=>[{key:"defaultAnswerMethod",$ref:`${Xe.api.baseUrl}/schemas/answer/1.json`,defaultValue:{accept:gXe,deny:"button"}}],yW=({contentData:n=null}={})=>{let t=null;return typeof n=="function"&&(t=n()),{readView:mXe(),validation:vXe(),...t&&{data:t}}},yXe={pdf:vW,answer:yW},bXe=n=>/^(http|https)/.test(n),bW=(n,t=[])=>{const r=[];return t.forEach(i=>{i.nodeId===n&&r.push(i),i.parentId===n&&r.push(...bW(i.nodeId,t))}),r},_W=(n,t)=>{const{root:r,prop:i}=rl(n,t);r&&i in r&&delete r[i]};class _Xe{constructor({setter:t}){if(!t)throw new Error("Missing param setter");this._addBlock=r=>gW({...r,set:t,tplGenerators:yXe})}async pdf(t){let r=t;if(typeof t=="string"&&bXe(t)){const{data:o}=await ni.get(t,{responseType:"blob"});r=new File([o],"copied-file.pdf",{type:o.type})}if(!(r instanceof File))throw new Error("No file instance found");const i=new FormData;i.append("file",r,r.name||"filename");const{data:a}=await Yt("/file",i,{timeout:6e4});return this._addBlock({sectionKey:"pdf",contentData:o=>({[`data.pdf-file-${o}`]:{fileId:a.id,name:a.displayName,url:a.url,mime:a.mime}})})}answer(){return this._addBlock({sectionKey:"answer",contentData:()=>({"data.defaultAnswerMethod":{accept:"bankId",deny:"button"}})})}removeSection(t){const r=o=>{o&&Object.values(o).forEach(s=>{_W(this._documentJSON,s);const l=`template.validationSchema.properties.${s.replace(/^data.(?!properties)/g,"data.properties.")}`;mT(this._documentJSON,l)!==void 0&&_W(this._documentJSON,l)})},{nodes:i}=this._documentJSON.template.views.read;bW(t,i).forEach(o=>{r(o.value);const s=i.findIndex(c=>c.nodeId===o.nodeId);i.splice(s,1)})}}const{LOAD_DOCUMENT2_FORM:wXe,SAVE_DYNDOC_FORM:wW,CLEAR_DYNDOC_FORM:xXe,SET_FORM_VALUE:xW,REMOVE_FORM_VALUE:CXe,LOAD_DOCUMENT2:kXe,LOAD_DOCUMENTS2:SXe,UPDATE_DOCUMENT2:TXe,DO_CREATE_DOCUMENT2:EXe,DO_SEND_DOCUMENT2:$Xe,DELETE_DOCUMENT2:AXe}=He,gT=n=>`document2.${n}`;let OXe=class extends fW{constructor(r,{isForm:i}={}){super(r);$n(this,"ui",{form:{open:r=>{if(!this._isForm)throw new Error("Doc needs to be initiated in the form: editableDoc = doc.toForm()");this._addView({mode:"modal",view:"form",viewOpts:{closeFunc:()=>this._removeView({mode:"modal",view:"form"}),...r}})},close:()=>{this._removeView({mode:"modal",view:"form"})}},document:{open:r=>{this._addView({mode:"modal",view:"document",viewOpts:r})},close:()=>{this._removeView({mode:"modal",view:"document"})},mount:({targetElement:r})=>{this._addView({mode:"mount",view:"document",viewOpts:{targetElement:r}})},unmount:()=>{this._removeView({mode:"mount",view:"document"})}},send:{open:r=>{if(!this._isForm)throw new Error("Doc needs to be initiated in the form: editableDoc = doc.toForm()");this._addView({mode:"drawer",view:"send",viewOpts:{closeFunc:()=>this._removeView({mode:"drawer",view:"send"}),...r}})}},timeline:{open:r=>{this._addView({mode:"modal",view:"timeline",viewOpts:{...r}})},close:()=>{this._removeView({mode:"modal",view:"timeline"})},mount:r=>{if(!r.targetElement)throw new Error("[ui.timeline.mount] No targetElement specified in options");this._addView({mode:"mount",view:"timeline",viewOpts:{...r}})},unmount:()=>{this._removeView({mode:"mount",view:"timeline"})}},print:{open:r=>{this._addView({mode:"modal",view:"print",viewOpts:r})}},receipt:{open:()=>{this._addView({mode:"modal",view:"receipt"})},close:()=>{this._removeView({mode:"modal",view:"receipt"})}},clientLinks:{open:()=>{this._addView({mode:"modal",view:"clientLinks",viewOpts:{closeFunc:()=>this._removeView({mode:"modal",view:"clientLinks"})}})},close:()=>{this._removeView({mode:"modal",view:"clientLinks"})}},sendReminder:{open:()=>{this._addView({mode:"modal",view:"sendReminder"})},close:()=>{this._removeView({mode:"modal",view:"sendReminder"})}},on:(r,i)=>{const a=mn.on(r,i);return this._addUnregisterListener(`ui:${r}`,a),a}});r&&(this._isForm=i||!1,this._document=r,this._unregisterListeners={},this._builder=new _Xe({setter:({key:a,value:o})=>hn.dispatch(xW,{key:gT(a),value:o})})),this._beforeSave=null,this._beforeSend=null,this._beforeUpdateForm=null}get storeMap(){return{new:wXe,save:wW,get:kXe,find:SXe,update:TXe,create:EXe,remove:AXe,byId:"documents2/byId"}}get isUserLoaded(){return hn.getters["application/isUserLoaded"]}get hasToken(){return!!wt.getItem("token")}checkAuth(){if(!this.hasToken)throw new Error("No authorization token set");if(!this.isUserLoaded)throw new Error("User not loaded");return!0}getProperty(r){var a;if(!this._document)return;let i=(a=this._document)==null?void 0:a._doc;return this._isForm&&(i=hn.getters["forms/document"]),r===""?i:mT(i,r)}setProperty(r,i,a={runHook:!0}){if(!this._document)return;if(!this._isForm)throw new Error("Doc needs to be initiated in the form: editableDoc = doc.toForm()");let o=i;if(a.runHook){const s=this.beforeUpdateForm(r,i);s!==void 0&&(o=s)}return r===""?hn.commit("forms/SET_FORM",{key:"document2",formData:i}):hn.dispatch(xW,{key:gT(r),value:o}).then(()=>this._emitFormUpdate({key:r,value:o}))}removeProperty(r){const i=this.beforeUpdateForm(r);if(i!==void 0){this.setProperty(r,i,{runHook:!1});return}hn.dispatch(CXe,gT(r)).then(()=>this._emitFormUpdate({key:r}))}_emitFormUpdate({key:r,value:i}){Pr.trigger("document:formUpdate",{id:this.getProperty("id"),__tempId:this.getProperty("__tempId"),key:r,value:i})}beforeUpdateForm(r,i){if(typeof this._beforeUpdateForm=="function"){const a=this._beforeUpdateForm({key:r,value:i,oldValue:this.getProperty(r)});return a!==void 0?a:i}}addClient(r){const i=this.getProperty("clients")||[];this.setProperty("clients",[...i,{...Sg(),...r}])}removeClient({email:r,cellphone:i}={}){const a=this.getProperty("clients")||[];this.setProperty("clients",a.filter(o=>!(o.email===r||o.cellphone===i)))}addReference({service:r,type:i,typeId:a}={}){if(!r)throw new Error("Missing or empty param service");if(!i)throw new Error("Missing or empty param type");if(!a)throw new Error("Missing or empty param typeId");if(!this._document)throw new Error("You must provide a document instance");const o=this.getProperty("externalReferences")||[];this.setProperty("externalReferences",[...o,{service:r,type:i,typeId:a}])}removeReference({service:r,type:i,typeId:a}={}){if(!r)throw new Error("Missing or empty param service");if(!i)throw new Error("Missing or empty param type");if(!a)throw new Error("Missing or empty param typeId");if(!this._document)throw new Error("You must provide a document instance");const o=this.getProperty("externalReferences")||[];this.setProperty("externalReferences",o.filter(s=>!(s.service===r&&s.type===i&&s.typeId===a)))}new(r){var a;const i=!r||((a=r==null?void 0:r._formData)==null?void 0:a.__isNew);return this.checkAuth(),super.new({templateId:"empty",_formData:{subscriberCompanyUserIds:[],...i&&{__isNew:i}},...r,...!r&&{__isNew:!0}}).then(()=>{const o=hn.getters["forms/document"],s=new fc({data:o,can:hn.getters["application/can"],getters:hn.getters});return this._applyInstance(s,{isForm:!0})})}get(r){return this.checkAuth(),super.get(r)}find(r={}){return this.checkAuth(),Ki.getAll({isHidden:!1,returnType:"template",...r}).then(i=>{var a;return(((a=i==null?void 0:i.data)==null?void 0:a.items)||[]).map(o=>hn.getters["documents2/byData"]({data:o})).map(o=>this._applyInstance(o))})}async save(){if(this.checkAuth(),!this._document)throw new Error("You must provide a document instance");if(this._beforeSave&&await this._beforeSave(),hn.getters["forms/document"])return hn.dispatch(wW).then(i=>hn.dispatch(xXe).then(()=>i));const r=this._document._doc;return r._id?this._update({id:r._id,body:r}):this._create(r)}remove(){if(this.checkAuth(),!this._document)throw new Error("You must provide a document instance");if(!this._document.id)throw new Error("You must provide an existing document");return super.remove(this._document.id)}on(r,i){if(!["create","update","save","remove","send","beforeSave","beforeSend","beforeUpdateForm","watch","formUpdate"].includes(r))throw new Error(`Event ${r} not supported`);if(r==="beforeSave")return this._beforeSave=i,()=>{this._beforeSave=null};if(r==="beforeSend")return this._beforeSend=i,()=>{this._beforeSend=null};if(r==="beforeUpdateForm")return this._beforeUpdateForm=i,()=>{this._beforeUpdateForm=null};const a=super.on(`document:${r}`,(o,...s)=>{const c=this.getProperty("id")===o.id,l=o.__tempId?this.getProperty("__tempId")===o.__tempId:!1;(c||l)&&i(o,...s)});return this._addUnregisterListener(r,a),a}_addUnregisterListener(r,i){this._unregisterListeners[r]=this._unregisterListeners[r]||[],this._unregisterListeners[r].push(i)}removeAllListeners(){Object.keys(this._unregisterListeners||{}).forEach(r=>{this._unregisterListeners[r].forEach(i=>i()),delete this._unregisterListeners[r]}),this._beforeSave=null,this._beforeSend=null,this._beforeUpdateForm=null}useTemplate(r){return this.new({templateId:r})}async send(){if(this.checkAuth(),!this._document)throw new Error("You must provide a document instance");if(!this._document._id)throw new Error("You must provide an existing document");this._beforeSend&&await this._beforeSend();const r=this._document._id;return await hn.dispatch($Xe,{id:r}),r}addBlock(){if(!this._builder)throw new Error("You must provide a document instance");return this._builder}removeBlock(r){if(!this._builder)throw new Error("You must provide a document instance");if(r===void 0)throw new Error("Missing required param nodeId");return this._builder.removeSection(r)}toForm(){var i;const r=(i=this._document)==null?void 0:i._doc;if(!r)throw new Error("Missing provided document data");return this.new({formData:r})}getAllNodesWithType(r){var i;return((i=this._document)==null?void 0:i.getAllNodesWithType(r))||[]}_addView({mode:r,view:i,viewOpts:a}){var s;const o={key:this._document.id,viewOpts:{document:this._document,beforeSend:this._beforeSend,beforeSave:this._beforeSave,setFormValue:({key:c,value:l})=>this.setProperty(c,l),removeFormValue:this.removeProperty.bind(this),...a}};r==="mount"&&(o.viewOpts={key:this._document.id,...o.viewOpts,props:{...(s=o==null?void 0:o.viewOpts)==null?void 0:s.props,document:this._document}}),mn.addView({mode:r,view:i,...o})}_removeView({mode:r,view:i,viewOpts:a}){mn.removeView({key:this._document.id,mode:r,view:i,viewOpts:a})}};const DXe="publicDocuments",{DO_LOAD_PUBLIC_DOCUMENT:vT,LOAD_PUBLIC_DOCUMENT:yT,ANSWER_PUBLIC_DOCUMENT:CW,ANSWER_CURRENT_PUBLIC_DOCUMENT:MXe,PUT_PUBLIC_DOCUMENT:kW,PUT_CURRENT_PUBLIC_DOCUMENT:SW,DO_SET_CURRENT_DOCUMENT:bT,SET_CURRENT_PUBLIC_DOCUMENT_VALUE:PXe,RELOAD_CURRENT_DOCUMENT:IXe,LOAD_PUBLIC_COMPANY:TW,LOAD_CLIENT_DOCUMENTS:RXe,LOAD_CLIENT_INVOICES:LXe,REQUEST_MAGIC_LINK:NXe}=Cj,{SET_PUBLIC_DOCUMENTS_FETCHING:ad,SET_PUBLIC_DOCUMENTS_POSTING:od,SET_PUBLIC_DOCUMENTS:_T,SET_CURRENT_DOCUMENT:FXe,SET_CURRENT_DOCUMENT_VALUE:EW,SET_VIEWER:$W,SET_PUBLIC_INVOICES:AW,SET_PUBLIC_COMPANIES:OW}=kj,DW=(n,t)=>{const{companySettings:r={},company:i={}}=t.companyById(Ce(n,"company.publicId"))||{},{senderString:a,receiverString:o,offerBrandingBackgroundUrl:s,documentThemeBackgroundFilter:c,documentShowPriceSummary:l,documentThemePriceBackground:u,documentThemePrimaryColor:d,presentationFontFamily:p,showClingLogo:f}=r;return[n,{props:{defaultSenderString:a,defaultReceiverString:o},settingsTheme:mf({background:s,backgroundFilter:c,showClingLogo:f,showPriceSummary:l,priceSummaryBackground:u,headingColor:d,fontFamily:p})}]},BXe={namespaced:!0,state:{currentDocument:{},viewer:{},isFetching:!1,isPosting:!1,changes:{},documentIds:[],invoiceIds:[],companyIds:[],documents:{},invoices:{},companies:{},viewerIdToId:{}},getters:{documentById:(n,t)=>r=>n.documents[r]?new f6(...DW(n.documents[r],t)):null,documentByViewerId:(n,t)=>r=>n.viewerIdToId[r]?t.documentById(n.viewerIdToId[r]):null,invoiceById:n=>t=>n.invoices[t]?n.invoices[t]:null,companyById:n=>t=>n.companies[t]||null,currentDocument:(n,t)=>Object.keys(n.currentDocument).length?new f6(...DW(n.currentDocument,t)):null,changes:n=>n.changes||{},currentDocumentId:n=>Ce(n,"currentDocument.viewerId",null),currentSenderCompany:n=>{var t,r;return n.companies[(r=(t=n.currentDocument)==null?void 0:t.company)==null?void 0:r.publicId]},viewer:n=>n.viewer||null,isPosting:n=>n.isPosting,isFetching:n=>n.isFetching,documentIds:n=>n.documentIds||[],invoiceIds:n=>n.invoiceIds||[],companyIds:n=>n.companyIds||[]},actions:{async[IXe]({dispatch:n,getters:t}){try{if(!t.currentDocumentId)throw Error("No current document have been set yet");await n(yT,{id:t.currentDocumentId,params:{preview:!0}})}catch(r){throw r}},async[bT]({state:n,commit:t,dispatch:r},{id:i,params:a={},showLast4ssn:o=!0}){try{await r(vT,{id:i,params:a,showLast4ssn:o});const s=n.documents[n.viewerIdToId[i]],{language:c}=s||{};if(c&&Be.i18next.changeLanguage(c),t("SET_CURRENT_DOCUMENT",{data:s}),Ce(n,"viewer.publicDocumentId",null)!==i){const l=Ce(s,"clients",[]).find(u=>u.publicDocumentId===i);l&&t($W,l)}}catch(s){throw s}},async[yT]({dispatch:n},{id:t,params:r={}}){try{return await n(vT,{id:t,params:r})}catch(i){return this.handleError(i,{object:"publicDocument",fallbackCode:"publicDocument.getOne",action:`${DXe}/${yT}`,actionPayload:arguments[1]})}},async[vT]({state:n,commit:t,dispatch:r},{id:i,params:a={},showLast4ssn:o=!0}){try{t(ad,!0);const{data:s}=await Hp.get(i,a);o||(s.clients&&Array.isArray(s.clients)&&s.clients.filter(l=>l.socialNo).forEach(l=>{l.socialNo=`${l.socialNo.slice(0,-4)}****`}),s.senderClient&&s.senderClient.socialNo&&(s.senderClient.socialNo=`${s.senderClient.socialNo.slice(0,-4)}****`)),t(_T,{data:[{...s,viewerId:i}]});const c=Ce(n.documents[s.id],"company.publicId");return c&&await r(TW,{id:c}),s.id}catch(s){throw s}finally{t(ad,!1)}},async[CW]({commit:n,dispatch:t},{id:r,body:i,checksum:a}){try{n(od,!0);const o={docChecksum:a},{data:s}=await Hp.answer(r,i,{},o);return await t(bT,{id:r,params:{preview:!0}}),s}catch(o){throw o}finally{n(od,!1)}},async[PXe]({commit:n},{key:t,value:r}){n(EW,{key:t,value:r})},async[MXe]({dispatch:n,getters:t},{body:r}){if(!t.currentDocumentId)throw Error("No current document id have been set yet");if(!t.currentDocument)throw Error("No current document have been set yet");const{currentDocumentId:i,changes:a,currentDocument:o}=t;Object.keys(a).length&&await n(SW,{body:a});const{checksum:s}=(o==null?void 0:o._doc)||{};return n(CW,{id:i,body:r,checksum:s})},async[kW]({commit:n},{id:t,body:r,checksum:i}){try{n(od,!0);const a={docChecksum:i};await Hp.put(t,r,a)}catch(a){throw a}finally{n(od,!1)}},async[SW]({dispatch:n,getters:t},{body:r,includeChanges:i=!1}){if(!t.currentDocumentId)throw Error("No current document have been set yet");const{currentDocument:a,changes:o}=t,{checksum:s}=(a==null?void 0:a._doc)||{};i&&Object.assign(r,o),await n(kW,{id:t.currentDocumentId,body:r,checksum:s}),await n(bT,{id:t.currentDocumentId,params:{preview:!0}})},async[TW]({commit:n,getters:t},{id:r}){try{if(t.companyById(r))return;const{data:i}=await dy.get(r),a={...i,publicId:r};n(OW,{data:a})}catch(i){throw i}},async[RXe]({commit:n},t={}){try{n(ad,!0);const{data:r}=await tC.getDocuments(t);let{items:i=[]}=r||{};i=i.map(a=>({...a,...a._id&&{id:a._id}})),n(_T,{data:[...i]})}catch(r){this.handleError(r,{showMessage:!1}),this.$router.replace({name:"clientLogin"})}finally{n(ad,!1)}},async[LXe]({commit:n}){try{n(ad,!0);const{data:t=[]}=await tC.getInvoices();n(AW,{data:t})}catch(t){this.handleError(t,{showMessage:!1}),this.$router.replace({name:"clientLogin"})}finally{n(ad,!1)}},async[NXe]({commit:n},{email:t,language:r}){try{if(!t)throw Error("Missing param email!");n(od,!0),await tC.requestMagicLink({email:t,language:r,brand:Xe.brand})}catch(i){this.handleError(i,{showMessage:!1})}finally{n(od,!1)}}},mutations:{[EW](n,{key:t,value:r}){Ur(n,`currentDocument.${t}`,r),n.changes[t]=r},[FXe](n,{data:t={}}){if(typeof t!="object")throw Error("Data must be a document or an array of documents!");n.currentDocument=t,n.changes={}},[OW](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a company or an array of companies!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r,{keyId:"publicId"});ba(n.companies,a),n.companyIds=qi([...i,...n.companyIds])},[_T](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be a document or an array of documents!");const r=Array.isArray(t)?t:[t],i=[],a={};r.forEach(s=>{a[s.id]=s,n.documentIds.includes(s.id)||i.push(s.id)}),ba(n.documents,a),n.documentIds=qi([...i,...n.documentIds]);const o=n.documentIds.reduce((s,c)=>!a[c]||!a[c].viewerId?s:{...s,[a[c].viewerId]:c},{});n.viewerIdToId={...n.viewerIdToId,...o}},[AW](n,{data:t=[]}){if(typeof t!="object")throw Error("Data must be an invoice or an array of invoices!");const r=Array.isArray(t)?t:[t],{ids:i,values:a}=us(r);ba(n.invoices,a),n.invoiceIds=qi([...i,...n.invoiceIds])},[$W](n,t){n.viewer=t},[ad](n,t){n.isFetching=t},[od](n,t){n.isPosting=t}}},{SET_CURRENT_PUBLIC_DOCUMENT_VALUE:MW,DO_SET_CURRENT_DOCUMENT:jXe}=He;let zXe=class extends fW{constructor(r){super(r);$n(this,"ui",{document:{open:r=>{mn.addView({key:this._document.id,mode:"modal",viewOpts:{document:this._document,key:this._document.id,setFormValue:({key:i,value:a})=>hn.dispatch(MW,{key:i,value:a}),...r}})},close:()=>{mn.removeView({key:this._document.id,mode:"modal"})},mount:({targetElement:r})=>{mn.addView({key:this._document.id,mode:"mount",view:"documentClient",viewOpts:{targetElement:r,props:{document:this._document,setFormValue:({key:i,value:a})=>hn.dispatch(MW,{key:i,value:a})}}})},unmount:()=>{mn.removeView({key:this._document.id,mode:"mount"})}},details:{open:r=>{const i={key:this._document.id,mode:"drawer",view:"docDetails"};mn.addView({...i,viewOpts:{document:this._document,closeFunc:()=>{mn.removeView(i)},...r}})},close:()=>{mn.removeView({key:this._document.id,mode:"drawer"})}},print:{open:r=>{mn.addView({key:this._document.id,mode:"modal",view:"print",viewOpts:{...r,document:this._document}})}},answer:{open:r=>{if(!this._document.answerActions.canAnswer)throw new Error("[DocAnswer] User is not allowed to answer this document. Check if already answered.");const i={key:this._document.id,mode:"modal",view:"docAnswer"};mn.addView({...i,viewOpts:{document:this._document,closeFunc:()=>{mn.removeView(i)},...r}})}},on:mn.on});r&&(this._document=r,this._unregisterListeners={}),hn.state.publicDocuments||hn.registerModule("publicDocuments",BXe)}get storeMap(){return{get:jXe,byId:"publicDocuments/documentByViewerId"}}getProperty(r){if(this._document)return mT(this._document._doc,r)}setProperty(r,i){if(this._document)return cXe(this._document._doc,r,i)}on(r,i){if(!["answer"].includes(r))throw new Error(`Event ${r} not supported`);const a=super.on(`document:${r}`,(o,...s)=>{this.getProperty("id")===o.id&&i(o,...s)});return this._addUnregisterListener(r,a),a}_addUnregisterListener(r,i){this._unregisterListeners[r]=this._unregisterListeners[r]||[],this._unregisterListeners[r].push(i)}removeAllListeners(){Object.keys(this._unregisterListeners||{}).forEach(r=>{this._unregisterListeners[r].forEach(i=>i()),delete this._unregisterListeners[r]})}};class VXe{constructor(){$n(this,"ui",{setup:{open:t=>{const r=t==null?void 0:t.partnerName;if(!r)throw new Error("Missing or empty param partnerName");const i={key:`setup-${r}`,mode:"modal",view:"setup"};mn.addView({...i,viewOpts:{partnerName:r,closeFunc:()=>mn.removeView(i)},...t})},close:t=>{const r=t==null?void 0:t.partnerName;if(!r)throw new Error("Missing or empty param partnerName");mn.removeView({key:`setup-${r}`,mode:"modal"})}},on:mn.on})}on(t,r){return Pr.on(`account:${t}`,r)}}const UXe={initialized:!1,app:null,_rootId:null,init(n={}){var a,o,s,c,l;if(this.initialized)return;this._rootId=`${n.LIB_NAME}-shadow`;const t=document.createElement("div"),r=document.createElement("div"),i=document.createElement("div");t.setAttribute("id",this._rootId),t.style.zIndex=((o=(a=n.ui)==null?void 0:a.vars)==null?void 0:o["--app-z-index"])||1001,t.style.position="fixed",t.style.top=0,t.style.left=0,r.setAttribute("id",`${this._rootId}-child`),r.classList.add(`${this._rootId}-child`),(s=n.ui)!=null&&s.vars&&(JM(n.ui.vars,r),mn.styleVars=n.ui.vars),n.i18n&&XM(n.i18n),(c=n.ui)!=null&&c.language&&Be.i18next.changeLanguage(n.ui.language,!0),(l=n.ui)!=null&&l.locale&&Be.l10n.changeLocale(n.ui.locale,!0),t.appendChild(r),NPe(r);{const u=document.getElementById("CLING_WIDGET_STYLE");u.disabled=!0;const d=u.cloneNode(!0);d.disabled=!1,r.appendChild(d),r.appendChild(i),t.attachShadow({mode:"open"}).appendChild(r),document.body.appendChild(t)}wt.setPrefix("cling-"),n.rootNode=r,this.app=yYe(i,n),this.initialized=!0},get store(){var n;return(n=this.app)==null?void 0:n.$store},get router(){var n;return(n=this.app)==null?void 0:n.$router},async auth({method:n="standard",email:t,password:r,authToken:i}){var s,c;let o;return n==="standard"?o=await((s=this.store)==null?void 0:s.dispatch("application/LOGIN_USER",{email:t,password:r,doRedirect:!1})):n==="authToken"&&(o=await((c=this.store)==null?void 0:c.dispatch("application/LOGIN_AUTH_TOKEN",{authToken:i,doRedirect:!1}))),o},on(n,t){const r=["user:unauthorized","ui:open","ui:close"];if(!r.includes(n))throw new Error(`Event ${n} not supported, valid events: ${r.join(",")}`);if(typeof t!="function")throw new Error("Callback needs to be a function");Pr.on(n,t)},destroy(){var n,t;this.app.$destroy(),(t=(n=document.getElementById(this._rootId))==null?void 0:n.remove)==null||t.call(n)},ui:mn,...{account:VXe,document:OXe,documentClient:zXe}},HXe=Object.freeze(Object.defineProperty({__proto__:null,default:UXe},Symbol.toStringTag,{value:"Module"}));var WXe=sW,GXe=pW,qXe=vb;function YXe(n,t,r){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=WXe(n,s);r(c,s)&&GXe(o,qXe(s,n),c)}return o}var KXe=YXe;function ZXe(n,t){return n!=null&&t in Object(n)}var JXe=ZXe,XXe=sT,QXe=lT,eQe="[object Arguments]";function tQe(n){return QXe(n)&&XXe(n)==eQe}var nQe=tQe,PW=nQe,rQe=lT,IW=Object.prototype,iQe=IW.hasOwnProperty,aQe=IW.propertyIsEnumerable,oQe=PW(function(){return arguments}())?PW:function(n){return rQe(n)&&iQe.call(n,"callee")&&!aQe.call(n,"callee")},RW=oQe,sQe=9007199254740991;function lQe(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=sQe}var cQe=lQe,uQe=vb,dQe=RW,pQe=Bg,fQe=uW,hQe=cQe,mQe=hT;function gQe(n,t,r){t=uQe(t,n);for(var i=-1,a=t.length,o=!1;++i<a;){var s=mQe(t[i]);if(!(o=n!=null&&r(n,s)))break;n=n[s]}return o||++i!=a?o:(a=n==null?0:n.length,!!a&&hQe(a)&&fQe(s,a)&&(pQe(n)||dQe(n)))}var vQe=gQe,yQe=JXe,bQe=vQe;function _Qe(n,t){return n!=null&&bQe(n,t,yQe)}var wQe=_Qe,xQe=KXe,CQe=wQe;function kQe(n,t){return xQe(n,t,function(r,i){return CQe(n,i)})}var SQe=kQe;function TQe(n,t){for(var r=-1,i=t.length,a=n.length;++r<i;)n[a+r]=t[r];return n}var EQe=TQe,LW=fb,$Qe=RW,AQe=Bg,NW=LW?LW.isConcatSpreadable:void 0;function OQe(n){return AQe(n)||$Qe(n)||!!(NW&&n&&n[NW])}var DQe=OQe,MQe=EQe,PQe=DQe;function FW(n,t,r,i,a){var o=-1,s=n.length;for(r||(r=PQe),a||(a=[]);++o<s;){var c=n[o];t>0&&r(c)?t>1?FW(c,t-1,r,i,a):MQe(a,c):i||(a[a.length]=c)}return a}var IQe=FW,RQe=IQe;function LQe(n){var t=n==null?0:n.length;return t?RQe(n,1):[]}var NQe=LQe;function FQe(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}var BQe=FQe,jQe=BQe,BW=Math.max;function zQe(n,t,r){return t=BW(t===void 0?n.length-1:t,0),function(){for(var i=arguments,a=-1,o=BW(i.length-t,0),s=Array(o);++a<o;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(s),jQe(n,this,c)}}var VQe=zQe;function UQe(n){return function(){return n}}var HQe=UQe;function WQe(n){return n}var GQe=WQe,qQe=HQe,jW=lW,YQe=GQe,KQe=jW?function(n,t){return jW(n,"toString",{configurable:!0,enumerable:!1,value:qQe(t),writable:!0})}:YQe,ZQe=KQe,JQe=800,XQe=16,QQe=Date.now;function eet(n){var t=0,r=0;return function(){var i=QQe(),a=XQe-(i-r);if(r=i,a>0){if(++t>=JQe)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}var tet=eet,net=ZQe,ret=tet,iet=ret(net),aet=iet,oet=NQe,set=VQe,cet=aet;function uet(n){return cet(set(n,void 0,oet),n+"")}var det=uet,pet=SQe,fet=det,het=fet(function(n,t){return n==null?{}:pet(n,t)}),met=het;const get=tn(met);/*!
|
|
620
620
|
* vuex v3.6.2
|
|
621
621
|
* (c) 2021 Evan You
|
|
622
622
|
* @license MIT
|