From 67e197422896a8a56ba811017667e45dea3fdcd4 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Fri, 28 Apr 2023 16:22:38 +0300 Subject: [PATCH] updated js sdk --- ui/.env | 2 +- ...9a237114.js => AuthMethodsDocs-30a70c3c.js} | 2 +- ...2e158885.js => AuthRefreshDocs-20cba9fe.js} | 2 +- ...a6a75.js => AuthWithOAuth2Docs-88c9d62b.js} | 2 +- ...c88.js => AuthWithPasswordDocs-f589841e.js} | 2 +- ...itor-4b65e980.js => CodeEditor-b3468e88.js} | 2 +- ...f.js => ConfirmEmailChangeDocs-44f473ac.js} | 2 +- ...js => ConfirmPasswordResetDocs-1717dd10.js} | 2 +- ....js => ConfirmVerificationDocs-d0a10dda.js} | 2 +- ...s-6309a89b.js => CreateApiDocs-b5577e9f.js} | 2 +- ...s-fd7036f7.js => DeleteApiDocs-119583b1.js} | 2 +- ....js => FilterAutocompleteInput-42c48e12.js} | 2 +- ...ocs-37e6e026.js => ListApiDocs-c09270cb.js} | 2 +- ...1e.js => ListExternalAuthsDocs-7ba4a808.js} | 2 +- ... PageAdminConfirmPasswordReset-ececf096.js} | 2 +- ... PageAdminRequestPasswordReset-20a5aa5c.js} | 2 +- ...8ebbd.js => PageOAuth2Redirect-45684932.js} | 2 +- ...> PageRecordConfirmEmailChange-f437f931.js} | 4 ++-- ...PageRecordConfirmPasswordReset-de720f67.js} | 4 ++-- ... PageRecordConfirmVerification-8fbbaaca.js} | 4 ++-- ...a087aeb7.js => RealtimeApiDocs-619375a5.js} | 2 +- ...e.js => RequestEmailChangeDocs-f05b8fdc.js} | 2 +- ...js => RequestPasswordResetDocs-d4b15fc0.js} | 2 +- ....js => RequestVerificationDocs-03f820dd.js} | 2 +- ...SdkTabs-f541bf12.js => SdkTabs-bc0a52ba.js} | 2 +- ...b.js => UnlinkExternalAuthDocs-77e25192.js} | 2 +- ...s-3647ab4b.js => UpdateApiDocs-f0212d5c.js} | 2 +- ...ocs-2cf74215.js => ViewApiDocs-c7f9b4ff.js} | 2 +- .../{index-f81c5782.js => index-fae59489.js} | 18 +++++++++--------- ui/dist/index.html | 2 +- ui/package-lock.json | 14 +++++++------- ui/package.json | 2 +- 32 files changed, 49 insertions(+), 49 deletions(-) rename ui/dist/assets/{AuthMethodsDocs-9a237114.js => AuthMethodsDocs-30a70c3c.js} (98%) rename ui/dist/assets/{AuthRefreshDocs-2e158885.js => AuthRefreshDocs-20cba9fe.js} (98%) rename ui/dist/assets/{AuthWithOAuth2Docs-07ca6a75.js => AuthWithOAuth2Docs-88c9d62b.js} (98%) rename ui/dist/assets/{AuthWithPasswordDocs-669a9c88.js => AuthWithPasswordDocs-f589841e.js} (98%) rename ui/dist/assets/{CodeEditor-4b65e980.js => CodeEditor-b3468e88.js} (99%) rename ui/dist/assets/{ConfirmEmailChangeDocs-cc3d69ff.js => ConfirmEmailChangeDocs-44f473ac.js} (97%) rename ui/dist/assets/{ConfirmPasswordResetDocs-c185c50f.js => ConfirmPasswordResetDocs-1717dd10.js} (98%) rename ui/dist/assets/{ConfirmVerificationDocs-05bd8880.js => ConfirmVerificationDocs-d0a10dda.js} (97%) rename ui/dist/assets/{CreateApiDocs-6309a89b.js => CreateApiDocs-b5577e9f.js} (99%) rename ui/dist/assets/{DeleteApiDocs-fd7036f7.js => DeleteApiDocs-119583b1.js} (97%) rename ui/dist/assets/{FilterAutocompleteInput-82ab8430.js => FilterAutocompleteInput-42c48e12.js} (99%) rename ui/dist/assets/{ListApiDocs-37e6e026.js => ListApiDocs-c09270cb.js} (99%) rename ui/dist/assets/{ListExternalAuthsDocs-f5a8df1e.js => ListExternalAuthsDocs-7ba4a808.js} (98%) rename ui/dist/assets/{PageAdminConfirmPasswordReset-1660953a.js => PageAdminConfirmPasswordReset-ececf096.js} (98%) rename ui/dist/assets/{PageAdminRequestPasswordReset-3fef4398.js => PageAdminRequestPasswordReset-20a5aa5c.js} (98%) rename ui/dist/assets/{PageOAuth2Redirect-a5e8ebbd.js => PageOAuth2Redirect-45684932.js} (87%) rename ui/dist/assets/{PageRecordConfirmEmailChange-3ff2bfd1.js => PageRecordConfirmEmailChange-f437f931.js} (83%) rename ui/dist/assets/{PageRecordConfirmPasswordReset-527f0d01.js => PageRecordConfirmPasswordReset-de720f67.js} (85%) rename ui/dist/assets/{PageRecordConfirmVerification-15580e3b.js => PageRecordConfirmVerification-8fbbaaca.js} (79%) rename ui/dist/assets/{RealtimeApiDocs-a087aeb7.js => RealtimeApiDocs-619375a5.js} (98%) rename ui/dist/assets/{RequestEmailChangeDocs-7249bdce.js => RequestEmailChangeDocs-f05b8fdc.js} (98%) rename ui/dist/assets/{RequestPasswordResetDocs-ea60e244.js => RequestPasswordResetDocs-d4b15fc0.js} (97%) rename ui/dist/assets/{RequestVerificationDocs-4868a048.js => RequestVerificationDocs-03f820dd.js} (97%) rename ui/dist/assets/{SdkTabs-f541bf12.js => SdkTabs-bc0a52ba.js} (96%) rename ui/dist/assets/{UnlinkExternalAuthDocs-07157dbb.js => UnlinkExternalAuthDocs-77e25192.js} (98%) rename ui/dist/assets/{UpdateApiDocs-3647ab4b.js => UpdateApiDocs-f0212d5c.js} (99%) rename ui/dist/assets/{ViewApiDocs-2cf74215.js => ViewApiDocs-c7f9b4ff.js} (98%) rename ui/dist/assets/{index-f81c5782.js => index-fae59489.js} (91%) diff --git a/ui/.env b/ui/.env index a644f2ed..2f53978b 100644 --- a/ui/.env +++ b/ui/.env @@ -1,5 +1,5 @@ # all environments should start with 'PB_' prefix -PB_BACKEND_URL = "/" +PB_BACKEND_URL = "../" PB_INSTALLER_PARAM = "installer" PB_OAUTH2_EXAMPLE = "https://pocketbase.io/docs/authentication/#oauth2-integration" PB_RULES_SYNTAX_DOCS = "https://pocketbase.io/docs/api-rules-and-filters/" diff --git a/ui/dist/assets/AuthMethodsDocs-9a237114.js b/ui/dist/assets/AuthMethodsDocs-30a70c3c.js similarity index 98% rename from ui/dist/assets/AuthMethodsDocs-9a237114.js rename to ui/dist/assets/AuthMethodsDocs-30a70c3c.js index bd8d72f2..2772616f 100644 --- a/ui/dist/assets/AuthMethodsDocs-9a237114.js +++ b/ui/dist/assets/AuthMethodsDocs-30a70c3c.js @@ -1,4 +1,4 @@ -import{S as ke,i as be,s as ge,e as r,w as g,b as w,c as _e,f as k,g as h,h as n,m as me,x as H,N as re,O as we,k as ve,P as Ce,n as Pe,t as L,a as Y,o as _,d as pe,T as Me,C as Se,p as $e,r as Q,u as je,M as Ae}from"./index-f81c5782.js";import{S as Be}from"./SdkTabs-f541bf12.js";function ue(a,l,o){const s=a.slice();return s[5]=l[o],s}function de(a,l,o){const s=a.slice();return s[5]=l[o],s}function fe(a,l){let o,s=l[5].code+"",m,f,i,u;function d(){return l[4](l[5])}return{key:a,first:null,c(){o=r("button"),m=g(s),f=w(),k(o,"class","tab-item"),Q(o,"active",l[1]===l[5].code),this.first=o},m(v,C){h(v,o,C),n(o,m),n(o,f),i||(u=je(o,"click",d),i=!0)},p(v,C){l=v,C&4&&s!==(s=l[5].code+"")&&H(m,s),C&6&&Q(o,"active",l[1]===l[5].code)},d(v){v&&_(o),i=!1,u()}}}function he(a,l){let o,s,m,f;return s=new Ae({props:{content:l[5].body}}),{key:a,first:null,c(){o=r("div"),_e(s.$$.fragment),m=w(),k(o,"class","tab-item"),Q(o,"active",l[1]===l[5].code),this.first=o},m(i,u){h(i,o,u),me(s,o,null),n(o,m),f=!0},p(i,u){l=i;const d={};u&4&&(d.content=l[5].body),s.$set(d),(!f||u&6)&&Q(o,"active",l[1]===l[5].code)},i(i){f||(L(s.$$.fragment,i),f=!0)},o(i){Y(s.$$.fragment,i),f=!1},d(i){i&&_(o),pe(s)}}}function Oe(a){var ae,ne;let l,o,s=a[0].name+"",m,f,i,u,d,v,C,F=a[0].name+"",U,X,q,P,D,j,W,M,K,R,y,A,Z,V,z=a[0].name+"",E,x,I,B,J,S,O,b=[],ee=new Map,te,T,p=[],le=new Map,$;P=new Be({props:{js:` +import{S as ke,i as be,s as ge,e as r,w as g,b as w,c as _e,f as k,g as h,h as n,m as me,x as H,N as re,O as we,k as ve,P as Ce,n as Pe,t as L,a as Y,o as _,d as pe,T as Me,C as Se,p as $e,r as Q,u as je,M as Ae}from"./index-fae59489.js";import{S as Be}from"./SdkTabs-bc0a52ba.js";function ue(a,l,o){const s=a.slice();return s[5]=l[o],s}function de(a,l,o){const s=a.slice();return s[5]=l[o],s}function fe(a,l){let o,s=l[5].code+"",m,f,i,u;function d(){return l[4](l[5])}return{key:a,first:null,c(){o=r("button"),m=g(s),f=w(),k(o,"class","tab-item"),Q(o,"active",l[1]===l[5].code),this.first=o},m(v,C){h(v,o,C),n(o,m),n(o,f),i||(u=je(o,"click",d),i=!0)},p(v,C){l=v,C&4&&s!==(s=l[5].code+"")&&H(m,s),C&6&&Q(o,"active",l[1]===l[5].code)},d(v){v&&_(o),i=!1,u()}}}function he(a,l){let o,s,m,f;return s=new Ae({props:{content:l[5].body}}),{key:a,first:null,c(){o=r("div"),_e(s.$$.fragment),m=w(),k(o,"class","tab-item"),Q(o,"active",l[1]===l[5].code),this.first=o},m(i,u){h(i,o,u),me(s,o,null),n(o,m),f=!0},p(i,u){l=i;const d={};u&4&&(d.content=l[5].body),s.$set(d),(!f||u&6)&&Q(o,"active",l[1]===l[5].code)},i(i){f||(L(s.$$.fragment,i),f=!0)},o(i){Y(s.$$.fragment,i),f=!1},d(i){i&&_(o),pe(s)}}}function Oe(a){var ae,ne;let l,o,s=a[0].name+"",m,f,i,u,d,v,C,F=a[0].name+"",U,X,q,P,D,j,W,M,K,R,y,A,Z,V,z=a[0].name+"",E,x,I,B,J,S,O,b=[],ee=new Map,te,T,p=[],le=new Map,$;P=new Be({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/AuthRefreshDocs-2e158885.js b/ui/dist/assets/AuthRefreshDocs-20cba9fe.js similarity index 98% rename from ui/dist/assets/AuthRefreshDocs-2e158885.js rename to ui/dist/assets/AuthRefreshDocs-20cba9fe.js index 78cd3fea..18e90c7d 100644 --- a/ui/dist/assets/AuthRefreshDocs-2e158885.js +++ b/ui/dist/assets/AuthRefreshDocs-20cba9fe.js @@ -1,4 +1,4 @@ -import{S as ze,i as Ue,s as je,M as Ve,e as a,w as k,b as p,c as ae,f as b,g as d,h as o,m as ne,x as re,N as qe,O as xe,k as Je,P as Ke,n as Ie,t as U,a as j,o as u,d as ie,T as Qe,C as He,p as We,r as x,u as Ge}from"./index-f81c5782.js";import{S as Xe}from"./SdkTabs-f541bf12.js";function Ee(r,l,s){const n=r.slice();return n[5]=l[s],n}function Fe(r,l,s){const n=r.slice();return n[5]=l[s],n}function Le(r,l){let s,n=l[5].code+"",m,_,i,f;function v(){return l[4](l[5])}return{key:r,first:null,c(){s=a("button"),m=k(n),_=p(),b(s,"class","tab-item"),x(s,"active",l[1]===l[5].code),this.first=s},m(g,w){d(g,s,w),o(s,m),o(s,_),i||(f=Ge(s,"click",v),i=!0)},p(g,w){l=g,w&4&&n!==(n=l[5].code+"")&&re(m,n),w&6&&x(s,"active",l[1]===l[5].code)},d(g){g&&u(s),i=!1,f()}}}function Ne(r,l){let s,n,m,_;return n=new Ve({props:{content:l[5].body}}),{key:r,first:null,c(){s=a("div"),ae(n.$$.fragment),m=p(),b(s,"class","tab-item"),x(s,"active",l[1]===l[5].code),this.first=s},m(i,f){d(i,s,f),ne(n,s,null),o(s,m),_=!0},p(i,f){l=i;const v={};f&4&&(v.content=l[5].body),n.$set(v),(!_||f&6)&&x(s,"active",l[1]===l[5].code)},i(i){_||(U(n.$$.fragment,i),_=!0)},o(i){j(n.$$.fragment,i),_=!1},d(i){i&&u(s),ie(n)}}}function Ye(r){var Ae,Be;let l,s,n=r[0].name+"",m,_,i,f,v,g,w,A,J,$,F,ce,L,B,de,K,N=r[0].name+"",I,ue,pe,V,Q,D,W,T,G,fe,X,C,Y,he,Z,be,h,me,R,_e,ke,ve,ee,ge,te,ye,Se,$e,oe,we,le,O,se,P,q,S=[],Te=new Map,Ce,H,y=[],Pe=new Map,M;g=new Xe({props:{js:` +import{S as ze,i as Ue,s as je,M as Ve,e as a,w as k,b as p,c as ae,f as b,g as d,h as o,m as ne,x as re,N as qe,O as xe,k as Je,P as Ke,n as Ie,t as U,a as j,o as u,d as ie,T as Qe,C as He,p as We,r as x,u as Ge}from"./index-fae59489.js";import{S as Xe}from"./SdkTabs-bc0a52ba.js";function Ee(r,l,s){const n=r.slice();return n[5]=l[s],n}function Fe(r,l,s){const n=r.slice();return n[5]=l[s],n}function Le(r,l){let s,n=l[5].code+"",m,_,i,f;function v(){return l[4](l[5])}return{key:r,first:null,c(){s=a("button"),m=k(n),_=p(),b(s,"class","tab-item"),x(s,"active",l[1]===l[5].code),this.first=s},m(g,w){d(g,s,w),o(s,m),o(s,_),i||(f=Ge(s,"click",v),i=!0)},p(g,w){l=g,w&4&&n!==(n=l[5].code+"")&&re(m,n),w&6&&x(s,"active",l[1]===l[5].code)},d(g){g&&u(s),i=!1,f()}}}function Ne(r,l){let s,n,m,_;return n=new Ve({props:{content:l[5].body}}),{key:r,first:null,c(){s=a("div"),ae(n.$$.fragment),m=p(),b(s,"class","tab-item"),x(s,"active",l[1]===l[5].code),this.first=s},m(i,f){d(i,s,f),ne(n,s,null),o(s,m),_=!0},p(i,f){l=i;const v={};f&4&&(v.content=l[5].body),n.$set(v),(!_||f&6)&&x(s,"active",l[1]===l[5].code)},i(i){_||(U(n.$$.fragment,i),_=!0)},o(i){j(n.$$.fragment,i),_=!1},d(i){i&&u(s),ie(n)}}}function Ye(r){var Ae,Be;let l,s,n=r[0].name+"",m,_,i,f,v,g,w,A,J,$,F,ce,L,B,de,K,N=r[0].name+"",I,ue,pe,V,Q,D,W,T,G,fe,X,C,Y,he,Z,be,h,me,R,_e,ke,ve,ee,ge,te,ye,Se,$e,oe,we,le,O,se,P,q,S=[],Te=new Map,Ce,H,y=[],Pe=new Map,M;g=new Xe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${r[3]}'); diff --git a/ui/dist/assets/AuthWithOAuth2Docs-07ca6a75.js b/ui/dist/assets/AuthWithOAuth2Docs-88c9d62b.js similarity index 98% rename from ui/dist/assets/AuthWithOAuth2Docs-07ca6a75.js rename to ui/dist/assets/AuthWithOAuth2Docs-88c9d62b.js index e56a59ae..359490a0 100644 --- a/ui/dist/assets/AuthWithOAuth2Docs-07ca6a75.js +++ b/ui/dist/assets/AuthWithOAuth2Docs-88c9d62b.js @@ -1,4 +1,4 @@ -import{S as je,i as Fe,s as Ve,M as He,e as s,w as g,b as h,c as re,f as p,g as r,h as a,m as ce,x as ue,N as Pe,O as Le,k as Ee,P as Je,n as Ne,t as E,a as J,o as c,d as de,T as ze,C as Re,p as Ie,r as N,u as Ke}from"./index-f81c5782.js";import{S as Qe}from"./SdkTabs-f541bf12.js";function xe(i,l,o){const n=i.slice();return n[5]=l[o],n}function We(i,l,o){const n=i.slice();return n[5]=l[o],n}function Ue(i,l){let o,n=l[5].code+"",m,k,u,b;function _(){return l[4](l[5])}return{key:i,first:null,c(){o=s("button"),m=g(n),k=h(),p(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(v,A){r(v,o,A),a(o,m),a(o,k),u||(b=Ke(o,"click",_),u=!0)},p(v,A){l=v,A&4&&n!==(n=l[5].code+"")&&ue(m,n),A&6&&N(o,"active",l[1]===l[5].code)},d(v){v&&c(o),u=!1,b()}}}function Be(i,l){let o,n,m,k;return n=new He({props:{content:l[5].body}}),{key:i,first:null,c(){o=s("div"),re(n.$$.fragment),m=h(),p(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(u,b){r(u,o,b),ce(n,o,null),a(o,m),k=!0},p(u,b){l=u;const _={};b&4&&(_.content=l[5].body),n.$set(_),(!k||b&6)&&N(o,"active",l[1]===l[5].code)},i(u){k||(E(n.$$.fragment,u),k=!0)},o(u){J(n.$$.fragment,u),k=!1},d(u){u&&c(o),de(n)}}}function Ge(i){let l,o,n=i[0].name+"",m,k,u,b,_,v,A,D,z,S,j,he,F,M,pe,I,V=i[0].name+"",K,be,Q,P,G,R,X,x,Y,y,Z,fe,ee,$,te,me,ae,ke,f,ge,C,_e,ve,we,le,Oe,oe,Ae,Se,ye,se,$e,ne,W,ie,T,U,O=[],Te=new Map,Ce,B,w=[],qe=new Map,q;v=new Qe({props:{js:` +import{S as je,i as Fe,s as Ve,M as He,e as s,w as g,b as h,c as re,f as p,g as r,h as a,m as ce,x as ue,N as Pe,O as Le,k as Ee,P as Je,n as Ne,t as E,a as J,o as c,d as de,T as ze,C as Re,p as Ie,r as N,u as Ke}from"./index-fae59489.js";import{S as Qe}from"./SdkTabs-bc0a52ba.js";function xe(i,l,o){const n=i.slice();return n[5]=l[o],n}function We(i,l,o){const n=i.slice();return n[5]=l[o],n}function Ue(i,l){let o,n=l[5].code+"",m,k,u,b;function _(){return l[4](l[5])}return{key:i,first:null,c(){o=s("button"),m=g(n),k=h(),p(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(v,A){r(v,o,A),a(o,m),a(o,k),u||(b=Ke(o,"click",_),u=!0)},p(v,A){l=v,A&4&&n!==(n=l[5].code+"")&&ue(m,n),A&6&&N(o,"active",l[1]===l[5].code)},d(v){v&&c(o),u=!1,b()}}}function Be(i,l){let o,n,m,k;return n=new He({props:{content:l[5].body}}),{key:i,first:null,c(){o=s("div"),re(n.$$.fragment),m=h(),p(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(u,b){r(u,o,b),ce(n,o,null),a(o,m),k=!0},p(u,b){l=u;const _={};b&4&&(_.content=l[5].body),n.$set(_),(!k||b&6)&&N(o,"active",l[1]===l[5].code)},i(u){k||(E(n.$$.fragment,u),k=!0)},o(u){J(n.$$.fragment,u),k=!1},d(u){u&&c(o),de(n)}}}function Ge(i){let l,o,n=i[0].name+"",m,k,u,b,_,v,A,D,z,S,j,he,F,M,pe,I,V=i[0].name+"",K,be,Q,P,G,R,X,x,Y,y,Z,fe,ee,$,te,me,ae,ke,f,ge,C,_e,ve,we,le,Oe,oe,Ae,Se,ye,se,$e,ne,W,ie,T,U,O=[],Te=new Map,Ce,B,w=[],qe=new Map,q;v=new Qe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/AuthWithPasswordDocs-669a9c88.js b/ui/dist/assets/AuthWithPasswordDocs-f589841e.js similarity index 98% rename from ui/dist/assets/AuthWithPasswordDocs-669a9c88.js rename to ui/dist/assets/AuthWithPasswordDocs-f589841e.js index 4d8fc604..eccdfa4b 100644 --- a/ui/dist/assets/AuthWithPasswordDocs-669a9c88.js +++ b/ui/dist/assets/AuthWithPasswordDocs-f589841e.js @@ -1,4 +1,4 @@ -import{S as Se,i as ve,s as we,M as ke,e as s,w as f,b as u,c as Ot,f as h,g as r,h as o,m as Tt,x as At,N as ce,O as ye,k as ge,P as Pe,n as $e,t as tt,a as et,o as c,d as Mt,T as Re,C as de,p as Ce,r as lt,u as Oe}from"./index-f81c5782.js";import{S as Te}from"./SdkTabs-f541bf12.js";function ue(n,e,l){const i=n.slice();return i[8]=e[l],i}function fe(n,e,l){const i=n.slice();return i[8]=e[l],i}function Ae(n){let e;return{c(){e=f("email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Me(n){let e;return{c(){e=f("username")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Ue(n){let e;return{c(){e=f("username/email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function pe(n){let e;return{c(){e=s("strong"),e.textContent="username"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function be(n){let e;return{c(){e=f("or")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function me(n){let e;return{c(){e=s("strong"),e.textContent="email"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function he(n,e){let l,i=e[8].code+"",S,m,p,d;function _(){return e[7](e[8])}return{key:n,first:null,c(){l=s("button"),S=f(i),m=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(R,C){r(R,l,C),o(l,S),o(l,m),p||(d=Oe(l,"click",_),p=!0)},p(R,C){e=R,C&16&&i!==(i=e[8].code+"")&&At(S,i),C&24&<(l,"active",e[3]===e[8].code)},d(R){R&&c(l),p=!1,d()}}}function _e(n,e){let l,i,S,m;return i=new ke({props:{content:e[8].body}}),{key:n,first:null,c(){l=s("div"),Ot(i.$$.fragment),S=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(p,d){r(p,l,d),Tt(i,l,null),o(l,S),m=!0},p(p,d){e=p;const _={};d&16&&(_.content=e[8].body),i.$set(_),(!m||d&24)&<(l,"active",e[3]===e[8].code)},i(p){m||(tt(i.$$.fragment,p),m=!0)},o(p){et(i.$$.fragment,p),m=!1},d(p){p&&c(l),Mt(i)}}}function De(n){var se,ne;let e,l,i=n[0].name+"",S,m,p,d,_,R,C,O,B,Ut,ot,A,at,F,st,M,G,Dt,X,N,Et,nt,Z=n[0].name+"",it,Wt,rt,I,ct,U,dt,Lt,V,D,ut,Bt,ft,Ht,P,Yt,pt,bt,mt,qt,ht,_t,j,kt,E,St,Ft,vt,W,wt,Nt,yt,It,k,Vt,H,jt,Jt,Kt,gt,Qt,Pt,zt,Gt,Xt,$t,Zt,Rt,J,Ct,L,K,T=[],xt=new Map,te,Q,v=[],ee=new Map,Y;function le(t,a){if(t[1]&&t[2])return Ue;if(t[1])return Me;if(t[2])return Ae}let q=le(n),$=q&&q(n);A=new Te({props:{js:` +import{S as Se,i as ve,s as we,M as ke,e as s,w as f,b as u,c as Ot,f as h,g as r,h as o,m as Tt,x as At,N as ce,O as ye,k as ge,P as Pe,n as $e,t as tt,a as et,o as c,d as Mt,T as Re,C as de,p as Ce,r as lt,u as Oe}from"./index-fae59489.js";import{S as Te}from"./SdkTabs-bc0a52ba.js";function ue(n,e,l){const i=n.slice();return i[8]=e[l],i}function fe(n,e,l){const i=n.slice();return i[8]=e[l],i}function Ae(n){let e;return{c(){e=f("email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Me(n){let e;return{c(){e=f("username")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Ue(n){let e;return{c(){e=f("username/email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function pe(n){let e;return{c(){e=s("strong"),e.textContent="username"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function be(n){let e;return{c(){e=f("or")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function me(n){let e;return{c(){e=s("strong"),e.textContent="email"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function he(n,e){let l,i=e[8].code+"",S,m,p,d;function _(){return e[7](e[8])}return{key:n,first:null,c(){l=s("button"),S=f(i),m=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(R,C){r(R,l,C),o(l,S),o(l,m),p||(d=Oe(l,"click",_),p=!0)},p(R,C){e=R,C&16&&i!==(i=e[8].code+"")&&At(S,i),C&24&<(l,"active",e[3]===e[8].code)},d(R){R&&c(l),p=!1,d()}}}function _e(n,e){let l,i,S,m;return i=new ke({props:{content:e[8].body}}),{key:n,first:null,c(){l=s("div"),Ot(i.$$.fragment),S=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(p,d){r(p,l,d),Tt(i,l,null),o(l,S),m=!0},p(p,d){e=p;const _={};d&16&&(_.content=e[8].body),i.$set(_),(!m||d&24)&<(l,"active",e[3]===e[8].code)},i(p){m||(tt(i.$$.fragment,p),m=!0)},o(p){et(i.$$.fragment,p),m=!1},d(p){p&&c(l),Mt(i)}}}function De(n){var se,ne;let e,l,i=n[0].name+"",S,m,p,d,_,R,C,O,B,Ut,ot,A,at,F,st,M,G,Dt,X,N,Et,nt,Z=n[0].name+"",it,Wt,rt,I,ct,U,dt,Lt,V,D,ut,Bt,ft,Ht,P,Yt,pt,bt,mt,qt,ht,_t,j,kt,E,St,Ft,vt,W,wt,Nt,yt,It,k,Vt,H,jt,Jt,Kt,gt,Qt,Pt,zt,Gt,Xt,$t,Zt,Rt,J,Ct,L,K,T=[],xt=new Map,te,Q,v=[],ee=new Map,Y;function le(t,a){if(t[1]&&t[2])return Ue;if(t[1])return Me;if(t[2])return Ae}let q=le(n),$=q&&q(n);A=new Te({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${n[6]}'); diff --git a/ui/dist/assets/CodeEditor-4b65e980.js b/ui/dist/assets/CodeEditor-b3468e88.js similarity index 99% rename from ui/dist/assets/CodeEditor-4b65e980.js rename to ui/dist/assets/CodeEditor-b3468e88.js index 17ffa828..d70aec1d 100644 --- a/ui/dist/assets/CodeEditor-4b65e980.js +++ b/ui/dist/assets/CodeEditor-b3468e88.js @@ -1,4 +1,4 @@ -import{S as gt,i as Pt,s as mt,e as Xt,f as Zt,U as E,g as bt,y as Re,o as wt,I as kt,J as yt,K as xt,H as vt,C as Yt,L as Ut}from"./index-f81c5782.js";import{P as Tt,N as qt,u as _t,D as Wt,v as xe,T as D,I as ve,w as re,x as l,y as Vt,L as se,z as ne,A as G,B as le,F as yO,G as oe,H as W,J as xO,K as vO,M as YO,E as Y,O as z,Q as Ct,R as Rt,U as UO,V as X,W as jt,X as Gt,a as V,h as zt,b as At,c as It,d as Et,e as Nt,s as Bt,t as Dt,f as Jt,g as Lt,r as Mt,i as Ft,k as Ht,j as Kt,l as ea,m as Oa,n as ta,o as aa,p as ia,q as je,C as N}from"./index-be8a2174.js";class F{constructor(e,a,t,i,r,s,n,o,c,h=0,Q){this.p=e,this.stack=a,this.state=t,this.reducePos=i,this.pos=r,this.score=s,this.buffer=n,this.bufferBase=o,this.curContext=c,this.lookAhead=h,this.parent=Q}toString(){return`[${this.stack.filter((e,a)=>a%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,a,t=0){let i=e.parser.context;return new F(e,[],a,t,t,0,[],0,i?new Ge(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,a){this.stack.push(this.state,a,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var a;let t=e>>19,i=e&65535,{parser:r}=this.p,s=r.dynamicPrecedence(i);if(s&&(this.score+=s),t==0){this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((a=this.p.parser.nodeSet.types[i])===null||a===void 0)&&a.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,o)}storeNode(e,a,t,i=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(a==t)return;if(s.buffer[n-2]>=a){s.buffer[n-2]=t;return}}}if(!r||this.pos==t)this.buffer.push(e,a,t,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>t;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=a,this.buffer[s+2]=t,this.buffer[s+3]=i}}shift(e,a,t){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=t,this.shiftContext(a,i),a<=this.p.parser.maxNode&&this.buffer.push(a,i,t,4);else{let r=e,{parser:s}=this.p;(t>this.pos||a<=s.maxNode)&&(this.pos=t,s.stateFlag(r,1)||(this.reducePos=t)),this.pushState(r,i),this.shiftContext(a,i),a<=s.maxNode&&this.buffer.push(a,i,t,4)}}apply(e,a,t){e&65536?this.reduce(e):this.shift(e,a,t)}useNode(e,a){let t=this.p.reused.length-1;(t<0||this.p.reused[t]!=e)&&(this.p.reused.push(e),t++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(a,i),this.buffer.push(t,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,a=e.buffer.length;for(;a>0&&e.buffer[a-2]>e.reducePos;)a-=4;let t=e.buffer.slice(a),i=e.bufferBase+a;for(;e&&i==e.bufferBase;)e=e.parent;return new F(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,t,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let t=e<=this.p.parser.maxNode;t&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,t?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new ra(this);;){let t=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(t==0)return!1;if(!(t&65536))return!0;a.reduce(t)}}recoverByInsert(e){if(this.stack.length>=300)return[];let a=this.p.parser.nextStates(this.state);if(a.length>4<<1||this.stack.length>=120){let i=[];for(let r=0,s;ro&1&&n==s)||i.push(a[r],s)}a=i}let t=[];for(let i=0;i>19,i=e&65535,r=this.stack.length-t*3;if(r<0||a.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let a=0;athis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ge{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}}var ze;(function(O){O[O.Insert=200]="Insert",O[O.Delete=190]="Delete",O[O.Reduce=100]="Reduce",O[O.MaxNext=4]="MaxNext",O[O.MaxInsertStackDepth=300]="MaxInsertStackDepth",O[O.DampenInsertStackDepth=120]="DampenInsertStackDepth",O[O.MinBigReduction=2e3]="MinBigReduction"})(ze||(ze={}));class ra{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let a=e&65535,t=e>>19;t==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=i}}class H{constructor(e,a,t){this.stack=e,this.pos=a,this.index=t,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,a=e.bufferBase+e.buffer.length){return new H(e,a,a-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new H(this.stack,this.pos,this.index)}}function j(O,e=Uint16Array){if(typeof O!="string")return O;let a=null;for(let t=0,i=0;t=92&&s--,s>=34&&s--;let o=s-32;if(o>=46&&(o-=46,n=!0),r+=o,n)break;r*=46}a?a[i++]=r:a=new e(r)}return a}class J{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ae=new J;class sa{constructor(e,a){this.input=e,this.ranges=a,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ae,this.rangeIndex=0,this.pos=this.chunkPos=a[0].from,this.range=a[0],this.end=a[a.length-1].to,this.readNext()}resolveOffset(e,a){let t=this.range,i=this.rangeIndex,r=this.pos+e;for(;rt.to:r>=t.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];r+=s.from-t.to,t=s}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,a.from);return this.end}peek(e){let a=this.chunkOff+e,t,i;if(a>=0&&a=this.chunk2Pos&&tn.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),i=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),i}acceptToken(e,a=0){let t=a?this.resolveOffset(a,-1):this.pos;if(t==null||t=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,a){if(a?(this.token=a,a.start=e,a.lookAhead=e+1,a.value=a.extended=-1):this.token=Ae,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&a<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,a-this.chunkPos);if(e>=this.chunk2Pos&&a<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,a-this.chunk2Pos);if(e>=this.range.from&&a<=this.range.to)return this.input.read(e,a);let t="";for(let i of this.ranges){if(i.from>=a)break;i.to>e&&(t+=this.input.read(Math.max(i.from,e),Math.min(i.to,a)))}return t}}class q{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:t}=a.p;TO(this.data,e,a,this.id,t.data,t.tokenPrecTable)}}q.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class Xe{constructor(e,a,t){this.precTable=a,this.elseToken=t,this.data=typeof e=="string"?j(e):e}token(e,a){let t=e.pos,i=0;for(;TO(this.data,e,a,0,this.data,this.precTable),!(e.token.value>-1);){if(this.elseToken==null)return;if(e.next<0)break;e.advance(),e.reset(e.pos,e.token),i++}i&&(e.reset(t,e.token),e.acceptToken(this.elseToken,i))}}Xe.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class b{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}}function TO(O,e,a,t,i,r){let s=0,n=1<0){let d=O[u];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||na(d,e.token.value,i,r))){e.acceptToken(d);break}}let h=e.next,Q=0,f=O[s+2];if(e.next<0&&f>Q&&O[c+f*3-3]==65535&&O[c+f*3-3]==65535){s=O[c+f*3-1];continue e}for(;Q>1,d=c+u+(u<<1),$=O[d],g=O[d+1]||65536;if(h<$)f=u;else if(h>=g)Q=u+1;else{s=O[d+2],e.advance();continue e}}break}}function Ie(O,e,a){for(let t=e,i;(i=O[t])!=65535;t++)if(i==a)return t-e;return-1}function na(O,e,a,t){let i=Ie(a,t,e);return i<0||Ie(a,t,O)e)&&!t.type.isError)return a<0?Math.max(0,Math.min(t.to-1,e-25)):Math.min(O.length,Math.max(t.from+1,e+25));if(a<0?t.prevSibling():t.nextSibling())break;if(!t.parent())return a<0?0:O.length}}class la{constructor(e,a){this.fragments=e,this.nodeSet=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Ne(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ne(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(r instanceof D){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[a]++,this.nextStart=s+r.length}}}class oa{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(t=>new J)}getActions(e){let a=0,t=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,o=0;for(let c=0;cQ.end+25&&(o=Math.max(Q.lookAhead,o)),Q.value!=0)){let f=a;if(Q.extended>-1&&(a=this.addActions(e,Q.extended,Q.end,a)),a=this.addActions(e,Q.value,Q.end,a),!h.extend&&(t=Q,a>f))break}}for(;this.actions.length>a;)this.actions.pop();return o&&e.setLookAhead(o),!t&&e.pos==this.stream.end&&(t=new J,t.value=e.p.parser.eofTerm,t.start=t.end=e.pos,a=this.addActions(e,t.value,t.end,a)),this.mainToken=t,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new J,{pos:t,p:i}=e;return a.start=t,a.end=Math.min(t+1,i.stream.end),a.value=t==i.stream.end?i.parser.eofTerm:0,a}updateCachedToken(e,a,t){let i=this.stream.clipPos(t.pos);if(a.token(this.stream.reset(i,e),t),e.value>-1){let{parser:r}=t.p;for(let s=0;s=0&&t.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,a,t,i){for(let r=0;re.bufferLength*4?new la(t,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,t=this.stacks=[],i,r;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sa)t.push(n);else{if(this.advanceStack(n,t,e))continue;{i||(i=[],r=[]),i.push(n);let o=this.tokens.getMainToken(n);r.push(o.value,o.end)}}break}}if(!t.length){let s=i&&ua(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw Z&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+a);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,t);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(t.length>s)for(t.sort((n,o)=>o.score-n.score);t.length>s;)t.pop();t.some(n=>n.reducePos>a)&&this.recovering--}else if(t.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((n.score-c.score||n.buffer.length-c.buffer.length)>0)t.splice(o--,1);else{t.splice(s--,1);continue e}}}t.length>12&&t.splice(12,t.length-12)}this.minStackPos=t[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let Q=this.fragments.nodeAt(i);Q;){let f=this.parser.nodeSet.types[Q.type.id]==Q.type?r.getGoto(e.state,Q.type.id):-1;if(f>-1&&Q.length&&(!c||(Q.prop(xe.contextHash)||0)==h))return e.useNode(Q,f),Z&&console.log(s+this.stackID(e)+` (via reuse of ${r.getName(Q.type.id)})`),!0;if(!(Q instanceof D)||Q.children.length==0||Q.positions[0]>0)break;let u=Q.children[0];if(u instanceof D&&Q.positions[0]==0)Q=u;else break}}let n=r.stateSlot(e.state,4);if(n>0)return e.reduce(n),Z&&console.log(s+this.stackID(e)+` (via always-reduce ${r.getName(n&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let c=0;ci?a.push(d):t.push(d)}return!1}advanceFully(e,a){let t=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>t)return De(e,a),!0}}runRecovery(e,a,t){let i=null,r=!1;for(let s=0;s ":"";if(n.deadEnd&&(r||(r=!0,n.restart(),Z&&console.log(h+this.stackID(n)+" (restarted)"),this.advanceFully(n,t))))continue;let Q=n.split(),f=h;for(let u=0;Q.forceReduce()&&u<10&&(Z&&console.log(f+this.stackID(Q)+" (via force-reduce)"),!this.advanceFully(Q,t));u++)Z&&(f=this.stackID(Q)+" -> ");for(let u of n.recoverByInsert(o))Z&&console.log(h+this.stackID(u)+" (via recover-insert)"),this.advanceFully(u,t);this.stream.end>n.pos?(c==n.pos&&(c++,o=0),n.recoverByDelete(o,c),Z&&console.log(h+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),De(n,t)):(!i||i.scoreO;class qO{constructor(e){this.start=e.start,this.shift=e.shift||he,this.reduce=e.reduce||he,this.reuse=e.reuse||he,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class U extends Tt{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let a=e.nodeNames.split(" ");this.minRepeatTerm=a.length;for(let n=0;ne.topRules[n][1]),i=[];for(let n=0;n=0)r(h,o,n[c++]);else{let Q=n[c+-h];for(let f=-h;f>0;f--)r(n[c++],o,Q);c++}}}this.nodeSet=new qt(a.map((n,o)=>_t.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:t.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Wt;let s=j(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new q(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,a,t){let i=new Qa(this,e,a,t);for(let r of this.wrappers)i=r(i,e,a,t);return i}getGoto(e,a,t=!1){let i=this.goto;if(a>=i[0])return-1;for(let r=i[a+1];;){let s=i[r++],n=s&1,o=i[r++];if(n&&t)return o;for(let c=r+(s>>1);r0}validAction(e,a){if(a==this.stateSlot(e,4))return!0;for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else return!1;if(a==w(this.data,t+1))return!0}}nextStates(e){let a=[];for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else break;if(!(this.data[t+2]&1)){let i=this.data[t+1];a.some((r,s)=>s&1&&r==i)||a.push(this.data[t],i)}}return a}configure(e){let a=Object.assign(Object.create(U.prototype),this);if(e.props&&(a.nodeSet=this.nodeSet.extend(...e.props)),e.top){let t=this.topRules[e.top];if(!t)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=t}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(t=>{let i=e.tokenizers.find(r=>r.from==t);return i?i.to:t})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((t,i)=>{let r=e.specializers.find(n=>n.from==t.external);if(!r)return t;let s=Object.assign(Object.assign({},t),{external:r.to});return a.specializers[i]=Je(s),s})),e.contextTracker&&(a.context=e.contextTracker),e.dialect&&(a.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(a.strict=e.strict),e.wrap&&(a.wrappers=a.wrappers.concat(e.wrap)),e.bufferLength!=null&&(a.bufferLength=e.bufferLength),a}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let a=this.dynamicPrecedences;return a==null?0:a[e]||0}parseDialect(e){let a=Object.keys(this.dialects),t=a.map(()=>!1);if(e)for(let r of e.split(" ")){let s=a.indexOf(r);s>=0&&(t[s]=!0)}let i=null;for(let r=0;rt)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.scoreO.external(a,t)<<1|e}return O.get}const ha=54,fa=1,pa=55,da=2,Sa=56,$a=3,Le=4,ga=5,K=6,_O=7,WO=8,VO=9,CO=10,Pa=11,ma=12,Xa=13,fe=57,Za=14,Me=58,RO=20,ba=22,jO=23,wa=24,Ze=26,GO=27,ka=28,ya=31,xa=34,va=36,Ya=37,Ua=0,Ta=1,qa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},_a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Fe={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Wa(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function zO(O){return O==9||O==10||O==13||O==32}let He=null,Ke=null,eO=0;function be(O,e){let a=O.pos+e;if(eO==a&&Ke==O)return He;let t=O.peek(e);for(;zO(t);)t=O.peek(++e);let i="";for(;Wa(t);)i+=String.fromCharCode(t),t=O.peek(++e);return Ke=O,eO=a,He=i?i.toLowerCase():t==Va||t==Ca?void 0:null}const AO=60,ee=62,Ye=47,Va=63,Ca=33,Ra=45;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new OO(be(t,1)||"",O):O},reduce(O,e){return e==RO&&O?O.parent:O},reuse(O,e,a,t){let i=e.type.id;return i==K||i==va?new OO(be(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),za=new b((O,e)=>{if(O.next!=AO){O.next<0&&e.context&&O.acceptToken(fe);return}O.advance();let a=O.next==Ye;a&&O.advance();let t=be(O,0);if(t===void 0)return;if(!t)return O.acceptToken(a?Za:K);let i=e.context?e.context.name:null;if(a){if(t==i)return O.acceptToken(Pa);if(i&&_a[i])return O.acceptToken(fe,-2);if(e.dialectEnabled(Ua))return O.acceptToken(ma);for(let r=e.context;r;r=r.parent)if(r.name==t)return;O.acceptToken(Xa)}else{if(t=="script")return O.acceptToken(_O);if(t=="style")return O.acceptToken(WO);if(t=="textarea")return O.acceptToken(VO);if(qa.hasOwnProperty(t))return O.acceptToken(CO);i&&Fe[i]&&Fe[i][t]?O.acceptToken(fe,-1):O.acceptToken(K)}},{contextual:!0}),Aa=new b(O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(Me);break}if(O.next==Ra)e++;else if(O.next==ee&&e>=2){a>3&&O.acceptToken(Me,-2);break}else e=0;O.advance()}});function Ia(O){for(;O;O=O.parent)if(O.name=="svg"||O.name=="math")return!0;return!1}const Ea=new b((O,e)=>{if(O.next==Ye&&O.peek(1)==ee){let a=e.dialectEnabled(Ta)||Ia(e.context);O.acceptToken(a?ga:Le,2)}else O.next==ee&&O.acceptToken(Le,1)});function Ue(O,e,a){let t=2+O.length;return new b(i=>{for(let r=0,s=0,n=0;;n++){if(i.next<0){n&&i.acceptToken(e);break}if(r==0&&i.next==AO||r==1&&i.next==Ye||r>=2&&rs?i.acceptToken(e,-s):i.acceptToken(a,-(s-2));break}else if((i.next==10||i.next==13)&&n){i.acceptToken(e,1);break}else r=s=0;i.advance()}})}const Na=Ue("script",ha,fa),Ba=Ue("style",pa,da),Da=Ue("textarea",Sa,$a),Ja=re({"Text RawText":l.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.angleBracket,TagName:l.tagName,"MismatchedCloseTag/TagName":[l.tagName,l.invalid],AttributeName:l.attributeName,"AttributeValue UnquotedAttributeValue":l.attributeValue,Is:l.definitionOperator,"EntityReference CharacterReference":l.character,Comment:l.blockComment,ProcessingInst:l.processingInstruction,DoctypeDecl:l.documentMeta}),La=U.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q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P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Ga,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[Ja],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!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'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Na,Ba,Da,Ea,za,Aa,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function IO(O,e){let a=Object.create(null);for(let t of O.getChildren(jO)){let i=t.getChild(wa),r=t.getChild(Ze)||t.getChild(GO);i&&(a[e.read(i.from,i.to)]=r?r.type.id==Ze?e.read(r.from+1,r.to-1):e.read(r.from,r.to):"")}return a}function tO(O,e){let a=O.getChild(ba);return a?e.read(a.from,a.to):" "}function pe(O,e,a){let t;for(let i of a)if(!i.attrs||i.attrs(t||(t=IO(O.node.parent.firstChild,e))))return{parser:i.parser};return null}function EO(O=[],e=[]){let a=[],t=[],i=[],r=[];for(let n of O)(n.tag=="script"?a:n.tag=="style"?t:n.tag=="textarea"?i:r).push(n);let s=e.length?Object.create(null):null;for(let n of e)(s[n.name]||(s[n.name]=[])).push(n);return Vt((n,o)=>{let c=n.type.id;if(c==ka)return pe(n,o,a);if(c==ya)return pe(n,o,t);if(c==xa)return pe(n,o,i);if(c==RO&&r.length){let h=n.node,Q=h.firstChild,f=Q&&tO(Q,o),u;if(f){for(let d of r)if(d.tag==f&&(!d.attrs||d.attrs(u||(u=IO(h,o))))){let $=h.lastChild;return{parser:d.parser,overlay:[{from:Q.to,to:$.type.id==Ya?$.from:h.to}]}}}}if(s&&c==jO){let h=n.node,Q;if(Q=h.firstChild){let f=s[o.read(Q.from,Q.to)];if(f)for(let u of f){if(u.tagName&&u.tagName!=tO(h.parent,o))continue;let d=h.lastChild;if(d.type.id==Ze){let $=d.from+1,g=d.lastChild,x=d.to-(g&&g.isError?0:1);if(x>$)return{parser:u.parser,overlay:[{from:$,to:x}]}}else if(d.type.id==GO)return{parser:u.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}const Ma=94,aO=1,Fa=95,Ha=96,iO=2,NO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Ka=58,ei=40,BO=95,Oi=91,L=45,ti=46,ai=35,ii=37;function Oe(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function ri(O){return O>=48&&O<=57}const si=new b((O,e)=>{for(let a=!1,t=0,i=0;;i++){let{next:r}=O;if(Oe(r)||r==L||r==BO||a&&ri(r))!a&&(r!=L||i>0)&&(a=!0),t===i&&r==L&&t++,O.advance();else{a&&O.acceptToken(r==ei?Fa:t==2&&e.canShift(iO)?iO:Ha);break}}}),ni=new b(O=>{if(NO.includes(O.peek(-1))){let{next:e}=O;(Oe(e)||e==BO||e==ai||e==ti||e==Oi||e==Ka||e==L)&&O.acceptToken(Ma)}}),li=new b(O=>{if(!NO.includes(O.peek(-1))){let{next:e}=O;if(e==ii&&(O.advance(),O.acceptToken(aO)),Oe(e)){do O.advance();while(Oe(O.next));O.acceptToken(aO)}}}),oi=re({"AtKeyword import charset namespace keyframes media supports":l.definitionKeyword,"from to selector":l.keyword,NamespaceName:l.namespace,KeyframeName:l.labelName,TagName:l.tagName,ClassName:l.className,PseudoClassName:l.constant(l.className),IdName:l.labelName,"FeatureName PropertyName":l.propertyName,AttributeName:l.attributeName,NumberLiteral:l.number,KeywordQuery:l.keyword,UnaryQueryOp:l.operatorKeyword,"CallTag ValueName":l.atom,VariableName:l.variableName,Callee:l.operatorKeyword,Unit:l.unit,"UniversalSelector NestingSelector":l.definitionOperator,MatchOp:l.compareOperator,"ChildOp SiblingOp, LogicOp":l.logicOperator,BinOp:l.arithmeticOperator,Important:l.modifier,Comment:l.blockComment,ParenthesizedContent:l.special(l.name),ColorLiteral:l.color,StringLiteral:l.string,":":l.punctuation,"PseudoOp #":l.derefOperator,"; ,":l.separator,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace}),Qi={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},ci={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},ui={__proto__:null,not:128,only:128,from:158,to:160},hi=U.deserialize({version:14,states:"7WQYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ed'#EdO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&TQ[O'#EPO&cQ[O'#EROOQS'#Ec'#EcOOQS'#ET'#ETQYQ[OOO&jQXO'#CdO'_QWO'#DaO'dQWO'#EjO'oQ[O'#EjQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'yQ[O'#EWO(eQWO,58{O(mQ[O,59SO$lQ[O,59kO$qQ[O,59oO'yQ[O,59sO'yQ[O,59uO'yQ[O,59vO(xQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)PQWO,59SO)UQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)ZQ`O,59oOOQS'#Cp'#CpO$vQdO'#CqO)cQvO'#CsO*pQtO,5:POOQO'#Cx'#CxO)UQWO'#CwO+UQWO'#CyOOQS'#Eg'#EgOOQO'#Dh'#DhO+ZQ[O'#DoO+iQWO'#EkO&TQ[O'#DmO+wQWO'#DpOOQO'#El'#ElO(hQWO,5:^O+|QpO,5:`OOQS'#Dx'#DxO,UQWO,5:bO,ZQ[O,5:bOOQO'#D{'#D{O,cQWO,5:eO,hQWO,5:kO,pQWO,5:mOOQS-E8R-E8RO$vQdO,59{O,xQ[O'#EYO-VQWO,5;UO-VQWO,5;UOOQP1G.l1G.lO-|QXO,5:rOOQO-E8U-E8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%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[ni,li,si,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:95,get:O=>Qi[O]||-1},{term:56,get:O=>ci[O]||-1},{term:96,get:O=>ui[O]||-1}],tokenPrec:1123});let de=null;function Se(){if(!de&&typeof document=="object"&&document.body){let{style:O}=document.body,e=[],a=new Set;for(let t in O)t!="cssText"&&t!="cssFloat"&&typeof O[t]=="string"&&(/[A-Z]/.test(t)&&(t=t.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),a.has(t)||(e.push(t),a.add(t)));de=e.sort().map(t=>({type:"property",label:t}))}return de||[]}const rO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(O=>({type:"class",label:O})),sO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(O=>({type:"keyword",label:O})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(O=>({type:"constant",label:O}))),fi=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(O=>({type:"type",label:O})),y=/^(\w[\w-]*|-\w[\w-]*|)$/,pi=/^-(-[\w-]*)?$/;function di(O,e){var a;if((O.name=="("||O.type.isError)&&(O=O.parent||O),O.name!="ArgList")return!1;let t=(a=O.parent)===null||a===void 0?void 0:a.firstChild;return(t==null?void 0:t.name)!="Callee"?!1:e.sliceString(t.from,t.to)=="var"}const nO=new xO,Si=["Declaration"];function $i(O){for(let e=O;;){if(e.type.isTop)return e;if(!(e=e.parent))return O}}function DO(O,e,a){if(e.to-e.from>4096){let t=nO.get(e);if(t)return t;let i=[],r=new Set,s=e.cursor(ve.IncludeAnonymous);if(s.firstChild())do for(let n of DO(O,s.node,a))r.has(n.label)||(r.add(n.label),i.push(n));while(s.nextSibling());return nO.set(e,i),i}else{let t=[],i=new Set;return e.cursor().iterate(r=>{var s;if(a(r)&&r.matchContext(Si)&&((s=r.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=O.sliceString(r.from,r.to);i.has(n)||(i.add(n),t.push({label:n,type:"variable"}))}}),t}}const gi=O=>e=>{let{state:a,pos:t}=e,i=W(a).resolveInner(t,-1),r=i.type.isError&&i.from==i.to-1&&a.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(r||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:Se(),validFor:y};if(i.name=="ValueName")return{from:i.from,options:sO,validFor:y};if(i.name=="PseudoClassName")return{from:i.from,options:rO,validFor:y};if(O(i)||(e.explicit||r)&&di(i,a.doc))return{from:O(i)||r?i.from:t,options:DO(a.doc,$i(i),O),validFor:pi};if(i.name=="TagName"){for(let{parent:o}=i;o;o=o.parent)if(o.name=="Block")return{from:i.from,options:Se(),validFor:y};return{from:i.from,options:fi,validFor:y}}if(!e.explicit)return null;let s=i.resolve(t),n=s.childBefore(t);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:t,options:rO,validFor:y}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:t,options:sO,validFor:y}:s.name=="Block"||s.name=="Styles"?{from:t,options:Se(),validFor:y}:null},Pi=gi(O=>O.name=="VariableName"),te=se.define({name:"css",parser:hi.configure({props:[ne.add({Declaration:G()}),le.add({Block:yO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function mi(){return new oe(te,te.data.of({autocomplete:Pi}))}const lO=302,oO=1,Xi=2,QO=303,Zi=305,bi=306,wi=3,ki=4,yi=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],JO=125,xi=59,cO=47,vi=42,Yi=43,Ui=45,Ti=new qO({start:!1,shift(O,e){return e==wi||e==ki||e==Zi?O:e==bi},strict:!1}),qi=new b((O,e)=>{let{next:a}=O;(a==JO||a==-1||e.context)&&e.canShift(QO)&&O.acceptToken(QO)},{contextual:!0,fallback:!0}),_i=new b((O,e)=>{let{next:a}=O,t;yi.indexOf(a)>-1||a==cO&&((t=O.peek(1))==cO||t==vi)||a!=JO&&a!=xi&&a!=-1&&!e.context&&e.canShift(lO)&&O.acceptToken(lO)},{contextual:!0}),Wi=new b((O,e)=>{let{next:a}=O;if((a==Yi||a==Ui)&&(O.advance(),a==O.next)){O.advance();let t=!e.context&&e.canShift(oO);O.acceptToken(t?oO:Xi)}},{contextual:!0}),Vi=re({"get set async static":l.modifier,"for while do if else switch try catch finally return throw break continue default case":l.controlKeyword,"in of await yield void typeof delete instanceof":l.operatorKeyword,"let var const function class extends":l.definitionKeyword,"import export from":l.moduleKeyword,"with debugger as new":l.keyword,TemplateString:l.special(l.string),super:l.atom,BooleanLiteral:l.bool,this:l.self,null:l.null,Star:l.modifier,VariableName:l.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":l.function(l.variableName),VariableDefinition:l.definition(l.variableName),Label:l.labelName,PropertyName:l.propertyName,PrivatePropertyName:l.special(l.propertyName),"CallExpression/MemberExpression/PropertyName":l.function(l.propertyName),"FunctionDeclaration/VariableDefinition":l.function(l.definition(l.variableName)),"ClassDeclaration/VariableDefinition":l.definition(l.className),PropertyDefinition:l.definition(l.propertyName),PrivatePropertyDefinition:l.definition(l.special(l.propertyName)),UpdateOp:l.updateOperator,LineComment:l.lineComment,BlockComment:l.blockComment,Number:l.number,String:l.string,Escape:l.escape,ArithOp:l.arithmeticOperator,LogicOp:l.logicOperator,BitOp:l.bitwiseOperator,CompareOp:l.compareOperator,RegExp:l.regexp,Equals:l.definitionOperator,Arrow:l.function(l.punctuation),": Spread":l.punctuation,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace,"InterpolationStart InterpolationEnd":l.special(l.brace),".":l.derefOperator,", ;":l.separator,"@":l.meta,TypeName:l.typeName,TypeDefinition:l.definition(l.typeName),"type enum interface implements namespace module declare":l.definitionKeyword,"abstract global Privacy readonly override":l.modifier,"is keyof unique infer":l.operatorKeyword,JSXAttributeValue:l.attributeValue,JSXText:l.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":l.angleBracket,"JSXIdentifier JSXNameSpacedName":l.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":l.attributeName,"JSXBuiltin/JSXIdentifier":l.standard(l.tagName)}),Ci={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,interface:417,enum:421,namespace:427,module:429,declare:433,global:437,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526},Ri={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},ji={__proto__:null,"<":137},Gi=U.deserialize({version:14,states:"$6[O`QUOOO%QQUOOO'TQWOOP(bOSOOO*pQ(CjO'#CfO*wOpO'#CgO+VO!bO'#CgO+eO07`O'#DZO-vQUO'#DaO.WQUO'#DlO%QQUO'#DvO0[QUO'#EOOOQ(CY'#EW'#EWO0uQSO'#ETOOQO'#Ei'#EiOOQO'#Ib'#IbO0}QSO'#GkO1YQSO'#EhO1_QSO'#EhO3aQ(CjO'#JcO6QQ(CjO'#JdO6nQSO'#FWO6sQ#tO'#FoOOQ(CY'#F`'#F`O7OO&jO'#F`O7^Q,UO'#FvO8tQSO'#FuOOQ(CY'#Jd'#JdOOQ(CW'#Jc'#JcOOQQ'#KO'#KOO8yQSO'#IOO9OQ(C[O'#IPOOQQ'#JP'#JPOOQQ'#IT'#ITQ`QUOOO%QQUO'#DnO9WQUO'#DzO%QQUO'#D|O9_QSO'#GkO9dQ,UO'#ClO9rQSO'#EgO9}QSO'#ErO:SQ,UO'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.X(iQ._(mQ.c9lQ.e9oQ.f9pQ.g9qQ.v)pQ/x*sQ1q,nQ1t,qQ2U-ZQ2]-oQ2q.]Q2v9tQ2w9uQ2x9vQ2y9wQ2z9xQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S.dQ3V:UQ3W:_Q3]:QQ4O/zQ4V0XQ5i:`Q5o2WQ5t2^Q6Q2rQ6R:aQ6W:cQ6X:jQ7P4kQ7n5gQ7r5pQ7{:kQ8P:pQ8Q:qQ8v7tQ9U8cQ9]8tQ9n#OR;Q;^R#WWR&{!cY!qQ'Q,}0u4pS&w!c,uQ']!oS'g!r!uS'i!v4rS,r&x'PS-^'^'_Q-`'`Q1{,{R2Z-_R(k#tR(n#uQ!dQT,|'Q,}]!nQ!o'Q,}0u4pQ#l]R'Z9mT#gZ%ZS#fZ%ZU%y|},ZU(W#d#e#hS-r(X(YQ-v(ZQ0h+hQ2`-sU2a-t-u-wS5v2b2cR7u5w`#YW#S#V%v't'}+e-mt#cZ|}#d#e#h%Z(X(Y(Z+h-s-t-u-w2b2c5wQ1_,ZQ1r,oQ5e1jQ7m5fT:x&y+fT#]W%vS#[W%vS'u#S'}S'z#V+eS,t&y+fT-h't-mT'O!c%wQ$hfR)j$mT)_$h)`R3Z.kT*O$u*QR*W$xQ/}*zQ2e.OQ4s0wQ5{2iQ7X4vQ7x5zQ8e7WQ8w7wQ9W8gQ9`8yQ9e9XR9h9alpOXr!X#`%]&d&f&g&i,],b1b1eQ&^!TR,Q&ZV%z|},ZR0q+qR,P&XQ%szR+c%tR+X%nT&b!U&eT&c!U&eT1d,b1e",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:364,context:Ti,nodeProps:[["group",-26,6,14,16,62,199,203,206,207,209,212,215,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[Vi],skippedNodes:[0,3,4,268],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$d&j'wp'z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$d&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&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![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[_i,Wi,2,3,4,5,6,7,8,9,10,11,12,13,qi,new Xe("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(T~~",141,326),new Xe("j~RQYZXz{^~^O'q~~aP!P!Qd~iO'r~~",25,308)],topRules:{Script:[0,5],SingleExpression:[1,266],SingleClassItem:[2,267]},dialects:{jsx:12686,ts:12688},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:312,get:O=>Ci[O]||-1},{term:328,get:O=>Ri[O]||-1},{term:67,get:O=>ji[O]||-1}],tokenPrec:12712}),zi=[X("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),X("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),X("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),X("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),X(`try { +import{S as gt,i as Pt,s as mt,e as Xt,f as Zt,U as E,g as bt,y as Re,o as wt,I as kt,J as yt,K as xt,H as vt,C as Yt,L as Ut}from"./index-fae59489.js";import{P as Tt,N as qt,u as _t,D as Wt,v as xe,T as D,I as ve,w as re,x as l,y as Vt,L as se,z as ne,A as G,B as le,F as yO,G as oe,H as W,J as xO,K as vO,M as YO,E as Y,O as z,Q as Ct,R as Rt,U as UO,V as X,W as jt,X as Gt,a as V,h as zt,b as At,c as It,d as Et,e as Nt,s as Bt,t as Dt,f as Jt,g as Lt,r as Mt,i as Ft,k as Ht,j as Kt,l as ea,m as Oa,n as ta,o as aa,p as ia,q as je,C as N}from"./index-be8a2174.js";class F{constructor(e,a,t,i,r,s,n,o,c,h=0,Q){this.p=e,this.stack=a,this.state=t,this.reducePos=i,this.pos=r,this.score=s,this.buffer=n,this.bufferBase=o,this.curContext=c,this.lookAhead=h,this.parent=Q}toString(){return`[${this.stack.filter((e,a)=>a%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,a,t=0){let i=e.parser.context;return new F(e,[],a,t,t,0,[],0,i?new Ge(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,a){this.stack.push(this.state,a,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var a;let t=e>>19,i=e&65535,{parser:r}=this.p,s=r.dynamicPrecedence(i);if(s&&(this.score+=s),t==0){this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((a=this.p.parser.nodeSet.types[i])===null||a===void 0)&&a.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,o)}storeNode(e,a,t,i=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(a==t)return;if(s.buffer[n-2]>=a){s.buffer[n-2]=t;return}}}if(!r||this.pos==t)this.buffer.push(e,a,t,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>t;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=a,this.buffer[s+2]=t,this.buffer[s+3]=i}}shift(e,a,t){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=t,this.shiftContext(a,i),a<=this.p.parser.maxNode&&this.buffer.push(a,i,t,4);else{let r=e,{parser:s}=this.p;(t>this.pos||a<=s.maxNode)&&(this.pos=t,s.stateFlag(r,1)||(this.reducePos=t)),this.pushState(r,i),this.shiftContext(a,i),a<=s.maxNode&&this.buffer.push(a,i,t,4)}}apply(e,a,t){e&65536?this.reduce(e):this.shift(e,a,t)}useNode(e,a){let t=this.p.reused.length-1;(t<0||this.p.reused[t]!=e)&&(this.p.reused.push(e),t++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(a,i),this.buffer.push(t,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,a=e.buffer.length;for(;a>0&&e.buffer[a-2]>e.reducePos;)a-=4;let t=e.buffer.slice(a),i=e.bufferBase+a;for(;e&&i==e.bufferBase;)e=e.parent;return new F(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,t,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let t=e<=this.p.parser.maxNode;t&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,t?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new ra(this);;){let t=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(t==0)return!1;if(!(t&65536))return!0;a.reduce(t)}}recoverByInsert(e){if(this.stack.length>=300)return[];let a=this.p.parser.nextStates(this.state);if(a.length>4<<1||this.stack.length>=120){let i=[];for(let r=0,s;ro&1&&n==s)||i.push(a[r],s)}a=i}let t=[];for(let i=0;i>19,i=e&65535,r=this.stack.length-t*3;if(r<0||a.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let a=0;athis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ge{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}}var ze;(function(O){O[O.Insert=200]="Insert",O[O.Delete=190]="Delete",O[O.Reduce=100]="Reduce",O[O.MaxNext=4]="MaxNext",O[O.MaxInsertStackDepth=300]="MaxInsertStackDepth",O[O.DampenInsertStackDepth=120]="DampenInsertStackDepth",O[O.MinBigReduction=2e3]="MinBigReduction"})(ze||(ze={}));class ra{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let a=e&65535,t=e>>19;t==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=i}}class H{constructor(e,a,t){this.stack=e,this.pos=a,this.index=t,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,a=e.bufferBase+e.buffer.length){return new H(e,a,a-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new H(this.stack,this.pos,this.index)}}function j(O,e=Uint16Array){if(typeof O!="string")return O;let a=null;for(let t=0,i=0;t=92&&s--,s>=34&&s--;let o=s-32;if(o>=46&&(o-=46,n=!0),r+=o,n)break;r*=46}a?a[i++]=r:a=new e(r)}return a}class J{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ae=new J;class sa{constructor(e,a){this.input=e,this.ranges=a,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ae,this.rangeIndex=0,this.pos=this.chunkPos=a[0].from,this.range=a[0],this.end=a[a.length-1].to,this.readNext()}resolveOffset(e,a){let t=this.range,i=this.rangeIndex,r=this.pos+e;for(;rt.to:r>=t.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];r+=s.from-t.to,t=s}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,a.from);return this.end}peek(e){let a=this.chunkOff+e,t,i;if(a>=0&&a=this.chunk2Pos&&tn.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),i=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),i}acceptToken(e,a=0){let t=a?this.resolveOffset(a,-1):this.pos;if(t==null||t=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,a){if(a?(this.token=a,a.start=e,a.lookAhead=e+1,a.value=a.extended=-1):this.token=Ae,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&a<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,a-this.chunkPos);if(e>=this.chunk2Pos&&a<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,a-this.chunk2Pos);if(e>=this.range.from&&a<=this.range.to)return this.input.read(e,a);let t="";for(let i of this.ranges){if(i.from>=a)break;i.to>e&&(t+=this.input.read(Math.max(i.from,e),Math.min(i.to,a)))}return t}}class q{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:t}=a.p;TO(this.data,e,a,this.id,t.data,t.tokenPrecTable)}}q.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class Xe{constructor(e,a,t){this.precTable=a,this.elseToken=t,this.data=typeof e=="string"?j(e):e}token(e,a){let t=e.pos,i=0;for(;TO(this.data,e,a,0,this.data,this.precTable),!(e.token.value>-1);){if(this.elseToken==null)return;if(e.next<0)break;e.advance(),e.reset(e.pos,e.token),i++}i&&(e.reset(t,e.token),e.acceptToken(this.elseToken,i))}}Xe.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class b{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}}function TO(O,e,a,t,i,r){let s=0,n=1<0){let d=O[u];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||na(d,e.token.value,i,r))){e.acceptToken(d);break}}let h=e.next,Q=0,f=O[s+2];if(e.next<0&&f>Q&&O[c+f*3-3]==65535&&O[c+f*3-3]==65535){s=O[c+f*3-1];continue e}for(;Q>1,d=c+u+(u<<1),$=O[d],g=O[d+1]||65536;if(h<$)f=u;else if(h>=g)Q=u+1;else{s=O[d+2],e.advance();continue e}}break}}function Ie(O,e,a){for(let t=e,i;(i=O[t])!=65535;t++)if(i==a)return t-e;return-1}function na(O,e,a,t){let i=Ie(a,t,e);return i<0||Ie(a,t,O)e)&&!t.type.isError)return a<0?Math.max(0,Math.min(t.to-1,e-25)):Math.min(O.length,Math.max(t.from+1,e+25));if(a<0?t.prevSibling():t.nextSibling())break;if(!t.parent())return a<0?0:O.length}}class la{constructor(e,a){this.fragments=e,this.nodeSet=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Ne(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ne(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(r instanceof D){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[a]++,this.nextStart=s+r.length}}}class oa{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(t=>new J)}getActions(e){let a=0,t=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,o=0;for(let c=0;cQ.end+25&&(o=Math.max(Q.lookAhead,o)),Q.value!=0)){let f=a;if(Q.extended>-1&&(a=this.addActions(e,Q.extended,Q.end,a)),a=this.addActions(e,Q.value,Q.end,a),!h.extend&&(t=Q,a>f))break}}for(;this.actions.length>a;)this.actions.pop();return o&&e.setLookAhead(o),!t&&e.pos==this.stream.end&&(t=new J,t.value=e.p.parser.eofTerm,t.start=t.end=e.pos,a=this.addActions(e,t.value,t.end,a)),this.mainToken=t,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new J,{pos:t,p:i}=e;return a.start=t,a.end=Math.min(t+1,i.stream.end),a.value=t==i.stream.end?i.parser.eofTerm:0,a}updateCachedToken(e,a,t){let i=this.stream.clipPos(t.pos);if(a.token(this.stream.reset(i,e),t),e.value>-1){let{parser:r}=t.p;for(let s=0;s=0&&t.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,a,t,i){for(let r=0;re.bufferLength*4?new la(t,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,t=this.stacks=[],i,r;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sa)t.push(n);else{if(this.advanceStack(n,t,e))continue;{i||(i=[],r=[]),i.push(n);let o=this.tokens.getMainToken(n);r.push(o.value,o.end)}}break}}if(!t.length){let s=i&&ua(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw Z&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+a);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,t);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(t.length>s)for(t.sort((n,o)=>o.score-n.score);t.length>s;)t.pop();t.some(n=>n.reducePos>a)&&this.recovering--}else if(t.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((n.score-c.score||n.buffer.length-c.buffer.length)>0)t.splice(o--,1);else{t.splice(s--,1);continue e}}}t.length>12&&t.splice(12,t.length-12)}this.minStackPos=t[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let Q=this.fragments.nodeAt(i);Q;){let f=this.parser.nodeSet.types[Q.type.id]==Q.type?r.getGoto(e.state,Q.type.id):-1;if(f>-1&&Q.length&&(!c||(Q.prop(xe.contextHash)||0)==h))return e.useNode(Q,f),Z&&console.log(s+this.stackID(e)+` (via reuse of ${r.getName(Q.type.id)})`),!0;if(!(Q instanceof D)||Q.children.length==0||Q.positions[0]>0)break;let u=Q.children[0];if(u instanceof D&&Q.positions[0]==0)Q=u;else break}}let n=r.stateSlot(e.state,4);if(n>0)return e.reduce(n),Z&&console.log(s+this.stackID(e)+` (via always-reduce ${r.getName(n&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let c=0;ci?a.push(d):t.push(d)}return!1}advanceFully(e,a){let t=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>t)return De(e,a),!0}}runRecovery(e,a,t){let i=null,r=!1;for(let s=0;s ":"";if(n.deadEnd&&(r||(r=!0,n.restart(),Z&&console.log(h+this.stackID(n)+" (restarted)"),this.advanceFully(n,t))))continue;let Q=n.split(),f=h;for(let u=0;Q.forceReduce()&&u<10&&(Z&&console.log(f+this.stackID(Q)+" (via force-reduce)"),!this.advanceFully(Q,t));u++)Z&&(f=this.stackID(Q)+" -> ");for(let u of n.recoverByInsert(o))Z&&console.log(h+this.stackID(u)+" (via recover-insert)"),this.advanceFully(u,t);this.stream.end>n.pos?(c==n.pos&&(c++,o=0),n.recoverByDelete(o,c),Z&&console.log(h+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),De(n,t)):(!i||i.scoreO;class qO{constructor(e){this.start=e.start,this.shift=e.shift||he,this.reduce=e.reduce||he,this.reuse=e.reuse||he,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class U extends Tt{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let a=e.nodeNames.split(" ");this.minRepeatTerm=a.length;for(let n=0;ne.topRules[n][1]),i=[];for(let n=0;n=0)r(h,o,n[c++]);else{let Q=n[c+-h];for(let f=-h;f>0;f--)r(n[c++],o,Q);c++}}}this.nodeSet=new qt(a.map((n,o)=>_t.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:t.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Wt;let s=j(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new q(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,a,t){let i=new Qa(this,e,a,t);for(let r of this.wrappers)i=r(i,e,a,t);return i}getGoto(e,a,t=!1){let i=this.goto;if(a>=i[0])return-1;for(let r=i[a+1];;){let s=i[r++],n=s&1,o=i[r++];if(n&&t)return o;for(let c=r+(s>>1);r0}validAction(e,a){if(a==this.stateSlot(e,4))return!0;for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else return!1;if(a==w(this.data,t+1))return!0}}nextStates(e){let a=[];for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else break;if(!(this.data[t+2]&1)){let i=this.data[t+1];a.some((r,s)=>s&1&&r==i)||a.push(this.data[t],i)}}return a}configure(e){let a=Object.assign(Object.create(U.prototype),this);if(e.props&&(a.nodeSet=this.nodeSet.extend(...e.props)),e.top){let t=this.topRules[e.top];if(!t)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=t}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(t=>{let i=e.tokenizers.find(r=>r.from==t);return i?i.to:t})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((t,i)=>{let r=e.specializers.find(n=>n.from==t.external);if(!r)return t;let s=Object.assign(Object.assign({},t),{external:r.to});return a.specializers[i]=Je(s),s})),e.contextTracker&&(a.context=e.contextTracker),e.dialect&&(a.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(a.strict=e.strict),e.wrap&&(a.wrappers=a.wrappers.concat(e.wrap)),e.bufferLength!=null&&(a.bufferLength=e.bufferLength),a}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let a=this.dynamicPrecedences;return a==null?0:a[e]||0}parseDialect(e){let a=Object.keys(this.dialects),t=a.map(()=>!1);if(e)for(let r of e.split(" ")){let s=a.indexOf(r);s>=0&&(t[s]=!0)}let i=null;for(let r=0;rt)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.scoreO.external(a,t)<<1|e}return O.get}const ha=54,fa=1,pa=55,da=2,Sa=56,$a=3,Le=4,ga=5,K=6,_O=7,WO=8,VO=9,CO=10,Pa=11,ma=12,Xa=13,fe=57,Za=14,Me=58,RO=20,ba=22,jO=23,wa=24,Ze=26,GO=27,ka=28,ya=31,xa=34,va=36,Ya=37,Ua=0,Ta=1,qa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},_a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Fe={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Wa(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function zO(O){return O==9||O==10||O==13||O==32}let He=null,Ke=null,eO=0;function be(O,e){let a=O.pos+e;if(eO==a&&Ke==O)return He;let t=O.peek(e);for(;zO(t);)t=O.peek(++e);let i="";for(;Wa(t);)i+=String.fromCharCode(t),t=O.peek(++e);return Ke=O,eO=a,He=i?i.toLowerCase():t==Va||t==Ca?void 0:null}const AO=60,ee=62,Ye=47,Va=63,Ca=33,Ra=45;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new OO(be(t,1)||"",O):O},reduce(O,e){return e==RO&&O?O.parent:O},reuse(O,e,a,t){let i=e.type.id;return i==K||i==va?new OO(be(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),za=new b((O,e)=>{if(O.next!=AO){O.next<0&&e.context&&O.acceptToken(fe);return}O.advance();let a=O.next==Ye;a&&O.advance();let t=be(O,0);if(t===void 0)return;if(!t)return O.acceptToken(a?Za:K);let i=e.context?e.context.name:null;if(a){if(t==i)return O.acceptToken(Pa);if(i&&_a[i])return O.acceptToken(fe,-2);if(e.dialectEnabled(Ua))return O.acceptToken(ma);for(let r=e.context;r;r=r.parent)if(r.name==t)return;O.acceptToken(Xa)}else{if(t=="script")return O.acceptToken(_O);if(t=="style")return O.acceptToken(WO);if(t=="textarea")return O.acceptToken(VO);if(qa.hasOwnProperty(t))return O.acceptToken(CO);i&&Fe[i]&&Fe[i][t]?O.acceptToken(fe,-1):O.acceptToken(K)}},{contextual:!0}),Aa=new b(O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(Me);break}if(O.next==Ra)e++;else if(O.next==ee&&e>=2){a>3&&O.acceptToken(Me,-2);break}else e=0;O.advance()}});function Ia(O){for(;O;O=O.parent)if(O.name=="svg"||O.name=="math")return!0;return!1}const Ea=new b((O,e)=>{if(O.next==Ye&&O.peek(1)==ee){let a=e.dialectEnabled(Ta)||Ia(e.context);O.acceptToken(a?ga:Le,2)}else O.next==ee&&O.acceptToken(Le,1)});function Ue(O,e,a){let t=2+O.length;return new b(i=>{for(let r=0,s=0,n=0;;n++){if(i.next<0){n&&i.acceptToken(e);break}if(r==0&&i.next==AO||r==1&&i.next==Ye||r>=2&&rs?i.acceptToken(e,-s):i.acceptToken(a,-(s-2));break}else if((i.next==10||i.next==13)&&n){i.acceptToken(e,1);break}else r=s=0;i.advance()}})}const Na=Ue("script",ha,fa),Ba=Ue("style",pa,da),Da=Ue("textarea",Sa,$a),Ja=re({"Text RawText":l.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.angleBracket,TagName:l.tagName,"MismatchedCloseTag/TagName":[l.tagName,l.invalid],AttributeName:l.attributeName,"AttributeValue UnquotedAttributeValue":l.attributeValue,Is:l.definitionOperator,"EntityReference CharacterReference":l.character,Comment:l.blockComment,ProcessingInst:l.processingInstruction,DoctypeDecl:l.documentMeta}),La=U.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#D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Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Ga,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[Ja],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_&FV;'S!!O;'S;:j!&Q;:j;=`4s<%l?&r-_?&r?Ah!!O?Ah?BY$q?BY?Mn!!O?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpO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]<%lO!G_!R!MvV!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!N`P;=`<%l!G_T!NhbhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!a!Hp!a!b# p!b#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT# ubhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!`!Hp!`!a!If!a#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT##QP;=`<%l!Nc!V##^chS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!`!G_!`!a!Mm!a#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Na,Ba,Da,Ea,za,Aa,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function IO(O,e){let a=Object.create(null);for(let t of O.getChildren(jO)){let i=t.getChild(wa),r=t.getChild(Ze)||t.getChild(GO);i&&(a[e.read(i.from,i.to)]=r?r.type.id==Ze?e.read(r.from+1,r.to-1):e.read(r.from,r.to):"")}return a}function tO(O,e){let a=O.getChild(ba);return a?e.read(a.from,a.to):" "}function pe(O,e,a){let t;for(let i of a)if(!i.attrs||i.attrs(t||(t=IO(O.node.parent.firstChild,e))))return{parser:i.parser};return null}function EO(O=[],e=[]){let a=[],t=[],i=[],r=[];for(let n of O)(n.tag=="script"?a:n.tag=="style"?t:n.tag=="textarea"?i:r).push(n);let s=e.length?Object.create(null):null;for(let n of e)(s[n.name]||(s[n.name]=[])).push(n);return Vt((n,o)=>{let c=n.type.id;if(c==ka)return pe(n,o,a);if(c==ya)return pe(n,o,t);if(c==xa)return pe(n,o,i);if(c==RO&&r.length){let h=n.node,Q=h.firstChild,f=Q&&tO(Q,o),u;if(f){for(let d of r)if(d.tag==f&&(!d.attrs||d.attrs(u||(u=IO(h,o))))){let $=h.lastChild;return{parser:d.parser,overlay:[{from:Q.to,to:$.type.id==Ya?$.from:h.to}]}}}}if(s&&c==jO){let h=n.node,Q;if(Q=h.firstChild){let f=s[o.read(Q.from,Q.to)];if(f)for(let u of f){if(u.tagName&&u.tagName!=tO(h.parent,o))continue;let d=h.lastChild;if(d.type.id==Ze){let $=d.from+1,g=d.lastChild,x=d.to-(g&&g.isError?0:1);if(x>$)return{parser:u.parser,overlay:[{from:$,to:x}]}}else if(d.type.id==GO)return{parser:u.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}const Ma=94,aO=1,Fa=95,Ha=96,iO=2,NO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Ka=58,ei=40,BO=95,Oi=91,L=45,ti=46,ai=35,ii=37;function Oe(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function ri(O){return O>=48&&O<=57}const si=new b((O,e)=>{for(let a=!1,t=0,i=0;;i++){let{next:r}=O;if(Oe(r)||r==L||r==BO||a&&ri(r))!a&&(r!=L||i>0)&&(a=!0),t===i&&r==L&&t++,O.advance();else{a&&O.acceptToken(r==ei?Fa:t==2&&e.canShift(iO)?iO:Ha);break}}}),ni=new b(O=>{if(NO.includes(O.peek(-1))){let{next:e}=O;(Oe(e)||e==BO||e==ai||e==ti||e==Oi||e==Ka||e==L)&&O.acceptToken(Ma)}}),li=new b(O=>{if(!NO.includes(O.peek(-1))){let{next:e}=O;if(e==ii&&(O.advance(),O.acceptToken(aO)),Oe(e)){do O.advance();while(Oe(O.next));O.acceptToken(aO)}}}),oi=re({"AtKeyword import charset namespace keyframes media supports":l.definitionKeyword,"from to selector":l.keyword,NamespaceName:l.namespace,KeyframeName:l.labelName,TagName:l.tagName,ClassName:l.className,PseudoClassName:l.constant(l.className),IdName:l.labelName,"FeatureName PropertyName":l.propertyName,AttributeName:l.attributeName,NumberLiteral:l.number,KeywordQuery:l.keyword,UnaryQueryOp:l.operatorKeyword,"CallTag ValueName":l.atom,VariableName:l.variableName,Callee:l.operatorKeyword,Unit:l.unit,"UniversalSelector NestingSelector":l.definitionOperator,MatchOp:l.compareOperator,"ChildOp SiblingOp, LogicOp":l.logicOperator,BinOp:l.arithmeticOperator,Important:l.modifier,Comment:l.blockComment,ParenthesizedContent:l.special(l.name),ColorLiteral:l.color,StringLiteral:l.string,":":l.punctuation,"PseudoOp #":l.derefOperator,"; ,":l.separator,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace}),Qi={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},ci={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},ui={__proto__:null,not:128,only:128,from:158,to:160},hi=U.deserialize({version:14,states:"7WQYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ed'#EdO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&TQ[O'#EPO&cQ[O'#EROOQS'#Ec'#EcOOQS'#ET'#ETQYQ[OOO&jQXO'#CdO'_QWO'#DaO'dQWO'#EjO'oQ[O'#EjQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'yQ[O'#EWO(eQWO,58{O(mQ[O,59SO$lQ[O,59kO$q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;'S;=`%o<%lO%^YFSSzQOy%^z;'S%^;'S;=`%o<%lO%^XFeU|POy%^z!`%^!`!aFw!a;'S%^;'S;=`%o<%lO%^XGOS|PoWOy%^z;'S%^;'S;=`%o<%lO%^XG_WOy%^z!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHO[!YPoWOy%^z}%^}!OGw!O!Q%^!Q![Gw![!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHySxPOy%^z;'S%^;'S;=`%o<%lO%^^I[SvUOy%^z;'S%^;'S;=`%o<%lO%^XIkUOy%^z#b%^#b#cI}#c;'S%^;'S;=`%o<%lO%^XJSUoWOy%^z#W%^#W#XJf#X;'S%^;'S;=`%o<%lO%^XJmS!`PoWOy%^z;'S%^;'S;=`%o<%lO%^XJ|UOy%^z#f%^#f#gJf#g;'S%^;'S;=`%o<%lO%^XKeS!RPOy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[ni,li,si,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:95,get:O=>Qi[O]||-1},{term:56,get:O=>ci[O]||-1},{term:96,get:O=>ui[O]||-1}],tokenPrec:1123});let de=null;function Se(){if(!de&&typeof document=="object"&&document.body){let{style:O}=document.body,e=[],a=new Set;for(let t in O)t!="cssText"&&t!="cssFloat"&&typeof O[t]=="string"&&(/[A-Z]/.test(t)&&(t=t.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),a.has(t)||(e.push(t),a.add(t)));de=e.sort().map(t=>({type:"property",label:t}))}return de||[]}const rO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(O=>({type:"class",label:O})),sO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(O=>({type:"keyword",label:O})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(O=>({type:"constant",label:O}))),fi=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(O=>({type:"type",label:O})),y=/^(\w[\w-]*|-\w[\w-]*|)$/,pi=/^-(-[\w-]*)?$/;function di(O,e){var a;if((O.name=="("||O.type.isError)&&(O=O.parent||O),O.name!="ArgList")return!1;let t=(a=O.parent)===null||a===void 0?void 0:a.firstChild;return(t==null?void 0:t.name)!="Callee"?!1:e.sliceString(t.from,t.to)=="var"}const nO=new xO,Si=["Declaration"];function $i(O){for(let e=O;;){if(e.type.isTop)return e;if(!(e=e.parent))return O}}function DO(O,e,a){if(e.to-e.from>4096){let t=nO.get(e);if(t)return t;let i=[],r=new Set,s=e.cursor(ve.IncludeAnonymous);if(s.firstChild())do for(let n of DO(O,s.node,a))r.has(n.label)||(r.add(n.label),i.push(n));while(s.nextSibling());return nO.set(e,i),i}else{let t=[],i=new Set;return e.cursor().iterate(r=>{var s;if(a(r)&&r.matchContext(Si)&&((s=r.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=O.sliceString(r.from,r.to);i.has(n)||(i.add(n),t.push({label:n,type:"variable"}))}}),t}}const gi=O=>e=>{let{state:a,pos:t}=e,i=W(a).resolveInner(t,-1),r=i.type.isError&&i.from==i.to-1&&a.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(r||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:Se(),validFor:y};if(i.name=="ValueName")return{from:i.from,options:sO,validFor:y};if(i.name=="PseudoClassName")return{from:i.from,options:rO,validFor:y};if(O(i)||(e.explicit||r)&&di(i,a.doc))return{from:O(i)||r?i.from:t,options:DO(a.doc,$i(i),O),validFor:pi};if(i.name=="TagName"){for(let{parent:o}=i;o;o=o.parent)if(o.name=="Block")return{from:i.from,options:Se(),validFor:y};return{from:i.from,options:fi,validFor:y}}if(!e.explicit)return null;let s=i.resolve(t),n=s.childBefore(t);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:t,options:rO,validFor:y}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:t,options:sO,validFor:y}:s.name=="Block"||s.name=="Styles"?{from:t,options:Se(),validFor:y}:null},Pi=gi(O=>O.name=="VariableName"),te=se.define({name:"css",parser:hi.configure({props:[ne.add({Declaration:G()}),le.add({Block:yO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function mi(){return new oe(te,te.data.of({autocomplete:Pi}))}const lO=302,oO=1,Xi=2,QO=303,Zi=305,bi=306,wi=3,ki=4,yi=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],JO=125,xi=59,cO=47,vi=42,Yi=43,Ui=45,Ti=new qO({start:!1,shift(O,e){return e==wi||e==ki||e==Zi?O:e==bi},strict:!1}),qi=new b((O,e)=>{let{next:a}=O;(a==JO||a==-1||e.context)&&e.canShift(QO)&&O.acceptToken(QO)},{contextual:!0,fallback:!0}),_i=new b((O,e)=>{let{next:a}=O,t;yi.indexOf(a)>-1||a==cO&&((t=O.peek(1))==cO||t==vi)||a!=JO&&a!=xi&&a!=-1&&!e.context&&e.canShift(lO)&&O.acceptToken(lO)},{contextual:!0}),Wi=new b((O,e)=>{let{next:a}=O;if((a==Yi||a==Ui)&&(O.advance(),a==O.next)){O.advance();let t=!e.context&&e.canShift(oO);O.acceptToken(t?oO:Xi)}},{contextual:!0}),Vi=re({"get set async static":l.modifier,"for while do if else switch try catch finally return throw break continue default case":l.controlKeyword,"in of await yield void typeof delete instanceof":l.operatorKeyword,"let var const function class extends":l.definitionKeyword,"import export from":l.moduleKeyword,"with debugger as new":l.keyword,TemplateString:l.special(l.string),super:l.atom,BooleanLiteral:l.bool,this:l.self,null:l.null,Star:l.modifier,VariableName:l.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":l.function(l.variableName),VariableDefinition:l.definition(l.variableName),Label:l.labelName,PropertyName:l.propertyName,PrivatePropertyName:l.special(l.propertyName),"CallExpression/MemberExpression/PropertyName":l.function(l.propertyName),"FunctionDeclaration/VariableDefinition":l.function(l.definition(l.variableName)),"ClassDeclaration/VariableDefinition":l.definition(l.className),PropertyDefinition:l.definition(l.propertyName),PrivatePropertyDefinition:l.definition(l.special(l.propertyName)),UpdateOp:l.updateOperator,LineComment:l.lineComment,BlockComment:l.blockComment,Number:l.number,String:l.string,Escape:l.escape,ArithOp:l.arithmeticOperator,LogicOp:l.logicOperator,BitOp:l.bitwiseOperator,CompareOp:l.compareOperator,RegExp:l.regexp,Equals:l.definitionOperator,Arrow:l.function(l.punctuation),": Spread":l.punctuation,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace,"InterpolationStart InterpolationEnd":l.special(l.brace),".":l.derefOperator,", ;":l.separator,"@":l.meta,TypeName:l.typeName,TypeDefinition:l.definition(l.typeName),"type enum interface implements namespace module declare":l.definitionKeyword,"abstract global Privacy readonly override":l.modifier,"is keyof unique infer":l.operatorKeyword,JSXAttributeValue:l.attributeValue,JSXText:l.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":l.angleBracket,"JSXIdentifier JSXNameSpacedName":l.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":l.attributeName,"JSXBuiltin/JSXIdentifier":l.standard(l.tagName)}),Ci={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,interface:417,enum:421,namespace:427,module:429,declare:433,global:437,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526},Ri={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},ji={__proto__:null,"<":137},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~P!6UO!V'vO!S(Xi~O!V'}O!S(fi~O!S(gi!V(gi~P!6UO!V(di!g(di^(di'k(di~P!6UO#X2^O!V(di!g(di^(di'k(di~O!V(ZO!g(ci~O|%vO!X%wO!x]O#b2cO#c2bO't%eO~O|%vO!X%wO#c2bO't%eO~Og2jO!X'QO%a2iO~Og2jO!X'QO%a2iO'}%OO~O#dvaPvaXva^vakva!eva!fva!hva!lva#gva#hva#iva#jva#kva#lva#mva#nva#ova#qva#sva#uva#vva'kva(Rva(bva!gva!Sva'ivaova!Xva%ava!ava~P#L|O#d$laP$laX$la^$lak$laz$la!e$la!f$la!h$la!l$la#g$la#h$la#i$la#j$la#k$la#l$la#m$la#n$la#o$la#q$la#s$la#u$la#v$la'k$la(R$la(b$la!g$la!S$la'i$lao$la!X$la%a$la!a$la~P#MrO#d$naP$naX$na^$nak$naz$na!e$na!f$na!h$na!l$na#g$na#h$na#i$na#j$na#k$na#l$na#m$na#n$na#o$na#q$na#s$na#u$na#v$na'k$na(R$na(b$na!g$na!S$na'i$nao$na!X$na%a$na!a$na~P#NeO#d$|aP$|aX$|a^$|ak$|az$|a!V$|a!e$|a!f$|a!h$|a!l$|a#g$|a#h$|a#i$|a#j$|a#k$|a#l$|a#m$|a#n$|a#o$|a#q$|a#s$|a#u$|a#v$|a'k$|a(R$|a(b$|a!g$|a!S$|a'i$|a#X$|ao$|a!X$|a%a$|a!a$|a~P#)tO^#[q!V#[q'k#[q'i#[q!S#[q!g#[qo#[q!X#[q%a#[q!a#[q~P!6UOd'OX!V'OX~P!'^O!V.YOd([a~O!U2rO!V'PX!g'PX~P%QO!V.]O!g(]a~O!V.]O!g(]a~P!6UO!S2uO~O#y!ja!W!ja~PJ`O#y!ba!V!ba!W!ba~P#@_O#y!na!W!na~P!8oO#y!pa!W!pa~P!;YO!X3XO$UfO$_3YO~O!W3^O~Oo3_O~P#)tO^$hq!V$hq'k$hq'i$hq!S$hq!g$hqo$hq!X$hq%a$hq!a$hq~P!6UO!S3`O~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e#h%Z(X(Y(Z+h-s-t-u-w2b2c5wQ1_,ZQ1r,oQ5e1jQ7m5fT:x&y+fT#]W%vS#[W%vS'u#S'}S'z#V+eS,t&y+fT-h't-mT'O!c%wQ$hfR)j$mT)_$h)`R3Z.kT*O$u*QR*W$xQ/}*zQ2e.OQ4s0wQ5{2iQ7X4vQ7x5zQ8e7WQ8w7wQ9W8gQ9`8yQ9e9XR9h9alpOXr!X#`%]&d&f&g&i,],b1b1eQ&^!TR,Q&ZV%z|},ZR0q+qR,P&XQ%szR+c%tR+X%nT&b!U&eT&c!U&eT1d,b1e",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:364,context:Ti,nodeProps:[["group",-26,6,14,16,62,199,203,206,207,209,212,215,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[Vi],skippedNodes:[0,3,4,268],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDx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:1,191:1},specialized:[{term:312,get:O=>Ci[O]||-1},{term:328,get:O=>Ri[O]||-1},{term:67,get:O=>ji[O]||-1}],tokenPrec:12712}),zi=[X("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),X("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),X("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),X("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),X(`try { \${} } catch (\${error}) { \${} diff --git a/ui/dist/assets/ConfirmEmailChangeDocs-cc3d69ff.js b/ui/dist/assets/ConfirmEmailChangeDocs-44f473ac.js similarity index 97% rename from ui/dist/assets/ConfirmEmailChangeDocs-cc3d69ff.js rename to ui/dist/assets/ConfirmEmailChangeDocs-44f473ac.js index e846a38c..385aef1c 100644 --- a/ui/dist/assets/ConfirmEmailChangeDocs-cc3d69ff.js +++ b/ui/dist/assets/ConfirmEmailChangeDocs-44f473ac.js @@ -1,4 +1,4 @@ -import{S as Ce,i as $e,s as we,e as r,w as g,b as h,c as he,f as b,g as f,h as n,m as ve,x as Y,N as pe,O as Pe,k as Se,P as Oe,n as Te,t as Z,a as x,o as m,d as ge,T as Re,C as Ee,p as ye,r as j,u as Be,M as qe}from"./index-f81c5782.js";import{S as Ae}from"./SdkTabs-f541bf12.js";function ue(o,l,s){const a=o.slice();return a[5]=l[s],a}function be(o,l,s){const a=o.slice();return a[5]=l[s],a}function _e(o,l){let s,a=l[5].code+"",_,u,i,d;function p(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=g(a),u=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(C,$){f(C,s,$),n(s,_),n(s,u),i||(d=Be(s,"click",p),i=!0)},p(C,$){l=C,$&4&&a!==(a=l[5].code+"")&&Y(_,a),$&6&&j(s,"active",l[1]===l[5].code)},d(C){C&&m(s),i=!1,d()}}}function ke(o,l){let s,a,_,u;return a=new qe({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),he(a.$$.fragment),_=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(i,d){f(i,s,d),ve(a,s,null),n(s,_),u=!0},p(i,d){l=i;const p={};d&4&&(p.content=l[5].body),a.$set(p),(!u||d&6)&&j(s,"active",l[1]===l[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&m(s),ge(a)}}}function Ue(o){var re,fe;let l,s,a=o[0].name+"",_,u,i,d,p,C,$,D=o[0].name+"",H,ee,F,w,I,T,L,P,M,te,N,R,le,z,K=o[0].name+"",G,se,J,E,Q,y,V,B,X,S,q,v=[],ae=new Map,oe,A,k=[],ne=new Map,O;w=new Ae({props:{js:` +import{S as Ce,i as $e,s as we,e as r,w as g,b as h,c as he,f as b,g as f,h as n,m as ve,x as Y,N as pe,O as Pe,k as Se,P as Oe,n as Te,t as Z,a as x,o as m,d as ge,T as Re,C as Ee,p as ye,r as j,u as Be,M as qe}from"./index-fae59489.js";import{S as Ae}from"./SdkTabs-bc0a52ba.js";function ue(o,l,s){const a=o.slice();return a[5]=l[s],a}function be(o,l,s){const a=o.slice();return a[5]=l[s],a}function _e(o,l){let s,a=l[5].code+"",_,u,i,d;function p(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=g(a),u=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(C,$){f(C,s,$),n(s,_),n(s,u),i||(d=Be(s,"click",p),i=!0)},p(C,$){l=C,$&4&&a!==(a=l[5].code+"")&&Y(_,a),$&6&&j(s,"active",l[1]===l[5].code)},d(C){C&&m(s),i=!1,d()}}}function ke(o,l){let s,a,_,u;return a=new qe({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),he(a.$$.fragment),_=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(i,d){f(i,s,d),ve(a,s,null),n(s,_),u=!0},p(i,d){l=i;const p={};d&4&&(p.content=l[5].body),a.$set(p),(!u||d&6)&&j(s,"active",l[1]===l[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&m(s),ge(a)}}}function Ue(o){var re,fe;let l,s,a=o[0].name+"",_,u,i,d,p,C,$,D=o[0].name+"",H,ee,F,w,I,T,L,P,M,te,N,R,le,z,K=o[0].name+"",G,se,J,E,Q,y,V,B,X,S,q,v=[],ae=new Map,oe,A,k=[],ne=new Map,O;w=new Ae({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/ConfirmPasswordResetDocs-c185c50f.js b/ui/dist/assets/ConfirmPasswordResetDocs-1717dd10.js similarity index 98% rename from ui/dist/assets/ConfirmPasswordResetDocs-c185c50f.js rename to ui/dist/assets/ConfirmPasswordResetDocs-1717dd10.js index fc9540ec..5d63b5a5 100644 --- a/ui/dist/assets/ConfirmPasswordResetDocs-c185c50f.js +++ b/ui/dist/assets/ConfirmPasswordResetDocs-1717dd10.js @@ -1,4 +1,4 @@ -import{S as Se,i as he,s as Re,e as r,w as P,b as v,c as ve,f as b,g as d,h as n,m as we,x as K,N as me,O as Oe,k as Ne,P as Ce,n as We,t as Z,a as x,o as f,d as Pe,T as $e,C as Ee,p as Te,r as U,u as ge,M as Ae}from"./index-f81c5782.js";import{S as De}from"./SdkTabs-f541bf12.js";function ue(o,s,l){const a=o.slice();return a[5]=s[l],a}function be(o,s,l){const a=o.slice();return a[5]=s[l],a}function _e(o,s){let l,a=s[5].code+"",_,u,i,p;function m(){return s[4](s[5])}return{key:o,first:null,c(){l=r("button"),_=P(a),u=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(S,h){d(S,l,h),n(l,_),n(l,u),i||(p=ge(l,"click",m),i=!0)},p(S,h){s=S,h&4&&a!==(a=s[5].code+"")&&K(_,a),h&6&&U(l,"active",s[1]===s[5].code)},d(S){S&&f(l),i=!1,p()}}}function ke(o,s){let l,a,_,u;return a=new Ae({props:{content:s[5].body}}),{key:o,first:null,c(){l=r("div"),ve(a.$$.fragment),_=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(a,l,null),n(l,_),u=!0},p(i,p){s=i;const m={};p&4&&(m.content=s[5].body),a.$set(m),(!u||p&6)&&U(l,"active",s[1]===s[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&f(l),Pe(a)}}}function ye(o){var re,de;let s,l,a=o[0].name+"",_,u,i,p,m,S,h,M=o[0].name+"",j,ee,H,R,L,W,z,O,q,te,B,$,se,G,F=o[0].name+"",J,le,Q,E,V,T,X,g,Y,N,A,w=[],ae=new Map,oe,D,k=[],ne=new Map,C;R=new De({props:{js:` +import{S as Se,i as he,s as Re,e as r,w as P,b as v,c as ve,f as b,g as d,h as n,m as we,x as K,N as me,O as Oe,k as Ne,P as Ce,n as We,t as Z,a as x,o as f,d as Pe,T as $e,C as Ee,p as Te,r as U,u as ge,M as Ae}from"./index-fae59489.js";import{S as De}from"./SdkTabs-bc0a52ba.js";function ue(o,s,l){const a=o.slice();return a[5]=s[l],a}function be(o,s,l){const a=o.slice();return a[5]=s[l],a}function _e(o,s){let l,a=s[5].code+"",_,u,i,p;function m(){return s[4](s[5])}return{key:o,first:null,c(){l=r("button"),_=P(a),u=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(S,h){d(S,l,h),n(l,_),n(l,u),i||(p=ge(l,"click",m),i=!0)},p(S,h){s=S,h&4&&a!==(a=s[5].code+"")&&K(_,a),h&6&&U(l,"active",s[1]===s[5].code)},d(S){S&&f(l),i=!1,p()}}}function ke(o,s){let l,a,_,u;return a=new Ae({props:{content:s[5].body}}),{key:o,first:null,c(){l=r("div"),ve(a.$$.fragment),_=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(a,l,null),n(l,_),u=!0},p(i,p){s=i;const m={};p&4&&(m.content=s[5].body),a.$set(m),(!u||p&6)&&U(l,"active",s[1]===s[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&f(l),Pe(a)}}}function ye(o){var re,de;let s,l,a=o[0].name+"",_,u,i,p,m,S,h,M=o[0].name+"",j,ee,H,R,L,W,z,O,q,te,B,$,se,G,F=o[0].name+"",J,le,Q,E,V,T,X,g,Y,N,A,w=[],ae=new Map,oe,D,k=[],ne=new Map,C;R=new De({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/ConfirmVerificationDocs-05bd8880.js b/ui/dist/assets/ConfirmVerificationDocs-d0a10dda.js similarity index 97% rename from ui/dist/assets/ConfirmVerificationDocs-05bd8880.js rename to ui/dist/assets/ConfirmVerificationDocs-d0a10dda.js index d5026906..708aa9f4 100644 --- a/ui/dist/assets/ConfirmVerificationDocs-05bd8880.js +++ b/ui/dist/assets/ConfirmVerificationDocs-d0a10dda.js @@ -1,4 +1,4 @@ -import{S as we,i as Ce,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as n,m as he,x as H,N as de,O as Te,k as ge,P as ye,n as Be,t as Z,a as x,o as m,d as $e,T as qe,C as Oe,p as Se,r as R,u as Ee,M as Me}from"./index-f81c5782.js";import{S as Ne}from"./SdkTabs-f541bf12.js";function ue(i,l,s){const o=i.slice();return o[5]=l[s],o}function be(i,l,s){const o=i.slice();return o[5]=l[s],o}function _e(i,l){let s,o=l[5].code+"",_,u,a,p;function d(){return l[4](l[5])}return{key:i,first:null,c(){s=r("button"),_=$(o),u=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(w,C){f(w,s,C),n(s,_),n(s,u),a||(p=Ee(s,"click",d),a=!0)},p(w,C){l=w,C&4&&o!==(o=l[5].code+"")&&H(_,o),C&6&&R(s,"active",l[1]===l[5].code)},d(w){w&&m(s),a=!1,p()}}}function ke(i,l){let s,o,_,u;return o=new Me({props:{content:l[5].body}}),{key:i,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(a,p){f(a,s,p),he(o,s,null),n(s,_),u=!0},p(a,p){l=a;const d={};p&4&&(d.content=l[5].body),o.$set(d),(!u||p&6)&&R(s,"active",l[1]===l[5].code)},i(a){u||(Z(o.$$.fragment,a),u=!0)},o(a){x(o.$$.fragment,a),u=!1},d(a){a&&m(s),$e(o)}}}function Ve(i){var re,fe;let l,s,o=i[0].name+"",_,u,a,p,d,w,C,K=i[0].name+"",F,ee,I,P,L,B,z,T,A,te,U,q,le,G,j=i[0].name+"",J,se,Q,O,W,S,X,E,Y,g,M,h=[],oe=new Map,ie,N,k=[],ne=new Map,y;P=new Ne({props:{js:` +import{S as we,i as Ce,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as n,m as he,x as H,N as de,O as Te,k as ge,P as ye,n as Be,t as Z,a as x,o as m,d as $e,T as qe,C as Oe,p as Se,r as R,u as Ee,M as Me}from"./index-fae59489.js";import{S as Ne}from"./SdkTabs-bc0a52ba.js";function ue(i,l,s){const o=i.slice();return o[5]=l[s],o}function be(i,l,s){const o=i.slice();return o[5]=l[s],o}function _e(i,l){let s,o=l[5].code+"",_,u,a,p;function d(){return l[4](l[5])}return{key:i,first:null,c(){s=r("button"),_=$(o),u=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(w,C){f(w,s,C),n(s,_),n(s,u),a||(p=Ee(s,"click",d),a=!0)},p(w,C){l=w,C&4&&o!==(o=l[5].code+"")&&H(_,o),C&6&&R(s,"active",l[1]===l[5].code)},d(w){w&&m(s),a=!1,p()}}}function ke(i,l){let s,o,_,u;return o=new Me({props:{content:l[5].body}}),{key:i,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(a,p){f(a,s,p),he(o,s,null),n(s,_),u=!0},p(a,p){l=a;const d={};p&4&&(d.content=l[5].body),o.$set(d),(!u||p&6)&&R(s,"active",l[1]===l[5].code)},i(a){u||(Z(o.$$.fragment,a),u=!0)},o(a){x(o.$$.fragment,a),u=!1},d(a){a&&m(s),$e(o)}}}function Ve(i){var re,fe;let l,s,o=i[0].name+"",_,u,a,p,d,w,C,K=i[0].name+"",F,ee,I,P,L,B,z,T,A,te,U,q,le,G,j=i[0].name+"",J,se,Q,O,W,S,X,E,Y,g,M,h=[],oe=new Map,ie,N,k=[],ne=new Map,y;P=new Ne({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/CreateApiDocs-6309a89b.js b/ui/dist/assets/CreateApiDocs-b5577e9f.js similarity index 99% rename from ui/dist/assets/CreateApiDocs-6309a89b.js rename to ui/dist/assets/CreateApiDocs-b5577e9f.js index 23ce173d..816ace98 100644 --- a/ui/dist/assets/CreateApiDocs-6309a89b.js +++ b/ui/dist/assets/CreateApiDocs-b5577e9f.js @@ -1,4 +1,4 @@ -import{S as Ht,i as Lt,s as Pt,C as z,M as At,e as a,w as k,b as m,c as Pe,f as h,g as r,h as n,m as Be,x,N as Le,O as ht,k as Bt,P as Ft,n as Rt,t as fe,a as pe,o as d,d as Fe,T as gt,p as jt,r as ue,u as Dt,y as le}from"./index-f81c5782.js";import{S as Nt}from"./SdkTabs-f541bf12.js";function wt(o,e,l){const s=o.slice();return s[7]=e[l],s}function Ct(o,e,l){const s=o.slice();return s[7]=e[l],s}function St(o,e,l){const s=o.slice();return s[12]=e[l],s}function $t(o){let e;return{c(){e=a("p"),e.innerHTML="Requires admin Authorization:TOKEN header",h(e,"class","txt-hint txt-sm txt-right")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Tt(o){let e,l,s,b,p,c,f,v,T,w,M,g,D,E,L,I,j,R,S,N,q,C,_;function O(u,$){var ee,Q;return(Q=(ee=u[0])==null?void 0:ee.options)!=null&&Q.requireEmail?Jt:Vt}let K=O(o),P=K(o);return{c(){e=a("tr"),e.innerHTML='Auth fields',l=m(),s=a("tr"),s.innerHTML=`
Optional +import{S as Ht,i as Lt,s as Pt,C as z,M as At,e as a,w as k,b as m,c as Pe,f as h,g as r,h as n,m as Be,x,N as Le,O as ht,k as Bt,P as Ft,n as Rt,t as fe,a as pe,o as d,d as Fe,T as gt,p as jt,r as ue,u as Dt,y as le}from"./index-fae59489.js";import{S as Nt}from"./SdkTabs-bc0a52ba.js";function wt(o,e,l){const s=o.slice();return s[7]=e[l],s}function Ct(o,e,l){const s=o.slice();return s[7]=e[l],s}function St(o,e,l){const s=o.slice();return s[12]=e[l],s}function $t(o){let e;return{c(){e=a("p"),e.innerHTML="Requires admin Authorization:TOKEN header",h(e,"class","txt-hint txt-sm txt-right")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Tt(o){let e,l,s,b,p,c,f,v,T,w,M,g,D,E,L,I,j,R,S,N,q,C,_;function O(u,$){var ee,Q;return(Q=(ee=u[0])==null?void 0:ee.options)!=null&&Q.requireEmail?Jt:Vt}let K=O(o),P=K(o);return{c(){e=a("tr"),e.innerHTML='Auth fields',l=m(),s=a("tr"),s.innerHTML=`
Optional username
String The username of the auth record. diff --git a/ui/dist/assets/DeleteApiDocs-fd7036f7.js b/ui/dist/assets/DeleteApiDocs-119583b1.js similarity index 97% rename from ui/dist/assets/DeleteApiDocs-fd7036f7.js rename to ui/dist/assets/DeleteApiDocs-119583b1.js index be6783a7..132c167b 100644 --- a/ui/dist/assets/DeleteApiDocs-fd7036f7.js +++ b/ui/dist/assets/DeleteApiDocs-119583b1.js @@ -1,4 +1,4 @@ -import{S as Ce,i as Re,s as Pe,e as c,w as $,b as h,c as $e,f as m,g as f,h as n,m as we,x,N as _e,O as Ee,k as Te,P as Oe,n as Be,t as ee,a as te,o as u,d as ge,T as Ie,C as Me,p as Ae,r as N,u as Se,M as qe}from"./index-f81c5782.js";import{S as He}from"./SdkTabs-f541bf12.js";function ke(o,l,s){const a=o.slice();return a[6]=l[s],a}function he(o,l,s){const a=o.slice();return a[6]=l[s],a}function ve(o){let l;return{c(){l=c("p"),l.innerHTML="Requires admin Authorization:TOKEN header",m(l,"class","txt-hint txt-sm txt-right")},m(s,a){f(s,l,a)},d(s){s&&u(l)}}}function ye(o,l){let s,a=l[6].code+"",v,i,r,p;function w(){return l[5](l[6])}return{key:o,first:null,c(){s=c("button"),v=$(a),i=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(b,g){f(b,s,g),n(s,v),n(s,i),r||(p=Se(s,"click",w),r=!0)},p(b,g){l=b,g&20&&N(s,"active",l[2]===l[6].code)},d(b){b&&u(s),r=!1,p()}}}function De(o,l){let s,a,v,i;return a=new qe({props:{content:l[6].body}}),{key:o,first:null,c(){s=c("div"),$e(a.$$.fragment),v=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(r,p){f(r,s,p),we(a,s,null),n(s,v),i=!0},p(r,p){l=r,(!i||p&20)&&N(s,"active",l[2]===l[6].code)},i(r){i||(ee(a.$$.fragment,r),i=!0)},o(r){te(a.$$.fragment,r),i=!1},d(r){r&&u(s),ge(a)}}}function Le(o){var ue,pe;let l,s,a=o[0].name+"",v,i,r,p,w,b,g,q=o[0].name+"",z,le,F,C,K,T,G,y,H,se,L,E,oe,J,U=o[0].name+"",Q,ae,V,ne,W,O,X,B,Y,I,Z,R,M,D=[],ie=new Map,re,A,_=[],ce=new Map,P;C=new He({props:{js:` +import{S as Ce,i as Re,s as Pe,e as c,w as $,b as h,c as $e,f as m,g as f,h as n,m as we,x,N as _e,O as Ee,k as Te,P as Oe,n as Be,t as ee,a as te,o as u,d as ge,T as Ie,C as Me,p as Ae,r as N,u as Se,M as qe}from"./index-fae59489.js";import{S as He}from"./SdkTabs-bc0a52ba.js";function ke(o,l,s){const a=o.slice();return a[6]=l[s],a}function he(o,l,s){const a=o.slice();return a[6]=l[s],a}function ve(o){let l;return{c(){l=c("p"),l.innerHTML="Requires admin Authorization:TOKEN header",m(l,"class","txt-hint txt-sm txt-right")},m(s,a){f(s,l,a)},d(s){s&&u(l)}}}function ye(o,l){let s,a=l[6].code+"",v,i,r,p;function w(){return l[5](l[6])}return{key:o,first:null,c(){s=c("button"),v=$(a),i=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(b,g){f(b,s,g),n(s,v),n(s,i),r||(p=Se(s,"click",w),r=!0)},p(b,g){l=b,g&20&&N(s,"active",l[2]===l[6].code)},d(b){b&&u(s),r=!1,p()}}}function De(o,l){let s,a,v,i;return a=new qe({props:{content:l[6].body}}),{key:o,first:null,c(){s=c("div"),$e(a.$$.fragment),v=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(r,p){f(r,s,p),we(a,s,null),n(s,v),i=!0},p(r,p){l=r,(!i||p&20)&&N(s,"active",l[2]===l[6].code)},i(r){i||(ee(a.$$.fragment,r),i=!0)},o(r){te(a.$$.fragment,r),i=!1},d(r){r&&u(s),ge(a)}}}function Le(o){var ue,pe;let l,s,a=o[0].name+"",v,i,r,p,w,b,g,q=o[0].name+"",z,le,F,C,K,T,G,y,H,se,L,E,oe,J,U=o[0].name+"",Q,ae,V,ne,W,O,X,B,Y,I,Z,R,M,D=[],ie=new Map,re,A,_=[],ce=new Map,P;C=new He({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/FilterAutocompleteInput-82ab8430.js b/ui/dist/assets/FilterAutocompleteInput-42c48e12.js similarity index 99% rename from ui/dist/assets/FilterAutocompleteInput-82ab8430.js rename to ui/dist/assets/FilterAutocompleteInput-42c48e12.js index 1b92a45e..c1d70392 100644 --- a/ui/dist/assets/FilterAutocompleteInput-82ab8430.js +++ b/ui/dist/assets/FilterAutocompleteInput-42c48e12.js @@ -1 +1 @@ -import{S as oe,i as ae,s as le,e as ue,f as ce,g as fe,y as H,o as de,I as he,J as ge,K as pe,H as ye,C as q,L as me}from"./index-f81c5782.js";import{E as S,a as w,h as be,b as ke,c as xe,d as Ke,e as Ce,s as qe,f as Se,g as we,r as Le,i as Ie,k as Ee,j as Re,l as Ae,m as Be,n as Oe,o as _e,p as ve,q as Y,C as E,S as He,t as De}from"./index-be8a2174.js";function Me(e){Z(e,"start");var i={},n=e.languageData||{},g=!1;for(var p in e)if(p!=n&&e.hasOwnProperty(p))for(var d=i[p]=[],o=e[p],s=0;s2&&o.token&&typeof o.token!="string"){n.pending=[];for(var a=2;a-1)return null;var p=n.indent.length-1,d=e[n.state];e:for(;;){for(var o=0;on(21,g=t));const p=pe();let{id:d=""}=i,{value:o=""}=i,{disabled:s=!1}=i,{placeholder:l=""}=i,{baseCollection:a=null}=i,{singleLine:b=!1}=i,{extraAutocompleteKeys:R=[]}=i,{disableRequestKeys:x=!1}=i,{disableIndirectCollectionsKeys:K=!1}=i,f,k,A=s,D=new E,M=new E,F=new E,T=new E,L=[],U=[],W=[],N=[],I="",B="";function O(){f==null||f.focus()}let _=null;function j(){clearTimeout(_),_=setTimeout(()=>{L=$(g),N=ee(),U=x?[]:te(),W=K?[]:ne()},300)}function $(t){let r=t.slice();return a&&q.pushOrReplaceByKey(r,a,"id"),r}function J(){k==null||k.dispatchEvent(new CustomEvent("change",{detail:{value:o},bubbles:!0}))}function P(){if(!d)return;const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.removeEventListener("click",O)}function V(){if(!d)return;P();const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.addEventListener("click",O)}function C(t,r="",c=0){var m,z,Q;let h=L.find(y=>y.name==t||y.id==t);if(!h||c>=4)return[];let u=q.getAllCollectionIdentifiers(h,r);for(const y of h.schema){const v=r+y.name;if(y.type==="relation"&&((m=y.options)!=null&&m.collectionId)){const X=C(y.options.collectionId,v+".",c+1);X.length&&(u=u.concat(X))}y.type==="select"&&((z=y.options)==null?void 0:z.maxSelect)!=1&&u.push(v+":each"),((Q=y.options)==null?void 0:Q.maxSelect)!=1&&["select","file","relation"].includes(y.type)&&u.push(v+":length")}return u}function ee(){return C(a==null?void 0:a.name)}function te(){const t=[];t.push("@request.method"),t.push("@request.query."),t.push("@request.data."),t.push("@request.headers."),t.push("@request.auth.id"),t.push("@request.auth.collectionId"),t.push("@request.auth.collectionName"),t.push("@request.auth.verified"),t.push("@request.auth.username"),t.push("@request.auth.email"),t.push("@request.auth.emailVisibility"),t.push("@request.auth.created"),t.push("@request.auth.updated");const r=L.filter(h=>h.$isAuth);for(const h of r){const u=C(h.id,"@request.auth.");for(const m of u)q.pushUnique(t,m)}const c=["created","updated"];if(a!=null&&a.id){const h=C(a.name,"@request.data.");for(const u of h){t.push(u);const m=u.split(".");m.length===3&&m[2].indexOf(":")===-1&&!c.includes(m[2])&&t.push(u+":isset")}}return t}function ne(){const t=[];for(const r of L){const c="@collection."+r.name+".",h=C(r.name,c);for(const u of h)t.push(u)}return t}function ie(t=!0,r=!0){let c=[].concat(R);return c=c.concat(N||[]),t&&(c=c.concat(U||[])),r&&(c=c.concat(W||[])),c.sort(function(h,u){return u.length-h.length}),c}function se(t){let r=t.matchBefore(/[\'\"\@\w\.]*/);if(r&&r.from==r.to&&!t.explicit)return null;let c=[{label:"false"},{label:"true"},{label:"@now"}];K||c.push({label:"@collection.*",apply:"@collection."});const h=ie(!x,!x&&r.text.startsWith("@c"));for(const u of h)c.push({label:u.endsWith(".")?u+"*":u,apply:u});return{from:r.from,options:c}}function G(){return He.define(Me({start:[{regex:/true|false|null/,token:"atom"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/'(?:[^\\]|\\.)*?(?:'|$)/,token:"string"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\&\&|\|\||\=|\!\=|\~|\!\~|\>|\<|\>\=|\<\=/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0},{regex:/\w+[\w\.]*\w+/,token:"keyword"},{regex:q.escapeRegExp("@now"),token:"keyword"},{regex:q.escapeRegExp("@request.method"),token:"keyword"}]}))}ye(()=>{const t={key:"Enter",run:r=>{b&&p("submit",o)}};return V(),n(11,f=new S({parent:k,state:w.create({doc:o,extensions:[be(),ke(),xe(),Ke(),Ce(),w.allowMultipleSelections.of(!0),qe(De,{fallback:!0}),Se(),we(),Le(),Ie(),Ee.of([t,...Re,...Ae,Be.find(r=>r.key==="Mod-d"),...Oe,..._e]),S.lineWrapping,ve({override:[se],icons:!1}),T.of(Y(l)),M.of(S.editable.of(!s)),F.of(w.readOnly.of(s)),D.of(G()),w.transactionFilter.of(r=>b&&r.newDoc.lines>1?[]:r),S.updateListener.of(r=>{!r.docChanged||s||(n(1,o=r.state.doc.toString()),J())})]})})),()=>{clearTimeout(_),P(),f==null||f.destroy()}});function re(t){me[t?"unshift":"push"](()=>{k=t,n(0,k)})}return e.$$set=t=>{"id"in t&&n(2,d=t.id),"value"in t&&n(1,o=t.value),"disabled"in t&&n(3,s=t.disabled),"placeholder"in t&&n(4,l=t.placeholder),"baseCollection"in t&&n(5,a=t.baseCollection),"singleLine"in t&&n(6,b=t.singleLine),"extraAutocompleteKeys"in t&&n(7,R=t.extraAutocompleteKeys),"disableRequestKeys"in t&&n(8,x=t.disableRequestKeys),"disableIndirectCollectionsKeys"in t&&n(9,K=t.disableIndirectCollectionsKeys)},e.$$.update=()=>{e.$$.dirty[0]&32&&n(13,I=Pe(a)),e.$$.dirty[0]&25352&&!s&&(B!=I||x!==-1||K!==-1)&&(n(14,B=I),j()),e.$$.dirty[0]&4&&d&&V(),e.$$.dirty[0]&2080&&f&&a!=null&&a.schema&&f.dispatch({effects:[D.reconfigure(G())]}),e.$$.dirty[0]&6152&&f&&A!=s&&(f.dispatch({effects:[M.reconfigure(S.editable.of(!s)),F.reconfigure(w.readOnly.of(s))]}),n(12,A=s),J()),e.$$.dirty[0]&2050&&f&&o!=f.state.doc.toString()&&f.dispatch({changes:{from:0,to:f.state.doc.length,insert:o}}),e.$$.dirty[0]&2064&&f&&typeof l<"u"&&f.dispatch({effects:[T.reconfigure(Y(l))]})},[k,o,d,s,l,a,b,R,x,K,O,f,A,I,B,re]}class Qe extends oe{constructor(i){super(),ae(this,i,Ve,Je,le,{id:2,value:1,disabled:3,placeholder:4,baseCollection:5,singleLine:6,extraAutocompleteKeys:7,disableRequestKeys:8,disableIndirectCollectionsKeys:9,focus:10},null,[-1,-1])}get focus(){return this.$$.ctx[10]}}export{Qe as default}; +import{S as oe,i as ae,s as le,e as ue,f as ce,g as fe,y as H,o as de,I as he,J as ge,K as pe,H as ye,C as q,L as me}from"./index-fae59489.js";import{E as S,a as w,h as be,b as ke,c as xe,d as Ke,e as Ce,s as qe,f as Se,g as we,r as Le,i as Ie,k as Ee,j as Re,l as Ae,m as Be,n as Oe,o as _e,p as ve,q as Y,C as E,S as He,t as De}from"./index-be8a2174.js";function Me(e){Z(e,"start");var i={},n=e.languageData||{},g=!1;for(var p in e)if(p!=n&&e.hasOwnProperty(p))for(var d=i[p]=[],o=e[p],s=0;s2&&o.token&&typeof o.token!="string"){n.pending=[];for(var a=2;a-1)return null;var p=n.indent.length-1,d=e[n.state];e:for(;;){for(var o=0;on(21,g=t));const p=pe();let{id:d=""}=i,{value:o=""}=i,{disabled:s=!1}=i,{placeholder:l=""}=i,{baseCollection:a=null}=i,{singleLine:b=!1}=i,{extraAutocompleteKeys:R=[]}=i,{disableRequestKeys:x=!1}=i,{disableIndirectCollectionsKeys:K=!1}=i,f,k,A=s,D=new E,M=new E,F=new E,T=new E,L=[],U=[],W=[],N=[],I="",B="";function O(){f==null||f.focus()}let _=null;function j(){clearTimeout(_),_=setTimeout(()=>{L=$(g),N=ee(),U=x?[]:te(),W=K?[]:ne()},300)}function $(t){let r=t.slice();return a&&q.pushOrReplaceByKey(r,a,"id"),r}function J(){k==null||k.dispatchEvent(new CustomEvent("change",{detail:{value:o},bubbles:!0}))}function P(){if(!d)return;const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.removeEventListener("click",O)}function V(){if(!d)return;P();const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.addEventListener("click",O)}function C(t,r="",c=0){var m,z,Q;let h=L.find(y=>y.name==t||y.id==t);if(!h||c>=4)return[];let u=q.getAllCollectionIdentifiers(h,r);for(const y of h.schema){const v=r+y.name;if(y.type==="relation"&&((m=y.options)!=null&&m.collectionId)){const X=C(y.options.collectionId,v+".",c+1);X.length&&(u=u.concat(X))}y.type==="select"&&((z=y.options)==null?void 0:z.maxSelect)!=1&&u.push(v+":each"),((Q=y.options)==null?void 0:Q.maxSelect)!=1&&["select","file","relation"].includes(y.type)&&u.push(v+":length")}return u}function ee(){return C(a==null?void 0:a.name)}function te(){const t=[];t.push("@request.method"),t.push("@request.query."),t.push("@request.data."),t.push("@request.headers."),t.push("@request.auth.id"),t.push("@request.auth.collectionId"),t.push("@request.auth.collectionName"),t.push("@request.auth.verified"),t.push("@request.auth.username"),t.push("@request.auth.email"),t.push("@request.auth.emailVisibility"),t.push("@request.auth.created"),t.push("@request.auth.updated");const r=L.filter(h=>h.$isAuth);for(const h of r){const u=C(h.id,"@request.auth.");for(const m of u)q.pushUnique(t,m)}const c=["created","updated"];if(a!=null&&a.id){const h=C(a.name,"@request.data.");for(const u of h){t.push(u);const m=u.split(".");m.length===3&&m[2].indexOf(":")===-1&&!c.includes(m[2])&&t.push(u+":isset")}}return t}function ne(){const t=[];for(const r of L){const c="@collection."+r.name+".",h=C(r.name,c);for(const u of h)t.push(u)}return t}function ie(t=!0,r=!0){let c=[].concat(R);return c=c.concat(N||[]),t&&(c=c.concat(U||[])),r&&(c=c.concat(W||[])),c.sort(function(h,u){return u.length-h.length}),c}function se(t){let r=t.matchBefore(/[\'\"\@\w\.]*/);if(r&&r.from==r.to&&!t.explicit)return null;let c=[{label:"false"},{label:"true"},{label:"@now"}];K||c.push({label:"@collection.*",apply:"@collection."});const h=ie(!x,!x&&r.text.startsWith("@c"));for(const u of h)c.push({label:u.endsWith(".")?u+"*":u,apply:u});return{from:r.from,options:c}}function G(){return He.define(Me({start:[{regex:/true|false|null/,token:"atom"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/'(?:[^\\]|\\.)*?(?:'|$)/,token:"string"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\&\&|\|\||\=|\!\=|\~|\!\~|\>|\<|\>\=|\<\=/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0},{regex:/\w+[\w\.]*\w+/,token:"keyword"},{regex:q.escapeRegExp("@now"),token:"keyword"},{regex:q.escapeRegExp("@request.method"),token:"keyword"}]}))}ye(()=>{const t={key:"Enter",run:r=>{b&&p("submit",o)}};return V(),n(11,f=new S({parent:k,state:w.create({doc:o,extensions:[be(),ke(),xe(),Ke(),Ce(),w.allowMultipleSelections.of(!0),qe(De,{fallback:!0}),Se(),we(),Le(),Ie(),Ee.of([t,...Re,...Ae,Be.find(r=>r.key==="Mod-d"),...Oe,..._e]),S.lineWrapping,ve({override:[se],icons:!1}),T.of(Y(l)),M.of(S.editable.of(!s)),F.of(w.readOnly.of(s)),D.of(G()),w.transactionFilter.of(r=>b&&r.newDoc.lines>1?[]:r),S.updateListener.of(r=>{!r.docChanged||s||(n(1,o=r.state.doc.toString()),J())})]})})),()=>{clearTimeout(_),P(),f==null||f.destroy()}});function re(t){me[t?"unshift":"push"](()=>{k=t,n(0,k)})}return e.$$set=t=>{"id"in t&&n(2,d=t.id),"value"in t&&n(1,o=t.value),"disabled"in t&&n(3,s=t.disabled),"placeholder"in t&&n(4,l=t.placeholder),"baseCollection"in t&&n(5,a=t.baseCollection),"singleLine"in t&&n(6,b=t.singleLine),"extraAutocompleteKeys"in t&&n(7,R=t.extraAutocompleteKeys),"disableRequestKeys"in t&&n(8,x=t.disableRequestKeys),"disableIndirectCollectionsKeys"in t&&n(9,K=t.disableIndirectCollectionsKeys)},e.$$.update=()=>{e.$$.dirty[0]&32&&n(13,I=Pe(a)),e.$$.dirty[0]&25352&&!s&&(B!=I||x!==-1||K!==-1)&&(n(14,B=I),j()),e.$$.dirty[0]&4&&d&&V(),e.$$.dirty[0]&2080&&f&&a!=null&&a.schema&&f.dispatch({effects:[D.reconfigure(G())]}),e.$$.dirty[0]&6152&&f&&A!=s&&(f.dispatch({effects:[M.reconfigure(S.editable.of(!s)),F.reconfigure(w.readOnly.of(s))]}),n(12,A=s),J()),e.$$.dirty[0]&2050&&f&&o!=f.state.doc.toString()&&f.dispatch({changes:{from:0,to:f.state.doc.length,insert:o}}),e.$$.dirty[0]&2064&&f&&typeof l<"u"&&f.dispatch({effects:[T.reconfigure(Y(l))]})},[k,o,d,s,l,a,b,R,x,K,O,f,A,I,B,re]}class Qe extends oe{constructor(i){super(),ae(this,i,Ve,Je,le,{id:2,value:1,disabled:3,placeholder:4,baseCollection:5,singleLine:6,extraAutocompleteKeys:7,disableRequestKeys:8,disableIndirectCollectionsKeys:9,focus:10},null,[-1,-1])}get focus(){return this.$$.ctx[10]}}export{Qe as default}; diff --git a/ui/dist/assets/ListApiDocs-37e6e026.js b/ui/dist/assets/ListApiDocs-c09270cb.js similarity index 99% rename from ui/dist/assets/ListApiDocs-37e6e026.js rename to ui/dist/assets/ListApiDocs-c09270cb.js index a4a26a47..08e62f94 100644 --- a/ui/dist/assets/ListApiDocs-37e6e026.js +++ b/ui/dist/assets/ListApiDocs-c09270cb.js @@ -1,4 +1,4 @@ -import{S as Ke,i as Ve,s as We,e,b as s,E as Ye,f as i,g as u,u as Xe,y as De,o as m,w,h as t,M as $e,c as Zt,m as te,x as Ce,N as He,O as Ze,k as tl,P as el,n as ll,t as Gt,a as Ut,d as ee,Q as sl,T as nl,C as ge,p as ol,r as ke}from"./index-f81c5782.js";import{S as il}from"./SdkTabs-f541bf12.js";function al(c){let n,o,a;return{c(){n=e("span"),n.textContent="Show details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-down-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function rl(c){let n,o,a;return{c(){n=e("span"),n.textContent="Hide details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-up-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function Ie(c){let n,o,a,p,b,d,h,C,x,_,f,et,kt,jt,S,Qt,D,ct,O,lt,le,U,j,se,dt,vt,st,yt,ne,ft,pt,nt,E,zt,Ft,T,ot,Lt,Jt,At,Q,it,Tt,Kt,Pt,L,ut,Ot,oe,mt,ie,H,Rt,at,St,R,bt,ae,z,Et,Vt,Nt,re,N,Wt,J,ht,ce,I,de,B,fe,P,qt,K,_t,pe,xt,ue,$,Mt,rt,Dt,me,Ht,Xt,V,wt,be,It,he,Ct,_e,G,W,Yt,q,gt,A,xe,X,Y,y,Bt,Z,v,tt,k;return{c(){n=e("p"),n.innerHTML=`The syntax basically follows the format +import{S as Ke,i as Ve,s as We,e,b as s,E as Ye,f as i,g as u,u as Xe,y as De,o as m,w,h as t,M as $e,c as Zt,m as te,x as Ce,N as He,O as Ze,k as tl,P as el,n as ll,t as Gt,a as Ut,d as ee,Q as sl,T as nl,C as ge,p as ol,r as ke}from"./index-fae59489.js";import{S as il}from"./SdkTabs-bc0a52ba.js";function al(c){let n,o,a;return{c(){n=e("span"),n.textContent="Show details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-down-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function rl(c){let n,o,a;return{c(){n=e("span"),n.textContent="Hide details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-up-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function Ie(c){let n,o,a,p,b,d,h,C,x,_,f,et,kt,jt,S,Qt,D,ct,O,lt,le,U,j,se,dt,vt,st,yt,ne,ft,pt,nt,E,zt,Ft,T,ot,Lt,Jt,At,Q,it,Tt,Kt,Pt,L,ut,Ot,oe,mt,ie,H,Rt,at,St,R,bt,ae,z,Et,Vt,Nt,re,N,Wt,J,ht,ce,I,de,B,fe,P,qt,K,_t,pe,xt,ue,$,Mt,rt,Dt,me,Ht,Xt,V,wt,be,It,he,Ct,_e,G,W,Yt,q,gt,A,xe,X,Y,y,Bt,Z,v,tt,k;return{c(){n=e("p"),n.innerHTML=`The syntax basically follows the format OPERAND OPERATOR OPERAND, where:`,o=s(),a=e("ul"),p=e("li"),p.innerHTML=`OPERAND - could be any of the above field literal, string (single diff --git a/ui/dist/assets/ListExternalAuthsDocs-f5a8df1e.js b/ui/dist/assets/ListExternalAuthsDocs-7ba4a808.js similarity index 98% rename from ui/dist/assets/ListExternalAuthsDocs-f5a8df1e.js rename to ui/dist/assets/ListExternalAuthsDocs-7ba4a808.js index fbb5258e..56c036dc 100644 --- a/ui/dist/assets/ListExternalAuthsDocs-f5a8df1e.js +++ b/ui/dist/assets/ListExternalAuthsDocs-7ba4a808.js @@ -1,4 +1,4 @@ -import{S as Be,i as qe,s as Me,e as i,w as v,b as _,c as Se,f as b,g as d,h as s,m as Ee,x as U,N as Pe,O as Oe,k as Le,P as We,n as ze,t as te,a as le,o as u,d as Ie,T as De,C as He,p as Re,r as j,u as Ue,M as je}from"./index-f81c5782.js";import{S as Ne}from"./SdkTabs-f541bf12.js";function ye(a,l,o){const n=a.slice();return n[5]=l[o],n}function Ae(a,l,o){const n=a.slice();return n[5]=l[o],n}function Te(a,l){let o,n=l[5].code+"",f,h,c,p;function m(){return l[4](l[5])}return{key:a,first:null,c(){o=i("button"),f=v(n),h=_(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(g,P){d(g,o,P),s(o,f),s(o,h),c||(p=Ue(o,"click",m),c=!0)},p(g,P){l=g,P&4&&n!==(n=l[5].code+"")&&U(f,n),P&6&&j(o,"active",l[1]===l[5].code)},d(g){g&&u(o),c=!1,p()}}}function Ce(a,l){let o,n,f,h;return n=new je({props:{content:l[5].body}}),{key:a,first:null,c(){o=i("div"),Se(n.$$.fragment),f=_(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Ee(n,o,null),s(o,f),h=!0},p(c,p){l=c;const m={};p&4&&(m.content=l[5].body),n.$set(m),(!h||p&6)&&j(o,"active",l[1]===l[5].code)},i(c){h||(te(n.$$.fragment,c),h=!0)},o(c){le(n.$$.fragment,c),h=!1},d(c){c&&u(o),Ie(n)}}}function Ge(a){var be,he,_e,ke;let l,o,n=a[0].name+"",f,h,c,p,m,g,P,L=a[0].name+"",N,oe,se,G,K,y,F,S,J,$,W,ae,z,A,ne,Q,D=a[0].name+"",V,ie,X,ce,re,H,Y,E,Z,I,x,B,ee,T,q,w=[],de=new Map,ue,M,k=[],pe=new Map,C;y=new Ne({props:{js:` +import{S as Be,i as qe,s as Me,e as i,w as v,b as _,c as Se,f as b,g as d,h as s,m as Ee,x as U,N as Pe,O as Oe,k as Le,P as We,n as ze,t as te,a as le,o as u,d as Ie,T as De,C as He,p as Re,r as j,u as Ue,M as je}from"./index-fae59489.js";import{S as Ne}from"./SdkTabs-bc0a52ba.js";function ye(a,l,o){const n=a.slice();return n[5]=l[o],n}function Ae(a,l,o){const n=a.slice();return n[5]=l[o],n}function Te(a,l){let o,n=l[5].code+"",f,h,c,p;function m(){return l[4](l[5])}return{key:a,first:null,c(){o=i("button"),f=v(n),h=_(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(g,P){d(g,o,P),s(o,f),s(o,h),c||(p=Ue(o,"click",m),c=!0)},p(g,P){l=g,P&4&&n!==(n=l[5].code+"")&&U(f,n),P&6&&j(o,"active",l[1]===l[5].code)},d(g){g&&u(o),c=!1,p()}}}function Ce(a,l){let o,n,f,h;return n=new je({props:{content:l[5].body}}),{key:a,first:null,c(){o=i("div"),Se(n.$$.fragment),f=_(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Ee(n,o,null),s(o,f),h=!0},p(c,p){l=c;const m={};p&4&&(m.content=l[5].body),n.$set(m),(!h||p&6)&&j(o,"active",l[1]===l[5].code)},i(c){h||(te(n.$$.fragment,c),h=!0)},o(c){le(n.$$.fragment,c),h=!1},d(c){c&&u(o),Ie(n)}}}function Ge(a){var be,he,_e,ke;let l,o,n=a[0].name+"",f,h,c,p,m,g,P,L=a[0].name+"",N,oe,se,G,K,y,F,S,J,$,W,ae,z,A,ne,Q,D=a[0].name+"",V,ie,X,ce,re,H,Y,E,Z,I,x,B,ee,T,q,w=[],de=new Map,ue,M,k=[],pe=new Map,C;y=new Ne({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/PageAdminConfirmPasswordReset-1660953a.js b/ui/dist/assets/PageAdminConfirmPasswordReset-ececf096.js similarity index 98% rename from ui/dist/assets/PageAdminConfirmPasswordReset-1660953a.js rename to ui/dist/assets/PageAdminConfirmPasswordReset-ececf096.js index c0c696d0..b0b4d25a 100644 --- a/ui/dist/assets/PageAdminConfirmPasswordReset-1660953a.js +++ b/ui/dist/assets/PageAdminConfirmPasswordReset-ececf096.js @@ -1,2 +1,2 @@ -import{S as E,i as G,s as I,F as K,c as A,m as B,t as H,a as N,d as T,C as M,q as J,e as c,w as q,b as C,f as u,r as L,g as b,h as _,u as h,v as O,j as Q,l as U,o as w,A as V,p as W,B as X,D as Y,x as Z,z as S}from"./index-f81c5782.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&Z(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=h(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=h(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,R,P,v,k,F,j,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password +import{S as E,i as G,s as I,F as K,c as A,m as B,t as H,a as N,d as T,C as M,q as J,e as c,w as q,b as C,f as u,r as L,g as b,h as _,u as h,v as O,j as Q,l as U,o as w,A as V,p as W,B as X,D as Y,x as Z,z as S}from"./index-fae59489.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&Z(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=h(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=h(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,R,P,v,k,F,j,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password `),m&&m.c(),t=C(),A(r.$$.fragment),p=C(),A(d.$$.fragment),n=C(),i=c("button"),g=c("span"),g.textContent="Set new password",R=C(),P=c("div"),v=c("a"),v.textContent="Back to login",u(s,"class","m-b-xs"),u(o,"class","content txt-center m-b-sm"),u(g,"class","txt"),u(i,"type","submit"),u(i,"class","btn btn-lg btn-block"),i.disabled=f[2],L(i,"btn-loading",f[2]),u(e,"class","m-b-base"),u(v,"href","/login"),u(v,"class","link-hint"),u(P,"class","content txt-center")},m(a,$){b(a,e,$),_(e,o),_(o,s),_(s,l),m&&m.m(s,null),_(e,t),B(r,e,null),_(e,p),B(d,e,null),_(e,n),_(e,i),_(i,g),b(a,R,$),b(a,P,$),_(P,v),k=!0,F||(j=[h(e,"submit",O(f[4])),Q(U.call(null,v))],F=!0)},p(a,$){a[3]?m?m.p(a,$):(m=y(a),m.c(),m.m(s,null)):m&&(m.d(1),m=null);const z={};$&769&&(z.$$scope={dirty:$,ctx:a}),r.$set(z);const D={};$&770&&(D.$$scope={dirty:$,ctx:a}),d.$set(D),(!k||$&4)&&(i.disabled=a[2]),(!k||$&4)&&L(i,"btn-loading",a[2])},i(a){k||(H(r.$$.fragment,a),H(d.$$.fragment,a),k=!0)},o(a){N(r.$$.fragment,a),N(d.$$.fragment,a),k=!1},d(a){a&&w(e),m&&m.d(),T(r),T(d),a&&w(R),a&&w(P),F=!1,V(j)}}}function se(f){let e,o;return e=new K({props:{$$slots:{default:[te]},$$scope:{ctx:f}}}),{c(){A(e.$$.fragment)},m(s,l){B(e,s,l),o=!0},p(s,[l]){const t={};l&527&&(t.$$scope={dirty:l,ctx:s}),e.$set(t)},i(s){o||(H(e.$$.fragment,s),o=!0)},o(s){N(e.$$.fragment,s),o=!1},d(s){T(e,s)}}}function le(f,e,o){let s,{params:l}=e,t="",r="",p=!1;async function d(){if(!p){o(2,p=!0);try{await W.admins.confirmPasswordReset(l==null?void 0:l.token,t,r),X("Successfully set a new admin password."),Y("/")}catch(g){W.errorResponseHandler(g)}o(2,p=!1)}}function n(){t=this.value,o(0,t)}function i(){r=this.value,o(1,r)}return f.$$set=g=>{"params"in g&&o(5,l=g.params)},f.$$.update=()=>{f.$$.dirty&32&&o(3,s=M.getJWTPayload(l==null?void 0:l.token).email||"")},[t,r,p,s,d,l,n,i]}class ae extends E{constructor(e){super(),G(this,e,le,se,I,{params:5})}}export{ae as default}; diff --git a/ui/dist/assets/PageAdminRequestPasswordReset-3fef4398.js b/ui/dist/assets/PageAdminRequestPasswordReset-20a5aa5c.js similarity index 98% rename from ui/dist/assets/PageAdminRequestPasswordReset-3fef4398.js rename to ui/dist/assets/PageAdminRequestPasswordReset-20a5aa5c.js index 189526b0..8f104fdb 100644 --- a/ui/dist/assets/PageAdminRequestPasswordReset-3fef4398.js +++ b/ui/dist/assets/PageAdminRequestPasswordReset-20a5aa5c.js @@ -1,2 +1,2 @@ -import{S as M,i as T,s as j,F as z,c as H,m as L,t as w,a as y,d as S,b as g,e as _,f as p,g as k,h as d,j as A,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as E,v as I,w as h,x as J,y as P,z as R}from"./index-f81c5782.js";function K(c){let e,s,n,l,t,o,f,m,i,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

+import{S as M,i as T,s as j,F as z,c as H,m as L,t as w,a as y,d as S,b as g,e as _,f as p,g as k,h as d,j as A,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as E,v as I,w as h,x as J,y as P,z as R}from"./index-fae59489.js";function K(c){let e,s,n,l,t,o,f,m,i,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

Enter the email associated with your account and we’ll send you a recovery link:

`,n=g(),H(l.$$.fragment),t=g(),o=_("button"),f=_("i"),m=g(),i=_("span"),i.textContent="Send recovery link",p(s,"class","content txt-center m-b-sm"),p(f,"class","ri-mail-send-line"),p(i,"class","txt"),p(o,"type","submit"),p(o,"class","btn btn-lg btn-block"),o.disabled=c[1],F(o,"btn-loading",c[1]),p(e,"class","m-b-base")},m(r,$){k(r,e,$),d(e,s),d(e,n),L(l,e,null),d(e,t),d(e,o),d(o,f),d(o,m),d(o,i),a=!0,b||(u=E(e,"submit",I(c[3])),b=!0)},p(r,$){const q={};$&97&&(q.$$scope={dirty:$,ctx:r}),l.$set(q),(!a||$&2)&&(o.disabled=r[1]),(!a||$&2)&&F(o,"btn-loading",r[1])},i(r){a||(w(l.$$.fragment,r),a=!0)},o(r){y(l.$$.fragment,r),a=!1},d(r){r&&v(e),S(l),b=!1,u()}}}function O(c){let e,s,n,l,t,o,f,m,i;return{c(){e=_("div"),s=_("div"),s.innerHTML='',n=g(),l=_("div"),t=_("p"),o=h("Check "),f=_("strong"),m=h(c[0]),i=h(" for the recovery link."),p(s,"class","icon"),p(f,"class","txt-nowrap"),p(l,"class","content"),p(e,"class","alert alert-success")},m(a,b){k(a,e,b),d(e,s),d(e,n),d(e,l),d(l,t),d(t,o),d(t,f),d(f,m),d(t,i)},p(a,b){b&1&&J(m,a[0])},i:P,o:P,d(a){a&&v(e)}}}function Q(c){let e,s,n,l,t,o,f,m;return{c(){e=_("label"),s=h("Email"),l=g(),t=_("input"),p(e,"for",n=c[5]),p(t,"type","email"),p(t,"id",o=c[5]),t.required=!0,t.autofocus=!0},m(i,a){k(i,e,a),d(e,s),k(i,l,a),k(i,t,a),R(t,c[0]),t.focus(),f||(m=E(t,"input",c[4]),f=!0)},p(i,a){a&32&&n!==(n=i[5])&&p(e,"for",n),a&32&&o!==(o=i[5])&&p(t,"id",o),a&1&&t.value!==i[0]&&R(t,i[0])},d(i){i&&v(e),i&&v(l),i&&v(t),f=!1,m()}}}function U(c){let e,s,n,l,t,o,f,m;const i=[O,K],a=[];function b(u,r){return u[2]?0:1}return e=b(c),s=a[e]=i[e](c),{c(){s.c(),n=g(),l=_("div"),t=_("a"),t.textContent="Back to login",p(t,"href","/login"),p(t,"class","link-hint"),p(l,"class","content txt-center")},m(u,r){a[e].m(u,r),k(u,n,r),k(u,l,r),d(l,t),o=!0,f||(m=A(B.call(null,t)),f=!0)},p(u,r){let $=e;e=b(u),e===$?a[e].p(u,r):(N(),y(a[$],1,1,()=>{a[$]=null}),D(),s=a[e],s?s.p(u,r):(s=a[e]=i[e](u),s.c()),w(s,1),s.m(n.parentNode,n))},i(u){o||(w(s),o=!0)},o(u){y(s),o=!1},d(u){a[e].d(u),u&&v(n),u&&v(l),f=!1,m()}}}function V(c){let e,s;return e=new z({props:{$$slots:{default:[U]},$$scope:{ctx:c}}}),{c(){H(e.$$.fragment)},m(n,l){L(e,n,l),s=!0},p(n,[l]){const t={};l&71&&(t.$$scope={dirty:l,ctx:n}),e.$set(t)},i(n){s||(w(e.$$.fragment,n),s=!0)},o(n){y(e.$$.fragment,n),s=!1},d(n){S(e,n)}}}function W(c,e,s){let n="",l=!1,t=!1;async function o(){if(!l){s(1,l=!0);try{await C.admins.requestPasswordReset(n),s(2,t=!0)}catch(m){C.errorResponseHandler(m)}s(1,l=!1)}}function f(){n=this.value,s(0,n)}return[n,l,t,o,f]}class Y extends M{constructor(e){super(),T(this,e,W,V,j,{})}}export{Y as default}; diff --git a/ui/dist/assets/PageOAuth2Redirect-a5e8ebbd.js b/ui/dist/assets/PageOAuth2Redirect-45684932.js similarity index 87% rename from ui/dist/assets/PageOAuth2Redirect-a5e8ebbd.js rename to ui/dist/assets/PageOAuth2Redirect-45684932.js index 7f478a6c..08d40449 100644 --- a/ui/dist/assets/PageOAuth2Redirect-a5e8ebbd.js +++ b/ui/dist/assets/PageOAuth2Redirect-45684932.js @@ -1,2 +1,2 @@ -import{S as o,i,s as c,e as r,f as l,g as u,y as s,o as d,H as h}from"./index-f81c5782.js";function f(n){let t;return{c(){t=r("div"),t.innerHTML=`

Auth completed.

+import{S as o,i,s as c,e as r,f as l,g as u,y as s,o as d,H as h}from"./index-fae59489.js";function f(n){let t;return{c(){t=r("div"),t.innerHTML=`

Auth completed.

You can go back to the app if this window is not automatically closed.
`,l(t,"class","content txt-hint txt-center p-base")},m(e,a){u(e,t,a)},p:s,i:s,o:s,d(e){e&&d(t)}}}function m(n){return h(()=>{window.close()}),[]}class x extends o{constructor(t){super(),i(this,t,m,f,c,{})}}export{x as default}; diff --git a/ui/dist/assets/PageRecordConfirmEmailChange-3ff2bfd1.js b/ui/dist/assets/PageRecordConfirmEmailChange-f437f931.js similarity index 83% rename from ui/dist/assets/PageRecordConfirmEmailChange-3ff2bfd1.js rename to ui/dist/assets/PageRecordConfirmEmailChange-f437f931.js index 33e45107..39618020 100644 --- a/ui/dist/assets/PageRecordConfirmEmailChange-3ff2bfd1.js +++ b/ui/dist/assets/PageRecordConfirmEmailChange-f437f931.js @@ -1,4 +1,4 @@ -import{S as z,i as G,s as I,F as J,c as R,m as S,t as v,a as y,d as L,C as M,E as N,g as _,k as W,n as Y,o as b,R as j,G as A,p as B,q as D,e as m,w as C,b as h,f as d,r as T,h as k,u as P,v as K,y as E,x as O,z as F}from"./index-f81c5782.js";function Q(r){let e,t,l,s,n,o,c,a,i,u,g,$,p=r[3]&&H(r);return o=new D({props:{class:"form-field required",name:"password",$$slots:{default:[V,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),t=m("div"),l=m("h5"),s=C(`Type your password to confirm changing your email address +import{S as z,i as G,s as I,F as J,c as R,m as S,t as v,a as y,d as L,C as M,E as N,g as _,k as W,n as Y,o as b,R as j,G as A,p as B,q as D,e as m,w as C,b as h,f as d,r as T,h as k,u as P,v as K,y as E,x as O,z as F}from"./index-fae59489.js";function Q(r){let e,t,l,s,n,o,c,a,i,u,g,$,p=r[3]&&H(r);return o=new D({props:{class:"form-field required",name:"password",$$slots:{default:[V,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),t=m("div"),l=m("h5"),s=C(`Type your password to confirm changing your email address `),p&&p.c(),n=h(),R(o.$$.fragment),c=h(),a=m("button"),i=m("span"),i.textContent="Confirm new email",d(t,"class","content txt-center m-b-base"),d(i,"class","txt"),d(a,"type","submit"),d(a,"class","btn btn-lg btn-block"),a.disabled=r[1],T(a,"btn-loading",r[1])},m(f,w){_(f,e,w),k(e,t),k(t,l),k(l,s),p&&p.m(l,null),k(e,n),S(o,e,null),k(e,c),k(e,a),k(a,i),u=!0,g||($=P(e,"submit",K(r[4])),g=!0)},p(f,w){f[3]?p?p.p(f,w):(p=H(f),p.c(),p.m(l,null)):p&&(p.d(1),p=null);const q={};w&769&&(q.$$scope={dirty:w,ctx:f}),o.$set(q),(!u||w&2)&&(a.disabled=f[1]),(!u||w&2)&&T(a,"btn-loading",f[1])},i(f){u||(v(o.$$.fragment,f),u=!0)},o(f){y(o.$$.fragment,f),u=!1},d(f){f&&b(e),p&&p.d(),L(o),g=!1,$()}}}function U(r){let e,t,l,s,n;return{c(){e=m("div"),e.innerHTML=`

Successfully changed the user email address.

-

You can now sign in with your new email address.

`,t=h(),l=m("button"),l.textContent="Close",d(e,"class","alert alert-success"),d(l,"type","button"),d(l,"class","btn btn-transparent btn-block")},m(o,c){_(o,e,c),_(o,t,c),_(o,l,c),s||(n=P(l,"click",r[6]),s=!0)},p:E,i:E,o:E,d(o){o&&b(e),o&&b(t),o&&b(l),s=!1,n()}}}function H(r){let e,t,l;return{c(){e=C("to "),t=m("strong"),l=C(r[3]),d(t,"class","txt-nowrap")},m(s,n){_(s,e,n),_(s,t,n),k(t,l)},p(s,n){n&8&&O(l,s[3])},d(s){s&&b(e),s&&b(t)}}}function V(r){let e,t,l,s,n,o,c,a;return{c(){e=m("label"),t=C("Password"),s=h(),n=m("input"),d(e,"for",l=r[8]),d(n,"type","password"),d(n,"id",o=r[8]),n.required=!0,n.autofocus=!0},m(i,u){_(i,e,u),k(e,t),_(i,s,u),_(i,n,u),F(n,r[0]),n.focus(),c||(a=P(n,"input",r[7]),c=!0)},p(i,u){u&256&&l!==(l=i[8])&&d(e,"for",l),u&256&&o!==(o=i[8])&&d(n,"id",o),u&1&&n.value!==i[0]&&F(n,i[0])},d(i){i&&b(e),i&&b(s),i&&b(n),c=!1,a()}}}function X(r){let e,t,l,s;const n=[U,Q],o=[];function c(a,i){return a[2]?0:1}return e=c(r),t=o[e]=n[e](r),{c(){t.c(),l=N()},m(a,i){o[e].m(a,i),_(a,l,i),s=!0},p(a,i){let u=e;e=c(a),e===u?o[e].p(a,i):(W(),y(o[u],1,1,()=>{o[u]=null}),Y(),t=o[e],t?t.p(a,i):(t=o[e]=n[e](a),t.c()),v(t,1),t.m(l.parentNode,l))},i(a){s||(v(t),s=!0)},o(a){y(t),s=!1},d(a){o[e].d(a),a&&b(l)}}}function Z(r){let e,t;return e=new J({props:{nobranding:!0,$$slots:{default:[X]},$$scope:{ctx:r}}}),{c(){R(e.$$.fragment)},m(l,s){S(e,l,s),t=!0},p(l,[s]){const n={};s&527&&(n.$$scope={dirty:s,ctx:l}),e.$set(n)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){y(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function x(r,e,t){let l,{params:s}=e,n="",o=!1,c=!1;async function a(){if(o)return;t(1,o=!0);const g=new j("/");try{const $=A(s==null?void 0:s.token);await g.collection($.collectionId).confirmEmailChange(s==null?void 0:s.token,n),t(2,c=!0)}catch($){B.errorResponseHandler($)}t(1,o=!1)}const i=()=>window.close();function u(){n=this.value,t(0,n)}return r.$$set=g=>{"params"in g&&t(5,s=g.params)},r.$$.update=()=>{r.$$.dirty&32&&t(3,l=M.getJWTPayload(s==null?void 0:s.token).newEmail||"")},[n,o,c,l,a,s,i,u]}class te extends z{constructor(e){super(),G(this,e,x,Z,I,{params:5})}}export{te as default}; +

You can now sign in with your new email address.

`,t=h(),l=m("button"),l.textContent="Close",d(e,"class","alert alert-success"),d(l,"type","button"),d(l,"class","btn btn-transparent btn-block")},m(o,c){_(o,e,c),_(o,t,c),_(o,l,c),s||(n=P(l,"click",r[6]),s=!0)},p:E,i:E,o:E,d(o){o&&b(e),o&&b(t),o&&b(l),s=!1,n()}}}function H(r){let e,t,l;return{c(){e=C("to "),t=m("strong"),l=C(r[3]),d(t,"class","txt-nowrap")},m(s,n){_(s,e,n),_(s,t,n),k(t,l)},p(s,n){n&8&&O(l,s[3])},d(s){s&&b(e),s&&b(t)}}}function V(r){let e,t,l,s,n,o,c,a;return{c(){e=m("label"),t=C("Password"),s=h(),n=m("input"),d(e,"for",l=r[8]),d(n,"type","password"),d(n,"id",o=r[8]),n.required=!0,n.autofocus=!0},m(i,u){_(i,e,u),k(e,t),_(i,s,u),_(i,n,u),F(n,r[0]),n.focus(),c||(a=P(n,"input",r[7]),c=!0)},p(i,u){u&256&&l!==(l=i[8])&&d(e,"for",l),u&256&&o!==(o=i[8])&&d(n,"id",o),u&1&&n.value!==i[0]&&F(n,i[0])},d(i){i&&b(e),i&&b(s),i&&b(n),c=!1,a()}}}function X(r){let e,t,l,s;const n=[U,Q],o=[];function c(a,i){return a[2]?0:1}return e=c(r),t=o[e]=n[e](r),{c(){t.c(),l=N()},m(a,i){o[e].m(a,i),_(a,l,i),s=!0},p(a,i){let u=e;e=c(a),e===u?o[e].p(a,i):(W(),y(o[u],1,1,()=>{o[u]=null}),Y(),t=o[e],t?t.p(a,i):(t=o[e]=n[e](a),t.c()),v(t,1),t.m(l.parentNode,l))},i(a){s||(v(t),s=!0)},o(a){y(t),s=!1},d(a){o[e].d(a),a&&b(l)}}}function Z(r){let e,t;return e=new J({props:{nobranding:!0,$$slots:{default:[X]},$$scope:{ctx:r}}}),{c(){R(e.$$.fragment)},m(l,s){S(e,l,s),t=!0},p(l,[s]){const n={};s&527&&(n.$$scope={dirty:s,ctx:l}),e.$set(n)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){y(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function x(r,e,t){let l,{params:s}=e,n="",o=!1,c=!1;async function a(){if(o)return;t(1,o=!0);const g=new j("../");try{const $=A(s==null?void 0:s.token);await g.collection($.collectionId).confirmEmailChange(s==null?void 0:s.token,n),t(2,c=!0)}catch($){B.errorResponseHandler($)}t(1,o=!1)}const i=()=>window.close();function u(){n=this.value,t(0,n)}return r.$$set=g=>{"params"in g&&t(5,s=g.params)},r.$$.update=()=>{r.$$.dirty&32&&t(3,l=M.getJWTPayload(s==null?void 0:s.token).newEmail||"")},[n,o,c,l,a,s,i,u]}class te extends z{constructor(e){super(),G(this,e,x,Z,I,{params:5})}}export{te as default}; diff --git a/ui/dist/assets/PageRecordConfirmPasswordReset-527f0d01.js b/ui/dist/assets/PageRecordConfirmPasswordReset-de720f67.js similarity index 85% rename from ui/dist/assets/PageRecordConfirmPasswordReset-527f0d01.js rename to ui/dist/assets/PageRecordConfirmPasswordReset-de720f67.js index 54ea9667..a44aaced 100644 --- a/ui/dist/assets/PageRecordConfirmPasswordReset-527f0d01.js +++ b/ui/dist/assets/PageRecordConfirmPasswordReset-de720f67.js @@ -1,4 +1,4 @@ -import{S as J,i as M,s as W,F as Y,c as H,m as N,t as y,a as q,d as T,C as j,E as A,g as _,k as B,n as D,o as m,R as K,G as O,p as Q,q as E,e as b,w as R,b as P,f as p,r as G,h as w,u as S,v as U,y as F,x as V,z as h}from"./index-f81c5782.js";function X(r){let e,l,s,n,t,o,c,a,i,u,v,k,g,C,d=r[4]&&I(r);return o=new E({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),a=new E({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),{c(){e=b("form"),l=b("div"),s=b("h5"),n=R(`Reset your user password +import{S as J,i as M,s as W,F as Y,c as H,m as N,t as y,a as q,d as T,C as j,E as A,g as _,k as B,n as D,o as m,R as K,G as O,p as Q,q as E,e as b,w as R,b as P,f as p,r as G,h as w,u as S,v as U,y as F,x as V,z as h}from"./index-fae59489.js";function X(r){let e,l,s,n,t,o,c,a,i,u,v,k,g,C,d=r[4]&&I(r);return o=new E({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),a=new E({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),{c(){e=b("form"),l=b("div"),s=b("h5"),n=R(`Reset your user password `),d&&d.c(),t=P(),H(o.$$.fragment),c=P(),H(a.$$.fragment),i=P(),u=b("button"),v=b("span"),v.textContent="Set new password",p(l,"class","content txt-center m-b-base"),p(v,"class","txt"),p(u,"type","submit"),p(u,"class","btn btn-lg btn-block"),u.disabled=r[2],G(u,"btn-loading",r[2])},m(f,$){_(f,e,$),w(e,l),w(l,s),w(s,n),d&&d.m(s,null),w(e,t),N(o,e,null),w(e,c),N(a,e,null),w(e,i),w(e,u),w(u,v),k=!0,g||(C=S(e,"submit",U(r[5])),g=!0)},p(f,$){f[4]?d?d.p(f,$):(d=I(f),d.c(),d.m(s,null)):d&&(d.d(1),d=null);const L={};$&3073&&(L.$$scope={dirty:$,ctx:f}),o.$set(L);const z={};$&3074&&(z.$$scope={dirty:$,ctx:f}),a.$set(z),(!k||$&4)&&(u.disabled=f[2]),(!k||$&4)&&G(u,"btn-loading",f[2])},i(f){k||(y(o.$$.fragment,f),y(a.$$.fragment,f),k=!0)},o(f){q(o.$$.fragment,f),q(a.$$.fragment,f),k=!1},d(f){f&&m(e),d&&d.d(),T(o),T(a),g=!1,C()}}}function Z(r){let e,l,s,n,t;return{c(){e=b("div"),e.innerHTML=`

Successfully changed the user password.

-

You can now sign in with your new password.

`,l=P(),s=b("button"),s.textContent="Close",p(e,"class","alert alert-success"),p(s,"type","button"),p(s,"class","btn btn-transparent btn-block")},m(o,c){_(o,e,c),_(o,l,c),_(o,s,c),n||(t=S(s,"click",r[7]),n=!0)},p:F,i:F,o:F,d(o){o&&m(e),o&&m(l),o&&m(s),n=!1,t()}}}function I(r){let e,l,s;return{c(){e=R("for "),l=b("strong"),s=R(r[4])},m(n,t){_(n,e,t),_(n,l,t),w(l,s)},p(n,t){t&16&&V(s,n[4])},d(n){n&&m(e),n&&m(l)}}}function x(r){let e,l,s,n,t,o,c,a;return{c(){e=b("label"),l=R("New password"),n=P(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0,t.autofocus=!0},m(i,u){_(i,e,u),w(e,l),_(i,n,u),_(i,t,u),h(t,r[0]),t.focus(),c||(a=S(t,"input",r[8]),c=!0)},p(i,u){u&1024&&s!==(s=i[10])&&p(e,"for",s),u&1024&&o!==(o=i[10])&&p(t,"id",o),u&1&&t.value!==i[0]&&h(t,i[0])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,a()}}}function ee(r){let e,l,s,n,t,o,c,a;return{c(){e=b("label"),l=R("New password confirm"),n=P(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0},m(i,u){_(i,e,u),w(e,l),_(i,n,u),_(i,t,u),h(t,r[1]),c||(a=S(t,"input",r[9]),c=!0)},p(i,u){u&1024&&s!==(s=i[10])&&p(e,"for",s),u&1024&&o!==(o=i[10])&&p(t,"id",o),u&2&&t.value!==i[1]&&h(t,i[1])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,a()}}}function te(r){let e,l,s,n;const t=[Z,X],o=[];function c(a,i){return a[3]?0:1}return e=c(r),l=o[e]=t[e](r),{c(){l.c(),s=A()},m(a,i){o[e].m(a,i),_(a,s,i),n=!0},p(a,i){let u=e;e=c(a),e===u?o[e].p(a,i):(B(),q(o[u],1,1,()=>{o[u]=null}),D(),l=o[e],l?l.p(a,i):(l=o[e]=t[e](a),l.c()),y(l,1),l.m(s.parentNode,s))},i(a){n||(y(l),n=!0)},o(a){q(l),n=!1},d(a){o[e].d(a),a&&m(s)}}}function se(r){let e,l;return e=new Y({props:{nobranding:!0,$$slots:{default:[te]},$$scope:{ctx:r}}}),{c(){H(e.$$.fragment)},m(s,n){N(e,s,n),l=!0},p(s,[n]){const t={};n&2079&&(t.$$scope={dirty:n,ctx:s}),e.$set(t)},i(s){l||(y(e.$$.fragment,s),l=!0)},o(s){q(e.$$.fragment,s),l=!1},d(s){T(e,s)}}}function le(r,e,l){let s,{params:n}=e,t="",o="",c=!1,a=!1;async function i(){if(c)return;l(2,c=!0);const g=new K("/");try{const C=O(n==null?void 0:n.token);await g.collection(C.collectionId).confirmPasswordReset(n==null?void 0:n.token,t,o),l(3,a=!0)}catch(C){Q.errorResponseHandler(C)}l(2,c=!1)}const u=()=>window.close();function v(){t=this.value,l(0,t)}function k(){o=this.value,l(1,o)}return r.$$set=g=>{"params"in g&&l(6,n=g.params)},r.$$.update=()=>{r.$$.dirty&64&&l(4,s=j.getJWTPayload(n==null?void 0:n.token).email||"")},[t,o,c,a,s,i,n,u,v,k]}class oe extends J{constructor(e){super(),M(this,e,le,se,W,{params:6})}}export{oe as default}; +

You can now sign in with your new password.

`,l=P(),s=b("button"),s.textContent="Close",p(e,"class","alert alert-success"),p(s,"type","button"),p(s,"class","btn btn-transparent btn-block")},m(o,c){_(o,e,c),_(o,l,c),_(o,s,c),n||(t=S(s,"click",r[7]),n=!0)},p:F,i:F,o:F,d(o){o&&m(e),o&&m(l),o&&m(s),n=!1,t()}}}function I(r){let e,l,s;return{c(){e=R("for "),l=b("strong"),s=R(r[4])},m(n,t){_(n,e,t),_(n,l,t),w(l,s)},p(n,t){t&16&&V(s,n[4])},d(n){n&&m(e),n&&m(l)}}}function x(r){let e,l,s,n,t,o,c,a;return{c(){e=b("label"),l=R("New password"),n=P(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0,t.autofocus=!0},m(i,u){_(i,e,u),w(e,l),_(i,n,u),_(i,t,u),h(t,r[0]),t.focus(),c||(a=S(t,"input",r[8]),c=!0)},p(i,u){u&1024&&s!==(s=i[10])&&p(e,"for",s),u&1024&&o!==(o=i[10])&&p(t,"id",o),u&1&&t.value!==i[0]&&h(t,i[0])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,a()}}}function ee(r){let e,l,s,n,t,o,c,a;return{c(){e=b("label"),l=R("New password confirm"),n=P(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0},m(i,u){_(i,e,u),w(e,l),_(i,n,u),_(i,t,u),h(t,r[1]),c||(a=S(t,"input",r[9]),c=!0)},p(i,u){u&1024&&s!==(s=i[10])&&p(e,"for",s),u&1024&&o!==(o=i[10])&&p(t,"id",o),u&2&&t.value!==i[1]&&h(t,i[1])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,a()}}}function te(r){let e,l,s,n;const t=[Z,X],o=[];function c(a,i){return a[3]?0:1}return e=c(r),l=o[e]=t[e](r),{c(){l.c(),s=A()},m(a,i){o[e].m(a,i),_(a,s,i),n=!0},p(a,i){let u=e;e=c(a),e===u?o[e].p(a,i):(B(),q(o[u],1,1,()=>{o[u]=null}),D(),l=o[e],l?l.p(a,i):(l=o[e]=t[e](a),l.c()),y(l,1),l.m(s.parentNode,s))},i(a){n||(y(l),n=!0)},o(a){q(l),n=!1},d(a){o[e].d(a),a&&m(s)}}}function se(r){let e,l;return e=new Y({props:{nobranding:!0,$$slots:{default:[te]},$$scope:{ctx:r}}}),{c(){H(e.$$.fragment)},m(s,n){N(e,s,n),l=!0},p(s,[n]){const t={};n&2079&&(t.$$scope={dirty:n,ctx:s}),e.$set(t)},i(s){l||(y(e.$$.fragment,s),l=!0)},o(s){q(e.$$.fragment,s),l=!1},d(s){T(e,s)}}}function le(r,e,l){let s,{params:n}=e,t="",o="",c=!1,a=!1;async function i(){if(c)return;l(2,c=!0);const g=new K("../");try{const C=O(n==null?void 0:n.token);await g.collection(C.collectionId).confirmPasswordReset(n==null?void 0:n.token,t,o),l(3,a=!0)}catch(C){Q.errorResponseHandler(C)}l(2,c=!1)}const u=()=>window.close();function v(){t=this.value,l(0,t)}function k(){o=this.value,l(1,o)}return r.$$set=g=>{"params"in g&&l(6,n=g.params)},r.$$.update=()=>{r.$$.dirty&64&&l(4,s=j.getJWTPayload(n==null?void 0:n.token).email||"")},[t,o,c,a,s,i,n,u,v,k]}class oe extends J{constructor(e){super(),M(this,e,le,se,W,{params:6})}}export{oe as default}; diff --git a/ui/dist/assets/PageRecordConfirmVerification-15580e3b.js b/ui/dist/assets/PageRecordConfirmVerification-8fbbaaca.js similarity index 79% rename from ui/dist/assets/PageRecordConfirmVerification-15580e3b.js rename to ui/dist/assets/PageRecordConfirmVerification-8fbbaaca.js index 11ece7f9..a3674ee9 100644 --- a/ui/dist/assets/PageRecordConfirmVerification-15580e3b.js +++ b/ui/dist/assets/PageRecordConfirmVerification-8fbbaaca.js @@ -1,3 +1,3 @@ -import{S as v,i as y,s as w,F as g,c as x,m as C,t as $,a as L,d as P,R as T,G as H,E as M,g as r,o as a,e as u,b as _,f,u as b,y as p}from"./index-f81c5782.js";function S(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`
+import{S as v,i as y,s as w,F as g,c as x,m as C,t as $,a as L,d as P,R as T,G as H,E as M,g as r,o as a,e as u,b as _,f,u as b,y as p}from"./index-fae59489.js";function S(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`

Invalid or expired verification token.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-danger"),f(e,"type","button"),f(e,"class","btn btn-transparent btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[4]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function F(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`
-

Successfully verified email address.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-success"),f(e,"type","button"),f(e,"class","btn btn-transparent btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[3]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function I(o){let t;return{c(){t=u("div"),t.innerHTML='
Please wait...
',f(t,"class","txt-center")},m(s,e){r(s,t,e)},p,d(s){s&&a(t)}}}function R(o){let t;function s(l,i){return l[1]?I:l[0]?F:S}let e=s(o),n=e(o);return{c(){n.c(),t=M()},m(l,i){n.m(l,i),r(l,t,i)},p(l,i){e===(e=s(l))&&n?n.p(l,i):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},d(l){n.d(l),l&&a(t)}}}function V(o){let t,s;return t=new g({props:{nobranding:!0,$$slots:{default:[R]},$$scope:{ctx:o}}}),{c(){x(t.$$.fragment)},m(e,n){C(t,e,n),s=!0},p(e,[n]){const l={};n&67&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){s||($(t.$$.fragment,e),s=!0)},o(e){L(t.$$.fragment,e),s=!1},d(e){P(t,e)}}}function q(o,t,s){let{params:e}=t,n=!1,l=!1;i();async function i(){s(1,l=!0);const d=new T("/");try{const m=H(e==null?void 0:e.token);await d.collection(m.collectionId).confirmVerification(e==null?void 0:e.token),s(0,n=!0)}catch{s(0,n=!1)}s(1,l=!1)}const c=()=>window.close(),k=()=>window.close();return o.$$set=d=>{"params"in d&&s(2,e=d.params)},[n,l,e,c,k]}class G extends v{constructor(t){super(),y(this,t,q,V,w,{params:2})}}export{G as default}; +

Successfully verified email address.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-success"),f(e,"type","button"),f(e,"class","btn btn-transparent btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[3]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function I(o){let t;return{c(){t=u("div"),t.innerHTML='
Please wait...
',f(t,"class","txt-center")},m(s,e){r(s,t,e)},p,d(s){s&&a(t)}}}function R(o){let t;function s(l,i){return l[1]?I:l[0]?F:S}let e=s(o),n=e(o);return{c(){n.c(),t=M()},m(l,i){n.m(l,i),r(l,t,i)},p(l,i){e===(e=s(l))&&n?n.p(l,i):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},d(l){n.d(l),l&&a(t)}}}function V(o){let t,s;return t=new g({props:{nobranding:!0,$$slots:{default:[R]},$$scope:{ctx:o}}}),{c(){x(t.$$.fragment)},m(e,n){C(t,e,n),s=!0},p(e,[n]){const l={};n&67&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){s||($(t.$$.fragment,e),s=!0)},o(e){L(t.$$.fragment,e),s=!1},d(e){P(t,e)}}}function q(o,t,s){let{params:e}=t,n=!1,l=!1;i();async function i(){s(1,l=!0);const d=new T("../");try{const m=H(e==null?void 0:e.token);await d.collection(m.collectionId).confirmVerification(e==null?void 0:e.token),s(0,n=!0)}catch{s(0,n=!1)}s(1,l=!1)}const c=()=>window.close(),k=()=>window.close();return o.$$set=d=>{"params"in d&&s(2,e=d.params)},[n,l,e,c,k]}class G extends v{constructor(t){super(),y(this,t,q,V,w,{params:2})}}export{G as default}; diff --git a/ui/dist/assets/RealtimeApiDocs-a087aeb7.js b/ui/dist/assets/RealtimeApiDocs-619375a5.js similarity index 98% rename from ui/dist/assets/RealtimeApiDocs-a087aeb7.js rename to ui/dist/assets/RealtimeApiDocs-619375a5.js index 2d17e99e..d6cc666b 100644 --- a/ui/dist/assets/RealtimeApiDocs-a087aeb7.js +++ b/ui/dist/assets/RealtimeApiDocs-619375a5.js @@ -1,4 +1,4 @@ -import{S as re,i as ae,s as be,M as ue,C as P,e as u,w as y,b as a,c as te,f as p,g as t,h as I,m as ne,x as pe,t as ie,a as le,o as n,d as ce,T as me,p as de}from"./index-f81c5782.js";import{S as fe}from"./SdkTabs-f541bf12.js";function $e(o){var B,U,W,T,A,H,L,M,q,j,J,N;let i,m,l=o[0].name+"",b,d,h,f,_,$,k,c,S,v,w,R,C,g,E,r,D;return c=new fe({props:{js:` +import{S as re,i as ae,s as be,M as ue,C as P,e as u,w as y,b as a,c as te,f as p,g as t,h as I,m as ne,x as pe,t as ie,a as le,o as n,d as ce,T as me,p as de}from"./index-fae59489.js";import{S as fe}from"./SdkTabs-bc0a52ba.js";function $e(o){var B,U,W,T,A,H,L,M,q,j,J,N;let i,m,l=o[0].name+"",b,d,h,f,_,$,k,c,S,v,w,R,C,g,E,r,D;return c=new fe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[1]}'); diff --git a/ui/dist/assets/RequestEmailChangeDocs-7249bdce.js b/ui/dist/assets/RequestEmailChangeDocs-f05b8fdc.js similarity index 98% rename from ui/dist/assets/RequestEmailChangeDocs-7249bdce.js rename to ui/dist/assets/RequestEmailChangeDocs-f05b8fdc.js index ae7d3042..1406d76e 100644 --- a/ui/dist/assets/RequestEmailChangeDocs-7249bdce.js +++ b/ui/dist/assets/RequestEmailChangeDocs-f05b8fdc.js @@ -1,4 +1,4 @@ -import{S as Te,i as Ee,s as Be,e as r,w,b as k,c as Pe,f,g as m,h as n,m as Ce,x as L,N as ve,O as Se,k as Me,P as Re,n as Ae,t as x,a as ee,o as d,d as ye,T as We,C as ze,p as He,r as N,u as Oe,M as Ue}from"./index-f81c5782.js";import{S as je}from"./SdkTabs-f541bf12.js";function we(o,l,s){const a=o.slice();return a[5]=l[s],a}function ge(o,l,s){const a=o.slice();return a[5]=l[s],a}function $e(o,l){let s,a=l[5].code+"",_,b,i,p;function u(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=w(a),b=k(),f(s,"class","tab-item"),N(s,"active",l[1]===l[5].code),this.first=s},m($,q){m($,s,q),n(s,_),n(s,b),i||(p=Oe(s,"click",u),i=!0)},p($,q){l=$,q&4&&a!==(a=l[5].code+"")&&L(_,a),q&6&&N(s,"active",l[1]===l[5].code)},d($){$&&d(s),i=!1,p()}}}function qe(o,l){let s,a,_,b;return a=new Ue({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),Pe(a.$$.fragment),_=k(),f(s,"class","tab-item"),N(s,"active",l[1]===l[5].code),this.first=s},m(i,p){m(i,s,p),Ce(a,s,null),n(s,_),b=!0},p(i,p){l=i;const u={};p&4&&(u.content=l[5].body),a.$set(u),(!b||p&6)&&N(s,"active",l[1]===l[5].code)},i(i){b||(x(a.$$.fragment,i),b=!0)},o(i){ee(a.$$.fragment,i),b=!1},d(i){i&&d(s),ye(a)}}}function De(o){var de,pe,ue,fe;let l,s,a=o[0].name+"",_,b,i,p,u,$,q,z=o[0].name+"",F,te,I,P,K,T,G,g,H,le,O,E,se,J,U=o[0].name+"",Q,ae,oe,j,V,B,X,S,Y,M,Z,C,R,v=[],ne=new Map,ie,A,h=[],ce=new Map,y;P=new je({props:{js:` +import{S as Te,i as Ee,s as Be,e as r,w,b as k,c as Pe,f,g as m,h as n,m as Ce,x as L,N as ve,O as Se,k as Me,P as Re,n as Ae,t as x,a as ee,o as d,d as ye,T as We,C as ze,p as He,r as N,u as Oe,M as Ue}from"./index-fae59489.js";import{S as je}from"./SdkTabs-bc0a52ba.js";function we(o,l,s){const a=o.slice();return a[5]=l[s],a}function ge(o,l,s){const a=o.slice();return a[5]=l[s],a}function $e(o,l){let s,a=l[5].code+"",_,b,i,p;function u(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=w(a),b=k(),f(s,"class","tab-item"),N(s,"active",l[1]===l[5].code),this.first=s},m($,q){m($,s,q),n(s,_),n(s,b),i||(p=Oe(s,"click",u),i=!0)},p($,q){l=$,q&4&&a!==(a=l[5].code+"")&&L(_,a),q&6&&N(s,"active",l[1]===l[5].code)},d($){$&&d(s),i=!1,p()}}}function qe(o,l){let s,a,_,b;return a=new Ue({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),Pe(a.$$.fragment),_=k(),f(s,"class","tab-item"),N(s,"active",l[1]===l[5].code),this.first=s},m(i,p){m(i,s,p),Ce(a,s,null),n(s,_),b=!0},p(i,p){l=i;const u={};p&4&&(u.content=l[5].body),a.$set(u),(!b||p&6)&&N(s,"active",l[1]===l[5].code)},i(i){b||(x(a.$$.fragment,i),b=!0)},o(i){ee(a.$$.fragment,i),b=!1},d(i){i&&d(s),ye(a)}}}function De(o){var de,pe,ue,fe;let l,s,a=o[0].name+"",_,b,i,p,u,$,q,z=o[0].name+"",F,te,I,P,K,T,G,g,H,le,O,E,se,J,U=o[0].name+"",Q,ae,oe,j,V,B,X,S,Y,M,Z,C,R,v=[],ne=new Map,ie,A,h=[],ce=new Map,y;P=new je({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/RequestPasswordResetDocs-ea60e244.js b/ui/dist/assets/RequestPasswordResetDocs-d4b15fc0.js similarity index 97% rename from ui/dist/assets/RequestPasswordResetDocs-ea60e244.js rename to ui/dist/assets/RequestPasswordResetDocs-d4b15fc0.js index 10695dc5..c679f63f 100644 --- a/ui/dist/assets/RequestPasswordResetDocs-ea60e244.js +++ b/ui/dist/assets/RequestPasswordResetDocs-d4b15fc0.js @@ -1,4 +1,4 @@ -import{S as Pe,i as $e,s as qe,e as r,w as h,b as v,c as ve,f as b,g as d,h as n,m as we,x as I,N as ue,O as ge,k as ye,P as Re,n as Be,t as Z,a as x,o as f,d as he,T as Ce,C as Se,p as Te,r as L,u as Me,M as Ae}from"./index-f81c5782.js";import{S as Ue}from"./SdkTabs-f541bf12.js";function me(a,s,l){const o=a.slice();return o[5]=s[l],o}function be(a,s,l){const o=a.slice();return o[5]=s[l],o}function _e(a,s){let l,o=s[5].code+"",_,m,i,p;function u(){return s[4](s[5])}return{key:a,first:null,c(){l=r("button"),_=h(o),m=v(),b(l,"class","tab-item"),L(l,"active",s[1]===s[5].code),this.first=l},m(P,$){d(P,l,$),n(l,_),n(l,m),i||(p=Me(l,"click",u),i=!0)},p(P,$){s=P,$&4&&o!==(o=s[5].code+"")&&I(_,o),$&6&&L(l,"active",s[1]===s[5].code)},d(P){P&&f(l),i=!1,p()}}}function ke(a,s){let l,o,_,m;return o=new Ae({props:{content:s[5].body}}),{key:a,first:null,c(){l=r("div"),ve(o.$$.fragment),_=v(),b(l,"class","tab-item"),L(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(o,l,null),n(l,_),m=!0},p(i,p){s=i;const u={};p&4&&(u.content=s[5].body),o.$set(u),(!m||p&6)&&L(l,"active",s[1]===s[5].code)},i(i){m||(Z(o.$$.fragment,i),m=!0)},o(i){x(o.$$.fragment,i),m=!1},d(i){i&&f(l),he(o)}}}function je(a){var re,de;let s,l,o=a[0].name+"",_,m,i,p,u,P,$,D=a[0].name+"",N,ee,z,q,G,B,J,g,H,te,O,C,se,K,E=a[0].name+"",Q,le,V,S,W,T,X,M,Y,y,A,w=[],oe=new Map,ae,U,k=[],ne=new Map,R;q=new Ue({props:{js:` +import{S as Pe,i as $e,s as qe,e as r,w as h,b as v,c as ve,f as b,g as d,h as n,m as we,x as I,N as ue,O as ge,k as ye,P as Re,n as Be,t as Z,a as x,o as f,d as he,T as Ce,C as Se,p as Te,r as L,u as Me,M as Ae}from"./index-fae59489.js";import{S as Ue}from"./SdkTabs-bc0a52ba.js";function me(a,s,l){const o=a.slice();return o[5]=s[l],o}function be(a,s,l){const o=a.slice();return o[5]=s[l],o}function _e(a,s){let l,o=s[5].code+"",_,m,i,p;function u(){return s[4](s[5])}return{key:a,first:null,c(){l=r("button"),_=h(o),m=v(),b(l,"class","tab-item"),L(l,"active",s[1]===s[5].code),this.first=l},m(P,$){d(P,l,$),n(l,_),n(l,m),i||(p=Me(l,"click",u),i=!0)},p(P,$){s=P,$&4&&o!==(o=s[5].code+"")&&I(_,o),$&6&&L(l,"active",s[1]===s[5].code)},d(P){P&&f(l),i=!1,p()}}}function ke(a,s){let l,o,_,m;return o=new Ae({props:{content:s[5].body}}),{key:a,first:null,c(){l=r("div"),ve(o.$$.fragment),_=v(),b(l,"class","tab-item"),L(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(o,l,null),n(l,_),m=!0},p(i,p){s=i;const u={};p&4&&(u.content=s[5].body),o.$set(u),(!m||p&6)&&L(l,"active",s[1]===s[5].code)},i(i){m||(Z(o.$$.fragment,i),m=!0)},o(i){x(o.$$.fragment,i),m=!1},d(i){i&&f(l),he(o)}}}function je(a){var re,de;let s,l,o=a[0].name+"",_,m,i,p,u,P,$,D=a[0].name+"",N,ee,z,q,G,B,J,g,H,te,O,C,se,K,E=a[0].name+"",Q,le,V,S,W,T,X,M,Y,y,A,w=[],oe=new Map,ae,U,k=[],ne=new Map,R;q=new Ue({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/RequestVerificationDocs-4868a048.js b/ui/dist/assets/RequestVerificationDocs-03f820dd.js similarity index 97% rename from ui/dist/assets/RequestVerificationDocs-4868a048.js rename to ui/dist/assets/RequestVerificationDocs-03f820dd.js index f2662e87..8b3df02f 100644 --- a/ui/dist/assets/RequestVerificationDocs-4868a048.js +++ b/ui/dist/assets/RequestVerificationDocs-03f820dd.js @@ -1,4 +1,4 @@ -import{S as qe,i as we,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as i,m as he,x as F,N as me,O as ge,k as ye,P as Be,n as Ce,t as Z,a as x,o as u,d as $e,T as Se,C as Te,p as Me,r as I,u as Ve,M as Re}from"./index-f81c5782.js";import{S as Ae}from"./SdkTabs-f541bf12.js";function pe(a,l,s){const o=a.slice();return o[5]=l[s],o}function be(a,l,s){const o=a.slice();return o[5]=l[s],o}function _e(a,l){let s,o=l[5].code+"",_,p,n,d;function m(){return l[4](l[5])}return{key:a,first:null,c(){s=r("button"),_=$(o),p=v(),b(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m(q,w){f(q,s,w),i(s,_),i(s,p),n||(d=Ve(s,"click",m),n=!0)},p(q,w){l=q,w&4&&o!==(o=l[5].code+"")&&F(_,o),w&6&&I(s,"active",l[1]===l[5].code)},d(q){q&&u(s),n=!1,d()}}}function ke(a,l){let s,o,_,p;return o=new Re({props:{content:l[5].body}}),{key:a,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m(n,d){f(n,s,d),he(o,s,null),i(s,_),p=!0},p(n,d){l=n;const m={};d&4&&(m.content=l[5].body),o.$set(m),(!p||d&6)&&I(s,"active",l[1]===l[5].code)},i(n){p||(Z(o.$$.fragment,n),p=!0)},o(n){x(o.$$.fragment,n),p=!1},d(n){n&&u(s),$e(o)}}}function Ue(a){var re,fe;let l,s,o=a[0].name+"",_,p,n,d,m,q,w,j=a[0].name+"",L,ee,N,P,z,C,G,g,D,te,H,S,le,J,O=a[0].name+"",K,se,Q,T,W,M,X,V,Y,y,R,h=[],oe=new Map,ae,A,k=[],ie=new Map,B;P=new Ae({props:{js:` +import{S as qe,i as we,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as i,m as he,x as F,N as me,O as ge,k as ye,P as Be,n as Ce,t as Z,a as x,o as u,d as $e,T as Se,C as Te,p as Me,r as I,u as Ve,M as Re}from"./index-fae59489.js";import{S as Ae}from"./SdkTabs-bc0a52ba.js";function pe(a,l,s){const o=a.slice();return o[5]=l[s],o}function be(a,l,s){const o=a.slice();return o[5]=l[s],o}function _e(a,l){let s,o=l[5].code+"",_,p,n,d;function m(){return l[4](l[5])}return{key:a,first:null,c(){s=r("button"),_=$(o),p=v(),b(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m(q,w){f(q,s,w),i(s,_),i(s,p),n||(d=Ve(s,"click",m),n=!0)},p(q,w){l=q,w&4&&o!==(o=l[5].code+"")&&F(_,o),w&6&&I(s,"active",l[1]===l[5].code)},d(q){q&&u(s),n=!1,d()}}}function ke(a,l){let s,o,_,p;return o=new Re({props:{content:l[5].body}}),{key:a,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m(n,d){f(n,s,d),he(o,s,null),i(s,_),p=!0},p(n,d){l=n;const m={};d&4&&(m.content=l[5].body),o.$set(m),(!p||d&6)&&I(s,"active",l[1]===l[5].code)},i(n){p||(Z(o.$$.fragment,n),p=!0)},o(n){x(o.$$.fragment,n),p=!1},d(n){n&&u(s),$e(o)}}}function Ue(a){var re,fe;let l,s,o=a[0].name+"",_,p,n,d,m,q,w,j=a[0].name+"",L,ee,N,P,z,C,G,g,D,te,H,S,le,J,O=a[0].name+"",K,se,Q,T,W,M,X,V,Y,y,R,h=[],oe=new Map,ae,A,k=[],ie=new Map,B;P=new Ae({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/SdkTabs-f541bf12.js b/ui/dist/assets/SdkTabs-bc0a52ba.js similarity index 96% rename from ui/dist/assets/SdkTabs-f541bf12.js rename to ui/dist/assets/SdkTabs-bc0a52ba.js index 837228f0..2c19ad29 100644 --- a/ui/dist/assets/SdkTabs-f541bf12.js +++ b/ui/dist/assets/SdkTabs-bc0a52ba.js @@ -1 +1 @@ -import{S as q,i as B,s as F,e as v,b as j,f as h,g as y,h as m,N as C,O as J,k as O,P as Y,n as z,t as N,a as P,o as w,w as E,r as S,u as A,x as R,M as G,c as H,m as L,d as Q}from"./index-f81c5782.js";function D(o,e,l){const s=o.slice();return s[6]=e[l],s}function K(o,e,l){const s=o.slice();return s[6]=e[l],s}function M(o,e){let l,s,g=e[6].title+"",r,i,n,k;function c(){return e[5](e[6])}return{key:o,first:null,c(){l=v("button"),s=v("div"),r=E(g),i=j(),h(s,"class","txt"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(_,f){y(_,l,f),m(l,s),m(s,r),m(l,i),n||(k=A(l,"click",c),n=!0)},p(_,f){e=_,f&4&&g!==(g=e[6].title+"")&&R(r,g),f&6&&S(l,"active",e[1]===e[6].language)},d(_){_&&w(l),n=!1,k()}}}function T(o,e){let l,s,g,r,i,n,k=e[6].title+"",c,_,f,p,d;return s=new G({props:{language:e[6].language,content:e[6].content}}),{key:o,first:null,c(){l=v("div"),H(s.$$.fragment),g=j(),r=v("div"),i=v("em"),n=v("a"),c=E(k),_=E(" SDK"),p=j(),h(n,"href",f=e[6].url),h(n,"target","_blank"),h(n,"rel","noopener noreferrer"),h(i,"class","txt-sm txt-hint"),h(r,"class","txt-right"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(b,t){y(b,l,t),L(s,l,null),m(l,g),m(l,r),m(r,i),m(i,n),m(n,c),m(n,_),m(l,p),d=!0},p(b,t){e=b;const a={};t&4&&(a.language=e[6].language),t&4&&(a.content=e[6].content),s.$set(a),(!d||t&4)&&k!==(k=e[6].title+"")&&R(c,k),(!d||t&4&&f!==(f=e[6].url))&&h(n,"href",f),(!d||t&6)&&S(l,"active",e[1]===e[6].language)},i(b){d||(N(s.$$.fragment,b),d=!0)},o(b){P(s.$$.fragment,b),d=!1},d(b){b&&w(l),Q(s)}}}function U(o){let e,l,s=[],g=new Map,r,i,n=[],k=new Map,c,_,f=o[2];const p=t=>t[6].language;for(let t=0;tt[6].language;for(let t=0;tl(1,n=c.language);return o.$$set=c=>{"class"in c&&l(0,g=c.class),"js"in c&&l(3,r=c.js),"dart"in c&&l(4,i=c.dart)},o.$$.update=()=>{o.$$.dirty&2&&n&&localStorage.setItem(I,n),o.$$.dirty&24&&l(2,s=[{title:"JavaScript",language:"javascript",content:r,url:"https://github.com/pocketbase/js-sdk"},{title:"Dart",language:"dart",content:i,url:"https://github.com/pocketbase/dart-sdk"}])},[g,n,s,r,i,k]}class X extends q{constructor(e){super(),B(this,e,V,U,F,{class:0,js:3,dart:4})}}export{X as S}; +import{S as q,i as B,s as F,e as v,b as j,f as h,g as y,h as m,N as C,O as J,k as O,P as Y,n as z,t as N,a as P,o as w,w as E,r as S,u as A,x as R,M as G,c as H,m as L,d as Q}from"./index-fae59489.js";function D(o,e,l){const s=o.slice();return s[6]=e[l],s}function K(o,e,l){const s=o.slice();return s[6]=e[l],s}function M(o,e){let l,s,g=e[6].title+"",r,i,n,k;function c(){return e[5](e[6])}return{key:o,first:null,c(){l=v("button"),s=v("div"),r=E(g),i=j(),h(s,"class","txt"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(_,f){y(_,l,f),m(l,s),m(s,r),m(l,i),n||(k=A(l,"click",c),n=!0)},p(_,f){e=_,f&4&&g!==(g=e[6].title+"")&&R(r,g),f&6&&S(l,"active",e[1]===e[6].language)},d(_){_&&w(l),n=!1,k()}}}function T(o,e){let l,s,g,r,i,n,k=e[6].title+"",c,_,f,p,d;return s=new G({props:{language:e[6].language,content:e[6].content}}),{key:o,first:null,c(){l=v("div"),H(s.$$.fragment),g=j(),r=v("div"),i=v("em"),n=v("a"),c=E(k),_=E(" SDK"),p=j(),h(n,"href",f=e[6].url),h(n,"target","_blank"),h(n,"rel","noopener noreferrer"),h(i,"class","txt-sm txt-hint"),h(r,"class","txt-right"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(b,t){y(b,l,t),L(s,l,null),m(l,g),m(l,r),m(r,i),m(i,n),m(n,c),m(n,_),m(l,p),d=!0},p(b,t){e=b;const a={};t&4&&(a.language=e[6].language),t&4&&(a.content=e[6].content),s.$set(a),(!d||t&4)&&k!==(k=e[6].title+"")&&R(c,k),(!d||t&4&&f!==(f=e[6].url))&&h(n,"href",f),(!d||t&6)&&S(l,"active",e[1]===e[6].language)},i(b){d||(N(s.$$.fragment,b),d=!0)},o(b){P(s.$$.fragment,b),d=!1},d(b){b&&w(l),Q(s)}}}function U(o){let e,l,s=[],g=new Map,r,i,n=[],k=new Map,c,_,f=o[2];const p=t=>t[6].language;for(let t=0;tt[6].language;for(let t=0;tl(1,n=c.language);return o.$$set=c=>{"class"in c&&l(0,g=c.class),"js"in c&&l(3,r=c.js),"dart"in c&&l(4,i=c.dart)},o.$$.update=()=>{o.$$.dirty&2&&n&&localStorage.setItem(I,n),o.$$.dirty&24&&l(2,s=[{title:"JavaScript",language:"javascript",content:r,url:"https://github.com/pocketbase/js-sdk"},{title:"Dart",language:"dart",content:i,url:"https://github.com/pocketbase/dart-sdk"}])},[g,n,s,r,i,k]}class X extends q{constructor(e){super(),B(this,e,V,U,F,{class:0,js:3,dart:4})}}export{X as S}; diff --git a/ui/dist/assets/UnlinkExternalAuthDocs-07157dbb.js b/ui/dist/assets/UnlinkExternalAuthDocs-77e25192.js similarity index 98% rename from ui/dist/assets/UnlinkExternalAuthDocs-07157dbb.js rename to ui/dist/assets/UnlinkExternalAuthDocs-77e25192.js index b609246b..afcab73d 100644 --- a/ui/dist/assets/UnlinkExternalAuthDocs-07157dbb.js +++ b/ui/dist/assets/UnlinkExternalAuthDocs-77e25192.js @@ -1,4 +1,4 @@ -import{S as qe,i as Me,s as Oe,e as i,w as v,b as h,c as Se,f as m,g as d,h as s,m as Be,x as I,N as Te,O as De,k as We,P as ze,n as He,t as le,a as oe,o as u,d as Ue,T as Le,C as je,p as Ie,r as N,u as Ne,M as Re}from"./index-f81c5782.js";import{S as Ke}from"./SdkTabs-f541bf12.js";function ye(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ae(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ce(n,l){let o,a=l[5].code+"",_,b,c,p;function f(){return l[4](l[5])}return{key:n,first:null,c(){o=i("button"),_=v(a),b=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m($,P){d($,o,P),s(o,_),s(o,b),c||(p=Ne(o,"click",f),c=!0)},p($,P){l=$,P&4&&a!==(a=l[5].code+"")&&I(_,a),P&6&&N(o,"active",l[1]===l[5].code)},d($){$&&u(o),c=!1,p()}}}function Ee(n,l){let o,a,_,b;return a=new Re({props:{content:l[5].body}}),{key:n,first:null,c(){o=i("div"),Se(a.$$.fragment),_=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Be(a,o,null),s(o,_),b=!0},p(c,p){l=c;const f={};p&4&&(f.content=l[5].body),a.$set(f),(!b||p&6)&&N(o,"active",l[1]===l[5].code)},i(c){b||(le(a.$$.fragment,c),b=!0)},o(c){oe(a.$$.fragment,c),b=!1},d(c){c&&u(o),Ue(a)}}}function Fe(n){var he,_e,ke,ve;let l,o,a=n[0].name+"",_,b,c,p,f,$,P,D=n[0].name+"",R,se,ae,K,F,y,G,E,J,w,W,ne,z,T,ie,Q,H=n[0].name+"",V,ce,X,re,Y,de,L,Z,S,x,B,ee,U,te,A,q,g=[],ue=new Map,pe,M,k=[],fe=new Map,C;y=new Ke({props:{js:` +import{S as qe,i as Me,s as Oe,e as i,w as v,b as h,c as Se,f as m,g as d,h as s,m as Be,x as I,N as Te,O as De,k as We,P as ze,n as He,t as le,a as oe,o as u,d as Ue,T as Le,C as je,p as Ie,r as N,u as Ne,M as Re}from"./index-fae59489.js";import{S as Ke}from"./SdkTabs-bc0a52ba.js";function ye(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ae(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ce(n,l){let o,a=l[5].code+"",_,b,c,p;function f(){return l[4](l[5])}return{key:n,first:null,c(){o=i("button"),_=v(a),b=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m($,P){d($,o,P),s(o,_),s(o,b),c||(p=Ne(o,"click",f),c=!0)},p($,P){l=$,P&4&&a!==(a=l[5].code+"")&&I(_,a),P&6&&N(o,"active",l[1]===l[5].code)},d($){$&&u(o),c=!1,p()}}}function Ee(n,l){let o,a,_,b;return a=new Re({props:{content:l[5].body}}),{key:n,first:null,c(){o=i("div"),Se(a.$$.fragment),_=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Be(a,o,null),s(o,_),b=!0},p(c,p){l=c;const f={};p&4&&(f.content=l[5].body),a.$set(f),(!b||p&6)&&N(o,"active",l[1]===l[5].code)},i(c){b||(le(a.$$.fragment,c),b=!0)},o(c){oe(a.$$.fragment,c),b=!1},d(c){c&&u(o),Ue(a)}}}function Fe(n){var he,_e,ke,ve;let l,o,a=n[0].name+"",_,b,c,p,f,$,P,D=n[0].name+"",R,se,ae,K,F,y,G,E,J,w,W,ne,z,T,ie,Q,H=n[0].name+"",V,ce,X,re,Y,de,L,Z,S,x,B,ee,U,te,A,q,g=[],ue=new Map,pe,M,k=[],fe=new Map,C;y=new Ke({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${n[3]}'); diff --git a/ui/dist/assets/UpdateApiDocs-3647ab4b.js b/ui/dist/assets/UpdateApiDocs-f0212d5c.js similarity index 99% rename from ui/dist/assets/UpdateApiDocs-3647ab4b.js rename to ui/dist/assets/UpdateApiDocs-f0212d5c.js index 3a81925d..b953b3b3 100644 --- a/ui/dist/assets/UpdateApiDocs-3647ab4b.js +++ b/ui/dist/assets/UpdateApiDocs-f0212d5c.js @@ -1,4 +1,4 @@ -import{S as Ct,i as St,s as Ot,C as U,M as Tt,e as r,w as y,b as m,c as Ae,f as T,g as a,h as i,m as Be,x as I,N as Pe,O as ut,k as Mt,P as $t,n as qt,t as fe,a as pe,o,d as Fe,T as Dt,p as Ht,r as ce,u as Rt,y as G}from"./index-f81c5782.js";import{S as Lt}from"./SdkTabs-f541bf12.js";function bt(f,t,l){const s=f.slice();return s[7]=t[l],s}function mt(f,t,l){const s=f.slice();return s[7]=t[l],s}function _t(f,t,l){const s=f.slice();return s[12]=t[l],s}function yt(f){let t;return{c(){t=r("p"),t.innerHTML="Requires admin Authorization:TOKEN header",T(t,"class","txt-hint txt-sm txt-right")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function kt(f){let t,l,s,b,u,d,p,k,C,w,O,R,A,j,M,E,B;return{c(){t=r("tr"),t.innerHTML='Auth fields',l=m(),s=r("tr"),s.innerHTML=`
Optional +import{S as Ct,i as St,s as Ot,C as U,M as Tt,e as r,w as y,b as m,c as Ae,f as T,g as a,h as i,m as Be,x as I,N as Pe,O as ut,k as Mt,P as $t,n as qt,t as fe,a as pe,o,d as Fe,T as Dt,p as Ht,r as ce,u as Rt,y as G}from"./index-fae59489.js";import{S as Lt}from"./SdkTabs-bc0a52ba.js";function bt(f,t,l){const s=f.slice();return s[7]=t[l],s}function mt(f,t,l){const s=f.slice();return s[7]=t[l],s}function _t(f,t,l){const s=f.slice();return s[12]=t[l],s}function yt(f){let t;return{c(){t=r("p"),t.innerHTML="Requires admin Authorization:TOKEN header",T(t,"class","txt-hint txt-sm txt-right")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function kt(f){let t,l,s,b,u,d,p,k,C,w,O,R,A,j,M,E,B;return{c(){t=r("tr"),t.innerHTML='Auth fields',l=m(),s=r("tr"),s.innerHTML=`
Optional username
String The username of the auth record.`,b=m(),u=r("tr"),u.innerHTML=`
Optional diff --git a/ui/dist/assets/ViewApiDocs-2cf74215.js b/ui/dist/assets/ViewApiDocs-c7f9b4ff.js similarity index 98% rename from ui/dist/assets/ViewApiDocs-2cf74215.js rename to ui/dist/assets/ViewApiDocs-c7f9b4ff.js index d1056313..6246aac7 100644 --- a/ui/dist/assets/ViewApiDocs-2cf74215.js +++ b/ui/dist/assets/ViewApiDocs-c7f9b4ff.js @@ -1,4 +1,4 @@ -import{S as Ze,i as et,s as tt,M as Ye,e as o,w as m,b as u,c as _e,f as _,g as r,h as l,m as ke,x as me,N as ze,O as lt,k as st,P as nt,n as ot,t as G,a as J,o as d,d as he,T as it,C as Ge,p as at,r as K,u as rt}from"./index-f81c5782.js";import{S as dt}from"./SdkTabs-f541bf12.js";function Je(i,s,n){const a=i.slice();return a[6]=s[n],a}function Ke(i,s,n){const a=i.slice();return a[6]=s[n],a}function Qe(i){let s;return{c(){s=o("p"),s.innerHTML="Requires admin Authorization:TOKEN header",_(s,"class","txt-hint txt-sm txt-right")},m(n,a){r(n,s,a)},d(n){n&&d(s)}}}function We(i,s){let n,a=s[6].code+"",y,c,f,b;function F(){return s[5](s[6])}return{key:i,first:null,c(){n=o("button"),y=m(a),c=u(),_(n,"class","tab-item"),K(n,"active",s[2]===s[6].code),this.first=n},m(h,R){r(h,n,R),l(n,y),l(n,c),f||(b=rt(n,"click",F),f=!0)},p(h,R){s=h,R&20&&K(n,"active",s[2]===s[6].code)},d(h){h&&d(n),f=!1,b()}}}function Xe(i,s){let n,a,y,c;return a=new Ye({props:{content:s[6].body}}),{key:i,first:null,c(){n=o("div"),_e(a.$$.fragment),y=u(),_(n,"class","tab-item"),K(n,"active",s[2]===s[6].code),this.first=n},m(f,b){r(f,n,b),ke(a,n,null),l(n,y),c=!0},p(f,b){s=f,(!c||b&20)&&K(n,"active",s[2]===s[6].code)},i(f){c||(G(a.$$.fragment,f),c=!0)},o(f){J(a.$$.fragment,f),c=!1},d(f){f&&d(n),he(a)}}}function ct(i){var Ne,Ue;let s,n,a=i[0].name+"",y,c,f,b,F,h,R,N=i[0].name+"",Q,ve,W,g,X,B,Y,$,U,we,j,E,ye,Z,V=i[0].name+"",ee,$e,te,Ce,le,M,se,x,ne,A,oe,O,ie,Fe,ae,T,re,Re,de,ge,k,Oe,S,Te,De,Pe,ce,Ee,fe,Se,Be,Me,pe,xe,ue,I,be,D,H,C=[],Ae=new Map,Ie,q,v=[],He=new Map,P;g=new dt({props:{js:` +import{S as Ze,i as et,s as tt,M as Ye,e as o,w as m,b as u,c as _e,f as _,g as r,h as l,m as ke,x as me,N as ze,O as lt,k as st,P as nt,n as ot,t as G,a as J,o as d,d as he,T as it,C as Ge,p as at,r as K,u as rt}from"./index-fae59489.js";import{S as dt}from"./SdkTabs-bc0a52ba.js";function Je(i,s,n){const a=i.slice();return a[6]=s[n],a}function Ke(i,s,n){const a=i.slice();return a[6]=s[n],a}function Qe(i){let s;return{c(){s=o("p"),s.innerHTML="Requires admin Authorization:TOKEN header",_(s,"class","txt-hint txt-sm txt-right")},m(n,a){r(n,s,a)},d(n){n&&d(s)}}}function We(i,s){let n,a=s[6].code+"",y,c,f,b;function F(){return s[5](s[6])}return{key:i,first:null,c(){n=o("button"),y=m(a),c=u(),_(n,"class","tab-item"),K(n,"active",s[2]===s[6].code),this.first=n},m(h,R){r(h,n,R),l(n,y),l(n,c),f||(b=rt(n,"click",F),f=!0)},p(h,R){s=h,R&20&&K(n,"active",s[2]===s[6].code)},d(h){h&&d(n),f=!1,b()}}}function Xe(i,s){let n,a,y,c;return a=new Ye({props:{content:s[6].body}}),{key:i,first:null,c(){n=o("div"),_e(a.$$.fragment),y=u(),_(n,"class","tab-item"),K(n,"active",s[2]===s[6].code),this.first=n},m(f,b){r(f,n,b),ke(a,n,null),l(n,y),c=!0},p(f,b){s=f,(!c||b&20)&&K(n,"active",s[2]===s[6].code)},i(f){c||(G(a.$$.fragment,f),c=!0)},o(f){J(a.$$.fragment,f),c=!1},d(f){f&&d(n),he(a)}}}function ct(i){var Ne,Ue;let s,n,a=i[0].name+"",y,c,f,b,F,h,R,N=i[0].name+"",Q,ve,W,g,X,B,Y,$,U,we,j,E,ye,Z,V=i[0].name+"",ee,$e,te,Ce,le,M,se,x,ne,A,oe,O,ie,Fe,ae,T,re,Re,de,ge,k,Oe,S,Te,De,Pe,ce,Ee,fe,Se,Be,Me,pe,xe,ue,I,be,D,H,C=[],Ae=new Map,Ie,q,v=[],He=new Map,P;g=new dt({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/index-f81c5782.js b/ui/dist/assets/index-fae59489.js similarity index 91% rename from ui/dist/assets/index-f81c5782.js rename to ui/dist/assets/index-fae59489.js index fc472e33..67c55e55 100644 --- a/ui/dist/assets/index-f81c5782.js +++ b/ui/dist/assets/index-fae59489.js @@ -1,10 +1,10 @@ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=t(s);fetch(s.href,l)}})();function X(){}const $l=n=>n;function je(n,e){for(const t in e)n[t]=e[t];return n}function Mb(n){return!!n&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"}function H_(n){return n()}function mu(){return Object.create(null)}function Ae(n){n.forEach(H_)}function Ht(n){return typeof n=="function"}function _e(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let Rl;function mn(n,e){return Rl||(Rl=document.createElement("a")),Rl.href=e,n===Rl.href}function Ob(n){return Object.keys(n).length===0}function _a(n,...e){if(n==null)return X;const t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Db(n){let e;return _a(n,t=>e=t)(),e}function Ze(n,e,t){n.$$.on_destroy.push(_a(e,t))}function wt(n,e,t,i){if(n){const s=z_(n,e,t,i);return n[0](s)}}function z_(n,e,t,i){return n[1]&&i?je(t.ctx.slice(),n[1](i(e))):t.ctx}function St(n,e,t,i){if(n[2]&&i){const s=n[2](i(t));if(e.dirty===void 0)return s;if(typeof s=="object"){const l=[],o=Math.max(e.dirty.length,s.length);for(let r=0;r32){const e=[],t=n.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),ga=B_?n=>requestAnimationFrame(n):X;const ws=new Set;function U_(n){ws.forEach(e=>{e.c(n)||(ws.delete(e),e.f())}),ws.size!==0&&ga(U_)}function Ro(n){let e;return ws.size===0&&ga(U_),{promise:new Promise(t=>{ws.add(e={c:n,f:t})}),abort(){ws.delete(e)}}}function v(n,e){n.appendChild(e)}function W_(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Eb(n){const e=y("style");return Ab(W_(n),e),e.sheet}function Ab(n,e){return v(n.head||n,e),e.sheet}function S(n,e,t){n.insertBefore(e,t||null)}function w(n){n.parentNode&&n.parentNode.removeChild(n)}function pt(n,e){for(let t=0;tn.removeEventListener(e,t,i)}function at(n){return function(e){return e.preventDefault(),n.call(this,e)}}function An(n){return function(e){return e.stopPropagation(),n.call(this,e)}}function h(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function ai(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]:h(n,i,e[i])}function Ib(n){let e;return{p(...t){e=t,e.forEach(i=>n.push(i))},r(){e.forEach(t=>n.splice(n.indexOf(t),1))}}}function gt(n){return n===""?null:+n}function Pb(n){return Array.from(n.childNodes)}function le(n,e){e=""+e,n.data!==e&&(n.data=e)}function fe(n,e){n.value=e??""}function qr(n,e,t,i){t===null?n.style.removeProperty(e):n.style.setProperty(e,t,i?"important":"")}function x(n,e,t){n.classList[t?"add":"remove"](e)}function Y_(n,e,{bubbles:t=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(n,t,i,e),s}function Nt(n,e){return new n(e)}const ho=new Map;let _o=0;function Lb(n){let e=5381,t=n.length;for(;t--;)e=(e<<5)-e^n.charCodeAt(t);return e>>>0}function Nb(n,e){const t={stylesheet:Eb(e),rules:{}};return ho.set(n,t),t}function dl(n,e,t,i,s,l,o,r=0){const a=16.666/i;let u=`{ `;for(let b=0;b<=1;b+=a){const k=e+(t-e)*l(b);u+=b*100+`%{${o(k,1-k)}} `}const f=u+`100% {${o(t,1-t)}} -}`,d=`__svelte_${Lb(f)}_${r}`,p=W_(n),{stylesheet:m,rules:g}=ho.get(p)||Nb(p,n);g[d]||(g[d]=!0,m.insertRule(`@keyframes ${d} ${f}`,m.cssRules.length));const _=n.style.animation||"";return n.style.animation=`${_?`${_}, `:""}${d} ${i}ms linear ${s}ms 1 both`,_o+=1,d}function pl(n,e){const t=(n.style.animation||"").split(", "),i=t.filter(e?l=>l.indexOf(e)<0:l=>l.indexOf("__svelte")===-1),s=t.length-i.length;s&&(n.style.animation=i.join(", "),_o-=s,_o||Fb())}function Fb(){ga(()=>{_o||(ho.forEach(n=>{const{ownerNode:e}=n.stylesheet;e&&w(e)}),ho.clear())})}function Rb(n,e,t,i){if(!e)return X;const s=n.getBoundingClientRect();if(e.left===s.left&&e.right===s.right&&e.top===s.top&&e.bottom===s.bottom)return X;const{delay:l=0,duration:o=300,easing:r=$l,start:a=Fo()+l,end:u=a+o,tick:f=X,css:d}=t(n,{from:e,to:s},i);let p=!0,m=!1,g;function _(){d&&(g=dl(n,0,1,o,l,r,d)),l||(m=!0)}function b(){d&&pl(n,g),p=!1}return Ro(k=>{if(!m&&k>=a&&(m=!0),m&&k>=u&&(f(1,0),b()),!p)return!1;if(m){const $=k-a,T=0+1*r($/o);f(T,1-T)}return!0}),_(),f(0,1),b}function qb(n){const e=getComputedStyle(n);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:i}=e,s=n.getBoundingClientRect();n.style.position="absolute",n.style.width=t,n.style.height=i,K_(n,s)}}function K_(n,e){const t=n.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const i=getComputedStyle(n),s=i.transform==="none"?"":i.transform;n.style.transform=`${s} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}let ml;function bi(n){ml=n}function Cl(){if(!ml)throw new Error("Function called outside component initialization");return ml}function en(n){Cl().$$.on_mount.push(n)}function jb(n){Cl().$$.after_update.push(n)}function ba(n){Cl().$$.on_destroy.push(n)}function Tt(){const n=Cl();return(e,t,{cancelable:i=!1}={})=>{const s=n.$$.callbacks[e];if(s){const l=Y_(e,t,{cancelable:i});return s.slice().forEach(o=>{o.call(n,l)}),!l.defaultPrevented}return!0}}function me(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const ks=[],ie=[];let Ss=[];const jr=[],J_=Promise.resolve();let Vr=!1;function Z_(){Vr||(Vr=!0,J_.then(va))}function an(){return Z_(),J_}function tt(n){Ss.push(n)}function ke(n){jr.push(n)}const nr=new Set;let hs=0;function va(){if(hs!==0)return;const n=ml;do{try{for(;hsn.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Ss=e}let zs;function ya(){return zs||(zs=Promise.resolve(),zs.then(()=>{zs=null})),zs}function ns(n,e,t){n.dispatchEvent(Y_(`${e?"intro":"outro"}${t}`))}const oo=new Set;let li;function re(){li={r:0,c:[],p:li}}function ae(){li.r||Ae(li.c),li=li.p}function A(n,e){n&&n.i&&(oo.delete(n),n.i(e))}function P(n,e,t,i){if(n&&n.o){if(oo.has(n))return;oo.add(n),li.c.push(()=>{oo.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}const ka={duration:0};function G_(n,e,t){const i={direction:"in"};let s=e(n,t,i),l=!1,o,r,a=0;function u(){o&&pl(n,o)}function f(){const{delay:p=0,duration:m=300,easing:g=$l,tick:_=X,css:b}=s||ka;b&&(o=dl(n,0,1,m,p,g,b,a++)),_(0,1);const k=Fo()+p,$=k+m;r&&r.abort(),l=!0,tt(()=>ns(n,!0,"start")),r=Ro(T=>{if(l){if(T>=$)return _(1,0),ns(n,!0,"end"),u(),l=!1;if(T>=k){const C=g((T-k)/m);_(C,1-C)}}return l})}let d=!1;return{start(){d||(d=!0,pl(n),Ht(s)?(s=s(i),ya().then(f)):f())},invalidate(){d=!1},end(){l&&(u(),l=!1)}}}function wa(n,e,t){const i={direction:"out"};let s=e(n,t,i),l=!0,o;const r=li;r.r+=1;function a(){const{delay:u=0,duration:f=300,easing:d=$l,tick:p=X,css:m}=s||ka;m&&(o=dl(n,1,0,f,u,d,m));const g=Fo()+u,_=g+f;tt(()=>ns(n,!1,"start")),Ro(b=>{if(l){if(b>=_)return p(0,1),ns(n,!1,"end"),--r.r||Ae(r.c),!1;if(b>=g){const k=d((b-g)/f);p(1-k,k)}}return l})}return Ht(s)?ya().then(()=>{s=s(i),a()}):a(),{end(u){u&&s.tick&&s.tick(1,0),l&&(o&&pl(n,o),l=!1)}}}function ze(n,e,t,i){const s={direction:"both"};let l=e(n,t,s),o=i?0:1,r=null,a=null,u=null;function f(){u&&pl(n,u)}function d(m,g){const _=m.b-o;return g*=Math.abs(_),{a:o,b:m.b,d:_,duration:g,start:m.start,end:m.start+g,group:m.group}}function p(m){const{delay:g=0,duration:_=300,easing:b=$l,tick:k=X,css:$}=l||ka,T={start:Fo()+g,b:m};m||(T.group=li,li.r+=1),r||a?a=T:($&&(f(),u=dl(n,o,m,_,g,b,$)),m&&k(0,1),r=d(T,_),tt(()=>ns(n,m,"start")),Ro(C=>{if(a&&C>a.start&&(r=d(a,_),a=null,ns(n,r.b,"start"),$&&(f(),u=dl(n,o,r.b,r.duration,0,b,l.css))),r){if(C>=r.end)k(o=r.b,1-o),ns(n,r.b,"end"),a||(r.b?f():--r.group.r||Ae(r.group.c)),r=null;else if(C>=r.start){const D=C-r.start;o=r.a+r.d*b(D/r.duration),k(o,1-o)}}return!!(r||a)}))}return{run(m){Ht(l)?ya().then(()=>{l=l(s),p(m)}):p(m)},end(){f(),r=a=null}}}function _u(n,e){const t=e.token={};function i(s,l,o,r){if(e.token!==t)return;e.resolved=r;let a=e.ctx;o!==void 0&&(a=a.slice(),a[o]=r);const u=s&&(e.current=s)(a);let f=!1;e.block&&(e.blocks?e.blocks.forEach((d,p)=>{p!==l&&d&&(re(),P(d,1,1,()=>{e.blocks[p]===d&&(e.blocks[p]=null)}),ae())}):e.block.d(1),u.c(),A(u,1),u.m(e.mount(),e.anchor),f=!0),e.block=u,e.blocks&&(e.blocks[l]=u),f&&va()}if(Mb(n)){const s=Cl();if(n.then(l=>{bi(s),i(e.then,1,e.value,l),bi(null)},l=>{if(bi(s),i(e.catch,2,e.error,l),bi(null),!e.hasCatch)throw l}),e.current!==e.pending)return i(e.pending,0),!0}else{if(e.current!==e.then)return i(e.then,1,e.value,n),!0;e.resolved=n}}function zb(n,e,t){const i=e.slice(),{resolved:s}=n;n.current===n.then&&(i[n.value]=s),n.current===n.catch&&(i[n.error]=s),n.block.p(i,t)}function us(n,e){n.d(1),e.delete(n.key)}function Jt(n,e){P(n,1,1,()=>{e.delete(n.key)})}function Bb(n,e){n.f(),Jt(n,e)}function yt(n,e,t,i,s,l,o,r,a,u,f,d){let p=n.length,m=l.length,g=p;const _={};for(;g--;)_[n[g].key]=g;const b=[],k=new Map,$=new Map,T=[];for(g=m;g--;){const O=d(s,l,g),I=t(O);let L=o.get(I);L?i&&T.push(()=>L.p(O,e)):(L=u(I,O),L.c()),k.set(I,b[g]=L),I in _&&$.set(I,Math.abs(g-_[I]))}const C=new Set,D=new Set;function M(O){A(O,1),O.m(r,f),o.set(O.key,O),f=O.first,m--}for(;p&&m;){const O=b[m-1],I=n[p-1],L=O.key,F=I.key;O===I?(f=O.first,p--,m--):k.has(F)?!o.has(L)||C.has(L)?M(O):D.has(F)?p--:$.get(L)>$.get(F)?(D.add(L),M(O)):(C.add(F),p--):(a(I,o),p--)}for(;p--;){const O=n[p];k.has(O.key)||a(O,o)}for(;m;)M(b[m-1]);return Ae(T),b}function Mt(n,e){const t={},i={},s={$$scope:1};let l=n.length;for(;l--;){const o=n[l],r=e[l];if(r){for(const a in o)a in r||(i[a]=1);for(const a in r)s[a]||(t[a]=r[a],s[a]=1);n[l]=r}else for(const a in o)s[a]=1}for(const o in i)o in t||(t[o]=void 0);return t}function Gt(n){return typeof n=="object"&&n!==null?n:{}}function he(n,e,t){const i=n.$$.props[e];i!==void 0&&(n.$$.bound[i]=t,t(n.$$.ctx[i]))}function U(n){n&&n.c()}function z(n,e,t,i){const{fragment:s,after_update:l}=n.$$;s&&s.m(e,t),i||tt(()=>{const o=n.$$.on_mount.map(H_).filter(Ht);n.$$.on_destroy?n.$$.on_destroy.push(...o):Ae(o),n.$$.on_mount=[]}),l.forEach(tt)}function B(n,e){const t=n.$$;t.fragment!==null&&(Hb(t.after_update),Ae(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ub(n,e){n.$$.dirty[0]===-1&&(ks.push(n),Z_(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<{const g=m.length?m[0]:p;return u.ctx&&s(u.ctx[d],u.ctx[d]=g)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](g),f&&Ub(n,d)),p}):[],u.update(),f=!0,Ae(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const d=Pb(e.target);u.fragment&&u.fragment.l(d),d.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&A(n.$$.fragment),z(n,e.target,e.anchor,e.customElement),va()}bi(a)}class ye{$destroy(){B(this,1),this.$destroy=X}$on(e,t){if(!Ht(t))return X;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Ob(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function jt(n){if(!n)throw Error("Parameter args is required");if(!n.component==!n.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(n.component&&(n.asyncComponent=()=>Promise.resolve(n.component)),typeof n.asyncComponent!="function")throw Error("Parameter asyncComponent must be a function");if(n.conditions){Array.isArray(n.conditions)||(n.conditions=[n.conditions]);for(let t=0;t{i.delete(u),i.size===0&&t&&(t(),t=null)}}return{set:s,update:l,subscribe:o}}function Q_(n,e,t){const i=!Array.isArray(n),s=i?[n]:n,l=e.length<2;return X_(t,o=>{let r=!1;const a=[];let u=0,f=X;const d=()=>{if(u)return;f();const m=e(i?a[0]:a,o);l?o(m):f=Ht(m)?m:X},p=s.map((m,g)=>_a(m,_=>{a[g]=_,u&=~(1<{u|=1<{B(f,1)}),ae()}l?(e=Nt(l,o()),e.$on("routeEvent",r[7]),U(e.$$.fragment),A(e.$$.fragment,1),z(e,t.parentNode,t)):e=null}else l&&e.$set(u)},i(r){i||(e&&A(e.$$.fragment,r),i=!0)},o(r){e&&P(e.$$.fragment,r),i=!1},d(r){r&&w(t),e&&B(e,r)}}}function Yb(n){let e,t,i;const s=[{params:n[1]},n[2]];var l=n[0];function o(r){let a={};for(let u=0;u{B(f,1)}),ae()}l?(e=Nt(l,o()),e.$on("routeEvent",r[6]),U(e.$$.fragment),A(e.$$.fragment,1),z(e,t.parentNode,t)):e=null}else l&&e.$set(u)},i(r){i||(e&&A(e.$$.fragment,r),i=!0)},o(r){e&&P(e.$$.fragment,r),i=!1},d(r){r&&w(t),e&&B(e,r)}}}function Kb(n){let e,t,i,s;const l=[Yb,Wb],o=[];function r(a,u){return a[1]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Ce()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(re(),P(o[f],1,1,()=>{o[f]=null}),ae(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),A(t,1),t.m(i.parentNode,i))},i(a){s||(A(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}function gu(){const n=window.location.href.indexOf("#/");let e=n>-1?window.location.href.substr(n+1):"/";const t=e.indexOf("?");let i="";return t>-1&&(i=e.substr(t+1),e=e.substr(0,t)),{location:e,querystring:i}}const qo=X_(null,function(e){e(gu());const t=()=>{e(gu())};return window.addEventListener("hashchange",t,!1),function(){window.removeEventListener("hashchange",t,!1)}});Q_(qo,n=>n.location);const Sa=Q_(qo,n=>n.querystring),bu=In(void 0);async function ji(n){if(!n||n.length<1||n.charAt(0)!="/"&&n.indexOf("#/")!==0)throw Error("Invalid parameter location");await an();const e=(n.charAt(0)=="#"?"":"#")+n;try{const t={...history.state};delete t.__svelte_spa_router_scrollX,delete t.__svelte_spa_router_scrollY,window.history.replaceState(t,void 0,e)}catch{console.warn("Caught exception while replacing the current page. If you're running this in the Svelte REPL, please note that the `replace` method might not work in this environment.")}window.dispatchEvent(new Event("hashchange"))}function dn(n,e){if(e=yu(e),!n||!n.tagName||n.tagName.toLowerCase()!="a")throw Error('Action "link" can only be used with tags');return vu(n,e),{update(t){t=yu(t),vu(n,t)}}}function Jb(n){n?window.scrollTo(n.__svelte_spa_router_scrollX,n.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function vu(n,e){let t=e.href||n.getAttribute("href");if(t&&t.charAt(0)=="/")t="#"+t;else if(!t||t.length<2||t.slice(0,2)!="#/")throw Error('Invalid value for "href" attribute: '+t);n.setAttribute("href",t),n.addEventListener("click",i=>{i.preventDefault(),e.disabled||Zb(i.currentTarget.getAttribute("href"))})}function yu(n){return n&&typeof n=="string"?{href:n}:n||{}}function Zb(n){history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=n}function Gb(n,e,t){let{routes:i={}}=e,{prefix:s=""}=e,{restoreScrollState:l=!1}=e;class o{constructor(D,M){if(!M||typeof M!="function"&&(typeof M!="object"||M._sveltesparouter!==!0))throw Error("Invalid component object");if(!D||typeof D=="string"&&(D.length<1||D.charAt(0)!="/"&&D.charAt(0)!="*")||typeof D=="object"&&!(D instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:O,keys:I}=x_(D);this.path=D,typeof M=="object"&&M._sveltesparouter===!0?(this.component=M.component,this.conditions=M.conditions||[],this.userData=M.userData,this.props=M.props||{}):(this.component=()=>Promise.resolve(M),this.conditions=[],this.props={}),this._pattern=O,this._keys=I}match(D){if(s){if(typeof s=="string")if(D.startsWith(s))D=D.substr(s.length)||"/";else return null;else if(s instanceof RegExp){const L=D.match(s);if(L&&L[0])D=D.substr(L[0].length)||"/";else return null}}const M=this._pattern.exec(D);if(M===null)return null;if(this._keys===!1)return M;const O={};let I=0;for(;I{r.push(new o(D,C))}):Object.keys(i).forEach(C=>{r.push(new o(C,i[C]))});let a=null,u=null,f={};const d=Tt();async function p(C,D){await an(),d(C,D)}let m=null,g=null;l&&(g=C=>{C.state&&(C.state.__svelte_spa_router_scrollY||C.state.__svelte_spa_router_scrollX)?m=C.state:m=null},window.addEventListener("popstate",g),jb(()=>{Jb(m)}));let _=null,b=null;const k=qo.subscribe(async C=>{_=C;let D=0;for(;D{bu.set(u)});return}t(0,a=null),b=null,bu.set(void 0)});ba(()=>{k(),g&&window.removeEventListener("popstate",g)});function $(C){me.call(this,n,C)}function T(C){me.call(this,n,C)}return n.$$set=C=>{"routes"in C&&t(3,i=C.routes),"prefix"in C&&t(4,s=C.prefix),"restoreScrollState"in C&&t(5,l=C.restoreScrollState)},n.$$.update=()=>{n.$$.dirty&32&&(history.scrollRestoration=l?"manual":"auto")},[a,u,f,i,s,l,$,T]}class Xb extends ye{constructor(e){super(),ve(this,e,Gb,Kb,_e,{routes:3,prefix:4,restoreScrollState:5})}}const ro=[];let eg;function tg(n){const e=n.pattern.test(eg);ku(n,n.className,e),ku(n,n.inactiveClassName,!e)}function ku(n,e,t){(e||"").split(" ").forEach(i=>{i&&(n.node.classList.remove(i),t&&n.node.classList.add(i))})}qo.subscribe(n=>{eg=n.location+(n.querystring?"?"+n.querystring:""),ro.map(tg)});function Zn(n,e){if(e&&(typeof e=="string"||typeof e=="object"&&e instanceof RegExp)?e={path:e}:e=e||{},!e.path&&n.hasAttribute("href")&&(e.path=n.getAttribute("href"),e.path&&e.path.length>1&&e.path.charAt(0)=="#"&&(e.path=e.path.substring(1))),e.className||(e.className="active"),!e.path||typeof e.path=="string"&&(e.path.length<1||e.path.charAt(0)!="/"&&e.path.charAt(0)!="*"))throw Error('Invalid value for "path" argument');const{pattern:t}=typeof e.path=="string"?x_(e.path):{pattern:e.path},i={node:n,className:e.className,inactiveClassName:e.inactiveClassName,pattern:t};return ro.push(i),tg(i),{destroy(){ro.splice(ro.indexOf(i),1)}}}const Qb="modulepreload",xb=function(n,e){return new URL(n,e).href},wu={},rt=function(e,t,i){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(l=>{if(l=xb(l,i),l in wu)return;wu[l]=!0;const o=l.endsWith(".css"),r=o?'[rel="stylesheet"]':"";if(!!i)for(let f=s.length-1;f>=0;f--){const d=s[f];if(d.href===l&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${r}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Qb,o||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),o)return new Promise((f,d)=>{u.addEventListener("load",f),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())};var Hr=function(n,e){return Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},Hr(n,e)};function nn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}Hr(n,e),n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var zr=function(){return zr=Object.assign||function(e){for(var t,i=1,s=arguments.length;i0&&s[s.length-1])||d[0]!==6&&d[0]!==2)){o=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]0&&(!t.exp||t.exp-e>Date.now()/1e3))}ng=typeof atob=="function"?atob:function(n){var e=String(n).replace(/=+$/,"");if(e.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,i,s=0,l=0,o="";i=e.charAt(l++);~i&&(t=s%4?64*t+i:i,s++%4)?o+=String.fromCharCode(255&t>>(-2*s&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};var Tl=function(){function n(e){e===void 0&&(e={}),this.$load(e||{})}return n.prototype.load=function(e){return this.$load(e)},n.prototype.$load=function(e){for(var t=0,i=Object.entries(e);t4096&&(a.model={id:(s=a==null?void 0:a.model)===null||s===void 0?void 0:s.id,email:(l=a==null?void 0:a.model)===null||l===void 0?void 0:l.email},this.model instanceof ki&&(a.model.username=this.model.username,a.model.verified=this.model.verified,a.model.collectionId=this.model.collectionId),u=Su(t,JSON.stringify(a),e)),u},n.prototype.onChange=function(e,t){var i=this;return t===void 0&&(t=!1),this._onChangeCallbacks.push(e),t&&e(this.token,this.model),function(){for(var s=i._onChangeCallbacks.length-1;s>=0;s--)if(i._onChangeCallbacks[s]==e)return delete i._onChangeCallbacks[s],void i._onChangeCallbacks.splice(s,1)}},n.prototype.triggerChange=function(){for(var e=0,t=this._onChangeCallbacks;e0?e:1,this.perPage=t>=0?t:0,this.totalItems=i>=0?i:0,this.totalPages=s>=0?s:0,this.items=l||[]},$a=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return nn(e,n),e.prototype.getFullList=function(t,i){if(typeof t=="number")return this._getFullList(this.baseCrudPath,t,i);var s=Object.assign({},t,i);return this._getFullList(this.baseCrudPath,s.batch||200,s)},e.prototype.getList=function(t,i,s){return t===void 0&&(t=1),i===void 0&&(i=30),s===void 0&&(s={}),this._getList(this.baseCrudPath,t,i,s)},e.prototype.getFirstListItem=function(t,i){return i===void 0&&(i={}),this._getFirstListItem(this.baseCrudPath,t,i)},e.prototype.getOne=function(t,i){return i===void 0&&(i={}),this._getOne(this.baseCrudPath,t,i)},e.prototype.create=function(t,i){return t===void 0&&(t={}),i===void 0&&(i={}),this._create(this.baseCrudPath,t,i)},e.prototype.update=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),this._update(this.baseCrudPath,t,i,s)},e.prototype.delete=function(t,i){return i===void 0&&(i={}),this._delete(this.baseCrudPath,t,i)},e}(function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return nn(e,n),e.prototype._getFullList=function(t,i,s){var l=this;i===void 0&&(i=200),s===void 0&&(s={});var o=[],r=function(a){return Xt(l,void 0,void 0,function(){return Qt(this,function(u){return[2,this._getList(t,a,i||200,s).then(function(f){var d=f,p=d.items,m=d.totalItems;return o=o.concat(p),p.length&&m>o.length?r(a+1):o})]})})};return r(1)},e.prototype._getList=function(t,i,s,l){var o=this;return i===void 0&&(i=1),s===void 0&&(s=30),l===void 0&&(l={}),l=Object.assign({page:i,perPage:s},l),this.client.send(t,{method:"GET",params:l}).then(function(r){var a=[];if(r!=null&&r.items){r.items=r.items||[];for(var u=0,f=r.items;u1||typeof(t==null?void 0:t[0])=="string"?(console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),[2,this.authWithOAuth2Code((t==null?void 0:t[0])||"",(t==null?void 0:t[1])||"",(t==null?void 0:t[2])||"",(t==null?void 0:t[3])||"",(t==null?void 0:t[4])||{},(t==null?void 0:t[5])||{},(t==null?void 0:t[6])||{})]):(s=(t==null?void 0:t[0])||{},[4,this.listAuthMethods()]);case 1:if(l=u.sent(),!(o=l.authProviders.find(function(f){return f.name===s.provider})))throw new vi(new Error('Missing or invalid provider "'.concat(s.provider,'".')));return r=this.client.buildUrl("/api/oauth2-redirect"),[2,new Promise(function(f,d){return Xt(a,void 0,void 0,function(){var p,m,g,_,b=this;return Qt(this,function(k){switch(k.label){case 0:return k.trys.push([0,3,,4]),[4,this.client.realtime.subscribe("@oauth2",function($){return Xt(b,void 0,void 0,function(){var T,C,D;return Qt(this,function(M){switch(M.label){case 0:T=this.client.realtime.clientId,M.label=1;case 1:if(M.trys.push([1,3,,4]),p(),!$.state||T!==$.state)throw new Error("State parameters don't match.");return[4,this.authWithOAuth2Code(o.name,$.code,o.codeVerifier,r,s.createData)];case 2:return C=M.sent(),f(C),[3,4];case 3:return D=M.sent(),d(new vi(D)),[3,4];case 4:return[2]}})})})];case 1:return p=k.sent(),(m=new URL(o.authUrl+r)).searchParams.set("state",this.client.realtime.clientId),!((_=s.scopes)===null||_===void 0)&&_.length&&m.searchParams.set("scope",s.scopes.join(" ")),[4,s.urlCallback?s.urlCallback(m.toString()):this._defaultUrlCallback(m.toString())];case 2:return k.sent(),[3,4];case 3:return g=k.sent(),d(new vi(g)),[3,4];case 4:return[2]}})})})]}})})},e.prototype.authRefresh=function(t,i){var s=this;return t===void 0&&(t={}),i===void 0&&(i={}),this.client.send(this.baseCollectionPath+"/auth-refresh",{method:"POST",params:i,body:t}).then(function(l){return s.authResponse(l)})},e.prototype.requestPasswordReset=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({email:t},i),this.client.send(this.baseCollectionPath+"/request-password-reset",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.confirmPasswordReset=function(t,i,s,l,o){return l===void 0&&(l={}),o===void 0&&(o={}),l=Object.assign({token:t,password:i,passwordConfirm:s},l),this.client.send(this.baseCollectionPath+"/confirm-password-reset",{method:"POST",params:o,body:l}).then(function(){return!0})},e.prototype.requestVerification=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({email:t},i),this.client.send(this.baseCollectionPath+"/request-verification",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.confirmVerification=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({token:t},i),this.client.send(this.baseCollectionPath+"/confirm-verification",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.requestEmailChange=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({newEmail:t},i),this.client.send(this.baseCollectionPath+"/request-email-change",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.confirmEmailChange=function(t,i,s,l){return s===void 0&&(s={}),l===void 0&&(l={}),s=Object.assign({token:t,password:i},s),this.client.send(this.baseCollectionPath+"/confirm-email-change",{method:"POST",params:l,body:s}).then(function(){return!0})},e.prototype.listExternalAuths=function(t,i){return i===void 0&&(i={}),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t)+"/external-auths",{method:"GET",params:i}).then(function(s){var l=[];if(Array.isArray(s))for(var o=0,r=s;o"u"||!(window!=null&&window.open))throw new vi(new Error("Not in a browser context - please pass a custom urlCallback function."));var i=1024,s=768,l=window.innerWidth,o=window.innerHeight,r=l/2-(i=i>l?l:i)/2,a=o/2-(s=s>o?o:s)/2;window.open(t,"oauth2-popup","width="+i+",height="+s+",top="+a+",left="+r+",resizable,menubar=no")},e}($a),wn=function(e){e===void 0&&(e={}),this.id=e.id!==void 0?e.id:"",this.name=e.name!==void 0?e.name:"",this.type=e.type!==void 0?e.type:"text",this.system=!!e.system,this.required=!!e.required,this.options=typeof e.options=="object"&&e.options!==null?e.options:{}},kn=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return nn(e,n),e.prototype.$load=function(t){n.prototype.$load.call(this,t),this.system=!!t.system,this.name=typeof t.name=="string"?t.name:"",this.type=typeof t.type=="string"?t.type:"base",this.options=t.options!==void 0&&t.options!==null?t.options:{},this.indexes=Array.isArray(t.indexes)?t.indexes:[],this.listRule=typeof t.listRule=="string"?t.listRule:null,this.viewRule=typeof t.viewRule=="string"?t.viewRule:null,this.createRule=typeof t.createRule=="string"?t.createRule:null,this.updateRule=typeof t.updateRule=="string"?t.updateRule:null,this.deleteRule=typeof t.deleteRule=="string"?t.deleteRule:null,t.schema=Array.isArray(t.schema)?t.schema:[],this.schema=[];for(var i=0,s=t.schema;i=0;o--)this.subscriptions[t][o]===i&&(l=!0,delete this.subscriptions[t][o],this.subscriptions[t].splice(o,1),(s=this.eventSource)===null||s===void 0||s.removeEventListener(t,i));return l?(this.subscriptions[t].length||delete this.subscriptions[t],this.hasSubscriptionListeners()?[3,1]:(this.disconnect(),[3,3])):[2];case 1:return this.hasSubscriptionListeners(t)?[3,3]:[4,this.submitSubscriptions()];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.hasSubscriptionListeners=function(t){var i,s;if(this.subscriptions=this.subscriptions||{},t)return!!(!((i=this.subscriptions[t])===null||i===void 0)&&i.length);for(var l in this.subscriptions)if(!((s=this.subscriptions[l])===null||s===void 0)&&s.length)return!0;return!1},e.prototype.submitSubscriptions=function(){return Xt(this,void 0,void 0,function(){return Qt(this,function(t){return this.clientId?(this.addAllSubscriptionListeners(),this.lastSentTopics=this.getNonEmptySubscriptionTopics(),[2,this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentTopics},params:{$cancelKey:"realtime_"+this.clientId}}).catch(function(i){if(!(i!=null&&i.isAbort))throw i})]):[2]})})},e.prototype.getNonEmptySubscriptionTopics=function(){var t=[];for(var i in this.subscriptions)this.subscriptions[i].length&&t.push(i);return t},e.prototype.addAllSubscriptionListeners=function(){if(this.eventSource)for(var t in this.removeAllSubscriptionListeners(),this.subscriptions)for(var i=0,s=this.subscriptions[t];i0?[2]:[2,new Promise(function(s,l){t.pendingConnects.push({resolve:s,reject:l}),t.pendingConnects.length>1||t.initConnect()})]})})},e.prototype.initConnect=function(){var t=this;this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout(function(){t.connectErrorHandler(new Error("EventSource connect took too long."))},this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildUrl("/api/realtime")),this.eventSource.onerror=function(i){t.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",function(i){var s=i;t.clientId=s==null?void 0:s.lastEventId,t.submitSubscriptions().then(function(){return Xt(t,void 0,void 0,function(){var l;return Qt(this,function(o){switch(o.label){case 0:l=3,o.label=1;case 1:return this.hasUnsentSubscriptions()&&l>0?(l--,[4,this.submitSubscriptions()]):[3,3];case 2:return o.sent(),[3,1];case 3:return[2]}})})}).then(function(){for(var l=0,o=t.pendingConnects;lthis.maxReconnectAttempts){for(var s=0,l=this.pendingConnects;s=400)throw new vi({url:M.url,status:M.status,data:O});return[2,O]}})})}).catch(function(M){throw new vi(M)})]}})})},n.prototype.getFileUrl=function(e,t,i){return i===void 0&&(i={}),this.files.getUrl(e,t,i)},n.prototype.buildUrl=function(e){var t,i,s=this.baseUrl;return typeof window>"u"||!window.location||s.startsWith("https://")||s.startsWith("http://")||(s=this.baseUrl.startsWith("/")?!((t=window.location.origin)===null||t===void 0)&&t.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"":!((i=window.location.href)===null||i===void 0)&&i.endsWith("/")?window.location.href:(window.location.href||"")+"/",s+=this.baseUrl),e&&(s+=s.endsWith("/")?"":"/",s+=e.startsWith("/")?e.substring(1):e),s},n.prototype.isFormData=function(e){return e&&(e.constructor.name==="FormData"||typeof FormData<"u"&&e instanceof FormData)},n.prototype.serializeQueryParams=function(e){var t=[];for(var i in e)if(e[i]!==null){var s=e[i],l=encodeURIComponent(i);if(Array.isArray(s))for(var o=0,r=s;o"u"}function is(n){return typeof n=="number"}function Vo(n){return typeof n=="number"&&n%1===0}function g0(n){return typeof n=="string"}function b0(n){return Object.prototype.toString.call(n)==="[object Date]"}function Mg(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function v0(n){return Array.isArray(n)?n:[n]}function Cu(n,e,t){if(n.length!==0)return n.reduce((i,s)=>{const l=[e(s),s];return i&&t(i[0],l[0])===i[0]?i:l},null)[1]}function y0(n,e){return e.reduce((t,i)=>(t[i]=n[i],t),{})}function Ds(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function yi(n,e,t){return Vo(n)&&n>=e&&n<=t}function k0(n,e){return n-e*Math.floor(n/e)}function Ut(n,e=2){const t=n<0;let i;return t?i="-"+(""+-n).padStart(e,"0"):i=(""+n).padStart(e,"0"),i}function Di(n){if(!(it(n)||n===null||n===""))return parseInt(n,10)}function Wi(n){if(!(it(n)||n===null||n===""))return parseFloat(n)}function Ca(n){if(!(it(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Ta(n,e,t=!1){const i=10**e;return(t?Math.trunc:Math.round)(n*i)/i}function Ml(n){return n%4===0&&(n%100!==0||n%400===0)}function sl(n){return Ml(n)?366:365}function go(n,e){const t=k0(e-1,12)+1,i=n+(e-t)/12;return t===2?Ml(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Ma(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function bo(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,t=n-1,i=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return e===4||i===3?53:52}function Wr(n){return n>99?n:n>60?1900+n:2e3+n}function Og(n,e,t,i=null){const s=new Date(n),l={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(l.timeZone=i);const o={timeZoneName:e,...l},r=new Intl.DateTimeFormat(t,o).formatToParts(s).find(a=>a.type.toLowerCase()==="timezonename");return r?r.value:null}function Ho(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const i=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-i:i;return t*60+s}function Dg(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new zn(`Invalid unit value ${n}`);return e}function vo(n,e){const t={};for(const i in n)if(Ds(n,i)){const s=n[i];if(s==null)continue;t[e(i)]=Dg(s)}return t}function ll(n,e){const t=Math.trunc(Math.abs(n/60)),i=Math.trunc(Math.abs(n%60)),s=n>=0?"+":"-";switch(e){case"short":return`${s}${Ut(t,2)}:${Ut(i,2)}`;case"narrow":return`${s}${t}${i>0?`:${i}`:""}`;case"techie":return`${s}${Ut(t,2)}${Ut(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function zo(n){return y0(n,["hour","minute","second","millisecond"])}const Eg=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,w0=["January","February","March","April","May","June","July","August","September","October","November","December"],Ag=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],S0=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ig(n){switch(n){case"narrow":return[...S0];case"short":return[...Ag];case"long":return[...w0];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Pg=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Lg=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$0=["M","T","W","T","F","S","S"];function Ng(n){switch(n){case"narrow":return[...$0];case"short":return[...Lg];case"long":return[...Pg];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Fg=["AM","PM"],C0=["Before Christ","Anno Domini"],T0=["BC","AD"],M0=["B","A"];function Rg(n){switch(n){case"narrow":return[...M0];case"short":return[...T0];case"long":return[...C0];default:return null}}function O0(n){return Fg[n.hour<12?0:1]}function D0(n,e){return Ng(e)[n.weekday-1]}function E0(n,e){return Ig(e)[n.month-1]}function A0(n,e){return Rg(e)[n.year<0?0:1]}function I0(n,e,t="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},l=["hours","minutes","seconds"].indexOf(n)===-1;if(t==="auto"&&l){const d=n==="days";switch(e){case 1:return d?"tomorrow":`next ${s[n][0]}`;case-1:return d?"yesterday":`last ${s[n][0]}`;case 0:return d?"today":`this ${s[n][0]}`}}const o=Object.is(e,-0)||e<0,r=Math.abs(e),a=r===1,u=s[n],f=i?a?u[1]:u[2]||u[1]:a?s[n][0]:n;return o?`${r} ${f} ago`:`in ${r} ${f}`}function Tu(n,e){let t="";for(const i of n)i.literal?t+=i.val:t+=e(i.val);return t}const P0={D:Ur,DD:ag,DDD:ug,DDDD:fg,t:cg,tt:dg,ttt:pg,tttt:mg,T:hg,TT:_g,TTT:gg,TTTT:bg,f:vg,ff:kg,fff:Sg,ffff:Cg,F:yg,FF:wg,FFF:$g,FFFF:Tg};class yn{static create(e,t={}){return new yn(e,t)}static parseFormat(e){let t=null,i="",s=!1;const l=[];for(let o=0;o0&&l.push({literal:s,val:i}),t=null,i="",s=!s):s||r===t?i+=r:(i.length>0&&l.push({literal:!1,val:i}),i=r,t=r)}return i.length>0&&l.push({literal:s,val:i}),l}static macroTokenToFormatOpts(e){return P0[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ut(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",l=(m,g)=>this.loc.extract(e,m,g),o=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",r=()=>i?O0(e):l({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(m,g)=>i?E0(e,m):l(g?{month:m}:{month:m,day:"numeric"},"month"),u=(m,g)=>i?D0(e,m):l(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),f=m=>{const g=yn.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(e,g):m},d=m=>i?A0(e,m):l({era:m},"era"),p=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r();case"d":return s?l({day:"numeric"},"day"):this.num(e.day);case"dd":return s?l({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?l({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?l({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return s?l({month:"numeric"},"month"):this.num(e.month);case"MM":return s?l({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return s?l({year:"numeric"},"year"):this.num(e.year);case"yy":return s?l({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?l({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?l({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(m)}};return Tu(yn.parseFormat(t),p)}formatDurationFromString(e,t){const i=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=a=>u=>{const f=i(u);return f?this.num(a.get(f),u.length):u},l=yn.parseFormat(t),o=l.reduce((a,{literal:u,val:f})=>u?a:a.concat(f),[]),r=e.shiftTo(...o.map(i).filter(a=>a));return Tu(l,s(r))}}class Gn{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ol{get type(){throw new Mi}get name(){throw new Mi}get ianaName(){return this.name}get isUniversal(){throw new Mi}offsetName(e,t){throw new Mi}formatOffset(e,t){throw new Mi}offset(e){throw new Mi}equals(e){throw new Mi}get isValid(){throw new Mi}}let ir=null;class Oa extends Ol{static get instance(){return ir===null&&(ir=new Oa),ir}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return Og(e,t,i)}formatOffset(e,t){return ll(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ao={};function L0(n){return ao[n]||(ao[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ao[n]}const N0={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function F0(n,e){const t=n.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,l,o,r,a,u,f]=i;return[o,s,l,r,a,u,f]}function R0(n,e){const t=n.formatToParts(e),i=[];for(let s=0;s=0?g:1e3+g,(p-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let sr=null;class pn extends Ol{static get utcInstance(){return sr===null&&(sr=new pn(0)),sr}static instance(e){return e===0?pn.utcInstance:new pn(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new pn(Ho(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ll(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ll(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ll(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class q0 extends Ol{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ei(n,e){if(it(n)||n===null)return e;if(n instanceof Ol)return n;if(g0(n)){const t=n.toLowerCase();return t==="local"||t==="system"?e:t==="utc"||t==="gmt"?pn.utcInstance:pn.parseSpecifier(t)||wi.create(n)}else return is(n)?pn.instance(n):typeof n=="object"&&n.offset&&typeof n.offset=="number"?n:new q0(n)}let Mu=()=>Date.now(),Ou="system",Du=null,Eu=null,Au=null,Iu;class Kt{static get now(){return Mu}static set now(e){Mu=e}static set defaultZone(e){Ou=e}static get defaultZone(){return Ei(Ou,Oa.instance)}static get defaultLocale(){return Du}static set defaultLocale(e){Du=e}static get defaultNumberingSystem(){return Eu}static set defaultNumberingSystem(e){Eu=e}static get defaultOutputCalendar(){return Au}static set defaultOutputCalendar(e){Au=e}static get throwOnInvalid(){return Iu}static set throwOnInvalid(e){Iu=e}static resetCaches(){Dt.resetCache(),wi.resetCache()}}let Pu={};function j0(n,e={}){const t=JSON.stringify([n,e]);let i=Pu[t];return i||(i=new Intl.ListFormat(n,e),Pu[t]=i),i}let Yr={};function Kr(n,e={}){const t=JSON.stringify([n,e]);let i=Yr[t];return i||(i=new Intl.DateTimeFormat(n,e),Yr[t]=i),i}let Jr={};function V0(n,e={}){const t=JSON.stringify([n,e]);let i=Jr[t];return i||(i=new Intl.NumberFormat(n,e),Jr[t]=i),i}let Zr={};function H0(n,e={}){const{base:t,...i}=e,s=JSON.stringify([n,i]);let l=Zr[s];return l||(l=new Intl.RelativeTimeFormat(n,e),Zr[s]=l),l}let tl=null;function z0(){return tl||(tl=new Intl.DateTimeFormat().resolvedOptions().locale,tl)}function B0(n){const e=n.indexOf("-u-");if(e===-1)return[n];{let t;const i=n.substring(0,e);try{t=Kr(n).resolvedOptions()}catch{t=Kr(i).resolvedOptions()}const{numberingSystem:s,calendar:l}=t;return[i,s,l]}}function U0(n,e,t){return(t||e)&&(n+="-u",t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function W0(n){const e=[];for(let t=1;t<=12;t++){const i=Ue.utc(2016,t,1);e.push(n(i))}return e}function Y0(n){const e=[];for(let t=1;t<=7;t++){const i=Ue.utc(2016,11,13+t);e.push(n(i))}return e}function Vl(n,e,t,i,s){const l=n.listingMode(t);return l==="error"?null:l==="en"?i(e):s(e)}function K0(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class J0{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:l,...o}=i;if(!t||Object.keys(o).length>0){const r={useGrouping:!1,...i};i.padTo>0&&(r.minimumIntegerDigits=i.padTo),this.inf=V0(e,r)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):Ta(e,3);return Ut(t,this.padTo)}}}class Z0{constructor(e,t,i){this.opts=i;let s;if(e.zone.isUniversal){const o=-1*(e.offset/60),r=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&wi.create(r).valid?(s=r,this.dt=e):(s="UTC",i.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Ue.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const l={...this.opts};s&&(l.timeZone=s),this.dtf=Kr(t,l)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class G0{constructor(e,t,i){this.opts={style:"long",...i},!t&&Mg()&&(this.rtf=H0(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):I0(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Dt{static fromOpts(e){return Dt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,i,s=!1){const l=e||Kt.defaultLocale,o=l||(s?"en-US":z0()),r=t||Kt.defaultNumberingSystem,a=i||Kt.defaultOutputCalendar;return new Dt(o,r,a,l)}static resetCache(){tl=null,Yr={},Jr={},Zr={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i}={}){return Dt.create(e,t,i)}constructor(e,t,i,s){const[l,o,r]=B0(e);this.locale=l,this.numberingSystem=t||o||null,this.outputCalendar=i||r||null,this.intl=U0(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=K0(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Dt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,i=!0){return Vl(this,e,i,Ig,()=>{const s=t?{month:e,day:"numeric"}:{month:e},l=t?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=W0(o=>this.extract(o,s,"month"))),this.monthsCache[l][e]})}weekdays(e,t=!1,i=!0){return Vl(this,e,i,Ng,()=>{const s=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=t?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=Y0(o=>this.extract(o,s,"weekday"))),this.weekdaysCache[l][e]})}meridiems(e=!0){return Vl(this,void 0,e,()=>Fg,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ue.utc(2016,11,13,9),Ue.utc(2016,11,13,19)].map(i=>this.extract(i,t,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return Vl(this,e,t,Rg,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ue.utc(-40,1,1),Ue.utc(2017,1,1)].map(s=>this.extract(s,i,"era"))),this.eraCache[e]})}extract(e,t,i){const s=this.dtFormatter(e,t),l=s.formatToParts(),o=l.find(r=>r.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new J0(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Z0(e,this.intl,t)}relFormatter(e={}){return new G0(this.intl,this.isEnglish(),e)}listFormatter(e={}){return j0(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Fs(...n){const e=n.reduce((t,i)=>t+i.source,"");return RegExp(`^${e}$`)}function Rs(...n){return e=>n.reduce(([t,i,s],l)=>{const[o,r,a]=l(e,s);return[{...t,...o},r||i,a]},[{},null,1]).slice(0,2)}function qs(n,...e){if(n==null)return[null,null];for(const[t,i]of e){const s=t.exec(n);if(s)return i(s)}return[null,null]}function qg(...n){return(e,t)=>{const i={};let s;for(s=0;sm!==void 0&&(g||m&&f)?-m:m;return[{years:p(Wi(t)),months:p(Wi(i)),weeks:p(Wi(s)),days:p(Wi(l)),hours:p(Wi(o)),minutes:p(Wi(r)),seconds:p(Wi(a),a==="-0"),milliseconds:p(Ca(u),d)}]}const uv={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Aa(n,e,t,i,s,l,o){const r={year:e.length===2?Wr(Di(e)):Di(e),month:Ag.indexOf(t)+1,day:Di(i),hour:Di(s),minute:Di(l)};return o&&(r.second=Di(o)),n&&(r.weekday=n.length>3?Pg.indexOf(n)+1:Lg.indexOf(n)+1),r}const fv=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function cv(n){const[,e,t,i,s,l,o,r,a,u,f,d]=n,p=Aa(e,s,i,t,l,o,r);let m;return a?m=uv[a]:u?m=0:m=Ho(f,d),[p,new pn(m)]}function dv(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const pv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,mv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Lu(n){const[,e,t,i,s,l,o,r]=n;return[Aa(e,s,i,t,l,o,r),pn.utcInstance]}function _v(n){const[,e,t,i,s,l,o,r]=n;return[Aa(e,r,t,i,s,l,o),pn.utcInstance]}const gv=Fs(Q0,Ea),bv=Fs(x0,Ea),vv=Fs(ev,Ea),yv=Fs(Vg),zg=Rs(lv,js,Dl,El),kv=Rs(tv,js,Dl,El),wv=Rs(nv,js,Dl,El),Sv=Rs(js,Dl,El);function $v(n){return qs(n,[gv,zg],[bv,kv],[vv,wv],[yv,Sv])}function Cv(n){return qs(dv(n),[fv,cv])}function Tv(n){return qs(n,[pv,Lu],[mv,Lu],[hv,_v])}function Mv(n){return qs(n,[rv,av])}const Ov=Rs(js);function Dv(n){return qs(n,[ov,Ov])}const Ev=Fs(iv,sv),Av=Fs(Hg),Iv=Rs(js,Dl,El);function Pv(n){return qs(n,[Ev,zg],[Av,Iv])}const Lv="Invalid Duration",Bg={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Nv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Bg},Rn=146097/400,gs=146097/4800,Fv={years:{quarters:4,months:12,weeks:Rn/7,days:Rn,hours:Rn*24,minutes:Rn*24*60,seconds:Rn*24*60*60,milliseconds:Rn*24*60*60*1e3},quarters:{months:3,weeks:Rn/28,days:Rn/4,hours:Rn*24/4,minutes:Rn*24*60/4,seconds:Rn*24*60*60/4,milliseconds:Rn*24*60*60*1e3/4},months:{weeks:gs/7,days:gs,hours:gs*24,minutes:gs*24*60,seconds:gs*24*60*60,milliseconds:gs*24*60*60*1e3},...Bg},Xi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Rv=Xi.slice(0).reverse();function Yi(n,e,t=!1){const i={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy};return new ot(i)}function qv(n){return n<0?Math.floor(n):Math.ceil(n)}function Ug(n,e,t,i,s){const l=n[s][t],o=e[t]/l,r=Math.sign(o)===Math.sign(i[s]),a=!r&&i[s]!==0&&Math.abs(o)<=1?qv(o):Math.trunc(o);i[s]+=a,e[t]-=a*l}function jv(n,e){Rv.reduce((t,i)=>it(e[i])?t:(t&&Ug(n,e,t,e,i),i),null)}class ot{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Fv:Nv,this.isLuxonDuration=!0}static fromMillis(e,t){return ot.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new zn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new ot({values:vo(e,ot.normalizeUnit),loc:Dt.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromDurationLike(e){if(is(e))return ot.fromMillis(e);if(ot.isDuration(e))return e;if(typeof e=="object")return ot.fromObject(e);throw new zn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=Mv(e);return i?ot.fromObject(i,t):ot.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=Dv(e);return i?ot.fromObject(i,t):ot.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new zn("need to specify a reason the Duration is invalid");const i=e instanceof Gn?e:new Gn(e,t);if(Kt.throwOnInvalid)throw new m0(i);return new ot({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new rg(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?yn.create(this.loc,i).formatDurationFromString(this,e):Lv}toHuman(e={}){const t=Xi.map(i=>{const s=this.values[i];return it(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ta(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||i.milliseconds!==0)&&(s+=".SSS"));let l=i.toFormat(s);return e.includePrefix&&(l="T"+l),l}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e),i={};for(const s of Xi)(Ds(t.values,s)||Ds(this.values,s))&&(i[s]=t.get(s)+this.get(s));return Yi(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=Dg(e(this.values[i],i));return Yi(this,{values:t},!0)}get(e){return this[ot.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...vo(e,ot.normalizeUnit)};return Yi(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i}={}){const s=this.loc.clone({locale:e,numberingSystem:t}),l={loc:s};return i&&(l.conversionAccuracy=i),Yi(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return jv(this.matrix,e),Yi(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>ot.normalizeUnit(o));const t={},i={},s=this.toObject();let l;for(const o of Xi)if(e.indexOf(o)>=0){l=o;let r=0;for(const u in i)r+=this.matrix[u][o]*i[u],i[u]=0;is(s[o])&&(r+=s[o]);const a=Math.trunc(r);t[o]=a,i[o]=(r*1e3-a*1e3)/1e3;for(const u in s)Xi.indexOf(u)>Xi.indexOf(o)&&Ug(this.matrix,s,u,t,o)}else is(s[o])&&(i[o]=s[o]);for(const o in i)i[o]!==0&&(t[l]+=o===l?i[o]:i[o]/this.matrix[l][o]);return Yi(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return Yi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of Xi)if(!t(this.values[i],e.values[i]))return!1;return!0}}const Bs="Invalid Interval";function Vv(n,e){return!n||!n.isValid?It.invalid("missing or invalid start"):!e||!e.isValid?It.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?It.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ys).filter(o=>this.contains(o)).sort(),i=[];let{s}=this,l=0;for(;s+this.e?this.e:o;i.push(It.fromDateTimes(s,r)),s=r,l+=1}return i}splitBy(e){const t=ot.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:i}=this,s=1,l;const o=[];for(;ia*s));l=+r>+this.e?this.e:r,o.push(It.fromDateTimes(i,l)),i=l,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e=i?null:It.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return It.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort((s,l)=>s.s-l.s).reduce(([s,l],o)=>l?l.overlaps(o)||l.abutsStart(o)?[s,l.union(o)]:[s.concat([l]),o]:[s,o],[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const s=[],l=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),o=Array.prototype.concat(...l),r=o.sort((a,u)=>a.time-u.time);for(const a of r)i+=a.type==="s"?1:-1,i===1?t=a.time:(t&&+t!=+a.time&&s.push(It.fromDateTimes(t,a.time)),t=null);return It.merge(s)}difference(...e){return It.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Bs}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Bs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Bs}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Bs}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Bs}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):ot.invalid(this.invalidReason)}mapEndpoints(e){return It.fromDateTimes(e(this.s),e(this.e))}}class Hl{static hasDST(e=Kt.defaultZone){const t=Ue.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return wi.isValidZone(e)}static normalizeZone(e){return Ei(e,Kt.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:l="gregory"}={}){return(s||Dt.create(t,i,l)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:l="gregory"}={}){return(s||Dt.create(t,i,l)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Dt.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Dt.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Dt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Dt.create(t,null,"gregory").eras(e)}static features(){return{relative:Mg()}}}function Nu(n,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=t(e)-t(n);return Math.floor(ot.fromMillis(i).as("days"))}function Hv(n,e,t){const i=[["years",(r,a)=>a.year-r.year],["quarters",(r,a)=>a.quarter-r.quarter],["months",(r,a)=>a.month-r.month+(a.year-r.year)*12],["weeks",(r,a)=>{const u=Nu(r,a);return(u-u%7)/7}],["days",Nu]],s={};let l,o;for(const[r,a]of i)if(t.indexOf(r)>=0){l=r;let u=a(n,e);o=n.plus({[r]:u}),o>e?(n=n.plus({[r]:u-1}),u-=1):n=o,s[r]=u}return[n,s,o,l]}function zv(n,e,t,i){let[s,l,o,r]=Hv(n,e,t);const a=e-s,u=t.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(o0?ot.fromMillis(a,i).shiftTo(...u).plus(f):f}const Ia={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Fu={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Bv=Ia.hanidec.replace(/[\[|\]]/g,"").split("");function Uv(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t=l&&i<=o&&(e+=i-l)}}return parseInt(e,10)}else return e}function Kn({numberingSystem:n},e=""){return new RegExp(`${Ia[n||"latn"]}${e}`)}const Wv="missing Intl.DateTimeFormat.formatToParts support";function ut(n,e=t=>t){return{regex:n,deser:([t])=>e(Uv(t))}}const Yv=String.fromCharCode(160),Wg=`[ ${Yv}]`,Yg=new RegExp(Wg,"g");function Kv(n){return n.replace(/\./g,"\\.?").replace(Yg,Wg)}function Ru(n){return n.replace(/\./g,"").replace(Yg," ").toLowerCase()}function Jn(n,e){return n===null?null:{regex:RegExp(n.map(Kv).join("|")),deser:([t])=>n.findIndex(i=>Ru(t)===Ru(i))+e}}function qu(n,e){return{regex:n,deser:([,t,i])=>Ho(t,i),groups:e}}function lr(n){return{regex:n,deser:([e])=>e}}function Jv(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Zv(n,e){const t=Kn(e),i=Kn(e,"{2}"),s=Kn(e,"{3}"),l=Kn(e,"{4}"),o=Kn(e,"{6}"),r=Kn(e,"{1,2}"),a=Kn(e,"{1,3}"),u=Kn(e,"{1,6}"),f=Kn(e,"{1,9}"),d=Kn(e,"{2,4}"),p=Kn(e,"{4,6}"),m=b=>({regex:RegExp(Jv(b.val)),deser:([k])=>k,literal:!0}),_=(b=>{if(n.literal)return m(b);switch(b.val){case"G":return Jn(e.eras("short",!1),0);case"GG":return Jn(e.eras("long",!1),0);case"y":return ut(u);case"yy":return ut(d,Wr);case"yyyy":return ut(l);case"yyyyy":return ut(p);case"yyyyyy":return ut(o);case"M":return ut(r);case"MM":return ut(i);case"MMM":return Jn(e.months("short",!0,!1),1);case"MMMM":return Jn(e.months("long",!0,!1),1);case"L":return ut(r);case"LL":return ut(i);case"LLL":return Jn(e.months("short",!1,!1),1);case"LLLL":return Jn(e.months("long",!1,!1),1);case"d":return ut(r);case"dd":return ut(i);case"o":return ut(a);case"ooo":return ut(s);case"HH":return ut(i);case"H":return ut(r);case"hh":return ut(i);case"h":return ut(r);case"mm":return ut(i);case"m":return ut(r);case"q":return ut(r);case"qq":return ut(i);case"s":return ut(r);case"ss":return ut(i);case"S":return ut(a);case"SSS":return ut(s);case"u":return lr(f);case"uu":return lr(r);case"uuu":return ut(t);case"a":return Jn(e.meridiems(),0);case"kkkk":return ut(l);case"kk":return ut(d,Wr);case"W":return ut(r);case"WW":return ut(i);case"E":case"c":return ut(t);case"EEE":return Jn(e.weekdays("short",!1,!1),1);case"EEEE":return Jn(e.weekdays("long",!1,!1),1);case"ccc":return Jn(e.weekdays("short",!0,!1),1);case"cccc":return Jn(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return qu(new RegExp(`([+-]${r.source})(?::(${i.source}))?`),2);case"ZZZ":return qu(new RegExp(`([+-]${r.source})(${i.source})?`),2);case"z":return lr(/[a-z_+-/]{1,256}?/i);default:return m(b)}})(n)||{invalidReason:Wv};return _.token=n,_}const Gv={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Xv(n,e,t){const{type:i,value:s}=n;if(i==="literal")return{literal:!0,val:s};const l=t[i];let o=Gv[i];if(typeof o=="object"&&(o=o[l]),o)return{literal:!1,val:o}}function Qv(n){return[`^${n.map(t=>t.regex).reduce((t,i)=>`${t}(${i.source})`,"")}$`,n]}function xv(n,e,t){const i=n.match(e);if(i){const s={};let l=1;for(const o in t)if(Ds(t,o)){const r=t[o],a=r.groups?r.groups+1:1;!r.literal&&r.token&&(s[r.token.val[0]]=r.deser(i.slice(l,l+a))),l+=a}return[i,s]}else return[i,{}]}function ey(n){const e=l=>{switch(l){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,i;return it(n.z)||(t=wi.create(n.z)),it(n.Z)||(t||(t=new pn(n.Z)),i=n.Z),it(n.q)||(n.M=(n.q-1)*3+1),it(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),it(n.u)||(n.S=Ca(n.u)),[Object.keys(n).reduce((l,o)=>{const r=e(o);return r&&(l[r]=n[o]),l},{}),t,i]}let or=null;function ty(){return or||(or=Ue.fromMillis(1555555555555)),or}function ny(n,e){if(n.literal)return n;const t=yn.macroTokenToFormatOpts(n.val);if(!t)return n;const l=yn.create(e,t).formatDateTimeParts(ty()).map(o=>Xv(o,e,t));return l.includes(void 0)?n:l}function iy(n,e){return Array.prototype.concat(...n.map(t=>ny(t,e)))}function Kg(n,e,t){const i=iy(yn.parseFormat(t),n),s=i.map(o=>Zv(o,n)),l=s.find(o=>o.invalidReason);if(l)return{input:e,tokens:i,invalidReason:l.invalidReason};{const[o,r]=Qv(s),a=RegExp(o,"i"),[u,f]=xv(e,a,r),[d,p,m]=f?ey(f):[null,null,void 0];if(Ds(f,"a")&&Ds(f,"H"))throw new el("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:a,rawMatches:u,matches:f,result:d,zone:p,specificOffset:m}}}function sy(n,e,t){const{result:i,zone:s,specificOffset:l,invalidReason:o}=Kg(n,e,t);return[i,s,l,o]}const Jg=[0,31,59,90,120,151,181,212,243,273,304,334],Zg=[0,31,60,91,121,152,182,213,244,274,305,335];function Un(n,e){return new Gn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function Gg(n,e,t){const i=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function Xg(n,e,t){return t+(Ml(n)?Zg:Jg)[e-1]}function Qg(n,e){const t=Ml(n)?Zg:Jg,i=t.findIndex(l=>lbo(e)?(r=e+1,o=1):r=e,{weekYear:r,weekNumber:o,weekday:l,...zo(n)}}function ju(n){const{weekYear:e,weekNumber:t,weekday:i}=n,s=Gg(e,1,4),l=sl(e);let o=t*7+i-s-3,r;o<1?(r=e-1,o+=sl(r)):o>l?(r=e+1,o-=sl(e)):r=e;const{month:a,day:u}=Qg(r,o);return{year:r,month:a,day:u,...zo(n)}}function rr(n){const{year:e,month:t,day:i}=n,s=Xg(e,t,i);return{year:e,ordinal:s,...zo(n)}}function Vu(n){const{year:e,ordinal:t}=n,{month:i,day:s}=Qg(e,t);return{year:e,month:i,day:s,...zo(n)}}function ly(n){const e=Vo(n.weekYear),t=yi(n.weekNumber,1,bo(n.weekYear)),i=yi(n.weekday,1,7);return e?t?i?!1:Un("weekday",n.weekday):Un("week",n.week):Un("weekYear",n.weekYear)}function oy(n){const e=Vo(n.year),t=yi(n.ordinal,1,sl(n.year));return e?t?!1:Un("ordinal",n.ordinal):Un("year",n.year)}function xg(n){const e=Vo(n.year),t=yi(n.month,1,12),i=yi(n.day,1,go(n.year,n.month));return e?t?i?!1:Un("day",n.day):Un("month",n.month):Un("year",n.year)}function e1(n){const{hour:e,minute:t,second:i,millisecond:s}=n,l=yi(e,0,23)||e===24&&t===0&&i===0&&s===0,o=yi(t,0,59),r=yi(i,0,59),a=yi(s,0,999);return l?o?r?a?!1:Un("millisecond",s):Un("second",i):Un("minute",t):Un("hour",e)}const ar="Invalid DateTime",Hu=864e13;function zl(n){return new Gn("unsupported zone",`the zone "${n.name}" is not supported`)}function ur(n){return n.weekData===null&&(n.weekData=Gr(n.c)),n.weekData}function Us(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ue({...t,...e,old:t})}function t1(n,e,t){let i=n-e*60*1e3;const s=t.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const l=t.offset(i);return s===l?[i,s]:[n-Math.min(s,l)*60*1e3,Math.max(s,l)]}function zu(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function uo(n,e,t){return t1(Ma(n),e,t)}function Bu(n,e){const t=n.o,i=n.c.year+Math.trunc(e.years),s=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,l={...n.c,year:i,month:s,day:Math.min(n.c.day,go(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=ot.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),r=Ma(l);let[a,u]=t1(r,t,n.zone);return o!==0&&(a+=o,u=n.zone.offset(a)),{ts:a,o:u}}function Ws(n,e,t,i,s,l){const{setZone:o,zone:r}=t;if(n&&Object.keys(n).length!==0){const a=e||r,u=Ue.fromObject(n,{...t,zone:a,specificOffset:l});return o?u:u.setZone(r)}else return Ue.invalid(new Gn("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Bl(n,e,t=!0){return n.isValid?yn.create(Dt.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function fr(n,e){const t=n.c.year>9999||n.c.year<0;let i="";return t&&n.c.year>=0&&(i+="+"),i+=Ut(n.c.year,t?6:4),e?(i+="-",i+=Ut(n.c.month),i+="-",i+=Ut(n.c.day)):(i+=Ut(n.c.month),i+=Ut(n.c.day)),i}function Uu(n,e,t,i,s,l){let o=Ut(n.c.hour);return e?(o+=":",o+=Ut(n.c.minute),(n.c.second!==0||!t)&&(o+=":")):o+=Ut(n.c.minute),(n.c.second!==0||!t)&&(o+=Ut(n.c.second),(n.c.millisecond!==0||!i)&&(o+=".",o+=Ut(n.c.millisecond,3))),s&&(n.isOffsetFixed&&n.offset===0&&!l?o+="Z":n.o<0?(o+="-",o+=Ut(Math.trunc(-n.o/60)),o+=":",o+=Ut(Math.trunc(-n.o%60))):(o+="+",o+=Ut(Math.trunc(n.o/60)),o+=":",o+=Ut(Math.trunc(n.o%60)))),l&&(o+="["+n.zone.ianaName+"]"),o}const n1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ry={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ay={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i1=["year","month","day","hour","minute","second","millisecond"],uy=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fy=["year","ordinal","hour","minute","second","millisecond"];function Wu(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new rg(n);return e}function Yu(n,e){const t=Ei(e.zone,Kt.defaultZone),i=Dt.fromObject(e),s=Kt.now();let l,o;if(it(n.year))l=s;else{for(const u of i1)it(n[u])&&(n[u]=n1[u]);const r=xg(n)||e1(n);if(r)return Ue.invalid(r);const a=t.offset(s);[l,o]=uo(n,a,t)}return new Ue({ts:l,zone:t,loc:i,o})}function Ku(n,e,t){const i=it(t.round)?!0:t.round,s=(o,r)=>(o=Ta(o,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(o,r)),l=o=>t.calendary?e.hasSame(n,o)?0:e.startOf(o).diff(n.startOf(o),o).get(o):e.diff(n,o).get(o);if(t.unit)return s(l(t.unit),t.unit);for(const o of t.units){const r=l(o);if(Math.abs(r)>=1)return s(r,o)}return s(n>e?-0:0,t.units[t.units.length-1])}function Ju(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}class Ue{constructor(e){const t=e.zone||Kt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Gn("invalid input"):null)||(t.isValid?null:zl(t));this.ts=it(e.ts)?Kt.now():e.ts;let s=null,l=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,l]=[e.old.c,e.old.o];else{const r=t.offset(this.ts);s=zu(this.ts,r),i=Number.isNaN(s.year)?new Gn("invalid input"):null,s=i?null:s,l=i?null:r}this._zone=t,this.loc=e.loc||Dt.create(),this.invalid=i,this.weekData=null,this.c=s,this.o=l,this.isLuxonDateTime=!0}static now(){return new Ue({})}static local(){const[e,t]=Ju(arguments),[i,s,l,o,r,a,u]=t;return Yu({year:i,month:s,day:l,hour:o,minute:r,second:a,millisecond:u},e)}static utc(){const[e,t]=Ju(arguments),[i,s,l,o,r,a,u]=t;return e.zone=pn.utcInstance,Yu({year:i,month:s,day:l,hour:o,minute:r,second:a,millisecond:u},e)}static fromJSDate(e,t={}){const i=b0(e)?e.valueOf():NaN;if(Number.isNaN(i))return Ue.invalid("invalid input");const s=Ei(t.zone,Kt.defaultZone);return s.isValid?new Ue({ts:i,zone:s,loc:Dt.fromObject(t)}):Ue.invalid(zl(s))}static fromMillis(e,t={}){if(is(e))return e<-Hu||e>Hu?Ue.invalid("Timestamp out of range"):new Ue({ts:e,zone:Ei(t.zone,Kt.defaultZone),loc:Dt.fromObject(t)});throw new zn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(is(e))return new Ue({ts:e*1e3,zone:Ei(t.zone,Kt.defaultZone),loc:Dt.fromObject(t)});throw new zn("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=Ei(t.zone,Kt.defaultZone);if(!i.isValid)return Ue.invalid(zl(i));const s=Kt.now(),l=it(t.specificOffset)?i.offset(s):t.specificOffset,o=vo(e,Wu),r=!it(o.ordinal),a=!it(o.year),u=!it(o.month)||!it(o.day),f=a||u,d=o.weekYear||o.weekNumber,p=Dt.fromObject(t);if((f||r)&&d)throw new el("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&r)throw new el("Can't mix ordinal dates with month/day");const m=d||o.weekday&&!f;let g,_,b=zu(s,l);m?(g=uy,_=ry,b=Gr(b)):r?(g=fy,_=ay,b=rr(b)):(g=i1,_=n1);let k=!1;for(const I of g){const L=o[I];it(L)?k?o[I]=_[I]:o[I]=b[I]:k=!0}const $=m?ly(o):r?oy(o):xg(o),T=$||e1(o);if(T)return Ue.invalid(T);const C=m?ju(o):r?Vu(o):o,[D,M]=uo(C,l,i),O=new Ue({ts:D,zone:i,o:M,loc:p});return o.weekday&&f&&e.weekday!==O.weekday?Ue.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${O.toISO()}`):O}static fromISO(e,t={}){const[i,s]=$v(e);return Ws(i,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,s]=Cv(e);return Ws(i,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,s]=Tv(e);return Ws(i,s,t,"HTTP",t)}static fromFormat(e,t,i={}){if(it(e)||it(t))throw new zn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:l=null}=i,o=Dt.fromOpts({locale:s,numberingSystem:l,defaultToEN:!0}),[r,a,u,f]=sy(o,e,t);return f?Ue.invalid(f):Ws(r,a,i,`format ${t}`,e,u)}static fromString(e,t,i={}){return Ue.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,s]=Pv(e);return Ws(i,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new zn("need to specify a reason the DateTime is invalid");const i=e instanceof Gn?e:new Gn(e,t);if(Kt.throwOnInvalid)throw new d0(i);return new Ue({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ur(this).weekYear:NaN}get weekNumber(){return this.isValid?ur(this).weekNumber:NaN}get weekday(){return this.isValid?ur(this).weekday:NaN}get ordinal(){return this.isValid?rr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Hl.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Hl.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Hl.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Hl.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Ml(this.year)}get daysInMonth(){return go(this.year,this.month)}get daysInYear(){return this.isValid?sl(this.year):NaN}get weeksInWeekYear(){return this.isValid?bo(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:s}=yn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(pn.instance(e),t)}toLocal(){return this.setZone(Kt.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=Ei(e,Kt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||i){const l=e.offset(this.ts),o=this.toObject();[s]=uo(o,l,e)}return Us(this,{ts:s,zone:e})}else return Ue.invalid(zl(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return Us(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=vo(e,Wu),i=!it(t.weekYear)||!it(t.weekNumber)||!it(t.weekday),s=!it(t.ordinal),l=!it(t.year),o=!it(t.month)||!it(t.day),r=l||o,a=t.weekYear||t.weekNumber;if((r||s)&&a)throw new el("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&s)throw new el("Can't mix ordinal dates with month/day");let u;i?u=ju({...Gr(this.c),...t}):it(t.ordinal)?(u={...this.toObject(),...t},it(t.day)&&(u.day=Math.min(go(u.year,u.month),u.day))):u=Vu({...rr(this.c),...t});const[f,d]=uo(u,this.o,this.zone);return Us(this,{ts:f,o:d})}plus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e);return Us(this,Bu(this,t))}minus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e).negate();return Us(this,Bu(this,t))}startOf(e){if(!this.isValid)return this;const t={},i=ot.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break}if(i==="weeks"&&(t.weekday=1),i==="quarters"){const s=Math.ceil(this.month/3);t.month=(s-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?yn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ar}toLocaleString(e=Ur,t={}){return this.isValid?yn.create(this.loc.clone(t),e).formatDateTime(this):ar}toLocaleParts(e={}){return this.isValid?yn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:l=!1}={}){if(!this.isValid)return null;const o=e==="extended";let r=fr(this,o);return r+="T",r+=Uu(this,o,t,i,s,l),r}toISODate({format:e="extended"}={}){return this.isValid?fr(this,e==="extended"):null}toISOWeekDate(){return Bl(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:l=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+Uu(this,o==="extended",t,e,i,l):null}toRFC2822(){return Bl(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Bl(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?fr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(i&&(s+=" "),t?s+="z":e&&(s+="ZZ")),Bl(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ar}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return ot.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},l=v0(t).map(ot.normalizeUnit),o=e.valueOf()>this.valueOf(),r=o?this:e,a=o?e:this,u=zv(r,a,l,s);return o?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(Ue.now(),e,t)}until(e){return this.isValid?It.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t)<=i&&i<=s.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Ue.fromObject({},{zone:this.zone}),i=e.padding?thist.valueOf(),Math.min)}static max(...e){if(!e.every(Ue.isDateTime))throw new zn("max requires all arguments be DateTimes");return Cu(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:s=null,numberingSystem:l=null}=i,o=Dt.fromOpts({locale:s,numberingSystem:l,defaultToEN:!0});return Kg(o,e,t)}static fromStringExplain(e,t,i={}){return Ue.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return Ur}static get DATE_MED(){return ag}static get DATE_MED_WITH_WEEKDAY(){return h0}static get DATE_FULL(){return ug}static get DATE_HUGE(){return fg}static get TIME_SIMPLE(){return cg}static get TIME_WITH_SECONDS(){return dg}static get TIME_WITH_SHORT_OFFSET(){return pg}static get TIME_WITH_LONG_OFFSET(){return mg}static get TIME_24_SIMPLE(){return hg}static get TIME_24_WITH_SECONDS(){return _g}static get TIME_24_WITH_SHORT_OFFSET(){return gg}static get TIME_24_WITH_LONG_OFFSET(){return bg}static get DATETIME_SHORT(){return vg}static get DATETIME_SHORT_WITH_SECONDS(){return yg}static get DATETIME_MED(){return kg}static get DATETIME_MED_WITH_SECONDS(){return wg}static get DATETIME_MED_WITH_WEEKDAY(){return _0}static get DATETIME_FULL(){return Sg}static get DATETIME_FULL_WITH_SECONDS(){return $g}static get DATETIME_HUGE(){return Cg}static get DATETIME_HUGE_WITH_SECONDS(){return Tg}}function Ys(n){if(Ue.isDateTime(n))return n;if(n&&n.valueOf&&is(n.valueOf()))return Ue.fromJSDate(n);if(n&&typeof n=="object")return Ue.fromObject(n);throw new zn(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const cy=[".jpg",".jpeg",".png",".svg",".gif",".jfif",".webp",".avif"],dy=[".mp4",".avi",".mov",".3gp",".wmv"],py=[".aa",".aac",".m4v",".mp3",".ogg",".oga",".mogg",".amr"],my=[".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".odp",".odt",".ods",".txt"];class H{static isObject(e){return e!==null&&typeof e=="object"&&e.constructor===Object}static clone(e){return typeof structuredClone<"u"?structuredClone(e):JSON.parse(JSON.stringify(e))}static isEmpty(e){return e===""||e===null||e==="00000000-0000-0000-0000-000000000000"||e==="0001-01-01 00:00:00.000Z"||e==="0001-01-01"||typeof e>"u"||Array.isArray(e)&&e.length===0||H.isObject(e)&&Object.keys(e).length===0}static isInput(e){let t=e&&e.tagName?e.tagName.toLowerCase():"";return t==="input"||t==="select"||t==="textarea"||e.isContentEditable}static isFocusable(e){let t=e&&e.tagName?e.tagName.toLowerCase():"";return H.isInput(e)||t==="button"||t==="a"||t==="details"||e.tabIndex>=0}static hasNonEmptyProps(e){for(let t in e)if(!H.isEmpty(e[t]))return!0;return!1}static toArray(e,t=!1){return Array.isArray(e)?e.slice():(t||!H.isEmpty(e))&&typeof e<"u"?[e]:[]}static inArray(e,t){e=Array.isArray(e)?e:[];for(let i=e.length-1;i>=0;i--)if(e[i]==t)return!0;return!1}static removeByValue(e,t){e=Array.isArray(e)?e:[];for(let i=e.length-1;i>=0;i--)if(e[i]==t){e.splice(i,1);break}}static pushUnique(e,t){H.inArray(e,t)||e.push(t)}static findByKey(e,t,i){e=Array.isArray(e)?e:[];for(let s in e)if(e[s][t]==i)return e[s];return null}static groupByKey(e,t){e=Array.isArray(e)?e:[];const i={};for(let s in e)i[e[s][t]]=i[e[s][t]]||[],i[e[s][t]].push(e[s]);return i}static removeByKey(e,t,i){for(let s in e)if(e[s][t]==i){e.splice(s,1);break}}static pushOrReplaceByKey(e,t,i="id"){for(let s=e.length-1;s>=0;s--)if(e[s][i]==t[i]){e[s]=t;return}e.push(t)}static filterDuplicatesByKey(e,t="id"){e=Array.isArray(e)?e:[];const i={};for(const s of e)i[s[t]]=s;return Object.values(i)}static filterRedactedProps(e,t="******"){const i=JSON.parse(JSON.stringify(e||{}));for(let s in i)typeof i[s]=="object"&&i[s]!==null?i[s]=H.filterRedactedProps(i[s],t):i[s]===t&&delete i[s];return i}static getNestedVal(e,t,i=null,s="."){let l=e||{},o=(t||"").split(s);for(const r of o){if(!H.isObject(l)&&!Array.isArray(l)||typeof l[r]>"u")return i;l=l[r]}return l}static setByPath(e,t,i,s="."){if(e===null||typeof e!="object"){console.warn("setByPath: data not an object or array.");return}let l=e,o=t.split(s),r=o.pop();for(const a of o)(!H.isObject(l)&&!Array.isArray(l)||!H.isObject(l[a])&&!Array.isArray(l[a]))&&(l[a]={}),l=l[a];l[r]=i}static deleteByPath(e,t,i="."){let s=e||{},l=(t||"").split(i),o=l.pop();for(const r of l)(!H.isObject(s)&&!Array.isArray(s)||!H.isObject(s[r])&&!Array.isArray(s[r]))&&(s[r]={}),s=s[r];Array.isArray(s)?s.splice(o,1):H.isObject(s)&&delete s[o],l.length>0&&(Array.isArray(s)&&!s.length||H.isObject(s)&&!Object.keys(s).length)&&(Array.isArray(e)&&e.length>0||H.isObject(e)&&Object.keys(e).length>0)&&H.deleteByPath(e,l.join(i),i)}static randomString(e){e=e||10;let t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;s=2?(t[0][0]+t[1][0]).toUpperCase():e[0].toUpperCase()}static getDateTime(e){if(typeof e=="string"){const t={19:"yyyy-MM-dd HH:mm:ss",23:"yyyy-MM-dd HH:mm:ss.SSS",20:"yyyy-MM-dd HH:mm:ssZ",24:"yyyy-MM-dd HH:mm:ss.SSSZ"},i=t[e.length]||t[19];return Ue.fromFormat(e,i,{zone:"UTC"})}return Ue.fromJSDate(e)}static formatToUTCDate(e,t="yyyy-MM-dd HH:mm:ss"){return H.getDateTime(e).toUTC().toFormat(t)}static formatToLocalDate(e,t="yyyy-MM-dd HH:mm:ss"){return H.getDateTime(e).toLocal().toFormat(t)}static async copyToClipboard(e){var t;if(e=""+e,!(!e.length||!((t=window==null?void 0:window.navigator)!=null&&t.clipboard)))return window.navigator.clipboard.writeText(e).catch(i=>{console.warn("Failed to copy.",i)})}static downloadJson(e,t){const i="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null,2)),s=document.createElement("a");s.setAttribute("href",i),s.setAttribute("download",t+".json"),s.click(),s.remove()}static getJWTPayload(e){const t=(e||"").split(".")[1]||"";if(t==="")return{};try{const i=decodeURIComponent(atob(t));return JSON.parse(i)||{}}catch(i){console.warn("Failed to parse JWT payload data.",i)}return{}}static hasImageExtension(e){return!!cy.find(t=>e.toLowerCase().endsWith(t))}static hasVideoExtension(e){return!!dy.find(t=>e.toLowerCase().endsWith(t))}static hasAudioExtension(e){return!!py.find(t=>e.toLowerCase().endsWith(t))}static hasDocumentExtension(e){return!!my.find(t=>e.toLowerCase().endsWith(t))}static getFileType(e){return H.hasImageExtension(e)?"image":H.hasDocumentExtension(e)?"document":H.hasVideoExtension(e)?"video":H.hasAudioExtension(e)?"audio":"file"}static generateThumb(e,t=100,i=100){return new Promise(s=>{let l=new FileReader;l.onload=function(o){let r=new Image;r.onload=function(){let a=document.createElement("canvas"),u=a.getContext("2d"),f=r.width,d=r.height;return a.width=t,a.height=i,u.drawImage(r,f>d?(f-d)/2:0,0,f>d?d:f,f>d?d:f,0,0,t,i),s(a.toDataURL(e.type))},r.src=o.target.result},l.readAsDataURL(e)})}static addValueToFormData(e,t,i){if(!(typeof i>"u"))if(H.isEmpty(i))e.append(t,"");else if(Array.isArray(i))for(const s of i)H.addValueToFormData(e,t,s);else i instanceof File?e.append(t,i):i instanceof Date?e.append(t,i.toISOString()):H.isObject(i)?e.append(t,JSON.stringify(i)):e.append(t,""+i)}static dummyCollectionRecord(e){var o,r,a,u,f,d,p;const t=(e==null?void 0:e.schema)||[],i={id:"RECORD_ID",collectionId:e==null?void 0:e.id,collectionName:e==null?void 0:e.name};e!=null&&e.isAuth&&(i.username="username123",i.verified=!1,i.emailVisibility=!0,i.email="test@example.com"),(!(e!=null&&e.$isView)||H.extractColumnsFromQuery((o=e==null?void 0:e.options)==null?void 0:o.query).includes("created"))&&(i.created="2022-01-01 01:00:00.123Z"),(!(e!=null&&e.$isView)||H.extractColumnsFromQuery((r=e==null?void 0:e.options)==null?void 0:r.query).includes("updated"))&&(i.updated="2022-01-01 23:59:59.456Z");for(const m of t){let g=null;m.type==="number"?g=123:m.type==="date"?g="2022-01-01 10:00:00.123Z":m.type==="bool"?g=!0:m.type==="email"?g="test@example.com":m.type==="url"?g="https://example.com":m.type==="json"?g="JSON":m.type==="file"?(g="filename.jpg",((a=m.options)==null?void 0:a.maxSelect)!==1&&(g=[g])):m.type==="select"?(g=(f=(u=m.options)==null?void 0:u.values)==null?void 0:f[0],((d=m.options)==null?void 0:d.maxSelect)!==1&&(g=[g])):m.type==="relation"?(g="RELATION_RECORD_ID",((p=m.options)==null?void 0:p.maxSelect)!==1&&(g=[g])):g="test",i[m.name]=g}return i}static dummyCollectionSchemaData(e){var s,l,o,r;const t=(e==null?void 0:e.schema)||[],i={};for(const a of t){let u=null;if(a.type==="number")u=123;else if(a.type==="date")u="2022-01-01 10:00:00.123Z";else if(a.type==="bool")u=!0;else if(a.type==="email")u="test@example.com";else if(a.type==="url")u="https://example.com";else if(a.type==="json")u="JSON";else{if(a.type==="file")continue;a.type==="select"?(u=(l=(s=a.options)==null?void 0:s.values)==null?void 0:l[0],((o=a.options)==null?void 0:o.maxSelect)!==1&&(u=[u])):a.type==="relation"?(u="RELATION_RECORD_ID",((r=a.options)==null?void 0:r.maxSelect)!==1&&(u=[u])):u="test"}i[a.name]=u}return i}static getCollectionTypeIcon(e){switch(e==null?void 0:e.toLowerCase()){case"auth":return"ri-group-line";case"view":return"ri-table-line";default:return"ri-folder-2-line"}}static getFieldTypeIcon(e){switch(e==null?void 0:e.toLowerCase()){case"primary":return"ri-key-line";case"text":return"ri-text";case"number":return"ri-hashtag";case"date":return"ri-calendar-line";case"bool":return"ri-toggle-line";case"email":return"ri-mail-line";case"url":return"ri-link";case"editor":return"ri-edit-2-line";case"select":return"ri-list-check";case"json":return"ri-braces-line";case"file":return"ri-image-line";case"relation":return"ri-mind-map";case"user":return"ri-user-line";default:return"ri-star-s-line"}}static getFieldValueType(e){var t;switch(e==null?void 0:e.type){case"bool":return"Boolean";case"number":return"Number";case"file":return"File";case"select":case"relation":return((t=e==null?void 0:e.options)==null?void 0:t.maxSelect)===1?"String":"Array";default:return"String"}}static zeroDefaultStr(e){var t;return(e==null?void 0:e.type)==="number"?"0":(e==null?void 0:e.type)==="bool"?"false":(e==null?void 0:e.type)==="json"?'null, "", [], {}':["select","relation","file"].includes(e==null?void 0:e.type)&&((t=e==null?void 0:e.options)==null?void 0:t.maxSelect)!=1?"[]":'""'}static getApiExampleUrl(e){return(window.location.href.substring(0,window.location.href.indexOf("/_"))||e||"/").replace("//localhost","//127.0.0.1")}static hasCollectionChanges(e,t,i=!1){if(e=e||{},t=t||{},e.id!=t.id)return!0;for(let u in e)if(u!=="schema"&&JSON.stringify(e[u])!==JSON.stringify(t[u]))return!0;const s=Array.isArray(e.schema)?e.schema:[],l=Array.isArray(t.schema)?t.schema:[],o=s.filter(u=>(u==null?void 0:u.id)&&!H.findByKey(l,"id",u.id)),r=l.filter(u=>(u==null?void 0:u.id)&&!H.findByKey(s,"id",u.id)),a=l.filter(u=>{const f=H.isObject(u)&&H.findByKey(s,"id",u.id);if(!f)return!1;for(let d in f)if(JSON.stringify(u[d])!=JSON.stringify(f[d]))return!0;return!1});return!!(r.length||a.length||i&&o.length)}static sortCollections(e=[]){const t=[],i=[],s=[];for(const l of e)l.type==="auth"?t.push(l):l.type==="base"?i.push(l):s.push(l);return[].concat(t,i,s)}static yieldToMain(){return new Promise(e=>{setTimeout(e,0)})}static defaultFlatpickrOptions(){return{dateFormat:"Y-m-d H:i:S",disableMobile:!0,allowInput:!0,enableTime:!0,time_24hr:!0,locale:{firstDayOfWeek:1}}}static defaultEditorOptions(){return{branding:!1,promotion:!1,menubar:!1,min_height:270,height:270,max_height:700,autoresize_bottom_margin:30,skin:"pocketbase",content_style:"body { font-size: 14px }",plugins:["autoresize","autolink","lists","link","image","searchreplace","fullscreen","media","table","code","codesample","directionality"],toolbar:"styles | alignleft aligncenter alignright | bold italic forecolor backcolor | bullist numlist | link image table codesample direction | code fullscreen",file_picker_types:"image",file_picker_callback:(e,t,i)=>{const s=document.createElement("input");s.setAttribute("type","file"),s.setAttribute("accept","image/*"),s.addEventListener("change",l=>{const o=l.target.files[0],r=new FileReader;r.addEventListener("load",()=>{if(!tinymce)return;const a="blobid"+new Date().getTime(),u=tinymce.activeEditor.editorUpload.blobCache,f=r.result.split(",")[1],d=u.create(a,o,f);u.add(d),e(d.blobUri(),{title:o.name})}),r.readAsDataURL(o)}),s.click()},setup:e=>{e.on("keydown",i=>{(i.ctrlKey||i.metaKey)&&i.code=="KeyS"&&e.formElement&&(i.preventDefault(),i.stopPropagation(),e.formElement.dispatchEvent(new KeyboardEvent("keydown",i)))});const t="tinymce_last_direction";e.on("init",()=>{var s;const i=(s=window==null?void 0:window.localStorage)==null?void 0:s.getItem(t);!e.isDirty()&&e.getContent()==""&&i=="rtl"&&e.execCommand("mceDirectionRTL")}),e.ui.registry.addMenuButton("direction",{icon:"visualchars",fetch:i=>{i([{type:"menuitem",text:"LTR content",icon:"ltr",onAction:()=>{var l;(l=window==null?void 0:window.localStorage)==null||l.setItem(t,"ltr"),tinymce.activeEditor.execCommand("mceDirectionLTR")}},{type:"menuitem",text:"RTL content",icon:"rtl",onAction:()=>{var l;(l=window==null?void 0:window.localStorage)==null||l.setItem(t,"rtl"),tinymce.activeEditor.execCommand("mceDirectionRTL")}}])}})}}}static displayValue(e,t,i="N/A"){e=e||{},t=t||[];let s=[];for(const o of t){let r=e[o];typeof r>"u"||(H.isEmpty(r)?s.push(i):typeof r=="boolean"?s.push(r?"True":"False"):typeof r=="string"?(r=r.indexOf("<")>=0?H.plainText(r):r,s.push(H.truncate(r))):s.push(r))}if(s.length>0)return s.join(", ");const l=["title","name","email","username","heading","label","key","id"];for(const o of l)if(!H.isEmpty(e[o]))return e[o];return i}static extractColumnsFromQuery(e){var o;const t="__GROUP__";e=(e||"").replace(/\([\s\S]+?\)/gm,t).replace(/[\t\r\n]|(?:\s\s)+/g," ");const i=e.match(/select\s+([\s\S]+)\s+from/),s=((o=i==null?void 0:i[1])==null?void 0:o.split(","))||[],l=[];for(let r of s){const a=r.trim().split(" ").pop();a!=""&&a!=t&&l.push(a.replace(/[\'\"\`\[\]\s]/g,""))}return l}static getAllCollectionIdentifiers(e,t=""){if(!e)return[];let i=[t+"id"];if(e.$isView)for(let l of H.extractColumnsFromQuery(e.options.query))H.pushUnique(i,t+l);else e.$isAuth?(i.push(t+"username"),i.push(t+"email"),i.push(t+"emailVisibility"),i.push(t+"verified"),i.push(t+"created"),i.push(t+"updated")):(i.push(t+"created"),i.push(t+"updated"));const s=e.schema||[];for(const l of s)H.pushUnique(i,t+l.name);return i}static parseIndex(e){var a,u,f,d,p;const t={unique:!1,optional:!1,schemaName:"",indexName:"",tableName:"",columns:[],where:""},s=/create\s+(unique\s+)?\s*index\s*(if\s+not\s+exists\s+)?(\S*)\s+on\s+(\S*)\s+\(([\s\S]*)\)(?:\s*where\s+([\s\S]*))?/gmi.exec((e||"").trim());if((s==null?void 0:s.length)!=7)return t;const l=/^[\"\'\`\[\{}]|[\"\'\`\]\}]$/gm;t.unique=((a=s[1])==null?void 0:a.trim().toLowerCase())==="unique",t.optional=!H.isEmpty((u=s[2])==null?void 0:u.trim());const o=(s[3]||"").split(".");o.length==2?(t.schemaName=o[0].replace(l,""),t.indexName=o[1].replace(l,"")):(t.schemaName="",t.indexName=o[0].replace(l,"")),t.tableName=(s[4]||"").replace(l,"");const r=(s[5]||"").replace(/,(?=[^\(]*\))/gmi,"{PB_TEMP}").split(",");for(let m of r){m=m.trim().replaceAll("{PB_TEMP}",",");const _=/^([\s\S]+?)(?:\s+collate\s+([\w]+))?(?:\s+(asc|desc))?$/gmi.exec(m);if((_==null?void 0:_.length)!=4)continue;const b=(d=(f=_[1])==null?void 0:f.trim())==null?void 0:d.replace(l,"");b&&t.columns.push({name:b,collate:_[2]||"",sort:((p=_[3])==null?void 0:p.toUpperCase())||""})}return t.where=s[6]||"",t}static buildIndex(e){let t="CREATE ";e.unique&&(t+="UNIQUE "),t+="INDEX ",e.optional&&(t+="IF NOT EXISTS "),e.schemaName&&(t+=`\`${e.schemaName}\`.`),t+=`\`${e.indexName||"idx_"+H.randomString(7)}\` `,t+=`ON \`${e.tableName}\` (`;const i=e.columns.filter(s=>!!(s!=null&&s.name));return i.length>1&&(t+=` +}`,d=`__svelte_${Lb(f)}_${r}`,p=W_(n),{stylesheet:m,rules:g}=ho.get(p)||Nb(p,n);g[d]||(g[d]=!0,m.insertRule(`@keyframes ${d} ${f}`,m.cssRules.length));const _=n.style.animation||"";return n.style.animation=`${_?`${_}, `:""}${d} ${i}ms linear ${s}ms 1 both`,_o+=1,d}function pl(n,e){const t=(n.style.animation||"").split(", "),i=t.filter(e?l=>l.indexOf(e)<0:l=>l.indexOf("__svelte")===-1),s=t.length-i.length;s&&(n.style.animation=i.join(", "),_o-=s,_o||Fb())}function Fb(){ga(()=>{_o||(ho.forEach(n=>{const{ownerNode:e}=n.stylesheet;e&&w(e)}),ho.clear())})}function Rb(n,e,t,i){if(!e)return X;const s=n.getBoundingClientRect();if(e.left===s.left&&e.right===s.right&&e.top===s.top&&e.bottom===s.bottom)return X;const{delay:l=0,duration:o=300,easing:r=$l,start:a=Fo()+l,end:u=a+o,tick:f=X,css:d}=t(n,{from:e,to:s},i);let p=!0,m=!1,g;function _(){d&&(g=dl(n,0,1,o,l,r,d)),l||(m=!0)}function b(){d&&pl(n,g),p=!1}return Ro(k=>{if(!m&&k>=a&&(m=!0),m&&k>=u&&(f(1,0),b()),!p)return!1;if(m){const $=k-a,T=0+1*r($/o);f(T,1-T)}return!0}),_(),f(0,1),b}function qb(n){const e=getComputedStyle(n);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:i}=e,s=n.getBoundingClientRect();n.style.position="absolute",n.style.width=t,n.style.height=i,K_(n,s)}}function K_(n,e){const t=n.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const i=getComputedStyle(n),s=i.transform==="none"?"":i.transform;n.style.transform=`${s} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}let ml;function bi(n){ml=n}function Cl(){if(!ml)throw new Error("Function called outside component initialization");return ml}function en(n){Cl().$$.on_mount.push(n)}function jb(n){Cl().$$.after_update.push(n)}function ba(n){Cl().$$.on_destroy.push(n)}function Tt(){const n=Cl();return(e,t,{cancelable:i=!1}={})=>{const s=n.$$.callbacks[e];if(s){const l=Y_(e,t,{cancelable:i});return s.slice().forEach(o=>{o.call(n,l)}),!l.defaultPrevented}return!0}}function me(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const ks=[],ie=[];let Ss=[];const jr=[],J_=Promise.resolve();let Vr=!1;function Z_(){Vr||(Vr=!0,J_.then(va))}function an(){return Z_(),J_}function tt(n){Ss.push(n)}function ke(n){jr.push(n)}const nr=new Set;let hs=0;function va(){if(hs!==0)return;const n=ml;do{try{for(;hsn.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Ss=e}let zs;function ya(){return zs||(zs=Promise.resolve(),zs.then(()=>{zs=null})),zs}function ns(n,e,t){n.dispatchEvent(Y_(`${e?"intro":"outro"}${t}`))}const oo=new Set;let li;function re(){li={r:0,c:[],p:li}}function ae(){li.r||Ae(li.c),li=li.p}function A(n,e){n&&n.i&&(oo.delete(n),n.i(e))}function P(n,e,t,i){if(n&&n.o){if(oo.has(n))return;oo.add(n),li.c.push(()=>{oo.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}const ka={duration:0};function G_(n,e,t){const i={direction:"in"};let s=e(n,t,i),l=!1,o,r,a=0;function u(){o&&pl(n,o)}function f(){const{delay:p=0,duration:m=300,easing:g=$l,tick:_=X,css:b}=s||ka;b&&(o=dl(n,0,1,m,p,g,b,a++)),_(0,1);const k=Fo()+p,$=k+m;r&&r.abort(),l=!0,tt(()=>ns(n,!0,"start")),r=Ro(T=>{if(l){if(T>=$)return _(1,0),ns(n,!0,"end"),u(),l=!1;if(T>=k){const C=g((T-k)/m);_(C,1-C)}}return l})}let d=!1;return{start(){d||(d=!0,pl(n),Ht(s)?(s=s(i),ya().then(f)):f())},invalidate(){d=!1},end(){l&&(u(),l=!1)}}}function wa(n,e,t){const i={direction:"out"};let s=e(n,t,i),l=!0,o;const r=li;r.r+=1;function a(){const{delay:u=0,duration:f=300,easing:d=$l,tick:p=X,css:m}=s||ka;m&&(o=dl(n,1,0,f,u,d,m));const g=Fo()+u,_=g+f;tt(()=>ns(n,!1,"start")),Ro(b=>{if(l){if(b>=_)return p(0,1),ns(n,!1,"end"),--r.r||Ae(r.c),!1;if(b>=g){const k=d((b-g)/f);p(1-k,k)}}return l})}return Ht(s)?ya().then(()=>{s=s(i),a()}):a(),{end(u){u&&s.tick&&s.tick(1,0),l&&(o&&pl(n,o),l=!1)}}}function ze(n,e,t,i){const s={direction:"both"};let l=e(n,t,s),o=i?0:1,r=null,a=null,u=null;function f(){u&&pl(n,u)}function d(m,g){const _=m.b-o;return g*=Math.abs(_),{a:o,b:m.b,d:_,duration:g,start:m.start,end:m.start+g,group:m.group}}function p(m){const{delay:g=0,duration:_=300,easing:b=$l,tick:k=X,css:$}=l||ka,T={start:Fo()+g,b:m};m||(T.group=li,li.r+=1),r||a?a=T:($&&(f(),u=dl(n,o,m,_,g,b,$)),m&&k(0,1),r=d(T,_),tt(()=>ns(n,m,"start")),Ro(C=>{if(a&&C>a.start&&(r=d(a,_),a=null,ns(n,r.b,"start"),$&&(f(),u=dl(n,o,r.b,r.duration,0,b,l.css))),r){if(C>=r.end)k(o=r.b,1-o),ns(n,r.b,"end"),a||(r.b?f():--r.group.r||Ae(r.group.c)),r=null;else if(C>=r.start){const D=C-r.start;o=r.a+r.d*b(D/r.duration),k(o,1-o)}}return!!(r||a)}))}return{run(m){Ht(l)?ya().then(()=>{l=l(s),p(m)}):p(m)},end(){f(),r=a=null}}}function _u(n,e){const t=e.token={};function i(s,l,o,r){if(e.token!==t)return;e.resolved=r;let a=e.ctx;o!==void 0&&(a=a.slice(),a[o]=r);const u=s&&(e.current=s)(a);let f=!1;e.block&&(e.blocks?e.blocks.forEach((d,p)=>{p!==l&&d&&(re(),P(d,1,1,()=>{e.blocks[p]===d&&(e.blocks[p]=null)}),ae())}):e.block.d(1),u.c(),A(u,1),u.m(e.mount(),e.anchor),f=!0),e.block=u,e.blocks&&(e.blocks[l]=u),f&&va()}if(Mb(n)){const s=Cl();if(n.then(l=>{bi(s),i(e.then,1,e.value,l),bi(null)},l=>{if(bi(s),i(e.catch,2,e.error,l),bi(null),!e.hasCatch)throw l}),e.current!==e.pending)return i(e.pending,0),!0}else{if(e.current!==e.then)return i(e.then,1,e.value,n),!0;e.resolved=n}}function zb(n,e,t){const i=e.slice(),{resolved:s}=n;n.current===n.then&&(i[n.value]=s),n.current===n.catch&&(i[n.error]=s),n.block.p(i,t)}function us(n,e){n.d(1),e.delete(n.key)}function Jt(n,e){P(n,1,1,()=>{e.delete(n.key)})}function Bb(n,e){n.f(),Jt(n,e)}function yt(n,e,t,i,s,l,o,r,a,u,f,d){let p=n.length,m=l.length,g=p;const _={};for(;g--;)_[n[g].key]=g;const b=[],k=new Map,$=new Map,T=[];for(g=m;g--;){const O=d(s,l,g),I=t(O);let L=o.get(I);L?i&&T.push(()=>L.p(O,e)):(L=u(I,O),L.c()),k.set(I,b[g]=L),I in _&&$.set(I,Math.abs(g-_[I]))}const C=new Set,D=new Set;function M(O){A(O,1),O.m(r,f),o.set(O.key,O),f=O.first,m--}for(;p&&m;){const O=b[m-1],I=n[p-1],L=O.key,F=I.key;O===I?(f=O.first,p--,m--):k.has(F)?!o.has(L)||C.has(L)?M(O):D.has(F)?p--:$.get(L)>$.get(F)?(D.add(L),M(O)):(C.add(F),p--):(a(I,o),p--)}for(;p--;){const O=n[p];k.has(O.key)||a(O,o)}for(;m;)M(b[m-1]);return Ae(T),b}function Mt(n,e){const t={},i={},s={$$scope:1};let l=n.length;for(;l--;){const o=n[l],r=e[l];if(r){for(const a in o)a in r||(i[a]=1);for(const a in r)s[a]||(t[a]=r[a],s[a]=1);n[l]=r}else for(const a in o)s[a]=1}for(const o in i)o in t||(t[o]=void 0);return t}function Gt(n){return typeof n=="object"&&n!==null?n:{}}function he(n,e,t){const i=n.$$.props[e];i!==void 0&&(n.$$.bound[i]=t,t(n.$$.ctx[i]))}function U(n){n&&n.c()}function z(n,e,t,i){const{fragment:s,after_update:l}=n.$$;s&&s.m(e,t),i||tt(()=>{const o=n.$$.on_mount.map(H_).filter(Ht);n.$$.on_destroy?n.$$.on_destroy.push(...o):Ae(o),n.$$.on_mount=[]}),l.forEach(tt)}function B(n,e){const t=n.$$;t.fragment!==null&&(Hb(t.after_update),Ae(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ub(n,e){n.$$.dirty[0]===-1&&(ks.push(n),Z_(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<{const g=m.length?m[0]:p;return u.ctx&&s(u.ctx[d],u.ctx[d]=g)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](g),f&&Ub(n,d)),p}):[],u.update(),f=!0,Ae(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const d=Pb(e.target);u.fragment&&u.fragment.l(d),d.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&A(n.$$.fragment),z(n,e.target,e.anchor,e.customElement),va()}bi(a)}class ye{$destroy(){B(this,1),this.$destroy=X}$on(e,t){if(!Ht(t))return X;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Ob(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function jt(n){if(!n)throw Error("Parameter args is required");if(!n.component==!n.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(n.component&&(n.asyncComponent=()=>Promise.resolve(n.component)),typeof n.asyncComponent!="function")throw Error("Parameter asyncComponent must be a function");if(n.conditions){Array.isArray(n.conditions)||(n.conditions=[n.conditions]);for(let t=0;t{i.delete(u),i.size===0&&t&&(t(),t=null)}}return{set:s,update:l,subscribe:o}}function Q_(n,e,t){const i=!Array.isArray(n),s=i?[n]:n,l=e.length<2;return X_(t,o=>{let r=!1;const a=[];let u=0,f=X;const d=()=>{if(u)return;f();const m=e(i?a[0]:a,o);l?o(m):f=Ht(m)?m:X},p=s.map((m,g)=>_a(m,_=>{a[g]=_,u&=~(1<{u|=1<{B(f,1)}),ae()}l?(e=Nt(l,o()),e.$on("routeEvent",r[7]),U(e.$$.fragment),A(e.$$.fragment,1),z(e,t.parentNode,t)):e=null}else l&&e.$set(u)},i(r){i||(e&&A(e.$$.fragment,r),i=!0)},o(r){e&&P(e.$$.fragment,r),i=!1},d(r){r&&w(t),e&&B(e,r)}}}function Yb(n){let e,t,i;const s=[{params:n[1]},n[2]];var l=n[0];function o(r){let a={};for(let u=0;u{B(f,1)}),ae()}l?(e=Nt(l,o()),e.$on("routeEvent",r[6]),U(e.$$.fragment),A(e.$$.fragment,1),z(e,t.parentNode,t)):e=null}else l&&e.$set(u)},i(r){i||(e&&A(e.$$.fragment,r),i=!0)},o(r){e&&P(e.$$.fragment,r),i=!1},d(r){r&&w(t),e&&B(e,r)}}}function Kb(n){let e,t,i,s;const l=[Yb,Wb],o=[];function r(a,u){return a[1]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Ce()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(re(),P(o[f],1,1,()=>{o[f]=null}),ae(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),A(t,1),t.m(i.parentNode,i))},i(a){s||(A(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}function gu(){const n=window.location.href.indexOf("#/");let e=n>-1?window.location.href.substr(n+1):"/";const t=e.indexOf("?");let i="";return t>-1&&(i=e.substr(t+1),e=e.substr(0,t)),{location:e,querystring:i}}const qo=X_(null,function(e){e(gu());const t=()=>{e(gu())};return window.addEventListener("hashchange",t,!1),function(){window.removeEventListener("hashchange",t,!1)}});Q_(qo,n=>n.location);const Sa=Q_(qo,n=>n.querystring),bu=In(void 0);async function ji(n){if(!n||n.length<1||n.charAt(0)!="/"&&n.indexOf("#/")!==0)throw Error("Invalid parameter location");await an();const e=(n.charAt(0)=="#"?"":"#")+n;try{const t={...history.state};delete t.__svelte_spa_router_scrollX,delete t.__svelte_spa_router_scrollY,window.history.replaceState(t,void 0,e)}catch{console.warn("Caught exception while replacing the current page. If you're running this in the Svelte REPL, please note that the `replace` method might not work in this environment.")}window.dispatchEvent(new Event("hashchange"))}function dn(n,e){if(e=yu(e),!n||!n.tagName||n.tagName.toLowerCase()!="a")throw Error('Action "link" can only be used with tags');return vu(n,e),{update(t){t=yu(t),vu(n,t)}}}function Jb(n){n?window.scrollTo(n.__svelte_spa_router_scrollX,n.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function vu(n,e){let t=e.href||n.getAttribute("href");if(t&&t.charAt(0)=="/")t="#"+t;else if(!t||t.length<2||t.slice(0,2)!="#/")throw Error('Invalid value for "href" attribute: '+t);n.setAttribute("href",t),n.addEventListener("click",i=>{i.preventDefault(),e.disabled||Zb(i.currentTarget.getAttribute("href"))})}function yu(n){return n&&typeof n=="string"?{href:n}:n||{}}function Zb(n){history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=n}function Gb(n,e,t){let{routes:i={}}=e,{prefix:s=""}=e,{restoreScrollState:l=!1}=e;class o{constructor(D,M){if(!M||typeof M!="function"&&(typeof M!="object"||M._sveltesparouter!==!0))throw Error("Invalid component object");if(!D||typeof D=="string"&&(D.length<1||D.charAt(0)!="/"&&D.charAt(0)!="*")||typeof D=="object"&&!(D instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:O,keys:I}=x_(D);this.path=D,typeof M=="object"&&M._sveltesparouter===!0?(this.component=M.component,this.conditions=M.conditions||[],this.userData=M.userData,this.props=M.props||{}):(this.component=()=>Promise.resolve(M),this.conditions=[],this.props={}),this._pattern=O,this._keys=I}match(D){if(s){if(typeof s=="string")if(D.startsWith(s))D=D.substr(s.length)||"/";else return null;else if(s instanceof RegExp){const L=D.match(s);if(L&&L[0])D=D.substr(L[0].length)||"/";else return null}}const M=this._pattern.exec(D);if(M===null)return null;if(this._keys===!1)return M;const O={};let I=0;for(;I{r.push(new o(D,C))}):Object.keys(i).forEach(C=>{r.push(new o(C,i[C]))});let a=null,u=null,f={};const d=Tt();async function p(C,D){await an(),d(C,D)}let m=null,g=null;l&&(g=C=>{C.state&&(C.state.__svelte_spa_router_scrollY||C.state.__svelte_spa_router_scrollX)?m=C.state:m=null},window.addEventListener("popstate",g),jb(()=>{Jb(m)}));let _=null,b=null;const k=qo.subscribe(async C=>{_=C;let D=0;for(;D{bu.set(u)});return}t(0,a=null),b=null,bu.set(void 0)});ba(()=>{k(),g&&window.removeEventListener("popstate",g)});function $(C){me.call(this,n,C)}function T(C){me.call(this,n,C)}return n.$$set=C=>{"routes"in C&&t(3,i=C.routes),"prefix"in C&&t(4,s=C.prefix),"restoreScrollState"in C&&t(5,l=C.restoreScrollState)},n.$$.update=()=>{n.$$.dirty&32&&(history.scrollRestoration=l?"manual":"auto")},[a,u,f,i,s,l,$,T]}class Xb extends ye{constructor(e){super(),ve(this,e,Gb,Kb,_e,{routes:3,prefix:4,restoreScrollState:5})}}const ro=[];let eg;function tg(n){const e=n.pattern.test(eg);ku(n,n.className,e),ku(n,n.inactiveClassName,!e)}function ku(n,e,t){(e||"").split(" ").forEach(i=>{i&&(n.node.classList.remove(i),t&&n.node.classList.add(i))})}qo.subscribe(n=>{eg=n.location+(n.querystring?"?"+n.querystring:""),ro.map(tg)});function Zn(n,e){if(e&&(typeof e=="string"||typeof e=="object"&&e instanceof RegExp)?e={path:e}:e=e||{},!e.path&&n.hasAttribute("href")&&(e.path=n.getAttribute("href"),e.path&&e.path.length>1&&e.path.charAt(0)=="#"&&(e.path=e.path.substring(1))),e.className||(e.className="active"),!e.path||typeof e.path=="string"&&(e.path.length<1||e.path.charAt(0)!="/"&&e.path.charAt(0)!="*"))throw Error('Invalid value for "path" argument');const{pattern:t}=typeof e.path=="string"?x_(e.path):{pattern:e.path},i={node:n,className:e.className,inactiveClassName:e.inactiveClassName,pattern:t};return ro.push(i),tg(i),{destroy(){ro.splice(ro.indexOf(i),1)}}}const Qb="modulepreload",xb=function(n,e){return new URL(n,e).href},wu={},rt=function(e,t,i){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(l=>{if(l=xb(l,i),l in wu)return;wu[l]=!0;const o=l.endsWith(".css"),r=o?'[rel="stylesheet"]':"";if(!!i)for(let f=s.length-1;f>=0;f--){const d=s[f];if(d.href===l&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${r}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Qb,o||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),o)return new Promise((f,d)=>{u.addEventListener("load",f),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())};var Hr=function(n,e){return Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},Hr(n,e)};function nn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}Hr(n,e),n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var zr=function(){return zr=Object.assign||function(e){for(var t,i=1,s=arguments.length;i0&&s[s.length-1])||d[0]!==6&&d[0]!==2)){o=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]0&&(!t.exp||t.exp-e>Date.now()/1e3))}ng=typeof atob=="function"?atob:function(n){var e=String(n).replace(/=+$/,"");if(e.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,i,s=0,l=0,o="";i=e.charAt(l++);~i&&(t=s%4?64*t+i:i,s++%4)?o+=String.fromCharCode(255&t>>(-2*s&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};var Tl=function(){function n(e){e===void 0&&(e={}),this.$load(e||{})}return n.prototype.load=function(e){return this.$load(e)},n.prototype.$load=function(e){for(var t=0,i=Object.entries(e);t4096&&(a.model={id:(s=a==null?void 0:a.model)===null||s===void 0?void 0:s.id,email:(l=a==null?void 0:a.model)===null||l===void 0?void 0:l.email},this.model instanceof ki&&(a.model.username=this.model.username,a.model.verified=this.model.verified,a.model.collectionId=this.model.collectionId),u=Su(t,JSON.stringify(a),e)),u},n.prototype.onChange=function(e,t){var i=this;return t===void 0&&(t=!1),this._onChangeCallbacks.push(e),t&&e(this.token,this.model),function(){for(var s=i._onChangeCallbacks.length-1;s>=0;s--)if(i._onChangeCallbacks[s]==e)return delete i._onChangeCallbacks[s],void i._onChangeCallbacks.splice(s,1)}},n.prototype.triggerChange=function(){for(var e=0,t=this._onChangeCallbacks;e0?e:1,this.perPage=t>=0?t:0,this.totalItems=i>=0?i:0,this.totalPages=s>=0?s:0,this.items=l||[]},$a=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return nn(e,n),e.prototype.getFullList=function(t,i){if(typeof t=="number")return this._getFullList(this.baseCrudPath,t,i);var s=Object.assign({},t,i);return this._getFullList(this.baseCrudPath,s.batch||200,s)},e.prototype.getList=function(t,i,s){return t===void 0&&(t=1),i===void 0&&(i=30),s===void 0&&(s={}),this._getList(this.baseCrudPath,t,i,s)},e.prototype.getFirstListItem=function(t,i){return i===void 0&&(i={}),this._getFirstListItem(this.baseCrudPath,t,i)},e.prototype.getOne=function(t,i){return i===void 0&&(i={}),this._getOne(this.baseCrudPath,t,i)},e.prototype.create=function(t,i){return t===void 0&&(t={}),i===void 0&&(i={}),this._create(this.baseCrudPath,t,i)},e.prototype.update=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),this._update(this.baseCrudPath,t,i,s)},e.prototype.delete=function(t,i){return i===void 0&&(i={}),this._delete(this.baseCrudPath,t,i)},e}(function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return nn(e,n),e.prototype._getFullList=function(t,i,s){var l=this;i===void 0&&(i=200),s===void 0&&(s={});var o=[],r=function(a){return Xt(l,void 0,void 0,function(){return Qt(this,function(u){return[2,this._getList(t,a,i||200,s).then(function(f){var d=f,p=d.items,m=d.totalItems;return o=o.concat(p),p.length&&m>o.length?r(a+1):o})]})})};return r(1)},e.prototype._getList=function(t,i,s,l){var o=this;return i===void 0&&(i=1),s===void 0&&(s=30),l===void 0&&(l={}),l=Object.assign({page:i,perPage:s},l),this.client.send(t,{method:"GET",params:l}).then(function(r){var a=[];if(r!=null&&r.items){r.items=r.items||[];for(var u=0,f=r.items;u1||typeof(t==null?void 0:t[0])=="string"?(console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),[2,this.authWithOAuth2Code((t==null?void 0:t[0])||"",(t==null?void 0:t[1])||"",(t==null?void 0:t[2])||"",(t==null?void 0:t[3])||"",(t==null?void 0:t[4])||{},(t==null?void 0:t[5])||{},(t==null?void 0:t[6])||{})]):(s=(t==null?void 0:t[0])||{},[4,this.listAuthMethods()]);case 1:if(l=u.sent(),!(o=l.authProviders.find(function(f){return f.name===s.provider})))throw new vi(new Error('Missing or invalid provider "'.concat(s.provider,'".')));return r=this.client.buildUrl("/api/oauth2-redirect"),[2,new Promise(function(f,d){return Xt(a,void 0,void 0,function(){var p,m,g,_,b=this;return Qt(this,function(k){switch(k.label){case 0:return k.trys.push([0,3,,4]),[4,this.client.realtime.subscribe("@oauth2",function($){return Xt(b,void 0,void 0,function(){var T,C,D;return Qt(this,function(M){switch(M.label){case 0:T=this.client.realtime.clientId,M.label=1;case 1:if(M.trys.push([1,3,,4]),p(),!$.state||T!==$.state)throw new Error("State parameters don't match.");return[4,this.authWithOAuth2Code(o.name,$.code,o.codeVerifier,r,s.createData)];case 2:return C=M.sent(),f(C),[3,4];case 3:return D=M.sent(),d(new vi(D)),[3,4];case 4:return[2]}})})})];case 1:return p=k.sent(),(m=new URL(o.authUrl+r)).searchParams.set("state",this.client.realtime.clientId),!((_=s.scopes)===null||_===void 0)&&_.length&&m.searchParams.set("scope",s.scopes.join(" ")),[4,s.urlCallback?s.urlCallback(m.toString()):this._defaultUrlCallback(m.toString())];case 2:return k.sent(),[3,4];case 3:return g=k.sent(),d(new vi(g)),[3,4];case 4:return[2]}})})})]}})})},e.prototype.authRefresh=function(t,i){var s=this;return t===void 0&&(t={}),i===void 0&&(i={}),this.client.send(this.baseCollectionPath+"/auth-refresh",{method:"POST",params:i,body:t}).then(function(l){return s.authResponse(l)})},e.prototype.requestPasswordReset=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({email:t},i),this.client.send(this.baseCollectionPath+"/request-password-reset",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.confirmPasswordReset=function(t,i,s,l,o){return l===void 0&&(l={}),o===void 0&&(o={}),l=Object.assign({token:t,password:i,passwordConfirm:s},l),this.client.send(this.baseCollectionPath+"/confirm-password-reset",{method:"POST",params:o,body:l}).then(function(){return!0})},e.prototype.requestVerification=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({email:t},i),this.client.send(this.baseCollectionPath+"/request-verification",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.confirmVerification=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({token:t},i),this.client.send(this.baseCollectionPath+"/confirm-verification",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.requestEmailChange=function(t,i,s){return i===void 0&&(i={}),s===void 0&&(s={}),i=Object.assign({newEmail:t},i),this.client.send(this.baseCollectionPath+"/request-email-change",{method:"POST",params:s,body:i}).then(function(){return!0})},e.prototype.confirmEmailChange=function(t,i,s,l){return s===void 0&&(s={}),l===void 0&&(l={}),s=Object.assign({token:t,password:i},s),this.client.send(this.baseCollectionPath+"/confirm-email-change",{method:"POST",params:l,body:s}).then(function(){return!0})},e.prototype.listExternalAuths=function(t,i){return i===void 0&&(i={}),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t)+"/external-auths",{method:"GET",params:i}).then(function(s){var l=[];if(Array.isArray(s))for(var o=0,r=s;o"u"||!(window!=null&&window.open))throw new vi(new Error("Not in a browser context - please pass a custom urlCallback function."));var i=1024,s=768,l=window.innerWidth,o=window.innerHeight,r=l/2-(i=i>l?l:i)/2,a=o/2-(s=s>o?o:s)/2;window.open(t,"oauth2-popup","width="+i+",height="+s+",top="+a+",left="+r+",resizable,menubar=no")},e}($a),wn=function(e){e===void 0&&(e={}),this.id=e.id!==void 0?e.id:"",this.name=e.name!==void 0?e.name:"",this.type=e.type!==void 0?e.type:"text",this.system=!!e.system,this.required=!!e.required,this.options=typeof e.options=="object"&&e.options!==null?e.options:{}},kn=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return nn(e,n),e.prototype.$load=function(t){n.prototype.$load.call(this,t),this.system=!!t.system,this.name=typeof t.name=="string"?t.name:"",this.type=typeof t.type=="string"?t.type:"base",this.options=t.options!==void 0&&t.options!==null?t.options:{},this.indexes=Array.isArray(t.indexes)?t.indexes:[],this.listRule=typeof t.listRule=="string"?t.listRule:null,this.viewRule=typeof t.viewRule=="string"?t.viewRule:null,this.createRule=typeof t.createRule=="string"?t.createRule:null,this.updateRule=typeof t.updateRule=="string"?t.updateRule:null,this.deleteRule=typeof t.deleteRule=="string"?t.deleteRule:null,t.schema=Array.isArray(t.schema)?t.schema:[],this.schema=[];for(var i=0,s=t.schema;i=0;o--)this.subscriptions[t][o]===i&&(l=!0,delete this.subscriptions[t][o],this.subscriptions[t].splice(o,1),(s=this.eventSource)===null||s===void 0||s.removeEventListener(t,i));return l?(this.subscriptions[t].length||delete this.subscriptions[t],this.hasSubscriptionListeners()?[3,1]:(this.disconnect(),[3,3])):[2];case 1:return this.hasSubscriptionListeners(t)?[3,3]:[4,this.submitSubscriptions()];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.hasSubscriptionListeners=function(t){var i,s;if(this.subscriptions=this.subscriptions||{},t)return!!(!((i=this.subscriptions[t])===null||i===void 0)&&i.length);for(var l in this.subscriptions)if(!((s=this.subscriptions[l])===null||s===void 0)&&s.length)return!0;return!1},e.prototype.submitSubscriptions=function(){return Xt(this,void 0,void 0,function(){return Qt(this,function(t){return this.clientId?(this.addAllSubscriptionListeners(),this.lastSentTopics=this.getNonEmptySubscriptionTopics(),[2,this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentTopics},params:{$cancelKey:"realtime_"+this.clientId}}).catch(function(i){if(!(i!=null&&i.isAbort))throw i})]):[2]})})},e.prototype.getNonEmptySubscriptionTopics=function(){var t=[];for(var i in this.subscriptions)this.subscriptions[i].length&&t.push(i);return t},e.prototype.addAllSubscriptionListeners=function(){if(this.eventSource)for(var t in this.removeAllSubscriptionListeners(),this.subscriptions)for(var i=0,s=this.subscriptions[t];i0?[2]:[2,new Promise(function(s,l){t.pendingConnects.push({resolve:s,reject:l}),t.pendingConnects.length>1||t.initConnect()})]})})},e.prototype.initConnect=function(){var t=this;this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout(function(){t.connectErrorHandler(new Error("EventSource connect took too long."))},this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildUrl("/api/realtime")),this.eventSource.onerror=function(i){t.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",function(i){var s=i;t.clientId=s==null?void 0:s.lastEventId,t.submitSubscriptions().then(function(){return Xt(t,void 0,void 0,function(){var l;return Qt(this,function(o){switch(o.label){case 0:l=3,o.label=1;case 1:return this.hasUnsentSubscriptions()&&l>0?(l--,[4,this.submitSubscriptions()]):[3,3];case 2:return o.sent(),[3,1];case 3:return[2]}})})}).then(function(){for(var l=0,o=t.pendingConnects;lthis.maxReconnectAttempts){for(var s=0,l=this.pendingConnects;s=400)throw new vi({url:M.url,status:M.status,data:O});return[2,O]}})})}).catch(function(M){throw new vi(M)})]}})})},n.prototype.getFileUrl=function(e,t,i){return i===void 0&&(i={}),this.files.getUrl(e,t,i)},n.prototype.buildUrl=function(e){var t,i=this.baseUrl;return typeof window>"u"||!window.location||i.startsWith("https://")||i.startsWith("http://")||(i=!((t=window.location.origin)===null||t===void 0)&&t.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"",this.baseUrl.startsWith("/")||(i+=window.location.pathname||"/",i+=i.endsWith("/")?"":"/"),i+=this.baseUrl),e&&(i+=i.endsWith("/")?"":"/",i+=e.startsWith("/")?e.substring(1):e),i},n.prototype.isFormData=function(e){return e&&(e.constructor.name==="FormData"||typeof FormData<"u"&&e instanceof FormData)},n.prototype.serializeQueryParams=function(e){var t=[];for(var i in e)if(e[i]!==null){var s=e[i],l=encodeURIComponent(i);if(Array.isArray(s))for(var o=0,r=s;o"u"}function is(n){return typeof n=="number"}function Vo(n){return typeof n=="number"&&n%1===0}function g0(n){return typeof n=="string"}function b0(n){return Object.prototype.toString.call(n)==="[object Date]"}function Mg(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function v0(n){return Array.isArray(n)?n:[n]}function Cu(n,e,t){if(n.length!==0)return n.reduce((i,s)=>{const l=[e(s),s];return i&&t(i[0],l[0])===i[0]?i:l},null)[1]}function y0(n,e){return e.reduce((t,i)=>(t[i]=n[i],t),{})}function Ds(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function yi(n,e,t){return Vo(n)&&n>=e&&n<=t}function k0(n,e){return n-e*Math.floor(n/e)}function Ut(n,e=2){const t=n<0;let i;return t?i="-"+(""+-n).padStart(e,"0"):i=(""+n).padStart(e,"0"),i}function Di(n){if(!(it(n)||n===null||n===""))return parseInt(n,10)}function Wi(n){if(!(it(n)||n===null||n===""))return parseFloat(n)}function Ca(n){if(!(it(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Ta(n,e,t=!1){const i=10**e;return(t?Math.trunc:Math.round)(n*i)/i}function Ml(n){return n%4===0&&(n%100!==0||n%400===0)}function sl(n){return Ml(n)?366:365}function go(n,e){const t=k0(e-1,12)+1,i=n+(e-t)/12;return t===2?Ml(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Ma(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function bo(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,t=n-1,i=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return e===4||i===3?53:52}function Wr(n){return n>99?n:n>60?1900+n:2e3+n}function Og(n,e,t,i=null){const s=new Date(n),l={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(l.timeZone=i);const o={timeZoneName:e,...l},r=new Intl.DateTimeFormat(t,o).formatToParts(s).find(a=>a.type.toLowerCase()==="timezonename");return r?r.value:null}function Ho(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const i=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-i:i;return t*60+s}function Dg(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new zn(`Invalid unit value ${n}`);return e}function vo(n,e){const t={};for(const i in n)if(Ds(n,i)){const s=n[i];if(s==null)continue;t[e(i)]=Dg(s)}return t}function ll(n,e){const t=Math.trunc(Math.abs(n/60)),i=Math.trunc(Math.abs(n%60)),s=n>=0?"+":"-";switch(e){case"short":return`${s}${Ut(t,2)}:${Ut(i,2)}`;case"narrow":return`${s}${t}${i>0?`:${i}`:""}`;case"techie":return`${s}${Ut(t,2)}${Ut(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function zo(n){return y0(n,["hour","minute","second","millisecond"])}const Eg=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,w0=["January","February","March","April","May","June","July","August","September","October","November","December"],Ag=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],S0=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ig(n){switch(n){case"narrow":return[...S0];case"short":return[...Ag];case"long":return[...w0];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Pg=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Lg=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$0=["M","T","W","T","F","S","S"];function Ng(n){switch(n){case"narrow":return[...$0];case"short":return[...Lg];case"long":return[...Pg];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Fg=["AM","PM"],C0=["Before Christ","Anno Domini"],T0=["BC","AD"],M0=["B","A"];function Rg(n){switch(n){case"narrow":return[...M0];case"short":return[...T0];case"long":return[...C0];default:return null}}function O0(n){return Fg[n.hour<12?0:1]}function D0(n,e){return Ng(e)[n.weekday-1]}function E0(n,e){return Ig(e)[n.month-1]}function A0(n,e){return Rg(e)[n.year<0?0:1]}function I0(n,e,t="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},l=["hours","minutes","seconds"].indexOf(n)===-1;if(t==="auto"&&l){const d=n==="days";switch(e){case 1:return d?"tomorrow":`next ${s[n][0]}`;case-1:return d?"yesterday":`last ${s[n][0]}`;case 0:return d?"today":`this ${s[n][0]}`}}const o=Object.is(e,-0)||e<0,r=Math.abs(e),a=r===1,u=s[n],f=i?a?u[1]:u[2]||u[1]:a?s[n][0]:n;return o?`${r} ${f} ago`:`in ${r} ${f}`}function Tu(n,e){let t="";for(const i of n)i.literal?t+=i.val:t+=e(i.val);return t}const P0={D:Ur,DD:ag,DDD:ug,DDDD:fg,t:cg,tt:dg,ttt:pg,tttt:mg,T:hg,TT:_g,TTT:gg,TTTT:bg,f:vg,ff:kg,fff:Sg,ffff:Cg,F:yg,FF:wg,FFF:$g,FFFF:Tg};class yn{static create(e,t={}){return new yn(e,t)}static parseFormat(e){let t=null,i="",s=!1;const l=[];for(let o=0;o0&&l.push({literal:s,val:i}),t=null,i="",s=!s):s||r===t?i+=r:(i.length>0&&l.push({literal:!1,val:i}),i=r,t=r)}return i.length>0&&l.push({literal:s,val:i}),l}static macroTokenToFormatOpts(e){return P0[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ut(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",l=(m,g)=>this.loc.extract(e,m,g),o=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",r=()=>i?O0(e):l({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(m,g)=>i?E0(e,m):l(g?{month:m}:{month:m,day:"numeric"},"month"),u=(m,g)=>i?D0(e,m):l(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),f=m=>{const g=yn.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(e,g):m},d=m=>i?A0(e,m):l({era:m},"era"),p=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r();case"d":return s?l({day:"numeric"},"day"):this.num(e.day);case"dd":return s?l({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?l({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?l({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return s?l({month:"numeric"},"month"):this.num(e.month);case"MM":return s?l({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return s?l({year:"numeric"},"year"):this.num(e.year);case"yy":return s?l({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?l({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?l({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(m)}};return Tu(yn.parseFormat(t),p)}formatDurationFromString(e,t){const i=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=a=>u=>{const f=i(u);return f?this.num(a.get(f),u.length):u},l=yn.parseFormat(t),o=l.reduce((a,{literal:u,val:f})=>u?a:a.concat(f),[]),r=e.shiftTo(...o.map(i).filter(a=>a));return Tu(l,s(r))}}class Gn{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ol{get type(){throw new Mi}get name(){throw new Mi}get ianaName(){return this.name}get isUniversal(){throw new Mi}offsetName(e,t){throw new Mi}formatOffset(e,t){throw new Mi}offset(e){throw new Mi}equals(e){throw new Mi}get isValid(){throw new Mi}}let ir=null;class Oa extends Ol{static get instance(){return ir===null&&(ir=new Oa),ir}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return Og(e,t,i)}formatOffset(e,t){return ll(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ao={};function L0(n){return ao[n]||(ao[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ao[n]}const N0={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function F0(n,e){const t=n.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,l,o,r,a,u,f]=i;return[o,s,l,r,a,u,f]}function R0(n,e){const t=n.formatToParts(e),i=[];for(let s=0;s=0?g:1e3+g,(p-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let sr=null;class pn extends Ol{static get utcInstance(){return sr===null&&(sr=new pn(0)),sr}static instance(e){return e===0?pn.utcInstance:new pn(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new pn(Ho(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ll(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ll(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ll(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class q0 extends Ol{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ei(n,e){if(it(n)||n===null)return e;if(n instanceof Ol)return n;if(g0(n)){const t=n.toLowerCase();return t==="local"||t==="system"?e:t==="utc"||t==="gmt"?pn.utcInstance:pn.parseSpecifier(t)||wi.create(n)}else return is(n)?pn.instance(n):typeof n=="object"&&n.offset&&typeof n.offset=="number"?n:new q0(n)}let Mu=()=>Date.now(),Ou="system",Du=null,Eu=null,Au=null,Iu;class Kt{static get now(){return Mu}static set now(e){Mu=e}static set defaultZone(e){Ou=e}static get defaultZone(){return Ei(Ou,Oa.instance)}static get defaultLocale(){return Du}static set defaultLocale(e){Du=e}static get defaultNumberingSystem(){return Eu}static set defaultNumberingSystem(e){Eu=e}static get defaultOutputCalendar(){return Au}static set defaultOutputCalendar(e){Au=e}static get throwOnInvalid(){return Iu}static set throwOnInvalid(e){Iu=e}static resetCaches(){Dt.resetCache(),wi.resetCache()}}let Pu={};function j0(n,e={}){const t=JSON.stringify([n,e]);let i=Pu[t];return i||(i=new Intl.ListFormat(n,e),Pu[t]=i),i}let Yr={};function Kr(n,e={}){const t=JSON.stringify([n,e]);let i=Yr[t];return i||(i=new Intl.DateTimeFormat(n,e),Yr[t]=i),i}let Jr={};function V0(n,e={}){const t=JSON.stringify([n,e]);let i=Jr[t];return i||(i=new Intl.NumberFormat(n,e),Jr[t]=i),i}let Zr={};function H0(n,e={}){const{base:t,...i}=e,s=JSON.stringify([n,i]);let l=Zr[s];return l||(l=new Intl.RelativeTimeFormat(n,e),Zr[s]=l),l}let tl=null;function z0(){return tl||(tl=new Intl.DateTimeFormat().resolvedOptions().locale,tl)}function B0(n){const e=n.indexOf("-u-");if(e===-1)return[n];{let t;const i=n.substring(0,e);try{t=Kr(n).resolvedOptions()}catch{t=Kr(i).resolvedOptions()}const{numberingSystem:s,calendar:l}=t;return[i,s,l]}}function U0(n,e,t){return(t||e)&&(n+="-u",t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function W0(n){const e=[];for(let t=1;t<=12;t++){const i=Ue.utc(2016,t,1);e.push(n(i))}return e}function Y0(n){const e=[];for(let t=1;t<=7;t++){const i=Ue.utc(2016,11,13+t);e.push(n(i))}return e}function Vl(n,e,t,i,s){const l=n.listingMode(t);return l==="error"?null:l==="en"?i(e):s(e)}function K0(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class J0{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:l,...o}=i;if(!t||Object.keys(o).length>0){const r={useGrouping:!1,...i};i.padTo>0&&(r.minimumIntegerDigits=i.padTo),this.inf=V0(e,r)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):Ta(e,3);return Ut(t,this.padTo)}}}class Z0{constructor(e,t,i){this.opts=i;let s;if(e.zone.isUniversal){const o=-1*(e.offset/60),r=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&wi.create(r).valid?(s=r,this.dt=e):(s="UTC",i.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Ue.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const l={...this.opts};s&&(l.timeZone=s),this.dtf=Kr(t,l)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class G0{constructor(e,t,i){this.opts={style:"long",...i},!t&&Mg()&&(this.rtf=H0(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):I0(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Dt{static fromOpts(e){return Dt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,i,s=!1){const l=e||Kt.defaultLocale,o=l||(s?"en-US":z0()),r=t||Kt.defaultNumberingSystem,a=i||Kt.defaultOutputCalendar;return new Dt(o,r,a,l)}static resetCache(){tl=null,Yr={},Jr={},Zr={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i}={}){return Dt.create(e,t,i)}constructor(e,t,i,s){const[l,o,r]=B0(e);this.locale=l,this.numberingSystem=t||o||null,this.outputCalendar=i||r||null,this.intl=U0(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=K0(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Dt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,i=!0){return Vl(this,e,i,Ig,()=>{const s=t?{month:e,day:"numeric"}:{month:e},l=t?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=W0(o=>this.extract(o,s,"month"))),this.monthsCache[l][e]})}weekdays(e,t=!1,i=!0){return Vl(this,e,i,Ng,()=>{const s=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=t?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=Y0(o=>this.extract(o,s,"weekday"))),this.weekdaysCache[l][e]})}meridiems(e=!0){return Vl(this,void 0,e,()=>Fg,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ue.utc(2016,11,13,9),Ue.utc(2016,11,13,19)].map(i=>this.extract(i,t,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return Vl(this,e,t,Rg,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ue.utc(-40,1,1),Ue.utc(2017,1,1)].map(s=>this.extract(s,i,"era"))),this.eraCache[e]})}extract(e,t,i){const s=this.dtFormatter(e,t),l=s.formatToParts(),o=l.find(r=>r.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new J0(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Z0(e,this.intl,t)}relFormatter(e={}){return new G0(this.intl,this.isEnglish(),e)}listFormatter(e={}){return j0(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Fs(...n){const e=n.reduce((t,i)=>t+i.source,"");return RegExp(`^${e}$`)}function Rs(...n){return e=>n.reduce(([t,i,s],l)=>{const[o,r,a]=l(e,s);return[{...t,...o},r||i,a]},[{},null,1]).slice(0,2)}function qs(n,...e){if(n==null)return[null,null];for(const[t,i]of e){const s=t.exec(n);if(s)return i(s)}return[null,null]}function qg(...n){return(e,t)=>{const i={};let s;for(s=0;sm!==void 0&&(g||m&&f)?-m:m;return[{years:p(Wi(t)),months:p(Wi(i)),weeks:p(Wi(s)),days:p(Wi(l)),hours:p(Wi(o)),minutes:p(Wi(r)),seconds:p(Wi(a),a==="-0"),milliseconds:p(Ca(u),d)}]}const uv={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Aa(n,e,t,i,s,l,o){const r={year:e.length===2?Wr(Di(e)):Di(e),month:Ag.indexOf(t)+1,day:Di(i),hour:Di(s),minute:Di(l)};return o&&(r.second=Di(o)),n&&(r.weekday=n.length>3?Pg.indexOf(n)+1:Lg.indexOf(n)+1),r}const fv=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function cv(n){const[,e,t,i,s,l,o,r,a,u,f,d]=n,p=Aa(e,s,i,t,l,o,r);let m;return a?m=uv[a]:u?m=0:m=Ho(f,d),[p,new pn(m)]}function dv(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const pv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,mv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Lu(n){const[,e,t,i,s,l,o,r]=n;return[Aa(e,s,i,t,l,o,r),pn.utcInstance]}function _v(n){const[,e,t,i,s,l,o,r]=n;return[Aa(e,r,t,i,s,l,o),pn.utcInstance]}const gv=Fs(Q0,Ea),bv=Fs(x0,Ea),vv=Fs(ev,Ea),yv=Fs(Vg),zg=Rs(lv,js,Dl,El),kv=Rs(tv,js,Dl,El),wv=Rs(nv,js,Dl,El),Sv=Rs(js,Dl,El);function $v(n){return qs(n,[gv,zg],[bv,kv],[vv,wv],[yv,Sv])}function Cv(n){return qs(dv(n),[fv,cv])}function Tv(n){return qs(n,[pv,Lu],[mv,Lu],[hv,_v])}function Mv(n){return qs(n,[rv,av])}const Ov=Rs(js);function Dv(n){return qs(n,[ov,Ov])}const Ev=Fs(iv,sv),Av=Fs(Hg),Iv=Rs(js,Dl,El);function Pv(n){return qs(n,[Ev,zg],[Av,Iv])}const Lv="Invalid Duration",Bg={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Nv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Bg},Rn=146097/400,gs=146097/4800,Fv={years:{quarters:4,months:12,weeks:Rn/7,days:Rn,hours:Rn*24,minutes:Rn*24*60,seconds:Rn*24*60*60,milliseconds:Rn*24*60*60*1e3},quarters:{months:3,weeks:Rn/28,days:Rn/4,hours:Rn*24/4,minutes:Rn*24*60/4,seconds:Rn*24*60*60/4,milliseconds:Rn*24*60*60*1e3/4},months:{weeks:gs/7,days:gs,hours:gs*24,minutes:gs*24*60,seconds:gs*24*60*60,milliseconds:gs*24*60*60*1e3},...Bg},Xi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Rv=Xi.slice(0).reverse();function Yi(n,e,t=!1){const i={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy};return new ot(i)}function qv(n){return n<0?Math.floor(n):Math.ceil(n)}function Ug(n,e,t,i,s){const l=n[s][t],o=e[t]/l,r=Math.sign(o)===Math.sign(i[s]),a=!r&&i[s]!==0&&Math.abs(o)<=1?qv(o):Math.trunc(o);i[s]+=a,e[t]-=a*l}function jv(n,e){Rv.reduce((t,i)=>it(e[i])?t:(t&&Ug(n,e,t,e,i),i),null)}class ot{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Fv:Nv,this.isLuxonDuration=!0}static fromMillis(e,t){return ot.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new zn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new ot({values:vo(e,ot.normalizeUnit),loc:Dt.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromDurationLike(e){if(is(e))return ot.fromMillis(e);if(ot.isDuration(e))return e;if(typeof e=="object")return ot.fromObject(e);throw new zn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=Mv(e);return i?ot.fromObject(i,t):ot.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=Dv(e);return i?ot.fromObject(i,t):ot.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new zn("need to specify a reason the Duration is invalid");const i=e instanceof Gn?e:new Gn(e,t);if(Kt.throwOnInvalid)throw new m0(i);return new ot({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new rg(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?yn.create(this.loc,i).formatDurationFromString(this,e):Lv}toHuman(e={}){const t=Xi.map(i=>{const s=this.values[i];return it(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ta(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||i.milliseconds!==0)&&(s+=".SSS"));let l=i.toFormat(s);return e.includePrefix&&(l="T"+l),l}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e),i={};for(const s of Xi)(Ds(t.values,s)||Ds(this.values,s))&&(i[s]=t.get(s)+this.get(s));return Yi(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=Dg(e(this.values[i],i));return Yi(this,{values:t},!0)}get(e){return this[ot.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...vo(e,ot.normalizeUnit)};return Yi(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i}={}){const s=this.loc.clone({locale:e,numberingSystem:t}),l={loc:s};return i&&(l.conversionAccuracy=i),Yi(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return jv(this.matrix,e),Yi(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>ot.normalizeUnit(o));const t={},i={},s=this.toObject();let l;for(const o of Xi)if(e.indexOf(o)>=0){l=o;let r=0;for(const u in i)r+=this.matrix[u][o]*i[u],i[u]=0;is(s[o])&&(r+=s[o]);const a=Math.trunc(r);t[o]=a,i[o]=(r*1e3-a*1e3)/1e3;for(const u in s)Xi.indexOf(u)>Xi.indexOf(o)&&Ug(this.matrix,s,u,t,o)}else is(s[o])&&(i[o]=s[o]);for(const o in i)i[o]!==0&&(t[l]+=o===l?i[o]:i[o]/this.matrix[l][o]);return Yi(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return Yi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of Xi)if(!t(this.values[i],e.values[i]))return!1;return!0}}const Bs="Invalid Interval";function Vv(n,e){return!n||!n.isValid?It.invalid("missing or invalid start"):!e||!e.isValid?It.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?It.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ys).filter(o=>this.contains(o)).sort(),i=[];let{s}=this,l=0;for(;s+this.e?this.e:o;i.push(It.fromDateTimes(s,r)),s=r,l+=1}return i}splitBy(e){const t=ot.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:i}=this,s=1,l;const o=[];for(;ia*s));l=+r>+this.e?this.e:r,o.push(It.fromDateTimes(i,l)),i=l,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e=i?null:It.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return It.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort((s,l)=>s.s-l.s).reduce(([s,l],o)=>l?l.overlaps(o)||l.abutsStart(o)?[s,l.union(o)]:[s.concat([l]),o]:[s,o],[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const s=[],l=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),o=Array.prototype.concat(...l),r=o.sort((a,u)=>a.time-u.time);for(const a of r)i+=a.type==="s"?1:-1,i===1?t=a.time:(t&&+t!=+a.time&&s.push(It.fromDateTimes(t,a.time)),t=null);return It.merge(s)}difference(...e){return It.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Bs}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Bs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Bs}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Bs}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Bs}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):ot.invalid(this.invalidReason)}mapEndpoints(e){return It.fromDateTimes(e(this.s),e(this.e))}}class Hl{static hasDST(e=Kt.defaultZone){const t=Ue.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return wi.isValidZone(e)}static normalizeZone(e){return Ei(e,Kt.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:l="gregory"}={}){return(s||Dt.create(t,i,l)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:l="gregory"}={}){return(s||Dt.create(t,i,l)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Dt.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Dt.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Dt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Dt.create(t,null,"gregory").eras(e)}static features(){return{relative:Mg()}}}function Nu(n,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=t(e)-t(n);return Math.floor(ot.fromMillis(i).as("days"))}function Hv(n,e,t){const i=[["years",(r,a)=>a.year-r.year],["quarters",(r,a)=>a.quarter-r.quarter],["months",(r,a)=>a.month-r.month+(a.year-r.year)*12],["weeks",(r,a)=>{const u=Nu(r,a);return(u-u%7)/7}],["days",Nu]],s={};let l,o;for(const[r,a]of i)if(t.indexOf(r)>=0){l=r;let u=a(n,e);o=n.plus({[r]:u}),o>e?(n=n.plus({[r]:u-1}),u-=1):n=o,s[r]=u}return[n,s,o,l]}function zv(n,e,t,i){let[s,l,o,r]=Hv(n,e,t);const a=e-s,u=t.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(o0?ot.fromMillis(a,i).shiftTo(...u).plus(f):f}const Ia={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Fu={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Bv=Ia.hanidec.replace(/[\[|\]]/g,"").split("");function Uv(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t=l&&i<=o&&(e+=i-l)}}return parseInt(e,10)}else return e}function Kn({numberingSystem:n},e=""){return new RegExp(`${Ia[n||"latn"]}${e}`)}const Wv="missing Intl.DateTimeFormat.formatToParts support";function ut(n,e=t=>t){return{regex:n,deser:([t])=>e(Uv(t))}}const Yv=String.fromCharCode(160),Wg=`[ ${Yv}]`,Yg=new RegExp(Wg,"g");function Kv(n){return n.replace(/\./g,"\\.?").replace(Yg,Wg)}function Ru(n){return n.replace(/\./g,"").replace(Yg," ").toLowerCase()}function Jn(n,e){return n===null?null:{regex:RegExp(n.map(Kv).join("|")),deser:([t])=>n.findIndex(i=>Ru(t)===Ru(i))+e}}function qu(n,e){return{regex:n,deser:([,t,i])=>Ho(t,i),groups:e}}function lr(n){return{regex:n,deser:([e])=>e}}function Jv(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Zv(n,e){const t=Kn(e),i=Kn(e,"{2}"),s=Kn(e,"{3}"),l=Kn(e,"{4}"),o=Kn(e,"{6}"),r=Kn(e,"{1,2}"),a=Kn(e,"{1,3}"),u=Kn(e,"{1,6}"),f=Kn(e,"{1,9}"),d=Kn(e,"{2,4}"),p=Kn(e,"{4,6}"),m=b=>({regex:RegExp(Jv(b.val)),deser:([k])=>k,literal:!0}),_=(b=>{if(n.literal)return m(b);switch(b.val){case"G":return Jn(e.eras("short",!1),0);case"GG":return Jn(e.eras("long",!1),0);case"y":return ut(u);case"yy":return ut(d,Wr);case"yyyy":return ut(l);case"yyyyy":return ut(p);case"yyyyyy":return ut(o);case"M":return ut(r);case"MM":return ut(i);case"MMM":return Jn(e.months("short",!0,!1),1);case"MMMM":return Jn(e.months("long",!0,!1),1);case"L":return ut(r);case"LL":return ut(i);case"LLL":return Jn(e.months("short",!1,!1),1);case"LLLL":return Jn(e.months("long",!1,!1),1);case"d":return ut(r);case"dd":return ut(i);case"o":return ut(a);case"ooo":return ut(s);case"HH":return ut(i);case"H":return ut(r);case"hh":return ut(i);case"h":return ut(r);case"mm":return ut(i);case"m":return ut(r);case"q":return ut(r);case"qq":return ut(i);case"s":return ut(r);case"ss":return ut(i);case"S":return ut(a);case"SSS":return ut(s);case"u":return lr(f);case"uu":return lr(r);case"uuu":return ut(t);case"a":return Jn(e.meridiems(),0);case"kkkk":return ut(l);case"kk":return ut(d,Wr);case"W":return ut(r);case"WW":return ut(i);case"E":case"c":return ut(t);case"EEE":return Jn(e.weekdays("short",!1,!1),1);case"EEEE":return Jn(e.weekdays("long",!1,!1),1);case"ccc":return Jn(e.weekdays("short",!0,!1),1);case"cccc":return Jn(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return qu(new RegExp(`([+-]${r.source})(?::(${i.source}))?`),2);case"ZZZ":return qu(new RegExp(`([+-]${r.source})(${i.source})?`),2);case"z":return lr(/[a-z_+-/]{1,256}?/i);default:return m(b)}})(n)||{invalidReason:Wv};return _.token=n,_}const Gv={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Xv(n,e,t){const{type:i,value:s}=n;if(i==="literal")return{literal:!0,val:s};const l=t[i];let o=Gv[i];if(typeof o=="object"&&(o=o[l]),o)return{literal:!1,val:o}}function Qv(n){return[`^${n.map(t=>t.regex).reduce((t,i)=>`${t}(${i.source})`,"")}$`,n]}function xv(n,e,t){const i=n.match(e);if(i){const s={};let l=1;for(const o in t)if(Ds(t,o)){const r=t[o],a=r.groups?r.groups+1:1;!r.literal&&r.token&&(s[r.token.val[0]]=r.deser(i.slice(l,l+a))),l+=a}return[i,s]}else return[i,{}]}function ey(n){const e=l=>{switch(l){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,i;return it(n.z)||(t=wi.create(n.z)),it(n.Z)||(t||(t=new pn(n.Z)),i=n.Z),it(n.q)||(n.M=(n.q-1)*3+1),it(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),it(n.u)||(n.S=Ca(n.u)),[Object.keys(n).reduce((l,o)=>{const r=e(o);return r&&(l[r]=n[o]),l},{}),t,i]}let or=null;function ty(){return or||(or=Ue.fromMillis(1555555555555)),or}function ny(n,e){if(n.literal)return n;const t=yn.macroTokenToFormatOpts(n.val);if(!t)return n;const l=yn.create(e,t).formatDateTimeParts(ty()).map(o=>Xv(o,e,t));return l.includes(void 0)?n:l}function iy(n,e){return Array.prototype.concat(...n.map(t=>ny(t,e)))}function Kg(n,e,t){const i=iy(yn.parseFormat(t),n),s=i.map(o=>Zv(o,n)),l=s.find(o=>o.invalidReason);if(l)return{input:e,tokens:i,invalidReason:l.invalidReason};{const[o,r]=Qv(s),a=RegExp(o,"i"),[u,f]=xv(e,a,r),[d,p,m]=f?ey(f):[null,null,void 0];if(Ds(f,"a")&&Ds(f,"H"))throw new el("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:a,rawMatches:u,matches:f,result:d,zone:p,specificOffset:m}}}function sy(n,e,t){const{result:i,zone:s,specificOffset:l,invalidReason:o}=Kg(n,e,t);return[i,s,l,o]}const Jg=[0,31,59,90,120,151,181,212,243,273,304,334],Zg=[0,31,60,91,121,152,182,213,244,274,305,335];function Un(n,e){return new Gn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function Gg(n,e,t){const i=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function Xg(n,e,t){return t+(Ml(n)?Zg:Jg)[e-1]}function Qg(n,e){const t=Ml(n)?Zg:Jg,i=t.findIndex(l=>lbo(e)?(r=e+1,o=1):r=e,{weekYear:r,weekNumber:o,weekday:l,...zo(n)}}function ju(n){const{weekYear:e,weekNumber:t,weekday:i}=n,s=Gg(e,1,4),l=sl(e);let o=t*7+i-s-3,r;o<1?(r=e-1,o+=sl(r)):o>l?(r=e+1,o-=sl(e)):r=e;const{month:a,day:u}=Qg(r,o);return{year:r,month:a,day:u,...zo(n)}}function rr(n){const{year:e,month:t,day:i}=n,s=Xg(e,t,i);return{year:e,ordinal:s,...zo(n)}}function Vu(n){const{year:e,ordinal:t}=n,{month:i,day:s}=Qg(e,t);return{year:e,month:i,day:s,...zo(n)}}function ly(n){const e=Vo(n.weekYear),t=yi(n.weekNumber,1,bo(n.weekYear)),i=yi(n.weekday,1,7);return e?t?i?!1:Un("weekday",n.weekday):Un("week",n.week):Un("weekYear",n.weekYear)}function oy(n){const e=Vo(n.year),t=yi(n.ordinal,1,sl(n.year));return e?t?!1:Un("ordinal",n.ordinal):Un("year",n.year)}function xg(n){const e=Vo(n.year),t=yi(n.month,1,12),i=yi(n.day,1,go(n.year,n.month));return e?t?i?!1:Un("day",n.day):Un("month",n.month):Un("year",n.year)}function e1(n){const{hour:e,minute:t,second:i,millisecond:s}=n,l=yi(e,0,23)||e===24&&t===0&&i===0&&s===0,o=yi(t,0,59),r=yi(i,0,59),a=yi(s,0,999);return l?o?r?a?!1:Un("millisecond",s):Un("second",i):Un("minute",t):Un("hour",e)}const ar="Invalid DateTime",Hu=864e13;function zl(n){return new Gn("unsupported zone",`the zone "${n.name}" is not supported`)}function ur(n){return n.weekData===null&&(n.weekData=Gr(n.c)),n.weekData}function Us(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ue({...t,...e,old:t})}function t1(n,e,t){let i=n-e*60*1e3;const s=t.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const l=t.offset(i);return s===l?[i,s]:[n-Math.min(s,l)*60*1e3,Math.max(s,l)]}function zu(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function uo(n,e,t){return t1(Ma(n),e,t)}function Bu(n,e){const t=n.o,i=n.c.year+Math.trunc(e.years),s=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,l={...n.c,year:i,month:s,day:Math.min(n.c.day,go(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=ot.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),r=Ma(l);let[a,u]=t1(r,t,n.zone);return o!==0&&(a+=o,u=n.zone.offset(a)),{ts:a,o:u}}function Ws(n,e,t,i,s,l){const{setZone:o,zone:r}=t;if(n&&Object.keys(n).length!==0){const a=e||r,u=Ue.fromObject(n,{...t,zone:a,specificOffset:l});return o?u:u.setZone(r)}else return Ue.invalid(new Gn("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Bl(n,e,t=!0){return n.isValid?yn.create(Dt.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function fr(n,e){const t=n.c.year>9999||n.c.year<0;let i="";return t&&n.c.year>=0&&(i+="+"),i+=Ut(n.c.year,t?6:4),e?(i+="-",i+=Ut(n.c.month),i+="-",i+=Ut(n.c.day)):(i+=Ut(n.c.month),i+=Ut(n.c.day)),i}function Uu(n,e,t,i,s,l){let o=Ut(n.c.hour);return e?(o+=":",o+=Ut(n.c.minute),(n.c.second!==0||!t)&&(o+=":")):o+=Ut(n.c.minute),(n.c.second!==0||!t)&&(o+=Ut(n.c.second),(n.c.millisecond!==0||!i)&&(o+=".",o+=Ut(n.c.millisecond,3))),s&&(n.isOffsetFixed&&n.offset===0&&!l?o+="Z":n.o<0?(o+="-",o+=Ut(Math.trunc(-n.o/60)),o+=":",o+=Ut(Math.trunc(-n.o%60))):(o+="+",o+=Ut(Math.trunc(n.o/60)),o+=":",o+=Ut(Math.trunc(n.o%60)))),l&&(o+="["+n.zone.ianaName+"]"),o}const n1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ry={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ay={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i1=["year","month","day","hour","minute","second","millisecond"],uy=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fy=["year","ordinal","hour","minute","second","millisecond"];function Wu(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new rg(n);return e}function Yu(n,e){const t=Ei(e.zone,Kt.defaultZone),i=Dt.fromObject(e),s=Kt.now();let l,o;if(it(n.year))l=s;else{for(const u of i1)it(n[u])&&(n[u]=n1[u]);const r=xg(n)||e1(n);if(r)return Ue.invalid(r);const a=t.offset(s);[l,o]=uo(n,a,t)}return new Ue({ts:l,zone:t,loc:i,o})}function Ku(n,e,t){const i=it(t.round)?!0:t.round,s=(o,r)=>(o=Ta(o,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(o,r)),l=o=>t.calendary?e.hasSame(n,o)?0:e.startOf(o).diff(n.startOf(o),o).get(o):e.diff(n,o).get(o);if(t.unit)return s(l(t.unit),t.unit);for(const o of t.units){const r=l(o);if(Math.abs(r)>=1)return s(r,o)}return s(n>e?-0:0,t.units[t.units.length-1])}function Ju(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}class Ue{constructor(e){const t=e.zone||Kt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Gn("invalid input"):null)||(t.isValid?null:zl(t));this.ts=it(e.ts)?Kt.now():e.ts;let s=null,l=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,l]=[e.old.c,e.old.o];else{const r=t.offset(this.ts);s=zu(this.ts,r),i=Number.isNaN(s.year)?new Gn("invalid input"):null,s=i?null:s,l=i?null:r}this._zone=t,this.loc=e.loc||Dt.create(),this.invalid=i,this.weekData=null,this.c=s,this.o=l,this.isLuxonDateTime=!0}static now(){return new Ue({})}static local(){const[e,t]=Ju(arguments),[i,s,l,o,r,a,u]=t;return Yu({year:i,month:s,day:l,hour:o,minute:r,second:a,millisecond:u},e)}static utc(){const[e,t]=Ju(arguments),[i,s,l,o,r,a,u]=t;return e.zone=pn.utcInstance,Yu({year:i,month:s,day:l,hour:o,minute:r,second:a,millisecond:u},e)}static fromJSDate(e,t={}){const i=b0(e)?e.valueOf():NaN;if(Number.isNaN(i))return Ue.invalid("invalid input");const s=Ei(t.zone,Kt.defaultZone);return s.isValid?new Ue({ts:i,zone:s,loc:Dt.fromObject(t)}):Ue.invalid(zl(s))}static fromMillis(e,t={}){if(is(e))return e<-Hu||e>Hu?Ue.invalid("Timestamp out of range"):new Ue({ts:e,zone:Ei(t.zone,Kt.defaultZone),loc:Dt.fromObject(t)});throw new zn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(is(e))return new Ue({ts:e*1e3,zone:Ei(t.zone,Kt.defaultZone),loc:Dt.fromObject(t)});throw new zn("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=Ei(t.zone,Kt.defaultZone);if(!i.isValid)return Ue.invalid(zl(i));const s=Kt.now(),l=it(t.specificOffset)?i.offset(s):t.specificOffset,o=vo(e,Wu),r=!it(o.ordinal),a=!it(o.year),u=!it(o.month)||!it(o.day),f=a||u,d=o.weekYear||o.weekNumber,p=Dt.fromObject(t);if((f||r)&&d)throw new el("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&r)throw new el("Can't mix ordinal dates with month/day");const m=d||o.weekday&&!f;let g,_,b=zu(s,l);m?(g=uy,_=ry,b=Gr(b)):r?(g=fy,_=ay,b=rr(b)):(g=i1,_=n1);let k=!1;for(const I of g){const L=o[I];it(L)?k?o[I]=_[I]:o[I]=b[I]:k=!0}const $=m?ly(o):r?oy(o):xg(o),T=$||e1(o);if(T)return Ue.invalid(T);const C=m?ju(o):r?Vu(o):o,[D,M]=uo(C,l,i),O=new Ue({ts:D,zone:i,o:M,loc:p});return o.weekday&&f&&e.weekday!==O.weekday?Ue.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${O.toISO()}`):O}static fromISO(e,t={}){const[i,s]=$v(e);return Ws(i,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,s]=Cv(e);return Ws(i,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,s]=Tv(e);return Ws(i,s,t,"HTTP",t)}static fromFormat(e,t,i={}){if(it(e)||it(t))throw new zn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:l=null}=i,o=Dt.fromOpts({locale:s,numberingSystem:l,defaultToEN:!0}),[r,a,u,f]=sy(o,e,t);return f?Ue.invalid(f):Ws(r,a,i,`format ${t}`,e,u)}static fromString(e,t,i={}){return Ue.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,s]=Pv(e);return Ws(i,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new zn("need to specify a reason the DateTime is invalid");const i=e instanceof Gn?e:new Gn(e,t);if(Kt.throwOnInvalid)throw new d0(i);return new Ue({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ur(this).weekYear:NaN}get weekNumber(){return this.isValid?ur(this).weekNumber:NaN}get weekday(){return this.isValid?ur(this).weekday:NaN}get ordinal(){return this.isValid?rr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Hl.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Hl.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Hl.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Hl.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Ml(this.year)}get daysInMonth(){return go(this.year,this.month)}get daysInYear(){return this.isValid?sl(this.year):NaN}get weeksInWeekYear(){return this.isValid?bo(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:s}=yn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(pn.instance(e),t)}toLocal(){return this.setZone(Kt.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=Ei(e,Kt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||i){const l=e.offset(this.ts),o=this.toObject();[s]=uo(o,l,e)}return Us(this,{ts:s,zone:e})}else return Ue.invalid(zl(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return Us(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=vo(e,Wu),i=!it(t.weekYear)||!it(t.weekNumber)||!it(t.weekday),s=!it(t.ordinal),l=!it(t.year),o=!it(t.month)||!it(t.day),r=l||o,a=t.weekYear||t.weekNumber;if((r||s)&&a)throw new el("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&s)throw new el("Can't mix ordinal dates with month/day");let u;i?u=ju({...Gr(this.c),...t}):it(t.ordinal)?(u={...this.toObject(),...t},it(t.day)&&(u.day=Math.min(go(u.year,u.month),u.day))):u=Vu({...rr(this.c),...t});const[f,d]=uo(u,this.o,this.zone);return Us(this,{ts:f,o:d})}plus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e);return Us(this,Bu(this,t))}minus(e){if(!this.isValid)return this;const t=ot.fromDurationLike(e).negate();return Us(this,Bu(this,t))}startOf(e){if(!this.isValid)return this;const t={},i=ot.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break}if(i==="weeks"&&(t.weekday=1),i==="quarters"){const s=Math.ceil(this.month/3);t.month=(s-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?yn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ar}toLocaleString(e=Ur,t={}){return this.isValid?yn.create(this.loc.clone(t),e).formatDateTime(this):ar}toLocaleParts(e={}){return this.isValid?yn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:l=!1}={}){if(!this.isValid)return null;const o=e==="extended";let r=fr(this,o);return r+="T",r+=Uu(this,o,t,i,s,l),r}toISODate({format:e="extended"}={}){return this.isValid?fr(this,e==="extended"):null}toISOWeekDate(){return Bl(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:l=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+Uu(this,o==="extended",t,e,i,l):null}toRFC2822(){return Bl(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Bl(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?fr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(i&&(s+=" "),t?s+="z":e&&(s+="ZZ")),Bl(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ar}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return ot.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},l=v0(t).map(ot.normalizeUnit),o=e.valueOf()>this.valueOf(),r=o?this:e,a=o?e:this,u=zv(r,a,l,s);return o?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(Ue.now(),e,t)}until(e){return this.isValid?It.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t)<=i&&i<=s.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Ue.fromObject({},{zone:this.zone}),i=e.padding?thist.valueOf(),Math.min)}static max(...e){if(!e.every(Ue.isDateTime))throw new zn("max requires all arguments be DateTimes");return Cu(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:s=null,numberingSystem:l=null}=i,o=Dt.fromOpts({locale:s,numberingSystem:l,defaultToEN:!0});return Kg(o,e,t)}static fromStringExplain(e,t,i={}){return Ue.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return Ur}static get DATE_MED(){return ag}static get DATE_MED_WITH_WEEKDAY(){return h0}static get DATE_FULL(){return ug}static get DATE_HUGE(){return fg}static get TIME_SIMPLE(){return cg}static get TIME_WITH_SECONDS(){return dg}static get TIME_WITH_SHORT_OFFSET(){return pg}static get TIME_WITH_LONG_OFFSET(){return mg}static get TIME_24_SIMPLE(){return hg}static get TIME_24_WITH_SECONDS(){return _g}static get TIME_24_WITH_SHORT_OFFSET(){return gg}static get TIME_24_WITH_LONG_OFFSET(){return bg}static get DATETIME_SHORT(){return vg}static get DATETIME_SHORT_WITH_SECONDS(){return yg}static get DATETIME_MED(){return kg}static get DATETIME_MED_WITH_SECONDS(){return wg}static get DATETIME_MED_WITH_WEEKDAY(){return _0}static get DATETIME_FULL(){return Sg}static get DATETIME_FULL_WITH_SECONDS(){return $g}static get DATETIME_HUGE(){return Cg}static get DATETIME_HUGE_WITH_SECONDS(){return Tg}}function Ys(n){if(Ue.isDateTime(n))return n;if(n&&n.valueOf&&is(n.valueOf()))return Ue.fromJSDate(n);if(n&&typeof n=="object")return Ue.fromObject(n);throw new zn(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const cy=[".jpg",".jpeg",".png",".svg",".gif",".jfif",".webp",".avif"],dy=[".mp4",".avi",".mov",".3gp",".wmv"],py=[".aa",".aac",".m4v",".mp3",".ogg",".oga",".mogg",".amr"],my=[".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".odp",".odt",".ods",".txt"];class H{static isObject(e){return e!==null&&typeof e=="object"&&e.constructor===Object}static clone(e){return typeof structuredClone<"u"?structuredClone(e):JSON.parse(JSON.stringify(e))}static isEmpty(e){return e===""||e===null||e==="00000000-0000-0000-0000-000000000000"||e==="0001-01-01 00:00:00.000Z"||e==="0001-01-01"||typeof e>"u"||Array.isArray(e)&&e.length===0||H.isObject(e)&&Object.keys(e).length===0}static isInput(e){let t=e&&e.tagName?e.tagName.toLowerCase():"";return t==="input"||t==="select"||t==="textarea"||e.isContentEditable}static isFocusable(e){let t=e&&e.tagName?e.tagName.toLowerCase():"";return H.isInput(e)||t==="button"||t==="a"||t==="details"||e.tabIndex>=0}static hasNonEmptyProps(e){for(let t in e)if(!H.isEmpty(e[t]))return!0;return!1}static toArray(e,t=!1){return Array.isArray(e)?e.slice():(t||!H.isEmpty(e))&&typeof e<"u"?[e]:[]}static inArray(e,t){e=Array.isArray(e)?e:[];for(let i=e.length-1;i>=0;i--)if(e[i]==t)return!0;return!1}static removeByValue(e,t){e=Array.isArray(e)?e:[];for(let i=e.length-1;i>=0;i--)if(e[i]==t){e.splice(i,1);break}}static pushUnique(e,t){H.inArray(e,t)||e.push(t)}static findByKey(e,t,i){e=Array.isArray(e)?e:[];for(let s in e)if(e[s][t]==i)return e[s];return null}static groupByKey(e,t){e=Array.isArray(e)?e:[];const i={};for(let s in e)i[e[s][t]]=i[e[s][t]]||[],i[e[s][t]].push(e[s]);return i}static removeByKey(e,t,i){for(let s in e)if(e[s][t]==i){e.splice(s,1);break}}static pushOrReplaceByKey(e,t,i="id"){for(let s=e.length-1;s>=0;s--)if(e[s][i]==t[i]){e[s]=t;return}e.push(t)}static filterDuplicatesByKey(e,t="id"){e=Array.isArray(e)?e:[];const i={};for(const s of e)i[s[t]]=s;return Object.values(i)}static filterRedactedProps(e,t="******"){const i=JSON.parse(JSON.stringify(e||{}));for(let s in i)typeof i[s]=="object"&&i[s]!==null?i[s]=H.filterRedactedProps(i[s],t):i[s]===t&&delete i[s];return i}static getNestedVal(e,t,i=null,s="."){let l=e||{},o=(t||"").split(s);for(const r of o){if(!H.isObject(l)&&!Array.isArray(l)||typeof l[r]>"u")return i;l=l[r]}return l}static setByPath(e,t,i,s="."){if(e===null||typeof e!="object"){console.warn("setByPath: data not an object or array.");return}let l=e,o=t.split(s),r=o.pop();for(const a of o)(!H.isObject(l)&&!Array.isArray(l)||!H.isObject(l[a])&&!Array.isArray(l[a]))&&(l[a]={}),l=l[a];l[r]=i}static deleteByPath(e,t,i="."){let s=e||{},l=(t||"").split(i),o=l.pop();for(const r of l)(!H.isObject(s)&&!Array.isArray(s)||!H.isObject(s[r])&&!Array.isArray(s[r]))&&(s[r]={}),s=s[r];Array.isArray(s)?s.splice(o,1):H.isObject(s)&&delete s[o],l.length>0&&(Array.isArray(s)&&!s.length||H.isObject(s)&&!Object.keys(s).length)&&(Array.isArray(e)&&e.length>0||H.isObject(e)&&Object.keys(e).length>0)&&H.deleteByPath(e,l.join(i),i)}static randomString(e){e=e||10;let t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;s=2?(t[0][0]+t[1][0]).toUpperCase():e[0].toUpperCase()}static getDateTime(e){if(typeof e=="string"){const t={19:"yyyy-MM-dd HH:mm:ss",23:"yyyy-MM-dd HH:mm:ss.SSS",20:"yyyy-MM-dd HH:mm:ssZ",24:"yyyy-MM-dd HH:mm:ss.SSSZ"},i=t[e.length]||t[19];return Ue.fromFormat(e,i,{zone:"UTC"})}return Ue.fromJSDate(e)}static formatToUTCDate(e,t="yyyy-MM-dd HH:mm:ss"){return H.getDateTime(e).toUTC().toFormat(t)}static formatToLocalDate(e,t="yyyy-MM-dd HH:mm:ss"){return H.getDateTime(e).toLocal().toFormat(t)}static async copyToClipboard(e){var t;if(e=""+e,!(!e.length||!((t=window==null?void 0:window.navigator)!=null&&t.clipboard)))return window.navigator.clipboard.writeText(e).catch(i=>{console.warn("Failed to copy.",i)})}static downloadJson(e,t){const i="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null,2)),s=document.createElement("a");s.setAttribute("href",i),s.setAttribute("download",t+".json"),s.click(),s.remove()}static getJWTPayload(e){const t=(e||"").split(".")[1]||"";if(t==="")return{};try{const i=decodeURIComponent(atob(t));return JSON.parse(i)||{}}catch(i){console.warn("Failed to parse JWT payload data.",i)}return{}}static hasImageExtension(e){return!!cy.find(t=>e.toLowerCase().endsWith(t))}static hasVideoExtension(e){return!!dy.find(t=>e.toLowerCase().endsWith(t))}static hasAudioExtension(e){return!!py.find(t=>e.toLowerCase().endsWith(t))}static hasDocumentExtension(e){return!!my.find(t=>e.toLowerCase().endsWith(t))}static getFileType(e){return H.hasImageExtension(e)?"image":H.hasDocumentExtension(e)?"document":H.hasVideoExtension(e)?"video":H.hasAudioExtension(e)?"audio":"file"}static generateThumb(e,t=100,i=100){return new Promise(s=>{let l=new FileReader;l.onload=function(o){let r=new Image;r.onload=function(){let a=document.createElement("canvas"),u=a.getContext("2d"),f=r.width,d=r.height;return a.width=t,a.height=i,u.drawImage(r,f>d?(f-d)/2:0,0,f>d?d:f,f>d?d:f,0,0,t,i),s(a.toDataURL(e.type))},r.src=o.target.result},l.readAsDataURL(e)})}static addValueToFormData(e,t,i){if(!(typeof i>"u"))if(H.isEmpty(i))e.append(t,"");else if(Array.isArray(i))for(const s of i)H.addValueToFormData(e,t,s);else i instanceof File?e.append(t,i):i instanceof Date?e.append(t,i.toISOString()):H.isObject(i)?e.append(t,JSON.stringify(i)):e.append(t,""+i)}static dummyCollectionRecord(e){var o,r,a,u,f,d,p;const t=(e==null?void 0:e.schema)||[],i={id:"RECORD_ID",collectionId:e==null?void 0:e.id,collectionName:e==null?void 0:e.name};e!=null&&e.isAuth&&(i.username="username123",i.verified=!1,i.emailVisibility=!0,i.email="test@example.com"),(!(e!=null&&e.$isView)||H.extractColumnsFromQuery((o=e==null?void 0:e.options)==null?void 0:o.query).includes("created"))&&(i.created="2022-01-01 01:00:00.123Z"),(!(e!=null&&e.$isView)||H.extractColumnsFromQuery((r=e==null?void 0:e.options)==null?void 0:r.query).includes("updated"))&&(i.updated="2022-01-01 23:59:59.456Z");for(const m of t){let g=null;m.type==="number"?g=123:m.type==="date"?g="2022-01-01 10:00:00.123Z":m.type==="bool"?g=!0:m.type==="email"?g="test@example.com":m.type==="url"?g="https://example.com":m.type==="json"?g="JSON":m.type==="file"?(g="filename.jpg",((a=m.options)==null?void 0:a.maxSelect)!==1&&(g=[g])):m.type==="select"?(g=(f=(u=m.options)==null?void 0:u.values)==null?void 0:f[0],((d=m.options)==null?void 0:d.maxSelect)!==1&&(g=[g])):m.type==="relation"?(g="RELATION_RECORD_ID",((p=m.options)==null?void 0:p.maxSelect)!==1&&(g=[g])):g="test",i[m.name]=g}return i}static dummyCollectionSchemaData(e){var s,l,o,r;const t=(e==null?void 0:e.schema)||[],i={};for(const a of t){let u=null;if(a.type==="number")u=123;else if(a.type==="date")u="2022-01-01 10:00:00.123Z";else if(a.type==="bool")u=!0;else if(a.type==="email")u="test@example.com";else if(a.type==="url")u="https://example.com";else if(a.type==="json")u="JSON";else{if(a.type==="file")continue;a.type==="select"?(u=(l=(s=a.options)==null?void 0:s.values)==null?void 0:l[0],((o=a.options)==null?void 0:o.maxSelect)!==1&&(u=[u])):a.type==="relation"?(u="RELATION_RECORD_ID",((r=a.options)==null?void 0:r.maxSelect)!==1&&(u=[u])):u="test"}i[a.name]=u}return i}static getCollectionTypeIcon(e){switch(e==null?void 0:e.toLowerCase()){case"auth":return"ri-group-line";case"view":return"ri-table-line";default:return"ri-folder-2-line"}}static getFieldTypeIcon(e){switch(e==null?void 0:e.toLowerCase()){case"primary":return"ri-key-line";case"text":return"ri-text";case"number":return"ri-hashtag";case"date":return"ri-calendar-line";case"bool":return"ri-toggle-line";case"email":return"ri-mail-line";case"url":return"ri-link";case"editor":return"ri-edit-2-line";case"select":return"ri-list-check";case"json":return"ri-braces-line";case"file":return"ri-image-line";case"relation":return"ri-mind-map";case"user":return"ri-user-line";default:return"ri-star-s-line"}}static getFieldValueType(e){var t;switch(e==null?void 0:e.type){case"bool":return"Boolean";case"number":return"Number";case"file":return"File";case"select":case"relation":return((t=e==null?void 0:e.options)==null?void 0:t.maxSelect)===1?"String":"Array";default:return"String"}}static zeroDefaultStr(e){var t;return(e==null?void 0:e.type)==="number"?"0":(e==null?void 0:e.type)==="bool"?"false":(e==null?void 0:e.type)==="json"?'null, "", [], {}':["select","relation","file"].includes(e==null?void 0:e.type)&&((t=e==null?void 0:e.options)==null?void 0:t.maxSelect)!=1?"[]":'""'}static getApiExampleUrl(e){return(window.location.href.substring(0,window.location.href.indexOf("/_"))||e||"/").replace("//localhost","//127.0.0.1")}static hasCollectionChanges(e,t,i=!1){if(e=e||{},t=t||{},e.id!=t.id)return!0;for(let u in e)if(u!=="schema"&&JSON.stringify(e[u])!==JSON.stringify(t[u]))return!0;const s=Array.isArray(e.schema)?e.schema:[],l=Array.isArray(t.schema)?t.schema:[],o=s.filter(u=>(u==null?void 0:u.id)&&!H.findByKey(l,"id",u.id)),r=l.filter(u=>(u==null?void 0:u.id)&&!H.findByKey(s,"id",u.id)),a=l.filter(u=>{const f=H.isObject(u)&&H.findByKey(s,"id",u.id);if(!f)return!1;for(let d in f)if(JSON.stringify(u[d])!=JSON.stringify(f[d]))return!0;return!1});return!!(r.length||a.length||i&&o.length)}static sortCollections(e=[]){const t=[],i=[],s=[];for(const l of e)l.type==="auth"?t.push(l):l.type==="base"?i.push(l):s.push(l);return[].concat(t,i,s)}static yieldToMain(){return new Promise(e=>{setTimeout(e,0)})}static defaultFlatpickrOptions(){return{dateFormat:"Y-m-d H:i:S",disableMobile:!0,allowInput:!0,enableTime:!0,time_24hr:!0,locale:{firstDayOfWeek:1}}}static defaultEditorOptions(){return{branding:!1,promotion:!1,menubar:!1,min_height:270,height:270,max_height:700,autoresize_bottom_margin:30,skin:"pocketbase",content_style:"body { font-size: 14px }",plugins:["autoresize","autolink","lists","link","image","searchreplace","fullscreen","media","table","code","codesample","directionality"],toolbar:"styles | alignleft aligncenter alignright | bold italic forecolor backcolor | bullist numlist | link image table codesample direction | code fullscreen",file_picker_types:"image",file_picker_callback:(e,t,i)=>{const s=document.createElement("input");s.setAttribute("type","file"),s.setAttribute("accept","image/*"),s.addEventListener("change",l=>{const o=l.target.files[0],r=new FileReader;r.addEventListener("load",()=>{if(!tinymce)return;const a="blobid"+new Date().getTime(),u=tinymce.activeEditor.editorUpload.blobCache,f=r.result.split(",")[1],d=u.create(a,o,f);u.add(d),e(d.blobUri(),{title:o.name})}),r.readAsDataURL(o)}),s.click()},setup:e=>{e.on("keydown",i=>{(i.ctrlKey||i.metaKey)&&i.code=="KeyS"&&e.formElement&&(i.preventDefault(),i.stopPropagation(),e.formElement.dispatchEvent(new KeyboardEvent("keydown",i)))});const t="tinymce_last_direction";e.on("init",()=>{var s;const i=(s=window==null?void 0:window.localStorage)==null?void 0:s.getItem(t);!e.isDirty()&&e.getContent()==""&&i=="rtl"&&e.execCommand("mceDirectionRTL")}),e.ui.registry.addMenuButton("direction",{icon:"visualchars",fetch:i=>{i([{type:"menuitem",text:"LTR content",icon:"ltr",onAction:()=>{var l;(l=window==null?void 0:window.localStorage)==null||l.setItem(t,"ltr"),tinymce.activeEditor.execCommand("mceDirectionLTR")}},{type:"menuitem",text:"RTL content",icon:"rtl",onAction:()=>{var l;(l=window==null?void 0:window.localStorage)==null||l.setItem(t,"rtl"),tinymce.activeEditor.execCommand("mceDirectionRTL")}}])}})}}}static displayValue(e,t,i="N/A"){e=e||{},t=t||[];let s=[];for(const o of t){let r=e[o];typeof r>"u"||(H.isEmpty(r)?s.push(i):typeof r=="boolean"?s.push(r?"True":"False"):typeof r=="string"?(r=r.indexOf("<")>=0?H.plainText(r):r,s.push(H.truncate(r))):s.push(r))}if(s.length>0)return s.join(", ");const l=["title","name","email","username","heading","label","key","id"];for(const o of l)if(!H.isEmpty(e[o]))return e[o];return i}static extractColumnsFromQuery(e){var o;const t="__GROUP__";e=(e||"").replace(/\([\s\S]+?\)/gm,t).replace(/[\t\r\n]|(?:\s\s)+/g," ");const i=e.match(/select\s+([\s\S]+)\s+from/),s=((o=i==null?void 0:i[1])==null?void 0:o.split(","))||[],l=[];for(let r of s){const a=r.trim().split(" ").pop();a!=""&&a!=t&&l.push(a.replace(/[\'\"\`\[\]\s]/g,""))}return l}static getAllCollectionIdentifiers(e,t=""){if(!e)return[];let i=[t+"id"];if(e.$isView)for(let l of H.extractColumnsFromQuery(e.options.query))H.pushUnique(i,t+l);else e.$isAuth?(i.push(t+"username"),i.push(t+"email"),i.push(t+"emailVisibility"),i.push(t+"verified"),i.push(t+"created"),i.push(t+"updated")):(i.push(t+"created"),i.push(t+"updated"));const s=e.schema||[];for(const l of s)H.pushUnique(i,t+l.name);return i}static parseIndex(e){var a,u,f,d,p;const t={unique:!1,optional:!1,schemaName:"",indexName:"",tableName:"",columns:[],where:""},s=/create\s+(unique\s+)?\s*index\s*(if\s+not\s+exists\s+)?(\S*)\s+on\s+(\S*)\s+\(([\s\S]*)\)(?:\s*where\s+([\s\S]*))?/gmi.exec((e||"").trim());if((s==null?void 0:s.length)!=7)return t;const l=/^[\"\'\`\[\{}]|[\"\'\`\]\}]$/gm;t.unique=((a=s[1])==null?void 0:a.trim().toLowerCase())==="unique",t.optional=!H.isEmpty((u=s[2])==null?void 0:u.trim());const o=(s[3]||"").split(".");o.length==2?(t.schemaName=o[0].replace(l,""),t.indexName=o[1].replace(l,"")):(t.schemaName="",t.indexName=o[0].replace(l,"")),t.tableName=(s[4]||"").replace(l,"");const r=(s[5]||"").replace(/,(?=[^\(]*\))/gmi,"{PB_TEMP}").split(",");for(let m of r){m=m.trim().replaceAll("{PB_TEMP}",",");const _=/^([\s\S]+?)(?:\s+collate\s+([\w]+))?(?:\s+(asc|desc))?$/gmi.exec(m);if((_==null?void 0:_.length)!=4)continue;const b=(d=(f=_[1])==null?void 0:f.trim())==null?void 0:d.replace(l,"");b&&t.columns.push({name:b,collate:_[2]||"",sort:((p=_[3])==null?void 0:p.toUpperCase())||""})}return t.where=s[6]||"",t}static buildIndex(e){let t="CREATE ";e.unique&&(t+="UNIQUE "),t+="INDEX ",e.optional&&(t+="IF NOT EXISTS "),e.schemaName&&(t+=`\`${e.schemaName}\`.`),t+=`\`${e.indexName||"idx_"+H.randomString(7)}\` `,t+=`ON \`${e.tableName}\` (`;const i=e.columns.filter(s=>!!(s!=null&&s.name));return i.length>1&&(t+=` `),t+=i.map(s=>{let l="";return s.name.includes("(")||s.name.includes(" ")?l+=s.name:l+="`"+s.name+"`",s.collate&&(l+=" COLLATE "+s.collate),s.sort&&(l+=" "+c.sort.toUpperCase()),l}).join(`, `),i.length>1&&(t+=` -`),t+=")",e.where&&(t+=` WHERE ${e.where}`),t}static replaceIndexTableName(e,t){const i=H.parseIndex(e);return i.tableName=t,H.buildIndex(i)}static replaceIndexColumn(e,t,i){if(t===i)return e;const s=H.parseIndex(e);let l=!1;for(let o of s.columns)o.name===t&&(o.name=i,l=!0);return l?H.buildIndex(s):e}static normalizeSearchFilter(e,t){if(e=(e||"").trim(),!e||!t.length)return e;const i=["=","!=","~","!~",">",">=","<","<="];for(const s of i)if(e.includes(s))return e;return e=isNaN(e)&&e!="true"&&e!="false"?`"${e.replace(/^[\"\'\`]|[\"\'\`]$/gm,"")}"`:e,t.map(s=>`${s}~${e}`).join("||")}}const Bo=In([]);function s1(n,e=4e3){return Uo(n,"info",e)}function xt(n,e=3e3){return Uo(n,"success",e)}function hl(n,e=4500){return Uo(n,"error",e)}function hy(n,e=4500){return Uo(n,"warning",e)}function Uo(n,e,t){t=t||4e3;const i={message:n,type:e,duration:t,timeout:setTimeout(()=>{l1(i)},t)};Bo.update(s=>(La(s,i.message),H.pushOrReplaceByKey(s,i,"message"),s))}function l1(n){Bo.update(e=>(La(e,n),e))}function Pa(){Bo.update(n=>{for(let e of n)La(n,e);return[]})}function La(n,e){let t;typeof e=="string"?t=H.findByKey(n,"message",e):t=e,t&&(clearTimeout(t.timeout),H.removeByKey(n,"message",t.message))}const $i=In({});function un(n){$i.set(n||{})}function Fi(n){$i.update(e=>(H.deleteByPath(e,n),e))}const Na=In({});function Xr(n){Na.set(n||{})}const ci=In([]),ui=In({}),yo=In(!1),o1=In({});function _y(n){ci.update(e=>{const t=H.findByKey(e,"id",n);return t?ui.set(t):e.length&&ui.set(e[0]),e})}function gy(n){ui.update(e=>H.isEmpty(e==null?void 0:e.id)||e.id===n.id?n:e),ci.update(e=>(H.pushOrReplaceByKey(e,n,"id"),Fa(),H.sortCollections(e)))}function by(n){ci.update(e=>(H.removeByKey(e,"id",n.id),ui.update(t=>t.id===n.id?e[0]:t),Fa(),e))}async function vy(n=null){yo.set(!0);try{let e=await pe.collections.getFullList(200,{sort:"+name"});e=H.sortCollections(e),ci.set(e);const t=n&&H.findByKey(e,"id",n);t?ui.set(t):e.length&&ui.set(e[0]),Fa()}catch(e){pe.errorResponseHandler(e)}yo.set(!1)}function Fa(){o1.update(n=>(ci.update(e=>{var t;for(let i of e)n[i.id]=!!((t=i.schema)!=null&&t.find(s=>{var l;return s.type=="file"&&((l=s.options)==null?void 0:l.protected)}));return e}),n))}const cr="pb_admin_file_token";jo.prototype.logout=function(n=!0){this.authStore.clear(),n&&ji("/login")};jo.prototype.errorResponseHandler=function(n,e=!0,t=""){if(!n||!(n instanceof Error)||n.isAbort)return;const i=(n==null?void 0:n.status)<<0||400,s=(n==null?void 0:n.data)||{};if(e&&i!==404){let l=s.message||n.message||t;l&&hl(l)}if(H.isEmpty(s.data)||un(s.data),i===401)return this.cancelAllRequests(),this.logout();if(i===403)return this.cancelAllRequests(),ji("/")};jo.prototype.getAdminFileToken=async function(n=""){let e=!0;if(n){const i=Db(o1);e=typeof i[n]<"u"?i[n]:!0}if(!e)return"";let t=localStorage.getItem(cr)||"";return(!t||sg(t,15))&&(t&&localStorage.removeItem(cr),this._adminFileTokenRequest||(this._adminFileTokenRequest=this.files.getToken()),t=await this._adminFileTokenRequest,localStorage.setItem(cr,t),this._adminFileTokenRequest=null),t};class yy extends lg{save(e,t){super.save(e,t),t instanceof rs&&Xr(t)}clear(){super.clear(),Xr(null)}}const pe=new jo("/",new yy("pb_admin_auth"));pe.authStore.model instanceof rs&&Xr(pe.authStore.model);function ky(n){let e,t,i,s,l,o,r,a,u,f,d,p;const m=n[3].default,g=wt(m,n,n[2],null);return{c(){e=y("div"),t=y("main"),g&&g.c(),i=E(),s=y("footer"),l=y("a"),l.innerHTML=` +`),t+=")",e.where&&(t+=` WHERE ${e.where}`),t}static replaceIndexTableName(e,t){const i=H.parseIndex(e);return i.tableName=t,H.buildIndex(i)}static replaceIndexColumn(e,t,i){if(t===i)return e;const s=H.parseIndex(e);let l=!1;for(let o of s.columns)o.name===t&&(o.name=i,l=!0);return l?H.buildIndex(s):e}static normalizeSearchFilter(e,t){if(e=(e||"").trim(),!e||!t.length)return e;const i=["=","!=","~","!~",">",">=","<","<="];for(const s of i)if(e.includes(s))return e;return e=isNaN(e)&&e!="true"&&e!="false"?`"${e.replace(/^[\"\'\`]|[\"\'\`]$/gm,"")}"`:e,t.map(s=>`${s}~${e}`).join("||")}}const Bo=In([]);function s1(n,e=4e3){return Uo(n,"info",e)}function xt(n,e=3e3){return Uo(n,"success",e)}function hl(n,e=4500){return Uo(n,"error",e)}function hy(n,e=4500){return Uo(n,"warning",e)}function Uo(n,e,t){t=t||4e3;const i={message:n,type:e,duration:t,timeout:setTimeout(()=>{l1(i)},t)};Bo.update(s=>(La(s,i.message),H.pushOrReplaceByKey(s,i,"message"),s))}function l1(n){Bo.update(e=>(La(e,n),e))}function Pa(){Bo.update(n=>{for(let e of n)La(n,e);return[]})}function La(n,e){let t;typeof e=="string"?t=H.findByKey(n,"message",e):t=e,t&&(clearTimeout(t.timeout),H.removeByKey(n,"message",t.message))}const $i=In({});function un(n){$i.set(n||{})}function Fi(n){$i.update(e=>(H.deleteByPath(e,n),e))}const Na=In({});function Xr(n){Na.set(n||{})}const ci=In([]),ui=In({}),yo=In(!1),o1=In({});function _y(n){ci.update(e=>{const t=H.findByKey(e,"id",n);return t?ui.set(t):e.length&&ui.set(e[0]),e})}function gy(n){ui.update(e=>H.isEmpty(e==null?void 0:e.id)||e.id===n.id?n:e),ci.update(e=>(H.pushOrReplaceByKey(e,n,"id"),Fa(),H.sortCollections(e)))}function by(n){ci.update(e=>(H.removeByKey(e,"id",n.id),ui.update(t=>t.id===n.id?e[0]:t),Fa(),e))}async function vy(n=null){yo.set(!0);try{let e=await pe.collections.getFullList(200,{sort:"+name"});e=H.sortCollections(e),ci.set(e);const t=n&&H.findByKey(e,"id",n);t?ui.set(t):e.length&&ui.set(e[0]),Fa()}catch(e){pe.errorResponseHandler(e)}yo.set(!1)}function Fa(){o1.update(n=>(ci.update(e=>{var t;for(let i of e)n[i.id]=!!((t=i.schema)!=null&&t.find(s=>{var l;return s.type=="file"&&((l=s.options)==null?void 0:l.protected)}));return e}),n))}const cr="pb_admin_file_token";jo.prototype.logout=function(n=!0){this.authStore.clear(),n&&ji("/login")};jo.prototype.errorResponseHandler=function(n,e=!0,t=""){if(!n||!(n instanceof Error)||n.isAbort)return;const i=(n==null?void 0:n.status)<<0||400,s=(n==null?void 0:n.data)||{};if(e&&i!==404){let l=s.message||n.message||t;l&&hl(l)}if(H.isEmpty(s.data)||un(s.data),i===401)return this.cancelAllRequests(),this.logout();if(i===403)return this.cancelAllRequests(),ji("/")};jo.prototype.getAdminFileToken=async function(n=""){let e=!0;if(n){const i=Db(o1);e=typeof i[n]<"u"?i[n]:!0}if(!e)return"";let t=localStorage.getItem(cr)||"";return(!t||sg(t,15))&&(t&&localStorage.removeItem(cr),this._adminFileTokenRequest||(this._adminFileTokenRequest=this.files.getToken()),t=await this._adminFileTokenRequest,localStorage.setItem(cr,t),this._adminFileTokenRequest=null),t};class yy extends lg{save(e,t){super.save(e,t),t instanceof rs&&Xr(t)}clear(){super.clear(),Xr(null)}}const pe=new jo("../",new yy("pb_admin_auth"));pe.authStore.model instanceof rs&&Xr(pe.authStore.model);function ky(n){let e,t,i,s,l,o,r,a,u,f,d,p;const m=n[3].default,g=wt(m,n,n[2],null);return{c(){e=y("div"),t=y("main"),g&&g.c(),i=E(),s=y("footer"),l=y("a"),l.innerHTML=` Docs`,o=E(),r=y("span"),r.textContent="|",a=E(),u=y("a"),f=y("span"),f.textContent="PocketBase v0.15.2",h(t,"class","page-content"),h(l,"href","https://pocketbase.io/docs/"),h(l,"target","_blank"),h(l,"rel","noopener noreferrer"),h(r,"class","delimiter"),h(f,"class","txt"),h(u,"href","https://github.com/pocketbase/pocketbase/releases"),h(u,"target","_blank"),h(u,"rel","noopener noreferrer"),h(u,"title","Releases"),h(s,"class","page-footer"),h(e,"class",d="page-wrapper "+n[1]),x(e,"center-content",n[0])},m(_,b){S(_,e,b),v(e,t),g&&g.m(t,null),v(e,i),v(e,s),v(s,l),v(s,o),v(s,r),v(s,a),v(s,u),v(u,f),p=!0},p(_,[b]){g&&g.p&&(!p||b&4)&&$t(g,m,_,_[2],p?St(m,_[2],b,null):Ct(_[2]),null),(!p||b&2&&d!==(d="page-wrapper "+_[1]))&&h(e,"class",d),(!p||b&3)&&x(e,"center-content",_[0])},i(_){p||(A(g,_),p=!0)},o(_){P(g,_),p=!1},d(_){_&&w(e),g&&g.d(_)}}}function wy(n,e,t){let{$$slots:i={},$$scope:s}=e,{center:l=!1}=e,{class:o=""}=e;return n.$$set=r=>{"center"in r&&t(0,l=r.center),"class"in r&&t(1,o=r.class),"$$scope"in r&&t(2,s=r.$$scope)},[l,o,s,i]}class Pn extends ye{constructor(e){super(),ve(this,e,wy,ky,_e,{center:0,class:1})}}function Zu(n){let e,t,i;return{c(){e=y("div"),e.innerHTML=``,t=E(),i=y("div"),h(e,"class","block txt-center m-b-lg"),h(i,"class","clearfix")},m(s,l){S(s,e,l),S(s,t,l),S(s,i,l)},d(s){s&&w(e),s&&w(t),s&&w(i)}}}function Sy(n){let e,t,i,s=!n[0]&&Zu();const l=n[1].default,o=wt(l,n,n[2],null);return{c(){e=y("div"),s&&s.c(),t=E(),o&&o.c(),h(e,"class","wrapper wrapper-sm m-b-xl panel-wrapper svelte-lxxzfu")},m(r,a){S(r,e,a),s&&s.m(e,null),v(e,t),o&&o.m(e,null),i=!0},p(r,a){r[0]?s&&(s.d(1),s=null):s||(s=Zu(),s.c(),s.m(e,t)),o&&o.p&&(!i||a&4)&&$t(o,l,r,r[2],i?St(l,r[2],a,null):Ct(r[2]),null)},i(r){i||(A(o,r),i=!0)},o(r){P(o,r),i=!1},d(r){r&&w(e),s&&s.d(),o&&o.d(r)}}}function $y(n){let e,t;return e=new Pn({props:{class:"full-page",center:!0,$$slots:{default:[Sy]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&5&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function Cy(n,e,t){let{$$slots:i={},$$scope:s}=e,{nobranding:l=!1}=e;return n.$$set=o=>{"nobranding"in o&&t(0,l=o.nobranding),"$$scope"in o&&t(2,s=o.$$scope)},[l,i,s]}class r1 extends ye{constructor(e){super(),ve(this,e,Cy,$y,_e,{nobranding:0})}}function Wo(n){const e=n-1;return e*e*e+1}function Qr(n,{delay:e=0,duration:t=400,easing:i=$l}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:t,easing:i,css:l=>`opacity: ${l*s}`}}function fi(n,{delay:e=0,duration:t=400,easing:i=Wo,x:s=0,y:l=0,opacity:o=0}={}){const r=getComputedStyle(n),a=+r.opacity,u=r.transform==="none"?"":r.transform,f=a*(1-o),[d,p]=hu(s),[m,g]=hu(l);return{delay:e,duration:t,easing:i,css:(_,b)=>` transform: ${u} translate(${(1-_)*d}${p}, ${(1-_)*m}${g}); @@ -14,7 +14,7 @@ `}}let xr,Ki;const ea="app-tooltip";function Gu(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Li(){return Ki=Ki||document.querySelector("."+ea),Ki||(Ki=document.createElement("div"),Ki.classList.add(ea),document.body.appendChild(Ki)),Ki}function a1(n,e){let t=Li();if(!t.classList.contains("active")||!(e!=null&&e.text)){ta();return}t.textContent=e.text,t.className=ea+" active",e.class&&t.classList.add(e.class),e.position&&t.classList.add(e.position),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),o=0,r=0,a=5;e.position=="left"?(o=l.top+l.height/2-i/2,r=l.left-s-a):e.position=="right"?(o=l.top+l.height/2-i/2,r=l.right+a):e.position=="top"?(o=l.top-i-a,r=l.left+l.width/2-s/2):e.position=="top-left"?(o=l.top-i-a,r=l.left):e.position=="top-right"?(o=l.top-i-a,r=l.right-s):e.position=="bottom-left"?(o=l.top+l.height+a,r=l.left):e.position=="bottom-right"?(o=l.top+l.height+a,r=l.right-s):(o=l.top+l.height+a,r=l.left+l.width/2-s/2),r+s>document.documentElement.clientWidth&&(r=document.documentElement.clientWidth-s),r=r>=0?r:0,o+i>document.documentElement.clientHeight&&(o=document.documentElement.clientHeight-i),o=o>=0?o:0,t.style.top=o+"px",t.style.left=r+"px"}function ta(){clearTimeout(xr),Li().classList.remove("active"),Li().activeNode=void 0}function Ty(n,e){Li().activeNode=n,clearTimeout(xr),xr=setTimeout(()=>{Li().classList.add("active"),a1(n,e)},isNaN(e.delay)?0:e.delay)}function Ye(n,e){let t=Gu(e);function i(){Ty(n,t)}function s(){ta()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&H.isFocusable(n))&&n.addEventListener("click",s),Li(),{update(l){var o,r;t=Gu(l),(r=(o=Li())==null?void 0:o.activeNode)!=null&&r.contains(n)&&a1(n,t)},destroy(){var l,o;(o=(l=Li())==null?void 0:l.activeNode)!=null&&o.contains(n)&&ta(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function Xu(n,e,t){const i=n.slice();return i[12]=e[t],i}const My=n=>({}),Qu=n=>({uniqueId:n[4]});function Oy(n){let e,t,i=n[3],s=[];for(let o=0;oP(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;o{l&&(s||(s=ze(t,Yt,{duration:150,start:.7},!0)),s.run(1))}),l=!0)},o(a){a&&(s||(s=ze(t,Yt,{duration:150,start:.7},!1)),s.run(0)),l=!1},d(a){a&&w(e),a&&s&&s.end(),o=!1,r()}}}function xu(n){let e,t,i=ko(n[12])+"",s,l,o,r;return{c(){e=y("div"),t=y("pre"),s=Y(i),l=E(),h(e,"class","help-block help-block-error")},m(a,u){S(a,e,u),v(e,t),v(t,s),v(e,l),r=!0},p(a,u){(!r||u&8)&&i!==(i=ko(a[12])+"")&&le(s,i)},i(a){r||(a&&tt(()=>{r&&(o||(o=ze(e,bt,{duration:150},!0)),o.run(1))}),r=!0)},o(a){a&&(o||(o=ze(e,bt,{duration:150},!1)),o.run(0)),r=!1},d(a){a&&w(e),a&&o&&o.end()}}}function Ey(n){let e,t,i,s,l,o,r;const a=n[9].default,u=wt(a,n,n[8],Qu),f=[Dy,Oy],d=[];function p(m,g){return m[0]&&m[3].length?0:1}return i=p(n),s=d[i]=f[i](n),{c(){e=y("div"),u&&u.c(),t=E(),s.c(),h(e,"class",n[1]),x(e,"error",n[3].length)},m(m,g){S(m,e,g),u&&u.m(e,null),v(e,t),d[i].m(e,null),n[11](e),l=!0,o||(r=J(e,"click",n[10]),o=!0)},p(m,[g]){u&&u.p&&(!l||g&256)&&$t(u,a,m,m[8],l?St(a,m[8],g,My):Ct(m[8]),Qu);let _=i;i=p(m),i===_?d[i].p(m,g):(re(),P(d[_],1,1,()=>{d[_]=null}),ae(),s=d[i],s?s.p(m,g):(s=d[i]=f[i](m),s.c()),A(s,1),s.m(e,null)),(!l||g&2)&&h(e,"class",m[1]),(!l||g&10)&&x(e,"error",m[3].length)},i(m){l||(A(u,m),A(s),l=!0)},o(m){P(u,m),P(s),l=!1},d(m){m&&w(e),u&&u.d(m),d[i].d(),n[11](null),o=!1,r()}}}const ef="Invalid value";function ko(n){return typeof n=="object"?(n==null?void 0:n.message)||(n==null?void 0:n.code)||ef:n||ef}function Ay(n,e,t){let i;Ze(n,$i,_=>t(7,i=_));let{$$slots:s={},$$scope:l}=e;const o="field_"+H.randomString(7);let{name:r=""}=e,{inlineError:a=!1}=e,{class:u=void 0}=e,f,d=[];function p(){Fi(r)}en(()=>(f.addEventListener("input",p),f.addEventListener("change",p),()=>{f.removeEventListener("input",p),f.removeEventListener("change",p)}));function m(_){me.call(this,n,_)}function g(_){ie[_?"unshift":"push"](()=>{f=_,t(2,f)})}return n.$$set=_=>{"name"in _&&t(5,r=_.name),"inlineError"in _&&t(0,a=_.inlineError),"class"in _&&t(1,u=_.class),"$$scope"in _&&t(8,l=_.$$scope)},n.$$.update=()=>{n.$$.dirty&160&&t(3,d=H.toArray(H.getNestedVal(i,r)))},[a,u,f,d,o,r,p,i,l,s,m,g]}class de extends ye{constructor(e){super(),ve(this,e,Ay,Ey,_e,{name:5,inlineError:0,class:1,changed:6})}get changed(){return this.$$.ctx[6]}}function Iy(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Email"),s=E(),l=y("input"),h(e,"for",i=n[9]),h(l,"type","email"),h(l,"autocomplete","off"),h(l,"id",o=n[9]),l.required=!0,l.autofocus=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0]),l.focus(),r||(a=J(l,"input",n[5]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&h(e,"for",i),f&512&&o!==(o=u[9])&&h(l,"id",o),f&1&&l.value!==u[0]&&fe(l,u[0])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function Py(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=Y("Password"),s=E(),l=y("input"),r=E(),a=y("div"),a.textContent="Minimum 10 characters.",h(e,"for",i=n[9]),h(l,"type","password"),h(l,"autocomplete","new-password"),h(l,"minlength","10"),h(l,"id",o=n[9]),l.required=!0,h(a,"class","help-block")},m(d,p){S(d,e,p),v(e,t),S(d,s,p),S(d,l,p),fe(l,n[1]),S(d,r,p),S(d,a,p),u||(f=J(l,"input",n[6]),u=!0)},p(d,p){p&512&&i!==(i=d[9])&&h(e,"for",i),p&512&&o!==(o=d[9])&&h(l,"id",o),p&2&&l.value!==d[1]&&fe(l,d[1])},d(d){d&&w(e),d&&w(s),d&&w(l),d&&w(r),d&&w(a),u=!1,f()}}}function Ly(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Password confirm"),s=E(),l=y("input"),h(e,"for",i=n[9]),h(l,"type","password"),h(l,"minlength","10"),h(l,"id",o=n[9]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[2]),r||(a=J(l,"input",n[7]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&h(e,"for",i),f&512&&o!==(o=u[9])&&h(l,"id",o),f&4&&l.value!==u[2]&&fe(l,u[2])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function Ny(n){let e,t,i,s,l,o,r,a,u,f,d,p,m;return s=new de({props:{class:"form-field required",name:"email",$$slots:{default:[Iy,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field required",name:"password",$$slots:{default:[Py,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]},$$scope:{ctx:n}}}),a=new de({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[Ly,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]},$$scope:{ctx:n}}}),{c(){e=y("form"),t=y("div"),t.innerHTML="

Create your first admin account in order to continue

",i=E(),U(s.$$.fragment),l=E(),U(o.$$.fragment),r=E(),U(a.$$.fragment),u=E(),f=y("button"),f.innerHTML=`Create and login - `,h(t,"class","content txt-center m-b-base"),h(f,"type","submit"),h(f,"class","btn btn-lg btn-block btn-next"),x(f,"btn-disabled",n[3]),x(f,"btn-loading",n[3]),h(e,"class","block"),h(e,"autocomplete","off")},m(g,_){S(g,e,_),v(e,t),v(e,i),z(s,e,null),v(e,l),z(o,e,null),v(e,r),z(a,e,null),v(e,u),v(e,f),d=!0,p||(m=J(e,"submit",at(n[4])),p=!0)},p(g,[_]){const b={};_&1537&&(b.$$scope={dirty:_,ctx:g}),s.$set(b);const k={};_&1538&&(k.$$scope={dirty:_,ctx:g}),o.$set(k);const $={};_&1540&&($.$$scope={dirty:_,ctx:g}),a.$set($),(!d||_&8)&&x(f,"btn-disabled",g[3]),(!d||_&8)&&x(f,"btn-loading",g[3])},i(g){d||(A(s.$$.fragment,g),A(o.$$.fragment,g),A(a.$$.fragment,g),d=!0)},o(g){P(s.$$.fragment,g),P(o.$$.fragment,g),P(a.$$.fragment,g),d=!1},d(g){g&&w(e),B(s),B(o),B(a),p=!1,m()}}}function Fy(n,e,t){const i=Tt();let s="",l="",o="",r=!1;async function a(){if(!r){t(3,r=!0);try{await pe.admins.create({email:s,password:l,passwordConfirm:o}),await pe.admins.authWithPassword(s,l),i("submit")}catch(p){pe.errorResponseHandler(p)}t(3,r=!1)}}function u(){s=this.value,t(0,s)}function f(){l=this.value,t(1,l)}function d(){o=this.value,t(2,o)}return[s,l,o,r,a,u,f,d]}class Ry extends ye{constructor(e){super(),ve(this,e,Fy,Ny,_e,{})}}function tf(n){let e,t;return e=new r1({props:{$$slots:{default:[qy]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&9&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function qy(n){let e,t;return e=new Ry({}),e.$on("submit",n[1]),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p:X,i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function jy(n){let e,t,i=n[0]&&tf(n);return{c(){i&&i.c(),e=Ce()},m(s,l){i&&i.m(s,l),S(s,e,l),t=!0},p(s,[l]){s[0]?i?(i.p(s,l),l&1&&A(i,1)):(i=tf(s),i.c(),A(i,1),i.m(e.parentNode,e)):i&&(re(),P(i,1,1,()=>{i=null}),ae())},i(s){t||(A(i),t=!0)},o(s){P(i),t=!1},d(s){i&&i.d(s),s&&w(e)}}}function Vy(n,e,t){let i=!1;s();function s(){if(t(0,i=!1),new URLSearchParams(window.location.search).has("installer")){pe.logout(!1),t(0,i=!0);return}pe.authStore.isValid?ji("/collections"):pe.logout()}return[i,async()=>{t(0,i=!1),await an(),window.location.search=""}]}class Hy extends ye{constructor(e){super(),ve(this,e,Vy,jy,_e,{})}}const Ft=In(""),wo=In(""),Es=In(!1);function zy(n){let e,t,i,s;return{c(){e=y("input"),h(e,"type","text"),h(e,"id",n[8]),h(e,"placeholder",t=n[0]||n[1])},m(l,o){S(l,e,o),n[13](e),fe(e,n[7]),i||(s=J(e,"input",n[14]),i=!0)},p(l,o){o&3&&t!==(t=l[0]||l[1])&&h(e,"placeholder",t),o&128&&e.value!==l[7]&&fe(e,l[7])},i:X,o:X,d(l){l&&w(e),n[13](null),i=!1,s()}}}function By(n){let e,t,i,s;function l(a){n[12](a)}var o=n[4];function r(a){let u={id:a[8],singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return o&&(e=Nt(o,r(n)),ie.push(()=>he(e,"value",l)),e.$on("submit",n[10])),{c(){e&&U(e.$$.fragment),i=Ce()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],ke(()=>t=!1)),u&16&&o!==(o=a[4])){if(e){re();const d=e;P(d.$$.fragment,1,0,()=>{B(d,1)}),ae()}o?(e=Nt(o,r(a)),ie.push(()=>he(e,"value",l)),e.$on("submit",a[10]),U(e.$$.fragment),A(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&A(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&B(e,a)}}}function nf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Search',h(e,"type","submit"),h(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){S(s,e,l),i=!0},i(s){i||(s&&tt(()=>{i&&(t||(t=ze(e,fi,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(s){s&&(t||(t=ze(e,fi,{duration:150,x:5},!1)),t.run(0)),i=!1},d(s){s&&w(e),s&&t&&t.end()}}}function sf(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='Clear',h(e,"type","button"),h(e,"class","btn btn-transparent btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[15]),s=!0)},p:X,i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,fi,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,fi,{duration:150,x:5},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function Uy(n){let e,t,i,s,l,o,r,a,u,f,d;const p=[By,zy],m=[];function g(k,$){return k[4]&&!k[5]?0:1}l=g(n),o=m[l]=p[l](n);let _=(n[0].length||n[7].length)&&n[7]!=n[0]&&nf(),b=(n[0].length||n[7].length)&&sf(n);return{c(){e=y("form"),t=y("label"),i=y("i"),s=E(),o.c(),r=E(),_&&_.c(),a=E(),b&&b.c(),h(i,"class","ri-search-line"),h(t,"for",n[8]),h(t,"class","m-l-10 txt-xl"),h(e,"class","searchbar")},m(k,$){S(k,e,$),v(e,t),v(t,i),v(e,s),m[l].m(e,null),v(e,r),_&&_.m(e,null),v(e,a),b&&b.m(e,null),u=!0,f||(d=[J(e,"click",An(n[11])),J(e,"submit",at(n[10]))],f=!0)},p(k,[$]){let T=l;l=g(k),l===T?m[l].p(k,$):(re(),P(m[T],1,1,()=>{m[T]=null}),ae(),o=m[l],o?o.p(k,$):(o=m[l]=p[l](k),o.c()),A(o,1),o.m(e,r)),(k[0].length||k[7].length)&&k[7]!=k[0]?_?$&129&&A(_,1):(_=nf(),_.c(),A(_,1),_.m(e,a)):_&&(re(),P(_,1,1,()=>{_=null}),ae()),k[0].length||k[7].length?b?(b.p(k,$),$&129&&A(b,1)):(b=sf(k),b.c(),A(b,1),b.m(e,null)):b&&(re(),P(b,1,1,()=>{b=null}),ae())},i(k){u||(A(o),A(_),A(b),u=!0)},o(k){P(o),P(_),P(b),u=!1},d(k){k&&w(e),m[l].d(),_&&_.d(),b&&b.d(),f=!1,Ae(d)}}}function Wy(n,e,t){const i=Tt(),s="search_"+H.randomString(7);let{value:l=""}=e,{placeholder:o='Search term or filter like created > "2022-01-01"...'}=e,{autocompleteCollection:r=new kn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,d,p="";function m(D=!0){t(7,p=""),D&&(d==null||d.focus()),i("clear")}function g(){t(0,l=p),i("submit",l)}async function _(){u||f||(t(5,f=!0),t(4,u=(await rt(()=>import("./FilterAutocompleteInput-82ab8430.js"),["./FilterAutocompleteInput-82ab8430.js","./index-be8a2174.js"],import.meta.url)).default),t(5,f=!1))}en(()=>{_()});function b(D){me.call(this,n,D)}function k(D){p=D,t(7,p),t(0,l)}function $(D){ie[D?"unshift":"push"](()=>{d=D,t(6,d)})}function T(){p=this.value,t(7,p),t(0,l)}const C=()=>{m(!1),g()};return n.$$set=D=>{"value"in D&&t(0,l=D.value),"placeholder"in D&&t(1,o=D.placeholder),"autocompleteCollection"in D&&t(2,r=D.autocompleteCollection),"extraAutocompleteKeys"in D&&t(3,a=D.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,p=l)},[l,o,r,a,u,f,d,p,s,m,g,b,k,$,T,C]}class Yo extends ye{constructor(e){super(),ve(this,e,Wy,Uy,_e,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}function Yy(n){let e,t,i,s;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"aria-label","Refresh"),h(e,"class","btn btn-transparent btn-circle svelte-1bvelc2"),x(e,"refreshing",n[1])},m(l,o){S(l,e,o),i||(s=[Ee(t=Ye.call(null,e,n[0])),J(e,"click",n[2])],i=!0)},p(l,[o]){t&&Ht(t.update)&&o&1&&t.update.call(null,l[0]),o&2&&x(e,"refreshing",l[1])},i:X,o:X,d(l){l&&w(e),i=!1,Ae(s)}}}function Ky(n,e,t){const i=Tt();let{tooltip:s={text:"Refresh",position:"right"}}=e,l=null;function o(){i("refresh");const r=s;t(0,s=null),clearTimeout(l),t(1,l=setTimeout(()=>{t(1,l=null),t(0,s=r)},150))}return en(()=>()=>clearTimeout(l)),n.$$set=r=>{"tooltip"in r&&t(0,s=r.tooltip)},[s,l,o]}class Ra extends ye{constructor(e){super(),ve(this,e,Ky,Yy,_e,{tooltip:0})}}function Jy(n){let e,t,i,s,l;const o=n[6].default,r=wt(o,n,n[5],null);return{c(){e=y("th"),r&&r.c(),h(e,"tabindex","0"),h(e,"title",n[2]),h(e,"class",t="col-sort "+n[1]),x(e,"col-sort-disabled",n[3]),x(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),x(e,"sort-desc",n[0]==="-"+n[2]),x(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){S(a,e,u),r&&r.m(e,null),i=!0,s||(l=[J(e,"click",n[7]),J(e,"keydown",n[8])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&32)&&$t(r,o,a,a[5],i?St(o,a[5],u,null):Ct(a[5]),null),(!i||u&4)&&h(e,"title",a[2]),(!i||u&2&&t!==(t="col-sort "+a[1]))&&h(e,"class",t),(!i||u&10)&&x(e,"col-sort-disabled",a[3]),(!i||u&7)&&x(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),(!i||u&7)&&x(e,"sort-desc",a[0]==="-"+a[2]),(!i||u&7)&&x(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(A(r,a),i=!0)},o(a){P(r,a),i=!1},d(a){a&&w(e),r&&r.d(a),s=!1,Ae(l)}}}function Zy(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:o}=e,{sort:r=""}=e,{disable:a=!1}=e;function u(){a||("-"+o===r?t(0,r="+"+o):t(0,r="-"+o))}const f=()=>u(),d=p=>{(p.code==="Enter"||p.code==="Space")&&(p.preventDefault(),u())};return n.$$set=p=>{"class"in p&&t(1,l=p.class),"name"in p&&t(2,o=p.name),"sort"in p&&t(0,r=p.sort),"disable"in p&&t(3,a=p.disable),"$$scope"in p&&t(5,s=p.$$scope)},[r,l,o,a,u,s,i,f,d]}class ln extends ye{constructor(e){super(),ve(this,e,Zy,Jy,_e,{class:1,name:2,sort:0,disable:3})}}function Gy(n){let e;return{c(){e=y("span"),e.textContent="N/A",h(e,"class","txt txt-hint")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function Xy(n){let e,t,i,s,l,o,r;return{c(){e=y("div"),t=y("div"),i=Y(n[2]),s=E(),l=y("div"),o=Y(n[1]),r=Y(" UTC"),h(t,"class","date"),h(l,"class","time svelte-zdiknu"),h(e,"class","datetime svelte-zdiknu")},m(a,u){S(a,e,u),v(e,t),v(t,i),v(e,s),v(e,l),v(l,o),v(l,r)},p(a,u){u&4&&le(i,a[2]),u&2&&le(o,a[1])},d(a){a&&w(e)}}}function Qy(n){let e;function t(l,o){return l[0]?Xy:Gy}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:X,o:X,d(l){s.d(l),l&&w(e)}}}function xy(n,e,t){let i,s,{date:l=""}=e;return n.$$set=o=>{"date"in o&&t(0,l=o.date)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=l?l.substring(0,10):null),n.$$.dirty&1&&t(1,s=l?l.substring(10,19):null)},[l,s,i]}class Si extends ye{constructor(e){super(),ve(this,e,xy,Qy,_e,{date:0})}}const e2=n=>({}),lf=n=>({}),t2=n=>({}),of=n=>({});function n2(n){let e,t,i,s,l,o,r,a;const u=n[5].before,f=wt(u,n,n[4],of),d=n[5].default,p=wt(d,n,n[4],null),m=n[5].after,g=wt(m,n,n[4],lf);return{c(){e=y("div"),f&&f.c(),t=E(),i=y("div"),p&&p.c(),l=E(),g&&g.c(),h(i,"class",s="horizontal-scroller "+n[0]+" "+n[3]+" svelte-wc2j9h"),h(e,"class","horizontal-scroller-wrapper svelte-wc2j9h")},m(_,b){S(_,e,b),f&&f.m(e,null),v(e,t),v(e,i),p&&p.m(i,null),n[6](i),v(e,l),g&&g.m(e,null),o=!0,r||(a=[J(window,"resize",n[1]),J(i,"scroll",n[1])],r=!0)},p(_,[b]){f&&f.p&&(!o||b&16)&&$t(f,u,_,_[4],o?St(u,_[4],b,t2):Ct(_[4]),of),p&&p.p&&(!o||b&16)&&$t(p,d,_,_[4],o?St(d,_[4],b,null):Ct(_[4]),null),(!o||b&9&&s!==(s="horizontal-scroller "+_[0]+" "+_[3]+" svelte-wc2j9h"))&&h(i,"class",s),g&&g.p&&(!o||b&16)&&$t(g,m,_,_[4],o?St(m,_[4],b,e2):Ct(_[4]),lf)},i(_){o||(A(f,_),A(p,_),A(g,_),o=!0)},o(_){P(f,_),P(p,_),P(g,_),o=!1},d(_){_&&w(e),f&&f.d(_),p&&p.d(_),n[6](null),g&&g.d(_),r=!1,Ae(a)}}}function i2(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,o=null,r="",a=null,u;function f(){o&&(clearTimeout(a),a=setTimeout(()=>{const p=o.offsetWidth,m=o.scrollWidth;m-p?(t(3,r="scrollable"),o.scrollLeft===0?t(3,r+=" scroll-start"):o.scrollLeft+p==m&&t(3,r+=" scroll-end")):t(3,r="")},100))}en(()=>(f(),u=new MutationObserver(()=>{f()}),u.observe(o,{attributeFilter:["width"],childList:!0,subtree:!0}),()=>{u==null||u.disconnect(),clearTimeout(a)}));function d(p){ie[p?"unshift":"push"](()=>{o=p,t(2,o)})}return n.$$set=p=>{"class"in p&&t(0,l=p.class),"$$scope"in p&&t(4,s=p.$$scope)},[l,f,o,r,s,i,d]}class qa extends ye{constructor(e){super(),ve(this,e,i2,n2,_e,{class:0,refresh:1})}get refresh(){return this.$$.ctx[1]}}function rf(n,e,t){const i=n.slice();return i[23]=e[t],i}function s2(n){let e;return{c(){e=y("div"),e.innerHTML=` + `,h(t,"class","content txt-center m-b-base"),h(f,"type","submit"),h(f,"class","btn btn-lg btn-block btn-next"),x(f,"btn-disabled",n[3]),x(f,"btn-loading",n[3]),h(e,"class","block"),h(e,"autocomplete","off")},m(g,_){S(g,e,_),v(e,t),v(e,i),z(s,e,null),v(e,l),z(o,e,null),v(e,r),z(a,e,null),v(e,u),v(e,f),d=!0,p||(m=J(e,"submit",at(n[4])),p=!0)},p(g,[_]){const b={};_&1537&&(b.$$scope={dirty:_,ctx:g}),s.$set(b);const k={};_&1538&&(k.$$scope={dirty:_,ctx:g}),o.$set(k);const $={};_&1540&&($.$$scope={dirty:_,ctx:g}),a.$set($),(!d||_&8)&&x(f,"btn-disabled",g[3]),(!d||_&8)&&x(f,"btn-loading",g[3])},i(g){d||(A(s.$$.fragment,g),A(o.$$.fragment,g),A(a.$$.fragment,g),d=!0)},o(g){P(s.$$.fragment,g),P(o.$$.fragment,g),P(a.$$.fragment,g),d=!1},d(g){g&&w(e),B(s),B(o),B(a),p=!1,m()}}}function Fy(n,e,t){const i=Tt();let s="",l="",o="",r=!1;async function a(){if(!r){t(3,r=!0);try{await pe.admins.create({email:s,password:l,passwordConfirm:o}),await pe.admins.authWithPassword(s,l),i("submit")}catch(p){pe.errorResponseHandler(p)}t(3,r=!1)}}function u(){s=this.value,t(0,s)}function f(){l=this.value,t(1,l)}function d(){o=this.value,t(2,o)}return[s,l,o,r,a,u,f,d]}class Ry extends ye{constructor(e){super(),ve(this,e,Fy,Ny,_e,{})}}function tf(n){let e,t;return e=new r1({props:{$$slots:{default:[qy]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&9&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function qy(n){let e,t;return e=new Ry({}),e.$on("submit",n[1]),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p:X,i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function jy(n){let e,t,i=n[0]&&tf(n);return{c(){i&&i.c(),e=Ce()},m(s,l){i&&i.m(s,l),S(s,e,l),t=!0},p(s,[l]){s[0]?i?(i.p(s,l),l&1&&A(i,1)):(i=tf(s),i.c(),A(i,1),i.m(e.parentNode,e)):i&&(re(),P(i,1,1,()=>{i=null}),ae())},i(s){t||(A(i),t=!0)},o(s){P(i),t=!1},d(s){i&&i.d(s),s&&w(e)}}}function Vy(n,e,t){let i=!1;s();function s(){if(t(0,i=!1),new URLSearchParams(window.location.search).has("installer")){pe.logout(!1),t(0,i=!0);return}pe.authStore.isValid?ji("/collections"):pe.logout()}return[i,async()=>{t(0,i=!1),await an(),window.location.search=""}]}class Hy extends ye{constructor(e){super(),ve(this,e,Vy,jy,_e,{})}}const Ft=In(""),wo=In(""),Es=In(!1);function zy(n){let e,t,i,s;return{c(){e=y("input"),h(e,"type","text"),h(e,"id",n[8]),h(e,"placeholder",t=n[0]||n[1])},m(l,o){S(l,e,o),n[13](e),fe(e,n[7]),i||(s=J(e,"input",n[14]),i=!0)},p(l,o){o&3&&t!==(t=l[0]||l[1])&&h(e,"placeholder",t),o&128&&e.value!==l[7]&&fe(e,l[7])},i:X,o:X,d(l){l&&w(e),n[13](null),i=!1,s()}}}function By(n){let e,t,i,s;function l(a){n[12](a)}var o=n[4];function r(a){let u={id:a[8],singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return o&&(e=Nt(o,r(n)),ie.push(()=>he(e,"value",l)),e.$on("submit",n[10])),{c(){e&&U(e.$$.fragment),i=Ce()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],ke(()=>t=!1)),u&16&&o!==(o=a[4])){if(e){re();const d=e;P(d.$$.fragment,1,0,()=>{B(d,1)}),ae()}o?(e=Nt(o,r(a)),ie.push(()=>he(e,"value",l)),e.$on("submit",a[10]),U(e.$$.fragment),A(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&A(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&B(e,a)}}}function nf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Search',h(e,"type","submit"),h(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){S(s,e,l),i=!0},i(s){i||(s&&tt(()=>{i&&(t||(t=ze(e,fi,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(s){s&&(t||(t=ze(e,fi,{duration:150,x:5},!1)),t.run(0)),i=!1},d(s){s&&w(e),s&&t&&t.end()}}}function sf(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='Clear',h(e,"type","button"),h(e,"class","btn btn-transparent btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[15]),s=!0)},p:X,i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,fi,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,fi,{duration:150,x:5},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function Uy(n){let e,t,i,s,l,o,r,a,u,f,d;const p=[By,zy],m=[];function g(k,$){return k[4]&&!k[5]?0:1}l=g(n),o=m[l]=p[l](n);let _=(n[0].length||n[7].length)&&n[7]!=n[0]&&nf(),b=(n[0].length||n[7].length)&&sf(n);return{c(){e=y("form"),t=y("label"),i=y("i"),s=E(),o.c(),r=E(),_&&_.c(),a=E(),b&&b.c(),h(i,"class","ri-search-line"),h(t,"for",n[8]),h(t,"class","m-l-10 txt-xl"),h(e,"class","searchbar")},m(k,$){S(k,e,$),v(e,t),v(t,i),v(e,s),m[l].m(e,null),v(e,r),_&&_.m(e,null),v(e,a),b&&b.m(e,null),u=!0,f||(d=[J(e,"click",An(n[11])),J(e,"submit",at(n[10]))],f=!0)},p(k,[$]){let T=l;l=g(k),l===T?m[l].p(k,$):(re(),P(m[T],1,1,()=>{m[T]=null}),ae(),o=m[l],o?o.p(k,$):(o=m[l]=p[l](k),o.c()),A(o,1),o.m(e,r)),(k[0].length||k[7].length)&&k[7]!=k[0]?_?$&129&&A(_,1):(_=nf(),_.c(),A(_,1),_.m(e,a)):_&&(re(),P(_,1,1,()=>{_=null}),ae()),k[0].length||k[7].length?b?(b.p(k,$),$&129&&A(b,1)):(b=sf(k),b.c(),A(b,1),b.m(e,null)):b&&(re(),P(b,1,1,()=>{b=null}),ae())},i(k){u||(A(o),A(_),A(b),u=!0)},o(k){P(o),P(_),P(b),u=!1},d(k){k&&w(e),m[l].d(),_&&_.d(),b&&b.d(),f=!1,Ae(d)}}}function Wy(n,e,t){const i=Tt(),s="search_"+H.randomString(7);let{value:l=""}=e,{placeholder:o='Search term or filter like created > "2022-01-01"...'}=e,{autocompleteCollection:r=new kn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,d,p="";function m(D=!0){t(7,p=""),D&&(d==null||d.focus()),i("clear")}function g(){t(0,l=p),i("submit",l)}async function _(){u||f||(t(5,f=!0),t(4,u=(await rt(()=>import("./FilterAutocompleteInput-42c48e12.js"),["./FilterAutocompleteInput-42c48e12.js","./index-be8a2174.js"],import.meta.url)).default),t(5,f=!1))}en(()=>{_()});function b(D){me.call(this,n,D)}function k(D){p=D,t(7,p),t(0,l)}function $(D){ie[D?"unshift":"push"](()=>{d=D,t(6,d)})}function T(){p=this.value,t(7,p),t(0,l)}const C=()=>{m(!1),g()};return n.$$set=D=>{"value"in D&&t(0,l=D.value),"placeholder"in D&&t(1,o=D.placeholder),"autocompleteCollection"in D&&t(2,r=D.autocompleteCollection),"extraAutocompleteKeys"in D&&t(3,a=D.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,p=l)},[l,o,r,a,u,f,d,p,s,m,g,b,k,$,T,C]}class Yo extends ye{constructor(e){super(),ve(this,e,Wy,Uy,_e,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}function Yy(n){let e,t,i,s;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"aria-label","Refresh"),h(e,"class","btn btn-transparent btn-circle svelte-1bvelc2"),x(e,"refreshing",n[1])},m(l,o){S(l,e,o),i||(s=[Ee(t=Ye.call(null,e,n[0])),J(e,"click",n[2])],i=!0)},p(l,[o]){t&&Ht(t.update)&&o&1&&t.update.call(null,l[0]),o&2&&x(e,"refreshing",l[1])},i:X,o:X,d(l){l&&w(e),i=!1,Ae(s)}}}function Ky(n,e,t){const i=Tt();let{tooltip:s={text:"Refresh",position:"right"}}=e,l=null;function o(){i("refresh");const r=s;t(0,s=null),clearTimeout(l),t(1,l=setTimeout(()=>{t(1,l=null),t(0,s=r)},150))}return en(()=>()=>clearTimeout(l)),n.$$set=r=>{"tooltip"in r&&t(0,s=r.tooltip)},[s,l,o]}class Ra extends ye{constructor(e){super(),ve(this,e,Ky,Yy,_e,{tooltip:0})}}function Jy(n){let e,t,i,s,l;const o=n[6].default,r=wt(o,n,n[5],null);return{c(){e=y("th"),r&&r.c(),h(e,"tabindex","0"),h(e,"title",n[2]),h(e,"class",t="col-sort "+n[1]),x(e,"col-sort-disabled",n[3]),x(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),x(e,"sort-desc",n[0]==="-"+n[2]),x(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){S(a,e,u),r&&r.m(e,null),i=!0,s||(l=[J(e,"click",n[7]),J(e,"keydown",n[8])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&32)&&$t(r,o,a,a[5],i?St(o,a[5],u,null):Ct(a[5]),null),(!i||u&4)&&h(e,"title",a[2]),(!i||u&2&&t!==(t="col-sort "+a[1]))&&h(e,"class",t),(!i||u&10)&&x(e,"col-sort-disabled",a[3]),(!i||u&7)&&x(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),(!i||u&7)&&x(e,"sort-desc",a[0]==="-"+a[2]),(!i||u&7)&&x(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(A(r,a),i=!0)},o(a){P(r,a),i=!1},d(a){a&&w(e),r&&r.d(a),s=!1,Ae(l)}}}function Zy(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:o}=e,{sort:r=""}=e,{disable:a=!1}=e;function u(){a||("-"+o===r?t(0,r="+"+o):t(0,r="-"+o))}const f=()=>u(),d=p=>{(p.code==="Enter"||p.code==="Space")&&(p.preventDefault(),u())};return n.$$set=p=>{"class"in p&&t(1,l=p.class),"name"in p&&t(2,o=p.name),"sort"in p&&t(0,r=p.sort),"disable"in p&&t(3,a=p.disable),"$$scope"in p&&t(5,s=p.$$scope)},[r,l,o,a,u,s,i,f,d]}class ln extends ye{constructor(e){super(),ve(this,e,Zy,Jy,_e,{class:1,name:2,sort:0,disable:3})}}function Gy(n){let e;return{c(){e=y("span"),e.textContent="N/A",h(e,"class","txt txt-hint")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function Xy(n){let e,t,i,s,l,o,r;return{c(){e=y("div"),t=y("div"),i=Y(n[2]),s=E(),l=y("div"),o=Y(n[1]),r=Y(" UTC"),h(t,"class","date"),h(l,"class","time svelte-zdiknu"),h(e,"class","datetime svelte-zdiknu")},m(a,u){S(a,e,u),v(e,t),v(t,i),v(e,s),v(e,l),v(l,o),v(l,r)},p(a,u){u&4&&le(i,a[2]),u&2&&le(o,a[1])},d(a){a&&w(e)}}}function Qy(n){let e;function t(l,o){return l[0]?Xy:Gy}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:X,o:X,d(l){s.d(l),l&&w(e)}}}function xy(n,e,t){let i,s,{date:l=""}=e;return n.$$set=o=>{"date"in o&&t(0,l=o.date)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=l?l.substring(0,10):null),n.$$.dirty&1&&t(1,s=l?l.substring(10,19):null)},[l,s,i]}class Si extends ye{constructor(e){super(),ve(this,e,xy,Qy,_e,{date:0})}}const e2=n=>({}),lf=n=>({}),t2=n=>({}),of=n=>({});function n2(n){let e,t,i,s,l,o,r,a;const u=n[5].before,f=wt(u,n,n[4],of),d=n[5].default,p=wt(d,n,n[4],null),m=n[5].after,g=wt(m,n,n[4],lf);return{c(){e=y("div"),f&&f.c(),t=E(),i=y("div"),p&&p.c(),l=E(),g&&g.c(),h(i,"class",s="horizontal-scroller "+n[0]+" "+n[3]+" svelte-wc2j9h"),h(e,"class","horizontal-scroller-wrapper svelte-wc2j9h")},m(_,b){S(_,e,b),f&&f.m(e,null),v(e,t),v(e,i),p&&p.m(i,null),n[6](i),v(e,l),g&&g.m(e,null),o=!0,r||(a=[J(window,"resize",n[1]),J(i,"scroll",n[1])],r=!0)},p(_,[b]){f&&f.p&&(!o||b&16)&&$t(f,u,_,_[4],o?St(u,_[4],b,t2):Ct(_[4]),of),p&&p.p&&(!o||b&16)&&$t(p,d,_,_[4],o?St(d,_[4],b,null):Ct(_[4]),null),(!o||b&9&&s!==(s="horizontal-scroller "+_[0]+" "+_[3]+" svelte-wc2j9h"))&&h(i,"class",s),g&&g.p&&(!o||b&16)&&$t(g,m,_,_[4],o?St(m,_[4],b,e2):Ct(_[4]),lf)},i(_){o||(A(f,_),A(p,_),A(g,_),o=!0)},o(_){P(f,_),P(p,_),P(g,_),o=!1},d(_){_&&w(e),f&&f.d(_),p&&p.d(_),n[6](null),g&&g.d(_),r=!1,Ae(a)}}}function i2(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,o=null,r="",a=null,u;function f(){o&&(clearTimeout(a),a=setTimeout(()=>{const p=o.offsetWidth,m=o.scrollWidth;m-p?(t(3,r="scrollable"),o.scrollLeft===0?t(3,r+=" scroll-start"):o.scrollLeft+p==m&&t(3,r+=" scroll-end")):t(3,r="")},100))}en(()=>(f(),u=new MutationObserver(()=>{f()}),u.observe(o,{attributeFilter:["width"],childList:!0,subtree:!0}),()=>{u==null||u.disconnect(),clearTimeout(a)}));function d(p){ie[p?"unshift":"push"](()=>{o=p,t(2,o)})}return n.$$set=p=>{"class"in p&&t(0,l=p.class),"$$scope"in p&&t(4,s=p.$$scope)},[l,f,o,r,s,i,d]}class qa extends ye{constructor(e){super(),ve(this,e,i2,n2,_e,{class:0,refresh:1})}get refresh(){return this.$$.ctx[1]}}function rf(n,e,t){const i=n.slice();return i[23]=e[t],i}function s2(n){let e;return{c(){e=y("div"),e.innerHTML=` Method`,h(e,"class","col-header-content")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function l2(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),s.textContent="URL",h(t,"class",H.getFieldTypeIcon("url")),h(s,"class","txt"),h(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:X,d(l){l&&w(e)}}}function o2(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),s.textContent="Referer",h(t,"class",H.getFieldTypeIcon("url")),h(s,"class","txt"),h(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:X,d(l){l&&w(e)}}}function r2(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),s.textContent="User IP",h(t,"class",H.getFieldTypeIcon("number")),h(s,"class","txt"),h(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:X,d(l){l&&w(e)}}}function a2(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),s.textContent="Status",h(t,"class",H.getFieldTypeIcon("number")),h(s,"class","txt"),h(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:X,d(l){l&&w(e)}}}function u2(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),s.textContent="Created",h(t,"class",H.getFieldTypeIcon("date")),h(s,"class","txt"),h(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:X,d(l){l&&w(e)}}}function af(n){let e;function t(l,o){return l[6]?c2:f2}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function f2(n){var r;let e,t,i,s,l,o=((r=n[0])==null?void 0:r.length)&&uf(n);return{c(){e=y("tr"),t=y("td"),i=y("h6"),i.textContent="No logs found.",s=E(),o&&o.c(),l=E(),h(t,"colspan","99"),h(t,"class","txt-center txt-hint p-xs")},m(a,u){S(a,e,u),v(e,t),v(t,i),v(t,s),o&&o.m(t,null),v(e,l)},p(a,u){var f;(f=a[0])!=null&&f.length?o?o.p(a,u):(o=uf(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(a){a&&w(e),o&&o.d()}}}function c2(n){let e;return{c(){e=y("tr"),e.innerHTML=` `},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function uf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Clear filters',h(e,"type","button"),h(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[19]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function ff(n){let e;return{c(){e=y("i"),h(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),h(e,"title","Error")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function cf(n,e){var Oe,Ge,mt;let t,i,s,l=((Oe=e[23].method)==null?void 0:Oe.toUpperCase())+"",o,r,a,u,f,d=e[23].url+"",p,m,g,_,b,k,$=(e[23].referer||"N/A")+"",T,C,D,M,O,I=(e[23].userIp||"N/A")+"",L,F,q,N,R,j=e[23].status+"",V,W,ee,te,G,ce,Q,se,ge,$e,Ve=(((Ge=e[23].meta)==null?void 0:Ge.errorMessage)||((mt=e[23].meta)==null?void 0:mt.errorData))&&ff();te=new Si({props:{date:e[23].created}});function Be(){return e[17](e[23])}function we(...Xe){return e[18](e[23],...Xe)}return{key:n,first:null,c(){t=y("tr"),i=y("td"),s=y("span"),o=Y(l),a=E(),u=y("td"),f=y("span"),p=Y(d),g=E(),Ve&&Ve.c(),_=E(),b=y("td"),k=y("span"),T=Y($),D=E(),M=y("td"),O=y("span"),L=Y(I),q=E(),N=y("td"),R=y("span"),V=Y(j),W=E(),ee=y("td"),U(te.$$.fragment),G=E(),ce=y("td"),ce.innerHTML='',Q=E(),h(s,"class",r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]),h(i,"class","col-type-text col-field-method min-width"),h(f,"class","txt txt-ellipsis"),h(f,"title",m=e[23].url),h(u,"class","col-type-text col-field-url"),h(k,"class","txt txt-ellipsis"),h(k,"title",C=e[23].referer),x(k,"txt-hint",!e[23].referer),h(b,"class","col-type-text col-field-referer"),h(O,"class","txt txt-ellipsis"),h(O,"title",F=e[23].userIp),x(O,"txt-hint",!e[23].userIp),h(M,"class","col-type-number col-field-userIp"),h(R,"class","label"),x(R,"label-danger",e[23].status>=400),h(N,"class","col-type-number col-field-status"),h(ee,"class","col-type-date col-field-created"),h(ce,"class","col-type-action min-width"),h(t,"tabindex","0"),h(t,"class","row-handle"),this.first=t},m(Xe,Ke){S(Xe,t,Ke),v(t,i),v(i,s),v(s,o),v(t,a),v(t,u),v(u,f),v(f,p),v(u,g),Ve&&Ve.m(u,null),v(t,_),v(t,b),v(b,k),v(k,T),v(t,D),v(t,M),v(M,O),v(O,L),v(t,q),v(t,N),v(N,R),v(R,V),v(t,W),v(t,ee),z(te,ee,null),v(t,G),v(t,ce),v(t,Q),se=!0,ge||($e=[J(t,"click",Be),J(t,"keydown",we)],ge=!0)},p(Xe,Ke){var ue,He,Et;e=Xe,(!se||Ke&8)&&l!==(l=((ue=e[23].method)==null?void 0:ue.toUpperCase())+"")&&le(o,l),(!se||Ke&8&&r!==(r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]))&&h(s,"class",r),(!se||Ke&8)&&d!==(d=e[23].url+"")&&le(p,d),(!se||Ke&8&&m!==(m=e[23].url))&&h(f,"title",m),(He=e[23].meta)!=null&&He.errorMessage||(Et=e[23].meta)!=null&&Et.errorData?Ve||(Ve=ff(),Ve.c(),Ve.m(u,null)):Ve&&(Ve.d(1),Ve=null),(!se||Ke&8)&&$!==($=(e[23].referer||"N/A")+"")&&le(T,$),(!se||Ke&8&&C!==(C=e[23].referer))&&h(k,"title",C),(!se||Ke&8)&&x(k,"txt-hint",!e[23].referer),(!se||Ke&8)&&I!==(I=(e[23].userIp||"N/A")+"")&&le(L,I),(!se||Ke&8&&F!==(F=e[23].userIp))&&h(O,"title",F),(!se||Ke&8)&&x(O,"txt-hint",!e[23].userIp),(!se||Ke&8)&&j!==(j=e[23].status+"")&&le(V,j),(!se||Ke&8)&&x(R,"label-danger",e[23].status>=400);const Se={};Ke&8&&(Se.date=e[23].created),te.$set(Se)},i(Xe){se||(A(te.$$.fragment,Xe),se=!0)},o(Xe){P(te.$$.fragment,Xe),se=!1},d(Xe){Xe&&w(t),Ve&&Ve.d(),B(te),ge=!1,Ae($e)}}}function d2(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M,O,I,L=[],F=new Map,q;function N(we){n[11](we)}let R={disable:!0,class:"col-field-method",name:"method",$$slots:{default:[s2]},$$scope:{ctx:n}};n[1]!==void 0&&(R.sort=n[1]),s=new ln({props:R}),ie.push(()=>he(s,"sort",N));function j(we){n[12](we)}let V={disable:!0,class:"col-type-text col-field-url",name:"url",$$slots:{default:[l2]},$$scope:{ctx:n}};n[1]!==void 0&&(V.sort=n[1]),r=new ln({props:V}),ie.push(()=>he(r,"sort",j));function W(we){n[13](we)}let ee={disable:!0,class:"col-type-text col-field-referer",name:"referer",$$slots:{default:[o2]},$$scope:{ctx:n}};n[1]!==void 0&&(ee.sort=n[1]),f=new ln({props:ee}),ie.push(()=>he(f,"sort",W));function te(we){n[14](we)}let G={disable:!0,class:"col-type-number col-field-userIp",name:"userIp",$$slots:{default:[r2]},$$scope:{ctx:n}};n[1]!==void 0&&(G.sort=n[1]),m=new ln({props:G}),ie.push(()=>he(m,"sort",te));function ce(we){n[15](we)}let Q={disable:!0,class:"col-type-number col-field-status",name:"status",$$slots:{default:[a2]},$$scope:{ctx:n}};n[1]!==void 0&&(Q.sort=n[1]),b=new ln({props:Q}),ie.push(()=>he(b,"sort",ce));function se(we){n[16](we)}let ge={disable:!0,class:"col-type-date col-field-created",name:"created",$$slots:{default:[u2]},$$scope:{ctx:n}};n[1]!==void 0&&(ge.sort=n[1]),T=new ln({props:ge}),ie.push(()=>he(T,"sort",se));let $e=n[3];const Ve=we=>we[23].id;for(let we=0;we<$e.length;we+=1){let Oe=rf(n,$e,we),Ge=Ve(Oe);F.set(Ge,L[we]=cf(Ge,Oe))}let Be=null;return $e.length||(Be=af(n)),{c(){e=y("table"),t=y("thead"),i=y("tr"),U(s.$$.fragment),o=E(),U(r.$$.fragment),u=E(),U(f.$$.fragment),p=E(),U(m.$$.fragment),_=E(),U(b.$$.fragment),$=E(),U(T.$$.fragment),D=E(),M=y("th"),O=E(),I=y("tbody");for(let we=0;wel=!1)),s.$set(Ge);const mt={};Oe&67108864&&(mt.$$scope={dirty:Oe,ctx:we}),!a&&Oe&2&&(a=!0,mt.sort=we[1],ke(()=>a=!1)),r.$set(mt);const Xe={};Oe&67108864&&(Xe.$$scope={dirty:Oe,ctx:we}),!d&&Oe&2&&(d=!0,Xe.sort=we[1],ke(()=>d=!1)),f.$set(Xe);const Ke={};Oe&67108864&&(Ke.$$scope={dirty:Oe,ctx:we}),!g&&Oe&2&&(g=!0,Ke.sort=we[1],ke(()=>g=!1)),m.$set(Ke);const Se={};Oe&67108864&&(Se.$$scope={dirty:Oe,ctx:we}),!k&&Oe&2&&(k=!0,Se.sort=we[1],ke(()=>k=!1)),b.$set(Se);const ue={};Oe&67108864&&(ue.$$scope={dirty:Oe,ctx:we}),!C&&Oe&2&&(C=!0,ue.sort=we[1],ke(()=>C=!1)),T.$set(ue),Oe&841&&($e=we[3],re(),L=yt(L,Oe,Ve,1,we,$e,F,I,Jt,cf,null,rf),ae(),!$e.length&&Be?Be.p(we,Oe):$e.length?Be&&(Be.d(1),Be=null):(Be=af(we),Be.c(),Be.m(I,null))),(!q||Oe&64)&&x(e,"table-loading",we[6])},i(we){if(!q){A(s.$$.fragment,we),A(r.$$.fragment,we),A(f.$$.fragment,we),A(m.$$.fragment,we),A(b.$$.fragment,we),A(T.$$.fragment,we);for(let Oe=0;Oe<$e.length;Oe+=1)A(L[Oe]);q=!0}},o(we){P(s.$$.fragment,we),P(r.$$.fragment,we),P(f.$$.fragment,we),P(m.$$.fragment,we),P(b.$$.fragment,we),P(T.$$.fragment,we);for(let Oe=0;Oe{if(F<=1&&_(),t(6,p=!1),t(5,f=N.page),t(4,d=N.totalItems),s("load",u.concat(N.items)),q){const R=++m;for(;N.items.length&&m==R;)t(3,u=u.concat(N.items.splice(0,10))),await H.yieldToMain()}else t(3,u=u.concat(N.items))}).catch(N=>{N!=null&&N.isAbort||(t(6,p=!1),console.warn(N),_(),pe.errorResponseHandler(N,!1))})}function _(){t(3,u=[]),t(5,f=1),t(4,d=0)}function b(F){a=F,t(1,a)}function k(F){a=F,t(1,a)}function $(F){a=F,t(1,a)}function T(F){a=F,t(1,a)}function C(F){a=F,t(1,a)}function D(F){a=F,t(1,a)}const M=F=>s("select",F),O=(F,q)=>{q.code==="Enter"&&(q.preventDefault(),s("select",F))},I=()=>t(0,o=""),L=()=>g(f+1);return n.$$set=F=>{"filter"in F&&t(0,o=F.filter),"presets"in F&&t(10,r=F.presets),"sort"in F&&t(1,a=F.sort)},n.$$.update=()=>{n.$$.dirty&1027&&(typeof a<"u"||typeof o<"u"||typeof r<"u")&&(_(),g(1)),n.$$.dirty&24&&t(7,i=d>u.length)},[o,a,g,u,d,f,p,i,s,l,r,b,k,$,T,C,D,M,O,I,L]}class h2 extends ye{constructor(e){super(),ve(this,e,m2,p2,_e,{filter:0,presets:10,sort:1,load:2})}get load(){return this.$$.ctx[2]}}/*! * Chart.js v3.9.1 @@ -49,7 +49,7 @@ `),b.hasAttribute("data-start")||b.setAttribute("data-start",String(L+1))}k.textContent=M,t.highlightElement(k)},function(M){b.setAttribute(r,f),k.textContent=M})}}),t.plugins.fileHighlight={highlight:function(b){for(var k=(b||document).querySelectorAll(d),$=0,T;T=k[$++];)t.highlightElement(T)}};var g=!1;t.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ob);var QS=ob.exports;const xs=XS(QS);var xS={exports:{}};(function(n){(function(){if(typeof Prism>"u")return;var e=Object.assign||function(o,r){for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o};function t(o){this.defaults=e({},o)}function i(o){return o.replace(/-(\w)/g,function(r,a){return a.toUpperCase()})}function s(o){for(var r=0,a=0;ar&&(f[p]=` `+f[p],d=m)}a[u]=f.join("")}return a.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(o){var r=Prism.plugins.NormalizeWhitespace;if(!(o.settings&&o.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(o.element,"whitespace-normalization",!0)){if((!o.element||!o.element.parentNode)&&o.code){o.code=r.normalize(o.code,o.settings);return}var a=o.element.parentNode;if(!(!o.code||!a||a.nodeName.toLowerCase()!=="pre")){o.settings==null&&(o.settings={});for(var u in l)if(Object.hasOwnProperty.call(l,u)){var f=l[u];if(a.hasAttribute("data-"+u))try{var d=JSON.parse(a.getAttribute("data-"+u)||"true");typeof d===f&&(o.settings[u]=d)}catch{}}for(var p=a.childNodes,m="",g="",_=!1,b=0;b>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(Prism);function e$(n){let e,t,i;return{c(){e=y("div"),t=y("code"),h(t,"class","svelte-10s5tkd"),h(e,"class",i="code-wrapper prism-light "+n[0]+" svelte-10s5tkd")},m(s,l){S(s,e,l),v(e,t),t.innerHTML=n[1]},p(s,[l]){l&2&&(t.innerHTML=s[1]),l&1&&i!==(i="code-wrapper prism-light "+s[0]+" svelte-10s5tkd")&&h(e,"class",i)},i:X,o:X,d(s){s&&w(e)}}}function t$(n,e,t){let{class:i=""}=e,{content:s=""}=e,{language:l="javascript"}=e,o="";function r(a){return a=typeof a=="string"?a:"",a=xs.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),xs.highlight(a,xs.languages[l]||xs.languages.javascript,l)}return n.$$set=a=>{"class"in a&&t(0,i=a.class),"content"in a&&t(2,s=a.content),"language"in a&&t(3,l=a.language)},n.$$.update=()=>{n.$$.dirty&4&&typeof xs<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class rb extends ye{constructor(e){super(),ve(this,e,t$,e$,_e,{class:0,content:2,language:3})}}const n$=n=>({}),Oc=n=>({}),i$=n=>({}),Dc=n=>({});function Ec(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T=n[4]&&!n[2]&&Ac(n);const C=n[19].header,D=wt(C,n,n[18],Dc);let M=n[4]&&n[2]&&Ic(n);const O=n[19].default,I=wt(O,n,n[18],null),L=n[19].footer,F=wt(L,n,n[18],Oc);return{c(){e=y("div"),t=y("div"),s=E(),l=y("div"),o=y("div"),T&&T.c(),r=E(),D&&D.c(),a=E(),M&&M.c(),u=E(),f=y("div"),I&&I.c(),d=E(),p=y("div"),F&&F.c(),h(t,"class","overlay"),h(o,"class","overlay-panel-section panel-header"),h(f,"class","overlay-panel-section panel-content"),h(p,"class","overlay-panel-section panel-footer"),h(l,"class",m="overlay-panel "+n[1]+" "+n[8]),x(l,"popup",n[2]),h(e,"class","overlay-panel-container"),x(e,"padded",n[2]),x(e,"active",n[0])},m(q,N){S(q,e,N),v(e,t),v(e,s),v(e,l),v(l,o),T&&T.m(o,null),v(o,r),D&&D.m(o,null),v(o,a),M&&M.m(o,null),v(l,u),v(l,f),I&&I.m(f,null),n[21](f),v(l,d),v(l,p),F&&F.m(p,null),b=!0,k||($=[J(t,"click",at(n[20])),J(f,"scroll",n[22])],k=!0)},p(q,N){n=q,n[4]&&!n[2]?T?T.p(n,N):(T=Ac(n),T.c(),T.m(o,r)):T&&(T.d(1),T=null),D&&D.p&&(!b||N[0]&262144)&&$t(D,C,n,n[18],b?St(C,n[18],N,i$):Ct(n[18]),Dc),n[4]&&n[2]?M?M.p(n,N):(M=Ic(n),M.c(),M.m(o,null)):M&&(M.d(1),M=null),I&&I.p&&(!b||N[0]&262144)&&$t(I,O,n,n[18],b?St(O,n[18],N,null):Ct(n[18]),null),F&&F.p&&(!b||N[0]&262144)&&$t(F,L,n,n[18],b?St(L,n[18],N,n$):Ct(n[18]),Oc),(!b||N[0]&258&&m!==(m="overlay-panel "+n[1]+" "+n[8]))&&h(l,"class",m),(!b||N[0]&262)&&x(l,"popup",n[2]),(!b||N[0]&4)&&x(e,"padded",n[2]),(!b||N[0]&1)&&x(e,"active",n[0])},i(q){b||(q&&tt(()=>{b&&(i||(i=ze(t,Qr,{duration:ys,opacity:0},!0)),i.run(1))}),A(D,q),A(I,q),A(F,q),tt(()=>{b&&(_&&_.end(1),g=G_(l,fi,n[2]?{duration:ys,y:-10}:{duration:ys,x:50}),g.start())}),b=!0)},o(q){q&&(i||(i=ze(t,Qr,{duration:ys,opacity:0},!1)),i.run(0)),P(D,q),P(I,q),P(F,q),g&&g.invalidate(),_=wa(l,fi,n[2]?{duration:ys,y:10}:{duration:ys,x:50}),b=!1},d(q){q&&w(e),q&&i&&i.end(),T&&T.d(),D&&D.d(q),M&&M.d(),I&&I.d(q),n[21](null),F&&F.d(q),q&&_&&_.end(),k=!1,Ae($)}}}function Ac(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",at(n[5])),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function Ic(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-sm btn-circle btn-transparent btn-close m-l-auto")},m(s,l){S(s,e,l),t||(i=J(e,"click",at(n[5])),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function s$(n){let e,t,i,s,l=n[0]&&Ec(n);return{c(){e=y("div"),l&&l.c(),h(e,"class","overlay-panel-wrapper"),h(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[23](e),t=!0,i||(s=[J(window,"resize",n[10]),J(window,"keydown",n[9])],i=!0)},p(o,r){o[0]?l?(l.p(o,r),r[0]&1&&A(l,1)):(l=Ec(o),l.c(),A(l,1),l.m(e,null)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){t||(A(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[23](null),i=!1,Ae(s)}}}let Gi,Tr=[];function ab(){return Gi=Gi||document.querySelector(".overlays"),Gi||(Gi=document.createElement("div"),Gi.classList.add("overlays"),document.body.appendChild(Gi)),Gi}let ys=150;function Pc(){return 1e3+ab().querySelectorAll(".overlay-panel-container.active").length}function l$(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{active:o=!1}=e,{popup:r=!1}=e,{overlayClose:a=!0}=e,{btnClose:u=!0}=e,{escClose:f=!0}=e,{beforeOpen:d=void 0}=e,{beforeHide:p=void 0}=e;const m=Tt(),g="op_"+H.randomString(10);let _,b,k,$,T="",C=o;function D(){typeof d=="function"&&d()===!1||t(0,o=!0)}function M(){typeof p=="function"&&p()===!1||t(0,o=!1)}function O(){return o}async function I(G){t(17,C=G),G?(k=document.activeElement,m("show"),_==null||_.focus()):(clearTimeout($),m("hide"),k==null||k.focus()),await an(),L()}function L(){_&&(o?t(6,_.style.zIndex=Pc(),_):t(6,_.style="",_))}function F(){H.pushUnique(Tr,g),document.body.classList.add("overlay-active")}function q(){H.removeByValue(Tr,g),Tr.length||document.body.classList.remove("overlay-active")}function N(G){o&&f&&G.code=="Escape"&&!H.isInput(G.target)&&_&&_.style.zIndex==Pc()&&(G.preventDefault(),M())}function R(G){o&&j(b)}function j(G,ce){ce&&t(8,T=""),G&&($||($=setTimeout(()=>{if(clearTimeout($),$=null,!G)return;if(G.scrollHeight-G.offsetHeight>0)t(8,T="scrollable");else{t(8,T="");return}G.scrollTop==0?t(8,T+=" scroll-top-reached"):G.scrollTop+G.offsetHeight==G.scrollHeight&&t(8,T+=" scroll-bottom-reached")},100)))}en(()=>(ab().appendChild(_),()=>{var G;clearTimeout($),q(),(G=_==null?void 0:_.classList)==null||G.add("hidden"),setTimeout(()=>{_==null||_.remove()},0)}));const V=()=>a?M():!0;function W(G){ie[G?"unshift":"push"](()=>{b=G,t(7,b)})}const ee=G=>j(G.target);function te(G){ie[G?"unshift":"push"](()=>{_=G,t(6,_)})}return n.$$set=G=>{"class"in G&&t(1,l=G.class),"active"in G&&t(0,o=G.active),"popup"in G&&t(2,r=G.popup),"overlayClose"in G&&t(3,a=G.overlayClose),"btnClose"in G&&t(4,u=G.btnClose),"escClose"in G&&t(12,f=G.escClose),"beforeOpen"in G&&t(13,d=G.beforeOpen),"beforeHide"in G&&t(14,p=G.beforeHide),"$$scope"in G&&t(18,s=G.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&131073&&C!=o&&I(o),n.$$.dirty[0]&128&&j(b,!0),n.$$.dirty[0]&64&&_&&L(),n.$$.dirty[0]&1&&(o?F():q())},[o,l,r,a,u,M,_,b,T,N,R,j,f,d,p,D,O,C,s,i,V,W,ee,te]}class hn extends ye{constructor(e){super(),ve(this,e,l$,s$,_e,{class:1,active:0,popup:2,overlayClose:3,btnClose:4,escClose:12,beforeOpen:13,beforeHide:14,show:15,hide:5,isActive:16},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[5]}get isActive(){return this.$$.ctx[16]}}function o$(n){let e;return{c(){e=y("span"),e.textContent="N/A",h(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function r$(n){let e,t=n[2].referer+"",i,s;return{c(){e=y("a"),i=Y(t),h(e,"href",s=n[2].referer),h(e,"target","_blank"),h(e,"rel","noopener noreferrer")},m(l,o){S(l,e,o),v(e,i)},p(l,o){o&4&&t!==(t=l[2].referer+"")&&le(i,t),o&4&&s!==(s=l[2].referer)&&h(e,"href",s)},d(l){l&&w(e)}}}function a$(n){let e;return{c(){e=y("span"),e.textContent="N/A",h(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function u$(n){let e,t,i;return t=new rb({props:{content:JSON.stringify(n[2].meta,null,2)}}),{c(){e=y("div"),U(t.$$.fragment),h(e,"class","block")},m(s,l){S(s,e,l),z(t,e,null),i=!0},p(s,l){const o={};l&4&&(o.content=JSON.stringify(s[2].meta,null,2)),t.$set(o)},i(s){i||(A(t.$$.fragment,s),i=!0)},o(s){P(t.$$.fragment,s),i=!1},d(s){s&&w(e),B(t)}}}function f$(n){var Le;let e,t,i,s,l,o,r=n[2].id+"",a,u,f,d,p,m,g,_=n[2].status+"",b,k,$,T,C,D,M=((Le=n[2].method)==null?void 0:Le.toUpperCase())+"",O,I,L,F,q,N,R=n[2].auth+"",j,V,W,ee,te,G,ce=n[2].url+"",Q,se,ge,$e,Ve,Be,we,Oe,Ge,mt,Xe,Ke=n[2].remoteIp+"",Se,ue,He,Et,Ne,Te,nt=n[2].userIp+"",At,qt,zt,Ln,ti,Sn,ht=n[2].userAgent+"",Nn,ds,ni,Ti,ps,pi,be,Ie,Re,Qe,Ot,$n,Fn,Ui,tn,fn;function Fl(Fe,De){return Fe[2].referer?r$:o$}let K=Fl(n),Z=K(n);const ne=[u$,a$],oe=[];function Me(Fe,De){return De&4&&(be=null),be==null&&(be=!H.isEmpty(Fe[2].meta)),be?0:1}return Ie=Me(n,-1),Re=oe[Ie]=ne[Ie](n),tn=new Si({props:{date:n[2].created}}),{c(){e=y("table"),t=y("tbody"),i=y("tr"),s=y("td"),s.textContent="ID",l=E(),o=y("td"),a=Y(r),u=E(),f=y("tr"),d=y("td"),d.textContent="Status",p=E(),m=y("td"),g=y("span"),b=Y(_),k=E(),$=y("tr"),T=y("td"),T.textContent="Method",C=E(),D=y("td"),O=Y(M),I=E(),L=y("tr"),F=y("td"),F.textContent="Auth",q=E(),N=y("td"),j=Y(R),V=E(),W=y("tr"),ee=y("td"),ee.textContent="URL",te=E(),G=y("td"),Q=Y(ce),se=E(),ge=y("tr"),$e=y("td"),$e.textContent="Referer",Ve=E(),Be=y("td"),Z.c(),we=E(),Oe=y("tr"),Ge=y("td"),Ge.textContent="Remote IP",mt=E(),Xe=y("td"),Se=Y(Ke),ue=E(),He=y("tr"),Et=y("td"),Et.textContent="User IP",Ne=E(),Te=y("td"),At=Y(nt),qt=E(),zt=y("tr"),Ln=y("td"),Ln.textContent="UserAgent",ti=E(),Sn=y("td"),Nn=Y(ht),ds=E(),ni=y("tr"),Ti=y("td"),Ti.textContent="Meta",ps=E(),pi=y("td"),Re.c(),Qe=E(),Ot=y("tr"),$n=y("td"),$n.textContent="Created",Fn=E(),Ui=y("td"),U(tn.$$.fragment),h(s,"class","min-width txt-hint txt-bold"),h(d,"class","min-width txt-hint txt-bold"),h(g,"class","label"),x(g,"label-danger",n[2].status>=400),h(T,"class","min-width txt-hint txt-bold"),h(F,"class","min-width txt-hint txt-bold"),h(ee,"class","min-width txt-hint txt-bold"),h($e,"class","min-width txt-hint txt-bold"),h(Ge,"class","min-width txt-hint txt-bold"),h(Et,"class","min-width txt-hint txt-bold"),h(Ln,"class","min-width txt-hint txt-bold"),h(Ti,"class","min-width txt-hint txt-bold"),h($n,"class","min-width txt-hint txt-bold"),h(e,"class","table-border")},m(Fe,De){S(Fe,e,De),v(e,t),v(t,i),v(i,s),v(i,l),v(i,o),v(o,a),v(t,u),v(t,f),v(f,d),v(f,p),v(f,m),v(m,g),v(g,b),v(t,k),v(t,$),v($,T),v($,C),v($,D),v(D,O),v(t,I),v(t,L),v(L,F),v(L,q),v(L,N),v(N,j),v(t,V),v(t,W),v(W,ee),v(W,te),v(W,G),v(G,Q),v(t,se),v(t,ge),v(ge,$e),v(ge,Ve),v(ge,Be),Z.m(Be,null),v(t,we),v(t,Oe),v(Oe,Ge),v(Oe,mt),v(Oe,Xe),v(Xe,Se),v(t,ue),v(t,He),v(He,Et),v(He,Ne),v(He,Te),v(Te,At),v(t,qt),v(t,zt),v(zt,Ln),v(zt,ti),v(zt,Sn),v(Sn,Nn),v(t,ds),v(t,ni),v(ni,Ti),v(ni,ps),v(ni,pi),oe[Ie].m(pi,null),v(t,Qe),v(t,Ot),v(Ot,$n),v(Ot,Fn),v(Ot,Ui),z(tn,Ui,null),fn=!0},p(Fe,De){var We;(!fn||De&4)&&r!==(r=Fe[2].id+"")&&le(a,r),(!fn||De&4)&&_!==(_=Fe[2].status+"")&&le(b,_),(!fn||De&4)&&x(g,"label-danger",Fe[2].status>=400),(!fn||De&4)&&M!==(M=((We=Fe[2].method)==null?void 0:We.toUpperCase())+"")&&le(O,M),(!fn||De&4)&&R!==(R=Fe[2].auth+"")&&le(j,R),(!fn||De&4)&&ce!==(ce=Fe[2].url+"")&&le(Q,ce),K===(K=Fl(Fe))&&Z?Z.p(Fe,De):(Z.d(1),Z=K(Fe),Z&&(Z.c(),Z.m(Be,null))),(!fn||De&4)&&Ke!==(Ke=Fe[2].remoteIp+"")&&le(Se,Ke),(!fn||De&4)&&nt!==(nt=Fe[2].userIp+"")&&le(At,nt),(!fn||De&4)&&ht!==(ht=Fe[2].userAgent+"")&&le(Nn,ht);let Je=Ie;Ie=Me(Fe,De),Ie===Je?oe[Ie].p(Fe,De):(re(),P(oe[Je],1,1,()=>{oe[Je]=null}),ae(),Re=oe[Ie],Re?Re.p(Fe,De):(Re=oe[Ie]=ne[Ie](Fe),Re.c()),A(Re,1),Re.m(pi,null));const qe={};De&4&&(qe.date=Fe[2].created),tn.$set(qe)},i(Fe){fn||(A(Re),A(tn.$$.fragment,Fe),fn=!0)},o(Fe){P(Re),P(tn.$$.fragment,Fe),fn=!1},d(Fe){Fe&&w(e),Z.d(),oe[Ie].d(),B(tn)}}}function c$(n){let e;return{c(){e=y("h4"),e.textContent="Request log"},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function d$(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Close',h(e,"type","button"),h(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[4]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function p$(n){let e,t,i={class:"overlay-panel-lg log-panel",$$slots:{footer:[d$],header:[c$],default:[f$]},$$scope:{ctx:n}};return e=new hn({props:i}),n[5](e),e.$on("hide",n[6]),e.$on("show",n[7]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&260&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[5](null),B(e,s)}}}function m$(n,e,t){let i,s=new Br;function l(d){return t(2,s=d),i==null?void 0:i.show()}function o(){return i==null?void 0:i.hide()}const r=()=>o();function a(d){ie[d?"unshift":"push"](()=>{i=d,t(1,i)})}function u(d){me.call(this,n,d)}function f(d){me.call(this,n,d)}return[o,i,s,l,r,a,u,f]}class h$ extends ye{constructor(e){super(),ve(this,e,m$,p$,_e,{show:3,hide:0})}get show(){return this.$$.ctx[3]}get hide(){return this.$$.ctx[0]}}function _$(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Include requests by admins"),h(e,"type","checkbox"),h(e,"id",t=n[14]),h(s,"for",o=n[14])},m(u,f){S(u,e,f),e.checked=n[1],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[10]),r=!0)},p(u,f){f&16384&&t!==(t=u[14])&&h(e,"id",t),f&2&&(e.checked=u[1]),f&16384&&o!==(o=u[14])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Lc(n){let e,t;return e=new GS({props:{filter:n[4],presets:n[5]}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function Nc(n){let e,t;return e=new h2({props:{filter:n[4],presets:n[5]}}),e.$on("select",n[12]),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function g$(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$=n[3],T,C=n[3],D,M;r=new Ra({}),r.$on("refresh",n[9]),p=new de({props:{class:"form-field form-field-toggle m-0",$$slots:{default:[_$,({uniqueId:L})=>({14:L}),({uniqueId:L})=>L?16384:0]},$$scope:{ctx:n}}}),g=new Yo({props:{value:n[0],placeholder:"Search term or filter like status >= 400",extraAutocompleteKeys:n[7]}}),g.$on("submit",n[11]);let O=Lc(n),I=Nc(n);return{c(){e=y("div"),t=y("header"),i=y("nav"),s=y("div"),l=Y(n[6]),o=E(),U(r.$$.fragment),a=E(),u=y("div"),f=E(),d=y("div"),U(p.$$.fragment),m=E(),U(g.$$.fragment),_=E(),b=y("div"),k=E(),O.c(),T=E(),I.c(),D=Ce(),h(s,"class","breadcrumb-item"),h(i,"class","breadcrumbs"),h(u,"class","flex-fill"),h(d,"class","inline-flex"),h(t,"class","page-header"),h(b,"class","clearfix m-b-base"),h(e,"class","page-header-wrapper m-b-0")},m(L,F){S(L,e,F),v(e,t),v(t,i),v(i,s),v(s,l),v(t,o),z(r,t,null),v(t,a),v(t,u),v(t,f),v(t,d),z(p,d,null),v(e,m),z(g,e,null),v(e,_),v(e,b),v(e,k),O.m(e,null),S(L,T,F),I.m(L,F),S(L,D,F),M=!0},p(L,F){(!M||F&64)&&le(l,L[6]);const q={};F&49154&&(q.$$scope={dirty:F,ctx:L}),p.$set(q);const N={};F&1&&(N.value=L[0]),g.$set(N),F&8&&_e($,$=L[3])?(re(),P(O,1,1,X),ae(),O=Lc(L),O.c(),A(O,1),O.m(e,null)):O.p(L,F),F&8&&_e(C,C=L[3])?(re(),P(I,1,1,X),ae(),I=Nc(L),I.c(),A(I,1),I.m(D.parentNode,D)):I.p(L,F)},i(L){M||(A(r.$$.fragment,L),A(p.$$.fragment,L),A(g.$$.fragment,L),A(O),A(I),M=!0)},o(L){P(r.$$.fragment,L),P(p.$$.fragment,L),P(g.$$.fragment,L),P(O),P(I),M=!1},d(L){L&&w(e),B(r),B(p),B(g),O.d(L),L&&w(T),L&&w(D),I.d(L)}}}function b$(n){let e,t,i,s;e=new Pn({props:{$$slots:{default:[g$]},$$scope:{ctx:n}}});let l={};return i=new h$({props:l}),n[13](i),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment)},m(o,r){z(e,o,r),S(o,t,r),z(i,o,r),s=!0},p(o,[r]){const a={};r&32895&&(a.$$scope={dirty:r,ctx:o}),e.$set(a);const u={};i.$set(u)},i(o){s||(A(e.$$.fragment,o),A(i.$$.fragment,o),s=!0)},o(o){P(e.$$.fragment,o),P(i.$$.fragment,o),s=!1},d(o){B(e,o),o&&w(t),n[13](null),B(i,o)}}}const Fc="includeAdminLogs";function v$(n,e,t){var k;let i,s,l;Ze(n,Ft,$=>t(6,l=$));const o=["method","url","remoteIp","userIp","referer","status","auth","userAgent","created"];rn(Ft,l="Request logs",l);let r,a="",u=((k=window.localStorage)==null?void 0:k.getItem(Fc))<<0,f=1;function d(){t(3,f++,f)}const p=()=>d();function m(){u=this.checked,t(1,u)}const g=$=>t(0,a=$.detail),_=$=>r==null?void 0:r.show($==null?void 0:$.detail);function b($){ie[$?"unshift":"push"](()=>{r=$,t(2,r)})}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=u?"":'auth!="admin"'),n.$$.dirty&2&&typeof u<"u"&&window.localStorage&&window.localStorage.setItem(Fc,u<<0),n.$$.dirty&1&&t(4,s=H.normalizeSearchFilter(a,o))},[a,u,r,f,s,i,l,o,d,p,m,g,_,b]}class y$ extends ye{constructor(e){super(),ve(this,e,v$,b$,_e,{})}}const ru=In({});function vn(n,e,t){ru.set({text:n,yesCallback:e,noCallback:t})}function ub(){ru.set({})}function Rc(n){let e,t,i;const s=n[17].default,l=wt(s,n,n[16],null);return{c(){e=y("div"),l&&l.c(),h(e,"class",n[1]),x(e,"active",n[0])},m(o,r){S(o,e,r),l&&l.m(e,null),n[18](e),i=!0},p(o,r){l&&l.p&&(!i||r&65536)&&$t(l,s,o,o[16],i?St(s,o[16],r,null):Ct(o[16]),null),(!i||r&2)&&h(e,"class",o[1]),(!i||r&3)&&x(e,"active",o[0])},i(o){i||(A(l,o),o&&tt(()=>{i&&(t||(t=ze(e,fi,{duration:150,y:3},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=ze(e,fi,{duration:150,y:3},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),n[18](null),o&&t&&t.end()}}}function k$(n){let e,t,i,s,l=n[0]&&Rc(n);return{c(){e=y("div"),l&&l.c(),h(e,"class","toggler-container"),h(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[19](e),t=!0,i||(s=[J(window,"mousedown",n[5]),J(window,"click",n[6]),J(window,"keydown",n[4]),J(window,"focusin",n[7])],i=!0)},p(o,[r]){o[0]?l?(l.p(o,r),r&1&&A(l,1)):(l=Rc(o),l.c(),A(l,1),l.m(e,null)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){t||(A(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[19](null),i=!1,Ae(s)}}}function w$(n,e,t){let{$$slots:i={},$$scope:s}=e,{trigger:l=void 0}=e,{active:o=!1}=e,{escClose:r=!0}=e,{autoScroll:a=!0}=e,{closableClass:u="closable"}=e,{class:f=""}=e,d,p,m,g,_=!1;const b=Tt();function k(){t(0,o=!1),_=!1,clearTimeout(g)}function $(){t(0,o=!0),clearTimeout(g),g=setTimeout(()=>{a&&(p!=null&&p.scrollIntoViewIfNeeded?p==null||p.scrollIntoViewIfNeeded():p!=null&&p.scrollIntoView&&(p==null||p.scrollIntoView({behavior:"smooth",block:"nearest"})))},180)}function T(){o?k():$()}function C(V){return!d||V.classList.contains(u)||(m==null?void 0:m.contains(V))&&!d.contains(V)||d.contains(V)&&V.closest&&V.closest("."+u)}function D(V){(!o||C(V.target))&&(V.preventDefault(),V.stopPropagation(),T())}function M(V){(V.code==="Enter"||V.code==="Space")&&(!o||C(V.target))&&(V.preventDefault(),V.stopPropagation(),T())}function O(V){o&&r&&V.code==="Escape"&&(V.preventDefault(),k())}function I(V){o&&!(d!=null&&d.contains(V.target))?_=!0:_&&(_=!1)}function L(V){var W;o&&_&&!(d!=null&&d.contains(V.target))&&!(m!=null&&m.contains(V.target))&&!((W=V.target)!=null&&W.closest(".flatpickr-calendar"))&&k()}function F(V){I(V),L(V)}function q(V){N(),d==null||d.addEventListener("click",D),t(15,m=V||(d==null?void 0:d.parentNode)),m==null||m.addEventListener("click",D),m==null||m.addEventListener("keydown",M)}function N(){clearTimeout(g),d==null||d.removeEventListener("click",D),m==null||m.removeEventListener("click",D),m==null||m.removeEventListener("keydown",M)}en(()=>(q(),()=>N()));function R(V){ie[V?"unshift":"push"](()=>{p=V,t(3,p)})}function j(V){ie[V?"unshift":"push"](()=>{d=V,t(2,d)})}return n.$$set=V=>{"trigger"in V&&t(8,l=V.trigger),"active"in V&&t(0,o=V.active),"escClose"in V&&t(9,r=V.escClose),"autoScroll"in V&&t(10,a=V.autoScroll),"closableClass"in V&&t(11,u=V.closableClass),"class"in V&&t(1,f=V.class),"$$scope"in V&&t(16,s=V.$$scope)},n.$$.update=()=>{var V,W;n.$$.dirty&260&&d&&q(l),n.$$.dirty&32769&&(o?((V=m==null?void 0:m.classList)==null||V.add("active"),b("show")):((W=m==null?void 0:m.classList)==null||W.remove("active"),b("hide")))},[o,f,d,p,O,I,L,F,l,r,a,u,k,$,T,m,s,i,R,j]}class ei extends ye{constructor(e){super(),ve(this,e,w$,k$,_e,{trigger:8,active:0,escClose:9,autoScroll:10,closableClass:11,class:1,hide:12,show:13,toggle:14})}get hide(){return this.$$.ctx[12]}get show(){return this.$$.ctx[13]}get toggle(){return this.$$.ctx[14]}}function qc(n,e,t){const i=n.slice();return i[27]=e[t],i}function S$(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("input"),s=E(),l=y("label"),o=Y("Unique"),h(e,"type","checkbox"),h(e,"id",t=n[30]),e.checked=i=n[3].unique,h(l,"for",r=n[30])},m(f,d){S(f,e,d),S(f,s,d),S(f,l,d),v(l,o),a||(u=J(e,"change",n[19]),a=!0)},p(f,d){d[0]&1073741824&&t!==(t=f[30])&&h(e,"id",t),d[0]&8&&i!==(i=f[3].unique)&&(e.checked=i),d[0]&1073741824&&r!==(r=f[30])&&h(l,"for",r)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function $$(n){let e,t,i,s;function l(a){n[20](a)}var o=n[7];function r(a){var f;let u={id:a[30],placeholder:`eg. CREATE INDEX idx_test on ${(f=a[0])==null?void 0:f.name} (created)`,language:"sql-create-index",minHeight:"85"};return a[2]!==void 0&&(u.value=a[2]),{props:u}}return o&&(e=Nt(o,r(n)),ie.push(()=>he(e,"value",l))),{c(){e&&U(e.$$.fragment),i=Ce()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){var d;const f={};if(u[0]&1073741824&&(f.id=a[30]),u[0]&1&&(f.placeholder=`eg. CREATE INDEX idx_test on ${(d=a[0])==null?void 0:d.name} (created)`),!t&&u[0]&4&&(t=!0,f.value=a[2],ke(()=>t=!1)),u[0]&128&&o!==(o=a[7])){if(e){re();const p=e;P(p.$$.fragment,1,0,()=>{B(p,1)}),ae()}o?(e=Nt(o,r(a)),ie.push(()=>he(e,"value",l)),U(e.$$.fragment),A(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&A(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&B(e,a)}}}function C$(n){let e;return{c(){e=y("textarea"),e.disabled=!0,h(e,"rows","7"),h(e,"placeholder","Loading...")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function T$(n){let e,t,i,s;const l=[C$,$$],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Ce()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,u){let f=e;e=r(a),e===f?o[e].p(a,u):(re(),P(o[f],1,1,()=>{o[f]=null}),ae(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),A(t,1),t.m(i.parentNode,i))},i(a){s||(A(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}function jc(n){let e,t,i,s=n[10],l=[];for(let o=0;o({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}}),i=new de({props:{class:"form-field required m-b-sm",name:`indexes.${n[6]||""}`,$$slots:{default:[T$,({uniqueId:a})=>({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}});let r=n[10].length>0&&jc(n);return{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),r&&r.c(),l=Ce()},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),r&&r.m(a,u),S(a,l,u),o=!0},p(a,u){const f={};u[0]&1073741837|u[1]&1&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const d={};u[0]&64&&(d.name=`indexes.${a[6]||""}`),u[0]&1073742213|u[1]&1&&(d.$$scope={dirty:u,ctx:a}),i.$set(d),a[10].length>0?r?r.p(a,u):(r=jc(a),r.c(),r.m(l.parentNode,l)):r&&(r.d(1),r=null)},i(a){o||(A(e.$$.fragment,a),A(i.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),o=!1},d(a){B(e,a),a&&w(t),B(i,a),a&&w(s),r&&r.d(a),a&&w(l)}}}function O$(n){let e,t=n[5]?"Update":"Create",i,s;return{c(){e=y("h4"),i=Y(t),s=Y(" index")},m(l,o){S(l,e,o),v(e,i),v(e,s)},p(l,o){o[0]&32&&t!==(t=l[5]?"Update":"Create")&&le(i,t)},d(l){l&&w(e)}}}function Hc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-sm btn-circle btn-hint btn-transparent m-r-auto")},m(s,l){S(s,e,l),t||(i=[Ee(Ye.call(null,e,{text:"Delete",position:"top"})),J(e,"click",n[16])],t=!0)},p:X,d(s){s&&w(e),t=!1,Ae(i)}}}function D$(n){let e,t,i,s,l,o,r=n[5]!=""&&Hc(n);return{c(){r&&r.c(),e=E(),t=y("button"),t.innerHTML='Cancel',i=E(),s=y("button"),s.innerHTML='Set index',h(t,"type","button"),h(t,"class","btn btn-transparent"),h(s,"type","button"),h(s,"class","btn"),x(s,"btn-disabled",n[9].length<=0)},m(a,u){r&&r.m(a,u),S(a,e,u),S(a,t,u),S(a,i,u),S(a,s,u),l||(o=[J(t,"click",n[17]),J(s,"click",n[18])],l=!0)},p(a,u){a[5]!=""?r?r.p(a,u):(r=Hc(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u[0]&512&&x(s,"btn-disabled",a[9].length<=0)},d(a){r&&r.d(a),a&&w(e),a&&w(t),a&&w(i),a&&w(s),l=!1,Ae(o)}}}function E$(n){let e,t;const i=[{popup:!0},n[14]];let s={$$slots:{footer:[D$],header:[O$],default:[M$]},$$scope:{ctx:n}};for(let l=0;lte.name==V);ee?H.removeByValue(W.columns,ee):H.pushUnique(W.columns,{name:V}),t(2,p=H.buildIndex(W))}en(async()=>{t(8,_=!0);try{t(7,g=(await rt(()=>import("./CodeEditor-4b65e980.js"),["./CodeEditor-4b65e980.js","./index-be8a2174.js"],import.meta.url)).default)}catch(V){console.warn(V)}t(8,_=!1)});const M=()=>T(),O=()=>k(),I=()=>C(),L=V=>{t(3,s.unique=V.target.checked,s),t(3,s.tableName=s.tableName||(u==null?void 0:u.name),s),t(2,p=H.buildIndex(s))};function F(V){p=V,t(2,p)}const q=V=>D(V);function N(V){ie[V?"unshift":"push"](()=>{f=V,t(4,f)})}function R(V){me.call(this,n,V)}function j(V){me.call(this,n,V)}return n.$$set=V=>{e=je(je({},e),Zt(V)),t(14,r=xe(e,o)),"collection"in V&&t(0,u=V.collection)},n.$$.update=()=>{var V,W,ee;n.$$.dirty[0]&1&&t(10,i=(((W=(V=u==null?void 0:u.schema)==null?void 0:V.filter(te=>!te.toDelete))==null?void 0:W.map(te=>te.name))||[]).concat(["created","updated"])),n.$$.dirty[0]&4&&t(3,s=H.parseIndex(p)),n.$$.dirty[0]&8&&t(9,l=((ee=s.columns)==null?void 0:ee.map(te=>te.name))||[])},[u,k,p,s,f,d,m,g,_,l,i,T,C,D,r,b,M,O,I,L,F,q,N,R,j]}class I$ extends ye{constructor(e){super(),ve(this,e,A$,E$,_e,{collection:0,show:15,hide:1},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[1]}}function zc(n,e,t){const i=n.slice();i[10]=e[t],i[13]=t;const s=H.parseIndex(i[10]);return i[11]=s,i}function Bc(n){let e;return{c(){e=y("strong"),e.textContent="Unique:"},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Uc(n){var p;let e,t,i,s=((p=n[11].columns)==null?void 0:p.map(Wc).join(", "))+"",l,o,r,a,u,f=n[11].unique&&Bc();function d(){return n[4](n[10],n[13])}return{c(){var m,g;e=y("button"),f&&f.c(),t=E(),i=y("span"),l=Y(s),h(i,"class","txt"),h(e,"type","button"),h(e,"class",o="label link-primary "+((g=(m=n[2].indexes)==null?void 0:m[n[13]])!=null&&g.message?"label-danger":"")+" svelte-167lbwu")},m(m,g){var _,b;S(m,e,g),f&&f.m(e,null),v(e,t),v(e,i),v(i,l),a||(u=[Ee(r=Ye.call(null,e,((b=(_=n[2].indexes)==null?void 0:_[n[13]])==null?void 0:b.message)||"")),J(e,"click",d)],a=!0)},p(m,g){var _,b,k,$,T;n=m,n[11].unique?f||(f=Bc(),f.c(),f.m(e,t)):f&&(f.d(1),f=null),g&1&&s!==(s=((_=n[11].columns)==null?void 0:_.map(Wc).join(", "))+"")&&le(l,s),g&4&&o!==(o="label link-primary "+((k=(b=n[2].indexes)==null?void 0:b[n[13]])!=null&&k.message?"label-danger":"")+" svelte-167lbwu")&&h(e,"class",o),r&&Ht(r.update)&&g&4&&r.update.call(null,((T=($=n[2].indexes)==null?void 0:$[n[13]])==null?void 0:T.message)||"")},d(m){m&&w(e),f&&f.d(),a=!1,Ae(u)}}}function P$(n){var C,D,M;let e,t,i=(((D=(C=n[0])==null?void 0:C.indexes)==null?void 0:D.length)||0)+"",s,l,o,r,a,u,f,d,p,m,g,_,b=((M=n[0])==null?void 0:M.indexes)||[],k=[];for(let O=0;Ohe(d,"collection",$)),d.$on("remove",n[8]),d.$on("submit",n[9]),{c(){e=y("div"),t=Y("Unique constraints and indexes ("),s=Y(i),l=Y(")"),o=E(),r=y("div");for(let O=0;O+ +`)}},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(o){var r=Prism.plugins.NormalizeWhitespace;if(!(o.settings&&o.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(o.element,"whitespace-normalization",!0)){if((!o.element||!o.element.parentNode)&&o.code){o.code=r.normalize(o.code,o.settings);return}var a=o.element.parentNode;if(!(!o.code||!a||a.nodeName.toLowerCase()!=="pre")){o.settings==null&&(o.settings={});for(var u in l)if(Object.hasOwnProperty.call(l,u)){var f=l[u];if(a.hasAttribute("data-"+u))try{var d=JSON.parse(a.getAttribute("data-"+u)||"true");typeof d===f&&(o.settings[u]=d)}catch{}}for(var p=a.childNodes,m="",g="",_=!1,b=0;b>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(Prism);function e$(n){let e,t,i;return{c(){e=y("div"),t=y("code"),h(t,"class","svelte-10s5tkd"),h(e,"class",i="code-wrapper prism-light "+n[0]+" svelte-10s5tkd")},m(s,l){S(s,e,l),v(e,t),t.innerHTML=n[1]},p(s,[l]){l&2&&(t.innerHTML=s[1]),l&1&&i!==(i="code-wrapper prism-light "+s[0]+" svelte-10s5tkd")&&h(e,"class",i)},i:X,o:X,d(s){s&&w(e)}}}function t$(n,e,t){let{class:i=""}=e,{content:s=""}=e,{language:l="javascript"}=e,o="";function r(a){return a=typeof a=="string"?a:"",a=xs.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),xs.highlight(a,xs.languages[l]||xs.languages.javascript,l)}return n.$$set=a=>{"class"in a&&t(0,i=a.class),"content"in a&&t(2,s=a.content),"language"in a&&t(3,l=a.language)},n.$$.update=()=>{n.$$.dirty&4&&typeof xs<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class rb extends ye{constructor(e){super(),ve(this,e,t$,e$,_e,{class:0,content:2,language:3})}}const n$=n=>({}),Oc=n=>({}),i$=n=>({}),Dc=n=>({});function Ec(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T=n[4]&&!n[2]&&Ac(n);const C=n[19].header,D=wt(C,n,n[18],Dc);let M=n[4]&&n[2]&&Ic(n);const O=n[19].default,I=wt(O,n,n[18],null),L=n[19].footer,F=wt(L,n,n[18],Oc);return{c(){e=y("div"),t=y("div"),s=E(),l=y("div"),o=y("div"),T&&T.c(),r=E(),D&&D.c(),a=E(),M&&M.c(),u=E(),f=y("div"),I&&I.c(),d=E(),p=y("div"),F&&F.c(),h(t,"class","overlay"),h(o,"class","overlay-panel-section panel-header"),h(f,"class","overlay-panel-section panel-content"),h(p,"class","overlay-panel-section panel-footer"),h(l,"class",m="overlay-panel "+n[1]+" "+n[8]),x(l,"popup",n[2]),h(e,"class","overlay-panel-container"),x(e,"padded",n[2]),x(e,"active",n[0])},m(q,N){S(q,e,N),v(e,t),v(e,s),v(e,l),v(l,o),T&&T.m(o,null),v(o,r),D&&D.m(o,null),v(o,a),M&&M.m(o,null),v(l,u),v(l,f),I&&I.m(f,null),n[21](f),v(l,d),v(l,p),F&&F.m(p,null),b=!0,k||($=[J(t,"click",at(n[20])),J(f,"scroll",n[22])],k=!0)},p(q,N){n=q,n[4]&&!n[2]?T?T.p(n,N):(T=Ac(n),T.c(),T.m(o,r)):T&&(T.d(1),T=null),D&&D.p&&(!b||N[0]&262144)&&$t(D,C,n,n[18],b?St(C,n[18],N,i$):Ct(n[18]),Dc),n[4]&&n[2]?M?M.p(n,N):(M=Ic(n),M.c(),M.m(o,null)):M&&(M.d(1),M=null),I&&I.p&&(!b||N[0]&262144)&&$t(I,O,n,n[18],b?St(O,n[18],N,null):Ct(n[18]),null),F&&F.p&&(!b||N[0]&262144)&&$t(F,L,n,n[18],b?St(L,n[18],N,n$):Ct(n[18]),Oc),(!b||N[0]&258&&m!==(m="overlay-panel "+n[1]+" "+n[8]))&&h(l,"class",m),(!b||N[0]&262)&&x(l,"popup",n[2]),(!b||N[0]&4)&&x(e,"padded",n[2]),(!b||N[0]&1)&&x(e,"active",n[0])},i(q){b||(q&&tt(()=>{b&&(i||(i=ze(t,Qr,{duration:ys,opacity:0},!0)),i.run(1))}),A(D,q),A(I,q),A(F,q),tt(()=>{b&&(_&&_.end(1),g=G_(l,fi,n[2]?{duration:ys,y:-10}:{duration:ys,x:50}),g.start())}),b=!0)},o(q){q&&(i||(i=ze(t,Qr,{duration:ys,opacity:0},!1)),i.run(0)),P(D,q),P(I,q),P(F,q),g&&g.invalidate(),_=wa(l,fi,n[2]?{duration:ys,y:10}:{duration:ys,x:50}),b=!1},d(q){q&&w(e),q&&i&&i.end(),T&&T.d(),D&&D.d(q),M&&M.d(),I&&I.d(q),n[21](null),F&&F.d(q),q&&_&&_.end(),k=!1,Ae($)}}}function Ac(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",at(n[5])),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function Ic(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-sm btn-circle btn-transparent btn-close m-l-auto")},m(s,l){S(s,e,l),t||(i=J(e,"click",at(n[5])),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function s$(n){let e,t,i,s,l=n[0]&&Ec(n);return{c(){e=y("div"),l&&l.c(),h(e,"class","overlay-panel-wrapper"),h(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[23](e),t=!0,i||(s=[J(window,"resize",n[10]),J(window,"keydown",n[9])],i=!0)},p(o,r){o[0]?l?(l.p(o,r),r[0]&1&&A(l,1)):(l=Ec(o),l.c(),A(l,1),l.m(e,null)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){t||(A(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[23](null),i=!1,Ae(s)}}}let Gi,Tr=[];function ab(){return Gi=Gi||document.querySelector(".overlays"),Gi||(Gi=document.createElement("div"),Gi.classList.add("overlays"),document.body.appendChild(Gi)),Gi}let ys=150;function Pc(){return 1e3+ab().querySelectorAll(".overlay-panel-container.active").length}function l$(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{active:o=!1}=e,{popup:r=!1}=e,{overlayClose:a=!0}=e,{btnClose:u=!0}=e,{escClose:f=!0}=e,{beforeOpen:d=void 0}=e,{beforeHide:p=void 0}=e;const m=Tt(),g="op_"+H.randomString(10);let _,b,k,$,T="",C=o;function D(){typeof d=="function"&&d()===!1||t(0,o=!0)}function M(){typeof p=="function"&&p()===!1||t(0,o=!1)}function O(){return o}async function I(G){t(17,C=G),G?(k=document.activeElement,m("show"),_==null||_.focus()):(clearTimeout($),m("hide"),k==null||k.focus()),await an(),L()}function L(){_&&(o?t(6,_.style.zIndex=Pc(),_):t(6,_.style="",_))}function F(){H.pushUnique(Tr,g),document.body.classList.add("overlay-active")}function q(){H.removeByValue(Tr,g),Tr.length||document.body.classList.remove("overlay-active")}function N(G){o&&f&&G.code=="Escape"&&!H.isInput(G.target)&&_&&_.style.zIndex==Pc()&&(G.preventDefault(),M())}function R(G){o&&j(b)}function j(G,ce){ce&&t(8,T=""),G&&($||($=setTimeout(()=>{if(clearTimeout($),$=null,!G)return;if(G.scrollHeight-G.offsetHeight>0)t(8,T="scrollable");else{t(8,T="");return}G.scrollTop==0?t(8,T+=" scroll-top-reached"):G.scrollTop+G.offsetHeight==G.scrollHeight&&t(8,T+=" scroll-bottom-reached")},100)))}en(()=>(ab().appendChild(_),()=>{var G;clearTimeout($),q(),(G=_==null?void 0:_.classList)==null||G.add("hidden"),setTimeout(()=>{_==null||_.remove()},0)}));const V=()=>a?M():!0;function W(G){ie[G?"unshift":"push"](()=>{b=G,t(7,b)})}const ee=G=>j(G.target);function te(G){ie[G?"unshift":"push"](()=>{_=G,t(6,_)})}return n.$$set=G=>{"class"in G&&t(1,l=G.class),"active"in G&&t(0,o=G.active),"popup"in G&&t(2,r=G.popup),"overlayClose"in G&&t(3,a=G.overlayClose),"btnClose"in G&&t(4,u=G.btnClose),"escClose"in G&&t(12,f=G.escClose),"beforeOpen"in G&&t(13,d=G.beforeOpen),"beforeHide"in G&&t(14,p=G.beforeHide),"$$scope"in G&&t(18,s=G.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&131073&&C!=o&&I(o),n.$$.dirty[0]&128&&j(b,!0),n.$$.dirty[0]&64&&_&&L(),n.$$.dirty[0]&1&&(o?F():q())},[o,l,r,a,u,M,_,b,T,N,R,j,f,d,p,D,O,C,s,i,V,W,ee,te]}class hn extends ye{constructor(e){super(),ve(this,e,l$,s$,_e,{class:1,active:0,popup:2,overlayClose:3,btnClose:4,escClose:12,beforeOpen:13,beforeHide:14,show:15,hide:5,isActive:16},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[5]}get isActive(){return this.$$.ctx[16]}}function o$(n){let e;return{c(){e=y("span"),e.textContent="N/A",h(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function r$(n){let e,t=n[2].referer+"",i,s;return{c(){e=y("a"),i=Y(t),h(e,"href",s=n[2].referer),h(e,"target","_blank"),h(e,"rel","noopener noreferrer")},m(l,o){S(l,e,o),v(e,i)},p(l,o){o&4&&t!==(t=l[2].referer+"")&&le(i,t),o&4&&s!==(s=l[2].referer)&&h(e,"href",s)},d(l){l&&w(e)}}}function a$(n){let e;return{c(){e=y("span"),e.textContent="N/A",h(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function u$(n){let e,t,i;return t=new rb({props:{content:JSON.stringify(n[2].meta,null,2)}}),{c(){e=y("div"),U(t.$$.fragment),h(e,"class","block")},m(s,l){S(s,e,l),z(t,e,null),i=!0},p(s,l){const o={};l&4&&(o.content=JSON.stringify(s[2].meta,null,2)),t.$set(o)},i(s){i||(A(t.$$.fragment,s),i=!0)},o(s){P(t.$$.fragment,s),i=!1},d(s){s&&w(e),B(t)}}}function f$(n){var Le;let e,t,i,s,l,o,r=n[2].id+"",a,u,f,d,p,m,g,_=n[2].status+"",b,k,$,T,C,D,M=((Le=n[2].method)==null?void 0:Le.toUpperCase())+"",O,I,L,F,q,N,R=n[2].auth+"",j,V,W,ee,te,G,ce=n[2].url+"",Q,se,ge,$e,Ve,Be,we,Oe,Ge,mt,Xe,Ke=n[2].remoteIp+"",Se,ue,He,Et,Ne,Te,nt=n[2].userIp+"",At,qt,zt,Ln,ti,Sn,ht=n[2].userAgent+"",Nn,ds,ni,Ti,ps,pi,be,Ie,Re,Qe,Ot,$n,Fn,Ui,tn,fn;function Fl(Fe,De){return Fe[2].referer?r$:o$}let K=Fl(n),Z=K(n);const ne=[u$,a$],oe=[];function Me(Fe,De){return De&4&&(be=null),be==null&&(be=!H.isEmpty(Fe[2].meta)),be?0:1}return Ie=Me(n,-1),Re=oe[Ie]=ne[Ie](n),tn=new Si({props:{date:n[2].created}}),{c(){e=y("table"),t=y("tbody"),i=y("tr"),s=y("td"),s.textContent="ID",l=E(),o=y("td"),a=Y(r),u=E(),f=y("tr"),d=y("td"),d.textContent="Status",p=E(),m=y("td"),g=y("span"),b=Y(_),k=E(),$=y("tr"),T=y("td"),T.textContent="Method",C=E(),D=y("td"),O=Y(M),I=E(),L=y("tr"),F=y("td"),F.textContent="Auth",q=E(),N=y("td"),j=Y(R),V=E(),W=y("tr"),ee=y("td"),ee.textContent="URL",te=E(),G=y("td"),Q=Y(ce),se=E(),ge=y("tr"),$e=y("td"),$e.textContent="Referer",Ve=E(),Be=y("td"),Z.c(),we=E(),Oe=y("tr"),Ge=y("td"),Ge.textContent="Remote IP",mt=E(),Xe=y("td"),Se=Y(Ke),ue=E(),He=y("tr"),Et=y("td"),Et.textContent="User IP",Ne=E(),Te=y("td"),At=Y(nt),qt=E(),zt=y("tr"),Ln=y("td"),Ln.textContent="UserAgent",ti=E(),Sn=y("td"),Nn=Y(ht),ds=E(),ni=y("tr"),Ti=y("td"),Ti.textContent="Meta",ps=E(),pi=y("td"),Re.c(),Qe=E(),Ot=y("tr"),$n=y("td"),$n.textContent="Created",Fn=E(),Ui=y("td"),U(tn.$$.fragment),h(s,"class","min-width txt-hint txt-bold"),h(d,"class","min-width txt-hint txt-bold"),h(g,"class","label"),x(g,"label-danger",n[2].status>=400),h(T,"class","min-width txt-hint txt-bold"),h(F,"class","min-width txt-hint txt-bold"),h(ee,"class","min-width txt-hint txt-bold"),h($e,"class","min-width txt-hint txt-bold"),h(Ge,"class","min-width txt-hint txt-bold"),h(Et,"class","min-width txt-hint txt-bold"),h(Ln,"class","min-width txt-hint txt-bold"),h(Ti,"class","min-width txt-hint txt-bold"),h($n,"class","min-width txt-hint txt-bold"),h(e,"class","table-border")},m(Fe,De){S(Fe,e,De),v(e,t),v(t,i),v(i,s),v(i,l),v(i,o),v(o,a),v(t,u),v(t,f),v(f,d),v(f,p),v(f,m),v(m,g),v(g,b),v(t,k),v(t,$),v($,T),v($,C),v($,D),v(D,O),v(t,I),v(t,L),v(L,F),v(L,q),v(L,N),v(N,j),v(t,V),v(t,W),v(W,ee),v(W,te),v(W,G),v(G,Q),v(t,se),v(t,ge),v(ge,$e),v(ge,Ve),v(ge,Be),Z.m(Be,null),v(t,we),v(t,Oe),v(Oe,Ge),v(Oe,mt),v(Oe,Xe),v(Xe,Se),v(t,ue),v(t,He),v(He,Et),v(He,Ne),v(He,Te),v(Te,At),v(t,qt),v(t,zt),v(zt,Ln),v(zt,ti),v(zt,Sn),v(Sn,Nn),v(t,ds),v(t,ni),v(ni,Ti),v(ni,ps),v(ni,pi),oe[Ie].m(pi,null),v(t,Qe),v(t,Ot),v(Ot,$n),v(Ot,Fn),v(Ot,Ui),z(tn,Ui,null),fn=!0},p(Fe,De){var We;(!fn||De&4)&&r!==(r=Fe[2].id+"")&&le(a,r),(!fn||De&4)&&_!==(_=Fe[2].status+"")&&le(b,_),(!fn||De&4)&&x(g,"label-danger",Fe[2].status>=400),(!fn||De&4)&&M!==(M=((We=Fe[2].method)==null?void 0:We.toUpperCase())+"")&&le(O,M),(!fn||De&4)&&R!==(R=Fe[2].auth+"")&&le(j,R),(!fn||De&4)&&ce!==(ce=Fe[2].url+"")&&le(Q,ce),K===(K=Fl(Fe))&&Z?Z.p(Fe,De):(Z.d(1),Z=K(Fe),Z&&(Z.c(),Z.m(Be,null))),(!fn||De&4)&&Ke!==(Ke=Fe[2].remoteIp+"")&&le(Se,Ke),(!fn||De&4)&&nt!==(nt=Fe[2].userIp+"")&&le(At,nt),(!fn||De&4)&&ht!==(ht=Fe[2].userAgent+"")&&le(Nn,ht);let Je=Ie;Ie=Me(Fe,De),Ie===Je?oe[Ie].p(Fe,De):(re(),P(oe[Je],1,1,()=>{oe[Je]=null}),ae(),Re=oe[Ie],Re?Re.p(Fe,De):(Re=oe[Ie]=ne[Ie](Fe),Re.c()),A(Re,1),Re.m(pi,null));const qe={};De&4&&(qe.date=Fe[2].created),tn.$set(qe)},i(Fe){fn||(A(Re),A(tn.$$.fragment,Fe),fn=!0)},o(Fe){P(Re),P(tn.$$.fragment,Fe),fn=!1},d(Fe){Fe&&w(e),Z.d(),oe[Ie].d(),B(tn)}}}function c$(n){let e;return{c(){e=y("h4"),e.textContent="Request log"},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function d$(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Close',h(e,"type","button"),h(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[4]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function p$(n){let e,t,i={class:"overlay-panel-lg log-panel",$$slots:{footer:[d$],header:[c$],default:[f$]},$$scope:{ctx:n}};return e=new hn({props:i}),n[5](e),e.$on("hide",n[6]),e.$on("show",n[7]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&260&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[5](null),B(e,s)}}}function m$(n,e,t){let i,s=new Br;function l(d){return t(2,s=d),i==null?void 0:i.show()}function o(){return i==null?void 0:i.hide()}const r=()=>o();function a(d){ie[d?"unshift":"push"](()=>{i=d,t(1,i)})}function u(d){me.call(this,n,d)}function f(d){me.call(this,n,d)}return[o,i,s,l,r,a,u,f]}class h$ extends ye{constructor(e){super(),ve(this,e,m$,p$,_e,{show:3,hide:0})}get show(){return this.$$.ctx[3]}get hide(){return this.$$.ctx[0]}}function _$(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Include requests by admins"),h(e,"type","checkbox"),h(e,"id",t=n[14]),h(s,"for",o=n[14])},m(u,f){S(u,e,f),e.checked=n[1],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[10]),r=!0)},p(u,f){f&16384&&t!==(t=u[14])&&h(e,"id",t),f&2&&(e.checked=u[1]),f&16384&&o!==(o=u[14])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Lc(n){let e,t;return e=new GS({props:{filter:n[4],presets:n[5]}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function Nc(n){let e,t;return e=new h2({props:{filter:n[4],presets:n[5]}}),e.$on("select",n[12]),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function g$(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$=n[3],T,C=n[3],D,M;r=new Ra({}),r.$on("refresh",n[9]),p=new de({props:{class:"form-field form-field-toggle m-0",$$slots:{default:[_$,({uniqueId:L})=>({14:L}),({uniqueId:L})=>L?16384:0]},$$scope:{ctx:n}}}),g=new Yo({props:{value:n[0],placeholder:"Search term or filter like status >= 400",extraAutocompleteKeys:n[7]}}),g.$on("submit",n[11]);let O=Lc(n),I=Nc(n);return{c(){e=y("div"),t=y("header"),i=y("nav"),s=y("div"),l=Y(n[6]),o=E(),U(r.$$.fragment),a=E(),u=y("div"),f=E(),d=y("div"),U(p.$$.fragment),m=E(),U(g.$$.fragment),_=E(),b=y("div"),k=E(),O.c(),T=E(),I.c(),D=Ce(),h(s,"class","breadcrumb-item"),h(i,"class","breadcrumbs"),h(u,"class","flex-fill"),h(d,"class","inline-flex"),h(t,"class","page-header"),h(b,"class","clearfix m-b-base"),h(e,"class","page-header-wrapper m-b-0")},m(L,F){S(L,e,F),v(e,t),v(t,i),v(i,s),v(s,l),v(t,o),z(r,t,null),v(t,a),v(t,u),v(t,f),v(t,d),z(p,d,null),v(e,m),z(g,e,null),v(e,_),v(e,b),v(e,k),O.m(e,null),S(L,T,F),I.m(L,F),S(L,D,F),M=!0},p(L,F){(!M||F&64)&&le(l,L[6]);const q={};F&49154&&(q.$$scope={dirty:F,ctx:L}),p.$set(q);const N={};F&1&&(N.value=L[0]),g.$set(N),F&8&&_e($,$=L[3])?(re(),P(O,1,1,X),ae(),O=Lc(L),O.c(),A(O,1),O.m(e,null)):O.p(L,F),F&8&&_e(C,C=L[3])?(re(),P(I,1,1,X),ae(),I=Nc(L),I.c(),A(I,1),I.m(D.parentNode,D)):I.p(L,F)},i(L){M||(A(r.$$.fragment,L),A(p.$$.fragment,L),A(g.$$.fragment,L),A(O),A(I),M=!0)},o(L){P(r.$$.fragment,L),P(p.$$.fragment,L),P(g.$$.fragment,L),P(O),P(I),M=!1},d(L){L&&w(e),B(r),B(p),B(g),O.d(L),L&&w(T),L&&w(D),I.d(L)}}}function b$(n){let e,t,i,s;e=new Pn({props:{$$slots:{default:[g$]},$$scope:{ctx:n}}});let l={};return i=new h$({props:l}),n[13](i),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment)},m(o,r){z(e,o,r),S(o,t,r),z(i,o,r),s=!0},p(o,[r]){const a={};r&32895&&(a.$$scope={dirty:r,ctx:o}),e.$set(a);const u={};i.$set(u)},i(o){s||(A(e.$$.fragment,o),A(i.$$.fragment,o),s=!0)},o(o){P(e.$$.fragment,o),P(i.$$.fragment,o),s=!1},d(o){B(e,o),o&&w(t),n[13](null),B(i,o)}}}const Fc="includeAdminLogs";function v$(n,e,t){var k;let i,s,l;Ze(n,Ft,$=>t(6,l=$));const o=["method","url","remoteIp","userIp","referer","status","auth","userAgent","created"];rn(Ft,l="Request logs",l);let r,a="",u=((k=window.localStorage)==null?void 0:k.getItem(Fc))<<0,f=1;function d(){t(3,f++,f)}const p=()=>d();function m(){u=this.checked,t(1,u)}const g=$=>t(0,a=$.detail),_=$=>r==null?void 0:r.show($==null?void 0:$.detail);function b($){ie[$?"unshift":"push"](()=>{r=$,t(2,r)})}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=u?"":'auth!="admin"'),n.$$.dirty&2&&typeof u<"u"&&window.localStorage&&window.localStorage.setItem(Fc,u<<0),n.$$.dirty&1&&t(4,s=H.normalizeSearchFilter(a,o))},[a,u,r,f,s,i,l,o,d,p,m,g,_,b]}class y$ extends ye{constructor(e){super(),ve(this,e,v$,b$,_e,{})}}const ru=In({});function vn(n,e,t){ru.set({text:n,yesCallback:e,noCallback:t})}function ub(){ru.set({})}function Rc(n){let e,t,i;const s=n[17].default,l=wt(s,n,n[16],null);return{c(){e=y("div"),l&&l.c(),h(e,"class",n[1]),x(e,"active",n[0])},m(o,r){S(o,e,r),l&&l.m(e,null),n[18](e),i=!0},p(o,r){l&&l.p&&(!i||r&65536)&&$t(l,s,o,o[16],i?St(s,o[16],r,null):Ct(o[16]),null),(!i||r&2)&&h(e,"class",o[1]),(!i||r&3)&&x(e,"active",o[0])},i(o){i||(A(l,o),o&&tt(()=>{i&&(t||(t=ze(e,fi,{duration:150,y:3},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=ze(e,fi,{duration:150,y:3},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),n[18](null),o&&t&&t.end()}}}function k$(n){let e,t,i,s,l=n[0]&&Rc(n);return{c(){e=y("div"),l&&l.c(),h(e,"class","toggler-container"),h(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[19](e),t=!0,i||(s=[J(window,"mousedown",n[5]),J(window,"click",n[6]),J(window,"keydown",n[4]),J(window,"focusin",n[7])],i=!0)},p(o,[r]){o[0]?l?(l.p(o,r),r&1&&A(l,1)):(l=Rc(o),l.c(),A(l,1),l.m(e,null)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){t||(A(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[19](null),i=!1,Ae(s)}}}function w$(n,e,t){let{$$slots:i={},$$scope:s}=e,{trigger:l=void 0}=e,{active:o=!1}=e,{escClose:r=!0}=e,{autoScroll:a=!0}=e,{closableClass:u="closable"}=e,{class:f=""}=e,d,p,m,g,_=!1;const b=Tt();function k(){t(0,o=!1),_=!1,clearTimeout(g)}function $(){t(0,o=!0),clearTimeout(g),g=setTimeout(()=>{a&&(p!=null&&p.scrollIntoViewIfNeeded?p==null||p.scrollIntoViewIfNeeded():p!=null&&p.scrollIntoView&&(p==null||p.scrollIntoView({behavior:"smooth",block:"nearest"})))},180)}function T(){o?k():$()}function C(V){return!d||V.classList.contains(u)||(m==null?void 0:m.contains(V))&&!d.contains(V)||d.contains(V)&&V.closest&&V.closest("."+u)}function D(V){(!o||C(V.target))&&(V.preventDefault(),V.stopPropagation(),T())}function M(V){(V.code==="Enter"||V.code==="Space")&&(!o||C(V.target))&&(V.preventDefault(),V.stopPropagation(),T())}function O(V){o&&r&&V.code==="Escape"&&(V.preventDefault(),k())}function I(V){o&&!(d!=null&&d.contains(V.target))?_=!0:_&&(_=!1)}function L(V){var W;o&&_&&!(d!=null&&d.contains(V.target))&&!(m!=null&&m.contains(V.target))&&!((W=V.target)!=null&&W.closest(".flatpickr-calendar"))&&k()}function F(V){I(V),L(V)}function q(V){N(),d==null||d.addEventListener("click",D),t(15,m=V||(d==null?void 0:d.parentNode)),m==null||m.addEventListener("click",D),m==null||m.addEventListener("keydown",M)}function N(){clearTimeout(g),d==null||d.removeEventListener("click",D),m==null||m.removeEventListener("click",D),m==null||m.removeEventListener("keydown",M)}en(()=>(q(),()=>N()));function R(V){ie[V?"unshift":"push"](()=>{p=V,t(3,p)})}function j(V){ie[V?"unshift":"push"](()=>{d=V,t(2,d)})}return n.$$set=V=>{"trigger"in V&&t(8,l=V.trigger),"active"in V&&t(0,o=V.active),"escClose"in V&&t(9,r=V.escClose),"autoScroll"in V&&t(10,a=V.autoScroll),"closableClass"in V&&t(11,u=V.closableClass),"class"in V&&t(1,f=V.class),"$$scope"in V&&t(16,s=V.$$scope)},n.$$.update=()=>{var V,W;n.$$.dirty&260&&d&&q(l),n.$$.dirty&32769&&(o?((V=m==null?void 0:m.classList)==null||V.add("active"),b("show")):((W=m==null?void 0:m.classList)==null||W.remove("active"),b("hide")))},[o,f,d,p,O,I,L,F,l,r,a,u,k,$,T,m,s,i,R,j]}class ei extends ye{constructor(e){super(),ve(this,e,w$,k$,_e,{trigger:8,active:0,escClose:9,autoScroll:10,closableClass:11,class:1,hide:12,show:13,toggle:14})}get hide(){return this.$$.ctx[12]}get show(){return this.$$.ctx[13]}get toggle(){return this.$$.ctx[14]}}function qc(n,e,t){const i=n.slice();return i[27]=e[t],i}function S$(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("input"),s=E(),l=y("label"),o=Y("Unique"),h(e,"type","checkbox"),h(e,"id",t=n[30]),e.checked=i=n[3].unique,h(l,"for",r=n[30])},m(f,d){S(f,e,d),S(f,s,d),S(f,l,d),v(l,o),a||(u=J(e,"change",n[19]),a=!0)},p(f,d){d[0]&1073741824&&t!==(t=f[30])&&h(e,"id",t),d[0]&8&&i!==(i=f[3].unique)&&(e.checked=i),d[0]&1073741824&&r!==(r=f[30])&&h(l,"for",r)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function $$(n){let e,t,i,s;function l(a){n[20](a)}var o=n[7];function r(a){var f;let u={id:a[30],placeholder:`eg. CREATE INDEX idx_test on ${(f=a[0])==null?void 0:f.name} (created)`,language:"sql-create-index",minHeight:"85"};return a[2]!==void 0&&(u.value=a[2]),{props:u}}return o&&(e=Nt(o,r(n)),ie.push(()=>he(e,"value",l))),{c(){e&&U(e.$$.fragment),i=Ce()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){var d;const f={};if(u[0]&1073741824&&(f.id=a[30]),u[0]&1&&(f.placeholder=`eg. CREATE INDEX idx_test on ${(d=a[0])==null?void 0:d.name} (created)`),!t&&u[0]&4&&(t=!0,f.value=a[2],ke(()=>t=!1)),u[0]&128&&o!==(o=a[7])){if(e){re();const p=e;P(p.$$.fragment,1,0,()=>{B(p,1)}),ae()}o?(e=Nt(o,r(a)),ie.push(()=>he(e,"value",l)),U(e.$$.fragment),A(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&A(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&B(e,a)}}}function C$(n){let e;return{c(){e=y("textarea"),e.disabled=!0,h(e,"rows","7"),h(e,"placeholder","Loading...")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function T$(n){let e,t,i,s;const l=[C$,$$],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Ce()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,u){let f=e;e=r(a),e===f?o[e].p(a,u):(re(),P(o[f],1,1,()=>{o[f]=null}),ae(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),A(t,1),t.m(i.parentNode,i))},i(a){s||(A(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}function jc(n){let e,t,i,s=n[10],l=[];for(let o=0;o({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}}),i=new de({props:{class:"form-field required m-b-sm",name:`indexes.${n[6]||""}`,$$slots:{default:[T$,({uniqueId:a})=>({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}});let r=n[10].length>0&&jc(n);return{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),r&&r.c(),l=Ce()},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),r&&r.m(a,u),S(a,l,u),o=!0},p(a,u){const f={};u[0]&1073741837|u[1]&1&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const d={};u[0]&64&&(d.name=`indexes.${a[6]||""}`),u[0]&1073742213|u[1]&1&&(d.$$scope={dirty:u,ctx:a}),i.$set(d),a[10].length>0?r?r.p(a,u):(r=jc(a),r.c(),r.m(l.parentNode,l)):r&&(r.d(1),r=null)},i(a){o||(A(e.$$.fragment,a),A(i.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),o=!1},d(a){B(e,a),a&&w(t),B(i,a),a&&w(s),r&&r.d(a),a&&w(l)}}}function O$(n){let e,t=n[5]?"Update":"Create",i,s;return{c(){e=y("h4"),i=Y(t),s=Y(" index")},m(l,o){S(l,e,o),v(e,i),v(e,s)},p(l,o){o[0]&32&&t!==(t=l[5]?"Update":"Create")&&le(i,t)},d(l){l&&w(e)}}}function Hc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-sm btn-circle btn-hint btn-transparent m-r-auto")},m(s,l){S(s,e,l),t||(i=[Ee(Ye.call(null,e,{text:"Delete",position:"top"})),J(e,"click",n[16])],t=!0)},p:X,d(s){s&&w(e),t=!1,Ae(i)}}}function D$(n){let e,t,i,s,l,o,r=n[5]!=""&&Hc(n);return{c(){r&&r.c(),e=E(),t=y("button"),t.innerHTML='Cancel',i=E(),s=y("button"),s.innerHTML='Set index',h(t,"type","button"),h(t,"class","btn btn-transparent"),h(s,"type","button"),h(s,"class","btn"),x(s,"btn-disabled",n[9].length<=0)},m(a,u){r&&r.m(a,u),S(a,e,u),S(a,t,u),S(a,i,u),S(a,s,u),l||(o=[J(t,"click",n[17]),J(s,"click",n[18])],l=!0)},p(a,u){a[5]!=""?r?r.p(a,u):(r=Hc(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u[0]&512&&x(s,"btn-disabled",a[9].length<=0)},d(a){r&&r.d(a),a&&w(e),a&&w(t),a&&w(i),a&&w(s),l=!1,Ae(o)}}}function E$(n){let e,t;const i=[{popup:!0},n[14]];let s={$$slots:{footer:[D$],header:[O$],default:[M$]},$$scope:{ctx:n}};for(let l=0;lte.name==V);ee?H.removeByValue(W.columns,ee):H.pushUnique(W.columns,{name:V}),t(2,p=H.buildIndex(W))}en(async()=>{t(8,_=!0);try{t(7,g=(await rt(()=>import("./CodeEditor-b3468e88.js"),["./CodeEditor-b3468e88.js","./index-be8a2174.js"],import.meta.url)).default)}catch(V){console.warn(V)}t(8,_=!1)});const M=()=>T(),O=()=>k(),I=()=>C(),L=V=>{t(3,s.unique=V.target.checked,s),t(3,s.tableName=s.tableName||(u==null?void 0:u.name),s),t(2,p=H.buildIndex(s))};function F(V){p=V,t(2,p)}const q=V=>D(V);function N(V){ie[V?"unshift":"push"](()=>{f=V,t(4,f)})}function R(V){me.call(this,n,V)}function j(V){me.call(this,n,V)}return n.$$set=V=>{e=je(je({},e),Zt(V)),t(14,r=xe(e,o)),"collection"in V&&t(0,u=V.collection)},n.$$.update=()=>{var V,W,ee;n.$$.dirty[0]&1&&t(10,i=(((W=(V=u==null?void 0:u.schema)==null?void 0:V.filter(te=>!te.toDelete))==null?void 0:W.map(te=>te.name))||[]).concat(["created","updated"])),n.$$.dirty[0]&4&&t(3,s=H.parseIndex(p)),n.$$.dirty[0]&8&&t(9,l=((ee=s.columns)==null?void 0:ee.map(te=>te.name))||[])},[u,k,p,s,f,d,m,g,_,l,i,T,C,D,r,b,M,O,I,L,F,q,N,R,j]}class I$ extends ye{constructor(e){super(),ve(this,e,A$,E$,_e,{collection:0,show:15,hide:1},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[1]}}function zc(n,e,t){const i=n.slice();i[10]=e[t],i[13]=t;const s=H.parseIndex(i[10]);return i[11]=s,i}function Bc(n){let e;return{c(){e=y("strong"),e.textContent="Unique:"},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Uc(n){var p;let e,t,i,s=((p=n[11].columns)==null?void 0:p.map(Wc).join(", "))+"",l,o,r,a,u,f=n[11].unique&&Bc();function d(){return n[4](n[10],n[13])}return{c(){var m,g;e=y("button"),f&&f.c(),t=E(),i=y("span"),l=Y(s),h(i,"class","txt"),h(e,"type","button"),h(e,"class",o="label link-primary "+((g=(m=n[2].indexes)==null?void 0:m[n[13]])!=null&&g.message?"label-danger":"")+" svelte-167lbwu")},m(m,g){var _,b;S(m,e,g),f&&f.m(e,null),v(e,t),v(e,i),v(i,l),a||(u=[Ee(r=Ye.call(null,e,((b=(_=n[2].indexes)==null?void 0:_[n[13]])==null?void 0:b.message)||"")),J(e,"click",d)],a=!0)},p(m,g){var _,b,k,$,T;n=m,n[11].unique?f||(f=Bc(),f.c(),f.m(e,t)):f&&(f.d(1),f=null),g&1&&s!==(s=((_=n[11].columns)==null?void 0:_.map(Wc).join(", "))+"")&&le(l,s),g&4&&o!==(o="label link-primary "+((k=(b=n[2].indexes)==null?void 0:b[n[13]])!=null&&k.message?"label-danger":"")+" svelte-167lbwu")&&h(e,"class",o),r&&Ht(r.update)&&g&4&&r.update.call(null,((T=($=n[2].indexes)==null?void 0:$[n[13]])==null?void 0:T.message)||"")},d(m){m&&w(e),f&&f.d(),a=!1,Ae(u)}}}function P$(n){var C,D,M;let e,t,i=(((D=(C=n[0])==null?void 0:C.indexes)==null?void 0:D.length)||0)+"",s,l,o,r,a,u,f,d,p,m,g,_,b=((M=n[0])==null?void 0:M.indexes)||[],k=[];for(let O=0;Ohe(d,"collection",$)),d.$on("remove",n[8]),d.$on("submit",n[9]),{c(){e=y("div"),t=Y("Unique constraints and indexes ("),s=Y(i),l=Y(")"),o=E(),r=y("div");for(let O=0;O+ New index`,f=E(),U(d.$$.fragment),h(e,"class","section-title"),h(u,"type","button"),h(u,"class","btn btn-xs btn-transparent btn-pill btn-outline"),h(r,"class","indexes-list svelte-167lbwu")},m(O,I){S(O,e,I),v(e,t),v(e,s),v(e,l),S(O,o,I),S(O,r,I);for(let L=0;Lp=!1)),d.$set(L)},i(O){m||(A(d.$$.fragment,O),m=!0)},o(O){P(d.$$.fragment,O),m=!1},d(O){O&&w(e),O&&w(o),O&&w(r),pt(k,O),O&&w(f),n[6](null),B(d,O),g=!1,_()}}}const Wc=n=>n.name;function L$(n,e,t){let i;Ze(n,$i,m=>t(2,i=m));let{collection:s}=e,l;function o(m,g){for(let _=0;_l==null?void 0:l.show(m,g),a=()=>l==null?void 0:l.show();function u(m){ie[m?"unshift":"push"](()=>{l=m,t(1,l)})}function f(m){s=m,t(0,s)}const d=m=>{for(let g=0;g{o(m.detail.old,m.detail.new)};return n.$$set=m=>{"collection"in m&&t(0,s=m.collection)},[s,l,i,o,r,a,u,f,d,p]}class N$ extends ye{constructor(e){super(),ve(this,e,L$,P$,_e,{collection:0})}}function Yc(n,e,t){const i=n.slice();return i[6]=e[t],i}function Kc(n){let e,t,i,s,l=n[6].label+"",o,r,a,u;function f(){return n[4](n[6])}function d(...p){return n[5](n[6],...p)}return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),o=Y(l),r=E(),h(t,"class","icon "+n[6].icon+" svelte-1gz9b6p"),h(s,"class","txt"),h(e,"tabindex","0"),h(e,"class","dropdown-item closable svelte-1gz9b6p")},m(p,m){S(p,e,m),v(e,t),v(e,i),v(e,s),v(s,o),v(e,r),a||(u=[J(e,"click",An(f)),J(e,"keydown",An(d))],a=!0)},p(p,m){n=p},d(p){p&&w(e),a=!1,Ae(u)}}}function F$(n){let e,t=n[2],i=[];for(let s=0;s{o(u.value)},a=(u,f)=>{(f.code==="Enter"||f.code==="Space")&&o(u.value)};return n.$$set=u=>{"class"in u&&t(0,i=u.class)},[i,s,l,o,r,a]}class j$ extends ye{constructor(e){super(),ve(this,e,q$,R$,_e,{class:0})}}const V$=n=>({interactive:n&128,hasErrors:n&64}),Jc=n=>({interactive:n[7],hasErrors:n[6]}),H$=n=>({interactive:n&128,hasErrors:n&64}),Zc=n=>({interactive:n[7],hasErrors:n[6]}),z$=n=>({interactive:n&128,hasErrors:n&64}),Gc=n=>({interactive:n[7],hasErrors:n[6]}),B$=n=>({interactive:n&128,hasErrors:n&64}),Xc=n=>({interactive:n[7],hasErrors:n[6]});function Qc(n){let e;return{c(){e=y("div"),e.innerHTML='',h(e,"class","drag-handle-wrapper"),h(e,"draggable","true"),h(e,"aria-label","Sort")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function xc(n){let e,t,i,s;return{c(){e=y("span"),h(e,"class","marker marker-required")},m(l,o){S(l,e,o),i||(s=Ee(t=Ye.call(null,e,n[5])),i=!0)},p(l,o){t&&Ht(t.update)&&o&32&&t.update.call(null,l[5])},d(l){l&&w(e),i=!1,s()}}}function U$(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g=n[0].required&&xc(n);return{c(){e=y("div"),g&&g.c(),t=E(),i=y("div"),s=y("i"),o=E(),r=y("input"),h(e,"class","markers"),h(s,"class",l=H.getFieldTypeIcon(n[0].type)),h(i,"class","form-field-addon prefix no-pointer-events field-type-icon"),x(i,"txt-disabled",!n[7]),h(r,"type","text"),r.required=!0,r.disabled=a=!n[7],r.readOnly=u=n[0].id&&n[0].system,h(r,"spellcheck","false"),r.autofocus=f=!n[0].id,h(r,"placeholder","Field name"),r.value=d=n[0].name},m(_,b){S(_,e,b),g&&g.m(e,null),S(_,t,b),S(_,i,b),v(i,s),S(_,o,b),S(_,r,b),n[16](r),n[0].id||r.focus(),p||(m=J(r,"input",n[17]),p=!0)},p(_,b){_[0].required?g?g.p(_,b):(g=xc(_),g.c(),g.m(e,null)):g&&(g.d(1),g=null),b&1&&l!==(l=H.getFieldTypeIcon(_[0].type))&&h(s,"class",l),b&128&&x(i,"txt-disabled",!_[7]),b&128&&a!==(a=!_[7])&&(r.disabled=a),b&1&&u!==(u=_[0].id&&_[0].system)&&(r.readOnly=u),b&1&&f!==(f=!_[0].id)&&(r.autofocus=f),b&1&&d!==(d=_[0].name)&&r.value!==d&&(r.value=d)},d(_){_&&w(e),g&&g.d(),_&&w(t),_&&w(i),_&&w(o),_&&w(r),n[16](null),p=!1,m()}}}function W$(n){let e;return{c(){e=y("span"),h(e,"class","separator")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function Y$(n){let e,t,i,s,l;return{c(){e=y("button"),t=y("i"),h(t,"class","ri-settings-3-line"),h(e,"type","button"),h(e,"aria-label","Toggle field options"),h(e,"class",i="btn btn-sm btn-circle options-trigger "+(n[4]?"btn-secondary":"btn-transparent")),x(e,"btn-hint",!n[4]&&!n[6]),x(e,"btn-danger",n[6])},m(o,r){S(o,e,r),v(e,t),s||(l=J(e,"click",n[12]),s=!0)},p(o,r){r&16&&i!==(i="btn btn-sm btn-circle options-trigger "+(o[4]?"btn-secondary":"btn-transparent"))&&h(e,"class",i),r&80&&x(e,"btn-hint",!o[4]&&!o[6]),r&80&&x(e,"btn-danger",o[6])},d(o){o&&w(e),s=!1,l()}}}function K$(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-sm btn-circle btn-warning btn-transparent options-trigger"),h(e,"aria-label","Restore")},m(s,l){S(s,e,l),t||(i=[Ee(Ye.call(null,e,"Restore")),J(e,"click",n[10])],t=!0)},p:X,d(s){s&&w(e),t=!1,Ae(i)}}}function ed(n){let e,t,i,s,l,o,r,a,u,f,d;const p=n[14].options,m=wt(p,n,n[23],Gc),g=n[14].beforeNonempty,_=wt(g,n,n[23],Zc);r=new de({props:{class:"form-field form-field-toggle m-0",name:"requried",$$slots:{default:[J$,({uniqueId:T})=>({29:T}),({uniqueId:T})=>T?536870912:0]},$$scope:{ctx:n}}});const b=n[14].afterNonempty,k=wt(b,n,n[23],Jc);let $=!n[0].toDelete&&td(n);return{c(){e=y("div"),t=y("div"),i=y("div"),m&&m.c(),s=E(),_&&_.c(),l=E(),o=y("div"),U(r.$$.fragment),a=E(),k&&k.c(),u=E(),$&&$.c(),h(i,"class","col-sm-12 hidden-empty"),h(o,"class","col-sm-4"),h(t,"class","grid grid-sm"),h(e,"class","schema-field-options")},m(T,C){S(T,e,C),v(e,t),v(t,i),m&&m.m(i,null),v(t,s),_&&_.m(t,null),v(t,l),v(t,o),z(r,o,null),v(t,a),k&&k.m(t,null),v(t,u),$&&$.m(t,null),d=!0},p(T,C){m&&m.p&&(!d||C&8388800)&&$t(m,p,T,T[23],d?St(p,T[23],C,z$):Ct(T[23]),Gc),_&&_.p&&(!d||C&8388800)&&$t(_,g,T,T[23],d?St(g,T[23],C,H$):Ct(T[23]),Zc);const D={};C&545259553&&(D.$$scope={dirty:C,ctx:T}),r.$set(D),k&&k.p&&(!d||C&8388800)&&$t(k,b,T,T[23],d?St(b,T[23],C,V$):Ct(T[23]),Jc),T[0].toDelete?$&&(re(),P($,1,1,()=>{$=null}),ae()):$?($.p(T,C),C&1&&A($,1)):($=td(T),$.c(),A($,1),$.m(t,null))},i(T){d||(A(m,T),A(_,T),A(r.$$.fragment,T),A(k,T),A($),T&&tt(()=>{d&&(f||(f=ze(e,bt,{duration:150},!0)),f.run(1))}),d=!0)},o(T){P(m,T),P(_,T),P(r.$$.fragment,T),P(k,T),P($),T&&(f||(f=ze(e,bt,{duration:150},!1)),f.run(0)),d=!1},d(T){T&&w(e),m&&m.d(T),_&&_.d(T),B(r),k&&k.d(T),$&&$.d(),T&&f&&f.end()}}}function J$(n){let e,t,i,s,l,o,r,a,u,f,d,p;return{c(){e=y("input"),i=E(),s=y("label"),l=y("span"),o=Y(n[5]),r=E(),a=y("i"),h(e,"type","checkbox"),h(e,"id",t=n[29]),h(l,"class","txt"),h(a,"class","ri-information-line link-hint"),h(s,"for",f=n[29])},m(m,g){S(m,e,g),e.checked=n[0].required,S(m,i,g),S(m,s,g),v(s,l),v(l,o),v(s,r),v(s,a),d||(p=[J(e,"change",n[18]),Ee(u=Ye.call(null,a,{text:`Requires the field value NOT to be ${H.zeroDefaultStr(n[0])}.`,position:"right"}))],d=!0)},p(m,g){g&536870912&&t!==(t=m[29])&&h(e,"id",t),g&1&&(e.checked=m[0].required),g&32&&le(o,m[5]),u&&Ht(u.update)&&g&1&&u.update.call(null,{text:`Requires the field value NOT to be ${H.zeroDefaultStr(m[0])}.`,position:"right"}),g&536870912&&f!==(f=m[29])&&h(s,"for",f)},d(m){m&&w(e),m&&w(i),m&&w(s),d=!1,Ae(p)}}}function td(n){let e,t,i,s,l,o,r,a,u;return a=new ei({props:{class:"dropdown dropdown-sm dropdown-upside dropdown-right dropdown-nowrap no-min-width",$$slots:{default:[Z$]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=E(),s=y("div"),l=y("button"),o=y("i"),r=E(),U(a.$$.fragment),h(t,"class","flex-fill"),h(o,"class","ri-more-line"),h(l,"type","button"),h(l,"aria-label","More"),h(l,"class","btn btn-circle btn-sm btn-transparent"),h(s,"class","inline-flex flex-gap-sm flex-nowrap"),h(e,"class","col-sm-4 m-l-auto txt-right")},m(f,d){S(f,e,d),v(e,t),v(e,i),v(e,s),v(s,l),v(l,o),v(l,r),z(a,l,null),u=!0},p(f,d){const p={};d&8388608&&(p.$$scope={dirty:d,ctx:f}),a.$set(p)},i(f){u||(A(a.$$.fragment,f),u=!0)},o(f){P(a.$$.fragment,f),u=!1},d(f){f&&w(e),B(a)}}}function Z$(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Remove',h(e,"type","button"),h(e,"class","dropdown-item txt-right")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[9]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function G$(n){let e,t,i,s,l,o,r,a,u,f,d,p=n[7]&&Qc();s=new de({props:{class:"form-field required m-0 "+(n[7]?"":"disabled"),name:"schema."+n[1]+".name",inlineError:!0,$$slots:{default:[U$]},$$scope:{ctx:n}}});const m=n[14].default,g=wt(m,n,n[23],Xc),_=g||W$();function b(C,D){if(C[0].toDelete)return K$;if(C[7])return Y$}let k=b(n),$=k&&k(n),T=n[7]&&n[4]&&ed(n);return{c(){e=y("div"),t=y("div"),p&&p.c(),i=E(),U(s.$$.fragment),l=E(),_&&_.c(),o=E(),$&&$.c(),r=E(),T&&T.c(),h(t,"class","schema-field-header"),h(e,"draggable",!0),h(e,"class","schema-field"),x(e,"required",n[0].required),x(e,"expanded",n[7]&&n[4]),x(e,"deleted",n[0].toDelete),x(e,"drag-over",n[3])},m(C,D){S(C,e,D),v(e,t),p&&p.m(t,null),v(t,i),z(s,t,null),v(t,l),_&&_.m(t,null),v(t,o),$&&$.m(t,null),v(e,r),T&&T.m(e,null),u=!0,f||(d=[J(e,"dragstart",n[19]),J(e,"dragenter",n[20]),J(e,"drop",at(n[21])),J(e,"dragleave",n[22]),J(e,"dragover",at(n[15]))],f=!0)},p(C,[D]){C[7]?p||(p=Qc(),p.c(),p.m(t,i)):p&&(p.d(1),p=null);const M={};D&128&&(M.class="form-field required m-0 "+(C[7]?"":"disabled")),D&2&&(M.name="schema."+C[1]+".name"),D&8388773&&(M.$$scope={dirty:D,ctx:C}),s.$set(M),g&&g.p&&(!u||D&8388800)&&$t(g,m,C,C[23],u?St(m,C[23],D,B$):Ct(C[23]),Xc),k===(k=b(C))&&$?$.p(C,D):($&&$.d(1),$=k&&k(C),$&&($.c(),$.m(t,null))),C[7]&&C[4]?T?(T.p(C,D),D&144&&A(T,1)):(T=ed(C),T.c(),A(T,1),T.m(e,null)):T&&(re(),P(T,1,1,()=>{T=null}),ae()),(!u||D&1)&&x(e,"required",C[0].required),(!u||D&144)&&x(e,"expanded",C[7]&&C[4]),(!u||D&1)&&x(e,"deleted",C[0].toDelete),(!u||D&8)&&x(e,"drag-over",C[3])},i(C){u||(A(s.$$.fragment,C),A(_,C),A(T),C&&tt(()=>{u&&(a||(a=ze(e,bt,{duration:150},!0)),a.run(1))}),u=!0)},o(C){P(s.$$.fragment,C),P(_,C),P(T),C&&(a||(a=ze(e,bt,{duration:150},!1)),a.run(0)),u=!1},d(C){C&&w(e),p&&p.d(),B(s),_&&_.d(C),$&&$.d(),T&&T.d(),C&&a&&a.end(),f=!1,Ae(d)}}}let Mr=[];function X$(n,e,t){let i,s,l,o;Ze(n,$i,W=>t(13,o=W));let{$$slots:r={},$$scope:a}=e,{key:u=""}=e,{field:f=new wn}=e,d,p=!1,m=!1;const g="f_"+H.randomString(8),_=Tt(),b={bool:"Nonfalsey",number:"Nonzero"};function k(){f.id?t(0,f.toDelete=!0,f):_("remove")}function $(){t(0,f.toDelete=!1,f),un({})}function T(W){return H.slugify(W)}function C(){t(4,m=!0),O()}function D(){t(4,m=!1)}function M(){m?D():C()}function O(){for(let W of Mr)W.id!=g&&W.collapse()}en(()=>(Mr.push({id:g,collapse:D}),f.onMountSelect&&(t(0,f.onMountSelect=!1,f),d==null||d.select()),()=>{H.removeByKey(Mr,"id",g)}));function I(W){me.call(this,n,W)}function L(W){ie[W?"unshift":"push"](()=>{d=W,t(2,d)})}const F=W=>{const ee=f.name;t(0,f.name=T(W.target.value),f),W.target.value=f.name,_("rename",{oldName:ee,newName:f.name})};function q(){f.required=this.checked,t(0,f)}const N=W=>{if(!W.target.classList.contains("drag-handle-wrapper")){W.preventDefault();return}const ee=document.createElement("div");W.dataTransfer.setDragImage(ee,0,0),i&&_("dragstart",W)},R=W=>{i&&(t(3,p=!0),_("dragenter",W))},j=W=>{i&&(t(3,p=!1),_("drop",W))},V=W=>{i&&(t(3,p=!1),_("dragleave",W))};return n.$$set=W=>{"key"in W&&t(1,u=W.key),"field"in W&&t(0,f=W.field),"$$scope"in W&&t(23,a=W.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&f.toDelete&&f.originalName&&f.name!==f.originalName&&t(0,f.name=f.originalName,f),n.$$.dirty&1&&!f.originalName&&f.name&&t(0,f.originalName=f.name,f),n.$$.dirty&1&&typeof f.toDelete>"u"&&t(0,f.toDelete=!1,f),n.$$.dirty&1&&f.required&&t(0,f.nullable=!1,f),n.$$.dirty&1&&t(7,i=!f.toDelete&&!(f.id&&f.system)),n.$$.dirty&8194&&t(6,s=!H.isEmpty(H.getNestedVal(o,`schema.${u}`))),n.$$.dirty&1&&t(5,l=b[f==null?void 0:f.type]||"Nonempty")},[f,u,d,p,m,l,s,i,_,k,$,T,M,o,r,I,L,F,q,N,R,j,V,a]}class di extends ye{constructor(e){super(),ve(this,e,X$,G$,_e,{key:1,field:0})}}function Q$(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Min length"),s=E(),l=y("input"),h(e,"for",i=n[13]),h(l,"type","number"),h(l,"id",o=n[13]),h(l,"step","1"),h(l,"min","0")},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].options.min),r||(a=J(l,"input",n[3]),r=!0)},p(u,f){f&8192&&i!==(i=u[13])&&h(e,"for",i),f&8192&&o!==(o=u[13])&&h(l,"id",o),f&1&>(l.value)!==u[0].options.min&&fe(l,u[0].options.min)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function x$(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("label"),t=Y("Max length"),s=E(),l=y("input"),h(e,"for",i=n[13]),h(l,"type","number"),h(l,"id",o=n[13]),h(l,"step","1"),h(l,"min",r=n[0].options.min||0)},m(f,d){S(f,e,d),v(e,t),S(f,s,d),S(f,l,d),fe(l,n[0].options.max),a||(u=J(l,"input",n[4]),a=!0)},p(f,d){d&8192&&i!==(i=f[13])&&h(e,"for",i),d&8192&&o!==(o=f[13])&&h(l,"id",o),d&1&&r!==(r=f[0].options.min||0)&&h(l,"min",r),d&1&>(l.value)!==f[0].options.max&&fe(l,f[0].options.max)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function eC(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Regex pattern"),s=E(),l=y("input"),h(e,"for",i=n[13]),h(l,"type","text"),h(l,"id",o=n[13]),h(l,"placeholder","Valid Go regular expression, eg. ^w+$")},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].options.pattern),r||(a=J(l,"input",n[5]),r=!0)},p(u,f){f&8192&&i!==(i=u[13])&&h(e,"for",i),f&8192&&o!==(o=u[13])&&h(l,"id",o),f&1&&l.value!==u[0].options.pattern&&fe(l,u[0].options.pattern)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function tC(n){let e,t,i,s,l,o,r,a,u,f;return i=new de({props:{class:"form-field",name:"schema."+n[1]+".options.min",$$slots:{default:[Q$,({uniqueId:d})=>({13:d}),({uniqueId:d})=>d?8192:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field",name:"schema."+n[1]+".options.max",$$slots:{default:[x$,({uniqueId:d})=>({13:d}),({uniqueId:d})=>d?8192:0]},$$scope:{ctx:n}}}),u=new de({props:{class:"form-field",name:"schema."+n[1]+".options.pattern",$$slots:{default:[eC,({uniqueId:d})=>({13:d}),({uniqueId:d})=>d?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),U(u.$$.fragment),h(t,"class","col-sm-3"),h(l,"class","col-sm-3"),h(a,"class","col-sm-6"),h(e,"class","grid grid-sm")},m(d,p){S(d,e,p),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),f=!0},p(d,p){const m={};p&2&&(m.name="schema."+d[1]+".options.min"),p&24577&&(m.$$scope={dirty:p,ctx:d}),i.$set(m);const g={};p&2&&(g.name="schema."+d[1]+".options.max"),p&24577&&(g.$$scope={dirty:p,ctx:d}),o.$set(g);const _={};p&2&&(_.name="schema."+d[1]+".options.pattern"),p&24577&&(_.$$scope={dirty:p,ctx:d}),u.$set(_)},i(d){f||(A(i.$$.fragment,d),A(o.$$.fragment,d),A(u.$$.fragment,d),f=!0)},o(d){P(i.$$.fragment,d),P(o.$$.fragment,d),P(u.$$.fragment,d),f=!1},d(d){d&&w(e),B(i),B(o),B(u)}}}function nC(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[6](r)}let o={$$slots:{options:[tC]},$$scope:{ctx:n}};for(let r=0;rhe(e,"field",l)),e.$on("rename",n[7]),e.$on("remove",n[8]),e.$on("drop",n[9]),e.$on("dragstart",n[10]),e.$on("dragenter",n[11]),e.$on("dragleave",n[12]),{c(){U(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Gt(r[2])]):{};a&16387&&(u.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e.$set(u)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){B(e,r)}}}function iC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(){l.options.min=gt(this.value),t(0,l)}function a(){l.options.max=gt(this.value),t(0,l)}function u(){l.options.pattern=this.value,t(0,l)}function f(k){l=k,t(0,l)}function d(k){me.call(this,n,k)}function p(k){me.call(this,n,k)}function m(k){me.call(this,n,k)}function g(k){me.call(this,n,k)}function _(k){me.call(this,n,k)}function b(k){me.call(this,n,k)}return n.$$set=k=>{e=je(je({},e),Zt(k)),t(2,s=xe(e,i)),"field"in k&&t(0,l=k.field),"key"in k&&t(1,o=k.key)},[l,o,s,r,a,u,f,d,p,m,g,_,b]}class sC extends ye{constructor(e){super(),ve(this,e,iC,nC,_e,{field:0,key:1})}}function lC(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Min"),s=E(),l=y("input"),h(e,"for",i=n[12]),h(l,"type","number"),h(l,"id",o=n[12])},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].options.min),r||(a=J(l,"input",n[3]),r=!0)},p(u,f){f&4096&&i!==(i=u[12])&&h(e,"for",i),f&4096&&o!==(o=u[12])&&h(l,"id",o),f&1&>(l.value)!==u[0].options.min&&fe(l,u[0].options.min)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function oC(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("label"),t=Y("Max"),s=E(),l=y("input"),h(e,"for",i=n[12]),h(l,"type","number"),h(l,"id",o=n[12]),h(l,"min",r=n[0].options.min)},m(f,d){S(f,e,d),v(e,t),S(f,s,d),S(f,l,d),fe(l,n[0].options.max),a||(u=J(l,"input",n[4]),a=!0)},p(f,d){d&4096&&i!==(i=f[12])&&h(e,"for",i),d&4096&&o!==(o=f[12])&&h(l,"id",o),d&1&&r!==(r=f[0].options.min)&&h(l,"min",r),d&1&>(l.value)!==f[0].options.max&&fe(l,f[0].options.max)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function rC(n){let e,t,i,s,l,o,r;return i=new de({props:{class:"form-field",name:"schema."+n[1]+".options.min",$$slots:{default:[lC,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field",name:"schema."+n[1]+".options.max",$$slots:{default:[oC,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),h(t,"class","col-sm-6"),h(l,"class","col-sm-6"),h(e,"class","grid grid-sm")},m(a,u){S(a,e,u),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.min"),u&12289&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};u&2&&(d.name="schema."+a[1]+".options.max"),u&12289&&(d.$$scope={dirty:u,ctx:a}),o.$set(d)},i(a){r||(A(i.$$.fragment,a),A(o.$$.fragment,a),r=!0)},o(a){P(i.$$.fragment,a),P(o.$$.fragment,a),r=!1},d(a){a&&w(e),B(i),B(o)}}}function aC(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={$$slots:{options:[rC]},$$scope:{ctx:n}};for(let r=0;rhe(e,"field",l)),e.$on("rename",n[6]),e.$on("remove",n[7]),e.$on("drop",n[8]),e.$on("dragstart",n[9]),e.$on("dragenter",n[10]),e.$on("dragleave",n[11]),{c(){U(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Gt(r[2])]):{};a&8195&&(u.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e.$set(u)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){B(e,r)}}}function uC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(){l.options.min=gt(this.value),t(0,l)}function a(){l.options.max=gt(this.value),t(0,l)}function u(b){l=b,t(0,l)}function f(b){me.call(this,n,b)}function d(b){me.call(this,n,b)}function p(b){me.call(this,n,b)}function m(b){me.call(this,n,b)}function g(b){me.call(this,n,b)}function _(b){me.call(this,n,b)}return n.$$set=b=>{e=je(je({},e),Zt(b)),t(2,s=xe(e,i)),"field"in b&&t(0,l=b.field),"key"in b&&t(1,o=b.key)},[l,o,s,r,a,u,f,d,p,m,g,_]}class fC extends ye{constructor(e){super(),ve(this,e,uC,aC,_e,{field:0,key:1})}}function cC(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;rhe(e,"field",l)),e.$on("rename",n[4]),e.$on("remove",n[5]),e.$on("drop",n[6]),e.$on("dragstart",n[7]),e.$on("dragenter",n[8]),e.$on("dragleave",n[9]),{c(){U(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Gt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e.$set(u)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){B(e,r)}}}function dC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(g){l=g,t(0,l)}function a(g){me.call(this,n,g)}function u(g){me.call(this,n,g)}function f(g){me.call(this,n,g)}function d(g){me.call(this,n,g)}function p(g){me.call(this,n,g)}function m(g){me.call(this,n,g)}return n.$$set=g=>{e=je(je({},e),Zt(g)),t(2,s=xe(e,i)),"field"in g&&t(0,l=g.field),"key"in g&&t(1,o=g.key)},[l,o,s,r,a,u,f,d,p,m]}class pC extends ye{constructor(e){super(),ve(this,e,dC,cC,_e,{field:0,key:1})}}function mC(n){let e,t,i,s,l=[{type:t=n[5].type||"text"},{value:n[4]},{disabled:n[3]},{readOnly:n[2]},n[5]],o={};for(let r=0;r{t(0,o=H.splitNonEmpty(d.target.value,r))};return n.$$set=d=>{e=je(je({},e),Zt(d)),t(5,l=xe(e,s)),"value"in d&&t(0,o=d.value),"separator"in d&&t(1,r=d.separator),"readonly"in d&&t(2,a=d.readonly),"disabled"in d&&t(3,u=d.disabled)},n.$$.update=()=>{n.$$.dirty&1&&t(4,i=(o||[]).join(", "))},[o,r,a,u,i,l,f]}class Vs extends ye{constructor(e){super(),ve(this,e,hC,mC,_e,{value:0,separator:1,readonly:2,disabled:3})}}function _C(n){let e,t,i,s,l,o,r,a,u,f,d,p,m;function g(b){n[3](b)}let _={id:n[12],disabled:!H.isEmpty(n[0].options.onlyDomains)};return n[0].options.exceptDomains!==void 0&&(_.value=n[0].options.exceptDomains),r=new Vs({props:_}),ie.push(()=>he(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Except domains",i=E(),s=y("i"),o=E(),U(r.$$.fragment),u=E(),f=y("div"),f.textContent="Use comma as separator.",h(t,"class","txt"),h(s,"class","ri-information-line link-hint"),h(e,"for",l=n[12]),h(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(m=Ee(Ye.call(null,s,{text:`List of domains that are NOT allowed. This field is disabled if "Only domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]))&&h(e,"for",l);const $={};k&4096&&($.id=b[12]),k&1&&($.disabled=!H.isEmpty(b[0].options.onlyDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.exceptDomains,ke(()=>a=!1)),r.$set($)},i(b){d||(A(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),B(r,b),b&&w(u),b&&w(f),p=!1,m()}}}function gC(n){let e,t,i,s,l,o,r,a,u,f,d,p,m;function g(b){n[4](b)}let _={id:n[12]+".options.onlyDomains",disabled:!H.isEmpty(n[0].options.exceptDomains)};return n[0].options.onlyDomains!==void 0&&(_.value=n[0].options.onlyDomains),r=new Vs({props:_}),ie.push(()=>he(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Only domains",i=E(),s=y("i"),o=E(),U(r.$$.fragment),u=E(),f=y("div"),f.textContent="Use comma as separator.",h(t,"class","txt"),h(s,"class","ri-information-line link-hint"),h(e,"for",l=n[12]+".options.onlyDomains"),h(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(m=Ee(Ye.call(null,s,{text:`List of domains that are ONLY allowed. This field is disabled if "Except domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]+".options.onlyDomains"))&&h(e,"for",l);const $={};k&4096&&($.id=b[12]+".options.onlyDomains"),k&1&&($.disabled=!H.isEmpty(b[0].options.exceptDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.onlyDomains,ke(()=>a=!1)),r.$set($)},i(b){d||(A(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),B(r,b),b&&w(u),b&&w(f),p=!1,m()}}}function bC(n){let e,t,i,s,l,o,r;return i=new de({props:{class:"form-field",name:"schema."+n[1]+".options.exceptDomains",$$slots:{default:[_C,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field",name:"schema."+n[1]+".options.onlyDomains",$$slots:{default:[gC,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),h(t,"class","col-sm-6"),h(l,"class","col-sm-6"),h(e,"class","grid grid-sm")},m(a,u){S(a,e,u),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.exceptDomains"),u&12289&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};u&2&&(d.name="schema."+a[1]+".options.onlyDomains"),u&12289&&(d.$$scope={dirty:u,ctx:a}),o.$set(d)},i(a){r||(A(i.$$.fragment,a),A(o.$$.fragment,a),r=!0)},o(a){P(i.$$.fragment,a),P(o.$$.fragment,a),r=!1},d(a){a&&w(e),B(i),B(o)}}}function vC(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={$$slots:{options:[bC]},$$scope:{ctx:n}};for(let r=0;rhe(e,"field",l)),e.$on("rename",n[6]),e.$on("remove",n[7]),e.$on("drop",n[8]),e.$on("dragstart",n[9]),e.$on("dragenter",n[10]),e.$on("dragleave",n[11]),{c(){U(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Gt(r[2])]):{};a&8195&&(u.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e.$set(u)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){B(e,r)}}}function yC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(b){n.$$.not_equal(l.options.exceptDomains,b)&&(l.options.exceptDomains=b,t(0,l))}function a(b){n.$$.not_equal(l.options.onlyDomains,b)&&(l.options.onlyDomains=b,t(0,l))}function u(b){l=b,t(0,l)}function f(b){me.call(this,n,b)}function d(b){me.call(this,n,b)}function p(b){me.call(this,n,b)}function m(b){me.call(this,n,b)}function g(b){me.call(this,n,b)}function _(b){me.call(this,n,b)}return n.$$set=b=>{e=je(je({},e),Zt(b)),t(2,s=xe(e,i)),"field"in b&&t(0,l=b.field),"key"in b&&t(1,o=b.key)},[l,o,s,r,a,u,f,d,p,m,g,_]}class fb extends ye{constructor(e){super(),ve(this,e,yC,vC,_e,{field:0,key:1})}}function kC(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;rhe(e,"field",l)),e.$on("rename",n[4]),e.$on("remove",n[5]),e.$on("drop",n[6]),e.$on("dragstart",n[7]),e.$on("dragenter",n[8]),e.$on("dragleave",n[9]),{c(){U(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Gt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e.$set(u)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){B(e,r)}}}function wC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(g){l=g,t(0,l)}function a(g){me.call(this,n,g)}function u(g){me.call(this,n,g)}function f(g){me.call(this,n,g)}function d(g){me.call(this,n,g)}function p(g){me.call(this,n,g)}function m(g){me.call(this,n,g)}return n.$$set=g=>{e=je(je({},e),Zt(g)),t(2,s=xe(e,i)),"field"in g&&t(0,l=g.field),"key"in g&&t(1,o=g.key)},[l,o,s,r,a,u,f,d,p,m]}class SC extends ye{constructor(e){super(),ve(this,e,wC,kC,_e,{field:0,key:1})}}function $C(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;rhe(e,"field",l)),e.$on("rename",n[4]),e.$on("remove",n[5]),e.$on("drop",n[6]),e.$on("dragstart",n[7]),e.$on("dragenter",n[8]),e.$on("dragleave",n[9]),{c(){U(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Gt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e.$set(u)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){B(e,r)}}}function CC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(g){l=g,t(0,l)}function a(g){me.call(this,n,g)}function u(g){me.call(this,n,g)}function f(g){me.call(this,n,g)}function d(g){me.call(this,n,g)}function p(g){me.call(this,n,g)}function m(g){me.call(this,n,g)}return n.$$set=g=>{e=je(je({},e),Zt(g)),t(2,s=xe(e,i)),"field"in g&&t(0,l=g.field),"key"in g&&t(1,o=g.key)},[l,o,s,r,a,u,f,d,p,m]}class TC extends ye{constructor(e){super(),ve(this,e,CC,$C,_e,{field:0,key:1})}}var Or=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ts={_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<"u"&&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:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},kl={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},_n=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Vn=function(n){return n===!0?1:0};function nd(n,e){var t;return function(){var i=this,s=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,s)},e)}}var Dr=function(n){return n instanceof Array?n:[n]};function cn(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function ft(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function io(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function cb(n,e){if(e(n))return n;if(n.parentNode)return cb(n.parentNode,e)}function so(n,e){var t=ft("div","numInputWrapper"),i=ft("input","numInput "+n),s=ft("span","arrowUp"),l=ft("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var o in e)i.setAttribute(o,e[o]);return t.appendChild(i),t.appendChild(s),t.appendChild(l),t}function Tn(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var Er=function(){},No=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},MC={D:Er,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Vn(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),s=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return s.setDate(s.getDate()-s.getDay()+t.firstDayOfWeek),s},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:Er,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:Er,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},es={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},cl={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[cl.w(n,e,t)]},F:function(n,e,t){return No(cl.n(n,e,t)-1,!1,e)},G:function(n,e,t){return _n(cl.h(n,e,t))},H:function(n){return _n(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Vn(n.getHours()>11)]},M:function(n,e){return No(n.getMonth(),!0,e)},S:function(n){return _n(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return _n(n.getFullYear(),4)},d:function(n){return _n(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return _n(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return _n(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},db=function(n){var e=n.config,t=e===void 0?Ts:e,i=n.l10n,s=i===void 0?kl:i,l=n.isMobile,o=l===void 0?!1:l;return function(r,a,u){var f=u||s;return t.formatDate!==void 0&&!o?t.formatDate(r,a,f):a.split("").map(function(d,p,m){return cl[d]&&m[p-1]!=="\\"?cl[d](r,f,t):d!=="\\"?d:""}).join("")}},ha=function(n){var e=n.config,t=e===void 0?Ts:e,i=n.l10n,s=i===void 0?kl:i;return function(l,o,r,a){if(!(l!==0&&!l)){var u=a||s,f,d=l;if(l instanceof Date)f=new Date(l.getTime());else if(typeof l!="string"&&l.toFixed!==void 0)f=new Date(l);else if(typeof l=="string"){var p=o||(t||Ts).dateFormat,m=String(l).trim();if(m==="today")f=new Date,r=!0;else if(t&&t.parseDate)f=t.parseDate(l,p);else if(/Z$/.test(m)||/GMT$/.test(m))f=new Date(l);else{for(var g=void 0,_=[],b=0,k=0,$="";bMath.min(e,t)&&n=0?new Date:new Date(t.config.minDate.getTime()),ne=Ir(t.config);Z.setHours(ne.hours,ne.minutes,ne.seconds,Z.getMilliseconds()),t.selectedDates=[Z],t.latestSelectedDateObj=Z}K!==void 0&&K.type!=="blur"&&Fl(K);var oe=t._input.value;d(),tn(),t._input.value!==oe&&t._debouncedChange()}function u(K,Z){return K%12+12*Vn(Z===t.l10n.amPM[1])}function f(K){switch(K%24){case 0:case 12:return 12;default:return K%12}}function d(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var K=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,Z=(parseInt(t.minuteElement.value,10)||0)%60,ne=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(K=u(K,t.amPM.textContent));var oe=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&Mn(t.latestSelectedDateObj,t.config.minDate,!0)===0,Me=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&Mn(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var Le=Ar(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),Fe=Ar(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),De=Ar(K,Z,ne);if(De>Fe&&De=12)]),t.secondElement!==void 0&&(t.secondElement.value=_n(ne)))}function g(K){var Z=Tn(K),ne=parseInt(Z.value)+(K.delta||0);(ne/1e3>1||K.key==="Enter"&&!/[^\d]/.test(ne.toString()))&&we(ne)}function _(K,Z,ne,oe){if(Z instanceof Array)return Z.forEach(function(Me){return _(K,Me,ne,oe)});if(K instanceof Array)return K.forEach(function(Me){return _(Me,Z,ne,oe)});K.addEventListener(Z,ne,oe),t._handlers.push({remove:function(){return K.removeEventListener(Z,ne,oe)}})}function b(){Re("onChange")}function k(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(ne){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+ne+"]"),function(oe){return _(oe,"click",t[ne])})}),t.isMobile){be();return}var K=nd(Se,50);if(t._debouncedChange=nd(b,AC),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&_(t.daysContainer,"mouseover",function(ne){t.config.mode==="range"&&Ke(Tn(ne))}),_(t._input,"keydown",Xe),t.calendarContainer!==void 0&&_(t.calendarContainer,"keydown",Xe),!t.config.inline&&!t.config.static&&_(window,"resize",K),window.ontouchstart!==void 0?_(window.document,"touchstart",Be):_(window.document,"mousedown",Be),_(window.document,"focus",Be,{capture:!0}),t.config.clickOpens===!0&&(_(t._input,"focus",t.open),_(t._input,"click",t.open)),t.daysContainer!==void 0&&(_(t.monthNav,"click",fn),_(t.monthNav,["keyup","increment"],g),_(t.daysContainer,"click",ti)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var Z=function(ne){return Tn(ne).select()};_(t.timeContainer,["increment"],a),_(t.timeContainer,"blur",a,{capture:!0}),_(t.timeContainer,"click",T),_([t.hourElement,t.minuteElement],["focus","click"],Z),t.secondElement!==void 0&&_(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&_(t.amPM,"click",function(ne){a(ne)})}t.config.allowInput&&_(t._input,"blur",mt)}function $(K,Z){var ne=K!==void 0?t.parseDate(K):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate1),t.calendarContainer.appendChild(K);var Me=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Me&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var Le=ft("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(Le,t.element),Le.appendChild(t.element),t.altInput&&Le.appendChild(t.altInput),Le.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function M(K,Z,ne,oe){var Me=Oe(Z,!0),Le=ft("span",K,Z.getDate().toString());return Le.dateObj=Z,Le.$i=oe,Le.setAttribute("aria-label",t.formatDate(Z,t.config.ariaDateFormat)),K.indexOf("hidden")===-1&&Mn(Z,t.now)===0&&(t.todayDateElem=Le,Le.classList.add("today"),Le.setAttribute("aria-current","date")),Me?(Le.tabIndex=-1,Ot(Z)&&(Le.classList.add("selected"),t.selectedDateElem=Le,t.config.mode==="range"&&(cn(Le,"startRange",t.selectedDates[0]&&Mn(Z,t.selectedDates[0],!0)===0),cn(Le,"endRange",t.selectedDates[1]&&Mn(Z,t.selectedDates[1],!0)===0),K==="nextMonthDay"&&Le.classList.add("inRange")))):Le.classList.add("flatpickr-disabled"),t.config.mode==="range"&&$n(Z)&&!Ot(Z)&&Le.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&K!=="prevMonthDay"&&oe%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend",""+t.config.getWeek(Z)+""),Re("onDayCreate",Le),Le}function O(K){K.focus(),t.config.mode==="range"&&Ke(K)}function I(K){for(var Z=K>0?0:t.config.showMonths-1,ne=K>0?t.config.showMonths:-1,oe=Z;oe!=ne;oe+=K)for(var Me=t.daysContainer.children[oe],Le=K>0?0:Me.children.length-1,Fe=K>0?Me.children.length:-1,De=Le;De!=Fe;De+=K){var Je=Me.children[De];if(Je.className.indexOf("hidden")===-1&&Oe(Je.dateObj))return Je}}function L(K,Z){for(var ne=K.className.indexOf("Month")===-1?K.dateObj.getMonth():t.currentMonth,oe=Z>0?t.config.showMonths:-1,Me=Z>0?1:-1,Le=ne-t.currentMonth;Le!=oe;Le+=Me)for(var Fe=t.daysContainer.children[Le],De=ne-t.currentMonth===Le?K.$i+Z:Z<0?Fe.children.length-1:0,Je=Fe.children.length,qe=De;qe>=0&&qe0?Je:-1);qe+=Me){var We=Fe.children[qe];if(We.className.indexOf("hidden")===-1&&Oe(We.dateObj)&&Math.abs(K.$i-qe)>=Math.abs(Z))return O(We)}t.changeMonth(Me),F(I(Me),0)}function F(K,Z){var ne=l(),oe=Ge(ne||document.body),Me=K!==void 0?K:oe?ne:t.selectedDateElem!==void 0&&Ge(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&Ge(t.todayDateElem)?t.todayDateElem:I(Z>0?1:-1);Me===void 0?t._input.focus():oe?L(Me,Z):O(Me)}function q(K,Z){for(var ne=(new Date(K,Z,1).getDay()-t.l10n.firstDayOfWeek+7)%7,oe=t.utils.getDaysInMonth((Z-1+12)%12,K),Me=t.utils.getDaysInMonth(Z,K),Le=window.document.createDocumentFragment(),Fe=t.config.showMonths>1,De=Fe?"prevMonthDay hidden":"prevMonthDay",Je=Fe?"nextMonthDay hidden":"nextMonthDay",qe=oe+1-ne,We=0;qe<=oe;qe++,We++)Le.appendChild(M("flatpickr-day "+De,new Date(K,Z-1,qe),qe,We));for(qe=1;qe<=Me;qe++,We++)Le.appendChild(M("flatpickr-day",new Date(K,Z,qe),qe,We));for(var vt=Me+1;vt<=42-ne&&(t.config.showMonths===1||We%7!==0);vt++,We++)Le.appendChild(M("flatpickr-day "+Je,new Date(K,Z+1,vt%Me),vt,We));var ii=ft("div","dayContainer");return ii.appendChild(Le),ii}function N(){if(t.daysContainer!==void 0){io(t.daysContainer),t.weekNumbers&&io(t.weekNumbers);for(var K=document.createDocumentFragment(),Z=0;Z1||t.config.monthSelectorType!=="dropdown")){var K=function(oe){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&oet.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var Z=0;Z<12;Z++)if(K(Z)){var ne=ft("option","flatpickr-monthDropdown-month");ne.value=new Date(t.currentYear,Z).getMonth().toString(),ne.textContent=No(Z,t.config.shorthandCurrentMonth,t.l10n),ne.tabIndex=-1,t.currentMonth===Z&&(ne.selected=!0),t.monthsDropdownContainer.appendChild(ne)}}}function j(){var K=ft("div","flatpickr-month"),Z=window.document.createDocumentFragment(),ne;t.config.showMonths>1||t.config.monthSelectorType==="static"?ne=ft("span","cur-month"):(t.monthsDropdownContainer=ft("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),_(t.monthsDropdownContainer,"change",function(Fe){var De=Tn(Fe),Je=parseInt(De.value,10);t.changeMonth(Je-t.currentMonth),Re("onMonthChange")}),R(),ne=t.monthsDropdownContainer);var oe=so("cur-year",{tabindex:"-1"}),Me=oe.getElementsByTagName("input")[0];Me.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Me.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Me.setAttribute("max",t.config.maxDate.getFullYear().toString()),Me.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var Le=ft("div","flatpickr-current-month");return Le.appendChild(ne),Le.appendChild(oe),Z.appendChild(Le),K.appendChild(Z),{container:K,yearElement:Me,monthElement:ne}}function V(){io(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var K=t.config.showMonths;K--;){var Z=j();t.yearElements.push(Z.yearElement),t.monthElements.push(Z.monthElement),t.monthNav.appendChild(Z.container)}t.monthNav.appendChild(t.nextMonthNav)}function W(){return t.monthNav=ft("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=ft("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=ft("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,V(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(K){t.__hidePrevMonthArrow!==K&&(cn(t.prevMonthNav,"flatpickr-disabled",K),t.__hidePrevMonthArrow=K)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(K){t.__hideNextMonthArrow!==K&&(cn(t.nextMonthNav,"flatpickr-disabled",K),t.__hideNextMonthArrow=K)}}),t.currentYearElement=t.yearElements[0],Fn(),t.monthNav}function ee(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var K=Ir(t.config);t.timeContainer=ft("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var Z=ft("span","flatpickr-time-separator",":"),ne=so("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=ne.getElementsByTagName("input")[0];var oe=so("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=oe.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=_n(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?K.hours:f(K.hours)),t.minuteElement.value=_n(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():K.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(ne),t.timeContainer.appendChild(Z),t.timeContainer.appendChild(oe),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Me=so("flatpickr-second");t.secondElement=Me.getElementsByTagName("input")[0],t.secondElement.value=_n(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():K.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(ft("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Me)}return t.config.time_24hr||(t.amPM=ft("span","flatpickr-am-pm",t.l10n.amPM[Vn((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function te(){t.weekdayContainer?io(t.weekdayContainer):t.weekdayContainer=ft("div","flatpickr-weekdays");for(var K=t.config.showMonths;K--;){var Z=ft("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(Z)}return G(),t.weekdayContainer}function G(){if(t.weekdayContainer){var K=t.l10n.firstDayOfWeek,Z=id(t.l10n.weekdays.shorthand);K>0&&KD=!1)),C.$set(j)},i(N){if(!M){for(let R=0;RD.name===C)}function f(C){return i.findIndex(D=>D===C)}function d(C,D){var M;!((M=s==null?void 0:s.schema)!=null&&M.length)||C===D||!D||t(0,s.indexes=s.indexes.map(O=>H.replaceIndexColumn(O,C,D)),s)}function p(C,D){if(!C)return;C.dataTransfer.dropEffect="move";const M=parseInt(C.dataTransfer.getData("text/plain")),O=s.schema;Mo(C),_=C=>d(C.detail.oldName,C.detail.newName),b=(C,D)=>ZT(D.detail,C),k=(C,D)=>p(D.detail,C),$=C=>r(C.detail);function T(C){s=C,t(0,s)}return n.$$set=C=>{"collection"in C&&t(0,s=C.collection)},n.$$.update=()=>{n.$$.dirty&1&&typeof s.schema>"u"&&(t(0,s=s||new kn),t(0,s.schema=[],s)),n.$$.dirty&1&&(i=s.schema.filter(C=>!C.toDelete)||[])},[s,l,o,r,f,d,p,m,g,_,b,k,$,T]}class XT extends ye{constructor(e){super(),ve(this,e,GT,JT,_e,{collection:0})}}const QT=n=>({isAdminOnly:n&512}),Ed=n=>({isAdminOnly:n[9]}),xT=n=>({isAdminOnly:n&512}),Ad=n=>({isAdminOnly:n[9]}),e4=n=>({isAdminOnly:n&512}),Id=n=>({isAdminOnly:n[9]});function t4(n){let e,t;return e=new de({props:{class:"form-field rule-field "+(n[4]?"requied":"")+" "+(n[9]?"disabled":""),name:n[3],$$slots:{default:[i4,({uniqueId:i})=>({18:i}),({uniqueId:i})=>i?262144:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&528&&(l.class="form-field rule-field "+(i[4]?"requied":"")+" "+(i[9]?"disabled":"")),s&8&&(l.name=i[3]),s&295655&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function n4(n){let e;return{c(){e=y("div"),e.innerHTML='',h(e,"class","txt-center")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function Pd(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=` Set Admins only`,h(e,"type","button"),h(e,"class","btn btn-sm btn-transparent btn-hint lock-toggle svelte-1akuazq")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[11]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function Ld(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML=`Unlock and set custom rule -
`,h(e,"type","button"),h(e,"class","unlock-overlay svelte-1akuazq"),h(e,"aria-label","Unlock and set custom rule")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[10]),s=!0)},p:X,i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.98},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,Yt,{duration:150,start:.98},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function i4(n){let e,t,i,s,l,o,r=n[9]?"- Admins only":"",a,u,f,d,p,m,g,_,b,k,$;const T=n[12].beforeLabel,C=wt(T,n,n[15],Id),D=n[12].afterLabel,M=wt(D,n,n[15],Ad);let O=!n[9]&&Pd(n);function I(j){n[14](j)}var L=n[7];function F(j){let V={id:j[18],baseCollection:j[1],disabled:j[9],placeholder:j[9]?"":j[5]};return j[0]!==void 0&&(V.value=j[0]),{props:V}}L&&(m=Nt(L,F(n)),n[13](m),ie.push(()=>he(m,"value",I)));let q=n[9]&&Ld(n);const N=n[12].default,R=wt(N,n,n[15],Ed);return{c(){e=y("div"),t=y("label"),C&&C.c(),i=E(),s=y("span"),l=Y(n[2]),o=E(),a=Y(r),u=E(),M&&M.c(),f=E(),O&&O.c(),p=E(),m&&U(m.$$.fragment),_=E(),q&&q.c(),b=E(),k=y("div"),R&&R.c(),h(s,"class","txt"),x(s,"txt-hint",n[9]),h(t,"for",d=n[18]),h(e,"class","input-wrapper svelte-1akuazq"),h(k,"class","help-block")},m(j,V){S(j,e,V),v(e,t),C&&C.m(t,null),v(t,i),v(t,s),v(s,l),v(s,o),v(s,a),v(t,u),M&&M.m(t,null),v(t,f),O&&O.m(t,null),v(e,p),m&&z(m,e,null),v(e,_),q&&q.m(e,null),S(j,b,V),S(j,k,V),R&&R.m(k,null),$=!0},p(j,V){C&&C.p&&(!$||V&33280)&&$t(C,T,j,j[15],$?St(T,j[15],V,e4):Ct(j[15]),Id),(!$||V&4)&&le(l,j[2]),(!$||V&512)&&r!==(r=j[9]?"- Admins only":"")&&le(a,r),(!$||V&512)&&x(s,"txt-hint",j[9]),M&&M.p&&(!$||V&33280)&&$t(M,D,j,j[15],$?St(D,j[15],V,xT):Ct(j[15]),Ad),j[9]?O&&(O.d(1),O=null):O?O.p(j,V):(O=Pd(j),O.c(),O.m(t,null)),(!$||V&262144&&d!==(d=j[18]))&&h(t,"for",d);const W={};if(V&262144&&(W.id=j[18]),V&2&&(W.baseCollection=j[1]),V&512&&(W.disabled=j[9]),V&544&&(W.placeholder=j[9]?"":j[5]),!g&&V&1&&(g=!0,W.value=j[0],ke(()=>g=!1)),V&128&&L!==(L=j[7])){if(m){re();const ee=m;P(ee.$$.fragment,1,0,()=>{B(ee,1)}),ae()}L?(m=Nt(L,F(j)),j[13](m),ie.push(()=>he(m,"value",I)),U(m.$$.fragment),A(m.$$.fragment,1),z(m,e,_)):m=null}else L&&m.$set(W);j[9]?q?(q.p(j,V),V&512&&A(q,1)):(q=Ld(j),q.c(),A(q,1),q.m(e,null)):q&&(re(),P(q,1,1,()=>{q=null}),ae()),R&&R.p&&(!$||V&33280)&&$t(R,N,j,j[15],$?St(N,j[15],V,QT):Ct(j[15]),Ed)},i(j){$||(A(C,j),A(M,j),m&&A(m.$$.fragment,j),A(q),A(R,j),$=!0)},o(j){P(C,j),P(M,j),m&&P(m.$$.fragment,j),P(q),P(R,j),$=!1},d(j){j&&w(e),C&&C.d(j),M&&M.d(j),O&&O.d(),n[13](null),m&&B(m),q&&q.d(),j&&w(b),j&&w(k),R&&R.d(j)}}}function s4(n){let e,t,i,s;const l=[n4,t4],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Ce()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(re(),P(o[f],1,1,()=>{o[f]=null}),ae(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),A(t,1),t.m(i.parentNode,i))},i(a){s||(A(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}let Nd;function l4(n,e,t){let i,{$$slots:s={},$$scope:l}=e,{collection:o=null}=e,{rule:r=null}=e,{label:a="Rule"}=e,{formKey:u="rule"}=e,{required:f=!1}=e,{placeholder:d="Leave empty to grant everyone access..."}=e,p=null,m=null,g=Nd,_=!1;b();async function b(){g||_||(t(8,_=!0),t(7,g=(await rt(()=>import("./FilterAutocompleteInput-82ab8430.js"),["./FilterAutocompleteInput-82ab8430.js","./index-be8a2174.js"],import.meta.url)).default),Nd=g,t(8,_=!1))}async function k(){t(0,r=m||""),await an(),p==null||p.focus()}async function $(){m=r,t(0,r=null)}function T(D){ie[D?"unshift":"push"](()=>{p=D,t(6,p)})}function C(D){r=D,t(0,r)}return n.$$set=D=>{"collection"in D&&t(1,o=D.collection),"rule"in D&&t(0,r=D.rule),"label"in D&&t(2,a=D.label),"formKey"in D&&t(3,u=D.formKey),"required"in D&&t(4,f=D.required),"placeholder"in D&&t(5,d=D.placeholder),"$$scope"in D&&t(15,l=D.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(9,i=r===null)},[r,o,a,u,f,d,p,g,_,i,k,$,s,T,C,l]}class Os extends ye{constructor(e){super(),ve(this,e,l4,s4,_e,{collection:1,rule:0,label:2,formKey:3,required:4,placeholder:5})}}function Fd(n,e,t){const i=n.slice();return i[11]=e[t],i}function Rd(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M,O,I,L=n[2],F=[];for(let q=0;q@request filter:",d=E(),p=y("div"),p.innerHTML=`@request.headers.* +
`,h(e,"type","button"),h(e,"class","unlock-overlay svelte-1akuazq"),h(e,"aria-label","Unlock and set custom rule")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[10]),s=!0)},p:X,i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.98},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,Yt,{duration:150,start:.98},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function i4(n){let e,t,i,s,l,o,r=n[9]?"- Admins only":"",a,u,f,d,p,m,g,_,b,k,$;const T=n[12].beforeLabel,C=wt(T,n,n[15],Id),D=n[12].afterLabel,M=wt(D,n,n[15],Ad);let O=!n[9]&&Pd(n);function I(j){n[14](j)}var L=n[7];function F(j){let V={id:j[18],baseCollection:j[1],disabled:j[9],placeholder:j[9]?"":j[5]};return j[0]!==void 0&&(V.value=j[0]),{props:V}}L&&(m=Nt(L,F(n)),n[13](m),ie.push(()=>he(m,"value",I)));let q=n[9]&&Ld(n);const N=n[12].default,R=wt(N,n,n[15],Ed);return{c(){e=y("div"),t=y("label"),C&&C.c(),i=E(),s=y("span"),l=Y(n[2]),o=E(),a=Y(r),u=E(),M&&M.c(),f=E(),O&&O.c(),p=E(),m&&U(m.$$.fragment),_=E(),q&&q.c(),b=E(),k=y("div"),R&&R.c(),h(s,"class","txt"),x(s,"txt-hint",n[9]),h(t,"for",d=n[18]),h(e,"class","input-wrapper svelte-1akuazq"),h(k,"class","help-block")},m(j,V){S(j,e,V),v(e,t),C&&C.m(t,null),v(t,i),v(t,s),v(s,l),v(s,o),v(s,a),v(t,u),M&&M.m(t,null),v(t,f),O&&O.m(t,null),v(e,p),m&&z(m,e,null),v(e,_),q&&q.m(e,null),S(j,b,V),S(j,k,V),R&&R.m(k,null),$=!0},p(j,V){C&&C.p&&(!$||V&33280)&&$t(C,T,j,j[15],$?St(T,j[15],V,e4):Ct(j[15]),Id),(!$||V&4)&&le(l,j[2]),(!$||V&512)&&r!==(r=j[9]?"- Admins only":"")&&le(a,r),(!$||V&512)&&x(s,"txt-hint",j[9]),M&&M.p&&(!$||V&33280)&&$t(M,D,j,j[15],$?St(D,j[15],V,xT):Ct(j[15]),Ad),j[9]?O&&(O.d(1),O=null):O?O.p(j,V):(O=Pd(j),O.c(),O.m(t,null)),(!$||V&262144&&d!==(d=j[18]))&&h(t,"for",d);const W={};if(V&262144&&(W.id=j[18]),V&2&&(W.baseCollection=j[1]),V&512&&(W.disabled=j[9]),V&544&&(W.placeholder=j[9]?"":j[5]),!g&&V&1&&(g=!0,W.value=j[0],ke(()=>g=!1)),V&128&&L!==(L=j[7])){if(m){re();const ee=m;P(ee.$$.fragment,1,0,()=>{B(ee,1)}),ae()}L?(m=Nt(L,F(j)),j[13](m),ie.push(()=>he(m,"value",I)),U(m.$$.fragment),A(m.$$.fragment,1),z(m,e,_)):m=null}else L&&m.$set(W);j[9]?q?(q.p(j,V),V&512&&A(q,1)):(q=Ld(j),q.c(),A(q,1),q.m(e,null)):q&&(re(),P(q,1,1,()=>{q=null}),ae()),R&&R.p&&(!$||V&33280)&&$t(R,N,j,j[15],$?St(N,j[15],V,QT):Ct(j[15]),Ed)},i(j){$||(A(C,j),A(M,j),m&&A(m.$$.fragment,j),A(q),A(R,j),$=!0)},o(j){P(C,j),P(M,j),m&&P(m.$$.fragment,j),P(q),P(R,j),$=!1},d(j){j&&w(e),C&&C.d(j),M&&M.d(j),O&&O.d(),n[13](null),m&&B(m),q&&q.d(),j&&w(b),j&&w(k),R&&R.d(j)}}}function s4(n){let e,t,i,s;const l=[n4,t4],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Ce()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(re(),P(o[f],1,1,()=>{o[f]=null}),ae(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),A(t,1),t.m(i.parentNode,i))},i(a){s||(A(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}let Nd;function l4(n,e,t){let i,{$$slots:s={},$$scope:l}=e,{collection:o=null}=e,{rule:r=null}=e,{label:a="Rule"}=e,{formKey:u="rule"}=e,{required:f=!1}=e,{placeholder:d="Leave empty to grant everyone access..."}=e,p=null,m=null,g=Nd,_=!1;b();async function b(){g||_||(t(8,_=!0),t(7,g=(await rt(()=>import("./FilterAutocompleteInput-42c48e12.js"),["./FilterAutocompleteInput-42c48e12.js","./index-be8a2174.js"],import.meta.url)).default),Nd=g,t(8,_=!1))}async function k(){t(0,r=m||""),await an(),p==null||p.focus()}async function $(){m=r,t(0,r=null)}function T(D){ie[D?"unshift":"push"](()=>{p=D,t(6,p)})}function C(D){r=D,t(0,r)}return n.$$set=D=>{"collection"in D&&t(1,o=D.collection),"rule"in D&&t(0,r=D.rule),"label"in D&&t(2,a=D.label),"formKey"in D&&t(3,u=D.formKey),"required"in D&&t(4,f=D.required),"placeholder"in D&&t(5,d=D.placeholder),"$$scope"in D&&t(15,l=D.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(9,i=r===null)},[r,o,a,u,f,d,p,g,_,i,k,$,s,T,C,l]}class Os extends ye{constructor(e){super(),ve(this,e,l4,s4,_e,{collection:1,rule:0,label:2,formKey:3,required:4,placeholder:5})}}function Fd(n,e,t){const i=n.slice();return i[11]=e[t],i}function Rd(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M,O,I,L=n[2],F=[];for(let q=0;q@request filter:",d=E(),p=y("div"),p.innerHTML=`@request.headers.* @request.query.* @request.data.* @request.auth.*`,m=E(),g=y("hr"),_=E(),b=y("p"),b.innerHTML="You could also add constraints and query other collections using the @collection filter:",k=E(),$=y("div"),$.innerHTML="@collection.ANY_COLLECTION_NAME.*",T=E(),C=y("hr"),D=E(),M=y("p"),M.innerHTML=`Example rule: @@ -101,7 +101,7 @@ If your query doesn't have a suitable one, you can use the universal (ROW_NUMBER() OVER()) as id.
  • Expressions must be aliased with a valid formatted field name (eg. - MAX(balance) as maxBalance).
  • `,u=E(),_&&_.c(),f=Ce(),h(t,"class","txt"),h(e,"for",i=n[8]),h(a,"class","help-block")},m(b,k){S(b,e,k),v(e,t),S(b,s,k),m[l].m(b,k),S(b,r,k),S(b,a,k),S(b,u,k),_&&_.m(b,k),S(b,f,k),d=!0},p(b,k){(!d||k&256&&i!==(i=b[8]))&&h(e,"for",i);let $=l;l=g(b),l===$?m[l].p(b,k):(re(),P(m[$],1,1,()=>{m[$]=null}),ae(),o=m[l],o?o.p(b,k):(o=m[l]=p[l](b),o.c()),A(o,1),o.m(r.parentNode,r)),b[3].length?_?_.p(b,k):(_=Bd(b),_.c(),_.m(f.parentNode,f)):_&&(_.d(1),_=null)},i(b){d||(A(o),d=!0)},o(b){P(o),d=!1},d(b){b&&w(e),b&&w(s),m[l].d(b),b&&w(r),b&&w(a),b&&w(u),_&&_.d(b),b&&w(f)}}}function m4(n){let e,t;return e=new de({props:{class:"form-field required "+(n[3].length?"error":""),name:"options.query",$$slots:{default:[p4,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&8&&(l.class="form-field required "+(i[3].length?"error":"")),s&4367&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function h4(n,e,t){let i;Ze(n,$i,d=>t(4,i=d));let{collection:s=new kn}=e,l,o=!1,r=[];function a(d){var g;t(3,r=[]);const p=H.getNestedVal(d,"schema",null);if(H.isEmpty(p))return;if(p!=null&&p.message){r.push(p==null?void 0:p.message);return}const m=H.extractColumnsFromQuery((g=s==null?void 0:s.options)==null?void 0:g.query);H.removeByValue(m,"id"),H.removeByValue(m,"created"),H.removeByValue(m,"updated");for(let _ in p)for(let b in p[_]){const k=p[_][b].message,$=m[_]||_;r.push(H.sentenize($+": "+k))}}en(async()=>{t(2,o=!0);try{t(1,l=(await rt(()=>import("./CodeEditor-4b65e980.js"),["./CodeEditor-4b65e980.js","./index-be8a2174.js"],import.meta.url)).default)}catch(d){console.warn(d)}t(2,o=!1)});function u(d){n.$$.not_equal(s.options.query,d)&&(s.options.query=d,t(0,s))}const f=()=>{r.length&&Fi("schema")};return n.$$set=d=>{"collection"in d&&t(0,s=d.collection)},n.$$.update=()=>{n.$$.dirty&16&&a(i)},[s,l,o,r,i,u,f]}class _4 extends ye{constructor(e){super(),ve(this,e,h4,m4,_e,{collection:0})}}const g4=n=>({active:n&1}),Wd=n=>({active:n[0]});function Yd(n){let e,t,i;const s=n[15].default,l=wt(s,n,n[14],null);return{c(){e=y("div"),l&&l.c(),h(e,"class","accordion-content")},m(o,r){S(o,e,r),l&&l.m(e,null),i=!0},p(o,r){l&&l.p&&(!i||r&16384)&&$t(l,s,o,o[14],i?St(s,o[14],r,null):Ct(o[14]),null)},i(o){i||(A(l,o),o&&tt(()=>{i&&(t||(t=ze(e,bt,{duration:150},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=ze(e,bt,{duration:150},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),o&&t&&t.end()}}}function b4(n){let e,t,i,s,l,o,r;const a=n[15].header,u=wt(a,n,n[14],Wd);let f=n[0]&&Yd(n);return{c(){e=y("div"),t=y("button"),u&&u.c(),i=E(),f&&f.c(),h(t,"type","button"),h(t,"class","accordion-header"),h(t,"draggable",n[2]),x(t,"interactive",n[3]),h(e,"class",s="accordion "+(n[7]?"drag-over":"")+" "+n[1]),x(e,"active",n[0])},m(d,p){S(d,e,p),v(e,t),u&&u.m(t,null),v(e,i),f&&f.m(e,null),n[22](e),l=!0,o||(r=[J(t,"click",at(n[17])),J(t,"drop",at(n[18])),J(t,"dragstart",n[19]),J(t,"dragenter",n[20]),J(t,"dragleave",n[21]),J(t,"dragover",at(n[16]))],o=!0)},p(d,[p]){u&&u.p&&(!l||p&16385)&&$t(u,a,d,d[14],l?St(a,d[14],p,g4):Ct(d[14]),Wd),(!l||p&4)&&h(t,"draggable",d[2]),(!l||p&8)&&x(t,"interactive",d[3]),d[0]?f?(f.p(d,p),p&1&&A(f,1)):(f=Yd(d),f.c(),A(f,1),f.m(e,null)):f&&(re(),P(f,1,1,()=>{f=null}),ae()),(!l||p&130&&s!==(s="accordion "+(d[7]?"drag-over":"")+" "+d[1]))&&h(e,"class",s),(!l||p&131)&&x(e,"active",d[0])},i(d){l||(A(u,d),A(f),l=!0)},o(d){P(u,d),P(f),l=!1},d(d){d&&w(e),u&&u.d(d),f&&f.d(),n[22](null),o=!1,Ae(r)}}}function v4(n,e,t){let{$$slots:i={},$$scope:s}=e;const l=Tt();let o,r,{class:a=""}=e,{draggable:u=!1}=e,{active:f=!1}=e,{interactive:d=!0}=e,{single:p=!1}=e,m=!1;function g(){return!!f}function _(){$(),t(0,f=!0),l("expand")}function b(){t(0,f=!1),clearTimeout(r),l("collapse")}function k(){l("toggle"),f?b():_()}function $(){if(p&&o.closest(".accordions")){const F=o.closest(".accordions").querySelectorAll(".accordion.active .accordion-header.interactive");for(const q of F)q.click()}}en(()=>()=>clearTimeout(r));function T(F){me.call(this,n,F)}const C=()=>d&&k(),D=F=>{u&&(t(7,m=!1),$(),l("drop",F))},M=F=>u&&l("dragstart",F),O=F=>{u&&(t(7,m=!0),l("dragenter",F))},I=F=>{u&&(t(7,m=!1),l("dragleave",F))};function L(F){ie[F?"unshift":"push"](()=>{o=F,t(6,o)})}return n.$$set=F=>{"class"in F&&t(1,a=F.class),"draggable"in F&&t(2,u=F.draggable),"active"in F&&t(0,f=F.active),"interactive"in F&&t(3,d=F.interactive),"single"in F&&t(9,p=F.single),"$$scope"in F&&t(14,s=F.$$scope)},n.$$.update=()=>{n.$$.dirty&8257&&f&&(clearTimeout(r),t(13,r=setTimeout(()=>{o!=null&&o.scrollIntoViewIfNeeded?o.scrollIntoViewIfNeeded():o!=null&&o.scrollIntoView&&o.scrollIntoView({behavior:"smooth",block:"nearest"})},200)))},[f,a,u,d,k,$,o,m,l,p,g,_,b,r,s,i,T,C,D,M,O,I,L]}class co extends ye{constructor(e){super(),ve(this,e,v4,b4,_e,{class:1,draggable:2,active:0,interactive:3,single:9,isExpanded:10,expand:11,collapse:12,toggle:4,collapseSiblings:5})}get isExpanded(){return this.$$.ctx[10]}get expand(){return this.$$.ctx[11]}get collapse(){return this.$$.ctx[12]}get toggle(){return this.$$.ctx[4]}get collapseSiblings(){return this.$$.ctx[5]}}function y4(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Enable"),h(e,"type","checkbox"),h(e,"id",t=n[12]),h(s,"for",o=n[12])},m(u,f){S(u,e,f),e.checked=n[0].options.allowUsernameAuth,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[5]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&h(e,"id",t),f&1&&(e.checked=u[0].options.allowUsernameAuth),f&4096&&o!==(o=u[12])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function k4(n){let e,t;return e=new de({props:{class:"form-field form-field-toggle m-b-0",name:"options.allowUsernameAuth",$$slots:{default:[y4,({uniqueId:i})=>({12:i}),({uniqueId:i})=>i?4096:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&12289&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function w4(n){let e;return{c(){e=y("span"),e.textContent="Disabled",h(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function S4(n){let e;return{c(){e=y("span"),e.textContent="Enabled",h(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Kd(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function $4(n){let e,t,i,s,l,o,r;function a(p,m){return p[0].options.allowUsernameAuth?S4:w4}let u=a(n),f=u(n),d=n[3]&&Kd();return{c(){e=y("div"),e.innerHTML=` + MAX(balance) as maxBalance).`,u=E(),_&&_.c(),f=Ce(),h(t,"class","txt"),h(e,"for",i=n[8]),h(a,"class","help-block")},m(b,k){S(b,e,k),v(e,t),S(b,s,k),m[l].m(b,k),S(b,r,k),S(b,a,k),S(b,u,k),_&&_.m(b,k),S(b,f,k),d=!0},p(b,k){(!d||k&256&&i!==(i=b[8]))&&h(e,"for",i);let $=l;l=g(b),l===$?m[l].p(b,k):(re(),P(m[$],1,1,()=>{m[$]=null}),ae(),o=m[l],o?o.p(b,k):(o=m[l]=p[l](b),o.c()),A(o,1),o.m(r.parentNode,r)),b[3].length?_?_.p(b,k):(_=Bd(b),_.c(),_.m(f.parentNode,f)):_&&(_.d(1),_=null)},i(b){d||(A(o),d=!0)},o(b){P(o),d=!1},d(b){b&&w(e),b&&w(s),m[l].d(b),b&&w(r),b&&w(a),b&&w(u),_&&_.d(b),b&&w(f)}}}function m4(n){let e,t;return e=new de({props:{class:"form-field required "+(n[3].length?"error":""),name:"options.query",$$slots:{default:[p4,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&8&&(l.class="form-field required "+(i[3].length?"error":"")),s&4367&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function h4(n,e,t){let i;Ze(n,$i,d=>t(4,i=d));let{collection:s=new kn}=e,l,o=!1,r=[];function a(d){var g;t(3,r=[]);const p=H.getNestedVal(d,"schema",null);if(H.isEmpty(p))return;if(p!=null&&p.message){r.push(p==null?void 0:p.message);return}const m=H.extractColumnsFromQuery((g=s==null?void 0:s.options)==null?void 0:g.query);H.removeByValue(m,"id"),H.removeByValue(m,"created"),H.removeByValue(m,"updated");for(let _ in p)for(let b in p[_]){const k=p[_][b].message,$=m[_]||_;r.push(H.sentenize($+": "+k))}}en(async()=>{t(2,o=!0);try{t(1,l=(await rt(()=>import("./CodeEditor-b3468e88.js"),["./CodeEditor-b3468e88.js","./index-be8a2174.js"],import.meta.url)).default)}catch(d){console.warn(d)}t(2,o=!1)});function u(d){n.$$.not_equal(s.options.query,d)&&(s.options.query=d,t(0,s))}const f=()=>{r.length&&Fi("schema")};return n.$$set=d=>{"collection"in d&&t(0,s=d.collection)},n.$$.update=()=>{n.$$.dirty&16&&a(i)},[s,l,o,r,i,u,f]}class _4 extends ye{constructor(e){super(),ve(this,e,h4,m4,_e,{collection:0})}}const g4=n=>({active:n&1}),Wd=n=>({active:n[0]});function Yd(n){let e,t,i;const s=n[15].default,l=wt(s,n,n[14],null);return{c(){e=y("div"),l&&l.c(),h(e,"class","accordion-content")},m(o,r){S(o,e,r),l&&l.m(e,null),i=!0},p(o,r){l&&l.p&&(!i||r&16384)&&$t(l,s,o,o[14],i?St(s,o[14],r,null):Ct(o[14]),null)},i(o){i||(A(l,o),o&&tt(()=>{i&&(t||(t=ze(e,bt,{duration:150},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=ze(e,bt,{duration:150},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),o&&t&&t.end()}}}function b4(n){let e,t,i,s,l,o,r;const a=n[15].header,u=wt(a,n,n[14],Wd);let f=n[0]&&Yd(n);return{c(){e=y("div"),t=y("button"),u&&u.c(),i=E(),f&&f.c(),h(t,"type","button"),h(t,"class","accordion-header"),h(t,"draggable",n[2]),x(t,"interactive",n[3]),h(e,"class",s="accordion "+(n[7]?"drag-over":"")+" "+n[1]),x(e,"active",n[0])},m(d,p){S(d,e,p),v(e,t),u&&u.m(t,null),v(e,i),f&&f.m(e,null),n[22](e),l=!0,o||(r=[J(t,"click",at(n[17])),J(t,"drop",at(n[18])),J(t,"dragstart",n[19]),J(t,"dragenter",n[20]),J(t,"dragleave",n[21]),J(t,"dragover",at(n[16]))],o=!0)},p(d,[p]){u&&u.p&&(!l||p&16385)&&$t(u,a,d,d[14],l?St(a,d[14],p,g4):Ct(d[14]),Wd),(!l||p&4)&&h(t,"draggable",d[2]),(!l||p&8)&&x(t,"interactive",d[3]),d[0]?f?(f.p(d,p),p&1&&A(f,1)):(f=Yd(d),f.c(),A(f,1),f.m(e,null)):f&&(re(),P(f,1,1,()=>{f=null}),ae()),(!l||p&130&&s!==(s="accordion "+(d[7]?"drag-over":"")+" "+d[1]))&&h(e,"class",s),(!l||p&131)&&x(e,"active",d[0])},i(d){l||(A(u,d),A(f),l=!0)},o(d){P(u,d),P(f),l=!1},d(d){d&&w(e),u&&u.d(d),f&&f.d(),n[22](null),o=!1,Ae(r)}}}function v4(n,e,t){let{$$slots:i={},$$scope:s}=e;const l=Tt();let o,r,{class:a=""}=e,{draggable:u=!1}=e,{active:f=!1}=e,{interactive:d=!0}=e,{single:p=!1}=e,m=!1;function g(){return!!f}function _(){$(),t(0,f=!0),l("expand")}function b(){t(0,f=!1),clearTimeout(r),l("collapse")}function k(){l("toggle"),f?b():_()}function $(){if(p&&o.closest(".accordions")){const F=o.closest(".accordions").querySelectorAll(".accordion.active .accordion-header.interactive");for(const q of F)q.click()}}en(()=>()=>clearTimeout(r));function T(F){me.call(this,n,F)}const C=()=>d&&k(),D=F=>{u&&(t(7,m=!1),$(),l("drop",F))},M=F=>u&&l("dragstart",F),O=F=>{u&&(t(7,m=!0),l("dragenter",F))},I=F=>{u&&(t(7,m=!1),l("dragleave",F))};function L(F){ie[F?"unshift":"push"](()=>{o=F,t(6,o)})}return n.$$set=F=>{"class"in F&&t(1,a=F.class),"draggable"in F&&t(2,u=F.draggable),"active"in F&&t(0,f=F.active),"interactive"in F&&t(3,d=F.interactive),"single"in F&&t(9,p=F.single),"$$scope"in F&&t(14,s=F.$$scope)},n.$$.update=()=>{n.$$.dirty&8257&&f&&(clearTimeout(r),t(13,r=setTimeout(()=>{o!=null&&o.scrollIntoViewIfNeeded?o.scrollIntoViewIfNeeded():o!=null&&o.scrollIntoView&&o.scrollIntoView({behavior:"smooth",block:"nearest"})},200)))},[f,a,u,d,k,$,o,m,l,p,g,_,b,r,s,i,T,C,D,M,O,I,L]}class co extends ye{constructor(e){super(),ve(this,e,v4,b4,_e,{class:1,draggable:2,active:0,interactive:3,single:9,isExpanded:10,expand:11,collapse:12,toggle:4,collapseSiblings:5})}get isExpanded(){return this.$$.ctx[10]}get expand(){return this.$$.ctx[11]}get collapse(){return this.$$.ctx[12]}get toggle(){return this.$$.ctx[4]}get collapseSiblings(){return this.$$.ctx[5]}}function y4(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Enable"),h(e,"type","checkbox"),h(e,"id",t=n[12]),h(s,"for",o=n[12])},m(u,f){S(u,e,f),e.checked=n[0].options.allowUsernameAuth,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[5]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&h(e,"id",t),f&1&&(e.checked=u[0].options.allowUsernameAuth),f&4096&&o!==(o=u[12])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function k4(n){let e,t;return e=new de({props:{class:"form-field form-field-toggle m-b-0",name:"options.allowUsernameAuth",$$slots:{default:[y4,({uniqueId:i})=>({12:i}),({uniqueId:i})=>i?4096:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&12289&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function w4(n){let e;return{c(){e=y("span"),e.textContent="Disabled",h(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function S4(n){let e;return{c(){e=y("span"),e.textContent="Enabled",h(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Kd(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function $4(n){let e,t,i,s,l,o,r;function a(p,m){return p[0].options.allowUsernameAuth?S4:w4}let u=a(n),f=u(n),d=n[3]&&Kd();return{c(){e=y("div"),e.innerHTML=` Username/Password`,t=E(),i=y("div"),s=E(),f.c(),l=E(),d&&d.c(),o=Ce(),h(e,"class","inline-flex"),h(i,"class","flex-fill")},m(p,m){S(p,e,m),S(p,t,m),S(p,i,m),S(p,s,m),f.m(p,m),S(p,l,m),d&&d.m(p,m),S(p,o,m),r=!0},p(p,m){u!==(u=a(p))&&(f.d(1),f=u(p),f&&(f.c(),f.m(l.parentNode,l))),p[3]?d?m&8&&A(d,1):(d=Kd(),d.c(),A(d,1),d.m(o.parentNode,o)):d&&(re(),P(d,1,1,()=>{d=null}),ae())},i(p){r||(A(d),r=!0)},o(p){P(d),r=!1},d(p){p&&w(e),p&&w(t),p&&w(i),p&&w(s),f.d(p),p&&w(l),d&&d.d(p),p&&w(o)}}}function C4(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Enable"),h(e,"type","checkbox"),h(e,"id",t=n[12]),h(s,"for",o=n[12])},m(u,f){S(u,e,f),e.checked=n[0].options.allowEmailAuth,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[6]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&h(e,"id",t),f&1&&(e.checked=u[0].options.allowEmailAuth),f&4096&&o!==(o=u[12])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Jd(n){let e,t,i,s,l,o,r,a;return i=new de({props:{class:"form-field "+(H.isEmpty(n[0].options.onlyEmailDomains)?"":"disabled"),name:"options.exceptEmailDomains",$$slots:{default:[T4,({uniqueId:u})=>({12:u}),({uniqueId:u})=>u?4096:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field "+(H.isEmpty(n[0].options.exceptEmailDomains)?"":"disabled"),name:"options.onlyEmailDomains",$$slots:{default:[M4,({uniqueId:u})=>({12:u}),({uniqueId:u})=>u?4096:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),h(t,"class","col-lg-6"),h(l,"class","col-lg-6"),h(e,"class","grid grid-sm p-t-sm")},m(u,f){S(u,e,f),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),a=!0},p(u,f){const d={};f&1&&(d.class="form-field "+(H.isEmpty(u[0].options.onlyEmailDomains)?"":"disabled")),f&12289&&(d.$$scope={dirty:f,ctx:u}),i.$set(d);const p={};f&1&&(p.class="form-field "+(H.isEmpty(u[0].options.exceptEmailDomains)?"":"disabled")),f&12289&&(p.$$scope={dirty:f,ctx:u}),o.$set(p)},i(u){a||(A(i.$$.fragment,u),A(o.$$.fragment,u),u&&tt(()=>{a&&(r||(r=ze(e,bt,{duration:150},!0)),r.run(1))}),a=!0)},o(u){P(i.$$.fragment,u),P(o.$$.fragment,u),u&&(r||(r=ze(e,bt,{duration:150},!1)),r.run(0)),a=!1},d(u){u&&w(e),B(i),B(o),u&&r&&r.end()}}}function T4(n){let e,t,i,s,l,o,r,a,u,f,d,p,m;function g(b){n[7](b)}let _={id:n[12],disabled:!H.isEmpty(n[0].options.onlyEmailDomains)};return n[0].options.exceptEmailDomains!==void 0&&(_.value=n[0].options.exceptEmailDomains),r=new Vs({props:_}),ie.push(()=>he(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Except domains",i=E(),s=y("i"),o=E(),U(r.$$.fragment),u=E(),f=y("div"),f.textContent="Use comma as separator.",h(t,"class","txt"),h(s,"class","ri-information-line link-hint"),h(e,"for",l=n[12]),h(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(m=Ee(Ye.call(null,s,{text:`Email domains that are NOT allowed to sign up. This field is disabled if "Only domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]))&&h(e,"for",l);const $={};k&4096&&($.id=b[12]),k&1&&($.disabled=!H.isEmpty(b[0].options.onlyEmailDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.exceptEmailDomains,ke(()=>a=!1)),r.$set($)},i(b){d||(A(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),B(r,b),b&&w(u),b&&w(f),p=!1,m()}}}function M4(n){let e,t,i,s,l,o,r,a,u,f,d,p,m;function g(b){n[8](b)}let _={id:n[12],disabled:!H.isEmpty(n[0].options.exceptEmailDomains)};return n[0].options.onlyEmailDomains!==void 0&&(_.value=n[0].options.onlyEmailDomains),r=new Vs({props:_}),ie.push(()=>he(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Only domains",i=E(),s=y("i"),o=E(),U(r.$$.fragment),u=E(),f=y("div"),f.textContent="Use comma as separator.",h(t,"class","txt"),h(s,"class","ri-information-line link-hint"),h(e,"for",l=n[12]),h(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(m=Ee(Ye.call(null,s,{text:`Email domains that are ONLY allowed to sign up. This field is disabled if "Except domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]))&&h(e,"for",l);const $={};k&4096&&($.id=b[12]),k&1&&($.disabled=!H.isEmpty(b[0].options.exceptEmailDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.onlyEmailDomains,ke(()=>a=!1)),r.$set($)},i(b){d||(A(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),B(r,b),b&&w(u),b&&w(f),p=!1,m()}}}function O4(n){let e,t,i,s;e=new de({props:{class:"form-field form-field-toggle m-0",name:"options.allowEmailAuth",$$slots:{default:[C4,({uniqueId:o})=>({12:o}),({uniqueId:o})=>o?4096:0]},$$scope:{ctx:n}}});let l=n[0].options.allowEmailAuth&&Jd(n);return{c(){U(e.$$.fragment),t=E(),l&&l.c(),i=Ce()},m(o,r){z(e,o,r),S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){const a={};r&12289&&(a.$$scope={dirty:r,ctx:o}),e.$set(a),o[0].options.allowEmailAuth?l?(l.p(o,r),r&1&&A(l,1)):(l=Jd(o),l.c(),A(l,1),l.m(i.parentNode,i)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){s||(A(e.$$.fragment,o),A(l),s=!0)},o(o){P(e.$$.fragment,o),P(l),s=!1},d(o){B(e,o),o&&w(t),l&&l.d(o),o&&w(i)}}}function D4(n){let e;return{c(){e=y("span"),e.textContent="Disabled",h(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function E4(n){let e;return{c(){e=y("span"),e.textContent="Enabled",h(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Zd(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function A4(n){let e,t,i,s,l,o,r;function a(p,m){return p[0].options.allowEmailAuth?E4:D4}let u=a(n),f=u(n),d=n[2]&&Zd();return{c(){e=y("div"),e.innerHTML=` @@ -114,7 +114,7 @@ Also note that some OAuth2 providers (like Twitter), don't return an email and t you'll have to update it manually!`,o=E(),u&&u.c(),r=E(),f&&f.c(),a=Ce(),h(t,"class","icon"),h(s,"class","content txt-bold"),h(e,"class","alert alert-warning")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),v(s,l),v(s,o),u&&u.m(s,null),S(d,r,p),f&&f.m(d,p),S(d,a,p)},p(d,p){d[6].length?u||(u=tp(),u.c(),u.m(s,null)):u&&(u.d(1),u=null),d[8]?f?f.p(d,p):(f=np(d),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},d(d){d&&w(e),u&&u.d(),d&&w(r),f&&f.d(d),d&&w(a)}}}function B4(n){let e;return{c(){e=y("h4"),e.textContent="Confirm collection changes"},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function U4(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='Cancel',t=E(),i=y("button"),i.innerHTML='Confirm',e.autofocus=!0,h(e,"type","button"),h(e,"class","btn btn-transparent"),h(i,"type","button"),h(i,"class","btn btn-expanded")},m(o,r){S(o,e,r),S(o,t,r),S(o,i,r),e.focus(),s||(l=[J(e,"click",n[11]),J(i,"click",n[12])],s=!0)},p:X,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,Ae(l)}}}function W4(n){let e,t,i={class:"confirm-changes-panel",popup:!0,$$slots:{footer:[U4],header:[B4],default:[z4]},$$scope:{ctx:n}};return e=new hn({props:i}),n[13](e),e.$on("hide",n[14]),e.$on("show",n[15]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16777710&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[13](null),B(e,s)}}}function Y4(n,e,t){let i,s,l,o,r;const a=Tt();let u,f,d;async function p(C,D){t(1,f=C),t(2,d=D),await an(),i||s.length||l.length||o.length?u==null||u.show():g()}function m(){u==null||u.hide()}function g(){m(),a("confirm")}const _=()=>m(),b=()=>g();function k(C){ie[C?"unshift":"push"](()=>{u=C,t(4,u)})}function $(C){me.call(this,n,C)}function T(C){me.call(this,n,C)}return n.$$.update=()=>{var C,D,M;n.$$.dirty&6&&t(3,i=(f==null?void 0:f.name)!=(d==null?void 0:d.name)),n.$$.dirty&4&&t(7,s=((C=d==null?void 0:d.schema)==null?void 0:C.filter(O=>O.id&&!O.toDelete&&O.originalName!=O.name))||[]),n.$$.dirty&4&&t(6,l=((D=d==null?void 0:d.schema)==null?void 0:D.filter(O=>O.id&&O.toDelete))||[]),n.$$.dirty&6&&t(5,o=((M=d==null?void 0:d.schema)==null?void 0:M.filter(O=>{var L,F,q;const I=(L=f==null?void 0:f.schema)==null?void 0:L.find(N=>N.id==O.id);return I?((F=I.options)==null?void 0:F.maxSelect)!=1&&((q=O.options)==null?void 0:q.maxSelect)==1:!1}))||[]),n.$$.dirty&12&&t(8,r=!(d!=null&&d.$isView)||i)},[m,f,d,i,u,o,l,s,r,g,p,_,b,k,$,T]}class K4 extends ye{constructor(e){super(),ve(this,e,Y4,W4,_e,{show:10,hide:0})}get show(){return this.$$.ctx[10]}get hide(){return this.$$.ctx[0]}}function ap(n,e,t){const i=n.slice();return i[47]=e[t][0],i[48]=e[t][1],i}function J4(n){let e,t,i;function s(o){n[33](o)}let l={};return n[2]!==void 0&&(l.collection=n[2]),e=new XT({props:l}),ie.push(()=>he(e,"collection",s)),{c(){U(e.$$.fragment)},m(o,r){z(e,o,r),i=!0},p(o,r){const a={};!t&&r[0]&4&&(t=!0,a.collection=o[2],ke(()=>t=!1)),e.$set(a)},i(o){i||(A(e.$$.fragment,o),i=!0)},o(o){P(e.$$.fragment,o),i=!1},d(o){B(e,o)}}}function Z4(n){let e,t,i;function s(o){n[32](o)}let l={};return n[2]!==void 0&&(l.collection=n[2]),e=new _4({props:l}),ie.push(()=>he(e,"collection",s)),{c(){U(e.$$.fragment)},m(o,r){z(e,o,r),i=!0},p(o,r){const a={};!t&&r[0]&4&&(t=!0,a.collection=o[2],ke(()=>t=!1)),e.$set(a)},i(o){i||(A(e.$$.fragment,o),i=!0)},o(o){P(e.$$.fragment,o),i=!1},d(o){B(e,o)}}}function up(n){let e,t,i,s;function l(r){n[34](r)}let o={};return n[2]!==void 0&&(o.collection=n[2]),t=new f4({props:o}),ie.push(()=>he(t,"collection",l)),{c(){e=y("div"),U(t.$$.fragment),h(e,"class","tab-item active")},m(r,a){S(r,e,a),z(t,e,null),s=!0},p(r,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=r[2],ke(()=>i=!1)),t.$set(u)},i(r){s||(A(t.$$.fragment,r),s=!0)},o(r){P(t.$$.fragment,r),s=!1},d(r){r&&w(e),B(t)}}}function fp(n){let e,t,i,s;function l(r){n[35](r)}let o={};return n[2]!==void 0&&(o.collection=n[2]),t=new H4({props:o}),ie.push(()=>he(t,"collection",l)),{c(){e=y("div"),U(t.$$.fragment),h(e,"class","tab-item"),x(e,"active",n[3]===Ls)},m(r,a){S(r,e,a),z(t,e,null),s=!0},p(r,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=r[2],ke(()=>i=!1)),t.$set(u),(!s||a[0]&8)&&x(e,"active",r[3]===Ls)},i(r){s||(A(t.$$.fragment,r),s=!0)},o(r){P(t.$$.fragment,r),s=!1},d(r){r&&w(e),B(t)}}}function G4(n){let e,t,i,s,l,o,r;const a=[Z4,J4],u=[];function f(m,g){return m[2].$isView?0:1}i=f(n),s=u[i]=a[i](n);let d=n[3]===wl&&up(n),p=n[2].$isAuth&&fp(n);return{c(){e=y("div"),t=y("div"),s.c(),l=E(),d&&d.c(),o=E(),p&&p.c(),h(t,"class","tab-item"),x(t,"active",n[3]===Pi),h(e,"class","tabs-content svelte-12y0yzb")},m(m,g){S(m,e,g),v(e,t),u[i].m(t,null),v(e,l),d&&d.m(e,null),v(e,o),p&&p.m(e,null),r=!0},p(m,g){let _=i;i=f(m),i===_?u[i].p(m,g):(re(),P(u[_],1,1,()=>{u[_]=null}),ae(),s=u[i],s?s.p(m,g):(s=u[i]=a[i](m),s.c()),A(s,1),s.m(t,null)),(!r||g[0]&8)&&x(t,"active",m[3]===Pi),m[3]===wl?d?(d.p(m,g),g[0]&8&&A(d,1)):(d=up(m),d.c(),A(d,1),d.m(e,o)):d&&(re(),P(d,1,1,()=>{d=null}),ae()),m[2].$isAuth?p?(p.p(m,g),g[0]&4&&A(p,1)):(p=fp(m),p.c(),A(p,1),p.m(e,null)):p&&(re(),P(p,1,1,()=>{p=null}),ae())},i(m){r||(A(s),A(d),A(p),r=!0)},o(m){P(s),P(d),P(p),r=!1},d(m){m&&w(e),u[i].d(),d&&d.d(),p&&p.d()}}}function cp(n){let e,t,i,s,l,o,r;return o=new ei({props:{class:"dropdown dropdown-right m-t-5",$$slots:{default:[X4]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=E(),i=y("button"),s=y("i"),l=E(),U(o.$$.fragment),h(e,"class","flex-fill"),h(s,"class","ri-more-line"),h(i,"type","button"),h(i,"aria-label","More"),h(i,"class","btn btn-sm btn-circle btn-transparent flex-gap-0")},m(a,u){S(a,e,u),S(a,t,u),S(a,i,u),v(i,s),v(i,l),z(o,i,null),r=!0},p(a,u){const f={};u[1]&1048576&&(f.$$scope={dirty:u,ctx:a}),o.$set(f)},i(a){r||(A(o.$$.fragment,a),r=!0)},o(a){P(o.$$.fragment,a),r=!1},d(a){a&&w(e),a&&w(t),a&&w(i),B(o)}}}function X4(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML=` Duplicate`,t=E(),i=y("button"),i.innerHTML=` Delete`,h(e,"type","button"),h(e,"class","dropdown-item closable"),h(i,"type","button"),h(i,"class","dropdown-item txt-danger closable")},m(o,r){S(o,e,r),S(o,t,r),S(o,i,r),s||(l=[J(e,"click",n[24]),J(i,"click",An(at(n[25])))],s=!0)},p:X,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,Ae(l)}}}function dp(n){let e,t,i,s;return i=new ei({props:{class:"dropdown dropdown-right dropdown-nowrap m-t-5",$$slots:{default:[Q4]},$$scope:{ctx:n}}}),{c(){e=y("i"),t=E(),U(i.$$.fragment),h(e,"class","ri-arrow-down-s-fill")},m(l,o){S(l,e,o),S(l,t,o),z(i,l,o),s=!0},p(l,o){const r={};o[0]&68|o[1]&1048576&&(r.$$scope={dirty:o,ctx:l}),i.$set(r)},i(l){s||(A(i.$$.fragment,l),s=!0)},o(l){P(i.$$.fragment,l),s=!1},d(l){l&&w(e),l&&w(t),B(i,l)}}}function pp(n){let e,t,i,s,l,o=n[48]+"",r,a,u,f,d;function p(){return n[27](n[47])}return{c(){e=y("button"),t=y("i"),s=E(),l=y("span"),r=Y(o),a=Y(" collection"),u=E(),h(t,"class",i=os(H.getCollectionTypeIcon(n[47]))+" svelte-12y0yzb"),h(l,"class","txt"),h(e,"type","button"),h(e,"class","dropdown-item closable"),x(e,"selected",n[47]==n[2].type)},m(m,g){S(m,e,g),v(e,t),v(e,s),v(e,l),v(l,r),v(l,a),v(e,u),f||(d=J(e,"click",p),f=!0)},p(m,g){n=m,g[0]&64&&i!==(i=os(H.getCollectionTypeIcon(n[47]))+" svelte-12y0yzb")&&h(t,"class",i),g[0]&64&&o!==(o=n[48]+"")&&le(r,o),g[0]&68&&x(e,"selected",n[47]==n[2].type)},d(m){m&&w(e),f=!1,d()}}}function Q4(n){let e,t=Object.entries(n[6]),i=[];for(let s=0;s{q=null}),ae()),(!I||j[0]&4&&C!==(C="btn btn-sm p-r-10 p-l-10 "+(R[2].$isNew?"btn-outline":"btn-transparent")))&&h(p,"class",C),(!I||j[0]&4&&D!==(D=!R[2].$isNew))&&(p.disabled=D),R[2].system?N||(N=mp(),N.c(),N.m(O.parentNode,O)):N&&(N.d(1),N=null)},i(R){I||(A(q),I=!0)},o(R){P(q),I=!1},d(R){R&&w(e),R&&w(s),R&&w(l),R&&w(f),R&&w(d),q&&q.d(),R&&w(M),N&&N.d(R),R&&w(O),L=!1,F()}}}function hp(n){let e,t,i,s,l,o;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(r,a){S(r,e,a),s=!0,l||(o=Ee(t=Ye.call(null,e,n[11])),l=!0)},p(r,a){t&&Ht(t.update)&&a[0]&2048&&t.update.call(null,r[11])},i(r){s||(r&&tt(()=>{s&&(i||(i=ze(e,Yt,{duration:150,start:.7},!0)),i.run(1))}),s=!0)},o(r){r&&(i||(i=ze(e,Yt,{duration:150,start:.7},!1)),i.run(0)),s=!1},d(r){r&&w(e),r&&i&&i.end(),l=!1,o()}}}function _p(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,"Has errors")),s=!0)},i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function gp(n){var a,u,f;let e,t,i,s=!H.isEmpty((a=n[5])==null?void 0:a.options)&&!((f=(u=n[5])==null?void 0:u.options)!=null&&f.manageRule),l,o,r=s&&bp();return{c(){e=y("button"),t=y("span"),t.textContent="Options",i=E(),r&&r.c(),h(t,"class","txt"),h(e,"type","button"),h(e,"class","tab-item"),x(e,"active",n[3]===Ls)},m(d,p){S(d,e,p),v(e,t),v(e,i),r&&r.m(e,null),l||(o=J(e,"click",n[31]),l=!0)},p(d,p){var m,g,_;p[0]&32&&(s=!H.isEmpty((m=d[5])==null?void 0:m.options)&&!((_=(g=d[5])==null?void 0:g.options)!=null&&_.manageRule)),s?r?p[0]&32&&A(r,1):(r=bp(),r.c(),A(r,1),r.m(e,null)):r&&(re(),P(r,1,1,()=>{r=null}),ae()),p[0]&8&&x(e,"active",d[3]===Ls)},d(d){d&&w(e),r&&r.d(),l=!1,o()}}}function bp(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,"Has errors")),s=!0)},i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function eM(n){var V,W,ee,te,G,ce,Q,se;let e,t=n[2].$isNew?"New collection":"Edit collection",i,s,l,o,r,a,u,f,d,p,m,g=(V=n[2])!=null&&V.$isView?"Query":"Fields",_,b,k=!H.isEmpty(n[11]),$,T,C,D,M=!H.isEmpty((W=n[5])==null?void 0:W.listRule)||!H.isEmpty((ee=n[5])==null?void 0:ee.viewRule)||!H.isEmpty((te=n[5])==null?void 0:te.createRule)||!H.isEmpty((G=n[5])==null?void 0:G.updateRule)||!H.isEmpty((ce=n[5])==null?void 0:ce.deleteRule)||!H.isEmpty((se=(Q=n[5])==null?void 0:Q.options)==null?void 0:se.manageRule),O,I,L,F,q=!n[2].$isNew&&!n[2].system&&cp(n);r=new de({props:{class:"form-field collection-field-name required m-b-0 "+(n[13]?"disabled":""),name:"name",$$slots:{default:[x4,({uniqueId:ge})=>({46:ge}),({uniqueId:ge})=>[0,ge?32768:0]]},$$scope:{ctx:n}}});let N=k&&hp(n),R=M&&_p(),j=n[2].$isAuth&&gp(n);return{c(){e=y("h4"),i=Y(t),s=E(),q&&q.c(),l=E(),o=y("form"),U(r.$$.fragment),a=E(),u=y("input"),f=E(),d=y("div"),p=y("button"),m=y("span"),_=Y(g),b=E(),N&&N.c(),$=E(),T=y("button"),C=y("span"),C.textContent="API Rules",D=E(),R&&R.c(),O=E(),j&&j.c(),h(e,"class","upsert-panel-title svelte-12y0yzb"),h(u,"type","submit"),h(u,"class","hidden"),h(u,"tabindex","-1"),h(o,"class","block"),h(m,"class","txt"),h(p,"type","button"),h(p,"class","tab-item"),x(p,"active",n[3]===Pi),h(C,"class","txt"),h(T,"type","button"),h(T,"class","tab-item"),x(T,"active",n[3]===wl),h(d,"class","tabs-header stretched")},m(ge,$e){S(ge,e,$e),v(e,i),S(ge,s,$e),q&&q.m(ge,$e),S(ge,l,$e),S(ge,o,$e),z(r,o,null),v(o,a),v(o,u),S(ge,f,$e),S(ge,d,$e),v(d,p),v(p,m),v(m,_),v(p,b),N&&N.m(p,null),v(d,$),v(d,T),v(T,C),v(T,D),R&&R.m(T,null),v(d,O),j&&j.m(d,null),I=!0,L||(F=[J(o,"submit",at(n[28])),J(p,"click",n[29]),J(T,"click",n[30])],L=!0)},p(ge,$e){var Be,we,Oe,Ge,mt,Xe,Ke,Se;(!I||$e[0]&4)&&t!==(t=ge[2].$isNew?"New collection":"Edit collection")&&le(i,t),!ge[2].$isNew&&!ge[2].system?q?(q.p(ge,$e),$e[0]&4&&A(q,1)):(q=cp(ge),q.c(),A(q,1),q.m(l.parentNode,l)):q&&(re(),P(q,1,1,()=>{q=null}),ae());const Ve={};$e[0]&8192&&(Ve.class="form-field collection-field-name required m-b-0 "+(ge[13]?"disabled":"")),$e[0]&8260|$e[1]&1081344&&(Ve.$$scope={dirty:$e,ctx:ge}),r.$set(Ve),(!I||$e[0]&4)&&g!==(g=(Be=ge[2])!=null&&Be.$isView?"Query":"Fields")&&le(_,g),$e[0]&2048&&(k=!H.isEmpty(ge[11])),k?N?(N.p(ge,$e),$e[0]&2048&&A(N,1)):(N=hp(ge),N.c(),A(N,1),N.m(p,null)):N&&(re(),P(N,1,1,()=>{N=null}),ae()),(!I||$e[0]&8)&&x(p,"active",ge[3]===Pi),$e[0]&32&&(M=!H.isEmpty((we=ge[5])==null?void 0:we.listRule)||!H.isEmpty((Oe=ge[5])==null?void 0:Oe.viewRule)||!H.isEmpty((Ge=ge[5])==null?void 0:Ge.createRule)||!H.isEmpty((mt=ge[5])==null?void 0:mt.updateRule)||!H.isEmpty((Xe=ge[5])==null?void 0:Xe.deleteRule)||!H.isEmpty((Se=(Ke=ge[5])==null?void 0:Ke.options)==null?void 0:Se.manageRule)),M?R?$e[0]&32&&A(R,1):(R=_p(),R.c(),A(R,1),R.m(T,null)):R&&(re(),P(R,1,1,()=>{R=null}),ae()),(!I||$e[0]&8)&&x(T,"active",ge[3]===wl),ge[2].$isAuth?j?j.p(ge,$e):(j=gp(ge),j.c(),j.m(d,null)):j&&(j.d(1),j=null)},i(ge){I||(A(q),A(r.$$.fragment,ge),A(N),A(R),I=!0)},o(ge){P(q),P(r.$$.fragment,ge),P(N),P(R),I=!1},d(ge){ge&&w(e),ge&&w(s),q&&q.d(ge),ge&&w(l),ge&&w(o),B(r),ge&&w(f),ge&&w(d),N&&N.d(),R&&R.d(),j&&j.d(),L=!1,Ae(F)}}}function tM(n){let e,t,i,s,l,o=n[2].$isNew?"Create":"Save changes",r,a,u,f;return{c(){e=y("button"),t=y("span"),t.textContent="Cancel",i=E(),s=y("button"),l=y("span"),r=Y(o),h(t,"class","txt"),h(e,"type","button"),h(e,"class","btn btn-transparent"),e.disabled=n[9],h(l,"class","txt"),h(s,"type","button"),h(s,"class","btn btn-expanded"),s.disabled=a=!n[12]||n[9],x(s,"btn-loading",n[9])},m(d,p){S(d,e,p),v(e,t),S(d,i,p),S(d,s,p),v(s,l),v(l,r),u||(f=[J(e,"click",n[22]),J(s,"click",n[23])],u=!0)},p(d,p){p[0]&512&&(e.disabled=d[9]),p[0]&4&&o!==(o=d[2].$isNew?"Create":"Save changes")&&le(r,o),p[0]&4608&&a!==(a=!d[12]||d[9])&&(s.disabled=a),p[0]&512&&x(s,"btn-loading",d[9])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,Ae(f)}}}function nM(n){let e,t,i,s,l={class:"overlay-panel-lg colored-header collection-panel",escClose:!1,overlayClose:!n[9],beforeHide:n[36],$$slots:{footer:[tM],header:[eM],default:[G4]},$$scope:{ctx:n}};e=new hn({props:l}),n[37](e),e.$on("hide",n[38]),e.$on("show",n[39]);let o={};return i=new K4({props:o}),n[40](i),i.$on("confirm",n[41]),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment)},m(r,a){z(e,r,a),S(r,t,a),z(i,r,a),s=!0},p(r,a){const u={};a[0]&512&&(u.overlayClose=!r[9]),a[0]&1040&&(u.beforeHide=r[36]),a[0]&14956|a[1]&1048576&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};i.$set(f)},i(r){s||(A(e.$$.fragment,r),A(i.$$.fragment,r),s=!0)},o(r){P(e.$$.fragment,r),P(i.$$.fragment,r),s=!1},d(r){n[37](null),B(e,r),r&&w(t),n[40](null),B(i,r)}}}const Pi="schema",wl="api_rules",Ls="options",iM="base",vp="auth",yp="view";function Pr(n){return JSON.stringify(n)}function sM(n,e,t){let i,s,l,o;Ze(n,$i,Se=>t(5,o=Se));const r={};r[iM]="Base",r[yp]="View",r[vp]="Auth";const a=Tt();let u,f,d=null,p=new kn,m=!1,g=!1,_=Pi,b=Pr(p),k="";function $(Se){t(3,_=Se)}function T(Se){return D(Se),t(10,g=!0),$(Pi),u==null?void 0:u.show()}function C(){return u==null?void 0:u.hide()}async function D(Se){un({}),typeof Se<"u"?(t(20,d=Se),t(2,p=Se.$clone())):(t(20,d=null),t(2,p=new kn)),t(2,p.schema=p.schema||[],p),t(2,p.originalName=p.name||"",p),await an(),t(21,b=Pr(p))}function M(){p.$isNew?O():f==null||f.show(d,p)}function O(){if(m)return;t(9,m=!0);const Se=I();let ue;p.$isNew?ue=pe.collections.create(Se):ue=pe.collections.update(p.id,Se),ue.then(He=>{Pa(),gy(He),t(10,g=!1),C(),xt(p.$isNew?"Successfully created collection.":"Successfully updated collection."),a("save",{isNew:p.$isNew,collection:He})}).catch(He=>{pe.errorResponseHandler(He)}).finally(()=>{t(9,m=!1)})}function I(){const Se=p.$export();Se.schema=Se.schema.slice(0);for(let ue=Se.schema.length-1;ue>=0;ue--)Se.schema[ue].toDelete&&Se.schema.splice(ue,1);return Se}function L(){d!=null&&d.id&&vn(`Do you really want to delete collection "${d==null?void 0:d.name}" and all its records?`,()=>pe.collections.delete(d==null?void 0:d.id).then(()=>{C(),xt(`Successfully deleted collection "${d==null?void 0:d.name}".`),a("delete",d),by(d)}).catch(Se=>{pe.errorResponseHandler(Se)}))}function F(Se){t(2,p.type=Se,p),Fi("schema")}function q(){s?vn("You have unsaved changes. Do you really want to discard them?",()=>{N()}):N()}async function N(){const Se=d==null?void 0:d.$clone();if(Se){if(Se.id="",Se.created="",Se.updated="",Se.name+="_duplicate",!H.isEmpty(Se.schema))for(const ue of Se.schema)ue.id="";if(!H.isEmpty(Se.indexes))for(let ue=0;ueC(),j=()=>M(),V=()=>q(),W=()=>L(),ee=Se=>{t(2,p.name=H.slugify(Se.target.value),p),Se.target.value=p.name},te=Se=>F(Se),G=()=>{l&&M()},ce=()=>$(Pi),Q=()=>$(wl),se=()=>$(Ls);function ge(Se){p=Se,t(2,p),t(20,d)}function $e(Se){p=Se,t(2,p),t(20,d)}function Ve(Se){p=Se,t(2,p),t(20,d)}function Be(Se){p=Se,t(2,p),t(20,d)}const we=()=>s&&g?(vn("You have unsaved changes. Do you really want to close the panel?",()=>{t(10,g=!1),C()}),!1):!0;function Oe(Se){ie[Se?"unshift":"push"](()=>{u=Se,t(7,u)})}function Ge(Se){me.call(this,n,Se)}function mt(Se){me.call(this,n,Se)}function Xe(Se){ie[Se?"unshift":"push"](()=>{f=Se,t(8,f)})}const Ke=()=>O();return n.$$.update=()=>{var Se,ue;n.$$.dirty[0]&32&&(o.schema||(Se=o.options)!=null&&Se.query?t(11,k=H.getNestedVal(o,"schema.message")||"Has errors"):t(11,k="")),n.$$.dirty[0]&4&&p.type===yp&&(t(2,p.createRule=null,p),t(2,p.updateRule=null,p),t(2,p.deleteRule=null,p),t(2,p.indexes=[],p)),n.$$.dirty[0]&1048580&&p!=null&&p.name&&(d==null?void 0:d.name)!=(p==null?void 0:p.name)&&t(2,p.indexes=(ue=p.indexes)==null?void 0:ue.map(He=>H.replaceIndexTableName(He,p.name)),p),n.$$.dirty[0]&4&&t(13,i=!p.$isNew&&p.system),n.$$.dirty[0]&2097156&&t(4,s=b!=Pr(p)),n.$$.dirty[0]&20&&t(12,l=p.$isNew||s),n.$$.dirty[0]&12&&_===Ls&&p.type!==vp&&$(Pi)},[$,C,p,_,s,o,r,u,f,m,g,k,l,i,M,O,L,F,q,T,d,b,R,j,V,W,ee,te,G,ce,Q,se,ge,$e,Ve,Be,we,Oe,Ge,mt,Xe,Ke]}class fu extends ye{constructor(e){super(),ve(this,e,sM,nM,_e,{changeTab:0,show:19,hide:1},null,[-1,-1])}get changeTab(){return this.$$.ctx[0]}get show(){return this.$$.ctx[19]}get hide(){return this.$$.ctx[1]}}function kp(n,e,t){const i=n.slice();return i[15]=e[t],i}function wp(n){let e,t=n[1].length&&Sp();return{c(){t&&t.c(),e=Ce()},m(i,s){t&&t.m(i,s),S(i,e,s)},p(i,s){i[1].length?t||(t=Sp(),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&w(e)}}}function Sp(n){let e;return{c(){e=y("p"),e.textContent="No collections found.",h(e,"class","txt-hint m-t-10 m-b-10 txt-center")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function $p(n,e){let t,i,s,l,o,r=e[15].name+"",a,u,f,d,p;return{key:n,first:null,c(){var m;t=y("a"),i=y("i"),l=E(),o=y("span"),a=Y(r),u=E(),h(i,"class",s=H.getCollectionTypeIcon(e[15].type)),h(o,"class","txt"),h(t,"href",f="/collections?collectionId="+e[15].id),h(t,"class","sidebar-list-item"),x(t,"active",((m=e[5])==null?void 0:m.id)===e[15].id),this.first=t},m(m,g){S(m,t,g),v(t,i),v(t,l),v(t,o),v(o,a),v(t,u),d||(p=Ee(dn.call(null,t)),d=!0)},p(m,g){var _;e=m,g&8&&s!==(s=H.getCollectionTypeIcon(e[15].type))&&h(i,"class",s),g&8&&r!==(r=e[15].name+"")&&le(a,r),g&8&&f!==(f="/collections?collectionId="+e[15].id)&&h(t,"href",f),g&40&&x(t,"active",((_=e[5])==null?void 0:_.id)===e[15].id)},d(m){m&&w(t),d=!1,p()}}}function Cp(n){let e,t,i,s;return{c(){e=y("footer"),t=y("button"),t.innerHTML=` - New collection`,h(t,"type","button"),h(t,"class","btn btn-block btn-outline"),h(e,"class","sidebar-footer")},m(l,o){S(l,e,o),v(e,t),i||(s=J(t,"click",n[12]),i=!0)},p:X,d(l){l&&w(e),i=!1,s()}}}function lM(n){let e,t,i,s,l,o,r,a,u,f,d,p=[],m=new Map,g,_,b,k,$,T,C=n[3];const D=L=>L[15].id;for(let L=0;L',o=E(),r=y("input"),a=E(),u=y("hr"),f=E(),d=y("div");for(let L=0;L20),h(e,"class","page-sidebar collection-sidebar")},m(L,F){S(L,e,F),v(e,t),v(t,i),v(i,s),v(s,l),v(i,o),v(i,r),fe(r,n[0]),v(e,a),v(e,u),v(e,f),v(e,d);for(let q=0;q20),L[7]?O&&(O.d(1),O=null):O?O.p(L,F):(O=Cp(L),O.c(),O.m(e,null));const q={};b.$set(q)},i(L){k||(A(b.$$.fragment,L),k=!0)},o(L){P(b.$$.fragment,L),k=!1},d(L){L&&w(e);for(let F=0;F{const n=document.querySelector(".collection-sidebar .sidebar-list-item.active");n&&(n==null||n.scrollIntoView({block:"nearest"}))},0)}function rM(n,e,t){let i,s,l,o,r,a,u;Ze(n,ui,$=>t(5,o=$)),Ze(n,ci,$=>t(9,r=$)),Ze(n,yo,$=>t(6,a=$)),Ze(n,Es,$=>t(7,u=$));let f,d="";function p($){rn(ui,o=$,o)}const m=()=>t(0,d="");function g(){d=this.value,t(0,d)}const _=()=>f==null?void 0:f.show();function b($){ie[$?"unshift":"push"](()=>{f=$,t(2,f)})}const k=$=>{var T;(T=$.detail)!=null&&T.isNew&&$.detail.collection&&p($.detail.collection)};return n.$$.update=()=>{n.$$.dirty&512&&r&&oM(),n.$$.dirty&1&&t(1,i=d.replace(/\s+/g,"").toLowerCase()),n.$$.dirty&1&&t(4,s=d!==""),n.$$.dirty&515&&t(3,l=r.filter($=>$.id==d||$.name.replace(/\s+/g,"").toLowerCase().includes(i)))},[d,i,f,l,s,o,a,u,p,r,m,g,_,b,k]}class aM extends ye{constructor(e){super(),ve(this,e,rM,lM,_e,{})}}function Tp(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Mp(n){n[18]=n[19].default}function Op(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i[21]=t,i}function Dp(n){let e;return{c(){e=y("hr"),h(e,"class","m-t-sm m-b-sm")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Ep(n,e){let t,i=e[21]===Object.keys(e[6]).length,s,l,o=e[15].label+"",r,a,u,f,d=i&&Dp();function p(){return e[9](e[14])}return{key:n,first:null,c(){t=Ce(),d&&d.c(),s=E(),l=y("button"),r=Y(o),a=E(),h(l,"type","button"),h(l,"class","sidebar-item"),x(l,"active",e[5]===e[14]),this.first=t},m(m,g){S(m,t,g),d&&d.m(m,g),S(m,s,g),S(m,l,g),v(l,r),v(l,a),u||(f=J(l,"click",p),u=!0)},p(m,g){e=m,g&8&&(i=e[21]===Object.keys(e[6]).length),i?d||(d=Dp(),d.c(),d.m(s.parentNode,s)):d&&(d.d(1),d=null),g&8&&o!==(o=e[15].label+"")&&le(r,o),g&40&&x(l,"active",e[5]===e[14])},d(m){m&&w(t),d&&d.d(m),m&&w(s),m&&w(l),u=!1,f()}}}function Ap(n){let e,t,i,s={ctx:n,current:null,token:null,hasCatch:!1,pending:cM,then:fM,catch:uM,value:19,blocks:[,,,]};return _u(t=n[15].component,s),{c(){e=Ce(),s.block.c()},m(l,o){S(l,e,o),s.block.m(l,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,i=!0},p(l,o){n=l,s.ctx=n,o&8&&t!==(t=n[15].component)&&_u(t,s)||zb(s,n,o)},i(l){i||(A(s.block),i=!0)},o(l){for(let o=0;o<3;o+=1){const r=s.blocks[o];P(r)}i=!1},d(l){l&&w(e),s.block.d(l),s.token=null,s=null}}}function uM(n){return{c:X,m:X,p:X,i:X,o:X,d:X}}function fM(n){Mp(n);let e,t,i;return e=new n[18]({props:{collection:n[2]}}),{c(){U(e.$$.fragment),t=E()},m(s,l){z(e,s,l),S(s,t,l),i=!0},p(s,l){Mp(s);const o={};l&4&&(o.collection=s[2]),e.$set(o)},i(s){i||(A(e.$$.fragment,s),i=!0)},o(s){P(e.$$.fragment,s),i=!1},d(s){B(e,s),s&&w(t)}}}function cM(n){return{c:X,m:X,p:X,i:X,o:X,d:X}}function Ip(n,e){let t,i,s,l=e[5]===e[14]&&Ap(e);return{key:n,first:null,c(){t=Ce(),l&&l.c(),i=Ce(),this.first=t},m(o,r){S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){e=o,e[5]===e[14]?l?(l.p(e,r),r&40&&A(l,1)):(l=Ap(e),l.c(),A(l,1),l.m(i.parentNode,i)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){s||(A(l),s=!0)},o(o){P(l),s=!1},d(o){o&&w(t),l&&l.d(o),o&&w(i)}}}function dM(n){let e,t,i,s=[],l=new Map,o,r,a=[],u=new Map,f,d=Object.entries(n[3]);const p=_=>_[14];for(let _=0;__[14];for(let _=0;_Close',h(e,"type","button"),h(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[8]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function mM(n){let e,t,i={class:"docs-panel",$$slots:{footer:[pM],default:[dM]},$$scope:{ctx:n}};return e=new hn({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4194348&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[10](null),B(e,s)}}}function hM(n,e,t){const i={list:{label:"List/Search",component:rt(()=>import("./ListApiDocs-37e6e026.js"),["./ListApiDocs-37e6e026.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css","./ListApiDocs-68f52edd.css"],import.meta.url)},view:{label:"View",component:rt(()=>import("./ViewApiDocs-2cf74215.js"),["./ViewApiDocs-2cf74215.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},create:{label:"Create",component:rt(()=>import("./CreateApiDocs-6309a89b.js"),["./CreateApiDocs-6309a89b.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},update:{label:"Update",component:rt(()=>import("./UpdateApiDocs-3647ab4b.js"),["./UpdateApiDocs-3647ab4b.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},delete:{label:"Delete",component:rt(()=>import("./DeleteApiDocs-fd7036f7.js"),["./DeleteApiDocs-fd7036f7.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},realtime:{label:"Realtime",component:rt(()=>import("./RealtimeApiDocs-a087aeb7.js"),["./RealtimeApiDocs-a087aeb7.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}},s={"auth-with-password":{label:"Auth with password",component:rt(()=>import("./AuthWithPasswordDocs-669a9c88.js"),["./AuthWithPasswordDocs-669a9c88.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"auth-with-oauth2":{label:"Auth with OAuth2",component:rt(()=>import("./AuthWithOAuth2Docs-07ca6a75.js"),["./AuthWithOAuth2Docs-07ca6a75.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},refresh:{label:"Auth refresh",component:rt(()=>import("./AuthRefreshDocs-2e158885.js"),["./AuthRefreshDocs-2e158885.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-verification":{label:"Request verification",component:rt(()=>import("./RequestVerificationDocs-4868a048.js"),["./RequestVerificationDocs-4868a048.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-verification":{label:"Confirm verification",component:rt(()=>import("./ConfirmVerificationDocs-05bd8880.js"),["./ConfirmVerificationDocs-05bd8880.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-password-reset":{label:"Request password reset",component:rt(()=>import("./RequestPasswordResetDocs-ea60e244.js"),["./RequestPasswordResetDocs-ea60e244.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-password-reset":{label:"Confirm password reset",component:rt(()=>import("./ConfirmPasswordResetDocs-c185c50f.js"),["./ConfirmPasswordResetDocs-c185c50f.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-email-change":{label:"Request email change",component:rt(()=>import("./RequestEmailChangeDocs-7249bdce.js"),["./RequestEmailChangeDocs-7249bdce.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-email-change":{label:"Confirm email change",component:rt(()=>import("./ConfirmEmailChangeDocs-cc3d69ff.js"),["./ConfirmEmailChangeDocs-cc3d69ff.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-auth-methods":{label:"List auth methods",component:rt(()=>import("./AuthMethodsDocs-9a237114.js"),["./AuthMethodsDocs-9a237114.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-linked-accounts":{label:"List OAuth2 accounts",component:rt(()=>import("./ListExternalAuthsDocs-f5a8df1e.js"),["./ListExternalAuthsDocs-f5a8df1e.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"unlink-account":{label:"Unlink OAuth2 account",component:rt(()=>import("./UnlinkExternalAuthDocs-07157dbb.js"),["./UnlinkExternalAuthDocs-07157dbb.js","./SdkTabs-f541bf12.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}};let l,o=new kn,r,a=[];a.length&&(r=Object.keys(a)[0]);function u(k){return t(2,o=k),d(Object.keys(a)[0]),l==null?void 0:l.show()}function f(){return l==null?void 0:l.hide()}function d(k){t(5,r=k)}const p=()=>f(),m=k=>d(k);function g(k){ie[k?"unshift":"push"](()=>{l=k,t(4,l)})}function _(k){me.call(this,n,k)}function b(k){me.call(this,n,k)}return n.$$.update=()=>{n.$$.dirty&12&&(o.$isAuth?(t(3,a=Object.assign({},i,s)),!(o!=null&&o.options.allowUsernameAuth)&&!(o!=null&&o.options.allowEmailAuth)&&delete a["auth-with-password"],o!=null&&o.options.allowOAuth2Auth||delete a["auth-with-oauth2"]):o.$isView?(t(3,a=Object.assign({},i)),delete a.create,delete a.update,delete a.delete,delete a.realtime):t(3,a=Object.assign({},i)))},[f,d,o,a,l,r,i,u,p,m,g,_,b]}class _M extends ye{constructor(e){super(),ve(this,e,hM,mM,_e,{show:7,hide:0,changeTab:1})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}get changeTab(){return this.$$.ctx[1]}}function gM(n){let e,t,i,s,l,o,r,a,u,f,d,p;return{c(){e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Username",o=E(),r=y("input"),h(t,"class",H.getFieldTypeIcon("user")),h(s,"class","txt"),h(e,"for",l=n[13]),h(r,"type","text"),h(r,"requried",a=!n[2]),h(r,"placeholder",u=n[2]?"Leave empty to auto generate...":n[4]),h(r,"id",f=n[13])},m(m,g){S(m,e,g),v(e,t),v(e,i),v(e,s),S(m,o,g),S(m,r,g),fe(r,n[0].username),d||(p=J(r,"input",n[5]),d=!0)},p(m,g){g&8192&&l!==(l=m[13])&&h(e,"for",l),g&4&&a!==(a=!m[2])&&h(r,"requried",a),g&4&&u!==(u=m[2]?"Leave empty to auto generate...":m[4])&&h(r,"placeholder",u),g&8192&&f!==(f=m[13])&&h(r,"id",f),g&1&&r.value!==m[0].username&&fe(r,m[0].username)},d(m){m&&w(e),m&&w(o),m&&w(r),d=!1,p()}}}function bM(n){let e,t,i,s,l,o,r,a,u,f,d=n[0].emailVisibility?"On":"Off",p,m,g,_,b,k,$,T;return{c(){var C;e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Email",o=E(),r=y("div"),a=y("button"),u=y("span"),f=Y("Public: "),p=Y(d),g=E(),_=y("input"),h(t,"class",H.getFieldTypeIcon("email")),h(s,"class","txt"),h(e,"for",l=n[13]),h(u,"class","txt"),h(a,"type","button"),h(a,"class",m="btn btn-sm btn-transparent "+(n[0].emailVisibility?"btn-success":"btn-hint")),h(r,"class","form-field-addon email-visibility-addon svelte-1751a4d"),h(_,"type","email"),_.autofocus=n[2],h(_,"autocomplete","off"),h(_,"id",b=n[13]),_.required=k=(C=n[1].options)==null?void 0:C.requireEmail,h(_,"class","svelte-1751a4d")},m(C,D){S(C,e,D),v(e,t),v(e,i),v(e,s),S(C,o,D),S(C,r,D),v(r,a),v(a,u),v(u,f),v(u,p),S(C,g,D),S(C,_,D),fe(_,n[0].email),n[2]&&_.focus(),$||(T=[Ee(Ye.call(null,a,{text:"Make email public or private",position:"top-right"})),J(a,"click",n[6]),J(_,"input",n[7])],$=!0)},p(C,D){var M;D&8192&&l!==(l=C[13])&&h(e,"for",l),D&1&&d!==(d=C[0].emailVisibility?"On":"Off")&&le(p,d),D&1&&m!==(m="btn btn-sm btn-transparent "+(C[0].emailVisibility?"btn-success":"btn-hint"))&&h(a,"class",m),D&4&&(_.autofocus=C[2]),D&8192&&b!==(b=C[13])&&h(_,"id",b),D&2&&k!==(k=(M=C[1].options)==null?void 0:M.requireEmail)&&(_.required=k),D&1&&_.value!==C[0].email&&fe(_,C[0].email)},d(C){C&&w(e),C&&w(o),C&&w(r),C&&w(g),C&&w(_),$=!1,Ae(T)}}}function Pp(n){let e,t;return e=new de({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[vM,({uniqueId:i})=>({13:i}),({uniqueId:i})=>i?8192:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&24584&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function vM(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Change password"),h(e,"type","checkbox"),h(e,"id",t=n[13]),h(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[3],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[8]),r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&h(e,"id",t),f&8&&(e.checked=u[3]),f&8192&&o!==(o=u[13])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Lp(n){let e,t,i,s,l,o,r,a,u;return s=new de({props:{class:"form-field required",name:"password",$$slots:{default:[yM,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),r=new de({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[kM,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=y("div"),U(s.$$.fragment),l=E(),o=y("div"),U(r.$$.fragment),h(i,"class","col-sm-6"),h(o,"class","col-sm-6"),h(t,"class","grid"),x(t,"p-t-xs",n[3]),h(e,"class","block")},m(f,d){S(f,e,d),v(e,t),v(t,i),z(s,i,null),v(t,l),v(t,o),z(r,o,null),u=!0},p(f,d){const p={};d&24577&&(p.$$scope={dirty:d,ctx:f}),s.$set(p);const m={};d&24577&&(m.$$scope={dirty:d,ctx:f}),r.$set(m),(!u||d&8)&&x(t,"p-t-xs",f[3])},i(f){u||(A(s.$$.fragment,f),A(r.$$.fragment,f),f&&tt(()=>{u&&(a||(a=ze(e,bt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){P(s.$$.fragment,f),P(r.$$.fragment,f),f&&(a||(a=ze(e,bt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),B(s),B(r),f&&a&&a.end()}}}function yM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Password",o=E(),r=y("input"),h(t,"class","ri-lock-line"),h(s,"class","txt"),h(e,"for",l=n[13]),h(r,"type","password"),h(r,"autocomplete","new-password"),h(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),fe(r,n[0].password),u||(f=J(r,"input",n[9]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&h(e,"for",l),p&8192&&a!==(a=d[13])&&h(r,"id",a),p&1&&r.value!==d[0].password&&fe(r,d[0].password)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function kM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Password confirm",o=E(),r=y("input"),h(t,"class","ri-lock-line"),h(s,"class","txt"),h(e,"for",l=n[13]),h(r,"type","password"),h(r,"autocomplete","new-password"),h(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),fe(r,n[0].passwordConfirm),u||(f=J(r,"input",n[10]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&h(e,"for",l),p&8192&&a!==(a=d[13])&&h(r,"id",a),p&1&&r.value!==d[0].passwordConfirm&&fe(r,d[0].passwordConfirm)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function wM(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Verified"),h(e,"type","checkbox"),h(e,"id",t=n[13]),h(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[0].verified,S(u,i,f),S(u,s,f),v(s,l),r||(a=[J(e,"change",n[11]),J(e,"change",at(n[12]))],r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&h(e,"id",t),f&1&&(e.checked=u[0].verified),f&8192&&o!==(o=u[13])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,Ae(a)}}}function SM(n){var b;let e,t,i,s,l,o,r,a,u,f,d,p,m;i=new de({props:{class:"form-field "+(n[2]?"":"required"),name:"username",$$slots:{default:[gM,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field "+((b=n[1].options)!=null&&b.requireEmail?"required":""),name:"email",$$slots:{default:[bM,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}});let g=!n[2]&&Pp(n),_=(n[2]||n[3])&&Lp(n);return p=new de({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[wM,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),g&&g.c(),u=E(),_&&_.c(),f=E(),d=y("div"),U(p.$$.fragment),h(t,"class","col-lg-6"),h(l,"class","col-lg-6"),h(a,"class","col-lg-12"),h(d,"class","col-lg-12"),h(e,"class","grid m-b-base")},m(k,$){S(k,e,$),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),g&&g.m(a,null),v(a,u),_&&_.m(a,null),v(e,f),v(e,d),z(p,d,null),m=!0},p(k,[$]){var M;const T={};$&4&&(T.class="form-field "+(k[2]?"":"required")),$&24581&&(T.$$scope={dirty:$,ctx:k}),i.$set(T);const C={};$&2&&(C.class="form-field "+((M=k[1].options)!=null&&M.requireEmail?"required":"")),$&24583&&(C.$$scope={dirty:$,ctx:k}),o.$set(C),k[2]?g&&(re(),P(g,1,1,()=>{g=null}),ae()):g?(g.p(k,$),$&4&&A(g,1)):(g=Pp(k),g.c(),A(g,1),g.m(a,u)),k[2]||k[3]?_?(_.p(k,$),$&12&&A(_,1)):(_=Lp(k),_.c(),A(_,1),_.m(a,null)):_&&(re(),P(_,1,1,()=>{_=null}),ae());const D={};$&24581&&(D.$$scope={dirty:$,ctx:k}),p.$set(D)},i(k){m||(A(i.$$.fragment,k),A(o.$$.fragment,k),A(g),A(_),A(p.$$.fragment,k),m=!0)},o(k){P(i.$$.fragment,k),P(o.$$.fragment,k),P(g),P(_),P(p.$$.fragment,k),m=!1},d(k){k&&w(e),B(i),B(o),g&&g.d(),_&&_.d(),B(p)}}}function $M(n,e,t){let{collection:i=new kn}=e,{record:s=new ki}=e,{isNew:l=s.$isNew}=e,o=s.username||null,r=!1;function a(){s.username=this.value,t(0,s),t(3,r)}const u=()=>t(0,s.emailVisibility=!s.emailVisibility,s);function f(){s.email=this.value,t(0,s),t(3,r)}function d(){r=this.checked,t(3,r)}function p(){s.password=this.value,t(0,s),t(3,r)}function m(){s.passwordConfirm=this.value,t(0,s),t(3,r)}function g(){s.verified=this.checked,t(0,s),t(3,r)}const _=b=>{l||vn("Do you really want to manually change the verified account state?",()=>{},()=>{t(0,s.verified=!b.target.checked,s)})};return n.$$set=b=>{"collection"in b&&t(1,i=b.collection),"record"in b&&t(0,s=b.record),"isNew"in b&&t(2,l=b.isNew)},n.$$.update=()=>{n.$$.dirty&1&&!s.username&&s.username!==null&&t(0,s.username=null,s),n.$$.dirty&8&&(r||(t(0,s.password=null,s),t(0,s.passwordConfirm=null,s),Fi("password"),Fi("passwordConfirm")))},[s,i,l,r,o,a,u,f,d,p,m,g,_]}class CM extends ye{constructor(e){super(),ve(this,e,$M,SM,_e,{collection:1,record:0,isNew:2})}}function TM(n){let e,t,i,s=[n[3]],l={};for(let o=0;o{r&&(t(1,r.style.height="",r),t(1,r.style.height=Math.min(r.scrollHeight,o)+"px",r))},0)}function f(m){if((m==null?void 0:m.code)==="Enter"&&!(m!=null&&m.shiftKey)&&!(m!=null&&m.isComposing)){m.preventDefault();const g=r.closest("form");g!=null&&g.requestSubmit&&g.requestSubmit()}}en(()=>(u(),()=>clearTimeout(a)));function d(m){ie[m?"unshift":"push"](()=>{r=m,t(1,r)})}function p(){l=this.value,t(0,l)}return n.$$set=m=>{e=je(je({},e),Zt(m)),t(3,s=xe(e,i)),"value"in m&&t(0,l=m.value),"maxHeight"in m&&t(4,o=m.maxHeight)},n.$$.update=()=>{n.$$.dirty&1&&typeof l!==void 0&&u()},[l,r,f,s,o,d,p]}class OM extends ye{constructor(e){super(),ve(this,e,MM,TM,_e,{value:0,maxHeight:4})}}function DM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p;function m(_){n[2](_)}let g={id:n[3],required:n[1].required};return n[0]!==void 0&&(g.value=n[0]),f=new OM({props:g}),ie.push(()=>he(f,"value",m)),{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),U(f.$$.fragment),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3])},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),z(f,_,b),p=!0},p(_,b){(!p||b&2&&i!==(i=H.getFieldTypeIcon(_[1].type)))&&h(t,"class",i),(!p||b&2)&&o!==(o=_[1].name+"")&&le(r,o),(!p||b&8&&a!==(a=_[3]))&&h(e,"for",a);const k={};b&8&&(k.id=_[3]),b&2&&(k.required=_[1].required),!d&&b&1&&(d=!0,k.value=_[0],ke(()=>d=!1)),f.$set(k)},i(_){p||(A(f.$$.fragment,_),p=!0)},o(_){P(f.$$.fragment,_),p=!1},d(_){_&&w(e),_&&w(u),B(f,_)}}}function EM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[DM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function AM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class IM extends ye{constructor(e){super(),ve(this,e,AM,EM,_e,{field:1,value:0})}}function PM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g,_,b;return{c(){var k,$;e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("input"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3]),h(f,"type","number"),h(f,"id",d=n[3]),f.required=p=n[1].required,h(f,"min",m=(k=n[1].options)==null?void 0:k.min),h(f,"max",g=($=n[1].options)==null?void 0:$.max),h(f,"step","any")},m(k,$){S(k,e,$),v(e,t),v(e,s),v(e,l),v(l,r),S(k,u,$),S(k,f,$),fe(f,n[0]),_||(b=J(f,"input",n[2]),_=!0)},p(k,$){var T,C;$&2&&i!==(i=H.getFieldTypeIcon(k[1].type))&&h(t,"class",i),$&2&&o!==(o=k[1].name+"")&&le(r,o),$&8&&a!==(a=k[3])&&h(e,"for",a),$&8&&d!==(d=k[3])&&h(f,"id",d),$&2&&p!==(p=k[1].required)&&(f.required=p),$&2&&m!==(m=(T=k[1].options)==null?void 0:T.min)&&h(f,"min",m),$&2&&g!==(g=(C=k[1].options)==null?void 0:C.max)&&h(f,"max",g),$&1&>(f.value)!==k[0]&&fe(f,k[0])},d(k){k&&w(e),k&&w(u),k&&w(f),_=!1,b()}}}function LM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[PM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function NM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=gt(this.value),t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class FM extends ye{constructor(e){super(),ve(this,e,NM,LM,_e,{field:1,value:0})}}function RM(n){let e,t,i,s,l=n[1].name+"",o,r,a,u;return{c(){e=y("input"),i=E(),s=y("label"),o=Y(l),h(e,"type","checkbox"),h(e,"id",t=n[3]),h(s,"for",r=n[3])},m(f,d){S(f,e,d),e.checked=n[0],S(f,i,d),S(f,s,d),v(s,o),a||(u=J(e,"change",n[2]),a=!0)},p(f,d){d&8&&t!==(t=f[3])&&h(e,"id",t),d&1&&(e.checked=f[0]),d&2&&l!==(l=f[1].name+"")&&le(o,l),d&8&&r!==(r=f[3])&&h(s,"for",r)},d(f){f&&w(e),f&&w(i),f&&w(s),a=!1,u()}}}function qM(n){let e,t;return e=new de({props:{class:"form-field form-field-toggle "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[RM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field form-field-toggle "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function jM(n,e,t){let{field:i=new wn}=e,{value:s=!1}=e;function l(){s=this.checked,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class VM extends ye{constructor(e){super(),ve(this,e,jM,qM,_e,{field:1,value:0})}}function HM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("input"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3]),h(f,"type","email"),h(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),fe(f,n[0]),m||(g=J(f,"input",n[2]),m=!0)},p(_,b){b&2&&i!==(i=H.getFieldTypeIcon(_[1].type))&&h(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&h(e,"for",a),b&8&&d!==(d=_[3])&&h(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&fe(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),m=!1,g()}}}function zM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[HM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function BM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class UM extends ye{constructor(e){super(),ve(this,e,BM,zM,_e,{field:1,value:0})}}function WM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("input"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3]),h(f,"type","url"),h(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),fe(f,n[0]),m||(g=J(f,"input",n[2]),m=!0)},p(_,b){b&2&&i!==(i=H.getFieldTypeIcon(_[1].type))&&h(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&h(e,"for",a),b&8&&d!==(d=_[3])&&h(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&fe(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),m=!1,g()}}}function YM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[WM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function KM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class JM extends ye{constructor(e){super(),ve(this,e,KM,YM,_e,{field:1,value:0})}}function Np(n){let e,t,i,s;return{c(){e=y("div"),t=y("button"),t.innerHTML='',h(t,"type","button"),h(t,"class","link-hint clear-btn svelte-11df51y"),h(e,"class","form-field-addon")},m(l,o){S(l,e,o),v(e,t),i||(s=[Ee(Ye.call(null,t,"Clear")),J(t,"click",n[5])],i=!0)},p:X,d(l){l&&w(e),i=!1,Ae(s)}}}function ZM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g,_,b=n[0]&&!n[1].required&&Np(n);function k(C){n[6](C)}function $(C){n[7](C)}let T={id:n[8],options:H.defaultFlatpickrOptions()};return n[2]!==void 0&&(T.value=n[2]),n[0]!==void 0&&(T.formattedValue=n[0]),p=new au({props:T}),ie.push(()=>he(p,"value",k)),ie.push(()=>he(p,"formattedValue",$)),p.$on("close",n[3]),{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),a=Y(" (UTC)"),f=E(),b&&b.c(),d=E(),U(p.$$.fragment),h(t,"class",i=os(H.getFieldTypeIcon(n[1].type))+" svelte-11df51y"),h(l,"class","txt"),h(e,"for",u=n[8])},m(C,D){S(C,e,D),v(e,t),v(e,s),v(e,l),v(l,r),v(l,a),S(C,f,D),b&&b.m(C,D),S(C,d,D),z(p,C,D),_=!0},p(C,D){(!_||D&2&&i!==(i=os(H.getFieldTypeIcon(C[1].type))+" svelte-11df51y"))&&h(t,"class",i),(!_||D&2)&&o!==(o=C[1].name+"")&&le(r,o),(!_||D&256&&u!==(u=C[8]))&&h(e,"for",u),C[0]&&!C[1].required?b?b.p(C,D):(b=Np(C),b.c(),b.m(d.parentNode,d)):b&&(b.d(1),b=null);const M={};D&256&&(M.id=C[8]),!m&&D&4&&(m=!0,M.value=C[2],ke(()=>m=!1)),!g&&D&1&&(g=!0,M.formattedValue=C[0],ke(()=>g=!1)),p.$set(M)},i(C){_||(A(p.$$.fragment,C),_=!0)},o(C){P(p.$$.fragment,C),_=!1},d(C){C&&w(e),C&&w(f),b&&b.d(C),C&&w(d),B(p,C)}}}function GM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[ZM,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&775&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function XM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=s;function o(d){d.detail&&d.detail.length==3&&t(0,s=d.detail[1])}function r(){t(0,s="")}const a=()=>r();function u(d){l=d,t(2,l),t(0,s)}function f(d){s=d,t(0,s)}return n.$$set=d=>{"field"in d&&t(1,i=d.field),"value"in d&&t(0,s=d.value)},n.$$.update=()=>{n.$$.dirty&1&&s&&s.length>19&&t(0,s=s.substring(0,19)),n.$$.dirty&5&&l!=s&&t(2,l=s)},[s,i,l,o,r,a,u,f]}class QM extends ye{constructor(e){super(),ve(this,e,XM,GM,_e,{field:1,value:0})}}function Fp(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=y("div"),t=Y("Select up to "),s=Y(i),l=Y(" items."),h(e,"class","help-block")},m(o,r){S(o,e,r),v(e,t),v(e,s),v(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&le(s,i)},d(o){o&&w(e)}}}function xM(n){var $,T,C,D,M;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;function _(O){n[3](O)}let b={id:n[4],toggle:!n[1].required||n[2],multiple:n[2],closable:!n[2]||(($=n[0])==null?void 0:$.length)>=((T=n[1].options)==null?void 0:T.maxSelect),items:(C=n[1].options)==null?void 0:C.values,searchable:((D=n[1].options)==null?void 0:D.values)>5};n[0]!==void 0&&(b.selected=n[0]),f=new uu({props:b}),ie.push(()=>he(f,"selected",_));let k=((M=n[1].options)==null?void 0:M.maxSelect)>1&&Fp(n);return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),U(f.$$.fragment),p=E(),k&&k.c(),m=Ce(),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[4])},m(O,I){S(O,e,I),v(e,t),v(e,s),v(e,l),v(l,r),S(O,u,I),z(f,O,I),S(O,p,I),k&&k.m(O,I),S(O,m,I),g=!0},p(O,I){var F,q,N,R,j;(!g||I&2&&i!==(i=H.getFieldTypeIcon(O[1].type)))&&h(t,"class",i),(!g||I&2)&&o!==(o=O[1].name+"")&&le(r,o),(!g||I&16&&a!==(a=O[4]))&&h(e,"for",a);const L={};I&16&&(L.id=O[4]),I&6&&(L.toggle=!O[1].required||O[2]),I&4&&(L.multiple=O[2]),I&7&&(L.closable=!O[2]||((F=O[0])==null?void 0:F.length)>=((q=O[1].options)==null?void 0:q.maxSelect)),I&2&&(L.items=(N=O[1].options)==null?void 0:N.values),I&2&&(L.searchable=((R=O[1].options)==null?void 0:R.values)>5),!d&&I&1&&(d=!0,L.selected=O[0],ke(()=>d=!1)),f.$set(L),((j=O[1].options)==null?void 0:j.maxSelect)>1?k?k.p(O,I):(k=Fp(O),k.c(),k.m(m.parentNode,m)):k&&(k.d(1),k=null)},i(O){g||(A(f.$$.fragment,O),g=!0)},o(O){P(f.$$.fragment,O),g=!1},d(O){O&&w(e),O&&w(u),B(f,O),O&&w(p),k&&k.d(O),O&&w(m)}}}function e6(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[xM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function t6(n,e,t){let i,{field:s=new wn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)>1),n.$$.dirty&5&&typeof l>"u"&&t(0,l=i?[]:""),n.$$.dirty&7&&i&&Array.isArray(l)&&l.length>s.options.maxSelect&&t(0,l=l.slice(l.length-s.options.maxSelect))},[l,s,i,o]}class n6 extends ye{constructor(e){super(),ve(this,e,t6,e6,_e,{field:1,value:0})}}function i6(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("textarea"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[4]),h(f,"id",d=n[4]),h(f,"class","txt-mono"),f.required=p=n[1].required,f.value=n[2]},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),m||(g=J(f,"input",n[3]),m=!0)},p(_,b){b&2&&i!==(i=H.getFieldTypeIcon(_[1].type))&&h(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&16&&a!==(a=_[4])&&h(e,"for",a),b&16&&d!==(d=_[4])&&h(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&4&&(f.value=_[2])},d(_){_&&w(e),_&&w(u),_&&w(f),m=!1,g()}}}function s6(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[i6,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function l6(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=JSON.stringify(typeof s>"u"?null:s,null,2);const o=r=>{t(2,l=r.target.value),t(0,s=r.target.value.trim())};return n.$$set=r=>{"field"in r&&t(1,i=r.field),"value"in r&&t(0,s=r.value)},n.$$.update=()=>{n.$$.dirty&5&&s!==(l==null?void 0:l.trim())&&(t(2,l=JSON.stringify(typeof s>"u"?null:s,null,2)),t(0,s=l))},[s,i,l,o]}class o6 extends ye{constructor(e){super(),ve(this,e,l6,s6,_e,{field:1,value:0})}}function r6(n){let e,t;return{c(){e=y("i"),h(e,"class","ri-file-line"),h(e,"alt",t=n[0].name)},m(i,s){S(i,e,s)},p(i,s){s&1&&t!==(t=i[0].name)&&h(e,"alt",t)},d(i){i&&w(e)}}}function a6(n){let e,t,i;return{c(){e=y("img"),mn(e.src,t=n[2])||h(e,"src",t),h(e,"width",n[1]),h(e,"height",n[1]),h(e,"alt",i=n[0].name)},m(s,l){S(s,e,l)},p(s,l){l&4&&!mn(e.src,t=s[2])&&h(e,"src",t),l&2&&h(e,"width",s[1]),l&2&&h(e,"height",s[1]),l&1&&i!==(i=s[0].name)&&h(e,"alt",i)},d(s){s&&w(e)}}}function u6(n){let e;function t(l,o){return l[2]?a6:r6}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:X,o:X,d(l){s.d(l),l&&w(e)}}}function f6(n,e,t){let i,{file:s}=e,{size:l=50}=e;function o(){t(2,i=""),H.hasImageExtension(s==null?void 0:s.name)&&H.generateThumb(s,l,l).then(r=>{t(2,i=r)}).catch(r=>{console.warn("Unable to generate thumb: ",r)})}return n.$$set=r=>{"file"in r&&t(0,s=r.file),"size"in r&&t(1,l=r.size)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&o()},t(2,i=""),[s,l,i]}class c6 extends ye{constructor(e){super(),ve(this,e,f6,u6,_e,{file:0,size:1})}}function Rp(n){let e;function t(l,o){return l[4]==="image"?p6:d6}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function d6(n){let e,t;return{c(){e=y("object"),t=Y("Cannot preview the file."),h(e,"title",n[2]),h(e,"data",n[1])},m(i,s){S(i,e,s),v(e,t)},p(i,s){s&4&&h(e,"title",i[2]),s&2&&h(e,"data",i[1])},d(i){i&&w(e)}}}function p6(n){let e,t,i;return{c(){e=y("img"),mn(e.src,t=n[1])||h(e,"src",t),h(e,"alt",i="Preview "+n[2])},m(s,l){S(s,e,l)},p(s,l){l&2&&!mn(e.src,t=s[1])&&h(e,"src",t),l&4&&i!==(i="Preview "+s[2])&&h(e,"alt",i)},d(s){s&&w(e)}}}function m6(n){var s;let e=(s=n[3])==null?void 0:s.isActive(),t,i=e&&Rp(n);return{c(){i&&i.c(),t=Ce()},m(l,o){i&&i.m(l,o),S(l,t,o)},p(l,o){var r;o&8&&(e=(r=l[3])==null?void 0:r.isActive()),e?i?i.p(l,o):(i=Rp(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(l){i&&i.d(l),l&&w(t)}}}function h6(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",at(n[0])),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function _6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("a"),t=Y(n[2]),i=E(),s=y("i"),l=E(),o=y("div"),r=E(),a=y("button"),a.textContent="Close",h(s,"class","ri-external-link-line"),h(e,"href",n[1]),h(e,"title",n[2]),h(e,"target","_blank"),h(e,"rel","noreferrer noopener"),h(e,"class","link-hint txt-ellipsis inline-flex"),h(o,"class","flex-fill"),h(a,"type","button"),h(a,"class","btn btn-transparent")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,l,p),S(d,o,p),S(d,r,p),S(d,a,p),u||(f=J(a,"click",n[0]),u=!0)},p(d,p){p&4&&le(t,d[2]),p&2&&h(e,"href",d[1]),p&4&&h(e,"title",d[2])},d(d){d&&w(e),d&&w(l),d&&w(o),d&&w(r),d&&w(a),u=!1,f()}}}function g6(n){let e,t,i={class:"preview preview-"+n[4],btnClose:!1,popup:!0,$$slots:{footer:[_6],header:[h6],default:[m6]},$$scope:{ctx:n}};return e=new hn({props:i}),n[7](e),e.$on("show",n[8]),e.$on("hide",n[9]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.class="preview preview-"+s[4]),l&1054&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[7](null),B(e,s)}}}function b6(n,e,t){let i,s,l,o,r="";function a(m){m!==""&&(t(1,r=m),o==null||o.show())}function u(){return o==null?void 0:o.hide()}function f(m){ie[m?"unshift":"push"](()=>{o=m,t(3,o)})}function d(m){me.call(this,n,m)}function p(m){me.call(this,n,m)}return n.$$.update=()=>{n.$$.dirty&2&&t(6,i=r.indexOf("?")),n.$$.dirty&66&&t(2,s=r.substring(r.lastIndexOf("/")+1,i>0?i:void 0)),n.$$.dirty&4&&t(4,l=H.getFileType(s))},[u,r,s,o,l,a,i,f,d,p]}class v6 extends ye{constructor(e){super(),ve(this,e,b6,g6,_e,{show:5,hide:0})}get show(){return this.$$.ctx[5]}get hide(){return this.$$.ctx[0]}}function y6(n){let e,t,i,s,l;function o(u,f){return u[3]==="image"?$6:u[3]==="video"||u[3]==="audio"?S6:w6}let r=o(n),a=r(n);return{c(){e=y("a"),a.c(),h(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:"")),h(e,"href",n[6]),h(e,"target","_blank"),h(e,"rel","noreferrer"),h(e,"title",i=(n[7]?"Preview":"Download")+" "+n[0])},m(u,f){S(u,e,f),a.m(e,null),s||(l=J(e,"click",An(n[11])),s=!0)},p(u,f){r===(r=o(u))&&a?a.p(u,f):(a.d(1),a=r(u),a&&(a.c(),a.m(e,null))),f&2&&t!==(t="thumb "+(u[1]?`thumb-${u[1]}`:""))&&h(e,"class",t),f&64&&h(e,"href",u[6]),f&129&&i!==(i=(u[7]?"Preview":"Download")+" "+u[0])&&h(e,"title",i)},d(u){u&&w(e),a.d(),s=!1,l()}}}function k6(n){let e,t;return{c(){e=y("div"),h(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:""))},m(i,s){S(i,e,s)},p(i,s){s&2&&t!==(t="thumb "+(i[1]?`thumb-${i[1]}`:""))&&h(e,"class",t)},d(i){i&&w(e)}}}function w6(n){let e;return{c(){e=y("i"),h(e,"class","ri-file-3-line")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function S6(n){let e;return{c(){e=y("i"),h(e,"class","ri-video-line")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function $6(n){let e,t,i,s,l;return{c(){e=y("img"),mn(e.src,t=n[5])||h(e,"src",t),h(e,"alt",n[0]),h(e,"title",i="Preview "+n[0])},m(o,r){S(o,e,r),s||(l=J(e,"error",n[8]),s=!0)},p(o,r){r&32&&!mn(e.src,t=o[5])&&h(e,"src",t),r&1&&h(e,"alt",o[0]),r&1&&i!==(i="Preview "+o[0])&&h(e,"title",i)},d(o){o&&w(e),s=!1,l()}}}function C6(n){let e,t,i;function s(a,u){return a[2]?k6:y6}let l=s(n),o=l(n),r={};return t=new v6({props:r}),n[12](t),{c(){o.c(),e=E(),U(t.$$.fragment)},m(a,u){o.m(a,u),S(a,e,u),z(t,a,u),i=!0},p(a,[u]){l===(l=s(a))&&o?o.p(a,u):(o.d(1),o=l(a),o&&(o.c(),o.m(e.parentNode,e)));const f={};t.$set(f)},i(a){i||(A(t.$$.fragment,a),i=!0)},o(a){P(t.$$.fragment,a),i=!1},d(a){o.d(a),a&&w(e),n[12](null),B(t,a)}}}function T6(n,e,t){let i,s,{record:l=null}=e,{filename:o=""}=e,{size:r=""}=e,a,u="",f="",d="",p=!1;m();async function m(){t(2,p=!0);try{t(10,d=await pe.getAdminFileToken(l.collectionId))}catch(k){console.warn("File token failure:",k)}t(2,p=!1)}function g(){t(5,u="")}const _=k=>{s&&(k.preventDefault(),a==null||a.show(f))};function b(k){ie[k?"unshift":"push"](()=>{a=k,t(4,a)})}return n.$$set=k=>{"record"in k&&t(9,l=k.record),"filename"in k&&t(0,o=k.filename),"size"in k&&t(1,r=k.size)},n.$$.update=()=>{n.$$.dirty&1&&t(3,i=H.getFileType(o)),n.$$.dirty&9&&t(7,s=["image","audio","video"].includes(i)||o.endsWith(".pdf")),n.$$.dirty&1541&&t(6,f=p?"":pe.files.getUrl(l,o,{token:d})),n.$$.dirty&1541&&t(5,u=p?"":pe.files.getUrl(l,o,{thumb:"100x100",token:d}))},[o,r,p,i,a,u,f,s,g,l,d,_,b]}class cu extends ye{constructor(e){super(),ve(this,e,T6,C6,_e,{record:9,filename:0,size:1})}}function qp(n,e,t){const i=n.slice();return i[27]=e[t],i[29]=t,i}function jp(n,e,t){const i=n.slice();i[30]=e[t],i[29]=t;const s=i[1].includes(i[29]);return i[31]=s,i}function M6(n){let e,t,i;function s(){return n[17](n[29])}return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove")},m(l,o){S(l,e,o),t||(i=[Ee(Ye.call(null,e,"Remove file")),J(e,"click",s)],t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,Ae(i)}}}function O6(n){let e,t,i;function s(){return n[16](n[29])}return{c(){e=y("button"),e.innerHTML='Restore',h(e,"type","button"),h(e,"class","btn btn-sm btn-danger btn-transparent")},m(l,o){S(l,e,o),t||(i=J(e,"click",s),t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,i()}}}function Vp(n,e){let t,i,s,l,o,r,a=e[30]+"",u,f,d,p,m,g,_;s=new cu({props:{record:e[2],filename:e[30]}});function b(T,C){return C[0]&18&&(g=null),g==null&&(g=!!T[1].includes(T[29])),g?O6:M6}let k=b(e,[-1,-1]),$=k(e);return{key:n,first:null,c(){t=y("div"),i=y("div"),U(s.$$.fragment),l=E(),o=y("div"),r=y("a"),u=Y(a),p=E(),m=y("div"),$.c(),x(i,"fade",e[1].includes(e[29])),h(r,"href",f=pe.files.getUrl(e[2],e[30],{token:e[9]})),h(r,"class",d="txt-ellipsis "+(e[31]?"txt-strikethrough txt-hint":"link-primary")),h(r,"title","Download"),h(r,"target","_blank"),h(r,"rel","noopener noreferrer"),h(o,"class","content"),h(m,"class","actions"),h(t,"class","list-item"),this.first=t},m(T,C){S(T,t,C),v(t,i),z(s,i,null),v(t,l),v(t,o),v(o,r),v(r,u),v(t,p),v(t,m),$.m(m,null),_=!0},p(T,C){e=T;const D={};C[0]&4&&(D.record=e[2]),C[0]&16&&(D.filename=e[30]),s.$set(D),(!_||C[0]&18)&&x(i,"fade",e[1].includes(e[29])),(!_||C[0]&16)&&a!==(a=e[30]+"")&&le(u,a),(!_||C[0]&532&&f!==(f=pe.files.getUrl(e[2],e[30],{token:e[9]})))&&h(r,"href",f),(!_||C[0]&18&&d!==(d="txt-ellipsis "+(e[31]?"txt-strikethrough txt-hint":"link-primary")))&&h(r,"class",d),k===(k=b(e,C))&&$?$.p(e,C):($.d(1),$=k(e),$&&($.c(),$.m(m,null)))},i(T){_||(A(s.$$.fragment,T),_=!0)},o(T){P(s.$$.fragment,T),_=!1},d(T){T&&w(t),B(s),$.d()}}}function Hp(n){let e,t,i,s,l,o,r,a,u=n[27].name+"",f,d,p,m,g,_,b;i=new c6({props:{file:n[27]}});function k(){return n[18](n[29])}return{c(){e=y("div"),t=y("figure"),U(i.$$.fragment),s=E(),l=y("div"),o=y("small"),o.textContent="New",r=E(),a=y("span"),f=Y(u),p=E(),m=y("button"),m.innerHTML='',h(t,"class","thumb"),h(o,"class","label label-success m-r-5"),h(a,"class","txt"),h(l,"class","filename m-r-auto"),h(l,"title",d=n[27].name),h(m,"type","button"),h(m,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove"),h(e,"class","list-item")},m($,T){S($,e,T),v(e,t),z(i,t,null),v(e,s),v(e,l),v(l,o),v(l,r),v(l,a),v(a,f),v(e,p),v(e,m),g=!0,_||(b=[Ee(Ye.call(null,m,"Remove file")),J(m,"click",k)],_=!0)},p($,T){n=$;const C={};T[0]&1&&(C.file=n[27]),i.$set(C),(!g||T[0]&1)&&u!==(u=n[27].name+"")&&le(f,u),(!g||T[0]&1&&d!==(d=n[27].name))&&h(l,"title",d)},i($){g||(A(i.$$.fragment,$),g=!0)},o($){P(i.$$.fragment,$),g=!1},d($){$&&w(e),B(i),_=!1,Ae(b)}}}function D6(n){let e,t,i,s,l,o=n[3].name+"",r,a,u,f,d=[],p=new Map,m,g,_,b,k,$,T,C,D,M,O,I,L=n[4];const F=j=>j[30]+j[2].id;for(let j=0;jP(N[j],1,1,()=>{N[j]=null});return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("div");for(let j=0;jNew collection`,h(t,"type","button"),h(t,"class","btn btn-block btn-outline"),h(e,"class","sidebar-footer")},m(l,o){S(l,e,o),v(e,t),i||(s=J(t,"click",n[12]),i=!0)},p:X,d(l){l&&w(e),i=!1,s()}}}function lM(n){let e,t,i,s,l,o,r,a,u,f,d,p=[],m=new Map,g,_,b,k,$,T,C=n[3];const D=L=>L[15].id;for(let L=0;L',o=E(),r=y("input"),a=E(),u=y("hr"),f=E(),d=y("div");for(let L=0;L20),h(e,"class","page-sidebar collection-sidebar")},m(L,F){S(L,e,F),v(e,t),v(t,i),v(i,s),v(s,l),v(i,o),v(i,r),fe(r,n[0]),v(e,a),v(e,u),v(e,f),v(e,d);for(let q=0;q20),L[7]?O&&(O.d(1),O=null):O?O.p(L,F):(O=Cp(L),O.c(),O.m(e,null));const q={};b.$set(q)},i(L){k||(A(b.$$.fragment,L),k=!0)},o(L){P(b.$$.fragment,L),k=!1},d(L){L&&w(e);for(let F=0;F{const n=document.querySelector(".collection-sidebar .sidebar-list-item.active");n&&(n==null||n.scrollIntoView({block:"nearest"}))},0)}function rM(n,e,t){let i,s,l,o,r,a,u;Ze(n,ui,$=>t(5,o=$)),Ze(n,ci,$=>t(9,r=$)),Ze(n,yo,$=>t(6,a=$)),Ze(n,Es,$=>t(7,u=$));let f,d="";function p($){rn(ui,o=$,o)}const m=()=>t(0,d="");function g(){d=this.value,t(0,d)}const _=()=>f==null?void 0:f.show();function b($){ie[$?"unshift":"push"](()=>{f=$,t(2,f)})}const k=$=>{var T;(T=$.detail)!=null&&T.isNew&&$.detail.collection&&p($.detail.collection)};return n.$$.update=()=>{n.$$.dirty&512&&r&&oM(),n.$$.dirty&1&&t(1,i=d.replace(/\s+/g,"").toLowerCase()),n.$$.dirty&1&&t(4,s=d!==""),n.$$.dirty&515&&t(3,l=r.filter($=>$.id==d||$.name.replace(/\s+/g,"").toLowerCase().includes(i)))},[d,i,f,l,s,o,a,u,p,r,m,g,_,b,k]}class aM extends ye{constructor(e){super(),ve(this,e,rM,lM,_e,{})}}function Tp(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Mp(n){n[18]=n[19].default}function Op(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i[21]=t,i}function Dp(n){let e;return{c(){e=y("hr"),h(e,"class","m-t-sm m-b-sm")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Ep(n,e){let t,i=e[21]===Object.keys(e[6]).length,s,l,o=e[15].label+"",r,a,u,f,d=i&&Dp();function p(){return e[9](e[14])}return{key:n,first:null,c(){t=Ce(),d&&d.c(),s=E(),l=y("button"),r=Y(o),a=E(),h(l,"type","button"),h(l,"class","sidebar-item"),x(l,"active",e[5]===e[14]),this.first=t},m(m,g){S(m,t,g),d&&d.m(m,g),S(m,s,g),S(m,l,g),v(l,r),v(l,a),u||(f=J(l,"click",p),u=!0)},p(m,g){e=m,g&8&&(i=e[21]===Object.keys(e[6]).length),i?d||(d=Dp(),d.c(),d.m(s.parentNode,s)):d&&(d.d(1),d=null),g&8&&o!==(o=e[15].label+"")&&le(r,o),g&40&&x(l,"active",e[5]===e[14])},d(m){m&&w(t),d&&d.d(m),m&&w(s),m&&w(l),u=!1,f()}}}function Ap(n){let e,t,i,s={ctx:n,current:null,token:null,hasCatch:!1,pending:cM,then:fM,catch:uM,value:19,blocks:[,,,]};return _u(t=n[15].component,s),{c(){e=Ce(),s.block.c()},m(l,o){S(l,e,o),s.block.m(l,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,i=!0},p(l,o){n=l,s.ctx=n,o&8&&t!==(t=n[15].component)&&_u(t,s)||zb(s,n,o)},i(l){i||(A(s.block),i=!0)},o(l){for(let o=0;o<3;o+=1){const r=s.blocks[o];P(r)}i=!1},d(l){l&&w(e),s.block.d(l),s.token=null,s=null}}}function uM(n){return{c:X,m:X,p:X,i:X,o:X,d:X}}function fM(n){Mp(n);let e,t,i;return e=new n[18]({props:{collection:n[2]}}),{c(){U(e.$$.fragment),t=E()},m(s,l){z(e,s,l),S(s,t,l),i=!0},p(s,l){Mp(s);const o={};l&4&&(o.collection=s[2]),e.$set(o)},i(s){i||(A(e.$$.fragment,s),i=!0)},o(s){P(e.$$.fragment,s),i=!1},d(s){B(e,s),s&&w(t)}}}function cM(n){return{c:X,m:X,p:X,i:X,o:X,d:X}}function Ip(n,e){let t,i,s,l=e[5]===e[14]&&Ap(e);return{key:n,first:null,c(){t=Ce(),l&&l.c(),i=Ce(),this.first=t},m(o,r){S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){e=o,e[5]===e[14]?l?(l.p(e,r),r&40&&A(l,1)):(l=Ap(e),l.c(),A(l,1),l.m(i.parentNode,i)):l&&(re(),P(l,1,1,()=>{l=null}),ae())},i(o){s||(A(l),s=!0)},o(o){P(l),s=!1},d(o){o&&w(t),l&&l.d(o),o&&w(i)}}}function dM(n){let e,t,i,s=[],l=new Map,o,r,a=[],u=new Map,f,d=Object.entries(n[3]);const p=_=>_[14];for(let _=0;__[14];for(let _=0;_Close',h(e,"type","button"),h(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[8]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function mM(n){let e,t,i={class:"docs-panel",$$slots:{footer:[pM],default:[dM]},$$scope:{ctx:n}};return e=new hn({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4194348&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[10](null),B(e,s)}}}function hM(n,e,t){const i={list:{label:"List/Search",component:rt(()=>import("./ListApiDocs-c09270cb.js"),["./ListApiDocs-c09270cb.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css","./ListApiDocs-68f52edd.css"],import.meta.url)},view:{label:"View",component:rt(()=>import("./ViewApiDocs-c7f9b4ff.js"),["./ViewApiDocs-c7f9b4ff.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},create:{label:"Create",component:rt(()=>import("./CreateApiDocs-b5577e9f.js"),["./CreateApiDocs-b5577e9f.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},update:{label:"Update",component:rt(()=>import("./UpdateApiDocs-f0212d5c.js"),["./UpdateApiDocs-f0212d5c.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},delete:{label:"Delete",component:rt(()=>import("./DeleteApiDocs-119583b1.js"),["./DeleteApiDocs-119583b1.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},realtime:{label:"Realtime",component:rt(()=>import("./RealtimeApiDocs-619375a5.js"),["./RealtimeApiDocs-619375a5.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}},s={"auth-with-password":{label:"Auth with password",component:rt(()=>import("./AuthWithPasswordDocs-f589841e.js"),["./AuthWithPasswordDocs-f589841e.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"auth-with-oauth2":{label:"Auth with OAuth2",component:rt(()=>import("./AuthWithOAuth2Docs-88c9d62b.js"),["./AuthWithOAuth2Docs-88c9d62b.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},refresh:{label:"Auth refresh",component:rt(()=>import("./AuthRefreshDocs-20cba9fe.js"),["./AuthRefreshDocs-20cba9fe.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-verification":{label:"Request verification",component:rt(()=>import("./RequestVerificationDocs-03f820dd.js"),["./RequestVerificationDocs-03f820dd.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-verification":{label:"Confirm verification",component:rt(()=>import("./ConfirmVerificationDocs-d0a10dda.js"),["./ConfirmVerificationDocs-d0a10dda.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-password-reset":{label:"Request password reset",component:rt(()=>import("./RequestPasswordResetDocs-d4b15fc0.js"),["./RequestPasswordResetDocs-d4b15fc0.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-password-reset":{label:"Confirm password reset",component:rt(()=>import("./ConfirmPasswordResetDocs-1717dd10.js"),["./ConfirmPasswordResetDocs-1717dd10.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-email-change":{label:"Request email change",component:rt(()=>import("./RequestEmailChangeDocs-f05b8fdc.js"),["./RequestEmailChangeDocs-f05b8fdc.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-email-change":{label:"Confirm email change",component:rt(()=>import("./ConfirmEmailChangeDocs-44f473ac.js"),["./ConfirmEmailChangeDocs-44f473ac.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-auth-methods":{label:"List auth methods",component:rt(()=>import("./AuthMethodsDocs-30a70c3c.js"),["./AuthMethodsDocs-30a70c3c.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-linked-accounts":{label:"List OAuth2 accounts",component:rt(()=>import("./ListExternalAuthsDocs-7ba4a808.js"),["./ListExternalAuthsDocs-7ba4a808.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"unlink-account":{label:"Unlink OAuth2 account",component:rt(()=>import("./UnlinkExternalAuthDocs-77e25192.js"),["./UnlinkExternalAuthDocs-77e25192.js","./SdkTabs-bc0a52ba.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}};let l,o=new kn,r,a=[];a.length&&(r=Object.keys(a)[0]);function u(k){return t(2,o=k),d(Object.keys(a)[0]),l==null?void 0:l.show()}function f(){return l==null?void 0:l.hide()}function d(k){t(5,r=k)}const p=()=>f(),m=k=>d(k);function g(k){ie[k?"unshift":"push"](()=>{l=k,t(4,l)})}function _(k){me.call(this,n,k)}function b(k){me.call(this,n,k)}return n.$$.update=()=>{n.$$.dirty&12&&(o.$isAuth?(t(3,a=Object.assign({},i,s)),!(o!=null&&o.options.allowUsernameAuth)&&!(o!=null&&o.options.allowEmailAuth)&&delete a["auth-with-password"],o!=null&&o.options.allowOAuth2Auth||delete a["auth-with-oauth2"]):o.$isView?(t(3,a=Object.assign({},i)),delete a.create,delete a.update,delete a.delete,delete a.realtime):t(3,a=Object.assign({},i)))},[f,d,o,a,l,r,i,u,p,m,g,_,b]}class _M extends ye{constructor(e){super(),ve(this,e,hM,mM,_e,{show:7,hide:0,changeTab:1})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}get changeTab(){return this.$$.ctx[1]}}function gM(n){let e,t,i,s,l,o,r,a,u,f,d,p;return{c(){e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Username",o=E(),r=y("input"),h(t,"class",H.getFieldTypeIcon("user")),h(s,"class","txt"),h(e,"for",l=n[13]),h(r,"type","text"),h(r,"requried",a=!n[2]),h(r,"placeholder",u=n[2]?"Leave empty to auto generate...":n[4]),h(r,"id",f=n[13])},m(m,g){S(m,e,g),v(e,t),v(e,i),v(e,s),S(m,o,g),S(m,r,g),fe(r,n[0].username),d||(p=J(r,"input",n[5]),d=!0)},p(m,g){g&8192&&l!==(l=m[13])&&h(e,"for",l),g&4&&a!==(a=!m[2])&&h(r,"requried",a),g&4&&u!==(u=m[2]?"Leave empty to auto generate...":m[4])&&h(r,"placeholder",u),g&8192&&f!==(f=m[13])&&h(r,"id",f),g&1&&r.value!==m[0].username&&fe(r,m[0].username)},d(m){m&&w(e),m&&w(o),m&&w(r),d=!1,p()}}}function bM(n){let e,t,i,s,l,o,r,a,u,f,d=n[0].emailVisibility?"On":"Off",p,m,g,_,b,k,$,T;return{c(){var C;e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Email",o=E(),r=y("div"),a=y("button"),u=y("span"),f=Y("Public: "),p=Y(d),g=E(),_=y("input"),h(t,"class",H.getFieldTypeIcon("email")),h(s,"class","txt"),h(e,"for",l=n[13]),h(u,"class","txt"),h(a,"type","button"),h(a,"class",m="btn btn-sm btn-transparent "+(n[0].emailVisibility?"btn-success":"btn-hint")),h(r,"class","form-field-addon email-visibility-addon svelte-1751a4d"),h(_,"type","email"),_.autofocus=n[2],h(_,"autocomplete","off"),h(_,"id",b=n[13]),_.required=k=(C=n[1].options)==null?void 0:C.requireEmail,h(_,"class","svelte-1751a4d")},m(C,D){S(C,e,D),v(e,t),v(e,i),v(e,s),S(C,o,D),S(C,r,D),v(r,a),v(a,u),v(u,f),v(u,p),S(C,g,D),S(C,_,D),fe(_,n[0].email),n[2]&&_.focus(),$||(T=[Ee(Ye.call(null,a,{text:"Make email public or private",position:"top-right"})),J(a,"click",n[6]),J(_,"input",n[7])],$=!0)},p(C,D){var M;D&8192&&l!==(l=C[13])&&h(e,"for",l),D&1&&d!==(d=C[0].emailVisibility?"On":"Off")&&le(p,d),D&1&&m!==(m="btn btn-sm btn-transparent "+(C[0].emailVisibility?"btn-success":"btn-hint"))&&h(a,"class",m),D&4&&(_.autofocus=C[2]),D&8192&&b!==(b=C[13])&&h(_,"id",b),D&2&&k!==(k=(M=C[1].options)==null?void 0:M.requireEmail)&&(_.required=k),D&1&&_.value!==C[0].email&&fe(_,C[0].email)},d(C){C&&w(e),C&&w(o),C&&w(r),C&&w(g),C&&w(_),$=!1,Ae(T)}}}function Pp(n){let e,t;return e=new de({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[vM,({uniqueId:i})=>({13:i}),({uniqueId:i})=>i?8192:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&24584&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function vM(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Change password"),h(e,"type","checkbox"),h(e,"id",t=n[13]),h(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[3],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[8]),r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&h(e,"id",t),f&8&&(e.checked=u[3]),f&8192&&o!==(o=u[13])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Lp(n){let e,t,i,s,l,o,r,a,u;return s=new de({props:{class:"form-field required",name:"password",$$slots:{default:[yM,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),r=new de({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[kM,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=y("div"),U(s.$$.fragment),l=E(),o=y("div"),U(r.$$.fragment),h(i,"class","col-sm-6"),h(o,"class","col-sm-6"),h(t,"class","grid"),x(t,"p-t-xs",n[3]),h(e,"class","block")},m(f,d){S(f,e,d),v(e,t),v(t,i),z(s,i,null),v(t,l),v(t,o),z(r,o,null),u=!0},p(f,d){const p={};d&24577&&(p.$$scope={dirty:d,ctx:f}),s.$set(p);const m={};d&24577&&(m.$$scope={dirty:d,ctx:f}),r.$set(m),(!u||d&8)&&x(t,"p-t-xs",f[3])},i(f){u||(A(s.$$.fragment,f),A(r.$$.fragment,f),f&&tt(()=>{u&&(a||(a=ze(e,bt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){P(s.$$.fragment,f),P(r.$$.fragment,f),f&&(a||(a=ze(e,bt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),B(s),B(r),f&&a&&a.end()}}}function yM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Password",o=E(),r=y("input"),h(t,"class","ri-lock-line"),h(s,"class","txt"),h(e,"for",l=n[13]),h(r,"type","password"),h(r,"autocomplete","new-password"),h(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),fe(r,n[0].password),u||(f=J(r,"input",n[9]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&h(e,"for",l),p&8192&&a!==(a=d[13])&&h(r,"id",a),p&1&&r.value!==d[0].password&&fe(r,d[0].password)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function kM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=E(),s=y("span"),s.textContent="Password confirm",o=E(),r=y("input"),h(t,"class","ri-lock-line"),h(s,"class","txt"),h(e,"for",l=n[13]),h(r,"type","password"),h(r,"autocomplete","new-password"),h(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),fe(r,n[0].passwordConfirm),u||(f=J(r,"input",n[10]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&h(e,"for",l),p&8192&&a!==(a=d[13])&&h(r,"id",a),p&1&&r.value!==d[0].passwordConfirm&&fe(r,d[0].passwordConfirm)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function wM(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Verified"),h(e,"type","checkbox"),h(e,"id",t=n[13]),h(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[0].verified,S(u,i,f),S(u,s,f),v(s,l),r||(a=[J(e,"change",n[11]),J(e,"change",at(n[12]))],r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&h(e,"id",t),f&1&&(e.checked=u[0].verified),f&8192&&o!==(o=u[13])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,Ae(a)}}}function SM(n){var b;let e,t,i,s,l,o,r,a,u,f,d,p,m;i=new de({props:{class:"form-field "+(n[2]?"":"required"),name:"username",$$slots:{default:[gM,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field "+((b=n[1].options)!=null&&b.requireEmail?"required":""),name:"email",$$slots:{default:[bM,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}});let g=!n[2]&&Pp(n),_=(n[2]||n[3])&&Lp(n);return p=new de({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[wM,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),g&&g.c(),u=E(),_&&_.c(),f=E(),d=y("div"),U(p.$$.fragment),h(t,"class","col-lg-6"),h(l,"class","col-lg-6"),h(a,"class","col-lg-12"),h(d,"class","col-lg-12"),h(e,"class","grid m-b-base")},m(k,$){S(k,e,$),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),g&&g.m(a,null),v(a,u),_&&_.m(a,null),v(e,f),v(e,d),z(p,d,null),m=!0},p(k,[$]){var M;const T={};$&4&&(T.class="form-field "+(k[2]?"":"required")),$&24581&&(T.$$scope={dirty:$,ctx:k}),i.$set(T);const C={};$&2&&(C.class="form-field "+((M=k[1].options)!=null&&M.requireEmail?"required":"")),$&24583&&(C.$$scope={dirty:$,ctx:k}),o.$set(C),k[2]?g&&(re(),P(g,1,1,()=>{g=null}),ae()):g?(g.p(k,$),$&4&&A(g,1)):(g=Pp(k),g.c(),A(g,1),g.m(a,u)),k[2]||k[3]?_?(_.p(k,$),$&12&&A(_,1)):(_=Lp(k),_.c(),A(_,1),_.m(a,null)):_&&(re(),P(_,1,1,()=>{_=null}),ae());const D={};$&24581&&(D.$$scope={dirty:$,ctx:k}),p.$set(D)},i(k){m||(A(i.$$.fragment,k),A(o.$$.fragment,k),A(g),A(_),A(p.$$.fragment,k),m=!0)},o(k){P(i.$$.fragment,k),P(o.$$.fragment,k),P(g),P(_),P(p.$$.fragment,k),m=!1},d(k){k&&w(e),B(i),B(o),g&&g.d(),_&&_.d(),B(p)}}}function $M(n,e,t){let{collection:i=new kn}=e,{record:s=new ki}=e,{isNew:l=s.$isNew}=e,o=s.username||null,r=!1;function a(){s.username=this.value,t(0,s),t(3,r)}const u=()=>t(0,s.emailVisibility=!s.emailVisibility,s);function f(){s.email=this.value,t(0,s),t(3,r)}function d(){r=this.checked,t(3,r)}function p(){s.password=this.value,t(0,s),t(3,r)}function m(){s.passwordConfirm=this.value,t(0,s),t(3,r)}function g(){s.verified=this.checked,t(0,s),t(3,r)}const _=b=>{l||vn("Do you really want to manually change the verified account state?",()=>{},()=>{t(0,s.verified=!b.target.checked,s)})};return n.$$set=b=>{"collection"in b&&t(1,i=b.collection),"record"in b&&t(0,s=b.record),"isNew"in b&&t(2,l=b.isNew)},n.$$.update=()=>{n.$$.dirty&1&&!s.username&&s.username!==null&&t(0,s.username=null,s),n.$$.dirty&8&&(r||(t(0,s.password=null,s),t(0,s.passwordConfirm=null,s),Fi("password"),Fi("passwordConfirm")))},[s,i,l,r,o,a,u,f,d,p,m,g,_]}class CM extends ye{constructor(e){super(),ve(this,e,$M,SM,_e,{collection:1,record:0,isNew:2})}}function TM(n){let e,t,i,s=[n[3]],l={};for(let o=0;o{r&&(t(1,r.style.height="",r),t(1,r.style.height=Math.min(r.scrollHeight,o)+"px",r))},0)}function f(m){if((m==null?void 0:m.code)==="Enter"&&!(m!=null&&m.shiftKey)&&!(m!=null&&m.isComposing)){m.preventDefault();const g=r.closest("form");g!=null&&g.requestSubmit&&g.requestSubmit()}}en(()=>(u(),()=>clearTimeout(a)));function d(m){ie[m?"unshift":"push"](()=>{r=m,t(1,r)})}function p(){l=this.value,t(0,l)}return n.$$set=m=>{e=je(je({},e),Zt(m)),t(3,s=xe(e,i)),"value"in m&&t(0,l=m.value),"maxHeight"in m&&t(4,o=m.maxHeight)},n.$$.update=()=>{n.$$.dirty&1&&typeof l!==void 0&&u()},[l,r,f,s,o,d,p]}class OM extends ye{constructor(e){super(),ve(this,e,MM,TM,_e,{value:0,maxHeight:4})}}function DM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p;function m(_){n[2](_)}let g={id:n[3],required:n[1].required};return n[0]!==void 0&&(g.value=n[0]),f=new OM({props:g}),ie.push(()=>he(f,"value",m)),{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),U(f.$$.fragment),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3])},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),z(f,_,b),p=!0},p(_,b){(!p||b&2&&i!==(i=H.getFieldTypeIcon(_[1].type)))&&h(t,"class",i),(!p||b&2)&&o!==(o=_[1].name+"")&&le(r,o),(!p||b&8&&a!==(a=_[3]))&&h(e,"for",a);const k={};b&8&&(k.id=_[3]),b&2&&(k.required=_[1].required),!d&&b&1&&(d=!0,k.value=_[0],ke(()=>d=!1)),f.$set(k)},i(_){p||(A(f.$$.fragment,_),p=!0)},o(_){P(f.$$.fragment,_),p=!1},d(_){_&&w(e),_&&w(u),B(f,_)}}}function EM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[DM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function AM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class IM extends ye{constructor(e){super(),ve(this,e,AM,EM,_e,{field:1,value:0})}}function PM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g,_,b;return{c(){var k,$;e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("input"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3]),h(f,"type","number"),h(f,"id",d=n[3]),f.required=p=n[1].required,h(f,"min",m=(k=n[1].options)==null?void 0:k.min),h(f,"max",g=($=n[1].options)==null?void 0:$.max),h(f,"step","any")},m(k,$){S(k,e,$),v(e,t),v(e,s),v(e,l),v(l,r),S(k,u,$),S(k,f,$),fe(f,n[0]),_||(b=J(f,"input",n[2]),_=!0)},p(k,$){var T,C;$&2&&i!==(i=H.getFieldTypeIcon(k[1].type))&&h(t,"class",i),$&2&&o!==(o=k[1].name+"")&&le(r,o),$&8&&a!==(a=k[3])&&h(e,"for",a),$&8&&d!==(d=k[3])&&h(f,"id",d),$&2&&p!==(p=k[1].required)&&(f.required=p),$&2&&m!==(m=(T=k[1].options)==null?void 0:T.min)&&h(f,"min",m),$&2&&g!==(g=(C=k[1].options)==null?void 0:C.max)&&h(f,"max",g),$&1&>(f.value)!==k[0]&&fe(f,k[0])},d(k){k&&w(e),k&&w(u),k&&w(f),_=!1,b()}}}function LM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[PM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function NM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=gt(this.value),t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class FM extends ye{constructor(e){super(),ve(this,e,NM,LM,_e,{field:1,value:0})}}function RM(n){let e,t,i,s,l=n[1].name+"",o,r,a,u;return{c(){e=y("input"),i=E(),s=y("label"),o=Y(l),h(e,"type","checkbox"),h(e,"id",t=n[3]),h(s,"for",r=n[3])},m(f,d){S(f,e,d),e.checked=n[0],S(f,i,d),S(f,s,d),v(s,o),a||(u=J(e,"change",n[2]),a=!0)},p(f,d){d&8&&t!==(t=f[3])&&h(e,"id",t),d&1&&(e.checked=f[0]),d&2&&l!==(l=f[1].name+"")&&le(o,l),d&8&&r!==(r=f[3])&&h(s,"for",r)},d(f){f&&w(e),f&&w(i),f&&w(s),a=!1,u()}}}function qM(n){let e,t;return e=new de({props:{class:"form-field form-field-toggle "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[RM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field form-field-toggle "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function jM(n,e,t){let{field:i=new wn}=e,{value:s=!1}=e;function l(){s=this.checked,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class VM extends ye{constructor(e){super(),ve(this,e,jM,qM,_e,{field:1,value:0})}}function HM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("input"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3]),h(f,"type","email"),h(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),fe(f,n[0]),m||(g=J(f,"input",n[2]),m=!0)},p(_,b){b&2&&i!==(i=H.getFieldTypeIcon(_[1].type))&&h(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&h(e,"for",a),b&8&&d!==(d=_[3])&&h(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&fe(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),m=!1,g()}}}function zM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[HM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function BM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class UM extends ye{constructor(e){super(),ve(this,e,BM,zM,_e,{field:1,value:0})}}function WM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("input"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[3]),h(f,"type","url"),h(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),fe(f,n[0]),m||(g=J(f,"input",n[2]),m=!0)},p(_,b){b&2&&i!==(i=H.getFieldTypeIcon(_[1].type))&&h(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&h(e,"for",a),b&8&&d!==(d=_[3])&&h(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&fe(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),m=!1,g()}}}function YM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[WM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function KM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class JM extends ye{constructor(e){super(),ve(this,e,KM,YM,_e,{field:1,value:0})}}function Np(n){let e,t,i,s;return{c(){e=y("div"),t=y("button"),t.innerHTML='',h(t,"type","button"),h(t,"class","link-hint clear-btn svelte-11df51y"),h(e,"class","form-field-addon")},m(l,o){S(l,e,o),v(e,t),i||(s=[Ee(Ye.call(null,t,"Clear")),J(t,"click",n[5])],i=!0)},p:X,d(l){l&&w(e),i=!1,Ae(s)}}}function ZM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g,_,b=n[0]&&!n[1].required&&Np(n);function k(C){n[6](C)}function $(C){n[7](C)}let T={id:n[8],options:H.defaultFlatpickrOptions()};return n[2]!==void 0&&(T.value=n[2]),n[0]!==void 0&&(T.formattedValue=n[0]),p=new au({props:T}),ie.push(()=>he(p,"value",k)),ie.push(()=>he(p,"formattedValue",$)),p.$on("close",n[3]),{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),a=Y(" (UTC)"),f=E(),b&&b.c(),d=E(),U(p.$$.fragment),h(t,"class",i=os(H.getFieldTypeIcon(n[1].type))+" svelte-11df51y"),h(l,"class","txt"),h(e,"for",u=n[8])},m(C,D){S(C,e,D),v(e,t),v(e,s),v(e,l),v(l,r),v(l,a),S(C,f,D),b&&b.m(C,D),S(C,d,D),z(p,C,D),_=!0},p(C,D){(!_||D&2&&i!==(i=os(H.getFieldTypeIcon(C[1].type))+" svelte-11df51y"))&&h(t,"class",i),(!_||D&2)&&o!==(o=C[1].name+"")&&le(r,o),(!_||D&256&&u!==(u=C[8]))&&h(e,"for",u),C[0]&&!C[1].required?b?b.p(C,D):(b=Np(C),b.c(),b.m(d.parentNode,d)):b&&(b.d(1),b=null);const M={};D&256&&(M.id=C[8]),!m&&D&4&&(m=!0,M.value=C[2],ke(()=>m=!1)),!g&&D&1&&(g=!0,M.formattedValue=C[0],ke(()=>g=!1)),p.$set(M)},i(C){_||(A(p.$$.fragment,C),_=!0)},o(C){P(p.$$.fragment,C),_=!1},d(C){C&&w(e),C&&w(f),b&&b.d(C),C&&w(d),B(p,C)}}}function GM(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[ZM,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&775&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function XM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=s;function o(d){d.detail&&d.detail.length==3&&t(0,s=d.detail[1])}function r(){t(0,s="")}const a=()=>r();function u(d){l=d,t(2,l),t(0,s)}function f(d){s=d,t(0,s)}return n.$$set=d=>{"field"in d&&t(1,i=d.field),"value"in d&&t(0,s=d.value)},n.$$.update=()=>{n.$$.dirty&1&&s&&s.length>19&&t(0,s=s.substring(0,19)),n.$$.dirty&5&&l!=s&&t(2,l=s)},[s,i,l,o,r,a,u,f]}class QM extends ye{constructor(e){super(),ve(this,e,XM,GM,_e,{field:1,value:0})}}function Fp(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=y("div"),t=Y("Select up to "),s=Y(i),l=Y(" items."),h(e,"class","help-block")},m(o,r){S(o,e,r),v(e,t),v(e,s),v(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&le(s,i)},d(o){o&&w(e)}}}function xM(n){var $,T,C,D,M;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;function _(O){n[3](O)}let b={id:n[4],toggle:!n[1].required||n[2],multiple:n[2],closable:!n[2]||(($=n[0])==null?void 0:$.length)>=((T=n[1].options)==null?void 0:T.maxSelect),items:(C=n[1].options)==null?void 0:C.values,searchable:((D=n[1].options)==null?void 0:D.values)>5};n[0]!==void 0&&(b.selected=n[0]),f=new uu({props:b}),ie.push(()=>he(f,"selected",_));let k=((M=n[1].options)==null?void 0:M.maxSelect)>1&&Fp(n);return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),U(f.$$.fragment),p=E(),k&&k.c(),m=Ce(),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[4])},m(O,I){S(O,e,I),v(e,t),v(e,s),v(e,l),v(l,r),S(O,u,I),z(f,O,I),S(O,p,I),k&&k.m(O,I),S(O,m,I),g=!0},p(O,I){var F,q,N,R,j;(!g||I&2&&i!==(i=H.getFieldTypeIcon(O[1].type)))&&h(t,"class",i),(!g||I&2)&&o!==(o=O[1].name+"")&&le(r,o),(!g||I&16&&a!==(a=O[4]))&&h(e,"for",a);const L={};I&16&&(L.id=O[4]),I&6&&(L.toggle=!O[1].required||O[2]),I&4&&(L.multiple=O[2]),I&7&&(L.closable=!O[2]||((F=O[0])==null?void 0:F.length)>=((q=O[1].options)==null?void 0:q.maxSelect)),I&2&&(L.items=(N=O[1].options)==null?void 0:N.values),I&2&&(L.searchable=((R=O[1].options)==null?void 0:R.values)>5),!d&&I&1&&(d=!0,L.selected=O[0],ke(()=>d=!1)),f.$set(L),((j=O[1].options)==null?void 0:j.maxSelect)>1?k?k.p(O,I):(k=Fp(O),k.c(),k.m(m.parentNode,m)):k&&(k.d(1),k=null)},i(O){g||(A(f.$$.fragment,O),g=!0)},o(O){P(f.$$.fragment,O),g=!1},d(O){O&&w(e),O&&w(u),B(f,O),O&&w(p),k&&k.d(O),O&&w(m)}}}function e6(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[xM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function t6(n,e,t){let i,{field:s=new wn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)>1),n.$$.dirty&5&&typeof l>"u"&&t(0,l=i?[]:""),n.$$.dirty&7&&i&&Array.isArray(l)&&l.length>s.options.maxSelect&&t(0,l=l.slice(l.length-s.options.maxSelect))},[l,s,i,o]}class n6 extends ye{constructor(e){super(),ve(this,e,t6,e6,_e,{field:1,value:0})}}function i6(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,m,g;return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("textarea"),h(t,"class",i=H.getFieldTypeIcon(n[1].type)),h(l,"class","txt"),h(e,"for",a=n[4]),h(f,"id",d=n[4]),h(f,"class","txt-mono"),f.required=p=n[1].required,f.value=n[2]},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),m||(g=J(f,"input",n[3]),m=!0)},p(_,b){b&2&&i!==(i=H.getFieldTypeIcon(_[1].type))&&h(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&16&&a!==(a=_[4])&&h(e,"for",a),b&16&&d!==(d=_[4])&&h(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&4&&(f.value=_[2])},d(_){_&&w(e),_&&w(u),_&&w(f),m=!1,g()}}}function s6(n){let e,t;return e=new de({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[i6,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function l6(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=JSON.stringify(typeof s>"u"?null:s,null,2);const o=r=>{t(2,l=r.target.value),t(0,s=r.target.value.trim())};return n.$$set=r=>{"field"in r&&t(1,i=r.field),"value"in r&&t(0,s=r.value)},n.$$.update=()=>{n.$$.dirty&5&&s!==(l==null?void 0:l.trim())&&(t(2,l=JSON.stringify(typeof s>"u"?null:s,null,2)),t(0,s=l))},[s,i,l,o]}class o6 extends ye{constructor(e){super(),ve(this,e,l6,s6,_e,{field:1,value:0})}}function r6(n){let e,t;return{c(){e=y("i"),h(e,"class","ri-file-line"),h(e,"alt",t=n[0].name)},m(i,s){S(i,e,s)},p(i,s){s&1&&t!==(t=i[0].name)&&h(e,"alt",t)},d(i){i&&w(e)}}}function a6(n){let e,t,i;return{c(){e=y("img"),mn(e.src,t=n[2])||h(e,"src",t),h(e,"width",n[1]),h(e,"height",n[1]),h(e,"alt",i=n[0].name)},m(s,l){S(s,e,l)},p(s,l){l&4&&!mn(e.src,t=s[2])&&h(e,"src",t),l&2&&h(e,"width",s[1]),l&2&&h(e,"height",s[1]),l&1&&i!==(i=s[0].name)&&h(e,"alt",i)},d(s){s&&w(e)}}}function u6(n){let e;function t(l,o){return l[2]?a6:r6}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:X,o:X,d(l){s.d(l),l&&w(e)}}}function f6(n,e,t){let i,{file:s}=e,{size:l=50}=e;function o(){t(2,i=""),H.hasImageExtension(s==null?void 0:s.name)&&H.generateThumb(s,l,l).then(r=>{t(2,i=r)}).catch(r=>{console.warn("Unable to generate thumb: ",r)})}return n.$$set=r=>{"file"in r&&t(0,s=r.file),"size"in r&&t(1,l=r.size)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&o()},t(2,i=""),[s,l,i]}class c6 extends ye{constructor(e){super(),ve(this,e,f6,u6,_e,{file:0,size:1})}}function Rp(n){let e;function t(l,o){return l[4]==="image"?p6:d6}let i=t(n),s=i(n);return{c(){s.c(),e=Ce()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function d6(n){let e,t;return{c(){e=y("object"),t=Y("Cannot preview the file."),h(e,"title",n[2]),h(e,"data",n[1])},m(i,s){S(i,e,s),v(e,t)},p(i,s){s&4&&h(e,"title",i[2]),s&2&&h(e,"data",i[1])},d(i){i&&w(e)}}}function p6(n){let e,t,i;return{c(){e=y("img"),mn(e.src,t=n[1])||h(e,"src",t),h(e,"alt",i="Preview "+n[2])},m(s,l){S(s,e,l)},p(s,l){l&2&&!mn(e.src,t=s[1])&&h(e,"src",t),l&4&&i!==(i="Preview "+s[2])&&h(e,"alt",i)},d(s){s&&w(e)}}}function m6(n){var s;let e=(s=n[3])==null?void 0:s.isActive(),t,i=e&&Rp(n);return{c(){i&&i.c(),t=Ce()},m(l,o){i&&i.m(l,o),S(l,t,o)},p(l,o){var r;o&8&&(e=(r=l[3])==null?void 0:r.isActive()),e?i?i.p(l,o):(i=Rp(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(l){i&&i.d(l),l&&w(t)}}}function h6(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",at(n[0])),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function _6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("a"),t=Y(n[2]),i=E(),s=y("i"),l=E(),o=y("div"),r=E(),a=y("button"),a.textContent="Close",h(s,"class","ri-external-link-line"),h(e,"href",n[1]),h(e,"title",n[2]),h(e,"target","_blank"),h(e,"rel","noreferrer noopener"),h(e,"class","link-hint txt-ellipsis inline-flex"),h(o,"class","flex-fill"),h(a,"type","button"),h(a,"class","btn btn-transparent")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,l,p),S(d,o,p),S(d,r,p),S(d,a,p),u||(f=J(a,"click",n[0]),u=!0)},p(d,p){p&4&&le(t,d[2]),p&2&&h(e,"href",d[1]),p&4&&h(e,"title",d[2])},d(d){d&&w(e),d&&w(l),d&&w(o),d&&w(r),d&&w(a),u=!1,f()}}}function g6(n){let e,t,i={class:"preview preview-"+n[4],btnClose:!1,popup:!0,$$slots:{footer:[_6],header:[h6],default:[m6]},$$scope:{ctx:n}};return e=new hn({props:i}),n[7](e),e.$on("show",n[8]),e.$on("hide",n[9]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.class="preview preview-"+s[4]),l&1054&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[7](null),B(e,s)}}}function b6(n,e,t){let i,s,l,o,r="";function a(m){m!==""&&(t(1,r=m),o==null||o.show())}function u(){return o==null?void 0:o.hide()}function f(m){ie[m?"unshift":"push"](()=>{o=m,t(3,o)})}function d(m){me.call(this,n,m)}function p(m){me.call(this,n,m)}return n.$$.update=()=>{n.$$.dirty&2&&t(6,i=r.indexOf("?")),n.$$.dirty&66&&t(2,s=r.substring(r.lastIndexOf("/")+1,i>0?i:void 0)),n.$$.dirty&4&&t(4,l=H.getFileType(s))},[u,r,s,o,l,a,i,f,d,p]}class v6 extends ye{constructor(e){super(),ve(this,e,b6,g6,_e,{show:5,hide:0})}get show(){return this.$$.ctx[5]}get hide(){return this.$$.ctx[0]}}function y6(n){let e,t,i,s,l;function o(u,f){return u[3]==="image"?$6:u[3]==="video"||u[3]==="audio"?S6:w6}let r=o(n),a=r(n);return{c(){e=y("a"),a.c(),h(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:"")),h(e,"href",n[6]),h(e,"target","_blank"),h(e,"rel","noreferrer"),h(e,"title",i=(n[7]?"Preview":"Download")+" "+n[0])},m(u,f){S(u,e,f),a.m(e,null),s||(l=J(e,"click",An(n[11])),s=!0)},p(u,f){r===(r=o(u))&&a?a.p(u,f):(a.d(1),a=r(u),a&&(a.c(),a.m(e,null))),f&2&&t!==(t="thumb "+(u[1]?`thumb-${u[1]}`:""))&&h(e,"class",t),f&64&&h(e,"href",u[6]),f&129&&i!==(i=(u[7]?"Preview":"Download")+" "+u[0])&&h(e,"title",i)},d(u){u&&w(e),a.d(),s=!1,l()}}}function k6(n){let e,t;return{c(){e=y("div"),h(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:""))},m(i,s){S(i,e,s)},p(i,s){s&2&&t!==(t="thumb "+(i[1]?`thumb-${i[1]}`:""))&&h(e,"class",t)},d(i){i&&w(e)}}}function w6(n){let e;return{c(){e=y("i"),h(e,"class","ri-file-3-line")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function S6(n){let e;return{c(){e=y("i"),h(e,"class","ri-video-line")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function $6(n){let e,t,i,s,l;return{c(){e=y("img"),mn(e.src,t=n[5])||h(e,"src",t),h(e,"alt",n[0]),h(e,"title",i="Preview "+n[0])},m(o,r){S(o,e,r),s||(l=J(e,"error",n[8]),s=!0)},p(o,r){r&32&&!mn(e.src,t=o[5])&&h(e,"src",t),r&1&&h(e,"alt",o[0]),r&1&&i!==(i="Preview "+o[0])&&h(e,"title",i)},d(o){o&&w(e),s=!1,l()}}}function C6(n){let e,t,i;function s(a,u){return a[2]?k6:y6}let l=s(n),o=l(n),r={};return t=new v6({props:r}),n[12](t),{c(){o.c(),e=E(),U(t.$$.fragment)},m(a,u){o.m(a,u),S(a,e,u),z(t,a,u),i=!0},p(a,[u]){l===(l=s(a))&&o?o.p(a,u):(o.d(1),o=l(a),o&&(o.c(),o.m(e.parentNode,e)));const f={};t.$set(f)},i(a){i||(A(t.$$.fragment,a),i=!0)},o(a){P(t.$$.fragment,a),i=!1},d(a){o.d(a),a&&w(e),n[12](null),B(t,a)}}}function T6(n,e,t){let i,s,{record:l=null}=e,{filename:o=""}=e,{size:r=""}=e,a,u="",f="",d="",p=!1;m();async function m(){t(2,p=!0);try{t(10,d=await pe.getAdminFileToken(l.collectionId))}catch(k){console.warn("File token failure:",k)}t(2,p=!1)}function g(){t(5,u="")}const _=k=>{s&&(k.preventDefault(),a==null||a.show(f))};function b(k){ie[k?"unshift":"push"](()=>{a=k,t(4,a)})}return n.$$set=k=>{"record"in k&&t(9,l=k.record),"filename"in k&&t(0,o=k.filename),"size"in k&&t(1,r=k.size)},n.$$.update=()=>{n.$$.dirty&1&&t(3,i=H.getFileType(o)),n.$$.dirty&9&&t(7,s=["image","audio","video"].includes(i)||o.endsWith(".pdf")),n.$$.dirty&1541&&t(6,f=p?"":pe.files.getUrl(l,o,{token:d})),n.$$.dirty&1541&&t(5,u=p?"":pe.files.getUrl(l,o,{thumb:"100x100",token:d}))},[o,r,p,i,a,u,f,s,g,l,d,_,b]}class cu extends ye{constructor(e){super(),ve(this,e,T6,C6,_e,{record:9,filename:0,size:1})}}function qp(n,e,t){const i=n.slice();return i[27]=e[t],i[29]=t,i}function jp(n,e,t){const i=n.slice();i[30]=e[t],i[29]=t;const s=i[1].includes(i[29]);return i[31]=s,i}function M6(n){let e,t,i;function s(){return n[17](n[29])}return{c(){e=y("button"),e.innerHTML='',h(e,"type","button"),h(e,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove")},m(l,o){S(l,e,o),t||(i=[Ee(Ye.call(null,e,"Remove file")),J(e,"click",s)],t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,Ae(i)}}}function O6(n){let e,t,i;function s(){return n[16](n[29])}return{c(){e=y("button"),e.innerHTML='Restore',h(e,"type","button"),h(e,"class","btn btn-sm btn-danger btn-transparent")},m(l,o){S(l,e,o),t||(i=J(e,"click",s),t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,i()}}}function Vp(n,e){let t,i,s,l,o,r,a=e[30]+"",u,f,d,p,m,g,_;s=new cu({props:{record:e[2],filename:e[30]}});function b(T,C){return C[0]&18&&(g=null),g==null&&(g=!!T[1].includes(T[29])),g?O6:M6}let k=b(e,[-1,-1]),$=k(e);return{key:n,first:null,c(){t=y("div"),i=y("div"),U(s.$$.fragment),l=E(),o=y("div"),r=y("a"),u=Y(a),p=E(),m=y("div"),$.c(),x(i,"fade",e[1].includes(e[29])),h(r,"href",f=pe.files.getUrl(e[2],e[30],{token:e[9]})),h(r,"class",d="txt-ellipsis "+(e[31]?"txt-strikethrough txt-hint":"link-primary")),h(r,"title","Download"),h(r,"target","_blank"),h(r,"rel","noopener noreferrer"),h(o,"class","content"),h(m,"class","actions"),h(t,"class","list-item"),this.first=t},m(T,C){S(T,t,C),v(t,i),z(s,i,null),v(t,l),v(t,o),v(o,r),v(r,u),v(t,p),v(t,m),$.m(m,null),_=!0},p(T,C){e=T;const D={};C[0]&4&&(D.record=e[2]),C[0]&16&&(D.filename=e[30]),s.$set(D),(!_||C[0]&18)&&x(i,"fade",e[1].includes(e[29])),(!_||C[0]&16)&&a!==(a=e[30]+"")&&le(u,a),(!_||C[0]&532&&f!==(f=pe.files.getUrl(e[2],e[30],{token:e[9]})))&&h(r,"href",f),(!_||C[0]&18&&d!==(d="txt-ellipsis "+(e[31]?"txt-strikethrough txt-hint":"link-primary")))&&h(r,"class",d),k===(k=b(e,C))&&$?$.p(e,C):($.d(1),$=k(e),$&&($.c(),$.m(m,null)))},i(T){_||(A(s.$$.fragment,T),_=!0)},o(T){P(s.$$.fragment,T),_=!1},d(T){T&&w(t),B(s),$.d()}}}function Hp(n){let e,t,i,s,l,o,r,a,u=n[27].name+"",f,d,p,m,g,_,b;i=new c6({props:{file:n[27]}});function k(){return n[18](n[29])}return{c(){e=y("div"),t=y("figure"),U(i.$$.fragment),s=E(),l=y("div"),o=y("small"),o.textContent="New",r=E(),a=y("span"),f=Y(u),p=E(),m=y("button"),m.innerHTML='',h(t,"class","thumb"),h(o,"class","label label-success m-r-5"),h(a,"class","txt"),h(l,"class","filename m-r-auto"),h(l,"title",d=n[27].name),h(m,"type","button"),h(m,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove"),h(e,"class","list-item")},m($,T){S($,e,T),v(e,t),z(i,t,null),v(e,s),v(e,l),v(l,o),v(l,r),v(l,a),v(a,f),v(e,p),v(e,m),g=!0,_||(b=[Ee(Ye.call(null,m,"Remove file")),J(m,"click",k)],_=!0)},p($,T){n=$;const C={};T[0]&1&&(C.file=n[27]),i.$set(C),(!g||T[0]&1)&&u!==(u=n[27].name+"")&&le(f,u),(!g||T[0]&1&&d!==(d=n[27].name))&&h(l,"title",d)},i($){g||(A(i.$$.fragment,$),g=!0)},o($){P(i.$$.fragment,$),g=!1},d($){$&&w(e),B(i),_=!1,Ae(b)}}}function D6(n){let e,t,i,s,l,o=n[3].name+"",r,a,u,f,d=[],p=new Map,m,g,_,b,k,$,T,C,D,M,O,I,L=n[4];const F=j=>j[30]+j[2].id;for(let j=0;jP(N[j],1,1,()=>{N[j]=null});return{c(){e=y("label"),t=y("i"),s=E(),l=y("span"),r=Y(o),u=E(),f=y("div");for(let j=0;j{M[F]=null}),ae(),o=M[l],o?o.p(I,L):(o=M[l]=D[l](I),o.c()),A(o,1),o.m(r.parentNode,r))},i(I){$||(A(o),$=!0)},o(I){P(o),$=!1},d(I){I&&w(e),I&&w(s),M[l].d(I),I&&w(r),I&&w(a),T=!1,Ae(C)}}}function SE(n){let e,t,i,s,l,o;return e=new de({props:{class:"form-field required",name:n[1]+".subject",$$slots:{default:[bE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),i=new de({props:{class:"form-field required",name:n[1]+".actionUrl",$$slots:{default:[vE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),l=new de({props:{class:"form-field m-0 required",name:n[1]+".body",$$slots:{default:[wE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),U(l.$$.fragment)},m(r,a){z(e,r,a),S(r,t,a),z(i,r,a),S(r,s,a),z(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f.$$scope={dirty:a,ctx:r}),i.$set(f);const d={};a[0]&2&&(d.name=r[1]+".body"),a[0]&49|a[1]&3&&(d.$$scope={dirty:a,ctx:r}),l.$set(d)},i(r){o||(A(e.$$.fragment,r),A(i.$$.fragment,r),A(l.$$.fragment,r),o=!0)},o(r){P(e.$$.fragment,r),P(i.$$.fragment,r),P(l.$$.fragment,r),o=!1},d(r){B(e,r),r&&w(t),B(i,r),r&&w(s),B(l,r)}}}function Eh(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function $E(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&Eh();return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),l=Y(n[2]),o=E(),r=y("div"),a=E(),f&&f.c(),u=Ce(),h(t,"class","ri-draft-line"),h(s,"class","txt"),h(e,"class","inline-flex"),h(r,"class","flex-fill")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),v(s,l),S(d,o,p),S(d,r,p),S(d,a,p),f&&f.m(d,p),S(d,u,p)},p(d,p){p[0]&4&&le(l,d[2]),d[6]?f?p[0]&64&&A(f,1):(f=Eh(),f.c(),A(f,1),f.m(u.parentNode,u)):f&&(re(),P(f,1,1,()=>{f=null}),ae())},d(d){d&&w(e),d&&w(o),d&&w(r),d&&w(a),f&&f.d(d),d&&w(u)}}}function CE(n){let e,t;const i=[n[8]];let s={$$slots:{header:[$E],default:[SE]},$$scope:{ctx:n}};for(let l=0;lt(12,o=G));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,d=Ah,p=!1;function m(){f==null||f.expand()}function g(){f==null||f.collapse()}function _(){f==null||f.collapseSiblings()}async function b(){d||p||(t(5,p=!0),t(4,d=(await rt(()=>import("./CodeEditor-4b65e980.js"),["./CodeEditor-4b65e980.js","./index-be8a2174.js"],import.meta.url)).default),Ah=d,t(5,p=!1))}function k(G){H.copyToClipboard(G),s1(`Copied ${G} to clipboard`,2e3)}b();function $(){u.subject=this.value,t(0,u)}const T=()=>k("{APP_NAME}"),C=()=>k("{APP_URL}");function D(){u.actionUrl=this.value,t(0,u)}const M=()=>k("{APP_NAME}"),O=()=>k("{APP_URL}"),I=()=>k("{TOKEN}");function L(G){n.$$.not_equal(u.body,G)&&(u.body=G,t(0,u))}function F(){u.body=this.value,t(0,u)}const q=()=>k("{APP_NAME}"),N=()=>k("{APP_URL}"),R=()=>k("{TOKEN}"),j=()=>k("{ACTION_URL}");function V(G){ie[G?"unshift":"push"](()=>{f=G,t(3,f)})}function W(G){me.call(this,n,G)}function ee(G){me.call(this,n,G)}function te(G){me.call(this,n,G)}return n.$$set=G=>{e=je(je({},e),Zt(G)),t(8,l=xe(e,s)),"key"in G&&t(1,r=G.key),"title"in G&&t(2,a=G.title),"config"in G&&t(0,u=G.config)},n.$$.update=()=>{n.$$.dirty[0]&4098&&t(6,i=!H.isEmpty(H.getNestedVal(o,r))),n.$$.dirty[0]&3&&(u.enabled||Fi(r))},[u,r,a,f,d,p,i,k,l,m,g,_,o,$,T,C,D,M,O,I,L,F,q,N,R,j,V,W,ee,te]}class Fr extends ye{constructor(e){super(),ve(this,e,TE,CE,_e,{key:1,title:2,config:0,expand:9,collapse:10,collapseSiblings:11},null,[-1,-1])}get expand(){return this.$$.ctx[9]}get collapse(){return this.$$.ctx[10]}get collapseSiblings(){return this.$$.ctx[11]}}function Ih(n,e,t){const i=n.slice();return i[21]=e[t],i}function Ph(n,e){let t,i,s,l,o,r=e[21].label+"",a,u,f,d,p,m;return d=Ib(e[11][0]),{key:n,first:null,c(){t=y("div"),i=y("input"),l=E(),o=y("label"),a=Y(r),f=E(),h(i,"type","radio"),h(i,"name","template"),h(i,"id",s=e[20]+e[21].value),i.__value=e[21].value,i.value=i.__value,h(o,"for",u=e[20]+e[21].value),h(t,"class","form-field-block"),d.p(i),this.first=t},m(g,_){S(g,t,_),v(t,i),i.checked=i.__value===e[2],v(t,l),v(t,o),v(o,a),v(t,f),p||(m=J(i,"change",e[10]),p=!0)},p(g,_){e=g,_&1048576&&s!==(s=e[20]+e[21].value)&&h(i,"id",s),_&4&&(i.checked=i.__value===e[2]),_&1048576&&u!==(u=e[20]+e[21].value)&&h(o,"for",u)},d(g){g&&w(t),d.r(),p=!1,m()}}}function ME(n){let e=[],t=new Map,i,s=n[7];const l=o=>o[21].value;for(let o=0;o({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),s=new de({props:{class:"form-field required m-0",name:"email",$$slots:{default:[OE,({uniqueId:a})=>({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),{c(){e=y("form"),U(t.$$.fragment),i=E(),U(s.$$.fragment),h(e,"id",n[6]),h(e,"autocomplete","off")},m(a,u){S(a,e,u),z(t,e,null),v(e,i),z(s,e,null),l=!0,o||(r=J(e,"submit",at(n[13])),o=!0)},p(a,u){const f={};u&17825796&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const d={};u&17825794&&(d.$$scope={dirty:u,ctx:a}),s.$set(d)},i(a){l||(A(t.$$.fragment,a),A(s.$$.fragment,a),l=!0)},o(a){P(t.$$.fragment,a),P(s.$$.fragment,a),l=!1},d(a){a&&w(e),B(t),B(s),o=!1,r()}}}function EE(n){let e;return{c(){e=y("h4"),e.textContent="Send test email",h(e,"class","center txt-break")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function AE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("button"),t=Y("Close"),i=E(),s=y("button"),l=y("i"),o=E(),r=y("span"),r.textContent="Send",h(e,"type","button"),h(e,"class","btn btn-transparent"),e.disabled=n[4],h(l,"class","ri-mail-send-line"),h(r,"class","txt"),h(s,"type","submit"),h(s,"form",n[6]),h(s,"class","btn btn-expanded"),s.disabled=a=!n[5]||n[4],x(s,"btn-loading",n[4])},m(d,p){S(d,e,p),v(e,t),S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=J(e,"click",n[0]),u=!0)},p(d,p){p&16&&(e.disabled=d[4]),p&48&&a!==(a=!d[5]||d[4])&&(s.disabled=a),p&16&&x(s,"btn-loading",d[4])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,f()}}}function IE(n){let e,t,i={class:"overlay-panel-sm email-test-popup",overlayClose:!n[4],escClose:!n[4],beforeHide:n[14],popup:!0,$$slots:{footer:[AE],header:[EE],default:[DE]},$$scope:{ctx:n}};return e=new hn({props:i}),n[15](e),e.$on("show",n[16]),e.$on("hide",n[17]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[14]),l&16777270&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[15](null),B(e,s)}}}const Rr="last_email_test",Lh="email_test_request";function PE(n,e,t){let i;const s=Tt(),l="email_test_"+H.randomString(5),o=[{label:'"Verification" template',value:"verification"},{label:'"Password reset" template',value:"password-reset"},{label:'"Confirm email change" template',value:"email-change"}];let r,a=localStorage.getItem(Rr),u=o[0].value,f=!1,d=null;function p(O="",I=""){t(1,a=O||localStorage.getItem(Rr)),t(2,u=I||o[0].value),un({}),r==null||r.show()}function m(){return clearTimeout(d),r==null?void 0:r.hide()}async function g(){if(!(!i||f)){t(4,f=!0),localStorage==null||localStorage.setItem(Rr,a),clearTimeout(d),d=setTimeout(()=>{pe.cancelRequest(Lh),hl("Test email send timeout.")},3e4);try{await pe.settings.testEmail(a,u,{$cancelKey:Lh}),xt("Successfully sent test email."),s("submit"),t(4,f=!1),await an(),m()}catch(O){t(4,f=!1),pe.errorResponseHandler(O)}clearTimeout(d)}}const _=[[]];function b(){u=this.__value,t(2,u)}function k(){a=this.value,t(1,a)}const $=()=>g(),T=()=>!f;function C(O){ie[O?"unshift":"push"](()=>{r=O,t(3,r)})}function D(O){me.call(this,n,O)}function M(O){me.call(this,n,O)}return n.$$.update=()=>{n.$$.dirty&6&&t(5,i=!!a&&!!u)},[m,a,u,r,f,i,l,o,g,p,b,_,k,$,T,C,D,M]}class LE extends ye{constructor(e){super(),ve(this,e,PE,IE,_e,{show:9,hide:0})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[0]}}function NE(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M,O,I,L,F;i=new de({props:{class:"form-field required",name:"meta.senderName",$$slots:{default:[RE,({uniqueId:Q})=>({31:Q}),({uniqueId:Q})=>[0,Q?1:0]]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field required",name:"meta.senderAddress",$$slots:{default:[qE,({uniqueId:Q})=>({31:Q}),({uniqueId:Q})=>[0,Q?1:0]]},$$scope:{ctx:n}}});function q(Q){n[14](Q)}let N={single:!0,key:"meta.verificationTemplate",title:'Default "Verification" email template'};n[0].meta.verificationTemplate!==void 0&&(N.config=n[0].meta.verificationTemplate),u=new Fr({props:N}),ie.push(()=>he(u,"config",q));function R(Q){n[15](Q)}let j={single:!0,key:"meta.resetPasswordTemplate",title:'Default "Password reset" email template'};n[0].meta.resetPasswordTemplate!==void 0&&(j.config=n[0].meta.resetPasswordTemplate),p=new Fr({props:j}),ie.push(()=>he(p,"config",R));function V(Q){n[16](Q)}let W={single:!0,key:"meta.confirmEmailChangeTemplate",title:'Default "Confirm email change" email template'};n[0].meta.confirmEmailChangeTemplate!==void 0&&(W.config=n[0].meta.confirmEmailChangeTemplate),_=new Fr({props:W}),ie.push(()=>he(_,"config",V)),C=new de({props:{class:"form-field form-field-toggle m-b-sm",$$slots:{default:[jE,({uniqueId:Q})=>({31:Q}),({uniqueId:Q})=>[0,Q?1:0]]},$$scope:{ctx:n}}});let ee=n[0].smtp.enabled&&Nh(n);function te(Q,se){return Q[4]?KE:YE}let G=te(n),ce=G(n);return{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),U(u.$$.fragment),d=E(),U(p.$$.fragment),g=E(),U(_.$$.fragment),k=E(),$=y("hr"),T=E(),U(C.$$.fragment),D=E(),ee&&ee.c(),M=E(),O=y("div"),I=y("div"),L=E(),ce.c(),h(t,"class","col-lg-6"),h(l,"class","col-lg-6"),h(e,"class","grid m-b-base"),h(a,"class","accordions"),h(I,"class","flex-fill"),h(O,"class","flex")},m(Q,se){S(Q,e,se),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),S(Q,r,se),S(Q,a,se),z(u,a,null),v(a,d),z(p,a,null),v(a,g),z(_,a,null),S(Q,k,se),S(Q,$,se),S(Q,T,se),z(C,Q,se),S(Q,D,se),ee&&ee.m(Q,se),S(Q,M,se),S(Q,O,se),v(O,I),v(O,L),ce.m(O,null),F=!0},p(Q,se){const ge={};se[0]&1|se[1]&3&&(ge.$$scope={dirty:se,ctx:Q}),i.$set(ge);const $e={};se[0]&1|se[1]&3&&($e.$$scope={dirty:se,ctx:Q}),o.$set($e);const Ve={};!f&&se[0]&1&&(f=!0,Ve.config=Q[0].meta.verificationTemplate,ke(()=>f=!1)),u.$set(Ve);const Be={};!m&&se[0]&1&&(m=!0,Be.config=Q[0].meta.resetPasswordTemplate,ke(()=>m=!1)),p.$set(Be);const we={};!b&&se[0]&1&&(b=!0,we.config=Q[0].meta.confirmEmailChangeTemplate,ke(()=>b=!1)),_.$set(we);const Oe={};se[0]&1|se[1]&3&&(Oe.$$scope={dirty:se,ctx:Q}),C.$set(Oe),Q[0].smtp.enabled?ee?(ee.p(Q,se),se[0]&1&&A(ee,1)):(ee=Nh(Q),ee.c(),A(ee,1),ee.m(M.parentNode,M)):ee&&(re(),P(ee,1,1,()=>{ee=null}),ae()),G===(G=te(Q))&&ce?ce.p(Q,se):(ce.d(1),ce=G(Q),ce&&(ce.c(),ce.m(O,null)))},i(Q){F||(A(i.$$.fragment,Q),A(o.$$.fragment,Q),A(u.$$.fragment,Q),A(p.$$.fragment,Q),A(_.$$.fragment,Q),A(C.$$.fragment,Q),A(ee),F=!0)},o(Q){P(i.$$.fragment,Q),P(o.$$.fragment,Q),P(u.$$.fragment,Q),P(p.$$.fragment,Q),P(_.$$.fragment,Q),P(C.$$.fragment,Q),P(ee),F=!1},d(Q){Q&&w(e),B(i),B(o),Q&&w(r),Q&&w(a),B(u),B(p),B(_),Q&&w(k),Q&&w($),Q&&w(T),B(C,Q),Q&&w(D),ee&&ee.d(Q),Q&&w(M),Q&&w(O),ce.d()}}}function FE(n){let e;return{c(){e=y("div"),h(e,"class","loader")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function RE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender name"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","text"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].meta.senderName),r||(a=J(l,"input",n[12]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderName&&fe(l,u[0].meta.senderName)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function qE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender address"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","email"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].meta.senderAddress),r||(a=J(l,"input",n[13]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderAddress&&fe(l,u[0].meta.senderAddress)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function jE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("input"),i=E(),s=y("label"),l=y("span"),l.innerHTML="Use SMTP mail server (recommended)",o=E(),r=y("i"),h(e,"type","checkbox"),h(e,"id",t=n[31]),e.required=!0,h(l,"class","txt"),h(r,"class","ri-information-line link-hint"),h(s,"for",a=n[31])},m(d,p){S(d,e,p),e.checked=n[0].smtp.enabled,S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=[J(e,"change",n[17]),Ee(Ye.call(null,r,{text:'By default PocketBase uses the unix "sendmail" command for sending emails. For better emails deliverability it is recommended to use a SMTP mail server.',position:"top"}))],u=!0)},p(d,p){p[1]&1&&t!==(t=d[31])&&h(e,"id",t),p[0]&1&&(e.checked=d[0].smtp.enabled),p[1]&1&&a!==(a=d[31])&&h(s,"for",a)},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,Ae(f)}}}function Nh(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M;return i=new de({props:{class:"form-field required",name:"smtp.host",$$slots:{default:[VE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field required",name:"smtp.port",$$slots:{default:[HE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),u=new de({props:{class:"form-field required",name:"smtp.tls",$$slots:{default:[zE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),p=new de({props:{class:"form-field",name:"smtp.authMethod",$$slots:{default:[BE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),_=new de({props:{class:"form-field",name:"smtp.username",$$slots:{default:[UE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),$=new de({props:{class:"form-field",name:"smtp.password",$$slots:{default:[WE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),U(u.$$.fragment),f=E(),d=y("div"),U(p.$$.fragment),m=E(),g=y("div"),U(_.$$.fragment),b=E(),k=y("div"),U($.$$.fragment),T=E(),C=y("div"),h(t,"class","col-lg-4"),h(l,"class","col-lg-2"),h(a,"class","col-lg-3"),h(d,"class","col-lg-3"),h(g,"class","col-lg-6"),h(k,"class","col-lg-6"),h(C,"class","col-lg-12"),h(e,"class","grid")},m(O,I){S(O,e,I),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),v(e,f),v(e,d),z(p,d,null),v(e,m),v(e,g),z(_,g,null),v(e,b),v(e,k),z($,k,null),v(e,T),v(e,C),M=!0},p(O,I){const L={};I[0]&1|I[1]&3&&(L.$$scope={dirty:I,ctx:O}),i.$set(L);const F={};I[0]&1|I[1]&3&&(F.$$scope={dirty:I,ctx:O}),o.$set(F);const q={};I[0]&1|I[1]&3&&(q.$$scope={dirty:I,ctx:O}),u.$set(q);const N={};I[0]&1|I[1]&3&&(N.$$scope={dirty:I,ctx:O}),p.$set(N);const R={};I[0]&1|I[1]&3&&(R.$$scope={dirty:I,ctx:O}),_.$set(R);const j={};I[0]&1|I[1]&3&&(j.$$scope={dirty:I,ctx:O}),$.$set(j)},i(O){M||(A(i.$$.fragment,O),A(o.$$.fragment,O),A(u.$$.fragment,O),A(p.$$.fragment,O),A(_.$$.fragment,O),A($.$$.fragment,O),O&&tt(()=>{M&&(D||(D=ze(e,bt,{duration:150},!0)),D.run(1))}),M=!0)},o(O){P(i.$$.fragment,O),P(o.$$.fragment,O),P(u.$$.fragment,O),P(p.$$.fragment,O),P(_.$$.fragment,O),P($.$$.fragment,O),O&&(D||(D=ze(e,bt,{duration:150},!1)),D.run(0)),M=!1},d(O){O&&w(e),B(i),B(o),B(u),B(p),B(_),B($),O&&D&&D.end()}}}function VE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("SMTP server host"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","text"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].smtp.host),r||(a=J(l,"input",n[18]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].smtp.host&&fe(l,u[0].smtp.host)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function HE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Port"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","number"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].smtp.port),r||(a=J(l,"input",n[19]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&>(l.value)!==u[0].smtp.port&&fe(l,u[0].smtp.port)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function zE(n){let e,t,i,s,l,o,r;function a(f){n[20](f)}let u={id:n[31],items:n[6]};return n[0].smtp.tls!==void 0&&(u.keyOfSelected=n[0].smtp.tls),l=new zi({props:u}),ie.push(()=>he(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("TLS encryption"),s=E(),U(l.$$.fragment),h(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&h(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.tls,ke(()=>o=!1)),l.$set(p)},i(f){r||(A(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),B(l,f)}}}function BE(n){let e,t,i,s,l,o,r;function a(f){n[21](f)}let u={id:n[31],items:n[7]};return n[0].smtp.authMethod!==void 0&&(u.keyOfSelected=n[0].smtp.authMethod),l=new zi({props:u}),ie.push(()=>he(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("AUTH method"),s=E(),U(l.$$.fragment),h(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&h(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.authMethod,ke(()=>o=!1)),l.$set(p)},i(f){r||(A(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),B(l,f)}}}function UE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Username"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","text"),h(l,"id",o=n[31])},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].smtp.username),r||(a=J(l,"input",n[22]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].smtp.username&&fe(l,u[0].smtp.username)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function WE(n){let e,t,i,s,l,o,r;function a(f){n[23](f)}let u={id:n[31]};return n[0].smtp.password!==void 0&&(u.value=n[0].smtp.password),l=new pu({props:u}),ie.push(()=>he(l,"value",a)),{c(){e=y("label"),t=Y("Password"),s=E(),U(l.$$.fragment),h(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&h(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.value=f[0].smtp.password,ke(()=>o=!1)),l.$set(p)},i(f){r||(A(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),B(l,f)}}}function YE(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=` + `,k=Y("."),h(e,"for",i=n[31]),h(f,"type","button"),h(f,"class","label label-sm link-primary txt-mono"),h(p,"type","button"),h(p,"class","label label-sm link-primary txt-mono"),h(g,"type","button"),h(g,"class","label label-sm link-primary txt-mono"),h(b,"type","button"),h(b,"class","label label-sm link-primary txt-mono"),h(b,"title","Required parameter"),h(a,"class","help-block")},m(I,L){S(I,e,L),v(e,t),S(I,s,L),M[l].m(I,L),S(I,r,L),S(I,a,L),v(a,u),v(a,f),v(a,d),v(a,p),v(a,m),v(a,g),v(a,_),v(a,b),v(a,k),$=!0,T||(C=[J(f,"click",n[22]),J(p,"click",n[23]),J(g,"click",n[24]),J(b,"click",n[25])],T=!0)},p(I,L){(!$||L[1]&1&&i!==(i=I[31]))&&h(e,"for",i);let F=l;l=O(I),l===F?M[l].p(I,L):(re(),P(M[F],1,1,()=>{M[F]=null}),ae(),o=M[l],o?o.p(I,L):(o=M[l]=D[l](I),o.c()),A(o,1),o.m(r.parentNode,r))},i(I){$||(A(o),$=!0)},o(I){P(o),$=!1},d(I){I&&w(e),I&&w(s),M[l].d(I),I&&w(r),I&&w(a),T=!1,Ae(C)}}}function SE(n){let e,t,i,s,l,o;return e=new de({props:{class:"form-field required",name:n[1]+".subject",$$slots:{default:[bE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),i=new de({props:{class:"form-field required",name:n[1]+".actionUrl",$$slots:{default:[vE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),l=new de({props:{class:"form-field m-0 required",name:n[1]+".body",$$slots:{default:[wE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),U(l.$$.fragment)},m(r,a){z(e,r,a),S(r,t,a),z(i,r,a),S(r,s,a),z(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f.$$scope={dirty:a,ctx:r}),i.$set(f);const d={};a[0]&2&&(d.name=r[1]+".body"),a[0]&49|a[1]&3&&(d.$$scope={dirty:a,ctx:r}),l.$set(d)},i(r){o||(A(e.$$.fragment,r),A(i.$$.fragment,r),A(l.$$.fragment,r),o=!0)},o(r){P(e.$$.fragment,r),P(i.$$.fragment,r),P(l.$$.fragment,r),o=!1},d(r){B(e,r),r&&w(t),B(i,r),r&&w(s),B(l,r)}}}function Eh(n){let e,t,i,s,l;return{c(){e=y("i"),h(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Ye.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&tt(()=>{i&&(t||(t=ze(e,Yt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=ze(e,Yt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function $E(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&Eh();return{c(){e=y("div"),t=y("i"),i=E(),s=y("span"),l=Y(n[2]),o=E(),r=y("div"),a=E(),f&&f.c(),u=Ce(),h(t,"class","ri-draft-line"),h(s,"class","txt"),h(e,"class","inline-flex"),h(r,"class","flex-fill")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),v(s,l),S(d,o,p),S(d,r,p),S(d,a,p),f&&f.m(d,p),S(d,u,p)},p(d,p){p[0]&4&&le(l,d[2]),d[6]?f?p[0]&64&&A(f,1):(f=Eh(),f.c(),A(f,1),f.m(u.parentNode,u)):f&&(re(),P(f,1,1,()=>{f=null}),ae())},d(d){d&&w(e),d&&w(o),d&&w(r),d&&w(a),f&&f.d(d),d&&w(u)}}}function CE(n){let e,t;const i=[n[8]];let s={$$slots:{header:[$E],default:[SE]},$$scope:{ctx:n}};for(let l=0;lt(12,o=G));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,d=Ah,p=!1;function m(){f==null||f.expand()}function g(){f==null||f.collapse()}function _(){f==null||f.collapseSiblings()}async function b(){d||p||(t(5,p=!0),t(4,d=(await rt(()=>import("./CodeEditor-b3468e88.js"),["./CodeEditor-b3468e88.js","./index-be8a2174.js"],import.meta.url)).default),Ah=d,t(5,p=!1))}function k(G){H.copyToClipboard(G),s1(`Copied ${G} to clipboard`,2e3)}b();function $(){u.subject=this.value,t(0,u)}const T=()=>k("{APP_NAME}"),C=()=>k("{APP_URL}");function D(){u.actionUrl=this.value,t(0,u)}const M=()=>k("{APP_NAME}"),O=()=>k("{APP_URL}"),I=()=>k("{TOKEN}");function L(G){n.$$.not_equal(u.body,G)&&(u.body=G,t(0,u))}function F(){u.body=this.value,t(0,u)}const q=()=>k("{APP_NAME}"),N=()=>k("{APP_URL}"),R=()=>k("{TOKEN}"),j=()=>k("{ACTION_URL}");function V(G){ie[G?"unshift":"push"](()=>{f=G,t(3,f)})}function W(G){me.call(this,n,G)}function ee(G){me.call(this,n,G)}function te(G){me.call(this,n,G)}return n.$$set=G=>{e=je(je({},e),Zt(G)),t(8,l=xe(e,s)),"key"in G&&t(1,r=G.key),"title"in G&&t(2,a=G.title),"config"in G&&t(0,u=G.config)},n.$$.update=()=>{n.$$.dirty[0]&4098&&t(6,i=!H.isEmpty(H.getNestedVal(o,r))),n.$$.dirty[0]&3&&(u.enabled||Fi(r))},[u,r,a,f,d,p,i,k,l,m,g,_,o,$,T,C,D,M,O,I,L,F,q,N,R,j,V,W,ee,te]}class Fr extends ye{constructor(e){super(),ve(this,e,TE,CE,_e,{key:1,title:2,config:0,expand:9,collapse:10,collapseSiblings:11},null,[-1,-1])}get expand(){return this.$$.ctx[9]}get collapse(){return this.$$.ctx[10]}get collapseSiblings(){return this.$$.ctx[11]}}function Ih(n,e,t){const i=n.slice();return i[21]=e[t],i}function Ph(n,e){let t,i,s,l,o,r=e[21].label+"",a,u,f,d,p,m;return d=Ib(e[11][0]),{key:n,first:null,c(){t=y("div"),i=y("input"),l=E(),o=y("label"),a=Y(r),f=E(),h(i,"type","radio"),h(i,"name","template"),h(i,"id",s=e[20]+e[21].value),i.__value=e[21].value,i.value=i.__value,h(o,"for",u=e[20]+e[21].value),h(t,"class","form-field-block"),d.p(i),this.first=t},m(g,_){S(g,t,_),v(t,i),i.checked=i.__value===e[2],v(t,l),v(t,o),v(o,a),v(t,f),p||(m=J(i,"change",e[10]),p=!0)},p(g,_){e=g,_&1048576&&s!==(s=e[20]+e[21].value)&&h(i,"id",s),_&4&&(i.checked=i.__value===e[2]),_&1048576&&u!==(u=e[20]+e[21].value)&&h(o,"for",u)},d(g){g&&w(t),d.r(),p=!1,m()}}}function ME(n){let e=[],t=new Map,i,s=n[7];const l=o=>o[21].value;for(let o=0;o({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),s=new de({props:{class:"form-field required m-0",name:"email",$$slots:{default:[OE,({uniqueId:a})=>({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),{c(){e=y("form"),U(t.$$.fragment),i=E(),U(s.$$.fragment),h(e,"id",n[6]),h(e,"autocomplete","off")},m(a,u){S(a,e,u),z(t,e,null),v(e,i),z(s,e,null),l=!0,o||(r=J(e,"submit",at(n[13])),o=!0)},p(a,u){const f={};u&17825796&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const d={};u&17825794&&(d.$$scope={dirty:u,ctx:a}),s.$set(d)},i(a){l||(A(t.$$.fragment,a),A(s.$$.fragment,a),l=!0)},o(a){P(t.$$.fragment,a),P(s.$$.fragment,a),l=!1},d(a){a&&w(e),B(t),B(s),o=!1,r()}}}function EE(n){let e;return{c(){e=y("h4"),e.textContent="Send test email",h(e,"class","center txt-break")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function AE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("button"),t=Y("Close"),i=E(),s=y("button"),l=y("i"),o=E(),r=y("span"),r.textContent="Send",h(e,"type","button"),h(e,"class","btn btn-transparent"),e.disabled=n[4],h(l,"class","ri-mail-send-line"),h(r,"class","txt"),h(s,"type","submit"),h(s,"form",n[6]),h(s,"class","btn btn-expanded"),s.disabled=a=!n[5]||n[4],x(s,"btn-loading",n[4])},m(d,p){S(d,e,p),v(e,t),S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=J(e,"click",n[0]),u=!0)},p(d,p){p&16&&(e.disabled=d[4]),p&48&&a!==(a=!d[5]||d[4])&&(s.disabled=a),p&16&&x(s,"btn-loading",d[4])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,f()}}}function IE(n){let e,t,i={class:"overlay-panel-sm email-test-popup",overlayClose:!n[4],escClose:!n[4],beforeHide:n[14],popup:!0,$$slots:{footer:[AE],header:[EE],default:[DE]},$$scope:{ctx:n}};return e=new hn({props:i}),n[15](e),e.$on("show",n[16]),e.$on("hide",n[17]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[14]),l&16777270&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[15](null),B(e,s)}}}const Rr="last_email_test",Lh="email_test_request";function PE(n,e,t){let i;const s=Tt(),l="email_test_"+H.randomString(5),o=[{label:'"Verification" template',value:"verification"},{label:'"Password reset" template',value:"password-reset"},{label:'"Confirm email change" template',value:"email-change"}];let r,a=localStorage.getItem(Rr),u=o[0].value,f=!1,d=null;function p(O="",I=""){t(1,a=O||localStorage.getItem(Rr)),t(2,u=I||o[0].value),un({}),r==null||r.show()}function m(){return clearTimeout(d),r==null?void 0:r.hide()}async function g(){if(!(!i||f)){t(4,f=!0),localStorage==null||localStorage.setItem(Rr,a),clearTimeout(d),d=setTimeout(()=>{pe.cancelRequest(Lh),hl("Test email send timeout.")},3e4);try{await pe.settings.testEmail(a,u,{$cancelKey:Lh}),xt("Successfully sent test email."),s("submit"),t(4,f=!1),await an(),m()}catch(O){t(4,f=!1),pe.errorResponseHandler(O)}clearTimeout(d)}}const _=[[]];function b(){u=this.__value,t(2,u)}function k(){a=this.value,t(1,a)}const $=()=>g(),T=()=>!f;function C(O){ie[O?"unshift":"push"](()=>{r=O,t(3,r)})}function D(O){me.call(this,n,O)}function M(O){me.call(this,n,O)}return n.$$.update=()=>{n.$$.dirty&6&&t(5,i=!!a&&!!u)},[m,a,u,r,f,i,l,o,g,p,b,_,k,$,T,C,D,M]}class LE extends ye{constructor(e){super(),ve(this,e,PE,IE,_e,{show:9,hide:0})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[0]}}function NE(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M,O,I,L,F;i=new de({props:{class:"form-field required",name:"meta.senderName",$$slots:{default:[RE,({uniqueId:Q})=>({31:Q}),({uniqueId:Q})=>[0,Q?1:0]]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field required",name:"meta.senderAddress",$$slots:{default:[qE,({uniqueId:Q})=>({31:Q}),({uniqueId:Q})=>[0,Q?1:0]]},$$scope:{ctx:n}}});function q(Q){n[14](Q)}let N={single:!0,key:"meta.verificationTemplate",title:'Default "Verification" email template'};n[0].meta.verificationTemplate!==void 0&&(N.config=n[0].meta.verificationTemplate),u=new Fr({props:N}),ie.push(()=>he(u,"config",q));function R(Q){n[15](Q)}let j={single:!0,key:"meta.resetPasswordTemplate",title:'Default "Password reset" email template'};n[0].meta.resetPasswordTemplate!==void 0&&(j.config=n[0].meta.resetPasswordTemplate),p=new Fr({props:j}),ie.push(()=>he(p,"config",R));function V(Q){n[16](Q)}let W={single:!0,key:"meta.confirmEmailChangeTemplate",title:'Default "Confirm email change" email template'};n[0].meta.confirmEmailChangeTemplate!==void 0&&(W.config=n[0].meta.confirmEmailChangeTemplate),_=new Fr({props:W}),ie.push(()=>he(_,"config",V)),C=new de({props:{class:"form-field form-field-toggle m-b-sm",$$slots:{default:[jE,({uniqueId:Q})=>({31:Q}),({uniqueId:Q})=>[0,Q?1:0]]},$$scope:{ctx:n}}});let ee=n[0].smtp.enabled&&Nh(n);function te(Q,se){return Q[4]?KE:YE}let G=te(n),ce=G(n);return{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),U(u.$$.fragment),d=E(),U(p.$$.fragment),g=E(),U(_.$$.fragment),k=E(),$=y("hr"),T=E(),U(C.$$.fragment),D=E(),ee&&ee.c(),M=E(),O=y("div"),I=y("div"),L=E(),ce.c(),h(t,"class","col-lg-6"),h(l,"class","col-lg-6"),h(e,"class","grid m-b-base"),h(a,"class","accordions"),h(I,"class","flex-fill"),h(O,"class","flex")},m(Q,se){S(Q,e,se),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),S(Q,r,se),S(Q,a,se),z(u,a,null),v(a,d),z(p,a,null),v(a,g),z(_,a,null),S(Q,k,se),S(Q,$,se),S(Q,T,se),z(C,Q,se),S(Q,D,se),ee&&ee.m(Q,se),S(Q,M,se),S(Q,O,se),v(O,I),v(O,L),ce.m(O,null),F=!0},p(Q,se){const ge={};se[0]&1|se[1]&3&&(ge.$$scope={dirty:se,ctx:Q}),i.$set(ge);const $e={};se[0]&1|se[1]&3&&($e.$$scope={dirty:se,ctx:Q}),o.$set($e);const Ve={};!f&&se[0]&1&&(f=!0,Ve.config=Q[0].meta.verificationTemplate,ke(()=>f=!1)),u.$set(Ve);const Be={};!m&&se[0]&1&&(m=!0,Be.config=Q[0].meta.resetPasswordTemplate,ke(()=>m=!1)),p.$set(Be);const we={};!b&&se[0]&1&&(b=!0,we.config=Q[0].meta.confirmEmailChangeTemplate,ke(()=>b=!1)),_.$set(we);const Oe={};se[0]&1|se[1]&3&&(Oe.$$scope={dirty:se,ctx:Q}),C.$set(Oe),Q[0].smtp.enabled?ee?(ee.p(Q,se),se[0]&1&&A(ee,1)):(ee=Nh(Q),ee.c(),A(ee,1),ee.m(M.parentNode,M)):ee&&(re(),P(ee,1,1,()=>{ee=null}),ae()),G===(G=te(Q))&&ce?ce.p(Q,se):(ce.d(1),ce=G(Q),ce&&(ce.c(),ce.m(O,null)))},i(Q){F||(A(i.$$.fragment,Q),A(o.$$.fragment,Q),A(u.$$.fragment,Q),A(p.$$.fragment,Q),A(_.$$.fragment,Q),A(C.$$.fragment,Q),A(ee),F=!0)},o(Q){P(i.$$.fragment,Q),P(o.$$.fragment,Q),P(u.$$.fragment,Q),P(p.$$.fragment,Q),P(_.$$.fragment,Q),P(C.$$.fragment,Q),P(ee),F=!1},d(Q){Q&&w(e),B(i),B(o),Q&&w(r),Q&&w(a),B(u),B(p),B(_),Q&&w(k),Q&&w($),Q&&w(T),B(C,Q),Q&&w(D),ee&&ee.d(Q),Q&&w(M),Q&&w(O),ce.d()}}}function FE(n){let e;return{c(){e=y("div"),h(e,"class","loader")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function RE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender name"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","text"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].meta.senderName),r||(a=J(l,"input",n[12]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderName&&fe(l,u[0].meta.senderName)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function qE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender address"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","email"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].meta.senderAddress),r||(a=J(l,"input",n[13]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderAddress&&fe(l,u[0].meta.senderAddress)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function jE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("input"),i=E(),s=y("label"),l=y("span"),l.innerHTML="Use SMTP mail server (recommended)",o=E(),r=y("i"),h(e,"type","checkbox"),h(e,"id",t=n[31]),e.required=!0,h(l,"class","txt"),h(r,"class","ri-information-line link-hint"),h(s,"for",a=n[31])},m(d,p){S(d,e,p),e.checked=n[0].smtp.enabled,S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=[J(e,"change",n[17]),Ee(Ye.call(null,r,{text:'By default PocketBase uses the unix "sendmail" command for sending emails. For better emails deliverability it is recommended to use a SMTP mail server.',position:"top"}))],u=!0)},p(d,p){p[1]&1&&t!==(t=d[31])&&h(e,"id",t),p[0]&1&&(e.checked=d[0].smtp.enabled),p[1]&1&&a!==(a=d[31])&&h(s,"for",a)},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,Ae(f)}}}function Nh(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$,T,C,D,M;return i=new de({props:{class:"form-field required",name:"smtp.host",$$slots:{default:[VE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),o=new de({props:{class:"form-field required",name:"smtp.port",$$slots:{default:[HE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),u=new de({props:{class:"form-field required",name:"smtp.tls",$$slots:{default:[zE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),p=new de({props:{class:"form-field",name:"smtp.authMethod",$$slots:{default:[BE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),_=new de({props:{class:"form-field",name:"smtp.username",$$slots:{default:[UE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),$=new de({props:{class:"form-field",name:"smtp.password",$$slots:{default:[WE,({uniqueId:O})=>({31:O}),({uniqueId:O})=>[0,O?1:0]]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),U(i.$$.fragment),s=E(),l=y("div"),U(o.$$.fragment),r=E(),a=y("div"),U(u.$$.fragment),f=E(),d=y("div"),U(p.$$.fragment),m=E(),g=y("div"),U(_.$$.fragment),b=E(),k=y("div"),U($.$$.fragment),T=E(),C=y("div"),h(t,"class","col-lg-4"),h(l,"class","col-lg-2"),h(a,"class","col-lg-3"),h(d,"class","col-lg-3"),h(g,"class","col-lg-6"),h(k,"class","col-lg-6"),h(C,"class","col-lg-12"),h(e,"class","grid")},m(O,I){S(O,e,I),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),v(e,f),v(e,d),z(p,d,null),v(e,m),v(e,g),z(_,g,null),v(e,b),v(e,k),z($,k,null),v(e,T),v(e,C),M=!0},p(O,I){const L={};I[0]&1|I[1]&3&&(L.$$scope={dirty:I,ctx:O}),i.$set(L);const F={};I[0]&1|I[1]&3&&(F.$$scope={dirty:I,ctx:O}),o.$set(F);const q={};I[0]&1|I[1]&3&&(q.$$scope={dirty:I,ctx:O}),u.$set(q);const N={};I[0]&1|I[1]&3&&(N.$$scope={dirty:I,ctx:O}),p.$set(N);const R={};I[0]&1|I[1]&3&&(R.$$scope={dirty:I,ctx:O}),_.$set(R);const j={};I[0]&1|I[1]&3&&(j.$$scope={dirty:I,ctx:O}),$.$set(j)},i(O){M||(A(i.$$.fragment,O),A(o.$$.fragment,O),A(u.$$.fragment,O),A(p.$$.fragment,O),A(_.$$.fragment,O),A($.$$.fragment,O),O&&tt(()=>{M&&(D||(D=ze(e,bt,{duration:150},!0)),D.run(1))}),M=!0)},o(O){P(i.$$.fragment,O),P(o.$$.fragment,O),P(u.$$.fragment,O),P(p.$$.fragment,O),P(_.$$.fragment,O),P($.$$.fragment,O),O&&(D||(D=ze(e,bt,{duration:150},!1)),D.run(0)),M=!1},d(O){O&&w(e),B(i),B(o),B(u),B(p),B(_),B($),O&&D&&D.end()}}}function VE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("SMTP server host"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","text"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].smtp.host),r||(a=J(l,"input",n[18]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].smtp.host&&fe(l,u[0].smtp.host)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function HE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Port"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","number"),h(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].smtp.port),r||(a=J(l,"input",n[19]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&>(l.value)!==u[0].smtp.port&&fe(l,u[0].smtp.port)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function zE(n){let e,t,i,s,l,o,r;function a(f){n[20](f)}let u={id:n[31],items:n[6]};return n[0].smtp.tls!==void 0&&(u.keyOfSelected=n[0].smtp.tls),l=new zi({props:u}),ie.push(()=>he(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("TLS encryption"),s=E(),U(l.$$.fragment),h(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&h(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.tls,ke(()=>o=!1)),l.$set(p)},i(f){r||(A(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),B(l,f)}}}function BE(n){let e,t,i,s,l,o,r;function a(f){n[21](f)}let u={id:n[31],items:n[7]};return n[0].smtp.authMethod!==void 0&&(u.keyOfSelected=n[0].smtp.authMethod),l=new zi({props:u}),ie.push(()=>he(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("AUTH method"),s=E(),U(l.$$.fragment),h(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&h(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.authMethod,ke(()=>o=!1)),l.$set(p)},i(f){r||(A(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),B(l,f)}}}function UE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Username"),s=E(),l=y("input"),h(e,"for",i=n[31]),h(l,"type","text"),h(l,"id",o=n[31])},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),fe(l,n[0].smtp.username),r||(a=J(l,"input",n[22]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&h(e,"for",i),f[1]&1&&o!==(o=u[31])&&h(l,"id",o),f[0]&1&&l.value!==u[0].smtp.username&&fe(l,u[0].smtp.username)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function WE(n){let e,t,i,s,l,o,r;function a(f){n[23](f)}let u={id:n[31]};return n[0].smtp.password!==void 0&&(u.value=n[0].smtp.password),l=new pu({props:u}),ie.push(()=>he(l,"value",a)),{c(){e=y("label"),t=Y("Password"),s=E(),U(l.$$.fragment),h(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&h(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.value=f[0].smtp.password,ke(()=>o=!1)),l.$set(p)},i(f){r||(A(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),B(l,f)}}}function YE(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=` Send test email`,h(e,"type","button"),h(e,"class","btn btn-expanded btn-outline")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[26]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function KE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("button"),t=y("span"),t.textContent="Cancel",i=E(),s=y("button"),l=y("span"),l.textContent="Save changes",h(t,"class","txt"),h(e,"type","button"),h(e,"class","btn btn-transparent btn-hint"),e.disabled=n[3],h(l,"class","txt"),h(s,"type","submit"),h(s,"class","btn btn-expanded"),s.disabled=o=!n[4]||n[3],x(s,"btn-loading",n[3])},m(u,f){S(u,e,f),v(e,t),S(u,i,f),S(u,s,f),v(s,l),r||(a=[J(e,"click",n[24]),J(s,"click",n[25])],r=!0)},p(u,f){f[0]&8&&(e.disabled=u[3]),f[0]&24&&o!==(o=!u[4]||u[3])&&(s.disabled=o),f[0]&8&&x(s,"btn-loading",u[3])},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,Ae(a)}}}function JE(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b;const k=[FE,NE],$=[];function T(C,D){return C[2]?0:1}return p=T(n),m=$[p]=k[p](n),{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Settings",s=E(),l=y("div"),o=Y(n[5]),r=E(),a=y("div"),u=y("form"),f=y("div"),f.innerHTML="

    Configure common settings for sending emails.

    ",d=E(),m.c(),h(i,"class","breadcrumb-item"),h(l,"class","breadcrumb-item"),h(t,"class","breadcrumbs"),h(e,"class","page-header"),h(f,"class","content txt-xl m-b-base"),h(u,"class","panel"),h(u,"autocomplete","off"),h(a,"class","wrapper")},m(C,D){S(C,e,D),v(e,t),v(t,i),v(t,s),v(t,l),v(l,o),S(C,r,D),S(C,a,D),v(a,u),v(u,f),v(u,d),$[p].m(u,null),g=!0,_||(b=J(u,"submit",at(n[27])),_=!0)},p(C,D){(!g||D[0]&32)&&le(o,C[5]);let M=p;p=T(C),p===M?$[p].p(C,D):(re(),P($[M],1,1,()=>{$[M]=null}),ae(),m=$[p],m?m.p(C,D):(m=$[p]=k[p](C),m.c()),A(m,1),m.m(u,null))},i(C){g||(A(m),g=!0)},o(C){P(m),g=!1},d(C){C&&w(e),C&&w(r),C&&w(a),$[p].d(),_=!1,b()}}}function ZE(n){let e,t,i,s,l,o;e=new Bi({}),i=new Pn({props:{$$slots:{default:[JE]},$$scope:{ctx:n}}});let r={};return l=new LE({props:r}),n[28](l),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),U(l.$$.fragment)},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),z(l,a,u),o=!0},p(a,u){const f={};u[0]&63|u[1]&2&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};l.$set(d)},i(a){o||(A(e.$$.fragment,a),A(i.$$.fragment,a),A(l.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),P(l.$$.fragment,a),o=!1},d(a){B(e,a),a&&w(t),B(i,a),a&&w(s),n[28](null),B(l,a)}}}function GE(n,e,t){let i,s,l;Ze(n,Ft,te=>t(5,l=te));const o=[{label:"Auto (StartTLS)",value:!1},{label:"Always",value:!0}],r=[{label:"PLAIN (default)",value:"PLAIN"},{label:"LOGIN",value:"LOGIN"}];rn(Ft,l="Mail settings",l);let a,u={},f={},d=!1,p=!1;m();async function m(){t(2,d=!0);try{const te=await pe.settings.getAll()||{};_(te)}catch(te){pe.errorResponseHandler(te)}t(2,d=!1)}async function g(){if(!(p||!s)){t(3,p=!0);try{const te=await pe.settings.update(H.filterRedactedProps(f));_(te),un({}),xt("Successfully saved mail settings.")}catch(te){pe.errorResponseHandler(te)}t(3,p=!1)}}function _(te={}){t(0,f={meta:(te==null?void 0:te.meta)||{},smtp:(te==null?void 0:te.smtp)||{}}),f.smtp.authMethod||t(0,f.smtp.authMethod=r[0].value,f),t(10,u=JSON.parse(JSON.stringify(f)))}function b(){t(0,f=JSON.parse(JSON.stringify(u||{})))}function k(){f.meta.senderName=this.value,t(0,f)}function $(){f.meta.senderAddress=this.value,t(0,f)}function T(te){n.$$.not_equal(f.meta.verificationTemplate,te)&&(f.meta.verificationTemplate=te,t(0,f))}function C(te){n.$$.not_equal(f.meta.resetPasswordTemplate,te)&&(f.meta.resetPasswordTemplate=te,t(0,f))}function D(te){n.$$.not_equal(f.meta.confirmEmailChangeTemplate,te)&&(f.meta.confirmEmailChangeTemplate=te,t(0,f))}function M(){f.smtp.enabled=this.checked,t(0,f)}function O(){f.smtp.host=this.value,t(0,f)}function I(){f.smtp.port=gt(this.value),t(0,f)}function L(te){n.$$.not_equal(f.smtp.tls,te)&&(f.smtp.tls=te,t(0,f))}function F(te){n.$$.not_equal(f.smtp.authMethod,te)&&(f.smtp.authMethod=te,t(0,f))}function q(){f.smtp.username=this.value,t(0,f)}function N(te){n.$$.not_equal(f.smtp.password,te)&&(f.smtp.password=te,t(0,f))}const R=()=>b(),j=()=>g(),V=()=>a==null?void 0:a.show(),W=()=>g();function ee(te){ie[te?"unshift":"push"](()=>{a=te,t(1,a)})}return n.$$.update=()=>{n.$$.dirty[0]&1024&&t(11,i=JSON.stringify(u)),n.$$.dirty[0]&2049&&t(4,s=i!=JSON.stringify(f))},[f,a,d,p,s,l,o,r,g,b,u,i,k,$,T,C,D,M,O,I,L,F,q,N,R,j,V,W,ee]}class XE extends ye{constructor(e){super(),ve(this,e,GE,ZE,_e,{},null,[-1,-1])}}function QE(n){var C,D;let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_;e=new de({props:{class:"form-field form-field-toggle",$$slots:{default:[eA,({uniqueId:M})=>({25:M}),({uniqueId:M})=>M?33554432:0]},$$scope:{ctx:n}}});let b=((C=n[0].s3)==null?void 0:C.enabled)!=n[1].s3.enabled&&Fh(n),k=n[1].s3.enabled&&Rh(n),$=((D=n[1].s3)==null?void 0:D.enabled)&&!n[6]&&!n[3]&&qh(n),T=n[6]&&jh(n);return{c(){U(e.$$.fragment),t=E(),b&&b.c(),i=E(),k&&k.c(),s=E(),l=y("div"),o=y("div"),r=E(),$&&$.c(),a=E(),T&&T.c(),u=E(),f=y("button"),d=y("span"),d.textContent="Save changes",h(o,"class","flex-fill"),h(d,"class","txt"),h(f,"type","submit"),h(f,"class","btn btn-expanded"),f.disabled=p=!n[6]||n[3],x(f,"btn-loading",n[3]),h(l,"class","flex")},m(M,O){z(e,M,O),S(M,t,O),b&&b.m(M,O),S(M,i,O),k&&k.m(M,O),S(M,s,O),S(M,l,O),v(l,o),v(l,r),$&&$.m(l,null),v(l,a),T&&T.m(l,null),v(l,u),v(l,f),v(f,d),m=!0,g||(_=J(f,"click",n[19]),g=!0)},p(M,O){var L,F;const I={};O&100663298&&(I.$$scope={dirty:O,ctx:M}),e.$set(I),((L=M[0].s3)==null?void 0:L.enabled)!=M[1].s3.enabled?b?(b.p(M,O),O&3&&A(b,1)):(b=Fh(M),b.c(),A(b,1),b.m(i.parentNode,i)):b&&(re(),P(b,1,1,()=>{b=null}),ae()),M[1].s3.enabled?k?(k.p(M,O),O&2&&A(k,1)):(k=Rh(M),k.c(),A(k,1),k.m(s.parentNode,s)):k&&(re(),P(k,1,1,()=>{k=null}),ae()),(F=M[1].s3)!=null&&F.enabled&&!M[6]&&!M[3]?$?$.p(M,O):($=qh(M),$.c(),$.m(l,a)):$&&($.d(1),$=null),M[6]?T?T.p(M,O):(T=jh(M),T.c(),T.m(l,u)):T&&(T.d(1),T=null),(!m||O&72&&p!==(p=!M[6]||M[3]))&&(f.disabled=p),(!m||O&8)&&x(f,"btn-loading",M[3])},i(M){m||(A(e.$$.fragment,M),A(b),A(k),m=!0)},o(M){P(e.$$.fragment,M),P(b),P(k),m=!1},d(M){B(e,M),M&&w(t),b&&b.d(M),M&&w(i),k&&k.d(M),M&&w(s),M&&w(l),$&&$.d(),T&&T.d(),g=!1,_()}}}function xE(n){let e;return{c(){e=y("div"),h(e,"class","loader")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function eA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=E(),s=y("label"),l=Y("Use S3 storage"),h(e,"type","checkbox"),h(e,"id",t=n[25]),e.required=!0,h(s,"for",o=n[25])},m(u,f){S(u,e,f),e.checked=n[1].s3.enabled,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[11]),r=!0)},p(u,f){f&33554432&&t!==(t=u[25])&&h(e,"id",t),f&2&&(e.checked=u[1].s3.enabled),f&33554432&&o!==(o=u[25])&&h(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Fh(n){var L;let e,t,i,s,l,o,r,a=(L=n[0].s3)!=null&&L.enabled?"S3 storage":"local file system",u,f,d,p=n[1].s3.enabled?"S3 storage":"local file system",m,g,_,b,k,$,T,C,D,M,O,I;return{c(){e=y("div"),t=y("div"),i=y("div"),i.innerHTML='',s=E(),l=y("div"),o=Y(`If you have existing uploaded files, you'll have to migrate them manually from the `),r=y("strong"),u=Y(a),f=Y(` @@ -206,6 +206,6 @@ Updated: ${b[1].updated}`,position:"left"}),k[0]&536870912&&p!==(p=b[29])&&h(d," `),o=y("button"),o.innerHTML='Load from JSON file',r=E(),U(a.$$.fragment),u=E(),f=E(),L&&L.c(),d=E(),F&&F.c(),p=E(),q&&q.c(),m=E(),g=y("div"),N&&N.c(),_=E(),b=y("div"),k=E(),$=y("button"),T=y("span"),T.textContent="Review",h(e,"type","file"),h(e,"class","hidden"),h(e,"accept",".json"),h(o,"class","btn btn-outline btn-sm m-l-5"),x(o,"btn-loading",n[12]),h(i,"class","content txt-xl m-b-base"),h(b,"class","flex-fill"),h(T,"class","txt"),h($,"type","button"),h($,"class","btn btn-expanded btn-warning m-l-auto"),$.disabled=C=!n[14],h(g,"class","flex m-t-base")},m(R,j){S(R,e,j),n[19](e),S(R,t,j),S(R,i,j),v(i,s),v(s,l),v(s,o),S(R,r,j),z(a,R,j),S(R,u,j),S(R,f,j),L&&L.m(R,j),S(R,d,j),F&&F.m(R,j),S(R,p,j),q&&q.m(R,j),S(R,m,j),S(R,g,j),N&&N.m(g,null),v(g,_),v(g,b),v(g,k),v(g,$),v($,T),D=!0,M||(O=[J(e,"change",n[20]),J(o,"click",n[21]),J($,"click",n[26])],M=!0)},p(R,j){(!D||j[0]&4096)&&x(o,"btn-loading",R[12]);const V={};j[0]&64&&(V.class="form-field "+(R[6]?"":"field-error")),j[0]&65|j[1]&1536&&(V.$$scope={dirty:j,ctx:R}),a.$set(V),R[6]&&R[1].length&&!R[7]?L||(L=S_(),L.c(),L.m(d.parentNode,d)):L&&(L.d(1),L=null),R[6]&&R[1].length&&R[7]?F?F.p(R,j):(F=$_(R),F.c(),F.m(p.parentNode,p)):F&&(F.d(1),F=null),R[13].length?q?q.p(R,j):(q=N_(R),q.c(),q.m(m.parentNode,m)):q&&(q.d(1),q=null),R[0]?N?N.p(R,j):(N=F_(R),N.c(),N.m(g,_)):N&&(N.d(1),N=null),(!D||j[0]&16384&&C!==(C=!R[14]))&&($.disabled=C)},i(R){D||(A(a.$$.fragment,R),A(I),D=!0)},o(R){P(a.$$.fragment,R),P(I),D=!1},d(R){R&&w(e),n[19](null),R&&w(t),R&&w(i),R&&w(r),B(a,R),R&&w(u),R&&w(f),L&&L.d(R),R&&w(d),F&&F.d(R),R&&w(p),q&&q.d(R),R&&w(m),R&&w(g),N&&N.d(),M=!1,Ae(O)}}}function lI(n){let e;return{c(){e=y("div"),h(e,"class","loader")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function w_(n){let e;return{c(){e=y("div"),e.textContent="Invalid collections configuration.",h(e,"class","help-block help-block-error")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function oI(n){let e,t,i,s,l,o,r,a,u,f,d=!!n[0]&&!n[6]&&w_();return{c(){e=y("label"),t=Y("Collections"),s=E(),l=y("textarea"),r=E(),d&&d.c(),a=Ce(),h(e,"for",i=n[40]),h(e,"class","p-b-10"),h(l,"id",o=n[40]),h(l,"class","code"),h(l,"spellcheck","false"),h(l,"rows","15"),l.required=!0},m(p,m){S(p,e,m),v(e,t),S(p,s,m),S(p,l,m),fe(l,n[0]),S(p,r,m),d&&d.m(p,m),S(p,a,m),u||(f=J(l,"input",n[22]),u=!0)},p(p,m){m[1]&512&&i!==(i=p[40])&&h(e,"for",i),m[1]&512&&o!==(o=p[40])&&h(l,"id",o),m[0]&1&&fe(l,p[0]),p[0]&&!p[6]?d||(d=w_(),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null)},d(p){p&&w(e),p&&w(s),p&&w(l),p&&w(r),d&&d.d(p),p&&w(a),u=!1,f()}}}function S_(n){let e;return{c(){e=y("div"),e.innerHTML=`
    Your collections configuration is already up-to-date!
    `,h(e,"class","alert alert-info")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function $_(n){let e,t,i,s,l,o=n[9].length&&C_(n),r=n[4].length&&O_(n),a=n[8].length&&I_(n);return{c(){e=y("h5"),e.textContent="Detected changes",t=E(),i=y("div"),o&&o.c(),s=E(),r&&r.c(),l=E(),a&&a.c(),h(e,"class","section-title"),h(i,"class","list")},m(u,f){S(u,e,f),S(u,t,f),S(u,i,f),o&&o.m(i,null),v(i,s),r&&r.m(i,null),v(i,l),a&&a.m(i,null)},p(u,f){u[9].length?o?o.p(u,f):(o=C_(u),o.c(),o.m(i,s)):o&&(o.d(1),o=null),u[4].length?r?r.p(u,f):(r=O_(u),r.c(),r.m(i,l)):r&&(r.d(1),r=null),u[8].length?a?a.p(u,f):(a=I_(u),a.c(),a.m(i,null)):a&&(a.d(1),a=null)},d(u){u&&w(e),u&&w(t),u&&w(i),o&&o.d(),r&&r.d(),a&&a.d()}}}function C_(n){let e=[],t=new Map,i,s=n[9];const l=o=>o[32].id;for(let o=0;oo[35].old.id+o[35].new.id;for(let o=0;oo[32].id;for(let o=0;o',i=E(),s=y("div"),s.innerHTML=`Some of the imported collections share the same name and/or fields but are imported with different IDs. You can replace them in the import if you want - to.`,l=E(),o=y("button"),o.innerHTML='Replace with original ids',h(t,"class","icon"),h(s,"class","content"),h(o,"type","button"),h(o,"class","btn btn-warning btn-sm btn-outline"),h(e,"class","alert alert-warning m-t-base")},m(u,f){S(u,e,f),v(e,t),v(e,i),v(e,s),v(e,l),v(e,o),r||(a=J(o,"click",n[24]),r=!0)},p:X,d(u){u&&w(e),r=!1,a()}}}function F_(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Clear',h(e,"type","button"),h(e,"class","btn btn-transparent link-hint")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[25]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function rI(n){let e,t,i,s,l,o,r,a,u,f,d,p;const m=[lI,sI],g=[];function _(b,k){return b[5]?0:1}return f=_(n),d=g[f]=m[f](n),{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Settings",s=E(),l=y("div"),o=Y(n[15]),r=E(),a=y("div"),u=y("div"),d.c(),h(i,"class","breadcrumb-item"),h(l,"class","breadcrumb-item"),h(t,"class","breadcrumbs"),h(e,"class","page-header"),h(u,"class","panel"),h(a,"class","wrapper")},m(b,k){S(b,e,k),v(e,t),v(t,i),v(t,s),v(t,l),v(l,o),S(b,r,k),S(b,a,k),v(a,u),g[f].m(u,null),p=!0},p(b,k){(!p||k[0]&32768)&&le(o,b[15]);let $=f;f=_(b),f===$?g[f].p(b,k):(re(),P(g[$],1,1,()=>{g[$]=null}),ae(),d=g[f],d?d.p(b,k):(d=g[f]=m[f](b),d.c()),A(d,1),d.m(u,null))},i(b){p||(A(d),p=!0)},o(b){P(d),p=!1},d(b){b&&w(e),b&&w(r),b&&w(a),g[f].d()}}}function aI(n){let e,t,i,s,l,o;e=new Bi({}),i=new Pn({props:{$$slots:{default:[rI]},$$scope:{ctx:n}}});let r={};return l=new iI({props:r}),n[27](l),l.$on("submit",n[28]),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),U(l.$$.fragment)},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),z(l,a,u),o=!0},p(a,u){const f={};u[0]&65535|u[1]&1024&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};l.$set(d)},i(a){o||(A(e.$$.fragment,a),A(i.$$.fragment,a),A(l.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),P(l.$$.fragment,a),o=!1},d(a){B(e,a),a&&w(t),B(i,a),a&&w(s),n[27](null),B(l,a)}}}function uI(n,e,t){let i,s,l,o,r,a,u;Ze(n,Ft,G=>t(15,u=G)),rn(Ft,u="Import collections",u);let f,d,p="",m=!1,g=[],_=[],b=!0,k=[],$=!1;T();async function T(){t(5,$=!0);try{t(2,_=await pe.collections.getFullList(200));for(let G of _)delete G.created,delete G.updated}catch(G){pe.errorResponseHandler(G)}t(5,$=!1)}function C(){if(t(4,k=[]),!!i)for(let G of g){const ce=H.findByKey(_,"id",G.id);!(ce!=null&&ce.id)||!H.hasCollectionChanges(ce,G,b)||k.push({new:G,old:ce})}}function D(){t(1,g=[]);try{t(1,g=JSON.parse(p))}catch{}Array.isArray(g)?t(1,g=H.filterDuplicatesByKey(g)):t(1,g=[]);for(let G of g)delete G.created,delete G.updated,G.schema=H.filterDuplicatesByKey(G.schema)}function M(){var G,ce;for(let Q of g){const se=H.findByKey(_,"name",Q.name)||H.findByKey(_,"id",Q.id);if(!se)continue;const ge=Q.id,$e=se.id;Q.id=$e;const Ve=Array.isArray(se.schema)?se.schema:[],Be=Array.isArray(Q.schema)?Q.schema:[];for(const we of Be){const Oe=H.findByKey(Ve,"name",we.name);Oe&&Oe.id&&(we.id=Oe.id)}for(let we of g)if(Array.isArray(we.schema))for(let Oe of we.schema)(G=Oe.options)!=null&&G.collectionId&&((ce=Oe.options)==null?void 0:ce.collectionId)===ge&&(Oe.options.collectionId=$e)}t(0,p=JSON.stringify(g,null,4))}function O(G){t(12,m=!0);const ce=new FileReader;ce.onload=async Q=>{t(12,m=!1),t(10,f.value="",f),t(0,p=Q.target.result),await an(),g.length||(hl("Invalid collections configuration."),I())},ce.onerror=Q=>{console.warn(Q),hl("Failed to load the imported JSON."),t(12,m=!1),t(10,f.value="",f)},ce.readAsText(G)}function I(){t(0,p=""),t(10,f.value="",f),un({})}function L(G){ie[G?"unshift":"push"](()=>{f=G,t(10,f)})}const F=()=>{f.files.length&&O(f.files[0])},q=()=>{f.click()};function N(){p=this.value,t(0,p)}function R(){b=this.checked,t(3,b)}const j=()=>M(),V=()=>I(),W=()=>d==null?void 0:d.show(_,g,b);function ee(G){ie[G?"unshift":"push"](()=>{d=G,t(11,d)})}const te=()=>I();return n.$$.update=()=>{n.$$.dirty[0]&1&&typeof p<"u"&&D(),n.$$.dirty[0]&3&&t(6,i=!!p&&g.length&&g.length===g.filter(G=>!!G.id&&!!G.name).length),n.$$.dirty[0]&78&&t(9,s=_.filter(G=>i&&b&&!H.findByKey(g,"id",G.id))),n.$$.dirty[0]&70&&t(8,l=g.filter(G=>i&&!H.findByKey(_,"id",G.id))),n.$$.dirty[0]&10&&(typeof g<"u"||typeof b<"u")&&C(),n.$$.dirty[0]&785&&t(7,o=!!p&&(s.length||l.length||k.length)),n.$$.dirty[0]&224&&t(14,r=!$&&i&&o),n.$$.dirty[0]&6&&t(13,a=g.filter(G=>{let ce=H.findByKey(_,"name",G.name)||H.findByKey(_,"id",G.id);if(!ce)return!1;if(ce.id!=G.id)return!0;const Q=Array.isArray(ce.schema)?ce.schema:[],se=Array.isArray(G.schema)?G.schema:[];for(const ge of se){if(H.findByKey(Q,"id",ge.id))continue;const Ve=H.findByKey(Q,"name",ge.name);if(Ve&&ge.id!=Ve.id)return!0}return!1}))},[p,g,_,b,k,$,i,o,l,s,f,d,m,a,r,u,M,O,I,L,F,q,N,R,j,V,W,ee,te]}class fI extends ye{constructor(e){super(),ve(this,e,uI,aI,_e,{},null,[-1,-1])}}const Bt=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?ji("/"):!0}],cI={"/login":jt({component:iE,conditions:Bt.concat([n=>!pe.authStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":jt({asyncComponent:()=>rt(()=>import("./PageAdminRequestPasswordReset-3fef4398.js"),[],import.meta.url),conditions:Bt.concat([n=>!pe.authStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":jt({asyncComponent:()=>rt(()=>import("./PageAdminConfirmPasswordReset-1660953a.js"),[],import.meta.url),conditions:Bt.concat([n=>!pe.authStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":jt({component:MD,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":jt({component:y$,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings":jt({component:pE,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":jt({component:XD,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":jt({component:XE,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":jt({component:pA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":jt({component:EA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":jt({component:jA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/export-collections":jt({component:WA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/import-collections":jt({component:fI,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmPasswordReset-527f0d01.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/confirm-password-reset/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmPasswordReset-527f0d01.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmVerification-15580e3b.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/confirm-verification/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmVerification-15580e3b.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmEmailChange-3ff2bfd1.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/confirm-email-change/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmEmailChange-3ff2bfd1.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/oauth2-redirect":jt({asyncComponent:()=>rt(()=>import("./PageOAuth2Redirect-a5e8ebbd.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"*":jt({component:Hy,userData:{showAppSidebar:!1}})};function dI(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[o,r]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*o/t.width-(t.left+o),u=e.top+e.height*r/t.height-(t.top+r),{delay:f=0,duration:d=m=>Math.sqrt(m)*120,easing:p=Wo}=i;return{delay:f,duration:Ht(d)?d(Math.sqrt(a*a+u*u)):d,easing:p,css:(m,g)=>{const _=g*a,b=g*u,k=m+g*e.width/t.width,$=m+g*e.height/t.height;return`transform: ${l} translate(${_}px, ${b}px) scale(${k}, ${$});`}}}function R_(n,e,t){const i=n.slice();return i[2]=e[t],i}function pI(n){let e;return{c(){e=y("i"),h(e,"class","ri-alert-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function mI(n){let e;return{c(){e=y("i"),h(e,"class","ri-error-warning-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function hI(n){let e;return{c(){e=y("i"),h(e,"class","ri-checkbox-circle-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function _I(n){let e;return{c(){e=y("i"),h(e,"class","ri-information-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function q_(n,e){let t,i,s,l,o=e[2].message+"",r,a,u,f,d,p,m,g=X,_,b,k;function $(M,O){return M[2].type==="info"?_I:M[2].type==="success"?hI:M[2].type==="warning"?mI:pI}let T=$(e),C=T(e);function D(){return e[1](e[2])}return{key:n,first:null,c(){t=y("div"),i=y("div"),C.c(),s=E(),l=y("div"),r=Y(o),a=E(),u=y("button"),u.innerHTML='',f=E(),h(i,"class","icon"),h(l,"class","content"),h(u,"type","button"),h(u,"class","close"),h(t,"class","alert txt-break"),x(t,"alert-info",e[2].type=="info"),x(t,"alert-success",e[2].type=="success"),x(t,"alert-danger",e[2].type=="error"),x(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,O){S(M,t,O),v(t,i),C.m(i,null),v(t,s),v(t,l),v(l,r),v(t,a),v(t,u),v(t,f),_=!0,b||(k=J(u,"click",at(D)),b=!0)},p(M,O){e=M,T!==(T=$(e))&&(C.d(1),C=T(e),C&&(C.c(),C.m(i,null))),(!_||O&1)&&o!==(o=e[2].message+"")&&le(r,o),(!_||O&1)&&x(t,"alert-info",e[2].type=="info"),(!_||O&1)&&x(t,"alert-success",e[2].type=="success"),(!_||O&1)&&x(t,"alert-danger",e[2].type=="error"),(!_||O&1)&&x(t,"alert-warning",e[2].type=="warning")},r(){m=t.getBoundingClientRect()},f(){qb(t),g(),K_(t,m)},a(){g(),g=Rb(t,m,dI,{duration:150})},i(M){_||(tt(()=>{_&&(p&&p.end(1),d=G_(t,bt,{duration:150}),d.start())}),_=!0)},o(M){d&&d.invalidate(),p=wa(t,Qr,{duration:150}),_=!1},d(M){M&&w(t),C.d(),M&&p&&p.end(),b=!1,k()}}}function gI(n){let e,t=[],i=new Map,s,l=n[0];const o=r=>r[2].message;for(let r=0;rt(0,i=l)),[i,l=>l1(l)]}class vI extends ye{constructor(e){super(),ve(this,e,bI,gI,_e,{})}}function yI(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=y("h4"),i=Y(t),h(e,"class","block center txt-break"),h(e,"slot","header")},m(l,o){S(l,e,o),v(e,i)},p(l,o){var r;o&2&&t!==(t=((r=l[1])==null?void 0:r.text)+"")&&le(i,t)},d(l){l&&w(e)}}}function kI(n){let e,t,i,s,l,o,r;return{c(){e=y("button"),t=y("span"),t.textContent="No",i=E(),s=y("button"),l=y("span"),l.textContent="Yes",h(t,"class","txt"),e.autofocus=!0,h(e,"type","button"),h(e,"class","btn btn-transparent btn-expanded-sm"),e.disabled=n[2],h(l,"class","txt"),h(s,"type","button"),h(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],x(s,"btn-loading",n[2])},m(a,u){S(a,e,u),v(e,t),S(a,i,u),S(a,s,u),v(s,l),e.focus(),o||(r=[J(e,"click",n[4]),J(s,"click",n[5])],o=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&x(s,"btn-loading",a[2])},d(a){a&&w(e),a&&w(i),a&&w(s),o=!1,Ae(r)}}}function wI(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[kI],header:[yI]},$$scope:{ctx:n}};return e=new hn({props:i}),n[6](e),e.$on("hide",n[7]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4&&(o.overlayClose=!s[2]),l&4&&(o.escClose=!s[2]),l&271&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[6](null),B(e,s)}}}function SI(n,e,t){let i;Ze(n,ru,d=>t(1,i=d));let s,l=!1,o=!1;const r=()=>{t(3,o=!1),s==null||s.hide()},a=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),t(3,o=!0),s==null||s.hide()};function u(d){ie[d?"unshift":"push"](()=>{s=d,t(0,s)})}const f=async()=>{!o&&(i!=null&&i.noCallback)&&i.noCallback(),await an(),t(3,o=!1),ub()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(t(3,o=!1),s==null||s.show())},[s,i,l,o,r,a,u,f]}class $I extends ye{constructor(e){super(),ve(this,e,SI,wI,_e,{})}}function j_(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$;return _=new ei({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[CI]},$$scope:{ctx:n}}}),{c(){var T;e=y("aside"),t=y("a"),t.innerHTML='PocketBase logo',i=E(),s=y("nav"),l=y("a"),l.innerHTML='',o=E(),r=y("a"),r.innerHTML='',a=E(),u=y("a"),u.innerHTML='',f=E(),d=y("figure"),p=y("img"),g=E(),U(_.$$.fragment),h(t,"href","/"),h(t,"class","logo logo-sm"),h(l,"href","/collections"),h(l,"class","menu-item"),h(l,"aria-label","Collections"),h(r,"href","/logs"),h(r,"class","menu-item"),h(r,"aria-label","Logs"),h(u,"href","/settings"),h(u,"class","menu-item"),h(u,"aria-label","Settings"),h(s,"class","main-menu"),mn(p.src,m="./images/avatars/avatar"+(((T=n[0])==null?void 0:T.avatar)||0)+".svg")||h(p,"src",m),h(p,"alt","Avatar"),h(d,"class","thumb thumb-circle link-hint closable"),h(e,"class","app-sidebar")},m(T,C){S(T,e,C),v(e,t),v(e,i),v(e,s),v(s,l),v(s,o),v(s,r),v(s,a),v(s,u),v(e,f),v(e,d),v(d,p),v(d,g),z(_,d,null),b=!0,k||($=[Ee(dn.call(null,t)),Ee(dn.call(null,l)),Ee(Zn.call(null,l,{path:"/collections/?.*",className:"current-route"})),Ee(Ye.call(null,l,{text:"Collections",position:"right"})),Ee(dn.call(null,r)),Ee(Zn.call(null,r,{path:"/logs/?.*",className:"current-route"})),Ee(Ye.call(null,r,{text:"Logs",position:"right"})),Ee(dn.call(null,u)),Ee(Zn.call(null,u,{path:"/settings/?.*",className:"current-route"})),Ee(Ye.call(null,u,{text:"Settings",position:"right"}))],k=!0)},p(T,C){var M;(!b||C&1&&!mn(p.src,m="./images/avatars/avatar"+(((M=T[0])==null?void 0:M.avatar)||0)+".svg"))&&h(p,"src",m);const D={};C&4096&&(D.$$scope={dirty:C,ctx:T}),_.$set(D)},i(T){b||(A(_.$$.fragment,T),b=!0)},o(T){P(_.$$.fragment,T),b=!1},d(T){T&&w(e),B(_),k=!1,Ae($)}}}function CI(n){let e,t,i,s,l,o,r;return{c(){e=y("a"),e.innerHTML=` + to.
    `,l=E(),o=y("button"),o.innerHTML='Replace with original ids',h(t,"class","icon"),h(s,"class","content"),h(o,"type","button"),h(o,"class","btn btn-warning btn-sm btn-outline"),h(e,"class","alert alert-warning m-t-base")},m(u,f){S(u,e,f),v(e,t),v(e,i),v(e,s),v(e,l),v(e,o),r||(a=J(o,"click",n[24]),r=!0)},p:X,d(u){u&&w(e),r=!1,a()}}}function F_(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Clear',h(e,"type","button"),h(e,"class","btn btn-transparent link-hint")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[25]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function rI(n){let e,t,i,s,l,o,r,a,u,f,d,p;const m=[lI,sI],g=[];function _(b,k){return b[5]?0:1}return f=_(n),d=g[f]=m[f](n),{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Settings",s=E(),l=y("div"),o=Y(n[15]),r=E(),a=y("div"),u=y("div"),d.c(),h(i,"class","breadcrumb-item"),h(l,"class","breadcrumb-item"),h(t,"class","breadcrumbs"),h(e,"class","page-header"),h(u,"class","panel"),h(a,"class","wrapper")},m(b,k){S(b,e,k),v(e,t),v(t,i),v(t,s),v(t,l),v(l,o),S(b,r,k),S(b,a,k),v(a,u),g[f].m(u,null),p=!0},p(b,k){(!p||k[0]&32768)&&le(o,b[15]);let $=f;f=_(b),f===$?g[f].p(b,k):(re(),P(g[$],1,1,()=>{g[$]=null}),ae(),d=g[f],d?d.p(b,k):(d=g[f]=m[f](b),d.c()),A(d,1),d.m(u,null))},i(b){p||(A(d),p=!0)},o(b){P(d),p=!1},d(b){b&&w(e),b&&w(r),b&&w(a),g[f].d()}}}function aI(n){let e,t,i,s,l,o;e=new Bi({}),i=new Pn({props:{$$slots:{default:[rI]},$$scope:{ctx:n}}});let r={};return l=new iI({props:r}),n[27](l),l.$on("submit",n[28]),{c(){U(e.$$.fragment),t=E(),U(i.$$.fragment),s=E(),U(l.$$.fragment)},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),z(l,a,u),o=!0},p(a,u){const f={};u[0]&65535|u[1]&1024&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};l.$set(d)},i(a){o||(A(e.$$.fragment,a),A(i.$$.fragment,a),A(l.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),P(l.$$.fragment,a),o=!1},d(a){B(e,a),a&&w(t),B(i,a),a&&w(s),n[27](null),B(l,a)}}}function uI(n,e,t){let i,s,l,o,r,a,u;Ze(n,Ft,G=>t(15,u=G)),rn(Ft,u="Import collections",u);let f,d,p="",m=!1,g=[],_=[],b=!0,k=[],$=!1;T();async function T(){t(5,$=!0);try{t(2,_=await pe.collections.getFullList(200));for(let G of _)delete G.created,delete G.updated}catch(G){pe.errorResponseHandler(G)}t(5,$=!1)}function C(){if(t(4,k=[]),!!i)for(let G of g){const ce=H.findByKey(_,"id",G.id);!(ce!=null&&ce.id)||!H.hasCollectionChanges(ce,G,b)||k.push({new:G,old:ce})}}function D(){t(1,g=[]);try{t(1,g=JSON.parse(p))}catch{}Array.isArray(g)?t(1,g=H.filterDuplicatesByKey(g)):t(1,g=[]);for(let G of g)delete G.created,delete G.updated,G.schema=H.filterDuplicatesByKey(G.schema)}function M(){var G,ce;for(let Q of g){const se=H.findByKey(_,"name",Q.name)||H.findByKey(_,"id",Q.id);if(!se)continue;const ge=Q.id,$e=se.id;Q.id=$e;const Ve=Array.isArray(se.schema)?se.schema:[],Be=Array.isArray(Q.schema)?Q.schema:[];for(const we of Be){const Oe=H.findByKey(Ve,"name",we.name);Oe&&Oe.id&&(we.id=Oe.id)}for(let we of g)if(Array.isArray(we.schema))for(let Oe of we.schema)(G=Oe.options)!=null&&G.collectionId&&((ce=Oe.options)==null?void 0:ce.collectionId)===ge&&(Oe.options.collectionId=$e)}t(0,p=JSON.stringify(g,null,4))}function O(G){t(12,m=!0);const ce=new FileReader;ce.onload=async Q=>{t(12,m=!1),t(10,f.value="",f),t(0,p=Q.target.result),await an(),g.length||(hl("Invalid collections configuration."),I())},ce.onerror=Q=>{console.warn(Q),hl("Failed to load the imported JSON."),t(12,m=!1),t(10,f.value="",f)},ce.readAsText(G)}function I(){t(0,p=""),t(10,f.value="",f),un({})}function L(G){ie[G?"unshift":"push"](()=>{f=G,t(10,f)})}const F=()=>{f.files.length&&O(f.files[0])},q=()=>{f.click()};function N(){p=this.value,t(0,p)}function R(){b=this.checked,t(3,b)}const j=()=>M(),V=()=>I(),W=()=>d==null?void 0:d.show(_,g,b);function ee(G){ie[G?"unshift":"push"](()=>{d=G,t(11,d)})}const te=()=>I();return n.$$.update=()=>{n.$$.dirty[0]&1&&typeof p<"u"&&D(),n.$$.dirty[0]&3&&t(6,i=!!p&&g.length&&g.length===g.filter(G=>!!G.id&&!!G.name).length),n.$$.dirty[0]&78&&t(9,s=_.filter(G=>i&&b&&!H.findByKey(g,"id",G.id))),n.$$.dirty[0]&70&&t(8,l=g.filter(G=>i&&!H.findByKey(_,"id",G.id))),n.$$.dirty[0]&10&&(typeof g<"u"||typeof b<"u")&&C(),n.$$.dirty[0]&785&&t(7,o=!!p&&(s.length||l.length||k.length)),n.$$.dirty[0]&224&&t(14,r=!$&&i&&o),n.$$.dirty[0]&6&&t(13,a=g.filter(G=>{let ce=H.findByKey(_,"name",G.name)||H.findByKey(_,"id",G.id);if(!ce)return!1;if(ce.id!=G.id)return!0;const Q=Array.isArray(ce.schema)?ce.schema:[],se=Array.isArray(G.schema)?G.schema:[];for(const ge of se){if(H.findByKey(Q,"id",ge.id))continue;const Ve=H.findByKey(Q,"name",ge.name);if(Ve&&ge.id!=Ve.id)return!0}return!1}))},[p,g,_,b,k,$,i,o,l,s,f,d,m,a,r,u,M,O,I,L,F,q,N,R,j,V,W,ee,te]}class fI extends ye{constructor(e){super(),ve(this,e,uI,aI,_e,{},null,[-1,-1])}}const Bt=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?ji("/"):!0}],cI={"/login":jt({component:iE,conditions:Bt.concat([n=>!pe.authStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":jt({asyncComponent:()=>rt(()=>import("./PageAdminRequestPasswordReset-20a5aa5c.js"),[],import.meta.url),conditions:Bt.concat([n=>!pe.authStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":jt({asyncComponent:()=>rt(()=>import("./PageAdminConfirmPasswordReset-ececf096.js"),[],import.meta.url),conditions:Bt.concat([n=>!pe.authStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":jt({component:MD,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":jt({component:y$,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings":jt({component:pE,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":jt({component:XD,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":jt({component:XE,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":jt({component:pA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":jt({component:EA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":jt({component:jA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/export-collections":jt({component:WA,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/import-collections":jt({component:fI,conditions:Bt.concat([n=>pe.authStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmPasswordReset-de720f67.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/confirm-password-reset/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmPasswordReset-de720f67.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmVerification-8fbbaaca.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/confirm-verification/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmVerification-8fbbaaca.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmEmailChange-f437f931.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/confirm-email-change/:token":jt({asyncComponent:()=>rt(()=>import("./PageRecordConfirmEmailChange-f437f931.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"/auth/oauth2-redirect":jt({asyncComponent:()=>rt(()=>import("./PageOAuth2Redirect-45684932.js"),[],import.meta.url),conditions:Bt,userData:{showAppSidebar:!1}}),"*":jt({component:Hy,userData:{showAppSidebar:!1}})};function dI(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[o,r]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*o/t.width-(t.left+o),u=e.top+e.height*r/t.height-(t.top+r),{delay:f=0,duration:d=m=>Math.sqrt(m)*120,easing:p=Wo}=i;return{delay:f,duration:Ht(d)?d(Math.sqrt(a*a+u*u)):d,easing:p,css:(m,g)=>{const _=g*a,b=g*u,k=m+g*e.width/t.width,$=m+g*e.height/t.height;return`transform: ${l} translate(${_}px, ${b}px) scale(${k}, ${$});`}}}function R_(n,e,t){const i=n.slice();return i[2]=e[t],i}function pI(n){let e;return{c(){e=y("i"),h(e,"class","ri-alert-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function mI(n){let e;return{c(){e=y("i"),h(e,"class","ri-error-warning-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function hI(n){let e;return{c(){e=y("i"),h(e,"class","ri-checkbox-circle-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function _I(n){let e;return{c(){e=y("i"),h(e,"class","ri-information-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function q_(n,e){let t,i,s,l,o=e[2].message+"",r,a,u,f,d,p,m,g=X,_,b,k;function $(M,O){return M[2].type==="info"?_I:M[2].type==="success"?hI:M[2].type==="warning"?mI:pI}let T=$(e),C=T(e);function D(){return e[1](e[2])}return{key:n,first:null,c(){t=y("div"),i=y("div"),C.c(),s=E(),l=y("div"),r=Y(o),a=E(),u=y("button"),u.innerHTML='',f=E(),h(i,"class","icon"),h(l,"class","content"),h(u,"type","button"),h(u,"class","close"),h(t,"class","alert txt-break"),x(t,"alert-info",e[2].type=="info"),x(t,"alert-success",e[2].type=="success"),x(t,"alert-danger",e[2].type=="error"),x(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,O){S(M,t,O),v(t,i),C.m(i,null),v(t,s),v(t,l),v(l,r),v(t,a),v(t,u),v(t,f),_=!0,b||(k=J(u,"click",at(D)),b=!0)},p(M,O){e=M,T!==(T=$(e))&&(C.d(1),C=T(e),C&&(C.c(),C.m(i,null))),(!_||O&1)&&o!==(o=e[2].message+"")&&le(r,o),(!_||O&1)&&x(t,"alert-info",e[2].type=="info"),(!_||O&1)&&x(t,"alert-success",e[2].type=="success"),(!_||O&1)&&x(t,"alert-danger",e[2].type=="error"),(!_||O&1)&&x(t,"alert-warning",e[2].type=="warning")},r(){m=t.getBoundingClientRect()},f(){qb(t),g(),K_(t,m)},a(){g(),g=Rb(t,m,dI,{duration:150})},i(M){_||(tt(()=>{_&&(p&&p.end(1),d=G_(t,bt,{duration:150}),d.start())}),_=!0)},o(M){d&&d.invalidate(),p=wa(t,Qr,{duration:150}),_=!1},d(M){M&&w(t),C.d(),M&&p&&p.end(),b=!1,k()}}}function gI(n){let e,t=[],i=new Map,s,l=n[0];const o=r=>r[2].message;for(let r=0;rt(0,i=l)),[i,l=>l1(l)]}class vI extends ye{constructor(e){super(),ve(this,e,bI,gI,_e,{})}}function yI(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=y("h4"),i=Y(t),h(e,"class","block center txt-break"),h(e,"slot","header")},m(l,o){S(l,e,o),v(e,i)},p(l,o){var r;o&2&&t!==(t=((r=l[1])==null?void 0:r.text)+"")&&le(i,t)},d(l){l&&w(e)}}}function kI(n){let e,t,i,s,l,o,r;return{c(){e=y("button"),t=y("span"),t.textContent="No",i=E(),s=y("button"),l=y("span"),l.textContent="Yes",h(t,"class","txt"),e.autofocus=!0,h(e,"type","button"),h(e,"class","btn btn-transparent btn-expanded-sm"),e.disabled=n[2],h(l,"class","txt"),h(s,"type","button"),h(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],x(s,"btn-loading",n[2])},m(a,u){S(a,e,u),v(e,t),S(a,i,u),S(a,s,u),v(s,l),e.focus(),o||(r=[J(e,"click",n[4]),J(s,"click",n[5])],o=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&x(s,"btn-loading",a[2])},d(a){a&&w(e),a&&w(i),a&&w(s),o=!1,Ae(r)}}}function wI(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[kI],header:[yI]},$$scope:{ctx:n}};return e=new hn({props:i}),n[6](e),e.$on("hide",n[7]),{c(){U(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4&&(o.overlayClose=!s[2]),l&4&&(o.escClose=!s[2]),l&271&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(A(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[6](null),B(e,s)}}}function SI(n,e,t){let i;Ze(n,ru,d=>t(1,i=d));let s,l=!1,o=!1;const r=()=>{t(3,o=!1),s==null||s.hide()},a=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),t(3,o=!0),s==null||s.hide()};function u(d){ie[d?"unshift":"push"](()=>{s=d,t(0,s)})}const f=async()=>{!o&&(i!=null&&i.noCallback)&&i.noCallback(),await an(),t(3,o=!1),ub()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(t(3,o=!1),s==null||s.show())},[s,i,l,o,r,a,u,f]}class $I extends ye{constructor(e){super(),ve(this,e,SI,wI,_e,{})}}function j_(n){let e,t,i,s,l,o,r,a,u,f,d,p,m,g,_,b,k,$;return _=new ei({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[CI]},$$scope:{ctx:n}}}),{c(){var T;e=y("aside"),t=y("a"),t.innerHTML='PocketBase logo',i=E(),s=y("nav"),l=y("a"),l.innerHTML='',o=E(),r=y("a"),r.innerHTML='',a=E(),u=y("a"),u.innerHTML='',f=E(),d=y("figure"),p=y("img"),g=E(),U(_.$$.fragment),h(t,"href","/"),h(t,"class","logo logo-sm"),h(l,"href","/collections"),h(l,"class","menu-item"),h(l,"aria-label","Collections"),h(r,"href","/logs"),h(r,"class","menu-item"),h(r,"aria-label","Logs"),h(u,"href","/settings"),h(u,"class","menu-item"),h(u,"aria-label","Settings"),h(s,"class","main-menu"),mn(p.src,m="./images/avatars/avatar"+(((T=n[0])==null?void 0:T.avatar)||0)+".svg")||h(p,"src",m),h(p,"alt","Avatar"),h(d,"class","thumb thumb-circle link-hint closable"),h(e,"class","app-sidebar")},m(T,C){S(T,e,C),v(e,t),v(e,i),v(e,s),v(s,l),v(s,o),v(s,r),v(s,a),v(s,u),v(e,f),v(e,d),v(d,p),v(d,g),z(_,d,null),b=!0,k||($=[Ee(dn.call(null,t)),Ee(dn.call(null,l)),Ee(Zn.call(null,l,{path:"/collections/?.*",className:"current-route"})),Ee(Ye.call(null,l,{text:"Collections",position:"right"})),Ee(dn.call(null,r)),Ee(Zn.call(null,r,{path:"/logs/?.*",className:"current-route"})),Ee(Ye.call(null,r,{text:"Logs",position:"right"})),Ee(dn.call(null,u)),Ee(Zn.call(null,u,{path:"/settings/?.*",className:"current-route"})),Ee(Ye.call(null,u,{text:"Settings",position:"right"}))],k=!0)},p(T,C){var M;(!b||C&1&&!mn(p.src,m="./images/avatars/avatar"+(((M=T[0])==null?void 0:M.avatar)||0)+".svg"))&&h(p,"src",m);const D={};C&4096&&(D.$$scope={dirty:C,ctx:T}),_.$set(D)},i(T){b||(A(_.$$.fragment,T),b=!0)},o(T){P(_.$$.fragment,T),b=!1},d(T){T&&w(e),B(_),k=!1,Ae($)}}}function CI(n){let e,t,i,s,l,o,r;return{c(){e=y("a"),e.innerHTML=` Manage admins`,t=E(),i=y("hr"),s=E(),l=y("button"),l.innerHTML=` Logout`,h(e,"href","/settings/admins"),h(e,"class","dropdown-item closable"),h(l,"type","button"),h(l,"class","dropdown-item closable")},m(a,u){S(a,e,u),S(a,t,u),S(a,i,u),S(a,s,u),S(a,l,u),o||(r=[Ee(dn.call(null,e)),J(l,"click",n[7])],o=!0)},p:X,d(a){a&&w(e),a&&w(t),a&&w(i),a&&w(s),a&&w(l),o=!1,Ae(r)}}}function V_(n){let e,t,i;return t=new du({props:{scriptSrc:"./libs/tinymce/tinymce.min.js",conf:H.defaultEditorOptions()}}),t.$on("init",n[8]),{c(){e=y("div"),U(t.$$.fragment),h(e,"class","tinymce-preloader hidden")},m(s,l){S(s,e,l),z(t,e,null),i=!0},p:X,i(s){i||(A(t.$$.fragment,s),i=!0)},o(s){P(t.$$.fragment,s),i=!1},d(s){s&&w(e),B(t)}}}function TI(n){var b;let e,t,i,s,l,o,r,a,u,f,d,p,m;document.title=e=H.joinNonEmpty([n[4],n[3],"PocketBase"]," - ");let g=((b=n[0])==null?void 0:b.id)&&n[1]&&j_(n);o=new Xb({props:{routes:cI}}),o.$on("routeLoading",n[5]),o.$on("conditionsFailed",n[6]),a=new vI({}),f=new $I({});let _=n[1]&&!n[2]&&V_(n);return{c(){t=E(),i=y("div"),g&&g.c(),s=E(),l=y("div"),U(o.$$.fragment),r=E(),U(a.$$.fragment),u=E(),U(f.$$.fragment),d=E(),_&&_.c(),p=Ce(),h(l,"class","app-body"),h(i,"class","app-layout")},m(k,$){S(k,t,$),S(k,i,$),g&&g.m(i,null),v(i,s),v(i,l),z(o,l,null),v(l,r),z(a,l,null),S(k,u,$),z(f,k,$),S(k,d,$),_&&_.m(k,$),S(k,p,$),m=!0},p(k,[$]){var T;(!m||$&24)&&e!==(e=H.joinNonEmpty([k[4],k[3],"PocketBase"]," - "))&&(document.title=e),(T=k[0])!=null&&T.id&&k[1]?g?(g.p(k,$),$&3&&A(g,1)):(g=j_(k),g.c(),A(g,1),g.m(i,s)):g&&(re(),P(g,1,1,()=>{g=null}),ae()),k[1]&&!k[2]?_?(_.p(k,$),$&6&&A(_,1)):(_=V_(k),_.c(),A(_,1),_.m(p.parentNode,p)):_&&(re(),P(_,1,1,()=>{_=null}),ae())},i(k){m||(A(g),A(o.$$.fragment,k),A(a.$$.fragment,k),A(f.$$.fragment,k),A(_),m=!0)},o(k){P(g),P(o.$$.fragment,k),P(a.$$.fragment,k),P(f.$$.fragment,k),P(_),m=!1},d(k){k&&w(t),k&&w(i),g&&g.d(),B(o),B(a),k&&w(u),B(f,k),k&&w(d),_&&_.d(k),k&&w(p)}}}function MI(n,e,t){let i,s,l,o;Ze(n,Es,_=>t(10,i=_)),Ze(n,wo,_=>t(3,s=_)),Ze(n,Na,_=>t(0,l=_)),Ze(n,Ft,_=>t(4,o=_));let r,a=!1,u=!1;function f(_){var b,k,$,T;((b=_==null?void 0:_.detail)==null?void 0:b.location)!==r&&(t(1,a=!!(($=(k=_==null?void 0:_.detail)==null?void 0:k.userData)!=null&&$.showAppSidebar)),r=(T=_==null?void 0:_.detail)==null?void 0:T.location,rn(Ft,o="",o),un({}),ub())}function d(){ji("/")}async function p(){var _,b;if(l!=null&&l.id)try{const k=await pe.settings.getAll({$cancelKey:"initialAppSettings"});rn(wo,s=((_=k==null?void 0:k.meta)==null?void 0:_.appName)||"",s),rn(Es,i=!!((b=k==null?void 0:k.meta)!=null&&b.hideControls),i)}catch(k){k!=null&&k.isAbort||console.warn("Failed to load app settings.",k)}}function m(){pe.logout()}const g=()=>{t(2,u=!0)};return n.$$.update=()=>{n.$$.dirty&1&&l!=null&&l.id&&p()},[l,a,u,s,o,f,d,m,g]}class OI extends ye{constructor(e){super(),ve(this,e,MI,TI,_e,{})}}new OI({target:document.getElementById("app")});export{Ae as A,xt as B,H as C,ji as D,Ce as E,r1 as F,ig as G,en as H,Ze as I,ci as J,Tt as K,ie as L,rb as M,yt as N,us as O,Jt as P,pt as Q,jo as R,ye as S,kn as T,qr as U,P as a,E as b,U as c,B as d,y as e,h as f,S as g,v as h,ve as i,Ee as j,re as k,dn as l,z as m,ae as n,w as o,pe as p,de as q,x as r,_e as s,A as t,J as u,at as v,Y as w,le as x,X as y,fe as z}; diff --git a/ui/dist/index.html b/ui/dist/index.html index 4cc26c94..032cd234 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -45,7 +45,7 @@ window.Prism = window.Prism || {}; window.Prism.manual = true; - + diff --git a/ui/package-lock.json b/ui/package-lock.json index 8cb62d67..39d19361 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -21,7 +21,7 @@ "chart.js": "^3.7.1", "chartjs-adapter-luxon": "^1.2.0", "luxon": "^2.3.2", - "pocketbase": "^0.14.1", + "pocketbase": "^0.14.2", "prismjs": "^1.28.0", "sass": "^1.45.0", "svelte": "^3.44.0", @@ -943,9 +943,9 @@ } }, "node_modules/pocketbase": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/pocketbase/-/pocketbase-0.14.1.tgz", - "integrity": "sha512-oGtmSwlcfXAm12PBWJIxZy0eGBumoFqn6PKP4RBBN7pvCrhCyX22KwQEZ0RmrnUtth+YrRTaDqOfKlPED+SHfQ==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/pocketbase/-/pocketbase-0.14.2.tgz", + "integrity": "sha512-fwHAVmHBF+lT8cbCyywpFM+yrgHJYdgDWLX4NdgZnFbt5BtB2me4SkgT/npUmM4IRCUxZJbXTTOiPKdcRUV3eg==", "dev": true }, "node_modules/postcss": { @@ -1793,9 +1793,9 @@ "dev": true }, "pocketbase": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/pocketbase/-/pocketbase-0.14.1.tgz", - "integrity": "sha512-oGtmSwlcfXAm12PBWJIxZy0eGBumoFqn6PKP4RBBN7pvCrhCyX22KwQEZ0RmrnUtth+YrRTaDqOfKlPED+SHfQ==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/pocketbase/-/pocketbase-0.14.2.tgz", + "integrity": "sha512-fwHAVmHBF+lT8cbCyywpFM+yrgHJYdgDWLX4NdgZnFbt5BtB2me4SkgT/npUmM4IRCUxZJbXTTOiPKdcRUV3eg==", "dev": true }, "postcss": { diff --git a/ui/package.json b/ui/package.json index 0e378d1c..3fc9ad2f 100644 --- a/ui/package.json +++ b/ui/package.json @@ -28,7 +28,7 @@ "chart.js": "^3.7.1", "chartjs-adapter-luxon": "^1.2.0", "luxon": "^2.3.2", - "pocketbase": "^0.14.1", + "pocketbase": "^0.14.2", "prismjs": "^1.28.0", "sass": "^1.45.0", "svelte": "^3.44.0",