sprof 0.0.187 → 0.0.189
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/core/classes/FileInfo.d.ts +2 -0
- package/dist/sprof.js +2 -0
- package/dist/sprof.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -5,10 +5,12 @@ export default class FileInfo {
|
|
|
5
5
|
raw?: File;
|
|
6
6
|
blob?: Blob;
|
|
7
7
|
file?: Blob;
|
|
8
|
+
type: string;
|
|
8
9
|
id?: string;
|
|
9
10
|
originalName: string;
|
|
10
11
|
fileSystemPath: string;
|
|
11
12
|
itemId?: string;
|
|
13
|
+
itemOneId?: string;
|
|
12
14
|
description: string;
|
|
13
15
|
order: number;
|
|
14
16
|
constructor(i?: FileInfo);
|
package/dist/sprof.js
CHANGED
|
@@ -1639,10 +1639,12 @@ class Te {
|
|
|
1639
1639
|
a(this, "raw");
|
|
1640
1640
|
a(this, "blob");
|
|
1641
1641
|
a(this, "file");
|
|
1642
|
+
a(this, "type", "");
|
|
1642
1643
|
a(this, "id");
|
|
1643
1644
|
a(this, "originalName", "");
|
|
1644
1645
|
a(this, "fileSystemPath", "");
|
|
1645
1646
|
a(this, "itemId");
|
|
1647
|
+
a(this, "itemOneId");
|
|
1646
1648
|
a(this, "description", "");
|
|
1647
1649
|
a(this, "order", 0);
|
|
1648
1650
|
B.BuildClass(this, e);
|
package/dist/sprof.umd.cjs
CHANGED
|
@@ -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 yr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof gr=="object"?gr: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 sr(Object.create(null))}:c?function(){return sr({__proto__:null})}:function(){return sr({})},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:Yp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Jp(),C=typeof WeakMap=="function"?WeakMap:Qp(),S=s?Symbol.for("@reflect-metadata:registry"):void 0,w=Gp(),$=Zp(w);function F(p,y,k,x){if(V(k)){if(!La(p))throw new TypeError;if(!Ha(y))throw new TypeError;return Dp(p,y)}else{if(!La(p))throw new TypeError;if(!te(y))throw new TypeError;if(!te(x)&&!V(x)&&!It(x))throw new TypeError;return It(x)&&(x=void 0),k=De(k),Lp(p,y,k,x)}}e("decorate",F);function O(p,y){function k(x,z){if(!te(x))throw new TypeError;if(!V(z)&&!jp(z))throw new TypeError;Va(p,y,x,z)}return k}e("metadata",O);function P(p,y,k,x){if(!te(k))throw new TypeError;return V(x)||(x=De(x)),Va(p,y,k,x)}e("defineMetadata",P);function G(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Na(p,y,k)}e("hasMetadata",G);function Me(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),nr(p,y,k)}e("hasOwnMetadata",Me);function Be(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Pa(p,y,k)}e("getMetadata",Be);function tt(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),za(p,y,k)}e("getOwnMetadata",tt);function $t(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Ta(p,y)}e("getMetadataKeys",$t);function _n(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Fa(p,y)}e("getOwnMetadataKeys",_n);function Op(p,y,k){if(!te(y))throw new TypeError;if(V(k)||(k=De(k)),!te(y))throw new TypeError;V(k)||(k=De(k));var x=Gt(y,k,!1);return V(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Op);function Dp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],z=x(y);if(!V(z)&&!It(z)){if(!Ha(z))throw new TypeError;y=z}}return y}function Lp(p,y,k,x){for(var z=p.length-1;z>=0;--z){var se=p[z],ne=se(y,k,x);if(!V(ne)&&!It(ne)){if(!te(ne))throw new TypeError;x=ne}}return x}function Na(p,y,k){var x=nr(p,y,k);if(x)return!0;var z=rr(y);return It(z)?!1:Na(p,z,k)}function nr(p,y,k){var x=Gt(y,k,!1);return V(x)?!1:Da(x.OrdinaryHasOwnMetadata(p,y,k))}function Pa(p,y,k){var x=nr(p,y,k);if(x)return za(p,y,k);var z=rr(y);if(!It(z))return Pa(p,z,k)}function za(p,y,k){var x=Gt(y,k,!1);if(!V(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Va(p,y,k,x){var z=Gt(k,x,!0);z.OrdinaryDefineOwnMetadata(p,y,k,x)}function Ta(p,y){var k=Fa(p,y),x=rr(p);if(x===null)return k;var z=Ta(x,y);if(z.length<=0)return k;if(k.length<=0)return z;for(var se=new g,ne=[],H=0,B=k;H<B.length;H++){var R=B[H],v=se.has(R);v||(se.add(R),ne.push(R))}for(var A=0,q=z;A<q.length;A++){var R=q[A],v=se.has(R);v||(se.add(R),ne.push(R))}return ne}function Fa(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function Oa(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 V(p){return p===void 0}function It(p){return p===null}function Hp(p){return typeof p=="symbol"}function te(p){return typeof p=="object"?p!==null:typeof p=="function"}function qp(p,y){switch(Oa(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=qa(p,o);if(x!==void 0){var z=x.call(p,k);if(te(z))throw new TypeError;return z}return Up(p)}function Up(p,y){var k,x;{var z=p.toString;if(jn(z)){var x=z.call(p);if(!te(x))return x}var k=p.valueOf;if(jn(k)){var x=k.call(p);if(!te(x))return x}}throw new TypeError}function Da(p){return!!p}function _p(p){return""+p}function De(p){var y=qp(p);return Hp(y)?y:_p(y)}function La(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function jn(p){return typeof p=="function"}function Ha(p){return typeof p=="function"}function jp(p){switch(Oa(p)){case 3:return!0;case 4:return!0;default:return!1}}function ir(p,y){return p===y||p!==p&&y!==y}function qa(p,y){var k=p[y];if(k!=null){if(!jn(k))throw new TypeError;return k}}function Ua(p){var y=qa(p,a);if(!jn(y))throw new TypeError;var k=y.call(p);if(!te(k))throw new TypeError;return k}function _a(p){return p.value}function ja(p){var y=p.next();return y.done?!1:y}function Wa(p){var y=p.return;y&&y.call(p)}function rr(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 z=x.constructor;return typeof z!="function"||z===p?y:z}function Wp(){var p;!V(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Xp(n.Reflect));var y,k,x,z=new C,se={registerProvider:ne,getProvider:B,setProvider:v};return se;function ne(A){if(!Object.isExtensible(se))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===A:break;case V(y):y=A;break;case y===A:break;case V(k):k=A;break;case k===A:break;default:x===void 0&&(x=new g),x.add(A);break}}function H(A,q){if(!V(y)){if(y.isProviderFor(A,q))return y;if(!V(k)){if(k.isProviderFor(A,q))return y;if(!V(x))for(var X=Ua(x);;){var Q=ja(X);if(!Q)return;var Ae=_a(Q);if(Ae.isProviderFor(A,q))return Wa(X),Ae}}}if(!V(p)&&p.isProviderFor(A,q))return p}function B(A,q){var X=z.get(A),Q;return V(X)||(Q=X.get(q)),V(Q)&&(Q=H(A,q),V(Q)||(V(X)&&(X=new m,z.set(A,X)),X.set(q,Q))),Q}function R(A){if(V(A))throw new TypeError;return y===A||k===A||!V(x)&&x.has(A)}function v(A,q,X){if(!R(X))throw new Error("Metadata provider not registered.");var Q=B(A,q);if(Q!==X){if(!V(Q))return!1;var Ae=z.get(A);V(Ae)&&(Ae=new m,z.set(A,Ae)),Ae.set(q,X)}return!0}}function Gp(){var p;return!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[S]),V(p)&&(p=Wp()),!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Zp(p){var y=new C,k={isProviderFor:function(R,v){var A=y.get(R);return V(A)?!1:A.has(v)},OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:se,OrdinaryOwnMetadataKeys:H,OrdinaryDeleteMetadata:B};return w.registerProvider(k),k;function x(R,v,A){var q=y.get(R),X=!1;if(V(q)){if(!A)return;q=new m,y.set(R,q),X=!0}var Q=q.get(v);if(V(Q)){if(!A)return;if(Q=new m,q.set(v,Q),!p.setProvider(R,v,k))throw q.delete(v),X&&y.delete(R),new Error("Wrong provider for target.")}return Q}function z(R,v,A){var q=x(v,A,!1);return V(q)?!1:Da(q.has(R))}function se(R,v,A){var q=x(v,A,!1);if(!V(q))return q.get(R)}function ne(R,v,A,q){var X=x(A,q,!0);X.set(R,v)}function H(R,v){var A=[],q=x(R,v,!1);if(V(q))return A;for(var X=q.keys(),Q=Ua(X),Ae=0;;){var Ga=ja(Q);if(!Ga)return A.length=Ae,A;var Kp=_a(Ga);try{A[Ae]=Kp}catch(eg){try{Wa(Q)}finally{throw eg}}Ae++}}function B(R,v,A){var q=x(v,A,!1);if(V(q)||!q.delete(R))return!1;if(q.size===0){var X=y.get(v);V(X)||(X.delete(A),X.size===0&&y.delete(X))}return!0}}function Xp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,z=p.getOwnMetadataKeys,se=p.deleteMetadata,ne=new C,H={isProviderFor:function(B,R){var v=ne.get(B);return!V(v)&&v.has(R)?!0:z(B,R).length?(V(v)&&(v=new g,ne.set(B,v)),v.add(R),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:z,OrdinaryDeleteMetadata:se};return H}function Gt(p,y,k){var x=w.getProvider(p,y);if(!V(x))return x;if(k){if(w.setProvider(p,y,$))return $;throw new Error("Illegal state.")}}function Yp(){var p={},y=[],k=function(){function H(B,R,v){this._index=0,this._keys=B,this._values=R,this._selector=v}return H.prototype["@@iterator"]=function(){return this},H.prototype[a]=function(){return this},H.prototype.next=function(){var B=this._index;if(B>=0&&B<this._keys.length){var R=this._selector(this._keys[B],this._values[B]);return B+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:R,done:!1}}return{value:void 0,done:!0}},H.prototype.throw=function(B){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),B},H.prototype.return=function(B){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:B,done:!0}},H}(),x=function(){function H(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(H.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),H.prototype.has=function(B){return this._find(B,!1)>=0},H.prototype.get=function(B){var R=this._find(B,!1);return R>=0?this._values[R]:void 0},H.prototype.set=function(B,R){var v=this._find(B,!0);return this._values[v]=R,this},H.prototype.delete=function(B){var R=this._find(B,!1);if(R>=0){for(var v=this._keys.length,A=R+1;A<v;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,ir(B,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},H.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},H.prototype.keys=function(){return new k(this._keys,this._values,z)},H.prototype.values=function(){return new k(this._keys,this._values,se)},H.prototype.entries=function(){return new k(this._keys,this._values,ne)},H.prototype["@@iterator"]=function(){return this.entries()},H.prototype[a]=function(){return this.entries()},H.prototype._find=function(B,R){if(!ir(this._cacheKey,B)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ir(this._keys[v],B)){this._cacheIndex=v;break}}return this._cacheIndex<0&&R&&(this._cacheIndex=this._keys.length,this._keys.push(B),this._values.push(void 0)),this._cacheIndex},H}();return x;function z(H,B){return H}function se(H,B){return B}function ne(H,B){return[H,B]}}function Jp(){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 Qp(){var p=16,y=h.create(),k=x();return function(){function B(){this._key=x()}return B.prototype.has=function(R){var v=z(R,!1);return v!==void 0?h.has(v,this._key):!1},B.prototype.get=function(R){var v=z(R,!1);return v!==void 0?h.get(v,this._key):void 0},B.prototype.set=function(R,v){var A=z(R,!0);return A[this._key]=v,this},B.prototype.delete=function(R){var v=z(R,!1);return v!==void 0?delete v[this._key]:!1},B.prototype.clear=function(){this._key=x()},B}();function x(){var B;do B="@@WeakMap@@"+H();while(h.has(y,B));return y[B]=!0,B}function z(B,R){if(!r.call(B,k)){if(!R)return;Object.defineProperty(B,k,{value:h.create()})}return B[k]}function se(B,R){for(var v=0;v<R;++v)B[v]=Math.random()*255|0;return B}function ne(B){if(typeof Uint8Array=="function"){var R=new Uint8Array(B);return typeof crypto<"u"?crypto.getRandomValues(R):typeof msCrypto<"u"?msCrypto.getRandomValues(R):se(R,B),R}return se(new Array(B),B)}function H(){var B=ne(p);B[6]=B[6]&79|64,B[8]=B[8]&191|128;for(var R="",v=0;v<p;++v){var A=B[v];(v===4||v===6||v===8)&&(R+="-"),A<16&&(R+="0"),R+=A.toString(16).toLowerCase()}return R}}function sr(p){return p.__=void 0,delete p.__,p}})})(yr||(yr={}));let tn;const dl=new Uint8Array(16);function ul(){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(dl)}const ae=[];for(let t=0;t<256;++t)ae.push((t+256).toString(16).slice(1));function hl(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}const wr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ge(t,e,n){if(wr.randomUUID&&!t)return wr.randomUUID();t=t||{};const r=t.random||(t.rng||ul)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,hl(r)}class le{static UUID(){return Ge()}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 _{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():_.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=_.Translit(r),a=_.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return _.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(_.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=_.Translit(e);return[e,_.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,_.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 Qe=class Qe{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){Qe.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Qe.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 Qe.BuildClass(r),r.id=le.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Qe.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Qe.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(_.TrimText)(e)}};l(Qe,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let I=Qe;class it{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new it;return e.id=le.UUID(),e}}class Qn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Qn,"staticUrl","");class pe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"description","");l(this,"order",0);I.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Qn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new pe;return r.id=n??le.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=le.UUID(),r}setFile(e){this.id||(this.id=M.H.Id.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=M.H.Id.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:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.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 br{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);I.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=_.Capitalize(this.name),this.surname=_.Capitalize(this.surname),this.patronymic=_.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 rt{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new rt;return e.id=le.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}class Kn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}let fl=(Ke=class{},l(Ke,"Phone",rt),l(Ke,"FileInfo",pe),l(Ke,"PostAddress",nn),l(Ke,"Website",Kn),l(Ke,"Email",it),l(Ke,"Human",br),Ke);class He{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 ie=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(ie||{}),ue=(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))(ue||{}),ml=Object.defineProperty,pl=(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&&ml(e,n,s),s};const Cr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",ue.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ie.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","");I.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ie.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ue.In?n&&He.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===ie.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ie.String?this.value1===(e==null?void 0:e.value1):this.type===ie.Join&&this.set.length?He.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===ie.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ie.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===ie.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ie.Number?`"number":${this.number}`:"",h=this.type===ie.Set||this.operator===ue.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ie.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===ue.Eq||this.operator===ue.Gt||this.operator===ue.Lt}isBetweenFilter(){return this.operator===ue.Btw}isSetFilter(){return this.operator===ue.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===ie.Number&&(s.value1="0"),s.type===ie.String&&(s.value1=""),s.type===ie.Boolean&&(s.value1="false",s.operator=ue.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Ge(),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=ie.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Ge(),r.model=_.ToCamelCase(e.GetClassName()),r.joinTableModel=_.ToCamelCase(n.GetClassName()),r.type=ie.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=ue.Eq;return}this.setDate2(n),this.operator=ue.Btw}};pl([I.GetClassConstructor(String)],Cr.prototype,"set");let ei=Cr;class gl{constructor(){l(this,"operation",ue.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 gl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");I.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ue.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=ue.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,I.BuildClass(this)}}var ke=(t=>(t.Asc="asc",t.Desc="desc",t))(ke||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);I.BuildClass(this,e)}static Create(e,n,r=ke.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??ke.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===ke.Asc}isDesc(){return this.order===ke.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=ke.Asc}desc(){this.order=ke.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 yl=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&&yl(e,n,s),s};const At=(Ce=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);I.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Ce),this.instance}createFrom(e){const n=new Ce(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Ce(this);return e.f=this.f.map(n=>Ce.EmptyEntiries(n)),e.s=this.s.map(n=>Ce.EmptyEntiries(n)),e.p=Ce.EmptyEntiries(this.p),e.t=Ce.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 He.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));I.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Ce,"instance"),Ce);an([I.GetClassConstructor(ei)],At.prototype,"f"),an([I.GetClassConstructor(sn)],At.prototype,"s"),an([I.GetClassConstructor(rn)],At.prototype,"p"),an([I.GetClassConstructor(on)],At.prototype,"t");let Nt=At,wl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ei),l(Wt,"FTSP",Nt),Wt);function Sr(t,e){return function(){return t.apply(e,arguments)}}const{toString:bl}=Object.prototype,{getPrototypeOf:ti}=Object,ln=(t=>e=>{const n=bl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:mt}=Array,Pt=cn("undefined");function Cl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const kr=Re("ArrayBuffer");function Sl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&kr(t.buffer),e}const kl=cn("string"),be=cn("function"),Er=cn("number"),dn=t=>t!==null&&typeof t=="object",El=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ti(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xl=Re("Date"),Ml=Re("File"),Bl=Re("Blob"),$l=Re("FileList"),Il=t=>dn(t)&&be(t.pipe),Rl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((e=ln(t))==="formdata"||e==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},vl=Re("URLSearchParams"),[Al,Nl,Pl,zl]=["ReadableStream","Request","Response","Headers"].map(Re),Vl=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]),mt(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 xr(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 st=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mr=t=>!Pt(t)&&t!==st;function ni(){const{caseless:t}=Mr(this)&&this||{},e={},n=(r,s)=>{const o=t&&xr(e,s)||s;un(e[o])&&un(r)?e[o]=ni(e[o],r):un(r)?e[o]=ni({},r):mt(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 Tl=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&be(s)?t[o]=Sr(s,n):t[o]=s},{allOwnKeys:r}),t),Fl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ol=(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)},Dl=(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&&ti(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ll=(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},Hl=t=>{if(!t)return null;if(mt(t))return t;let e=t.length;if(!Er(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ql=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ti(Uint8Array)),Ul=(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])}},_l=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},jl=Re("HTMLFormElement"),Wl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Br=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Gl=Re("RegExp"),$r=(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)},Zl=t=>{$r(t,(e,n)=>{if(be(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(be(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+"'")})}})},Xl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return mt(t)?r(t):r(String(t).split(e)),n},Yl=()=>{},Jl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ii="abcdefghijklmnopqrstuvwxyz",Ir="0123456789",Rr={DIGIT:Ir,ALPHA:ii,ALPHA_DIGIT:ii+ii.toUpperCase()+Ir},Ql=(t=16,e=Rr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Kl(t){return!!(t&&be(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ec=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=mt(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)},tc=Re("AsyncFunction"),nc=t=>t&&(dn(t)||be(t))&&be(t.then)&&be(t.catch),vr=((t,e)=>t?setImmediate:e?((n,r)=>(st.addEventListener("message",({source:s,data:o})=>{s===st&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),st.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",be(st.postMessage)),ic=typeof queueMicrotask<"u"?queueMicrotask.bind(st):typeof process<"u"&&process.nextTick||vr,b={isArray:mt,isArrayBuffer:kr,isBuffer:Cl,isFormData:Rl,isArrayBufferView:Sl,isString:kl,isNumber:Er,isBoolean:El,isObject:dn,isPlainObject:un,isReadableStream:Al,isRequest:Nl,isResponse:Pl,isHeaders:zl,isUndefined:Pt,isDate:xl,isFile:Ml,isBlob:Bl,isRegExp:Gl,isFunction:be,isStream:Il,isURLSearchParams:vl,isTypedArray:ql,isFileList:$l,forEach:zt,merge:ni,extend:Tl,trim:Vl,stripBOM:Fl,inherits:Ol,toFlatObject:Dl,kindOf:ln,kindOfTest:Re,endsWith:Ll,toArray:Hl,forEachEntry:Ul,matchAll:_l,isHTMLForm:jl,hasOwnProperty:Br,hasOwnProp:Br,reduceDescriptors:$r,freezeMethods:Zl,toObjectSet:Xl,toCamelCase:Wl,noop:Yl,toFiniteNumber:Jl,findKey:xr,global:st,isContextDefined:Mr,ALPHABET:Rr,generateString:Ql,isSpecCompliantForm:Kl,toJSONObject:ec,isAsyncFn:tc,isThenable:nc,setImmediate:vr,asap:ic};function T(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)}b.inherits(T,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Ar=T.prototype,Nr={};["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=>{Nr[t]={value:t}}),Object.defineProperties(T,Nr),Object.defineProperty(Ar,"isAxiosError",{value:!0}),T.from=(t,e,n,r,s,o)=>{const a=Object.create(Ar);return b.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),T.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const rc=null;function ri(t){return b.isPlainObject(t)||b.isArray(t)}function Pr(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function zr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Pr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function sc(t){return b.isArray(t)&&!t.some(ri)}const oc=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!b.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(b.isDate(C))return C.toISOString();if(!c&&b.isBlob(C))throw new T("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(C)||b.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let $=C;if(C&&!w&&typeof C=="object"){if(b.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(b.isArray(C)&&sc(C)||(b.isFileList(C)||b.endsWith(S,"[]"))&&($=b.toArray(C)))return S=Pr(S),$.forEach(function(O,P){!(b.isUndefined(O)||O===null)&&e.append(a===!0?zr([S],P,o):a===null?S:S+"[]",u(O))}),!1}return ri(C)?!0:(e.append(zr(w,S,o),u(C)),!1)}const f=[],m=Object.assign(oc,{defaultVisitor:h,convertValue:u,isVisitable:ri});function g(C,S){if(!b.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(C),b.forEach(C,function($,F){(!(b.isUndefined($)||$===null)&&s.call(e,$,b.isString(F)?F.trim():F,S,m))===!0&&g($,S?S.concat(F):[F])}),f.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Vr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function si(t,e){this._pairs=[],t&&hn(t,this,e)}const Tr=si.prototype;Tr.append=function(e,n){this._pairs.push([e,n])},Tr.toString=function(e){const n=e?function(r){return e.call(this,r,Vr)}:Vr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ac(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fr(t,e,n){if(!e)return t;const r=n&&n.encode||ac;b.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=b.isURLSearchParams(e)?e.toString():new si(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Or{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){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:si,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oi=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,cc=oi&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),dc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uc=oi&&window.location.href||"http://localhost",he={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oi,hasStandardBrowserEnv:cc,hasStandardBrowserWebWorkerEnv:dc,navigator:ai,origin:uc},Symbol.toStringTag,{value:"Module"})),...lc};function hc(t,e){return hn(t,new he.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return he.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function fc(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mc(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 Lr(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&&b.isArray(s)?s.length:a,c?(b.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!b.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&b.isArray(s[a])&&(s[a]=mc(s[a])),!d)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,s)=>{e(fc(r),s,n,0)}),n}return null}function pc(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Dr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return s?JSON.stringify(Lr(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.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 hc(e,this.formSerializer).toString();if((d=b.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),pc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.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"?T.from(d,T.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:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const gc=b.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"]),yc=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
14
|
+
***************************************************************************** */var yr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof gr=="object"?gr: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 sr(Object.create(null))}:c?function(){return sr({__proto__:null})}:function(){return sr({})},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:Yp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Jp(),C=typeof WeakMap=="function"?WeakMap:Qp(),S=s?Symbol.for("@reflect-metadata:registry"):void 0,w=Gp(),$=Zp(w);function F(p,y,k,x){if(V(k)){if(!La(p))throw new TypeError;if(!Ha(y))throw new TypeError;return Dp(p,y)}else{if(!La(p))throw new TypeError;if(!te(y))throw new TypeError;if(!te(x)&&!V(x)&&!It(x))throw new TypeError;return It(x)&&(x=void 0),k=De(k),Lp(p,y,k,x)}}e("decorate",F);function O(p,y){function k(x,z){if(!te(x))throw new TypeError;if(!V(z)&&!jp(z))throw new TypeError;Va(p,y,x,z)}return k}e("metadata",O);function P(p,y,k,x){if(!te(k))throw new TypeError;return V(x)||(x=De(x)),Va(p,y,k,x)}e("defineMetadata",P);function G(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Na(p,y,k)}e("hasMetadata",G);function Me(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),nr(p,y,k)}e("hasOwnMetadata",Me);function Be(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Pa(p,y,k)}e("getMetadata",Be);function tt(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),za(p,y,k)}e("getOwnMetadata",tt);function $t(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Ta(p,y)}e("getMetadataKeys",$t);function _n(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Fa(p,y)}e("getOwnMetadataKeys",_n);function Op(p,y,k){if(!te(y))throw new TypeError;if(V(k)||(k=De(k)),!te(y))throw new TypeError;V(k)||(k=De(k));var x=Gt(y,k,!1);return V(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Op);function Dp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],z=x(y);if(!V(z)&&!It(z)){if(!Ha(z))throw new TypeError;y=z}}return y}function Lp(p,y,k,x){for(var z=p.length-1;z>=0;--z){var se=p[z],ne=se(y,k,x);if(!V(ne)&&!It(ne)){if(!te(ne))throw new TypeError;x=ne}}return x}function Na(p,y,k){var x=nr(p,y,k);if(x)return!0;var z=rr(y);return It(z)?!1:Na(p,z,k)}function nr(p,y,k){var x=Gt(y,k,!1);return V(x)?!1:Da(x.OrdinaryHasOwnMetadata(p,y,k))}function Pa(p,y,k){var x=nr(p,y,k);if(x)return za(p,y,k);var z=rr(y);if(!It(z))return Pa(p,z,k)}function za(p,y,k){var x=Gt(y,k,!1);if(!V(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Va(p,y,k,x){var z=Gt(k,x,!0);z.OrdinaryDefineOwnMetadata(p,y,k,x)}function Ta(p,y){var k=Fa(p,y),x=rr(p);if(x===null)return k;var z=Ta(x,y);if(z.length<=0)return k;if(k.length<=0)return z;for(var se=new g,ne=[],H=0,B=k;H<B.length;H++){var R=B[H],v=se.has(R);v||(se.add(R),ne.push(R))}for(var A=0,q=z;A<q.length;A++){var R=q[A],v=se.has(R);v||(se.add(R),ne.push(R))}return ne}function Fa(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function Oa(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 V(p){return p===void 0}function It(p){return p===null}function Hp(p){return typeof p=="symbol"}function te(p){return typeof p=="object"?p!==null:typeof p=="function"}function qp(p,y){switch(Oa(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=qa(p,o);if(x!==void 0){var z=x.call(p,k);if(te(z))throw new TypeError;return z}return Up(p)}function Up(p,y){var k,x;{var z=p.toString;if(jn(z)){var x=z.call(p);if(!te(x))return x}var k=p.valueOf;if(jn(k)){var x=k.call(p);if(!te(x))return x}}throw new TypeError}function Da(p){return!!p}function _p(p){return""+p}function De(p){var y=qp(p);return Hp(y)?y:_p(y)}function La(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function jn(p){return typeof p=="function"}function Ha(p){return typeof p=="function"}function jp(p){switch(Oa(p)){case 3:return!0;case 4:return!0;default:return!1}}function ir(p,y){return p===y||p!==p&&y!==y}function qa(p,y){var k=p[y];if(k!=null){if(!jn(k))throw new TypeError;return k}}function Ua(p){var y=qa(p,a);if(!jn(y))throw new TypeError;var k=y.call(p);if(!te(k))throw new TypeError;return k}function _a(p){return p.value}function ja(p){var y=p.next();return y.done?!1:y}function Wa(p){var y=p.return;y&&y.call(p)}function rr(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 z=x.constructor;return typeof z!="function"||z===p?y:z}function Wp(){var p;!V(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Xp(n.Reflect));var y,k,x,z=new C,se={registerProvider:ne,getProvider:B,setProvider:v};return se;function ne(A){if(!Object.isExtensible(se))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===A:break;case V(y):y=A;break;case y===A:break;case V(k):k=A;break;case k===A:break;default:x===void 0&&(x=new g),x.add(A);break}}function H(A,q){if(!V(y)){if(y.isProviderFor(A,q))return y;if(!V(k)){if(k.isProviderFor(A,q))return y;if(!V(x))for(var X=Ua(x);;){var Q=ja(X);if(!Q)return;var Ae=_a(Q);if(Ae.isProviderFor(A,q))return Wa(X),Ae}}}if(!V(p)&&p.isProviderFor(A,q))return p}function B(A,q){var X=z.get(A),Q;return V(X)||(Q=X.get(q)),V(Q)&&(Q=H(A,q),V(Q)||(V(X)&&(X=new m,z.set(A,X)),X.set(q,Q))),Q}function R(A){if(V(A))throw new TypeError;return y===A||k===A||!V(x)&&x.has(A)}function v(A,q,X){if(!R(X))throw new Error("Metadata provider not registered.");var Q=B(A,q);if(Q!==X){if(!V(Q))return!1;var Ae=z.get(A);V(Ae)&&(Ae=new m,z.set(A,Ae)),Ae.set(q,X)}return!0}}function Gp(){var p;return!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[S]),V(p)&&(p=Wp()),!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Zp(p){var y=new C,k={isProviderFor:function(R,v){var A=y.get(R);return V(A)?!1:A.has(v)},OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:se,OrdinaryOwnMetadataKeys:H,OrdinaryDeleteMetadata:B};return w.registerProvider(k),k;function x(R,v,A){var q=y.get(R),X=!1;if(V(q)){if(!A)return;q=new m,y.set(R,q),X=!0}var Q=q.get(v);if(V(Q)){if(!A)return;if(Q=new m,q.set(v,Q),!p.setProvider(R,v,k))throw q.delete(v),X&&y.delete(R),new Error("Wrong provider for target.")}return Q}function z(R,v,A){var q=x(v,A,!1);return V(q)?!1:Da(q.has(R))}function se(R,v,A){var q=x(v,A,!1);if(!V(q))return q.get(R)}function ne(R,v,A,q){var X=x(A,q,!0);X.set(R,v)}function H(R,v){var A=[],q=x(R,v,!1);if(V(q))return A;for(var X=q.keys(),Q=Ua(X),Ae=0;;){var Ga=ja(Q);if(!Ga)return A.length=Ae,A;var Kp=_a(Ga);try{A[Ae]=Kp}catch(eg){try{Wa(Q)}finally{throw eg}}Ae++}}function B(R,v,A){var q=x(v,A,!1);if(V(q)||!q.delete(R))return!1;if(q.size===0){var X=y.get(v);V(X)||(X.delete(A),X.size===0&&y.delete(X))}return!0}}function Xp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,z=p.getOwnMetadataKeys,se=p.deleteMetadata,ne=new C,H={isProviderFor:function(B,R){var v=ne.get(B);return!V(v)&&v.has(R)?!0:z(B,R).length?(V(v)&&(v=new g,ne.set(B,v)),v.add(R),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:z,OrdinaryDeleteMetadata:se};return H}function Gt(p,y,k){var x=w.getProvider(p,y);if(!V(x))return x;if(k){if(w.setProvider(p,y,$))return $;throw new Error("Illegal state.")}}function Yp(){var p={},y=[],k=function(){function H(B,R,v){this._index=0,this._keys=B,this._values=R,this._selector=v}return H.prototype["@@iterator"]=function(){return this},H.prototype[a]=function(){return this},H.prototype.next=function(){var B=this._index;if(B>=0&&B<this._keys.length){var R=this._selector(this._keys[B],this._values[B]);return B+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:R,done:!1}}return{value:void 0,done:!0}},H.prototype.throw=function(B){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),B},H.prototype.return=function(B){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:B,done:!0}},H}(),x=function(){function H(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(H.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),H.prototype.has=function(B){return this._find(B,!1)>=0},H.prototype.get=function(B){var R=this._find(B,!1);return R>=0?this._values[R]:void 0},H.prototype.set=function(B,R){var v=this._find(B,!0);return this._values[v]=R,this},H.prototype.delete=function(B){var R=this._find(B,!1);if(R>=0){for(var v=this._keys.length,A=R+1;A<v;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,ir(B,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},H.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},H.prototype.keys=function(){return new k(this._keys,this._values,z)},H.prototype.values=function(){return new k(this._keys,this._values,se)},H.prototype.entries=function(){return new k(this._keys,this._values,ne)},H.prototype["@@iterator"]=function(){return this.entries()},H.prototype[a]=function(){return this.entries()},H.prototype._find=function(B,R){if(!ir(this._cacheKey,B)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ir(this._keys[v],B)){this._cacheIndex=v;break}}return this._cacheIndex<0&&R&&(this._cacheIndex=this._keys.length,this._keys.push(B),this._values.push(void 0)),this._cacheIndex},H}();return x;function z(H,B){return H}function se(H,B){return B}function ne(H,B){return[H,B]}}function Jp(){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 Qp(){var p=16,y=h.create(),k=x();return function(){function B(){this._key=x()}return B.prototype.has=function(R){var v=z(R,!1);return v!==void 0?h.has(v,this._key):!1},B.prototype.get=function(R){var v=z(R,!1);return v!==void 0?h.get(v,this._key):void 0},B.prototype.set=function(R,v){var A=z(R,!0);return A[this._key]=v,this},B.prototype.delete=function(R){var v=z(R,!1);return v!==void 0?delete v[this._key]:!1},B.prototype.clear=function(){this._key=x()},B}();function x(){var B;do B="@@WeakMap@@"+H();while(h.has(y,B));return y[B]=!0,B}function z(B,R){if(!r.call(B,k)){if(!R)return;Object.defineProperty(B,k,{value:h.create()})}return B[k]}function se(B,R){for(var v=0;v<R;++v)B[v]=Math.random()*255|0;return B}function ne(B){if(typeof Uint8Array=="function"){var R=new Uint8Array(B);return typeof crypto<"u"?crypto.getRandomValues(R):typeof msCrypto<"u"?msCrypto.getRandomValues(R):se(R,B),R}return se(new Array(B),B)}function H(){var B=ne(p);B[6]=B[6]&79|64,B[8]=B[8]&191|128;for(var R="",v=0;v<p;++v){var A=B[v];(v===4||v===6||v===8)&&(R+="-"),A<16&&(R+="0"),R+=A.toString(16).toLowerCase()}return R}}function sr(p){return p.__=void 0,delete p.__,p}})})(yr||(yr={}));let tn;const dl=new Uint8Array(16);function ul(){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(dl)}const ae=[];for(let t=0;t<256;++t)ae.push((t+256).toString(16).slice(1));function hl(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}const wr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ge(t,e,n){if(wr.randomUUID&&!t)return wr.randomUUID();t=t||{};const r=t.random||(t.rng||ul)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,hl(r)}class le{static UUID(){return Ge()}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 _{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():_.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=_.Translit(r),a=_.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return _.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(_.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=_.Translit(e);return[e,_.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,_.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 Qe=class Qe{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){Qe.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Qe.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 Qe.BuildClass(r),r.id=le.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Qe.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Qe.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(_.TrimText)(e)}};l(Qe,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let I=Qe;class it{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new it;return e.id=le.UUID(),e}}class Qn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Qn,"staticUrl","");class pe{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);I.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Qn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new pe;return r.id=n??le.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=le.UUID(),r}setFile(e){this.id||(this.id=M.H.Id.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=M.H.Id.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:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.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 br{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);I.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=_.Capitalize(this.name),this.surname=_.Capitalize(this.surname),this.patronymic=_.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 rt{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new rt;return e.id=le.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}class Kn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}let fl=(Ke=class{},l(Ke,"Phone",rt),l(Ke,"FileInfo",pe),l(Ke,"PostAddress",nn),l(Ke,"Website",Kn),l(Ke,"Email",it),l(Ke,"Human",br),Ke);class He{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 ie=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(ie||{}),ue=(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))(ue||{}),ml=Object.defineProperty,pl=(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&&ml(e,n,s),s};const Cr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",ue.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ie.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","");I.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ie.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ue.In?n&&He.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===ie.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ie.String?this.value1===(e==null?void 0:e.value1):this.type===ie.Join&&this.set.length?He.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===ie.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ie.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===ie.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ie.Number?`"number":${this.number}`:"",h=this.type===ie.Set||this.operator===ue.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ie.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===ue.Eq||this.operator===ue.Gt||this.operator===ue.Lt}isBetweenFilter(){return this.operator===ue.Btw}isSetFilter(){return this.operator===ue.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===ie.Number&&(s.value1="0"),s.type===ie.String&&(s.value1=""),s.type===ie.Boolean&&(s.value1="false",s.operator=ue.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Ge(),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=ie.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Ge(),r.model=_.ToCamelCase(e.GetClassName()),r.joinTableModel=_.ToCamelCase(n.GetClassName()),r.type=ie.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=ue.Eq;return}this.setDate2(n),this.operator=ue.Btw}};pl([I.GetClassConstructor(String)],Cr.prototype,"set");let ei=Cr;class gl{constructor(){l(this,"operation",ue.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 gl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");I.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ue.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=ue.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,I.BuildClass(this)}}var ke=(t=>(t.Asc="asc",t.Desc="desc",t))(ke||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);I.BuildClass(this,e)}static Create(e,n,r=ke.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??ke.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===ke.Asc}isDesc(){return this.order===ke.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=ke.Asc}desc(){this.order=ke.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 yl=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&&yl(e,n,s),s};const At=(Ce=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);I.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Ce),this.instance}createFrom(e){const n=new Ce(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Ce(this);return e.f=this.f.map(n=>Ce.EmptyEntiries(n)),e.s=this.s.map(n=>Ce.EmptyEntiries(n)),e.p=Ce.EmptyEntiries(this.p),e.t=Ce.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 He.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));I.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Ce,"instance"),Ce);an([I.GetClassConstructor(ei)],At.prototype,"f"),an([I.GetClassConstructor(sn)],At.prototype,"s"),an([I.GetClassConstructor(rn)],At.prototype,"p"),an([I.GetClassConstructor(on)],At.prototype,"t");let Nt=At,wl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ei),l(Wt,"FTSP",Nt),Wt);function Sr(t,e){return function(){return t.apply(e,arguments)}}const{toString:bl}=Object.prototype,{getPrototypeOf:ti}=Object,ln=(t=>e=>{const n=bl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:mt}=Array,Pt=cn("undefined");function Cl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const kr=Re("ArrayBuffer");function Sl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&kr(t.buffer),e}const kl=cn("string"),be=cn("function"),Er=cn("number"),dn=t=>t!==null&&typeof t=="object",El=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ti(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xl=Re("Date"),Ml=Re("File"),Bl=Re("Blob"),$l=Re("FileList"),Il=t=>dn(t)&&be(t.pipe),Rl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((e=ln(t))==="formdata"||e==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},vl=Re("URLSearchParams"),[Al,Nl,Pl,zl]=["ReadableStream","Request","Response","Headers"].map(Re),Vl=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]),mt(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 xr(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 st=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mr=t=>!Pt(t)&&t!==st;function ni(){const{caseless:t}=Mr(this)&&this||{},e={},n=(r,s)=>{const o=t&&xr(e,s)||s;un(e[o])&&un(r)?e[o]=ni(e[o],r):un(r)?e[o]=ni({},r):mt(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 Tl=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&be(s)?t[o]=Sr(s,n):t[o]=s},{allOwnKeys:r}),t),Fl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ol=(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)},Dl=(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&&ti(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ll=(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},Hl=t=>{if(!t)return null;if(mt(t))return t;let e=t.length;if(!Er(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ql=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ti(Uint8Array)),Ul=(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])}},_l=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},jl=Re("HTMLFormElement"),Wl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Br=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Gl=Re("RegExp"),$r=(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)},Zl=t=>{$r(t,(e,n)=>{if(be(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(be(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+"'")})}})},Xl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return mt(t)?r(t):r(String(t).split(e)),n},Yl=()=>{},Jl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ii="abcdefghijklmnopqrstuvwxyz",Ir="0123456789",Rr={DIGIT:Ir,ALPHA:ii,ALPHA_DIGIT:ii+ii.toUpperCase()+Ir},Ql=(t=16,e=Rr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Kl(t){return!!(t&&be(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ec=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=mt(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)},tc=Re("AsyncFunction"),nc=t=>t&&(dn(t)||be(t))&&be(t.then)&&be(t.catch),vr=((t,e)=>t?setImmediate:e?((n,r)=>(st.addEventListener("message",({source:s,data:o})=>{s===st&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),st.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",be(st.postMessage)),ic=typeof queueMicrotask<"u"?queueMicrotask.bind(st):typeof process<"u"&&process.nextTick||vr,b={isArray:mt,isArrayBuffer:kr,isBuffer:Cl,isFormData:Rl,isArrayBufferView:Sl,isString:kl,isNumber:Er,isBoolean:El,isObject:dn,isPlainObject:un,isReadableStream:Al,isRequest:Nl,isResponse:Pl,isHeaders:zl,isUndefined:Pt,isDate:xl,isFile:Ml,isBlob:Bl,isRegExp:Gl,isFunction:be,isStream:Il,isURLSearchParams:vl,isTypedArray:ql,isFileList:$l,forEach:zt,merge:ni,extend:Tl,trim:Vl,stripBOM:Fl,inherits:Ol,toFlatObject:Dl,kindOf:ln,kindOfTest:Re,endsWith:Ll,toArray:Hl,forEachEntry:Ul,matchAll:_l,isHTMLForm:jl,hasOwnProperty:Br,hasOwnProp:Br,reduceDescriptors:$r,freezeMethods:Zl,toObjectSet:Xl,toCamelCase:Wl,noop:Yl,toFiniteNumber:Jl,findKey:xr,global:st,isContextDefined:Mr,ALPHABET:Rr,generateString:Ql,isSpecCompliantForm:Kl,toJSONObject:ec,isAsyncFn:tc,isThenable:nc,setImmediate:vr,asap:ic};function T(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)}b.inherits(T,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Ar=T.prototype,Nr={};["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=>{Nr[t]={value:t}}),Object.defineProperties(T,Nr),Object.defineProperty(Ar,"isAxiosError",{value:!0}),T.from=(t,e,n,r,s,o)=>{const a=Object.create(Ar);return b.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),T.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const rc=null;function ri(t){return b.isPlainObject(t)||b.isArray(t)}function Pr(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function zr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Pr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function sc(t){return b.isArray(t)&&!t.some(ri)}const oc=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!b.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(b.isDate(C))return C.toISOString();if(!c&&b.isBlob(C))throw new T("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(C)||b.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let $=C;if(C&&!w&&typeof C=="object"){if(b.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(b.isArray(C)&&sc(C)||(b.isFileList(C)||b.endsWith(S,"[]"))&&($=b.toArray(C)))return S=Pr(S),$.forEach(function(O,P){!(b.isUndefined(O)||O===null)&&e.append(a===!0?zr([S],P,o):a===null?S:S+"[]",u(O))}),!1}return ri(C)?!0:(e.append(zr(w,S,o),u(C)),!1)}const f=[],m=Object.assign(oc,{defaultVisitor:h,convertValue:u,isVisitable:ri});function g(C,S){if(!b.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(C),b.forEach(C,function($,F){(!(b.isUndefined($)||$===null)&&s.call(e,$,b.isString(F)?F.trim():F,S,m))===!0&&g($,S?S.concat(F):[F])}),f.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Vr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function si(t,e){this._pairs=[],t&&hn(t,this,e)}const Tr=si.prototype;Tr.append=function(e,n){this._pairs.push([e,n])},Tr.toString=function(e){const n=e?function(r){return e.call(this,r,Vr)}:Vr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ac(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fr(t,e,n){if(!e)return t;const r=n&&n.encode||ac;b.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=b.isURLSearchParams(e)?e.toString():new si(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Or{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){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:si,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oi=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,cc=oi&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),dc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uc=oi&&window.location.href||"http://localhost",he={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oi,hasStandardBrowserEnv:cc,hasStandardBrowserWebWorkerEnv:dc,navigator:ai,origin:uc},Symbol.toStringTag,{value:"Module"})),...lc};function hc(t,e){return hn(t,new he.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return he.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function fc(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mc(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 Lr(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&&b.isArray(s)?s.length:a,c?(b.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!b.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&b.isArray(s[a])&&(s[a]=mc(s[a])),!d)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,s)=>{e(fc(r),s,n,0)}),n}return null}function pc(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Dr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return s?JSON.stringify(Lr(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.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 hc(e,this.formSerializer).toString();if((d=b.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),pc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.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"?T.from(d,T.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:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const gc=b.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"]),yc=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]&&gc[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Hr=Symbol("internals");function Tt(t){return t&&String(t).trim().toLowerCase()}function fn(t){return t===!1||t==null?t:b.isArray(t)?t.map(fn):String(t)}function wc(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 bc=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function li(t,e,n,r,s){if(b.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Cc(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Sc(t,e){const n=b.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 ye{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=b.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)=>b.forEach(d,(u,h)=>o(u,h,c));if(b.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(b.isString(e)&&(e=e.trim())&&!bc(e))a(yc(e),n);else if(b.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=b.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return wc(s);if(b.isFunction(n))return n.call(this,s,r);if(b.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=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||li(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=b.findKey(r,a);d&&(!n||li(r,r[d],d,n))&&(delete r[d],s=!0)}}return b.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||li(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return b.forEach(this,(s,o)=>{const a=b.findKey(r,o);if(a){n[a]=fn(s),delete n[o];return}const d=e?Cc(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 b.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&b.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[Hr]=this[Hr]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Tt(a);r[d]||(Sc(s,a),r[d]=!0)}return b.isArray(e)?e.forEach(o):o(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(ye.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),b.freezeMethods(ye);function ci(t,e){const n=this||Vt,r=e||n,s=ye.from(r.headers);let o=r.data;return b.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function qr(t){return!!(t&&t.__CANCEL__)}function pt(t,e,n){T.call(this,t??"canceled",T.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(pt,T,{__CANCEL__:!0});function Ur(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new T("Request failed with status code "+n.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ec(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 xc(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=Ec(50,250);return xc(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)},_r=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},jr=t=>(...e)=>b.asap(()=>t(...e)),Mc=he.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,he.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(he.origin),he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent)):()=>!0,Bc=he.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),b.isString(r)&&a.push("path="+r),b.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 $c(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ic(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Wr(t,e){return t&&!$c(e)?Ic(t,e):e}const Gr=t=>t instanceof ye?{...t}:t;function ot(t,e){e=e||{};const n={};function r(u,h,f,m){return b.isPlainObject(u)&&b.isPlainObject(h)?b.merge.call({caseless:m},u,h):b.isPlainObject(h)?b.merge({},h):b.isArray(h)?h.slice():h}function s(u,h,f,m){if(b.isUndefined(h)){if(!b.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!b.isUndefined(h))return r(void 0,h)}function a(u,h){if(b.isUndefined(h)){if(!b.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(Gr(u),Gr(h),f,!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);b.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Zr=t=>{const e=ot({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=ye.from(a),e.url=Fr(Wr(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(b.isFormData(n)){if(he.hasStandardBrowserEnv||he.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(he.hasStandardBrowserEnv&&(r&&b.isFunction(r)&&(r=r(e)),r||r!==!1&&Mc(e.url))){const u=s&&o&&Bc.read(o);u&&a.set(s,u)}return e},Rc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Zr(t);let o=s.data;const a=ye.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function S(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function $(){if(!w)return;const O=ye.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),G={data:!d||d==="text"||d==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:O,config:t,request:w};Ur(function(Be){n(Be),S()},function(Be){r(Be),S()},G),w=null}"onloadend"in w?w.onloadend=$:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout($)},w.onabort=function(){w&&(r(new T("Request aborted",T.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new T("Network Error",T.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const G=s.transitional||Dr;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new T(P,G.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,w)),w=null},o===void 0&&a.setContentType(null),"setRequestHeader"in w&&b.forEach(a.toJSON(),function(P,G){w.setRequestHeader(G,P)}),b.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),d&&d!=="json"&&(w.responseType=s.responseType),u&&([m,C]=mn(u,!0),w.addEventListener("progress",m)),c&&w.upload&&([f,g]=mn(c),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=O=>{w&&(r(!O||O.type?new pt(null,t,w):O),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const F=kc(s.url);if(F&&he.protocols.indexOf(F)===-1){r(new T("Unsupported protocol "+F+":",T.ERR_BAD_REQUEST,t));return}w.send(o||null)})},vc=(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 T?h:new pt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new T(`timeout ${e} of ms exceeded`,T.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=()=>b.asap(d),c}},Ac=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},Nc=async function*(t,e){for await(const n of Pc(t))yield*Ac(n,e)},Pc=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()}},Xr=(t,e,n,r)=>{const s=Nc(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",Yr=pn&&typeof ReadableStream=="function",zc=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Jr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Vc=Yr&&Jr(()=>{let t=!1;const e=new Request(he.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Qr=64*1024,di=Yr&&Jr(()=>b.isReadableStream(new Response("").body)),gn={stream:di&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=b.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new T(`Response type '${e}' is not supported`,T.ERR_NOT_SUPPORT,r)})})})(new Response);const Tc=async t=>{if(t==null)return 0;if(b.isBlob(t))return t.size;if(b.isSpecCompliantForm(t))return(await new Request(he.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(b.isArrayBufferView(t)||b.isArrayBuffer(t))return t.byteLength;if(b.isURLSearchParams(t)&&(t=t+""),b.isString(t))return(await zc(t)).byteLength},Fc=async(t,e)=>{const n=b.toFiniteNumber(t.getContentLength());return n??Tc(e)},ui={http:rc,xhr:Rc,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}=Zr(t);u=u?(u+"").toLowerCase():"text";let g=vc([s,o&&o.toAbortSignal()],a),C;const S=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(c&&Vc&&n!=="get"&&n!=="head"&&(w=await Fc(h,r))!==0){let G=new Request(e,{method:"POST",body:r,duplex:"half"}),Me;if(b.isFormData(r)&&(Me=G.headers.get("content-type"))&&h.setContentType(Me),G.body){const[Be,tt]=_r(w,mn(jr(c)));r=Xr(G.body,Qr,Be,tt)}}b.isString(f)||(f=f?"include":"omit");const $="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:$?f:void 0});let F=await fetch(C);const O=di&&(u==="stream"||u==="response");if(di&&(d||O&&S)){const G={};["status","statusText","headers"].forEach($t=>{G[$t]=F[$t]});const Me=b.toFiniteNumber(F.headers.get("content-length")),[Be,tt]=d&&_r(Me,mn(jr(d),!0))||[];F=new Response(Xr(F.body,Qr,Be,()=>{tt&&tt(),S&&S()}),G)}u=u||"text";let P=await gn[b.findKey(gn,u)||"text"](F,t);return!O&&S&&S(),await new Promise((G,Me)=>{Ur(G,Me,{data:P,headers:ye.from(F.headers),status:F.status,statusText:F.statusText,config:t,request:C})})}catch($){throw S&&S(),$&&$.name==="TypeError"&&/fetch/i.test($.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,t,C),{cause:$.cause||$}):T.from($,$&&$.code,t,C)}})};b.forEach(ui,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Kr=t=>`- ${t}`,Oc=t=>b.isFunction(t)||t===null||t===!1,es={getAdapter:t=>{t=b.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,!Oc(n)&&(r=ui[(a=String(n)).toLowerCase()],r===void 0))throw new T(`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(Kr).join(`
|
package/package.json
CHANGED