@mythpe/quasar-ui-qui 0.5.33 → 0.5.35

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.
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),i=(e,o)=>{let n={};for(var r in e)t(n,r,{get:e[r],enumerable:!0});return o||t(n,Symbol.toStringTag,{value:"Module"}),n},l=(s,i,l)=>(l=null!=s?e(r(s)):{},((e,r,s,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var l,p=n(r),u=0,c=p.length;u<c;u++)l=p[u],a.call(e,l)||l===s||t(e,l,{get:(e=>r[e]).bind(null,l),enumerable:!(i=o(r,l))||i.enumerable});return e})(!i&&s&&s.__esModule?l:t(l,"default",{value:s,enumerable:!0}),s));let p=require("vue"),u=require("quasar"),c=require("vue-i18n");var d=Symbol.for("_m__m-container"),m="MyTh",h=(0,p.reactive)({version:"0.5.32",appName:m,metaTags:{meta:{ogTitle:{property:"og:title",content:process.env.PRODUCT_NAME},keywords:{name:"keywords",content:process.env.PRODUCT_KEYWORDS},author:{name:"author",content:process.env.PRODUCT_AUTHOR},description:{name:"description",content:process.env.PRODUCT_DESCRIPTION},robots:{name:"robots",content:"index, follow"}},link:{icon:{type:"image/png",rel:"icon",href:process.env.PRODUCT_FAVICON||"/favicon.png"}}},theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),g=Symbol.for("_m_"),f={class:"q-dialog-plugin m-dialog__wrapper"},y=(0,p.defineComponent)({name:"MDialog",__name:"MDialog",props:{slide:{type:Boolean,default:!1},from:{default:"left"}},emits:[...u.useDialogPluginComponent.emits],setup(e){const t={left:"right",right:"left",up:"down",down:"up"},o=(0,p.computed)(()=>`slide-${e.from}`),n=(0,p.computed)(()=>`slide-${t[e.from]}`),{componentProps:r}=K(),{dialogRef:a,onDialogHide:s}=(0,u.useDialogPluginComponent)();return(t,i)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QDialog),(0,p.mergeProps)({ref_key:"dialogRef",ref:a,"transition-hide":t.$q.screen.lt.md||e.slide?o.value:"fade","transition-show":t.$q.screen.lt.md||e.slide?n.value:"fade",class:"m-dialog"},(0,p.unref)(r).dialog,{onHide:(0,p.unref)(s)}),{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",f,[(0,p.renderSlot)(t.$slots,"default")])]),_:3},16,["transition-hide","transition-show","onHide"]))}}),v={class:"q-dialog-plugin m-dialog__wrapper"},b={class:"row items-center"},C=["src"],S=(0,p.defineComponent)({name:"MDialogFrame",__name:"MDialogFrame",props:{url:{},height:{},noDownload:{type:Boolean},iframeProps:{},image:{type:Boolean},imageProps:{}},emits:[...u.useDialogPluginComponent.emits],setup(e){const t=e,{__:o,componentProps:n}=K(),{dialogRef:r,onDialogHide:a,onDialogOK:s}=(0,u.useDialogPluginComponent)(),i=(0,u.useQuasar)(),l=(0,p.computed)({get:()=>i.loading.isActive,set:e=>e?i.loading.show():i.loading.hide()}),c=(0,p.computed)(()=>t.url||null),d=()=>{l.value&&(l.value=!1)};return(t,m)=>{const h=(0,p.resolveComponent)("q-btn");return(0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QDialog),(0,p.mergeProps)({ref_key:"dialogRef",ref:r,class:"m-dialog",maximized:"","no-shake":"","transition-hide":"fade","transition-show":"fade"},(0,p.unref)(n).dialog,{onHide:(0,p.unref)(a)}),{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",v,[(0,p.createVNode)((0,p.unref)(u.QCard),{flat:"",square:""},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(u.QCardSection),{style:{"max-height":"80px"}},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",b,[e.noDownload?(0,p.createCommentVNode)("",!0):((0,p.openBlock)(),(0,p.createBlock)(h,{key:0,label:(0,p.unref)(o)("labels.download"),icon:"ion-ios-open",onClick:m[0]||(m[0]=e=>{c.value&&H(c.value)})},null,8,["label"])),(0,p.createVNode)((0,p.unref)(u.QSpace)),(0,p.createVNode)(h,{flat:"",icon:"close",padding:"3px",onClick:m[1]||(m[1]=e=>{s()})})])]),_:1}),(0,p.createVNode)((0,p.unref)(u.QSeparator)),(0,p.createElementVNode)("div",{style:(0,p.normalizeStyle)({height:(0,p.unref)(i).screen.height-70+"px"}),class:"content-center m-dialog__content"},[(0,p.renderSlot)(t.$slots,"default",{},()=>[c.value?((0,p.openBlock)(),(0,p.createElementBlock)(p.Fragment,{key:0},[e.image?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QImg),(0,p.mergeProps)({key:0,height:e.height??"80%",src:c.value,class:"m-dialog__img",fit:"contain","no-spinner":"",style:{"max-height":"100%"}},e.imageProps,{onError:m[2]||(m[2]=e=>d()),onLoad:m[3]||(m[3]=e=>d())}),{loading:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(u.QSkeleton),{height:"100%",width:"100%"})]),_:1},16,["height","src"])):((0,p.openBlock)(),(0,p.createElementBlock)("iframe",(0,p.mergeProps)({key:1,src:c.value,class:"m-dialog__iframe",style:`width: 100%; border: 0; height: ${e.height??"99%"}`},e.iframeProps,{onLoad:m[4]||(m[4]=e=>l.value=!1)}),null,16,C))],64)):(0,p.createCommentVNode)("",!0)])],4)]),_:3})])]),_:3},16,["onHide"])}}}),w=/([\p{Ll}\d])(\p{Lu})/gu,x=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,$=/(\d)\p{Ll}|(\p{L})\d/u,k=/[^\p{L}\d]+/giu,B="$1\0$2",_="";function A(e){let t=e.trim();t=t.replace(w,B).replace(x,B),t=t.replace(k,"\0");let o=0,n=t.length;for(;"\0"===t.charAt(o);)o++;if(o===n)return[];for(;"\0"===t.charAt(n-1);)n--;return t.slice(o,n).split(/\0/g)}function T(e){const t=A(e);for(let o=0;o<t.length;o++){const e=t[o],n=$.exec(e);if(n){const r=n.index+(n[1]??n[2]).length;t.splice(o,1,e.slice(0,r),e.slice(r))}}return t}function P(e,t){const[o,n,r]=Q(e,t);return o+n.map(D(t?.locale)).join(t?.delimiter??" ")+r}function M(e,t){const[o,n,r]=Q(e,t),a=D(t?.locale),s=L(t?.locale),i=t?.mergeAmbiguousCharacters?R(a,s):E(a,s);return o+n.map((e,t)=>0===t?a(e):i(e,t)).join(t?.delimiter??"")+r}function F(e,t){const[o,n,r]=Q(e,t),a=D(t?.locale),s=L(t?.locale),i=t?.mergeAmbiguousCharacters?R(a,s):E(a,s);return o+n.map(i).join(t?.delimiter??"")+r}function O(e,t){return P(e,{delimiter:"-",...t})}function N(e,t){return P(e,{delimiter:"_",...t})}function D(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function L(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function R(e,t){return o=>`${t(o[0])}${e(o.slice(1))}`}function E(e,t){return(o,n)=>{const r=o[0];return(n>0&&r>="0"&&r<="9"?"_"+r:t(r))+e(o.slice(1))}}function Q(e,t={}){const o=t.split??(t.separateNumbers?T:A),n=t.prefixCharacters??_,r=t.suffixCharacters??_;let a=0,s=e.length;for(;a<e.length;){const t=e.charAt(a);if(!n.includes(t))break;a++}for(;s>a;){const t=s-1,o=e.charAt(t);if(!r.includes(o))break;s=t}return[e.slice(0,a),o(e.slice(a,s)),e.slice(s)]}var z=(0,p.defineComponent)({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1}},setup(e){const t={QSpinner:u.QSpinner,QSpinnerAudio:u.QSpinnerAudio,QSpinnerBall:u.QSpinnerBall,QSpinnerBars:u.QSpinnerBars,QSpinnerBox:u.QSpinnerBox,QSpinnerClock:u.QSpinnerClock,QSpinnerComment:u.QSpinnerComment,QSpinnerCube:u.QSpinnerCube,QSpinnerDots:u.QSpinnerDots,QSpinnerFacebook:u.QSpinnerFacebook,QSpinnerGears:u.QSpinnerGears,QSpinnerGrid:u.QSpinnerGrid,QSpinnerHearts:u.QSpinnerHearts,QSpinnerHourglass:u.QSpinnerHourglass,QSpinnerInfinity:u.QSpinnerInfinity,QSpinnerIos:u.QSpinnerIos,QSpinnerOrbit:u.QSpinnerOrbit,QSpinnerOval:u.QSpinnerOval,QSpinnerPie:u.QSpinnerPie,QSpinnerPuff:u.QSpinnerPuff,QSpinnerRadio:u.QSpinnerRadio,QSpinnerRings:u.QSpinnerRings,QSpinnerTail:u.QSpinnerTail},{__:o,loadingOptions:n,componentProps:r,btnStyle:a}=K(),s=(0,p.computed)(()=>void 0!==e.spinner?e.spinner:n.value?.type),i=(0,p.computed)(()=>{if(s.value)return"spinner"===s.value?t.QSpinner:t[F(`q-spinner-${s.value}`)]}),l=(0,p.computed)(()=>n.value?.size),c=(0,p.computed)(()=>n.value?.color),d=(0,p.computed)(()=>!0===e.nativeLabel?null===e.label||void 0===e.label?void 0:String(e.label):void 0!==e.label&&null!==e.label?o(e.label):void 0),m=(0,p.computed)(()=>({...e.noStyle?{}:a.value,...r.value.btn||{},ariaLabel:d.value}));return(t,o)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QBtn),(0,p.mergeProps)({label:d.value,loading:e.loading,class:"m-btn"},m.value),(0,p.createSlots)({_:2},[t.$slots.loading?{name:"loading",fn:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"loading")]),key:"0"}:s.value&&i.value?{name:"loading",fn:(0,p.withCtx)(()=>[((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(i.value),{color:c.value,size:l.value},null,8,["color","size"]))]),key:"1"}:void 0,t.$slots.default?{name:"default",fn:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),key:"2"}:void 0]),1040,["label","loading"]))}}),j=(e,t=10)=>{const{lighten:o}=u.colors;return o(e,-1*t)},I=(e,t=10)=>{const{lighten:o}=u.colors;return o(e,t)},q=(e,t,o)=>{let n;if((t instanceof File||t instanceof Blob)&&o){const n=t instanceof File?t.name:o;e.append(o,t,n)}else for(const r in t)if(n=t[r],null!=n&&"object"==typeof n){const t=o?o+"["+r+"]":r;Array.isArray(n)&&n.length<1?e.append(`${r}`,""):q(e,n,t)}else!0===n&&(n=1),!1===n&&(n=0),null==n&&(n=""),o?e.append(o+"["+r+"]",n):e.append(r,n);return e},V=e=>(t,o)=>(o??"")+(o&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),H=(e,t,o)=>(0,u.openURL)(e,t,o),U=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},W=async(e,t)=>{await(0,p.nextTick)();const{getScrollTarget:o,setVerticalScrollPosition:n,getVerticalScrollPosition:r}=u.scroll,a="string"==typeof e?document.querySelector(e):e;if(!a)return;await(0,p.nextTick)();const{target:s}=t||{},i=o(a,("string"==typeof s?document.querySelector(s):s)||window.document.documentElement),l=r(i),c=t?.duration||1e3;let d,m=a;try{do{if(d=m.getBoundingClientRect().top,0===d&&!m.parentElement){d=m.scrollTop;break}if(0!==d&&m.parentElement)break;m=m.parentElement}while(m)}catch(Ae){console.log(Ae),d="offsetTop"in a&&a?.offsetTop||0}const h=d+l-(100+(t?.offset||0));U(a)||n(i,h,c)},G=(e="",t="",o)=>{let n="number"!=typeof e?parseFloat(e):e;isNaN(n)&&(n=0);const r={minimumFractionDigits:2,maximumFractionDigits:2,...o||{}};return`${n.toLocaleString("en-US",r)} ${t}`.trim()},Z=e=>[...new Set(e)];function K(){const{t:e,te:t}=(0,c.useI18n)({useScope:"global"}),o=(0,p.inject)(g,h),n=(0,p.readonly)(o),r=(0,p.ref)("MyTh"),a=(0,p.computed)(()=>o.version),s=(0,p.computed)(()=>o.loadingOptions),i=(0,p.reactive)(o.theme),l=(0,p.computed)(()=>o.theme.btn),u=(0,p.computed)(()=>o.theme.input),d=(0,p.computed)(()=>o.component),m=(o,...n)=>{const r=(o=o??"").startsWith(":")&&o.endsWith(":"),a=o.startsWith("{'")&&o.endsWith("'}");if((r||a)&&o.length>2)return r?o.slice(1,-1):o.slice(2,-2);const s=`attributes.${o}`;return t(s)?e(s,...n):t(o)?e(o,...n):e(o)};return{config:n,name:r,version:a,loadingOptions:s,theme:i,btnStyle:l,inputStyle:u,componentProps:d,__:m,pageTitle:(e,o)=>{o??=2;const n=re(e),r=F(e),a=N(e),s=M(e),i=O(e),l=ne(e),p=F(l),u=N(l),c=M(l),d=O(l),h=Z([e,n,r,a,s,i,l,p,u,c,d]),g=Z(["routes","attributes"]);for(const f of g)for(const e of h)if(t(`${f}.${e}`))return m(`${f}.${e}`,o);return m(e)}}}var Y=()=>({container:(0,p.inject)(d,{})}),J=(0,p.defineComponent)({name:"MBlock",__name:"MBlock",props:{tag:{default:"div"},size:{default:()=>{}},rounded:{type:Boolean,default:()=>{}},shadow:{default:()=>{}}},setup(e){const{container:t}=Y(),{theme:o}=K(),n=(0,p.computed)(()=>void 0!==e.size?e.size:t.size??o.gutterSize??"md"),r=(0,p.computed)(()=>void 0!==e.rounded?e.rounded:t.rounded??o.rounded??!1),a=(0,p.computed)(()=>void 0!==e.shadow?e.shadow:t.shadow??o.shadow??void 0);return(t,o)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag),{class:(0,p.normalizeClass)([{[`q-pa-${n.value}`]:n.value&&"none"!==n.value,"rounded-borders":r.value,[`shadow-${a.value||""}`]:a.value&&"none"!==a.value},"m-block"])},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),_:3},8,["class"]))}}),X="myth-",ee={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},te=s((e,t)=>{var o,n;o=e,n=function(){var e=[],t=[],o={},n={},r={};function a(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function s(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function i(e,t){return e.replace(t[0],function(o,n){var r,a,i=(r=t[1],a=arguments,r.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return s(""===o?e[n-1]:o,i)})}function l(e,t,n){if(!e.length||o.hasOwnProperty(e))return t;for(var r=n.length;r--;){var a=n[r];if(a[0].test(t))return i(t,a)}return t}function p(e,t,o){return function(n){var r=n.toLowerCase();return t.hasOwnProperty(r)?s(n,r):e.hasOwnProperty(r)?s(n,e[r]):l(r,n,o)}}function u(e,t,o,n){return function(n){var r=n.toLowerCase();return!!t.hasOwnProperty(r)||!e.hasOwnProperty(r)&&l(r,r,o)===r}}function c(e,t,o){return(o?t+" ":"")+(1===t?c.singular(e):c.plural(e))}return c.plural=p(r,n,e),c.isPlural=u(r,n,e),c.singular=p(n,r,t),c.isSingular=u(n,r,t),c.addPluralRule=function(t,o){e.push([a(t),o])},c.addSingularRule=function(e,o){t.push([a(e),o])},c.addUncountableRule=function(e){"string"!=typeof e?(c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")):o[e.toLowerCase()]=!0},c.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),r[e]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c},"function"==typeof require&&"object"==typeof e&&"object"==typeof t?t.exports=n():"function"==typeof define&&define.amd?define(function(){return n()}):o.pluralize=n()}),oe=l(te(),1),{plural:ne,singular:re}=oe.default,ae=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),se=e=>null==e||""===e?"":ae(e).replace(/,/g,""),{testPattern:ie}=u.patterns,le={float:e=>null==e||u.is.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>ie.time(e),fulltime:e=>ie.fulltime(e),timeOrFulltime:e=>ie.timeOrFulltime(e),hexColor:e=>ie.hexColor(e),hexaColor:e=>ie.hexaColor(e),hexOrHexaColor:e=>ie.hexOrHexaColor(e),rgbColor:e=>ie.rgbColor(e),rgbaColor:e=>ie.rgbaColor(e),rgbOrRgbaColor:e=>ie.rgbOrRgbaColor(e),hexOrRgbColor:e=>ie.hexOrRgbColor(e),hexaOrRgbaColor:e=>ie.hexaOrRgbaColor(e),color:e=>!e||ie.anyColor(e),requiredColor:e=>ie.anyColor(e)},{getPaletteColor:pe}=u.colors,ue=(0,p.defineComponent)({name:"MCol",__name:"MCol",props:{name:{},tag:{},auto:{type:Boolean},shrink:{type:Boolean},grow:{type:Boolean},col:{type:[Boolean,String,Number]},xs:{type:[Boolean,String,Number]},sm:{type:[Boolean,String,Number]},md:{type:[Boolean,String,Number]},lg:{type:[Boolean,String,Number]},xl:{type:[Boolean,String,Number]},xxl:{type:[Boolean,String,Number]}},setup(e){const t=e,o=(0,p.computed)(()=>{const e=["m-col"];t.auto&&e.push("col-auto"),t.shrink&&e.push("col-shrink"),t.grow&&e.push("col-grow"),"grow"===t.col?e.push("col-grow"):"shrink"===t.col?e.push("col-shrink"):"string"!=typeof t.col&&"number"!=typeof t.col||t.col?.toString()?.trim()?.length>0&&!e.includes(`col-${t.col}`)&&e.push(`col-${t.col}`);for(const o of["xs","sm","md","lg","xl","xxl"])t[o]&&"boolean"!=typeof t[o]&&(e.includes(`col-${o}-${t[o]}`)||e.push(`col-${o}-${t[o]}`));return 1===e.length&&!1!==t.col&&void 0!==t.col&&e.push("col"),Z(e)});return(t,n)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag??"div"),{class:(0,p.normalizeClass)(o.value),"data-input-name":e.name??void 0},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),_:3},8,["class","data-input-name"]))}}),ce=(0,p.defineComponent)({name:"MGrid",__name:"MGrid",props:{tag:{default:"div"},gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(e){const{container:t}=Y(),{theme:o}=K(),n=(0,p.computed)(()=>void 0!==e.size?e.size:t?.size??o.gutterSize??"md"),r=(0,p.computed)(()=>void 0!==e.type?e.type:t?.type??o.gutterType??"gutter"),a=(0,p.computed)(()=>`q${"col"===e.type?"-col":""}-gutter`);return(t,o)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag),{class:(0,p.normalizeClass)({"m-row row":"row"===e.gridType,"m-column column":"column"===e.gridType,[`${a.value}-${n.value}`]:!!r.value&&"none"!==r.value})},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),_:3},8,["class"]))}}),de=(0,p.defineComponent)({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,o)=>((0,p.openBlock)(),(0,p.createBlock)(ce,{size:e.size,type:e.type,"grid-type":"column"},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),me=(0,p.defineComponent)({name:"MContainer",__name:"MContainer",props:{tag:{default:"div"},size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}},rounded:{type:Boolean,default:()=>{}},shadow:{default:()=>{}}},setup(e){const{theme:t}=K(),o=(0,p.computed)(()=>"md"!==e.size?e.size:t.gutterSize??"md"),n=(0,p.computed)(()=>"gutter"!==e.type?e.type:t.gutterType??"gutter"),r=(0,p.computed)(()=>e.rounded??t.rounded??!1),a=(0,p.computed)(()=>e.dense??t.dense??!1),s=(0,p.computed)(()=>e.fluid??t.fluid??!1);return(0,p.provide)(d,(0,p.reactive)({gutterSize:o,gutterType:n,rounded:r,dense:a,fluid:s,shadow:(0,p.computed)(()=>e.shadow??t.shadow??void 0)})),(t,n)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag),{class:(0,p.normalizeClass)([{"m-container__fluid":!!s.value,"m-container__dense":!!a.value,"q-pa-none":"none"===o.value,[`q-pa-${o.value||""}`]:o.value&&"none"!==o.value},"m-container"])},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),_:3},8,["class"]))}}),he={class:"col-auto m-help-row__icon-wrapper"},ge={key:0,class:"col m-help-row__text-wrapper"},fe=["textContent"],ye=(0,p.defineComponent)({name:"MHelpRow",__name:"MHelpRow",props:{tag:{default:"div"},text:{default:""},icon:{default:()=>{}},tooltip:{type:Boolean,default:!1}},setup(e){const{__:t}=K();return(o,n)=>e.text||e.tooltip?((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag),{key:0,class:"row m-help-row"},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",he,[(0,p.createVNode)((0,p.unref)(u.QIcon),{class:(0,p.normalizeClass)([{"cursor-pointer":e.tooltip},"m-help-row__icon"]),left:!!e.text&&!e.tooltip,name:e.icon??"ion-ios-information-circle-outline",size:"19px"},{default:(0,p.withCtx)(()=>[e.tooltip?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(Ce),{key:0,anchor:"center end",class:"bg-transparent text-black text-justify m-help-row__tooltip",self:"center start","transition-hide":"jump-right","transition-show":"jump-left"},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(u.QCard),(0,p.normalizeProps)((0,p.guardReactiveProps)({style:{maxWidth:"280px"}})),{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(u.QCardSection),(0,p.normalizeProps)((0,p.guardReactiveProps)({style:{fontSize:"13px"}})),{default:(0,p.withCtx)(()=>[(0,p.createTextVNode)((0,p.toDisplayString)((0,p.unref)(t)(e.text)),1)]),_:1},16)]),_:1},16)]),_:1})):(0,p.createCommentVNode)("",!0)]),_:1},8,["class","left","name"])]),!e.tooltip&&e.text?((0,p.openBlock)(),(0,p.createElementBlock)("div",ge,[(0,p.createElementVNode)("div",{textContent:(0,p.toDisplayString)((0,p.unref)(t)(e.text))},null,8,fe)])):(0,p.createCommentVNode)("",!0)]),_:1})):(0,p.createCommentVNode)("",!0)}}),ve=(0,p.defineComponent)({name:"MInnerLoading",__name:"MInnerLoading",props:{showing:{type:Boolean,default:!1},label:{default:()=>{}},labelClass:{default:()=>{}},labelStyle:{default:"font-size: 1.1em"},color:{default:"primary"}},setup(e){const{__:t}=K();return(o,n)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QInnerLoading),{color:e.color,label:(0,p.unref)(t)(e.label??"labels.plz_wait"),"label-class":e.labelClass,"label-style":e.labelStyle,showing:e.showing,class:"m-inner-loading"},(0,p.createSlots)({_:2},[void 0!==o.$slots.default?{name:"default",fn:(0,p.withCtx)(()=>[(0,p.renderSlot)(o.$slots,"default")]),key:"0"}:void 0]),1032,["color","label","label-class","label-style","showing"]))}}),be=(0,p.defineComponent)({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,o)=>((0,p.openBlock)(),(0,p.createBlock)(ce,{size:e.size,type:e.type,"grid-type":"row"},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),Ce=(0,p.defineComponent)({name:"MTooltip",__name:"MTooltip",setup:e=>(e,t)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QTooltip),{class:"m-tooltip","transition-hide":"scale","transition-show":"scale"},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"default")]),_:3}))});function Se(e){const t=(0,p.toValue)(e),o=e=>{if("in"===e&&t.enterActiveClass)return`animated ${t.enterActiveClass}`;if("out"===e&&t.leaveActiveClass)return`animated ${t.leaveActiveClass}`;if("appear"===e&&t.appearActiveClass)return`animated ${t.appearActiveClass}`;const o=t[e];if(!o)return;const n=["animated",o],r=[`${e}Slower`,`${e}Slow`,`${e}Fast`,`${e}Faster`];for(const i of r)t[i]&&n.push(i.replace(e,"").toLowerCase());const a=t[`${e}Delay`]||!1;a&&(!0===a&&n.push("delay-1s"),"number"!=typeof a&&"string"!=typeof a||n.push(`delay-${a}s`));const s=t[`${e}Repeat`]||!1;return s&&(!0===s&&n.push("repeat"),"number"!=typeof s&&"string"!=typeof s||n.push(`repeat-${s}`)),n.join(" ")};return{getClasses:o,computedProps:(0,p.computed)(()=>{const e={enterActiveClass:o("in"),leaveActiveClass:o("out"),appearActiveClass:o("appear"),appear:!t.noAppear,css:!t.noCss};for(const t of["in","inSlower","inSlow","inFast","inFaster","inDelay","inRepeat","out","outSlower","outSlow","outFast","outFaster","outDelay","outRepeat","appearSlower","appearSlow","appearFast","appearFaster","appearDelay","appearRepeat","noAppear","noCss"])delete e[t];return e})}}var we=(0,p.defineComponent)({name:"MTransition",__name:"MTransition",props:{in:{},inSlower:{type:Boolean},inSlow:{type:Boolean},inFast:{type:Boolean},inFaster:{type:Boolean},inDelay:{type:[Boolean,String,Number]},inRepeat:{type:[Boolean,String,Number]},out:{},outSlower:{type:Boolean},outSlow:{type:Boolean},outFast:{type:Boolean},outFaster:{type:Boolean},outDelay:{type:[Boolean,String,Number]},outRepeat:{type:[Boolean,String,Number]},appear:{},appearSlower:{type:Boolean},appearSlow:{type:Boolean},appearFast:{type:Boolean},appearFaster:{type:Boolean},appearDelay:{type:[Boolean,String,Number]},appearRepeat:{type:[Boolean,String,Number]},noAppear:{type:Boolean},noCss:{type:Boolean},name:{},type:{},css:{type:Boolean},duration:{},enterFromClass:{},enterActiveClass:{},enterToClass:{},appearFromClass:{},appearActiveClass:{},appearToClass:{},leaveFromClass:{},leaveActiveClass:{},leaveToClass:{},mode:{},persisted:{type:Boolean},onBeforeEnter:{type:[Function,Array]},onEnter:{type:[Function,Array]},onAfterEnter:{type:[Function,Array]},onEnterCancelled:{type:[Function,Array]},onBeforeLeave:{type:[Function,Array]},onLeave:{type:[Function,Array]},onAfterLeave:{type:[Function,Array]},onLeaveCancelled:{type:[Function,Array]},onBeforeAppear:{type:[Function,Array]},onAppear:{type:[Function,Array]},onAfterAppear:{type:[Function,Array]},onAppearCancelled:{type:[Function,Array]}},setup(e){const t=e,{computedProps:o}=Se(()=>t);return(e,t)=>((0,p.openBlock)(),(0,p.createBlock)(p.Transition,(0,p.normalizeProps)((0,p.guardReactiveProps)((0,p.unref)(o))),{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"default")]),_:3},16))}}),xe=(0,p.defineComponent)({name:"MTransitionGroup",__name:"MTransitionGroup",props:{in:{},inSlower:{type:Boolean},inSlow:{type:Boolean},inFast:{type:Boolean},inFaster:{type:Boolean},inDelay:{type:[Boolean,String,Number]},inRepeat:{type:[Boolean,String,Number]},out:{},outSlower:{type:Boolean},outSlow:{type:Boolean},outFast:{type:Boolean},outFaster:{type:Boolean},outDelay:{type:[Boolean,String,Number]},outRepeat:{type:[Boolean,String,Number]},appear:{},appearSlower:{type:Boolean},appearSlow:{type:Boolean},appearFast:{type:Boolean},appearFaster:{type:Boolean},appearDelay:{type:[Boolean,String,Number]},appearRepeat:{type:[Boolean,String,Number]},noAppear:{type:Boolean},noCss:{type:Boolean},name:{},type:{},css:{type:Boolean},duration:{},enterFromClass:{},enterActiveClass:{},enterToClass:{},appearFromClass:{},appearActiveClass:{},appearToClass:{},leaveFromClass:{},leaveActiveClass:{},leaveToClass:{},persisted:{type:Boolean},onBeforeEnter:{type:[Function,Array]},onEnter:{type:[Function,Array]},onAfterEnter:{type:[Function,Array]},onEnterCancelled:{type:[Function,Array]},onBeforeLeave:{type:[Function,Array]},onLeave:{type:[Function,Array]},onAfterLeave:{type:[Function,Array]},onLeaveCancelled:{type:[Function,Array]},onBeforeAppear:{type:[Function,Array]},onAppear:{type:[Function,Array]},onAfterAppear:{type:[Function,Array]},onAppearCancelled:{type:[Function,Array]},tag:{},moveClass:{}},setup(e){const{computedProps:t}=Se(e);return(e,o)=>((0,p.openBlock)(),(0,p.createBlock)(p.TransitionGroup,(0,p.normalizeProps)((0,p.guardReactiveProps)((0,p.unref)(t))),{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"default")]),_:3},16))}}),$e=(0,p.defineComponent)({name:"MSarIcon",inheritAttrs:!1,__name:"MSarIcon",setup:e=>(e,t)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(u.QIcon),(0,p.mergeProps)({class:"m-sar-icon"},{...e.$attrs,name:"myth-sar"}),{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"default")]),_:3},16))}),ke=(0,p.defineComponent)({name:"MSarString",__name:"MSarString",props:{tag:{default:"span"},text:{default:()=>{}},string:{type:Boolean,default:!1},format:{default:()=>{}},digits:{default:()=>{}},symbol:{type:Boolean,default:()=>{}}},setup(e){const{te:t}=(0,c.useI18n)({useScope:"global"}),{__:o,componentProps:n}=K(),r=(0,p.computed)(()=>void 0!==e.symbol?e.symbol?"﷼":"":void 0!==n.value.sarString?.symbol&&n.value.sarString?.symbol?"﷼":""),a=(0,u.useQuasar)(),s=(0,p.computed)(()=>{const n=void 0!==e.text&&null!==e.text?String(e.text).trim():"";if(0===n.length)return;const s=void 0!==e.digits?parseInt(String(e.digits),10):2,i=isNaN(s)?2:s,l={minimumFractionDigits:i,maximumFractionDigits:i,...e.format};let p=n;e.string&&(t(`labels.${n}`)?p=o(`labels.${n}`):t(n)&&(p=o(n)));const u=Number(p);return isNaN(u)||""===p?a.lang.rtl?`${p} ${r.value}`.trim():`${r.value} ${p}`.trim():a.lang.rtl?G(u,r.value,l):`${r.value} ${G(u,"",l)}`.trim()});return(t,o)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag),{class:"sar-font m-sar-string"},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(t.$slots,"default",{},()=>[(0,p.createTextVNode)((0,p.toDisplayString)(s.value),1)])]),_:3}))}});function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Be.apply(null,arguments)}var _e={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,shouldBackspace:!0,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(e){},onComplete:function(e){},preStringTyped:function(e,t){},onStringTyped:function(e,t){},onLastStringBackspaced:function(e){},onTypingPaused:function(e,t){},onTypingResumed:function(e,t){},onReset:function(e){},onStop:function(e,t){},onStart:function(e,t){},onDestroy:function(e){}},Ae=new(function(){function e(){}var t=e.prototype;return t.load=function(e,t,o){if(e.el="string"==typeof o?document.querySelector(o):o,e.options=Be({},_e,t),e.isInput="input"===e.el.tagName.toLowerCase(),e.attr=e.options.attr,e.bindInputFocusEvents=e.options.bindInputFocusEvents,e.showCursor=!e.isInput&&e.options.showCursor,e.cursorChar=e.options.cursorChar,e.cursorBlinking=!0,e.elContent=e.attr?e.el.getAttribute(e.attr):e.el.textContent,e.contentType=e.options.contentType,e.typeSpeed=e.options.typeSpeed,e.startDelay=e.options.startDelay,e.backSpeed=e.options.backSpeed,e.smartBackspace=e.options.smartBackspace,e.backDelay=e.options.backDelay,e.shouldBackspace=e.options.shouldBackspace,e.fadeOut=e.options.fadeOut,e.fadeOutClass=e.options.fadeOutClass,e.fadeOutDelay=e.options.fadeOutDelay,e.isPaused=!1,e.strings=e.options.strings.map(function(e){return e.trim()}),e.stringsElement="string"==typeof e.options.stringsElement?document.querySelector(e.options.stringsElement):e.options.stringsElement,e.stringsElement){e.strings=[],e.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var n=Array.prototype.slice.apply(e.stringsElement.children),r=n.length;if(r)for(var a=0;a<r;a+=1)e.strings.push(n[a].innerHTML.trim())}for(var s in e.strPos=0,e.currentElContent=this.getCurrentElContent(e),e.currentElContent&&e.currentElContent.length>0&&(e.strPos=e.currentElContent.length-1,e.strings.unshift(e.currentElContent)),e.sequence=[],e.strings)e.sequence[s]=s;e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.autoInsertCss=e.options.autoInsertCss,e.autoInsertCss&&(this.appendCursorAnimationCss(e),this.appendFadeOutAnimationCss(e))},t.getCurrentElContent=function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent},t.appendCursorAnimationCss=function(e){var t="data-typed-js-cursor-css";if(e.showCursor&&!document.querySelector("["+t+"]")){var o=document.createElement("style");o.setAttribute(t,"true"),o.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(o)}},t.appendFadeOutAnimationCss=function(e){var t="data-typed-fadeout-js-css";if(e.fadeOut&&!document.querySelector("["+t+"]")){var o=document.createElement("style");o.setAttribute(t,"true"),o.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(o)}},e}()),Te=new(function(){function e(){}var t=e.prototype;return t.typeHtmlChars=function(e,t,o){if("html"!==o.contentType)return t;var n=e.substring(t).charAt(0);if("<"===n||"&"===n){var r;for(r="<"===n?">":";";e.substring(t+1).charAt(0)!==r&&!(1+ ++t>e.length););t++}return t},t.backSpaceHtmlChars=function(e,t,o){if("html"!==o.contentType)return t;var n=e.substring(t).charAt(0);if(">"===n||";"===n){var r;for(r=">"===n?"<":"&";e.substring(t-1).charAt(0)!==r&&!(--t<0););t--}return t},e}()),Pe=function(){function e(e,t){Ae.load(this,t,e),this.begin()}var t=e.prototype;return t.toggle=function(){this.pause.status?this.start():this.stop()},t.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},t.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},t.destroy=function(){this.reset(!1),this.options.onDestroy(this)},t.reset=function(e){void 0===e&&(e=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())},t.append=function(e){var t=this,o=this.strings[this.strings.length-1];this.strings.push(e),this.sequence=this.strings.map(function(e,t){return t}),this.typingComplete&&(this.timeout=this.shouldBackspace?setTimeout(function(){t.backspace(o,o.length-1)},this.backDelay):setTimeout(function(){t.arrayPos++,t.typewrite(t.strings[t.sequence[t.arrayPos]],0)},this.backDelay))},t.begin=function(){var e=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){0===e.strPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)},this.startDelay)},t.typewrite=function(e,t){var o=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var n=this.humanizer(this.typeSpeed),r=1;!0!==this.pause.status?this.timeout=setTimeout(function(){t=Te.typeHtmlChars(e,t,o);var n=0,a=e.substring(t);if("^"===a.charAt(0)&&/^\^\d+/.test(a)){var s=1;s+=(a=/\d+/.exec(a)[0]).length,n=parseInt(a),o.temporaryPause=!0,o.options.onTypingPaused(o.arrayPos,o),e=e.substring(0,t)+e.substring(t+s),o.toggleBlinking(!0)}if("`"===a.charAt(0)){for(;"`"!==e.substring(t+r).charAt(0)&&(r++,!(t+r>e.length)););var i=e.substring(0,t),l=e.substring(i.length+1,t+r),p=e.substring(t+r+1);e=i+l+p,r--}o.timeout=setTimeout(function(){o.toggleBlinking(!1),t>=e.length?o.doneTyping(e,t):o.keepTyping(e,t,r),o.temporaryPause&&(o.temporaryPause=!1,o.options.onTypingResumed(o.arrayPos,o))},n)},n):this.setPauseStatus(e,t,!0)},t.keepTyping=function(e,t,o){if(0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),this.shouldBackspace){var n=e.substring(0,t+=o);this.replaceText(n)}else{var r=e.substring(t,t+o);t+=o,this.replaceText(r)}this.typewrite(e,t)},t.doneTyping=function(e,t){var o=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.isFinalString()&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=this.shouldBackspace?setTimeout(function(){o.backspace(e,t)},this.backDelay):setTimeout(function(){o.arrayPos++,o.typewrite(o.strings[o.sequence[o.arrayPos]],0)},this.backDelay))},t.backspace=function(e,t){var o=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var n=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){t=Te.backSpaceHtmlChars(e,t,o);var n=e.substring(0,t);if(o.replaceText(n),o.smartBackspace){var r=o.strings[o.sequence[o.arrayPos+1]];o.stopNum=r&&n===r.substring(0,t)?t:0}t>o.stopNum?(t--,o.backspace(e,t)):t<=o.stopNum&&(o.isFinalString()?o.lastStringBackspaced():(o.arrayPos++,o.typewrite(o.strings[o.sequence[o.arrayPos]],t)))},n)}else this.setPauseStatus(e,t,!1)},t.isFinalString=function(){return this.arrayPos===this.strings.length-1},t.lastStringBackspaced=function(){this.arrayPos=0,this.options.onLastStringBackspaced(),this.loop&&(this.shuffleStringsIfNeeded(),this.begin())},t.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},t.setPauseStatus=function(e,t,o){this.pause.typewrite=o,this.pause.curString=e,this.pause.curStrPos=t},t.toggleBlinking=function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},t.humanizer=function(e){return Math.round(Math.random()*e/2)+e},t.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))},t.initFadeOut=function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)},this.fadeOutDelay)},t.replaceText=function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.shouldBackspace?this.el.innerHTML=e:this.el.innerHTML+=e:this.el.textContent=e},t.bindFocusEvents=function(){var e=this;this.isInput&&(this.el.addEventListener("focus",function(t){e.stop()}),this.el.addEventListener("blur",function(t){e.el.value&&0!==e.el.value.length||e.start()}))},t.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},e}(),Me=(0,p.defineComponent)({name:"MTypingString",inheritAttrs:!1,__name:"MTypingString",props:{name:{},tag:{default:"span"},string:{},loop:{type:Boolean,default:!1},speed:{default:300},backDelay:{default:()=>{}},fadeOut:{type:Boolean},options:{default:()=>({})}},setup(e,{expose:t}){const o=(0,p.computed)(()=>`typed-content-${e.name}`),n=(0,p.computed)(()=>({loop:e.loop,typeSpeed:parseInt(e.speed?.toString?.()),backDelay:void 0!==e.backDelay&&parseInt(e.backDelay?.toString?.())||void 0,fadeOut:e.fadeOut,strings:"string"==typeof e.string?[e.string]:e.string||void 0,...e.options})),r=(0,p.ref)(),a=(0,p.ref)(),s=()=>{if(r.value)try{r.value.destroy()}catch(Ae){console.log(Ae)}};return(0,p.watchEffect)(()=>{if(a.value&&e.string){const t=document.getElementById(o.value);try{t&&(e=>{try{s(),r.value=new Pe(`#${o.value}`,(0,p.toValue)(e))}catch(Ae){console.log(Ae)}})((0,p.toValue)(n))}catch(Ae){console.log(Ae),t&&(t.innerHTML="string"==typeof e.string?e.string:e.string.join("<br />"))}}}),(0,p.onBeforeUnmount)(()=>s()),t({typed:r,typedRef:a}),(t,n)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(e.tag),{id:o.value,ref_key:"typedRef",ref:a,class:"m-typing-string"},null,8,["id"]))}}),Fe=Me,Oe=i({MBlock:()=>J,MBtn:()=>z,MCol:()=>ue,MColumn:()=>de,MContainer:()=>me,MDialog:()=>y,MDialogFrame:()=>S,MGrid:()=>ce,MHelpRow:()=>ye,MInnerLoading:()=>ve,MRow:()=>be,MSarIcon:()=>$e,MSarString:()=>ke,MTooltip:()=>Ce,MTransition:()=>we,MTransitionGroup:()=>xe,MTypingString:()=>Fe,default:()=>Ne}),Ne={};var De="0.5.32",Le=!1,Re=(e={},t=!1)=>{e.appName&&(h.appName=e.appName),e.metaTags&&(h.metaTags=e.metaTags),e.theme&&(h.theme?t?Object.assign(h.theme,(0,u.extend)(!0,{},h.theme,e.theme)):Object.assign(h.theme,e.theme):h.theme=e.theme),e.component&&(h.component?t?Object.assign(h.component,(0,u.extend)(!0,{},h.component,e.component)):Object.assign(h.component,e.component):h.component=e.component),e.loadingOptions&&(h.loadingOptions?t?Object.assign(h.loadingOptions,(0,u.extend)(!0,{},h.loadingOptions,e.loadingOptions)):Object.assign(h.loadingOptions,e.loadingOptions):h.loadingOptions=e.loadingOptions)},Ee=(e,t={})=>{if(Le)return void(process.env.DEV&&console.warn(`Plugin [${m}] already initialized. Skipping configuration injection.`));Re(t),e.provide(g,h),Object.entries(Oe).forEach(([t,o])=>{void 0===e.component(t)&&e.component(t,o)});const o=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=M(e.slice(5));if(t&&t in ee&&ee[t])return{icon:ee[t]}}if("function"==typeof o)return o(e)},Le=!0},Qe={version:De,install:Ee};exports.MBlock=J,exports.MBtn=z,exports.MCol=ue,exports.MColumn=de,exports.MContainer=me,exports.MDialog=y,exports.MDialogFrame=S,exports.MGrid=ce,exports.MHelpRow=ye,exports.MInnerLoading=ve,exports.MRow=be,exports.MSarIcon=$e,exports.MSarString=ke,exports.MTooltip=Ce,exports.MTransition=we,exports.MTransitionGroup=xe,exports.MTypingString=Fe,exports.Stub=(e,t)=>{const o=V(e);return{async index(e){const n=o();return t().get(n,e)},async staticIndex(o){const n="Static"+(e?`/${e}`:"");return t().get(n,o)},export:async(e,n)=>t().post(o("Export"),e,n),exampleUrl:async e=>t().get(o("ExampleUrl"),e),async store(e,n){const r=o(),a=new FormData;return e&&q(a,e),t().post(r,a,n)},async show(e,n){const r=o(e);return t().get(r,n)},async staticShow(o,n){const r=`Static${e?`/${e}`:""}/${o}`;return t().get(r,n)},async update(e,n,r){const a=o(e),s=new FormData;return s.append("_method","put"),n&&q(s,n),t().post(a,s,r)},async clone(e,n,r){const a=o(`${e}/Clone`),s=new FormData;return n&&q(s,n),t().post(a,s,r)},async destroy(e,n){const r=o(e);return t().delete(r,n)},async destroyAll(e,n){const r=o("DestroyAll");return t().post(r,{ids:e||[]},n)},getUploadAttachmentsUrl:e=>o(`${e}/Attachment/Upload`),async uploadAttachments(e,n,r){const a=o(`${e}/Attachment/Upload`);return t().post(a,n,r)},async deleteAttachment(e,n,r){const a=o(`${e}/Attachment/${n}/Delete`);return t().delete(a,r)},async updateAttachment(e,n,r,a){const s=o(`${e}/Attachment/${n}/Update`);return t().post(s,r,a)}}},exports.StubUrl=V,exports.appendArray=q,exports.calculateAspectRatio=(e,t)=>{e=Number(e),t=Number(t);const o=(e,t)=>0===t?e:o(t,e%t),n=o(e,t);return[e/t,`${e/n}:${t/n}`]},exports.camelCase=M,exports.colorIsDark=e=>{const{luminosity:t}=u.colors;return t(e)<.5},exports.colorStyle=(e,t=!1)=>{if(!e)return"";let o=e;return e.startsWith("#")||"transparent"===e||(o=pe(e)),`${t?"background-color":"color"}: ${o};`},exports.convertToArabicNumbers=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},exports.copyText=async e=>{const t=null!=e?String(e):"";return await(0,u.copyToClipboard)(t),t},exports.darkenColor=j,exports.default=Qe,exports.detectWebPlatform=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"},exports.dimension=e=>{if(!e)return null;const t=e=>null!=e,o=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,n=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,r=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(r)&&t(n)?0===n?null:r/n:t(o)&&t(n)?o*n:t(o)&&t(r)?0===o?null:r/o:null},exports.downloadFromResponse=(e,t)=>new Promise((o,n)=>{const r=e=>n(e??{status:!1,code:"unknown"}),a=e=>o({status:!0,response:e});try{if(!e)return void r({code:"no_response"});if(e?.data?.data?.url){const o=e?.data?.data?.url;if(t)return t(o,e),void a(e);const n=document.createElement("a");return n.setAttribute("href",o),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),void a(e)}const o=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!o)return void r({code:"no_file_name"});const n=new Blob([e.data]),s=window.URL.createObjectURL(n),i=document.createElement("a");if(!i||!s)return void r({code:"no_file_url"});i.href=s,i.setAttribute("download",o),document.body.appendChild(i),i.click(),a(e),setTimeout(()=>{try{document.body.removeChild(i),URL.revokeObjectURL(s)}catch(Ae){console.log(Ae),Ae?.message&&alert(Ae.message)}},3e3)}catch(Ae){console.log(Ae),r(Ae)}}),exports.flipChoice=e=>{const t={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const n=e[o].split("|");n.length>=2?t[o]=[n[1],n[0]].join("|"):t[o]=e[o]}return t},exports.formatMoney=G,exports.fromArabicNumber=ae,exports.iconSet=X,exports.icons=ee,exports.install=Ee,exports.isElementInViewport=U,exports.isKsaMobile=e=>{if(!e)return!1;const t=ae(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},exports.kebabCase=O,exports.lightenColor=I,exports.makeUrl=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},exports.nl2br=(e,t=!1)=>{if(!e)return"";const o=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,o)},exports.openWindow=H,exports.pascalCase=F,exports.plural=ne,exports.prettyPrint=e=>JSON.stringify(e,null,3).replace(/&/g,"&amp;").replace(/\\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,o,n,r)=>{let a=t||"";return o&&(a=a+'<span class="json-key" style="color: brown">'+o.replace(/[": ]/g,"")+"</span>: "),n&&(a=a+(n.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+n+"</span>"),a+(r||"")}),exports.scrollToBottom=async(e,t,o)=>{const{setVerticalScrollPosition:n,getScrollHeight:r}=u.scroll;e||(e=window);const a=e&&"string"==typeof e?document.querySelector(e)||window:e;n(a,o=o||r(a),t=t||600)},exports.scrollToElement=W,exports.scrollToElementFromErrors=async(e,t,o)=>{if(!e)return;const n=Object.entries(e),r=n.map(([e])=>e);let a=[];if(n.length>0&&(a=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>r.includes(e?.getAttribute("data-input-name")))),a.length>0)for(const s of a){const e=n.find(e=>e[0]===s.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await W(s||`[name='${t}']`,{target:o});break}}else for(const[s,i]of n)if((i&&Array.isArray(i)?i[0]:i)?.toString?.()?.length){if(t)await W(t,{target:o});else{const e=`[data-input-name='${s}']`;await W(document.querySelector(e)||`[name='${s}']`,{target:o})}break}},exports.setCss=(e,t,o)=>{if((0,u.setCssVar)(e,t,o||document.documentElement),"primary"===e){const e=I(t,50),o=j(t,10);(0,u.setCssVar)("scrollbar-track",e),(0,u.setCssVar)("scrollbar-hover",o)}},exports.setDefaults=Re,exports.shuffle=e=>{const t=[...e||[]];for(let o=t.length-1;o>0;o--){const e=Math.floor(Math.random()*(o+1));[t[o],t[e]]=[t[e],t[o]]}return t},exports.singular=re,exports.snakeCase=N,exports.sortNumberFormatted=(e,t)=>(parseFloat(se(e).replace(/[^\d.]/g,""))||0)-(parseFloat(se(t).replace(/[^\d.]/g,""))||0),exports.strBefore=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",exports.toAlphaNumerals=(e,t={})=>{const{uppercase:o=!0,startFromZero:n=!1}=t,r=parseInt(e?.toString()||"0",10)||0;if(r<=0&&!n)return"";if(n&&0===r)return o?"A":"a";let a=n?r+1:r,s="";for(;a>0;){a--;const e=a%26+(o?65:97);s=String.fromCharCode(e)+s,a=Math.floor(a/26)}return s},exports.toNumber=se,exports.toNumberFormat=(e=null,t)=>{if(null==e||""===e)return"";const o=se(e).split("."),n=/(\d+)(\d{3})/;for(;n.test(o[0]);)o[0]=o[0].replace(n,"$1,$2");let r=o.join(".");return t&&(r=`${r} ${t}`),r},exports.ucFirst=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},exports.uniq=Z,exports.uniqBy=(e,t)=>{const o=new Set;return e.filter(e=>{if(!e)return!1;const n=e[t];return!o.has(n)&&(o.add(n),!0)})},exports.useContainer=Y,exports.useMyth=K,exports.useMythMeta=function(e,t){(0,u.useMeta)(()=>{const o=(0,p.toValue)(e)||"",n=(0,p.toValue)(t)||{},r=n.appName;r&&(h.appName=r);const a=(0,p.toValue)(h.appName)||"MyTh",s=(0,p.toValue)(h.metaTags)||{},{...i}=n;return{title:o,titleTemplate:e=>e?e.toLowerCase()===a.toLowerCase()?a:`${a} | ${e}`:a,...(0,u.extend)(!0,{},s,i)}})},exports.useTransition=Se,exports.veeRules=le,exports.version=De,exports.wordsToSingle=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},exports.wordsWithThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},exports.wordsWithoutThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e};
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),i=(e,n)=>{let o={};for(var r in e)t(o,r,{get:e[r],enumerable:!0});return n||t(o,Symbol.toStringTag,{value:"Module"}),o},l=(a,i,l)=>(l=null!=a?e(r(a)):{},((e,r,a,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var l,u=o(r),c=0,p=u.length;c<p;c++)l=u[c],s.call(e,l)||l===a||t(e,l,{get:(e=>r[e]).bind(null,l),enumerable:!(i=n(r,l))||i.enumerable});return e})(!i&&a&&a.__esModule?l:t(l,"default",{value:a,enumerable:!0}),a));let u=require("vue"),c=require("quasar"),p=require("vue-i18n");function d(e,t){return function(){return e.apply(t,arguments)}}var f,{toString:h}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:g,toStringTag:y}=Symbol,b=(f=Object.create(null),e=>{const t=h.call(e);return f[t]||(f[t]=t.slice(8,-1).toLowerCase())}),w=e=>(e=e.toLowerCase(),t=>b(t)===e),v=e=>t=>typeof t===e,{isArray:S}=Array,C=v("undefined");function x(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var O=w("ArrayBuffer");var E=v("string"),R=v("function"),_=v("number"),A=e=>null!==e&&"object"==typeof e,B=e=>{if("object"!==b(e))return!1;const t=m(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||y in e||g in e)},T=w("Date"),k=w("File"),P=w("Blob"),$=w("FileList");var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},F=void 0!==N.FormData?N.FormData:void 0,D=w("URLSearchParams"),[L,j,M,U]=["ReadableStream","Request","Response","Headers"].map(w);function q(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),S(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(x(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let a;for(o=0;o<s;o++)a=r[o],t.call(null,e[a],a,e)}}function I(e,t){if(x(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Q=e=>!C(e)&&e!==z;var H,V=(H="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>H&&e instanceof H),W=w("HTMLFormElement"),G=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),J=w("RegExp"),K=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};q(n,(n,r)=>{let s;!1!==(s=t(n,r,e))&&(o[r]=s||n)}),Object.defineProperties(e,o)};var X,Z,Y,ee,te=w("AsyncFunction"),ne=(X="function"==typeof setImmediate,Z=R(z.postMessage),X?setImmediate:Z?(Y=`axios@${Math.random()}`,ee=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===Y&&ee.length&&ee.shift()()},!1),e=>{ee.push(e),z.postMessage(Y,"*")}):e=>setTimeout(e)),oe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||ne,re={isArray:S,isArrayBuffer:O,isBuffer:x,isFormData:e=>{if(!e)return!1;if(F&&e instanceof F)return!0;const t=m(e);if(!t||t===Object.prototype)return!1;if(!R(e.append))return!1;const n=b(e);return"formdata"===n||"object"===n&&R(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&O(e.buffer),t},isString:E,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:B,isEmptyObject:e=>{if(!A(e)||x(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(In){return!1}},isReadableStream:L,isRequest:j,isResponse:M,isHeaders:U,isUndefined:C,isDate:T,isFile:k,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:P,isRegExp:J,isFunction:R,isStream:e=>A(e)&&R(e.pipe),isURLSearchParams:D,isTypedArray:V,isFileList:$,forEach:q,merge:function e(...t){const{caseless:n,skipUndefined:o}=Q(this)&&this||{},r={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const a=n&&I(r,s)||s,i=G(r,a)?r[a]:void 0;B(i)&&B(t)?r[a]=e(i,t):B(t)?r[a]=e({},t):S(t)?r[a]=t.slice():o&&C(t)||(r[a]=t)};for(let a=0,i=t.length;a<i;a++)t[a]&&q(t[a],s);return r},extend:(e,t,n,{allOwnKeys:o}={})=>(q(t,(t,o)=>{n&&R(t)?Object.defineProperty(e,o,{__proto__:null,value:d(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,s,a;const i={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],o&&!o(a,e,t)||i[a]||(t[a]=e[a],i[a]=!0);e=!1!==n&&m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:b,kindOfTest:w,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(S(e))return e;let t=e.length;if(!_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[g]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:W,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:K,freezeMethods:e=>{K(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].includes(n))return!1;const o=e[n];R(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach(e=>{n[e]=!0})};return S(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:z,isContextDefined:Q,isSpecCompliantForm:function(e){return!!(e&&R(e.append)&&"FormData"===e[y]&&e[g])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(A(e)){if(t.has(e))return;if(x(e))return e;if(!("toJSON"in e)){t.add(e);const o=S(e)?[]:{};return q(e,(e,t)=>{const r=n(e);!C(r)&&(o[t]=r)}),t.delete(e),o}}return e};return n(e)},isAsyncFn:te,isThenable:e=>e&&(A(e)||R(e))&&R(e.then)&&R(e.catch),setImmediate:ne,asap:oe,isIterable:e=>null!=e&&R(e[g])},se=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ae=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ie=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function le(e,t){return re.isArray(e)?e.map(e=>le(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ue(e){const t=Object.create(null);return re.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>le(e,ie))(e)}),t}var ce=Symbol("internals");function pe(e){return e&&String(e).trim().toLowerCase()}function de(e){return!1===e||null==e?e:re.isArray(e)?e.map(de):(e=>le(e,ae))(String(e))}function fe(e,t,n,o,r){return re.isFunction(o)?o.call(this,t,n):(r&&(t=n),re.isString(t)?re.isString(o)?-1!==t.indexOf(o):re.isRegExp(o)?o.test(t):void 0:void 0)}var he=class{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=pe(t);if(!r)throw new Error("header name must be a non-empty string");const s=re.findKey(o,r);(!s||void 0===o[s]||!0===n||void 0===n&&!1!==o[s])&&(o[s||t]=de(e))}const s=(e,t)=>re.forEach(e,(e,n)=>r(e,n,t));if(re.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(re.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&se[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(re.isObject(e)&&re.isIterable(e)){let n,o,r={};for(const t of e){if(!re.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?re.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=pe(e)){const n=re.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(re.isFunction(t))return t.call(this,e,n);if(re.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=pe(e)){const n=re.findKey(this,e);return!(!n||void 0===this[n]||t&&!fe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=pe(e)){const r=re.findKey(n,e);!r||t&&!fe(0,n[r],r,t)||(delete n[r],o=!0)}}return re.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!fe(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return re.forEach(this,(o,r)=>{const s=re.findKey(n,r);if(s)return t[s]=de(o),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();a!==r&&delete t[r],t[a]=de(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return re.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&re.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ce]=this[ce]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=pe(e);t[o]||(!function(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{__proto__:null,value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return re.isArray(e)?e.forEach(o):o(e),this}};he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors(he.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),re.freezeMethods(he);function me(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),o=[],r=e=>{if(null===e||"object"!=typeof e)return e;if(re.isBuffer(e))return e;if(-1!==o.indexOf(e))return;let t;if(e instanceof he&&(e=e.toJSON()),o.push(e),re.isArray(e))t=[],e.forEach((e,n)=>{const o=r(e);re.isUndefined(o)||(t[n]=o)});else{if(!re.isPlainObject(e)&&function(e){if(re.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(re.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return o.pop(),e;t=Object.create(null);for(const[o,s]of Object.entries(e)){const e=n.has(o.toLowerCase())?"[REDACTED ****]":r(s);re.isUndefined(e)||(t[o]=e)}}return o.pop(),t};return r(e)}var ge=class e extends Error{static from(t,n,o,r,s,a){const i=new e(t.message,n||t.code,o,r,s);return i.cause=t,i.name=t.name,null!=t.status&&null==i.status&&(i.status=t.status),a&&Object.assign(i,a),i}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&re.hasOwnProp(e,"redact")?e.redact:void 0,n=re.isArray(t)&&t.length>0?me(e,t):re.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};function ye(e){return re.isPlainObject(e)||re.isArray(e)}function be(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map(function(e,t){return e=be(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}ge.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ge.ERR_BAD_OPTION="ERR_BAD_OPTION",ge.ECONNABORTED="ECONNABORTED",ge.ETIMEDOUT="ETIMEDOUT",ge.ECONNREFUSED="ECONNREFUSED",ge.ERR_NETWORK="ERR_NETWORK",ge.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ge.ERR_DEPRECATED="ERR_DEPRECATED",ge.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ge.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ge.ERR_CANCELED="ERR_CANCELED",ge.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ge.ERR_INVALID_URL="ERR_INVALID_URL",ge.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ve=re.toFlatObject(re,{},null,function(e){return/^is[A-Z]/.test(e)});function Se(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!re.isUndefined(t[e])})).metaTokens,r=n.visitor||p,s=n.dots,a=n.indexes,i=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,u=i&&re.isSpecCompliantForm(t);if(!re.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(re.isDate(e))return e.toISOString();if(re.isBoolean(e))return e.toString();if(!u&&re.isBlob(e))throw new ge("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(e)||re.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e,n,r){let i=e;if(re.isReactNative(t)&&re.isReactNativeBlob(e))return t.append(we(r,n,s),c(e)),!1;if(e&&!r&&"object"==typeof e)if(re.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(re.isArray(e)&&function(e){return re.isArray(e)&&!e.some(ye)}(e)||(re.isFileList(e)||re.endsWith(n,"[]"))&&(i=re.toArray(e)))return n=be(n),i.forEach(function(e,o){!re.isUndefined(e)&&null!==e&&t.append(!0===a?we([n],o,s):null===a?n:n+"[]",c(e))}),!1;return!!ye(e)||(t.append(we(r,n,s),c(e)),!1)}const d=[],f=Object.assign(ve,{defaultVisitor:p,convertValue:c,isVisitable:ye});if(!re.isObject(e))throw new TypeError("data must be an object");return function e(n,o,s=0){if(!re.isUndefined(n)){if(s>l)throw new ge("Object is too deeply nested ("+s+" levels). Max depth: "+l,ge.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+o.join("."));d.push(n),re.forEach(n,function(n,a){!0===(!(re.isUndefined(n)||null===n)&&r.call(t,n,re.isString(a)?a.trim():a,o,f))&&e(n,o?o.concat(a):[a],s+1)}),d.pop()}}(e),t}function Ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function xe(e,t){this._pairs=[],e&&Se(e,this,t)}var Oe=xe.prototype;function Ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Re(e,t,n){if(!t)return e;const o=n&&n.encode||Ee,r=re.isFunction(n)?{serialize:n}:n,s=r&&r.serialize;let a;if(a=s?s(t,r):re.isURLSearchParams(t)?t.toString():new xe(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Oe.append=function(e,t){this._pairs.push([e,t])},Oe.toString=function(e){const t=e?function(t){return e.call(this,t,Ce)}:Ce;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var _e=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){re.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Te=i({hasBrowserEnv:()=>ke,hasStandardBrowserEnv:()=>$e,hasStandardBrowserWebWorkerEnv:()=>Ne,navigator:()=>Pe,origin:()=>Fe}),ke="undefined"!=typeof window&&"undefined"!=typeof document,Pe="object"==typeof navigator&&navigator||void 0,$e=ke&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),Ne="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Fe=ke&&window.location.href||"http://localhost",De={...Te,...Be};function Le(e){function t(e,n,o,r){let s=e[r++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),i=r>=e.length;return s=!s&&re.isArray(o)?o.length:s,i?(re.hasOwnProp(o,s)?o[s]=re.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!a):(re.hasOwnProp(o,s)&&re.isObject(o[s])||(o[s]=[]),t(e,n,o[s],r)&&re.isArray(o[s])&&(o[s]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}(o[s])),!a)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(e,o)=>{t(function(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}var je=(e,t)=>null!=e&&re.hasOwnProp(e,t)?e[t]:void 0;var Me={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=re.isObject(e);if(r&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return o?JSON.stringify(Le(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){const t=je(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Se(e,new De.classes.URLSearchParams,{visitor:function(e,t,n,o){return De.isNode&&re.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((s=re.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=je(this,"env"),o=n&&n.FormData;return Se(s?{"files[]":e}:e,o&&new o,t)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(In){if("SyntaxError"!==In.name)throw In}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=je(this,"transitional")||Me.transitional,n=t&&t.forcedJSONParsing,o=je(this,"responseType"),r="json"===o;if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(n&&!o||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,je(this,"parseReviver"))}catch(In){if(n){if("SyntaxError"===In.name)throw ge.from(In,ge.ERR_BAD_RESPONSE,this,null,je(this,"response"));throw In}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Ue(e,t){const n=this||Me,o=t||n,r=he.from(o.headers);let s=o.data;return re.forEach(e,function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function qe(e){return!(!e||!e.__CANCEL__)}re.forEach(["delete","get","head","post","put","patch","query"],e=>{Me.headers[e]={}});var Ie=class extends ge{constructor(e,t,n){super(null==e?"canceled":e,ge.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ze(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new ge("Request failed with status code "+n.status,n.status>=400&&n.status<500?ge.ERR_BAD_REQUEST:ge.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var Qe=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,s=0,a=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),u=o[a];r||(r=l),n[s]=i,o[s]=l;let c=a,p=0;for(;c!==s;)p+=n[c++],c%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-r<t)return;const d=u&&l-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,r=0,s=1e3/t;const a=(t,s=Date.now())=>{r=s,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),i=t-r;i>=s?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},s-i)))},()=>n&&a(n)]}(n=>{if(!n||"number"!=typeof n.loaded)return;const s=n.loaded,a=n.lengthComputable?n.total:void 0,i=null!=a?Math.min(s,a):s,l=Math.max(0,i-o),u=r(l);o=Math.max(o,i),e({loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-i)/u:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},He=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ve=e=>(...t)=>re.asap(()=>e(...t)),We=De.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,De.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):()=>!0,Ge=De.hasStandardBrowserEnv?{write(e,t,n,o,r,s,a){if("undefined"==typeof document)return;const i=[`${e}=${encodeURIComponent(t)}`];re.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),re.isString(o)&&i.push(`path=${o}`),re.isString(r)&&i.push(`domain=${r}`),!0===s&&i.push("secure"),re.isString(a)&&i.push(`SameSite=${a}`),document.cookie=i.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)return decodeURIComponent(o.slice(r+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Je(e,t,n){let o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));var r;return e&&(o||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Ke=e=>e instanceof he?{...e}:e;function Xe(e,t){t=t||{};const n=Object.create(null);function o(e,t,n,o){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge.call({caseless:o},e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function r(e,t,n,r){return re.isUndefined(t)?re.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function s(e,t){if(!re.isUndefined(t))return o(void 0,t)}function a(e,t){return re.isUndefined(t)?re.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function i(n,r,s){return re.hasOwnProp(t,s)?o(n,r):re.hasOwnProp(e,s)?o(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:i,headers:(e,t,n)=>r(Ke(e),Ke(t),0,!0)};return re.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=re.hasOwnProp(l,o)?l[o]:r,a=s(re.hasOwnProp(e,o)?e[o]:void 0,re.hasOwnProp(t,o)?t[o]:void 0,o);re.isUndefined(a)&&s!==i||(n[o]=a)}),n}var Ze=["content-type","content-length"];var Ye=e=>{const t=Xe({},e),n=e=>re.hasOwnProp(t,e)?t[e]:void 0,o=n("data");let r=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let i=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),p=n("url");var d;if(t.headers=i=he.from(i),t.url=Re(Je(u,p,c),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(d=l.password,encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),re.isFormData(o)&&(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv?i.setContentType(void 0):re.isFunction(o.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{Ze.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(i,o.getHeaders(),n("formDataHeaderPolicy"))),De.hasStandardBrowserEnv&&(re.isFunction(r)&&(r=r(t)),!0===r||null==r&&We(t.url))){const e=s&&a&&Ge.read(a);e&&i.set(s,e)}return t},et="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=Ye(e);let r=o.data;const s=he.from(o.headers).normalize();let a,i,l,u,c,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=o;function h(){u&&u(),c&&c(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const o=he.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ze(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ge("Request aborted",ge.ECONNABORTED,e,m)),h(),m=null)},m.onerror=function(t){const o=new ge(t&&t.message?t.message:"Network Error",ge.ERR_NETWORK,e,m);o.event=t||null,n(o),h(),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||Ae;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new ge(t,r.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,m)),h(),m=null},void 0===r&&s.setContentType(null),"setRequestHeader"in m&&re.forEach(ue(s),function(e,t){m.setRequestHeader(t,e)}),re.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),p&&"json"!==p&&(m.responseType=o.responseType),f&&([l,c]=Qe(f,!0),m.addEventListener("progress",l)),d&&m.upload&&([i,u]=Qe(d),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(a=t=>{m&&(n(!t||t.type?new Ie(null,e,m):t),m.abort(),h(),m=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(o.url);!y||De.protocols.includes(y)?m.send(r||null):n(new ge("Unsupported protocol "+y+":",ge.ERR_BAD_REQUEST,e))})},tt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let o=!1;const r=function(e){if(!o){o=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ge?t:new Ie(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,r(new ge(`timeout of ${t}ms exceeded`,ge.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:i}=n;return i.unsubscribe=()=>re.asap(a),i},nt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},ot=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},rt=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of ot(e))yield*nt(n,t)}(e,t);let s,a=0,i=e=>{s||(s=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return i(),void e.close();let s=o.byteLength;n&&n(a+=s),e.enqueue(new Uint8Array(o))}catch(t){throw i(t),t}},cancel:e=>(i(e),r.return())},{highWaterMark:2})};var st="1.16.1",{isFunction:at}=re,it=(e,...t)=>{try{return!!e(...t)}catch(In){return!1}},lt=e=>{const t=void 0!==re.global&&null!==re.global?re.global:globalThis,{ReadableStream:n,TextEncoder:o}=t;e=re.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:s,Response:a}=e,i=r?at(r):"function"==typeof fetch,l=at(s),u=at(a);if(!i)return!1;const c=i&&at(n),p=i&&("function"==typeof o?(d=new o,e=>d.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer()));var d;const f=l&&c&&it(()=>{let e=!1;const t=new s(De.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),h=u&&c&&it(()=>re.isReadableStream(new a("").body)),m={stream:h&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new ge(`Response type '${e}' is not supported`,ge.ERR_NOT_SUPPORT,n)})});const g=async(e,t)=>{const n=re.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:re.isBlob(e)?e.size:re.isSpecCompliantForm(e)?(await new s(De.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:re.isArrayBufferView(e)||re.isArrayBuffer(e)?e.byteLength:(re.isURLSearchParams(e)&&(e+=""),re.isString(e)?(await p(e)).byteLength:void 0))(t):n};return async e=>{let{url:t,method:n,data:i,signal:u,cancelToken:c,timeout:p,onDownloadProgress:d,onUploadProgress:y,responseType:b,headers:w,withCredentials:v="same-origin",fetchOptions:S,maxContentLength:C,maxBodyLength:x}=Ye(e);const O=re.isNumber(C)&&C>-1,E=re.isNumber(x)&&x>-1;let R=r||fetch;b=b?(b+"").toLowerCase():"text";let _=tt([u,c&&c.toAbortSignal()],p),A=null;const B=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let T;try{if(O&&"string"==typeof t&&t.startsWith("data:")&&function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let i=0;i<t;i++)if(37===o.charCodeAt(i)&&i+2<t){const t=o.charCodeAt(i+1),n=o.charCodeAt(i+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(e-=2,i+=2)}let n=0,r=t-1;const s=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));r>=0&&(61===o.charCodeAt(r)?(n++,r--):s(r)&&(n++,r-=3)),1===n&&r>=0&&(61===o.charCodeAt(r)||s(r))&&n++;const a=3*Math.floor(e/4)-(n||0);return a>0?a:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(o,"utf8");let r=0;for(let s=0,a=o.length;s<a;s++){const e=o.charCodeAt(s);if(e<128)r+=1;else if(e<2048)r+=2;else if(e>=55296&&e<=56319&&s+1<a){const e=o.charCodeAt(s+1);e>=56320&&e<=57343?(r+=4,s++):r+=3}else r+=3}return r}(t)>C)throw new ge("maxContentLength size of "+C+" exceeded",ge.ERR_BAD_RESPONSE,e,A);if(E&&"get"!==n&&"head"!==n){const t=await g(w,i);if("number"==typeof t&&isFinite(t)&&t>x)throw new ge("Request body larger than maxBodyLength limit",ge.ERR_BAD_REQUEST,e,A)}if(y&&f&&"get"!==n&&"head"!==n&&0!==(T=await g(w,i))){let e,n=new s(t,{method:"POST",body:i,duplex:"half"});if(re.isFormData(i)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){const[e,t]=He(T,Qe(Ve(y)));i=rt(n.body,65536,e,t)}}re.isString(v)||(v=v?"include":"omit");const r=l&&"credentials"in s.prototype;if(re.isFormData(i)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+st,!1);const u={...S,signal:_,method:n.toUpperCase(),headers:ue(w.normalize()),body:i,duplex:"half",credentials:r?v:void 0};A=l&&new s(t,u);let c=await(l?R(A,S):R(t,u));if(O){const t=re.toFiniteNumber(c.headers.get("content-length"));if(null!=t&&t>C)throw new ge("maxContentLength size of "+C+" exceeded",ge.ERR_BAD_RESPONSE,e,A)}const p=h&&("stream"===b||"response"===b);if(h&&c.body&&(d||O||p&&B)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const n=re.toFiniteNumber(c.headers.get("content-length")),[o,r]=d&&He(n,Qe(Ve(d),!0))||[];let s=0;const i=t=>{if(O&&(s=t,s>C))throw new ge("maxContentLength size of "+C+" exceeded",ge.ERR_BAD_RESPONSE,e,A);o&&o(t)};c=new a(rt(c.body,65536,i,()=>{r&&r(),B&&B()}),t)}b=b||"text";let k=await m[re.findKey(m,b)||"text"](c,e);if(O&&!h&&!p){let t;if(null!=k&&("number"==typeof k.byteLength?t=k.byteLength:"number"==typeof k.size?t=k.size:"string"==typeof k&&(t="function"==typeof o?(new o).encode(k).byteLength:k.length)),"number"==typeof t&&t>C)throw new ge("maxContentLength size of "+C+" exceeded",ge.ERR_BAD_RESPONSE,e,A)}return!p&&B&&B(),await new Promise((t,n)=>{ze(t,n,{data:k,headers:he.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:A})})}catch(k){if(B&&B(),_&&_.aborted&&_.reason instanceof ge){const t=_.reason;throw t.config=e,A&&(t.request=A),k!==t&&(t.cause=k),t}if(k&&"TypeError"===k.name&&/Load failed|fetch/i.test(k.message))throw Object.assign(new ge("Network Error",ge.ERR_NETWORK,e,A,k&&k.response),{cause:k.cause||k});throw ge.from(k,k&&k.code,e,A,k&&k.response)}}},ut=new Map,ct=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t,s=[o,r,n];let a,i,l=s.length,u=ut;for(;l--;)a=s[l],i=u.get(a),void 0===i&&u.set(a,i=l?new Map:lt(t)),u=i;return i},pt=(ct(),{http:null,xhr:et,fetch:{get:ct}});re.forEach(pt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(In){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var dt=e=>`- ${e}`,ft=e=>re.isFunction(e)||null===e||!1===e;var ht={getAdapter:function(e,t){e=re.isArray(e)?e:[e];const{length:n}=e;let o,r;const s={};for(let a=0;a<n;a++){let n;if(o=e[a],r=o,!ft(o)&&(r=pt[(n=String(o)).toLowerCase()],void 0===r))throw new ge(`Unknown adapter '${n}'`);if(r&&(re.isFunction(r)||(r=r.get(t))))break;s[n||"#"+a]=r}if(!r){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ge("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(dt).join("\n"):" "+dt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r},adapters:pt};function mt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function gt(e){return mt(e),e.headers=he.from(e.headers),e.data=Ue.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ht.getAdapter(e.adapter||Me.adapter,e)(e).then(function(t){mt(e),e.response=t;try{t.data=Ue.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=he.from(t.headers),t},function(t){if(!qe(t)&&(mt(e),t&&t.response)){e.response=t.response;try{t.response.data=Ue.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=he.from(t.response.headers)}return Promise.reject(t)})}var yt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var bt={};yt.transitional=function(e,t,n){function o(e,t){return"[Axios v"+st+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new ge(o(r," has been removed"+(t?" in "+t:"")),ge.ERR_DEPRECATED);return t&&!bt[r]&&(bt[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},yt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var wt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){const t=e[s],n=void 0===t||a(t,s,e);if(!0!==n)throw new ge("option "+s+" must be "+n,ge.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ge("Unknown option "+s,ge.ERR_BAD_OPTION)}},validators:yt},vt=wt.validators,St=class{constructor(e){this.defaults=e||{},this.interceptors={request:new _e,response:new _e}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),o=-1===e?-1:t.indexOf("\n",e+1),r=-1===o?"":t.slice(o+1);String(n.stack).endsWith(r)||(n.stack+="\n"+t)}}else n.stack=t}catch(In){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xe(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&wt.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean),legacyInterceptorReqResOrdering:vt.transitional(vt.boolean)},!1),null!=o&&(re.isFunction(o)?t.paramsSerializer={serialize:o}:wt.assertOptions(o,{encode:vt.function,serialize:vt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),wt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&re.merge(r.common,r[t.method]);r&&re.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete r[e]}),t.headers=he.concat(s,r);const a=[];let i=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;i=i&&e.synchronous;const n=t.transitional||Ae;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,p=0;if(!i){const e=[gt.bind(this),void 0];for(e.unshift(...a),e.push(...l),c=e.length,u=Promise.resolve(t);p<c;)u=u.then(e[p++],e[p++]);return u}c=a.length;let d=t;for(;p<c;){const e=a[p++],t=a[p++];try{d=e(d)}catch(f){t.call(this,f);break}}try{u=gt.call(this,d)}catch(f){return Promise.reject(f)}for(p=0,c=l.length;p<c;)u=u.then(l[p++],l[p++]);return u}getUri(e){return Re(Je((e=Xe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(e){St.prototype[e]=function(t,n){return this.request(Xe(n||{},{method:e,url:t,data:(n||{}).data}))}}),re.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(Xe(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}St.prototype[e]=t(),"query"!==e&&(St.prototype[e+"Form"]=t(!0))});var Ct={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ct).forEach(([e,t])=>{Ct[t]=e});var xt=function e(t){const n=new St(t),o=d(St.prototype.request,n);return re.extend(o,St.prototype,n,{allOwnKeys:!0}),re.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Xe(t,n))},o}(Me);xt.Axios=St,xt.CanceledError=Ie,xt.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new Ie(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},xt.isCancel=qe,xt.VERSION=st,xt.toFormData=Se,xt.AxiosError=ge,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Xe,xt.AxiosHeaders=he,xt.formToJSON=e=>Le(re.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=ht.getAdapter,xt.HttpStatusCode=Ct,xt.default=xt;var Ot=(0,u.shallowReactive)({instance:xt.create({baseURL:process.env.API_URL||void 0}),services:{},loaded:!1});Ot.instance.interceptors.response.use(e=>("application/json"===e.headers?.["content-type"]&&(e._data=e?.data?.data||[],e._message=e?.data?.message||"",e._meta=e?.data?.meta||{},e._success=Boolean(e?.data?.success),e._errors=e?.data?.errors??{}),e),e=>{e=e||{};const t=e?.response?.status;401===t&&process.env.DEBUGGING&&console.log("onRejected Func No permissions",e),403===t&&process.env.DEBUGGING&&console.log("onRejected Func No permissions",e);const n=e?.response?.data;return e._data=n?.data??{},e._message=n?.message??null,e._meta=n?.meta??null,e._success=!!n?.success,e._errors=n?.errors??{},e._message||(e._message=e.message||""),Promise.reject(e)}),Ot.instance.interceptors.request.use(e=>e);var Et=Symbol.for("_m__m-container"),Rt="MyTh",_t=(0,u.reactive)({version:"0.5.35",appName:Rt,metaTags:{meta:{ogTitle:{property:"og:title",content:process.env.PRODUCT_NAME},keywords:{name:"keywords",content:process.env.PRODUCT_KEYWORDS},author:{name:"author",content:process.env.PRODUCT_AUTHOR},description:{name:"description",content:process.env.PRODUCT_DESCRIPTION},robots:{name:"robots",content:"index, follow"}},link:{icon:{type:"image/png",rel:"icon",href:process.env.PRODUCT_FAVICON||"/favicon.png"}}},theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),At=Symbol.for("_m_"),Bt={class:"q-dialog-plugin m-dialog__wrapper"},Tt=(0,u.defineComponent)({name:"MDialog",__name:"MDialog",props:{slide:{type:Boolean,default:!1},from:{default:"left"}},emits:[...c.useDialogPluginComponent.emits],setup(e){const t={left:"right",right:"left",up:"down",down:"up"},n=(0,u.computed)(()=>`slide-${e.from}`),o=(0,u.computed)(()=>`slide-${t[e.from]}`),{componentProps:r}=cn(),{dialogRef:s,onDialogHide:a}=(0,c.useDialogPluginComponent)();return(t,i)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QDialog),(0,u.mergeProps)({ref_key:"dialogRef",ref:s,"transition-hide":t.$q.screen.lt.md||e.slide?n.value:"fade","transition-show":t.$q.screen.lt.md||e.slide?o.value:"fade",class:"m-dialog"},(0,u.unref)(r).dialog,{onHide:(0,u.unref)(a)}),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)("div",Bt,[(0,u.renderSlot)(t.$slots,"default")])]),_:3},16,["transition-hide","transition-show","onHide"]))}}),kt={class:"q-dialog-plugin m-dialog__wrapper"},Pt={class:"row items-center"},$t=["src"],Nt=(0,u.defineComponent)({name:"MDialogFrame",__name:"MDialogFrame",props:{url:{},height:{},noDownload:{type:Boolean},iframeProps:{},image:{type:Boolean},imageProps:{}},emits:[...c.useDialogPluginComponent.emits],setup(e){const t=e,{__:n,componentProps:o}=cn(),{dialogRef:r,onDialogHide:s,onDialogOK:a}=(0,c.useDialogPluginComponent)(),i=(0,c.useQuasar)(),l=(0,u.computed)({get:()=>i.loading.isActive,set:e=>e?i.loading.show():i.loading.hide()}),p=(0,u.computed)(()=>t.url||null),d=()=>{l.value&&(l.value=!1)};return(t,f)=>{const h=(0,u.resolveComponent)("q-btn");return(0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QDialog),(0,u.mergeProps)({ref_key:"dialogRef",ref:r,class:"m-dialog",maximized:"","no-shake":"","transition-hide":"fade","transition-show":"fade"},(0,u.unref)(o).dialog,{onHide:(0,u.unref)(s)}),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)("div",kt,[(0,u.createVNode)((0,u.unref)(c.QCard),{flat:"",square:""},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(c.QCardSection),{style:{"max-height":"80px"}},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)("div",Pt,[e.noDownload?(0,u.createCommentVNode)("",!0):((0,u.openBlock)(),(0,u.createBlock)(h,{key:0,label:(0,u.unref)(n)("labels.download"),icon:"ion-ios-open",onClick:f[0]||(f[0]=e=>{p.value&&rn(p.value)})},null,8,["label"])),(0,u.createVNode)((0,u.unref)(c.QSpace)),(0,u.createVNode)(h,{flat:"",icon:"close",padding:"3px",onClick:f[1]||(f[1]=e=>{a()})})])]),_:1}),(0,u.createVNode)((0,u.unref)(c.QSeparator)),(0,u.createElementVNode)("div",{style:(0,u.normalizeStyle)({height:(0,u.unref)(i).screen.height-70+"px"}),class:"content-center m-dialog__content"},[(0,u.renderSlot)(t.$slots,"default",{},()=>[p.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[e.image?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QImg),(0,u.mergeProps)({key:0,height:e.height??"80%",src:p.value,class:"m-dialog__img",fit:"contain","no-spinner":"",style:{"max-height":"100%"}},e.imageProps,{onError:f[2]||(f[2]=e=>d()),onLoad:f[3]||(f[3]=e=>d())}),{loading:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(c.QSkeleton),{height:"100%",width:"100%"})]),_:1},16,["height","src"])):((0,u.openBlock)(),(0,u.createElementBlock)("iframe",(0,u.mergeProps)({key:1,src:p.value,class:"m-dialog__iframe",style:`width: 100%; border: 0; height: ${e.height??"99%"}`},e.iframeProps,{onLoad:f[4]||(f[4]=e=>l.value=!1)}),null,16,$t))],64)):(0,u.createCommentVNode)("",!0)])],4)]),_:3})])]),_:3},16,["onHide"])}}}),Ft=/([\p{Ll}\d])(\p{Lu})/gu,Dt=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Lt=/(\d)\p{Ll}|(\p{L})\d/u,jt=/[^\p{L}\d]+/giu,Mt="$1\0$2",Ut="";function qt(e){let t=e.trim();t=t.replace(Ft,Mt).replace(Dt,Mt),t=t.replace(jt,"\0");let n=0,o=t.length;for(;"\0"===t.charAt(n);)n++;if(n===o)return[];for(;"\0"===t.charAt(o-1);)o--;return t.slice(n,o).split(/\0/g)}function It(e){const t=qt(e);for(let n=0;n<t.length;n++){const e=t[n],o=Lt.exec(e);if(o){const r=o.index+(o[1]??o[2]).length;t.splice(n,1,e.slice(0,r),e.slice(r))}}return t}function zt(e,t){const[n,o,r]=Zt(e,t);return n+o.map(Gt(t?.locale)).join(t?.delimiter??" ")+r}function Qt(e,t){const[n,o,r]=Zt(e,t),s=Gt(t?.locale),a=Jt(t?.locale),i=t?.mergeAmbiguousCharacters?Kt(s,a):Xt(s,a);return n+o.map((e,t)=>0===t?s(e):i(e,t)).join(t?.delimiter??"")+r}function Ht(e,t){const[n,o,r]=Zt(e,t),s=Gt(t?.locale),a=Jt(t?.locale),i=t?.mergeAmbiguousCharacters?Kt(s,a):Xt(s,a);return n+o.map(i).join(t?.delimiter??"")+r}function Vt(e,t){return zt(e,{delimiter:"-",...t})}function Wt(e,t){return zt(e,{delimiter:"_",...t})}function Gt(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function Jt(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function Kt(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Xt(e,t){return(n,o)=>{const r=n[0];return(o>0&&r>="0"&&r<="9"?"_"+r:t(r))+e(n.slice(1))}}function Zt(e,t={}){const n=t.split??(t.separateNumbers?It:qt),o=t.prefixCharacters??Ut,r=t.suffixCharacters??Ut;let s=0,a=e.length;for(;s<e.length;){const t=e.charAt(s);if(!o.includes(t))break;s++}for(;a>s;){const t=a-1,n=e.charAt(t);if(!r.includes(n))break;a=t}return[e.slice(0,s),n(e.slice(s,a)),e.slice(a)]}var Yt=(0,u.defineComponent)({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1}},setup(e){const t={QSpinner:c.QSpinner,QSpinnerAudio:c.QSpinnerAudio,QSpinnerBall:c.QSpinnerBall,QSpinnerBars:c.QSpinnerBars,QSpinnerBox:c.QSpinnerBox,QSpinnerClock:c.QSpinnerClock,QSpinnerComment:c.QSpinnerComment,QSpinnerCube:c.QSpinnerCube,QSpinnerDots:c.QSpinnerDots,QSpinnerFacebook:c.QSpinnerFacebook,QSpinnerGears:c.QSpinnerGears,QSpinnerGrid:c.QSpinnerGrid,QSpinnerHearts:c.QSpinnerHearts,QSpinnerHourglass:c.QSpinnerHourglass,QSpinnerInfinity:c.QSpinnerInfinity,QSpinnerIos:c.QSpinnerIos,QSpinnerOrbit:c.QSpinnerOrbit,QSpinnerOval:c.QSpinnerOval,QSpinnerPie:c.QSpinnerPie,QSpinnerPuff:c.QSpinnerPuff,QSpinnerRadio:c.QSpinnerRadio,QSpinnerRings:c.QSpinnerRings,QSpinnerTail:c.QSpinnerTail},{__:n,loadingOptions:o,componentProps:r,btnStyle:s}=cn(),a=(0,u.computed)(()=>void 0!==e.spinner?e.spinner:o.value?.type),i=(0,u.computed)(()=>{if(a.value)return"spinner"===a.value?t.QSpinner:t[Ht(`q-spinner-${a.value}`)]}),l=(0,u.computed)(()=>o.value?.size),p=(0,u.computed)(()=>o.value?.color),d=(0,u.computed)(()=>!0===e.nativeLabel?null===e.label||void 0===e.label?void 0:String(e.label):void 0!==e.label&&null!==e.label?n(e.label):void 0),f=(0,u.computed)(()=>({...e.noStyle?{}:s.value,...r.value.btn||{},ariaLabel:d.value}));return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QBtn),(0,u.mergeProps)({label:d.value,loading:e.loading,class:"m-btn"},f.value),(0,u.createSlots)({_:2},[t.$slots.loading?{name:"loading",fn:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"loading")]),key:"0"}:a.value&&i.value?{name:"loading",fn:(0,u.withCtx)(()=>[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(i.value),{color:p.value,size:l.value},null,8,["color","size"]))]),key:"1"}:void 0,t.$slots.default?{name:"default",fn:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),key:"2"}:void 0]),1040,["label","loading"]))}}),en=(e,t=10)=>{const{lighten:n}=c.colors;return n(e,-1*t)},tn=(e,t=10)=>{const{lighten:n}=c.colors;return n(e,t)},nn=(e,t,n)=>{let o;if((t instanceof File||t instanceof Blob)&&n){const o=t instanceof File?t.name:n;e.append(n,t,o)}else for(const r in t)if(o=t[r],null!=o&&"object"==typeof o){const t=n?n+"["+r+"]":r;Array.isArray(o)&&o.length<1?e.append(`${r}`,""):nn(e,o,t)}else!0===o&&(o=1),!1===o&&(o=0),null==o&&(o=""),n?e.append(n+"["+r+"]",o):e.append(r,o);return e},on=e=>(t,n)=>(n??"")+(n&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),rn=(e,t,n)=>(0,c.openURL)(e,t,n),sn=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},an=async(e,t)=>{await(0,u.nextTick)();const{getScrollTarget:n,setVerticalScrollPosition:o,getVerticalScrollPosition:r}=c.scroll,s="string"==typeof e?document.querySelector(e):e;if(!s)return;await(0,u.nextTick)();const{target:a}=t||{},i=n(s,("string"==typeof a?document.querySelector(a):a)||window.document.documentElement),l=r(i),p=t?.duration||1e3;let d,f=s;try{do{if(d=f.getBoundingClientRect().top,0===d&&!f.parentElement){d=f.scrollTop;break}if(0!==d&&f.parentElement)break;f=f.parentElement}while(f)}catch(In){console.log(In),d="offsetTop"in s&&s?.offsetTop||0}const h=d+l-(100+(t?.offset||0));sn(s)||o(i,h,p)},ln=(e="",t="",n)=>{let o="number"!=typeof e?parseFloat(e):e;isNaN(o)&&(o=0);const r={minimumFractionDigits:2,maximumFractionDigits:2,...n||{}};return`${o.toLocaleString("en-US",r)} ${t}`.trim()},un=e=>[...new Set(e)];function cn(){const{t:e,te:t}=(0,p.useI18n)({useScope:"global"}),n=(0,u.inject)(At,_t),o=(0,u.readonly)(n),r=(0,u.ref)("MyTh"),s=(0,u.computed)(()=>n.version),a=(0,u.computed)(()=>n.loadingOptions),i=(0,u.reactive)(n.theme),l=(0,u.computed)(()=>n.theme.btn),c=(0,u.computed)(()=>n.theme.input),d=(0,u.computed)(()=>n.component),f=(n,...o)=>{const r=(n=n??"").startsWith(":")&&n.endsWith(":"),s=n.startsWith("{'")&&n.endsWith("'}");if((r||s)&&n.length>2)return r?n.slice(1,-1):n.slice(2,-2);const a=`attributes.${n}`;return t(a)?e(a,...o):t(n)?e(n,...o):e(n)};return{config:o,name:r,version:s,loadingOptions:a,theme:i,btnStyle:l,inputStyle:c,componentProps:d,__:f,pageTitle:(e,n)=>{n??=2;const o=bn(e),r=Ht(e),s=Wt(e),a=Qt(e),i=Vt(e),l=yn(e),u=Ht(l),c=Wt(l),p=Qt(l),d=Vt(l),h=un([e,o,r,s,a,i,l,u,c,p,d]),m=un(["routes","attributes"]);for(const g of m)for(const e of h)if(t(`${g}.${e}`))return f(`${g}.${e}`,n);return f(e)}}}var pn=()=>({container:(0,u.inject)(Et,{})}),dn=(0,u.defineComponent)({name:"MBlock",__name:"MBlock",props:{tag:{default:"div"},size:{default:()=>{}},rounded:{type:Boolean,default:()=>{}},shadow:{default:()=>{}}},setup(e){const{container:t}=pn(),{theme:n}=cn(),o=(0,u.computed)(()=>void 0!==e.size?e.size:t.size??n.gutterSize??"md"),r=(0,u.computed)(()=>void 0!==e.rounded?e.rounded:t.rounded??n.rounded??!1),s=(0,u.computed)(()=>void 0!==e.shadow?e.shadow:t.shadow??n.shadow??void 0);return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag),{class:(0,u.normalizeClass)([{[`q-pa-${o.value}`]:o.value&&"none"!==o.value,"rounded-borders":r.value,[`shadow-${s.value||""}`]:s.value&&"none"!==s.value},"m-block"])},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),_:3},8,["class"]))}}),fn="myth-",hn={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},mn=a((e,t)=>{var n,o;n=e,o=function(){var e=[],t=[],n={},o={},r={};function s(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function i(e,t){return e.replace(t[0],function(n,o){var r,s,i=(r=t[1],s=arguments,r.replace(/\$(\d{1,2})/g,function(e,t){return s[t]||""}));return a(""===n?e[o-1]:n,i)})}function l(e,t,o){if(!e.length||n.hasOwnProperty(e))return t;for(var r=o.length;r--;){var s=o[r];if(s[0].test(t))return i(t,s)}return t}function u(e,t,n){return function(o){var r=o.toLowerCase();return t.hasOwnProperty(r)?a(o,r):e.hasOwnProperty(r)?a(o,e[r]):l(r,o,n)}}function c(e,t,n,o){return function(o){var r=o.toLowerCase();return!!t.hasOwnProperty(r)||!e.hasOwnProperty(r)&&l(r,r,n)===r}}function p(e,t,n){return(n?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=u(r,o,e),p.isPlural=c(r,o,e),p.singular=u(o,r,t),p.isSingular=c(o,r,t),p.addPluralRule=function(t,n){e.push([s(t),n])},p.addSingularRule=function(e,n){t.push([s(e),n])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),r[e]=t,o[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof require&&"object"==typeof e&&"object"==typeof t?t.exports=o():"function"==typeof define&&define.amd?define(function(){return o()}):n.pluralize=o()}),gn=l(mn(),1),{plural:yn,singular:bn}=gn.default,wn=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),vn=e=>null==e||""===e?"":wn(e).replace(/,/g,""),{testPattern:Sn}=c.patterns,Cn={float:e=>null==e||c.is.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>Sn.time(e),fulltime:e=>Sn.fulltime(e),timeOrFulltime:e=>Sn.timeOrFulltime(e),hexColor:e=>Sn.hexColor(e),hexaColor:e=>Sn.hexaColor(e),hexOrHexaColor:e=>Sn.hexOrHexaColor(e),rgbColor:e=>Sn.rgbColor(e),rgbaColor:e=>Sn.rgbaColor(e),rgbOrRgbaColor:e=>Sn.rgbOrRgbaColor(e),hexOrRgbColor:e=>Sn.hexOrRgbColor(e),hexaOrRgbaColor:e=>Sn.hexaOrRgbaColor(e),color:e=>!e||Sn.anyColor(e),requiredColor:e=>Sn.anyColor(e)},{getPaletteColor:xn}=c.colors,On=(0,u.defineComponent)({name:"MCol",__name:"MCol",props:{name:{},tag:{},auto:{type:Boolean},shrink:{type:Boolean},grow:{type:Boolean},col:{type:[Boolean,String,Number]},xs:{type:[Boolean,String,Number]},sm:{type:[Boolean,String,Number]},md:{type:[Boolean,String,Number]},lg:{type:[Boolean,String,Number]},xl:{type:[Boolean,String,Number]},xxl:{type:[Boolean,String,Number]}},setup(e){const t=e,n=(0,u.computed)(()=>{const e=["m-col"];t.auto&&e.push("col-auto"),t.shrink&&e.push("col-shrink"),t.grow&&e.push("col-grow"),"grow"===t.col?e.push("col-grow"):"shrink"===t.col?e.push("col-shrink"):"string"!=typeof t.col&&"number"!=typeof t.col||t.col?.toString()?.trim()?.length>0&&!e.includes(`col-${t.col}`)&&e.push(`col-${t.col}`);for(const n of["xs","sm","md","lg","xl","xxl"])t[n]&&"boolean"!=typeof t[n]&&(e.includes(`col-${n}-${t[n]}`)||e.push(`col-${n}-${t[n]}`));return 1===e.length&&!1!==t.col&&void 0!==t.col&&e.push("col"),un(e)});return(t,o)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag??"div"),{class:(0,u.normalizeClass)(n.value),"data-input-name":e.name??void 0},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),_:3},8,["class","data-input-name"]))}}),En=(0,u.defineComponent)({name:"MGrid",__name:"MGrid",props:{tag:{default:"div"},gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(e){const{container:t}=pn(),{theme:n}=cn(),o=(0,u.computed)(()=>void 0!==e.size?e.size:t?.size??n.gutterSize??"md"),r=(0,u.computed)(()=>void 0!==e.type?e.type:t?.type??n.gutterType??"gutter"),s=(0,u.computed)(()=>`q${"col"===e.type?"-col":""}-gutter`);return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag),{class:(0,u.normalizeClass)({"m-row row":"row"===e.gridType,"m-column column":"column"===e.gridType,[`${s.value}-${o.value}`]:!!r.value&&"none"!==r.value})},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),_:3},8,["class"]))}}),Rn=(0,u.defineComponent)({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(En,{size:e.size,type:e.type,"grid-type":"column"},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),_n=(0,u.defineComponent)({name:"MContainer",__name:"MContainer",props:{tag:{default:"div"},size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}},rounded:{type:Boolean,default:()=>{}},shadow:{default:()=>{}}},setup(e){const{theme:t}=cn(),n=(0,u.computed)(()=>"md"!==e.size?e.size:t.gutterSize??"md"),o=(0,u.computed)(()=>"gutter"!==e.type?e.type:t.gutterType??"gutter"),r=(0,u.computed)(()=>e.rounded??t.rounded??!1),s=(0,u.computed)(()=>e.dense??t.dense??!1),a=(0,u.computed)(()=>e.fluid??t.fluid??!1);return(0,u.provide)(Et,(0,u.reactive)({gutterSize:n,gutterType:o,rounded:r,dense:s,fluid:a,shadow:(0,u.computed)(()=>e.shadow??t.shadow??void 0)})),(t,o)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag),{class:(0,u.normalizeClass)([{"m-container__fluid":!!a.value,"m-container__dense":!!s.value,"q-pa-none":"none"===n.value,[`q-pa-${n.value||""}`]:n.value&&"none"!==n.value},"m-container"])},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),_:3},8,["class"]))}}),An={class:"col-auto m-help-row__icon-wrapper"},Bn={key:0,class:"col m-help-row__text-wrapper"},Tn=["textContent"],kn=(0,u.defineComponent)({name:"MHelpRow",__name:"MHelpRow",props:{tag:{default:"div"},text:{default:""},icon:{default:()=>{}},tooltip:{type:Boolean,default:!1}},setup(e){const{__:t}=cn();return(n,o)=>e.text||e.tooltip?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag),{key:0,class:"row m-help-row"},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)("div",An,[(0,u.createVNode)((0,u.unref)(c.QIcon),{class:(0,u.normalizeClass)([{"cursor-pointer":e.tooltip},"m-help-row__icon"]),left:!!e.text&&!e.tooltip,name:e.icon??"ion-ios-information-circle-outline",size:"19px"},{default:(0,u.withCtx)(()=>[e.tooltip?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Nn),{key:0,anchor:"center end",class:"bg-transparent text-black text-justify m-help-row__tooltip",self:"center start","transition-hide":"jump-right","transition-show":"jump-left"},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(c.QCard),(0,u.normalizeProps)((0,u.guardReactiveProps)({style:{maxWidth:"280px"}})),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(c.QCardSection),(0,u.normalizeProps)((0,u.guardReactiveProps)({style:{fontSize:"13px"}})),{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(e.text)),1)]),_:1},16)]),_:1},16)]),_:1})):(0,u.createCommentVNode)("",!0)]),_:1},8,["class","left","name"])]),!e.tooltip&&e.text?((0,u.openBlock)(),(0,u.createElementBlock)("div",Bn,[(0,u.createElementVNode)("div",{textContent:(0,u.toDisplayString)((0,u.unref)(t)(e.text))},null,8,Tn)])):(0,u.createCommentVNode)("",!0)]),_:1})):(0,u.createCommentVNode)("",!0)}}),Pn=(0,u.defineComponent)({name:"MInnerLoading",__name:"MInnerLoading",props:{showing:{type:Boolean,default:!1},label:{default:()=>{}},labelClass:{default:()=>{}},labelStyle:{default:"font-size: 1.1em"},color:{default:"primary"}},setup(e){const{__:t}=cn();return(n,o)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QInnerLoading),{color:e.color,label:(0,u.unref)(t)(e.label??"labels.plz_wait"),"label-class":e.labelClass,"label-style":e.labelStyle,showing:e.showing,class:"m-inner-loading"},(0,u.createSlots)({_:2},[void 0!==n.$slots.default?{name:"default",fn:(0,u.withCtx)(()=>[(0,u.renderSlot)(n.$slots,"default")]),key:"0"}:void 0]),1032,["color","label","label-class","label-style","showing"]))}}),$n=(0,u.defineComponent)({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(En,{size:e.size,type:e.type,"grid-type":"row"},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),Nn=(0,u.defineComponent)({name:"MTooltip",__name:"MTooltip",setup:e=>(e,t)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QTooltip),{class:"m-tooltip","transition-hide":"scale","transition-show":"scale"},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,"default")]),_:3}))});function Fn(e){const t=(0,u.toValue)(e),n=e=>{if("in"===e&&t.enterActiveClass)return`animated ${t.enterActiveClass}`;if("out"===e&&t.leaveActiveClass)return`animated ${t.leaveActiveClass}`;if("appear"===e&&t.appearActiveClass)return`animated ${t.appearActiveClass}`;const n=t[e];if(!n)return;const o=["animated",n],r=[`${e}Slower`,`${e}Slow`,`${e}Fast`,`${e}Faster`];for(const i of r)t[i]&&o.push(i.replace(e,"").toLowerCase());const s=t[`${e}Delay`]||!1;s&&(!0===s&&o.push("delay-1s"),"number"!=typeof s&&"string"!=typeof s||o.push(`delay-${s}s`));const a=t[`${e}Repeat`]||!1;return a&&(!0===a&&o.push("repeat"),"number"!=typeof a&&"string"!=typeof a||o.push(`repeat-${a}`)),o.join(" ")};return{getClasses:n,computedProps:(0,u.computed)(()=>{const e={enterActiveClass:n("in"),leaveActiveClass:n("out"),appearActiveClass:n("appear"),appear:!t.noAppear,css:!t.noCss};for(const t of["in","inSlower","inSlow","inFast","inFaster","inDelay","inRepeat","out","outSlower","outSlow","outFast","outFaster","outDelay","outRepeat","appearSlower","appearSlow","appearFast","appearFaster","appearDelay","appearRepeat","noAppear","noCss"])delete e[t];return e})}}var Dn=(0,u.defineComponent)({name:"MTransition",__name:"MTransition",props:{in:{},inSlower:{type:Boolean},inSlow:{type:Boolean},inFast:{type:Boolean},inFaster:{type:Boolean},inDelay:{type:[Boolean,String,Number]},inRepeat:{type:[Boolean,String,Number]},out:{},outSlower:{type:Boolean},outSlow:{type:Boolean},outFast:{type:Boolean},outFaster:{type:Boolean},outDelay:{type:[Boolean,String,Number]},outRepeat:{type:[Boolean,String,Number]},appear:{},appearSlower:{type:Boolean},appearSlow:{type:Boolean},appearFast:{type:Boolean},appearFaster:{type:Boolean},appearDelay:{type:[Boolean,String,Number]},appearRepeat:{type:[Boolean,String,Number]},noAppear:{type:Boolean},noCss:{type:Boolean},name:{},type:{},css:{type:Boolean},duration:{},enterFromClass:{},enterActiveClass:{},enterToClass:{},appearFromClass:{},appearActiveClass:{},appearToClass:{},leaveFromClass:{},leaveActiveClass:{},leaveToClass:{},mode:{},persisted:{type:Boolean},onBeforeEnter:{type:[Function,Array]},onEnter:{type:[Function,Array]},onAfterEnter:{type:[Function,Array]},onEnterCancelled:{type:[Function,Array]},onBeforeLeave:{type:[Function,Array]},onLeave:{type:[Function,Array]},onAfterLeave:{type:[Function,Array]},onLeaveCancelled:{type:[Function,Array]},onBeforeAppear:{type:[Function,Array]},onAppear:{type:[Function,Array]},onAfterAppear:{type:[Function,Array]},onAppearCancelled:{type:[Function,Array]}},setup(e){const t=e,{computedProps:n}=Fn(()=>t);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(u.Transition,(0,u.normalizeProps)((0,u.guardReactiveProps)((0,u.unref)(n))),{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,"default")]),_:3},16))}}),Ln=(0,u.defineComponent)({name:"MTransitionGroup",__name:"MTransitionGroup",props:{in:{},inSlower:{type:Boolean},inSlow:{type:Boolean},inFast:{type:Boolean},inFaster:{type:Boolean},inDelay:{type:[Boolean,String,Number]},inRepeat:{type:[Boolean,String,Number]},out:{},outSlower:{type:Boolean},outSlow:{type:Boolean},outFast:{type:Boolean},outFaster:{type:Boolean},outDelay:{type:[Boolean,String,Number]},outRepeat:{type:[Boolean,String,Number]},appear:{},appearSlower:{type:Boolean},appearSlow:{type:Boolean},appearFast:{type:Boolean},appearFaster:{type:Boolean},appearDelay:{type:[Boolean,String,Number]},appearRepeat:{type:[Boolean,String,Number]},noAppear:{type:Boolean},noCss:{type:Boolean},name:{},type:{},css:{type:Boolean},duration:{},enterFromClass:{},enterActiveClass:{},enterToClass:{},appearFromClass:{},appearActiveClass:{},appearToClass:{},leaveFromClass:{},leaveActiveClass:{},leaveToClass:{},persisted:{type:Boolean},onBeforeEnter:{type:[Function,Array]},onEnter:{type:[Function,Array]},onAfterEnter:{type:[Function,Array]},onEnterCancelled:{type:[Function,Array]},onBeforeLeave:{type:[Function,Array]},onLeave:{type:[Function,Array]},onAfterLeave:{type:[Function,Array]},onLeaveCancelled:{type:[Function,Array]},onBeforeAppear:{type:[Function,Array]},onAppear:{type:[Function,Array]},onAfterAppear:{type:[Function,Array]},onAppearCancelled:{type:[Function,Array]},tag:{},moveClass:{}},setup(e){const{computedProps:t}=Fn(e);return(e,n)=>((0,u.openBlock)(),(0,u.createBlock)(u.TransitionGroup,(0,u.normalizeProps)((0,u.guardReactiveProps)((0,u.unref)(t))),{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,"default")]),_:3},16))}}),jn=(0,u.defineComponent)({name:"MSarIcon",inheritAttrs:!1,__name:"MSarIcon",setup:e=>(e,t)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(c.QIcon),(0,u.mergeProps)({class:"m-sar-icon"},{...e.$attrs,name:"myth-sar"}),{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,"default")]),_:3},16))}),Mn=(0,u.defineComponent)({name:"MSarString",__name:"MSarString",props:{tag:{default:"span"},text:{default:()=>{}},string:{type:Boolean,default:!1},format:{default:()=>{}},digits:{default:()=>{}},symbol:{type:Boolean,default:()=>{}}},setup(e){const{te:t}=(0,p.useI18n)({useScope:"global"}),{__:n,componentProps:o}=cn(),r=(0,u.computed)(()=>void 0!==e.symbol?e.symbol?"﷼":"":void 0!==o.value.sarString?.symbol&&o.value.sarString?.symbol?"﷼":""),s=(0,c.useQuasar)(),a=(0,u.computed)(()=>{const o=void 0!==e.text&&null!==e.text?String(e.text).trim():"";if(0===o.length)return;const a=void 0!==e.digits?parseInt(String(e.digits),10):2,i=isNaN(a)?2:a,l={minimumFractionDigits:i,maximumFractionDigits:i,...e.format};let u=o;e.string&&(t(`labels.${o}`)?u=n(`labels.${o}`):t(o)&&(u=n(o)));const c=Number(u);return isNaN(c)||""===u?s.lang.rtl?`${u} ${r.value}`.trim():`${r.value} ${u}`.trim():s.lang.rtl?ln(c,r.value,l):`${r.value} ${ln(c,"",l)}`.trim()});return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag),{class:"sar-font m-sar-string"},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,"default",{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(a.value),1)])]),_:3}))}});function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Un.apply(null,arguments)}var qn={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,shouldBackspace:!0,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(e){},onComplete:function(e){},preStringTyped:function(e,t){},onStringTyped:function(e,t){},onLastStringBackspaced:function(e){},onTypingPaused:function(e,t){},onTypingResumed:function(e,t){},onReset:function(e){},onStop:function(e,t){},onStart:function(e,t){},onDestroy:function(e){}},In=new(function(){function e(){}var t=e.prototype;return t.load=function(e,t,n){if(e.el="string"==typeof n?document.querySelector(n):n,e.options=Un({},qn,t),e.isInput="input"===e.el.tagName.toLowerCase(),e.attr=e.options.attr,e.bindInputFocusEvents=e.options.bindInputFocusEvents,e.showCursor=!e.isInput&&e.options.showCursor,e.cursorChar=e.options.cursorChar,e.cursorBlinking=!0,e.elContent=e.attr?e.el.getAttribute(e.attr):e.el.textContent,e.contentType=e.options.contentType,e.typeSpeed=e.options.typeSpeed,e.startDelay=e.options.startDelay,e.backSpeed=e.options.backSpeed,e.smartBackspace=e.options.smartBackspace,e.backDelay=e.options.backDelay,e.shouldBackspace=e.options.shouldBackspace,e.fadeOut=e.options.fadeOut,e.fadeOutClass=e.options.fadeOutClass,e.fadeOutDelay=e.options.fadeOutDelay,e.isPaused=!1,e.strings=e.options.strings.map(function(e){return e.trim()}),e.stringsElement="string"==typeof e.options.stringsElement?document.querySelector(e.options.stringsElement):e.options.stringsElement,e.stringsElement){e.strings=[],e.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var o=Array.prototype.slice.apply(e.stringsElement.children),r=o.length;if(r)for(var s=0;s<r;s+=1)e.strings.push(o[s].innerHTML.trim())}for(var a in e.strPos=0,e.currentElContent=this.getCurrentElContent(e),e.currentElContent&&e.currentElContent.length>0&&(e.strPos=e.currentElContent.length-1,e.strings.unshift(e.currentElContent)),e.sequence=[],e.strings)e.sequence[a]=a;e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.autoInsertCss=e.options.autoInsertCss,e.autoInsertCss&&(this.appendCursorAnimationCss(e),this.appendFadeOutAnimationCss(e))},t.getCurrentElContent=function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent},t.appendCursorAnimationCss=function(e){var t="data-typed-js-cursor-css";if(e.showCursor&&!document.querySelector("["+t+"]")){var n=document.createElement("style");n.setAttribute(t,"true"),n.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(n)}},t.appendFadeOutAnimationCss=function(e){var t="data-typed-fadeout-js-css";if(e.fadeOut&&!document.querySelector("["+t+"]")){var n=document.createElement("style");n.setAttribute(t,"true"),n.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(n)}},e}()),zn=new(function(){function e(){}var t=e.prototype;return t.typeHtmlChars=function(e,t,n){if("html"!==n.contentType)return t;var o=e.substring(t).charAt(0);if("<"===o||"&"===o){var r;for(r="<"===o?">":";";e.substring(t+1).charAt(0)!==r&&!(1+ ++t>e.length););t++}return t},t.backSpaceHtmlChars=function(e,t,n){if("html"!==n.contentType)return t;var o=e.substring(t).charAt(0);if(">"===o||";"===o){var r;for(r=">"===o?"<":"&";e.substring(t-1).charAt(0)!==r&&!(--t<0););t--}return t},e}()),Qn=function(){function e(e,t){In.load(this,t,e),this.begin()}var t=e.prototype;return t.toggle=function(){this.pause.status?this.start():this.stop()},t.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},t.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},t.destroy=function(){this.reset(!1),this.options.onDestroy(this)},t.reset=function(e){void 0===e&&(e=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())},t.append=function(e){var t=this,n=this.strings[this.strings.length-1];this.strings.push(e),this.sequence=this.strings.map(function(e,t){return t}),this.typingComplete&&(this.timeout=this.shouldBackspace?setTimeout(function(){t.backspace(n,n.length-1)},this.backDelay):setTimeout(function(){t.arrayPos++,t.typewrite(t.strings[t.sequence[t.arrayPos]],0)},this.backDelay))},t.begin=function(){var e=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){0===e.strPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)},this.startDelay)},t.typewrite=function(e,t){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var o=this.humanizer(this.typeSpeed),r=1;!0!==this.pause.status?this.timeout=setTimeout(function(){t=zn.typeHtmlChars(e,t,n);var o=0,s=e.substring(t);if("^"===s.charAt(0)&&/^\^\d+/.test(s)){var a=1;a+=(s=/\d+/.exec(s)[0]).length,o=parseInt(s),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),e=e.substring(0,t)+e.substring(t+a),n.toggleBlinking(!0)}if("`"===s.charAt(0)){for(;"`"!==e.substring(t+r).charAt(0)&&(r++,!(t+r>e.length)););var i=e.substring(0,t),l=e.substring(i.length+1,t+r),u=e.substring(t+r+1);e=i+l+u,r--}n.timeout=setTimeout(function(){n.toggleBlinking(!1),t>=e.length?n.doneTyping(e,t):n.keepTyping(e,t,r),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))},o)},o):this.setPauseStatus(e,t,!0)},t.keepTyping=function(e,t,n){if(0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),this.shouldBackspace){var o=e.substring(0,t+=n);this.replaceText(o)}else{var r=e.substring(t,t+n);t+=n,this.replaceText(r)}this.typewrite(e,t)},t.doneTyping=function(e,t){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.isFinalString()&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=this.shouldBackspace?setTimeout(function(){n.backspace(e,t)},this.backDelay):setTimeout(function(){n.arrayPos++,n.typewrite(n.strings[n.sequence[n.arrayPos]],0)},this.backDelay))},t.backspace=function(e,t){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var o=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){t=zn.backSpaceHtmlChars(e,t,n);var o=e.substring(0,t);if(n.replaceText(o),n.smartBackspace){var r=n.strings[n.sequence[n.arrayPos+1]];n.stopNum=r&&o===r.substring(0,t)?t:0}t>n.stopNum?(t--,n.backspace(e,t)):t<=n.stopNum&&(n.isFinalString()?n.lastStringBackspaced():(n.arrayPos++,n.typewrite(n.strings[n.sequence[n.arrayPos]],t)))},o)}else this.setPauseStatus(e,t,!1)},t.isFinalString=function(){return this.arrayPos===this.strings.length-1},t.lastStringBackspaced=function(){this.arrayPos=0,this.options.onLastStringBackspaced(),this.loop&&(this.shuffleStringsIfNeeded(),this.begin())},t.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},t.setPauseStatus=function(e,t,n){this.pause.typewrite=n,this.pause.curString=e,this.pause.curStrPos=t},t.toggleBlinking=function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},t.humanizer=function(e){return Math.round(Math.random()*e/2)+e},t.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))},t.initFadeOut=function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)},this.fadeOutDelay)},t.replaceText=function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.shouldBackspace?this.el.innerHTML=e:this.el.innerHTML+=e:this.el.textContent=e},t.bindFocusEvents=function(){var e=this;this.isInput&&(this.el.addEventListener("focus",function(t){e.stop()}),this.el.addEventListener("blur",function(t){e.el.value&&0!==e.el.value.length||e.start()}))},t.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},e}(),Hn=(0,u.defineComponent)({name:"MTypingString",inheritAttrs:!1,__name:"MTypingString",props:{name:{},tag:{default:"span"},string:{},loop:{type:Boolean,default:!1},speed:{default:300},backDelay:{default:()=>{}},fadeOut:{type:Boolean},options:{default:()=>({})}},setup(e,{expose:t}){const n=(0,u.computed)(()=>`typed-content-${e.name}`),o=(0,u.computed)(()=>({loop:e.loop,typeSpeed:parseInt(e.speed?.toString?.()),backDelay:void 0!==e.backDelay&&parseInt(e.backDelay?.toString?.())||void 0,fadeOut:e.fadeOut,strings:"string"==typeof e.string?[e.string]:e.string||void 0,...e.options})),r=(0,u.ref)(),s=(0,u.ref)(),a=()=>{if(r.value)try{r.value.destroy()}catch(In){console.log(In)}};return(0,u.watchEffect)(()=>{if(s.value&&e.string){const t=document.getElementById(n.value);try{t&&(e=>{try{a(),r.value=new Qn(`#${n.value}`,(0,u.toValue)(e))}catch(In){console.log(In)}})((0,u.toValue)(o))}catch(In){console.log(In),t&&(t.innerHTML="string"==typeof e.string?e.string:e.string.join("<br />"))}}}),(0,u.onBeforeUnmount)(()=>a()),t({typed:r,typedRef:s}),(t,o)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.tag),{id:n.value,ref_key:"typedRef",ref:s,class:"m-typing-string"},null,8,["id"]))}}),Vn=Hn,Wn=i({MBlock:()=>dn,MBtn:()=>Yt,MCol:()=>On,MColumn:()=>Rn,MContainer:()=>_n,MDialog:()=>Tt,MDialogFrame:()=>Nt,MGrid:()=>En,MHelpRow:()=>kn,MInnerLoading:()=>Pn,MRow:()=>$n,MSarIcon:()=>jn,MSarString:()=>Mn,MTooltip:()=>Nn,MTransition:()=>Dn,MTransitionGroup:()=>Ln,MTypingString:()=>Vn,default:()=>Gn}),Gn={};var Jn="0.5.35",Kn=!1,Xn=(e={},t=!1)=>{e.appName&&(_t.appName=e.appName),e.metaTags&&(_t.metaTags=e.metaTags),e.theme&&(_t.theme?t?Object.assign(_t.theme,(0,c.extend)(!0,{},_t.theme,e.theme)):Object.assign(_t.theme,e.theme):_t.theme=e.theme),e.component&&(_t.component?t?Object.assign(_t.component,(0,c.extend)(!0,{},_t.component,e.component)):Object.assign(_t.component,e.component):_t.component=e.component),e.loadingOptions&&(_t.loadingOptions?t?Object.assign(_t.loadingOptions,(0,c.extend)(!0,{},_t.loadingOptions,e.loadingOptions)):Object.assign(_t.loadingOptions,e.loadingOptions):_t.loadingOptions=e.loadingOptions)},Zn=(e,t={})=>{if(Kn)return void(process.env.DEV&&console.warn(`Plugin [${Rt}] already initialized. Skipping configuration injection.`));Xn(t),e.provide(At,_t),Object.entries(Wn).forEach(([t,n])=>{void 0===e.component(t)&&e.component(t,n)});const n=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=Qt(e.slice(5));if(t&&t in hn&&hn[t])return{icon:hn[t]}}if("function"==typeof n)return n(e)},Kn=!0},Yn={version:Jn,install:Zn};exports.MBlock=dn,exports.MBtn=Yt,exports.MCol=On,exports.MColumn=Rn,exports.MContainer=_n,exports.MDialog=Tt,exports.MDialogFrame=Nt,exports.MGrid=En,exports.MHelpRow=kn,exports.MInnerLoading=Pn,exports.MRow=$n,exports.MSarIcon=jn,exports.MSarString=Mn,exports.MTooltip=Nn,exports.MTransition=Dn,exports.MTransitionGroup=Ln,exports.MTypingString=Vn,exports.Stub=(e,t)=>{const n=on(e);return{async index(e){const o=n();return t().get(o,e)},async staticIndex(n){const o="Static"+(e?`/${e}`:"");return t().get(o,n)},export:async(e,o)=>t().post(n("Export"),e,o),exampleUrl:async e=>t().get(n("ExampleUrl"),e),async store(e,o){const r=n(),s=new FormData;return e&&nn(s,e),t().post(r,s,o)},async show(e,o){const r=n(e);return t().get(r,o)},async staticShow(n,o){const r=`Static${e?`/${e}`:""}/${n}`;return t().get(r,o)},async update(e,o,r){const s=n(e),a=new FormData;return a.append("_method","put"),o&&nn(a,o),t().post(s,a,r)},async clone(e,o,r){const s=n(`${e}/Clone`),a=new FormData;return o&&nn(a,o),t().post(s,a,r)},async destroy(e,o){const r=n(e);return t().delete(r,o)},async destroyAll(e,o){const r=n("DestroyAll");return t().post(r,{ids:e||[]},o)},getUploadAttachmentsUrl:e=>n(`${e}/Attachment/Upload`),async uploadAttachments(e,o,r){const s=n(`${e}/Attachment/Upload`);return t().post(s,o,r)},async deleteAttachment(e,o,r){const s=n(`${e}/Attachment/${o}/Delete`);return t().delete(s,r)},async updateAttachment(e,o,r,s){const a=n(`${e}/Attachment/${o}/Update`);return t().post(a,r,s)}}},exports.StubUrl=on,exports.appendArray=nn,exports.calculateAspectRatio=(e,t)=>{e=Number(e),t=Number(t);const n=(e,t)=>0===t?e:n(t,e%t),o=n(e,t);return[e/t,`${e/o}:${t/o}`]},exports.camelCase=Qt,exports.colorIsDark=e=>{const{luminosity:t}=c.colors;return t(e)<.5},exports.colorStyle=(e,t=!1)=>{if(!e)return"";let n=e;return e.startsWith("#")||"transparent"===e||(n=xn(e)),`${t?"background-color":"color"}: ${n};`},exports.convertToArabicNumbers=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},exports.copyText=async e=>{const t=null!=e?String(e):"";return await(0,c.copyToClipboard)(t),t},exports.darkenColor=en,exports.default=Yn,exports.detectWebPlatform=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"},exports.dimension=e=>{if(!e)return null;const t=e=>null!=e,n=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,o=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,r=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(r)&&t(o)?0===o?null:r/o:t(n)&&t(o)?n*o:t(n)&&t(r)?0===n?null:r/n:null},exports.downloadFromResponse=(e,t)=>new Promise((n,o)=>{const r=e=>o(e??{status:!1,code:"unknown"}),s=e=>n({status:!0,response:e});try{if(!e)return void r({code:"no_response"});if(e?.data?.data?.url){const n=e?.data?.data?.url;if(t)return t(n,e),void s(e);const o=document.createElement("a");return o.setAttribute("href",n),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),void s(e)}const n=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!n)return void r({code:"no_file_name"});const o=new Blob([e.data]),a=window.URL.createObjectURL(o),i=document.createElement("a");if(!i||!a)return void r({code:"no_file_url"});i.href=a,i.setAttribute("download",n),document.body.appendChild(i),i.click(),s(e),setTimeout(()=>{try{document.body.removeChild(i),URL.revokeObjectURL(a)}catch(In){console.log(In),In?.message&&alert(In.message)}},3e3)}catch(In){console.log(In),r(In)}}),exports.flipChoice=e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n].split("|");o.length>=2?t[n]=[o[1],o[0]].join("|"):t[n]=e[n]}return t},exports.formatMoney=ln,exports.fromArabicNumber=wn,exports.iconSet=fn,exports.icons=hn,exports.install=Zn,exports.isElementInViewport=sn,exports.isKsaMobile=e=>{if(!e)return!1;const t=wn(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},exports.kebabCase=Vt,exports.lightenColor=tn,exports.makeUrl=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},exports.nl2br=(e,t=!1)=>{if(!e)return"";const n=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,n)},exports.openWindow=rn,exports.pascalCase=Ht,exports.plural=yn,exports.prettyPrint=e=>JSON.stringify(e,null,3).replace(/&/g,"&amp;").replace(/\\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,n,o,r)=>{let s=t||"";return n&&(s=s+'<span class="json-key" style="color: brown">'+n.replace(/[": ]/g,"")+"</span>: "),o&&(s=s+(o.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+o+"</span>"),s+(r||"")}),exports.scrollToBottom=async(e,t,n)=>{const{setVerticalScrollPosition:o,getScrollHeight:r}=c.scroll;e||(e=window);const s=e&&"string"==typeof e?document.querySelector(e)||window:e;o(s,n=n||r(s),t=t||600)},exports.scrollToElement=an,exports.scrollToElementFromErrors=async(e,t,n)=>{if(!e)return;const o=Object.entries(e),r=o.map(([e])=>e);let s=[];if(o.length>0&&(s=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>r.includes(e?.getAttribute("data-input-name")))),s.length>0)for(const a of s){const e=o.find(e=>e[0]===a.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await an(a||`[name='${t}']`,{target:n});break}}else for(const[a,i]of o)if((i&&Array.isArray(i)?i[0]:i)?.toString?.()?.length){if(t)await an(t,{target:n});else{const e=`[data-input-name='${a}']`;await an(document.querySelector(e)||`[name='${a}']`,{target:n})}break}},exports.setCss=(e,t,n)=>{if((0,c.setCssVar)(e,t,n||document.documentElement),"primary"===e){const e=tn(t,50),n=en(t,10);(0,c.setCssVar)("scrollbar-track",e),(0,c.setCssVar)("scrollbar-hover",n)}},exports.setDefaults=Xn,exports.shuffle=e=>{const t=[...e||[]];for(let n=t.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1));[t[n],t[e]]=[t[e],t[n]]}return t},exports.singular=bn,exports.snakeCase=Wt,exports.sortNumberFormatted=(e,t)=>(parseFloat(vn(e).replace(/[^\d.]/g,""))||0)-(parseFloat(vn(t).replace(/[^\d.]/g,""))||0),exports.strBefore=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",exports.toAlphaNumerals=(e,t={})=>{const{uppercase:n=!0,startFromZero:o=!1}=t,r=parseInt(e?.toString()||"0",10)||0;if(r<=0&&!o)return"";if(o&&0===r)return n?"A":"a";let s=o?r+1:r,a="";for(;s>0;){s--;const e=s%26+(n?65:97);a=String.fromCharCode(e)+a,s=Math.floor(s/26)}return a},exports.toNumber=vn,exports.toNumberFormat=(e=null,t)=>{if(null==e||""===e)return"";const n=vn(e).split("."),o=/(\d+)(\d{3})/;for(;o.test(n[0]);)n[0]=n[0].replace(o,"$1,$2");let r=n.join(".");return t&&(r=`${r} ${t}`),r},exports.ucFirst=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},exports.uniq=un,exports.uniqBy=(e,t)=>{const n=new Set;return e.filter(e=>{if(!e)return!1;const o=e[t];return!n.has(o)&&(n.add(o),!0)})},exports.useApi=()=>({instance:Ot.instance,services:Ot.services,getService:e=>{const t=(0,u.toValue)(e);return Ot.services[t]}}),exports.useContainer=pn,exports.useMyth=cn,exports.useMythMeta=function(e,t){(0,c.useMeta)(()=>{const n=(0,u.toValue)(e)||"",o=(0,u.toValue)(t)||{},r=o.appName;r&&(_t.appName=r);const s=(0,u.toValue)(_t.appName)||"MyTh",a=(0,u.toValue)(_t.metaTags)||{},{...i}=o;return{title:n,titleTemplate:e=>e?e.toLowerCase()===s.toLowerCase()?s:`${s} | ${e}`:s,...(0,c.extend)(!0,{},a,i)}})},exports.useTransition=Fn,exports.veeRules=Cn,exports.version=Jn,exports.wordsToSingle=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},exports.wordsWithThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},exports.wordsWithoutThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e};
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { App } from 'vue';
2
+ import { AxiosHeaderValue } from 'axios';
2
3
  import { AxiosInstance } from 'axios';
3
4
  import { AxiosRequestConfig } from 'axios';
4
5
  import { AxiosResponse } from 'axios';
@@ -401,8 +402,75 @@ declare type __VLS_WithSlots_9<T, S> = T & {
401
402
  };
402
403
  };
403
404
 
405
+ export declare type ApiErrorResource = Record<string, string[]>;
406
+
407
+ export declare interface ApiErrorResponse {
408
+ success?: boolean;
409
+ message?: string | null;
410
+ meta?: any;
411
+ data?: any;
412
+ errors?: any;
413
+ }
414
+
415
+ export declare type ApiErrorsResource = ApiErrorResource[];
416
+
417
+ export declare type ApiHeaderKey = 'X-Requested-With' | 'X-App' | 'X-App-Locale' | 'X-App-Mode' | 'X-App-Name' | 'X-App-Version' | 'X-App-Build' | 'X-Socket-ID' | '_locale' | string;
418
+
419
+ export declare type ApiHeaderValue = AxiosHeaderValue;
420
+
421
+ export declare type ApiInstance = AxiosInstance;
422
+
423
+ export declare type ApiMetaResource = {
424
+ current_page: number | null;
425
+ last_page: number | null;
426
+ total: number | null;
427
+ };
428
+
429
+ /** API Configuration */
430
+ /** API Resources */
431
+ export declare type ApiModelResource<T extends Record<string, any> = Record<string, any>> = {
432
+ id: string | number;
433
+ value: string | number;
434
+ label?: string;
435
+ } & T;
436
+
437
+ /** API Configuration */
438
+ export declare interface ApiOptions {
439
+ headers?: Record<string, ApiHeaderKey>;
440
+ }
441
+
442
+ /** API Resources */
443
+ /** API Responses */
444
+ export declare type ApiResponse<T = ApiModelResource, D = any, H = object> = AxiosResponse<T, D, H> & {
445
+ _data: T;
446
+ _message: string | null;
447
+ _meta: ApiMetaResource;
448
+ _success: boolean;
449
+ _errors?: ApiErrorsResource;
450
+ };
451
+
452
+ export declare type ApiServiceMethods = IndexMethods & PostMethods & ShowMethods & UpdateMethods & AttachmentMethods;
453
+
454
+ export declare type ApiServiceSchema = StrictBase & AuthBase & {
455
+ [K: string]: ApiServiceSchema;
456
+ };
457
+
404
458
  export declare const appendArray: (formData: FormData, values: File | Blob | Record<string, any> | any, name?: string | null) => FormData;
405
459
 
460
+ export declare type AttachmentMethods = {
461
+ getUploadAttachmentsUrl: <D = any>(id: IdParam, config?: AxiosRequestConfig<D>) => string;
462
+ updateAttachment: <T = any, D = any>(id: IdParam, fileId: IdParam, config?: AxiosRequestConfig<D>) => Promise<AxiosResponse<T>>;
463
+ deleteAttachment: <T = any, D = any>(id: IdParam, fileId: IdParam, config?: AxiosRequestConfig<D>) => Promise<AxiosResponse<T>>;
464
+ };
465
+
466
+ export declare type AuthBase = {
467
+ auth: {
468
+ login: (data: any, config?: AxiosRequestConfig) => Promise<AxiosResponse<ApiModelResource>>;
469
+ register: (data: any, config?: AxiosRequestConfig) => Promise<AxiosResponse<ApiModelResource>>;
470
+ checkToken: (config?: AxiosRequestConfig) => Promise<AxiosResponse<ApiModelResource>>;
471
+ };
472
+ };
473
+
406
474
  export declare interface BaseMTransitionProps {
407
475
  /**
408
476
  * The animation class applied when the element enters the visible state.
@@ -533,6 +601,9 @@ export declare const copyText: (text: string | number | null | undefined) => Pro
533
601
 
534
602
  export declare const darkenColor: (color: string, percent?: number) => string;
535
603
 
604
+ /** API Responses */
605
+ export declare type DataParam = Record<string, any>;
606
+
536
607
  declare const _default: {
537
608
  version: string;
538
609
  install: (app: App, options?: MythPluginConfig) => void;
@@ -571,6 +642,13 @@ export declare type DownloadFromResponseError = {
571
642
  status: boolean;
572
643
  };
573
644
 
645
+ export declare type FlexibleApiCall = {
646
+ <T = any, D = any>(config?: AxiosRequestConfig<D>): Promise<AxiosResponse<T>>;
647
+ <T = any, D = any>(data: any, config?: AxiosRequestConfig<D>): Promise<AxiosResponse<T>>;
648
+ <T = any, D = any>(id: string | number, config?: AxiosRequestConfig<D>): Promise<AxiosResponse<T>>;
649
+ <T = any, D = any>(id: string | number, data: any, config?: AxiosRequestConfig<D>): Promise<AxiosResponse<T>>;
650
+ };
651
+
574
652
  /**
575
653
  * Flips/inverts pipeline-separated choice values within an object mapping.
576
654
  */
@@ -623,6 +701,16 @@ export declare const icons: {
623
701
 
624
702
  export declare const iconSet = "myth-";
625
703
 
704
+ export declare type IdParam = string | number;
705
+
706
+ export declare type IndexFn = <T = any, D = any>(config?: AxiosRequestConfig<D>) => Promise<AxiosResponse<T>>;
707
+
708
+ export declare type IndexKeys = 'index' | 'staticIndex' | 'exampleUrl';
709
+
710
+ export declare type IndexMethods = {
711
+ [K in IndexKeys]: IndexFn;
712
+ };
713
+
626
714
  export declare const install: (app: App, options?: MythPluginConfig) => void;
627
715
 
628
716
  /**
@@ -1292,6 +1380,14 @@ export { pascalCase }
1292
1380
 
1293
1381
  export declare const plural: typeof default_3.plural;
1294
1382
 
1383
+ export declare type PostFn = <T = any, D = any>(data: DataParam, config?: AxiosRequestConfig<D>) => Promise<AxiosResponse<T>>;
1384
+
1385
+ export declare type PostKeys = 'store' | 'export';
1386
+
1387
+ export declare type PostMethods = {
1388
+ [K in PostKeys]: PostFn;
1389
+ };
1390
+
1295
1391
  /**
1296
1392
  * Pretty-prints a JSON object into syntax-highlighted HTML spans.
1297
1393
  */
@@ -1361,6 +1457,14 @@ export declare const setCss: typeof setCssVar;
1361
1457
 
1362
1458
  export declare const setDefaults: (options?: MythPluginConfig, mergeDefaults?: boolean) => void;
1363
1459
 
1460
+ export declare type ShowFn = <T = any, D = any>(id: IdParam, config?: AxiosRequestConfig<D>) => Promise<AxiosResponse<T>>;
1461
+
1462
+ export declare type ShowKeys = 'show' | 'staticShow' | 'destroy' | 'destroyAll';
1463
+
1464
+ export declare type ShowMethods = {
1465
+ [K in ShowKeys]: ShowFn;
1466
+ };
1467
+
1364
1468
  export declare const shuffle: <T = any>(array: readonly T[]) => T[];
1365
1469
 
1366
1470
  export declare const singular: typeof default_3.singular;
@@ -1379,6 +1483,8 @@ export declare type SpinnerType = 'audio' | 'ball' | 'bars' | 'box' | 'clock' |
1379
1483
  */
1380
1484
  export declare const strBefore: (str: string, needle?: string) => string;
1381
1485
 
1486
+ export declare type StrictBase = Required<ApiServiceMethods> & FlexibleApiCall;
1487
+
1382
1488
  export declare const Stub: (baseUrl: UrlType, axios: () => AxiosInstance) => HelpersStubSchema;
1383
1489
 
1384
1490
  export declare const StubUrl: (group?: UrlType) => ((segments?: UrlType, parent?: UrlType) => string);
@@ -1453,8 +1559,22 @@ export declare const uniq: <T>(array: T[]) => T[];
1453
1559
 
1454
1560
  export declare const uniqBy: <T>(array: T[], key: keyof T) => T[];
1455
1561
 
1562
+ export declare type UpdateFn = <T = any, D = any>(id: IdParam, data: DataParam, config?: AxiosRequestConfig<D>) => Promise<AxiosResponse<T>>;
1563
+
1564
+ export declare type UpdateKeys = 'update' | 'clone' | 'uploadAttachments';
1565
+
1566
+ export declare type UpdateMethods = {
1567
+ [K in UpdateKeys]: UpdateFn;
1568
+ };
1569
+
1456
1570
  export declare type UrlType = string | number | any;
1457
1571
 
1572
+ export declare const useApi: () => {
1573
+ instance: AxiosInstance;
1574
+ services: Record<string, ApiServiceSchema>;
1575
+ getService: <K extends string>(name: MaybeRefOrGetter<K>) => ApiServiceSchema;
1576
+ };
1577
+
1458
1578
  export declare const useContainer: () => {
1459
1579
  container: MContainerProps;
1460
1580
  };
@@ -8340,7 +8460,7 @@ export declare const veeRules: {
8340
8460
  requiredColor: (v: any) => boolean;
8341
8461
  };
8342
8462
 
8343
- export declare const version = "0.5.32";
8463
+ export declare const version = "0.5.35";
8344
8464
 
8345
8465
  /**
8346
8466
  * Converts Arabic words to a relative singular form by prepending "ال" and appending "ي".
@@ -8362,6 +8482,25 @@ export declare const wordsWithThe: (words: string, locale: string) => string;
8362
8482
 
8363
8483
  export { }
8364
8484
 
8485
+
8486
+
8487
+ declare module 'axios' {
8488
+ export interface AxiosResponse<T = ApiModelResource> {
8489
+ _data: T
8490
+ _message: string
8491
+ _meta: any
8492
+ _success: boolean
8493
+ _errors: any | undefined
8494
+ }
8495
+ export interface AxiosError {
8496
+ _data: any
8497
+ _message: string
8498
+ _meta: any
8499
+ _success: boolean
8500
+ _errors: any
8501
+ }
8502
+ }
8503
+
8365
8504
  declare namespace NodeJS {
8366
8505
  interface ProcessEnv {
8367
8506
  DEV: boolean