Files
machartaa_admin_dist/dist/assets/index-fe7e9f3a.js
T

121 lines
399 KiB
JavaScript
Raw Normal View History

2026-06-18 17:05:42 +03:30
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ea(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const we={},qn=[],dt=()=>{},Dh=()=>!1,Fh=/^on[^a-z]/,Xs=e=>Fh.test(e),ta=e=>e.startsWith("onUpdate:"),Te=Object.assign,na=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Uh=Object.prototype.hasOwnProperty,fe=(e,t)=>Uh.call(e,t),K=Array.isArray,Wn=e=>ns(e)==="[object Map]",nr=e=>ns(e)==="[object Set]",ol=e=>ns(e)==="[object Date]",se=e=>typeof e=="function",Se=e=>typeof e=="string",Fr=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Cu=e=>ye(e)&&se(e.then)&&se(e.catch),Ou=Object.prototype.toString,ns=e=>Ou.call(e),Bh=e=>ns(e).slice(8,-1),Tu=e=>ns(e)==="[object Object]",ra=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ss=ea(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hh=/-(\w)/g,St=Zs(e=>e.replace(Hh,(t,n)=>n?n.toUpperCase():"")),qh=/\B([A-Z])/g,xn=Zs(e=>e.replace(qh,"-$1").toLowerCase()),ei=Zs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ri=Zs(e=>e?`on${ei(e)}`:""),Ur=(e,t)=>!Object.is(e,t),Cs=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ns=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wh=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let al;const ao=()=>al||(al=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ti(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?Gh(r):ti(r);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Se(e))return e;if(ye(e))return e}}const zh=/;(?![^(]*\))/g,Vh=/:([^]+)/,Kh=/\/\*[^]*?\*\//g;function Gh(e){const t={};return e.replace(Kh,"").split(zh).forEach(n=>{if(n){const r=n.split(Vh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ni(e){let t="";if(Se(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=ni(e[n]);r&&(t+=r+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Y1(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Se(t)&&(e.class=ni(t)),n&&(e.style=ti(n)),e}const Jh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yh=ea(Jh);function xu(e){return!!e||e===""}function Qh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Cn(e[r],t[r]);return n}function Cn(e,t){if(e===t)return!0;let n=ol(e),r=ol(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Fr(e),r=Fr(t),n||r)return e===t;if(n=K(e),r=K(t),n||r)return n&&r?Qh(e,t):!1;if(n=ye(e),r=ye(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!Cn(e[o],t[o]))return!1}}return String(e)===String(t)}function sa(e,t){return e.findIndex(n=>Cn(n,t))}const Q1=e=>Se(e)?e:e==null?"":K(e)||ye(e)&&(e.toString===Ou||!se(e.toString))?JSON.stringify(e,Pu,2):String(e),Pu=(e,t)=>t&&t.__v_isRef?Pu(e,t.value):Wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:nr(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!K(t)&&!Tu(t)?String(t):t;let Xe;class Au{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.clean
2026-06-16 18:24:48 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ql(e,t){return Hm(e)||qm(e,t)||$f(e,t)||Wm()}function zm(e){if(Array.isArray(e))return _o(e)}function Vm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Km(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2026-06-18 17:05:42 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qs(e){return zm(e)||Vm(e)||$f(e)||Km()}var Gm=function(t){return t!=null&&t!==""};const Jm=Gm;var Ym=function(t){for(var n=Object.keys(t),r={},s={},i={},o=0,a=n.length;o<a;o++){var l=n[o];Lm(l)?(r[l[2].toLowerCase()+l.slice(3)]=t[l],s[l]=t[l]):i[l]=t[l]}return{onEvents:s,events:r,extraAttrs:i}},Qm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r={},s=/;(?![^(]*\))/g,i=/:(.+)/;return Nt(t)==="object"?t:(t.split(s).forEach(function(o){if(o){var a=o.split(i);if(a.length>1){var l=n?ka(a[0].trim()):a[0].trim();r[l]=a[1].trim()}}}),r)},vC=function(t,n){return t[n]!==void 0},xs=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(t)?t:[t],s=[];return r.forEach(function(i){Array.isArray(i)?s.push.apply(s,qs(e(i,n))):i&&i.type===Ie?s.push.apply(s,qs(e(i.children,n))):i&&Ct(i)?n&&!Mf(i)?s.push(i):n||s.push(i):Jm(i)&&s.push(i)}),s},yC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Ct(t))return t.type===Ie?n==="default"?xs(t.children):[]:t.children&&t.children[n]?xs(t.children[n](r)):[];var s=t.$slots[n]&&t.$slots[n](r);return xs(s)},bC=function(t){for(var n,r=(t==null||(n=t.vnode)===null||n===void 0?void 0:n.el)||t&&(t.$el||t);r&&!r.tagName;)r=r.nextSibling;return r},_C=function(t){var n={};if(t.$&&t.$.vnode){var r=t.$.vnode.props||{};Object.keys(t.$props).forEach(function(a){var l=t.$props[a],c=Fm(a);(l!==void 0||c in r)&&(n[a]=l)})}else if(Ct(t)&&Nt(t.type)==="object"){var s=t.props||{},i={};Object.keys(s).forEach(function(a){i[ka(a)]=s[a]});var o=t.type.props||{};Object.keys(o).forEach(function(a){var l=Bm(o,i,a,i[a]);(l!==void 0||a in i)&&(n[a]=l)})}return n},wC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=void 0;if(t.$){var o=t[n];if(o!==void 0)return typeof o=="function"&&s?o(r):o;i=t.$slots[n],i=s&&i?i(r):i}else if(Ct(t)){var a=t.props&&t.props[n];if(a!==void 0&&t.props!==null)return typeof a=="function"&&s?a(r):a;t.type===Ie?i=t.children:t.children&&t.children[n]&&(i=t.children[n],i=s&&i?i(r):i)}return Array.isArray(i)&&(i=xs(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function EC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=re(re({},n),e.$attrs):n=re(re({},n),e.props),Ym(n)[t?"onEvents":"events"]}function SC(e){var t=(Ct(e)?e.props:e.$attrs)||{},n=t.class||{},r={};return typeof n=="string"?n.split(" ").forEach(function(s){r[s.trim()]=!0}):Array.isArray(n)?or(n).split(" ").forEach(function(s){r[s.trim()]=!0}):r=re(re({},r),n),r}function CC(e,t){var n=(Ct(e)?e.props:e.$attrs)||{},r=n.style||{};if(typeof r=="string")r=Qm(r,t);else if(t&&r){var s={};return Object.keys(r).forEach(function(i){return s[ka(i)]=r[i]}),s}return r}function OC(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Mf(e){return e&&(e.type===et||e.type===Ie&&e.children.length===0||e.type===ir&&e.children.trim()==="")}function TC(e){return e&&e.type===ir}function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,qs(n)):(n==null?void 0:n.type)===Ie?t.push.apply(t,qs(Ra(n.children))):t.push(n)}),t.filter(function(n){return!Mf(n)})}function xC(e){if(e){var t=Ra(e);return t.length?t:void 0}else return e}function PC(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&Nt(e.type)!=="symbol"}function AC(e,t){var n,r,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=t[s])!==null&&n!==void 0?n:(r=e[s])===null||r===void 0?void 0:r.call(e)}var Xm=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)
* `);return c.length=0,n===!1?(Fe(u),s):u}}return s}function tt(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(s){return s!==void 0||this.default?Qn(s)||Pn(this,s,!0)===!0?(this.default=Yn(s)?function(){return[].concat(s)}:Tn(s)?function(){return Object.assign({},s)}:s,this):(Fe(this._vueTypes_name+' - invalid default value: "'+s+'"'),this):this}}}),r=n.validator;return Qn(r)&&(n.validator=ja(r,n)),n}function Ot(e,t){var n=tt(e,t);return Object.defineProperty(n,"validate",{value:function(r){return Qn(this.validator)&&Fe(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
`+JSON.stringify(this)),this.validator=ja(r,this),this}})}function nc(e,t,n){var r,s,i=(r=t,s={},Object.getOwnPropertyNames(r).forEach(function(f){s[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},s));if(i._vueTypes_name=e,!Tn(n))return i;var o,a,l=n.validator,c=Wf(n,["validator"]);if(Qn(l)){var u=i.validator;u&&(u=(a=(o=u).__original)!==null&&a!==void 0?a:o),i.validator=ja(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,i)}return Object.assign(i,c)}function gi(e){return e.replace(/^(?!\s*$)/gm," ")}var fv=function(){return Ot("any",{})},dv=function(){return Ot("function",{type:Function})},hv=function(){return Ot("boolean",{type:Boolean})},pv=function(){return Ot("string",{type:String})},gv=function(){return Ot("number",{type:Number})},mv=function(){return Ot("array",{type:Array})},vv=function(){return Ot("object",{type:Object})},yv=function(){return tt("integer",{type:Number,validator:function(e){return uv(e)}})},bv=function(){return tt("symbol",{validator:function(e){return typeof e=="symbol"}})};function _v(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return tt(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||Fe(this._vueTypes_name+" - "+t),r}})}function wv(e){if(!Yn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,s){if(s!=null){var i=s.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return tt("oneOf",{type:n.length>0?n:void 0,validator:function(r){var s=e.indexOf(r)!==-1;return s||Fe(t),s}})}function Ev(e){if(!Yn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var s=e[r];if(Gf(s)){if(zs(s)&&s._vueTypes_name==="oneOf"){n=n.concat(s.type);continue}if(Qn(s.validator)&&(t=!0),s.type!==!0&&s.type){n=n.concat(s.type);continue}}n.push(s)}return n=n.filter(function(i,o){return n.indexOf(i)===o}),tt("oneOfType",t?{type:n,validator:function(i){var o=[],a=e.some(function(l){var c=Pn(zs(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&o.push(c),c===!0});return a||Fe("oneOfType - provided value does not match any of the "+o.length+` passed-in validators:
2026-06-16 18:24:48 +03:30
`+gi(o.join(`
2026-06-07 15:06:40 +03:30
`))),a}}:{type:n})}function Sv(e){return tt("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(s){return(n=Pn(e,s,!0))===!0});return r||Fe(`arrayOf - value validation error:
2026-06-16 18:24:48 +03:30
`+gi(n)),r}})}function Cv(e){return tt("instanceOf",{type:e})}function Ov(e){return tt("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(s){return(n=Pn(e,t[s],!0))===!0});return r||Fe(`objectOf - value validation error:
`+gi(n)),r}})}function Tv(e){var t=Object.keys(e),n=t.filter(function(s){var i;return!!(!((i=e[s])===null||i===void 0)&&i.required)}),r=tt("shape",{type:Object,validator:function(s){var i=this;if(!Tn(s))return!1;var o=Object.keys(s);if(n.length>0&&n.some(function(l){return o.indexOf(l)===-1})){var a=n.filter(function(l){return o.indexOf(l)===-1});return Fe(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return o.every(function(l){if(t.indexOf(l)===-1)return i._vueTypes_isLoose===!0||(Fe('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Pn(e[l],s[l],!0);return typeof c=="string"&&Fe('shape - "'+l+`" property validation error:
2026-06-18 17:05:42 +03:30
`+gi(c)),c===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var vt=function(){function e(){}return e.extend=function(t){var n=this;if(Yn(t))return t.forEach(function(f){return n.extend(f)}),this;var r=t.name,s=t.validate,i=s!==void 0&&s,o=t.getter,a=o!==void 0&&o,l=Wf(t,["name","validate","getter"]);if(Yr(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var c,u=l.type;return zs(u)?(delete l.type,Object.defineProperty(this,r,a?{get:function(){return nc(r,u,l)}}:{value:function(){var f,d=nc(r,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=a?{get:function(){var f=Object.assign({},l);return i?Ot(r,f):tt(r,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=i?Ot(r,h):tt(r,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,c))},Hf(e,null,[{key:"any",get:function(){return fv()}},{key:"func",get:function(){return dv().def(this.defaults.func)}},{key:"bool",get:function(){return hv().def(this.defaults.bool)}},{key:"string",get:function(){return pv().def(this.defaults.string)}},{key:"number",get:function(){return gv().def(this.defaults.number)}},{key:"array",get:function(){return mv().def(this.defaults.array)}},{key:"object",get:function(){return vv().def(this.defaults.object)}},{key:"integer",get:function(){return yv().def(this.defaults.integer)}},{key:"symbol",get:function(){return bv()}}]),e}();function Jf(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return qf(r,n),Hf(r,null,[{key:"sensibleDefaults",get:function(){return Ps({},this.defaults)},set:function(s){this.defaults=s!==!1?Ps({},s!==!0?s:e):{}}}]),r}(vt)).defaults=Ps({},e),t}vt.defaults={},vt.custom=_v,vt.oneOf=wv,vt.instanceOf=Cv,vt.oneOfType=Ev,vt.arrayOf=Sv,vt.objectOf=Ov,vt.shape=Tv,vt.utils={validate:function(e,t){return Pn(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Ot(e,t):tt(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return qf(t,e),t})(Jf());var Yf=Jf({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Yf.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function jC(e){return e.default=void 0,e}const rc=Yf;var xv=["image","description","imageStyle","class"],Qf=M(ov,null,null),Xf=M(av,null,null),ar=function(t,n){var r,s=n.slots,i=s===void 0?{}:s,o=n.attrs,a=mi("empty",t),l=a.direction,c=a.prefixCls,u=c.value,f=re(re({},t),o),d=f.image,h=d===void 0?Qf:d,p=f.description,v=p===void 0?((r=i.description)===null||r===void 0?void 0:r.call(i))||void 0:p,b=f.imageStyle,w=f.class,y=w===void 0?"":w,E=Nf(f,xv);return M(Ff,{componentName:"Empty",children:function(N){var D,U=typeof v<"u"?v:N.description,k=typeof U=="string"?U:"empty",I=null;return typeof h=="string"?I=M("img",{alt:k,src:h},null):I=h,M("div",re({class:or(u,y,(D={},Dt(D,"".concat(u,"-normal"),h===Xf),Dt(D,"".concat(u,"-rtl"),l.value==="rtl"),D))},E),[M("div",{class:"".concat(u,"-image"),style:b},[I]),U&&M("p",{class:"".concat(u,"-description")},[U]),i.default&&M("div",{class:"".concat(u,"-footer")},[Ra(i.default())])])}},null)};ar.displayName="AEmpty";ar.PRESENTED_IMAGE_DEFAULT=Qf;ar.PRESENTED_IMAGE_SIMPLE=Xf;ar.inheritAttrs=!1;ar.props={prefixCls:String,image:rc.any,description:rc.any,imageStyle:{type:Object,default:void 0}};const mr=Lf(ar);var Pv=function(t){var n=mi("empty",t),r=n.prefixCls,s=function(o){switch(o){case"Table":case"List":return M(mr,{image:mr.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return M(mr,{image:mr.PRESENTED_IMAGE_SIMPLE,class
2026-06-07 15:06:40 +03:30
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2026-06-18 17:05:42 +03:30
`,vc=!1,oy=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iy;oi(function(){vc||(typeof window<"u"&&window.document&&window.document.documentElement&&ry(t,{prepend:!0}),vc=!0)})},ay=["icon","primaryColor","secondaryColor"];function ly(e,t){if(e==null)return{};var n=cy(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cy(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){uy(e,s,n[s])})}return e}function uy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fy(e){var t=e.primaryColor,n=e.secondaryColor;Rr.primaryColor=t,Rr.secondaryColor=n||od(t),Rr.calculated=!!n}function dy(){return ks({},Rr)}var lr=function(t,n){var r=ks({},t,n.attrs),s=r.icon,i=r.primaryColor,o=r.secondaryColor,a=ly(r,ay),l=Rr;if(i&&(l={primaryColor:i,secondaryColor:o||od(i)}),oy(),mc(s),!mc(s))return null;var c=s;return c&&typeof c.icon=="function"&&(c=ks({},c,{icon:c.icon(l.primaryColor,l.secondaryColor)})),To(c.icon,"svg-".concat(c.name),ks({},a,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};lr.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};lr.inheritAttrs=!1;lr.displayName="IconBase";lr.getTwoToneColors=dy;lr.setTwoToneColors=fy;const Ia=lr;function hy(e,t){return vy(e)||my(e,t)||gy(e,t)||py()}function py(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2026-06-07 15:06:40 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gy(e,t){if(e){if(typeof e=="string")return yc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yc(e,t)}}function yc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function my(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function vy(e){if(Array.isArray(e))return e}function ld(e){var t=ad(e),n=hy(t,2),r=n[0],s=n[1];return Ia.setTwoToneColors({primaryColor:r,secondaryColor:s})}function yy(){var e=Ia.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var by=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _y(e,t){return Cy(e)||Sy(e,t)||Ey(e,t)||wy()}function wy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2026-06-18 17:05:42 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ey(e,t){if(e){if(typeof e=="string")return bc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bc(e,t)}}function bc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Cy(e){if(Array.isArray(e))return e}function _c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){xo(e,s,n[s])})}return e}function xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oy(e,t){if(e==null)return{};var n=Ty(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ty(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}ld("#1890ff");var cr=function(t,n){var r,s=_c({},t,n.attrs),i=s.class,o=s.icon,a=s.spin,l=s.rotate,c=s.tabindex,u=s.twoToneColor,f=s.onClick,d=Oy(s,by),h=(r={anticon:!0},xo(r,"anticon-".concat(o.name),!!o.name),xo(r,i,i),r),p=a===""||a||o.name==="loading"?"anticon-spin":"",v=c;v===void 0&&f&&(v=-1,d.tabindex=v);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=ad(u),y=_y(w,2),E=y[0],C=y[1];return M("span",_c({role:"img","aria-label":o.name},d,{onClick:f,class:h}),[M(Ia,{class:p,icon:o,primaryColor:E,secondaryColor:C,style:b},null)])};cr.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};cr.displayName="AntdIcon";cr.inheritAttrs=!1;cr.getTwoToneColor=yy;cr.setTwoToneColor=ld;const Tt=cr;function wc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){xy(e,s,n[s])})}return e}function xy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $a=function(t,n){var r=wc({},t,n.attrs);return M(Tt,wc({},r,{icon:Dv}),null)};$a.displayName="LoadingOutlined";$a.inheritAttrs=!1;const Py=$a;var Ay={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const ky=Ay;function Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){Ry(e,s,n[s])})}return e}function Ry(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ma=function(t,n){var r=Ec({},t,n.attrs);return M(Tt,Ec({},r,{icon:ky}),null)};Ma.displayName="ExclamationCircleFilled";Ma.inheritAttrs=!1;const jy=Ma;var Iy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusa
2026-06-07 15:06:40 +03:30
:root {
`.concat(l.join(`
`),`
}
2026-06-18 17:05:42 +03:30
`),"".concat(Mb,"-dynamic-theme")):$b(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var Pd=Symbol("GlobalFormContextKey"),Nb=function(t){En(Pd,t)},DC=function(){return Ne(Pd,{validateMessages:ie(function(){})})},Db=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},Fb="ant";function Vn(){return Ze.prefixCls||Fb}var Ro=Ve({}),Ad=Ve({}),Ze=Ve({});ci(function(){On(Ze,Ro,Ad),Ze.prefixCls=Vn(),Ze.getPrefixCls=function(e,t){return t||(e?"".concat(Ze.prefixCls,"-").concat(e):Ze.prefixCls)},Ze.getRootPrefixCls=function(e,t){return e||(Ze.prefixCls?Ze.prefixCls:t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):Vn())}});var zi,Ub=function(t){zi&&zi(),zi=ci(function(){On(Ad,Ve(t)),On(Ze,Ve(t))}),t.theme&&Lb(Vn(),t.theme)},Bb=function(){return{getPrefixCls:function(n,r){return r||(n?"".concat(Vn(),"-").concat(n):Vn())},getRootPrefixCls:function(n,r){return n||(Ze.prefixCls?Ze.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):Vn())}}},jr=Ft({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:Db(),setup:function(t,n){var r=n.slots,s=function(f,d){var h=t.prefixCls,p=h===void 0?"ant":h;return d||(f?"".concat(p,"-").concat(f):p)},i=function(f){var d=t.renderEmpty||r.renderEmpty||Zf;return d(f)},o=function(f,d){var h=t.prefixCls;if(d)return d;var p=h||s("");return f?"".concat(p,"-").concat(f):p},a=Ve(re(re({},t),{},{getPrefixCls:o,renderEmpty:i}));Object.keys(t).forEach(function(u){$t(function(){return t[u]},function(){a[u]=t[u]})}),t.notUpdateGlobalConfig||(On(Ro,a),$t(a,function(){On(Ro,a)}));var l=ie(function(){var u={};if(t.locale){var f,d;u=((f=t.locale.Form)===null||f===void 0?void 0:f.defaultValidateMessages)||((d=Ws.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||{}}return t.form&&t.form.validateMessages&&(u=re(re({},u),t.form.validateMessages)),u});Nb({validateMessages:l}),En("configProvider",a);var c=function(f){var d;return M(jv,{locale:t.locale||f,ANT_MARK__:wo},{default:function(){return[(d=r.default)===null||d===void 0?void 0:d.call(r)]}})};return ci(function(){t.direction&&(Rs.config({rtl:t.direction==="rtl"}),kb.config({rtl:t.direction==="rtl"}))}),function(){return M(Ff,{children:function(f,d,h){return c(h)}},null)}}}),Hb=Ve({getPrefixCls:function(t,n){return n||(t?"ant-".concat(t):"ant")},renderEmpty:Zf,direction:"ltr"});jr.config=Ub;jr.install=function(e){e.component(jr.name,jr)};const kd=jr,mi=function(e,t){var n=Ne("configProvider",Hb),r=ie(function(){return n.getPrefixCls(e,t.prefixCls)}),s=ie(function(){var y;return(y=t.direction)!==null&&y!==void 0?y:n.direction}),i=ie(function(){return n.getPrefixCls()}),o=ie(function(){return n.autoInsertSpaceInButton}),a=ie(function(){return n.renderEmpty}),l=ie(function(){return n.space}),c=ie(function(){return n.pageHeader}),u=ie(function(){return n.form}),f=ie(function(){return t.getTargetContainer||n.getTargetContainer}),d=ie(function(){return t.getPopupContainer||n.getPopupContainer}),h=ie(function(){var y;return(y=t.dropdownMatchSelectWidth)!==null&&y!==void 0?y:n.dropdownMatchSelectWidth}),p=ie(function(){return(t.virtual===void 0?n.virtual!==!1:t.virtual!==!1)&&h.value!==!1}),v=ie(function(){return t.size||n.componentSize}),b=ie(function(){var y;return t.autocomplete||((y=n.input)===null||y===void 0?void 0:y.autocomplete)}),w=ie(function(){return n.csp});return{configProvider:n,prefixCls:r,direction:s,size:v,getTargetContainer:f,getPopupContainer:d,space:l,pageHeader:c,form:u,autoInsertSpaceInButton:o,renderEmpty:a,virtual:p,dropdownMatchSelectWidth:h,rootPrefixC
2026-06-07 15:06:40 +03:30
* vue-router v4.2.2
* (c) 2023 Eduardo San Martin Morote
* @license MIT
2026-06-18 17:05:42 +03:30
*/const Fn=typeof window<"u";function qb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const me=Object.assign;function Vi(e,t){const n={};for(const r in t){const s=t[r];n[r]=ht(s)?s.map(e):e(s)}return n}const Ir=()=>{},ht=Array.isArray,Wb=/\/$/,zb=e=>e.replace(Wb,"");function Ki(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Jb(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function Vb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Kb(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Xn(t.matched[r],n.matched[s])&&Rd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Gb(e[n],t[n]))return!1;return!0}function Gb(e,t){return ht(e)?Ic(e,t):ht(t)?Ic(t,e):e===t}function Ic(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Zr;(function(e){e.pop="pop",e.push="push"})(Zr||(Zr={}));var $r;(function(e){e.back="back",e.forward="forward",e.unknown=""})($r||($r={}));function Yb(e){if(!e)if(Fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zb(e)}const Qb=/^[^#]+#/;function Xb(e,t){return e.replace(Qb,"#")+t}function Zb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vi=()=>({left:window.pageXOffset,top:window.pageYOffset});function e0(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Zb(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function $c(e,t){return(history.state?history.state.position-t:-1)+e}const jo=new Map;function t0(e,t){jo.set(e,t)}function n0(e){const t=jo.get(e);return jo.delete(e),t}let r0=()=>location.protocol+"//"+location.host;function jd(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),jc(l,"")}return jc(n,e)+r+s}function s0(e,t,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const h=jd(e,location),p=n.value,v=t.value;let b=0;if(d){if(n.value=h,t.value=d,o&&o===p){o=null;return}b=v?d.position-v.position:0}else r(h);s.forEach(w=>{w(n.value,p,{delta:b,type:Zr.pop,direction:b?b>0?$r.forward:$r.back:$r.unknown})})};function l(){o=n.value}function c(d){s.push(d);const h=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(me({},d.state,{scroll:vi()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Mc(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?vi():null}}function i0(e){const{history:t,location:n}=window,r={value:jd(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replace
2026-06-07 15:06:40 +03:30
* pinia v2.1.3
* (c) 2023 Eduardo San Martin Morote
* @license MIT
2026-06-18 20:24:23 +03:30
*/let Hd;const bi=e=>Hd=e,qd=Symbol();function Mo(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mr||(Mr={}));function a_(){const e=ku(!0),t=e.run(()=>pt({}));let n=[],r=[];const s=si({install(i){bi(s),s._a=i,i.provide(qd,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Y0?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Wd=()=>{};function Jc(e,t,n,r=Wd){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&ia()&&Ru(s),s}function jn(e,...t){e.slice().forEach(n=>{n(...t)})}const l_=e=>e();function Lo(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Mo(s)&&Mo(r)&&e.hasOwnProperty(n)&&!Ce(r)&&!en(r)?e[n]=Lo(s,r):e[n]=r}return e}const c_=Symbol();function u_(e){return!Mo(e)||!e.hasOwnProperty(c_)}const{assign:Kt}=Object;function f_(e){return!!(Ce(e)&&e.effect)}function d_(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=jp(n.state.value[e]);return Kt(u,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=si(ie(()=>{bi(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=zd(e,c,t,n,r,!0),l}function zd(e,t,n={},r,s,i){let o;const a=Kt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),pt({});let v;function b(k){let I;c=u=!1,typeof k=="function"?(k(r.state.value[e]),I={type:Mr.patchFunction,storeId:e,events:h}):(Lo(r.state.value[e],k),I={type:Mr.patchObject,payload:k,storeId:e,events:h});const G=v=Symbol();oi().then(()=>{v===G&&(c=!0)}),u=!0,jn(f,I,r.state.value[e])}const w=i?function(){const{state:I}=n,G=I?I():{};this.$patch(oe=>{Kt(oe,G)})}:Wd;function y(){o.stop(),f=[],d=[],r._s.delete(e)}function E(k,I){return function(){bi(r);const G=Array.from(arguments),oe=[],q=[];function ae(S){oe.push(S)}function xe(S){q.push(S)}jn(d,{args:G,name:k,store:N,after:ae,onError:xe});let $;try{$=I.apply(this&&this.$id===e?this:N,G)}catch(S){throw jn(q,S),S}return $ instanceof Promise?$.then(S=>(jn(oe,S),S)).catch(S=>(jn(q,S),Promise.reject(S))):(jn(oe,$),$)}}const C={_p:r,$id:e,$onAction:Jc.bind(null,d),$patch:b,$reset:w,$subscribe(k,I={}){const G=Jc(f,k,I.detached,()=>oe()),oe=o.run(()=>$t(()=>r.state.value[e],q=>{(I.flush==="sync"?u:c)&&k({storeId:e,type:Mr.direct,events:h},q)},Kt({},l,I)));return G},$dispose:y},N=Ve(C);r._s.set(e,N);const D=r._a&&r._a.runWithContext||l_,U=r._e.run(()=>(o=ku(),D(()=>o.run(t))));for(const k in U){const I=U[k];if(Ce(I)&&!f_(I)||en(I))i||(p&&u_(I)&&(Ce(I)?I.value=p[k]:Lo(I,p[k])),r.state.value[e][k]=I);else if(typeof I=="function"){const G=E(k,I);U[k]=G,a.actions[k]=I}}return Kt(N,U),Kt(ue(N),U),Object.defineProperty(N,"$state",{get:()=>r.state.value[e],set:k=>{b(I=>{Kt(I,k)})}}),r._p.forEach(k=>{Kt(N,o.run(()=>k({store:N,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(N.$state,p),c=!0,u=!0,N}function Vd(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const c=yg();return a=a||(c?Ne(qd,null):null),a&&bi(a),a=Hd,a._s.has(r)||(i?zd(r,t,s,a):d_(r,s,a)),a._s.get(r)}return o.$id=r,o}const Kd=Vd("router",()=>({routes:pt([])}));function h_(e){const t=Kd(),n=W0({history:o0("/"),routes:t.routes,scrollBehavior:(r,s,i)=>{if(r.hash){if(r.hash==="#")return{top:0,behavior:"smooth"};const o=document.querySelector(r.hash);if(o){const a=parseFloat(getComputedStyle(o).scrollMarginTop);return o instanceof HTMLElement&&o.focus(),{el:r.hash,behavior:"smooth",top:a}}return{el:r.hash,behavior:"smooth"}}if(i)return i;if(r.path!==s.path)return{top:0}}});return e.use(n),n}function p_(e){return{router:h_(e)}}function No(){return localStorage.getItem("tamin_token")}async function BC(e){localStorage.setItem("tamin_token",e)}function
2026-06-16 18:24:48 +03:30
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Yw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},nu=Symbol("internals");function _r(e){return e&&String(e).trim().toLowerCase()}function $s(e){return e===!1||e==null?e:T.isArray(e)?e.map($s):String(e)}function Xw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Zw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yi(e,t,n,r,s){if(T.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function eE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function tE(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class Oi{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,c){const u=_r(l);if(!u)throw new Error("header name must be a non-empty string");const f=T.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=$s(a))}const o=(a,l)=>T.forEach(a,(c,u)=>i(c,u,l));return T.isPlainObject(t)||t instanceof this.constructor?o(t,n):T.isString(t)&&(t=t.trim())&&!Zw(t)?o(Qw(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=_r(t),t){const r=T.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Xw(s);if(T.isFunction(n))return n.call(this,s,r);if(T.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_r(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Yi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=_r(o),o){const a=T.findKey(r,o);a&&(!n||Yi(r,r[a],a,n))&&(delete r[a],s=!0)}}return T.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Yi(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return T.forEach(this,(s,i)=>{const o=T.findKey(r,i);if(o){n[o]=$s(s),delete n[i];return}const a=t?eE(i):String(i).trim();a!==i&&delete n[i],n[a]=$s(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
2026-06-18 17:05:42 +03:30
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[nu]=this[nu]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=_r(o);r[a]||(tE(s,o),r[a]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}}Oi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.freezeMethods(Oi.prototype);T.freezeMethods(Oi);const Mt=Oi;function Qi(e,t){const n=this||Ja,r=t||n,s=Mt.from(r.headers);let i=r.data;return T.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function ch(e){return!!(e&&e.__CANCEL__)}function is(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(is,de,{__CANCEL__:!0});function nE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const rE=Et.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(r)),T.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),T.isString(i)&&l.push("path="+i),T.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function uh(e,t){return e&&!sE(t)?iE(e,t):t}const oE=Et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const a=T.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function aE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];o||(o=c),n[s]=l,r[s]=c;let f=i,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function ru(e,t){let n=0;const r=lE(50,250);return s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,l=r(a),c=i<=o;n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const cE=typeof XMLHttpRequest<"u",uE=cE&&function(e){return new Promise(function(n,r){let s=e.data;const i=Mt.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}T.isFormData(s)&&(Et.isStandardBrowserEnv||Et.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=uh(e.baseURL,e.url);c.open(e.method.toUpperCase(),oh(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const h=Mt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};nE
2026-06-07 15:06:40 +03:30
import ws from "ws"
new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
2026-06-18 17:05:42 +03:30
Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const VE="2.15.5",KE=`realtime-js/${VE}`,GE="1.0.0",Wo=1e4,JE=1e3,YE=100;var Lr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Lr||(Lr={}));var ke;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ke||(ke={}));var ct;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ct||(ct={}));var zo;(function(e){e.websocket="websocket"})(zo||(zo={}));var yn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(yn||(yn={}));class QE{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Ch{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var _e;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(_e||(_e={}));const uu=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=XE(o,e,t,s),i),{})},XE=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?Oh(i,o):Vo(o)},Oh=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return nS(t,n)}switch(e){case _e.bool:return ZE(t);case _e.float4:case _e.float8:case _e.int2:case _e.int4:case _e.int8:case _e.numeric:case _e.oid:return eS(t);case _e.json:case _e.jsonb:return tS(t);case _e.timestamp:return rS(t);case _e.abstime:case _e.date:case _e.daterange:case _e.int4range:case _e.int8range:case _e.money:case _e.reltime:case _e.text:case _e.time:case _e.timestamptz:case _e.timetz:case _e.tsrange:case _e.tstzrange:return Vo(t);default:return Vo(t)}},Vo=e=>e,ZE=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},eS=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},tS=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},nS=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>Oh(t,a))}return e},rS=e=>typeof e=="string"?e.replace(" ","T"):e,Th=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Zi{constructor(t,n,r={},s=Wo){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("ti
2026-06-07 15:06:40 +03:30
addEventListener("message", (e) => {
if (e.data.event === "start") {
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
}
2026-06-16 18:24:48 +03:30
});`;class aS{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Wo,this.transport=null,this.heartbeatIntervalMs=_s.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=eo,this.ref=0,this.reconnectTimer=null,this.logger=eo,this.conn=null,this.sendBuffer=[],this.serializer=new QE,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>ee(()=>Promise.resolve().then(()=>fr),void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${zo.websocket}`,this.httpEndpoint=Th(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=zE.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
2026-06-07 15:06:40 +03:30
To use Realtime in Node.js, you need to provide a WebSocket implementation:
Option 1: Use Node.js 22+ which has native WebSocket support
Option 2: Install and provide the "ws" package:
npm install ws
import ws from "ws"
const client = new RealtimeClient(url, {
...options,
transport: ws
2026-06-18 17:05:42 +03:30
})`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:GE}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Lr.connecting:return yn.Connecting;case Lr.open:return yn.Open;case Lr.closing:return yn.Closing;default:return yn.Closed}}isConnected(){return this.connectionState()===yn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new el(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(JE,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},_s.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.on
\r=`.split(""),GS=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<mu.length;t+=1)e[mu[t].charCodeAt(0)]=-2;for(let t=0;t<Ys.length;t+=1)e[Ys[t].charCodeAt(0)]=t;return e})();function vu(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ys[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ys[r]),t.queuedBits-=6}}function jh(e,t,n){const r=GS[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function yu(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{QS(o,r,n)};for(let o=0;o<e.length;o+=1)jh(e.charCodeAt(o),s,i);return t.join("")}function JS(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function YS(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}JS(r,t)}}function QS(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function XS(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)jh(e.charCodeAt(s),n,r);return new Uint8Array(t)}function ZS(e){const t=[];return YS(e,n=>t.push(n)),new Uint8Array(t)}function e1(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>vu(s,n,r)),vu(null,n,r),t.join("")}function t1(e){return Math.round(Date.now()/1e3)+e}function n1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const rt=()=>typeof window<"u"&&typeof document<"u",fn={tested:!1,writable:!1},Ih=()=>{if(!rt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fn.tested)return fn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),fn.tested=!0,fn.writable=!0}catch{fn.tested=!0,fn.writable=!1}return fn.writable};function r1(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const $h=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>ee(()=>Promise.resolve().then(()=>fr),void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},s1=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Bn=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},dn=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},zt=async(e,t)=>{await e.removeItem(t)};class ki{constructor(){this.promise=new ki.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ki.promiseConstructor=Promise;function so(e){const t=e.split(".");if(t.length!==3)throw new Zo("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!HS.test(t[r]))throw new Zo("JWT not in base64url format");return{header:JSON.parse(yu(t[0])),payload:JSON.parse(yu(t[1])),signature:XS(t[2]),raw:{header:t[0],payload:t[1]}}}async function i1(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function o1(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o
2026-06-07 15:06:40 +03:30
`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=Lh(e.address),p=u?`${u}://${r}`:r,v=e.statement?`${e.statement}
`:"",b=`${p} wants you to sign in with your Ethereum account:
${h}
${v}`;let w=`URI: ${f}
Version: ${d}
Chain ID: ${n}${o?`
Nonce: ${o}`:""}
Issued At: ${i.toISOString()}`;if(s&&(w+=`
Expiration Time: ${s.toISOString()}`),a&&(w+=`
Not Before: ${a.toISOString()}`),l&&(w+=`
Request ID: ${l}`),c){let y=`
Resources:`;for(const E of c){if(!E||typeof E!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${E}`);y+=`
- ${E}`}w+=y}return`${b}
2026-06-18 17:05:42 +03:30
${w}`}T1();const j1={url:FS,storageKey:US,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:BS,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Su(e,t,n){return await n()}const Nn={};class ts{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ts.nextInstanceID,ts.nextInstanceID+=1,this.instanceID>0&&rt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},j1),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new O1({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=$h(s.fetch),this.lock=s.lock||Su,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:rt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=P1:this.lock=Su,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:Ih()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Eu(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Eu(this.memoryStorage)),rt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=Nn[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Nn[this.storageKey]=Object.assign(Object.assign({},Nn[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Nn[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Nn[this.storageKey]=Object.assign(Object.assign({},Nn[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ah}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=r1(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),rt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),KS(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{e
`);const D=await C.signMessage(new TextEncoder().encode(p),"utf8");if(!D||!(D instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=D}}try{const{data:b,error:w}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:e1(v)},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:yt});if(w)throw w;return!b||!b.session||!b.user?{data:{user:null,session:null},error:new Er}:(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),{data:Object.assign({},b),error:w})}catch(b){if(ne(b))return{data:{user:null,session:null},error:b};throw b}}async _exchangeCodeForSession(t){const n=await dn(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await le(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:yt});if(await zt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Er}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(ne(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:yt}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Er}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(ne(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await $n(this.storage,this.storageKey));const{error:f}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new ws("You must provide either an email or phone number.")}catch(a){if(ne(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await le(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:yt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(ne(s