formue-crud 0.1.78 → 0.1.79

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.
@@ -5584,7 +5584,14 @@ const t1 = (l) => ({
5584
5584
  };
5585
5585
  let pc = {};
5586
5586
  function l1({ form: l, fieldName: e, field: t }) {
5587
- return Array.isArray(G.get(l, e)) && G.has(t, "valueProp");
5587
+ const i = G.get(l, e), n = Array.isArray(i), r = G.has(t, "valueProp");
5588
+ if (!n)
5589
+ return !1;
5590
+ if (r) {
5591
+ const a = i[0];
5592
+ return a && typeof a == "object" && !Array.isArray(a);
5593
+ }
5594
+ return !1;
5588
5595
  }
5589
5596
  function vd(l, e) {
5590
5597
  console.log("convertToSendForm START"), console.log("Input form:", JSON.stringify(l, null, 2)), console.log("Input fields:", JSON.stringify(e, null, 2));
@@ -27,7 +27,7 @@ function print() { __p += __j.call(arguments, '') }
27
27
  }`;var te=dc(function(){return le(y,G+"return "+z).apply(t,E)});if(te.source=z,Da(te))throw te;return te}function I_(r){return he(r).toLowerCase()}function V_(r){return he(r).toUpperCase()}function W_(r,o,h){if(r=he(r),r&&(h||o===t))return yu(r);if(!r||!(o=tt(o)))return r;var f=vt(r),m=vt(o),y=Cu(f,m),E=Eu(f,m)+1;return si(f,y,E).join("")}function $_(r,o,h){if(r=he(r),r&&(h||o===t))return r.slice(0,Ru(r)+1);if(!r||!(o=tt(o)))return r;var f=vt(r),m=Eu(f,vt(o))+1;return si(f,0,m).join("")}function G_(r,o,h){if(r=he(r),r&&(h||o===t))return r.replace(Do,"");if(!r||!(o=tt(o)))return r;var f=vt(r),m=Cu(f,vt(o));return si(f,m).join("")}function U_(r,o){var h=J,f=ue;if(we(o)){var m="separator"in o?o.separator:m;h="length"in o?Q(o.length):h,f="omission"in o?tt(o.omission):f}r=he(r);var y=r.length;if(Gi(r)){var E=vt(r);y=E.length}if(h>=y)return r;var x=h-Ui(f);if(x<1)return f;var T=E?si(E,0,x).join(""):r.slice(0,x);if(m===t)return T+f;if(E&&(x+=T.length-x),Aa(m)){if(r.slice(x).search(m)){var A,F=T;for(m.global||(m=qo(m.source,he(Wh.exec(m))+"g")),m.lastIndex=0;A=m.exec(F);)var z=A.index;T=T.slice(0,z===t?x:z)}}else if(r.indexOf(tt(m),x)!=x){var B=T.lastIndexOf(m);B>-1&&(T=T.slice(0,B))}return T+f}function j_(r){return r=he(r),r&&nC.test(r)?r.replace(Nh,CE):r}var K_=Zi(function(r,o,h){return r+(h?" ":"")+o.toUpperCase()}),Pa=cd("toUpperCase");function uc(r,o,h){return r=he(r),o=h?t:o,o===t?mE(r)?RE(r):aE(r):r.match(o)||[]}var dc=ie(function(r,o){try{return Qe(r,t,o)}catch(h){return Da(h)?h:new Y(h)}}),q_=Bt(function(r,o){return at(o,function(h){h=St(h),Ot(r,h,Ma(r[h],r))}),r});function X_(r){var o=r==null?0:r.length,h=K();return r=o?ve(r,function(f){if(typeof f[1]!="function")throw new lt(a);return[h(f[0]),f[1]]}):[],ie(function(f){for(var m=-1;++m<o;){var y=r[m];if(Qe(y[0],this,f))return Qe(y[1],this,f)}})}function J_(r){return C0(ut(r,w))}function Oa(r){return function(){return r}}function Y_(r,o){return r==null||r!==r?o:r}var Z_=pd(),Q_=pd(!0);function Ye(r){return r}function Ha(r){return Gu(typeof r=="function"?r:ut(r,w))}function eT(r){return ju(ut(r,w))}function tT(r,o){return Ku(r,ut(o,w))}var iT=ie(function(r,o){return function(h){return Hn(h,r,o)}}),nT=ie(function(r,o){return function(h){return Hn(r,h,o)}});function Ba(r,o,h){var f=Ae(o),m=Nr(o,f);h==null&&!(we(o)&&(m.length||!f.length))&&(h=o,o=r,r=this,m=Nr(o,Ae(o)));var y=!(we(h)&&"chain"in h)||!!h.chain,E=It(r);return at(m,function(x){var T=o[x];r[x]=T,E&&(r.prototype[x]=function(){var A=this.__chain__;if(y||A){var F=r(this.__wrapped__),z=F.__actions__=qe(this.__actions__);return z.push({func:T,args:arguments,thisArg:r}),F.__chain__=A,F}return T.apply(r,Qt([this.value()],arguments))})}),r}function rT(){return ze._===this&&(ze._=LE),this}function Na(){}function sT(r){return r=Q(r),ie(function(o){return qu(o,r)})}var oT=ma(ve),aT=ma(gu),lT=ma(Vo);function cc(r){return xa(r)?Wo(St(r)):B0(r)}function hT(r){return function(o){return r==null?t:Ci(r,o)}}var uT=md(),dT=md(!0);function Ia(){return[]}function Va(){return!1}function cT(){return{}}function fT(){return""}function pT(){return!0}function gT(r,o){if(r=Q(r),r<1||r>Ke)return[];var h=st,f=Be(r,st);o=K(o),r-=st;for(var m=Uo(f,o);++h<r;)o(h);return m}function mT(r){return Z(r)?ve(r,St):it(r)?[r]:qe(Ad(he(r)))}function bT(r){var o=++SE;return he(r)+o}var vT=Ur(function(r,o){return r+o},0),wT=ba("ceil"),yT=Ur(function(r,o){return r/o},1),CT=ba("floor");function ET(r){return r&&r.length?Br(r,Ye,ia):t}function xT(r,o){return r&&r.length?Br(r,K(o,2),ia):t}function RT(r){return vu(r,Ye)}function _T(r,o){return vu(r,K(o,2))}function TT(r){return r&&r.length?Br(r,Ye,oa):t}function kT(r,o){return r&&r.length?Br(r,K(o,2),oa):t}var ST=Ur(function(r,o){return r*o},1),MT=ba("round"),LT=Ur(function(r,o){return r-o},0);function DT(r){return r&&r.length?Go(r,Ye):0}function AT(r,o){return r&&r.length?Go(r,K(o,2)):0}return v.after=eR,v.ary=$d,v.assign=VR,v.assignIn=nc,v.assignInWith=rs,v.assignWith=WR,v.at=$R,v.before=Gd,v.bind=Ma,v.bindAll=q_,v.bindKey=Ud,v.castArray=cR,v.chain=Id,v.chunk=C1,v.compact=E1,v.concat=x1,v.cond=X_,v.conforms=J_,v.constant=Oa,v.countBy=Dx,v.create=GR,v.curry=jd,v.curryRight=Kd,v.debounce=qd,v.defaults=UR,v.defaultsDeep=jR,v.defer=tR,v.delay=iR,v.difference=R1,v.differenceBy=_1,v.differenceWith=T1,v.drop=k1,v.dropRight=S1,v.dropRightWhile=M1,v.dropWhile=L1,v.fill=D1,v.filter=Fx,v.flatMap=Ox,v.flatMapDeep=Hx,v.flatMapDepth=Bx,v.flatten=Od,v.flattenDeep=A1,v.flattenDepth=F1,v.flip=nR,v.flow=Z_,v.flowRight=Q_,v.fromPairs=z1,v.functions=QR,v.functionsIn=e_,v.groupBy=Nx,v.initial=O1,v.intersection=H1,v.intersectionBy=B1,v.intersectionWith=N1,v.invert=i_,v.invertBy=n_,v.invokeMap=Vx,v.iteratee=Ha,v.keyBy=Wx,v.keys=Ae,v.keysIn=Je,v.map=Zr,v.mapKeys=s_,v.mapValues=o_,v.matches=eT,v.matchesProperty=tT,v.memoize=es,v.merge=a_,v.mergeWith=rc,v.method=iT,v.methodOf=nT,v.mixin=Ba,v.negate=ts,v.nthArg=sT,v.omit=l_,v.omitBy=h_,v.once=rR,v.orderBy=$x,v.over=oT,v.overArgs=sR,v.overEvery=aT,v.overSome=lT,v.partial=La,v.partialRight=Xd,v.partition=Gx,v.pick=u_,v.pickBy=sc,v.property=cc,v.propertyOf=hT,v.pull=$1,v.pullAll=Bd,v.pullAllBy=G1,v.pullAllWith=U1,v.pullAt=j1,v.range=uT,v.rangeRight=dT,v.rearg=oR,v.reject=Kx,v.remove=K1,v.rest=aR,v.reverse=ka,v.sampleSize=Xx,v.set=c_,v.setWith=f_,v.shuffle=Jx,v.slice=q1,v.sortBy=Qx,v.sortedUniq=tx,v.sortedUniqBy=ix,v.split=O_,v.spread=lR,v.tail=nx,v.take=rx,v.takeRight=sx,v.takeRightWhile=ox,v.takeWhile=ax,v.tap=Ex,v.throttle=hR,v.thru=Yr,v.toArray=ec,v.toPairs=oc,v.toPairsIn=ac,v.toPath=mT,v.toPlainObject=ic,v.transform=p_,v.unary=uR,v.union=lx,v.unionBy=hx,v.unionWith=ux,v.uniq=dx,v.uniqBy=cx,v.uniqWith=fx,v.unset=g_,v.unzip=Sa,v.unzipWith=Nd,v.update=m_,v.updateWith=b_,v.values=tn,v.valuesIn=v_,v.without=px,v.words=uc,v.wrap=dR,v.xor=gx,v.xorBy=mx,v.xorWith=bx,v.zip=vx,v.zipObject=wx,v.zipObjectDeep=yx,v.zipWith=Cx,v.entries=oc,v.entriesIn=ac,v.extend=nc,v.extendWith=rs,Ba(v,v),v.add=vT,v.attempt=dc,v.camelCase=E_,v.capitalize=lc,v.ceil=wT,v.clamp=w_,v.clone=fR,v.cloneDeep=gR,v.cloneDeepWith=mR,v.cloneWith=pR,v.conformsTo=bR,v.deburr=hc,v.defaultTo=Y_,v.divide=yT,v.endsWith=x_,v.eq=yt,v.escape=R_,v.escapeRegExp=__,v.every=Ax,v.find=zx,v.findIndex=zd,v.findKey=KR,v.findLast=Px,v.findLastIndex=Pd,v.findLastKey=qR,v.floor=CT,v.forEach=Vd,v.forEachRight=Wd,v.forIn=XR,v.forInRight=JR,v.forOwn=YR,v.forOwnRight=ZR,v.get=Fa,v.gt=vR,v.gte=wR,v.has=t_,v.hasIn=za,v.head=Hd,v.identity=Ye,v.includes=Ix,v.indexOf=P1,v.inRange=y_,v.invoke=r_,v.isArguments=Ri,v.isArray=Z,v.isArrayBuffer=yR,v.isArrayLike=Xe,v.isArrayLikeObject=Ee,v.isBoolean=CR,v.isBuffer=oi,v.isDate=ER,v.isElement=xR,v.isEmpty=RR,v.isEqual=_R,v.isEqualWith=TR,v.isError=Da,v.isFinite=kR,v.isFunction=It,v.isInteger=Jd,v.isLength=is,v.isMap=Yd,v.isMatch=SR,v.isMatchWith=MR,v.isNaN=LR,v.isNative=DR,v.isNil=FR,v.isNull=AR,v.isNumber=Zd,v.isObject=we,v.isObjectLike=Ce,v.isPlainObject=$n,v.isRegExp=Aa,v.isSafeInteger=zR,v.isSet=Qd,v.isString=ns,v.isSymbol=it,v.isTypedArray=en,v.isUndefined=PR,v.isWeakMap=OR,v.isWeakSet=HR,v.join=I1,v.kebabCase=T_,v.last=ct,v.lastIndexOf=V1,v.lowerCase=k_,v.lowerFirst=S_,v.lt=BR,v.lte=NR,v.max=ET,v.maxBy=xT,v.mean=RT,v.meanBy=_T,v.min=TT,v.minBy=kT,v.stubArray=Ia,v.stubFalse=Va,v.stubObject=cT,v.stubString=fT,v.stubTrue=pT,v.multiply=ST,v.nth=W1,v.noConflict=rT,v.noop=Na,v.now=Qr,v.pad=M_,v.padEnd=L_,v.padStart=D_,v.parseInt=A_,v.random=C_,v.reduce=Ux,v.reduceRight=jx,v.repeat=F_,v.replace=z_,v.result=d_,v.round=MT,v.runInContext=_,v.sample=qx,v.size=Yx,v.snakeCase=P_,v.some=Zx,v.sortedIndex=X1,v.sortedIndexBy=J1,v.sortedIndexOf=Y1,v.sortedLastIndex=Z1,v.sortedLastIndexBy=Q1,v.sortedLastIndexOf=ex,v.startCase=H_,v.startsWith=B_,v.subtract=LT,v.sum=DT,v.sumBy=AT,v.template=N_,v.times=gT,v.toFinite=Vt,v.toInteger=Q,v.toLength=tc,v.toLower=I_,v.toNumber=ft,v.toSafeInteger=IR,v.toString=he,v.toUpper=V_,v.trim=W_,v.trimEnd=$_,v.trimStart=G_,v.truncate=U_,v.unescape=j_,v.uniqueId=bT,v.upperCase=K_,v.upperFirst=Pa,v.each=Vd,v.eachRight=Wd,v.first=Hd,Ba(v,function(){var r={};return Tt(v,function(o,h){de.call(v.prototype,h)||(r[h]=o)}),r}(),{chain:!1}),v.VERSION=i,at(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){v[r].placeholder=v}),at(["drop","take"],function(r,o){oe.prototype[r]=function(h){h=h===t?1:Me(Q(h),0);var f=this.__filtered__&&!o?new oe(this):this.clone();return f.__filtered__?f.__takeCount__=Be(h,f.__takeCount__):f.__views__.push({size:Be(h,st),type:r+(f.__dir__<0?"Right":"")}),f},oe.prototype[r+"Right"]=function(h){return this.reverse()[r](h).reverse()}}),at(["filter","map","takeWhile"],function(r,o){var h=o+1,f=h==Te||h==gt;oe.prototype[r]=function(m){var y=this.clone();return y.__iteratees__.push({iteratee:K(m,3),type:h}),y.__filtered__=y.__filtered__||f,y}}),at(["head","last"],function(r,o){var h="take"+(o?"Right":"");oe.prototype[r]=function(){return this[h](1).value()[0]}}),at(["initial","tail"],function(r,o){var h="drop"+(o?"":"Right");oe.prototype[r]=function(){return this.__filtered__?new oe(this):this[h](1)}}),oe.prototype.compact=function(){return this.filter(Ye)},oe.prototype.find=function(r){return this.filter(r).head()},oe.prototype.findLast=function(r){return this.reverse().find(r)},oe.prototype.invokeMap=ie(function(r,o){return typeof r=="function"?new oe(this):this.map(function(h){return Hn(h,r,o)})}),oe.prototype.reject=function(r){return this.filter(ts(K(r)))},oe.prototype.slice=function(r,o){r=Q(r);var h=this;return h.__filtered__&&(r>0||o<0)?new oe(h):(r<0?h=h.takeRight(-r):r&&(h=h.drop(r)),o!==t&&(o=Q(o),h=o<0?h.dropRight(-o):h.take(o-r)),h)},oe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},oe.prototype.toArray=function(){return this.take(st)},Tt(oe.prototype,function(r,o){var h=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),m=v[f?"take"+(o=="last"?"Right":""):o],y=f||/^find/.test(o);m&&(v.prototype[o]=function(){var E=this.__wrapped__,x=f?[1]:arguments,T=E instanceof oe,A=x[0],F=T||Z(E),z=function(re){var ae=m.apply(v,Qt([re],x));return f&&B?ae[0]:ae};F&&h&&typeof A=="function"&&A.length!=1&&(T=F=!1);var B=this.__chain__,G=!!this.__actions__.length,q=y&&!B,te=T&&!G;if(!y&&F){E=te?E:new oe(this);var X=r.apply(E,x);return X.__actions__.push({func:Yr,args:[z],thisArg:t}),new ht(X,B)}return q&&te?r.apply(this,x):(X=this.thru(z),q?f?X.value()[0]:X.value():X)})}),at(["pop","push","shift","sort","splice","unshift"],function(r){var o=xr[r],h=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var m=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(Z(y)?y:[],m)}return this[h](function(E){return o.apply(Z(E)?E:[],m)})}}),Tt(oe.prototype,function(r,o){var h=v[o];if(h){var f=h.name+"";de.call(Xi,f)||(Xi[f]=[]),Xi[f].push({name:o,func:h})}}),Xi[Gr(t,L).name]=[{name:"wrapper",func:t}],oe.prototype.clone=jE,oe.prototype.reverse=KE,oe.prototype.value=qE,v.prototype.at=xx,v.prototype.chain=Rx,v.prototype.commit=_x,v.prototype.next=Tx,v.prototype.plant=Sx,v.prototype.reverse=Mx,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Lx,v.prototype.first=v.prototype.head,Ln&&(v.prototype[Ln]=kx),v},ji=_E();mi?((mi.exports=ji)._=ji,Ho._=ji):ze._=ji}).call(ai)}(Gn,Gn.exports);var W=Gn.exports;const bc={en:{clear:"Clear",no:"No",yes:"yes",alert_to_delete:"Are you sure to delete?",first:"First",previous:"Previous",next:"Next",last:"Last",apply_filter:"Apply filter",filter:"Filter",add_filter:"Add filter",clear_all:"Clear all",add:"Add",save:"Save",edit:"Edit",cancel:"Cancel",choose_filter:"Choose filter",select_type:"Select type",equal_to:"Equal to",not_equal_to:"Not equal to",greater_than:"Greater than",less_than:"Less than",look_like:"Look like",search:"Search ...",range:"Range",add:"Add",export:"Export",export_as_pdf:"Export as PDF",export_as_excel:" Export as Excel",print:"Print",reload:"Reload",select_row:"Select row",custom_column:"Custom column",filter_data:"Filter data",active_filter:"Active filter",not_null:"Not Null",null:"Null"},fa:{clear:"پاک کردن",no:"خیر",yes:"بله",alert_to_delete:"آیا از حذف کردن مطمئن هستید؟",first:"ابتدا",previous:"قبلی",next:"بعدی",last:"آخرین",apply_filter:"اعمال فیلتر",filter:"فیلتر",add_filter:"افزودن فیلتر",clear_all:"حذف فیلترها",add:"افرودن",save:"ذخیره",edit:"ویرایش",cancel:"لغو",choose_filter:"انتخاب فیلتر",select_type:"انتخاب کنید",equal_to:"برابر با",not_equal_to:"نابرابر با",greater_than:"بزرگتر از",less_than:"کوچکتر از",look_like:"مشابه",search:"جستجو ...",range:"محدوده",edit_filter:"ویرایش فیلتر",export:"خروجی‌گرفتن",export_as_pdf:"PDF خروجی",export_as_excel:"Excel خروجی",print:"خروجی چاپی",reload:"بارگذاری مجدد",select_row:"انتخاب ردیف",custom_column:"ستون سفارشی",filter_data:"فیلترکردن ",active_filter:"فیلترهای فعال",not_load_or_existing_data:"دیتایی وجود ندارد :(",filter_save_placeholder:"اسم فیلتر",not_filter_create_yes:"هنوز فیلتری ایجاد نشده است",operator:"عملگر",in:"برابر با مقادیر",not_in:"نابرابر با مقادیر",value:"مقدار",between:"از میان",not_null:"دارای مقدار",null:"بدون مقدار"}},_i=Ue.defineStore("formuCrudLangs",{state:()=>({lang:"fa",dir:"rtl",langs:bc}),getters:{currentLang(l){return W.get(l.langs,l.lang,"fa")}},actions:{translate(l){return W.get(this.currentLang,l,l)}}});function vc(l){return{all:l=l||new Map,on:function(e,t){var i=l.get(e);i?i.push(t):l.set(e,[t])},off:function(e,t){var i=l.get(e);i&&(t?i.splice(i.indexOf(t)>>>0,1):l.set(e,[]))},emit:function(e,t){var i=l.get(e);i&&i.slice().map(function(n){n(t)}),(i=l.get("*"))&&i.slice().map(function(n){n(e,t)})}}}let nn=vc();const Wa=[],Ti=(l,e,t=!1)=>{l=Array.isArray(l)?l:[l];for(const i of l)nn.on(i,e),t&&Wa.push([l,e])},$a=(l,e)=>{nn.emit(l,e)};let ss=[];const Ga=l=>{ss.push(l)};let os=[];const Ua=l=>{os.push(l)};let as=[];const ja=l=>{as.push(l)},Ka=l=>{nn.all.clear(),l&&l(),Ti("beforeMajraInit",e=>{as.forEach(t=>t(e)),as=[]}),Ti("majraMounted",e=>{ss.forEach(t=>t(e)),ss=[]}),Ti("majraDataLoaded",e=>{os.forEach(t=>t(e)),os=[]});for(let e of Wa)Ti(e[0],e[1])},Le={emitt:nn,listen:Ti,event:$a,runAfterPageChanged:Ga,runAfterPageLoaded:Ua,runBeforeMajraInit:ja,clear:Ka},wc=Object.freeze(Object.defineProperty({__proto__:null,clear:Ka,emitt:nn,emitter:Le,event:$a,listen:Ti,runAfterPageChanged:Ga,runAfterPageLoaded:Ua,runBeforeMajraInit:ja},Symbol.toStringTag,{value:"Module"}));var ki=TypeError;const yc=mc(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ls=typeof Map=="function"&&Map.prototype,hs=Object.getOwnPropertyDescriptor&&ls?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Un=ls&&hs&&typeof hs.get=="function"?hs.get:null,qa=ls&&Map.prototype.forEach,us=typeof Set=="function"&&Set.prototype,ds=Object.getOwnPropertyDescriptor&&us?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,jn=us&&ds&&typeof ds.get=="function"?ds.get:null,Xa=us&&Set.prototype.forEach,Cc=typeof WeakMap=="function"&&WeakMap.prototype,rn=Cc?WeakMap.prototype.has:null,Ec=typeof WeakSet=="function"&&WeakSet.prototype,sn=Ec?WeakSet.prototype.has:null,xc=typeof WeakRef=="function"&&WeakRef.prototype,Ja=xc?WeakRef.prototype.deref:null,Rc=Boolean.prototype.valueOf,_c=Object.prototype.toString,Tc=Function.prototype.toString,kc=String.prototype.match,cs=String.prototype.slice,$t=String.prototype.replace,Sc=String.prototype.toUpperCase,Ya=String.prototype.toLowerCase,Za=RegExp.prototype.test,Qa=Array.prototype.concat,Et=Array.prototype.join,Mc=Array.prototype.slice,el=Math.floor,fs=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ps=Object.getOwnPropertySymbols,gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Si=typeof Symbol=="function"&&typeof Symbol.iterator=="object",on=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Si||"symbol")?Symbol.toStringTag:null,tl=Object.prototype.propertyIsEnumerable,il=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(l){return l.__proto__}:null);function nl(l,e){if(l===1/0||l===-1/0||l!==l||l&&l>-1e3&&l<1e3||Za.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof l=="number"){var i=l<0?-el(-l):el(l);if(i!==l){var n=String(i),s=cs.call(e,n.length+1);return $t.call(n,t,"$&_")+"."+$t.call($t.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $t.call(e,t,"$&_")}var ms=yc,rl=ms.custom,sl=hl(rl)?rl:null,ol={__proto__:null,double:'"',single:"'"},Lc={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Kn=function l(e,t,i,n){var s=t||{};if(Mt(s,"quoteStyle")&&!Mt(ol,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mt(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Mt(s,"customInspect")?s.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Mt(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Mt(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return dl(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var d=String(e);return u?nl(e,d):d}if(typeof e=="bigint"){var p=String(e)+"n";return u?nl(e,p):p}var g=typeof s.depth>"u"?5:s.depth;if(typeof i>"u"&&(i=0),i>=g&&g>0&&typeof e=="object")return bs(e)?"[Array]":"[Object]";var w=qc(s,i);if(typeof n>"u")n=[];else if(ul(n,e)>=0)return"[Circular]";function b(_e,Te,Ie){if(Te&&(n=Mc.call(n),n.push(Te)),Ie){var gt={depth:s.depth};return Mt(s,"quoteStyle")&&(gt.quoteStyle=s.quoteStyle),l(_e,gt,i+1,n)}return l(_e,s,i+1,n)}if(typeof e=="function"&&!ll(e)){var C=Nc(e),R=qn(e,b);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(R.length>0?" { "+Et.call(R,", ")+" }":"")}if(hl(e)){var k=Si?$t.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):gs.call(e);return typeof e=="object"&&!Si?an(k):k}if(Uc(e)){for(var D="<"+Ya.call(String(e.nodeName)),L=e.attributes||[],U=0;U<L.length;U++)D+=" "+L[U].name+"="+al(Dc(L[U].value),"double",s);return D+=">",e.childNodes&&e.childNodes.length&&(D+="..."),D+="</"+Ya.call(String(e.nodeName))+">",D}if(bs(e)){if(e.length===0)return"[]";var H=qn(e,b);return w&&!Kc(H)?"["+ws(H,w)+"]":"[ "+Et.call(H,", ")+" ]"}if(Fc(e)){var N=qn(e,b);return!("cause"in Error.prototype)&&"cause"in e&&!tl.call(e,"cause")?"{ ["+String(e)+"] "+Et.call(Qa.call("[cause]: "+b(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Et.call(N,", ")+" }"}if(typeof e=="object"&&a){if(sl&&typeof e[sl]=="function"&&ms)return ms(e,{depth:g-i});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ic(e)){var O=[];return qa&&qa.call(e,function(_e,Te){O.push(b(Te,e,!0)+" => "+b(_e,e))}),cl("Map",Un.call(e),O,w)}if($c(e)){var se=[];return Xa&&Xa.call(e,function(_e){se.push(b(_e,e))}),cl("Set",jn.call(e),se,w)}if(Vc(e))return vs("WeakMap");if(Gc(e))return vs("WeakSet");if(Wc(e))return vs("WeakRef");if(Pc(e))return an(b(Number(e)));if(Hc(e))return an(b(fs.call(e)));if(Oc(e))return an(Rc.call(e));if(zc(e))return an(b(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ai<"u"&&e===ai)return"{ [object globalThis] }";if(!Ac(e)&&!ll(e)){var $=qn(e,b),V=il?il(e)===Object.prototype:e instanceof Object||e.constructor===Object,me=e instanceof Object?"":"null prototype",J=!V&&on&&Object(e)===e&&on in e?cs.call(Gt(e),8,-1):me?"Object":"",ue=V||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",j=ue+(J||me?"["+Et.call(Qa.call([],J||[],me||[]),": ")+"] ":"");return $.length===0?j+"{}":w?j+"{"+ws($,w)+"}":j+"{ "+Et.call($,", ")+" }"}return String(e)};function al(l,e,t){var i=t.quoteStyle||e,n=ol[i];return n+l+n}function Dc(l){return $t.call(String(l),/"/g,"&quot;")}function li(l){return!on||!(typeof l=="object"&&(on in l||typeof l[on]<"u"))}function bs(l){return Gt(l)==="[object Array]"&&li(l)}function Ac(l){return Gt(l)==="[object Date]"&&li(l)}function ll(l){return Gt(l)==="[object RegExp]"&&li(l)}function Fc(l){return Gt(l)==="[object Error]"&&li(l)}function zc(l){return Gt(l)==="[object String]"&&li(l)}function Pc(l){return Gt(l)==="[object Number]"&&li(l)}function Oc(l){return Gt(l)==="[object Boolean]"&&li(l)}function hl(l){if(Si)return l&&typeof l=="object"&&l instanceof Symbol;if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||!gs)return!1;try{return gs.call(l),!0}catch{}return!1}function Hc(l){if(!l||typeof l!="object"||!fs)return!1;try{return fs.call(l),!0}catch{}return!1}var Bc=Object.prototype.hasOwnProperty||function(l){return l in this};function Mt(l,e){return Bc.call(l,e)}function Gt(l){return _c.call(l)}function Nc(l){if(l.name)return l.name;var e=kc.call(Tc.call(l),/^function\s*([\w$]+)/);return e?e[1]:null}function ul(l,e){if(l.indexOf)return l.indexOf(e);for(var t=0,i=l.length;t<i;t++)if(l[t]===e)return t;return-1}function Ic(l){if(!Un||!l||typeof l!="object")return!1;try{Un.call(l);try{jn.call(l)}catch{return!0}return l instanceof Map}catch{}return!1}function Vc(l){if(!rn||!l||typeof l!="object")return!1;try{rn.call(l,rn);try{sn.call(l,sn)}catch{return!0}return l instanceof WeakMap}catch{}return!1}function Wc(l){if(!Ja||!l||typeof l!="object")return!1;try{return Ja.call(l),!0}catch{}return!1}function $c(l){if(!jn||!l||typeof l!="object")return!1;try{jn.call(l);try{Un.call(l)}catch{return!0}return l instanceof Set}catch{}return!1}function Gc(l){if(!sn||!l||typeof l!="object")return!1;try{sn.call(l,sn);try{rn.call(l,rn)}catch{return!0}return l instanceof WeakSet}catch{}return!1}function Uc(l){return!l||typeof l!="object"?!1:typeof HTMLElement<"u"&&l instanceof HTMLElement?!0:typeof l.nodeName=="string"&&typeof l.getAttribute=="function"}function dl(l,e){if(l.length>e.maxStringLength){var t=l.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return dl(cs.call(l,0,e.maxStringLength),e)+i}var n=Lc[e.quoteStyle||"single"];n.lastIndex=0;var s=$t.call($t.call(l,n,"\\$1"),/[\x00-\x1f]/g,jc);return al(s,"single",e)}function jc(l){var e=l.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Sc.call(e.toString(16))}function an(l){return"Object("+l+")"}function vs(l){return l+" { ? }"}function cl(l,e,t,i){var n=i?ws(t,i):Et.call(t,", ");return l+" ("+e+") {"+n+"}"}function Kc(l){for(var e=0;e<l.length;e++)if(ul(l[e],`
28
28
  `)>=0)return!1;return!0}function qc(l,e){var t;if(l.indent===" ")t=" ";else if(typeof l.indent=="number"&&l.indent>0)t=Et.call(Array(l.indent+1)," ");else return null;return{base:t,prev:Et.call(Array(e+1),t)}}function ws(l,e){if(l.length===0)return"";var t=`
29
29
  `+e.prev+e.base;return t+Et.call(l,","+t)+`
30
- `+e.prev}function qn(l,e){var t=bs(l),i=[];if(t){i.length=l.length;for(var n=0;n<l.length;n++)i[n]=Mt(l,n)?e(l[n],l):""}var s=typeof ps=="function"?ps(l):[],a;if(Si){a={};for(var u=0;u<s.length;u++)a["$"+s[u]]=s[u]}for(var d in l)Mt(l,d)&&(t&&String(Number(d))===d&&d<l.length||Si&&a["$"+d]instanceof Symbol||(Za.call(/[^\w$]/,d)?i.push(e(d,l)+": "+e(l[d],l)):i.push(d+": "+e(l[d],l))));if(typeof ps=="function")for(var p=0;p<s.length;p++)tl.call(l,s[p])&&i.push("["+e(s[p])+"]: "+e(l[s[p]],l));return i}var Xc=Kn,Jc=ki,Xn=function(l,e,t){for(var i=l,n;(n=i.next)!=null;i=n)if(n.key===e)return i.next=n.next,t||(n.next=l.next,l.next=n),n},Yc=function(l,e){if(l){var t=Xn(l,e);return t&&t.value}},Zc=function(l,e,t){var i=Xn(l,e);i?i.value=t:l.next={key:e,next:l.next,value:t}},Qc=function(l,e){return l?!!Xn(l,e):!1},ef=function(l,e){if(l)return Xn(l,e,!0)},tf=function(){var e,t={assert:function(i){if(!t.has(i))throw new Jc("Side channel does not contain "+Xc(i))},delete:function(i){var n=e&&e.next,s=ef(e,i);return s&&n&&n===s&&(e=void 0),!!s},get:function(i){return Yc(e,i)},has:function(i){return Qc(e,i)},set:function(i,n){e||(e={next:void 0}),Zc(e,i,n)}};return t},fl=Object,nf=Error,rf=EvalError,sf=RangeError,of=ReferenceError,af=SyntaxError,lf=URIError,hf=Math.abs,uf=Math.floor,df=Math.max,cf=Math.min,ff=Math.pow,pf=Math.round,gf=Number.isNaN||function(e){return e!==e},mf=gf,bf=function(e){return mf(e)||e===0?e:e<0?-1:1},vf=Object.getOwnPropertyDescriptor,Jn=vf;if(Jn)try{Jn([],"length")}catch{Jn=null}var pl=Jn,Yn=Object.defineProperty||!1;if(Yn)try{Yn({},"a",{value:1})}catch{Yn=!1}var wf=Yn,ys,gl;function yf(){return gl||(gl=1,ys=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==n||u.enumerable!==!0)return!1}return!0}),ys}var Cs,ml;function Cf(){if(ml)return Cs;ml=1;var l=typeof Symbol<"u"&&Symbol,e=yf();return Cs=function(){return typeof l!="function"||typeof Symbol!="function"||typeof l("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Cs}var Es,bl;function vl(){return bl||(bl=1,Es=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Es}var xs,wl;function yl(){if(wl)return xs;wl=1;var l=fl;return xs=l.getPrototypeOf||null,xs}var Ef="Function.prototype.bind called on incompatible ",xf=Object.prototype.toString,Rf=Math.max,_f="[object Function]",Cl=function(e,t){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var s=0;s<t.length;s+=1)i[s+e.length]=t[s];return i},Tf=function(e,t){for(var i=[],n=t||0,s=0;n<e.length;n+=1,s+=1)i[s]=e[n];return i},kf=function(l,e){for(var t="",i=0;i<l.length;i+=1)t+=l[i],i+1<l.length&&(t+=e);return t},Sf=function(e){var t=this;if(typeof t!="function"||xf.apply(t)!==_f)throw new TypeError(Ef+t);for(var i=Tf(arguments,1),n,s=function(){if(this instanceof n){var g=t.apply(this,Cl(i,arguments));return Object(g)===g?g:this}return t.apply(e,Cl(i,arguments))},a=Rf(0,t.length-i.length),u=[],d=0;d<a;d++)u[d]="$"+d;if(n=Function("binder","return function ("+kf(u,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n},Mf=Sf,Zn=Function.prototype.bind||Mf,Rs=Function.prototype.call,_s,El;function xl(){return El||(El=1,_s=Function.prototype.apply),_s}var Lf=typeof Reflect<"u"&&Reflect&&Reflect.apply,Df=Zn,Af=xl(),Ff=Rs,zf=Lf,Pf=zf||Df.call(Ff,Af),Of=Zn,Hf=ki,Bf=Rs,Nf=Pf,Rl=function(e){if(e.length<1||typeof e[0]!="function")throw new Hf("a function is required");return Nf(Of,Bf,e)},Ts,_l;function If(){if(_l)return Ts;_l=1;var l=Rl,e=pl,t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Ts=i&&typeof i.get=="function"?l([i.get]):typeof s=="function"?function(u){return s(u==null?u:n(u))}:!1,Ts}var ks,Tl;function Vf(){if(Tl)return ks;Tl=1;var l=vl(),e=yl(),t=If();return ks=l?function(n){return l(n)}:e?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return e(n)}:t?function(n){return t(n)}:null,ks}var Ss,kl;function Wf(){if(kl)return Ss;kl=1;var l=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Zn;return Ss=t.call(l,e),Ss}var ne,$f=fl,Gf=nf,Uf=rf,jf=sf,Kf=of,Mi=af,Li=ki,qf=lf,Xf=hf,Jf=uf,Yf=df,Zf=cf,Qf=ff,ep=pf,tp=bf,Sl=Function,Ms=function(l){try{return Sl('"use strict"; return ('+l+").constructor;")()}catch{}},ln=pl,ip=wf,Ls=function(){throw new Li},np=ln?function(){try{return arguments.callee,Ls}catch{try{return ln(arguments,"callee").get}catch{return Ls}}}():Ls,Di=Cf()(),De=Vf(),rp=yl(),sp=vl(),Ml=xl(),hn=Rs,Ai={},op=typeof Uint8Array>"u"||!De?ne:De(Uint8Array),hi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":Di&&De?De([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":Ai,"%AsyncGenerator%":Ai,"%AsyncGeneratorFunction%":Ai,"%AsyncIteratorPrototype%":Ai,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Gf,"%eval%":eval,"%EvalError%":Uf,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":Sl,"%GeneratorFunction%":Ai,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Di&&De?De(De([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Di||!De?ne:De(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$f,"%Object.getOwnPropertyDescriptor%":ln,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":jf,"%ReferenceError%":Kf,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Di||!De?ne:De(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Di&&De?De(""[Symbol.iterator]()):ne,"%Symbol%":Di?Symbol:ne,"%SyntaxError%":Mi,"%ThrowTypeError%":np,"%TypedArray%":op,"%TypeError%":Li,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":qf,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":hn,"%Function.prototype.apply%":Ml,"%Object.defineProperty%":ip,"%Object.getPrototypeOf%":rp,"%Math.abs%":Xf,"%Math.floor%":Jf,"%Math.max%":Yf,"%Math.min%":Zf,"%Math.pow%":Qf,"%Math.round%":ep,"%Math.sign%":tp,"%Reflect.getPrototypeOf%":sp};if(De)try{null.error}catch(l){var ap=De(De(l));hi["%Error.prototype%"]=ap}var lp=function l(e){var t;if(e==="%AsyncFunction%")t=Ms("async function () {}");else if(e==="%GeneratorFunction%")t=Ms("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ms("async function* () {}");else if(e==="%AsyncGenerator%"){var i=l("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=l("%AsyncGenerator%");n&&De&&(t=De(n.prototype))}return hi[e]=t,t},Ll={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},un=Zn,Qn=Wf(),hp=un.call(hn,Array.prototype.concat),up=un.call(Ml,Array.prototype.splice),Dl=un.call(hn,String.prototype.replace),er=un.call(hn,String.prototype.slice),dp=un.call(hn,RegExp.prototype.exec),cp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fp=/\\(\\)?/g,pp=function(e){var t=er(e,0,1),i=er(e,-1);if(t==="%"&&i!=="%")throw new Mi("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new Mi("invalid intrinsic syntax, expected opening `%`");var n=[];return Dl(e,cp,function(s,a,u,d){n[n.length]=u?Dl(d,fp,"$1"):a||s}),n},gp=function(e,t){var i=e,n;if(Qn(Ll,i)&&(n=Ll[i],i="%"+n[0]+"%"),Qn(hi,i)){var s=hi[i];if(s===Ai&&(s=lp(i)),typeof s>"u"&&!t)throw new Li("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new Mi("intrinsic "+e+" does not exist!")},Ds=function(e,t){if(typeof e!="string"||e.length===0)throw new Li("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Li('"allowMissing" argument must be a boolean');if(dp(/^%?[^%]*%?$/,e)===null)throw new Mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=pp(e),n=i.length>0?i[0]:"",s=gp("%"+n+"%",t),a=s.name,u=s.value,d=!1,p=s.alias;p&&(n=p[0],up(i,hp([0,1],p)));for(var g=1,w=!0;g<i.length;g+=1){var b=i[g],C=er(b,0,1),R=er(b,-1);if((C==='"'||C==="'"||C==="`"||R==='"'||R==="'"||R==="`")&&C!==R)throw new Mi("property names with quotes must have matching quotes");if((b==="constructor"||!w)&&(d=!0),n+="."+b,a="%"+n+"%",Qn(hi,a))u=hi[a];else if(u!=null){if(!(b in u)){if(!t)throw new Li("base intrinsic for "+e+" exists, but the property is not available.");return}if(ln&&g+1>=i.length){var k=ln(u,b);w=!!k,w&&"get"in k&&!("originalValue"in k.get)?u=k.get:u=u[b]}else w=Qn(u,b),u=u[b];w&&!d&&(hi[a]=u)}}return u},Al=Ds,Fl=Rl,mp=Fl([Al("%String.prototype.indexOf%")]),zl=function(e,t){var i=Al(e,!!t);return typeof i=="function"&&mp(e,".prototype.")>-1?Fl([i]):i},bp=Ds,dn=zl,vp=Kn,wp=ki,Pl=bp("%Map%",!0),yp=dn("Map.prototype.get",!0),Cp=dn("Map.prototype.set",!0),Ep=dn("Map.prototype.has",!0),xp=dn("Map.prototype.delete",!0),Rp=dn("Map.prototype.size",!0),Ol=!!Pl&&function(){var e,t={assert:function(i){if(!t.has(i))throw new wp("Side channel does not contain "+vp(i))},delete:function(i){if(e){var n=xp(e,i);return Rp(e)===0&&(e=void 0),n}return!1},get:function(i){if(e)return yp(e,i)},has:function(i){return e?Ep(e,i):!1},set:function(i,n){e||(e=new Pl),Cp(e,i,n)}};return t},_p=Ds,tr=zl,Tp=Kn,ir=Ol,kp=ki,Fi=_p("%WeakMap%",!0),Sp=tr("WeakMap.prototype.get",!0),Mp=tr("WeakMap.prototype.set",!0),Lp=tr("WeakMap.prototype.has",!0),Dp=tr("WeakMap.prototype.delete",!0),Ap=Fi?function(){var e,t,i={assert:function(n){if(!i.has(n))throw new kp("Side channel does not contain "+Tp(n))},delete:function(n){if(Fi&&n&&(typeof n=="object"||typeof n=="function")){if(e)return Dp(e,n)}else if(ir&&t)return t.delete(n);return!1},get:function(n){return Fi&&n&&(typeof n=="object"||typeof n=="function")&&e?Sp(e,n):t&&t.get(n)},has:function(n){return Fi&&n&&(typeof n=="object"||typeof n=="function")&&e?Lp(e,n):!!t&&t.has(n)},set:function(n,s){Fi&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new Fi),Mp(e,n,s)):ir&&(t||(t=ir()),t.set(n,s))}};return i}:ir,Fp=ki,zp=Kn,Pp=tf,Op=Ol,Hp=Ap,Bp=Hp||Op||Pp,Np=function(){var e,t={assert:function(i){if(!t.has(i))throw new Fp("Side channel does not contain "+zp(i))},delete:function(i){return!!e&&e.delete(i)},get:function(i){return e&&e.get(i)},has:function(i){return!!e&&e.has(i)},set:function(i,n){e||(e=Bp()),e.set(i,n)}};return t},Ip=String.prototype.replace,Vp=/%20/g,As={RFC1738:"RFC1738",RFC3986:"RFC3986"},Fs={default:As.RFC3986,formatters:{RFC1738:function(l){return Ip.call(l,Vp,"+")},RFC3986:function(l){return String(l)}},RFC1738:As.RFC1738,RFC3986:As.RFC3986},Wp=Fs,zs=Object.prototype.hasOwnProperty,ui=Array.isArray,xt=function(){for(var l=[],e=0;e<256;++e)l.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return l}(),$p=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(ui(i)){for(var n=[],s=0;s<i.length;++s)typeof i[s]<"u"&&n.push(i[s]);t.obj[t.prop]=n}}},Hl=function(e,t){for(var i=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(i[n]=e[n]);return i},Gp=function l(e,t,i){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(ui(e))e.push(t);else if(e&&typeof e=="object")(i&&(i.plainObjects||i.allowPrototypes)||!zs.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var n=e;return ui(e)&&!ui(t)&&(n=Hl(e,i)),ui(e)&&ui(t)?(t.forEach(function(s,a){if(zs.call(e,a)){var u=e[a];u&&typeof u=="object"&&s&&typeof s=="object"?e[a]=l(u,s,i):e.push(s)}else e[a]=s}),e):Object.keys(t).reduce(function(s,a){var u=t[a];return zs.call(s,a)?s[a]=l(s[a],u,i):s[a]=u,s},n)},Up=function(e,t){return Object.keys(t).reduce(function(i,n){return i[n]=t[n],i},e)},jp=function(l,e,t){var i=l.replace(/\+/g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},Ps=1024,Kp=function(e,t,i,n,s){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),i==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var u="",d=0;d<a.length;d+=Ps){for(var p=a.length>=Ps?a.slice(d,d+Ps):a,g=[],w=0;w<p.length;++w){var b=p.charCodeAt(w);if(b===45||b===46||b===95||b===126||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||s===Wp.RFC1738&&(b===40||b===41)){g[g.length]=p.charAt(w);continue}if(b<128){g[g.length]=xt[b];continue}if(b<2048){g[g.length]=xt[192|b>>6]+xt[128|b&63];continue}if(b<55296||b>=57344){g[g.length]=xt[224|b>>12]+xt[128|b>>6&63]+xt[128|b&63];continue}w+=1,b=65536+((b&1023)<<10|p.charCodeAt(w)&1023),g[g.length]=xt[240|b>>18]+xt[128|b>>12&63]+xt[128|b>>6&63]+xt[128|b&63]}u+=g.join("")}return u},qp=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var s=t[n],a=s.obj[s.prop],u=Object.keys(a),d=0;d<u.length;++d){var p=u[d],g=a[p];typeof g=="object"&&g!==null&&i.indexOf(g)===-1&&(t.push({obj:a,prop:p}),i.push(g))}return $p(t),e},Xp=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Jp=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Yp=function(e,t){return[].concat(e,t)},Zp=function(e,t){if(ui(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},Bl={arrayToObject:Hl,assign:Up,combine:Yp,compact:qp,decode:jp,encode:Kp,isBuffer:Jp,isRegExp:Xp,maybeMap:Zp,merge:Gp},Nl=Np,nr=Bl,cn=Fs,Qp=Object.prototype.hasOwnProperty,Il={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Rt=Array.isArray,eg=Array.prototype.push,Vl=function(l,e){eg.apply(l,Rt(e)?e:[e])},tg=Date.prototype.toISOString,Wl=cn.default,ke={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:nr.encode,encodeValuesOnly:!1,filter:void 0,format:Wl,formatter:cn.formatters[Wl],indices:!1,serializeDate:function(e){return tg.call(e)},skipNulls:!1,strictNullHandling:!1},ig=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Os={},ng=function l(e,t,i,n,s,a,u,d,p,g,w,b,C,R,k,D,L,U){for(var H=e,N=U,O=0,se=!1;(N=N.get(Os))!==void 0&&!se;){var $=N.get(e);if(O+=1,typeof $<"u"){if($===O)throw new RangeError("Cyclic object value");se=!0}typeof N.get(Os)>"u"&&(O=0)}if(typeof g=="function"?H=g(t,H):H instanceof Date?H=C(H):i==="comma"&&Rt(H)&&(H=nr.maybeMap(H,function(_t){return _t instanceof Date?C(_t):_t})),H===null){if(a)return p&&!D?p(t,ke.encoder,L,"key",R):t;H=""}if(ig(H)||nr.isBuffer(H)){if(p){var V=D?t:p(t,ke.encoder,L,"key",R);return[k(V)+"="+k(p(H,ke.encoder,L,"value",R))]}return[k(t)+"="+k(String(H))]}var me=[];if(typeof H>"u")return me;var J;if(i==="comma"&&Rt(H))D&&p&&(H=nr.maybeMap(H,p)),J=[{value:H.length>0?H.join(",")||null:void 0}];else if(Rt(g))J=g;else{var ue=Object.keys(H);J=w?ue.sort(w):ue}var j=d?String(t).replace(/\./g,"%2E"):String(t),_e=n&&Rt(H)&&H.length===1?j+"[]":j;if(s&&Rt(H)&&H.length===0)return _e+"[]";for(var Te=0;Te<J.length;++Te){var Ie=J[Te],gt=typeof Ie=="object"&&Ie&&typeof Ie.value<"u"?Ie.value:H[Ie];if(!(u&&gt===null)){var Ve=b&&d?String(Ie).replace(/\./g,"%2E"):String(Ie),Ke=Rt(H)?typeof i=="function"?i(_e,Ve):_e:_e+(b?"."+Ve:"["+Ve+"]");U.set(e,O);var Ni=Nl();Ni.set(Os,U),Vl(me,l(gt,Ke,i,n,s,a,u,d,i==="comma"&&D&&Rt(H)?null:p,g,w,b,C,R,k,D,L,Ni))}}return me},rg=function(e){if(!e)return ke;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||ke.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=cn.default;if(typeof e.format<"u"){if(!Qp.call(cn.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=cn.formatters[i],s=ke.filter;(typeof e.filter=="function"||Rt(e.filter))&&(s=e.filter);var a;if(e.arrayFormat in Il?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=ke.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:ke.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ke.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ke.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ke.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ke.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ke.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ke.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ke.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ke.encodeValuesOnly,filter:s,format:i,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ke.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ke.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ke.strictNullHandling}},sg=function(l,e){var t=l,i=rg(e),n,s;typeof i.filter=="function"?(s=i.filter,t=s("",t)):Rt(i.filter)&&(s=i.filter,n=s);var a=[];if(typeof t!="object"||t===null)return"";var u=Il[i.arrayFormat],d=u==="comma"&&i.commaRoundTrip;n||(n=Object.keys(t)),i.sort&&n.sort(i.sort);for(var p=Nl(),g=0;g<n.length;++g){var w=n[g],b=t[w];i.skipNulls&&b===null||Vl(a,ng(b,w,u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var C=a.join(i.delimiter),R=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),C.length>0?R+C:""},di=Bl,Hs=Object.prototype.hasOwnProperty,$l=Array.isArray,ye={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:di.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},og=function(l){return l.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Gl=function(l,e,t){if(l&&typeof l=="string"&&e.comma&&l.indexOf(",")>-1)return l.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return l},ag="utf8=%26%2310003%3B",lg="utf8=%E2%9C%93",hg=function(e,t){var i={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=t.parameterLimit===1/0?void 0:t.parameterLimit,a=n.split(t.delimiter,t.throwOnLimitExceeded?s+1:s);if(t.throwOnLimitExceeded&&a.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var u=-1,d,p=t.charset;if(t.charsetSentinel)for(d=0;d<a.length;++d)a[d].indexOf("utf8=")===0&&(a[d]===lg?p="utf-8":a[d]===ag&&(p="iso-8859-1"),u=d,d=a.length);for(d=0;d<a.length;++d)if(d!==u){var g=a[d],w=g.indexOf("]="),b=w===-1?g.indexOf("="):w+1,C,R;b===-1?(C=t.decoder(g,ye.decoder,p,"key"),R=t.strictNullHandling?null:""):(C=t.decoder(g.slice(0,b),ye.decoder,p,"key"),R=di.maybeMap(Gl(g.slice(b+1),t,$l(i[C])?i[C].length:0),function(D){return t.decoder(D,ye.decoder,p,"value")})),R&&t.interpretNumericEntities&&p==="iso-8859-1"&&(R=og(String(R))),g.indexOf("[]=")>-1&&(R=$l(R)?[R]:R);var k=Hs.call(i,C);k&&t.duplicates==="combine"?i[C]=di.combine(i[C],R):(!k||t.duplicates==="last")&&(i[C]=R)}return i},ug=function(l,e,t,i){var n=0;if(l.length>0&&l[l.length-1]==="[]"){var s=l.slice(0,-1).join("");n=Array.isArray(e)&&e[s]?e[s].length:0}for(var a=i?e:Gl(e,t,n),u=l.length-1;u>=0;--u){var d,p=l[u];if(p==="[]"&&t.parseArrays)d=t.allowEmptyArrays&&(a===""||t.strictNullHandling&&a===null)?[]:di.combine([],a);else{d=t.plainObjects?{__proto__:null}:{};var g=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,w=t.decodeDotInKeys?g.replace(/%2E/g,"."):g,b=parseInt(w,10);!t.parseArrays&&w===""?d={0:a}:!isNaN(b)&&p!==w&&String(b)===w&&b>=0&&t.parseArrays&&b<=t.arrayLimit?(d=[],d[b]=a):w!=="__proto__"&&(d[w]=a)}a=d}return a},dg=function(e,t,i,n){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,d=i.depth>0&&a.exec(s),p=d?s.slice(0,d.index):s,g=[];if(p){if(!i.plainObjects&&Hs.call(Object.prototype,p)&&!i.allowPrototypes)return;g.push(p)}for(var w=0;i.depth>0&&(d=u.exec(s))!==null&&w<i.depth;){if(w+=1,!i.plainObjects&&Hs.call(Object.prototype,d[1].slice(1,-1))&&!i.allowPrototypes)return;g.push(d[1])}if(d){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");g.push("["+s.slice(d.index)+"]")}return ug(g,t,i,n)}},cg=function(e){if(!e)return ye;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?ye.charset:e.charset,i=typeof e.duplicates>"u"?ye.duplicates:e.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ye.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ye.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ye.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ye.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ye.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ye.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ye.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ye.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ye.decoder,delimiter:typeof e.delimiter=="string"||di.isRegExp(e.delimiter)?e.delimiter:ye.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ye.depth,duplicates:i,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ye.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ye.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ye.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ye.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ye.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},fg=function(l,e){var t=cg(e);if(l===""||l===null||typeof l>"u")return t.plainObjects?{__proto__:null}:{};for(var i=typeof l=="string"?hg(l,t):l,n=t.plainObjects?{__proto__:null}:{},s=Object.keys(i),a=0;a<s.length;++a){var u=s[a],d=dg(u,i[u],t,typeof l=="string");n=di.merge(n,d,t)}return t.allowSparse===!0?n:di.compact(n)},pg=sg,gg=fg,mg=Fs,bg={formats:mg,parse:gg,stringify:pg};const vg=gc(bg),Bs=l=>W.upperFirst(W.camelCase(l));function wg(l){let e=[];function t(i){for(let n in i)typeof i[n]=="object"&&i[n]!==null&&(!["schema","columns"].includes(n)&&!W.has(i[n],"schema")&&!["group"].includes(W.get(i[n],"type"))?(W.has(i[n],"placeholder")||(i[n].placeholder=W.get(i[n],"title")),i[n].field=n,e.push(i[n])):t(i[n]))}return t(l),e}const{event:Lt}=Le,yg=(l="myStore")=>Ue.defineStore(l,{state:()=>({mainKey:"",form:{},items:{},query:"",routes:{},fields:[],options:[],filters:[],loadings:{},dialog:!1,structure:{},paginations:{},searchParam:"",isEditing:!1,panelName:!1,editItemId:!1,hiddenActions:[],isFiltering:!1,sorts:["id:desc"],selected:new Set([])}),getters:{getItems(e){return t=>W.get(e.items,t,[])},getPaginations(e){return t=>W.get(e.paginations,t,[])},mainItems(e){return W.get(e.items,e.mainKey,[])},mainPagination(e){return this.getPaginations(e.mainKey)},mainRoute(e){return W.get(e.routes,e.mainKey,"")},flatFields(e){let t=wg(e.fields);return t.unshift(c.reactive({title:"",type:"hidden",value:"_select_",field:"_select_",align:"center",headerSort:!1})),t},formFields(e){return e.fields},flatFieldsWithoutActions(){return this.flatFields.filter(e=>!["_actions_","_index_","_select_"].includes(e.field))},headers(){return Lg(this.flatFields)},headersWithoutActions(){return this.headers.filter(e=>!["_actions_","_index_","_select_"].includes(e.field))}},actions:{reset(){this.items={},this.loadings={},this.routes={},this.options=[]},setData(e,t){this.items[e]=t},addData(e){Array.isArray(this.items[this.mainKey])||(this.items[this.mainKey]=[]),this.items[this.mainKey]=[e,...this.items[this.mainKey]]},editData(e){let t=this.items[this.mainKey];t=t.map(i=>i.id==e.id?{_index_:i._index_,...e}:i),this.items[this.mainKey]=[...t]},removeData(e){let t=this.items[this.mainKey];t=t.filter(i=>i.id!=e),this.items[this.mainKey]=[...t]},getModelKey(e){let t=typeof e=="string"?e.substr(e.lastIndexOf("/")+1):e.key;return this.mainKey=this.mainKey||Bs(t),Bs(t)},setPagination(e,t){t in this.paginations||(this.paginations[t]={total:0,currentPage:0,lastPage:0}),this.paginations[t].total=W.get(e,"total"),this.paginations[t].currentPage=W.get(e,"current_page"),this.paginations[t].lastPage=W.get(e,"last_page")},paginate(e){this.isFiltering?this.getWithFilter(e):this.loadItems(this.mainKey,e)},reloadData(){this.isFiltering?this.getWithFilter():this.loadItems()},convertToFilterForm(){var t,i,n;let e={};for(const s of this.filters)if((t=s==null?void 0:s.field)!=null&&t.field){if((i=s==null?void 0:s.field)!=null&&i.query){const a=(n=s==null?void 0:s.field)==null?void 0:n.query(s);e=W.merge(e,a);continue}e[s.field.field]={[s.op]:s.value}}return vg.stringify({filters:e,sort:this.sorts},{encodeValuesOnly:!0})},generateQuery(e=this.mainKey){let t=W.get(this.routes,e+".index","");const[i,n]=t.split("?");return i+"/export?"+(n?n+"&":"")+this.convertToFilterForm()},generateRoute(e=this.mainKey,t=!1){let i=W.get(this.routes,e+".index",""),n=i.indexOf("?")>-1?"&page=":"?page=";if(n+=t,this.searchParam&&(n+="&search="+this.searchParam),i=i+n+"&"+this.convertToFilterForm(),this.query){const s=i.includes("?")?"&":"?";i+=s+this.query}return i},async loadItems(e=this.mainKey,t=1){this.loadings[e]=!0,this.loadings.mainLoading=e===this.mainKey;const i=this.generateRoute(e,t);return Oe.get(i).then(n=>{n=W.get(n,"data",{}),this.items[e]=W.get(n,"data"),this.setPagination(n,e)}).finally(()=>{this.loadings[e]=!1,this.loadings.mainLoading=!1})},customLoadItems(e,t=1,i=()=>({})){this.loadings[e]=!0,i(n=>{this.items[e]=n.data,this.setPagination(n,e)},()=>{},()=>{this.loadings[e]=!1},t)},getWithFilter(e=1,t=15){const i="http://192.168.190.10:9090/api/filter";return this.loadings.filter=!0,Oe.post(`${i}?page=${e}`,{model:this.mainKey,itemPerPage:t,filters:this.filters}).then(n=>{n=W.get(n,"data",{}),this.items[this.mainKey]=n.data,this.setPagination(n,this.mainKey)}).finally(()=>{this.loadings.filter=!1})},addItem(e){this.loadings.mainLoading=!0;let t=W.get(this.routes,this.mainKey+".create",""),i=Xl(e,this.flatFields);return Oe.post(t,i).then(async()=>{this.reloadData(),Lt("alert",{text:"با موفقیت ثبت شد",color:"green"}),Lt("handleDialogForm",!1)}).catch(n=>{Lt("alert",{text:W.get(n,"response.data.message"),color:"red"})}).finally(()=>{this.loadings.mainLoading=!1})},editItem(e){let t=W.get(this.routes,this.mainKey+".update","");t=t.split("?")[0];let i=Xl(e,this.flatFields);return this.loadings.mainLoading=!0,Oe.patch(t+"/"+this.editItemId,i).then(async()=>{this.reloadData(),Lt("alert",{text:"با موفقیت ویرایش شد",color:"green"}),Lt("handleDialogForm",!1)}).catch(n=>{Lt("alert",{text:W.get(n,"response.data.message"),color:"red"})}).finally(()=>{this.loadings.mainLoading=!1})},remove(e){const t=Array.isArray(e)?e:[e];let i=W.get(this.routes,this.mainKey+".delete","");i=i.split("?")[0],this.loadings.mainLoading=!0,t.forEach(n=>{Oe.delete(i+"/"+n).then(()=>{Lt("alert",{text:"با موفقیت حذف شد",color:"green"}),Lt("handleDeleteDialog",!1),this.removeData(e),this.reloadData()}).catch(s=>{Lt("alert",{text:W.get(s,"response.data.message"),color:"red"})}).finally(()=>{this.loadings.mainLoading=!1})})}}}),Cg=l=>yg(l)(),Eg=["create","update","delete","show","print","importExcel","exportExcel","filter"],Ns=c.ref([]);function Is(){function l(t){Ns.value=Eg.filter(i=>!t.includes(i))}function e(t){return Ns.value.includes(t)}return{can:e,setPermissions:l,permissions:Ns}}const xg=l=>({onChange:(...e)=>{const t=e[2].form$.el$(l);t&&"clear"in t&&t.clear(),t&&"updateItems"in t&&t.updateItems()}}),Rg=(l={})=>({search:!0,clearOnSearch:!0,type:"select",delay:1e3,object:!0,filterResults:!1,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp")),...l}),_g=(l={})=>({search:!0,clearOnSearch:!0,type:"select",object:!0,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp"),e.getValue()),...l}),Tg=(l={})=>({search:!0,clearOnSearch:!0,type:"multiselect",delay:1e3,object:!0,filterResults:!1,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp")),...l}),Ul=(l={})=>({search:!0,clearOnSearch:!0,type:"tags",delay:1e3,object:!0,filterResults:!1,hideSelected:!0,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp")),...l}),jl=(l={})=>({type:"date",...l}),Kl={normalSelect:_g,multiSelect:Tg,multiFile:(l={})=>({type:"multifile",label:l==null?void 0:l.title,placeholder:l==null?void 0:l.title,drop:!0,filename:"name",url:"http://192.168.190.69:9090/api/file/show",uploadTempEndpoint:"http://192.168.190.69:9090/api/file/upload",accept:[".jpg",".png",".gif",".docx",".txt",".zip",".rar"],sort:!0,clickable:!0,object:!0,storeFile:"hash",...l}),hasRel:xg,select:Rg,group:(l,e={})=>({addClass:["bg-gray-100","p-4","rounded-lg",""],type:"group",label:l,schema:e}),tags:Ul,date:jl};let ql={};function kg({form:l,fieldName:e,field:t}){return Array.isArray(W.get(l,e))&&W.has(t,"valueProp")}function Xl(l,e){console.log("convertToSendForm START"),console.log("Input form:",JSON.stringify(l,null,2)),console.log("Input fields:",JSON.stringify(e,null,2));let t={};console.log("Initialized output object:",t);let i=!1;console.log("Initialized hasOneField:",i);for(let n in l){console.log(`
30
+ `+e.prev}function qn(l,e){var t=bs(l),i=[];if(t){i.length=l.length;for(var n=0;n<l.length;n++)i[n]=Mt(l,n)?e(l[n],l):""}var s=typeof ps=="function"?ps(l):[],a;if(Si){a={};for(var u=0;u<s.length;u++)a["$"+s[u]]=s[u]}for(var d in l)Mt(l,d)&&(t&&String(Number(d))===d&&d<l.length||Si&&a["$"+d]instanceof Symbol||(Za.call(/[^\w$]/,d)?i.push(e(d,l)+": "+e(l[d],l)):i.push(d+": "+e(l[d],l))));if(typeof ps=="function")for(var p=0;p<s.length;p++)tl.call(l,s[p])&&i.push("["+e(s[p])+"]: "+e(l[s[p]],l));return i}var Xc=Kn,Jc=ki,Xn=function(l,e,t){for(var i=l,n;(n=i.next)!=null;i=n)if(n.key===e)return i.next=n.next,t||(n.next=l.next,l.next=n),n},Yc=function(l,e){if(l){var t=Xn(l,e);return t&&t.value}},Zc=function(l,e,t){var i=Xn(l,e);i?i.value=t:l.next={key:e,next:l.next,value:t}},Qc=function(l,e){return l?!!Xn(l,e):!1},ef=function(l,e){if(l)return Xn(l,e,!0)},tf=function(){var e,t={assert:function(i){if(!t.has(i))throw new Jc("Side channel does not contain "+Xc(i))},delete:function(i){var n=e&&e.next,s=ef(e,i);return s&&n&&n===s&&(e=void 0),!!s},get:function(i){return Yc(e,i)},has:function(i){return Qc(e,i)},set:function(i,n){e||(e={next:void 0}),Zc(e,i,n)}};return t},fl=Object,nf=Error,rf=EvalError,sf=RangeError,of=ReferenceError,af=SyntaxError,lf=URIError,hf=Math.abs,uf=Math.floor,df=Math.max,cf=Math.min,ff=Math.pow,pf=Math.round,gf=Number.isNaN||function(e){return e!==e},mf=gf,bf=function(e){return mf(e)||e===0?e:e<0?-1:1},vf=Object.getOwnPropertyDescriptor,Jn=vf;if(Jn)try{Jn([],"length")}catch{Jn=null}var pl=Jn,Yn=Object.defineProperty||!1;if(Yn)try{Yn({},"a",{value:1})}catch{Yn=!1}var wf=Yn,ys,gl;function yf(){return gl||(gl=1,ys=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==n||u.enumerable!==!0)return!1}return!0}),ys}var Cs,ml;function Cf(){if(ml)return Cs;ml=1;var l=typeof Symbol<"u"&&Symbol,e=yf();return Cs=function(){return typeof l!="function"||typeof Symbol!="function"||typeof l("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Cs}var Es,bl;function vl(){return bl||(bl=1,Es=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Es}var xs,wl;function yl(){if(wl)return xs;wl=1;var l=fl;return xs=l.getPrototypeOf||null,xs}var Ef="Function.prototype.bind called on incompatible ",xf=Object.prototype.toString,Rf=Math.max,_f="[object Function]",Cl=function(e,t){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var s=0;s<t.length;s+=1)i[s+e.length]=t[s];return i},Tf=function(e,t){for(var i=[],n=t||0,s=0;n<e.length;n+=1,s+=1)i[s]=e[n];return i},kf=function(l,e){for(var t="",i=0;i<l.length;i+=1)t+=l[i],i+1<l.length&&(t+=e);return t},Sf=function(e){var t=this;if(typeof t!="function"||xf.apply(t)!==_f)throw new TypeError(Ef+t);for(var i=Tf(arguments,1),n,s=function(){if(this instanceof n){var g=t.apply(this,Cl(i,arguments));return Object(g)===g?g:this}return t.apply(e,Cl(i,arguments))},a=Rf(0,t.length-i.length),u=[],d=0;d<a;d++)u[d]="$"+d;if(n=Function("binder","return function ("+kf(u,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n},Mf=Sf,Zn=Function.prototype.bind||Mf,Rs=Function.prototype.call,_s,El;function xl(){return El||(El=1,_s=Function.prototype.apply),_s}var Lf=typeof Reflect<"u"&&Reflect&&Reflect.apply,Df=Zn,Af=xl(),Ff=Rs,zf=Lf,Pf=zf||Df.call(Ff,Af),Of=Zn,Hf=ki,Bf=Rs,Nf=Pf,Rl=function(e){if(e.length<1||typeof e[0]!="function")throw new Hf("a function is required");return Nf(Of,Bf,e)},Ts,_l;function If(){if(_l)return Ts;_l=1;var l=Rl,e=pl,t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Ts=i&&typeof i.get=="function"?l([i.get]):typeof s=="function"?function(u){return s(u==null?u:n(u))}:!1,Ts}var ks,Tl;function Vf(){if(Tl)return ks;Tl=1;var l=vl(),e=yl(),t=If();return ks=l?function(n){return l(n)}:e?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return e(n)}:t?function(n){return t(n)}:null,ks}var Ss,kl;function Wf(){if(kl)return Ss;kl=1;var l=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Zn;return Ss=t.call(l,e),Ss}var ne,$f=fl,Gf=nf,Uf=rf,jf=sf,Kf=of,Mi=af,Li=ki,qf=lf,Xf=hf,Jf=uf,Yf=df,Zf=cf,Qf=ff,ep=pf,tp=bf,Sl=Function,Ms=function(l){try{return Sl('"use strict"; return ('+l+").constructor;")()}catch{}},ln=pl,ip=wf,Ls=function(){throw new Li},np=ln?function(){try{return arguments.callee,Ls}catch{try{return ln(arguments,"callee").get}catch{return Ls}}}():Ls,Di=Cf()(),De=Vf(),rp=yl(),sp=vl(),Ml=xl(),hn=Rs,Ai={},op=typeof Uint8Array>"u"||!De?ne:De(Uint8Array),hi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":Di&&De?De([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":Ai,"%AsyncGenerator%":Ai,"%AsyncGeneratorFunction%":Ai,"%AsyncIteratorPrototype%":Ai,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Gf,"%eval%":eval,"%EvalError%":Uf,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":Sl,"%GeneratorFunction%":Ai,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Di&&De?De(De([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Di||!De?ne:De(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$f,"%Object.getOwnPropertyDescriptor%":ln,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":jf,"%ReferenceError%":Kf,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Di||!De?ne:De(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Di&&De?De(""[Symbol.iterator]()):ne,"%Symbol%":Di?Symbol:ne,"%SyntaxError%":Mi,"%ThrowTypeError%":np,"%TypedArray%":op,"%TypeError%":Li,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":qf,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":hn,"%Function.prototype.apply%":Ml,"%Object.defineProperty%":ip,"%Object.getPrototypeOf%":rp,"%Math.abs%":Xf,"%Math.floor%":Jf,"%Math.max%":Yf,"%Math.min%":Zf,"%Math.pow%":Qf,"%Math.round%":ep,"%Math.sign%":tp,"%Reflect.getPrototypeOf%":sp};if(De)try{null.error}catch(l){var ap=De(De(l));hi["%Error.prototype%"]=ap}var lp=function l(e){var t;if(e==="%AsyncFunction%")t=Ms("async function () {}");else if(e==="%GeneratorFunction%")t=Ms("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ms("async function* () {}");else if(e==="%AsyncGenerator%"){var i=l("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=l("%AsyncGenerator%");n&&De&&(t=De(n.prototype))}return hi[e]=t,t},Ll={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},un=Zn,Qn=Wf(),hp=un.call(hn,Array.prototype.concat),up=un.call(Ml,Array.prototype.splice),Dl=un.call(hn,String.prototype.replace),er=un.call(hn,String.prototype.slice),dp=un.call(hn,RegExp.prototype.exec),cp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fp=/\\(\\)?/g,pp=function(e){var t=er(e,0,1),i=er(e,-1);if(t==="%"&&i!=="%")throw new Mi("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new Mi("invalid intrinsic syntax, expected opening `%`");var n=[];return Dl(e,cp,function(s,a,u,d){n[n.length]=u?Dl(d,fp,"$1"):a||s}),n},gp=function(e,t){var i=e,n;if(Qn(Ll,i)&&(n=Ll[i],i="%"+n[0]+"%"),Qn(hi,i)){var s=hi[i];if(s===Ai&&(s=lp(i)),typeof s>"u"&&!t)throw new Li("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new Mi("intrinsic "+e+" does not exist!")},Ds=function(e,t){if(typeof e!="string"||e.length===0)throw new Li("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Li('"allowMissing" argument must be a boolean');if(dp(/^%?[^%]*%?$/,e)===null)throw new Mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=pp(e),n=i.length>0?i[0]:"",s=gp("%"+n+"%",t),a=s.name,u=s.value,d=!1,p=s.alias;p&&(n=p[0],up(i,hp([0,1],p)));for(var g=1,w=!0;g<i.length;g+=1){var b=i[g],C=er(b,0,1),R=er(b,-1);if((C==='"'||C==="'"||C==="`"||R==='"'||R==="'"||R==="`")&&C!==R)throw new Mi("property names with quotes must have matching quotes");if((b==="constructor"||!w)&&(d=!0),n+="."+b,a="%"+n+"%",Qn(hi,a))u=hi[a];else if(u!=null){if(!(b in u)){if(!t)throw new Li("base intrinsic for "+e+" exists, but the property is not available.");return}if(ln&&g+1>=i.length){var k=ln(u,b);w=!!k,w&&"get"in k&&!("originalValue"in k.get)?u=k.get:u=u[b]}else w=Qn(u,b),u=u[b];w&&!d&&(hi[a]=u)}}return u},Al=Ds,Fl=Rl,mp=Fl([Al("%String.prototype.indexOf%")]),zl=function(e,t){var i=Al(e,!!t);return typeof i=="function"&&mp(e,".prototype.")>-1?Fl([i]):i},bp=Ds,dn=zl,vp=Kn,wp=ki,Pl=bp("%Map%",!0),yp=dn("Map.prototype.get",!0),Cp=dn("Map.prototype.set",!0),Ep=dn("Map.prototype.has",!0),xp=dn("Map.prototype.delete",!0),Rp=dn("Map.prototype.size",!0),Ol=!!Pl&&function(){var e,t={assert:function(i){if(!t.has(i))throw new wp("Side channel does not contain "+vp(i))},delete:function(i){if(e){var n=xp(e,i);return Rp(e)===0&&(e=void 0),n}return!1},get:function(i){if(e)return yp(e,i)},has:function(i){return e?Ep(e,i):!1},set:function(i,n){e||(e=new Pl),Cp(e,i,n)}};return t},_p=Ds,tr=zl,Tp=Kn,ir=Ol,kp=ki,Fi=_p("%WeakMap%",!0),Sp=tr("WeakMap.prototype.get",!0),Mp=tr("WeakMap.prototype.set",!0),Lp=tr("WeakMap.prototype.has",!0),Dp=tr("WeakMap.prototype.delete",!0),Ap=Fi?function(){var e,t,i={assert:function(n){if(!i.has(n))throw new kp("Side channel does not contain "+Tp(n))},delete:function(n){if(Fi&&n&&(typeof n=="object"||typeof n=="function")){if(e)return Dp(e,n)}else if(ir&&t)return t.delete(n);return!1},get:function(n){return Fi&&n&&(typeof n=="object"||typeof n=="function")&&e?Sp(e,n):t&&t.get(n)},has:function(n){return Fi&&n&&(typeof n=="object"||typeof n=="function")&&e?Lp(e,n):!!t&&t.has(n)},set:function(n,s){Fi&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new Fi),Mp(e,n,s)):ir&&(t||(t=ir()),t.set(n,s))}};return i}:ir,Fp=ki,zp=Kn,Pp=tf,Op=Ol,Hp=Ap,Bp=Hp||Op||Pp,Np=function(){var e,t={assert:function(i){if(!t.has(i))throw new Fp("Side channel does not contain "+zp(i))},delete:function(i){return!!e&&e.delete(i)},get:function(i){return e&&e.get(i)},has:function(i){return!!e&&e.has(i)},set:function(i,n){e||(e=Bp()),e.set(i,n)}};return t},Ip=String.prototype.replace,Vp=/%20/g,As={RFC1738:"RFC1738",RFC3986:"RFC3986"},Fs={default:As.RFC3986,formatters:{RFC1738:function(l){return Ip.call(l,Vp,"+")},RFC3986:function(l){return String(l)}},RFC1738:As.RFC1738,RFC3986:As.RFC3986},Wp=Fs,zs=Object.prototype.hasOwnProperty,ui=Array.isArray,xt=function(){for(var l=[],e=0;e<256;++e)l.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return l}(),$p=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(ui(i)){for(var n=[],s=0;s<i.length;++s)typeof i[s]<"u"&&n.push(i[s]);t.obj[t.prop]=n}}},Hl=function(e,t){for(var i=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(i[n]=e[n]);return i},Gp=function l(e,t,i){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(ui(e))e.push(t);else if(e&&typeof e=="object")(i&&(i.plainObjects||i.allowPrototypes)||!zs.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var n=e;return ui(e)&&!ui(t)&&(n=Hl(e,i)),ui(e)&&ui(t)?(t.forEach(function(s,a){if(zs.call(e,a)){var u=e[a];u&&typeof u=="object"&&s&&typeof s=="object"?e[a]=l(u,s,i):e.push(s)}else e[a]=s}),e):Object.keys(t).reduce(function(s,a){var u=t[a];return zs.call(s,a)?s[a]=l(s[a],u,i):s[a]=u,s},n)},Up=function(e,t){return Object.keys(t).reduce(function(i,n){return i[n]=t[n],i},e)},jp=function(l,e,t){var i=l.replace(/\+/g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},Ps=1024,Kp=function(e,t,i,n,s){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),i==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var u="",d=0;d<a.length;d+=Ps){for(var p=a.length>=Ps?a.slice(d,d+Ps):a,g=[],w=0;w<p.length;++w){var b=p.charCodeAt(w);if(b===45||b===46||b===95||b===126||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||s===Wp.RFC1738&&(b===40||b===41)){g[g.length]=p.charAt(w);continue}if(b<128){g[g.length]=xt[b];continue}if(b<2048){g[g.length]=xt[192|b>>6]+xt[128|b&63];continue}if(b<55296||b>=57344){g[g.length]=xt[224|b>>12]+xt[128|b>>6&63]+xt[128|b&63];continue}w+=1,b=65536+((b&1023)<<10|p.charCodeAt(w)&1023),g[g.length]=xt[240|b>>18]+xt[128|b>>12&63]+xt[128|b>>6&63]+xt[128|b&63]}u+=g.join("")}return u},qp=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var s=t[n],a=s.obj[s.prop],u=Object.keys(a),d=0;d<u.length;++d){var p=u[d],g=a[p];typeof g=="object"&&g!==null&&i.indexOf(g)===-1&&(t.push({obj:a,prop:p}),i.push(g))}return $p(t),e},Xp=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Jp=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Yp=function(e,t){return[].concat(e,t)},Zp=function(e,t){if(ui(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},Bl={arrayToObject:Hl,assign:Up,combine:Yp,compact:qp,decode:jp,encode:Kp,isBuffer:Jp,isRegExp:Xp,maybeMap:Zp,merge:Gp},Nl=Np,nr=Bl,cn=Fs,Qp=Object.prototype.hasOwnProperty,Il={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Rt=Array.isArray,eg=Array.prototype.push,Vl=function(l,e){eg.apply(l,Rt(e)?e:[e])},tg=Date.prototype.toISOString,Wl=cn.default,ke={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:nr.encode,encodeValuesOnly:!1,filter:void 0,format:Wl,formatter:cn.formatters[Wl],indices:!1,serializeDate:function(e){return tg.call(e)},skipNulls:!1,strictNullHandling:!1},ig=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Os={},ng=function l(e,t,i,n,s,a,u,d,p,g,w,b,C,R,k,D,L,U){for(var H=e,N=U,O=0,se=!1;(N=N.get(Os))!==void 0&&!se;){var $=N.get(e);if(O+=1,typeof $<"u"){if($===O)throw new RangeError("Cyclic object value");se=!0}typeof N.get(Os)>"u"&&(O=0)}if(typeof g=="function"?H=g(t,H):H instanceof Date?H=C(H):i==="comma"&&Rt(H)&&(H=nr.maybeMap(H,function(_t){return _t instanceof Date?C(_t):_t})),H===null){if(a)return p&&!D?p(t,ke.encoder,L,"key",R):t;H=""}if(ig(H)||nr.isBuffer(H)){if(p){var V=D?t:p(t,ke.encoder,L,"key",R);return[k(V)+"="+k(p(H,ke.encoder,L,"value",R))]}return[k(t)+"="+k(String(H))]}var me=[];if(typeof H>"u")return me;var J;if(i==="comma"&&Rt(H))D&&p&&(H=nr.maybeMap(H,p)),J=[{value:H.length>0?H.join(",")||null:void 0}];else if(Rt(g))J=g;else{var ue=Object.keys(H);J=w?ue.sort(w):ue}var j=d?String(t).replace(/\./g,"%2E"):String(t),_e=n&&Rt(H)&&H.length===1?j+"[]":j;if(s&&Rt(H)&&H.length===0)return _e+"[]";for(var Te=0;Te<J.length;++Te){var Ie=J[Te],gt=typeof Ie=="object"&&Ie&&typeof Ie.value<"u"?Ie.value:H[Ie];if(!(u&&gt===null)){var Ve=b&&d?String(Ie).replace(/\./g,"%2E"):String(Ie),Ke=Rt(H)?typeof i=="function"?i(_e,Ve):_e:_e+(b?"."+Ve:"["+Ve+"]");U.set(e,O);var Ni=Nl();Ni.set(Os,U),Vl(me,l(gt,Ke,i,n,s,a,u,d,i==="comma"&&D&&Rt(H)?null:p,g,w,b,C,R,k,D,L,Ni))}}return me},rg=function(e){if(!e)return ke;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||ke.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=cn.default;if(typeof e.format<"u"){if(!Qp.call(cn.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=cn.formatters[i],s=ke.filter;(typeof e.filter=="function"||Rt(e.filter))&&(s=e.filter);var a;if(e.arrayFormat in Il?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=ke.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:ke.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ke.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ke.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ke.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ke.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ke.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ke.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ke.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ke.encodeValuesOnly,filter:s,format:i,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ke.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ke.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ke.strictNullHandling}},sg=function(l,e){var t=l,i=rg(e),n,s;typeof i.filter=="function"?(s=i.filter,t=s("",t)):Rt(i.filter)&&(s=i.filter,n=s);var a=[];if(typeof t!="object"||t===null)return"";var u=Il[i.arrayFormat],d=u==="comma"&&i.commaRoundTrip;n||(n=Object.keys(t)),i.sort&&n.sort(i.sort);for(var p=Nl(),g=0;g<n.length;++g){var w=n[g],b=t[w];i.skipNulls&&b===null||Vl(a,ng(b,w,u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var C=a.join(i.delimiter),R=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),C.length>0?R+C:""},di=Bl,Hs=Object.prototype.hasOwnProperty,$l=Array.isArray,ye={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:di.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},og=function(l){return l.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Gl=function(l,e,t){if(l&&typeof l=="string"&&e.comma&&l.indexOf(",")>-1)return l.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return l},ag="utf8=%26%2310003%3B",lg="utf8=%E2%9C%93",hg=function(e,t){var i={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=t.parameterLimit===1/0?void 0:t.parameterLimit,a=n.split(t.delimiter,t.throwOnLimitExceeded?s+1:s);if(t.throwOnLimitExceeded&&a.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var u=-1,d,p=t.charset;if(t.charsetSentinel)for(d=0;d<a.length;++d)a[d].indexOf("utf8=")===0&&(a[d]===lg?p="utf-8":a[d]===ag&&(p="iso-8859-1"),u=d,d=a.length);for(d=0;d<a.length;++d)if(d!==u){var g=a[d],w=g.indexOf("]="),b=w===-1?g.indexOf("="):w+1,C,R;b===-1?(C=t.decoder(g,ye.decoder,p,"key"),R=t.strictNullHandling?null:""):(C=t.decoder(g.slice(0,b),ye.decoder,p,"key"),R=di.maybeMap(Gl(g.slice(b+1),t,$l(i[C])?i[C].length:0),function(D){return t.decoder(D,ye.decoder,p,"value")})),R&&t.interpretNumericEntities&&p==="iso-8859-1"&&(R=og(String(R))),g.indexOf("[]=")>-1&&(R=$l(R)?[R]:R);var k=Hs.call(i,C);k&&t.duplicates==="combine"?i[C]=di.combine(i[C],R):(!k||t.duplicates==="last")&&(i[C]=R)}return i},ug=function(l,e,t,i){var n=0;if(l.length>0&&l[l.length-1]==="[]"){var s=l.slice(0,-1).join("");n=Array.isArray(e)&&e[s]?e[s].length:0}for(var a=i?e:Gl(e,t,n),u=l.length-1;u>=0;--u){var d,p=l[u];if(p==="[]"&&t.parseArrays)d=t.allowEmptyArrays&&(a===""||t.strictNullHandling&&a===null)?[]:di.combine([],a);else{d=t.plainObjects?{__proto__:null}:{};var g=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,w=t.decodeDotInKeys?g.replace(/%2E/g,"."):g,b=parseInt(w,10);!t.parseArrays&&w===""?d={0:a}:!isNaN(b)&&p!==w&&String(b)===w&&b>=0&&t.parseArrays&&b<=t.arrayLimit?(d=[],d[b]=a):w!=="__proto__"&&(d[w]=a)}a=d}return a},dg=function(e,t,i,n){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,d=i.depth>0&&a.exec(s),p=d?s.slice(0,d.index):s,g=[];if(p){if(!i.plainObjects&&Hs.call(Object.prototype,p)&&!i.allowPrototypes)return;g.push(p)}for(var w=0;i.depth>0&&(d=u.exec(s))!==null&&w<i.depth;){if(w+=1,!i.plainObjects&&Hs.call(Object.prototype,d[1].slice(1,-1))&&!i.allowPrototypes)return;g.push(d[1])}if(d){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");g.push("["+s.slice(d.index)+"]")}return ug(g,t,i,n)}},cg=function(e){if(!e)return ye;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?ye.charset:e.charset,i=typeof e.duplicates>"u"?ye.duplicates:e.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ye.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ye.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ye.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ye.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ye.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ye.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ye.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ye.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ye.decoder,delimiter:typeof e.delimiter=="string"||di.isRegExp(e.delimiter)?e.delimiter:ye.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ye.depth,duplicates:i,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ye.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ye.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ye.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ye.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ye.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},fg=function(l,e){var t=cg(e);if(l===""||l===null||typeof l>"u")return t.plainObjects?{__proto__:null}:{};for(var i=typeof l=="string"?hg(l,t):l,n=t.plainObjects?{__proto__:null}:{},s=Object.keys(i),a=0;a<s.length;++a){var u=s[a],d=dg(u,i[u],t,typeof l=="string");n=di.merge(n,d,t)}return t.allowSparse===!0?n:di.compact(n)},pg=sg,gg=fg,mg=Fs,bg={formats:mg,parse:gg,stringify:pg};const vg=gc(bg),Bs=l=>W.upperFirst(W.camelCase(l));function wg(l){let e=[];function t(i){for(let n in i)typeof i[n]=="object"&&i[n]!==null&&(!["schema","columns"].includes(n)&&!W.has(i[n],"schema")&&!["group"].includes(W.get(i[n],"type"))?(W.has(i[n],"placeholder")||(i[n].placeholder=W.get(i[n],"title")),i[n].field=n,e.push(i[n])):t(i[n]))}return t(l),e}const{event:Lt}=Le,yg=(l="myStore")=>Ue.defineStore(l,{state:()=>({mainKey:"",form:{},items:{},query:"",routes:{},fields:[],options:[],filters:[],loadings:{},dialog:!1,structure:{},paginations:{},searchParam:"",isEditing:!1,panelName:!1,editItemId:!1,hiddenActions:[],isFiltering:!1,sorts:["id:desc"],selected:new Set([])}),getters:{getItems(e){return t=>W.get(e.items,t,[])},getPaginations(e){return t=>W.get(e.paginations,t,[])},mainItems(e){return W.get(e.items,e.mainKey,[])},mainPagination(e){return this.getPaginations(e.mainKey)},mainRoute(e){return W.get(e.routes,e.mainKey,"")},flatFields(e){let t=wg(e.fields);return t.unshift(c.reactive({title:"",type:"hidden",value:"_select_",field:"_select_",align:"center",headerSort:!1})),t},formFields(e){return e.fields},flatFieldsWithoutActions(){return this.flatFields.filter(e=>!["_actions_","_index_","_select_"].includes(e.field))},headers(){return Lg(this.flatFields)},headersWithoutActions(){return this.headers.filter(e=>!["_actions_","_index_","_select_"].includes(e.field))}},actions:{reset(){this.items={},this.loadings={},this.routes={},this.options=[]},setData(e,t){this.items[e]=t},addData(e){Array.isArray(this.items[this.mainKey])||(this.items[this.mainKey]=[]),this.items[this.mainKey]=[e,...this.items[this.mainKey]]},editData(e){let t=this.items[this.mainKey];t=t.map(i=>i.id==e.id?{_index_:i._index_,...e}:i),this.items[this.mainKey]=[...t]},removeData(e){let t=this.items[this.mainKey];t=t.filter(i=>i.id!=e),this.items[this.mainKey]=[...t]},getModelKey(e){let t=typeof e=="string"?e.substr(e.lastIndexOf("/")+1):e.key;return this.mainKey=this.mainKey||Bs(t),Bs(t)},setPagination(e,t){t in this.paginations||(this.paginations[t]={total:0,currentPage:0,lastPage:0}),this.paginations[t].total=W.get(e,"total"),this.paginations[t].currentPage=W.get(e,"current_page"),this.paginations[t].lastPage=W.get(e,"last_page")},paginate(e){this.isFiltering?this.getWithFilter(e):this.loadItems(this.mainKey,e)},reloadData(){this.isFiltering?this.getWithFilter():this.loadItems()},convertToFilterForm(){var t,i,n;let e={};for(const s of this.filters)if((t=s==null?void 0:s.field)!=null&&t.field){if((i=s==null?void 0:s.field)!=null&&i.query){const a=(n=s==null?void 0:s.field)==null?void 0:n.query(s);e=W.merge(e,a);continue}e[s.field.field]={[s.op]:s.value}}return vg.stringify({filters:e,sort:this.sorts},{encodeValuesOnly:!0})},generateQuery(e=this.mainKey){let t=W.get(this.routes,e+".index","");const[i,n]=t.split("?");return i+"/export?"+(n?n+"&":"")+this.convertToFilterForm()},generateRoute(e=this.mainKey,t=!1){let i=W.get(this.routes,e+".index",""),n=i.indexOf("?")>-1?"&page=":"?page=";if(n+=t,this.searchParam&&(n+="&search="+this.searchParam),i=i+n+"&"+this.convertToFilterForm(),this.query){const s=i.includes("?")?"&":"?";i+=s+this.query}return i},async loadItems(e=this.mainKey,t=1){this.loadings[e]=!0,this.loadings.mainLoading=e===this.mainKey;const i=this.generateRoute(e,t);return Oe.get(i).then(n=>{n=W.get(n,"data",{}),this.items[e]=W.get(n,"data"),this.setPagination(n,e)}).finally(()=>{this.loadings[e]=!1,this.loadings.mainLoading=!1})},customLoadItems(e,t=1,i=()=>({})){this.loadings[e]=!0,i(n=>{this.items[e]=n.data,this.setPagination(n,e)},()=>{},()=>{this.loadings[e]=!1},t)},getWithFilter(e=1,t=15){const i="http://192.168.190.10:9090/api/filter";return this.loadings.filter=!0,Oe.post(`${i}?page=${e}`,{model:this.mainKey,itemPerPage:t,filters:this.filters}).then(n=>{n=W.get(n,"data",{}),this.items[this.mainKey]=n.data,this.setPagination(n,this.mainKey)}).finally(()=>{this.loadings.filter=!1})},addItem(e){this.loadings.mainLoading=!0;let t=W.get(this.routes,this.mainKey+".create",""),i=Xl(e,this.flatFields);return Oe.post(t,i).then(async()=>{this.reloadData(),Lt("alert",{text:"با موفقیت ثبت شد",color:"green"}),Lt("handleDialogForm",!1)}).catch(n=>{Lt("alert",{text:W.get(n,"response.data.message"),color:"red"})}).finally(()=>{this.loadings.mainLoading=!1})},editItem(e){let t=W.get(this.routes,this.mainKey+".update","");t=t.split("?")[0];let i=Xl(e,this.flatFields);return this.loadings.mainLoading=!0,Oe.patch(t+"/"+this.editItemId,i).then(async()=>{this.reloadData(),Lt("alert",{text:"با موفقیت ویرایش شد",color:"green"}),Lt("handleDialogForm",!1)}).catch(n=>{Lt("alert",{text:W.get(n,"response.data.message"),color:"red"})}).finally(()=>{this.loadings.mainLoading=!1})},remove(e){const t=Array.isArray(e)?e:[e];let i=W.get(this.routes,this.mainKey+".delete","");i=i.split("?")[0],this.loadings.mainLoading=!0,t.forEach(n=>{Oe.delete(i+"/"+n).then(()=>{Lt("alert",{text:"با موفقیت حذف شد",color:"green"}),Lt("handleDeleteDialog",!1),this.removeData(e),this.reloadData()}).catch(s=>{Lt("alert",{text:W.get(s,"response.data.message"),color:"red"})}).finally(()=>{this.loadings.mainLoading=!1})})}}}),Cg=l=>yg(l)(),Eg=["create","update","delete","show","print","importExcel","exportExcel","filter"],Ns=c.ref([]);function Is(){function l(t){Ns.value=Eg.filter(i=>!t.includes(i))}function e(t){return Ns.value.includes(t)}return{can:e,setPermissions:l,permissions:Ns}}const xg=l=>({onChange:(...e)=>{const t=e[2].form$.el$(l);t&&"clear"in t&&t.clear(),t&&"updateItems"in t&&t.updateItems()}}),Rg=(l={})=>({search:!0,clearOnSearch:!0,type:"select",delay:1e3,object:!0,filterResults:!1,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp")),...l}),_g=(l={})=>({search:!0,clearOnSearch:!0,type:"select",object:!0,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp"),e.getValue()),...l}),Tg=(l={})=>({search:!0,clearOnSearch:!0,type:"multiselect",delay:1e3,object:!0,filterResults:!1,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp")),...l}),Ul=(l={})=>({search:!0,clearOnSearch:!0,type:"tags",delay:1e3,object:!0,filterResults:!1,hideSelected:!0,native:!1,formatter:e=>W.get(e.getValue(),W.get(l,"labelProp")),...l}),jl=(l={})=>({type:"date",...l}),Kl={normalSelect:_g,multiSelect:Tg,multiFile:(l={})=>({type:"multifile",label:l==null?void 0:l.title,placeholder:l==null?void 0:l.title,drop:!0,filename:"name",url:"http://192.168.190.69:9090/api/file/show",uploadTempEndpoint:"http://192.168.190.69:9090/api/file/upload",accept:[".jpg",".png",".gif",".docx",".txt",".zip",".rar"],sort:!0,clickable:!0,object:!0,storeFile:"hash",...l}),hasRel:xg,select:Rg,group:(l,e={})=>({addClass:["bg-gray-100","p-4","rounded-lg",""],type:"group",label:l,schema:e}),tags:Ul,date:jl};let ql={};function kg({form:l,fieldName:e,field:t}){const i=W.get(l,e),n=Array.isArray(i),s=W.has(t,"valueProp");if(!n)return!1;if(s){const a=i[0];return a&&typeof a=="object"&&!Array.isArray(a)}return!1}function Xl(l,e){console.log("convertToSendForm START"),console.log("Input form:",JSON.stringify(l,null,2)),console.log("Input fields:",JSON.stringify(e,null,2));let t={};console.log("Initialized output object:",t);let i=!1;console.log("Initialized hasOneField:",i);for(let n in l){console.log(`
31
31
  --- Processing field:`,n,"---");let s=Mg(n,e);if(console.log("Retrieved field definition:",s),!s){console.log("⚠️ Field not found, skipping:",n);continue}i=!0,console.log("Set hasOneField = true");let a=Sg(s);console.log("Computed send key:",a);let u=n;console.log("Base formKey:",u);const d=W.get(s,"valueProp",!1);console.log("ValueProp:",d),d&&(u+="."+d,console.log("Adjusted formKey with valueProp:",u));const p=kg({form:l,fieldName:n,field:s});if(console.log("Is field array of objects?",p),p){t[a]=W.get(l,n).map((w,b)=>{const C=W.get(w,d);return console.log(` Mapping array item [${b}]:`,w,"→",C),C}),console.log("Added array field to output:",a,t[a]);continue}const g=W.get(l,u,W.get(l,n));console.log("Resolved safe value:",g),t[a]=g,console.log("Added field to output:",a,g)}return console.log(`
32
32
  Has at least one field?`,i),i?(console.log("Final output:",JSON.stringify(t,null,2)),console.log(`convertToSendForm END
33
33
  `),t):(console.log("Returning original form (no valid fields found)."),l)}function Sg(l){return"sendKey"in l?l.sendKey:l.field}function Mg(l,e){return e.find(t=>t.field==l)}function Lg(l){let e=l.filter(s=>s.isHeader&&s.field!=="_actions_");const t=l.find(s=>s.field==="_actions_");let i={title:"",value:"_actions_",field:"_actions_",type:"text",align:"left",headerSort:!1,hozAlign:"left",headerHozAlign:"left"};t&&(i={...i,...t}),e.push(i);let n=0;return l.find(s=>s.field==="_select_"&&s.isHeader)&&(n=1),e.splice(n,0,{title:"#",type:"text",value:"_index_",field:"_index_",maxWidth:"100px",align:"center",headerSort:!1}),e}function Dg(l){for(const e of l)"init"in e&&e.init()}const Ag=l=>{const e=W.get(ql,l);return e?c.markRaw(e):""},Fg=l=>({url:e,key:t,foreignKey:i,dataKey:n,change:s}={url:!1,key:!1,foreignKey:!1,dataKey:!1,change:a=>a})=>async(...a)=>{let u=a[0],d=e;if(i&&n){d+=d.includes("?")?"&":"?";const C=i.split(".");let R="filters";for(const k of C)R+=`[${k.replace("|",".")}]`;d+=`${R}[$eq]={${n}}`}!t&&typeof d=="string"&&(t=(C=>{const R=C.lastIndexOf("/");let k;return C.includes("?")?k=C.substring(R+1,C.indexOf("?")):k=C.substring(R+1),Bs(k)})(d)),(d.match(/\{(.*?)\}/g)||[]).forEach(C=>{const R=C.replace(/[{}]/g,"");d=d.replace(C,W.get(l.form,R,""))});const w=d.includes("?")?"&":"?";u=typeof u=="string"?u:"";const b=await Oe.get(d+w+"search="+u);return s||(s=C=>C),s(W.get(b,"data.data",[]))},zg=(l,e)=>l({getRegisterField:Ag,axios:Oe,get:Fg(e),getSafe:W.get,useFields:Kl}),Jl=l=>{ql=l};function Pg({fields:l,hiddenActions:e,options:t,route:i,structure:n,query:s}){const{setPermissions:a}=Is(),u=Cg("Store-"+parseInt(Math.random()*1e7));u.query=s||"",u.fields=zg(l,u),Le.event("beforeFormueInit");const d=u.getModelKey(i),p={create:typeof i=="string"?i:i.create,update:typeof i=="string"?i:i.update,delete:typeof i=="string"?i:i.delete,index:typeof i=="string"?i:i.index};return u.routes[d]=p,u.loadItems(),u.options=t,a(e),u.structure=n,Dg(u.flatFields),u}const Og=({headers:l,baseURL:e}={headers:[],baseURL:""})=>{Oe.defaults.baseURL=e;for(const t in l)W.set(Oe.defaults.headers,t,l[t])},Hg=(l,{fields:e,axiosConfig:t,dir:i}={fields:{},axiosConfig:{},dir:"rtl"})=>{Og(t);const n=_i();n.dir=i||"rtl",l.config.globalProperties.$fcTr=s=>n.translate(s),Jl(e)};class Fe{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class fe{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var n=e?t.split(e):[t],s=n.length,a;for(let u=0;u<s&&(i=i[n[u]],a=i,!!i);u++);return a}static deepClone(e,t,i=[]){var n={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let u=e[a],d,p;u!=null&&typeof u=="object"&&(u.__proto__===n||u.__proto__===s)&&(d=i.findIndex(g=>g.subject===u),d>-1?t[a]=i[d].copy:(p=Object.assign(Array.isArray(u)?[]:{},u),i.unshift({subject:u,copy:p}),t[a]=this.deepClone(u,p,i)))}return t}}let Bg=class pc extends Fe{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,n=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=fe.elOffset(this.container);i-=s.left,n-=s.top}return{x:i,y:n}}elementPositionCoords(e,t="right"){var i=fe.elOffset(e),n,s,a;switch(this.container!==document.body&&(n=fe.elOffset(this.container),i.left-=n.left,i.top-=n.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,n,s,a,u;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,u=this.elementPositionCoords(e,t),a=u.offset,i=u.x,n=u.y):typeof e=="number"?(a={top:0,left:0},i=e,n=t):(u=this.containerEventCoords(e),i=u.x,n=u.y,this.reversedX=!1),this.element.style.top=n+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,n,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",d=>{d.stopPropagation()}),this)}_fitToScreen(e,t,i,n,s){var a=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-n.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let u=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>u)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=u+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new pc(this.table,e,this),this.childPopup}};class ee extends Fe{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(n=>n.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new Bg(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var Ng={rownum:function(l,e,t,i,n,s){return s.getPosition()}};const Pi=class Pi extends ee{constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(n=>{var s="accessor"+(n.charAt(0).toUpperCase()+n.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":Pi.accessors[e]?t=Pi.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),n=e.getComponent(),s=fe.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var u,d,p,g;a.modules.accessor&&(d=a.modules.accessor[i]||a.modules.accessor.accessor||!1,d&&(u=a.getFieldValue(s),u!="undefined"&&(g=a.getComponent(),p=typeof d.params=="function"?d.params(u,s,t,g,n):d.params,a.setFieldValue(s,d.accessor(u,s,t,p,g,n)))))}),s}};P(Pi,"moduleName","accessor"),P(Pi,"accessors",Ng);let Vs=Pi;var Ig={method:"GET"};function Ws(l,e){var t=[];if(e=e||"",Array.isArray(l))l.forEach((n,s)=>{t=t.concat(Ws(n,e?e+"["+s+"]":s))});else if(typeof l=="object")for(var i in l)t=t.concat(Ws(l[i],e?e+"["+i+"]":i));else t.push({key:e,value:l});return t}function Vg(l){var e=Ws(l),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function Yl(l,e,t){return l&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",l+=(l.includes("?")?"&":"?")+Vg(t)),l}function Wg(l,e,t){var i;return new Promise((n,s)=>{if(l=this.urlGenerator.call(this.table,l,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,l,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);l?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(l,e).then(u=>{u.ok?u.json().then(d=>{n(d)}).catch(d=>{s(d),console.warn("Ajax Load Error - Invalid JSON returned",d)}):(console.error("Ajax Load Error - Connection Error: "+u.status,u.statusText),s(u))}).catch(u=>{console.error("Ajax Load Error - Connection Error: ",u),s(u)})):(console.warn("Ajax Load Error - No URL Set"),n([]))})}function $s(l,e){var t=[];if(e=e||"",Array.isArray(l))l.forEach((n,s)=>{t=t.concat($s(n,e?e+"["+s+"]":s))});else if(typeof l=="object")for(var i in l)t=t.concat($s(l[i],e?e+"["+i+"]":i));else t.push({key:e,value:l});return t}var $g={json:{headers:{"Content-Type":"application/json"},body:function(l,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(l,e,t){var i=$s(t),n=new FormData;return i.forEach(function(s){n.append(s.key,s.value)}),n}}};const pt=class pt extends ee{constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=pt.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||pt.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||pt.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,n){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),n=Object.assign(Object.assign({},s),n)),n}requestDataCheck(e,t,i,n){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,n,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},pt.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(n=>(this.table.options.ajaxResponse&&(n=this.table.options.ajaxResponse.call(this.table,e,t,n)),n)):Promise.reject()}};P(pt,"moduleName","ajax"),P(pt,"defaultConfig",Ig),P(pt,"defaultURLGenerator",Yl),P(pt,"defaultLoaderPromise",Wg),P(pt,"contentTypeFormatters",$g);let Gs=pt;var Gg={replace:function(l){return this.table.setData(l)},update:function(l){return this.table.updateOrAddData(l)},insert:function(l){return this.table.addData(l)}},Ug={table:function(l){var e=[],t=!0,i=this.table.columnManager.columns,n=[],s=[];return l=l.split(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formue-crud",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",