sprof 0.0.222 → 0.0.224

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sprof.js CHANGED
@@ -1525,7 +1525,7 @@ class se {
1525
1525
  }
1526
1526
  static ApplyClassToSubStr(e, i, n) {
1527
1527
  const s = n ?? "highlight-text", r = new RegExp(se.GetVariants(i).join("|"), "gi");
1528
- return e.replace(r, `<span class="${s}">${i}</span>`);
1528
+ return e.replace(r, `<span class="${s}">$&</span>`);
1529
1529
  }
1530
1530
  static GetVariants(e) {
1531
1531
  const i = se.Translit(e);
@@ -11,7 +11,7 @@
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var Sr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Cr=="object"?Cr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return cr(Object.create(null))}:c?function(){return cr({__proto__:null})}:function(){return cr({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Xp(),C=typeof WeakMap=="function"?WeakMap:Yp(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=jp(),I=Wp(S);function O(p,y,k,x){if(T(k)){if(!qa(p))throw new TypeError;if(!Ua(y))throw new TypeError;return Fp(p,y)}else{if(!qa(p))throw new TypeError;if(!ne(y))throw new TypeError;if(!ne(x)&&!T(x)&&!Rt(x))throw new TypeError;return Rt(x)&&(x=void 0),k=Le(k),Op(p,y,k,x)}}e("decorate",O);function z(p,y){function k(x,V){if(!ne(x))throw new TypeError;if(!T(V)&&!Up(V))throw new TypeError;Fa(p,y,x,V)}return k}e("metadata",z);function v(p,y,k,x){if(!ne(k))throw new TypeError;return T(x)||(x=Le(x)),Fa(p,y,k,x)}e("defineMetadata",v);function H(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),za(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),or(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Va(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Ta(p,y,k)}e("getOwnMetadata",nt);function It(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Oa(p,y)}e("getMetadataKeys",It);function jn(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Da(p,y)}e("getOwnMetadataKeys",jn);function Tp(p,y,k){if(!ne(y))throw new TypeError;if(T(k)||(k=Le(k)),!ne(y))throw new TypeError;T(k)||(k=Le(k));var x=Gt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Tp);function Fp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!Rt(V)){if(!Ua(V))throw new TypeError;y=V}}return y}function Op(p,y,k,x){for(var V=p.length-1;V>=0;--V){var ae=p[V],ie=ae(y,k,x);if(!T(ie)&&!Rt(ie)){if(!ne(ie))throw new TypeError;x=ie}}return x}function za(p,y,k){var x=or(p,y,k);if(x)return!0;var V=lr(y);return Rt(V)?!1:za(p,V,k)}function or(p,y,k){var x=Gt(y,k,!1);return T(x)?!1:Ha(x.OrdinaryHasOwnMetadata(p,y,k))}function Va(p,y,k){var x=or(p,y,k);if(x)return Ta(p,y,k);var V=lr(y);if(!Rt(V))return Va(p,V,k)}function Ta(p,y,k){var x=Gt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Fa(p,y,k,x){var V=Gt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function Oa(p,y){var k=Da(p,y),x=lr(p);if(x===null)return k;var V=Oa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var ae=new g,ie=[],q=0,M=k;q<M.length;q++){var $=M[q],R=ae.has($);R||(ae.add($),ie.push($))}for(var A=0,U=V;A<U.length;A++){var $=U[A],R=ae.has($);R||(ae.add($),ie.push($))}return ie}function Da(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function La(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function Rt(p){return p===null}function Dp(p){return typeof p=="symbol"}function ne(p){return typeof p=="object"?p!==null:typeof p=="function"}function Lp(p,y){switch(La(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=_a(p,o);if(x!==void 0){var V=x.call(p,k);if(ne(V))throw new TypeError;return V}return Hp(p)}function Hp(p,y){var k,x;{var V=p.toString;if(Wn(V)){var x=V.call(p);if(!ne(x))return x}var k=p.valueOf;if(Wn(k)){var x=k.call(p);if(!ne(x))return x}}throw new TypeError}function Ha(p){return!!p}function qp(p){return""+p}function Le(p){var y=Lp(p);return Dp(y)?y:qp(y)}function qa(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Wn(p){return typeof p=="function"}function Ua(p){return typeof p=="function"}function Up(p){switch(La(p)){case 3:return!0;case 4:return!0;default:return!1}}function ar(p,y){return p===y||p!==p&&y!==y}function _a(p,y){var k=p[y];if(k!=null){if(!Wn(k))throw new TypeError;return k}}function ja(p){var y=_a(p,a);if(!Wn(y))throw new TypeError;var k=y.call(p);if(!ne(k))throw new TypeError;return k}function Wa(p){return p.value}function Ga(p){var y=p.next();return y.done?!1:y}function Za(p){var y=p.return;y&&y.call(p)}function lr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function _p(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Gp(n.Reflect));var y,k,x,V=new C,ae={registerProvider:ie,getProvider:M,setProvider:R};return ae;function ie(A){if(!Object.isExtensible(ae))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===A:break;case T(y):y=A;break;case y===A:break;case T(k):k=A;break;case k===A:break;default:x===void 0&&(x=new g),x.add(A);break}}function q(A,U){if(!T(y)){if(y.isProviderFor(A,U))return y;if(!T(k)){if(k.isProviderFor(A,U))return y;if(!T(x))for(var X=ja(x);;){var Q=Ga(X);if(!Q)return;var Ne=Wa(Q);if(Ne.isProviderFor(A,U))return Za(X),Ne}}}if(!T(p)&&p.isProviderFor(A,U))return p}function M(A,U){var X=V.get(A),Q;return T(X)||(Q=X.get(U)),T(Q)&&(Q=q(A,U),T(Q)||(T(X)&&(X=new m,V.set(A,X)),X.set(U,Q))),Q}function $(A){if(T(A))throw new TypeError;return y===A||k===A||!T(x)&&x.has(A)}function R(A,U,X){if(!$(X))throw new Error("Metadata provider not registered.");var Q=M(A,U);if(Q!==X){if(!T(Q))return!1;var Ne=V.get(A);T(Ne)&&(Ne=new m,V.set(A,Ne)),Ne.set(U,X)}return!0}}function jp(){var p;return!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=_p()),!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Wp(p){var y=new C,k={isProviderFor:function($,R){var A=y.get($);return T(A)?!1:A.has(R)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ae,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x($,R,A){var U=y.get($),X=!1;if(T(U)){if(!A)return;U=new m,y.set($,U),X=!0}var Q=U.get(R);if(T(Q)){if(!A)return;if(Q=new m,U.set(R,Q),!p.setProvider($,R,k))throw U.delete(R),X&&y.delete($),new Error("Wrong provider for target.")}return Q}function V($,R,A){var U=x(R,A,!1);return T(U)?!1:Ha(U.has($))}function ae($,R,A){var U=x(R,A,!1);if(!T(U))return U.get($)}function ie($,R,A,U){var X=x(A,U,!0);X.set($,R)}function q($,R){var A=[],U=x($,R,!1);if(T(U))return A;for(var X=U.keys(),Q=ja(X),Ne=0;;){var Xa=Ga(Q);if(!Xa)return A.length=Ne,A;var Jp=Wa(Xa);try{A[Ne]=Jp}catch(Qp){try{Za(Q)}finally{throw Qp}}Ne++}}function M($,R,A){var U=x(R,A,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var X=y.get(R);T(X)||(X.delete(A),X.size===0&&y.delete(X))}return!0}}function Gp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,ae=p.deleteMetadata,ie=new C,q={isProviderFor:function(M,$){var R=ie.get(M);return!T(R)&&R.has($)?!0:V(M,$).length?(T(R)&&(R=new g,ie.set(M,R)),R.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ae};return q}function Gt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function Zp(){var p={},y=[],k=function(){function q(M,$,R){this._index=0,this._keys=M,this._values=$,this._selector=R}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var R=this._find(M,!0);return this._values[R]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var R=this._keys.length,A=$+1;A<R;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,ar(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,ae)},q.prototype.entries=function(){return new k(this._keys,this._values,ie)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!ar(this._cacheKey,M)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(ar(this._keys[R],M)){this._cacheIndex=R;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function ae(q,M){return M}function ie(q,M){return[q,M]}}function Xp(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function Yp(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function($){var R=V($,!1);return R!==void 0?h.has(R,this._key):!1},M.prototype.get=function($){var R=V($,!1);return R!==void 0?h.get(R,this._key):void 0},M.prototype.set=function($,R){var A=V($,!0);return A[this._key]=R,this},M.prototype.delete=function($){var R=V($,!1);return R!==void 0?delete R[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function ae(M,$){for(var R=0;R<$;++R)M[R]=Math.random()*255|0;return M}function ie(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):ae($,M),$}return ae(new Array(M),M)}function q(){var M=ie(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",R=0;R<p;++R){var A=M[R];(R===4||R===6||R===8)&&($+="-"),A<16&&($+="0"),$+=A.toString(16).toLowerCase()}return $}}function cr(p){return p.__=void 0,delete p.__,p}})})(Sr||(Sr={}));let tn;const hl=new Uint8Array(16);function fl(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(hl)}const de=[];for(let t=0;t<256;++t)de.push((t+256).toString(16).slice(1));function ml(t,e=0){return de[t[e+0]]+de[t[e+1]]+de[t[e+2]]+de[t[e+3]]+"-"+de[t[e+4]]+de[t[e+5]]+"-"+de[t[e+6]]+de[t[e+7]]+"-"+de[t[e+8]]+de[t[e+9]]+"-"+de[t[e+10]]+de[t[e+11]]+de[t[e+12]]+de[t[e+13]]+de[t[e+14]]+de[t[e+15]]}const kr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(t,e,n){if(kr.randomUUID&&!t)return kr.randomUUID();t=t||{};const r=t.random||(t.rng||fl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ml(r)}class ee{static UUID(){return Xe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class j{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():j.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=j.Translit(r),a=j.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return j.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(j.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">${n}</span>`)}static GetVariants(e){const n=j.Translit(e);return[e,j.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,j.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Ke=class Ke{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){Ke.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Ke.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return Ke.BuildClass(r),r.id=ee.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Ke.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Ke.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(j.TrimText)(e)}};l(Ke,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let B=Ke;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new rt;return e.id=ee.UUID(),e}}class Kn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Kn,"staticUrl","");class fe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);B.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Kn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new fe;return r.id=n??ee.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=ee.UUID(),r}setFile(e){this.id||(this.id=ee.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=ee.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Er{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);B.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=j.Capitalize(this.name),this.surname=j.Capitalize(this.surname),this.patronymic=j.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new st;return e.id=ee.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class ei{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}let pl=(et=class{},l(et,"Phone",st),l(et,"FileInfo",fe),l(et,"PostAddress",nn),l(et,"Website",ei),l(et,"Email",rt),l(et,"Human",Er),et);class qe{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var se=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(se||{}),me=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(me||{}),gl=Object.defineProperty,yl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&gl(e,n,s),s};const xr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",me.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",se.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");B.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===se.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===me.In?n&&qe.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===se.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===se.String?this.value1===(e==null?void 0:e.value1):this.type===se.Join&&this.set.length?qe.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===se.Boolean?`"boolean":${this.boolean}`:"",d=this.type===se.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===se.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===se.Number?`"number":${this.number}`:"",h=this.type===se.Set||this.operator===me.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===se.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===me.Eq||this.operator===me.Gt||this.operator===me.Lt}isBetweenFilter(){return this.operator===me.Btw}isSetFilter(){return this.operator===me.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===se.Number&&(s.value1="0"),s.type===se.String&&(s.value1=""),s.type===se.Boolean&&(s.value1="false",s.operator=me.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Xe(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=se.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Xe(),r.model=j.ToCamelCase(e.GetClassName()),r.joinTableModel=j.ToCamelCase(n.GetClassName()),r.type=se.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=me.Eq;return}this.setDate2(n),this.operator=me.Btw}};yl([B.GetClassConstructor(String)],xr.prototype,"set");let ti=xr;class wl{constructor(){l(this,"operation",me.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new wl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");B.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,B.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);B.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var bl=Object.defineProperty,an=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&bl(e,n,s),s};const Nt=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);B.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return qe.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));B.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Se,"instance"),Se);an([B.GetClassConstructor(ti)],Nt.prototype,"f"),an([B.GetClassConstructor(sn)],Nt.prototype,"s"),an([B.GetClassConstructor(rn)],Nt.prototype,"p"),an([B.GetClassConstructor(on)],Nt.prototype,"t");let Ue=Nt,Cl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ti),l(Wt,"FTSP",i.reactive(Ue)),Wt);function Mr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sl}=Object.prototype,{getPrototypeOf:ni}=Object,ln=(t=>e=>{const n=Sl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:pt}=Array,Pt=cn("undefined");function kl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Br=ve("ArrayBuffer");function El(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Br(t.buffer),e}const xl=cn("string"),Ce=cn("function"),$r=cn("number"),dn=t=>t!==null&&typeof t=="object",Ml=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Bl=ve("Date"),$l=ve("File"),Il=ve("Blob"),Rl=ve("FileList"),vl=t=>dn(t)&&Ce(t.pipe),Al=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Nl=ve("URLSearchParams"),[Pl,zl,Vl,Tl]=["ReadableStream","Request","Response","Headers"].map(ve),Fl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Ir(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rr=t=>!Pt(t)&&t!==ot;function ii(){const{caseless:t}=Rr(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ir(e,s)||s;un(e[o])&&un(r)?e[o]=ii(e[o],r):un(r)?e[o]=ii({},r):pt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Ol=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&Ce(s)?t[o]=Mr(s,n):t[o]=s},{allOwnKeys:r}),t),Dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ll=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ql=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ul=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!$r(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_l=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Wl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Gl=ve("HTMLFormElement"),Zl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),vr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xl=ve("RegExp"),Ar=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Yl=t=>{Ar(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return pt(t)?r(t):r(String(t).split(e)),n},Ql=()=>{},Kl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ri="abcdefghijklmnopqrstuvwxyz",Nr="0123456789",Pr={DIGIT:Nr,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Nr},ec=(t=16,e=Pr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function tc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nc=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=pt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},ic=ve("AsyncFunction"),rc=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),zr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),sc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||zr,w={isArray:pt,isArrayBuffer:Br,isBuffer:kl,isFormData:Al,isArrayBufferView:El,isString:xl,isNumber:$r,isBoolean:Ml,isObject:dn,isPlainObject:un,isReadableStream:Pl,isRequest:zl,isResponse:Vl,isHeaders:Tl,isUndefined:Pt,isDate:Bl,isFile:$l,isBlob:Il,isRegExp:Xl,isFunction:Ce,isStream:vl,isURLSearchParams:Nl,isTypedArray:_l,isFileList:Rl,forEach:zt,merge:ii,extend:Ol,trim:Fl,stripBOM:Dl,inherits:Ll,toFlatObject:Hl,kindOf:ln,kindOfTest:ve,endsWith:ql,toArray:Ul,forEachEntry:jl,matchAll:Wl,isHTMLForm:Gl,hasOwnProperty:vr,hasOwnProp:vr,reduceDescriptors:Ar,freezeMethods:Yl,toObjectSet:Jl,toCamelCase:Zl,noop:Ql,toFiniteNumber:Kl,findKey:Ir,global:ot,isContextDefined:Rr,ALPHABET:Pr,generateString:ec,isSpecCompliantForm:tc,toJSONObject:nc,isAsyncFn:ic,isThenable:rc,setImmediate:zr,asap:sc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){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:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vr=F.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Tr[t]={value:t}}),Object.defineProperties(F,Tr),Object.defineProperty(Vr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Vr);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const oc=null;function si(t){return w.isPlainObject(t)||w.isArray(t)}function Fr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Or(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function ac(t){return w.isArray(t)&&!t.some(si)}const lc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&ac(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Fr(b),I.forEach(function(z,v){!(w.isUndefined(z)||z===null)&&e.append(a===!0?Or([b],v,o):a===null?b:b+"[]",u(z))}),!1}return si(C)?!0:(e.append(Or(S,b,o),u(C)),!1)}const f=[],m=Object.assign(lc,{defaultVisitor:h,convertValue:u,isVisitable:si});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,O){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(O)?O.trim():O,b,m))===!0&&g(I,b?b.concat(O):[O])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oi(t,e){this._pairs=[],t&&hn(t,this,e)}const Lr=oi.prototype;Lr.append=function(e,n){this._pairs.push([e,n])},Lr.toString=function(e){const n=e?function(r){return e.call(this,r,Dr)}:Dr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(t,e,n){if(!e)return t;const r=n&&n.encode||cc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new oi(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ai=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,uc=ai&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),hc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fc=ai&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ai,hasStandardBrowserEnv:uc,hasStandardBrowserWebWorkerEnv:hc,navigator:li,origin:fc},Symbol.toStringTag,{value:"Module"})),...dc};function mc(t,e){return hn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function pc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=gc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(pc(r),s,n,0)}),n}return null}function yc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Ur,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),yc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const wc=w.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"]),bc=t=>{const e={};let n,r,s;return t&&t.split(`
14
+ ***************************************************************************** */var Sr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Cr=="object"?Cr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return cr(Object.create(null))}:c?function(){return cr({__proto__:null})}:function(){return cr({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Xp(),C=typeof WeakMap=="function"?WeakMap:Yp(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=jp(),I=Wp(S);function O(p,y,k,x){if(T(k)){if(!qa(p))throw new TypeError;if(!Ua(y))throw new TypeError;return Fp(p,y)}else{if(!qa(p))throw new TypeError;if(!ne(y))throw new TypeError;if(!ne(x)&&!T(x)&&!Rt(x))throw new TypeError;return Rt(x)&&(x=void 0),k=Le(k),Op(p,y,k,x)}}e("decorate",O);function z(p,y){function k(x,V){if(!ne(x))throw new TypeError;if(!T(V)&&!Up(V))throw new TypeError;Fa(p,y,x,V)}return k}e("metadata",z);function v(p,y,k,x){if(!ne(k))throw new TypeError;return T(x)||(x=Le(x)),Fa(p,y,k,x)}e("defineMetadata",v);function H(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),za(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),or(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Va(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Ta(p,y,k)}e("getOwnMetadata",nt);function It(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Oa(p,y)}e("getMetadataKeys",It);function jn(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Da(p,y)}e("getOwnMetadataKeys",jn);function Tp(p,y,k){if(!ne(y))throw new TypeError;if(T(k)||(k=Le(k)),!ne(y))throw new TypeError;T(k)||(k=Le(k));var x=Gt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Tp);function Fp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!Rt(V)){if(!Ua(V))throw new TypeError;y=V}}return y}function Op(p,y,k,x){for(var V=p.length-1;V>=0;--V){var ae=p[V],ie=ae(y,k,x);if(!T(ie)&&!Rt(ie)){if(!ne(ie))throw new TypeError;x=ie}}return x}function za(p,y,k){var x=or(p,y,k);if(x)return!0;var V=lr(y);return Rt(V)?!1:za(p,V,k)}function or(p,y,k){var x=Gt(y,k,!1);return T(x)?!1:Ha(x.OrdinaryHasOwnMetadata(p,y,k))}function Va(p,y,k){var x=or(p,y,k);if(x)return Ta(p,y,k);var V=lr(y);if(!Rt(V))return Va(p,V,k)}function Ta(p,y,k){var x=Gt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Fa(p,y,k,x){var V=Gt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function Oa(p,y){var k=Da(p,y),x=lr(p);if(x===null)return k;var V=Oa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var ae=new g,ie=[],q=0,M=k;q<M.length;q++){var $=M[q],R=ae.has($);R||(ae.add($),ie.push($))}for(var A=0,U=V;A<U.length;A++){var $=U[A],R=ae.has($);R||(ae.add($),ie.push($))}return ie}function Da(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function La(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function Rt(p){return p===null}function Dp(p){return typeof p=="symbol"}function ne(p){return typeof p=="object"?p!==null:typeof p=="function"}function Lp(p,y){switch(La(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=_a(p,o);if(x!==void 0){var V=x.call(p,k);if(ne(V))throw new TypeError;return V}return Hp(p)}function Hp(p,y){var k,x;{var V=p.toString;if(Wn(V)){var x=V.call(p);if(!ne(x))return x}var k=p.valueOf;if(Wn(k)){var x=k.call(p);if(!ne(x))return x}}throw new TypeError}function Ha(p){return!!p}function qp(p){return""+p}function Le(p){var y=Lp(p);return Dp(y)?y:qp(y)}function qa(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Wn(p){return typeof p=="function"}function Ua(p){return typeof p=="function"}function Up(p){switch(La(p)){case 3:return!0;case 4:return!0;default:return!1}}function ar(p,y){return p===y||p!==p&&y!==y}function _a(p,y){var k=p[y];if(k!=null){if(!Wn(k))throw new TypeError;return k}}function ja(p){var y=_a(p,a);if(!Wn(y))throw new TypeError;var k=y.call(p);if(!ne(k))throw new TypeError;return k}function Wa(p){return p.value}function Ga(p){var y=p.next();return y.done?!1:y}function Za(p){var y=p.return;y&&y.call(p)}function lr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function _p(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Gp(n.Reflect));var y,k,x,V=new C,ae={registerProvider:ie,getProvider:M,setProvider:R};return ae;function ie(A){if(!Object.isExtensible(ae))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===A:break;case T(y):y=A;break;case y===A:break;case T(k):k=A;break;case k===A:break;default:x===void 0&&(x=new g),x.add(A);break}}function q(A,U){if(!T(y)){if(y.isProviderFor(A,U))return y;if(!T(k)){if(k.isProviderFor(A,U))return y;if(!T(x))for(var X=ja(x);;){var Q=Ga(X);if(!Q)return;var Ne=Wa(Q);if(Ne.isProviderFor(A,U))return Za(X),Ne}}}if(!T(p)&&p.isProviderFor(A,U))return p}function M(A,U){var X=V.get(A),Q;return T(X)||(Q=X.get(U)),T(Q)&&(Q=q(A,U),T(Q)||(T(X)&&(X=new m,V.set(A,X)),X.set(U,Q))),Q}function $(A){if(T(A))throw new TypeError;return y===A||k===A||!T(x)&&x.has(A)}function R(A,U,X){if(!$(X))throw new Error("Metadata provider not registered.");var Q=M(A,U);if(Q!==X){if(!T(Q))return!1;var Ne=V.get(A);T(Ne)&&(Ne=new m,V.set(A,Ne)),Ne.set(U,X)}return!0}}function jp(){var p;return!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=_p()),!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Wp(p){var y=new C,k={isProviderFor:function($,R){var A=y.get($);return T(A)?!1:A.has(R)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ae,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x($,R,A){var U=y.get($),X=!1;if(T(U)){if(!A)return;U=new m,y.set($,U),X=!0}var Q=U.get(R);if(T(Q)){if(!A)return;if(Q=new m,U.set(R,Q),!p.setProvider($,R,k))throw U.delete(R),X&&y.delete($),new Error("Wrong provider for target.")}return Q}function V($,R,A){var U=x(R,A,!1);return T(U)?!1:Ha(U.has($))}function ae($,R,A){var U=x(R,A,!1);if(!T(U))return U.get($)}function ie($,R,A,U){var X=x(A,U,!0);X.set($,R)}function q($,R){var A=[],U=x($,R,!1);if(T(U))return A;for(var X=U.keys(),Q=ja(X),Ne=0;;){var Xa=Ga(Q);if(!Xa)return A.length=Ne,A;var Jp=Wa(Xa);try{A[Ne]=Jp}catch(Qp){try{Za(Q)}finally{throw Qp}}Ne++}}function M($,R,A){var U=x(R,A,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var X=y.get(R);T(X)||(X.delete(A),X.size===0&&y.delete(X))}return!0}}function Gp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,ae=p.deleteMetadata,ie=new C,q={isProviderFor:function(M,$){var R=ie.get(M);return!T(R)&&R.has($)?!0:V(M,$).length?(T(R)&&(R=new g,ie.set(M,R)),R.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ae};return q}function Gt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function Zp(){var p={},y=[],k=function(){function q(M,$,R){this._index=0,this._keys=M,this._values=$,this._selector=R}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var R=this._find(M,!0);return this._values[R]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var R=this._keys.length,A=$+1;A<R;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,ar(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,ae)},q.prototype.entries=function(){return new k(this._keys,this._values,ie)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!ar(this._cacheKey,M)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(ar(this._keys[R],M)){this._cacheIndex=R;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function ae(q,M){return M}function ie(q,M){return[q,M]}}function Xp(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function Yp(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function($){var R=V($,!1);return R!==void 0?h.has(R,this._key):!1},M.prototype.get=function($){var R=V($,!1);return R!==void 0?h.get(R,this._key):void 0},M.prototype.set=function($,R){var A=V($,!0);return A[this._key]=R,this},M.prototype.delete=function($){var R=V($,!1);return R!==void 0?delete R[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function ae(M,$){for(var R=0;R<$;++R)M[R]=Math.random()*255|0;return M}function ie(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):ae($,M),$}return ae(new Array(M),M)}function q(){var M=ie(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",R=0;R<p;++R){var A=M[R];(R===4||R===6||R===8)&&($+="-"),A<16&&($+="0"),$+=A.toString(16).toLowerCase()}return $}}function cr(p){return p.__=void 0,delete p.__,p}})})(Sr||(Sr={}));let tn;const hl=new Uint8Array(16);function fl(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(hl)}const de=[];for(let t=0;t<256;++t)de.push((t+256).toString(16).slice(1));function ml(t,e=0){return de[t[e+0]]+de[t[e+1]]+de[t[e+2]]+de[t[e+3]]+"-"+de[t[e+4]]+de[t[e+5]]+"-"+de[t[e+6]]+de[t[e+7]]+"-"+de[t[e+8]]+de[t[e+9]]+"-"+de[t[e+10]]+de[t[e+11]]+de[t[e+12]]+de[t[e+13]]+de[t[e+14]]+de[t[e+15]]}const kr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(t,e,n){if(kr.randomUUID&&!t)return kr.randomUUID();t=t||{};const r=t.random||(t.rng||fl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ml(r)}class ee{static UUID(){return Xe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class j{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():j.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=j.Translit(r),a=j.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return j.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(j.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=j.Translit(e);return[e,j.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,j.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Ke=class Ke{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){Ke.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Ke.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return Ke.BuildClass(r),r.id=ee.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Ke.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Ke.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(j.TrimText)(e)}};l(Ke,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let B=Ke;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new rt;return e.id=ee.UUID(),e}}class Kn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Kn,"staticUrl","");class fe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);B.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Kn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new fe;return r.id=n??ee.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=ee.UUID(),r}setFile(e){this.id||(this.id=ee.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=ee.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Er{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);B.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=j.Capitalize(this.name),this.surname=j.Capitalize(this.surname),this.patronymic=j.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new st;return e.id=ee.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class ei{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}let pl=(et=class{},l(et,"Phone",st),l(et,"FileInfo",fe),l(et,"PostAddress",nn),l(et,"Website",ei),l(et,"Email",rt),l(et,"Human",Er),et);class qe{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var se=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(se||{}),me=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(me||{}),gl=Object.defineProperty,yl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&gl(e,n,s),s};const xr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",me.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",se.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");B.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===se.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===me.In?n&&qe.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===se.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===se.String?this.value1===(e==null?void 0:e.value1):this.type===se.Join&&this.set.length?qe.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===se.Boolean?`"boolean":${this.boolean}`:"",d=this.type===se.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===se.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===se.Number?`"number":${this.number}`:"",h=this.type===se.Set||this.operator===me.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===se.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===me.Eq||this.operator===me.Gt||this.operator===me.Lt}isBetweenFilter(){return this.operator===me.Btw}isSetFilter(){return this.operator===me.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===se.Number&&(s.value1="0"),s.type===se.String&&(s.value1=""),s.type===se.Boolean&&(s.value1="false",s.operator=me.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Xe(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=se.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Xe(),r.model=j.ToCamelCase(e.GetClassName()),r.joinTableModel=j.ToCamelCase(n.GetClassName()),r.type=se.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=me.Eq;return}this.setDate2(n),this.operator=me.Btw}};yl([B.GetClassConstructor(String)],xr.prototype,"set");let ti=xr;class wl{constructor(){l(this,"operation",me.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new wl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");B.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,B.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);B.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var bl=Object.defineProperty,an=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&bl(e,n,s),s};const Nt=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);B.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return qe.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));B.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Se,"instance"),Se);an([B.GetClassConstructor(ti)],Nt.prototype,"f"),an([B.GetClassConstructor(sn)],Nt.prototype,"s"),an([B.GetClassConstructor(rn)],Nt.prototype,"p"),an([B.GetClassConstructor(on)],Nt.prototype,"t");let Ue=Nt,Cl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ti),l(Wt,"FTSP",i.reactive(Ue)),Wt);function Mr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sl}=Object.prototype,{getPrototypeOf:ni}=Object,ln=(t=>e=>{const n=Sl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:pt}=Array,Pt=cn("undefined");function kl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Br=ve("ArrayBuffer");function El(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Br(t.buffer),e}const xl=cn("string"),Ce=cn("function"),$r=cn("number"),dn=t=>t!==null&&typeof t=="object",Ml=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Bl=ve("Date"),$l=ve("File"),Il=ve("Blob"),Rl=ve("FileList"),vl=t=>dn(t)&&Ce(t.pipe),Al=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Nl=ve("URLSearchParams"),[Pl,zl,Vl,Tl]=["ReadableStream","Request","Response","Headers"].map(ve),Fl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Ir(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rr=t=>!Pt(t)&&t!==ot;function ii(){const{caseless:t}=Rr(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ir(e,s)||s;un(e[o])&&un(r)?e[o]=ii(e[o],r):un(r)?e[o]=ii({},r):pt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Ol=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&Ce(s)?t[o]=Mr(s,n):t[o]=s},{allOwnKeys:r}),t),Dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ll=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ql=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ul=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!$r(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_l=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Wl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Gl=ve("HTMLFormElement"),Zl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),vr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xl=ve("RegExp"),Ar=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Yl=t=>{Ar(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return pt(t)?r(t):r(String(t).split(e)),n},Ql=()=>{},Kl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ri="abcdefghijklmnopqrstuvwxyz",Nr="0123456789",Pr={DIGIT:Nr,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Nr},ec=(t=16,e=Pr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function tc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nc=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=pt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},ic=ve("AsyncFunction"),rc=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),zr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),sc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||zr,w={isArray:pt,isArrayBuffer:Br,isBuffer:kl,isFormData:Al,isArrayBufferView:El,isString:xl,isNumber:$r,isBoolean:Ml,isObject:dn,isPlainObject:un,isReadableStream:Pl,isRequest:zl,isResponse:Vl,isHeaders:Tl,isUndefined:Pt,isDate:Bl,isFile:$l,isBlob:Il,isRegExp:Xl,isFunction:Ce,isStream:vl,isURLSearchParams:Nl,isTypedArray:_l,isFileList:Rl,forEach:zt,merge:ii,extend:Ol,trim:Fl,stripBOM:Dl,inherits:Ll,toFlatObject:Hl,kindOf:ln,kindOfTest:ve,endsWith:ql,toArray:Ul,forEachEntry:jl,matchAll:Wl,isHTMLForm:Gl,hasOwnProperty:vr,hasOwnProp:vr,reduceDescriptors:Ar,freezeMethods:Yl,toObjectSet:Jl,toCamelCase:Zl,noop:Ql,toFiniteNumber:Kl,findKey:Ir,global:ot,isContextDefined:Rr,ALPHABET:Pr,generateString:ec,isSpecCompliantForm:tc,toJSONObject:nc,isAsyncFn:ic,isThenable:rc,setImmediate:zr,asap:sc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){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:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vr=F.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Tr[t]={value:t}}),Object.defineProperties(F,Tr),Object.defineProperty(Vr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Vr);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const oc=null;function si(t){return w.isPlainObject(t)||w.isArray(t)}function Fr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Or(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function ac(t){return w.isArray(t)&&!t.some(si)}const lc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&ac(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Fr(b),I.forEach(function(z,v){!(w.isUndefined(z)||z===null)&&e.append(a===!0?Or([b],v,o):a===null?b:b+"[]",u(z))}),!1}return si(C)?!0:(e.append(Or(S,b,o),u(C)),!1)}const f=[],m=Object.assign(lc,{defaultVisitor:h,convertValue:u,isVisitable:si});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,O){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(O)?O.trim():O,b,m))===!0&&g(I,b?b.concat(O):[O])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oi(t,e){this._pairs=[],t&&hn(t,this,e)}const Lr=oi.prototype;Lr.append=function(e,n){this._pairs.push([e,n])},Lr.toString=function(e){const n=e?function(r){return e.call(this,r,Dr)}:Dr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(t,e,n){if(!e)return t;const r=n&&n.encode||cc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new oi(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ai=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,uc=ai&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),hc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fc=ai&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ai,hasStandardBrowserEnv:uc,hasStandardBrowserWebWorkerEnv:hc,navigator:li,origin:fc},Symbol.toStringTag,{value:"Module"})),...dc};function mc(t,e){return hn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function pc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=gc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(pc(r),s,n,0)}),n}return null}function yc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Ur,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),yc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const wc=w.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"]),bc=t=>{const e={};let n,r,s;return t&&t.split(`
15
15
  `).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&wc[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},jr=Symbol("internals");function Tt(t){return t&&String(t).trim().toLowerCase()}function fn(t){return t===!1||t==null?t:w.isArray(t)?t.map(fn):String(t)}function Cc(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Sc=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ci(t,e,n,r,s){if(w.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!w.isString(e)){if(w.isString(r))return e.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(e)}}function kc(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ec(t,e){const n=w.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,a){return this[r].call(this,e,s,o,a)},configurable:!0})})}class we{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(d,c,u){const h=Tt(c);if(!h)throw new Error("header name must be a non-empty string");const f=w.findKey(s,h);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=fn(d))}const a=(d,c)=>w.forEach(d,(u,h)=>o(u,h,c));if(w.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(w.isString(e)&&(e=e.trim())&&!Sc(e))a(bc(e),n);else if(w.isHeaders(e))for(const[d,c]of e.entries())o(c,d,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=Tt(e),e){const r=w.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Cc(s);if(w.isFunction(n))return n.call(this,s,r);if(w.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Tt(e),e){const r=w.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ci(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(a){if(a=Tt(a),a){const d=w.findKey(r,a);d&&(!n||ci(r,r[d],d,n))&&(delete r[d],s=!0)}}return w.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||ci(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return w.forEach(this,(s,o)=>{const a=w.findKey(r,o);if(a){n[a]=fn(s),delete n[o];return}const d=e?kc(o):String(o).trim();d!==o&&delete n[o],n[d]=fn(s),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return w.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
16
16
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[jr]=this[jr]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Tt(a);r[d]||(Ec(s,a),r[d]=!0)}return w.isArray(e)?e.forEach(o):o(e),this}}we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(we.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),w.freezeMethods(we);function di(t,e){const n=this||Vt,r=e||n,s=we.from(r.headers);let o=r.data;return w.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Wr(t){return!!(t&&t.__CANCEL__)}function gt(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}w.inherits(gt,F,{__CANCEL__:!0});function Gr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mc(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),h=r[o];a||(a=u),n[s]=c,r[s]=u;let f=o,m=0;for(;f!==s;)m+=n[f++],f=f%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-a<e)return;const g=h&&u-h;return g?Math.round(m*1e3/g):void 0}}function Bc(t,e){let n=0,r=1e3/e,s,o;const a=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-f)))},()=>s&&a(s)]}const mn=(t,e,n=3)=>{let r=0;const s=Mc(50,250);return Bc(o=>{const a=o.loaded,d=o.lengthComputable?o.total:void 0,c=a-r,u=s(c),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:c,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:o,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Zr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Xr=t=>(...e)=>w.asap(()=>t(...e)),$c=pe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,pe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Ic=pe.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(r)&&a.push("path="+r),w.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function vc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yr(t,e){return t&&!Rc(e)?vc(t,e):e}const Jr=t=>t instanceof we?{...t}:t;function at(t,e){e=e||{};const n={};function r(u,h,f,m){return w.isPlainObject(u)&&w.isPlainObject(h)?w.merge.call({caseless:m},u,h):w.isPlainObject(h)?w.merge({},h):w.isArray(h)?h.slice():h}function s(u,h,f,m){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!w.isUndefined(h))return r(void 0,h)}function a(u,h){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const c={url:o,method:o,data:o,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,responseEncoding:a,validateStatus:d,headers:(u,h,f)=>s(Jr(u),Jr(h),f,!0)};return w.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);w.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Qr=t=>{const e=at({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=we.from(a),e.url=Hr(Yr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let c;if(w.isFormData(n)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...h]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(e)),r||r!==!1&&$c(e.url))){const u=s&&o&&Ic.read(o);u&&a.set(s,u)}return e},Ac=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Qr(t);let o=s.data;const a=we.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function b(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function I(){if(!S)return;const z=we.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:z,config:t,request:S};Gr(function($e){n($e),b()},function($e){r($e),b()},H),S=null}"onloadend"in S?S.onloadend=I:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(I)},S.onabort=function(){S&&(r(new F("Request aborted",F.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let v=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const H=s.transitional||Ur;s.timeoutErrorMessage&&(v=s.timeoutErrorMessage),r(new F(v,H.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,S)),S=null},o===void 0&&a.setContentType(null),"setRequestHeader"in S&&w.forEach(a.toJSON(),function(v,H){S.setRequestHeader(H,v)}),w.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),d&&d!=="json"&&(S.responseType=s.responseType),u&&([m,C]=mn(u,!0),S.addEventListener("progress",m)),c&&S.upload&&([f,g]=mn(c),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=z=>{S&&(r(!z||z.type?new gt(null,t,S):z),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const O=xc(s.url);if(O&&pe.protocols.indexOf(O)===-1){r(new F("Unsupported protocol "+O+":",F.ERR_BAD_REQUEST,t));return}S.send(o||null)})},Nc=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new gt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>w.asap(d),c}},Pc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},zc=async function*(t,e){for await(const n of Vc(t))yield*Pc(n,e)},Vc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Kr=(t,e,n,r)=>{const s=zc(t,e);let o=0,a,d=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:h}=await s.next();if(u){d(),c.close();return}let f=h.byteLength;if(n){let m=o+=f;n(m)}c.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(c){return d(c),s.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",es=pn&&typeof ReadableStream=="function",Tc=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ts=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Fc=es&&ts(()=>{let t=!1;const e=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ns=64*1024,ui=es&&ts(()=>w.isReadableStream(new Response("").body)),gn={stream:ui&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=w.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const Oc=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await Tc(t)).byteLength},Dc=async(t,e)=>{const n=w.toFiniteNumber(t.getContentLength());return n??Oc(e)},hi={http:oc,xhr:Ac,fetch:pn&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:d,onUploadProgress:c,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Qr(t);u=u?(u+"").toLowerCase():"text";let g=Nc([s,o&&o.toAbortSignal()],a),C;const b=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(c&&Fc&&n!=="get"&&n!=="head"&&(S=await Dc(h,r))!==0){let H=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(w.isFormData(r)&&(Be=H.headers.get("content-type"))&&h.setContentType(Be),H.body){const[$e,nt]=Zr(S,mn(Xr(c)));r=Kr(H.body,ns,$e,nt)}}w.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:I?f:void 0});let O=await fetch(C);const z=ui&&(u==="stream"||u==="response");if(ui&&(d||z&&b)){const H={};["status","statusText","headers"].forEach(It=>{H[It]=O[It]});const Be=w.toFiniteNumber(O.headers.get("content-length")),[$e,nt]=d&&Zr(Be,mn(Xr(d),!0))||[];O=new Response(Kr(O.body,ns,$e,()=>{nt&&nt(),b&&b()}),H)}u=u||"text";let v=await gn[w.findKey(gn,u)||"text"](O,t);return!z&&b&&b(),await new Promise((H,Be)=>{Gr(H,Be,{data:v,headers:we.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:C})})}catch(I){throw b&&b(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:I.cause||I}):F.from(I,I&&I.code,t,C)}})};w.forEach(hi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const is=t=>`- ${t}`,Lc=t=>w.isFunction(t)||t===null||t===!1,rs={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!Lc(n)&&(r=hi[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=Object.entries(s).map(([d,c])=>`adapter ${d} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
17
17
  `+o.map(is).join(`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sprof",
3
3
  "description": "components for the designer and uikit",
4
4
  "author": "Stanislav Lushnikov, Daniil Gaivoronskiy",
5
- "version": "0.0.222",
5
+ "version": "0.0.224",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/sprof.umd.cjs",