2022-07-07 05:19:05 +08:00
const I1 = function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) i ( o ) ; new MutationObserver ( o => { for ( const r of o ) if ( r . type === "childList" ) for ( const l of r . addedNodes ) l . tagName === "LINK" && l . rel === "modulepreload" && i ( l ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function t ( o ) { const r = { } ; return o . integrity && ( r . integrity = o . integrity ) , o . referrerpolicy && ( r . referrerPolicy = o . referrerpolicy ) , o . crossorigin === "use-credentials" ? r . credentials = "include" : o . crossorigin === "anonymous" ? r . credentials = "omit" : r . credentials = "same-origin" , r } function i ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const r = t ( o ) ; fetch ( o . href , r ) } } ; I1 ( ) ; function le ( ) { } const Vr = n => n ; function ut ( n , e ) { for ( const t in e ) n [ t ] = e [ t ] ; return n } function Ib ( n ) { return n ( ) } function bc ( ) { return Object . create ( null ) } function rt ( n ) { n . forEach ( Ib ) } function Yn ( n ) { return typeof n == "function" } function Ee ( n , e ) { return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function" } let rl ; function Qn ( n , e ) { return rl || ( rl = document . createElement ( "a" ) ) , rl . href = e , n === rl . href } function R1 ( n ) { return Object . keys ( n ) . length === 0 } function Rb ( n , ... e ) { if ( n == null ) return le ; const t = n . subscribe ( ... e ) ; return t . unsubscribe ? ( ) => t . unsubscribe ( ) : t } function pn ( n , e , t ) { n . $$ . on _destroy . push ( Rb ( e , t ) ) } function $n ( n , e , t , i ) { if ( n ) { const o = Nb ( n , e , t , i ) ; return n [ 0 ] ( o ) } } function Nb ( n , e , t , i ) { return n [ 1 ] && i ? ut ( t . ctx . slice ( ) , n [ 1 ] ( i ( e ) ) ) : t . ctx } function An ( n , e , t , i ) { if ( n [ 2 ] && i ) { const o = n [ 2 ] ( i ( t ) ) ; if ( e . dirty === void 0 ) return o ; if ( typeof o == "object" ) { const r = [ ] , l = Math . max ( e . dirty . length , o . length ) ; for ( let s = 0 ; s < l ; s += 1 ) r [ s ] = e . dirty [ s ] | o [ s ] ; return r } return e . dirty | o } return e . dirty } function Dn ( n , e , t , i , o , r ) { if ( o ) { const l = Nb ( e , t , i , r ) ; n . p ( l , o ) } } function On ( n ) { if ( n . ctx . length > 32 ) { const e = [ ] , t = n . ctx . length / 32 ; for ( let i = 0 ; i < t ; i ++ ) e [ i ] = - 1 ; return e } return - 1 } function ui ( n ) { const e = { } ; for ( const t in n ) t [ 0 ] !== "$" && ( e [ t ] = n [ t ] ) ; return e } function Wt ( n , e ) { const t = { } ; e = new Set ( e ) ; for ( const i in n ) ! e . has ( i ) && i [ 0 ] !== "$" && ( t [ i ] = n [ i ] ) ; return t } function gc ( n ) { return n == null ? "" : n } function jb ( n , e , t ) { return n . set ( t ) , e } function Xe ( n ) { return n && Yn ( n . destroy ) ? n . destroy : le } const zb = typeof window != "undefined" ; let vs = zb ? ( ) => window . performance . now ( ) : ( ) => Date . now ( ) , gf = zb ? n => requestAnimationFrame ( n ) : le ; const Lo = new Set ; function Hb ( n ) { Lo . forEach ( e => { e . c ( n ) || ( Lo . delete ( e ) , e . f ( ) ) } ) , Lo . size !== 0 && gf ( Hb ) } function ys ( n ) { let e ; return Lo . size === 0 && gf ( Hb ) , { promise : new Promise ( t => { Lo . add ( e = { c : n , f : t } ) } ) , abort ( ) { Lo . delete ( e ) } } } function m ( n , e ) { n . appendChild ( e ) } function qb ( n ) { if ( ! n ) return document ; const e = n . getRootNode ? n . getRootNode ( ) : n . ownerDocument ; return e && e . host ? e : n . ownerDocument } function N1 ( n ) { const e = g ( "style" ) ; return j1 ( qb ( n ) , e ) , e . sheet } function j1 ( n , e ) { m ( n . head || n , e ) } function w ( n , e , t ) { n . insertBefore ( e , t || null ) } function k ( n ) { n . parentNode . removeChild ( n ) } function qn ( n , e ) { for ( let t = 0 ; t < n . length ; t += 1 ) n [ t ] && n [ t ] . d ( e ) } function g ( n ) { return document . createElement ( n ) } function j ( n ) { return document . createTextNode ( n ) } function $ ( ) { return j ( " " ) } function lt ( ) { return j ( "" ) } function X ( n , e , t , i ) { return n . addEventListener ( e , t , i ) , ( ) => n . removeEventListener ( e , t , i ) } function Gt ( n ) { return function ( e ) { return e . preventDefault ( ) , n . call ( this , e ) } } function Vn ( n ) { return function ( e ) { return e . stopPropagation ( ) , n . call ( this , e ) } } function Vb ( n ) { return function ( e ) { e . target === this && n . call ( this , e ) } } function p ( n , e , t ) { t == null ? n . removeAttribute ( e ) : n . getAttribute ( e ) !== t && n . setAttribute ( e , t ) } function ci ( n , e ) { const t = Object . getOwnPropertyDescriptors ( n . _ _proto _ _ ) ; for ( const i in e ) e [ i ] == null ? n . removeAttribute ( i ) : i === "style" ? n . style . cssText = e [ i ] : i === "__value" ? n . value = n [ i ] = e [ i ] : t [ i ] && t [ i ] . set ? n [ i ] = e [ i ] : p ( n , i , e [ i ] ) } function At ( n ) { return n === "" ? null : + n } function z1 ( n ) { return Array . from ( n . childNodes ) } function ge ( n , e ) { e = "" + e , n . wholeText !== e && ( n . data = e ) } function Me ( n , e ) { n . value = e == null ? "" : e } function _c ( n , e , t , i ) { t === null ? n . style . removeProperty ( e ) : n . style . setProperty ( e , t , i ? "important" : "" ) } function ne ( n , e , t ) { n . classList [ t ? "add" : "remove" ] ( e ) } function Bb ( n , e , { bubbles : t = ! 1 , cancelable : i = ! 1 } = { } ) { const o = document . createEvent ( "CustomEvent" ) ; ret
` ;for(let _=0;_<=1;_+=a){const y=e+(t-e)*r(_);f+=_*100+ ` % { $ { l ( y , 1 - y ) } }
` }const c=f+ ` 100 % { $ { l ( t , 1 - t ) } }
} ` ,u= ` _ _svelte _$ { H1 ( c ) } _$ { s } ` ,d=qb(n),{stylesheet:h,rules:b}=Kl.get(d)||q1(d,n);b[u]||(b[u]=!0,h.insertRule( ` @ keyframes $ { u } $ { c } ` ,h.cssRules.length));const v=n.style.animation||"";return n.style.animation= ` $ { v ? ` ${ v } , ` : "" } $ { u } $ { i } ms linear $ { o } ms 1 both ` ,Jl+=1,u}function Pr(n,e){const t=(n.style.animation||"").split(", "),i=t.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),o=t.length-i.length;o&&(n.style.animation=i.join(", "),Jl-=o,Jl||V1())}function V1(){gf(()=>{Jl||(Kl.forEach(n=>{const{stylesheet:e}=n;let t=e.cssRules.length;for(;t--;)e.deleteRule(t);n.rules={}}),Kl.clear())})}function B1(n,e,t,i){if(!e)return le;const o=n.getBoundingClientRect();if(e.left===o.left&&e.right===o.right&&e.top===o.top&&e.bottom===o.bottom)return le;const{delay:r=0,duration:l=300,easing:s=Vr,start:a=vs()+r,end:f=a+l,tick:c=le,css:u}=t(n,{from:e,to:o},i);let d=!0,h=!1,b;function v(){u&&(b=Er(n,0,1,l,r,s,u)),r||(h=!0)}function _(){u&&Pr(n,b),d=!1}return ys(y=>{if(!h&&y>=a&&(h=!0),h&&y>=f&&(c(1,0),_()),!d)return!1;if(h){const S=y-a,C=0+1*s(S/l);c(C,1-C)}return!0}),v(),c(0,1),_}function U1(n){const e=getComputedStyle(n);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:i}=e,o=n.getBoundingClientRect();n.style.position="absolute",n.style.width=t,n.style.height=i,Ub(n,o)}}function Ub(n,e){const t=n.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const i=getComputedStyle(n),o=i.transform==="none"?"":i.transform;n.style.transform= ` $ { o } translate ( $ { e . left - t . left } px , $ { e . top - t . top } px ) ` }}let Fr;function wr(n){Fr=n}function ks(){if(!Fr)throw new Error("Function called outside component initialization");return Fr}function di(n){ks(). $ $ .on_mount.push(n)}function W1(n){ks(). $ $ .after_update.push(n)}function Y1(n){ks(). $ $ .on_destroy.push(n)}function yn(){const n=ks();return(e,t,{cancelable:i=!1}={})=>{const o=n. $ $ .callbacks[e];if(o){const r=Bb(e,t,{cancelable:i});return o.slice().forEach(l=>{l.call(n,r)}),!r.defaultPrevented}return!0}}function ft(n,e){const t=n. $ $ .callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const br=[],he=[],Rl=[],Da=[],Wb=Promise.resolve();let Oa=!1;function Yb(){Oa||(Oa=!0,Wb.then(Gb))}function Bi(){return Yb(),Wb}function Dt(n){Rl.push(n)}function Re(n){Da.push(n)}const Is=new Set;let ll=0;function Gb(){const n=Fr;do{for(;ll<br.length;){const e=br[ll];ll++,wr(e),G1(e. $ $ )}for(wr(null),br.length=0,ll=0;he.length;)he.pop()();for(let e=0;e<Rl.length;e+=1){const t=Rl[e];Is.has(t)||(Is.add(t),t())}Rl.length=0}while(br.length);for(;Da.length;)Da.pop()();Oa=!1,Is.clear(),wr(n)}function G1(n){if(n.fragment!==null){n.update(),rt(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Dt)}}let tr;function _f(){return tr||(tr=Promise.resolve(),tr.then(()=>{tr=null})),tr}function fo(n,e,t){n.dispatchEvent(Bb( ` $ { e ? "intro" : "outro" } $ { t } ` ))}const Nl=new Set;let si;function Ae(){si={r:0,c:[],p:si}}function De(){si.r||rt(si.c),si=si.p}function T(n,e){n&&n.i&&(Nl.delete(n),n.i(e))}function F(n,e,t,i){if(n&&n.o){if(Nl.has(n))return;Nl.add(n),si.c.push(()=>{Nl.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}}const vf={duration:0};function yf(n,e,t){let i=e(n,t),o=!1,r,l,s=0;function a(){r&&Pr(n,r)}function f(){const{delay:u=0,duration:d=300,easing:h=Vr,tick:b=le,css:v}=i||vf;v&&(r=Er(n,0,1,d,u,h,v,s++)),b(0,1);const _=vs()+u,y=_+d;l&&l.abort(),o=!0,Dt(()=>fo(n,!0,"start")),l=ys(S=>{if(o){if(S>=y)return b(1,0),fo(n,!0,"end"),a(),o=!1;if(S>=_){const C=h((S-_)/d);b(C,1-C)}}return o})}let c=!1;return{start(){c||(c=!0,Pr(n),Yn(i)?(i=i(),_f().then(f)):f())},invalidate(){c=!1},end(){o&&(a(),o=!1)}}}function Kb(n,e,t){let i=e(n,t),o=!0,r;const l=si;l.r+=1;function s(){const{delay:a=0,duration:f=300,easing:c=Vr,tick:u=le,css:d}=i||vf;d&&(r=Er(n,1,0,f,a,c,d));const h=vs()+a,b=h+f;Dt(()=>fo(n,!1,"start")),ys(v=>{if(o){if(v>=b)return u(0,1),fo(n,!1,"end"),--l.r||rt(l.c),!1;if(v>=h){const _=c((v-h)/f);u(1-_,_)}}return o})}return Yn(i)?_f().then(()=>{i=i(),s()}):s(),{end(a){a&&i.tick&&i.tick(1,0),o&&(r&&Pr(n,r),o=!1)}}}function ct(n,e,t,i){let o=e(n,t),r=i?0:1,l=null,s=null,a
` ),function(r){if(i=r.indexOf(":"),e=js.trim(r.substr(0,i)).toLowerCase(),t=js.trim(r.substr(i+1)),e){if(o[e]&&m_.indexOf(e)>=0)return;o[e]=e==="set-cookie"?(o[e]?o[e]:[]).concat([t]):o[e]?o[e]+", "+t:t}}),o},w_=b_,zs=og,S_=function(n){return new Promise(function(e,t){var i=n.data,o=n.headers,r=n.responseType;fl.isFormData(i)&&delete o["Content-Type"];var l=new XMLHttpRequest;if(n.auth){var s=n.auth.username||"",a=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";o.Authorization="Basic "+btoa(s+":"+a)}var f=y_(n.baseURL,n.url);function c(){if(l){var d="getAllResponseHeaders"in l?k_(l.getAllResponseHeaders()):null,h={data:r&&r!=="text"&&r!=="json"?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:d,config:n,request:l};g_(e,t,h),l=null}}if(l.open(n.method.toUpperCase(),v_(f,n.params,n.paramsSerializer),!0),l.timeout=n.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&l.readyState===4&&(l.status!==0||l.responseURL&&l.responseURL.indexOf("file:")===0)&&setTimeout(c)},l.onabort=function(){l&&(t(zs("Request aborted",n,"ECONNABORTED",l)),l=null)},l.onerror=function(){t(zs("Network Error",n,null,l)),l=null},l.ontimeout=function(){var d="timeout of "+n.timeout+"ms exceeded";n.timeoutErrorMessage&&(d=n.timeoutErrorMessage),t(zs(d,n,n.transitional&&n.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},fl.isStandardBrowserEnv()){var u=(n.withCredentials||w_(f))&&n.xsrfCookieName?__.read(n.xsrfCookieName):void 0;u&&(o[n.xsrfHeaderName]=u)}"setRequestHeader"in l&&fl.forEach(o,function(d,h){i===void 0&&h.toLowerCase()==="content-type"?delete o[h]:l.setRequestHeader(h,d)}),fl.isUndefined(n.withCredentials)||(l.withCredentials=!!n.withCredentials),r&&r!=="json"&&(l.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&l.addEventListener("progress",n.onDownloadProgress),typeof n.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",n.onUploadProgress),n.cancelToken&&n.cancelToken.promise.then(function(d){l&&(l.abort(),t(d),l=null)}),i||(i=null),l.send(i)})},Qt=Pn,Dc=function(n,e){f_.forEach(n,function(t,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(n[e]=t,delete n[i])})},C_=ig,x_={"Content-Type":"application/x-www-form-urlencoded"};function Oc(n,e){!Qt.isUndefined(n)&&Qt.isUndefined(n["Content-Type"])&&(n["Content-Type"]=e)}var Tc,Hl={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:((typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(Tc=S_),Tc),transformRequest:[function(n,e){return Dc(e,"Accept"),Dc(e,"Content-Type"),Qt.isFormData(n)||Qt.isArrayBuffer(n)||Qt.isBuffer(n)||Qt.isStream(n)||Qt.isFile(n)||Qt.isBlob(n)?n:Qt.isArrayBufferView(n)?n.buffer:Qt.isURLSearchParams(n)?(Oc(e,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):Qt.isObject(n)||e&&e["Content-Type"]==="application/json"?(Oc(e,"application/json"),function(t,i,o){if(Qt.isString(t))try{return(i||JSON.parse)(t),Qt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(o||JSON.stringify)(t)}(n)):n}],transformResponse:[function(n){var e=this.transitional,t=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!t&&this.responseType==="json";if(o||i&&Qt.isString(n)&&n.length)try{return JSON.parse(n)}catch(r){if(o)throw r.name==="SyntaxError"?C_(r,this,"E_JSON_PARSE"):r}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(n){return n>=200&&n<300}};Hl.headers={common:{Accept:"application/json, text/plain, */*"}},Qt.forEach(["delete","get","head"],function(n){Hl.headers[n]={}}),Qt.forEach(["post","put","patch"],function(n){Hl.headers[n]=Qt.merge(x_)});var kf=Hl,M_=Pn, $ _=kf,rg=function(n){return!(!n||!n.__CANCEL__)},Ec=Pn,Hs=function(n,e,t){var i=this|| $ _;return M_.forEach(t,function(o){n=o.call(i,n,e)}),n},A_=rg,D_=kf;function qs(n){n.cancelToken&&n.cancelToken.throwIfRequested()}var on=Pn,lg=function(n,e){e=e||{};var t={},i=["url","method","data"],o=
` +e.prev+e.base;return t+ri.call(n,","+t)+ `
` +e.prev}function pl(n,e){var t=Ia(n),i=[];if(t){i.length=n.length;for(var o=0;o<n.length;o++)i[o]=Ei(n,o)?e(n[o],n):""}var r,l=typeof Js=="function"?Js(n):[];if(Vo){r={};for(var s=0;s<l.length;s++)r[" $ "+l[s]]=l[s]}for(var a in n)Ei(n,a)&&(t&&String(Number(a))===a&&a<n.length||Vo&&r[" $ "+a]instanceof Symbol||(bg.call(/[^ \w $ ]/,a)?i.push(e(a,n)+": "+e(n[a],n)):i.push(a+": "+e(n[a],n))));if(typeof Js=="function")for(var f=0;f<l.length;f++)gg.call(n,l[f])&&i.push("["+e(l[f])+"]: "+e(n[l[f]],n));return i}var kg,Af=Cf,Ko=function(n,e){var t=hg(n,!!e);return typeof t=="function"&&Q_(n,".prototype.")>-1?mg(t):t},dv=function n(e,t,i,o){var r=t||{};if(Ei(r,"quoteStyle")&&r.quoteStyle!=="single"&&r.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ei(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or ` null ` ');var l=!Ei(r,"customInspect")||r.customInspect;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \" customInspect \" , if provided, must be ` true ` , ` false ` , or ` 'symbol' ` ");if(Ei(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be " \\ t", an integer > 0, or ` null ` ');if(Ei(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be ` true ` or ` false ` ');var s=r.numericSeparator;if(e===void 0)return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return yg(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var a=String(e);return s?Wc(e,a):a}if(typeof e=="bigint"){var f=String(e)+"n";return s?Wc(e,f):f}var c=r.depth===void 0?5:r.depth;if(i===void 0&&(i=0),i>=c&&c>0&&typeof e=="object")return Ia(e)?"[Array]":"[Object]";var u=function(R,G){var U;if(R.indent===" ")U=" ";else{if(!(typeof R.indent=="number"&&R.indent>0))return null;U=ri.call(Array(R.indent+1)," ")}return{base:U,prev:ri.call(Array(G+1),U)}}(r,i);if(o===void 0)o=[];else if(Jc(o,e)>=0)return"[Circular]";function d(R,G,U){if(G&&(o=av.call(o)).push(G),U){var z={depth:r.depth};return Ei(r,"quoteStyle")&&(z.quoteStyle=r.quoteStyle),n(R,z,i+1,o)}return n(R,r,i+1,o)}if(typeof e=="function"&&!Kc(e)){var h=function(R){if(R.name)return R.name;var G=lv.call(rv.call(R),/^function \s *([ \w $ ]+)/);return G?G[1]:null}(e),b=pl(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(b.length>0?" { "+ri.call(b,", ")+" }":"")}if(vg(e)){var v=Vo?Ri.call(String(e),/^(Symbol \( .* \) )_[^)]* $ /," $ 1"):Fa.call(e);return typeof e!="object"||Vo?v:or(v)}if(function(R){return!R||typeof R!="object"?!1:typeof HTMLElement!="undefined"&&R instanceof HTMLElement?!0:typeof R.nodeName=="string"&&typeof R.getAttribute=="function"}(e)){for(var _="<"+qc.call(String(e.nodeName)),y=e.attributes||[],S=0;S<y.length;S++)_+=" "+y[S].name+"="+_g(fv(y[S].value),"double",r);return _+=">",e.childNodes&&e.childNodes.length&&(_+="..."),_+="</"+qc.call(String(e.nodeName))+">"}if(Ia(e)){if(e.length===0)return"[]";var C=pl(e,d);return u&&!function(R){for(var G=0;G<R.length;G++)if(Jc(R[G], `
` )>=0)return!1;return!0}(C)?"["+Ra(C,u)+"]":"[ "+ri.call(C,", ")+" ]"}if(function(R){return!(Pi(R)!=="[object Error]"||rn&&typeof R=="object"&&rn in R)}(e)){var x=pl(e,d);return"cause"in Error.prototype||!("cause"in e)||gg.call(e,"cause")?x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ri.call(x,", ")+" }":"{ ["+String(e)+"] "+ri.call(Vc.call("[cause]: "+d(e.cause),x),", ")+" }"}if(typeof e=="object"&&l){if(Gc&&typeof e[Gc]=="function"&&La)return La(e,{depth:c-i});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(function(R){if(!ul||!R||typeof R!="object")return!1;try{ul.call(R);try{dl.call(R)}catch{return!0}return R instanceof Map}catch{}return!1}(e)){var M=[];return tv.call(e,function(R,G){M.push(d(G,e,!0)+" => "+d(R,e))}),Zc("Map",ul.call(e),M,u)}if(function(R){if(!dl||!R||typeof R!="object")return!1;try{dl.call(R);try{ul.call(R)}catch{return!0}return R instanceof Set}catch{}return!1}(e)){var A=[];return nv.call(e,function(R){A.push(d(R,e))}),Zc("Set",dl.call(e),A,u)}if(function(R){if(!nr||!R||typeof R!="object")return!1;try{nr.call(R,nr);try{ir.call(R,ir)}catch{return!0}return R instanceof WeakMap}catch{}return!1}(e))return Zs("WeakMap");if(function(R){if(!ir||!R||typeof R!="object")return!1;try{ir.call(R,ir);try{nr.call(R,nr)}catch{return!0}return R instanceof WeakSet}catch{}return!1}(e))return Zs("WeakSet");if(function(R){if(!Hc||!R||typeof R!="object")return!1;try{return Hc.call(R),!0}catch{}return!1}(e))return Zs("WeakRef");if(function(R){return!(Pi(R)!=="[object Number]"||rn&&typeof R=="object"&&rn in R)}(e))return or(d(Number(e)));if(function(R){if(!R||typeof R!="object"||!Ks)return!1;try{return Ks.call(R),!0}catch{}return!1}(e))return or(d(Ks.call(e)));if(function(R){return!(Pi(R)!=="[object Boolean]"||rn&&typeof R=="object"&&rn in R)}(e))return or(iv.call(e));if(function(R){return!(Pi(R)!=="[object String]"||rn&&typeof R=="object"&&rn in R)}(e))return or(d(String(e)));if(!function(R){return!(Pi(R)!=="[object Date]"||rn&&typeof R=="object"&&rn in R)}(e)&&!Kc(e)){var O=pl(e,d),D=Uc?Uc(e)===Object.prototype:e instanceof Object||e.constructor===Object,E=e instanceof Object?"":"null prototype",P=!D&&rn&&Object(e)===e&&rn in e? $ f.call(Pi(e),8,-1):E?"Object":"",I=(D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"")+(P||E?"["+ri.call(Vc.call([],P||[],E||[]),": ")+"] ":"");return O.length===0?I+"{}":u?I+"{"+Ra(O,u)+"}":I+"{ "+ri.call(O,", ")+" }"}return String(e)},pv=Af("%TypeError%"),hl=Af("%WeakMap%",!0),ml=Af("%Map%",!0),hv=Ko("WeakMap.prototype.get",!0),mv=Ko("WeakMap.prototype.set",!0),bv=Ko("WeakMap.prototype.has",!0),gv=Ko("Map.prototype.get",!0),_v=Ko("Map.prototype.set",!0),vv=Ko("Map.prototype.has",!0),Xs=function(n,e){for(var t,i=n;(t=i.next)!==null;i=t)if(t.key===e)return i.next=t.next,t.next=n.next,n.next=t,t},yv=String.prototype.replace,kv=/%20/g,Xc="RFC3986",Df={default:Xc,formatters:{RFC1738:function(n){return yv.call(n,kv,"+")},RFC3986:function(n){return String(n)}},RFC1738:"RFC1738",RFC3986:Xc},wv=Df,Qs=Object.prototype.hasOwnProperty,Ji=Array.isArray,ii=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),Qc=function(n,e){for(var t=e&&e.plainObjects?Object.create(null):{},i=0;i<n.length;++i)n[i]!==void 0&&(t[i]=n[i]);return t},wg={arrayToObject:Qc,assign:function(n,e){return Object.keys(e).reduce(function(t,i){return t[i]=e[i],t},n)},combine:function(n,e){return[].concat(n,e)},compact:function(n){for(var e=[{obj:{o:n},prop:"o"}],t=[],i=0;i<e.length;++i)for(var o=e[i],r=o.obj[o.prop],l=Object.keys(r),s=0;s<l.length;++s){var a=l[s],f=r[a];typeof f=="object"&&f!==null&&t.indexOf(f)===-1&&(e.push({obj:r,prop:a}),t.push(f))}return function(c){for(;c.length>1;){var u=c.pop(),d=u.obj[u.prop];if(Ji(d)){for(var h=[],b=0;b<d.length;++b)d[b]!==void 0&&h.push(d[b]);u.obj[u.prop]=h}}}(e),n},decode:function(n,e,t){var i=n.replace(/ \+ /g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},encode:function(n,e,t,i,o){if(n.length===0)return n;v
transform : $ { f } translate ( $ { ( 1 - u ) * o } px , $ { ( 1 - u ) * r } px ) ;
opacity : $ { a - c * d } ` }}function fn(n,{delay:e=0,duration:t=400,easing:i=As}={}){const o=getComputedStyle(n),r=+o.opacity,l=parseFloat(o.height),s=parseFloat(o.paddingTop),a=parseFloat(o.paddingBottom),f=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),u=parseFloat(o.borderTopWidth),d=parseFloat(o.borderBottomWidth);return{delay:e,duration:t,easing:i,css:h=> ` overflow : hidden ; opacity : $ { Math . min ( h * 20 , 1 ) * r } ; height : $ { h * l } px ; padding - top : $ { h * s } px ; padding - bottom : $ { h * a } px ; margin - top : $ { h * f } px ; margin - bottom : $ { h * c } px ; border - top - width : $ { h * u } px ; border - bottom - width : $ { h * d } px ; ` }}function Bn(n,{delay:e=0,duration:t=400,easing:i=As,start:o=0,opacity:r=0}={}){const l=getComputedStyle(n),s=+l.opacity,a=l.transform==="none"?"":l.transform,f=1-o,c=s*(1-r);return{delay:e,duration:t,easing:i,css:(u,d)=> `
transform : $ { a } scale ( $ { 1 - f * d } ) ;
opacity : $ { s - c * d }
2022-07-08 18:15:01 +08:00
` }}function Y2(n){let e,t,i,o;return{c(){e=g("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(r,l){w(r,e,l),n[13](e),Me(e,n[7]),i||(o=X(e,"input",n[14]),i=!0)},p(r,l){l&3&&t!==(t=r[0]||r[1])&&p(e,"placeholder",t),l&128&&e.value!==r[7]&&Me(e,r[7])},i:le,o:le,d(r){r&&k(e),n[13](null),i=!1,o()}}}function G2(n){let e,t,i,o;function r(a){n[12](a)}var l=n[4];function s(a){let f={singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(f.value=a[7]),{props:f}}return l&&(e=new l(s(n)),he.push(()=>Fe(e,"value",r)),e. $ on("submit",n[10])),{c(){e&&V(e. $ $ .fragment),i=lt()},m(a,f){e&&H(e,a,f),w(a,i,f),o=!0},p(a,f){const c={};if(f&8&&(c.extraAutocompleteKeys=a[3]),f&4&&(c.baseCollection=a[2]),f&3&&(c.placeholder=a[0]||a[1]),!t&&f&128&&(t=!0,c.value=a[7],Re(()=>t=!1)),l!==(l=a[4])){if(e){Ae();const u=e;F(u. $ $ .fragment,1,0,()=>{q(u,1)}),De()}l?(e=new l(s(a)),he.push(()=>Fe(e,"value",r)),e. $ on("submit",a[10]),V(e. $ $ .fragment),T(e. $ $ .fragment,1),H(e,i.parentNode,i)):e=null}else l&&e. $ set(c)},i(a){o||(e&&T(e. $ $ .fragment,a),o=!0)},o(a){e&&F(e. $ $ .fragment,a),o=!1},d(a){a&&k(i),e&&q(e,a)}}}function Ou(n){let e,t,i,o,r,l,s=n[7]!==n[0]&&Tu();return{c(){s&&s.c(),e= $ (),t=g("button"),t.innerHTML='<span class="txt">Clear</span>',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,f){s&&s.m(a,f),w(a,e,f),w(a,t,f),o=!0,r||(l=X(t,"click",n[15]),r=!0)},p(a,f){a[7]!==a[0]?s?f&129&&T(s,1):(s=Tu(),s.c(),T(s,1),s.m(e.parentNode,e)):s&&(Ae(),F(s,1,1,()=>{s=null}),De())},i(a){o||(T(s),Dt(()=>{i||(i=ct(t,ti,{duration:150,x:5},!0)),i.run(1)}),o=!0)},o(a){F(s),i||(i=ct(t,ti,{duration:150,x:5},!1)),i.run(0),o=!1},d(a){s&&s.d(a),a&&k(e),a&&k(t),a&&i&&i.end(),r=!1,l()}}}function Tu(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Search</span>',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(o,r){w(o,e,r),i=!0},i(o){i||(Dt(()=>{t||(t=ct(e,ti,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(o){t||(t=ct(e,ti,{duration:150,x:5},!1)),t.run(0),i=!1},d(o){o&&k(e),o&&t&&t.end()}}}function K2(n){let e,t,i,o,r,l,s,a,f,c,u;const d=[G2,Y2],h=[];function b(_,y){return _[4]&&!_[5]?0:1}l=b(n),s=h[l]=d[l](n);let v=(n[0].length||n[7].length)&&Ou(n);return{c(){e=g("div"),t=g("form"),i=g("label"),o=g("i"),r= $ (),s.c(),a= $ (),v&&v.c(),p(o,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(_,y){w(_,e,y),m(e,t),m(t,i),m(i,o),m(t,r),h[l].m(t,null),m(t,a),v&&v.m(t,null),f=!0,c||(u=[X(t,"submit",Gt(n[10])),X(e,"click",Vn(n[11]))],c=!0)},p(_,[y]){let S=l;l=b(_),l===S?h[l].p(_,y):(Ae(),F(h[S],1,1,()=>{h[S]=null}),De(),s=h[l],s?s.p(_,y):(s=h[l]=d[l](_),s.c()),T(s,1),s.m(t,a)),_[0].length||_[7].length?v?(v.p(_,y),y&129&&T(v,1)):(v=Ou(_),v.c(),T(v,1),v.m(t,null)):v&&(Ae(),F(v,1,1,()=>{v=null}),De())},i(_){f||(T(s),T(v),f=!0)},o(_){F(s),F(v),f=!1},d(_){_&&k(e),h[l].d(),v&&v.d(),c=!1,rt(u)}}}function J2(n,e,t){const i=yn(),o="search_"+B.randomString(7);let{value:r=""}=e,{placeholder:l='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:s=new En}=e,{extraAutocompleteKeys:a=[]}=e,f,c=!1,u,d="";function h(M=!0){t(7,d=""),M&&(u==null||u.focus()),i("clear")}function b(){t(0,r=d),i("submit",r)}async function v(){f||c||(t(5,c=!0),t(4,f=(await _i(()=>import("./FilterAutocompleteInput.3cd8dab2.js"),[])).default),t(5,c=!1))}di(()=>{v()});function _(M){ft.call(this,n,M)}function y(M){d=M,t(7,d),t(0,r)}function S(M){he[M?"unshift":"push"](()=>{u=M,t(6,u)})}function C(){d=this.value,t(7,d),t(0,r)}const x=()=>{h(!1),b()};return n. $ $ set=M=>{"value"in M&&t(0,r=M.value),"placeholder"in M&&t(1,l=M.placeholder),"autocompleteCollection"in M&&t(2,s=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n. $ $ .update=()=>{n. $ $ .dirty&1&&typeof r=="string"&&t(7,d=r)},[r,l,s,a,f,c,u,d,o,h,b,_,y,S,C,x]}class Ds extends Ie{constructor(e){super(),Le(this,e,J2,K2,Ee,{value:0
2022-07-07 05:19:05 +08:00
< span class = "txt" > method < / s p a n > ` , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n o k ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " u r l " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " u r l " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n r k ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " r e f e r e r " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " u r l " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n l k ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " s t a t u s " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " n u m b e r " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n s k ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " c r e a t e d " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " d a t e " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n P u ( n ) { l e t e ; f u n c t i o n t ( r , l ) { r e t u r n r [ 6 ] ? f k : a k } l e t i = t ( n ) , o = i ( n ) ; r e t u r n { c ( ) { o . c ( ) , e = l t ( ) } , m ( r , l ) { o . m ( r , l ) , w ( r , e , l ) } , p ( r , l ) { i = = = ( i = t ( r ) ) & & o ? o . p ( r , l ) : ( o . d ( 1 ) , o = i ( r ) , o & & ( o . c ( ) , o . m ( e . p a r e n t N o d e , e ) ) ) } , d ( r ) { o . d ( r ) , r & & k ( e ) } } } f u n c t i o n a k ( n ) { v a r s ; l e t e , t , i , o , r , l = ( ( s = n [ 0 ] ) = = n u l l ? v o i d 0 : s . l e n g t h ) & & F u ( n ) ; r e t u r n { c ( ) { e = g ( " t r " ) , t = g ( " t d " ) , i = g ( " h 6 " ) , i . t e x t C o n t e n t = " N o l o g s f o u n d . " , o = $ ( ) , l & & l . c ( ) , r = $ ( ) , p ( t , " c o l s p a n " , " 9 9 " ) , p ( t , " c l a s s " , " t x t - c e n t e r t x t - h i n t p - x s " ) } , m ( a , f ) { w ( a , e , f ) , m ( e , t ) , m ( t , i ) , m ( t , o ) , l & & l . m ( t , n u l l ) , m ( e , r ) } , p ( a , f ) { v a r c ; ( c = a [ 0 ] ) ! = n u l l & & c . l e n g t h ? l ? l . p ( a , f ) : ( l = F u ( a ) , l . c ( ) , l . m ( t , n u l l ) ) : l & & ( l . d ( 1 ) , l = n u l l ) } , d ( a ) { a & & k ( e ) , l & & l . d ( ) } } } f u n c t i o n f k ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " t r " ) , e . i n n e r H T M L = ` < t d c o l s p a n = " 9 9 " c l a s s = " p - x s " > < s p a n c l a s s = " s k e l e t o n - l o a d e r " > < / s p a n > < / t d >
` },m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Fu(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Clear filters</span>',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(o,r){w(o,e,r),t||(i=X(e,"click",n[18]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function Lu(n){let e;return{c(){e=g("i"),p(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),p(e,"title","Error")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Iu(n,e){var oe,J, $ e;let t,i,o,r=((oe=e[21].method)==null?void 0:oe.toUpperCase())+"",l,s,a,f,c,u=e[21].url+"",d,h,b,v,_,y,S=(e[21].referer||"N/A")+"",C,x,M,A,O,D=e[21].status+"",E,P,I,R,G,U,z,K,Y,W,te=(((J=e[21].meta)==null?void 0:J.errorMessage)||(( $ e=e[21].meta)==null?void 0: $ e.errorData))&&Lu();R=new Ci({props:{date:e[21].created}});function ce(){return e[16](e[21])}function ve(...ee){return e[17](e[21],...ee)}return{key:n,first:null,c(){t=g("tr"),i=g("td"),o=g("span"),l=j(r),a= $ (),f=g("td"),c=g("span"),d=j(u),b= $ (),te&&te.c(),v= $ (),_=g("td"),y=g("span"),C=j(S),M= $ (),A=g("td"),O=g("span"),E=j(D),P= $ (),I=g("td"),V(R. $ $ .fragment),G= $ (),U=g("td"),U.innerHTML='<i class="ri-arrow-right-line"></i>',z= $ (),p(o,"class",s="label txt-uppercase "+e[9][e[21].method.toLowerCase()]),p(i,"class","col-type-text col-field-method min-width"),p(c,"class","txt txt-ellipsis"),p(c,"title",h=e[21].url),p(f,"class","col-type-text col-field-url"),p(y,"class","txt txt-ellipsis"),p(y,"title",x=e[21].referer),ne(y,"txt-hint",!e[21].referer),p(_,"class","col-type-text col-field-referer"),p(O,"class","label"),ne(O,"label-danger",e[21].status>=400),p(A,"class","col-type-number col-field-status"),p(I,"class","col-type-date col-field-created"),p(U,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(ee,_e){w(ee,t,_e),m(t,i),m(i,o),m(o,l),m(t,a),m(t,f),m(f,c),m(c,d),m(f,b),te&&te.m(f,null),m(t,v),m(t,_),m(_,y),m(y,C),m(t,M),m(t,A),m(A,O),m(O,E),m(t,P),m(t,I),H(R,I,null),m(t,G),m(t,U),m(t,z),K=!0,Y||(W=[X(t,"click",ce),X(t,"keydown",ve)],Y=!0)},p(ee,_e){var ie,ye,Ne;e=ee,(!K||_e&8)&&r!==(r=((ie=e[21].method)==null?void 0:ie.toUpperCase())+"")&&ge(l,r),(!K||_e&8&&s!==(s="label txt-uppercase "+e[9][e[21].method.toLowerCase()]))&&p(o,"class",s),(!K||_e&8)&&u!==(u=e[21].url+"")&&ge(d,u),(!K||_e&8&&h!==(h=e[21].url))&&p(c,"title",h),((ye=e[21].meta)==null?void 0:ye.errorMessage)||((Ne=e[21].meta)==null?void 0:Ne.errorData)?te||(te=Lu(),te.c(),te.m(f,null)):te&&(te.d(1),te=null),(!K||_e&8)&&S!==(S=(e[21].referer||"N/A")+"")&&ge(C,S),(!K||_e&8&&x!==(x=e[21].referer))&&p(y,"title",x),_e&8&&ne(y,"txt-hint",!e[21].referer),(!K||_e&8)&&D!==(D=e[21].status+"")&&ge(E,D),_e&8&&ne(O,"label-danger",e[21].status>=400);const fe={};_e&8&&(fe.date=e[21].created),R. $ set(fe)},i(ee){K||(T(R. $ $ .fragment,ee),K=!0)},o(ee){F(R. $ $ .fragment,ee),K=!1},d(ee){ee&&k(t),te&&te.d(),q(R),Y=!1,rt(W)}}}function Ru(n){let e,t,i=n[3].length+"",o,r,l;return{c(){e=g("small"),t=j("Showing "),o=j(i),r=j(" of "),l=j(n[4]),p(e,"class","block txt-hint txt-right m-t-sm")},m(s,a){w(s,e,a),m(e,t),m(e,o),m(e,r),m(e,l)},p(s,a){a&8&&i!==(i=s[3].length+"")&&ge(o,i),a&16&&ge(l,s[4])},d(s){s&&k(e)}}}function Nu(n){let e,t,i,o,r=n[4]-n[3].length+"",l,s,a,f;return{c(){e=g("div"),t=g("button"),i=g("span"),o=j("Load more ("),l=j(r),s=j(")"),p(i,"class","txt"),p(t,"type","button"),p(t,"class","btn btn-lg btn-secondary btn-expanded"),ne(t,"btn-loading",n[6]),ne(t,"btn-disabled",n[6]),p(e,"class","block txt-center m-t-xs")},m(c,u){w(c,e,u),m(e,t),m(t,i),m(i,o),m(i,l),m(i,s),a||(f=X(t,"click",n[19]),a=!0)},p(c,u){u&24&&r!==(r=c[4]-c[3].length+"")&&ge(l,r),u&64&&ne(t,"btn-loading",c[6]),u&64&&ne(t,"btn-disabled",c[6])},d(c){c&&k(e),a=!1,f()}}}function ck(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b,v,_,y,S,C,x,M,A,O=[],D=new Map,E,P,I,R;function G(ie){n[11](ie)}let U={disable:!0,class:"col-field-method",name:"method", $ $ slots:{default:[ik]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(U.sort=n[1]),r=new en({props:U}),he.push(()=>Fe(r,"sort",G));function z(ie){n[12](ie)}let K={disable:!0,class:"col-type-text col-field-url",name:"
* Chart . js v3 . 8.0
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
* / c o n s t T 0 = f u n c t i o n ( ) { r e t u r n t y p e o f w i n d o w = = " u n d e f i n e d " ? f u n c t i o n ( n ) { r e t u r n n ( ) } : w i n d o w . r e q u e s t A n i m a t i o n F r a m e } ( ) ; f u n c t i o n E 0 ( n , e , t ) { c o n s t i = t | | ( l = > A r r a y . p r o t o t y p e . s l i c e . c a l l ( l ) ) ; l e t o = ! 1 , r = [ ] ; r e t u r n f u n c t i o n ( . . . l ) { r = i ( l ) , o | | ( o = ! 0 , T 0 . c a l l ( w i n d o w , ( ) = > { o = ! 1 , n . a p p l y ( e , r ) } ) ) } } f u n c t i o n p k ( n , e ) { l e t t ; r e t u r n f u n c t i o n ( . . . i ) { r e t u r n e ? ( c l e a r T i m e o u t ( t ) , t = s e t T i m e o u t ( n , e , i ) ) : n . a p p l y ( t h i s , i ) , e } } c o n s t h k = n = > n = = = " s t a r t " ? " l e f t " : n = = = " e n d " ? " r i g h t " : " c e n t e r " , j u = ( n , e , t ) = > n = = = " s t a r t " ? e : n = = = " e n d " ? t : ( e + t ) / 2 ; f u n c t i o n m i ( ) { } c o n s t m k = f u n c t i o n ( ) { l e t n = 0 ; r e t u r n f u n c t i o n ( ) { r e t u r n n + + } } ( ) ; f u n c t i o n x t ( n ) { r e t u r n n = = = n u l l | | t y p e o f n = = " u n d e f i n e d " } f u n c t i o n E t ( n ) { i f ( A r r a y . i s A r r a y & & A r r a y . i s A r r a y ( n ) ) r e t u r n ! 0 ; c o n s t e = O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) ; r e t u r n e . s l i c e ( 0 , 7 ) = = = " [ o b j e c t " & & e . s l i c e ( - 6 ) = = = " A r r a y ] " } f u n c t i o n d t ( n ) { r e t u r n n ! = = n u l l & & O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) = = = " [ o b j e c t O b j e c t ] " } c o n s t H t = n = > ( t y p e o f n = = " n u m b e r " | | n i n s t a n c e o f N u m b e r ) & & i s F i n i t e ( + n ) ; f u n c t i o n R n ( n , e ) { r e t u r n H t ( n ) ? n : e } f u n c t i o n h t ( n , e ) { r e t u r n t y p e o f n = = " u n d e f i n e d " ? e : n } c o n s t b k = ( n , e ) = > t y p e o f n = = " s t r i n g " & & n . e n d s W i t h ( " % " ) ? p a r s e F l o a t ( n ) / 1 0 0 : n / e , P 0 = ( n , e ) = > t y p e o f n = = " s t r i n g " & & n . e n d s W i t h ( " % " ) ? p a r s e F l o a t ( n ) / 1 0 0 * e : + n ; f u n c t i o n R t ( n , e , t ) { i f ( n & & t y p e o f n . c a l l = = " f u n c t i o n " ) r e t u r n n . a p p l y ( t , e ) } f u n c t i o n C t ( n , e , t , i ) { l e t o , r , l ; i f ( E t ( n ) ) i f ( r = n . l e n g t h , i ) f o r ( o = r - 1 ; o > = 0 ; o - - ) e . c a l l ( t , n [ o ] , o ) ; e l s e f o r ( o = 0 ; o < r ; o + + ) e . c a l l ( t , n [ o ] , o ) ; e l s e i f ( d t ( n ) ) f o r ( l = O b j e c t . k e y s ( n ) , r = l . l e n g t h , o = 0 ; o < r ; o + + ) e . c a l l ( t , n [ l [ o ] ] , l [ o ] ) } f u n c t i o n l s ( n , e ) { l e t t , i , o , r ; i f ( ! n | | ! e | | n . l e n g t h ! = = e . l e n g t h ) r e t u r n ! 1 ; f o r ( t = 0 , i = n . l e n g t h ; t < i ; + + t ) i f ( o = n [ t ] , r = e [ t ] , o . d a t a s e t I n d e x ! = = r . d a t a s e t I n d e x | | o . i n d e x ! = = r . i n d e x ) r e t u r n ! 1 ; r e t u r n ! 0 } f u n c t i o n s s ( n ) { i f ( E t ( n ) ) r e t u r n n . m a p ( s s ) ; i f ( d t ( n ) ) { c o n s t e = O b j e c t . c r e a t e ( n u l l ) , t = O b j e c t . k e y s ( n ) , i = t . l e n g t h ; l e t o = 0 ; f o r ( ; o < i ; + + o ) e [ t [ o ] ] = s s ( n [ t [ o ] ] ) ; r e t u r n e } r e t u r n n } f u n c t i o n F 0 ( n ) { r e t u r n [ " _ _ p r o t o _ _ " , " p r o t o t y p e " , " c o n s t r u c t o r " ] . i n d e x O f ( n ) = = = - 1 } f u n c t i o n g k ( n , e , t , i ) { i f ( ! F 0 ( n ) ) r e t u r n ; c o n s t o = e [ n ] , r = t [ n ] ; d t ( o ) & & d t ( r ) ? L r ( o , r , i ) : e [ n ] = s s ( r ) } f u n c t i o n L r ( n , e , t ) { c o n s t i = E t ( e ) ? e : [ e ] , o = i . l e n g t h ; i f ( ! d t ( n ) ) r e t u r n n ; t = t | | { } ; c o n s t r = t . m e r g e r | | g k ; f o r ( l e t l = 0 ; l < o ; + + l ) { i f ( e = i [ l ] , ! d t ( e ) ) c o n t i n u e ; c o n s t s = O b j e c t . k e y s ( e ) ; f o r ( l e t a = 0 , f = s . l e n g t h ; a < f ; + + a ) r ( s [ a ] , n , e , t ) } r e t u r n n } f u n c t i o n M r ( n , e ) { r e t u r n L r ( n , e , { m e r g e r : _ k } ) } f u n c t i o n _ k ( n , e , t ) { i f ( ! F 0 ( n ) ) r e t u r n ; c o n s t i = e [ n ] , o = t [ n ] ; d t ( i ) & & d t ( o ) ? M r ( i , o ) : O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( e , n ) | | ( e [ n ] = s s ( o ) ) } c o n s t v k = " " , y k = " . " ; f u n c t i o n z u ( n , e ) { c o n s t t = n . i n d e x O f ( y k , e ) ; r e t u r n t = = = - 1 ? n . l e n g t h : t } f u n c t i o n q i ( n , e ) { i f ( e = = = v k ) r e t u r n n ; l e t t = 0 , i = z u ( e , t ) ; f o r ( ; n & & i > t ; ) n = n [ e . s l i c e ( t , i ) ] , t = i + 1 , i = z u ( e , t ) ; r e t u r n n } f u n c t i o n V f ( n ) { r e t u r n n . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + n . s l i c e ( 1 ) } c o n s t U n = n = > t y p e o f n ! = " u n d e f i n e d " , V i = n = > t y p e o f n = = " f u n c t i o n " , H u = ( n , e ) = > { i f ( n . s i z e ! = = e . s i z e ) r e t u r n ! 1 ; f o r ( c o n s t t o f n ) i f ( ! e . h a s ( t ) ) r e t u r n ! 1 ; r e t u r n ! 0 } ; f u n c t i o n k k ( n ) { r e t u r n n . t y p e = = = " m o u s e u p " | | n . t y p e = = = " c l i c k " | | n . t y p e = = = " c o n t e x t m e n u " } c o n s t j t = M a t h . P I , T t = 2 * j t , w k = T t + j t , a s = N u m b e r . P O S I T I V E _ I N F I N I T Y , S k = j t / 1 8 0 , N t = j t / 2 , f r = j t / 4 , q u = j t * 2 / 3 , z n = M a t h . l o g 1 0 , a i = M a t h . s i g n ; f u n c t i o n V u ( n ) { c o n s t e = M a t h . r o u n d ( n ) ; n = $ r ( n , e , n / 1 e 3 ) ? e : n ; c o n s t t = M a t h . p o w ( 1 0 , M a t h . f l o o r ( z n ( n ) ) ) , i = n / t ; r e t u r n ( i < = 1 ? 1 : i < = 2 ? 2 : i < = 5 ? 5 : 1 0 ) * t } f u n c t i o n C k ( n ) { c o n s t e = [ ] , t = M a t h . s q r t ( n ) ; l e t i ; f o r ( i = 1 ; i < t ; i + + ) n % i = = = 0 & & ( e . p u s h ( i ) , e . p u s h ( n / i ) ) ; r e t u r n t = = = ( t | 0 ) & & e . p u s h ( t ) , e . s o r t ( ( o , r ) = > o - r ) . p o p ( ) , e } f u n c t i o n I r ( n ) { r e t u r n ! i s N a N ( p a r s e F l o a t ( n ) ) & & i s F i n i t e ( n ) } f u n c t i o n $ r ( n , e , t ) { r e t u r n M a t h . a b s ( n - e ) < t } f u n c t i o n x k ( n , e ) { c o n s t t = M a t h . r o u n d ( n ) ; r e t u r n t - e < = n & & t + e > = n } f u n c t i o n L 0 ( n , e , t ) { l e t i , o , r ; f o r ( i = 0 , o = n . l e n g t h ; i < o ; i + + ) r = n [ i ] [ t ] , i s N a N ( r ) | | ( e . m i n = M a t h . m i n ( e . m i n , r ) , e . m a x = M a t h . m a x ( e . m a x , r ) ) } f u n c t i o n X n ( n ) { r e t u r n n * ( j t / 1 8 0 ) } f u n c t i o n B f ( n ) { r e t u r n n * ( 1 8 0 / j t ) } f u n c t i o n B u ( n ) { i f ( ! H t ( n ) ) r e t u r n ; l e t e = 1 , t = 0 ; f o r ( ; M a t h . r o u n d ( n * e ) / e ! = = n ; ) e * = 1 0 , t + + ; r e t u r n t } f u n c t i o n I 0 ( n , e ) { c o n s t t = e . x - n . x , i = e . y - n . y , o = M a t h . s q r t ( t * t + i * i ) ; l e t r = M a t h . a t a n 2 ( i , t ) ; r e t u r n r < - . 5 * j t & & ( r + = T t ) , { a n g l e : r , d i s t a n c e : o } } f u n c t i o n Q a ( n , e ) { r e t u r n M a t h . s q r t ( M a t h . p o w ( e . x - n . x , 2 ) + M a t h . p o w ( e . y - n . y , 2 ) ) } f u n c t i o n M k ( n , e ) { r e t u r n ( n - e + w k ) % T t - j t } f u n c t i o n C n ( n ) { r e t u r n ( n % T t + T t ) % T t } f u n c t i o n R r ( n , e , t , i ) { c o n s t o = C n ( n ) , r = C n ( e ) , l = C n ( t ) , s = C n ( r - o ) , a = C n ( l - o ) , f = C n ( o - r ) , c = C n ( o - l ) ; r e t u r n o = = = r | | o = = = l | | i & & r = = = l | | s
* @ kurkle / color v0 . 2.1
* https : //github.com/kurkle/color#readme
* ( c ) 2022 Jukka Kurkela
* Released under the MIT License
* / f u n c t i o n J r ( n ) { r e t u r n n + . 5 | 0 } c o n s t N i = ( n , e , t ) = > M a t h . m a x ( M a t h . m i n ( n , t ) , e ) ; f u n c t i o n y r ( n ) { r e t u r n N i ( J r ( n * 2 . 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n H i ( n ) { r e t u r n N i ( J r ( n * 2 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n y i ( n ) { r e t u r n N i ( J r ( n / 2 . 5 5 ) / 1 0 0 , 0 , 1 ) } f u n c t i o n Y u ( n ) { r e t u r n N i ( J r ( n * 1 0 0 ) , 0 , 1 0 0 ) } c o n s t I n = { 0 : 0 , 1 : 1 , 2 : 2 , 3 : 3 , 4 : 4 , 5 : 5 , 6 : 6 , 7 : 7 , 8 : 8 , 9 : 9 , A : 1 0 , B : 1 1 , C : 1 2 , D : 1 3 , E : 1 4 , F : 1 5 , a : 1 0 , b : 1 1 , c : 1 2 , d : 1 3 , e : 1 4 , f : 1 5 } , e f = [ . . . " 0 1 2 3 4 5 6 7 8 9 A B C D E F " ] , A k = n = > e f [ n & 1 5 ] , D k = n = > e f [ ( n & 2 4 0 ) > > 4 ] + e f [ n & 1 5 ] , w l = n = > ( n & 2 4 0 ) > > 4 = = = ( n & 1 5 ) , O k = n = > w l ( n . r ) & & w l ( n . g ) & & w l ( n . b ) & & w l ( n . a ) ; f u n c t i o n T k ( n ) { v a r e = n . l e n g t h , t ; r e t u r n n [ 0 ] = = = " # " & & ( e = = = 4 | | e = = = 5 ? t = { r : 2 5 5 & I n [ n [ 1 ] ] * 1 7 , g : 2 5 5 & I n [ n [ 2 ] ] * 1 7 , b : 2 5 5 & I n [ n [ 3 ] ] * 1 7 , a : e = = = 5 ? I n [ n [ 4 ] ] * 1 7 : 2 5 5 } : ( e = = = 7 | | e = = = 9 ) & & ( t = { r : I n [ n [ 1 ] ] < < 4 | I n [ n [ 2 ] ] , g : I n [ n [ 3 ] ] < < 4 | I n [ n [ 4 ] ] , b : I n [ n [ 5 ] ] < < 4 | I n [ n [ 6 ] ] , a : e = = = 9 ? I n [ n [ 7 ] ] < < 4 | I n [ n [ 8 ] ] : 2 5 5 } ) ) , t } c o n s t E k = ( n , e ) = > n < 2 5 5 ? e ( n ) : " " ; f u n c t i o n P k ( n ) { v a r e = O k ( n ) ? A k : D k ; r e t u r n n ? " # " + e ( n . r ) + e ( n . g ) + e ( n . b ) + E k ( n . a , e ) : v o i d 0 } c o n s t F k = / ^ ( h s l a ? | h w b | h s v ) \ ( \ s * ( [ - + . e \ d ] + ) ( ? : d e g ) ? [ \ s , ] + ( [ - + . e \ d ] + ) % [ \ s , ] + ( [ - + . e \ d ] + ) % ( ? : [ \ s , ] + ( [ - + . e \ d ] + ) ( % ) ? ) ? \ s * \ ) $ / ; f u n c t i o n R 0 ( n , e , t ) { c o n s t i = e * M a t h . m i n ( t , 1 - t ) , o = ( r , l = ( r + n / 3 0 ) % 1 2 ) = > t - i * M a t h . m a x ( M a t h . m i n ( l - 3 , 9 - l , 1 ) , - 1 ) ; r e t u r n [ o ( 0 ) , o ( 8 ) , o ( 4 ) ] } f u n c t i o n L k ( n , e , t ) { c o n s t i = ( o , r = ( o + n / 6 0 ) % 6 ) = > t - t * e * M a t h . m a x ( M a t h . m i n ( r , 4 - r , 1 ) , 0 ) ; r e t u r n [ i ( 5 ) , i ( 3 ) , i ( 1 ) ] } f u n c t i o n I k ( n , e , t ) { c o n s t i = R 0 ( n , 1 , . 5 ) ; l e t o ; f o r ( e + t > 1 & & ( o = 1 / ( e + t ) , e * = o , t * = o ) , o = 0 ; o < 3 ; o + + ) i [ o ] * = 1 - e - t , i [ o ] + = e ; r e t u r n i } f u n c t i o n R k ( n , e , t , i , o ) { r e t u r n n = = = o ? ( e - t ) / i + ( e < t ? 6 : 0 ) : e = = = o ? ( t - n ) / i + 2 : ( n - e ) / i + 4 } f u n c t i o n U f ( n ) { c o n s t t = n . r / 2 5 5 , i = n . g / 2 5 5 , o = n . b / 2 5 5 , r = M a t h . m a x ( t , i , o ) , l = M a t h . m i n ( t , i , o ) , s = ( r + l ) / 2 ; l e t a , f , c ; r e t u r n r ! = = l & & ( c = r - l , f = s > . 5 ? c / ( 2 - r - l ) : c / ( r + l ) , a = R k ( t , i , o , c , r ) , a = a * 6 0 + . 5 ) , [ a | 0 , f | | 0 , s ] } f u n c t i o n W f ( n , e , t , i ) { r e t u r n ( A r r a y . i s A r r a y ( e ) ? n ( e [ 0 ] , e [ 1 ] , e [ 2 ] ) : n ( e , t , i ) ) . m a p ( H i ) } f u n c t i o n Y f ( n , e , t ) { r e t u r n W f ( R 0 , n , e , t ) } f u n c t i o n N k ( n , e , t ) { r e t u r n W f ( I k , n , e , t ) } f u n c t i o n j k ( n , e , t ) { r e t u r n W f ( L k , n , e , t ) } f u n c t i o n N 0 ( n ) { r e t u r n ( n % 3 6 0 + 3 6 0 ) % 3 6 0 } f u n c t i o n z k ( n ) { c o n s t e = F k . e x e c ( n ) ; l e t t = 2 5 5 , i ; i f ( ! e ) r e t u r n ; e [ 5 ] ! = = i & & ( t = e [ 6 ] ? y r ( + e [ 5 ] ) : H i ( + e [ 5 ] ) ) ; c o n s t o = N 0 ( + e [ 2 ] ) , r = + e [ 3 ] / 1 0 0 , l = + e [ 4 ] / 1 0 0 ; r e t u r n e [ 1 ] = = = " h w b " ? i = N k ( o , r , l ) : e [ 1 ] = = = " h s v " ? i = j k ( o , r , l ) : i = Y f ( o , r , l ) , { r : i [ 0 ] , g : i [ 1 ] , b : i [ 2 ] , a : t } } f u n c t i o n H k ( n , e ) { v a r t = U f ( n ) ; t [ 0 ] = N 0 ( t [ 0 ] + e ) , t = Y f ( t ) , n . r = t [ 0 ] , n . g = t [ 1 ] , n . b = t [ 2 ] } f u n c t i o n q k ( n ) { i f ( ! n ) r e t u r n ; c o n s t e = U f ( n ) , t = e [ 0 ] , i = Y u ( e [ 1 ] ) , o = Y u ( e [ 2 ] ) ; r e t u r n n . a < 2 5 5 ? ` h s l a ( $ { t } , $ { i } % , $ { o } % , $ { y i ( n . a ) } ) ` : ` h s l ( $ { t } , $ { i } % , $ { o } % ) ` } c o n s t G u = { x : " d a r k " , Z : " l i g h t " , Y : " r e " , X : " b l u " , W : " g r " , V : " m e d i u m " , U : " s l a t e " , A : " e e " , T : " o l " , S : " o r " , B : " r a " , C : " l a t e g " , D : " i g h t s " , R : " i n " , Q : " t u r q u o i s " , E : " h i " , P : " r o " , O : " a l " , N : " l e " , M : " d e " , L : " y e l l o " , F : " e n " , K : " c h " , G : " a r k s " , H : " e a " , I : " i g h t g " , J : " w h " } , K u = { O i c e X e : " f 0 f 8 f f " , a n t i q u e w E t e : " f a e b d 7 " , a q u a : " f f f f " , a q u a m a r R e : " 7 f f f d 4 " , a z u Y : " f 0 f f f f " , b e i g e : " f 5 f 5 d c " , b i s q u e : " f f e 4 c 4 " , b l a c k : " 0 " , b l a n K e d O m o n d : " f f e b c d " , X e : " f f " , X e v i T e t : " 8 a 2 b e 2 " , b P w n : " a 5 2 a 2 a " , b u r l y w o o d : " d e b 8 8 7 " , c a M t X e : " 5 f 9 e a 0 " , K a r t Y u s e : " 7 f f f 0 0 " , K o c T a t e : " d 2 6 9 1 e " , c S O : " f f 7 f 5 0 " , c S n f l o w e r X e : " 6 4 9 5 e d " , c S n s i l k : " f f f 8 d c " , c r i m s o n : " d c 1 4 3 c " , c y a n : " f f f f " , x X e : " 8 b " , x c y a n : " 8 b 8 b " , x g T M n P d : " b 8 8 6 0 b " , x W a y : " a 9 a 9 a 9 " , x g Y F : " 6 4 0 0 " , x g Y y : " a 9 a 9 a 9 " , x k h a k i : " b d b 7 6 b " , x m a g F t a : " 8 b 0 0 8 b " , x T i v e g Y F : " 5 5 6 b 2 f " , x S a n g e : " f f 8 c 0 0 " , x S c E d : " 9 9 3 2 c c " , x Y d : " 8 b 0 0 0 0 " , x s O m o n : " e 9 9 6 7 a " , x s H g Y F : " 8 f b c 8 f " , x U X e : " 4 8 3 d 8 b " , x U W a y : " 2 f 4 f 4 f " , x U g Y y : " 2 f 4 f 4 f " , x Q e : " c e d 1 " , x v i T e t : " 9 4 0 0 d 3 " , d A p p R k : " f f 1 4 9 3 " , d A p s k y X e : " b f f f " , d i m W a y : " 6 9 6 9 6 9 " , d i m g Y y : " 6 9 6 9 6 9 " , d o d g e r X e : " 1 e 9 0 f f " , f i Y b r i c k : " b 2 2 2 2 2 " , f l S O w E t e : " f f f a f 0 " , f o Y s t W A n : " 2 2 8 b 2 2 " , f u K s i a : " f f 0 0 f f " , g a R s b S o : " d c d c d c " , g h o s t w E t e : " f 8 f 8 f f " , g T d : " f f d 7 0 0 " , g T M n P d : " d a a 5 2 0 " , W a y : " 8 0 8 0 8 0 " , g Y F : " 8 0 0 0 " , g Y F L w : " a d f f 2 f " , g Y y : " 8 0 8 0 8 0 " , h o n e y M w : " f 0 f f f 0 " , h o t p R k : " f f 6 9 b 4 " , R d i a n Y d : " c d 5 c 5 c " , R d i g o : " 4 b 0 0 8 2 " , i v S y : " f f f f f 0 " , k h a k i : " f 0 e 6 8 c " , l a v F M r : " e 6 e 6 f a " , l a v F M r X s h : " f f f 0 f 5 " , l a w n g Y F : " 7 c f c 0 0 " , N m o n c E f f o n : " f f f a c d " , Z X e : " a d d 8 e 6 " , Z c S O : " f 0 8 0 8 0 " , Z c y a n : " e 0 f f f f " , Z g T M n P d L w : " f a f a d 2 " , Z W a y : " d 3 d 3 d 3 " , Z g Y F : " 9 0 e e 9 0 " , Z g Y y : " d 3 d 3 d 3 " , Z p R k : " f f b 6 c 1 " , Z s O m o n : " f f a 0 7 a " , Z s H g Y F : " 2 0 b 2 a a " , Z s k y X e : " 8 7 c e f a " , Z U W a y : " 7 7 8 8 9 9 " , Z U g Y y : " 7 7 8 8 9 9 " , Z s t A l X e : " b 0 c 4 d e " , Z L w : " f f f f e 0 " , l i m e : " f f 0 0 " , l i m e g Y F : " 3 2 c d 3 2 " , l R F : " f a f 0 e 6 " , m a g F t a : " f f 0 0 f f " , m a P o n : " 8 0 0 0 0 0 " , V a q u a m a r R e : " 6 6 c d a a " , V X e : " c d " , V S c E d : " b a 5 5 d 3 " , V p u r p N : " 9 3 7 0 d b " , V s H g Y F : " 3 c b 3 7 1 " , V U X e : " 7 b 6 8 e e " , V s p r R g g Y F : " f a 9 a " , V Q e : " 4 8 d 1 c c " , V v i T e t Y d : " c 7 1 5 8 5 " , m i d n i g h t X e : " 1 9 1 9 7 0 " , m R t c Y a m : " f 5 f f f a " , m i s t y P s e : "
* Chart . js v3 . 8.0
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
* /class Yw{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,o){const r=t.listeners[o],l=t.duration;r.forEach(s=>s({chart:e,initial:t.initial,numSteps:l,currentStep:Math.min(i-t.start,l)}))}_refresh(){this._request||(this._running=!0,this._request=T0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;const r=i.items;let l=r.length-1,s=!1,a;for(;l>=0;--l)a=r[l],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(e),s=!0):(r[l]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,i,e,"progress")),r.length||(i.running=!1,this._notify(o,i,e,"complete"),i.initial=!1),t+=r.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);!t||(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var bi=new Yw;const ad="transparent",Gw={boolean(n,e,t){return t>.5?e:n},color(n,e,t){const i=Zu(n||ad),o=i.valid&&Zu(e||ad);return o&&o.valid?o.mix(i,t).hexString():e},number(n,e,t){return n+(e-n)*t}};class Kw{constructor(e,t,i,o){const r=t[i];o=xl([e.to,o,r,e.from]);const l=xl([e.from,r,o]);this._active=!0,this._fn=e.fn||Gw[e.type||typeof l],this._easing=Ar[e.easing]||Ar.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=l,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const o=this._target[this._prop],r=i-this._start,l=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(l,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=xl([e.to,t,o,e.from]),this._from=xl([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,o=this._prop,r=this._from,l=this._loop,s=this._to;let a;if(this._active=r!==s&&(l||t<i),!this._active){this._target[o]=s,this._notify(!0);return}if(t<0){this._target[o]=r;return}a=t/i % 2 , a = l && a > 1 ? 2 - a : a , a = this . _easing ( Math . min ( 1 , Math . max ( 0 , a ) ) ) , this . _target [ o ] = this . _fn ( r , s , a ) } wait ( ) { const e = this . _promises || ( this . _promises = [ ] ) ; return new Promise ( ( t , i ) => { e . push ( { res : t , rej : i } ) } ) } _notify ( e ) { const t = e ? "res" : "rej" , i = this . _promises || [ ] ; for ( let o = 0 ; o < i . length ; o ++ ) i [ o ] [ t ] ( ) } } const Jw = [ "x" , "y" , "borderWidth" , "radius" , "tension" ] , Zw = [ "color" , "borderColor" , "backgroundColor" ] ; mt . set ( "animation" , { delay : void 0 , duration : 1e3 , easing : "easeOutQuart" , fn : void 0 , from : void 0 , loop : void 0 , to : void 0 , type : void 0 } ) ; const Xw = Object . keys ( mt . animation ) ; mt . describe ( "animation" , { _fallback : ! 1 , _indexable : ! 1 , _scriptable : n => n !== "onProgress" && n !== "onComplete" && n !== "fn" } ) ; mt . set ( "animations" , { colors : { type : "color" , properties : Zw } , numbers : { type : "number" , properties : Jw } } ) ; mt . describe ( "animations" , { _fallback : "animation" } ) ; mt . set ( "transitions" , { active : { animation : { duration : 400 } } , resize : { animation : { duration : 0 } } , show : { animations : { colors : { from : "transparent" } , visible : { type : "boolean" , duration : 0 } } } , hide : { animations : { colors : { to : "transparent" } , visible : { type : "boolean" , easing : "linear" , fn : n => n | 0 } } } } ) ; class t1 { constructor ( e , t ) { this . _chart = e , this . _properties = new Map , this . configure ( t ) } configure ( e ) { if ( ! dt ( e ) ) return ; const t = this . _properties ; Object . getOwnPropertyNames ( e ) . forEach ( i => { const o = e [ i ] ; if ( ! dt ( o ) ) return ; const r = { } ; for ( co
` )>-1?n.split( `
` ):n}function b4(n,e){const{element:t,datasetIndex:i,index:o}=e,r=n.getDatasetMeta(i).controller,{label:l,value:s}=r.getLabelAndValue(o);return{chart:n,label:l,parsed:r.getParsed(o),raw:n.data.datasets[i].data[o],formattedValue:s,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:t}}function Nd(n,e){const t=n.chart.ctx,{body:i,footer:o,title:r}=n,{boxWidth:l,boxHeight:s}=e,a=Mn(e.bodyFont),f=Mn(e.titleFont),c=Mn(e.footerFont),u=r.length,d=o.length,h=i.length,b=Wn(e.padding);let v=b.height,_=0,y=i.reduce((x,M)=>x+M.before.length+M.lines.length+M.after.length,0);if(y+=n.beforeBody.length+n.afterBody.length,u&&(v+=u*f.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const x=e.displayColors?Math.max(s,a.lineHeight):a.lineHeight;v+=h*x+(y-h)*a.lineHeight+(y-1)*e.bodySpacing}d&&(v+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let S=0;const C=function(x){_=Math.max(_,t.measureText(x).width+S)};return t.save(),t.font=f.string,Ct(n.title,C),t.font=a.string,Ct(n.beforeBody.concat(n.afterBody),C),S=e.displayColors?l+2+e.boxPadding:0,Ct(i,x=>{Ct(x.before,C),Ct(x.lines,C),Ct(x.after,C)}),S=0,t.font=c.string,Ct(n.footer,C),t.restore(),_+=b.width,{width:_,height:v}}function g4(n,e){const{y:t,height:i}=e;return t<i/2?"top":t>n.height-i/2?"bottom":"center"}function _4(n,e,t,i){const{x:o,width:r}=i,l=t.caretSize+t.caretPadding;if(n==="left"&&o+r+l>e.width||n==="right"&&o-r-l<0)return!0}function v4(n,e,t,i){const{x:o,width:r}=t,{width:l,chartArea:{left:s,right:a}}=n;let f="center";return i==="center"?f=o<=(s+a)/2?"left":"right":o<=r/2?f="left":o>=l-r/2&&(f="right"),_4(f,n,e,t)&&(f="center"),f}function jd(n,e,t){const i=t.yAlign||e.yAlign||g4(n,t);return{xAlign:t.xAlign||e.xAlign||v4(n,e,t,i),yAlign:i}}function y4(n,e){let{x:t,width:i}=n;return e==="right"?t-=i:e==="center"&&(t-=i/2),t}function k4(n,e,t){let{y:i,height:o}=n;return e==="top"?i+=t:e==="bottom"?i-=o+t:i-=o/2,i}function zd(n,e,t,i){const{caretSize:o,caretPadding:r,cornerRadius:l}=n,{xAlign:s,yAlign:a}=t,f=o+r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:h}=jo(l);let b=y4(e,s);const v=k4(e,a,f);return a==="center"?s==="left"?b+=f:s==="right"&&(b-=f):s==="left"?b-=Math.max(c,d)+o:s==="right"&&(b+=Math.max(u,h)+o),{x:sn(b,0,i.width-e.width),y:sn(v,0,i.height-e.height)}}function El(n,e,t){const i=Wn(t.padding);return e==="center"?n.x+n.width/2:e==="right"?n.x+n.width-i.right:n.x+i.left}function Hd(n){return oi([],gi(n))}function w4(n,e,t){return Wi(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}function qd(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}class cf extends $ i{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this. $ animations=void 0,this. $ context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this. $ context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,i=this.options.setContext(this.getContext()),o=i.enabled&&t.options.animation&&i.animations,r=new t1(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this. $ context||(this. $ context=w4(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:i}=t,o=i.beforeTitle.apply(this,[e]),r=i.title.apply(this,[e]),l=i.afterTitle.apply(this,[e]);let s=[];return s=oi(s,gi(o)),s=oi(s,gi(r)),s=oi(s,gi(l)),s}getBeforeBody(e,t){return Hd(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:i}=t,o=[];return Ct(e,r=>{const l={before:[],lines:[],after:[]},s=qd(i,r);oi(l.before,gi(s.beforeLabel.call(this,r))
* chartjs - adapter - luxon v1 . 1.0
* https : //www.chartjs.org
* ( c ) 2021 chartjs - adapter - luxon Contributors
* Released under the MIT license
* / c o n s t V 4 = { d a t e t i m e : Q e . D A T E T I M E _ M E D _ W I T H _ S E C O N D S , m i l l i s e c o n d : " h : m m : s s . S S S a " , s e c o n d : Q e . T I M E _ W I T H _ S E C O N D S , m i n u t e : Q e . T I M E _ S I M P L E , h o u r : { h o u r : " n u m e r i c " } , d a y : { d a y : " n u m e r i c " , m o n t h : " s h o r t " } , w e e k : " D D " , m o n t h : { m o n t h : " s h o r t " , y e a r : " n u m e r i c " } , q u a r t e r : " ' Q ' q - y y y y " , y e a r : { y e a r : " n u m e r i c " } } ; r 1 . _ d a t e . o v e r r i d e ( { _ i d : " l u x o n " , _ c r e a t e : f u n c t i o n ( n ) { r e t u r n Q e . f r o m M i l l i s ( n , t h i s . o p t i o n s ) } , f o r m a t s : f u n c t i o n ( ) { r e t u r n V 4 } , p a r s e : f u n c t i o n ( n , e ) { c o n s t t = t h i s . o p t i o n s ; i f ( n = = = n u l l | | t y p e o f n = = " u n d e f i n e d " ) r e t u r n n u l l ; c o n s t i = t y p e o f n ; r e t u r n i = = = " n u m b e r " ? n = t h i s . _ c r e a t e ( n ) : i = = = " s t r i n g " ? t y p e o f e = = " s t r i n g " ? n = Q e . f r o m F o r m a t ( n , e , t ) : n = Q e . f r o m I S O ( n , t ) : n i n s t a n c e o f D a t e ? n = Q e . f r o m J S D a t e ( n , t ) : i = = = " o b j e c t " & & ! ( n i n s t a n c e o f Q e ) & & ( n = Q e . f r o m O b j e c t ( n ) ) , n . i s V a l i d ? n . v a l u e O f ( ) : n u l l } , f o r m a t : f u n c t i o n ( n , e ) { c o n s t t = t h i s . _ c r e a t e ( n ) ; r e t u r n t y p e o f e = = " s t r i n g " ? t . t o F o r m a t ( e , t h i s . o p t i o n s ) : t . t o L o c a l e S t r i n g ( e ) } , a d d : f u n c t i o n ( n , e , t ) { c o n s t i = { } ; r e t u r n i [ t ] = e , t h i s . _ c r e a t e ( n ) . p l u s ( i ) . v a l u e O f ( ) } , d i f f : f u n c t i o n ( n , e , t ) { r e t u r n t h i s . _ c r e a t e ( n ) . d i f f ( t h i s . _ c r e a t e ( e ) ) . a s ( t ) . v a l u e O f ( ) } , s t a r t O f : f u n c t i o n ( n , e , t ) { i f ( e = = = " i s o W e e k " ) { t = M a t h . t r u n c ( M a t h . m i n ( M a t h . m a x ( 0 , t ) , 6 ) ) ; c o n s t i = t h i s . _ c r e a t e ( n ) ; r e t u r n i . m i n u s ( { d a y s : ( i . w e e k d a y - t + 7 ) % 7 } ) . s t a r t O f ( " d a y " ) . v a l u e O f ( ) } r e t u r n e ? t h i s . _ c r e a t e ( n ) . s t a r t O f ( e ) . v a l u e O f ( ) : n } , e n d O f : f u n c t i o n ( n , e ) { r e t u r n t h i s . _ c r e a t e ( n ) . e n d O f ( e ) . v a l u e O f ( ) } } ) ; f u n c t i o n J d ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = g ( " d i v " ) , p ( e , " c l a s s " , " c h a r t - l o a d e r l o a d e r s v e l t e - v h 4 s l 8 " ) } , m ( o , r ) { w ( o , e , r ) , i = ! 0 } , i ( o ) { i | | ( D t ( ( ) = > { t | | ( t = c t ( e , B n , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , t . r u n ( 1 ) } ) , i = ! 0 ) } , o ( o ) { t | | ( t = c t ( e , B n , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) , i = ! 1 } , d ( o ) { o & & k ( e ) , o & & t & & t . e n d ( ) } } } f u n c t i o n B 4 ( n ) { l e t e , t , i = n [ 1 ] = = = 1 ? " l o g " : " l o g s " , o ; r e t u r n { c ( ) { e = j ( n [ 1 ] ) , t = $ ( ) , o = j ( i ) } , m ( r , l ) { w ( r , e , l ) , w ( r , t , l ) , w ( r , o , l ) } , p ( r , l ) { l & 2 & & g e ( e , r [ 1 ] ) , l & 2 & & i ! = = ( i = r [ 1 ] = = = 1 ? " l o g " : " l o g s " ) & & g e ( o , i ) } , d ( r ) { r & & k ( e ) , r & & k ( t ) , r & & k ( o ) } } } f u n c t i o n U 4 ( n ) { l e t e ; r e t u r n { c ( ) { e = j ( " L o a d i n g . . . " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n W 4 ( n ) { l e t e , t , i , o , r , l , s = n [ 2 ] & & J d ( ) ; f u n c t i o n a ( u , d ) { r e t u r n u [ 2 ] ? U 4 : B 4 } l e t f = a ( n ) , c = f ( n ) ; r e t u r n { c ( ) { e = g ( " d i v " ) , s & & s . c ( ) , t = $ ( ) , i = g ( " c a n v a s " ) , o = $ ( ) , r = g ( " d i v " ) , c . c ( ) , p ( i , " c l a s s " , " c h a r t - c a n v a s s v e l t e - v h 4 s l 8 " ) , _ c ( i , " h e i g h t " , " 2 5 0 p x " ) , _ c ( i , " w i d t h " , " 1 0 0 % " ) , p ( e , " c l a s s " , " c h a r t - w r a p p e r s v e l t e - v h 4 s l 8 " ) , n e ( e , " l o a d i n g " , n [ 2 ] ) , p ( r , " c l a s s " , " t x t - h i n t m - t - x s t x t - r i g h t " ) } , m ( u , d ) { w ( u , e , d ) , s & & s . m ( e , n u l l ) , m ( e , t ) , m ( e , i ) , n [ 8 ] ( i ) , w ( u , o , d ) , w ( u , r , d ) , c . m ( r , n u l l ) , l = ! 0 } , p ( u , [ d ] ) { u [ 2 ] ? s ? d & 4 & & T ( s , 1 ) : ( s = J d ( ) , s . c ( ) , T ( s , 1 ) , s . m ( e , t ) ) : s & & ( A e ( ) , F ( s , 1 , 1 , ( ) = > { s = n u l l } ) , D e ( ) ) , d & 4 & & n e ( e , " l o a d i n g " , u [ 2 ] ) , f = = = ( f = a ( u ) ) & & c ? c . p ( u , d ) : ( c . d ( 1 ) , c = f ( u ) , c & & ( c . c ( ) , c . m ( r , n u l l ) ) ) } , i ( u ) { l | | ( T ( s ) , l = ! 0 ) } , o ( u ) { F ( s ) , l = ! 1 } , d ( u ) { u & & k ( e ) , s & & s . d ( ) , n [ 8 ] ( n u l l ) , u & & k ( o ) , u & & k ( r ) , c . d ( ) } } } f u n c t i o n Y 4 ( n , e , t ) { l e t { f i l t e r : i = " " } = e , { p r e s e t s : o = " " } = e , r , l , s = [ ] , a = 0 , f = ! 1 ; a s y n c f u n c t i o n c ( ) { r e t u r n t ( 2 , f = ! 0 ) , S e . L o g s . g e t R e q u e s t s S t a t s ( { f i l t e r : [ o , i ] . f i l t e r ( B o o l e a n ) . j o i n ( " & & " ) } ) . t h e n ( h = > { u ( ) ; f o r ( l e t b o f h ) s . p u s h ( { x : B . g e t D a t e T i m e ( b . d a t e ) . t o L o c a l ( ) . t o J S D a t e ( ) , y : b . t o t a l } ) , t ( 1 , a + = b . t o t a l ) ; s . p u s h ( { x : n e w D a t e , y : v o i d 0 } ) } ) . c a t c h ( h = > { h ! = = n u l l & & ( u ( ) , c o n s o l e . w a r n ( h ) , S e . e r r o r R e s p o n s e H a n d l e r ( h , ! 1 ) ) } ) . f i n a l l y ( ( ) = > { t ( 2 , f = ! 1 ) } ) } f u n c t i o n u ( ) { t ( 1 , a = 0 ) , t ( 7 , s = [ ] ) } d i ( ( ) = > ( b s . r e g i s t e r ( Y i , E s , Q r , c c , t l , m 4 , S 4 ) , t ( 6 , l = n e w b s ( r , { t y p e : " l i n e " , d a t a : { d a t a s e t s : [ { l a b e l : " T o t a l r e q u e s t s " , d a t a : s , b o r d e r C o l o r : " # e f 4 5 6 5 " , p o i n t B a c k g r o u n d C o l o r : " # e f 4 5 6 5 " , b a c k g r o u n d C o l o r : " r g b ( 2 3 9 , 6 9 , 1 0 1 , 0 . 0 5 ) " , b o r d e r W i d t h : 2 , p o i n t B o r d e r W i d t h : 0 , f i l l : ! 0 } ] } , o p t i o n s : { a n i m a t i o n : ! 1 , i n t e r a c t i o n : { i n t e r s e c t : ! 1 , m o d e : " i n d e x " } , s c a l e s : { y : { b e g i n A t Z e r o : ! 0 , g r i d : { c o l o r : " # e d f 0 f 3 " , b o r d e r C o l o r : " # d e e 3 e 8 " } , t i c k s : { p r e c i s i o n : 0 , m a x T i c k s L i m i t : 6 , a u t o S k i p : ! 0 , c o l o r : " # 6 6 6 f 7 5 " } } , x : { t y p e : " t i m e " , t i m e : { u n i t : " h o u r " , t o o l t i p F o r m a t : " D D h a " } , g r i d : { b o r d e r C o l o r : " # d e e 3 e 8 " , c o l o r : h = > h . t i c k . m a j o r ? " # e d f 0 f 3 " : " " } , t i c k s : { m a x T i c k s L i m i t : 1 5 , a u t o S k i p : ! 0 , m a x R o t a t i o n : 0 , m a j o r : { e n a b l e d : ! 0 } , c o l o r : h = > h . t i c k . m a j o r ? " # 1 6 1 6 1 a " : " # 6 6 6 f 7 5 " } } } , p l u g i n s : { l e g e n d : { d i s p l a y : ! 1 } } } } ) ) , ( ) = > l = = n u l l ? v o i d 0 : l . d e s t r o y ( ) ) ) ; f u n c t i o n d ( h ) { h e [ h ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = h , t ( 0 , r ) } ) } r e t u r n n . $ $ s e t = h = > { " f i l t e r " i n h & & t ( 3 , i = h . f i l t e r ) , " p r e s e t s " i n h & & t ( 4 , o = h . p r e s e t s ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 2 4 & & ( t y p e o f i ! = " u n d e f i n e d " | | t y p e o f o ! = " u n d e f i n e d " ) & & c ( ) , n . $ $ . d i r t y & 1 9 2 & & t y p e o f s ! = " u n d e f i n e d " & & l & & ( t ( 6 , l . d a t a . d a t a s e t
* Prism : Lightweight , robust , elegant syntax highlighting
*
* @ license MIT < https : //opensource.org/licenses/MIT>
* @ author Lea Verou < https : //lea.verou.me>
* @ namespace
* @ public
* /var t=function(i){var o=/ ( ? : ^ | \ s ) lang ( ? : uage ) ? - ( [ \ w - ] + ) ( ? = \ s | $ ) / i , r = 0 , l = { } , s = { manual : i . Prism && i . Prism . manual , disableWorkerMessageHandler : i . Prism && i . Prism . disableWorkerMessageHandler , util : { encode : function S ( C ) { return C instanceof a ? new a ( C . type , S ( C . content ) , C . alias ) : Array . isArray ( C ) ? C . map ( S ) : C . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( /\u00a0/g , " " ) } , type : function ( S ) { return Object . prototype . toString . call ( S ) . slice ( 8 , - 1 ) } , objId : function ( S ) { return S . _ _id || Object . defineProperty ( S , "__id" , { value : ++ r } ) , S . _ _id } , clone : function S ( C , x ) { x = x || { } ; var M , A ; switch ( s . util . type ( C ) ) { case "Object" : if ( A = s . util . objId ( C ) , x [ A ] ) return x [ A ] ; M = { } , x [ A ] = M ; for ( var O in C ) C . hasOwnProperty ( O ) && ( M [ O ] = S ( C [ O ] , x ) ) ; return M ; case "Array" : return A = s . util . objId ( C ) , x [ A ] ? x [ A ] : ( M = [ ] , x [ A ] = M , C . forEach ( function ( D , E ) { M [ E ] = S ( D , x ) } ) , M ) ; default : return C } } , getLanguage : function ( S ) { for ( ; S ; ) { var C = o . exec ( S . className ) ; if ( C ) return C [ 1 ] . toLowerCase ( ) ; S = S . parentElement } return "none" } , setLanguage : function ( S , C ) { S . className = S . className . replace ( RegExp ( o , "gi" ) , "" ) , S . classList . add ( "language-" + C ) } , currentScript : function ( ) { if ( typeof document == "undefined" ) return null ; if ( "currentScript" in document && 1 < 2 ) return document . currentScript ; try { throw new Error } catch ( M ) { var S = ( /at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i . exec ( M . stack ) || [ ] ) [ 1 ] ; if ( S ) { var C = document . getElementsByTagName ( "script" ) ; for ( var x in C ) if ( C [ x ] . src == S ) return C [ x ] } return null } } , isActive : function ( S , C , x ) { for ( var M = "no-" + C ; S ; ) { var A = S . classList ; if ( A . contains ( C ) ) return ! 0 ; if ( A . contains ( M ) ) return ! 1 ; S = S . parentElement } return ! ! x } } , languages : { plain : l , plaintext : l , text : l , txt : l , extend : function ( S , C ) { var x = s . util . clone ( s . languages [ S ] ) ; for ( var M in C ) x [ M ] = C [ M ] ; return x } , insertBefore : function ( S , C , x , M ) { M = M || s . languages ; var A = M [ S ] , O = { } ; for ( var D in A ) if ( A . hasOwnProperty ( D ) ) { if ( D == C ) for ( var E in x ) x . hasOwnProperty ( E ) && ( O [ E ] = x [ E ] ) ; x . hasOwnProperty ( D ) || ( O [ D ] = A [ D ] ) } var P = M [ S ] ; return M [ S ] = O , s . languages . DFS ( s . languages , function ( I , R ) { R === P && I != S && ( this [ I ] = O ) } ) , O } , DFS : function S ( C , x , M , A ) { A = A || { } ; var O = s . util . objId ; for ( var D in C ) if ( C . hasOwnProperty ( D ) ) { x . call ( C , D , C [ D ] , M || D ) ; var E = C [ D ] , P = s . util . type ( E ) ; P === "Object" && ! A [ O ( E ) ] ? ( A [ O ( E ) ] = ! 0 , S ( E , x , null , A ) ) : P === "Array" && ! A [ O ( E ) ] && ( A [ O ( E ) ] = ! 0 , S ( E , x , D , A ) ) } } } , plugins : { } , highlightAll : function ( S , C ) { s . highlightAllUnder ( document , S , C ) } , highlightAllUnder : function ( S , C , x ) { var M = { callback : x , container : S , selector : 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' } ; s . hooks . run ( "before-highlightall" , M ) , M . elements = Array . prototype . slice . apply ( M . container . querySelectorAll ( M . selector ) ) , s . hooks . run ( "before-all-elements-highlight" , M ) ; for ( var A = 0 , O ; O = M . elements [ A ++ ] ; ) s . highlightElement ( O , C === ! 0 , M . callback ) } , highlightElement : function ( S , C , x ) { var M = s . util . getLanguage ( S ) , A = s . languages [ M ] ; s . util . setLanguage ( S , M ) ; var O = S . parentElement ; O && O . nodeName . toLowerCase ( ) === "pre" && s . util . setLanguage ( O , M ) ; var D = S . textContent , E = { element : S , language : M , grammar : A , code : D } ; function P ( R ) { E . highlightedCode = R , s . hooks . run ( "before-insert" , E ) , E . element . innerHTML = E . highlightedCode , s . hooks . run ( "after-highlight" , E ) , s . hooks . run ( "complete" , E ) , x && x . call ( E . element ) } if ( s . hooks . run ( "before-sanity-check" , E ) , O = E . element . parentElement , O && O . nodeName . toLowerCase ( ) === "pre" && ! O . hasAttribute ( "tabindex" ) && O . setAttribute ( "tabindex" , "0" ) , ! E . code ) { s . hooks . run ( "complete" , E ) , x && x . call ( E . element ) ; return } if ( s . hooks . run ( "before-highlight" , E ) , ! E . grammar ) { P ( s . util . encode ( E . code ) ) ; return } if ( C && i . Worker ) { var I = new Worker ( s . filename ) ; I . onmessage = function ( R ) { P ( R . data ) } , I . postMessage ( JSON . stringify ( { language : E . language , code : E . code , immediateClose : ! 0 } ) ) } else P ( s . highlight ( E . code , E . grammar , E . language ) ) } , highlight : function ( S , C , x ) { var M = { code : S , grammar : C , language : x } ; if ( s . hooks . run ( "before-tokenize" , M ) , ! M . grammar ) throw new Error ( 'The language "' + M . language + '" has no grammar.' ) ; return M . tokens = s . tokenize ( M . code , M . grammar ) , s . hooks . run ( "after-tokenize" , M ) , a . stringify ( s . util . encode ( M . tokens ) , M . language ) } , tokenize : function ( S , C ) { var x = C . rest ; if ( x ) { for ( var M in x ) C [ M ] = x [ M ] ; delete C . rest } var A = new u ; return d ( A , A . head , S ) , c ( S , A , C , A . head , 0 ) , b ( A ) } , hooks : { all : { } , add
` ),_.hasAttribute("data-start")||_.setAttribute("data-start",String(E+1))}y.textContent=A,t.highlightElement(y)},function(A){_.setAttribute(s,c),y.textContent=A})}}),t.plugins.fileHighlight={highlight:function(_){for(var y=(_||document).querySelectorAll(u),S=0,C;C=y[S++];)t.highlightElement(C)}};var b=!1;t.fileHighlight=function(){b||(console.warn("Prism.fileHighlight is deprecated. Use ` Prism . plugins . fileHighlight . highlight ` instead."),b=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(M1);var mr=M1.exports,K4={exports:{}};(function(n){(function(){if(typeof Prism=="undefined")return;var e=Object.assign||function(r,l){for(var s in l)l.hasOwnProperty(s)&&(r[s]=l[s]);return r};function t(r){this.defaults=e({},r)}function i(r){return r.replace(/-( \w )/g,function(l,s){return s.toUpperCase()})}function o(r){for(var l=0,s=0;s<r.length;++s)r.charCodeAt(s)==" ".charCodeAt(0)&&(l+=3);return r.length+l}t.prototype={setDefaults:function(r){this.defaults=e(this.defaults,r)},normalize:function(r,l){l=e(this.defaults,l);for(var s in l){var a=i(s);s!=="normalize"&&a!=="setDefaults"&&l[s]&&this[a]&&(r=this[a].call(this,r,l[s]))}return r},leftTrim:function(r){return r.replace(/^ \s +/,"")},rightTrim:function(r){return r.replace(/ \s + $ /,"")},tabsToSpaces:function(r,l){return l=l|0||4,r.replace(/ \t /g,new Array(++l).join(" "))},spacesToTabs:function(r,l){return l=l|0||4,r.replace(RegExp(" {"+l+"}","g")," ")},removeTrailing:function(r){return r.replace(/ \s *? $ /gm,"")},removeInitialLineFeed:function(r){return r.replace(/^(?: \r ? \n | \r )/,"")},removeIndent:function(r){var l=r.match(/^[^ \S \n \r ]*(?= \S )/gm);return!l||!l[0].length||(l.sort(function(s,a){return s.length-a.length}),!l[0].length)?r:r.replace(RegExp("^"+l[0],"gm"),"")},indent:function(r,l){return r.replace(/^[^ \S \n \r ]*(?= \S )/gm,new Array(++l).join(" ")+" $ &")},breakLines:function(r,l){l=l===!0?80:l|0||80;for(var s=r.split( `
` ),a=0;a<s.length;++a)if(!(o(s[a])<=l)){for(var f=s[a].split(/( \s +)/g),c=0,u=0;u<f.length;++u){var d=o(f[u]);c+=d,c>l&&(f[u]= `
` +f[u],c=d)}s[a]=f.join("")}return s.join( `
` )}},n.exports&&(n.exports=t),Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(r){var l=Prism.plugins.NormalizeWhitespace;if(!(r.settings&&r.settings["whitespace-normalization"]===!1)&&!!Prism.util.isActive(r.element,"whitespace-normalization",!0)){if((!r.element||!r.element.parentNode)&&r.code){r.code=l.normalize(r.code,r.settings);return}var s=r.element.parentNode;if(!(!r.code||!s||s.nodeName.toLowerCase()!=="pre")){for(var a=s.childNodes,f="",c="",u=!1,d=0;d<a.length;++d){var h=a[d];h==r.element?u=!0:h.nodeName==="#text"&&(u?c+=h.nodeValue:f+=h.nodeValue,s.removeChild(h),--d)}if(!r.element.children.length||!Prism.plugins.KeepMarkup)r.code=f+r.code+c,r.code=l.normalize(r.code,r.settings);else{var b=f+r.element.innerHTML+c;r.element.innerHTML=l.normalize(b,r.settings),r.code=r.element.textContent}}}})})()})(K4);function J4(n){let e,t;return{c(){e=g("div"),t=g("code"),p(t,"class","svelte-tv7jme"),p(e,"class","code-wrapper prism-light svelte-tv7jme")},m(i,o){w(i,e,o),m(e,t),t.innerHTML=n[0]},p(i,[o]){o&1&&(t.innerHTML=i[0])},i:le,o:le,d(i){i&&k(e)}}}function Z4(n,e,t){let{content:i=""}=e,{language:o="javascript"}=e,r="";function l(s){return s=typeof s=="string"?s:"",s=mr.plugins.NormalizeWhitespace.normalize(s,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),mr.highlight(s,mr.languages[o]||mr.languages.javascript,o)}return n. $ $ set=s=>{"content"in s&&t(1,i=s.content),"language"in s&&t(2,o=s.language)},n. $ $ .update=()=>{n. $ $ .dirty&2&&typeof mr!="undefined"&&i&&t(0,r=l(i))},[r,i,o]}class tn extends Ie{constructor(e){super(),Le(this,e,Z4,J4,Ee,{content:1,language:2})}}const X4=n=>({}),Xd=n=>({}),Q4=n=>({}),Qd=n=>({});function ep(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b,v,_,y,S,C=n[4]&&!n[2]&&tp(n);const x=n[18].header,M= $ n(x,n,n[17],Qd);let A=n[4]&&n[2]&&np(n);const O=n[18].default,D= $ n(O,n,n[17],null),E=n[18].footer,P= $ n(E,n,n[17],Xd);return{c(){e=g("div"),t=g("div"),o= $ (),r=g("div"),l=g("div"),C&&C.c(),s= $ (),M&&M.c(),a= $ (),A&&A.c(),f= $ (),c=g("div"),D&&D.c(),u= $ (),d=g("div"),P&&P.c(),p(t,"class","overlay"),p(l,"class","overlay-panel-section panel-header"),p(c,"class","overlay-panel-section panel-content"),p(d,"class","overlay-panel-section panel-footer"),p(r,"class",h="overlay-panel "+n[1]+" "+n[8]),ne(r,"popup",n[2]),p(e,"class","overlay-panel-container"),ne(e,"padded",n[2]),ne(e,"active",n[0])},m(I,R){w(I,e,R),m(e,t),m(e,o),m(e,r),m(r,l),C&&C.m(l,null),m(l,s),M&&M.m(l,null),m(l,a),A&&A.m(l,null),m(r,f),m(r,c),D&&D.m(c,null),n[20](c),m(r,u),m(r,d),P&&P.m(d,null),_=!0,y||(S=[X(t,"click",Gt(n[19])),X(c,"scroll",n[21])],y=!0)},p(I,R){n=I,n[4]&&!n[2]?C?C.p(n,R):(C=tp(n),C.c(),C.m(l,s)):C&&(C.d(1),C=null),M&&M.p&&(!_||R&131072)&&Dn(M,x,n,n[17],_?An(x,n[17],R,Q4):On(n[17]),Qd),n[4]&&n[2]?A?A.p(n,R):(A=np(n),A.c(),A.m(l,null)):A&&(A.d(1),A=null),D&&D.p&&(!_||R&131072)&&Dn(D,O,n,n[17],_?An(O,n[17],R,null):On(n[17]),null),P&&P.p&&(!_||R&131072)&&Dn(P,E,n,n[17],_?An(E,n[17],R,X4):On(n[17]),Xd),(!_||R&258&&h!==(h="overlay-panel "+n[1]+" "+n[8]))&&p(r,"class",h),R&262&&ne(r,"popup",n[2]),R&4&&ne(e,"padded",n[2]),R&1&&ne(e,"active",n[0])},i(I){_||(Dt(()=>{i||(i=ct(t,rs,{duration:Eo,opacity:0},!0)),i.run(1)}),T(M,I),T(D,I),T(P,I),Dt(()=>{v&&v.end(1),b=yf(r,ti,n[2]?{duration:Eo,y:-10}:{duration:Eo,x:50}),b.start()}),_=!0)},o(I){i||(i=ct(t,rs,{duration:Eo,opacity:0},!1)),i.run(0),F(M,I),F(D,I),F(P,I),b&&b.invalidate(),v=Kb(r,ti,n[2]?{duration:Eo,y:10}:{duration:Eo,x:50}),_=!1},d(I){I&&k(e),I&&i&&i.end(),C&&C.d(),M&&M.d(I),A&&A.d(),D&&D.d(I),n[20](null),P&&P.d(I),I&&v&&v.end(),y=!1,rt(S)}}}function tp(n){let e,t,i;return{c(){e=g("div"),e.innerHTML='<i class="ri-close-line"></i>',p(e,"class","overlay-close")},m(o,r){w(o,e,r),t||(i=X(e,"click",Gt(n[5])),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function np(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<i class="ri-close-line txt-lg"></i>',p(e,"type","button"),p(e,"class","btn btn-sm btn-circle btn-secondary btn-close m-l-auto")},m(o,r){w(o,e,r),t||(i=X(e,"click",Gt
This field is disabled if "Only domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!u||y&16&&r!==(r=_[4]))&&p(e,"for",r);const S={};y&16&&(S.id=_[4]),y&1&&(S.disabled=!B.isEmpty(_[0].onlyDomains)),!a&&y&1&&(a=!0,S.value=_[0].exceptDomains,Re(()=>a=!1)),s. $ set(S)},i(_){u||(T(s. $ $ .fragment,_),u=!0)},o(_){F(s. $ $ .fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function r5(n){let e,t,i,o,r,l,s,a,f,c,u,d,h;function b(_){n[3](_)}let v={id:n[4]+".options.onlyDomains",disabled:!B.isEmpty(n[0].exceptDomains)};return n[0].onlyDomains!==void 0&&(v.value=n[0].onlyDomains),s=new ko({props:v}),he.push(()=>Fe(s,"value",b)),{c(){e=g("label"),t=g("span"),t.textContent="Only domains",i= $ (),o=g("i"),l= $ (),V(s. $ $ .fragment),f= $ (),c=g("div"),c.textContent="Use comma as separator.",p(t,"class","txt"),p(o,"class","ri-information-line link-hint"),p(e,"for",r=n[4]+".options.onlyDomains"),p(c,"class","help-block")},m(_,y){w(_,e,y),m(e,t),m(e,i),m(e,o),w(_,l,y),H(s,_,y),w(_,f,y),w(_,c,y),u=!0,d||(h=Xe(St.call(null,o,{text: ` Domains that are ONLY allowed as value .
This field is disabled if "Except domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!u||y&16&&r!==(r=_[4]+".options.onlyDomains"))&&p(e,"for",r);const S={};y&16&&(S.id=_[4]+".options.onlyDomains"),y&1&&(S.disabled=!B.isEmpty(_[0].exceptDomains)),!a&&y&1&&(a=!0,S.value=_[0].onlyDomains,Re(()=>a=!1)),s. $ set(S)},i(_){u||(T(s. $ $ .fragment,_),u=!0)},o(_){F(s. $ $ .fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function l5(n){let e,t,i,o,r,l,s;return i=new je({props:{class:"form-field",name:"schema."+n[1]+".options.exceptDomains", $ $ slots:{default:[o5,({uniqueId:a})=>({4:a}),({uniqueId:a})=>a?16:0]}, $ $ scope:{ctx:n}}}),l=new je({props:{class:"form-field",name:"schema."+n[1]+".options.onlyDomains", $ $ slots:{default:[r5,({uniqueId:a})=>({4:a}),({uniqueId:a})=>a?16:0]}, $ $ scope:{ctx:n}}}),{c(){e=g("div"),t=g("div"),V(i. $ $ .fragment),o= $ (),r=g("div"),V(l. $ $ .fragment),p(t,"class","col-sm-6"),p(r,"class","col-sm-6"),p(e,"class","grid")},m(a,f){w(a,e,f),m(e,t),H(i,t,null),m(e,o),m(e,r),H(l,r,null),s=!0},p(a,[f]){const c={};f&2&&(c.name="schema."+a[1]+".options.exceptDomains"),f&49&&(c. $ $ scope={dirty:f,ctx:a}),i. $ set(c);const u={};f&2&&(u.name="schema."+a[1]+".options.onlyDomains"),f&49&&(u. $ $ scope={dirty:f,ctx:a}),l. $ set(u)},i(a){s||(T(i. $ $ .fragment,a),T(l. $ $ .fragment,a),s=!0)},o(a){F(i. $ $ .fragment,a),F(l. $ $ .fragment,a),s=!1},d(a){a&&k(e),q(i),q(l)}}}function s5(n,e,t){let{key:i=""}=e,{options:o={}}=e;function r(s){n. $ $ .not_equal(o.exceptDomains,s)&&(o.exceptDomains=s,t(0,o))}function l(s){n. $ $ .not_equal(o.onlyDomains,s)&&(o.onlyDomains=s,t(0,o))}return n. $ $ set=s=>{"key"in s&&t(1,i=s.key),"options"in s&&t(0,o=s.options)},[o,i,r,l]}class O1 extends Ie{constructor(e){super(),Le(this,e,s5,l5,Ee,{key:1,options:0})}}function a5(n){let e,t,i,o;function r(a){n[2](a)}function l(a){n[3](a)}let s={};return n[0]!==void 0&&(s.key=n[0]),n[1]!==void 0&&(s.options=n[1]),e=new O1({props:s}),he.push(()=>Fe(e,"key",r)),he.push(()=>Fe(e,"options",l)),{c(){V(e. $ $ .fragment)},m(a,f){H(e,a,f),o=!0},p(a,[f]){const c={};!t&&f&1&&(t=!0,c.key=a[0],Re(()=>t=!1)),!i&&f&2&&(i=!0,c.options=a[1],Re(()=>i=!1)),e. $ set(c)},i(a){o||(T(e. $ $ .fragment,a),o=!0)},o(a){F(e. $ $ .fragment,a),o=!1},d(a){q(e,a)}}}function f5(n,e,t){let{key:i=""}=e,{options:o={}}=e;function r(s){i=s,t(0,i)}function l(s){o=s,t(1,o)}return n. $ $ set=s=>{"key"in s&&t(0,i=s.key),"options"in s&&t(1,o=s.options)},[i,o,r,l]}class c5 extends Ie{constructor(e){super(),Le(this,e,f5,a5,Ee,{key:0,options:1})}}var Sa=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],zo={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console!="undefined"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.o
< span class = 'flatpickr-weekday' >
` +N.join("</span><span class='flatpickr-weekday'>")+ `
< / s p a n >
` }}function ce(){t.calendarContainer.classList.add("hasWeeks");var L=wt("div","flatpickr-weekwrapper");L.appendChild(wt("span","flatpickr-weekday",t.l10n.weekAbbreviation));var N=wt("div","flatpickr-weeks");return L.appendChild(N),{weekWrapper:L,weekNumbers:N}}function ve(L,N){N===void 0&&(N=!0);var Q=N?L:L-t.currentMonth;Q<0&&t._hidePrevMonthArrow===!0||Q>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=Q,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ot("onYearChange"),G()),R(),ot("onMonthChange"),Ze())}function oe(L,N){if(L===void 0&&(L=!0),N===void 0&&(N=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,N===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var Q= $ a(t.config),de=Q.hours,Te=Q.minutes,Ue=Q.seconds;h(de,Te,Ue)}t.redraw(),L&&ot("onChange")}function J(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),ot("onClose")}function $ e(){t.config!==void 0&&ot("onDestroy");for(var L=t._handlers.length;L--;)t._handlers[L].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var N=t.calendarContainer.parentNode;if(N.lastChild&&N.removeChild(N.lastChild),N.parentNode){for(;N.firstChild;)N.parentNode.insertBefore(N.firstChild,N);N.parentNode.removeChild(N)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(Q){try{delete t[Q]}catch{}})}function ee(L){return t.calendarContainer.contains(L)}function _e(L){if(t.isOpen&&!t.config.inline){var N=wn(L),Q=ee(N),de=N===t.input||N===t.altInput||t.element.contains(N)||L.path&&L.path.indexOf&&(~L.path.indexOf(t.input)||~L.path.indexOf(t.altInput)),Te=!de&&!Q&&!ee(L.relatedTarget),Ue=!t.config.ignoredFocusElements.some(function(tt){return tt.contains(N)});Te&&Ue&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&a(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function fe(L){if(!(!L||t.config.minDate&&L<t.config.minDate.getFullYear()||t.config.maxDate&&L>t.config.maxDate.getFullYear())){var N=L,Q=t.currentYear!==N;t.currentYear=N||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),Q&&(t.redraw(),ot("onYearChange"),G())}}function ie(L,N){var Q;N===void 0&&(N=!0);var de=t.parseDate(L,void 0,N);if(t.config.minDate&&de&&Sn(de,t.config.minDate,N!==void 0?N:!t.minDateHasTime)<0||t.config.maxDate&&de&&Sn(de,t.config.maxDate,N!==void 0?N:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(de===vo
` ),d=g("span"),h=g("span"),h.textContent="Choose presets",b= $ (),V(v. $ $ .fragment),p(t,"class","txt"),p(o,"class","ri-information-line link-hint"),p(e,"for",r=n[9]),p(h,"class","txt link-primary"),p(d,"class","inline-flex"),p(c,"class","help-block")},m(M,A){w(M,e,A),m(e,t),m(e,i),m(e,o),w(M,l,A),H(s,M,A),w(M,f,A),w(M,c,A),m(c,u),m(c,d),m(d,h),m(d,b),H(v,d,null),_=!0,y||(S=Xe(St.call(null,o,{text: ` Allow uploading files ONLY with the listed mime types .
Leave empty for no restriction . ` ,position:"top"})),y=!0)},p(M,A){(!_||A&512&&r!==(r=M[9]))&&p(e,"for",r);const O={};A&512&&(O.id=M[9]),!a&&A&1&&(a=!0,O.value=M[0].mimeTypes,Re(()=>a=!1)),s. $ set(O);const D={};A&1025&&(D. $ $ scope={dirty:A,ctx:M}),v. $ set(D)},i(M){_||(T(s. $ $ .fragment,M),T(v. $ $ .fragment,M),_=!0)},o(M){F(s. $ $ .fragment,M),F(v. $ $ .fragment,M),_=!1},d(M){M&&k(e),M&&k(l),q(s,M),M&&k(f),M&&k(c),q(v),y=!1,S()}}}function R5(n){let e,t,i,o,r,l,s,a,f,c,u,d,h;function b(_){n[8](_)}let v={id:n[9],placeholder:"eg. 50x50, 480x720"};return n[0].thumbs!==void 0&&(v.value=n[0].thumbs),s=new ko({props:v}),he.push(()=>Fe(s,"value",b)),{c(){e=g("label"),t=g("span"),t.textContent="Thumb sizes",i= $ (),o=g("i"),l= $ (),V(s. $ $ .fragment),f= $ (),c=g("div"),c.textContent="Use comma as separator.",p(t,"class","txt"),p(o,"class","ri-information-line link-hint"),p(e,"for",r=n[9]),p(c,"class","help-block")},m(_,y){w(_,e,y),m(e,t),m(e,i),m(e,o),w(_,l,y),H(s,_,y),w(_,f,y),w(_,c,y),u=!0,d||(h=Xe(St.call(null,o,{text:"List of thumb sizes for image files. The thumbs will be generated lazily on first access.",position:"top"})),d=!0)},p(_,y){(!u||y&512&&r!==(r=_[9]))&&p(e,"for",r);const S={};y&512&&(S.id=_[9]),!a&&y&1&&(a=!0,S.value=_[0].thumbs,Re(()=>a=!1)),s. $ set(S)},i(_){u||(T(s. $ $ .fragment,_),u=!0)},o(_){F(s. $ $ .fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function N5(n){let e,t,i,o,r,l,s,a,f,c,u,d,h;return i=new je({props:{class:"form-field required",name:"schema."+n[1]+".options.maxSize", $ $ slots:{default:[P5,({uniqueId:b})=>({9:b}),({uniqueId:b})=>b?512:0]}, $ $ scope:{ctx:n}}}),l=new je({props:{class:"form-field required",name:"schema."+n[1]+".options.maxSelect", $ $ slots:{default:[F5,({uniqueId:b})=>({9:b}),({uniqueId:b})=>b?512:0]}, $ $ scope:{ctx:n}}}),f=new je({props:{class:"form-field",name:"schema."+n[1]+".options.mimeTypes", $ $ slots:{default:[I5,({uniqueId:b})=>({9:b}),({uniqueId:b})=>b?512:0]}, $ $ scope:{ctx:n}}}),d=new je({props:{class:"form-field",name:"schema."+n[1]+".options.thumbs", $ $ slots:{default:[R5,({uniqueId:b})=>({9:b}),({uniqueId:b})=>b?512:0]}, $ $ scope:{ctx:n}}}),{c(){e=g("div"),t=g("div"),V(i. $ $ .fragment),o= $ (),r=g("div"),V(l. $ $ .fragment),s= $ (),a=g("div"),V(f. $ $ .fragment),c= $ (),u=g("div"),V(d. $ $ .fragment),p(t,"class","col-sm-6"),p(r,"class","col-sm-6"),p(a,"class","col-sm-12"),p(u,"class","col-sm-12"),p(e,"class","grid")},m(b,v){w(b,e,v),m(e,t),H(i,t,null),m(e,o),m(e,r),H(l,r,null),m(e,s),m(e,a),H(f,a,null),m(e,c),m(e,u),H(d,u,null),h=!0},p(b,[v]){const _={};v&2&&(_.name="schema."+b[1]+".options.maxSize"),v&1537&&(_. $ $ scope={dirty:v,ctx:b}),i. $ set(_);const y={};v&2&&(y.name="schema."+b[1]+".options.maxSelect"),v&1537&&(y. $ $ scope={dirty:v,ctx:b}),l. $ set(y);const S={};v&2&&(S.name="schema."+b[1]+".options.mimeTypes"),v&1537&&(S. $ $ scope={dirty:v,ctx:b}),f. $ set(S);const C={};v&2&&(C.name="schema."+b[1]+".options.thumbs"),v&1537&&(C. $ $ scope={dirty:v,ctx:b}),d. $ set(C)},i(b){h||(T(i. $ $ .fragment,b),T(l. $ $ .fragment,b),T(f. $ $ .fragment,b),T(d. $ $ .fragment,b),h=!0)},o(b){F(i. $ $ .fragment,b),F(l. $ $ .fragment,b),F(f. $ $ .fragment,b),F(d. $ $ .fragment,b),h=!1},d(b){b&&k(e),q(i),q(l),q(f),q(d)}}}function j5(n,e,t){let{key:i=""}=e,{options:o={}}=e;function r(){o.maxSize=At(this.value),t(0,o)}function l(){o.maxSelect=At(this.value),t(0,o)}function s(d){n. $ $ .not_equal(o.mimeTypes,d)&&(o.mimeTypes=d,t(0,o))}const a=()=>{t(0,o.mimeTypes=["image/jpg","image/jpeg","image/png","image/svg+xml","image/gif"],o)},f=()=>{t(0,o.mimeTypes=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],o)},c=()=>{t(0,o.mimeTypes=["application/zip","application/x-7z-compressed","application/x-rar-compressed"],o)};function u(d){n. $ $ .not_equal(o.thumbs,d)&&(o.thumbs=d,t(0,o))}return n. $ $ set=d=>{"key"in d&&t(1,i=d.key),"options"in d&&t(0,o=d.options)},n. $ $ .update=()=>{n. $ $ .dirty&1&&B.isEmpty(o)&&t(0,o={maxSelect:1,maxSize:5242880,thumbs:[],mimeTypes:[]})},[o,i,r,l,s,a,f,c,u]}class z5 extends Ie{constructor
< code > @ request . query . * < / c o d e >
< code > @ request . data . * < / c o d e >
< code > @ request . user . * < / c o d e > ` , C = $ ( ) , x = g ( " h r " ) , M = $ ( ) , A = g ( " p " ) , A . i n n e r H T M L = " Y o u c o u l d a l s o a d d c o n s t r a i n t s a n d q u e r y o t h e r c o l l e c t i o n s u s i n g t h e < e m > @ c o l l e c t i o n < / e m > f i l t e r : " , O = $ ( ) , D = g ( " d i v " ) , D . i n n e r H T M L = " < c o d e > @ c o l l e c t i o n . A N Y _ C O L L E C T I O N _ N A M E . * < / c o d e > " , E = $ ( ) , P = g ( " h r " ) , I = $ ( ) , R = g ( " p " ) , R . i n n e r H T M L = ` E x a m p l e r u l e :
< br / >
< code > @ request . user . id != null & amp ; & amp ; created & gt ; & quot ; 2022 - 01 - 01 00 : 00 : 00 & quot ; < / c o d e > ` , p ( o , " c l a s s " , " m - b - 0 " ) , p ( l , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( b , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , p ( _ , " c l a s s " , " m - b - 0 " ) , p ( S , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( x , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , p ( A , " c l a s s " , " m - b - 0 " ) , p ( D , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( P , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , p ( i , " c l a s s " , " c o n t e n t " ) , p ( t , " c l a s s " , " a l e r t a l e r t - w a r n i n g m - 0 " ) } , m ( Y , W ) { w ( Y , e , W ) , m ( e , t ) , m ( t , i ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , m ( l , a ) , m ( l , f ) , m ( l , c ) , m ( l , u ) , m ( l , d ) ; f o r ( l e t t e = 0 ; t e < K . l e n g t h ; t e + = 1 ) K [ t e ] . m ( l , n u l l ) ; m ( i , h ) , m ( i , b ) , m ( i , v ) , m ( i , _ ) , m ( i , y ) , m ( i , S ) , m ( i , C ) , m ( i , x ) , m ( i , M ) , m ( i , A ) , m ( i , O ) , m ( i , D ) , m ( i , E ) , m ( i , P ) , m ( i , I ) , m ( i , R ) , U = ! 0 } , p ( Y , W ) { i f ( W & 1 ) { z = Y [ 0 ] . s c h e m a ; l e t t e ; f o r ( t e = 0 ; t e < z . l e n g t h ; t e + = 1 ) { c o n s t c e = B p ( Y , z , t e ) ; K [ t e ] ? K [ t e ] . p ( c e , W ) : ( K [ t e ] = W p ( c e ) , K [ t e ] . c ( ) , K [ t e ] . m ( l , n u l l ) ) } f o r ( ; t e < K . l e n g t h ; t e + = 1 ) K [ t e ] . d ( 1 ) ; K . l e n g t h = z . l e n g t h } } , i ( Y ) { U | | ( Y & & D t ( ( ) = > { G | | ( G = c t ( e , f n , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , G . r u n ( 1 ) } ) , U = ! 0 ) } , o ( Y ) { Y & & ( G | | ( G = c t ( e , f n , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , G . r u n ( 0 ) ) , U = ! 1 } , d ( Y ) { Y & & k ( e ) , q n ( K , Y ) , Y & & G & & G . e n d ( ) } } } f u n c t i o n k x ( n ) { l e t e , t = n [ 1 9 ] . n a m e + " " , i ; r e t u r n { c ( ) { e = g ( " c o d e " ) , i = j ( t ) } , m ( o , r ) { w ( o , e , r ) , m ( e , i ) } , p ( o , r ) { r & 1 & & t ! = = ( t = o [ 1 9 ] . n a m e + " " ) & & g e ( i , t ) } , d ( o ) { o & & k ( e ) } } } f u n c t i o n w x ( n ) { l e t e , t = n [ 1 9 ] . n a m e + " " , i , o ; r e t u r n { c ( ) { e = g ( " c o d e " ) , i = j ( t ) , o = j ( " . * " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , i ) , m ( e , o ) } , p ( r , l ) { l & 1 & & t ! = = ( t = r [ 1 9 ] . n a m e + " " ) & & g e ( i , t ) } , d ( r ) { r & & k ( e ) } } } f u n c t i o n W p ( n ) { l e t e ; f u n c t i o n t ( r , l ) { r e t u r n r [ 1 9 ] . t y p e = = = " r e l a t i o n " | | r [ 1 9 ] . t y p e = = = " u s e r " ? w x : k x } l e t i = t ( n ) , o = i ( n ) ; r e t u r n { c ( ) { o . c ( ) , e = l t ( ) } , m ( r , l ) { o . m ( r , l ) , w ( r , e , l ) } , p ( r , l ) { i = = = ( i = t ( r ) ) & & o ? o . p ( r , l ) : ( o . d ( 1 ) , o = i ( r ) , o & & ( o . c ( ) , o . m ( e . p a r e n t N o d e , e ) ) ) } , d ( r ) { o . d ( r ) , r & & k ( e ) } } } f u n c t i o n S x ( n ) { l e t e = [ ] , t = n e w M a p , i , o , r = O b j e c t . e n t r i e s ( n [ 6 ] ) ; c o n s t l = s = > s [ 1 4 ] ; f o r ( l e t s = 0 ; s < r . l e n g t h ; s + = 1 ) { l e t a = V p ( n , r , s ) , f = l ( a ) ; t . s e t ( f , e [ s ] = Y p ( f , a ) ) } r e t u r n { c ( ) { f o r ( l e t s = 0 ; s < e . l e n g t h ; s + = 1 ) e [ s ] . c ( ) ; i = l t ( ) } , m ( s , a ) { f o r ( l e t f = 0 ; f < e . l e n g t h ; f + = 1 ) e [ f ] . m ( s , a ) ; w ( s , i , a ) , o = ! 0 } , p ( s , a ) { a & 2 6 2 2 3 5 & & ( r = O b j e c t . e n t r i e s ( s [ 6 ] ) , A e ( ) , e = s t ( e , a , l , 1 , s , r , t , i . p a r e n t N o d e , P t , Y p , i , V p ) , D e ( ) ) } , i ( s ) { i f ( ! o ) { f o r ( l e t a = 0 ; a < r . l e n g t h ; a + = 1 ) T ( e [ a ] ) ; o = ! 0 } } , o ( s ) { f o r ( l e t a = 0 ; a < e . l e n g t h ; a + = 1 ) F ( e [ a ] ) ; o = ! 1 } , d ( s ) { f o r ( l e t a = 0 ; a < e . l e n g t h ; a + = 1 ) e [ a ] . d ( s ) ; s & & k ( i ) } } } f u n c t i o n C x ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , e . i n n e r H T M L = ' < s p a n c l a s s = " l o a d e r " > < / s p a n > ' , p ( e , " c l a s s " , " t x t - c e n t e r " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , i : l e , o : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n x x ( n ) { l e t e , t , i ; f u n c t i o n o ( ) { r e t u r n n [ 9 ] ( n [ 1 4 ] ) } r e t u r n { c ( ) { e = g ( " b u t t o n " ) , e . i n n e r H T M L = ' < i c l a s s = " r i - l o c k - l i n e " > < / i > ' , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " r u l e - t o g g l e - b t n b t n b t n - c i r c l e b t n - o u t l i n e s v e l t e - f j x z 7 k " ) } , m ( r , l ) { w ( r , e , l ) , t | | ( i = [ X e ( S t . c a l l ( n u l l , e , " L o c k a n d s e t t o A d m i n s o n l y " ) ) , X ( e , " c l i c k " , o ) ] , t = ! 0 ) } , p ( r , l ) { n = r } , d ( r ) { r & & k ( e ) , t = ! 1 , r t ( i ) } } } f u n c t i o n M x ( n ) { l e t e , t , i ; f u n c t i o n o ( ) { r e t u r n n [ 8 ] ( n [ 1 4 ] ) } r e t u r n { c ( ) { e = g ( " b u t t o n " ) , e . i n n e r H T M L = ' < i c l a s s = " r i - l o c k - u n l o c k - l i n e " > < / i > ' , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " r u l e - t o g g l e - b t n b t n b t n - c i r c l e b t n - o u t l i n e b t n - s u c c e s s s v e l t e - f j x z 7 k " ) } , m ( r , l ) { w ( r , e , l ) , t | | ( i = [ X e ( S t . c a l l ( n u l l , e , " U n l o c k a n d s e t c u s t o m r u l e " ) ) , X ( e , " c l i c k " , o ) ] , t = ! 0 ) } , p ( r , l ) { n = r } , d ( r ) { r & & k ( e ) , t = ! 1 , r t ( i ) } } } f u n c t i o n $ x ( n ) { l e t e ; r e t u r n { c ( ) { e = j ( " L e a v e e m p t y t o g r a n t e v e r y o n e a c c e s s " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n A x ( n ) { l e t e ; r e t u r n { c ( ) { e = j ( " O n l y a d m i n s w i l l b e a b l e t o a c c e s s ( u n l o c k t o c h a n g e ) " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n D x ( n ) { l e t e , t = n [ 1 5 ] + " " , i , o , r = I i ( n [ 0 ] [ n [ 1 4 ] ] ) ? " A d m i n s o n l y " : " C u s t o m r u l e " , l , s , a , f , c = n [ 1 4 ] , u , d , h , b , v , _ , y ; f u n c t i o n S ( ) { r e t u r n n [ 1 0 ] ( n [ 1 4 ] ) } c o n s t C = ( ) = > n [ 1 1 ] ( f , c ) , x = ( ) = > n [ 1 1 ] ( n u l l , c ) ; f u n c t i o n M ( I ) { n [ 1 2 ] ( I , n [ 1 4 ] ) } v a r A = n [ 4 ] ; f u n c t i o n O ( I ) { l e t R = { b a s e C o l l e c t i o n : I [ 0 ] , d i s a b l e d : I i ( I [ 0 ] [ I [ 1 4 ] ] ) } ; r e t u r n I [ 0 ] [ I [ 1 4 ] ] ! = = v o i d 0 & & ( R . v a l u e = I [ 0 ] [ I [ 1 4 ] ] ) , { p r o p s : R } } A & & ( f = n e w A ( O ( n ) ) , C ( ) , h e . p u s h ( ( ) = > F e ( f , " v a l u e " , M ) ) ) ; f u n c t i o n D ( I , R ) { r e t u r n R & 1 & & ( b = n u l l ) , b = = n u l l & & ( b = ! ! I i ( I [ 0 ] [ I [ 1 4 ] ] ) ) , b ? A x : $ x } l e t E = D ( n , - 1 ) , P = E ( n ) ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , i = j ( t ) , o = j ( " - " ) , l = j ( r ) , a = $ ( ) , f & & V ( f . $ $ . f r a g m e n t ) , d = $ ( ) , h = g ( " d i v " ) , P . c ( ) , p ( e , " f o r " , s = n [ 1 8 ] ) , p ( h , " c l a s s " , " h e l p - b l o c k " ) } , m ( I , R ) { w ( I , e , R ) , m ( e , i ) , m ( e , o ) , m ( e , l ) , w ( I , a , R ) , f & & H ( f , I , R ) , w ( I , d , R ) , w ( I , h , R ) , P . m ( h , n u l l ) , v = ! 0 , _ | | ( y = X ( e , " c l i c k " , S ) , _ = ! 0 ) } , p ( I , R ) { n = I , ( ! v | | R & 1 ) & & r ! = = ( r =
< a href = "https://pocketbase.io/docs/manage-collections#rules-filters-syntax" target = "_blank" rel = "noopener" > PocketBase filter syntax and operators
2022-07-08 18:15:01 +08:00
< / a > . ` , o = $ ( ) , r = g ( " s p a n " ) , s = j ( l ) , a = $ ( ) , _ & & _ . c ( ) , f = $ ( ) , u . c ( ) , d = l t ( ) , p ( r , " c l a s s " , " e x p a n d - h a n d l e t x t - s m t x t - b o l d t x t - n o w r a p l i n k - h i n t " ) , p ( t , " c l a s s " , " f l e x " ) , p ( e , " c l a s s " , " b l o c k m - b - b a s e " ) } , m ( x , M ) { w ( x , e , M ) , m ( e , t ) , m ( t , i ) , m ( t , o ) , m ( t , r ) , m ( r , s ) , m ( e , a ) , _ & & _ . m ( e , n u l l ) , w ( x , f , M ) , S [ c ] . m ( x , M ) , w ( x , d , M ) , h = ! 0 , b | | ( v = X ( r , " c l i c k " , n [ 7 ] ) , b = ! 0 ) } , p ( x , [ M ] ) { ( ! h | | M & 4 ) & & l ! = = ( l = x [ 2 ] ? " H i d e a v a i l a b l e f i e l d s " : " S h o w a v a i l a b l e f i e l d s " ) & & g e ( s , l ) , x [ 2 ] ? _ ? ( _ . p ( x , M ) , M & 4 & & T ( _ , 1 ) ) : ( _ = U p ( x ) , _ . c ( ) , T ( _ , 1 ) , _ . m ( e , n u l l ) ) : _ & & ( A e ( ) , F ( _ , 1 , 1 , ( ) = > { _ = n u l l } ) , D e ( ) ) ; l e t A = c ; c = C ( x ) , c = = = A ? S [ c ] . p ( x , M ) : ( A e ( ) , F ( S [ A ] , 1 , 1 , ( ) = > { S [ A ] = n u l l } ) , D e ( ) , u = S [ c ] , u ? u . p ( x , M ) : ( u = S [ c ] = y [ c ] ( x ) , u . c ( ) ) , T ( u , 1 ) , u . m ( d . p a r e n t N o d e , d ) ) } , i ( x ) { h | | ( T ( _ ) , T ( u ) , h = ! 0 ) } , o ( x ) { F ( _ ) , F ( u ) , h = ! 1 } , d ( x ) { x & & k ( e ) , _ & & _ . d ( ) , x & & k ( f ) , S [ c ] . d ( x ) , x & & k ( d ) , b = ! 1 , v ( ) } } } f u n c t i o n I i ( n ) { r e t u r n n = = = n u l l } f u n c t i o n T x ( n , e , t ) { l e t { c o l l e c t i o n : i = n e w E n } = e , o = { } , r = ! 1 , l = { } , s , a = ! 1 ; c o n s t f = { l i s t R u l e : " L i s t A c t i o n " , v i e w R u l e : " V i e w A c t i o n " , c r e a t e R u l e : " C r e a t e A c t i o n " , u p d a t e R u l e : " U p d a t e A c t i o n " , d e l e t e R u l e : " D e l e t e A c t i o n " } ; a s y n c f u n c t i o n c ( ) { t ( 5 , a = ! 0 ) ; t r y { t ( 4 , s = ( a w a i t _ i ( ( ) = > i m p o r t ( " . / F i l t e r A u t o c o m p l e t e I n p u t . 3 c d 8 d a b 2 . j s " ) , [ ] ) ) . d e f a u l t ) } c a t c h ( y ) { c o n s o l e . w a r n ( y ) , t ( 4 , s = n u l l ) } t ( 5 , a = ! 1 ) } d i ( ( ) = > { c ( ) } ) ; c o n s t u = ( ) = > t ( 2 , r = ! r ) , d = a s y n c y = > { v a r S ; t ( 0 , i [ y ] = o [ y ] | | " " , i ) , a w a i t B i ( ) , ( S = l [ y ] ) = = n u l l | | S . f o c u s ( ) } , h = y = > { t ( 1 , o [ y ] = i [ y ] , o ) , t ( 0 , i [ y ] = n u l l , i ) } , b = y = > { v a r S ; r e t u r n ( S = l [ y ] ) = = n u l l ? v o i d 0 : S . f o c u s ( ) } ; f u n c t i o n v ( y , S ) { h e [ y ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l [ S ] = y , t ( 3 , l ) } ) } f u n c t i o n _ ( y , S ) { n . $ $ . n o t _ e q u a l ( i [ S ] , y ) & & ( i [ S ] = y , t ( 0 , i ) ) } r e t u r n n . $ $ s e t = y = > { " c o l l e c t i o n " i n y & & t ( 0 , i = y . c o l l e c t i o n ) } , [ i , o , r , l , s , a , f , u , d , h , b , v , _ ] } c l a s s E x e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , T x , O x , E e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n G p ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n K p ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n J p ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " p " ) , e . t e x t C o n t e n t = " A l l d a t a a s s o c i a t e d w i t h t h e r e m o v e d f i e l d s w i l l b e p e r m a n e n t l y d e l e t e d ! " } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n Z p ( n ) { l e t e , t , i , o , r = n [ 1 ] . o r i g i n a l N a m e + " " , l , s , a , f , c , u = n [ 1 ] . n a m e + " " , d ; r e t u r n { c ( ) { e = g ( " l i " ) , t = g ( " d i v " ) , i = j ( ` R e n a m e d c o l l e c t i o n
2022-07-07 05:19:05 +08:00
` ),o=g("strong"),l=j(r),s= $ (),a=g("i"),f= $ (),c=g("strong"),d=j(u),p(o,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(c,"class","txt"),p(t,"class","inline-flex")},m(h,b){w(h,e,b),m(e,t),m(t,i),m(t,o),m(o,l),m(t,s),m(t,a),m(t,f),m(t,c),m(c,d)},p(h,b){b&2&&r!==(r=h[1].originalName+"")&&ge(l,r),b&2&&u!==(u=h[1].name+"")&&ge(d,u)},d(h){h&&k(e)}}}function Xp(n){let e,t,i,o,r=n[14].originalName+"",l,s,a,f,c,u=n[14].name+"",d;return{c(){e=g("li"),t=g("div"),i=j( ` Renamed field
` ),o=g("strong"),l=j(r),s= $ (),a=g("i"),f= $ (),c=g("strong"),d=j(u),p(o,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(c,"class","txt"),p(t,"class","inline-flex")},m(h,b){w(h,e,b),m(e,t),m(t,i),m(t,o),m(o,l),m(t,s),m(t,a),m(t,f),m(t,c),m(c,d)},p(h,b){b&16&&r!==(r=h[14].originalName+"")&&ge(l,r),b&16&&u!==(u=h[14].name+"")&&ge(d,u)},d(h){h&&k(e)}}}function Qp(n){let e,t,i,o=n[14].name+"",r,l;return{c(){e=g("li"),t=j("Removed field "),i=g("span"),r=j(o),l= $ (),p(i,"class","txt-bold"),p(e,"class","txt-danger")},m(s,a){w(s,e,a),m(e,t),m(e,i),m(i,r),m(e,l)},p(s,a){a&8&&o!==(o=s[14].name+"")&&ge(r,o)},d(s){s&&k(e)}}}function Px(n){let e,t,i,o,r,l,s,a,f,c,u,d,h=n[3].length&&Jp(),b=n[5]&&Zp(n),v=n[4],_=[];for(let C=0;C<v.length;C+=1)_[C]=Xp(Kp(n,v,C));let y=n[3],S=[];for(let C=0;C<y.length;C+=1)S[C]=Qp(Gp(n,y,C));return{c(){e=g("div"),t=g("div"),t.innerHTML='<i class="ri-error-warning-line"></i>',i= $ (),o=g("div"),r=g("p"),r.textContent= ` If any of the following changes is part of another collection rule or filter , you ' ll have to
update it manually ! ` ,l= $ (),h&&h.c(),s= $ (),a=g("h6"),a.textContent="Changes:",f= $ (),c=g("ul"),b&&b.c(),u= $ ();for(let C=0;C<_.length;C+=1)_[C].c();d= $ ();for(let C=0;C<S.length;C+=1)S[C].c();p(t,"class","icon"),p(o,"class","content txt-bold"),p(e,"class","alert alert-warning"),p(c,"class","changes-list svelte-1ghly2p")},m(C,x){w(C,e,x),m(e,t),m(e,i),m(e,o),m(o,r),m(o,l),h&&h.m(o,null),w(C,s,x),w(C,a,x),w(C,f,x),w(C,c,x),b&&b.m(c,null),m(c,u);for(let M=0;M<_.length;M+=1)_[M].m(c,null);m(c,d);for(let M=0;M<S.length;M+=1)S[M].m(c,null)},p(C,x){if(C[3].length?h||(h=Jp(),h.c(),h.m(o,null)):h&&(h.d(1),h=null),C[5]?b?b.p(C,x):(b=Zp(C),b.c(),b.m(c,u)):b&&(b.d(1),b=null),x&16){v=C[4];let M;for(M=0;M<v.length;M+=1){const A=Kp(C,v,M);_[M]?_[M].p(A,x):(_[M]=Xp(A),_[M].c(),_[M].m(c,d))}for(;M<_.length;M+=1)_[M].d(1);_.length=v.length}if(x&8){y=C[3];let M;for(M=0;M<y.length;M+=1){const A=Gp(C,y,M);S[M]?S[M].p(A,x):(S[M]=Qp(A),S[M].c(),S[M].m(c,null))}for(;M<S.length;M+=1)S[M].d(1);S.length=y.length}},d(C){C&&k(e),h&&h.d(),C&&k(s),C&&k(a),C&&k(f),C&&k(c),b&&b.d(),qn(_,C),qn(S,C)}}}function Fx(n){let e;return{c(){e=g("h4"),e.textContent="Confirm collection changes"},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Lx(n){let e,t,i,o,r;return{c(){e=g("button"),e.innerHTML='<span class="txt">Cancel</span>',t= $ (),i=g("button"),i.innerHTML='<span class="txt">Confirm</span>',e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary"),p(i,"type","button"),p(i,"class","btn btn-expanded")},m(l,s){w(l,e,s),w(l,t,s),w(l,i,s),e.focus(),o||(r=[X(e,"click",n[8]),X(i,"click",n[9])],o=!0)},p:le,d(l){l&&k(e),l&&k(t),l&&k(i),o=!1,rt(r)}}}function Ix(n){let e,t,i={class:"confirm-changes-panel",popup:!0, $ $ slots:{footer:[Lx],header:[Fx],default:[Px]}, $ $ scope:{ctx:n}};return e=new Ai({props:i}),n[10](e),e. $ on("hide",n[11]),e. $ on("show",n[12]),{c(){V(e. $ $ .fragment)},m(o,r){H(e,o,r),t=!0},p(o,[r]){const l={};r&524346&&(l. $ $ scope={dirty:r,ctx:o}),e. $ set(l)},i(o){t||(T(e. $ $ .fragment,o),t=!0)},o(o){F(e. $ $ .fragment,o),t=!1},d(o){n[10](null),q(e,o)}}}function Rx(n,e,t){let i,o,r;const l=yn();let s,a;async function f(y){t(1,a=y),await Bi(),!i&&!o.length&&!r.length?u():s==null||s.show()}function c(){s==null||s.hide()}function u(){c(),l("confirm")}const d=()=>c(),h=()=>u();function b(y){he[y?"unshift":"push"](()=>{s=y,t(2,s)})}function v(y){ft.call(this,n,y)}function _(y){ft.call(this,n,y)}return n. $ $ .update=()=>{n. $ $ .dirty&2&&t(5,i=(a==null?void 0:a.originalName)!=(a==null?void 0:a.name)),n. $ $ .dirty&2&&t(4,o=(a==null?void 0:a.schema.filter(y=>y.id&&!y.toDelete&&y.originalName!=y.name))||[]),n. $ $ .dirty&2&&t(3,r=(a==null?void 0:a.schema.filter(y=>y.id&&y.toDelete))||[])},[c,a,s,r,o,i,u,f,d,h,b,v,_]}class Nx extends Ie{constructor(e){super(),Le(this,e,Rx,Ix,Ee,{show:7,hide:0})}get show(){return this. $ $ .ctx[7]}get hide(){return this. $ $ .ctx[0]}}function eh(n){let e,t,i,o;function r(s){n[26](s)}let l={};return n[2]!==void 0&&(l.collection=n[2]),t=new Ex({props:l}),he.push(()=>Fe(t,"collection",r)),{c(){e=g("div"),V(t. $ $ .fragment),p(e,"class","tab-item active")},m(s,a){w(s,e,a),H(t,e,null),o=!0},p(s,a){const f={};!i&&a[0]&4&&(i=!0,f.collection=s[2],Re(()=>i=!1)),t. $ set(f)},i(s){o||(T(t. $ $ .fragment,s),o=!0)},o(s){F(t. $ $ .fragment,s),o=!1},d(s){s&&k(e),q(t)}}}function jx(n){let e,t,i,o,r,l;function s(c){n[25](c)}let a={};n[2]!==void 0&&(a.collection=n[2]),i=new yx({props:a}),he.push(()=>Fe(i,"collection",s));let f=n[9]===qr&&eh(n);return{c(){e=g("div"),t=g("div"),V(i. $ $ .fragment),r= $ (),f&&f.c(),p(t,"class","tab-item"),ne(t,"active",n[9]===ho),p(e,"class","tabs-content svelte-b10vi")},m(c,u){w(c,e,u),m(e,t),H(i,t,null),m(e,r),f&&f.m(e,null),l=!0},p(c,u){const d={};!o&&u[0]&4&&(o=!0,d.collection=c[2],Re(()=>o=!1)),i. $ set(d),u[0]&512&&ne(t,"active",c[9]===ho),c[9]===qr?f?(f.p(c,u),u[0]&512&&T(f,1)):(f=eh(c),f.c(),T(f,1),f.m(e,null)):f&&(Ae(),F(f,1,1,()=>{f=null}),De())},i(c){l||(T(i. $ $ .fragment,c),T(f),l=!0)},o(c){F(i. $ $ .fragment,c),F(f),l=!1},d(c){c&&k(e),q(i),f&&f.d()}}}function th(n){let e,t,i,o,r,l,s;return l=new vo({props:{class:"dropdown dropdown-right m
< span class = "txt" > Delete < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) } , m ( o , r ) { w ( o , e , r ) , t | | ( i = X ( e , " c l i c k " , n [ 2 0 ] ) , t = ! 0 ) } , p : l e , d ( o ) { o & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n n h ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , e . t e x t C o n t e n t = " S y s t e m c o l l e c t i o n " , p ( e , " c l a s s " , " h e l p - b l o c k " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n H x ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h = n [ 2 ] . s y s t e m & & n h ( ) ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " N a m e " ) , o = $ ( ) , r = g ( " i n p u t " ) , f = $ ( ) , h & & h . c ( ) , c = l t ( ) , p ( e , " f o r " , i = n [ 3 8 ] ) , p ( r , " t y p e " , " t e x t " ) , p ( r , " i d " , l = n [ 3 8 ] ) , r . r e q u i r e d = ! 0 , r . d i s a b l e d = n [ 1 1 ] , p ( r , " s p e l l c h e c k " , " f a l s e " ) , r . a u t o f o c u s = s = n [ 2 ] . i s N e w , p ( r , " p l a c e h o l d e r " , ' e g . " p o s t s " ' ) , r . v a l u e = a = n [ 2 ] . n a m e } , m ( b , v ) { w ( b , e , v ) , m ( e , t ) , w ( b , o , v ) , w ( b , r , v ) , w ( b , f , v ) , h & & h . m ( b , v ) , w ( b , c , v ) , n [ 2 ] . i s N e w & & r . f o c u s ( ) , u | | ( d = X ( r , " i n p u t " , n [ 2 1 ] ) , u = ! 0 ) } , p ( b , v ) { v [ 1 ] & 1 2 8 & & i ! = = ( i = b [ 3 8 ] ) & & p ( e , " f o r " , i ) , v [ 1 ] & 1 2 8 & & l ! = = ( l = b [ 3 8 ] ) & & p ( r , " i d " , l ) , v [ 0 ] & 2 0 4 8 & & ( r . d i s a b l e d = b [ 1 1 ] ) , v [ 0 ] & 4 & & s ! = = ( s = b [ 2 ] . i s N e w ) & & ( r . a u t o f o c u s = s ) , v [ 0 ] & 4 & & a ! = = ( a = b [ 2 ] . n a m e ) & & r . v a l u e ! = = a & & ( r . v a l u e = a ) , b [ 2 ] . s y s t e m ? h | | ( h = n h ( ) , h . c ( ) , h . m ( c . p a r e n t N o d e , c ) ) : h & & ( h . d ( 1 ) , h = n u l l ) } , d ( b ) { b & & k ( e ) , b & & k ( o ) , b & & k ( r ) , b & & k ( f ) , h & & h . d ( b ) , b & & k ( c ) , u = ! 1 , d ( ) } } } f u n c t i o n i h ( n ) { l e t e , t , i , o , r , l ; r e t u r n { c ( ) { e = g ( " i " ) , p ( e , " c l a s s " , " r i - e r r o r - w a r n i n g - f i l l t x t - d a n g e r " ) } , m ( s , a ) { w ( s , e , a ) , o = ! 0 , r | | ( l = X e ( t = S t . c a l l ( n u l l , e , n [ 1 2 ] ) ) , r = ! 0 ) } , p ( s , a ) { t & & Y n ( t . u p d a t e ) & & a [ 0 ] & 4 0 9 6 & & t . u p d a t e . c a l l ( n u l l , s [ 1 2 ] ) } , i ( s ) { o | | ( s & & D t ( ( ) = > { i | | ( i = c t ( e , B n , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 0 ) ) , i . r u n ( 1 ) } ) , o = ! 0 ) } , o ( s ) { s & & ( i | | ( i = c t ( e , B n , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 1 ) ) , i . r u n ( 0 ) ) , o = ! 1 } , d ( s ) { s & & k ( e ) , s & & i & & i . e n d ( ) , r = ! 1 , l ( ) } } } f u n c t i o n o h ( n ) { l e t e , t , i , o , r ; r e t u r n { c ( ) { e = g ( " i " ) , p ( e , " c l a s s " , " r i - e r r o r - w a r n i n g - f i l l t x t - d a n g e r " ) } , m ( l , s ) { w ( l , e , s ) , i = ! 0 , o | | ( r = X e ( S t . c a l l ( n u l l , e , " H a s e r r o r s " ) ) , o = ! 0 ) } , i ( l ) { i | | ( l & & D t ( ( ) = > { t | | ( t = c t ( e , B n , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 0 ) ) , t . r u n ( 1 ) } ) , i = ! 0 ) } , o ( l ) { l & & ( t | | ( t = c t ( e , B n , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( l ) { l & & k ( e ) , l & & t & & t . e n d ( ) , o = ! 1 , r ( ) } } } f u n c t i o n q x ( n ) { v a r I , R , G , U , z , K ; l e t e , t = n [ 2 ] . i s N e w ? " N e w c o l l e c t i o n " : " E d i t c o l l e c t i o n " , i , o , r , l , s , a , f , c , u , d , h , b , v = ! B . i s E m p t y ( ( I = n [ 4 ] ) = = n u l l ? v o i d 0 : I . s c h e m a ) , _ , y , S , C , x = ! B . i s E m p t y ( ( R = n [ 4 ] ) = = n u l l ? v o i d 0 : R . l i s t R u l e ) | | ! B . i s E m p t y ( ( G = n [ 4 ] ) = = n u l l ? v o i d 0 : G . v i e w R u l e ) | | ! B . i s E m p t y ( ( U = n [ 4 ] ) = = n u l l ? v o i d 0 : U . c r e a t e R u l e ) | | ! B . i s E m p t y ( ( z = n [ 4 ] ) = = n u l l ? v o i d 0 : z . u p d a t e R u l e ) | | ! B . i s E m p t y ( ( K = n [ 4 ] ) = = n u l l ? v o i d 0 : K . d e l e t e R u l e ) , M , A , O , D = ! n [ 2 ] . i s N e w & & ! n [ 2 ] . s y s t e m & & t h ( n ) ; s = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d m - b - 0 " + ( n [ 1 1 ] ? " d i s a b l e d " : " " ) , n a m e : " n a m e " , $ $ s l o t s : { d e f a u l t : [ H x , ( { u n i q u e I d : Y } ) = > ( { 3 8 : Y } ) , ( { u n i q u e I d : Y } ) = > [ 0 , Y ? 1 2 8 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t E = v & & i h ( n ) , P = x & & o h ( ) ; r e t u r n { c ( ) { e = g ( " h 4 " ) , i = j ( t ) , o = $ ( ) , D & & D . c ( ) , r = $ ( ) , l = g ( " f o r m " ) , V ( s . $ $ . f r a g m e n t ) , a = $ ( ) , f = g ( " i n p u t " ) , c = $ ( ) , u = g ( " d i v " ) , d = g ( " b u t t o n " ) , h = g ( " s p a n " ) , h . t e x t C o n t e n t = " F i e l d s " , b = $ ( ) , E & & E . c ( ) , _ = $ ( ) , y = g ( " b u t t o n " ) , S = g ( " s p a n " ) , S . t e x t C o n t e n t = " A P I R u l e s " , C = $ ( ) , P & & P . c ( ) , p ( f , " t y p e " , " s u b m i t " ) , p ( f , " c l a s s " , " h i d d e n " ) , p ( f , " t a b i n d e x " , " - 1 " ) , p ( l , " c l a s s " , " b l o c k " ) , p ( h , " c l a s s " , " t x t " ) , p ( d , " t y p e " , " b u t t o n " ) , p ( d , " c l a s s " , " t a b - i t e m " ) , n e ( d , " a c t i v e " , n [ 9 ] = = = h o ) , p ( S , " c l a s s " , " t x t " ) , p ( y , " t y p e " , " b u t t o n " ) , p ( y , " c l a s s " , " t a b - i t e m " ) , n e ( y , " a c t i v e " , n [ 9 ] = = = q r ) , p ( u , " c l a s s " , " t a b s - h e a d e r s t r e t c h e d " ) } , m ( Y , W ) { w ( Y , e , W ) , m ( e , i ) , w ( Y , o , W ) , D & & D . m ( Y , W ) , w ( Y , r , W ) , w ( Y , l , W ) , H ( s , l , n u l l ) , m ( l , a ) , m ( l , f ) , w ( Y , c , W ) , w ( Y , u , W ) , m ( u , d ) , m ( d , h ) , m ( d , b ) , E & & E . m ( d , n u l l ) , m ( u , _ ) , m ( u , y ) , m ( y , S ) , m ( y , C ) , P & & P . m ( y , n u l l ) , M = ! 0 , A | | ( O = [ X ( l , " s u b m i t " , G t ( n [ 2 2 ] ) ) , X ( d , " c l i c k " , n [ 2 3 ] ) , X ( y , " c l i c k " , n [ 2 4 ] ) ] , A = ! 0 ) } , p ( Y , W ) { v a r c e , v e , o e , J , $ e , e e ; ( ! M | | W [ 0 ] & 4 ) & & t ! = = ( t = Y [ 2 ] . i s N e w ? " N e w c o l l e c t i o n " : " E d i t c o l l e c t i o n " ) & & g e ( i , t ) , ! Y [ 2 ] . i s N e w & & ! Y [ 2 ] . s y s t e m ? D ? ( D . p ( Y , W ) , W [ 0 ] & 4 & & T ( D , 1 ) ) : ( D = t h ( Y ) , D . c ( ) , T ( D , 1 ) , D . m ( r . p a r e n t N o d e , r ) ) : D & & ( A e ( ) , F ( D , 1 , 1 , ( ) = > { D = n u l l } ) , D e ( ) ) ; c o n s t t e = { } ; W [ 0 ] & 2 0 4 8 & & ( t e . c l a s s = " f o r m - f i e l d r e q u i r e d m - b - 0 " + ( Y [ 1 1 ] ? " d i s a b l e d " : " " ) ) , W [ 0 ] & 2 0 5 2 | W [ 1 ] & 3 8 4 & & ( t e . $ $ s c o p e = { d i r t y : W , c t x : Y } ) , s . $ s e t ( t e ) , W [ 0 ] & 1 6 & & ( v = ! B . i s E m p t y ( ( c e = Y [ 4 ] ) = = n u l l ? v o i d 0 : c e . s c h e m a ) ) , v ? E ? ( E . p ( Y , W ) , W [ 0 ] & 1 6 & & T ( E , 1 ) ) : ( E = i h ( Y ) , E . c ( ) , T ( E , 1 ) , E . m ( d , n u l l ) ) : E & & ( A e ( ) , F ( E , 1 , 1 , ( ) = > { E = n u l l } ) , D e ( ) ) , W [ 0 ] & 5 1 2 & & n e ( d , " a c t i v e " , Y [ 9 ] = = = h o ) , W [ 0 ] & 1 6 & & ( x = ! B . i s E m p t y ( ( v e = Y [ 4 ] ) = = n u l l ? v o i d 0 : v e . l i s t R u l e ) | | ! B . i s E m p t y ( ( o e = Y [ 4 ] ) = = n u l l ? v o i d 0 : o e . v i e w R u l e ) | | ! B . i s E m p t y ( ( J = Y [ 4 ] ) = = n u l l ? v o i d 0 : J . c r e a t e R u l e ) | |
< span class = "txt" > New collection < /span>`,y=$(),V(S.$$.fragment),p(r,"type","button"),p(r,"class","btn btn-xs btn-secondary btn-circle btn-clear"),ne(r,"hidden",!n[4]),p(o,"class","form-field-addon"),p(s,"type","text"),p(s,"placeholder","Search collections..."),p(i,"class","form-field search"),ne(i,"active",n[4]),p(t,"class","sidebar-header"),p(f,"class","m-t-5 m-b-xs"),p(u,"class","sidebar-content"),p(_,"type","button"),p(_,"class","btn btn-block btn-outline"),p(v,"class","sidebar-footer"),p(e,"class","page-sidebar collection-sidebar")},m(P,I){w(P,e,I),m(e,t),m(t,i),m(i,o),m(o,r),m(i,l),m(i,s),Me(s,n[0]),m(e,a),m(e,f),m(e,c),m(e,u);for(let R=0;R<d.length;R+=1)d[R].m(u,null);D&&D.m(u,null),m(e,b),m(e,v),m(v,_),w(P,y,I),H(S,P,I),C=!0,x||(M=[X(r,"click",n[8]),X(s,"input",n[9]),X(_,"click",n[11])],x=!0)},p(P,[I]){I&16&&ne(r,"hidden",!P[4]),I&1&&s.value!==P[0]&&Me(s,P[0]),I&16&&ne(i,"active",P[4]),I&106&&(A=P[3],d=st(d,I,O,1,P,A,h,u,an,ah,null,rh),!A.length&&D?D.p(P,I):A.length?D&&(D.d(1),D=null):(D=lh(P),D.c(),D.m(u,null)));const R={};S.$set(R)},i(P){C||(T(S.$$.fragment,P),C=!0)},o(P){F(S.$$.fragment,P),C=!1},d(P){P&&k(e);for(let I=0;I<d.length;I+=1)d[I].d();D&&D.d(),P&&k(y),n[12](null),q(S,P),x=!1,rt(M)}}}function Kx(n,e,t){let i,o,r,l,s;pn(n,fi,_=>t(5,l=_)),pn(n,Go,_=>t(7,s=_));let a,f="";function c(_){jb(fi,l=_,l)}const u=()=>t(0,f="");function d(){f=this.value,t(0,f)}const h=_=>c(_),b=()=>a==null?void 0:a.show();function v(_){he[_?"unshift":"push"](()=>{a=_,t(2,a)})}return n.$$.update=()=>{n.$$.dirty&1&&t(1,i=f.replace(/ \ s + /g,"").toLowerCase()),n.$$.dirty&1&&t(4,o=f!==""),n.$$.dirty&131&&t(3,r=s.filter(_=>_.name!="profiles"&&(_.id==f||_.name.replace(/ \ s + / g , " " ) . t o L o w e r C a s e ( ) . i n c l u d e s ( i ) ) ) ) } , [ f , i , a , r , o , l , c , s , u , d , h , b , v ] } c l a s s J x e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , K x , G x , E e , { } ) } } f u n c t i o n Z x ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h , b , v , _ , y , S , C , x , M , A , O , D , E , P , I , R , G , U , z , K , Y , W , t e , c e , v e , o e , J , $ e , e e , _ e , f e , i e , y e , N e , P e , z e , s e , r e , k e , H e ; r e t u r n { c ( ) { e = g ( " p " ) , e . i n n e r H T M L = ` T h e s y n t a x b a s i c a l l y f o l l o w s t h e f o r m a t
< code > < span class = "txt-success" > OPERAND < / s p a n >
< span class = "txt-danger" > OPERATOR < / s p a n >
< span class = "txt-success" > OPERAND < / s p a n > < / c o d e > , w h e r e : ` , t = $ ( ) , i = g ( " u l " ) , o = g ( " l i " ) , o . i n n e r H T M L = ` < c o d e c l a s s = " t x t - s u c c e s s " > O P E R A N D < / c o d e > - c o u l d b e a n y o f t h e a b o v e f i e l d l i t e r a l , s t r i n g ( s i n g l e o r d o u b l e
quoted ) , number , null , true , false ` ,r= $ (),l=g("li"),s=g("code"),s.textContent="OPERATOR",a=j( ` - is one of :
` ),f=g("br"),c= $ (),u=g("ul"),d=g("li"),h=g("code"),h.textContent="=",b= $ (),v=g("span"),v.textContent="Equal",_= $ (),y=g("li"),S=g("code"),S.textContent="!=",C= $ (),x=g("span"),x.textContent="NOT equal",M= $ (),A=g("li"),O=g("code"),O.textContent=">",D= $ (),E=g("span"),E.textContent="Greater than",P= $ (),I=g("li"),R=g("code"),R.textContent=">=",G= $ (),U=g("span"),U.textContent="Greater than or equal",z= $ (),K=g("li"),Y=g("code"),Y.textContent="<",W= $ (),te=g("span"),te.textContent="Less than or equal",ce= $ (),ve=g("li"),oe=g("code"),oe.textContent="<=",J= $ (), $ e=g("span"), $ e.textContent="Less than or equal",ee= $ (),_e=g("li"),fe=g("code"),fe.textContent="~",ie= $ (),ye=g("span"),ye.textContent= ` Like / Contains ( if not specified auto wraps the right string OPERAND in a "%" for wildcard
match ) ` ,Ne= $ (),Pe=g("li"),ze=g("code"),ze.textContent="!~",se= $ (),re=g("span"),re.textContent= ` NOT Like / Contains ( if not specified auto wraps the right string OPERAND in a "%" for
wildcard match ) ` ,ke= $ (),He=g("p"),He.innerHTML= ` To group and combine several expressions you could use brackets
< code > ( ... ) < / c o d e > , < c o d e > & a m p ; & a m p ; < / c o d e > ( A N D ) a n d < c o d e > | | < / c o d e > ( O R ) t o k e n s . ` , p ( s , " c l a s s " , " t x t - d a n g e r " ) , p ( h , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( v , " c l a s s " , " t x t - h i n t " ) , p ( S , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( x , " c l a s s " , " t x t - h i n t " ) , p ( O , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( E , " c l a s s " , " t x t - h i n t " ) , p ( R , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( U , " c l a s s " , " t x t - h i n t " ) , p ( Y , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( t e , " c l a s s " , " t x t - h i n t " ) , p ( o e , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( $ e , " c l a s s " , " t x t - h i n t " ) , p ( f e , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( y e , " c l a s s " , " t x t - h i n t " ) , p ( z e , " c l a s s " , " f i l t e r - o p s v e l t e - 1 w 7 s 5 n w " ) , p ( r e , " c l a s s " , " t x t - h i n t " ) } , m ( q e , J e ) { w ( q e , e , J e ) , w ( q e , t , J e ) , w ( q e , i , J e ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , m ( l , a ) , m ( l , f ) , m ( l , c ) , m ( l , u ) , m ( u , d ) , m ( d , h ) , m ( d , b ) , m ( d , v ) , m ( u , _ ) , m ( u , y ) , m ( y , S ) , m ( y , C ) , m ( y , x ) , m ( u , M ) , m ( u , A ) , m ( A , O ) , m ( A , D ) , m ( A , E ) , m ( u , P ) , m ( u , I ) , m ( I , R ) , m ( I , G ) , m ( I , U ) , m ( u , z ) , m ( u , K ) , m ( K , Y ) , m ( K , W ) , m ( K , t e ) , m ( u , c e ) , m ( u , v e ) , m ( v e , o e ) , m ( v e , J ) , m ( v e , $ e ) , m ( u , e e ) , m ( u , _ e ) , m ( _ e , f e ) , m ( _ e , i e ) , m ( _ e , y e ) , m ( u , N e ) , m ( u , P e ) , m ( P e , z e ) , m ( P e , s e ) , m ( P e , r e ) , w ( q e , k e , J e ) , w ( q e , H e , J e ) } , p : l e , i : l e , o : l e , d ( q e ) { q e & & k ( e ) , q e & & k ( t ) , q e & & k ( i ) , q e & & k ( k e ) , q e & & k ( H e ) } } } c l a s s X x e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , n u l l , Z x , E e , { } ) } } f u n c t i o n f h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 8 ] = e [ t ] , i } f u n c t i o n c h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 8 ] = e [ t ] , i } f u n c t i o n u h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 3 ] = e [ t ] , i } f u n c t i o n d h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 3 ] = e [ t ] , i } f u n c t i o n p h ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " p " ) , e . i n n e r H T M L = " R e q u i r e s < c o d e > A u t h o r i z a t i o n : A d m i n T O K E N < / c o d e > h e a d e r " , p ( e , " c l a s s " , " t x t - h i n t t x t - s m t x t - r i g h t " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n h h ( n , e ) { l e t t , i = e [ 1 3 ] . l a n g + " " , o , r , l , s ; f u n c t i o n a ( ) { r e t u r n e [ 6 ] ( e [ 1 3 ] ) } r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = g ( " b u t t o n " ) , o = j ( i ) , r = $ ( ) , p ( t , " c l a s s " , " t a b - i t e m " ) , n e ( t , " a c t i v e " , e [ 3 ] = = = e [ 1 3 ] . l a n g ) , t h i s . f i r s t = t } , m ( f , c ) { w ( f , t , c ) , m ( t , o ) , m ( t , r ) , l | | ( s = X ( t , " c l i c k " , a ) , l = ! 0 ) } , p ( f , c ) { e = f , c & 1 6 & & i ! = = ( i = e [ 1 3 ] . l a n g + " " ) & & g e ( o , i ) , c & 2 4 & & n e ( t , " a c t i v e " , e [ 3 ] = = = e [ 1 3 ] . l a n g ) } , d ( f ) { f & & k ( t ) , l = ! 1 , s ( ) } } } f u n c t i o n m h ( n , e ) { l e t t , i , o , r ; r e t u r n i = n e w t n ( { p r o p s : { c o n t e n t : e [ 1 3 ] . c o d e } } ) , { k e y : n , f i r s t : n u l l , c ( ) { t = g ( " d i v " ) , V ( i . $ $ . f r a g m e n t ) , o = $ ( ) , p ( t , " c l a s s " , " t a b - i t e m " ) , n e ( t , " a c t i v e " , e [ 3 ] = = = e [ 1 3 ] . l a n g ) , t h i s . f i r s t = t } , m ( l , s ) { w ( l , t , s ) , H ( i , t , n u l l ) , m ( t , o ) , r = ! 0 } , p ( l , s ) { e = l ; c o n s t a = { } ; s & 1 6 & & ( a . c o n t e n t = e [ 1 3 ] . c o d e ) , i . $ s e t ( a ) , s & 2 4 & & n e ( t , " a c t i v e " , e [ 3 ] = = = e [ 1 3 ] . l a n g ) } , i ( l ) { r | | ( T ( i . $ $ . f r a g m e n t , l ) , r = ! 0 ) } , o ( l ) { F ( i . $ $ . f r a g m e n t , l ) , r = ! 1 } , d ( l ) { l & & k ( t ) , q ( i ) } } } f u n c t i o n b h ( n , e ) { l e t t , i = e [ 8 ] . c o d e + " " , o , r , l , s ; f u n c t i o n a ( ) { r e t u r n e [ 7 ] ( e [ 8 ] ) } r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = g ( " d i v " ) , o = j ( i ) , r = $ ( ) , p ( t , " c l a s s " , " t a b - i t e m " ) , n e ( t , " a c t i v e " , e [ 2 ] = = = e [ 8 ] . c o d e ) , t h i s . f i r s t = t } , m ( f , c ) { w ( f , t , c ) , m ( t , o ) , m ( t , r ) , l | | ( s = X ( t , " c l i c k " , a ) , l = ! 0 ) } , p ( f , c ) { e = f , c & 3 6 & & n e ( t , " a c t i v e " , e [ 2 ] = = = e [ 8 ] . c o d e ) } , d ( f ) { f & & k ( t ) , l = ! 1 , s ( ) } } } f u n c t i o n g h ( n , e ) { l e t t , i , o , r ; r e t u r n i = n e w t n ( { p r o p s : { c o n t e n t : e [ 8 ] . b o d y } } ) , { k e y : n , f i r s t : n u l l , c ( ) { t = g ( " d i v " ) , V ( i . $ $ . f r a g m e n t ) , o = $ ( ) , p ( t , " c l a s s " , " t a b - i t e m " ) , n e ( t , " a c t i v e " , e [ 2 ] = = = e [ 8 ] . c o d e ) , t h i s . f i r s t = t } , m ( l , s ) { w ( l , t , s ) , H ( i , t , n u l l ) , m ( t , o ) , r = ! 0 } , p ( l , s ) { e = l , s & 3 6 & & n e ( t , " a c t i v e " , e [ 2 ] = = = e [ 8 ] . c o d e ) } , i ( l ) { r | | ( T ( i . $ $ . f r a g m e n t , l ) , r = ! 0 ) } , o ( l ) { F ( i . $ $ . f r a g m e n t , l ) , r = ! 1 } , d ( l ) { l & & k ( t ) , q ( i ) } } } f u n c t i o n Q x ( n ) { l e t e , t , i , o , r , l , s , a = n [ 0 ] . n a m e + " " , f , c , u , d , h , b , v , _ , y = n [ 0 ] . n a m e + " " , S , C , x , M , A , O , D , E = [ ] , P = n e w M a p , I , R , G = [ ] , U = n e w M a p , z , K , Y , W , t e , c e , v e , o e , J , $ e , e e , _ e , f e , i e , y e , N e , P e , z e , s e , r e , k e , H e , q e , J e , b e , O e , Z , a e , V e , y t , i t , b t , a t , v t , q t , M t , $ t , m e , C e , Y e , o t , c n , u e , w e , Z e , K t , z t , n i , p e , L , N , Q , d e , T e , U e , t t , G e , n t = [ ] , K e = n e w M a p , e t , g t , F t = [ ] , n n = n e w M a p , F n , V t = n [ 1 ] & & p h ( ) , w o = n [ 4 ] ; c o n s t S o = x e = > x e [ 1 3 ] . l a n g ; f o r ( l e t x e = 0 ; x e < w o . l e n g t h ; x e + = 1 ) { l e t W e = d h ( n , w o , x e ) , O t = S o ( W e ) ; P . s e t ( O t , E [ x e ] = h h ( O t , W e ) ) } l e t G i = n [ 4 ] ; c o n s t n l = x e = > x e [ 1 3 ] . l a n g ; f o r ( l e t x e = 0 ; x e < G i . l e n g t h ; x e + = 1 ) { l e t W e = u h ( n , G i , x e ) , O t = n l ( W e ) ; U . s e t ( O t , G [ x e ] = m h ( O t , W e ) ) } b e = n e w t n ( { p r o p s : { c o n t e n t : `
// DESC by created and ASC by id
? sort = - created , id
` }}),vt=new tn({props:{content: `
? filter = ( id = 'abc' && created > '2022-01-01' )
` }}),Mt=new Xx({}),Ze=new tn({props:{content: `
? expand = rel1 , rel2 . subrel21 . subrel22
` }});let Co=n[5];const il=xe=>xe[8].code;for(let xe=0;xe<Co.length;xe+=1){let We=ch(n,Co,xe),Ot=il(We);Ke.set(Ot,nt[xe]=bh(Ot,We))}let Ki=n[5];const ol=xe=>xe[8].code;for(let xe=0;xe<Ki.length;xe+=1){let We=fh(n,Ki,xe),Ot=ol(We);nn.set(Ot,Ft[xe]=gh(Ot,We))}return{c(){e=g("div"),t=g("strong"),t.textContent="GET",i= $ (),o=g("div"),r=g("p"),l=j("/api/collections/"),s=g("strong"),f=j(a),c=j("/records"),u= $ (),Vt&&Vt.c(),d= $ (),h=g("div"),b=g("p"),v=j("Fetch a paginated "),_=g("strong"),S=j(y),C=j(" records list."),x= $ (),M=g("div"),M.textContent="Client SDKs example",A= $ (),O=g("div"),D=g("div");for(let xe=0;xe<E.length;xe+=1)E[xe].c();I= $ (),R=g("div");for(let xe=0;xe<G.length;xe+=1)G[xe].c();z= $ (),K=g("div"),K.textContent="Query parameters",Y= $ (),W=g("table"),te=g("thead"),te.innerHTML= ` < tr > < th > Param < / t h >
< th > Type < / t h >
< th width = "60%" > Description < / t h > < / t r > ` , c e = $ ( ) , v e = g ( " t b o d y " ) , o e = g ( " t r " ) , o e . i n n e r H T M L = ` < t d > p a g e < / t d >
< td > < span class = "label" > Number < / s p a n > < / t d >
< td > The page ( aka . offset ) of the paginated list ( default to 1 ) . < / t d > ` , J = $ ( ) , $ e = g ( " t r " ) , $ e . i n n e r H T M L = ` < t d > p e r P a g e < / t d >
< td > < span class = "label" > Number < / s p a n > < / t d >
< td > Specify the max returned records per page ( default to 30 ) . < / t d > ` , e e = $ ( ) , _ e = g ( " t r " ) , f e = g ( " t d " ) , f e . t e x t C o n t e n t = " s o r t " , i e = $ ( ) , y e = g ( " t d " ) , y e . i n n e r H T M L = ' < s p a n c l a s s = " l a b e l " > S t r i n g < / s p a n > ' , N e = $ ( ) , P e = g ( " t d " ) , z e = j ( " S p e c i f y t h e r e c o r d s o r d e r a t t r i b u t e ( s ) . " ) , s e = g ( " b r " ) , r e = j ( `
Add ` ),ke=g("code"),ke.textContent="-",He=j(" / "),qe=g("code"),qe.textContent="+",Je=j( ` ( default ) in front of the attribute for DESC / ASC order .
Ex . :
` ),V(be. $ $ .fragment),Oe= $ (),Z=g("tr"),ae=g("td"),ae.textContent="filter",Ve= $ (),yt=g("td"),yt.innerHTML='<span class="label">String</span>',it= $ (),bt=g("td"),at=j( ` Filter the returned records . Ex . :
` ),V(vt. $ $ .fragment),qt= $ (),V(Mt. $ $ .fragment), $ t= $ (),me=g("tr"),Ce=g("td"),Ce.textContent="expand",Ye= $ (),ot=g("td"),ot.innerHTML='<span class="label">String</span>',cn= $ (),ue=g("td"),we=j( ` Auto expand nested record relations . Ex . :
` ),V(Ze. $ $ .fragment),Kt=j( `
Supports up to 6 - levels depth nested relations expansion . ` ),zt=g("br"),ni=j( `
The expanded relations will be appended to each individual record under the
` ),pe=g("code"),pe.textContent="@expand",L=j(" property (eg. "),N=g("code"),N.textContent='"@expand": {"rel1": {...}, ...}',Q=j(")."),de= $ (),Te=g("div"),Te.textContent="Responses",Ue= $ (),tt=g("div"),Ge=g("div");for(let xe=0;xe<nt.length;xe+=1)nt[xe].c();et= $ (),gt=g("div");for(let xe=0;xe<Ft.length;xe+=1)Ft[xe].c();p(t,"class","label label-primary"),p(o,"class","content"),p(e,"class","alert alert-info"),p(h,"class","content m-b-base"),p(M,"class","section-title"),p(D,"class","tabs-header compact left"),p(R,"class","tabs-content"),p(O,"class","tabs m-b-lg"),p(K,"class","section-title"),p(W,"class","table-compact table-border m-b-lg"),p(Te,"class","section-title"),p(Ge,"class","tabs-header compact left"),p(gt,"class","tabs-content"),p(tt,"class","tabs")},m(xe,We){w(xe,e,We),m(e,t),m(e,i),m(e,o),m(o,r),m(r,l),m(r,s),m(s,f),m(r,c),m(e,u),Vt&&Vt.m(e,null),w(xe,d,We),w(xe,h,We),m(h,b),m(b,v),m(b,_),m(_,S),m(b,C),w(xe,x,We),w(xe,M,We),w(xe,A,We),w(xe,O,We),m(O,D);for(let Ot=0;Ot<E.length;Ot+=1)E[Ot].m(D,null);m(O,I),m(O,R);for(let Ot=0;Ot<G.length;Ot+=1)G[Ot].m(R,null);w(xe,z,We),w(xe,K,We),w(xe,Y,We),w(xe,W,We),m(W,te),m(W,ce),m(W,ve),m(ve,oe),m(ve,J),m(ve, $ e),m(ve,ee),m(ve,_e),m(_e,fe),m(_e,ie),m(_e,ye),m(_e,Ne),m(_e,Pe),m(Pe,ze),m(Pe,se),m(Pe,re),m(Pe,ke),m(Pe,He),m(Pe,qe),m(Pe,Je),H(be,Pe,null),m(ve,Oe),m(ve,Z),m(Z,ae),m(Z,Ve),m(Z,yt),m(Z,it),m(Z,bt),m(bt,at),H(vt,bt,null),m(bt,qt),H(Mt,bt,null),m(ve, $ t),m(ve,me),m(me,Ce),m(me,Ye),m(me,ot),m(me,cn),m(me,ue),m(ue,we),H(Ze,ue,null),m(ue,Kt),m(ue,zt),m(ue,ni),m(ue,pe),m(ue,L),m(ue,N),m(ue,Q),w(xe,de,We),w(xe,Te,We),w(xe,Ue,We),w(xe,tt,We),m(tt,Ge);for(let Ot=0;Ot<nt.length;Ot+=1)nt[Ot].m(Ge,null);m(tt,et),m(tt,gt);for(let Ot=0;Ot<Ft.length;Ot+=1)Ft[Ot].m(gt,null);Fn=!0},p(xe,[We]){(!Fn||We&1)&&a!==(a=xe[0].name+"")&&ge(f,a),xe[1]?Vt||(Vt=ph(),Vt.c(),Vt.m(e,null)):Vt&&(Vt.d(1),Vt=null),(!Fn||We&1)&&y!==(y=xe[0].name+"")&&ge(S,y),We&24&&(wo=xe[4],E=st(E,We,So,1,xe,wo,P,D,an,hh,null,dh)),We&24&&(Gi=xe[4],Ae(),G=st(G,We,nl,1,xe,Gi,U,R,Pt,mh,null,uh),De()),We&36&&(Co=xe[5],nt=st(nt,We,il,1,xe,Co,Ke,Ge,an,bh,null,ch)),We&36&&(Ki=xe[5],Ae(),Ft=st(Ft,We,ol,1,xe,Ki,nn,gt,Pt,gh,null,fh),De())},i(xe){if(!Fn){for(let We=0;We<Gi.length;We+=1)T(G[We]);T(be. $ $ .fragment,xe),T(vt. $ $ .fragment,xe),T(Mt. $ $ .fragment,xe),T(Ze. $ $ .fragment,xe);for(let We=0;We<Ki.length;We+=1)T(Ft[We]);Fn=!0}},o(xe){for(let We=0;We<G.length;We+=1)F(G[We]);F(be. $ $ .fragment,xe),F(vt. $ $ .fragment,xe),F(Mt. $ $ .fragment,xe),F(Ze. $ $ .fragment,xe);for(let We=0;We<Ft.length;We+=1)F(Ft[We]);Fn=!1},d(xe){xe&&k(e),Vt&&Vt.d(),xe&&k(d),xe&&k(h),xe&&k(x),xe&&k(M),xe&&k(A),xe&&k(O);for(let We=0;We<E.length;We+=1)E[We].d();for(let We=0;We<G.length;We+=1)G[We].d();xe&&k(z),xe&&k(K),xe&&k(Y),xe&&k(W),q(be),q(vt),q(Mt),q(Ze),xe&&k(de),xe&&k(Te),xe&&k(Ue),xe&&k(tt);for(let We=0;We<nt.length;We+=1)nt[We].d();for(let We=0;We<Ft.length;We+=1)Ft[We].d()}}}function e6(n,e,t){let i,{collection:o=new En}=e,r=200,l="JavaScript",s=[],a=[];const f=u=>t(3,l=u.lang),c=u=>t(2,r=u.code);return n. $ $ set=u=>{"collection"in u&&t(0,o=u.collection)},n. $ $ .update=()=>{n. $ $ .dirty&1&&t(1,i=(o==null?void 0:o.listRule)===null),n. $ $ .dirty&3&&o!=null&&o.id&&(s.push({code:200,body:JSON.stringify({page:1,perPage:30,totalItems:2,items:[B.dummyCollectionRecord(o),B.dummyCollectionRecord(o)]},null,2)}),s.push({code:400,body: `
{
"code" : 400 ,
"message" : "Something went wrong while processing your request. Invalid filter." ,
"data" : { }
}
` }),i&&s.push({code:403,body: `
{
"code" : 403 ,
"message" : "Only admins can access this action." ,
"data" : { }
}
` }),s.push({code:404,body: `
{
"code" : 404 ,
"message" : "The requested resource wasn't found." ,
"data" : { }
}
` })),n. $ $ .dirty&1&&t(4,a=[{lang:"JavaScript",code: `
import PocketBase from 'pocketbase' ;
const client = new PocketBase ( "${Se.baseUrl}" ) ;
client . Records . getList ( "${o==null?void 0:o.name}" , { page : 2 } )
. then ( function ( list ) {
// success...
} ) . catch ( function ( error ) {
// error...
} ) ;
// alternatively you can also fetch all records at once via getFullList:
client . Records . getFullList ( "${o==null?void 0:o.name}" , 200 /* batch size */ ) ;
. then ( function ( records ) {
// success...
} ) . catch ( function ( error ) {
// error...
} ) ;
` }])},[o,i,r,l,a,s,f,c]}class t6 extends Ie{constructor(e){super(),Le(this,e,e6,Qx,Ee,{collection:0})}}function _h(n,e,t){const i=n.slice();return i[8]=e[t],i}function vh(n,e,t){const i=n.slice();return i[8]=e[t],i}function yh(n,e,t){const i=n.slice();return i[13]=e[t],i}function kh(n,e,t){const i=n.slice();return i[13]=e[t],i}function wh(n){let e;return{c(){e=g("p"),e.innerHTML="Requires <code>Authorization: Admin TOKEN</code> header",p(e,"class","txt-hint txt-sm txt-right")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Sh(n,e){let t,i=e[13].lang+"",o,r,l,s;function a(){return e[6](e[13])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[3]===e[13].lang),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&16&&i!==(i=e[13].lang+"")&&ge(o,i),c&24&&ne(t,"active",e[3]===e[13].lang)},d(f){f&&k(t),l=!1,s()}}}function Ch(n,e){let t,i,o,r;return i=new tn({props:{content:e[13].code}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[3]===e[13].lang),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&16&&(a.content=e[13].code),i. $ set(a),s&24&&ne(t,"active",e[3]===e[13].lang)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function xh(n,e){let t,i=e[8].code+"",o,r,l,s;function a(){return e[7](e[8])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[8].code),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&36&&ne(t,"active",e[2]===e[8].code)},d(f){f&&k(t),l=!1,s()}}}function Mh(n,e){let t,i,o,r;return i=new tn({props:{content:e[8].body}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[8].code),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l,s&36&&ne(t,"active",e[2]===e[8].code)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function n6(n){let e,t,i,o,r,l,s,a=n[0].name+"",f,c,u,d,h,b,v,_,y,S=n[0].name+"",C,x,M,A,O,D,E,P=[],I=new Map,R,G,U=[],z=new Map,K,Y,W,te,ce,ve,oe,J, $ e,ee,_e,fe,ie,ye,Ne,Pe,ze,se,re,ke,He,qe,Je,be,Oe,Z,ae,Ve,yt,it,bt,at=[],vt=new Map,qt,Mt, $ t=[],me=new Map,Ce,Ye=n[1]&&wh(),ot=n[4];const cn=pe=>pe[13].lang;for(let pe=0;pe<ot.length;pe+=1){let L=kh(n,ot,pe),N=cn(L);I.set(N,P[pe]=Sh(N,L))}let ue=n[4];const we=pe=>pe[13].lang;for(let pe=0;pe<ue.length;pe+=1){let L=yh(n,ue,pe),N=we(L);z.set(N,U[pe]=Ch(N,L))}re=new tn({props:{content: `
? expand = rel1 , rel2 . subrel21 . subrel22
` }});let Ze=n[5];const Kt=pe=>pe[8].code;for(let pe=0;pe<Ze.length;pe+=1){let L=vh(n,Ze,pe),N=Kt(L);vt.set(N,at[pe]=xh(N,L))}let zt=n[5];const ni=pe=>pe[8].code;for(let pe=0;pe<zt.length;pe+=1){let L=_h(n,zt,pe),N=ni(L);me.set(N, $ t[pe]=Mh(N,L))}return{c(){e=g("div"),t=g("strong"),t.textContent="GET",i= $ (),o=g("div"),r=g("p"),l=j("/api/collections/"),s=g("strong"),f=j(a),c=j("/records/"),u=g("strong"),u.textContent=":id",d= $ (),Ye&&Ye.c(),h= $ (),b=g("div"),v=g("p"),_=j("Fetch a single "),y=g("strong"),C=j(S),x=j(" record."),M= $ (),A=g("div"),A.textContent="Client SDKs example",O= $ (),D=g("div"),E=g("div");for(let pe=0;pe<P.length;pe+=1)P[pe].c();R= $ (),G=g("div");for(let pe=0;pe<U.length;pe+=1)U[pe].c();K= $ (),Y=g("div"),Y.textContent="Path Parameters",W= $ (),te=g("table"),te.innerHTML= ` < thead > < tr > < th > Param < / t h >
< th > Type < / t h >
< th width = "60%" > Description < / t h > < / t r > < / t h e a d >
< tbody > < tr > < td > id < / t d >
< td > < span class = "label" > String < / s p a n > < / t d >
< td > ID of the record to view . < / t d > < / t r > < / t b o d y > ` , c e = $ ( ) , v e = g ( " d i v " ) , v e . t e x t C o n t e n t = " Q u e r y p a r a m e t e r s " , o e = $ ( ) , J = g ( " t a b l e " ) , $ e = g ( " t h e a d " ) , $ e . i n n e r H T M L = ` < t r > < t h > P a r a m < / t h >
< th > Type < / t h >
< th width = "60%" > Description < / t h > < / t r > ` , e e = $ ( ) , _ e = g ( " t b o d y " ) , f e = g ( " t r " ) , i e = g ( " t d " ) , i e . t e x t C o n t e n t = " e x p a n d " , y e = $ ( ) , N e = g ( " t d " ) , N e . i n n e r H T M L = ' < s p a n c l a s s = " l a b e l " > S t r i n g < / s p a n > ' , P e = $ ( ) , z e = g ( " t d " ) , s e = j ( ` A u t o e x p a n d n e s t e d r e c o r d r e l a t i o n s . E x . :
` ),V(re. $ $ .fragment),ke=j( `
Supports up to 6 - levels depth nested relations expansion . ` ),He=g("br"),qe=j( `
The expanded relations will be appended to the record under the
` ),Je=g("code"),Je.textContent="@expand",be=j(" property (eg. "),Oe=g("code"),Oe.textContent='"@expand": {"rel1": {...}, ...}',Z=j(")."),ae= $ (),Ve=g("div"),Ve.textContent="Responses",yt= $ (),it=g("div"),bt=g("div");for(let pe=0;pe<at.length;pe+=1)at[pe].c();qt= $ (),Mt=g("div");for(let pe=0;pe< $ t.length;pe+=1) $ t[pe].c();p(t,"class","label label-primary"),p(o,"class","content"),p(e,"class","alert alert-info"),p(b,"class","content m-b-base"),p(A,"class","section-title"),p(E,"class","tabs-header compact left"),p(G,"class","tabs-content"),p(D,"class","tabs m-b-lg"),p(Y,"class","section-title"),p(te,"class","table-compact table-border m-b-lg"),p(ve,"class","section-title"),p(J,"class","table-compact table-border m-b-lg"),p(Ve,"class","section-title"),p(bt,"class","tabs-header compact left"),p(Mt,"class","tabs-content"),p(it,"class","tabs")},m(pe,L){w(pe,e,L),m(e,t),m(e,i),m(e,o),m(o,r),m(r,l),m(r,s),m(s,f),m(r,c),m(r,u),m(e,d),Ye&&Ye.m(e,null),w(pe,h,L),w(pe,b,L),m(b,v),m(v,_),m(v,y),m(y,C),m(v,x),w(pe,M,L),w(pe,A,L),w(pe,O,L),w(pe,D,L),m(D,E);for(let N=0;N<P.length;N+=1)P[N].m(E,null);m(D,R),m(D,G);for(let N=0;N<U.length;N+=1)U[N].m(G,null);w(pe,K,L),w(pe,Y,L),w(pe,W,L),w(pe,te,L),w(pe,ce,L),w(pe,ve,L),w(pe,oe,L),w(pe,J,L),m(J, $ e),m(J,ee),m(J,_e),m(_e,fe),m(fe,ie),m(fe,ye),m(fe,Ne),m(fe,Pe),m(fe,ze),m(ze,se),H(re,ze,null),m(ze,ke),m(ze,He),m(ze,qe),m(ze,Je),m(ze,be),m(ze,Oe),m(ze,Z),w(pe,ae,L),w(pe,Ve,L),w(pe,yt,L),w(pe,it,L),m(it,bt);for(let N=0;N<at.length;N+=1)at[N].m(bt,null);m(it,qt),m(it,Mt);for(let N=0;N< $ t.length;N+=1) $ t[N].m(Mt,null);Ce=!0},p(pe,[L]){(!Ce||L&1)&&a!==(a=pe[0].name+"")&&ge(f,a),pe[1]?Ye||(Ye=wh(),Ye.c(),Ye.m(e,null)):Ye&&(Ye.d(1),Ye=null),(!Ce||L&1)&&S!==(S=pe[0].name+"")&&ge(C,S),L&24&&(ot=pe[4],P=st(P,L,cn,1,pe,ot,I,E,an,Sh,null,kh)),L&24&&(ue=pe[4],Ae(),U=st(U,L,we,1,pe,ue,z,G,Pt,Ch,null,yh),De()),L&36&&(Ze=pe[5],at=st(at,L,Kt,1,pe,Ze,vt,bt,an,xh,null,vh)),L&36&&(zt=pe[5],Ae(), $ t=st( $ t,L,ni,1,pe,zt,me,Mt,Pt,Mh,null,_h),De())},i(pe){if(!Ce){for(let L=0;L<ue.length;L+=1)T(U[L]);T(re. $ $ .fragment,pe);for(let L=0;L<zt.length;L+=1)T( $ t[L]);Ce=!0}},o(pe){for(let L=0;L<U.length;L+=1)F(U[L]);F(re. $ $ .fragment,pe);for(let L=0;L< $ t.length;L+=1)F( $ t[L]);Ce=!1},d(pe){pe&&k(e),Ye&&Ye.d(),pe&&k(h),pe&&k(b),pe&&k(M),pe&&k(A),pe&&k(O),pe&&k(D);for(let L=0;L<P.length;L+=1)P[L].d();for(let L=0;L<U.length;L+=1)U[L].d();pe&&k(K),pe&&k(Y),pe&&k(W),pe&&k(te),pe&&k(ce),pe&&k(ve),pe&&k(oe),pe&&k(J),q(re),pe&&k(ae),pe&&k(Ve),pe&&k(yt),pe&&k(it);for(let L=0;L<at.length;L+=1)at[L].d();for(let L=0;L< $ t.length;L+=1) $ t[L].d()}}}function i6(n,e,t){let i,{collection:o=new En}=e,r=200,l="JavaScript",s=[],a=[];const f=u=>t(3,l=u.lang),c=u=>t(2,r=u.code);return n. $ $ set=u=>{"collection"in u&&t(0,o=u.collection)},n. $ $ .update=()=>{n. $ $ .dirty&1&&t(1,i=(o==null?void 0:o.viewRule)===null),n. $ $ .dirty&3&&o!=null&&o.id&&(s.push({code:200,body:JSON.stringify(B.dummyCollectionRecord(o),null,2)}),i&&s.push({code:403,body: `
{
"code" : 403 ,
"message" : "Only admins can access this action." ,
"data" : { }
}
` }),s.push({code:404,body: `
{
"code" : 404 ,
"message" : "The requested resource wasn't found." ,
"data" : { }
}
` })),n. $ $ .dirty&1&&t(4,a=[{lang:"JavaScript",code: `
import PocketBase from 'pocketbase' ;
const client = new PocketBase ( "${Se.baseUrl}" ) ;
client . Records . getOne ( "${o==null?void 0:o.name}" , "RECORD_ID" )
. then ( function ( record ) {
// success...
} ) . catch ( function ( error ) {
// error...
} ) ;
` }])},[o,i,r,l,a,s,f,c]}class o6 extends Ie{constructor(e){super(),Le(this,e,i6,n6,Ee,{collection:0})}}function $ h(n,e,t){const i=n.slice();return i[8]=e[t],i}function Ah(n,e,t){const i=n.slice();return i[8]=e[t],i}function Dh(n,e,t){const i=n.slice();return i[13]=e[t],i}function Oh(n,e,t){const i=n.slice();return i[16]=e[t],i}function Th(n,e,t){const i=n.slice();return i[16]=e[t],i}function Eh(n){let e;return{c(){e=g("p"),e.innerHTML="Requires <code>Authorization: Admin TOKEN</code> header",p(e,"class","txt-hint txt-sm txt-right")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Ph(n,e){let t,i=e[16].lang+"",o,r,l,s;function a(){return e[6](e[16])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[16].lang),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&16&&i!==(i=e[16].lang+"")&&ge(o,i),c&20&&ne(t,"active",e[2]===e[16].lang)},d(f){f&&k(t),l=!1,s()}}}function Fh(n,e){let t,i,o,r;return i=new tn({props:{content:e[16].code}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[16].lang),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&16&&(a.content=e[16].code),i. $ set(a),s&20&&ne(t,"active",e[2]===e[16].lang)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function r6(n){let e;return{c(){e=g("span"),e.textContent="Optional",p(e,"class","label label-warning")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function l6(n){let e;return{c(){e=g("span"),e.textContent="Required",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function s6(n){var r;let e,t=((r=n[13].options)==null?void 0:r.maxSelect)>1?"ids":"id",i,o;return{c(){e=j("User "),i=j(t),o=j(".")},m(l,s){w(l,e,s),w(l,i,s),w(l,o,s)},p(l,s){var a;s&1&&t!==(t=((a=l[13].options)==null?void 0:a.maxSelect)>1?"ids":"id")&&ge(i,t)},d(l){l&&k(e),l&&k(i),l&&k(o)}}}function a6(n){var r;let e,t=((r=n[13].options)==null?void 0:r.maxSelect)>1?"ids":"id",i,o;return{c(){e=j("Relation record "),i=j(t),o=j(".")},m(l,s){w(l,e,s),w(l,i,s),w(l,o,s)},p(l,s){var a;s&1&&t!==(t=((a=l[13].options)==null?void 0:a.maxSelect)>1?"ids":"id")&&ge(i,t)},d(l){l&&k(e),l&&k(i),l&&k(o)}}}function f6(n){let e,t,i,o,r;return{c(){e=j("FormData object."),t=g("br"),i=j( `
Set to ` ),o=g("code"),o.textContent="null",r=j(" to delete already uploaded file(s).")},m(l,s){w(l,e,s),w(l,t,s),w(l,i,s),w(l,o,s),w(l,r,s)},p:le,d(l){l&&k(e),l&&k(t),l&&k(i),l&&k(o),l&&k(r)}}}function c6(n){let e;return{c(){e=j("URL address.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function u6(n){let e;return{c(){e=j("Email address.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function d6(n){let e;return{c(){e=j("JSON array or object.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function p6(n){let e;return{c(){e=j("Number value.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function h6(n){let e;return{c(){e=j("Plain text value.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Lh(n,e){let t,i,o,r,l,s=e[13].name+"",a,f,c,u,d=B.getFieldValueType(e[13])+"",h,b,v,_;function y(O,D){return O[13].required?l6:r6}let S=y(e),C=S(e);function x(O,D){if(O[13].type==="text")return h6;if(O[13].type==="number")return p6;if(O[13].type==="json")return d6;if(O[13].type==="email")return u6;if(O[13].type==="url")return c6;if(O[13].type==="file")return f6;if(O[13].type==="relation")return a6;if(O[13].type==="user")return s6}let M=x(e),A=M&&M(e);return{key:n,first:null,c(){t=g("tr"),i=g("td"),o=g("div"),C.c(),r= $ (),l=g("span"),a=j(s),f= $ (),c=g("td"),u=g("span"),h=j(d),b= $ (),v=g("td"),A&&A.c(),_= $ (),p(o,"class","inline-flex"),p(u,"class","label"),this.first=t},m(O,D){w(O,t,D),m(t,i),m(i,o),C.m(o,null),m(o,r),m(o,l),m(l,a),m(t,f),m(t,c),m(c,u),m(u,h),m(t,b),m(t,v),A&&A.m(v,null),m(t,_)},p(O,D){e=O,S!==(S=y(e))&&(C.d(1),C=S(e),C&&(C.c(),C.m(o,r))),D&1&&s!==(s=e[13].name+"")&&ge(a,s),D&1&&d!==(d=B.getFieldValueType(e[13])+"")&&ge(h,d),M===(M=x(e))&&A?A.p(e,D):(A&&A.d(1),A=M&&M(e),A&&(A.c(),A.m(v,null)))},d(O){O&&k(t),C.d(),A&&A.d()}}}function Ih(n,e){let t,i=e[8].code+"",o,r,l,s;function a(){return e[7](e[8])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[1]===e[8].code),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&8&&i!==(i=e[8].code+"")&&ge(o,i),c&10&&ne(t,"active",e[1]===e[8].code)},d(f){f&&k(t),l=!1,s()}}}function Rh(n,e){let t,i,o,r;return i=new tn({props:{content:e[8].body}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[1]===e[8].code),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&8&&(a.content=e[8].body),i. $ set(a),s&10&&ne(t,"active",e[1]===e[8].code)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function m6(n){var $ t;let e,t,i,o,r,l,s,a=n[0].name+"",f,c,u,d,h,b,v,_,y=n[0].name+"",S,C,x,M,A,O,D,E,P,I,R,G=[],U=new Map,z,K,Y=[],W=new Map,te,ce,ve,oe,J, $ e,ee,_e=[],fe=new Map,ie,ye,Ne,Pe,ze,se=[],re=new Map,ke,He,qe=[],Je=new Map,be,Oe=n[5]&&Eh(),Z=n[4];const ae=me=>me[16].lang;for(let me=0;me<Z.length;me+=1){let Ce=Th(n,Z,me),Ye=ae(Ce);U.set(Ye,G[me]=Ph(Ye,Ce))}let Ve=n[4];const yt=me=>me[16].lang;for(let me=0;me<Ve.length;me+=1){let Ce=Oh(n,Ve,me),Ye=yt(Ce);W.set(Ye,Y[me]=Fh(Ye,Ce))}let it=( $ t=n[0])==null?void 0: $ t.schema;const bt=me=>me[13].name;for(let me=0;me<it.length;me+=1){let Ce=Dh(n,it,me),Ye=bt(Ce);fe.set(Ye,_e[me]=Lh(Ye,Ce))}let at=n[3];const vt=me=>me[8].code;for(let me=0;me<at.length;me+=1){let Ce=Ah(n,at,me),Ye=vt(Ce);re.set(Ye,se[me]=Ih(Ye,Ce))}let qt=n[3];const Mt=me=>me[8].code;for(let me=0;me<qt.length;me+=1){let Ce= $ h(n,qt,me),Ye=Mt(Ce);Je.set(Ye,qe[me]=Rh(Ye,Ce))}return{c(){e=g("div"),t=g("strong"),t.textContent="POST",i= $ (),o=g("div"),r=g("p"),l=j("/api/collections/"),s=g("strong"),f=j(a),c=j("/records"),u= $ (),Oe&&Oe.c(),d= $ (),h=g("div"),b=g("p"),v=j("Create a new "),_=g("strong"),S=j(y),C=j(" record."),x= $ (),M=g("p"),M.innerHTML= ` Body parameters could be sent as < code > application / json < / c o d e > o r
< code > multipart / form - data < / c o d e > . ` , A = $ ( ) , O = g ( " p " ) , O . i n n e r H T M L = " F i l e u p l o a d i s s u p p o r t e d o n l y v i a < c o d e > m u l t i p a r t / f o r m - d a t a < / c o d e > . " , D = $ ( ) , E = g ( " d i v " ) , E . t e x t C o n t e n t = " C l i e n t S D K s e x a m p l e " , P = $ ( ) , I = g ( " d i v " ) , R = g ( " d i v " ) ; f o r ( l e t m e = 0 ; m e < G . l e n g t h ; m e + = 1 ) G [ m e ] . c ( ) ; z = $ ( ) , K = g ( " d i v " ) ; f o r ( l e t m e = 0 ; m e < Y . l e n g t h ; m e + = 1 ) Y [ m e ] . c ( ) ; t e = $ ( ) , c e = g ( " d i v " ) , c e . t e x t C o n t e n t = " B o d y P a r a m e t e r s " , v e = $ ( ) , o e = g ( " t a b l e " ) , J = g ( " t h e a d " ) , J . i n n e r H T M L = ` < t r > < t h > P a r a m < / t h >
< th > Type < / t h >
< th width = "50%" > Description < / t h > < / t r > ` , $ e = $ ( ) , e e = g ( " t b o d y " ) ; f o r ( l e t m e = 0 ; m e < _ e . l e n g t h ; m e + = 1 ) _ e [ m e ] . c ( ) ; i e = $ ( ) , y e = g ( " d i v " ) , y e . t e x t C o n t e n t = " R e s p o n s e s " , N e = $ ( ) , P e = g ( " d i v " ) , z e = g ( " d i v " ) ; f o r ( l e t m e = 0 ; m e < s e . l e n g t h ; m e + = 1 ) s e [ m e ] . c ( ) ; k e = $ ( ) , H e = g ( " d i v " ) ; f o r ( l e t m e = 0 ; m e < q e . l e n g t h ; m e + = 1 ) q e [ m e ] . c ( ) ; p ( t , " c l a s s " , " l a b e l l a b e l - p r i m a r y " ) , p ( o , " c l a s s " , " c o n t e n t " ) , p ( e , " c l a s s " , " a l e r t a l e r t - s u c c e s s " ) , p ( h , " c l a s s " , " c o n t e n t m - b - b a s e " ) , p ( E , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( R , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( K , " c l a s s " , " t a b s - c o n t e n t " ) , p ( I , " c l a s s " , " t a b s m - b - l g " ) , p ( c e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( o e , " c l a s s " , " t a b l e - c o m p a c t t a b l e - b o r d e r m - b - l g " ) , p ( y e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( z e , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( H e , " c l a s s " , " t a b s - c o n t e n t " ) , p ( P e , " c l a s s " , " t a b s " ) } , m ( m e , C e ) { w ( m e , e , C e ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , m ( o , r ) , m ( r , l ) , m ( r , s ) , m ( s , f ) , m ( r , c ) , m ( e , u ) , O e & & O e . m ( e , n u l l ) , w ( m e , d , C e ) , w ( m e , h , C e ) , m ( h , b ) , m ( b , v ) , m ( b , _ ) , m ( _ , S ) , m ( b , C ) , m ( h , x ) , m ( h , M ) , m ( h , A ) , m ( h , O ) , w ( m e , D , C e ) , w ( m e , E , C e ) , w ( m e , P , C e ) , w ( m e , I , C e ) , m ( I , R ) ; f o r ( l e t Y e = 0 ; Y e < G . l e n g t h ; Y e + = 1 ) G [ Y e ] . m ( R , n u l l ) ; m ( I , z ) , m ( I , K ) ; f o r ( l e t Y e = 0 ; Y e < Y . l e n g t h ; Y e + = 1 ) Y [ Y e ] . m ( K , n u l l ) ; w ( m e , t e , C e ) , w ( m e , c e , C e ) , w ( m e , v e , C e ) , w ( m e , o e , C e ) , m ( o e , J ) , m ( o e , $ e ) , m ( o e , e e ) ; f o r ( l e t Y e = 0 ; Y e < _ e . l e n g t h ; Y e + = 1 ) _ e [ Y e ] . m ( e e , n u l l ) ; w ( m e , i e , C e ) , w ( m e , y e , C e ) , w ( m e , N e , C e ) , w ( m e , P e , C e ) , m ( P e , z e ) ; f o r ( l e t Y e = 0 ; Y e < s e . l e n g t h ; Y e + = 1 ) s e [ Y e ] . m ( z e , n u l l ) ; m ( P e , k e ) , m ( P e , H e ) ; f o r ( l e t Y e = 0 ; Y e < q e . l e n g t h ; Y e + = 1 ) q e [ Y e ] . m ( H e , n u l l ) ; b e = ! 0 } , p ( m e , [ C e ] ) { v a r Y e ; ( ! b e | | C e & 1 ) & & a ! = = ( a = m e [ 0 ] . n a m e + " " ) & & g e ( f , a ) , m e [ 5 ] ? O e | | ( O e = E h ( ) , O e . c ( ) , O e . m ( e , n u l l ) ) : O e & & ( O e . d ( 1 ) , O e = n u l l ) , ( ! b e | | C e & 1 ) & & y ! = = ( y = m e [ 0 ] . n a m e + " " ) & & g e ( S , y ) , C e & 2 0 & & ( Z = m e [ 4 ] , G = s t ( G , C e , a e , 1 , m e , Z , U , R , a n , P h , n u l l , T h ) ) , C e & 2 0 & & ( V e = m e [ 4 ] , A e ( ) , Y = s t ( Y , C e , y t , 1 , m e , V e , W , K , P t , F h , n u l l , O h ) , D e ( ) ) , C e & 1 & & ( i t = ( Y e = m e [ 0 ] ) = = n u l l ? v o i d 0 : Y e . s c h e m a , _ e = s t ( _ e , C e , b t , 1 , m e , i t , f e , e e , a n , L h , n u l l , D h ) ) , C e & 1 0 & & ( a t = m e [ 3 ] , s e = s t ( s e , C e , v t , 1 , m e , a t , r e , z e , a n , I h , n u l l , A h ) ) , C e & 1 0 & & ( q t = m e [ 3 ] , A e ( ) , q e = s t ( q e , C e , M t , 1 , m e , q t , J e , H e , P t , R h , n u l l , $ h ) , D e ( ) ) } , i ( m e ) { i f ( ! b e ) { f o r ( l e t C e = 0 ; C e < V e . l e n g t h ; C e + = 1 ) T ( Y [ C e ] ) ; f o r ( l e t C e = 0 ; C e < q t . l e n g t h ; C e + = 1 ) T ( q e [ C e ] ) ; b e = ! 0 } } , o ( m e ) { f o r ( l e t C e = 0 ; C e < Y . l e n g t h ; C e + = 1 ) F ( Y [ C e ] ) ; f o r ( l e t C e = 0 ; C e < q e . l e n g t h ; C e + = 1 ) F ( q e [ C e ] ) ; b e = ! 1 } , d ( m e ) { m e & & k ( e ) , O e & & O e . d ( ) , m e & & k ( d ) , m e & & k ( h ) , m e & & k ( D ) , m e & & k ( E ) , m e & & k ( P ) , m e & & k ( I ) ; f o r ( l e t C e = 0 ; C e < G . l e n g t h ; C e + = 1 ) G [ C e ] . d ( ) ; f o r ( l e t C e = 0 ; C e < Y . l e n g t h ; C e + = 1 ) Y [ C e ] . d ( ) ; m e & & k ( t e ) , m e & & k ( c e ) , m e & & k ( v e ) , m e & & k ( o e ) ; f o r ( l e t C e = 0 ; C e < _ e . l e n g t h ; C e + = 1 ) _ e [ C e ] . d ( ) ; m e & & k ( i e ) , m e & & k ( y e ) , m e & & k ( N e ) , m e & & k ( P e ) ; f o r ( l e t C e = 0 ; C e < s e . l e n g t h ; C e + = 1 ) s e [ C e ] . d ( ) ; f o r ( l e t C e = 0 ; C e < q e . l e n g t h ; C e + = 1 ) q e [ C e ] . d ( ) } } } f u n c t i o n b 6 ( n , e , t ) { l e t i , { c o l l e c t i o n : o = n e w E n } = e , r = 2 0 0 , l = " J a v a S c r i p t " , s = [ ] , a = [ ] ; c o n s t f = u = > t ( 2 , l = u . l a n g ) , c = u = > t ( 1 , r = u . c o d e ) ; r e t u r n n . $ $ s e t = u = > { " c o l l e c t i o n " i n u & & t ( 0 , o = u . c o l l e c t i o n ) } , n . $ $ . u p d a t e = ( ) = > { v a r u , d ; n . $ $ . d i r t y & 1 & & t ( 5 , i = ( o = = n u l l ? v o i d 0 : o . c r e a t e R u l e ) = = = n u l l ) , n . $ $ . d i r t y & 1 & & t ( 3 , s = [ { c o d e : 2 0 0 , b o d y : J S O N . s t r i n g i f y ( B . d u m m y C o l l e c t i o n R e c o r d ( o ) , n u l l , 2 ) } , { c o d e : 4 0 0 , b o d y : `
{
"code" : 400 ,
"message" : "Failed to create record." ,
"data" : {
"${(d=(u=o==null?void 0:o.schema)==null?void 0:u[0])==null?void 0:d.name}" : {
"code" : "validation_required" ,
"message" : "Missing required value."
}
}
}
` },{code:403,body: `
{
"code" : 403 ,
"message" : "You are not allowed to perform this request." ,
"data" : { }
}
` }]),n. $ $ .dirty&1&&t(4,a=[{lang:"JavaScript",code: `
import PocketBase from 'pocketbase' ;
const client = new PocketBase ( "${Se.baseUrl}" ) ;
const data = { ... } ;
client . Records . create ( "${o==null?void 0:o.name}" , data )
. then ( function ( record ) {
// success...
} ) . catch ( function ( error ) {
// error...
} ) ;
` }])},[o,r,l,s,a,i,f,c]}class g6 extends Ie{constructor(e){super(),Le(this,e,b6,m6,Ee,{collection:0})}}function Nh(n,e,t){const i=n.slice();return i[8]=e[t],i}function jh(n,e,t){const i=n.slice();return i[8]=e[t],i}function zh(n,e,t){const i=n.slice();return i[13]=e[t],i}function Hh(n,e,t){const i=n.slice();return i[16]=e[t],i}function qh(n,e,t){const i=n.slice();return i[16]=e[t],i}function Vh(n){let e;return{c(){e=g("p"),e.innerHTML="Requires <code>Authorization: Admin TOKEN</code> header",p(e,"class","txt-hint txt-sm txt-right")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Bh(n,e){let t,i=e[16].lang+"",o,r,l,s;function a(){return e[6](e[16])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[16].lang),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&16&&i!==(i=e[16].lang+"")&&ge(o,i),c&20&&ne(t,"active",e[2]===e[16].lang)},d(f){f&&k(t),l=!1,s()}}}function Uh(n,e){let t,i,o,r;return i=new tn({props:{content:e[16].code}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[16].lang),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&16&&(a.content=e[16].code),i. $ set(a),s&20&&ne(t,"active",e[2]===e[16].lang)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function _6(n){let e;return{c(){e=g("span"),e.textContent="Optional",p(e,"class","label label-warning")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function v6(n){let e;return{c(){e=g("span"),e.textContent="Required",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function y6(n){var r;let e,t=((r=n[13].options)==null?void 0:r.maxSelect)>1?"ids":"id",i,o;return{c(){e=j("User "),i=j(t),o=j(".")},m(l,s){w(l,e,s),w(l,i,s),w(l,o,s)},p(l,s){var a;s&1&&t!==(t=((a=l[13].options)==null?void 0:a.maxSelect)>1?"ids":"id")&&ge(i,t)},d(l){l&&k(e),l&&k(i),l&&k(o)}}}function k6(n){var r;let e,t=((r=n[13].options)==null?void 0:r.maxSelect)>1?"ids":"id",i,o;return{c(){e=j("Relation record "),i=j(t),o=j(".")},m(l,s){w(l,e,s),w(l,i,s),w(l,o,s)},p(l,s){var a;s&1&&t!==(t=((a=l[13].options)==null?void 0:a.maxSelect)>1?"ids":"id")&&ge(i,t)},d(l){l&&k(e),l&&k(i),l&&k(o)}}}function w6(n){let e,t,i,o,r;return{c(){e=j("FormData object."),t=g("br"),i=j( `
Set to ` ),o=g("code"),o.textContent="null",r=j(" to delete already uploaded file(s).")},m(l,s){w(l,e,s),w(l,t,s),w(l,i,s),w(l,o,s),w(l,r,s)},p:le,d(l){l&&k(e),l&&k(t),l&&k(i),l&&k(o),l&&k(r)}}}function S6(n){let e;return{c(){e=j("URL address.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function C6(n){let e;return{c(){e=j("Email address.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function x6(n){let e;return{c(){e=j("JSON array or object.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function M6(n){let e;return{c(){e=j("Number value.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function $ 6(n){let e;return{c(){e=j("Plain text value.")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Wh(n,e){let t,i,o,r,l,s=e[13].name+"",a,f,c,u,d=B.getFieldValueType(e[13])+"",h,b,v,_;function y(O,D){return O[13].required?v6:_6}let S=y(e),C=S(e);function x(O,D){if(O[13].type==="text")return $ 6;if(O[13].type==="number")return M6;if(O[13].type==="json")return x6;if(O[13].type==="email")return C6;if(O[13].type==="url")return S6;if(O[13].type==="file")return w6;if(O[13].type==="relation")return k6;if(O[13].type==="user")return y6}let M=x(e),A=M&&M(e);return{key:n,first:null,c(){t=g("tr"),i=g("td"),o=g("div"),C.c(),r= $ (),l=g("span"),a=j(s),f= $ (),c=g("td"),u=g("span"),h=j(d),b= $ (),v=g("td"),A&&A.c(),_= $ (),p(o,"class","inline-flex"),p(u,"class","label"),this.first=t},m(O,D){w(O,t,D),m(t,i),m(i,o),C.m(o,null),m(o,r),m(o,l),m(l,a),m(t,f),m(t,c),m(c,u),m(u,h),m(t,b),m(t,v),A&&A.m(v,null),m(t,_)},p(O,D){e=O,S!==(S=y(e))&&(C.d(1),C=S(e),C&&(C.c(),C.m(o,r))),D&1&&s!==(s=e[13].name+"")&&ge(a,s),D&1&&d!==(d=B.getFieldValueType(e[13])+"")&&ge(h,d),M===(M=x(e))&&A?A.p(e,D):(A&&A.d(1),A=M&&M(e),A&&(A.c(),A.m(v,null)))},d(O){O&&k(t),C.d(),A&&A.d()}}}function Yh(n,e){let t,i=e[8].code+"",o,r,l,s;function a(){return e[7](e[8])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[1]===e[8].code),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&8&&i!==(i=e[8].code+"")&&ge(o,i),c&10&&ne(t,"active",e[1]===e[8].code)},d(f){f&&k(t),l=!1,s()}}}function Gh(n,e){let t,i,o,r;return i=new tn({props:{content:e[8].body}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[1]===e[8].code),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&8&&(a.content=e[8].body),i. $ set(a),s&10&&ne(t,"active",e[1]===e[8].code)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function A6(n){var cn;let e,t,i,o,r,l,s,a=n[0].name+"",f,c,u,d,h,b,v,_,y,S=n[0].name+"",C,x,M,A,O,D,E,P,I,R,G,U=[],z=new Map,K,Y,W=[],te=new Map,ce,ve,oe,J, $ e,ee,_e,fe,ie,ye,Ne,Pe=[],ze=new Map,se,re,ke,He,qe,Je=[],be=new Map,Oe,Z,ae=[],Ve=new Map,yt,it=n[5]&&Vh(),bt=n[4];const at=ue=>ue[16].lang;for(let ue=0;ue<bt.length;ue+=1){let we=qh(n,bt,ue),Ze=at(we);z.set(Ze,U[ue]=Bh(Ze,we))}let vt=n[4];const qt=ue=>ue[16].lang;for(let ue=0;ue<vt.length;ue+=1){let we=Hh(n,vt,ue),Ze=qt(we);te.set(Ze,W[ue]=Uh(Ze,we))}let Mt=(cn=n[0])==null?void 0:cn.schema;const $ t=ue=>ue[13].name;for(let ue=0;ue<Mt.length;ue+=1){let we=zh(n,Mt,ue),Ze= $ t(we);ze.set(Ze,Pe[ue]=Wh(Ze,we))}let me=n[3];const Ce=ue=>ue[8].code;for(let ue=0;ue<me.length;ue+=1){let we=jh(n,me,ue),Ze=Ce(we);be.set(Ze,Je[ue]=Yh(Ze,we))}let Ye=n[3];const ot=ue=>ue[8].code;for(let ue=0;ue<Ye.length;ue+=1){let we=Nh(n,Ye,ue),Ze=ot(we);Ve.set(Ze,ae[ue]=Gh(Ze,we))}return{c(){e=g("div"),t=g("strong"),t.textContent="PATCH",i= $ (),o=g("div"),r=g("p"),l=j("/api/collections/"),s=g("strong"),f=j(a),c=j("/records/"),u=g("strong"),u.textContent=":id",d= $ (),it&&it.c(),h= $ (),b=g("div"),v=g("p"),_=j("Update a single "),y=g("strong"),C=j(S),x=j(" record."),M= $ (),A=g("p"),A.innerHTML= ` Body parameters could be sent as < code > application / json < / c o d e > o r
< code > multipart / form - data < / c o d e > . ` , O = $ ( ) , D = g ( " p " ) , D . i n n e r H T M L = " F i l e u p l o a d i s s u p p o r t e d o n l y v i a < c o d e > m u l t i p a r t / f o r m - d a t a < / c o d e > . " , E = $ ( ) , P = g ( " d i v " ) , P . t e x t C o n t e n t = " C l i e n t S D K s e x a m p l e " , I = $ ( ) , R = g ( " d i v " ) , G = g ( " d i v " ) ; f o r ( l e t u e = 0 ; u e < U . l e n g t h ; u e + = 1 ) U [ u e ] . c ( ) ; K = $ ( ) , Y = g ( " d i v " ) ; f o r ( l e t u e = 0 ; u e < W . l e n g t h ; u e + = 1 ) W [ u e ] . c ( ) ; c e = $ ( ) , v e = g ( " d i v " ) , v e . t e x t C o n t e n t = " P a t h p a r a m e t e r s " , o e = $ ( ) , J = g ( " t a b l e " ) , J . i n n e r H T M L = ` < t h e a d > < t r > < t h > P a r a m < / t h >
< th > Type < / t h >
< th width = "60%" > Description < / t h > < / t r > < / t h e a d >
< tbody > < tr > < td > id < / t d >
< td > < span class = "label" > String < / s p a n > < / t d >
< td > ID of the record to update . < / t d > < / t r > < / t b o d y > ` , $ e = $ ( ) , e e = g ( " d i v " ) , e e . t e x t C o n t e n t = " B o d y P a r a m e t e r s " , _ e = $ ( ) , f e = g ( " t a b l e " ) , i e = g ( " t h e a d " ) , i e . i n n e r H T M L = ` < t r > < t h > P a r a m < / t h >
< th width = "60%" > Type < / t h >
< th width = "50%" > Description < / t h > < / t r > ` , y e = $ ( ) , N e = g ( " t b o d y " ) ; f o r ( l e t u e = 0 ; u e < P e . l e n g t h ; u e + = 1 ) P e [ u e ] . c ( ) ; s e = $ ( ) , r e = g ( " d i v " ) , r e . t e x t C o n t e n t = " R e s p o n s e s " , k e = $ ( ) , H e = g ( " d i v " ) , q e = g ( " d i v " ) ; f o r ( l e t u e = 0 ; u e < J e . l e n g t h ; u e + = 1 ) J e [ u e ] . c ( ) ; O e = $ ( ) , Z = g ( " d i v " ) ; f o r ( l e t u e = 0 ; u e < a e . l e n g t h ; u e + = 1 ) a e [ u e ] . c ( ) ; p ( t , " c l a s s " , " l a b e l l a b e l - p r i m a r y " ) , p ( o , " c l a s s " , " c o n t e n t " ) , p ( e , " c l a s s " , " a l e r t a l e r t - w a r n i n g " ) , p ( b , " c l a s s " , " c o n t e n t m - b - b a s e " ) , p ( P , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( G , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( Y , " c l a s s " , " t a b s - c o n t e n t " ) , p ( R , " c l a s s " , " t a b s m - b - l g " ) , p ( v e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( J , " c l a s s " , " t a b l e - c o m p a c t t a b l e - b o r d e r m - b - l g " ) , p ( e e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( f e , " c l a s s " , " t a b l e - c o m p a c t t a b l e - b o r d e r m - b - l g " ) , p ( r e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( q e , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( Z , " c l a s s " , " t a b s - c o n t e n t " ) , p ( H e , " c l a s s " , " t a b s " ) } , m ( u e , w e ) { w ( u e , e , w e ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , m ( o , r ) , m ( r , l ) , m ( r , s ) , m ( s , f ) , m ( r , c ) , m ( r , u ) , m ( e , d ) , i t & & i t . m ( e , n u l l ) , w ( u e , h , w e ) , w ( u e , b , w e ) , m ( b , v ) , m ( v , _ ) , m ( v , y ) , m ( y , C ) , m ( v , x ) , m ( b , M ) , m ( b , A ) , m ( b , O ) , m ( b , D ) , w ( u e , E , w e ) , w ( u e , P , w e ) , w ( u e , I , w e ) , w ( u e , R , w e ) , m ( R , G ) ; f o r ( l e t Z e = 0 ; Z e < U . l e n g t h ; Z e + = 1 ) U [ Z e ] . m ( G , n u l l ) ; m ( R , K ) , m ( R , Y ) ; f o r ( l e t Z e = 0 ; Z e < W . l e n g t h ; Z e + = 1 ) W [ Z e ] . m ( Y , n u l l ) ; w ( u e , c e , w e ) , w ( u e , v e , w e ) , w ( u e , o e , w e ) , w ( u e , J , w e ) , w ( u e , $ e , w e ) , w ( u e , e e , w e ) , w ( u e , _ e , w e ) , w ( u e , f e , w e ) , m ( f e , i e ) , m ( f e , y e ) , m ( f e , N e ) ; f o r ( l e t Z e = 0 ; Z e < P e . l e n g t h ; Z e + = 1 ) P e [ Z e ] . m ( N e , n u l l ) ; w ( u e , s e , w e ) , w ( u e , r e , w e ) , w ( u e , k e , w e ) , w ( u e , H e , w e ) , m ( H e , q e ) ; f o r ( l e t Z e = 0 ; Z e < J e . l e n g t h ; Z e + = 1 ) J e [ Z e ] . m ( q e , n u l l ) ; m ( H e , O e ) , m ( H e , Z ) ; f o r ( l e t Z e = 0 ; Z e < a e . l e n g t h ; Z e + = 1 ) a e [ Z e ] . m ( Z , n u l l ) ; y t = ! 0 } , p ( u e , [ w e ] ) { v a r Z e ; ( ! y t | | w e & 1 ) & & a ! = = ( a = u e [ 0 ] . n a m e + " " ) & & g e ( f , a ) , u e [ 5 ] ? i t | | ( i t = V h ( ) , i t . c ( ) , i t . m ( e , n u l l ) ) : i t & & ( i t . d ( 1 ) , i t = n u l l ) , ( ! y t | | w e & 1 ) & & S ! = = ( S = u e [ 0 ] . n a m e + " " ) & & g e ( C , S ) , w e & 2 0 & & ( b t = u e [ 4 ] , U = s t ( U , w e , a t , 1 , u e , b t , z , G , a n , B h , n u l l , q h ) ) , w e & 2 0 & & ( v t = u e [ 4 ] , A e ( ) , W = s t ( W , w e , q t , 1 , u e , v t , t e , Y , P t , U h , n u l l , H h ) , D e ( ) ) , w e & 1 & & ( M t = ( Z e = u e [ 0 ] ) = = n u l l ? v o i d 0 : Z e . s c h e m a , P e = s t ( P e , w e , $ t , 1 , u e , M t , z e , N e , a n , W h , n u l l , z h ) ) , w e & 1 0 & & ( m e = u e [ 3 ] , J e = s t ( J e , w e , C e , 1 , u e , m e , b e , q e , a n , Y h , n u l l , j h ) ) , w e & 1 0 & & ( Y e = u e [ 3 ] , A e ( ) , a e = s t ( a e , w e , o t , 1 , u e , Y e , V e , Z , P t , G h , n u l l , N h ) , D e ( ) ) } , i ( u e ) { i f ( ! y t ) { f o r ( l e t w e = 0 ; w e < v t . l e n g t h ; w e + = 1 ) T ( W [ w e ] ) ; f o r ( l e t w e = 0 ; w e < Y e . l e n g t h ; w e + = 1 ) T ( a e [ w e ] ) ; y t = ! 0 } } , o ( u e ) { f o r ( l e t w e = 0 ; w e < W . l e n g t h ; w e + = 1 ) F ( W [ w e ] ) ; f o r ( l e t w e = 0 ; w e < a e . l e n g t h ; w e + = 1 ) F ( a e [ w e ] ) ; y t = ! 1 } , d ( u e ) { u e & & k ( e ) , i t & & i t . d ( ) , u e & & k ( h ) , u e & & k ( b ) , u e & & k ( E ) , u e & & k ( P ) , u e & & k ( I ) , u e & & k ( R ) ; f o r ( l e t w e = 0 ; w e < U . l e n g t h ; w e + = 1 ) U [ w e ] . d ( ) ; f o r ( l e t w e = 0 ; w e < W . l e n g t h ; w e + = 1 ) W [ w e ] . d ( ) ; u e & & k ( c e ) , u e & & k ( v e ) , u e & & k ( o e ) , u e & & k ( J ) , u e & & k ( $ e ) , u e & & k ( e e ) , u e & & k ( _ e ) , u e & & k ( f e ) ; f o r ( l e t w e = 0 ; w e < P e . l e n g t h ; w e + = 1 ) P e [ w e ] . d ( ) ; u e & & k ( s e ) , u e & & k ( r e ) , u e & & k ( k e ) , u e & & k ( H e ) ; f o r ( l e t w e = 0 ; w e < J e . l e n g t h ; w e + = 1 ) J e [ w e ] . d ( ) ; f o r ( l e t w e = 0 ; w e < a e . l e n g t h ; w e + = 1 ) a e [ w e ] . d ( ) } } } f u n c t i o n D 6 ( n , e , t ) { l e t i , { c o l l e c t i o n : o = n e w E n } = e , r = 2 0 0 , l = " J a v a S c r i p t " , s = [ ] , a = [ ] ; c o n s t f = u = > t ( 2 , l = u . l a n g ) , c = u = > t ( 1 , r = u . c o d e ) ; r e t u r n n . $ $ s e t = u = > { " c o l l e c t i o n " i n u & & t ( 0 , o = u . c o l l e c t i o n ) } , n . $ $ . u p d a t e = ( ) = > { v a r u , d ; n . $ $ . d i r t y & 1 & & t ( 5 , i = ( o = = n u l l ? v o i d 0 : o . u p d a t e R u l e ) = = = n u l l ) , n . $ $ . d i r t y & 1 & & t ( 3 , s = [ { c o d e : 2 0 0 , b o d y : J S O N . s t r i n g i f y ( B . d u m m y C o l l e c t i o n R e c o r d ( o ) , n u l l , 2 ) } , { c o d e : 4 0 0 , b o d y : `
{
"code" : 400 ,
"message" : "Failed to update record." ,
"data" : {
"${(d=(u=o==null?void 0:o.schema)==null?void 0:u[0])==null?void 0:d.name}" : {
"code" : "validation_required" ,
"message" : "Missing required value."
}
}
}
` },{code:403,body: `
{
"code" : 403 ,
"message" : "You are not allowed to perform this request." ,
"data" : { }
}
` },{code:404,body: `
{
"code" : 404 ,
"message" : "The requested resource wasn't found." ,
"data" : { }
}
` }]),n. $ $ .dirty&1&&t(4,a=[{lang:"JavaScript",code: `
import PocketBase from 'pocketbase' ;
const client = new PocketBase ( "${Se.baseUrl}" ) ;
const data = { ... } ;
client . Records . update ( "${o==null?void 0:o.name}" , "RECORD_ID" , data )
. then ( function ( record ) {
// success...
} ) . catch ( function ( error ) {
// error...
} ) ;
` }])},[o,r,l,s,a,i,f,c]}class O6 extends Ie{constructor(e){super(),Le(this,e,D6,A6,Ee,{collection:0})}}function Kh(n,e,t){const i=n.slice();return i[8]=e[t],i}function Jh(n,e,t){const i=n.slice();return i[8]=e[t],i}function Zh(n,e,t){const i=n.slice();return i[13]=e[t],i}function Xh(n,e,t){const i=n.slice();return i[13]=e[t],i}function Qh(n){let e;return{c(){e=g("p"),e.innerHTML="Requires <code>Authorization: Admin TOKEN</code> header",p(e,"class","txt-hint txt-sm txt-right")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function em(n,e){let t,i=e[13].lang+"",o,r,l,s;function a(){return e[6](e[13])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[3]===e[13].lang),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&16&&i!==(i=e[13].lang+"")&&ge(o,i),c&24&&ne(t,"active",e[3]===e[13].lang)},d(f){f&&k(t),l=!1,s()}}}function tm(n,e){let t,i,o,r;return i=new tn({props:{content:e[13].code}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[3]===e[13].lang),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&16&&(a.content=e[13].code),i. $ set(a),s&24&&ne(t,"active",e[3]===e[13].lang)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function nm(n,e){let t,i=e[8].code+"",o,r,l,s;function a(){return e[7](e[8])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[8].code),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&36&&ne(t,"active",e[2]===e[8].code)},d(f){f&&k(t),l=!1,s()}}}function im(n,e){let t,i,o,r;return i=new tn({props:{content:e[8].body}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[2]===e[8].code),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l,s&36&&ne(t,"active",e[2]===e[8].code)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function T6(n){let e,t,i,o,r,l,s,a=n[0].name+"",f,c,u,d,h,b,v,_,y,S=n[0].name+"",C,x,M,A,O,D,E,P=[],I=new Map,R,G,U=[],z=new Map,K,Y,W,te,ce,ve,oe,J, $ e,ee=[],_e=new Map,fe,ie,ye=[],Ne=new Map,Pe,ze=n[1]&&Qh(),se=n[4];const re=Z=>Z[13].lang;for(let Z=0;Z<se.length;Z+=1){let ae=Xh(n,se,Z),Ve=re(ae);I.set(Ve,P[Z]=em(Ve,ae))}let ke=n[4];const He=Z=>Z[13].lang;for(let Z=0;Z<ke.length;Z+=1){let ae=Zh(n,ke,Z),Ve=He(ae);z.set(Ve,U[Z]=tm(Ve,ae))}let qe=n[5];const Je=Z=>Z[8].code;for(let Z=0;Z<qe.length;Z+=1){let ae=Jh(n,qe,Z),Ve=Je(ae);_e.set(Ve,ee[Z]=nm(Ve,ae))}let be=n[5];const Oe=Z=>Z[8].code;for(let Z=0;Z<be.length;Z+=1){let ae=Kh(n,be,Z),Ve=Oe(ae);Ne.set(Ve,ye[Z]=im(Ve,ae))}return{c(){e=g("div"),t=g("strong"),t.textContent="DELETE",i= $ (),o=g("div"),r=g("p"),l=j("/api/collections/"),s=g("strong"),f=j(a),c=j("/records/"),u=g("strong"),u.textContent=":id",d= $ (),ze&&ze.c(),h= $ (),b=g("div"),v=g("p"),_=j("Delete a single "),y=g("strong"),C=j(S),x=j(" record."),M= $ (),A=g("div"),A.textContent="Client SDKs example",O= $ (),D=g("div"),E=g("div");for(let Z=0;Z<P.length;Z+=1)P[Z].c();R= $ (),G=g("div");for(let Z=0;Z<U.length;Z+=1)U[Z].c();K= $ (),Y=g("div"),Y.textContent="Path parameters",W= $ (),te=g("table"),te.innerHTML= ` < thead > < tr > < th > Param < / t h >
< th > Type < / t h >
< th width = "60%" > Description < / t h > < / t r > < / t h e a d >
< tbody > < tr > < td > id < / t d >
< td > < span class = "label" > String < / s p a n > < / t d >
< td > ID of the record to delete . < / t d > < / t r > < / t b o d y > ` , c e = $ ( ) , v e = g ( " d i v " ) , v e . t e x t C o n t e n t = " R e s p o n s e s " , o e = $ ( ) , J = g ( " d i v " ) , $ e = g ( " d i v " ) ; f o r ( l e t Z = 0 ; Z < e e . l e n g t h ; Z + = 1 ) e e [ Z ] . c ( ) ; f e = $ ( ) , i e = g ( " d i v " ) ; f o r ( l e t Z = 0 ; Z < y e . l e n g t h ; Z + = 1 ) y e [ Z ] . c ( ) ; p ( t , " c l a s s " , " l a b e l l a b e l - p r i m a r y " ) , p ( o , " c l a s s " , " c o n t e n t " ) , p ( e , " c l a s s " , " a l e r t a l e r t - d a n g e r " ) , p ( b , " c l a s s " , " c o n t e n t m - b - b a s e " ) , p ( A , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( E , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( G , " c l a s s " , " t a b s - c o n t e n t " ) , p ( D , " c l a s s " , " t a b s m - b - l g " ) , p ( Y , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( t e , " c l a s s " , " t a b l e - c o m p a c t t a b l e - b o r d e r m - b - l g " ) , p ( v e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( $ e , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( i e , " c l a s s " , " t a b s - c o n t e n t " ) , p ( J , " c l a s s " , " t a b s " ) } , m ( Z , a e ) { w ( Z , e , a e ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , m ( o , r ) , m ( r , l ) , m ( r , s ) , m ( s , f ) , m ( r , c ) , m ( r , u ) , m ( e , d ) , z e & & z e . m ( e , n u l l ) , w ( Z , h , a e ) , w ( Z , b , a e ) , m ( b , v ) , m ( v , _ ) , m ( v , y ) , m ( y , C ) , m ( v , x ) , w ( Z , M , a e ) , w ( Z , A , a e ) , w ( Z , O , a e ) , w ( Z , D , a e ) , m ( D , E ) ; f o r ( l e t V e = 0 ; V e < P . l e n g t h ; V e + = 1 ) P [ V e ] . m ( E , n u l l ) ; m ( D , R ) , m ( D , G ) ; f o r ( l e t V e = 0 ; V e < U . l e n g t h ; V e + = 1 ) U [ V e ] . m ( G , n u l l ) ; w ( Z , K , a e ) , w ( Z , Y , a e ) , w ( Z , W , a e ) , w ( Z , t e , a e ) , w ( Z , c e , a e ) , w ( Z , v e , a e ) , w ( Z , o e , a e ) , w ( Z , J , a e ) , m ( J , $ e ) ; f o r ( l e t V e = 0 ; V e < e e . l e n g t h ; V e + = 1 ) e e [ V e ] . m ( $ e , n u l l ) ; m ( J , f e ) , m ( J , i e ) ; f o r ( l e t V e = 0 ; V e < y e . l e n g t h ; V e + = 1 ) y e [ V e ] . m ( i e , n u l l ) ; P e = ! 0 } , p ( Z , [ a e ] ) { ( ! P e | | a e & 1 ) & & a ! = = ( a = Z [ 0 ] . n a m e + " " ) & & g e ( f , a ) , Z [ 1 ] ? z e | | ( z e = Q h ( ) , z e . c ( ) , z e . m ( e , n u l l ) ) : z e & & ( z e . d ( 1 ) , z e = n u l l ) , ( ! P e | | a e & 1 ) & & S ! = = ( S = Z [ 0 ] . n a m e + " " ) & & g e ( C , S ) , a e & 2 4 & & ( s e = Z [ 4 ] , P = s t ( P , a e , r e , 1 , Z , s e , I , E , a n , e m , n u l l , X h ) ) , a e & 2 4 & & ( k e = Z [ 4 ] , A e ( ) , U = s t ( U , a e , H e , 1 , Z , k e , z , G , P t , t m , n u l l , Z h ) , D e ( ) ) , a e & 3 6 & & ( q e = Z [ 5 ] , e e = s t ( e e , a e , J e , 1 , Z , q e , _ e , $ e , a n , n m , n u l l , J h ) ) , a e & 3 6 & & ( b e = Z [ 5 ] , A e ( ) , y e = s t ( y e , a e , O e , 1 , Z , b e , N e , i e , P t , i m , n u l l , K h ) , D e ( ) ) } , i ( Z ) { i f ( ! P e ) { f o r ( l e t a e = 0 ; a e < k e . l e n g t h ; a e + = 1 ) T ( U [ a e ] ) ; f o r ( l e t a e = 0 ; a e < b e . l e n g t h ; a e + = 1 ) T ( y e [ a e ] ) ; P e = ! 0 } } , o ( Z ) { f o r ( l e t a e = 0 ; a e < U . l e n g t h ; a e + = 1 ) F ( U [ a e ] ) ; f o r ( l e t a e = 0 ; a e < y e . l e n g t h ; a e + = 1 ) F ( y e [ a e ] ) ; P e = ! 1 } , d ( Z ) { Z & & k ( e ) , z e & & z e . d ( ) , Z & & k ( h ) , Z & & k ( b ) , Z & & k ( M ) , Z & & k ( A ) , Z & & k ( O ) , Z & & k ( D ) ; f o r ( l e t a e = 0 ; a e < P . l e n g t h ; a e + = 1 ) P [ a e ] . d ( ) ; f o r ( l e t a e = 0 ; a e < U . l e n g t h ; a e + = 1 ) U [ a e ] . d ( ) ; Z & & k ( K ) , Z & & k ( Y ) , Z & & k ( W ) , Z & & k ( t e ) , Z & & k ( c e ) , Z & & k ( v e ) , Z & & k ( o e ) , Z & & k ( J ) ; f o r ( l e t a e = 0 ; a e < e e . l e n g t h ; a e + = 1 ) e e [ a e ] . d ( ) ; f o r ( l e t a e = 0 ; a e < y e . l e n g t h ; a e + = 1 ) y e [ a e ] . d ( ) } } } f u n c t i o n E 6 ( n , e , t ) { l e t i , { c o l l e c t i o n : o = n e w E n } = e , r = 2 0 4 , l = " J a v a S c r i p t " , s = [ ] , a = [ ] ; c o n s t f = u = > t ( 3 , l = u . l a n g ) , c = u = > t ( 2 , r = u . c o d e ) ; r e t u r n n . $ $ s e t = u = > { " c o l l e c t i o n " i n u & & t ( 0 , o = u . c o l l e c t i o n ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 1 , i = ( o = = n u l l ? v o i d 0 : o . d e l e t e R u l e ) = = = n u l l ) , n . $ $ . d i r t y & 3 & & o ! = n u l l & & o . i d & & ( s . p u s h ( { c o d e : 2 0 4 , b o d y : `
null
` }),s.push({code:400,body: `
{
"code" : 400 ,
"message" : "Failed to delete record. Make sure that the record is not part of a required relation reference." ,
"data" : { }
}
` }),i&&s.push({code:403,body: `
{
"code" : 403 ,
"message" : "Only admins can access this action." ,
"data" : { }
}
` }),s.push({code:404,body: `
{
"code" : 404 ,
"message" : "The requested resource wasn't found." ,
"data" : { }
}
` })),n. $ $ .dirty&1&&t(4,a=[{lang:"JavaScript",code: `
import PocketBase from 'pocketbase' ;
const client = new PocketBase ( "${Se.baseUrl}" ) ;
client . Records . delete ( "${o==null?void 0:o.name}" , "RECORD_ID" )
. then ( function ( ) {
// success...
} ) . catch ( function ( error ) {
// error...
} ) ;
` }])},[o,i,r,l,a,s,f,c]}class P6 extends Ie{constructor(e){super(),Le(this,e,E6,T6,Ee,{collection:0})}}function om(n,e,t){const i=n.slice();return i[4]=e[t],i}function rm(n,e,t){const i=n.slice();return i[4]=e[t],i}function lm(n,e){let t,i=e[4].lang+"",o,r,l,s;function a(){return e[3](e[4])}return{key:n,first:null,c(){t=g("button"),o=j(i),r= $ (),p(t,"class","tab-item"),ne(t,"active",e[1]===e[4].lang),this.first=t},m(f,c){w(f,t,c),m(t,o),m(t,r),l||(s=X(t,"click",a),l=!0)},p(f,c){e=f,c&4&&i!==(i=e[4].lang+"")&&ge(o,i),c&6&&ne(t,"active",e[1]===e[4].lang)},d(f){f&&k(t),l=!1,s()}}}function sm(n,e){let t,i,o,r;return i=new tn({props:{content:e[4].code}}),{key:n,first:null,c(){t=g("div"),V(i. $ $ .fragment),o= $ (),p(t,"class","tab-item"),ne(t,"active",e[1]===e[4].lang),this.first=t},m(l,s){w(l,t,s),H(i,t,null),m(t,o),r=!0},p(l,s){e=l;const a={};s&4&&(a.content=e[4].code),i. $ set(a),s&6&&ne(t,"active",e[1]===e[4].lang)},i(l){r||(T(i. $ $ .fragment,l),r=!0)},o(l){F(i. $ $ .fragment,l),r=!1},d(l){l&&k(t),q(i)}}}function F6(n){let e,t,i,o,r,l,s,a,f=[],c=new Map,u,d,h=[],b=new Map,v,_,y,S,C,x=n[2];const M=D=>D[4].lang;for(let D=0;D<x.length;D+=1){let E=rm(n,x,D),P=M(E);c.set(P,f[D]=lm(P,E))}let A=n[2];const O=D=>D[4].lang;for(let D=0;D<A.length;D+=1){let E=om(n,A,D),P=O(E);b.set(P,h[D]=sm(P,E))}return S=new tn({props:{content:JSON.stringify({action:"create",record:B.dummyCollectionRecord(n[0])},null,2).replace('"action": "create"','"action": "create" // create, update or delete')}}),{c(){e=g("div"),e.innerHTML= ` < strong class = "label label-primary" > SSE < / s t r o n g >
< div class = "content" > < p > / a p i / r e a l t i m e < / p > < / d i v > ` , t = $ ( ) , i = g ( " d i v " ) , i . i n n e r H T M L = ` < p > S u b s c r i b e t o r e a l t i m e c h a n g e s v i a S e r v e r - S e n t E v e n t s ( S S E ) . < / p >
< p > Events are send for < strong > create < / s t r o n g > , < s t r o n g > u p d a t e < / s t r o n g >
and < strong > delete < / s t r o n g > r e c o r d o p e r a t i o n s ( s e e & q u o t ; E v e n t d a t a f o r m a t & q u o t ; s e c t i o n b e l o w ) . < / p >
< div class = "alert alert-info m-t-10" > < div class = "icon" > < i class = "ri-information-line" > < / i > < / d i v >
< div class = "contet" > < p > < strong > You could subscribe to a single record or to an entire collection . < / s t r o n g > < / p >
< p > When you subscribe to a < strong > single record < / s t r o n g > , t h e c o l l e c t i o n & # 3 9 ; s
< strong > ViewRule < / s t r o n g > w i l l b e u s e d t o d e t e r m i n e w h e t h e r t h e s u b s c r i b e r h a s a c c e s s t o r e c e i v e
the event message . < / p >
< p > When you subscribe to an < strong > entire collection < / s t r o n g > , t h e c o l l e c t i o n & # 3 9 ; s
< strong > ListRule < / s t r o n g > w i l l b e u s e d t o d e t e r m i n e w h e t h e r t h e s u b s c r i b e r h a s a c c e s s t o r e c e i v e
the event message . < / p > < / d i v > < / d i v > ` , o = $ ( ) , r = g ( " d i v " ) , r . t e x t C o n t e n t = " C l i e n t S D K s e x a m p l e " , l = $ ( ) , s = g ( " d i v " ) , a = g ( " d i v " ) ; f o r ( l e t D = 0 ; D < f . l e n g t h ; D + = 1 ) f [ D ] . c ( ) ; u = $ ( ) , d = g ( " d i v " ) ; f o r ( l e t D = 0 ; D < h . l e n g t h ; D + = 1 ) h [ D ] . c ( ) ; v = $ ( ) , _ = g ( " d i v " ) , _ . t e x t C o n t e n t = " E v e n t d a t a f o r m a t " , y = $ ( ) , V ( S . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " a l e r t " ) , p ( i , " c l a s s " , " c o n t e n t m - b - b a s e " ) , p ( r , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( a , " c l a s s " , " t a b s - h e a d e r c o m p a c t l e f t " ) , p ( d , " c l a s s " , " t a b s - c o n t e n t " ) , p ( s , " c l a s s " , " t a b s m - b - b a s e " ) , p ( _ , " c l a s s " , " s e c t i o n - t i t l e " ) } , m ( D , E ) { w ( D , e , E ) , w ( D , t , E ) , w ( D , i , E ) , w ( D , o , E ) , w ( D , r , E ) , w ( D , l , E ) , w ( D , s , E ) , m ( s , a ) ; f o r ( l e t P = 0 ; P < f . l e n g t h ; P + = 1 ) f [ P ] . m ( a , n u l l ) ; m ( s , u ) , m ( s , d ) ; f o r ( l e t P = 0 ; P < h . l e n g t h ; P + = 1 ) h [ P ] . m ( d , n u l l ) ; w ( D , v , E ) , w ( D , _ , E ) , w ( D , y , E ) , H ( S , D , E ) , C = ! 0 } , p ( D , [ E ] ) { E & 6 & & ( x = D [ 2 ] , f = s t ( f , E , M , 1 , D , x , c , a , a n , l m , n u l l , r m ) ) , E & 6 & & ( A = D [ 2 ] , A e ( ) , h = s t ( h , E , O , 1 , D , A , b , d , P t , s m , n u l l , o m ) , D e ( ) ) ; c o n s t P = { } ; E & 1 & & ( P . c o n t e n t = J S O N . s t r i n g i f y ( { a c t i o n : " c r e a t e " , r e c o r d : B . d u m m y C o l l e c t i o n R e c o r d ( D [ 0 ] ) } , n u l l , 2 ) . r e p l a c e ( ' " a c t i o n " : " c r e a t e " ' , ' " a c t i o n " : " c r e a t e " / / c r e a t e , u p d a t e o r d e l e t e ' ) ) , S . $ s e t ( P ) } , i ( D ) { i f ( ! C ) { f o r ( l e t E = 0 ; E < A . l e n g t h ; E + = 1 ) T ( h [ E ] ) ; T ( S . $ $ . f r a g m e n t , D ) , C = ! 0 } } , o ( D ) { f o r ( l e t E = 0 ; E < h . l e n g t h ; E + = 1 ) F ( h [ E ] ) ; F ( S . $ $ . f r a g m e n t , D ) , C = ! 1 } , d ( D ) { D & & k ( e ) , D & & k ( t ) , D & & k ( i ) , D & & k ( o ) , D & & k ( r ) , D & & k ( l ) , D & & k ( s ) ; f o r ( l e t E = 0 ; E < f . l e n g t h ; E + = 1 ) f [ E ] . d ( ) ; f o r ( l e t E = 0 ; E < h . l e n g t h ; E + = 1 ) h [ E ] . d ( ) ; D & & k ( v ) , D & & k ( _ ) , D & & k ( y ) , q ( S , D ) } } } f u n c t i o n L 6 ( n , e , t ) { l e t { c o l l e c t i o n : i = n e w E n } = e , o = " J a v a S c r i p t " , r = [ ] ; c o n s t l = s = > t ( 1 , o = s . l a n g ) ; r e t u r n n . $ $ s e t = s = > { " c o l l e c t i o n " i n s & & t ( 0 , i = s . c o l l e c t i o n ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 2 , r = [ { l a n g : " J a v a S c r i p t " , c o d e : `
import PocketBase from 'pocketbase' ;
const client = new PocketBase ( "${Se.baseUrl}" ) ;
// (Optionally) authenticate
client . Users . authViaEmail ( "test@example.com" , "123456" ) ;
// Subscribe to changes in any record from the collection
client . Realtime . subscribe ( "${i==null?void 0:i.name}" , function ( e ) {
console . log ( e . data ) ;
} ) ;
// Subscribe to changes in a single record
client . Realtime . subscribe ( "${i==null?void 0:i.name}/RECORD_ID" , function ( e ) {
console . log ( e . data ) ;
} ) ;
// Unsubscribe
client . Realtime . unsubscribe ( ) // remove all subscriptions
client . Realtime . unsubscribe ( "${i==null?void 0:i.name}" ) // remove the collection subscription
client . Realtime . unsubscribe ( "${i==null?void 0:i.name}/RECORD_ID" ) // remove the record subscription
` }])},[i,o,r,l]}class I6 extends Ie{constructor(e){super(),Le(this,e,L6,F6,Ee,{collection:0})}}function am(n,e,t){const i=n.slice();return i[14]=e[t],i}function fm(n,e,t){const i=n.slice();return i[14]=e[t],i}function cm(n){let e,t,i,o;var r=n[14].component;function l(s){return{props:{collection:s[3]}}}return r&&(t=new r(l(n))),{c(){e=g("div"),t&&V(t. $ $ .fragment),i= $ (),p(e,"class","tab-item active")},m(s,a){w(s,e,a),t&&H(t,e,null),m(e,i),o=!0},p(s,a){const f={};if(a&8&&(f.collection=s[3]),r!==(r=s[14].component)){if(t){Ae();const c=t;F(c. $ $ .fragment,1,0,()=>{q(c,1)}),De()}r?(t=new r(l(s)),V(t. $ $ .fragment),T(t. $ $ .fragment,1),H(t,e,i)):t=null}else r&&t. $ set(f)},i(s){o||(t&&T(t. $ $ .fragment,s),o=!0)},o(s){t&&F(t. $ $ .fragment,s),o=!1},d(s){s&&k(e),t&&q(t)}}}function um(n,e){let t,i,o,r=e[4]===e[14].id&&cm(e);return{key:n,first:null,c(){t=lt(),r&&r.c(),i=lt(),this.first=t},m(l,s){w(l,t,s),r&&r.m(l,s),w(l,i,s),o=!0},p(l,s){e=l,e[4]===e[14].id?r?(r.p(e,s),s&16&&T(r,1)):(r=cm(e),r.c(),T(r,1),r.m(i.parentNode,i)):r&&(Ae(),F(r,1,1,()=>{r=null}),De())},i(l){o||(T(r),o=!0)},o(l){F(r),o=!1},d(l){l&&k(t),r&&r.d(l),l&&k(i)}}}function R6(n){let e,t=[],i=new Map,o,r=n[5];const l=s=>s[14].id;for(let s=0;s<r.length;s+=1){let a=am(n,r,s),f=l(a);i.set(f,t[s]=um(f,a))}return{c(){e=g("div");for(let s=0;s<t.length;s+=1)t[s].c();p(e,"class","tabs-content")},m(s,a){w(s,e,a);for(let f=0;f<t.length;f+=1)t[f].m(e,null);o=!0},p(s,a){a&56&&(r=s[5],Ae(),t=st(t,a,l,1,s,r,i,e,Pt,um,null,am),De())},i(s){if(!o){for(let a=0;a<r.length;a+=1)T(t[a]);o=!0}},o(s){for(let a=0;a<t.length;a+=1)F(t[a]);o=!1},d(s){s&&k(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function dm(n,e){let t,i,o=e[14].label+"",r,l,s,a;function f(){return e[9](e[14])}function c(...u){return e[10](e[14],...u)}return{key:n,first:null,c(){t=g("button"),i=g("span"),r=j(o),l= $ (),p(i,"class","txt"),p(t,"tabindex","0"),p(t,"class","tab-item"),ne(t,"active",e[4]===e[14].id),this.first=t},m(u,d){w(u,t,d),m(t,i),m(i,r),m(t,l),s||(a=[X(t,"click",f),X(t,"keydown",Vb(c))],s=!0)},p(u,d){e=u,d&48&&ne(t,"active",e[4]===e[14].id)},d(u){u&&k(t),s=!1,rt(a)}}}function N6(n){let e,t,i=n[3].name+"",o,r,l,s,a=[],f=new Map,c=n[5];const u=d=>d[14].id;for(let d=0;d<c.length;d+=1){let h=fm(n,c,d),b=u(h);f.set(b,a[d]=dm(b,h))}return{c(){e=g("h4"),t=g("strong"),o=j(i),r=j(" records API"),l= $ (),s=g("div");for(let d=0;d<a.length;d+=1)a[d].c();p(s,"class","tabs-header stretched")},m(d,h){w(d,e,h),m(e,t),m(t,o),m(e,r),w(d,l,h),w(d,s,h);for(let b=0;b<a.length;b+=1)a[b].m(s,null)},p(d,h){h&8&&i!==(i=d[3].name+"")&&ge(o,i),h&114&&(c=d[5],a=st(a,h,u,1,d,c,f,s,an,dm,null,fm))},d(d){d&&k(e),d&&k(l),d&&k(s);for(let h=0;h<a.length;h+=1)a[h].d()}}}function j6(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Close</span>',p(e,"type","button"),p(e,"class","btn btn-secondary")},m(o,r){w(o,e,r),t||(i=X(e,"click",n[8]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function z6(n){let e,t,i={class:"overlay-panel-xl colored-header collection-panel", $ $ slots:{footer:[j6],header:[N6],default:[R6]}, $ $ scope:{ctx:n}};return e=new Ai({props:i}),n[11](e),e. $ on("hide",n[12]),e. $ on("show",n[13]),{c(){V(e. $ $ .fragment)},m(o,r){H(e,o,r),t=!0},p(o,[r]){const l={};r&524312&&(l. $ $ scope={dirty:r,ctx:o}),e. $ set(l)},i(o){t||(T(e. $ $ .fragment,o),t=!0)},o(o){F(e. $ $ .fragment,o),t=!1},d(o){n[11](null),q(e,o)}}}function H6(n,e,t){const i=[{id:"list",label:"List",component:t6},{id:"view",label:"View",component:o6},{id:"create",label:"Create",component:g6},{id:"update",label:"Update",component:O6},{id:"delete",label:"Delete",component:P6},{id:"realtime",label:"Realtime",component:I6}];let o,r=new En,l=i[0].id;function s(y){return t(3,r=y),f(i[0].id),o==null?void 0:o.show()}function a(){return o==null?void 0:o.hide()}function f(y){t(4,l=y)}function c(y,S){(y.code==="Enter"||y.code==="Space")&&(y.preventDefault(),f(S))}const u=()=>a(),d=y=>f(y.id),h=(y,S)=>c(S,y.id);function b(y){he[y?"unshift":"push"](()=>{o=y,t(2,o)})}function v(y){ft.call(this,n,y)}function _(y){ft.call(this,n,y)}return[a,f,o,r,l,i,c,s,u,d,h,b,v,_]}class q6 extends Ie{constructor
< span class = "txt" > Upload new file < / s p a n > ` , p ( t , " t y p e " , " f i l e " ) , p ( t , " c l a s s " , " h i d d e n " ) , t . m u l t i p l e = n [ 5 ] , p ( o , " t y p e " , " b u t t o n " ) , p ( o , " c l a s s " , " b t n b t n - s e c o n d a r y b t n - s m b t n - b l o c k " ) , p ( e , " c l a s s " , " l i s t - i t e m b t n - l i s t - i t e m " ) } , m ( s , a ) { w ( s , e , a ) , m ( e , t ) , n [ 1 8 ] ( t ) , m ( e , i ) , m ( e , o ) , r | | ( l = [ X ( t , " c h a n g e " , n [ 1 9 ] ) , X ( o , " c l i c k " , n [ 2 0 ] ) ] , r = ! 0 ) } , p ( s , a ) { a & 3 2 & & ( t . m u l t i p l e = s [ 5 ] ) } , d ( s ) { s & & k ( e ) , n [ 1 8 ] ( n u l l ) , r = ! 1 , r t ( l ) } } } f u n c t i o n z M ( n ) { l e t e , t , i , o , r , l = n [ 3 ] . n a m e + " " , s , a , f , c , u = [ ] , d = n e w M a p , h , b , v , _ = n [ 4 ] ; c o n s t y = A = > A [ 2 8 ] ; f o r ( l e t A = 0 ; A < _ . l e n g t h ; A + = 1 ) { l e t O = m m ( n , _ , A ) , D = y ( O ) ; d . s e t ( D , u [ A ] = b m ( D , O ) ) } l e t S = n [ 0 ] , C = [ ] ; f o r ( l e t A = 0 ; A < S . l e n g t h ; A + = 1 ) C [ A ] = g m ( h m ( n , S , A ) ) ; c o n s t x = A = > F ( C [ A ] , 1 , 1 , ( ) = > { C [ A ] = n u l l } ) ; l e t M = ! n [ 9 ] & & _ m ( n ) ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = g ( " i " ) , o = $ ( ) , r = g ( " s p a n " ) , s = j ( l ) , f = $ ( ) , c = g ( " d i v " ) ; f o r ( l e t A = 0 ; A < u . l e n g t h ; A + = 1 ) u [ A ] . c ( ) ; h = $ ( ) ; f o r ( l e t A = 0 ; A < C . l e n g t h ; A + = 1 ) C [ A ] . c ( ) ; b = $ ( ) , M & & M . c ( ) , p ( t , " c l a s s " , i = B . g e t F i e l d T y p e I c o n ( n [ 3 ] . t y p e ) ) , p ( r , " c l a s s " , " t x t " ) , p ( e , " f o r " , a = n [ 2 4 ] ) , p ( c , " c l a s s " , " f i l e s - l i s t " ) } , m ( A , O ) { w ( A , e , O ) , m ( e , t ) , m ( e , o ) , m ( e , r ) , m ( r , s ) , w ( A , f , O ) , w ( A , c , O ) ; f o r ( l e t D = 0 ; D < u . l e n g t h ; D + = 1 ) u [ D ] . m ( c , n u l l ) ; m ( c , h ) ; f o r ( l e t D = 0 ; D < C . l e n g t h ; D + = 1 ) C [ D ] . m ( c , n u l l ) ; m ( c , b ) , M & & M . m ( c , n u l l ) , n [ 2 1 ] ( c ) , v = ! 0 } , p ( A , O ) { i f ( ( ! v | | O & 8 & & i ! = = ( i = B . g e t F i e l d T y p e I c o n ( A [ 3 ] . t y p e ) ) ) & & p ( t , " c l a s s " , i ) , ( ! v | | O & 8 ) & & l ! = = ( l = A [ 3 ] . n a m e + " " ) & & g e ( s , l ) , ( ! v | | O & 1 6 7 7 7 2 1 6 & & a ! = = ( a = A [ 2 4 ] ) ) & & p ( e , " f o r " , a ) , O & 3 2 2 2 & & ( _ = A [ 4 ] , A e ( ) , u = s t ( u , O , y , 1 , A , _ , d , c , P t , b m , h , m m ) , D e ( ) ) , O & 4 0 9 7 ) { S = A [ 0 ] ; l e t D ; f o r ( D = 0 ; D < S . l e n g t h ; D + = 1 ) { c o n s t E = h m ( A , S , D ) ; C [ D ] ? ( C [ D ] . p ( E , O ) , T ( C [ D ] , 1 ) ) : ( C [ D ] = g m ( E ) , C [ D ] . c ( ) , T ( C [ D ] , 1 ) , C [ D ] . m ( c , b ) ) } f o r ( A e ( ) , D = S . l e n g t h ; D < C . l e n g t h ; D + = 1 ) x ( D ) ; D e ( ) } A [ 9 ] ? M & & ( M . d ( 1 ) , M = n u l l ) : M ? M . p ( A , O ) : ( M = _ m ( A ) , M . c ( ) , M . m ( c , n u l l ) ) } , i ( A ) { i f ( ! v ) { f o r ( l e t O = 0 ; O < _ . l e n g t h ; O + = 1 ) T ( u [ O ] ) ; f o r ( l e t O = 0 ; O < S . l e n g t h ; O + = 1 ) T ( C [ O ] ) ; v = ! 0 } } , o ( A ) { f o r ( l e t O = 0 ; O < u . l e n g t h ; O + = 1 ) F ( u [ O ] ) ; C = C . f i l t e r ( B o o l e a n ) ; f o r ( l e t O = 0 ; O < C . l e n g t h ; O + = 1 ) F ( C [ O ] ) ; v = ! 1 } , d ( A ) { A & & k ( e ) , A & & k ( f ) , A & & k ( c ) ; f o r ( l e t O = 0 ; O < u . l e n g t h ; O + = 1 ) u [ O ] . d ( ) ; q n ( C , A ) , M & & M . d ( ) , n [ 2 1 ] ( n u l l ) } } } f u n c t i o n H M ( n ) { l e t e , t , i , o ; e = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d f o r m - f i e l d - f i l e " + ( n [ 3 ] . r e q u i r e d ? " r e q u i r e d " : " " ) , n a m e : n [ 3 ] . n a m e , $ $ s l o t s : { d e f a u l t : [ z M , ( { u n i q u e I d : l } ) = > ( { 2 4 : l } ) , ( { u n i q u e I d : l } ) = > l ? 1 6 7 7 7 2 1 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n i = n e w P M ( { p r o p s : r } ) , n [ 2 2 ] ( i ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = $ ( ) , V ( i . $ $ . f r a g m e n t ) } , m ( l , s ) { H ( e , l , s ) , w ( l , t , s ) , H ( i , l , s ) , o = ! 0 } , p ( l , [ s ] ) { c o n s t a = { } ; s & 8 & & ( a . c l a s s = " f o r m - f i e l d f o r m - f i e l d - f i l e " + ( l [ 3 ] . r e q u i r e d ? " r e q u i r e d " : " " ) ) , s & 8 & & ( a . n a m e = l [ 3 ] . n a m e ) , s & 1 0 9 0 5 2 0 0 6 3 & & ( a . $ $ s c o p e = { d i r t y : s , c t x : l } ) , e . $ s e t ( a ) ; c o n s t f = { } ; i . $ s e t ( f ) } , i ( l ) { o | | ( T ( e . $ $ . f r a g m e n t , l ) , T ( i . $ $ . f r a g m e n t , l ) , o = ! 0 ) } , o ( l ) { F ( e . $ $ . f r a g m e n t , l ) , F ( i . $ $ . f r a g m e n t , l ) , o = ! 1 } , d ( l ) { q ( e , l ) , l & & k ( t ) , n [ 2 2 ] ( n u l l ) , q ( i , l ) } } } f u n c t i o n q M ( n , e , t ) { l e t i , o , r , { r e c o r d : l } = e , { v a l u e : s = n u l l } = e , { u p l o a d e d F i l e s : a = [ ] } = e , { d e l e t e d F i l e I n d e x e s : f = [ ] } = e , { f i e l d : c = n e w k n } = e , u , d , h ; f u n c t i o n b ( I ) { B . r e m o v e B y V a l u e ( f , I ) , t ( 1 , f ) } f u n c t i o n v ( I ) { B . p u s h U n i q u e ( f , I ) , t ( 1 , f ) } f u n c t i o n _ ( I ) { B . i s E m p t y ( a [ I ] ) | | a . s p l i c e ( I , 1 ) , t ( 0 , a ) } f u n c t i o n y ( ) { h = = n u l l | | h . d i s p a t c h E v e n t ( n e w C u s t o m E v e n t ( " c h a n g e " , { d e t a i l : { v a l u e : s , u p l o a d e d F i l e s : a , d e l e t e d F i l e I n d e x e s : f } , b u b b l e s : ! 0 } ) ) } c o n s t S = I = > B . h a s I m a g e E x t e n s i o n ( I ) ? d = = n u l l ? v o i d 0 : d . s h o w ( S e . R e c o r d s . g e t F i l e U r l ( l , I ) ) : ! 1 , C = I = > b ( I ) , x = I = > v ( I ) , M = I = > _ ( I ) ; f u n c t i o n A ( I ) { h e [ I ? " u n s h i f t " : " p u s h " ] ( ( ) = > { u = I , t ( 6 , u ) } ) } c o n s t O = ( ) = > { f o r ( l e t I o f u . f i l e s ) a . p u s h ( I ) ; t ( 0 , a ) , t ( 6 , u . v a l u e = n u l l , u ) } , D = ( ) = > u = = n u l l ? v o i d 0 : u . c l i c k ( ) ; f u n c t i o n E ( I ) { h e [ I ? " u n s h i f t " : " p u s h " ] ( ( ) = > { h = I , t ( 8 , h ) } ) } f u n c t i o n P ( I ) { h e [ I ? " u n s h i f t " : " p u s h " ] ( ( ) = > { d = I , t ( 7 , d ) } ) } r e t u r n n . $ $ s e t = I = > { " r e c o r d " i n I & & t ( 2 , l = I . r e c o r d ) , " v a l u e " i n I & & t ( 1 3 , s = I . v a l u e ) , " u p l o a d e d F i l e s " i n I & & t ( 0 , a = I . u p l o a d e d F i l e s ) , " d e l e t e d F i l e I n d e x e s " i n I & & t ( 1 , f = I . d e l e t e d F i l e I n d e x e s ) , " f i e l d " i n I & & t ( 3 , c = I . f i e l d ) } , n . $ $ . u p d a t e = ( ) = > { v a r I , R ; n . $ $ . d i r t y & 1 & & ( A r r a y . i s A r r a y ( a ) | | t ( 0 , a = B . t o A r r a y ( a ) ) ) , n . $ $ . d i r t y & 2 & & ( A r r a y . i s A r r a y ( f ) | | t ( 1 , f = B . t o A r r a y ( f ) ) ) , n . $ $ . d i r t y & 8 & & t ( 5 , i = ( ( I = c . o p t i o n s ) = = n u l l ? v o i d 0 : I . m a x S e l e c t ) > 1 ) , n . $ $ . d i r t y & 8 2 2 4 & & ( t y p e o f s = = " u n d e f i n e d " | | s = = = n u l l ) & & t ( 1 3 , s = i ? [ ] : n u l l ) , n . $ $ . d i r t y & 8 1 9 2 & & t ( 4 , o = B . t o A r r a y ( s ) ) , n . $ $ . d i r t y & 2 7 & & t ( 9 , r = ( o . l e n g t h | | a . l e n g t h ) & & ( ( R = c . o p t i o n s ) = = n u l l ? v o i d 0 : R . m a x S e l e c t ) < = o . l e n g t h + a . l e n g t h - f . l e n g t h ) , n . $ $ . d i r t y & 3 & & ( a ! = = - 1 | | f ! = = - 1 ) & & y ( ) } , [ a , f , l , c , o , i , u , d , h , r , b , v , _ , s , S , C , x , M , A
` ,p(e,"class","block txt-center txt-disabled")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function d $ (n){let e,t,i;function o(l){n[31](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new c $ ({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function p $ (n){let e,t,i;function o(l){n[30](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new e $ ({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function h $ (n){let e,t,i,o,r;function l(c){n[27](c,n[40])}function s(c){n[28](c,n[40])}function a(c){n[29](c,n[40])}let f={field:n[40],record:n[2]};return n[2][n[40].name]!==void 0&&(f.value=n[2][n[40].name]),n[3][n[40].name]!==void 0&&(f.uploadedFiles=n[3][n[40].name]),n[4][n[40].name]!==void 0&&(f.deletedFileIndexes=n[4][n[40].name]),e=new VM({props:f}),he.push(()=>Fe(e,"value",l)),he.push(()=>Fe(e,"uploadedFiles",s)),he.push(()=>Fe(e,"deletedFileIndexes",a)),{c(){V(e. $ $ .fragment)},m(c,u){H(e,c,u),r=!0},p(c,u){n=c;const d={};u[0]&1&&(d.field=n[40]),u[0]&4&&(d.record=n[2]),!t&&u[0]&5&&(t=!0,d.value=n[2][n[40].name],Re(()=>t=!1)),!i&&u[0]&9&&(i=!0,d.uploadedFiles=n[3][n[40].name],Re(()=>i=!1)),!o&&u[0]&17&&(o=!0,d.deletedFileIndexes=n[4][n[40].name],Re(()=>o=!1)),e. $ set(d)},i(c){r||(T(e. $ $ .fragment,c),r=!0)},o(c){F(e. $ $ .fragment,c),r=!1},d(c){q(e,c)}}}function m $ (n){let e,t,i;function o(l){n[26](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new SM({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function b $ (n){let e,t,i;function o(l){n[25](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new vM({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function g $ (n){let e,t,i;function o(l){n[24](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new mM({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function _ $ (n){let e,t,i;function o(l){n[23](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new uM({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function v $ (n){let e,t,i;function o(l){n[22](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new sM({props:r}),he.push(()=>Fe(e,"value",o)),{c(){V(e. $ $ .fragment)},m(l,s){H(e,l,s),i=!0},p(l,s){n=l;const a={};s[0]&1&&(a.field=n[40]),!t&&s[0]&5&&(t=!0,a.value=n[2][n[40].name],Re(()=>t=!1)),e. $ set(a)},i(l){i||(T(e. $ $ .fragment,l),i=!0)},o(l){F(e. $ $ .fragment,l),i=!1},d(l){q(e,l)}}}function y $ (n){let e,t,i;function o(l){n[21](l,n[40])}let r={field:n[40]};return n[2][n[40].name]!==void 0&&(r.value=n[2][n[40].name]),e=new iM({props:r}),he.push(()=>Fe(e,"value",
< span class = "txt" > Delete < / s p a n > ` , p ( e , " t a b i n d e x " , " 0 " ) , p ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) } , m ( o , r ) { w ( o , e , r ) , t | | ( i = X ( e , " c l i c k " , n [ 1 8 ] ) , t = ! 0 ) } , p : l e , d ( o ) { o & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n x $ ( n ) { l e t e , t = n [ 2 ] . i s N e w ? " N e w " : " E d i t " , i , o , r = n [ 0 ] . n a m e + " " , l , s , a , f , c , u = ! n [ 2 ] . i s N e w & & n [ 9 ] & & A m ( n ) ; r e t u r n { c ( ) { e = g ( " h 4 " ) , i = j ( t ) , o = $ ( ) , l = j ( r ) , s = j ( " r e c o r d " ) , a = $ ( ) , u & & u . c ( ) , f = l t ( ) } , m ( d , h ) { w ( d , e , h ) , m ( e , i ) , m ( e , o ) , m ( e , l ) , m ( e , s ) , w ( d , a , h ) , u & & u . m ( d , h ) , w ( d , f , h ) , c = ! 0 } , p ( d , h ) { ( ! c | | h [ 0 ] & 4 ) & & t ! = = ( t = d [ 2 ] . i s N e w ? " N e w " : " E d i t " ) & & g e ( i , t ) , ( ! c | | h [ 0 ] & 1 ) & & r ! = = ( r = d [ 0 ] . n a m e + " " ) & & g e ( l , r ) , ! d [ 2 ] . i s N e w & & d [ 9 ] ? u ? ( u . p ( d , h ) , h [ 0 ] & 5 1 6 & & T ( u , 1 ) ) : ( u = A m ( d ) , u . c ( ) , T ( u , 1 ) , u . m ( f . p a r e n t N o d e , f ) ) : u & & ( A e ( ) , F ( u , 1 , 1 , ( ) = > { u = n u l l } ) , D e ( ) ) } , i ( d ) { c | | ( T ( u ) , c = ! 0 ) } , o ( d ) { F ( u ) , c = ! 1 } , d ( d ) { d & & k ( e ) , d & & k ( a ) , u & & u . d ( d ) , d & & k ( f ) } } } f u n c t i o n M $ ( n ) { l e t e , t , i , o , r , l = n [ 2 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " , s , a , f , c ; r e t u r n { c ( ) { e = g ( " b u t t o n " ) , t = g ( " s p a n " ) , t . t e x t C o n t e n t = " C a n c e l " , i = $ ( ) , o = g ( " b u t t o n " ) , r = g ( " s p a n " ) , s = j ( l ) , p ( t , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " b t n b t n - s e c o n d a r y " ) , e . d i s a b l e d = n [ 7 ] , p ( r , " c l a s s " , " t x t " ) , p ( o , " t y p e " , " s u b m i t " ) , p ( o , " f o r m " , n [ 1 1 ] ) , p ( o , " c l a s s " , " b t n b t n - e x p a n d e d " ) , o . d i s a b l e d = a = ! n [ 1 0 ] | | n [ 7 ] , n e ( o , " b t n - l o a d i n g " , n [ 7 ] ) } , m ( u , d ) { w ( u , e , d ) , m ( e , t ) , w ( u , i , d ) , w ( u , o , d ) , m ( o , r ) , m ( r , s ) , f | | ( c = X ( e , " c l i c k " , n [ 1 7 ] ) , f = ! 0 ) } , p ( u , d ) { d [ 0 ] & 1 2 8 & & ( e . d i s a b l e d = u [ 7 ] ) , d [ 0 ] & 4 & & l ! = = ( l = u [ 2 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & g e ( s , l ) , d [ 0 ] & 1 1 5 2 & & a ! = = ( a = ! u [ 1 0 ] | | u [ 7 ] ) & & ( o . d i s a b l e d = a ) , d [ 0 ] & 1 2 8 & & n e ( o , " b t n - l o a d i n g " , u [ 7 ] ) } , d ( u ) { u & & k ( e ) , u & & k ( i ) , u & & k ( o ) , f = ! 1 , c ( ) } } } f u n c t i o n $ $ ( n ) { l e t e , t , i = { c l a s s : " o v e r l a y - p a n e l - l g r e c o r d - p a n e l " , b e f o r e H i d e : n [ 3 2 ] , $ $ s l o t s : { f o o t e r : [ M $ ] , h e a d e r : [ x $ ] , d e f a u l t : [ S $ ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w A i ( { p r o p s : i } ) , n [ 3 3 ] ( e ) , e . $ o n ( " h i d e " , n [ 3 4 ] ) , e . $ o n ( " s h o w " , n [ 3 5 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { H ( e , o , r ) , t = ! 0 } , p ( o , r ) { c o n s t l = { } ; r [ 0 ] & 2 8 8 & & ( l . b e f o r e H i d e = o [ 3 2 ] ) , r [ 0 ] & 1 6 9 3 | r [ 1 ] & 8 1 9 2 & & ( l . $ $ s c o p e = { d i r t y : r , c t x : o } ) , e . $ s e t ( l ) } , i ( o ) { t | | ( T ( e . $ $ . f r a g m e n t , o ) , t = ! 0 ) } , o ( o ) { F ( e . $ $ . f r a g m e n t , o ) , t = ! 1 } , d ( o ) { n [ 3 3 ] ( n u l l ) , q ( e , o ) } } } f u n c t i o n D m ( n ) { r e t u r n J S O N . s t r i n g i f y ( n ) } f u n c t i o n A $ ( n , e , t ) { l e t i , o , r , l ; c o n s t s = y n ( ) , a = " r e c o r d _ " + B . r a n d o m S t r i n g ( 5 ) ; l e t { c o l l e c t i o n : f } = e , c , u = n u l l , d = n e w Q l , h = ! 1 , b = ! 1 , v = { } , _ = { } , y = " " ; f u n c t i o n S ( f e ) { r e t u r n x ( f e ) , t ( 8 , b = ! 0 ) , c = = n u l l ? v o i d 0 : c . s h o w ( ) } f u n c t i o n C ( ) { r e t u r n c = = n u l l ? v o i d 0 : c . h i d e ( ) } f u n c t i o n x ( f e ) { U i ( { } ) , u = f e | | { } , t ( 2 , d = f e ! = n u l l & & f e . c l o n e ? f e . c l o n e ( ) : n e w Q l ) , t ( 3 , v = { } ) , t ( 4 , _ = { } ) , t ( 1 5 , y = D m ( d ) ) } f u n c t i o n M ( ) { i f ( h | | ! o ) r e t u r n ; t ( 7 , h = ! 0 ) ; c o n s t f e = O ( ) ; l e t i e ; d . i s N e w ? i e = S e . R e c o r d s . c r e a t e ( f = = n u l l ? v o i d 0 : f . i d , f e ) : i e = S e . R e c o r d s . u p d a t e ( f = = n u l l ? v o i d 0 : f . i d , d . i d , f e ) , i e . t h e n ( a s y n c y e = > { h n ( d . i s N e w ? " S u c c e s s f u l l y c r e a t e d r e c o r d . " : " S u c c e s s f u l l y u p d a t e d r e c o r d . " ) , t ( 8 , b = ! 1 ) , C ( ) , s ( " s a v e " , y e ) } ) . c a t c h ( y e = > { S e . e r r o r R e s p o n s e H a n d l e r ( y e ) } ) . f i n a l l y ( ( ) = > { t ( 7 , h = ! 1 ) } ) } f u n c t i o n A ( ) { ! ( u ! = n u l l & & u . i d ) | | x i ( " D o y o u r e a l l y w a n t t o d e l e t e t h e s e l e c t e d r e c o r d ? " , ( ) = > S e . R e c o r d s . d e l e t e ( u [ " @ c o l l e c t i o n I d " ] , u . i d ) . t h e n ( ( ) = > { C ( ) , h n ( " S u c c e s s f u l l y d e l e t e d r e c o r d . " ) , s ( " d e l e t e " , u ) } ) . c a t c h ( f e = > { S e . e r r o r R e s p o n s e H a n d l e r ( f e ) } ) ) } f u n c t i o n O ( ) { c o n s t f e = ( d = = n u l l ? v o i d 0 : d . e x p o r t ( ) ) | | { } , i e = n e w F o r m D a t a , y e = { } ; f o r ( c o n s t N e o f ( f = = n u l l ? v o i d 0 : f . s c h e m a ) | | [ ] ) y e [ N e . n a m e ] = N e ; f o r ( c o n s t N e i n f e ) ! y e [ N e ] | | ( t y p e o f f e [ N e ] = = " u n d e f i n e d " & & ( f e [ N e ] = n u l l ) , B . a d d V a l u e T o F o r m D a t a ( i e , N e , f e [ N e ] ) ) ; f o r ( c o n s t N e i n v ) { c o n s t P e = B . t o A r r a y ( v [ N e ] ) ; f o r ( c o n s t z e o f P e ) i e . a p p e n d ( N e , z e ) } f o r ( c o n s t N e i n _ ) { c o n s t P e = B . t o A r r a y ( _ [ N e ] ) ; f o r ( c o n s t z e o f P e ) i e . a p p e n d ( N e + " . " + z e , " " ) } r e t u r n i e } c o n s t D = ( ) = > C ( ) , E = ( ) = > A ( ) ; f u n c t i o n P ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n I ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n R ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n G ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n U ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n z ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n K ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n Y ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n W ( f e , i e ) { n . $ $ . n o t _ e q u a l ( d [ i e . n a m e ] , f e ) & & ( d [ i e . n a m e ] = f e , t ( 2 , d ) ) } f u n c t i o n t e ( f e , i e ) { n . $ $ . n o t _ e q u a l ( v [ i e . n a m e ] , f e ) & & ( v [ i e . n a m e ] = f e , t ( 3 ,
` },m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Hm(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Clear filters</span>',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(o,r){w(o,e,r),t||(i=X(e,"click",n[28]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function qm(n,e){let t,i,o;return i=new L1({props:{record:e[35],field:e[38]}}),{key:n,first:null,c(){t=lt(),V(i. $ $ .fragment),this.first=t},m(r,l){w(r,t,l),H(i,r,l),o=!0},p(r,l){e=r;const s={};l[0]&8&&(s.record=e[35]),l[0]&2048&&(s.field=e[38]),i. $ set(s)},i(r){o||(T(i. $ $ .fragment,r),o=!0)},o(r){F(i. $ $ .fragment,r),o=!1},d(r){r&&k(t),q(i,r)}}}function Vm(n,e){let t,i,o,r,l,s,a,f,c,u,d,h,b,v=[],_=new Map,y,S,C,x,M,A,O,D,E,P,I,R;function G(){return e[25](e[35])}h=new Ls({props:{id:e[35].id}});let U=e[11];const z=W=>W[38].name;for(let W=0;W<U.length;W+=1){let te=Rm(e,U,W),ce=z(te);_.set(ce,v[W]=qm(ce,te))}C=new Ci({props:{date:e[35].created}}),A=new Ci({props:{date:e[35].updated}});function K(){return e[26](e[35])}function Y(...W){return e[27](e[35],...W)}return{key:n,first:null,c(){t=g("tr"),i=g("td"),o=g("div"),r=g("input"),a= $ (),f=g("label"),u= $ (),d=g("td"),V(h. $ $ .fragment),b= $ ();for(let W=0;W<v.length;W+=1)v[W].c();y= $ (),S=g("td"),V(C. $ $ .fragment),x= $ (),M=g("td"),V(A. $ $ .fragment),O= $ (),D=g("td"),D.innerHTML='<i class="ri-arrow-right-line"></i>',E= $ (),p(r,"type","checkbox"),p(r,"id",l="checkbox_"+e[35].id),r.checked=s=e[5][e[35].id],p(f,"for",c="checkbox_"+e[35].id),p(o,"class","form-field"),p(i,"class","bulk-select-col min-width"),p(d,"class","col-type-text col-field-id"),p(S,"class","col-type-date col-field-created"),p(M,"class","col-type-date col-field-updated"),p(D,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(W,te){w(W,t,te),m(t,i),m(i,o),m(o,r),m(o,a),m(o,f),m(t,u),m(t,d),H(h,d,null),m(t,b);for(let ce=0;ce<v.length;ce+=1)v[ce].m(t,null);m(t,y),m(t,S),H(C,S,null),m(t,x),m(t,M),H(A,M,null),m(t,O),m(t,D),m(t,E),P=!0,I||(R=[X(r,"change",G),X(o,"click",Vn(e[19])),X(t,"click",K),X(t,"keydown",Y)],I=!0)},p(W,te){e=W,(!P||te[0]&8&&l!==(l="checkbox_"+e[35].id))&&p(r,"id",l),(!P||te[0]&40&&s!==(s=e[5][e[35].id]))&&(r.checked=s),(!P||te[0]&8&&c!==(c="checkbox_"+e[35].id))&&p(f,"for",c);const ce={};te[0]&8&&(ce.id=e[35].id),h. $ set(ce),te[0]&2056&&(U=e[11],Ae(),v=st(v,te,z,1,e,U,_,t,Pt,qm,y,Rm),De());const ve={};te[0]&8&&(ve.date=e[35].created),C. $ set(ve);const oe={};te[0]&8&&(oe.date=e[35].updated),A. $ set(oe)},i(W){if(!P){T(h. $ $ .fragment,W);for(let te=0;te<U.length;te+=1)T(v[te]);T(C. $ $ .fragment,W),T(A. $ $ .fragment,W),P=!0}},o(W){F(h. $ $ .fragment,W);for(let te=0;te<v.length;te+=1)F(v[te]);F(C. $ $ .fragment,W),F(A. $ $ .fragment,W),P=!1},d(W){W&&k(t),q(h);for(let te=0;te<v.length;te+=1)v[te].d();q(C),q(A),I=!1,rt(R)}}}function Bm(n){let e,t,i=n[3].length+"",o,r,l;return{c(){e=g("small"),t=j("Showing "),o=j(i),r=j(" of "),l=j(n[4]),p(e,"class","block txt-hint txt-right m-t-sm")},m(s,a){w(s,e,a),m(e,t),m(e,o),m(e,r),m(e,l)},p(s,a){a[0]&8&&i!==(i=s[3].length+"")&&ge(o,i),a[0]&16&&ge(l,s[4])},d(s){s&&k(e)}}}function Um(n){let e,t,i,o,r=n[4]-n[3].length+"",l,s,a,f;return{c(){e=g("div"),t=g("button"),i=g("span"),o=j("Load more ("),l=j(r),s=j(")"),p(i,"class","txt"),p(t,"type","button"),p(t,"class","btn btn-lg btn-secondary btn-expanded"),ne(t,"btn-loading",n[8]),ne(t,"btn-disabled",n[8]),p(e,"class","block txt-center m-t-xs")},m(c,u){w(c,e,u),m(e,t),m(t,i),m(i,o),m(i,l),m(i,s),a||(f=X(t,"click",n[29]),a=!0)},p(c,u){u[0]&24&&r!==(r=c[4]-c[3].length+"")&&ge(l,r),u[0]&256&&ne(t,"btn-loading",c[8]),u[0]&256&&ne(t,"btn-disabled",c[8])},d(c){c&&k(e),a=!1,f()}}}function Wm(n){let e,t,i,o,r,l,s=n[6]===1?"record":"records",a,f,c,u,d,h,b,v,_,y,S;return{c(){e=g("div"),t=g("div"),i=j("Selected "),o=g("strong"),r=j(n[6]),l= $ (),a=j(s),f= $ (),c=g("button"),c.innerHTML='<span class="txt">Reset</span>',u= $ (),d=g("div"),h= $ (),b=g("button"),b.innerHTML='<span class="txt">Delete selected</span>',p(t,"class","txt"),p(c,"type","button"),p(c,"class","btn btn-xs btn-secondary btn-outline p-l-5 p-r-5"),ne(c,"btn
< span class = "txt" > API Preview < /span>`,_=$(),y=g("button"),y.innerHTML=`<i class="ri-add-line"></i >
< span class = "txt" > New record < /span>`,S=$(),V(C.$$.fragment),x=$(),V(M.$$.fragment),p(l,"class","breadcrumb-item"),p(a,"class","breadcrumb-item"),p(r,"class","breadcrumbs"),p(d,"type","button"),p(d,"class","btn btn-secondary btn-circle"),p(v,"type","button"),p(v,"class","btn btn-outline"),p(y,"type","button"),p(y,"class","btn btn-expanded"),p(b,"class","btns-group"),p(o,"class","page-header"),p(i,"class","page-wrapper")},m(U,z){H(e,U,z),w(U,t,z),w(U,i,z),m(i,o),m(o,r),m(r,l),m(r,s),m(r,a),m(a,c),m(o,u),m(o,d),m(o,h),m(o,b),m(b,v),m(b,_),m(b,y),m(i,S),H(C,i,null),m(i,x),H(M,i,null),D=!0,E||(P=[Xe(St.call(null,d,{text:"Edit collection",position:"right"})),X(d,"click",n[12]),X(v,"click",n[13]),X(y,"click",n[14])],E=!0)},p(U,z){(!D||z&4)&&f!==(f=U[2].name+"")&&ge(c,f);const K={};z&1&&(K.value=U[0]),z&4&&(K.autocompleteCollection=U[2]),C.$set(K);const Y={};z&4&&(Y.collection=U[2]),!A&&z&1&&(A=!0,Y.filter=U[0],Re(()=>A=!1)),!O&&z&2&&(O=!0,Y.sort=U[1],Re(()=>O=!1)),M.$set(Y)},i(U){D||(T(e.$$.fragment,U),T(C.$$.fragment,U),T(M.$$.fragment,U),D=!0)},o(U){F(e.$$.fragment,U),F(C.$$.fragment,U),F(M.$$.fragment,U),D=!1},d(U){q(e,U),U&&k(t),U&&k(i),q(C),n[16](null),q(M),E=!1,rt(P)}}}function eA(n){let e,t,i,o,r,l,s,a;return{c(){e=g("div"),t=g("div"),t.innerHTML='<i class="ri-database-2-line"></i > ' , i = $ ( ) , o = g ( "h1" ) , o . textContent = "Create your first collection to add records!" , r = $ ( ) , l = g ( "button" ) , l . innerHTML = ` <i class="ri-add-line"></i>
< span class = "txt" > Create new collection < / s p a n > ` , p ( t , " c l a s s " , " i c o n " ) , p ( o , " c l a s s " , " m - b - 1 0 " ) , p ( l , " t y p e " , " b u t t o n " ) , p ( l , " c l a s s " , " b t n b t n - e x p a n d e d - l g b t n - l g " ) , p ( e , " c l a s s " , " p l a c e h o l d e r - s e c t i o n m - b - b a s e " ) } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , m ( e , r ) , m ( e , l ) , s | | ( a = X ( l , " c l i c k " , n [ 1 1 ] ) , s = ! 0 ) } , p : l e , i : l e , o : l e , d ( f ) { f & & k ( e ) , s = ! 1 , a ( ) } } } f u n c t i o n t A ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , e . i n n e r H T M L = ` < s p a n c l a s s = " l o a d e r l o a d e r - l g " > < / s p a n >
< h1 > Loading collections ... < /h1>`,p(e,"class","placeholder-section m-b-base")},m(t,i){w(t,e,i)},p:le,i:le,o:le,d(t){t&&k(e)}}}function nA(n){let e,t,i,o,r,l,s,a,f;const c=[tA,eA,Q$],u=[];function d(_,y){return _[8]?0:_[7].length?2:1}e=d(n),t=u[e]=c[e](n);let h={};o=new hc({props:h}),n[20](o);let b={};l=new q6({props:b}),n[21](l);let v={collection:n[2]};return a=new F1({props:v}),n[22](a),a.$on("save",n[23]),a.$on("delete",n[24]),{c(){t.c(),i=$(),V(o.$$.fragment),r=$(),V(l.$$.fragment),s=$(),V(a.$$.fragment)},m(_,y){u[e].m(_,y),w(_,i,y),H(o,_,y),w(_,r,y),H(l,_,y),w(_,s,y),H(a,_,y),f=!0},p(_,[y]){let S=e;e=d(_),e===S?u[e].p(_,y):(Ae(),F(u[S],1,1,()=>{u[S]=null}),De(),t=u[e],t?t.p(_,y):(t=u[e]=c[e](_),t.c()),T(t,1),t.m(i.parentNode,i));const C={};o.$set(C);const x={};l.$set(x);const M={};y&4&&(M.collection=_[2]),a.$set(M)},i(_){f||(T(t),T(o.$$.fragment,_),T(l.$$.fragment,_),T(a.$$.fragment,_),f=!0)},o(_){F(t),F(o.$$.fragment,_),F(l.$$.fragment,_),F(a.$$.fragment,_),f=!1},d(_){u[e].d(_),_&&k(i),n[20](null),q(o,_),_&&k(r),n[21](null),q(l,_),_&&k(s),n[22](null),q(a,_)}}}function iA(n,e,t){var G;let i,o,r,l;pn(n,fi,U=>t(2,o=U)),pn(n,Go,U=>t(10,r=U)),pn(n,pf,U=>t(8,l=U));const s=B.getQueryParams((G=window.location)==null?void 0:G.href);let a,f,c,u,d=s.filter||"",h=s.sort||"-created",b=s.collectionId;B.setDocumentTitle("Collections"),_C(b);const v=()=>a==null?void 0:a.show(),_=()=>a==null?void 0:a.show(o),y=()=>f==null?void 0:f.show(o),S=()=>c==null?void 0:c.show(),C=U=>t(0,d=U.detail);function x(U){he[U?"unshift":"push"](()=>{u=U,t(6,u)})}function M(U){d=U,t(0,d),t(2,o),t(9,b)}function A(U){h=U,t(1,h),t(2,o),t(9,b)}const O=U=>c==null?void 0:c.show(U==null?void 0:U.detail);function D(U){he[U?"unshift":"push"](()=>{a=U,t(3,a)})}function E(U){he[U?"unshift":"push"](()=>{f=U,t(4,f)})}function P(U){he[U?"unshift":"push"](()=>{c=U,t(5,c)})}const I=()=>u==null?void 0:u.load(),R=()=>u==null?void 0:u.load();return n.$$.update=()=>{n.$$.dirty&1024&&t(7,i=r.filter(U=>U.name!="profiles")),n.$$.dirty&516&&(o==null?void 0:o.id)&&b!=o.id&&(t(9,b=o.id),t(1,h="-created"),t(0,d="")),n.$$.dirty&7&&(h||d||(o==null?void 0:o.id))&&B.replaceClientQueryParams({collectionId:o==null?void 0:o.id,filter:d,sort:h})},[d,h,o,a,f,c,u,i,l,b,r,v,_,y,S,C,x,M,A,O,D,E,P,I,R]}class oA extends Ie{constructor(e){super(),Le(this,e,iA,nA,Ee,{})}}function Ym(n){let e,t;return e=new je({props:{class:"form-field disabled",name:"id",$$slots:{default:[rA,({uniqueId:i})=>({31:i}),({uniqueId:i})=>[0,i?1:0]]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},m(i,o){H(e,i,o),t=!0},p(i,o){const r={};o[0]&2|o[1]&3&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){t||(T(e.$$.fragment,i),t=!0)},o(i){F(e.$$.fragment,i),t=!1},d(i){q(e,i)}}}function rA(n){let e,t,i,o,r,l,s,a,f;return{c(){e=g("label"),t=g("i"),i=$(),o=g("span"),o.textContent="ID",l=$(),s=g("input"),p(t,"class",B.getFieldTypeIcon("primary")),p(o,"class","txt"),p(e,"for",r=n[31]),p(s,"type","text"),p(s,"id",a=n[31]),s.value=f=n[1].id,s.disabled=!0},m(c,u){w(c,e,u),m(e,t),m(e,i),m(e,o),w(c,l,u),w(c,s,u)},p(c,u){u[1]&1&&r!==(r=c[31])&&p(e,"for",r),u[1]&1&&a!==(a=c[31])&&p(s,"id",a),u[0]&2&&f!==(f=c[1].id)&&s.value!==f&&(s.value=f)},d(c){c&&k(e),c&&k(l),c&&k(s)}}}function Gm(n){let e,t,i,o;return{c(){e=g("div"),e.innerHTML='<i class="ri-shield-check-line"></i > ' , p ( e , "class" , "form-field-addon txt-success" ) } , m ( r , l ) { w ( r , e , l ) , i || ( o = Xe ( t = St . call ( null , e , "Verified" ) ) , i = ! 0 ) } , d ( r ) { r && k ( e ) , i = ! 1 , o ( ) } } } function lA ( n ) { let e , t , i , o , r , l , s , a , f , c , u , d = n [ 1 ] . verified && Gm ( ) ; return { c ( ) { e = g ( "label" ) , t = g ( "i" ) , i = $ ( ) , o = g ( "span" ) , o . textContent = "Email" , l = $ ( ) , d && d . c ( ) , s = $ ( ) , a = g ( "input" ) , p ( t , "class" , B . getFieldTypeIcon ( "email" ) ) , p ( o , "class" , "txt" ) , p ( e , "for" , r = n [ 31 ] ) , p ( a , "type" , "email" ) , p ( a , "autocomplete" , "off" ) , p ( a , "id" , f = n [ 31 ] ) , a . required = ! 0 } , m ( h , b ) { w ( h , e , b ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , w ( h , l , b ) , d && d . m ( h , b ) , w ( h , s , b ) , w ( h , a , b ) , Me ( a , n [ 2 ] ) , c || ( u = X ( a , "input" , n [ 19 ] ) , c = ! 0 ) } , p ( h , b ) { b [ 1 ] & 1 && r !== ( r = h [ 31 ] ) && p ( e , "for" , r ) , h [ 1 ] . verified ? d || ( d = Gm ( ) , d . c ( ) , d . m ( s . parentNode , s ) ) : d && ( d . d ( 1 ) , d = null ) , b [ 1 ] & 1 && f !== ( f = h [ 31 ] ) && p ( a , "id" , f ) , b [ 0 ] & 4 && a . value !== h [ 2 ] && Me ( a , h [ 2 ] ) } , d ( h ) { h && k ( e ) , h && k ( l )
< span class = "txt" > Send verification email < /span>`,p(e,"type","button"),p(e,"class","dropdown-item")},m(o,r){w(o,e,r),t||(i=X(e,"click",n[16]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function pA(n){let e,t,i,o,r=!n[1].verified&&Qm(n);return{c(){r&&r.c(),e=$(),t=g("button"),t.innerHTML=`<i class="ri-delete-bin-7-line"></i >
< span class = "txt" > Delete < / s p a n > ` , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " d r o p d o w n - i t e m " ) } , m ( l , s ) { r & & r . m ( l , s ) , w ( l , e , s ) , w ( l , t , s ) , i | | ( o = X ( t , " c l i c k " , n [ 1 7 ] ) , i = ! 0 ) } , p ( l , s ) { l [ 1 ] . v e r i f i e d ? r & & ( r . d ( 1 ) , r = n u l l ) : r ? r . p ( l , s ) : ( r = Q m ( l ) , r . c ( ) , r . m ( e . p a r e n t N o d e , e ) ) } , d ( l ) { r & & r . d ( l ) , l & & k ( e ) , l & & k ( t ) , i = ! 1 , o ( ) } } } f u n c t i o n h A ( n ) { l e t e , t , i , o , r , l , s = n [ 1 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " , a , f , c , u , d , h = ! n [ 1 ] . i s N e w & & X m ( n ) ; r e t u r n { c ( ) { h & & h . c ( ) , e = $ ( ) , t = g ( " b u t t o n " ) , i = g ( " s p a n " ) , i . t e x t C o n t e n t = " C a n c e l " , o = $ ( ) , r = g ( " b u t t o n " ) , l = g ( " s p a n " ) , a = j ( s ) , p ( i , " c l a s s " , " t x t " ) , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " b t n b t n - s e c o n d a r y " ) , t . d i s a b l e d = n [ 5 ] , p ( l , " c l a s s " , " t x t " ) , p ( r , " t y p e " , " s u b m i t " ) , p ( r , " f o r m " , n [ 1 1 ] ) , p ( r , " c l a s s " , " b t n b t n - e x p a n d e d " ) , r . d i s a b l e d = f = ! n [ 1 0 ] | | n [ 5 ] , n e ( r , " b t n - l o a d i n g " , n [ 5 ] ) } , m ( b , v ) { h & & h . m ( b , v ) , w ( b , e , v ) , w ( b , t , v ) , m ( t , i ) , w ( b , o , v ) , w ( b , r , v ) , m ( r , l ) , m ( l , a ) , c = ! 0 , u | | ( d = X ( t , " c l i c k " , n [ 1 8 ] ) , u = ! 0 ) } , p ( b , v ) { b [ 1 ] . i s N e w ? h & & ( A e ( ) , F ( h , 1 , 1 , ( ) = > { h = n u l l } ) , D e ( ) ) : h ? ( h . p ( b , v ) , v [ 0 ] & 2 & & T ( h , 1 ) ) : ( h = X m ( b ) , h . c ( ) , T ( h , 1 ) , h . m ( e . p a r e n t N o d e , e ) ) , ( ! c | | v [ 0 ] & 3 2 ) & & ( t . d i s a b l e d = b [ 5 ] ) , ( ! c | | v [ 0 ] & 2 ) & & s ! = = ( s = b [ 1 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & g e ( a , s ) , ( ! c | | v [ 0 ] & 1 0 5 6 & & f ! = = ( f = ! b [ 1 0 ] | | b [ 5 ] ) ) & & ( r . d i s a b l e d = f ) , v [ 0 ] & 3 2 & & n e ( r , " b t n - l o a d i n g " , b [ 5 ] ) } , i ( b ) { c | | ( T ( h ) , c = ! 0 ) } , o ( b ) { F ( h ) , c = ! 1 } , d ( b ) { h & & h . d ( b ) , b & & k ( e ) , b & & k ( t ) , b & & k ( o ) , b & & k ( r ) , u = ! 1 , d ( ) } } } f u n c t i o n m A ( n ) { l e t e , t , i = { p o p u p : ! 0 , c l a s s : " u s e r - p a n e l " , b e f o r e H i d e : n [ 2 4 ] , $ $ s l o t s : { f o o t e r : [ h A ] , h e a d e r : [ d A ] , d e f a u l t : [ u A ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w A i ( { p r o p s : i } ) , n [ 2 5 ] ( e ) , e . $ o n ( " h i d e " , n [ 2 6 ] ) , e . $ o n ( " s h o w " , n [ 2 7 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { H ( e , o , r ) , t = ! 0 } , p ( o , r ) { c o n s t l = { } ; r [ 0 ] & 1 0 8 8 & & ( l . b e f o r e H i d e = o [ 2 4 ] ) , r [ 0 ] & 1 9 6 6 | r [ 1 ] & 2 & & ( l . $ $ s c o p e = { d i r t y : r , c t x : o } ) , e . $ s e t ( l ) } , i ( o ) { t | | ( T ( e . $ $ . f r a g m e n t , o ) , t = ! 0 ) } , o ( o ) { F ( e . $ $ . f r a g m e n t , o ) , t = ! 1 } , d ( o ) { n [ 2 5 ] ( n u l l ) , q ( e , o ) } } } f u n c t i o n b A ( n , e , t ) { l e t i ; c o n s t o = y n ( ) , r = " u s e r _ " + B . r a n d o m S t r i n g ( 5 ) ; l e t l , s = n e w e s , a = ! 1 , f = ! 1 , c = " " , u = " " , d = " " , h = ! 1 , b = ! 0 ; f u n c t i o n v ( W ) { r e t u r n y ( W ) , t ( 6 , f = ! 0 ) , l = = n u l l ? v o i d 0 : l . s h o w ( ) } f u n c t i o n _ ( ) { r e t u r n l = = n u l l ? v o i d 0 : l . h i d e ( ) } f u n c t i o n y ( W ) { U i ( { } ) , t ( 1 , s = W ! = n u l l & & W . c l o n e ? W . c l o n e ( ) : n e w e s ) , S ( ) } f u n c t i o n S ( ) { t ( 3 , h = ! 1 ) , t ( 9 , b = ! 0 ) , t ( 2 , c = ( s = = n u l l ? v o i d 0 : s . e m a i l ) | | " " ) , t ( 7 , u = " " ) , t ( 8 , d = " " ) } f u n c t i o n C ( ) { i f ( a | | ! i ) r e t u r n ; t ( 5 , a = ! 0 ) ; c o n s t W = { e m a i l : c } ; ( s . i s N e w | | h ) & & ( W . p a s s w o r d = u , W . p a s s w o r d C o n f i r m = d ) ; l e t t e ; s . i s N e w ? t e = S e . U s e r s . c r e a t e ( W ) : t e = S e . U s e r s . u p d a t e ( s . i d , W ) , t e . t h e n ( a s y n c c e = > { b & & M ( ! 1 ) , t ( 6 , f = ! 1 ) , _ ( ) , h n ( s . i s N e w ? " S u c c e s s f u l l y c r e a t e d u s e r . " : " S u c c e s s f u l l y u p d a t e d u s e r . " ) , o ( " s a v e " , c e ) } ) . c a t c h ( c e = > { S e . e r r o r R e s p o n s e H a n d l e r ( c e ) } ) . f i n a l l y ( ( ) = > { t ( 5 , a = ! 1 ) } ) } f u n c t i o n x ( ) { ! ( s ! = n u l l & & s . i d ) | | x i ( " D o y o u r e a l l y w a n t t o d e l e t e t h e s e l e c t e d u s e r ? " , ( ) = > S e . U s e r s . d e l e t e ( s . i d ) . t h e n ( ( ) = > { t ( 6 , f = ! 1 ) , _ ( ) , h n ( " S u c c e s s f u l l y d e l e t e d u s e r . " ) , o ( " d e l e t e " , s ) } ) . c a t c h ( W = > { S e . e r r o r R e s p o n s e H a n d l e r ( W ) } ) ) } f u n c t i o n M ( W = ! 0 ) { r e t u r n S e . U s e r s . r e q u e s t V e r i f i c a t i o n ( s . i s N e w ? c : s . e m a i l ) . t h e n ( ( ) = > { t ( 6 , f = ! 1 ) , _ ( ) , W & & h n ( ` S u c c e s s f u l l y s e n t v e r i f i c a t i o n e m a i l t o $ { s . e m a i l } . ` ) } ) . c a t c h ( t e = > { S e . e r r o r R e s p o n s e H a n d l e r ( t e ) } ) } c o n s t A = ( ) = > M ( ) , O = ( ) = > x ( ) , D = ( ) = > _ ( ) ; f u n c t i o n E ( ) { c = t h i s . v a l u e , t ( 2 , c ) } f u n c t i o n P ( ) { h = t h i s . c h e c k e d , t ( 3 , h ) } f u n c t i o n I ( ) { u = t h i s . v a l u e , t ( 7 , u ) } f u n c t i o n R ( ) { d = t h i s . v a l u e , t ( 8 , d ) } f u n c t i o n G ( ) { b = t h i s . c h e c k e d , t ( 9 , b ) } c o n s t U = ( ) = > i & & f ? ( x i ( " Y o u h a v e u n s a v e d c h a n g e s . D o y o u r e a l l y w a n t t o c l o s e t h e p a n e l ? " , ( ) = > { t ( 6 , f = ! 1 ) , _ ( ) } ) , ! 1 ) : ! 0 ; f u n c t i o n z ( W ) { h e [ W ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = W , t ( 4 , l ) } ) } f u n c t i o n K ( W ) { f t . c a l l ( t h i s , n , W ) } f u n c t i o n Y ( W ) { f t . c a l l ( t h i s , n , W ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y [ 0 ] & 1 4 & & t ( 1 0 , i = s . i s N e w & & c ! = " " | | h | | c ! = = s . e m a i l ) } , [ _ , s , c , h , l , a , f , u , d , b , i , r , C , x , M , v , A , O , D , E , P , I , R , G , U , z , K , Y ] } c l a s s g A e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , b A , m A , E e , { s h o w : 1 5 , h i d e : 0 } , n u l l , [ - 1 , - 1 ] ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 1 5 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n e b ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 3 7 ] = e [ t ] , i } f u n c t i o n t b ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 4 0 ] = e [ t ] , i } f u n c t i o n n b ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 4 0 ] = e [ t ] , i } f u n c t i o n _ A ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h , b , v , _ , y , S , C , x , M , A , O = [ ] , D = n e w M a p , E , P , I , R , G , U , z , K , Y , W , t e = [ ] , c e = n e w M a p , v e , o e , J , $ e , e e ; u = n e w D s ( { p r o p s : { v a l u e : n [ 3 ] , p l a c e h o l d e r : " S e a r c h f i l t e r , e g . v e r i f i e d = 1 " , e x t r a A u t o c o m p l e t e K e y s : [ " v e r i f i e d " , " e m a i l " ] } } ) , u . $ o n ( " s u b m i t " , n [ 1 7 ] ) ; f u n c t i o n _ e ( Z ) { n [ 1 8 ] ( Z ) } l e
< span class = "txt" > New user < / s p a n > ` , c = $ ( ) , V ( u . $ $ . f r a g m e n t ) , d = $ ( ) , h = g ( " d i v " ) , b = g ( " t a b l e " ) , v = g ( " t h e a d " ) , _ = g ( " t r " ) , V ( y . $ $ . f r a g m e n t ) , C = $ ( ) , V ( x . $ $ . f r a g m e n t ) , A = $ ( ) ; f o r ( l e t Z = 0 ; Z < O . l e n g t h ; Z + = 1 ) O [ Z ] . c ( ) ; E = $ ( ) , V ( P . $ $ . f r a g m e n t ) , R = $ ( ) , V ( G . $ $ . f r a g m e n t ) , z = $ ( ) , K = g ( " t h " ) , Y = $ ( ) , W = g ( " t b o d y " ) ; f o r ( l e t Z = 0 ; Z < t e . l e n g t h ; Z + = 1 ) t e [ Z ] . c ( ) ; J e & & J e . c ( ) , v e = $ ( ) , b e & & b e . c ( ) , o e = $ ( ) , O e & & O e . c ( ) , p ( i , " c l a s s " , " b r e a d c r u m b s " ) , p ( r , " t y p e " , " b u t t o n " ) , p ( r , " c l a s s " , " b t n b t n - s e c o n d a r y b t n - c i r c l e " ) , p ( s , " c l a s s " , " f l e x - f i l l " ) , p ( f , " t y p e " , " b u t t o n " ) , p ( f , " c l a s s " , " b t n b t n - e x p a n d e d " ) , p ( t , " c l a s s " , " p a g e - h e a d e r " ) , p ( K , " c l a s s " , " c o l - t y p e - a c t i o n m i n - w i d t h " ) , p ( b , " c l a s s " , " t a b l e " ) , n e ( b , " t a b l e - l o a d i n g " , n [ 1 0 ] ) , p ( h , " c l a s s " , " t a b l e - w r a p p e r " ) , p ( e , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( Z , a e ) { w ( Z , e , a e ) , m ( e , t ) , m ( t , i ) , m ( t , o ) , m ( t , r ) , m ( t , l ) , m ( t , s ) , m ( t , a ) , m ( t , f ) , m ( e , c ) , H ( u , e , n u l l ) , m ( e , d ) , m ( e , h ) , m ( h , b ) , m ( b , v ) , m ( v , _ ) , H ( y , _ , n u l l ) , m ( _ , C ) , H ( x , _ , n u l l ) , m ( _ , A ) ; f o r ( l e t V e = 0 ; V e < O . l e n g t h ; V e + = 1 ) O [ V e ] . m ( _ , n u l l ) ; m ( _ , E ) , H ( P , _ , n u l l ) , m ( _ , R ) , H ( G , _ , n u l l ) , m ( _ , z ) , m ( _ , K ) , m ( b , Y ) , m ( b , W ) ; f o r ( l e t V e = 0 ; V e < t e . l e n g t h ; V e + = 1 ) t e [ V e ] . m ( W , n u l l ) ; J e & & J e . m ( W , n u l l ) , m ( e , v e ) , b e & & b e . m ( e , n u l l ) , m ( e , o e ) , O e & & O e . m ( e , n u l l ) , J = ! 0 , $ e | | ( e e = [ X e ( S t . c a l l ( n u l l , r , { t e x t : " E d i t p r o f i l e c o l l e c t i o n " , p o s i t i o n : " r i g h t " } ) ) , X ( r , " c l i c k " , n [ 1 5 ] ) , X ( f , " c l i c k " , n [ 1 6 ] ) ] , $ e = ! 0 ) } , p ( Z , a e ) { c o n s t V e = { } ; a e [ 0 ] & 8 & & ( V e . v a l u e = Z [ 3 ] ) , u . $ s e t ( V e ) ; c o n s t y t = { } ; a e [ 1 ] & 1 6 3 8 4 & & ( y t . $ $ s c o p e = { d i r t y : a e , c t x : Z } ) , ! S & & a e [ 0 ] & 1 6 & & ( S = ! 0 , y t . s o r t = Z [ 4 ] , R e ( ( ) = > S = ! 1 ) ) , y . $ s e t ( y t ) ; c o n s t i t = { } ; a e [ 1 ] & 1 6 3 8 4 & & ( i t . $ $ s c o p e = { d i r t y : a e , c t x : Z } ) , ! M & & a e [ 0 ] & 1 6 & & ( M = ! 0 , i t . s o r t = Z [ 4 ] , R e ( ( ) = > M = ! 1 ) ) , x . $ s e t ( i t ) , a e [ 0 ] & 4 0 9 6 & & ( N e = Z [ 1 2 ] , O = s t ( O , a e , P e , 1 , Z , N e , D , _ , a n , i b , E , n b ) ) ; c o n s t b t = { } ; a e [ 1 ] & 1 6 3 8 4 & & ( b t . $ $ s c o p e = { d i r t y : a e , c t x : Z } ) , ! I & & a e [ 0 ] & 1 6 & & ( I = ! 0 , b t . s o r t = Z [ 4 ] , R e ( ( ) = > I = ! 1 ) ) , P . $ s e t ( b t ) ; c o n s t a t = { } ; a e [ 1 ] & 1 6 3 8 4 & & ( a t . $ $ s c o p e = { d i r t y : a e , c t x : Z } ) , ! U & & a e [ 0 ] & 1 6 & & ( U = ! 0 , a t . s o r t = Z [ 4 ] , R e ( ( ) = > U = ! 1 ) ) , G . $ s e t ( a t ) , a e [ 0 ] & 5 4 5 0 & & ( H e = Z [ 1 ] , A e ( ) , t e = s t ( t e , a e , q e , 1 , Z , H e , c e , W , P t , s b , n u l l , e b ) , D e ( ) , ! H e . l e n g t h & & J e ? J e . p ( Z , a e ) : H e . l e n g t h ? J e & & ( J e . d ( 1 ) , J e = n u l l ) : ( J e = o b ( Z ) , J e . c ( ) , J e . m ( W , n u l l ) ) ) , a e [ 0 ] & 1 0 2 4 & & n e ( b , " t a b l e - l o a d i n g " , Z [ 1 0 ] ) , Z [ 1 ] . l e n g t h ? b e ? b e . p ( Z , a e ) : ( b e = a b ( Z ) , b e . c ( ) , b e . m ( e , o e ) ) : b e & & ( b e . d ( 1 ) , b e = n u l l ) , Z [ 1 ] . l e n g t h & & Z [ 1 3 ] ? O e ? O e . p ( Z , a e ) : ( O e = f b ( Z ) , O e . c ( ) , O e . m ( e , n u l l ) ) : O e & & ( O e . d ( 1 ) , O e = n u l l ) } , i ( Z ) { i f ( ! J ) { T ( u . $ $ . f r a g m e n t , Z ) , T ( y . $ $ . f r a g m e n t , Z ) , T ( x . $ $ . f r a g m e n t , Z ) , T ( P . $ $ . f r a g m e n t , Z ) , T ( G . $ $ . f r a g m e n t , Z ) ; f o r ( l e t a e = 0 ; a e < H e . l e n g t h ; a e + = 1 ) T ( t e [ a e ] ) ; J = ! 0 } } , o ( Z ) { F ( u . $ $ . f r a g m e n t , Z ) , F ( y . $ $ . f r a g m e n t , Z ) , F ( x . $ $ . f r a g m e n t , Z ) , F ( P . $ $ . f r a g m e n t , Z ) , F ( G . $ $ . f r a g m e n t , Z ) ; f o r ( l e t a e = 0 ; a e < t e . l e n g t h ; a e + = 1 ) F ( t e [ a e ] ) ; J = ! 1 } , d ( Z ) { Z & & k ( e ) , q ( u ) , q ( y ) , q ( x ) ; f o r ( l e t a e = 0 ; a e < O . l e n g t h ; a e + = 1 ) O [ a e ] . d ( ) ; q ( P ) , q ( G ) ; f o r ( l e t a e = 0 ; a e < t e . l e n g t h ; a e + = 1 ) t e [ a e ] . d ( ) ; J e & & J e . d ( ) , b e & & b e . d ( ) , O e & & O e . d ( ) , $ e = ! 1 , r t ( e e ) } } } f u n c t i o n v A ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , e . i n n e r H T M L = ` < s p a n c l a s s = " l o a d e r l o a d e r - l g " > < / s p a n >
< h1 > Loading users ... < / h 1 > ` , p ( e , " c l a s s " , " p l a c e h o l d e r - s e c t i o n m - b - b a s e " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , i : l e , o : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n y A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " i d " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n k A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " e m a i l " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " e m a i l " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n i b ( n , e ) { l e t t , i , o , r , l , s , a , f = e [ 4 0 ] . n a m e + " " , c , u , d ; r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = g ( " t h " ) , i = g ( " d i v " ) , o = g ( " i " ) , l = $ ( ) , s = g ( " s p a n " ) , a = j ( " p r o f i l e . " ) , c = j ( f ) , p ( o , " c l a s s " , r = B . g e t F i e l d T y p e I c o n ( e [ 4 0 ] . t y p e ) ) , p ( s , " c l a s s " , " t x t " ) , p ( i , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) , p ( t , " c l a s s " , u = " c o l - t y p e - " + e [ 4 0 ] . t y p e + " c o l - f i e l d - " + e [ 4 0 ] . n a m e ) , p ( t , " n a m e " , d = e [ 4 0 ] . n a m e ) , t h i s . f i r s t = t } , m ( h , b ) { w ( h , t , b ) , m ( t , i ) , m ( i , o ) , m ( i , l ) , m ( i , s ) , m ( s , a ) , m ( s , c ) } , p ( h , b ) { e = h , b [ 0 ] & 4 0 9 6 & & r ! = = ( r = B . g e t F i e l d T y p e I c o n ( e [ 4 0 ] . t y p e ) ) & & p ( o , " c l a s s " , r ) , b [ 0 ] & 4 0 9 6 & & f ! = = ( f = e [ 4 0 ] . n a m e + " " ) & & g e ( c , f ) , b [ 0 ] & 4 0 9 6 & & u ! = = ( u = " c o l - t y p e - " + e [ 4 0 ] . t y p e + " c o l - f i e l d - " + e [ 4 0 ] . n a m e ) & & p ( t , " c l a s s " , u ) , b [ 0 ] & 4 0 9 6 & & d ! = = ( d = e [ 4 0 ] . n a m e ) & & p ( t , " n a m e " , d ) } , d ( h ) { h & & k ( t ) } } } f u n c t i o n w A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " c r e a t e d " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " d a t e " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n S A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " u p d a t e d " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " d a t e " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n o b ( n ) { l e t e ; f u n c t i o n t ( r , l ) { r e t u r n r [ 1 0 ] ? x A : C A } l e t i = t ( n ) , o = i ( n ) ; r e t u r n { c ( ) { o . c ( ) , e = l t ( ) } , m ( r , l ) { o . m ( r , l ) , w ( r , e , l ) } , p ( r , l ) { i = = = ( i = t ( r ) ) & & o ? o . p ( r , l ) : ( o . d ( 1 ) , o = i ( r ) , o & & ( o . c ( ) , o . m ( e . p a r e n t N o d e , e ) ) ) } , d ( r ) { o . d ( r ) , r & & k ( e ) } } } f u n c t i o n C A ( n ) { v a r s ; l e t e , t , i , o , r , l = ( ( s = n [ 3 ] ) = = n u l l ? v o i d 0 : s . l e n g t h ) & & r b ( n ) ; r e t u r n { c ( ) { e = g ( " t r " ) , t = g ( " t d " ) , i = g ( " h 6 " ) , i . t e x t C o n t e n t = " N o u s e r s f o u n d . " , o = $ ( ) , l & & l . c ( ) , r = $ ( ) , p ( t , " c o l s p a n " , " 9 9 " ) , p ( t , " c l a s s " , " t x t - c e n t e r t x t - h i n t p - x s " ) } , m ( a , f ) { w ( a , e , f ) , m ( e , t ) , m ( t , i ) , m ( t , o ) , l & & l . m ( t , n u l l ) , m ( e , r ) } , p ( a , f ) { v a r c ; ( c = a [ 3 ] ) ! = n u l l & & c . l e n g t h ? l ? l . p ( a , f ) : ( l = r b ( a ) , l . c ( ) , l . m ( t , n u l l ) ) : l & & ( l . d ( 1 ) , l = n u l l ) } , d ( a ) { a & & k ( e ) , l & & l . d ( ) } } } f u n c t i o n x A ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " t r " ) , e . i n n e r H T M L = ` < t d c o l s p a n = " 9 9 " c l a s s = " p - x s " > < s p a n c l a s s = " s k e l e t o n - l o a d e r " > < / s p a n > < / t d >
` },m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function rb(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Clear filters</span>',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(o,r){w(o,e,r),t||(i=X(e,"click",n[24]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function lb(n,e){let t,i,o;return i=new L1({props:{field:e[40],record:e[37].profile||{}}}),{key:n,first:null,c(){t=lt(),V(i. $ $ .fragment),this.first=t},m(r,l){w(r,t,l),H(i,r,l),o=!0},p(r,l){e=r;const s={};l[0]&4096&&(s.field=e[40]),l[0]&2&&(s.record=e[37].profile||{}),i. $ set(s)},i(r){o||(T(i. $ $ .fragment,r),o=!0)},o(r){F(i. $ $ .fragment,r),o=!1},d(r){r&&k(t),q(i,r)}}}function sb(n,e){let t,i,o,r,l,s,a,f=e[37].email+"",c,u,d,h,b=e[37].verified?"Verified":"Unverified",v,_,y=[],S=new Map,C,x,M,A,O,D,E,P,I,R,G,U,z,K,Y;o=new Ls({props:{id:e[37].id}});let W=e[12];const te=oe=>oe[40].name;for(let oe=0;oe<W.length;oe+=1){let J=tb(e,W,oe), $ e=te(J);S.set( $ e,y[oe]=lb( $ e,J))}M=new Ci({props:{date:e[37].created}}),D=new Ci({props:{date:e[37].updated}});function ce(){return e[22](e[37])}function ve(){return e[23](e[37])}return{key:n,first:null,c(){t=g("tr"),i=g("td"),V(o. $ $ .fragment),r= $ (),l=g("td"),s=g("div"),a=g("span"),c=j(f),d= $ (),h=g("span"),v=j(b),_= $ ();for(let oe=0;oe<y.length;oe+=1)y[oe].c();C= $ (),x=g("td"),V(M. $ $ .fragment),A= $ (),O=g("td"),V(D. $ $ .fragment),E= $ (),P=g("td"),I=g("button"),I.innerHTML= ` < i class = "ri-user-settings-line" > < / i >
< span class = "txt" > Edit user < /span>`,R=$(),G=g("button"),G.innerHTML=`<i class="ri-profile-line"></i >
< span class = "txt" > Edit profile < / s p a n > ` , U = $ ( ) , p ( i , " c l a s s " , " c o l - t y p e - t e x t c o l - f i e l d - i d " ) , p ( a , " c l a s s " , " t x t " ) , p ( a , " t i t l e " , u = e [ 3 7 ] . e m a i l ) , p ( h , " c l a s s " , " l a b e l " ) , n e ( h , " l a b e l - s u c c e s s " , e [ 3 7 ] . v e r i f i e d ) , n e ( h , " l a b e l - w a r n i n g " , ! e [ 3 7 ] . v e r i f i e d ) , p ( s , " c l a s s " , " i n l i n e - f l e x " ) , p ( l , " c l a s s " , " c o l - t y p e - e m a i l c o l - f i e l d - e m a i l " ) , p ( x , " c l a s s " , " c o l - t y p e - d a t e c o l - f i e l d - c r e a t e d " ) , p ( O , " c l a s s " , " c o l - t y p e - d a t e c o l - f i e l d - u p d a t e d " ) , p ( I , " t y p e " , " b u t t o n " ) , p ( I , " c l a s s " , " b t n b t n - s m b t n - o u t l i n e " ) , p ( G , " t y p e " , " b u t t o n " ) , p ( G , " c l a s s " , " b t n b t n - s m m - l - 1 0 " ) , p ( P , " c l a s s " , " c o l - t y p e - a c t i o n m i n - w i d t h " ) , t h i s . f i r s t = t } , m ( o e , J ) { w ( o e , t , J ) , m ( t , i ) , H ( o , i , n u l l ) , m ( t , r ) , m ( t , l ) , m ( l , s ) , m ( s , a ) , m ( a , c ) , m ( s , d ) , m ( s , h ) , m ( h , v ) , m ( t , _ ) ; f o r ( l e t $ e = 0 ; $ e < y . l e n g t h ; $ e + = 1 ) y [ $ e ] . m ( t , n u l l ) ; m ( t , C ) , m ( t , x ) , H ( M , x , n u l l ) , m ( t , A ) , m ( t , O ) , H ( D , O , n u l l ) , m ( t , E ) , m ( t , P ) , m ( P , I ) , m ( P , R ) , m ( P , G ) , m ( t , U ) , z = ! 0 , K | | ( Y = [ X ( I , " c l i c k " , V n ( c e ) ) , X ( G , " c l i c k " , V n ( v e ) ) ] , K = ! 0 ) } , p ( o e , J ) { e = o e ; c o n s t $ e = { } ; J [ 0 ] & 2 & & ( $ e . i d = e [ 3 7 ] . i d ) , o . $ s e t ( $ e ) , ( ! z | | J [ 0 ] & 2 ) & & f ! = = ( f = e [ 3 7 ] . e m a i l + " " ) & & g e ( c , f ) , ( ! z | | J [ 0 ] & 2 & & u ! = = ( u = e [ 3 7 ] . e m a i l ) ) & & p ( a , " t i t l e " , u ) , ( ! z | | J [ 0 ] & 2 ) & & b ! = = ( b = e [ 3 7 ] . v e r i f i e d ? " V e r i f i e d " : " U n v e r i f i e d " ) & & g e ( v , b ) , J [ 0 ] & 2 & & n e ( h , " l a b e l - s u c c e s s " , e [ 3 7 ] . v e r i f i e d ) , J [ 0 ] & 2 & & n e ( h , " l a b e l - w a r n i n g " , ! e [ 3 7 ] . v e r i f i e d ) , J [ 0 ] & 4 0 9 8 & & ( W = e [ 1 2 ] , A e ( ) , y = s t ( y , J , t e , 1 , e , W , S , t , P t , l b , C , t b ) , D e ( ) ) ; c o n s t e e = { } ; J [ 0 ] & 2 & & ( e e . d a t e = e [ 3 7 ] . c r e a t e d ) , M . $ s e t ( e e ) ; c o n s t _ e = { } ; J [ 0 ] & 2 & & ( _ e . d a t e = e [ 3 7 ] . u p d a t e d ) , D . $ s e t ( _ e ) } , i ( o e ) { i f ( ! z ) { T ( o . $ $ . f r a g m e n t , o e ) ; f o r ( l e t J = 0 ; J < W . l e n g t h ; J + = 1 ) T ( y [ J ] ) ; T ( M . $ $ . f r a g m e n t , o e ) , T ( D . $ $ . f r a g m e n t , o e ) , z = ! 0 } } , o ( o e ) { F ( o . $ $ . f r a g m e n t , o e ) ; f o r ( l e t J = 0 ; J < y . l e n g t h ; J + = 1 ) F ( y [ J ] ) ; F ( M . $ $ . f r a g m e n t , o e ) , F ( D . $ $ . f r a g m e n t , o e ) , z = ! 1 } , d ( o e ) { o e & & k ( t ) , q ( o ) ; f o r ( l e t J = 0 ; J < y . l e n g t h ; J + = 1 ) y [ J ] . d ( ) ; q ( M ) , q ( D ) , K = ! 1 , r t ( Y ) } } } f u n c t i o n a b ( n ) { l e t e , t , i = n [ 1 ] . l e n g t h + " " , o , r , l ; r e t u r n { c ( ) { e = g ( " s m a l l " ) , t = j ( " S h o w i n g " ) , o = j ( i ) , r = j ( " o f " ) , l = j ( n [ 2 ] ) , p ( e , " c l a s s " , " b l o c k t x t - h i n t t x t - r i g h t m - t - s m " ) } , m ( s , a ) { w ( s , e , a ) , m ( e , t ) , m ( e , o ) , m ( e , r ) , m ( e , l ) } , p ( s , a ) { a [ 0 ] & 2 & & i ! = = ( i = s [ 1 ] . l e n g t h + " " ) & & g e ( o , i ) , a [ 0 ] & 4 & & g e ( l , s [ 2 ] ) } , d ( s ) { s & & k ( e ) } } } f u n c t i o n f b ( n ) { l e t e , t , i , o , r = n [ 2 ] - n [ 1 ] . l e n g t h + " " , l , s , a , f ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " b u t t o n " ) , i = g ( " s p a n " ) , o = j ( " L o a d m o r e ( " ) , l = j ( r ) , s = j ( " ) " ) , p ( i , " c l a s s " , " t x t " ) , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " b t n b t n - l g b t n - s e c o n d a r y b t n - e x p a n d e d " ) , n e ( t , " b t n - l o a d i n g " , n [ 1 0 ] ) , n e ( t , " b t n - d i s a b l e d " , n [ 1 0 ] ) , p ( e , " c l a s s " , " b l o c k t x t - c e n t e r m - t - x s " ) } , m ( c , u ) { w ( c , e , u ) , m ( e , t ) , m ( t , i ) , m ( i , o ) , m ( i , l ) , m ( i , s ) , a | | ( f = X ( t , " c l i c k " , n [ 2 5 ] ) , a = ! 0 ) } , p ( c , u ) { u [ 0 ] & 6 & & r ! = = ( r = c [ 2 ] - c [ 1 ] . l e n g t h + " " ) & & g e ( l , r ) , u [ 0 ] & 1 0 2 4 & & n e ( t , " b t n - l o a d i n g " , c [ 1 0 ] ) , u [ 0 ] & 1 0 2 4 & & n e ( t , " b t n - d i s a b l e d " , c [ 1 0 ] ) } , d ( c ) { c & & k ( e ) , a = ! 1 , f ( ) } } } f u n c t i o n M A ( n ) { l e t e , t , i , o , r , l , s , a , f ; c o n s t c = [ v A , _ A ] , u = [ ] ; f u n c t i o n d ( _ , y ) { r e t u r n _ [ 1 1 ] ? 0 : 1 } e = d ( n ) , t = u [ e ] = c [ e ] ( n ) ; l e t h = { } ; o = n e w g A ( { p r o p s : h } ) , n [ 2 6 ] ( o ) , o . $ o n ( " s a v e " , n [ 2 7 ] ) , o . $ o n ( " d e l e t e " , n [ 2 8 ] ) ; l e t b = { } ; l = n e w h c ( { p r o p s : b } ) , n [ 2 9 ] ( l ) , l . $ o n ( " s a v e " , n [ 3 0 ] ) ; l e t v = { c o l l e c t i o n : n [ 5 ] } ; r e t u r n a = n e w F 1 ( { p r o p s : v } ) , n [ 3 1 ] ( a ) , a . $ o n ( " s a v e " , n [ 3 2 ] ) , { c ( ) { t . c ( ) , i = $ ( ) , V ( o . $ $ . f r a g m e n t ) , r = $ ( ) , V ( l . $ $ . f r a g m e n t ) , s = $ ( ) , V ( a . $ $ . f r a g m e n t ) } , m ( _ , y ) { u [ e ] . m ( _ , y ) , w ( _ , i , y ) , H ( o , _ , y ) , w ( _ , r , y ) , H ( l , _ , y ) , w ( _ , s , y ) , H ( a , _ , y ) , f = ! 0 } , p ( _ , y ) { l e t S = e ; e = d ( _ ) , e = = = S ? u [ e ] . p ( _ , y ) : ( A e ( ) , F ( u [ S ] , 1 , 1 , ( ) = > { u [ S ] = n u l l } ) , D e ( ) , t = u [ e ] , t ? t . p ( _ , y ) : ( t = u [ e ] = c [ e ] ( _ ) , t . c ( ) ) , T ( t , 1 ) , t . m ( i . p a r e n t N o d e , i ) ) ; c o n s t C = { } ; o . $ s e t ( C ) ; c o n s t x = { } ; l . $ s e t ( x ) ; c o n s t M = { } ; y [ 0 ] & 3 2 & & ( M . c o l l e c t i o n = _ [ 5 ] ) , a . $ s e t ( M ) } , i ( _ ) { f | | ( T ( t ) , T ( o . $ $ . f r a g m e n t , _ ) , T ( l . $ $ . f r a g m e n t , _ ) , T ( a . $ $ . f r a g m e n t , _ ) , f = ! 0 ) } , o ( _ ) { F ( t ) , F ( o . $ $ . f r a g m e n t , _ ) , F ( l . $ $ . f r a g m e n t , _ ) , F ( a . $ $ . f r a g m e n t , _ ) , f = ! 1 } , d ( _ ) { u [ e ] . d ( _ ) , _ & & k ( i ) , n [ 2 6 ] ( n u l l ) , q ( o , _ ) , _ & & k ( r ) , n [ 2 9 ] ( n u l l ) , q ( l , _ ) , _ & & k ( s ) , n [ 3 1 ] ( n u l l ) , q ( a , _ ) } } } f u n c t i o n $ A ( n , e , t ) { v a r $ e ; l e t i , o ; c o n s t r = B . g e t Q u e r y P a r a m s ( ( $ e = w i n d o w . l o c a t i o n ) = = n u l l ? v o i d 0 : $ e . h r e f ) , l = [ " i d " , " u s e r I d " , " c r e a t e d " , " u p d a t e d " ] ; l e t s , a , f , c = [ ] , u = 1 , d = 0 , h = ! 1 , b = r . f i l t e r | | " " , v = r . s o r t | | " - c r e a t e d " , _ = n e w E n , y = ! 1 ; B . s e t D o c u m e n t T i t l e ( " U s e r s " ) , M ( ) ; a s y n c f u n c t i o n S ( e e = 1 ) { r e t u r n t ( 1 0 , h = ! 0 ) , S e . U s e r s . g e t L i s t ( e e , 5 0 , { s o r t : v | | " - c r e a t e d " , f i l t e r : b } ) . t h e n ( _ e = > { e e < = 1 & & C ( ) , t ( 1 0 , h = ! 1 ) , t ( 1 , c = c . c o n c a t ( _ e . i t e m s ) ) , t ( 9 , u = _ e . p a g e ) , t ( 2 , d = _ e . t o t a l I t e m s ) } ) . c a t c h ( _ e = > { _ e ! = = n u l l & & ( t ( 1 0 , h = ! 1 ) , c o n s o l e . w a r n ( _ e ) , C ( ) , S e . e r r o r R e s p o n s e H a n d l e r ( _ e , ! 1 ) ) } ) } f u n c t i o n C ( ) { t ( 1 , c = [ ] ) , t ( 9 , u = 1 ) , t (
< span class = "txt" > Application < /span>`,l=$(),s=g("a"),s.innerHTML=`<i class="ri-send-plane-2-line"></i >
< span class = "txt" > Mail settings < /span>`,a=$(),f=g("a"),f.innerHTML=`<i class="ri-archive-drawer-line"></i >
< span class = "txt" > Files storage < /span>`,c=$(),u=g("div"),u.textContent="Authentication",d=$(),h=g("a"),h.innerHTML=`<i class="ri-lock-password-line"></i >
< span class = "txt" > Auth providers < /span>`,b=$(),v=g("a"),v.innerHTML=`<i class="ri-key-line"></i >
< span class = "txt" > Token options < /span>`,_=$(),y=g("a"),y.innerHTML=`<i class="ri-shield-user-line"></i >
< span class = "txt" > Admins < / s p a n > ` , p ( i , " c l a s s " , " s i d e b a r - t i t l e " ) , p ( r , " h r e f " , " / s e t t i n g s " ) , p ( r , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( s , " h r e f " , " / s e t t i n g s / m a i l " ) , p ( s , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( f , " h r e f " , " / s e t t i n g s / s t o r a g e " ) , p ( f , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( u , " c l a s s " , " s i d e b a r - t i t l e " ) , p ( h , " h r e f " , " / s e t t i n g s / a u t h - p r o v i d e r s " ) , p ( h , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( v , " h r e f " , " / s e t t i n g s / t o k e n s " ) , p ( v , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( y , " h r e f " , " / s e t t i n g s / a d m i n s " ) , p ( y , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( t , " c l a s s " , " s i d e b a r - c o n t e n t " ) , p ( e , " c l a s s " , " p a g e - s i d e b a r s e t t i n g s - s i d e b a r " ) } , m ( x , M ) { w ( x , e , M ) , m ( e , t ) , m ( t , i ) , m ( t , o ) , m ( t , r ) , m ( t , l ) , m ( t , s ) , m ( t , a ) , m ( t , f ) , m ( t , c ) , m ( t , u ) , m ( t , d ) , m ( t , h ) , m ( t , b ) , m ( t , v ) , m ( t , _ ) , m ( t , y ) , S | | ( C = [ X e ( l i . c a l l ( n u l l , r , { p a t h : " / s e t t i n g s " } ) ) , X e ( x n . c a l l ( n u l l , r ) ) , X e ( l i . c a l l ( n u l l , s , { p a t h : " / s e t t i n g s / m a i l / ? . * " } ) ) , X e ( x n . c a l l ( n u l l , s ) ) , X e ( l i . c a l l ( n u l l , f , { p a t h : " / s e t t i n g s / s t o r a g e / ? . * " } ) ) , X e ( x n . c a l l ( n u l l , f ) ) , X e ( l i . c a l l ( n u l l , h , { p a t h : " / s e t t i n g s / a u t h - p r o v i d e r s / ? . * " } ) ) , X e ( x n . c a l l ( n u l l , h ) ) , X e ( l i . c a l l ( n u l l , v , { p a t h : " / s e t t i n g s / t o k e n s / ? . * " } ) ) , X e ( x n . c a l l ( n u l l , v ) ) , X e ( l i . c a l l ( n u l l , y , { p a t h : " / s e t t i n g s / a d m i n s / ? . * " } ) ) , X e ( x n . c a l l ( n u l l , y ) ) ] , S = ! 0 ) } , p : l e , i : l e , o : l e , d ( x ) { x & & k ( e ) , S = ! 1 , r t ( C ) } } } c l a s s e r e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , n u l l , D A , E e , { } ) } } f u n c t i o n c b ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 3 1 ] = e [ t ] , i } f u n c t i o n u b ( n ) { l e t e , t ; r e t u r n e = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d d i s a b l e d " , n a m e : " i d " , $ $ s l o t s : { d e f a u l t : [ O A , ( { u n i q u e I d : i } ) = > ( { 3 0 : i } ) , ( { u n i q u e I d : i } ) = > [ i ? 1 0 7 3 7 4 1 8 2 4 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , o ) { H ( e , i , o ) , t = ! 0 } , p ( i , o ) { c o n s t r = { } ; o [ 0 ] & 1 0 7 3 7 4 1 8 2 6 | o [ 1 ] & 8 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : i } ) , e . $ s e t ( r ) } , i ( i ) { t | | ( T ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { F ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { q ( e , i ) } } } f u n c t i o n O A ( n ) { l e t e , t , i , o , r , l , s , a , f ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " I D " , l = $ ( ) , s = g ( " i n p u t " ) , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " f o r " , r = n [ 3 0 ] ) , p ( s , " t y p e " , " t e x t " ) , p ( s , " i d " , a = n [ 3 0 ] ) , s . v a l u e = f = n [ 1 ] . i d , s . d i s a b l e d = ! 0 } , m ( c , u ) { w ( c , e , u ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , w ( c , l , u ) , w ( c , s , u ) } , p ( c , u ) { u [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & r ! = = ( r = c [ 3 0 ] ) & & p ( e , " f o r " , r ) , u [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & a ! = = ( a = c [ 3 0 ] ) & & p ( s , " i d " , a ) , u [ 0 ] & 2 & & f ! = = ( f = c [ 1 ] . i d ) & & s . v a l u e ! = = f & & ( s . v a l u e = f ) } , d ( c ) { c & & k ( e ) , c & & k ( l ) , c & & k ( s ) } } } f u n c t i o n d b ( n ) { l e t e , t , i , o , r , l , s , a ; f u n c t i o n f ( ) { r e t u r n n [ 1 7 ] ( n [ 3 1 ] ) } f u n c t i o n c ( . . . u ) { r e t u r n n [ 1 8 ] ( n [ 3 1 ] , . . . u ) } r e t u r n { c ( ) { e = g ( " f i g u r e " ) , t = g ( " i m g " ) , r = $ ( ) , Q n ( t . s r c , i = " / _ / i m a g e s / a v a t a r s / a v a t a r " + n [ 3 1 ] + " . s v g " ) | | p ( t , " s r c " , i ) , p ( t , " a l t " , o = " A v a t a r " + n [ 3 1 ] ) , p ( e , " t a b i n d e x " , " 0 " ) , p ( e , " c l a s s " , l = " l i n k - f a d e t h u m b t h u m b - c i r c l e " + ( n [ 3 1 ] = = n [ 2 ] ? " t h u m b - a c t i v e " : " t h u m b - s m " ) ) } , m ( u , d ) { w ( u , e , d ) , m ( e , t ) , m ( e , r ) , s | | ( a = [ X ( e , " c l i c k " , f ) , X ( e , " k e y d o w n " , c ) ] , s = ! 0 ) } , p ( u , d ) { n = u , d [ 0 ] & 4 & & l ! = = ( l = " l i n k - f a d e t h u m b t h u m b - c i r c l e " + ( n [ 3 1 ] = = n [ 2 ] ? " t h u m b - a c t i v e " : " t h u m b - s m " ) ) & & p ( e , " c l a s s " , l ) } , d ( u ) { u & & k ( e ) , s = ! 1 , r t ( a ) } } } f u n c t i o n T A ( n ) { l e t e , t , i , o , r , l , s , a , f , c ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " E m a i l " , l = $ ( ) , s = g ( " i n p u t " ) , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " e m a i l " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " f o r " , r = n [ 3 0 ] ) , p ( s , " t y p e " , " e m a i l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( s , " i d " , a = n [ 3 0 ] ) , s . r e q u i r e d = ! 0 } , m ( u , d ) { w ( u , e , d ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , w ( u , l , d ) , w ( u , s , d ) , M e ( s , n [ 3 ] ) , f | | ( c = X ( s , " i n p u t " , n [ 1 9 ] ) , f = ! 0 ) } , p ( u , d ) { d [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & r ! = = ( r = u [ 3 0 ] ) & & p ( e , " f o r " , r ) , d [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & a ! = = ( a = u [ 3 0 ] ) & & p ( s , " i d " , a ) , d [ 0 ] & 8 & & s . v a l u e ! = = u [ 3 ] & & M e ( s , u [ 3 ] ) } , d ( u ) { u & & k ( e ) , u & & k ( l ) , u & & k ( s ) , f = ! 1 , c ( ) } } } f u n c t i o n p b ( n ) { l e t e , t ; r e t u r n e = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d f o r m - f i e l d - t o g g l e " , $ $ s l o t s : { d e f a u l t : [ E A , ( { u n i q u e I d : i } ) = > ( { 3 0 : i } ) , ( { u n i q u e I d : i } ) = > [ i ? 1 0 7 3 7 4 1 8 2 4 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , o ) { H ( e , i , o ) , t = ! 0 } , p ( i , o ) { c o n s t r = { } ; o [ 0 ] & 1 0 7 3 7 4 1 8 4 0 | o [ 1 ] & 8 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : i } ) , e . $ s e t ( r ) } , i ( i ) { t | | ( T ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { F ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { q ( e , i ) } } } f u n c t i o n E A ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " i n p u t " ) , i = $ ( ) , o = g ( " l a b e l " ) , r = j ( " C h a n g e p a s s w o r d " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 3 0 ] ) , p ( o , " f o r " , l = n [ 3 0 ] ) } , m ( f , c ) { w ( f , e , c ) , e . c h e c k e d = n [ 4 ] , w ( f , i , c ) , w ( f , o , c ) , m ( o , r ) , s | | ( a = X ( e , " c h a n g e " , n [ 2 0 ] ) , s = ! 0 ) } , p ( f , c ) { c [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & t ! = = ( t = f [ 3 0 ] ) & & p ( e , " i d " , t ) , c [ 0 ] & 1 6 & & ( e . c h e c k e d = f [ 4 ] ) , c [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & l ! = = ( l = f [ 3 0 ] ) & & p ( o , " f o r " , l ) } , d ( f ) { f & &
< span class = "txt" > Delete < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " d r o p d o w n - i t e m " ) } , m ( o , r ) { w ( o , e , r ) , t | | ( i = X ( e , " c l i c k " , n [ 1 5 ] ) , t = ! 0 ) } , p : l e , d ( o ) { o & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n N A ( n ) { l e t e , t , i , o , r , l , s = n [ 1 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " , a , f , c , u , d , h = ! n [ 1 ] . i s N e w & & m b ( n ) ; r e t u r n { c ( ) { h & & h . c ( ) , e = $ ( ) , t = g ( " b u t t o n " ) , i = g ( " s p a n " ) , i . t e x t C o n t e n t = " C a n c e l " , o = $ ( ) , r = g ( " b u t t o n " ) , l = g ( " s p a n " ) , a = j ( s ) , p ( i , " c l a s s " , " t x t " ) , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " b t n b t n - s e c o n d a r y " ) , t . d i s a b l e d = n [ 6 ] , p ( l , " c l a s s " , " t x t " ) , p ( r , " t y p e " , " s u b m i t " ) , p ( r , " f o r m " , n [ 1 1 ] ) , p ( r , " c l a s s " , " b t n b t n - e x p a n d e d " ) , r . d i s a b l e d = f = ! n [ 1 0 ] | | n [ 6 ] , n e ( r , " b t n - l o a d i n g " , n [ 6 ] ) } , m ( b , v ) { h & & h . m ( b , v ) , w ( b , e , v ) , w ( b , t , v ) , m ( t , i ) , w ( b , o , v ) , w ( b , r , v ) , m ( r , l ) , m ( l , a ) , c = ! 0 , u | | ( d = X ( t , " c l i c k " , n [ 1 6 ] ) , u = ! 0 ) } , p ( b , v ) { b [ 1 ] . i s N e w ? h & & ( A e ( ) , F ( h , 1 , 1 , ( ) = > { h = n u l l } ) , D e ( ) ) : h ? ( h . p ( b , v ) , v [ 0 ] & 2 & & T ( h , 1 ) ) : ( h = m b ( b ) , h . c ( ) , T ( h , 1 ) , h . m ( e . p a r e n t N o d e , e ) ) , ( ! c | | v [ 0 ] & 6 4 ) & & ( t . d i s a b l e d = b [ 6 ] ) , ( ! c | | v [ 0 ] & 2 ) & & s ! = = ( s = b [ 1 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & g e ( a , s ) , ( ! c | | v [ 0 ] & 1 0 8 8 & & f ! = = ( f = ! b [ 1 0 ] | | b [ 6 ] ) ) & & ( r . d i s a b l e d = f ) , v [ 0 ] & 6 4 & & n e ( r , " b t n - l o a d i n g " , b [ 6 ] ) } , i ( b ) { c | | ( T ( h ) , c = ! 0 ) } , o ( b ) { F ( h ) , c = ! 1 } , d ( b ) { h & & h . d ( b ) , b & & k ( e ) , b & & k ( t ) , b & & k ( o ) , b & & k ( r ) , u = ! 1 , d ( ) } } } f u n c t i o n j A ( n ) { l e t e , t , i = { p o p u p : ! 0 , c l a s s : " a d m i n - p a n e l " , b e f o r e H i d e : n [ 2 3 ] , $ $ s l o t s : { f o o t e r : [ N A ] , h e a d e r : [ I A ] , d e f a u l t : [ L A ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w A i ( { p r o p s : i } ) , n [ 2 4 ] ( e ) , e . $ o n ( " h i d e " , n [ 2 5 ] ) , e . $ o n ( " s h o w " , n [ 2 6 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { H ( e , o , r ) , t = ! 0 } , p ( o , r ) { c o n s t l = { } ; r [ 0 ] & 1 1 5 2 & & ( l . b e f o r e H i d e = o [ 2 3 ] ) , r [ 0 ] & 1 8 8 6 | r [ 1 ] & 8 & & ( l . $ $ s c o p e = { d i r t y : r , c t x : o } ) , e . $ s e t ( l ) } , i ( o ) { t | | ( T ( e . $ $ . f r a g m e n t , o ) , t = ! 0 ) } , o ( o ) { F ( e . $ $ . f r a g m e n t , o ) , t = ! 1 } , d ( o ) { n [ 2 4 ] ( n u l l ) , q ( e , o ) } } } f u n c t i o n z A ( n , e , t ) { l e t i ; c o n s t o = y n ( ) , r = " a d m i n _ " + B . r a n d o m S t r i n g ( 5 ) ; l e t l , s = n e w B o , a = ! 1 , f = ! 1 , c = 0 , u = " " , d = " " , h = " " , b = ! 1 ; f u n c t i o n v ( Y ) { r e t u r n y ( Y ) , t ( 7 , f = ! 0 ) , l = = n u l l ? v o i d 0 : l . s h o w ( ) } f u n c t i o n _ ( ) { r e t u r n l = = n u l l ? v o i d 0 : l . h i d e ( ) } f u n c t i o n y ( Y ) { U i ( { } ) , t ( 1 , s = Y ! = n u l l & & Y . c l o n e ? Y . c l o n e ( ) : n e w B o ) , S ( ) } f u n c t i o n S ( ) { t ( 4 , b = ! 1 ) , t ( 3 , u = ( s = = n u l l ? v o i d 0 : s . e m a i l ) | | " " ) , t ( 2 , c = ( s = = n u l l ? v o i d 0 : s . a v a t a r ) | | 0 ) , t ( 8 , d = " " ) , t ( 9 , h = " " ) } f u n c t i o n C ( ) { i f ( a | | ! i ) r e t u r n ; t ( 6 , a = ! 0 ) ; c o n s t Y = { e m a i l : u , a v a t a r : c } ; ( s . i s N e w | | b ) & & ( Y . p a s s w o r d = d , Y . p a s s w o r d C o n f i r m = h ) ; l e t W ; s . i s N e w ? W = S e . A d m i n s . c r e a t e ( Y ) : W = S e . A d m i n s . u p d a t e ( s . i d , Y ) , W . t h e n ( a s y n c t e = > { v a r c e ; t ( 7 , f = ! 1 ) , _ ( ) , h n ( s . i s N e w ? " S u c c e s s f u l l y c r e a t e d a d m i n . " : " S u c c e s s f u l l y u p d a t e d a d m i n . " ) , o ( " s a v e " , t e ) , ( ( c e = S e . A u t h S t o r e . m o d e l ) = = n u l l ? v o i d 0 : c e . i d ) = = = t e . i d & & S e . A u t h S t o r e . s a v e ( S e . A u t h S t o r e . t o k e n , t e ) } ) . c a t c h ( t e = > { S e . e r r o r R e s p o n s e H a n d l e r ( t e ) } ) . f i n a l l y ( ( ) = > { t ( 6 , a = ! 1 ) } ) } f u n c t i o n x ( ) { ! ( s ! = n u l l & & s . i d ) | | x i ( " D o y o u r e a l l y w a n t t o d e l e t e t h e s e l e c t e d a d m i n ? " , ( ) = > S e . A d m i n s . d e l e t e ( s . i d ) . t h e n ( ( ) = > { t ( 7 , f = ! 1 ) , _ ( ) , h n ( " S u c c e s s f u l l y d e l e t e d a d m i n . " ) , o ( " d e l e t e " , s ) } ) . c a t c h ( Y = > { S e . e r r o r R e s p o n s e H a n d l e r ( Y ) } ) ) } c o n s t M = ( ) = > x ( ) , A = ( ) = > _ ( ) , O = Y = > t ( 2 , c = Y ) , D = ( Y , W ) = > { ( W . c o d e = = = " E n t e r " | | W . c o d e = = = " S p a c e " ) & & ( W . p r e v e n t D e f a u l t ( ) , t ( 2 , c = Y ) ) } ; f u n c t i o n E ( ) { u = t h i s . v a l u e , t ( 3 , u ) } f u n c t i o n P ( ) { b = t h i s . c h e c k e d , t ( 4 , b ) } f u n c t i o n I ( ) { d = t h i s . v a l u e , t ( 8 , d ) } f u n c t i o n R ( ) { h = t h i s . v a l u e , t ( 9 , h ) } c o n s t G = ( ) = > i & & f ? ( x i ( " Y o u h a v e u n s a v e d c h a n g e s . D o y o u r e a l l y w a n t t o c l o s e t h e p a n e l ? " , ( ) = > { t ( 7 , f = ! 1 ) , _ ( ) } ) , ! 1 ) : ! 0 ; f u n c t i o n U ( Y ) { h e [ Y ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = Y , t ( 5 , l ) } ) } f u n c t i o n z ( Y ) { f t . c a l l ( t h i s , n , Y ) } f u n c t i o n K ( Y ) { f t . c a l l ( t h i s , n , Y ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y [ 0 ] & 3 0 & & t ( 1 0 , i = s . i s N e w & & u ! = " " | | b | | u ! = = s . e m a i l | | c ! = = s . a v a t a r ) } , [ _ , s , c , u , b , l , a , f , d , h , i , r , C , x , v , M , A , O , D , E , P , I , R , G , U , z , K ] } c l a s s H A e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , z A , j A , E e , { s h o w : 1 4 , h i d e : 0 } , n u l l , [ - 1 , - 1 ] ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 1 4 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n b b ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 2 1 ] = e [ t ] , i } f u n c t i o n q A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " i d " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n V A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " i " ) , i = $ ( ) , o = g ( " s p a n " ) , o . t e x t C o n t e n t = " e m a i l " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " e m a i l " ) ) , p ( o , " c l a s s " , " t x t " ) , p ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( r , l ) { w ( r , e , l ) , m ( e , t ) , m ( e , i ) , m ( e , o ) } , p : l e , d ( r ) { r & & k ( e ) } } } f u n c t i o n B A ( n ) { l e t e , t , i , o ; r e t u r n { c ( ) {
` },m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function _b(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Clear filters</span>',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(o,r){w(o,e,r),t||(i=X(e,"click",n[15]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function vb(n){let e;return{c(){e=g("span"),e.textContent="You",p(e,"class","label label-warning m-l-5")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function yb(n,e){let t,i,o,r,l,s,a,f,c,u,d,h,b=e[21].email+"",v,_,y,S,C,x,M,A,O,D,E,P,I,R;f=new Ls({props:{id:e[21].id}});let G=e[21].id===e[6].id&&vb();C=new Ci({props:{date:e[21].created}}),A=new Ci({props:{date:e[21].updated}});function U(){return e[13](e[21])}function z(...K){return e[14](e[21],...K)}return{key:n,first:null,c(){t=g("tr"),i=g("td"),o=g("figure"),r=g("img"),s= $ (),a=g("td"),V(f. $ $ .fragment),c= $ (),G&&G.c(),u= $ (),d=g("td"),h=g("span"),v=j(b),y= $ (),S=g("td"),V(C. $ $ .fragment),x= $ (),M=g("td"),V(A. $ $ .fragment),O= $ (),D=g("td"),D.innerHTML='<i class="ri-arrow-right-line"></i>',E= $ (),Qn(r.src,l="/_/images/avatars/avatar"+(e[21].avatar||0)+".svg")||p(r,"src",l),p(r,"alt","Admin avatar"),p(o,"class","thumb thumb-sm thumb-circle"),p(i,"class","min-width"),p(a,"class","col-type-text col-field-id"),p(h,"class","txt txt-ellipsis"),p(h,"title",_=e[21].email),p(d,"class","col-type-email col-field-email"),p(S,"class","col-type-date col-field-created"),p(M,"class","col-type-date col-field-updated"),p(D,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(K,Y){w(K,t,Y),m(t,i),m(i,o),m(o,r),m(t,s),m(t,a),H(f,a,null),m(a,c),G&&G.m(a,null),m(t,u),m(t,d),m(d,h),m(h,v),m(t,y),m(t,S),H(C,S,null),m(t,x),m(t,M),H(A,M,null),m(t,O),m(t,D),m(t,E),P=!0,I||(R=[X(t,"click",U),X(t,"keydown",z)],I=!0)},p(K,Y){e=K,(!P||Y&16&&!Qn(r.src,l="/_/images/avatars/avatar"+(e[21].avatar||0)+".svg"))&&p(r,"src",l);const W={};Y&16&&(W.id=e[21].id),f. $ set(W),e[21].id===e[6].id?G||(G=vb(),G.c(),G.m(a,null)):G&&(G.d(1),G=null),(!P||Y&16)&&b!==(b=e[21].email+"")&&ge(v,b),(!P||Y&16&&_!==(_=e[21].email))&&p(h,"title",_);const te={};Y&16&&(te.date=e[21].created),C. $ set(te);const ce={};Y&16&&(ce.date=e[21].updated),A. $ set(ce)},i(K){P||(T(f. $ $ .fragment,K),T(C. $ $ .fragment,K),T(A. $ $ .fragment,K),P=!0)},o(K){F(f. $ $ .fragment,K),F(C. $ $ .fragment,K),F(A. $ $ .fragment,K),P=!1},d(K){K&&k(t),q(f),G&&G.d(),q(C),q(A),I=!1,rt(R)}}}function kb(n){let e,t,i=n[4].length+"",o,r,l=n[4].length+"",s;return{c(){e=g("small"),t=j("Showing "),o=j(i),r=j(" of "),s=j(l),p(e,"class","block txt-hint txt-right m-t-sm")},m(a,f){w(a,e,f),m(e,t),m(e,o),m(e,r),m(e,s)},p(a,f){f&16&&i!==(i=a[4].length+"")&&ge(o,i),f&16&&l!==(l=a[4].length+"")&&ge(s,l)},d(a){a&&k(e)}}}function GA(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b,v,_,y,S,C,x,M,A,O,D,E,P,I,R,G,U,z,K,Y,W=[],te=new Map,ce,ve,oe,J, $ e,ee;e=new er({}),u=new Ds({props:{value:n[1],placeholder:"Search filter, eg. email='test@example.com'",extraAutocompleteKeys:["email"]}}),u. $ on("submit",n[8]);function _e(be){n[9](be)}let fe={class:"col-type-text",name:"id", $ $ slots:{default:[qA]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(fe.sort=n[2]),C=new en({props:fe}),he.push(()=>Fe(C,"sort",_e));function ie(be){n[10](be)}let ye={class:"col-type-email col-field-email",name:"email", $ $ slots:{default:[VA]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(ye.sort=n[2]),A=new en({props:ye}),he.push(()=>Fe(A,"sort",ie));function Ne(be){n[11](be)}let Pe={class:"col-type-date col-field-created",name:"created", $ $ slots:{default:[BA]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(Pe.sort=n[2]),E=new en({props:Pe}),he.push(()=>Fe(E,"sort",Ne));function ze(be){n[12](be)}let se={class:"col-type-date col-field-updated",name:"updated", $ $ slots:{default:[UA]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(se.sort=n[2]),R=new en({props:se}),he.push(()=>Fe(R,"sort",ze));let re=n[4];const ke=be=>be[21].id;for(let be=0;be<re.length;be+=1){let Oe=bb(n,re,be),Z=ke(Oe);te.set(Z,W[be]=yb(Z,Oe))}let He=null;re.length||(He=gb(n));let qe=n[4].length&&kb(n),Je={};return oe=new HA({props:Je}),n[16](oe),oe. $ on("save",n[17]),oe. $ on("delete",n[18]),{c(){V(e. $ $ .fra
< div class = "breadcrumb-item" > Admins < /div>`,l=$(),s=g("div"),a=$(),f=g("button"),f.innerHTML=`<i class="ri-add-line"></i >
< span class = "txt" > New admin < / s p a n > ` , c = $ ( ) , V ( u . $ $ . f r a g m e n t ) , d = $ ( ) , h = g ( " d i v " ) , b = g ( " t a b l e " ) , v = g ( " t h e a d " ) , _ = g ( " t r " ) , y = g ( " t h " ) , S = $ ( ) , V ( C . $ $ . f r a g m e n t ) , M = $ ( ) , V ( A . $ $ . f r a g m e n t ) , D = $ ( ) , V ( E . $ $ . f r a g m e n t ) , I = $ ( ) , V ( R . $ $ . f r a g m e n t ) , U = $ ( ) , z = g ( " t h " ) , K = $ ( ) , Y = g ( " t b o d y " ) ; f o r ( l e t b e = 0 ; b e < W . l e n g t h ; b e + = 1 ) W [ b e ] . c ( ) ; H e & & H e . c ( ) , c e = $ ( ) , q e & & q e . c ( ) , v e = $ ( ) , V ( o e . $ $ . f r a g m e n t ) , p ( r , " c l a s s " , " b r e a d c r u m b s " ) , p ( s , " c l a s s " , " f l e x - f i l l " ) , p ( f , " t y p e " , " b u t t o n " ) , p ( f , " c l a s s " , " b t n b t n - e x p a n d e d " ) , p ( o , " c l a s s " , " p a g e - h e a d e r " ) , p ( y , " c l a s s " , " m i n - w i d t h " ) , p ( z , " c l a s s " , " c o l - t y p e - a c t i o n m i n - w i d t h " ) , p ( b , " c l a s s " , " t a b l e " ) , n e ( b , " t a b l e - l o a d i n g " , n [ 5 ] ) , p ( h , " c l a s s " , " t a b l e - w r a p p e r " ) , p ( i , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( b e , O e ) { H ( e , b e , O e ) , w ( b e , t , O e ) , w ( b e , i , O e ) , m ( i , o ) , m ( o , r ) , m ( o , l ) , m ( o , s ) , m ( o , a ) , m ( o , f ) , m ( i , c ) , H ( u , i , n u l l ) , m ( i , d ) , m ( i , h ) , m ( h , b ) , m ( b , v ) , m ( v , _ ) , m ( _ , y ) , m ( _ , S ) , H ( C , _ , n u l l ) , m ( _ , M ) , H ( A , _ , n u l l ) , m ( _ , D ) , H ( E , _ , n u l l ) , m ( _ , I ) , H ( R , _ , n u l l ) , m ( _ , U ) , m ( _ , z ) , m ( b , K ) , m ( b , Y ) ; f o r ( l e t Z = 0 ; Z < W . l e n g t h ; Z + = 1 ) W [ Z ] . m ( Y , n u l l ) ; H e & & H e . m ( Y , n u l l ) , m ( i , c e ) , q e & & q e . m ( i , n u l l ) , w ( b e , v e , O e ) , H ( o e , b e , O e ) , J = ! 0 , $ e | | ( e e = X ( f , " c l i c k " , n [ 7 ] ) , $ e = ! 0 ) } , p ( b e , [ O e ] ) { c o n s t Z = { } ; O e & 2 & & ( Z . v a l u e = b e [ 1 ] ) , u . $ s e t ( Z ) ; c o n s t a e = { } ; O e & 1 6 7 7 7 2 1 6 & & ( a e . $ $ s c o p e = { d i r t y : O e , c t x : b e } ) , ! x & & O e & 4 & & ( x = ! 0 , a e . s o r t = b e [ 2 ] , R e ( ( ) = > x = ! 1 ) ) , C . $ s e t ( a e ) ; c o n s t V e = { } ; O e & 1 6 7 7 7 2 1 6 & & ( V e . $ $ s c o p e = { d i r t y : O e , c t x : b e } ) , ! O & & O e & 4 & & ( O = ! 0 , V e . s o r t = b e [ 2 ] , R e ( ( ) = > O = ! 1 ) ) , A . $ s e t ( V e ) ; c o n s t y t = { } ; O e & 1 6 7 7 7 2 1 6 & & ( y t . $ $ s c o p e = { d i r t y : O e , c t x : b e } ) , ! P & & O e & 4 & & ( P = ! 0 , y t . s o r t = b e [ 2 ] , R e ( ( ) = > P = ! 1 ) ) , E . $ s e t ( y t ) ; c o n s t i t = { } ; O e & 1 6 7 7 7 2 1 6 & & ( i t . $ $ s c o p e = { d i r t y : O e , c t x : b e } ) , ! G & & O e & 4 & & ( G = ! 0 , i t . s o r t = b e [ 2 ] , R e ( ( ) = > G = ! 1 ) ) , R . $ s e t ( i t ) , O e & 1 2 2 & & ( r e = b e [ 4 ] , A e ( ) , W = s t ( W , O e , k e , 1 , b e , r e , t e , Y , P t , y b , n u l l , b b ) , D e ( ) , ! r e . l e n g t h & & H e ? H e . p ( b e , O e ) : r e . l e n g t h ? H e & & ( H e . d ( 1 ) , H e = n u l l ) : ( H e = g b ( b e ) , H e . c ( ) , H e . m ( Y , n u l l ) ) ) , O e & 3 2 & & n e ( b , " t a b l e - l o a d i n g " , b e [ 5 ] ) , b e [ 4 ] . l e n g t h ? q e ? q e . p ( b e , O e ) : ( q e = k b ( b e ) , q e . c ( ) , q e . m ( i , n u l l ) ) : q e & & ( q e . d ( 1 ) , q e = n u l l ) ; c o n s t b t = { } ; o e . $ s e t ( b t ) } , i ( b e ) { i f ( ! J ) { T ( e . $ $ . f r a g m e n t , b e ) , T ( u . $ $ . f r a g m e n t , b e ) , T ( C . $ $ . f r a g m e n t , b e ) , T ( A . $ $ . f r a g m e n t , b e ) , T ( E . $ $ . f r a g m e n t , b e ) , T ( R . $ $ . f r a g m e n t , b e ) ; f o r ( l e t O e = 0 ; O e < r e . l e n g t h ; O e + = 1 ) T ( W [ O e ] ) ; T ( o e . $ $ . f r a g m e n t , b e ) , J = ! 0 } } , o ( b e ) { F ( e . $ $ . f r a g m e n t , b e ) , F ( u . $ $ . f r a g m e n t , b e ) , F ( C . $ $ . f r a g m e n t , b e ) , F ( A . $ $ . f r a g m e n t , b e ) , F ( E . $ $ . f r a g m e n t , b e ) , F ( R . $ $ . f r a g m e n t , b e ) ; f o r ( l e t O e = 0 ; O e < W . l e n g t h ; O e + = 1 ) F ( W [ O e ] ) ; F ( o e . $ $ . f r a g m e n t , b e ) , J = ! 1 } , d ( b e ) { q ( e , b e ) , b e & & k ( t ) , b e & & k ( i ) , q ( u ) , q ( C ) , q ( A ) , q ( E ) , q ( R ) ; f o r ( l e t O e = 0 ; O e < W . l e n g t h ; O e + = 1 ) W [ O e ] . d ( ) ; H e & & H e . d ( ) , q e & & q e . d ( ) , b e & & k ( v e ) , n [ 1 6 ] ( n u l l ) , q ( o e , b e ) , $ e = ! 1 , e e ( ) } } } f u n c t i o n K A ( n , e , t ) { v a r D ; l e t i ; p n ( n , q f , E = > t ( 6 , i = E ) ) ; c o n s t o = B . g e t Q u e r y P a r a m s ( ( D = w i n d o w . l o c a t i o n ) = = n u l l ? v o i d 0 : D . h r e f ) ; l e t r , l = [ ] , s = ! 1 , a = o . f i l t e r | | " " , f = o . s o r t | | " - c r e a t e d " ; B . s e t D o c u m e n t T i t l e ( " A d m i n s " ) ; f u n c t i o n c ( ) { r e t u r n t ( 5 , s = ! 0 ) , t ( 4 , l = [ ] ) , S e . A d m i n s . g e t F u l l L i s t ( 1 0 0 , { s o r t : f | | " - c r e a t e d " , f i l t e r : a } ) . t h e n ( E = > { t ( 4 , l = E ) , t ( 5 , s = ! 1 ) } ) . c a t c h ( E = > { E ! = = n u l l & & ( t ( 5 , s = ! 1 ) , c o n s o l e . w a r n ( E ) , u ( ) , S e . e r r o r R e s p o n s e H a n d l e r ( E , ! 1 ) ) } ) } f u n c t i o n u ( ) { t ( 4 , l = [ ] ) } c o n s t d = ( ) = > r = = n u l l ? v o i d 0 : r . s h o w ( ) , h = E = > t ( 1 , a = E . d e t a i l ) ; f u n c t i o n b ( E ) { f = E , t ( 2 , f ) } f u n c t i o n v ( E ) { f = E , t ( 2 , f ) } f u n c t i o n _ ( E ) { f = E , t ( 2 , f ) } f u n c t i o n y ( E ) { f = E , t ( 2 , f ) } c o n s t S = E = > r = = n u l l ? v o i d 0 : r . s h o w ( E ) , C = ( E , P ) = > { ( P . c o d e = = = " E n t e r " | | P . c o d e = = = " S p a c e " ) & & ( P . p r e v e n t D e f a u l t ( ) , r = = n u l l | | r . s h o w ( E ) ) } , x = ( ) = > t ( 1 , a = " " ) ; f u n c t i o n M ( E ) { h e [ E ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = E , t ( 3 , r ) } ) } c o n s t A = ( ) = > c ( ) , O = ( ) = > c ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 & & f ! = = - 1 & & a ! = = - 1 & & ( B . r e p l a c e C l i e n t Q u e r y P a r a m s ( { f i l t e r : a , s o r t : f } ) , c ( ) ) } , [ c , a , f , r , l , s , i , d , h , b , v , _ , y , S , C , x , M , A , O ] } c l a s s J A e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , K A , G A , E e , { l o a d A d m i n s : 0 } ) } g e t l o a d A d m i n s ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n w b ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = g ( " d i v " ) , e . i n n e r H T M L = ` < f i g u r e c l a s s = " l o g o " > < i m g s r c = " / _ / i m a g e s / l o g o . s v g " a l t = " P o c k e t B a s e l o g o " w i d t h = " 4 0 " h e i g h t = " 4 0 " / >
< span class = "txt" > Pocket < strong > Base < / s t r o n g > < / s p a n > < / f i g u r e > ` , t = $ ( ) , i = g ( " d i v " ) , p ( e , " c l a s s " , " b l o c k t x t - c e n t e r m - b - l g " ) , p ( i , " c l a s s " , " c l e a r f i x " ) } , m ( o , r ) { w ( o , e , r ) , w ( o , t , r ) , w ( o , i , r ) } , d ( o ) { o & & k ( e ) , o & & k ( t ) , o & & k ( i ) } } } f u n c t i o n Z A ( n ) { l e t e , t , i , o , r , l , s , a , f = ! n [ 0 ] & & w b ( ) ; c o n s t c = n [ 2 ] . d e f a u l t , u = $ n ( c , n , n [ 1 ] , n u l l ) ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " d i v " ) , i = $ ( ) , o = g ( " d i v " ) , f & & f . c ( ) , r = $ ( ) , u & & u . c ( ) , l = $ ( ) , s = g ( " d i v " ) , p ( t , " c l a s s " , " f l e x - f i l l " ) , p ( o , " c l a s s " , " w r a p p e r w r a p p e r - s m m - b - x l s v e l t e - 1 w b a w r 2 " ) , p ( s , " c l a s s " , " f l e x - f i l l " ) , p ( e , " c l a s s " , " p a g e - w r a p p e r f u l l - p a g e - p a n e l s v e l t e - 1 w b a w r 2 " ) } , m ( d , h ) { w ( d , e , h ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , f & & f . m ( o , n u l l ) , m ( o , r ) , u & & u . m ( o , n u l l ) , m ( e , l ) , m ( e , s ) , a = ! 0 } , p ( d , [ h ] ) { d [ 0 ] ? f & & ( f . d ( 1 ) , f = n u l l ) : f | | ( f = w b ( ) , f . c ( ) , f . m ( o , r ) ) , u & & u . p & & ( ! a | | h & 2 ) & & D n ( u , c , d , d [ 1 ] , a ? A n ( c , d [ 1 ] , h , n u l l ) : O n ( d [ 1 ] ) , n u l l ) } , i ( d ) { a | | ( T ( u , d ) , a = ! 0 ) } , o ( d ) { F ( u , d ) , a = ! 1 } , d ( d ) { d & & k ( e ) , f & & f . d ( ) , u & & u . d ( d ) } } } f u n c t i o n X A ( n , e , t ) { l e t { $ $ s l o t s : i = { } , $ $ s c o p e : o } = e , { n o b r a n d i n g : r = ! 1 } = e ; r e t u r n n . $ $ s e t = l = > { " n o b r a n d i n g " i n l & & t ( 0 , r = l . n o b r a n d i n g ) , " $ $ s c o p e " i n l & & t ( 1 , o = l . $ $ s c o p e ) } , [ r , o , i ] } c l a s s Q A e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , X A , Z A , E e , { n o b r a n d i n g : 0 } ) } } f u n c t i o n e D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " E m a i l " ) , o = $ ( ) , r = g ( " i n p u t " ) , p ( e , " f o r " , i = n [ 7 ] ) , p ( r , " t y p e " , " e m a i l " ) , p ( r , " i d " , l = n [ 7 ] ) , r . r e q u i r e d = ! 0 , r . a u t o f o c u s = ! 0 } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , o , c ) , w ( f , r , c ) , M e ( r , n [ 0 ] ) , r . f o c u s ( ) , s | | ( a = X ( r , " i n p u t " , n [ 4 ] ) , s = ! 0 ) } , p ( f , c ) { c & 1 2 8 & & i ! = = ( i = f [ 7 ] ) & & p ( e , " f o r " , i ) , c & 1 2 8 & & l ! = = ( l = f [ 7 ] ) & & p ( r , " i d " , l ) , c & 1 & & r . v a l u e ! = = f [ 0 ] & & M e ( r , f [ 0 ] ) } , d ( f ) { f & & k ( e ) , f & & k ( o ) , f & & k ( r ) , s = ! 1 , a ( ) } } } f u n c t i o n t D ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " P a s s w o r d " ) , o = $ ( ) , r = g ( " i n p u t " ) , s = $ ( ) , a = g ( " d i v " ) , f = g ( " a " ) , f . t e x t C o n t e n t = " F o r g o t t e n p a s s w o r d ? " , p ( e , " f o r " , i = n [ 7 ] ) , p ( r , " t y p e " , " p a s s w o r d " ) , p ( r , " i d " , l = n [ 7 ] ) , r . r e q u i r e d = ! 0 , p ( f , " h r e f " , " / r e q u e s t - p a s s w o r d - r e s e t " ) , p ( f , " c l a s s " , " l i n k - h i n t " ) , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( d , h ) { w ( d , e , h ) , m ( e , t ) , w ( d , o , h ) , w ( d , r , h ) , M e ( r , n [ 1 ] ) , w ( d , s , h ) , w ( d , a , h ) , m ( a , f ) , c | | ( u = [ X ( r , " i n p u t " , n [ 5 ] ) , X e ( x n . c a l l ( n u l l , f ) ) ] , c = ! 0 ) } , p ( d , h ) { h & 1 2 8 & & i ! = = ( i = d [ 7 ] ) & & p ( e , " f o r " , i ) , h & 1 2 8 & & l ! = = ( l = d [ 7 ] ) & & p ( r , " i d " , l ) , h & 2 & & r . v a l u e ! = = d [ 1 ] & & M e ( r , d [ 1 ] ) } , d ( d ) { d & & k ( e ) , d & & k ( o ) , d & & k ( r ) , d & & k ( s ) , d & & k ( a ) , c = ! 1 , r t ( u ) } } } f u n c t i o n n D ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u ; r e t u r n o = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " e m a i l " , $ $ s l o t s : { d e f a u l t : [ e D , ( { u n i q u e I d : d } ) = > ( { 7 : d } ) , ( { u n i q u e I d : d } ) = > d ? 1 2 8 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , l = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " p a s s w o r d " , $ $ s l o t s : { d e f a u l t : [ t D , ( { u n i q u e I d : d } ) = > ( { 7 : d } ) , ( { u n i q u e I d : d } ) = > d ? 1 2 8 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = g ( " f o r m " ) , t = g ( " d i v " ) , t . i n n e r H T M L = " < h 4 > A d m i n s i g n i n < / h 4 > " , i = $ ( ) , V ( o . $ $ . f r a g m e n t ) , r = $ ( ) , V ( l . $ $ . f r a g m e n t ) , s = $ ( ) , a = g ( " b u t t o n " ) , a . i n n e r H T M L = ` < s p a n c l a s s = " t x t " > L o g i n < / s p a n >
< i class = "ri-arrow-right-line" > < /i>`,p(t,"class","content txt-center m-b-base"),p(a,"type","submit"),p(a,"class","btn btn-lg btn-block btn-next"),ne(a,"btn-disabled",n[2]),ne(a,"btn-loading",n[2]),p(e,"class","block")},m(d,h){w(d,e,h),m(e,t),m(e,i),H(o,e,null),m(e,r),H(l,e,null),m(e,s),m(e,a),f=!0,c||(u=X(e,"submit",Gt(n[3])),c=!0)},p(d,h){const b={};h&385&&(b.$$scope={dirty:h,ctx:d}),o.$set(b);const v={};h&386&&(v.$$scope={dirty:h,ctx:d}),l.$set(v),h&4&&ne(a,"btn-disabled",d[2]),h&4&&ne(a,"btn-loading",d[2])},i(d){f||(T(o.$$.fragment,d),T(l.$$.fragment,d),f=!0)},o(d){F(o.$$.fragment,d),F(l.$$.fragment,d),f=!1},d(d){d&&k(e),q(o),q(l),c=!1,u()}}}function iD(n){let e,t;return e=new QA({props:{$$slots:{default:[nD]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},m(i,o){H(e,i,o),t=!0},p(i,[o]){const r={};o&263&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){t||(T(e.$$.fragment,i),t=!0)},o(i){F(e.$$.fragment,i),t=!1},d(i){q(e,i)}}}function oD(n,e,t){var c;const i=B.getQueryParams((c=window.location)==null?void 0:c.href);let o=i.demoEmail||"",r=i.demoPassword||"",l=!1;function s(){if(!l)return t(2,l=!0),Se.Admins.authViaEmail(o,r).then(()=>{Ss("/ ")}).catch(()=>{M0(" Invalid login credentials . ")}).finally(()=>{t(2,l=!1)})}function a(){o=this.value,t(0,o)}function f(){r=this.value,t(1,r)}return[o,r,l,s,a,f]}class rD extends Ie{constructor(e){super(),Le(this,e,oD,iD,Ee,{})}}function lD(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b,v,_,y,S;return i=new je({props:{class:" form - field required ",name:" meta . appName ",$$slots:{default:[aD,({uniqueId:C})=>({12:C}),({uniqueId:C})=>C?4096:0]},$$scope:{ctx:n}}}),l=new je({props:{class:" form - field required ",name:" meta . appUrl ",$$slots:{default:[fD,({uniqueId:C})=>({12:C}),({uniqueId:C})=>C?4096:0]},$$scope:{ctx:n}}}),a=new je({props:{class:" form - field required ",name:" logs . maxDays ",$$slots:{default:[cD,({uniqueId:C})=>({12:C}),({uniqueId:C})=>C?4096:0]},$$scope:{ctx:n}}}),{c(){e=g(" div "),t=g(" div "),V(i.$$.fragment),o=$(),r=g(" div "),V(l.$$.fragment),s=$(),V(a.$$.fragment),f=$(),c=g(" div "),u=g(" div "),d=$(),h=g(" button "),b=g(" span "),b.textContent=" Save changes ",p(t," class "," col - lg - 6 "),p(r," class "," col - lg - 6 "),p(u," class "," flex - fill "),p(b," class "," txt "),p(h," type "," submit "),p(h," class "," btn btn - expanded "),h.disabled=v=!n[3]||n[2],ne(h," btn - loading ",n[2]),p(c," class "," col - lg - 12 flex "),p(e," class "," grid ")},m(C,x){w(C,e,x),m(e,t),H(i,t,null),m(e,o),m(e,r),H(l,r,null),m(e,s),H(a,e,null),m(e,f),m(e,c),m(c,u),m(c,d),m(c,h),m(h,b),_=!0,y||(S=X(h," click ",n[9]),y=!0)},p(C,x){const M={};x&12289&&(M.$$scope={dirty:x,ctx:C}),i.$set(M);const A={};x&12289&&(A.$$scope={dirty:x,ctx:C}),l.$set(A);const O={};x&12289&&(O.$$scope={dirty:x,ctx:C}),a.$set(O),(!_||x&12&&v!==(v=!C[3]||C[2]))&&(h.disabled=v),x&4&&ne(h," btn - loading ",C[2])},i(C){_||(T(i.$$.fragment,C),T(l.$$.fragment,C),T(a.$$.fragment,C),_=!0)},o(C){F(i.$$.fragment,C),F(l.$$.fragment,C),F(a.$$.fragment,C),_=!1},d(C){C&&k(e),q(i),q(l),q(a),y=!1,S()}}}function sD(n){let e;return{c(){e=g(" div "),p(e," class "," loader ")},m(t,i){w(t,e,i)},p:le,i:le,o:le,d(t){t&&k(e)}}}function aD(n){let e,t,i,o,r,l,s,a;return{c(){e=g(" label "),t=j(" Application name "),o=$(),r=g(" input "),p(e," for ",i=n[12]),p(r," type "," text "),p(r," id ",l=n[12]),r.required=!0},m(f,c){w(f,e,c),m(e,t),w(f,o,c),w(f,r,c),Me(r,n[0].meta.appName),s||(a=X(r," input ",n[6]),s=!0)},p(f,c){c&4096&&i!==(i=f[12])&&p(e," for ",i),c&4096&&l!==(l=f[12])&&p(r," id ",l),c&1&&r.value!==f[0].meta.appName&&Me(r,f[0].meta.appName)},d(f){f&&k(e),f&&k(o),f&&k(r),s=!1,a()}}}function fD(n){let e,t,i,o,r,l,s,a;return{c(){e=g(" label "),t=j(" Application url "),o=$(),r=g(" input "),p(e," for ",i=n[12]),p(r," type "," text "),p(r," id ",l=n[12]),r.required=!0},m(f,c){w(f,e,c),m(e,t),w(f,o,c),w(f,r,c),Me(r,n[0].meta.appUrl),s||(a=X(r," input ",n[7]),s=!0)},p(f,c){c&4096&&i!==(i=f[12])&&p(e," for ",i),c&4096&&l!==(l=f[12])&&p(r," id ",l),c&1&&r.value!==f[0].meta.appUrl&&Me(r,f[0].meta.appUrl)},d(f){f&&k(e),f&&k(o),f&&k(r),s=!1,a()}}}function cD(n){let e,t,i,o,r,l,s,a;return{c(){e=g(" label "),t=j(" Logs max days retention "),o=$(),r=g(" input "),p(e," for ",i=n[12]),p(r," type
< div class = "breadcrumb-item" > Application < / d i v > < / n a v > ` , r = $ ( ) , l = g ( " d i v " ) , s = g ( " f o r m " ) , f . c ( ) , p ( o , " c l a s s " , " p a g e - h e a d e r " ) , p ( s , " c l a s s " , " p a n e l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( l , " c l a s s " , " w r a p p e r " ) , p ( i , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( _ , y ) { H ( e , _ , y ) , w ( _ , t , y ) , w ( _ , i , y ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , b [ a ] . m ( s , n u l l ) , c = ! 0 , u | | ( d = X ( s , " s u b m i t " , G t ( n [ 4 ] ) ) , u = ! 0 ) } , p ( _ , [ y ] ) { l e t S = a ; a = v ( _ ) , a = = = S ? b [ a ] . p ( _ , y ) : ( A e ( ) , F ( b [ S ] , 1 , 1 , ( ) = > { b [ S ] = n u l l } ) , D e ( ) , f = b [ a ] , f ? f . p ( _ , y ) : ( f = b [ a ] = h [ a ] ( _ ) , f . c ( ) ) , T ( f , 1 ) , f . m ( s , n u l l ) ) } , i ( _ ) { c | | ( T ( e . $ $ . f r a g m e n t , _ ) , T ( f ) , c = ! 0 ) } , o ( _ ) { F ( e . $ $ . f r a g m e n t , _ ) , F ( f ) , c = ! 1 } , d ( _ ) { q ( e , _ ) , _ & & k ( t ) , _ & & k ( i ) , b [ a ] . d ( ) , u = ! 1 , d ( ) } } } f u n c t i o n d D ( n , e , t ) { l e t i , o = { } , r = ! 1 , l = ! 1 , s = " " ; B . s e t D o c u m e n t T i t l e ( " A p p l i c a t i o n s e t t i n g s " ) , a ( ) ; a s y n c f u n c t i o n a ( ) { t ( 1 , r = ! 0 ) ; t r y { c o n s t v = a w a i t S e . S e t t i n g s . g e t A l l ( ) | | { } ; c ( v ) } c a t c h ( v ) { S e . e r r o r R e s p o n s e H a n d l e r ( v ) } t ( 1 , r = ! 1 ) } a s y n c f u n c t i o n f ( ) { i f ( ! ( l | | ! i ) ) { t ( 2 , l = ! 0 ) ; t r y { c o n s t v = a w a i t S e . S e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( o ) ) ; c ( v ) , h n ( " S u c c e s s f u l l y s a v e d a p p l i c a t i o n s e t t i n g s . " ) } c a t c h ( v ) { S e . e r r o r R e s p o n s e H a n d l e r ( v ) } t ( 2 , l = ! 1 ) } } f u n c t i o n c ( v = { } ) { t ( 0 , o = { m e t a : ( v = = n u l l ? v o i d 0 : v . m e t a ) | | { } , l o g s : ( v = = n u l l ? v o i d 0 : v . l o g s ) | | { } } ) , t ( 5 , s = J S O N . s t r i n g i f y ( o ) ) } f u n c t i o n u ( ) { o . m e t a . a p p N a m e = t h i s . v a l u e , t ( 0 , o ) } f u n c t i o n d ( ) { o . m e t a . a p p U r l = t h i s . v a l u e , t ( 0 , o ) } f u n c t i o n h ( ) { o . l o g s . m a x D a y s = A t ( t h i s . v a l u e ) , t ( 0 , o ) } c o n s t b = ( ) = > f ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 3 3 & & t ( 3 , i = s ! = J S O N . s t r i n g i f y ( o ) ) } , [ o , r , l , i , f , s , u , d , h , b ] } c l a s s p D e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , d D , u D , E e , { } ) } } f u n c t i o n h D ( n ) { l e t e , t , i , o = [ { t y p e : " p a s s w o r d " } , { a u t o c o m p l e t e : " n e w - p a s s w o r d " } , n [ 5 ] ] , r = { } ; f o r ( l e t l = 0 ; l < o . l e n g t h ; l + = 1 ) r = u t ( r , o [ l ] ) ; r e t u r n { c ( ) { e = g ( " i n p u t " ) , c i ( e , r ) } , m ( l , s ) { w ( l , e , s ) , e . a u t o f o c u s & & e . f o c u s ( ) , n [ 7 ] ( e ) , M e ( e , n [ 0 ] ) , t | | ( i = X ( e , " i n p u t " , n [ 8 ] ) , t = ! 0 ) } , p ( l , s ) { c i ( e , r = b n ( o , [ { t y p e : " p a s s w o r d " } , { a u t o c o m p l e t e : " n e w - p a s s w o r d " } , s & 3 2 & & l [ 5 ] ] ) ) , s & 1 & & e . v a l u e ! = = l [ 0 ] & & M e ( e , l [ 0 ] ) } , d ( l ) { l & & k ( e ) , n [ 7 ] ( n u l l ) , t = ! 1 , i ( ) } } } f u n c t i o n m D ( n ) { l e t e , t , i , o , r , l , s = [ { r e a d O n l y : ! 0 } , { t y p e : " t e x t " } , { p l a c e h o l d e r : n [ 1 ] } , n [ 5 ] ] , a = { } ; f o r ( l e t f = 0 ; f < s . l e n g t h ; f + = 1 ) a = u t ( a , s [ f ] ) ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " b u t t o n " ) , t . i n n e r H T M L = ' < i c l a s s = " r i - k e y - l i n e " > < / i > ' , i = $ ( ) , o = g ( " i n p u t " ) , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " b t n b t n - s e c o n d a r y b t n - c i r c l e " ) , p ( e , " c l a s s " , " f o r m - f i e l d - a d d o n " ) , c i ( o , a ) } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , i , c ) , w ( f , o , c ) , o . a u t o f o c u s & & o . f o c u s ( ) , r | | ( l = [ X e ( S t . c a l l ( n u l l , t , { p o s i t i o n : " l e f t " , t e x t : " S e t n e w v a l u e " } ) ) , X ( t , " c l i c k " , n [ 6 ] ) ] , r = ! 0 ) } , p ( f , c ) { c i ( o , a = b n ( s , [ { r e a d O n l y : ! 0 } , { t y p e : " t e x t " } , c & 2 & & { p l a c e h o l d e r : f [ 1 ] } , c & 3 2 & & f [ 5 ] ] ) ) } , d ( f ) { f & & k ( e ) , f & & k ( i ) , f & & k ( o ) , r = ! 1 , r t ( l ) } } } f u n c t i o n b D ( n ) { l e t e ; f u n c t i o n t ( r , l ) { r e t u r n r [ 3 ] ? m D : h D } l e t i = t ( n ) , o = i ( n ) ; r e t u r n { c ( ) { o . c ( ) , e = l t ( ) } , m ( r , l ) { o . m ( r , l ) , w ( r , e , l ) } , p ( r , [ l ] ) { i = = = ( i = t ( r ) ) & & o ? o . p ( r , l ) : ( o . d ( 1 ) , o = i ( r ) , o & & ( o . c ( ) , o . m ( e . p a r e n t N o d e , e ) ) ) } , i : l e , o : l e , d ( r ) { o . d ( r ) , r & & k ( e ) } } } f u n c t i o n g D ( n , e , t ) { c o n s t i = [ " v a l u e " , " m a s k " ] ; l e t o = W t ( e , i ) , { v a l u e : r = " " } = e , { m a s k : l = " * * * * * * " } = e , s , a = ! 1 ; a s y n c f u n c t i o n f ( ) { t ( 0 , r = " " ) , t ( 3 , a = ! 1 ) , a w a i t B i ( ) , s = = n u l l | | s . f o c u s ( ) } c o n s t c = ( ) = > f ( ) ; f u n c t i o n u ( h ) { h e [ h ? " u n s h i f t " : " p u s h " ] ( ( ) = > { s = h , t ( 2 , s ) } ) } f u n c t i o n d ( ) { r = t h i s . v a l u e , t ( 0 , r ) } r e t u r n n . $ $ s e t = h = > { e = u t ( u t ( { } , e ) , u i ( h ) ) , t ( 5 , o = W t ( e , i ) ) , " v a l u e " i n h & & t ( 0 , r = h . v a l u e ) , " m a s k " i n h & & t ( 1 , l = h . m a s k ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 3 & & r = = = l & & t ( 3 , a = ! 0 ) } , [ r , l , s , a , f , o , c , u , d ] } c l a s s m c e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , g D , b D , E e , { v a l u e : 0 , m a s k : 1 } ) } } f u n c t i o n _ D ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h , b , v , _ , y , S , C , x , M , A , O , D , E , P , I , R , G ; i = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " m e t a . s e n d e r N a m e " , $ $ s l o t s : { d e f a u l t : [ y D , ( { u n i q u e I d : z } ) = > ( { 2 2 : z } ) , ( { u n i q u e I d : z } ) = > z ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , l = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " m e t a . s e n d e r A d d r e s s " , $ $ s l o t s : { d e f a u l t : [ k D , ( { u n i q u e I d : z } ) = > ( { 2 2 : z } ) , ( { u n i q u e I d : z } ) = > z ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , a = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " m e t a . u s e r V e r i f i c a t i o n U r l " , $ $ s l o t s : { d e f a u l t : [ w D , ( { u n i q u e I d : z } ) = > ( { 2 2 : z } ) , ( { u n i q u e I d : z } ) = > z ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , c = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " m e t a . u s e r R e s e t P a s s w o r d U r l " , $ $ s l o t s : { d e f a u l t : [ S D , ( { u n i q u e I d : z } ) = > ( { 2 2 : z } ) , ( { u n i q u e I d : z } ) = > z ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , d = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " m e t a . u s e r C o n f i r m E m a i l C h a n g e U r l " , $ $ s l o t s :
< br / >
< strong class = "txt-bold" > For better emails deliverability it is recommended to enable the SMTP settings
below . < / s t r o n g > < / p > ` , y = $ ( ) , V ( S . $ $ . f r a g m e n t ) , C = $ ( ) , U & & U . c ( ) , x = $ ( ) , M = g ( " d i v " ) , A = g ( " d i v " ) , O = $ ( ) , D = g ( " b u t t o n " ) , E = g ( " s p a n " ) , E . t e x t C o n t e n t = " S a v e c h a n g e s " , p ( t , " c l a s s " , " c o l - l g - 6 " ) , p ( r , " c l a s s " , " c o l - l g - 6 " ) , p ( e , " c l a s s " , " g r i d " ) , p ( _ , " c l a s s " , " c o n t e n t m - b - s m " ) , p ( A , " c l a s s " , " f l e x - f i l l " ) , p ( E , " c l a s s " , " t x t " ) , p ( D , " t y p e " , " s u b m i t " ) , p ( D , " c l a s s " , " b t n b t n - e x p a n d e d " ) , D . d i s a b l e d = P = ! n [ 3 ] | | n [ 2 ] , n e ( D , " b t n - l o a d i n g " , n [ 2 ] ) , p ( M , " c l a s s " , " f l e x " ) } , m ( z , K ) { w ( z , e , K ) , m ( e , t ) , H ( i , t , n u l l ) , m ( e , o ) , m ( e , r ) , H ( l , r , n u l l ) , m ( e , s ) , H ( a , e , n u l l ) , m ( e , f ) , H ( c , e , n u l l ) , m ( e , u ) , H ( d , e , n u l l ) , w ( z , h , K ) , w ( z , b , K ) , w ( z , v , K ) , w ( z , _ , K ) , w ( z , y , K ) , H ( S , z , K ) , w ( z , C , K ) , U & & U . m ( z , K ) , w ( z , x , K ) , w ( z , M , K ) , m ( M , A ) , m ( M , O ) , m ( M , D ) , m ( D , E ) , I = ! 0 , R | | ( G = X ( D , " c l i c k " , n [ 1 8 ] ) , R = ! 0 ) } , p ( z , K ) { c o n s t Y = { } ; K & 1 2 5 8 2 9 1 3 & & ( Y . $ $ s c o p e = { d i r t y : K , c t x : z } ) , i . $ s e t ( Y ) ; c o n s t W = { } ; K & 1 2 5 8 2 9 1 3 & & ( W . $ $ s c o p e = { d i r t y : K , c t x : z } ) , l . $ s e t ( W ) ; c o n s t t e = { } ; K & 1 2 5 8 2 9 1 3 & & ( t e . $ $ s c o p e = { d i r t y : K , c t x : z } ) , a . $ s e t ( t e ) ; c o n s t c e = { } ; K & 1 2 5 8 2 9 1 3 & & ( c e . $ $ s c o p e = { d i r t y : K , c t x : z } ) , c . $ s e t ( c e ) ; c o n s t v e = { } ; K & 1 2 5 8 2 9 1 3 & & ( v e . $ $ s c o p e = { d i r t y : K , c t x : z } ) , d . $ s e t ( v e ) ; c o n s t o e = { } ; K & 1 2 5 8 2 9 1 3 & & ( o e . $ $ s c o p e = { d i r t y : K , c t x : z } ) , S . $ s e t ( o e ) , z [ 0 ] . s m t p . e n a b l e d ? U ? ( U . p ( z , K ) , K & 1 & & T ( U , 1 ) ) : ( U = S b ( z ) , U . c ( ) , T ( U , 1 ) , U . m ( x . p a r e n t N o d e , x ) ) : U & & ( A e ( ) , F ( U , 1 , 1 , ( ) = > { U = n u l l } ) , D e ( ) ) , ( ! I | | K & 1 2 & & P ! = = ( P = ! z [ 3 ] | | z [ 2 ] ) ) & & ( D . d i s a b l e d = P ) , K & 4 & & n e ( D , " b t n - l o a d i n g " , z [ 2 ] ) } , i ( z ) { I | | ( T ( i . $ $ . f r a g m e n t , z ) , T ( l . $ $ . f r a g m e n t , z ) , T ( a . $ $ . f r a g m e n t , z ) , T ( c . $ $ . f r a g m e n t , z ) , T ( d . $ $ . f r a g m e n t , z ) , T ( S . $ $ . f r a g m e n t , z ) , T ( U ) , I = ! 0 ) } , o ( z ) { F ( i . $ $ . f r a g m e n t , z ) , F ( l . $ $ . f r a g m e n t , z ) , F ( a . $ $ . f r a g m e n t , z ) , F ( c . $ $ . f r a g m e n t , z ) , F ( d . $ $ . f r a g m e n t , z ) , F ( S . $ $ . f r a g m e n t , z ) , F ( U ) , I = ! 1 } , d ( z ) { z & & k ( e ) , q ( i ) , q ( l ) , q ( a ) , q ( c ) , q ( d ) , z & & k ( h ) , z & & k ( b ) , z & & k ( v ) , z & & k ( _ ) , z & & k ( y ) , q ( S , z ) , z & & k ( C ) , U & & U . d ( z ) , z & & k ( x ) , z & & k ( M ) , R = ! 1 , G ( ) } } } f u n c t i o n v D ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , p ( e , " c l a s s " , " l o a d e r " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , i : l e , o : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n y D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " S e n d e r n a m e " ) , o = $ ( ) , r = g ( " i n p u t " ) , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " t e x t " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , o , c ) , w ( f , r , c ) , M e ( r , n [ 0 ] . m e t a . s e n d e r N a m e ) , s | | ( a = X ( r , " i n p u t " , n [ 7 ] ) , s = ! 0 ) } , p ( f , c ) { c & 4 1 9 4 3 0 4 & & i ! = = ( i = f [ 2 2 ] ) & & p ( e , " f o r " , i ) , c & 4 1 9 4 3 0 4 & & l ! = = ( l = f [ 2 2 ] ) & & p ( r , " i d " , l ) , c & 1 & & r . v a l u e ! = = f [ 0 ] . m e t a . s e n d e r N a m e & & M e ( r , f [ 0 ] . m e t a . s e n d e r N a m e ) } , d ( f ) { f & & k ( e ) , f & & k ( o ) , f & & k ( r ) , s = ! 1 , a ( ) } } } f u n c t i o n k D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " S e n d e r a d d r e s s " ) , o = $ ( ) , r = g ( " i n p u t " ) , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " e m a i l " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , o , c ) , w ( f , r , c ) , M e ( r , n [ 0 ] . m e t a . s e n d e r A d d r e s s ) , s | | ( a = X ( r , " i n p u t " , n [ 8 ] ) , s = ! 0 ) } , p ( f , c ) { c & 4 1 9 4 3 0 4 & & i ! = = ( i = f [ 2 2 ] ) & & p ( e , " f o r " , i ) , c & 4 1 9 4 3 0 4 & & l ! = = ( l = f [ 2 2 ] ) & & p ( r , " i d " , l ) , c & 1 & & r . v a l u e ! = = f [ 0 ] . m e t a . s e n d e r A d d r e s s & & M e ( r , f [ 0 ] . m e t a . s e n d e r A d d r e s s ) } , d ( f ) { f & & k ( e ) , f & & k ( o ) , f & & k ( r ) , s = ! 1 , a ( ) } } } f u n c t i o n w D ( n ) { l e t e , t , i , o , r , l , s , a , f , c ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " U s e r v e r i f i c a t i o n p a g e u r l " ) , o = $ ( ) , r = g ( " i n p u t " ) , s = $ ( ) , a = g ( " d i v " ) , a . i n n e r H T M L = ` U s e d i n t h e u s e r v e r i f i c a t i o n e m a i l . A v a i l a b l e p l a c e h o l d e r p a r a m e t e r s :
< code > % APP _URL % < / c o d e > , < c o d e > % T O K E N % < / c o d e > . ` , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " t e x t " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( u , d ) { w ( u , e , d ) , m ( e , t ) , w ( u , o , d ) , w ( u , r , d ) , M e ( r , n [ 0 ] . m e t a . u s e r V e r i f i c a t i o n U r l ) , w ( u , s , d ) , w ( u , a , d ) , f | | ( c = X ( r , " i n p u t " , n [ 9 ] ) , f = ! 0 ) } , p ( u , d ) { d & 4 1 9 4 3 0 4 & & i ! = = ( i = u [ 2 2 ] ) & & p ( e , " f o r " , i ) , d & 4 1 9 4 3 0 4 & & l ! = = ( l = u [ 2 2 ] ) & & p ( r , " i d " , l ) , d & 1 & & r . v a l u e ! = = u [ 0 ] . m e t a . u s e r V e r i f i c a t i o n U r l & & M e ( r , u [ 0 ] . m e t a . u s e r V e r i f i c a t i o n U r l ) } , d ( u ) { u & & k ( e ) , u & & k ( o ) , u & & k ( r ) , u & & k ( s ) , u & & k ( a ) , f = ! 1 , c ( ) } } } f u n c t i o n S D ( n ) { l e t e , t , i , o , r , l , s , a , f , c ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " U s e r r e s e t p a s s w o r d p a g e u r l " ) , o = $ ( ) , r = g ( " i n p u t " ) , s = $ ( ) , a = g ( " d i v " ) , a . i n n e r H T M L = ` U s e d i n t h e u s e r p a s s w o r d r e s e t e m a i l . A v a i l a b l e p l a c e h o l d e r p a r a m e t e r s :
< code > % APP _URL % < / c o d e > , < c o d e > % T O K E N % < / c o d e > . ` , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " t e x t " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( u , d ) { w ( u , e , d ) , m ( e , t ) , w ( u , o , d ) , w ( u , r , d ) , M e ( r , n [ 0 ] . m e t a . u s e r R e s e t P a s s w o r d U r l ) , w ( u , s , d ) , w ( u , a , d ) , f | | ( c = X ( r , " i n p u t " , n [ 1 0 ] ) , f = ! 0 ) } , p ( u , d ) { d & 4 1 9 4 3 0 4 & & i ! = = ( i = u [ 2 2 ] ) & & p ( e , " f o r " , i ) , d & 4 1 9 4 3 0 4 & & l ! = = ( l = u [ 2 2 ] ) & & p ( r , " i d " , l ) , d & 1 & & r . v a l u e ! = = u [ 0 ] . m e t a . u s e r R e s e t P a s s w o r d U r l & & M e ( r , u [ 0 ] . m e t a . u s e r R e s e t P a s s w o r d U r l ) } , d ( u ) { u & & k ( e ) , u & & k ( o ) , u & & k ( r ) , u & & k ( s ) , u & & k ( a ) , f = ! 1 , c ( ) } } } f u n c t i o n C D ( n ) { l e t e , t , i , o , r , l , s , a , f , c ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " U s e r c o n f i r m e m a i l c h a n g e p a g e u r l " ) , o = $ ( ) , r = g ( " i n p u t " ) , s = $ ( ) , a = g ( " d i v " ) , a . i n n e r H T M L = ` U s e d i n t h e u s e r e m a i l c h a n g e c o n f i r m a t i o n e m a i l . A v a i l a b l e p l a c e h o l d e r
parameters :
< code > % APP _URL % < / c o d e > , < c o d e > % T O K E N % < / c o d e > . ` , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " t e x t " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( u , d ) { w ( u , e , d ) , m ( e , t ) , w ( u , o , d ) , w ( u , r , d ) , M e ( r , n [ 0 ] . m e t a . u s e r C o n f i r m E m a i l C h a n g e U r l ) , w ( u , s , d ) , w ( u , a , d ) , f | | ( c = X ( r , " i n p u t " , n [ 1 1 ] ) , f = ! 0 ) } , p ( u , d ) { d & 4 1 9 4 3 0 4 & & i ! = = ( i = u [ 2 2 ] ) & & p ( e , " f o r " , i ) , d & 4 1 9 4 3 0 4 & & l ! = = ( l = u [ 2 2 ] ) & & p ( r , " i d " , l ) , d & 1 & & r . v a l u e ! = = u [ 0 ] . m e t a . u s e r C o n f i r m E m a i l C h a n g e U r l & & M e ( r , u [ 0 ] . m e t a . u s e r C o n f i r m E m a i l C h a n g e U r l ) } , d ( u ) { u & & k ( e ) , u & & k ( o ) , u & & k ( r ) , u & & k ( s ) , u & & k ( a ) , f = ! 1 , c ( ) } } } f u n c t i o n x D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " i n p u t " ) , i = $ ( ) , o = g ( " l a b e l " ) , r = j ( " U s e S M T P m a i l s e r v e r " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 2 2 ] ) , e . r e q u i r e d = ! 0 , p ( o , " f o r " , l = n [ 2 2 ] ) } , m ( f , c ) { w ( f , e , c ) , e . c h e c k e d = n [ 0 ] . s m t p . e n a b l e d , w ( f , i , c ) , w ( f , o , c ) , m ( o , r ) , s | | ( a = X ( e , " c h a n g e " , n [ 1 2 ] ) , s = ! 0 ) } , p ( f , c ) { c & 4 1 9 4 3 0 4 & & t ! = = ( t = f [ 2 2 ] ) & & p ( e , " i d " , t ) , c & 1 & & ( e . c h e c k e d = f [ 0 ] . s m t p . e n a b l e d ) , c & 4 1 9 4 3 0 4 & & l ! = = ( l = f [ 2 2 ] ) & & p ( o , " f o r " , l ) } , d ( f ) { f & & k ( e ) , f & & k ( i ) , f & & k ( o ) , s = ! 1 , a ( ) } } } f u n c t i o n S b ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h , b , v , _ , y , S , C ; r e t u r n i = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s m t p . h o s t " , $ $ s l o t s : { d e f a u l t : [ M D , ( { u n i q u e I d : x } ) = > ( { 2 2 : x } ) , ( { u n i q u e I d : x } ) = > x ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , l = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s m t p . p o r t " , $ $ s l o t s : { d e f a u l t : [ $ D , ( { u n i q u e I d : x } ) = > ( { 2 2 : x } ) , ( { u n i q u e I d : x } ) = > x ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , f = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s m t p . t l s " , $ $ s l o t s : { d e f a u l t : [ A D , ( { u n i q u e I d : x } ) = > ( { 2 2 : x } ) , ( { u n i q u e I d : x } ) = > x ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , d = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s m t p . u s e r n a m e " , $ $ s l o t s : { d e f a u l t : [ D D , ( { u n i q u e I d : x } ) = > ( { 2 2 : x } ) , ( { u n i q u e I d : x } ) = > x ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , v = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s m t p . p a s s w o r d " , $ $ s l o t s : { d e f a u l t : [ O D , ( { u n i q u e I d : x } ) = > ( { 2 2 : x } ) , ( { u n i q u e I d : x } ) = > x ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = g ( " d i v " ) , t = g ( " d i v " ) , V ( i . $ $ . f r a g m e n t ) , o = $ ( ) , r = g ( " d i v " ) , V ( l . $ $ . f r a g m e n t ) , s = $ ( ) , a = g ( " d i v " ) , V ( f . $ $ . f r a g m e n t ) , c = $ ( ) , u = g ( " d i v " ) , V ( d . $ $ . f r a g m e n t ) , h = $ ( ) , b = g ( " d i v " ) , V ( v . $ $ . f r a g m e n t ) , _ = $ ( ) , y = g ( " d i v " ) , p ( t , " c l a s s " , " c o l - l g - 6 " ) , p ( r , " c l a s s " , " c o l - l g - 3 " ) , p ( a , " c l a s s " , " c o l - l g - 3 " ) , p ( u , " c l a s s " , " c o l - l g - 6 " ) , p ( b , " c l a s s " , " c o l - l g - 6 " ) , p ( y , " c l a s s " , " c o l - l g - 1 2 " ) , p ( e , " c l a s s " , " g r i d " ) } , m ( x , M ) { w ( x , e , M ) , m ( e , t ) , H ( i , t , n u l l ) , m ( e , o ) , m ( e , r ) , H ( l , r , n u l l ) , m ( e , s ) , m ( e , a ) , H ( f , a , n u l l ) , m ( e , c ) , m ( e , u ) , H ( d , u , n u l l ) , m ( e , h ) , m ( e , b ) , H ( v , b , n u l l ) , m ( e , _ ) , m ( e , y ) , C = ! 0 } , p ( x , M ) { c o n s t A = { } ; M & 1 2 5 8 2 9 1 3 & & ( A . $ $ s c o p e = { d i r t y : M , c t x : x } ) , i . $ s e t ( A ) ; c o n s t O = { } ; M & 1 2 5 8 2 9 1 3 & & ( O . $ $ s c o p e = { d i r t y : M , c t x : x } ) , l . $ s e t ( O ) ; c o n s t D = { } ; M & 1 2 5 8 2 9 1 3 & & ( D . $ $ s c o p e = { d i r t y : M , c t x : x } ) , f . $ s e t ( D ) ; c o n s t E = { } ; M & 1 2 5 8 2 9 1 3 & & ( E . $ $ s c o p e = { d i r t y : M , c t x : x } ) , d . $ s e t ( E ) ; c o n s t P = { } ; M & 1 2 5 8 2 9 1 3 & & ( P . $ $ s c o p e = { d i r t y : M , c t x : x } ) , v . $ s e t ( P ) } , i ( x ) { C | | ( T ( i . $ $ . f r a g m e n t , x ) , T ( l . $ $ . f r a g m e n t , x ) , T ( f . $ $ . f r a g m e n t , x ) , T ( d . $ $ . f r a g m e n t , x ) , T ( v . $ $ . f r a g m e n t , x ) , x & & D t ( ( ) = > { S | | ( S = c t ( e , f n , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , S . r u n ( 1 ) } ) , C = ! 0 ) } , o ( x ) { F ( i . $ $ . f r a g m e n t , x ) , F ( l . $ $ . f r a g m e n t , x ) , F ( f . $ $ . f r a g m e n t , x ) , F ( d . $ $ . f r a g m e n t , x ) , F ( v . $ $ . f r a g m e n t , x ) , x & & ( S | | ( S = c t ( e , f n , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , S . r u n ( 0 ) ) , C = ! 1 } , d ( x ) { x & & k ( e ) , q ( i ) , q ( l ) , q ( f ) , q ( d ) , q ( v ) , x & & S & & S . e n d ( ) } } } f u n c t i o n M D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " S M T P s e r v e r h o s t " ) , o = $ ( ) , r = g ( " i n p u t " ) , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " t e x t " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , o , c ) , w ( f , r , c ) , M e ( r , n [ 0 ] . s m t p . h o s t ) , s | | ( a = X ( r , " i n p u t " , n [ 1 3 ] ) , s = ! 0 ) } , p ( f , c ) { c & 4 1 9 4 3 0 4 & & i ! = = ( i = f [ 2 2 ] ) & & p ( e , " f o r " , i ) , c & 4 1 9 4 3 0 4 & & l ! = = ( l = f [ 2 2 ] ) & & p ( r , " i d " , l ) , c & 1 & & r . v a l u e ! = = f [ 0 ] . s m t p . h o s t & & M e ( r , f [ 0 ] . s m t p . h o s t ) } , d ( f ) { f & & k ( e ) , f & & k ( o ) , f & & k ( r ) , s = ! 1 , a ( ) } } } f u n c t i o n $ D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " P o r t " ) , o = $ ( ) , r = g ( " i n p u t " ) , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( r , " t y p e " , " n u m b e r " ) , p ( r , " i d " , l = n [ 2 2 ] ) , r . r e q u i r e d = ! 0 } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , o , c ) , w ( f , r , c ) , M e ( r , n [ 0 ] . s m t p . p o r t ) , s | | ( a = X ( r , " i n p u t " , n [ 1 4 ] ) , s = ! 0 ) } , p ( f , c ) { c & 4 1 9 4 3 0 4 & & i ! = = ( i = f [ 2 2 ] ) & & p ( e , " f o r " , i ) , c & 4 1 9 4 3 0 4 & & l ! = = ( l = f [ 2 2 ] ) & & p ( r , " i d " , l ) , c & 1 & & A t ( r . v a l u e ) ! = = f [ 0 ] . s m t p . p o r t & & M e ( r , f [ 0 ] . s m t p . p o r t ) } , d ( f ) { f & & k ( e ) , f & & k ( o ) , f & & k ( r ) , s = ! 1 , a ( ) } } } f u n c t i o n A D ( n ) { l e t e , t , i , o , r , l , s ; f u n c t i o n a ( c ) { n [ 1 5 ] ( c ) } l e t f = { i d : n [ 2 2 ] , i t e m s : n [ 4 ] } ; r e t u r n n [ 0 ] . s m t p . t l s ! = = v o i d 0 & & ( f . k e y O f S e l e c t e d = n [ 0 ] . s m t p . t l s ) , r = n e w y o ( { p r o p s : f } ) , h e . p u s h ( ( ) = > F e (
< div class = "breadcrumb-item" > Mail settings < / d i v > < / n a v > ` , r = $ ( ) , l = g ( " d i v " ) , s = g ( " f o r m " ) , a = g ( " d i v " ) , a . i n n e r H T M L = " < p > C o n f i g u r e c o m m o n s e t t i n g s f o r s e n d i n g e m a i l s . < / p > " , f = $ ( ) , u . c ( ) , p ( o , " c l a s s " , " p a g e - h e a d e r " ) , p ( a , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , p ( s , " c l a s s " , " p a n e l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( l , " c l a s s " , " w r a p p e r " ) , p ( i , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( S , C ) { H ( e , S , C ) , w ( S , t , C ) , w ( S , i , C ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , m ( s , a ) , m ( s , f ) , _ [ c ] . m ( s , n u l l ) , d = ! 0 , h | | ( b = X ( s , " s u b m i t " , G t ( n [ 1 9 ] ) ) , h = ! 0 ) } , p ( S , [ C ] ) { l e t x = c ; c = y ( S ) , c = = = x ? _ [ c ] . p ( S , C ) : ( A e ( ) , F ( _ [ x ] , 1 , 1 , ( ) = > { _ [ x ] = n u l l } ) , D e ( ) , u = _ [ c ] , u ? u . p ( S , C ) : ( u = _ [ c ] = v [ c ] ( S ) , u . c ( ) ) , T ( u , 1 ) , u . m ( s , n u l l ) ) } , i ( S ) { d | | ( T ( e . $ $ . f r a g m e n t , S ) , T ( u ) , d = ! 0 ) } , o ( S ) { F ( e . $ $ . f r a g m e n t , S ) , F ( u ) , d = ! 1 } , d ( S ) { q ( e , S ) , S & & k ( t ) , S & & k ( i ) , _ [ c ] . d ( ) , h = ! 1 , b ( ) } } } f u n c t i o n E D ( n , e , t ) { l e t i ; c o n s t o = [ { l a b e l : " O p t i o n a l ( S t a r t T L S ) " , v a l u e : ! 1 } , { l a b e l : " A l w a y s " , v a l u e : ! 0 } ] ; l e t r = { } , l = ! 1 , s = ! 1 , a = " " ; B . s e t D o c u m e n t T i t l e ( " M a i l s e t t i n g s " ) , f ( ) ; a s y n c f u n c t i o n f ( ) { t ( 1 , l = ! 0 ) ; t r y { c o n s t E = a w a i t S e . S e t t i n g s . g e t A l l ( ) | | { } ; u ( E ) } c a t c h ( E ) { S e . e r r o r R e s p o n s e H a n d l e r ( E ) } t ( 1 , l = ! 1 ) } a s y n c f u n c t i o n c ( ) { i f ( ! ( s | | ! i ) ) { t ( 2 , s = ! 0 ) ; t r y { c o n s t E = a w a i t S e . S e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( r ) ) ; u ( E ) , h n ( " S u c c e s s f u l l y s a v e d m a i l s e t t i n g s . " ) } c a t c h ( E ) { S e . e r r o r R e s p o n s e H a n d l e r ( E ) } t ( 2 , s = ! 1 ) } } f u n c t i o n u ( E = { } ) { t ( 0 , r = { m e t a : ( E = = n u l l ? v o i d 0 : E . m e t a ) | | { } , s m t p : ( E = = n u l l ? v o i d 0 : E . s m t p ) | | { } } ) , t ( 6 , a = J S O N . s t r i n g i f y ( r ) ) } f u n c t i o n d ( ) { r . m e t a . s e n d e r N a m e = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n h ( ) { r . m e t a . s e n d e r A d d r e s s = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n b ( ) { r . m e t a . u s e r V e r i f i c a t i o n U r l = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n v ( ) { r . m e t a . u s e r R e s e t P a s s w o r d U r l = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n _ ( ) { r . m e t a . u s e r C o n f i r m E m a i l C h a n g e U r l = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n y ( ) { r . s m t p . e n a b l e d = t h i s . c h e c k e d , t ( 0 , r ) } f u n c t i o n S ( ) { r . s m t p . h o s t = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n C ( ) { r . s m t p . p o r t = A t ( t h i s . v a l u e ) , t ( 0 , r ) } f u n c t i o n x ( E ) { n . $ $ . n o t _ e q u a l ( r . s m t p . t l s , E ) & & ( r . s m t p . t l s = E , t ( 0 , r ) ) } f u n c t i o n M ( ) { r . s m t p . u s e r n a m e = t h i s . v a l u e , t ( 0 , r ) } f u n c t i o n A ( E ) { n . $ $ . n o t _ e q u a l ( r . s m t p . p a s s w o r d , E ) & & ( r . s m t p . p a s s w o r d = E , t ( 0 , r ) ) } c o n s t O = ( ) = > c ( ) , D = ( ) = > c ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 5 & & t ( 3 , i = a ! = J S O N . s t r i n g i f y ( r ) ) } , [ r , l , s , i , o , c , a , d , h , b , v , _ , y , S , C , x , M , A , O , D ] } c l a s s P D e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , E D , T D , E e , { } ) } } f u n c t i o n F D ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d ; e = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d f o r m - f i e l d - t o g g l e " , $ $ s l o t s : { d e f a u l t : [ I D , ( { u n i q u e I d : b } ) = > ( { 1 5 : b } ) , ( { u n i q u e I d : b } ) = > b ? 3 2 7 6 8 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t h = n [ 0 ] . e n a b l e d & & C b ( n ) ; r e t u r n { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = $ ( ) , h & & h . c ( ) , i = $ ( ) , o = g ( " d i v " ) , r = g ( " d i v " ) , l = $ ( ) , s = g ( " b u t t o n " ) , a = g ( " s p a n " ) , a . t e x t C o n t e n t = " S a v e c h a n g e s " , p ( r , " c l a s s " , " f l e x - f i l l " ) , p ( a , " c l a s s " , " t x t " ) , p ( s , " t y p e " , " s u b m i t " ) , p ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = f = ! n [ 3 ] | | n [ 2 ] , n e ( s , " b t n - l o a d i n g " , n [ 2 ] ) , p ( o , " c l a s s " , " f l e x " ) } , m ( b , v ) { H ( e , b , v ) , w ( b , t , v ) , h & & h . m ( b , v ) , w ( b , i , v ) , w ( b , o , v ) , m ( o , r ) , m ( o , l ) , m ( o , s ) , m ( s , a ) , c = ! 0 , u | | ( d = X ( s , " c l i c k " , n [ 1 2 ] ) , u = ! 0 ) } , p ( b , v ) { c o n s t _ = { } ; v & 9 8 3 0 5 & & ( _ . $ $ s c o p e = { d i r t y : v , c t x : b } ) , e . $ s e t ( _ ) , b [ 0 ] . e n a b l e d ? h ? ( h . p ( b , v ) , v & 1 & & T ( h , 1 ) ) : ( h = C b ( b ) , h . c ( ) , T ( h , 1 ) , h . m ( i . p a r e n t N o d e , i ) ) : h & & ( A e ( ) , F ( h , 1 , 1 , ( ) = > { h = n u l l } ) , D e ( ) ) , ( ! c | | v & 1 2 & & f ! = = ( f = ! b [ 3 ] | | b [ 2 ] ) ) & & ( s . d i s a b l e d = f ) , v & 4 & & n e ( s , " b t n - l o a d i n g " , b [ 2 ] ) } , i ( b ) { c | | ( T ( e . $ $ . f r a g m e n t , b ) , T ( h ) , c = ! 0 ) } , o ( b ) { F ( e . $ $ . f r a g m e n t , b ) , F ( h ) , c = ! 1 } , d ( b ) { q ( e , b ) , b & & k ( t ) , h & & h . d ( b ) , b & & k ( i ) , b & & k ( o ) , u = ! 1 , d ( ) } } } f u n c t i o n L D ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , p ( e , " c l a s s " , " l o a d e r " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , i : l e , o : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n I D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " i n p u t " ) , i = $ ( ) , o = g ( " l a b e l " ) , r = j ( " U s e S 3 s t o r a g e " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 1 5 ] ) , e . r e q u i r e d = ! 0 , p ( o , " f o r " , l = n [ 1 5 ] ) } , m ( f , c ) { w ( f , e , c ) , e . c h e c k e d = n [ 0 ] . e n a b l e d , w ( f , i , c ) , w ( f , o , c ) , m ( o , r ) , s | | ( a = X ( e , " c h a n g e " , n [ 6 ] ) , s = ! 0 ) } , p ( f , c ) { c & 3 2 7 6 8 & & t ! = = ( t = f [ 1 5 ] ) & & p ( e , " i d " , t ) , c & 1 & & ( e . c h e c k e d = f [ 0 ] . e n a b l e d ) , c & 3 2 7 6 8 & & l ! = = ( l = f [ 1 5 ] ) & & p ( o , " f o r " , l ) } , d ( f ) { f & & k ( e ) , f & & k ( i ) , f & & k ( o ) , s = ! 1 , a ( ) } } } f u n c t i o n C b ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h , b , v , _ , y , S , C ; r e t u r n i = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s 3 . e n d p o i n t " , $ $ s l o t s : { d e f a u l t : [ R D , ( { u n i q u e I d : x } ) = > ( { 1 5 : x } ) , ( { u n i q u e I d : x } ) = > x ? 3 2 7 6 8 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , l = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s 3 . b u c k e t " , $ $ s l o t s : { d e f a u l t : [ N D , ( { u n i q u e I d : x } ) = > ( { 1 5 : x } ) , ( { u n i q u e I d : x } ) = > x ? 3 2 7 6 8 : 0 ] } , $ $ s c o p e : {
< div class = "breadcrumb-item" > Files storage < / d i v > < / n a v > ` , r = $ ( ) , l = g ( " d i v " ) , s = g ( " f o r m " ) , a = g ( " d i v " ) , a . i n n e r H T M L = ` < p > B y d e f a u l t P o c k e t B a s e u s e s t h e l o c a l f i l e s y s t e m t o s t o r e u p l o a d e d f i l e s . < / p >
< p > If you have limited disk space , you could optionally connect to a S3 compatible storage . < / p > ` , f = $ ( ) , u . c ( ) , p ( o , " c l a s s " , " p a g e - h e a d e r " ) , p ( a , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , p ( s , " c l a s s " , " p a n e l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( l , " c l a s s " , " w r a p p e r " ) , p ( i , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( S , C ) { H ( e , S , C ) , w ( S , t , C ) , w ( S , i , C ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , m ( s , a ) , m ( s , f ) , _ [ c ] . m ( s , n u l l ) , d = ! 0 , h | | ( b = X ( s , " s u b m i t " , G t ( n [ 4 ] ) ) , h = ! 0 ) } , p ( S , [ C ] ) { l e t x = c ; c = y ( S ) , c = = = x ? _ [ c ] . p ( S , C ) : ( A e ( ) , F ( _ [ x ] , 1 , 1 , ( ) = > { _ [ x ] = n u l l } ) , D e ( ) , u = _ [ c ] , u ? u . p ( S , C ) : ( u = _ [ c ] = v [ c ] ( S ) , u . c ( ) ) , T ( u , 1 ) , u . m ( s , n u l l ) ) } , i ( S ) { d | | ( T ( e . $ $ . f r a g m e n t , S ) , T ( u ) , d = ! 0 ) } , o ( S ) { F ( e . $ $ . f r a g m e n t , S ) , F ( u ) , d = ! 1 } , d ( S ) { q ( e , S ) , S & & k ( t ) , S & & k ( i ) , _ [ c ] . d ( ) , h = ! 1 , b ( ) } } } f u n c t i o n V D ( n , e , t ) { l e t i , o = { } , r = ! 1 , l = ! 1 , s = " " ; B . s e t D o c u m e n t T i t l e ( " F i l e s s t o r a g e " ) , a ( ) ; a s y n c f u n c t i o n a ( ) { t ( 1 , r = ! 0 ) ; t r y { c o n s t S = a w a i t S e . S e t t i n g s . g e t A l l ( ) | | { } ; c ( S ) } c a t c h ( S ) { S e . e r r o r R e s p o n s e H a n d l e r ( S ) } t ( 1 , r = ! 1 ) } a s y n c f u n c t i o n f ( ) { i f ( ! ( l | | ! i ) ) { t ( 2 , l = ! 0 ) ; t r y { c o n s t S = a w a i t S e . S e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( { s 3 : o } ) ) ; c ( S ) , U i ( { } ) , h n ( " S u c c e s s f u l l y s a v e d F i l e s s t o r a g e s e t t i n g s . " ) } c a t c h ( S ) { S e . e r r o r R e s p o n s e H a n d l e r ( S ) } t ( 2 , l = ! 1 ) } } f u n c t i o n c ( S = { } ) { t ( 0 , o = ( S = = n u l l ? v o i d 0 : S . s 3 ) | | { } ) , t ( 5 , s = J S O N . s t r i n g i f y ( o ) ) } f u n c t i o n u ( ) { o . e n a b l e d = t h i s . c h e c k e d , t ( 0 , o ) } f u n c t i o n d ( ) { o . e n d p o i n t = t h i s . v a l u e , t ( 0 , o ) } f u n c t i o n h ( ) { o . b u c k e t = t h i s . v a l u e , t ( 0 , o ) } f u n c t i o n b ( ) { o . r e g i o n = t h i s . v a l u e , t ( 0 , o ) } f u n c t i o n v ( ) { o . a c c e s s K e y = t h i s . v a l u e , t ( 0 , o ) } f u n c t i o n _ ( S ) { n . $ $ . n o t _ e q u a l ( o . s e c r e t , S ) & & ( o . s e c r e t = S , t ( 0 , o ) ) } c o n s t y = ( ) = > f ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 3 3 & & t ( 3 , i = s ! = J S O N . s t r i n g i f y ( o ) ) } , [ o , r , l , i , f , s , u , d , h , b , v , _ , y ] } c l a s s B D e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , V D , q D , E e , { } ) } } f u n c t i o n U D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " i n p u t " ) , i = $ ( ) , o = g ( " l a b e l " ) , r = j ( " E n a b l e " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 1 6 ] ) , p ( o , " f o r " , l = n [ 1 6 ] ) } , m ( f , c ) { w ( f , e , c ) , e . c h e c k e d = n [ 0 ] . e n a b l e d , w ( f , i , c ) , w ( f , o , c ) , m ( o , r ) , s | | ( a = X ( e , " c h a n g e " , n [ 8 ] ) , s = ! 0 ) } , p ( f , c ) { c & 6 5 5 3 6 & & t ! = = ( t = f [ 1 6 ] ) & & p ( e , " i d " , t ) , c & 1 & & ( e . c h e c k e d = f [ 0 ] . e n a b l e d ) , c & 6 5 5 3 6 & & l ! = = ( l = f [ 1 6 ] ) & & p ( o , " f o r " , l ) } , d ( f ) { f & & k ( e ) , f & & k ( i ) , f & & k ( o ) , s = ! 1 , a ( ) } } } f u n c t i o n x b ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u ; r e t u r n i = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " e m a i l P a s s w o r d . m i n P a s s w o r d L e n g t h " , $ $ s l o t s : { d e f a u l t : [ W D , ( { u n i q u e I d : d } ) = > ( { 1 6 : d } ) , ( { u n i q u e I d : d } ) = > d ? 6 5 5 3 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , l = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d " + ( B . i s E m p t y ( n [ 0 ] . o n l y D o m a i n s ) ? " " : " d i s a b l e d " ) , n a m e : " e m a i l P a s s w o r d . e x c e p t D o m a i n s " , $ $ s l o t s : { d e f a u l t : [ Y D , ( { u n i q u e I d : d } ) = > ( { 1 6 : d } ) , ( { u n i q u e I d : d } ) = > d ? 6 5 5 3 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , f = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d " + ( B . i s E m p t y ( n [ 0 ] . e x c e p t D o m a i n s ) ? " " : " d i s a b l e d " ) , n a m e : " e m a i l P a s s w o r d . o n l y D o m a i n s " , $ $ s l o t s : { d e f a u l t : [ G D , ( { u n i q u e I d : d } ) = > ( { 1 6 : d } ) , ( { u n i q u e I d : d } ) = > d ? 6 5 5 3 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = g ( " d i v " ) , t = g ( " d i v " ) , V ( i . $ $ . f r a g m e n t ) , o = $ ( ) , r = g ( " d i v " ) , V ( l . $ $ . f r a g m e n t ) , s = $ ( ) , a = g ( " d i v " ) , V ( f . $ $ . f r a g m e n t ) , p ( t , " c l a s s " , " c o l - s m - 1 2 m - t - s m " ) , p ( r , " c l a s s " , " c o l - l g - 6 " ) , p ( a , " c l a s s " , " c o l - l g - 6 " ) , p ( e , " c l a s s " , " g r i d " ) } , m ( d , h ) { w ( d , e , h ) , m ( e , t ) , H ( i , t , n u l l ) , m ( e , o ) , m ( e , r ) , H ( l , r , n u l l ) , m ( e , s ) , m ( e , a ) , H ( f , a , n u l l ) , u = ! 0 } , p ( d , h ) { c o n s t b = { } ; h & 1 9 6 6 0 9 & & ( b . $ $ s c o p e = { d i r t y : h , c t x : d } ) , i . $ s e t ( b ) ; c o n s t v = { } ; h & 1 & & ( v . c l a s s = " f o r m - f i e l d " + ( B . i s E m p t y ( d [ 0 ] . o n l y D o m a i n s ) ? " " : " d i s a b l e d " ) ) , h & 1 9 6 6 0 9 & & ( v . $ $ s c o p e = { d i r t y : h , c t x : d } ) , l . $ s e t ( v ) ; c o n s t _ = { } ; h & 1 & & ( _ . c l a s s = " f o r m - f i e l d " + ( B . i s E m p t y ( d [ 0 ] . e x c e p t D o m a i n s ) ? " " : " d i s a b l e d " ) ) , h & 1 9 6 6 0 9 & & ( _ . $ $ s c o p e = { d i r t y : h , c t x : d } ) , f . $ s e t ( _ ) } , i ( d ) { u | | ( T ( i . $ $ . f r a g m e n t , d ) , T ( l . $ $ . f r a g m e n t , d ) , T ( f . $ $ . f r a g m e n t , d ) , d & & D t ( ( ) = > { c | | ( c = c t ( e , f n , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , c . r u n ( 1 ) } ) , u = ! 0 ) } , o ( d ) { F ( i . $ $ . f r a g m e n t , d ) , F ( l . $ $ . f r a g m e n t , d ) , F ( f . $ $ . f r a g m e n t , d ) , d & & ( c | | ( c = c t ( e , f n , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , c . r u n ( 0 ) ) , u = ! 1 } , d ( d ) { d & & k ( e ) , q ( i ) , q ( l ) , q ( f ) , d & & c & & c . e n d ( ) } } } f u n c t i o n W D ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " l a b e l " ) , t = j ( " M i n i m u m p a s s w o r d l e n g t h " ) , o = $ ( ) , r = g ( " i n p u t " ) , p ( e , " f o r " , i = n [ 1 6 ] ) , p ( r , " t y p e " , " n u m b e r " ) , p ( r , " i d " , l = n [ 1 6 ] ) , r . r e q u i r e d = ! 0 , p ( r , " m i n " , " 5 " ) , p ( r , " m a x " , " 2 0 0 " ) } , m ( f , c ) { w ( f , e , c ) , m ( e , t ) , w ( f , o , c ) , w ( f , r , c ) , M e ( r , n [ 0 ] . m i n P a s s w o r d L e n g t h ) , s | | ( a = X ( r , " i n p u t " , n [ 9 ] ) , s = ! 0 ) } , p ( f , c ) { c & 6 5 5 3 6 & & i ! = = ( i = f [ 1 6 ] ) & & p ( e , " f o r " , i ) , c & 6 5 5 3 6 & & l ! = = ( l = f [ 1 6 ] ) & & p ( r , " i d " , l ) , c & 1 & & A t ( r . v a l u e ) ! = = f [ 0 ] . m i n P a s s w o r d L e n g t h & & M e ( r , f [ 0 ] . m i n P a s s w o r d L e n g t h ) } , d ( f ) { f & & k ( e ) , f & & k (
This field is disabled if "Only domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!u||y&65536&&r!==(r=_[16]))&&p(e,"for",r);const S={};y&65536&&(S.id=_[16]),y&1&&(S.disabled=!B.isEmpty(_[0].onlyDomains)),!a&&y&1&&(a=!0,S.value=_[0].exceptDomains,Re(()=>a=!1)),s. $ set(S)},i(_){u||(T(s. $ $ .fragment,_),u=!0)},o(_){F(s. $ $ .fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function GD(n){let e,t,i,o,r,l,s,a,f,c,u,d,h;function b(_){n[11](_)}let v={id:n[16]+".config.onlyDomains",disabled:!B.isEmpty(n[0].exceptDomains)};return n[0].onlyDomains!==void 0&&(v.value=n[0].onlyDomains),s=new ko({props:v}),he.push(()=>Fe(s,"value",b)),{c(){e=g("label"),t=g("span"),t.textContent="Only domains",i= $ (),o=g("i"),l= $ (),V(s. $ $ .fragment),f= $ (),c=g("div"),c.textContent="Use comma as separator.",p(t,"class","txt"),p(o,"class","ri-information-line link-hint"),p(e,"for",r=n[16]+".config.onlyDomains"),p(c,"class","help-block")},m(_,y){w(_,e,y),m(e,t),m(e,i),m(e,o),w(_,l,y),H(s,_,y),w(_,f,y),w(_,c,y),u=!0,d||(h=Xe(St.call(null,o,{text: ` Email domains that are ONLY allowed to sign up .
This field is disabled if "Except domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!u||y&65536&&r!==(r=_[16]+".config.onlyDomains"))&&p(e,"for",r);const S={};y&65536&&(S.id=_[16]+".config.onlyDomains"),y&1&&(S.disabled=!B.isEmpty(_[0].exceptDomains)),!a&&y&1&&(a=!0,S.value=_[0].onlyDomains,Re(()=>a=!1)),s. $ set(S)},i(_){u||(T(s. $ $ .fragment,_),u=!0)},o(_){F(s. $ $ .fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function KD(n){let e,t,i,o;e=new je({props:{class:"form-field form-field-toggle m-b-0",name:"emailPassword.enabled", $ $ slots:{default:[UD,({uniqueId:l})=>({16:l}),({uniqueId:l})=>l?65536:0]}, $ $ scope:{ctx:n}}});let r=n[0].enabled&&xb(n);return{c(){V(e. $ $ .fragment),t= $ (),r&&r.c(),i=lt()},m(l,s){H(e,l,s),w(l,t,s),r&&r.m(l,s),w(l,i,s),o=!0},p(l,s){const a={};s&196609&&(a. $ $ scope={dirty:s,ctx:l}),e. $ set(a),l[0].enabled?r?(r.p(l,s),s&1&&T(r,1)):(r=xb(l),r.c(),T(r,1),r.m(i.parentNode,i)):r&&(Ae(),F(r,1,1,()=>{r=null}),De())},i(l){o||(T(e. $ $ .fragment,l),T(r),o=!0)},o(l){F(e. $ $ .fragment,l),F(r),o=!1},d(l){q(e,l),l&&k(t),r&&r.d(l),l&&k(i)}}}function JD(n){let e;return{c(){e=g("span"),e.textContent="Disabled",p(e,"class","label")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function ZD(n){let e;return{c(){e=g("span"),e.textContent="Enabled",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Mb(n){let e,t,i,o,r,l;return{c(){e=g("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(s,a){w(s,e,a),o=!0,r||(l=Xe(t=St.call(null,e,{text:"Has errors",position:"left"})),r=!0)},i(s){o||(Dt(()=>{i||(i=ct(e,Bn,{duration:150,start:.7},!0)),i.run(1)}),o=!0)},o(s){i||(i=ct(e,Bn,{duration:150,start:.7},!1)),i.run(0),o=!1},d(s){s&&k(e),s&&i&&i.end(),r=!1,l()}}}function XD(n){let e,t,i,o,r,l,s;function a(d,h){return d[0].enabled?ZD:JD}let f=a(n),c=f(n),u=n[2]&&Mb();return{c(){e=g("div"),e.innerHTML= ` < i class = "ri-mail-lock-line" > < / i >
< span class = "txt" > Email / Password < / s p a n > ` , t = $ ( ) , c . c ( ) , i = $ ( ) , o = g ( " d i v " ) , r = $ ( ) , u & & u . c ( ) , l = l t ( ) , p ( e , " c l a s s " , " i n l i n e - f l e x " ) , p ( o , " c l a s s " , " f l e x - f i l l " ) } , m ( d , h ) { w ( d , e , h ) , w ( d , t , h ) , c . m ( d , h ) , w ( d , i , h ) , w ( d , o , h ) , w ( d , r , h ) , u & & u . m ( d , h ) , w ( d , l , h ) , s = ! 0 } , p ( d , h ) { f ! = = ( f = a ( d ) ) & & ( c . d ( 1 ) , c = f ( d ) , c & & ( c . c ( ) , c . m ( i . p a r e n t N o d e , i ) ) ) , d [ 2 ] ? u ? h & 4 & & T ( u , 1 ) : ( u = M b ( ) , u . c ( ) , T ( u , 1 ) , u . m ( l . p a r e n t N o d e , l ) ) : u & & ( A e ( ) , F ( u , 1 , 1 , ( ) = > { u = n u l l } ) , D e ( ) ) } , i ( d ) { s | | ( T ( u ) , s = ! 0 ) } , o ( d ) { F ( u ) , s = ! 1 } , d ( d ) { d & & k ( e ) , d & & k ( t ) , c . d ( d ) , d & & k ( i ) , d & & k ( o ) , d & & k ( r ) , u & & u . d ( d ) , d & & k ( l ) } } } f u n c t i o n Q D ( n ) { l e t e , t ; c o n s t i = [ n [ 3 ] ] ; l e t o = { $ $ s l o t s : { h e a d e r : [ X D ] , d e f a u l t : [ K D ] } , $ $ s c o p e : { c t x : n } } ; f o r ( l e t r = 0 ; r < i . l e n g t h ; r + = 1 ) o = u t ( o , i [ r ] ) ; r e t u r n e = n e w d c ( { p r o p s : o } ) , n [ 1 2 ] ( e ) , e . $ o n ( " e x p a n d " , n [ 1 3 ] ) , e . $ o n ( " c o l l a p s e " , n [ 1 4 ] ) , e . $ o n ( " t o g g l e " , n [ 1 5 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( r , l ) { H ( e , r , l ) , t = ! 0 } , p ( r , [ l ] ) { c o n s t s = l & 8 ? b n ( i , [ p i ( r [ 3 ] ) ] ) : { } ; l & 1 3 1 0 7 7 & & ( s . $ $ s c o p e = { d i r t y : l , c t x : r } ) , e . $ s e t ( s ) } , i ( r ) { t | | ( T ( e . $ $ . f r a g m e n t , r ) , t = ! 0 ) } , o ( r ) { F ( e . $ $ . f r a g m e n t , r ) , t = ! 1 } , d ( r ) { n [ 1 2 ] ( n u l l ) , q ( e , r ) } } } f u n c t i o n e O ( n , e , t ) { l e t i ; c o n s t o = [ " c o n f i g " , " e x p a n d " , " c o l l a p s e " , " c o l l a p s e S i b l i n g s " ] ; l e t r = W t ( e , o ) , l ; p n ( n , g o , x = > t ( 7 , l = x ) ) ; l e t { c o n f i g : s = { } } = e , a ; f u n c t i o n f ( ) { a = = n u l l | | a . e x p a n d ( ) } f u n c t i o n c ( ) { a = = n u l l | | a . c o l l a p s e ( ) } f u n c t i o n u ( ) { a = = n u l l | | a . c o l l a p s e S i b l i n g s ( ) } f u n c t i o n d ( ) { s . e n a b l e d = t h i s . c h e c k e d , t ( 0 , s ) } f u n c t i o n h ( ) { s . m i n P a s s w o r d L e n g t h = A t ( t h i s . v a l u e ) , t ( 0 , s ) } f u n c t i o n b ( x ) { n . $ $ . n o t _ e q u a l ( s . e x c e p t D o m a i n s , x ) & & ( s . e x c e p t D o m a i n s = x , t ( 0 , s ) ) } f u n c t i o n v ( x ) { n . $ $ . n o t _ e q u a l ( s . o n l y D o m a i n s , x ) & & ( s . o n l y D o m a i n s = x , t ( 0 , s ) ) } f u n c t i o n _ ( x ) { h e [ x ? " u n s h i f t " : " p u s h " ] ( ( ) = > { a = x , t ( 1 , a ) } ) } f u n c t i o n y ( x ) { f t . c a l l ( t h i s , n , x ) } f u n c t i o n S ( x ) { f t . c a l l ( t h i s , n , x ) } f u n c t i o n C ( x ) { f t . c a l l ( t h i s , n , x ) } r e t u r n n . $ $ s e t = x = > { e = u t ( u t ( { } , e ) , u i ( x ) ) , t ( 3 , r = W t ( e , o ) ) , " c o n f i g " i n x & & t ( 0 , s = x . c o n f i g ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 2 8 & & t ( 2 , i = ! B . i s E m p t y ( l = = n u l l ? v o i d 0 : l . e m a i l P a s s w o r d ) ) } , [ s , a , i , r , f , c , u , l , d , h , b , v , _ , y , S , C ] } c l a s s t O e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , e O , Q D , E e , { c o n f i g : 0 , e x p a n d : 4 , c o l l a p s e : 5 , c o l l a p s e S i b l i n g s : 6 } ) } g e t e x p a n d ( ) { r e t u r n t h i s . $ $ . c t x [ 4 ] } g e t c o l l a p s e ( ) { r e t u r n t h i s . $ $ . c t x [ 5 ] } g e t c o l l a p s e S i b l i n g s ( ) { r e t u r n t h i s . $ $ . c t x [ 6 ] } } f u n c t i o n n O ( n ) { l e t e , t , i , o , r , l , s , a ; r e t u r n { c ( ) { e = g ( " i n p u t " ) , i = $ ( ) , o = g ( " l a b e l " ) , r = j ( " E n a b l e " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 2 2 ] ) , p ( o , " f o r " , l = n [ 2 2 ] ) } , m ( f , c ) { w ( f , e , c ) , e . c h e c k e d = n [ 0 ] . e n a b l e d , w ( f , i , c ) , w ( f , o , c ) , m ( o , r ) , s | | ( a = X ( e , " c h a n g e " , n [ 1 1 ] ) , s = ! 0 ) } , p ( f , c ) { c & 4 1 9 4 3 0 4 & & t ! = = ( t = f [ 2 2 ] ) & & p ( e , " i d " , t ) , c & 1 & & ( e . c h e c k e d = f [ 0 ] . e n a b l e d ) , c & 4 1 9 4 3 0 4 & & l ! = = ( l = f [ 2 2 ] ) & & p ( o , " f o r " , l ) } , d ( f ) { f & & k ( e ) , f & & k ( i ) , f & & k ( o ) , s = ! 1 , a ( ) } } } f u n c t i o n $ b ( n ) { l e t e , t , i , o , r , l , s , a , f , c , u , d , h , b ; r = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : n [ 1 ] + " . c l i e n t I d " , $ $ s l o t s : { d e f a u l t : [ i O , ( { u n i q u e I d : _ } ) = > ( { 2 2 : _ } ) , ( { u n i q u e I d : _ } ) = > _ ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , a = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : n [ 1 ] + " . c l i e n t S e c r e t " , $ $ s l o t s : { d e f a u l t : [ o O , ( { u n i q u e I d : _ } ) = > ( { 2 2 : _ } ) , ( { u n i q u e I d : _ } ) = > _ ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , u = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : n [ 1 ] + " . a l l o w R e g i s t r a t i o n s " , $ $ s l o t s : { d e f a u l t : [ r O , ( { u n i q u e I d : _ } ) = > ( { 2 2 : _ } ) , ( { u n i q u e I d : _ } ) = > _ ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t v = n [ 4 ] & & A b ( n ) ; r e t u r n { c ( ) { e = g ( " d i v " ) , t = g ( " d i v " ) , i = $ ( ) , o = g ( " d i v " ) , V ( r . $ $ . f r a g m e n t ) , l = $ ( ) , s = g ( " d i v " ) , V ( a . $ $ . f r a g m e n t ) , f = $ ( ) , c = g ( " d i v " ) , V ( u . $ $ . f r a g m e n t ) , d = $ ( ) , v & & v . c ( ) , p ( t , " c l a s s " , " c o l - 1 2 s p a c i n g " ) , p ( o , " c l a s s " , " c o l - l g - 6 " ) , p ( s , " c l a s s " , " c o l - l g - 6 " ) , p ( c , " c l a s s " , " c o l - l g - 1 2 " ) , p ( e , " c l a s s " , " g r i d " ) } , m ( _ , y ) { w ( _ , e , y ) , m ( e , t ) , m ( e , i ) , m ( e , o ) , H ( r , o , n u l l ) , m ( e , l ) , m ( e , s ) , H ( a , s , n u l l ) , m ( e , f ) , m ( e , c ) , H ( u , c , n u l l ) , m ( e , d ) , v & & v . m ( e , n u l l ) , b = ! 0 } , p ( _ , y ) { c o n s t S = { } ; y & 2 & & ( S . n a m e = _ [ 1 ] + " . c l i e n t I d " ) , y & 1 2 5 8 2 9 1 3 & & ( S . $ $ s c o p e = { d i r t y : y , c t x : _ } ) , r . $ s e t ( S ) ; c o n s t C = { } ; y & 2 & & ( C . n a m e = _ [ 1 ] + " . c l i e n t S e c r e t " ) , y & 1 2 5 8 2 9 1 3 & & ( C . $ $ s c o p e = { d i r t y : y , c t x : _ } ) , a . $ s e t ( C ) ; c o n s t x = { } ; y & 2 & & ( x . n a m e = _ [ 1 ] + " . a l l o w R e g i s t r a t i o n s " ) , y & 1 2 5 8 2 9 1 3 & & ( x . $ $ s c o p e = { d i r t y : y , c t x : _ } ) , u . $ s e t ( x ) , _ [ 4 ] ? v ? ( v . p ( _ , y ) , y & 1 6 & & T ( v , 1 ) ) : ( v = A b ( _ ) , v . c ( ) , T ( v , 1 ) , v . m ( e , n u l l ) ) : v & & ( A e ( ) , F ( v , 1 , 1 , ( ) = > { v = n u l l } ) , D e ( ) ) } , i ( _ ) { b | | ( T ( r . $ $ . f r a g m e n t , _ ) , T ( a . $ $ . f r a g m e n t , _ ) , T ( u . $ $ . f r a g m e n t , _ ) , T ( v ) , _ & & D t ( ( ) = > { h | | ( h = c t ( e , f n , { d u r a t i o n : 2 0 0 } , ! 0 ) ) , h . r u n ( 1 ) } ) , b = ! 0 ) } , o ( _ ) { F ( r . $ $ . f r a g m e n t , _ ) , F ( a . $ $ . f r a g m e n t , _ ) , F ( u . $ $ . f r a g m e n t , _ ) , F ( v ) , _ & & ( h | | ( h = c t ( e , f n , { d u r a t i o n : 2 0 0 } , ! 1 ) ) , h . r u n ( 0 ) ) , b = ! 1 } , d (
2022-07-08 15:31:51 +08:00
< div class = "breadcrumb-item" > Auth providers < / d i v > < / n a v > ` , r = $ ( ) , l = g ( " d i v " ) , s = g ( " f o r m " ) , a = g ( " h 6 " ) , a . t e x t C o n t e n t = " M a n a g e t h e a l l o w e d u s e r s s i g n - i n / s i g n - u p m e t h o d s . " , f = $ ( ) , u . c ( ) , p ( o , " c l a s s " , " p a g e - h e a d e r " ) , p ( a , " c l a s s " , " m - b - b a s e " ) , p ( s , " c l a s s " , " p a n e l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( l , " c l a s s " , " w r a p p e r " ) , p ( i , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( S , C ) { H ( e , S , C ) , w ( S , t , C ) , w ( S , i , C ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , m ( s , a ) , m ( s , f ) , _ [ c ] . m ( s , n u l l ) , d = ! 0 , h | | ( b = X ( s , " s u b m i t " , G t ( n [ 5 ] ) ) , h = ! 0 ) } , p ( S , [ C ] ) { l e t x = c ; c = y ( S ) , c = = = x ? _ [ c ] . p ( S , C ) : ( A e ( ) , F ( _ [ x ] , 1 , 1 , ( ) = > { _ [ x ] = n u l l } ) , D e ( ) , u = _ [ c ] , u ? u . p ( S , C ) : ( u = _ [ c ] = v [ c ] ( S ) , u . c ( ) ) , T ( u , 1 ) , u . m ( s , n u l l ) ) } , i ( S ) { d | | ( T ( e . $ $ . f r a g m e n t , S ) , T ( u ) , d = ! 0 ) } , o ( S ) { F ( e . $ $ . f r a g m e n t , S ) , F ( u ) , d = ! 1 } , d ( S ) { q ( e , S ) , S & & k ( t ) , S & & k ( i ) , _ [ c ] . d ( ) , h = ! 1 , b ( ) } } } f u n c t i o n _ O ( n , e , t ) { l e t i , o , r = { } , l = ! 1 , s = ! 1 , a = " " ; B . s e t D o c u m e n t T i t l e ( " A u t h p r o v i d e r s " ) , f ( ) ; a s y n c f u n c t i o n f ( ) { t ( 2 , l = ! 0 ) ; t r y { c o n s t C = a w a i t S e . S e t t i n g s . g e t A l l ( ) | | { } ; u ( C ) } c a t c h ( C ) { S e . e r r o r R e s p o n s e H a n d l e r ( C ) } t ( 2 , l = ! 1 ) } a s y n c f u n c t i o n c ( ) { i f ( ! ( s | | ! i ) ) { t ( 3 , s = ! 0 ) ; t r y { c o n s t C = a w a i t S e . S e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( r ) ) ; u ( C ) , U i ( { } ) , o = = n u l l | | o . c o l l a p s e S i b l i n g s ( ) , h n ( " S u c c e s s f u l l y u p d a t e d a u t h p r o v i d e r s . " ) } c a t c h ( C ) { S e . e r r o r R e s p o n s e H a n d l e r ( C ) } t ( 3 , s = ! 1 ) } } f u n c t i o n u ( C ) { C = C | | { } , t ( 0 , r = { } ) , t ( 0 , r . e m a i l A u t h = O b j e c t . a s s i g n ( { e n a b l e d : ! 0 } , C . e m a i l A u t h ) , r ) ; c o n s t x = [ " g o o g l e A u t h " , " f a c e b o o k A u t h " , " g i t h u b A u t h " , " g i t l a b A u t h " ] ; f o r ( c o n s t M o f x ) t ( 0 , r [ M ] = O b j e c t . a s s i g n ( { e n a b l e d : ! 1 , a l l o w R e g i s t r a t i o n s : ! 0 } , C [ M ] ) , r ) ; t ( 6 , a = J S O N . s t r i n g i f y ( r ) ) } f u n c t i o n d ( C ) { h e [ C ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = C , t ( 1 , o ) } ) } f u n c t i o n h ( C ) { n . $ $ . n o t _ e q u a l ( r . e m a i l A u t h , C ) & & ( r . e m a i l A u t h = C , t ( 0 , r ) ) } f u n c t i o n b ( C ) { n . $ $ . n o t _ e q u a l ( r . g o o g l e A u t h , C ) & & ( r . g o o g l e A u t h = C , t ( 0 , r ) ) } f u n c t i o n v ( C ) { n . $ $ . n o t _ e q u a l ( r . f a c e b o o k A u t h , C ) & & ( r . f a c e b o o k A u t h = C , t ( 0 , r ) ) } f u n c t i o n _ ( C ) { n . $ $ . n o t _ e q u a l ( r . g i t h u b A u t h , C ) & & ( r . g i t h u b A u t h = C , t ( 0 , r ) ) } f u n c t i o n y ( C ) { n . $ $ . n o t _ e q u a l ( r . g i t l a b A u t h , C ) & & ( r . g i t l a b A u t h = C , t ( 0 , r ) ) } c o n s t S = ( ) = > c ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 5 & & t ( 4 , i = a ! = J S O N . s t r i n g i f y ( r ) ) } , [ r , o , l , s , i , c , a , d , h , b , v , _ , y , S ] } c l a s s v O e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , _ O , g O , E e , { } ) } } f u n c t i o n T b ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 2 ] = e [ t ] , i [ 1 3 ] = e , i [ 1 4 ] = t , i } f u n c t i o n y O ( n ) { l e t e = [ ] , t = n e w M a p , i , o , r , l , s , a , f , c , u , d , h = n [ 4 ] ; c o n s t b = v = > v [ 1 2 ] . k e y ; f o r ( l e t v = 0 ; v < h . l e n g t h ; v + = 1 ) { l e t _ = T b ( n , h , v ) , y = b ( _ ) ; t . s e t ( y , e [ v ] = E b ( y , _ ) ) } r e t u r n { c ( ) { f o r ( l e t v = 0 ; v < e . l e n g t h ; v + = 1 ) e [ v ] . c ( ) ; i = $ ( ) , o = g ( " d i v " ) , r = g ( " d i v " ) , l = $ ( ) , s = g ( " b u t t o n " ) , a = g ( " s p a n " ) , a . t e x t C o n t e n t = " S a v e c h a n g e s " , p ( r , " c l a s s " , " f l e x - f i l l " ) , p ( a , " c l a s s " , " t x t " ) , p ( s , " t y p e " , " s u b m i t " ) , p ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = f = ! n [ 3 ] | | n [ 2 ] , n e ( s , " b t n - l o a d i n g " , n [ 2 ] ) , p ( o , " c l a s s " , " f l e x " ) } , m ( v , _ ) { f o r ( l e t y = 0 ; y < e . l e n g t h ; y + = 1 ) e [ y ] . m ( v , _ ) ; w ( v , i , _ ) , w ( v , o , _ ) , m ( o , r ) , m ( o , l ) , m ( o , s ) , m ( s , a ) , c = ! 0 , u | | ( d = X ( s , " c l i c k " , n [ 9 ] ) , u = ! 0 ) } , p ( v , _ ) { _ & 3 2 7 8 5 & & ( h = v [ 4 ] , A e ( ) , e = s t ( e , _ , b , 1 , v , h , t , i . p a r e n t N o d e , P t , E b , i , T b ) , D e ( ) ) , ( ! c | | _ & 1 2 & & f ! = = ( f = ! v [ 3 ] | | v [ 2 ] ) ) & & ( s . d i s a b l e d = f ) , _ & 4 & & n e ( s , " b t n - l o a d i n g " , v [ 2 ] ) } , i ( v ) { i f ( ! c ) { f o r ( l e t _ = 0 ; _ < h . l e n g t h ; _ + = 1 ) T ( e [ _ ] ) ; c = ! 0 } } , o ( v ) { f o r ( l e t _ = 0 ; _ < e . l e n g t h ; _ + = 1 ) F ( e [ _ ] ) ; c = ! 1 } , d ( v ) { f o r ( l e t _ = 0 ; _ < e . l e n g t h ; _ + = 1 ) e [ _ ] . d ( v ) ; v & & k ( i ) , v & & k ( o ) , u = ! 1 , d ( ) } } } f u n c t i o n k O ( n ) { l e t e ; r e t u r n { c ( ) { e = g ( " d i v " ) , p ( e , " c l a s s " , " l o a d e r " ) } , m ( t , i ) { w ( t , e , i ) } , p : l e , i : l e , o : l e , d ( t ) { t & & k ( e ) } } } f u n c t i o n w O ( n ) { l e t e , t = n [ 1 2 ] . l a b e l + " " , i , o , r , l , s , a , f , c , u , d , h ; f u n c t i o n b ( ) { n [ 7 ] . c a l l ( s , n [ 1 2 ] ) } f u n c t i o n v ( ) { r e t u r n n [ 8 ] ( n [ 1 2 ] ) } r e t u r n { c ( ) { e = g ( " l a b e l " ) , i = j ( t ) , o = j ( " d u r a t i o n ( i n s e c o n d s ) " ) , l = $ ( ) , s = g ( " i n p u t " ) , f = $ ( ) , c = g ( " d i v " ) , u = g ( " s p a n " ) , u . t e x t C o n t e n t = " I n v a l i d a t e a l l p r e v i o u s l y i s s u e d t o k e n s " , p ( e , " f o r " , r = n [ 1 5 ] ) , p ( s , " t y p e " , " n u m b e r " ) , p ( s , " i d " , a = n [ 1 5 ] ) , s . r e q u i r e d = ! 0 , p ( u , " c l a s s " , " l i n k - p r i m a r y " ) , n e ( u , " t x t - s u c c e s s " , n [ 0 ] [ n [ 1 2 ] . k e y ] . s e c r e t ) , p ( c , " c l a s s " , " h e l p - b l o c k " ) } , m ( _ , y ) { w ( _ , e , y ) , m ( e , i ) , m ( e , o ) , w ( _ , l , y ) , w ( _ , s , y ) , M e ( s , n [ 0 ] [ n [ 1 2 ] . k e y ] . d u r a t i o n ) , w ( _ , f , y ) , w ( _ , c , y ) , m ( c , u ) , d | | ( h = [ X ( s , " i n p u t " , b ) , X ( u , " c l i c k " , v ) ] , d = ! 0 ) } , p ( _ , y ) { n = _ , y & 3 2 7 6 8 & & r ! = = ( r = n [ 1 5 ] ) & & p ( e , " f o r " , r ) , y & 3 2 7 6 8 & & a ! = = ( a = n [ 1 5 ] ) & & p ( s , " i d " , a ) , y & 1 7 & & A t ( s . v a l u e ) ! = = n [ 0 ] [ n [ 1 2 ] . k e y ] . d u r a t i o n & & M e ( s , n [ 0 ] [ n [ 1 2 ] . k e y ] . d u r a t i o n ) , y & 1 7 & & n e ( u , " t x t - s u c c e s s " , n [ 0 ] [ n [ 1 2 ] . k e y ] . s e c r e t ) } , d ( _ ) { _ & & k ( e ) , _ & & k ( l ) , _ & & k ( s ) , _ & & k ( f ) , _ & & k ( c ) , d = ! 1 , r t ( h ) } } } f u n c t i o n E b ( n , e ) { l e t t , i , o ; r e t u r n i = n e w j e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d "
2022-07-08 18:15:01 +08:00
< div class = "breadcrumb-item" > Token options < / d i v > < / n a v > ` , r = $ ( ) , l = g ( " d i v " ) , s = g ( " f o r m " ) , a = g ( " d i v " ) , a . i n n e r H T M L = " < p > A d j u s t c o m m o n t o k e n o p t i o n s . < / p > " , f = $ ( ) , u . c ( ) , p ( o , " c l a s s " , " p a g e - h e a d e r " ) , p ( a , " c l a s s " , " c o n t e n t m - b - s m t x t - x l " ) , p ( s , " c l a s s " , " p a n e l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( l , " c l a s s " , " w r a p p e r " ) , p ( i , " c l a s s " , " p a g e - w r a p p e r " ) } , m ( S , C ) { H ( e , S , C ) , w ( S , t , C ) , w ( S , i , C ) , m ( i , o ) , m ( i , r ) , m ( i , l ) , m ( l , s ) , m ( s , a ) , m ( s , f ) , _ [ c ] . m ( s , n u l l ) , d = ! 0 , h | | ( b = X ( s , " s u b m i t " , G t ( n [ 5 ] ) ) , h = ! 0 ) } , p ( S , [ C ] ) { l e t x = c ; c = y ( S ) , c = = = x ? _ [ c ] . p ( S , C ) : ( A e ( ) , F ( _ [ x ] , 1 , 1 , ( ) = > { _ [ x ] = n u l l } ) , D e ( ) , u = _ [ c ] , u ? u . p ( S , C ) : ( u = _ [ c ] = v [ c ] ( S ) , u . c ( ) ) , T ( u , 1 ) , u . m ( s , n u l l ) ) } , i ( S ) { d | | ( T ( e . $ $ . f r a g m e n t , S ) , T ( u ) , d = ! 0 ) } , o ( S ) { F ( e . $ $ . f r a g m e n t , S ) , F ( u ) , d = ! 1 } , d ( S ) { q ( e , S ) , S & & k ( t ) , S & & k ( i ) , _ [ c ] . d ( ) , h = ! 1 , b ( ) } } } f u n c t i o n C O ( n , e , t ) { l e t i ; c o n s t o = [ { k e y : " u s e r A u t h T o k e n " , l a b e l : " U s e r s a u t h t o k e n " } , { k e y : " u s e r V e r i f i c a t i o n T o k e n " , l a b e l : " U s e r s e m a i l v e r i f i c a t i o n t o k e n " } , { k e y : " u s e r P a s s w o r d R e s e t T o k e n " , l a b e l : " U s e r s p a s s w o r d r e s e t t o k e n " } , { k e y : " u s e r E m a i l C h a n g e T o k e n " , l a b e l : " U s e r s e m a i l c h a n g e t o k e n " } , { k e y : " a d m i n A u t h T o k e n " , l a b e l : " A d m i n s a u t h t o k e n " } , { k e y : " a d m i n P a s s w o r d R e s e t T o k e n " , l a b e l : " A d m i n s p a s s w o r d r e s e t t o k e n " } ] ; l e t r = { } , l = ! 1 , s = ! 1 , a = " " ; B . s e t D o c u m e n t T i t l e ( " T o k e n o p t i o n s " ) , f ( ) ; a s y n c f u n c t i o n f ( ) { t ( 1 , l = ! 0 ) ; t r y { c o n s t v = a w a i t S e . S e t t i n g s . g e t A l l ( ) | | { } ; u ( v ) } c a t c h ( v ) { S e . e r r o r R e s p o n s e H a n d l e r ( v ) } t ( 1 , l = ! 1 ) } a s y n c f u n c t i o n c ( ) { i f ( ! ( s | | ! i ) ) { t ( 2 , s = ! 0 ) ; t r y { c o n s t v = a w a i t S e . S e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( r ) ) ; u ( v ) , h n ( " S u c c e s s f u l l y s a v e d t o k e n s o p t i o n s . " ) } c a t c h ( v ) { S e . e r r o r R e s p o n s e H a n d l e r ( v ) } t ( 2 , s = ! 1 ) } } f u n c t i o n u ( v ) { v a r _ ; v = v | | { } , t ( 0 , r = { } ) ; f o r ( c o n s t y o f o ) t ( 0 , r [ y . k e y ] = { d u r a t i o n : ( ( _ = v [ y . k e y ] ) = = n u l l ? v o i d 0 : _ . d u r a t i o n ) | | 0 } , r ) ; t ( 6 , a = J S O N . s t r i n g i f y ( r ) ) } f u n c t i o n d ( v ) { r [ v . k e y ] . d u r a t i o n = A t ( t h i s . v a l u e ) , t ( 0 , r ) } c o n s t h = v = > { r [ v . k e y ] . s e c r e t ? ( d e l e t e r [ v . k e y ] . s e c r e t , t ( 0 , r ) ) : t ( 0 , r [ v . k e y ] . s e c r e t = B . r a n d o m S t r i n g ( 5 0 ) , r ) } , b = ( ) = > c ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 5 & & t ( 3 , i = a ! = J S O N . s t r i n g i f y ( r ) ) } , [ r , l , s , i , o , c , a , d , h , b ] } c l a s s x O e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , C O , S O , E e , { } ) } } c o n s t M O = { " / _ e l e m e n t s " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / E l e m e n t s . f b a 5 c e f 6 . j s " ) , [ ] ) } ) , " / l o g i n " : Z t ( { c o m p o n e n t : r D , c o n d i t i o n s : [ n = > ! S e . A u t h S t o r e . i s V a l i d ] } ) , " / r e q u e s t - p a s s w o r d - r e s e t " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / P a g e A d m i n R e q u e s t P a s s w o r d R e s e t . 4 5 8 6 6 e 0 3 . j s " ) , [ ] ) , c o n d i t i o n s : [ n = > ! S e . A u t h S t o r e . i s V a l i d ] } ) , " / c o n f i r m - p a s s w o r d - r e s e t / : t o k e n " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / P a g e A d m i n C o n f i r m P a s s w o r d R e s e t . 6 f 7 f 6 3 d 0 . j s " ) , [ ] ) , c o n d i t i o n s : [ n = > ! S e . A u t h S t o r e . i s V a l i d ] } ) , " / c o l l e c t i o n s " : Z t ( { c o m p o n e n t : o A , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / l o g s " : Z t ( { c o m p o n e n t : m C , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / u s e r s " : Z t ( { c o m p o n e n t : A A , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / u s e r s / c o n f i r m - p a s s w o r d - r e s e t / : t o k e n " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / P a g e U s e r C o n f i r m P a s s w o r d R e s e t . 6 d 5 6 8 9 5 b . j s " ) , [ ] ) , c o n d i t i o n s : [ ( ) = > ( S e . l o g o u t ( ! 1 ) , ! 0 ) ] } ) , " / u s e r s / c o n f i r m - v e r i f i c a t i o n / : t o k e n " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / P a g e U s e r C o n f i r m V e r i f i c a t i o n . 8 d 0 2 3 a 3 2 . j s " ) , [ ] ) , c o n d i t i o n s : [ ( ) = > ( S e . l o g o u t ( ! 1 ) , ! 0 ) ] } ) , " / u s e r s / c o n f i r m - e m a i l - c h a n g e / : t o k e n " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / P a g e U s e r C o n f i r m E m a i l C h a n g e . a 2 6 2 4 0 7 0 . j s " ) , [ ] ) , c o n d i t i o n s : [ ( ) = > ( S e . l o g o u t ( ! 1 ) , ! 0 ) ] } ) , " / s e t t i n g s " : Z t ( { c o m p o n e n t : p D , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / s e t t i n g s / a d m i n s " : Z t ( { c o m p o n e n t : J A , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / s e t t i n g s / m a i l " : Z t ( { c o m p o n e n t : P D , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / s e t t i n g s / s t o r a g e " : Z t ( { c o m p o n e n t : B D , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / s e t t i n g s / a u t h - p r o v i d e r s " : Z t ( { c o m p o n e n t : v O , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " / s e t t i n g s / t o k e n s " : Z t ( { c o m p o n e n t : x O , c o n d i t i o n s : [ n = > S e . A u t h S t o r e . i s V a l i d ] } ) , " * " : Z t ( { a s y n c C o m p o n e n t : ( ) = > _ i ( ( ) = > i m p o r t ( " . / N o t F o u n d P a g e . 8 9 9 a 1 d 8 c . j s " ) , [ ] ) } ) } ; f u n c t i o n $ O ( n , { f r o m : e , t o : t } , i = { } ) { c o n s t o = g e t C o m p u t e d S t y l e ( n ) , r = o . t r a n s f o r m = = = " n o n e " ? " " : o . t r a n s f o r m , [ l , s ] = o . t r a n s f o r m O r i g i n . s p l i t ( " " ) . m a p ( p a r s e F l o a t ) , a = e . l e f t + e . w i d t h * l / t . w i d t h - ( t . l e f t + l ) , f = e . t o p + e . h e i g h t * s / t . h e i g h t - ( t . t o p + s ) , { d e l a y : c = 0 , d u r a t i o n : u = h = > M a t h . s q r t ( h ) * 1 2 0 , e a s i n g : d = A s } = i ; r e t u r n { d e l a y : c , d u r a t i o n : Y n ( u ) ? u ( M a t h . s q r t ( a * a + f * f ) ) : u , e a s i n g : d , c s s : ( h , b ) = > { c o n s t v = b * a , _ = b * f , y = h + b * e . w i d t h / t . w i d t h , S = h + b * e . h e i g h t / t . h e i g h t ; r
2022-07-07 05:19:05 +08:00
< span class = "txt" > Manage admins < /span>`,t=$(),i=g("hr"),o=$(),r=g("div"),r.innerHTML=`<i class="ri-logout-circle-line"></i >
< span class = "txt" > Logout < / s p a n > ` , p ( e , " h r e f " , " / s e t t i n g s / a d m i n s " ) , p ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) , p ( r , " t a b i n d e x " , " 0 " ) , p ( r , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) } , m ( a , f ) { w ( a , e , f ) , w ( a , t , f ) , w ( a , i , f ) , w ( a , o , f ) , w ( a , r , f ) , l | | ( s = [ X e ( x n . c a l l ( n u l l , e ) ) , X ( r , " c l i c k " , n [ 3 ] ) ] , l = ! 0 ) } , p : l e , d ( a ) { a & & k ( e ) , a & & k ( t ) , a & & k ( i ) , a & & k ( o ) , a & & k ( r ) , l = ! 1 , r t ( s ) } } } f u n c t i o n z O ( n ) { v a r u ; l e t e , t , i , o , r , l , s , a , f , c = ( ( u = n [ 0 ] ) = = n u l l ? v o i d 0 : u . i d ) & & L b ( n ) ; r e t u r n o = n e w n _ ( { p r o p s : { r o u t e s : M O } } ) , o . $ o n ( " r o u t e L o a d i n g " , n [ 1 ] ) , o . $ o n ( " c o n d i t i o n s F a i l e d " , n [ 2 ] ) , l = n e w P O ( { } ) , a = n e w N O ( { } ) , { c ( ) { e = g ( " d i v " ) , c & & c . c ( ) , t = $ ( ) , i = g ( " d i v " ) , V ( o . $ $ . f r a g m e n t ) , r = $ ( ) , V ( l . $ $ . f r a g m e n t ) , s = $ ( ) , V ( a . $ $ . f r a g m e n t ) , p ( i , " c l a s s " , " a p p - b o d y " ) , p ( e , " c l a s s " , " a p p - l a y o u t " ) } , m ( d , h ) { w ( d , e , h ) , c & & c . m ( e , n u l l ) , m ( e , t ) , m ( e , i ) , H ( o , i , n u l l ) , w ( d , r , h ) , H ( l , d , h ) , w ( d , s , h ) , H ( a , d , h ) , f = ! 0 } , p ( d , [ h ] ) { v a r b ; ( b = d [ 0 ] ) ! = n u l l & & b . i d ? c ? ( c . p ( d , h ) , h & 1 & & T ( c , 1 ) ) : ( c = L b ( d ) , c . c ( ) , T ( c , 1 ) , c . m ( e , t ) ) : c & & ( A e ( ) , F ( c , 1 , 1 , ( ) = > { c = n u l l } ) , D e ( ) ) } , i ( d ) { f | | ( T ( c ) , T ( o . $ $ . f r a g m e n t , d ) , T ( l . $ $ . f r a g m e n t , d ) , T ( a . $ $ . f r a g m e n t , d ) , f = ! 0 ) } , o ( d ) { F ( c ) , F ( o . $ $ . f r a g m e n t , d ) , F ( l . $ $ . f r a g m e n t , d ) , F ( a . $ $ . f r a g m e n t , d ) , f = ! 1 } , d ( d ) { d & & k ( e ) , c & & c . d ( ) , q ( o ) , d & & k ( r ) , q ( l , d ) , d & & k ( s ) , q ( a , d ) } } } f u n c t i o n H O ( n , e , t ) { l e t i ; p n ( n , q f , a = > t ( 0 , i = a ) ) ; l e t o ; f u n c t i o n r ( a ) { v a r f , c ; ( ( f = a = = n u l l ? v o i d 0 : a . d e t a i l ) = = n u l l ? v o i d 0 : f . l o c a t i o n ) ! = = o & & ( o = ( c = a = = n u l l ? v o i d 0 : a . d e t a i l ) = = n u l l ? v o i d 0 : c . l o c a t i o n , B . s e t D o c u m e n t T i t l e ( " " ) , U i ( { } ) , A 1 ( ) ) } f u n c t i o n l ( ) { S e . A u t h S t o r e . i s V a l i d ? S s ( " / " ) : S e . l o g o u t ( ) } f u n c t i o n s ( ) { S e . l o g o u t ( ) } r e t u r n [ i , r , l , s ] } c l a s s q O e x t e n d s I e { c o n s t r u c t o r ( e ) { s u p e r ( ) , L e ( t h i s , e , H O , z O , E e , { } ) } } n e w q O ( { t a r g e t : d o c u m e n t . g e t E l e m e n t B y I d ( " a p p " ) } ) ; e x p o r t { n e a s A , X a s B , G t a s C , j a s D , g e a s E , Q A a s F , M e a s G , B a s H , r t a s I , h n a s J , S s a s K , l t a s L , p n a s M , G o a s N , y o a s O , y n a s P , E n a s Q , d i a s R , I e a s S , A i a s a , h e a s b , F e a s c , $ a s d , g a s e , V a s f , p a s g , w a s h , L e a s i , m a s j , X e a s k , R e a s l , H a s m , T a s n , F a s o , k a s p , q , V O a s r , E e a s s , S t a s t , l e a s u , x n a s v , A e a s w , D e a s x , S e a s y , j e a s z } ;