@duplicati/ngclient 0.0.104 → 0.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/assets/spk-bold.woff2 +0 -0
  2. package/chunk-2HUZWRPM.js +1 -0
  3. package/{chunk-73FGPZLT.js → chunk-2WMFHNHQ.js} +1 -1
  4. package/chunk-3MVGDMRL.js +1 -0
  5. package/{chunk-7NSKVKO7.js → chunk-47X3OGYT.js} +1 -1
  6. package/chunk-4LYA3XAH.js +1 -0
  7. package/chunk-4PUCRV6F.js +1 -0
  8. package/chunk-5H7QZHN7.js +2 -0
  9. package/{chunk-A6D4U7WJ.js → chunk-5LODOOQE.js} +1 -1
  10. package/{chunk-YC7JUCYS.js → chunk-5VR5J6BY.js} +1 -1
  11. package/{chunk-Y5T3G6PP.js → chunk-6DH6O5YE.js} +1 -1
  12. package/{chunk-D6ZBSPNI.js → chunk-6U42RKWI.js} +1 -1
  13. package/chunk-7EYE3BSS.js +1 -0
  14. package/{chunk-ARQ6YMHX.js → chunk-7L42EO7J.js} +1 -1
  15. package/chunk-7UQE266G.js +4 -0
  16. package/chunk-BEXTTKFK.js +1 -0
  17. package/chunk-CETM57LL.js +1 -0
  18. package/{chunk-2IDHF5MN.js → chunk-CKPICCFH.js} +1 -1
  19. package/{chunk-FQMZSQUI.js → chunk-DE4NDI5F.js} +1 -1
  20. package/chunk-E6VGAA7Q.js +1 -0
  21. package/{chunk-N35UIMLP.js → chunk-FROEBZRG.js} +1 -1
  22. package/{chunk-C4IFBLYB.js → chunk-FSGJ5KIH.js} +1 -1
  23. package/chunk-G432CCD5.js +1 -0
  24. package/chunk-GOTRUTIB.js +1 -0
  25. package/{chunk-NN546V2N.js → chunk-HN4MKGHV.js} +1 -1
  26. package/{chunk-NYZVIDDD.js → chunk-HTNYQE2B.js} +1 -1
  27. package/{chunk-PX25CWH6.js → chunk-I3C2AEHI.js} +1 -1
  28. package/{chunk-HPSQUH4S.js → chunk-IXM6PMZU.js} +1 -1
  29. package/chunk-J4KNSP44.js +1 -0
  30. package/{chunk-OP5UYIDM.js → chunk-JAYNAMCB.js} +1 -1
  31. package/{chunk-HFKG5ODC.js → chunk-JCXYUHPV.js} +1 -1
  32. package/chunk-JKOCS4GE.js +1 -0
  33. package/chunk-JLBV3QXT.js +1 -0
  34. package/{chunk-UKQTVYRS.js → chunk-JQPXZWKR.js} +1 -1
  35. package/chunk-KFU7HSAL.js +1 -0
  36. package/{chunk-UO57IKTF.js → chunk-KSP3JQHY.js} +1 -1
  37. package/{chunk-MIQEG35Y.js → chunk-L4CVN3UF.js} +1 -1
  38. package/chunk-LD2OSURG.js +1 -0
  39. package/chunk-M4YSJR2J.js +1 -0
  40. package/{chunk-TKVTCBLW.js → chunk-MZ473NLM.js} +1 -1
  41. package/{chunk-PE5C74CV.js → chunk-NF5EQK5W.js} +1 -1
  42. package/chunk-NTVLL6TO.js +1 -0
  43. package/{chunk-ZVBVR6H4.js → chunk-O2YN63YI.js} +1 -1
  44. package/chunk-O7DK2M4U.js +1 -0
  45. package/chunk-OUD6FSMZ.js +1 -0
  46. package/{chunk-TXZZ7EQH.js → chunk-P5KOELKA.js} +1 -1
  47. package/{chunk-OD5LGCQE.js → chunk-PFYOWXZZ.js} +1 -1
  48. package/{chunk-DYCJPQSE.js → chunk-PTDSOPNK.js} +1 -1
  49. package/chunk-QO6SPSAF.js +8 -0
  50. package/chunk-QVIZK4WW.js +1 -0
  51. package/{chunk-W2OVJAGT.js → chunk-QWIDEDE7.js} +1 -1
  52. package/{chunk-B7AEDFNS.js → chunk-RP6N6NQM.js} +1 -1
  53. package/{chunk-IYJFFIHQ.js → chunk-RVCYNHAQ.js} +1 -1
  54. package/chunk-SAVY3OEX.js +1 -0
  55. package/chunk-SHOSAHEC.js +1 -0
  56. package/chunk-SITZCHGF.js +1 -0
  57. package/{chunk-ON2SWJPL.js → chunk-SZ64OOBT.js} +1 -1
  58. package/{chunk-QTTYDT3P.js → chunk-T2OUHRUV.js} +1 -1
  59. package/{chunk-U34D3G4S.js → chunk-TPWSQH24.js} +1 -1
  60. package/chunk-TQGG56ZZ.js +1 -0
  61. package/{chunk-DHVICIXP.js → chunk-U2HORYSZ.js} +1 -1
  62. package/chunk-VAOJO535.js +1 -0
  63. package/{chunk-YRQ33MKD.js → chunk-VN7JM6M3.js} +1 -1
  64. package/{chunk-KEHATBLP.js → chunk-VOGYVLLM.js} +1 -1
  65. package/{chunk-GM25ACCR.js → chunk-W2F756OF.js} +4 -4
  66. package/{chunk-LU6KVNOT.js → chunk-W2VC37XO.js} +1 -1
  67. package/chunk-WHVFYB7T.js +1 -0
  68. package/{chunk-BIHIR35J.js → chunk-WMTA6PZM.js} +1 -1
  69. package/{chunk-4ZN3WNN5.js → chunk-WSFEYRKT.js} +1 -1
  70. package/{chunk-6WLXFV43.js → chunk-WX7L7V6J.js} +1 -1
  71. package/chunk-XG7KYN67.js +1 -0
  72. package/{chunk-OPC7T2MU.js → chunk-XJXOUOD5.js} +1 -1
  73. package/{chunk-K4BJJNFG.js → chunk-XY5EWT4P.js} +1 -1
  74. package/{chunk-R5DUA6AR.js → chunk-YDRXW35Y.js} +1 -1
  75. package/{chunk-A7ZTKXJV.js → chunk-YF5K7PNR.js} +1 -1
  76. package/{chunk-JKUJP6AX.js → chunk-YWCTOOED.js} +1 -1
  77. package/index.html +3 -3
  78. package/main-HT3PXURE.js +1 -0
  79. package/package.json +1 -1
  80. package/{polyfills-BZ5XXHZK.js → polyfills-6QHLTIIN.js} +1 -1
  81. package/{styles-CAXGLRRN.css → styles-V3SS5M3J.css} +1 -1
  82. package/chunk-2EOGI5U4.js +0 -8
  83. package/chunk-4B4SNBSE.js +0 -1
  84. package/chunk-4Q6ODNBP.js +0 -1
  85. package/chunk-7WCKE7GY.js +0 -1
  86. package/chunk-A7BKUGJT.js +0 -1
  87. package/chunk-ADU47UB6.js +0 -1
  88. package/chunk-BUACSH3J.js +0 -1
  89. package/chunk-CAPSN3YW.js +0 -8
  90. package/chunk-F76OHZKQ.js +0 -1
  91. package/chunk-GWH4FCBZ.js +0 -1
  92. package/chunk-HEPECSOH.js +0 -1
  93. package/chunk-K75H4GPN.js +0 -1
  94. package/chunk-KXHE37LY.js +0 -1
  95. package/chunk-N3QUTR5R.js +0 -1
  96. package/chunk-OELZQ6RK.js +0 -1
  97. package/chunk-ORNS7N6Q.js +0 -1
  98. package/chunk-P3QRASBZ.js +0 -1
  99. package/chunk-QBYHBPBT.js +0 -1
  100. package/chunk-TFIF6FCF.js +0 -1
  101. package/chunk-TRWFWG6W.js +0 -1
  102. package/chunk-UKJSH5XP.js +0 -1
  103. package/chunk-VJPUDP2T.js +0 -1
  104. package/chunk-VWN3PAXR.js +0 -1
  105. package/chunk-X7KD2725.js +0 -1
  106. package/chunk-YBGYY3E5.js +0 -1
  107. package/chunk-YCVMFFKU.js +0 -2
  108. package/chunk-YLYHFDOS.js +0 -1
  109. package/main-PBNHUSE5.js +0 -1
@@ -1,2 +1,2 @@
1
- import{d as fe,h as pe,p as ye}from"./chunk-2IDHF5MN.js";import{$ as de,B as se,E as oe,M as ie,P as A,R as O,U as E,W as v,X as m,Y as ae,_ as ce,f as V,ja as le,la as ue,m as re,n as J,r as k,wa as he,y as te}from"./chunk-GM25ACCR.js";import{a as ne}from"./chunk-7CGTOI24.js";var L=class{},j=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{d as fe,h as pe,p as ye}from"./chunk-CKPICCFH.js";import{$ as ce,C as se,F as oe,N as ie,Q as A,S as O,V as E,X as v,Y as m,Z as ae,aa as de,f as V,la as le,m as re,n as J,na as ue,r as k,ya as he,z as te}from"./chunk-W2F756OF.js";import{a as ne}from"./chunk-7CGTOI24.js";var L=class{},j=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(l=>i.indexOf(l)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var q=class{encodeKey(e){return me(e)}encodeValue(e){return me(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function De(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,l]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(l),n.set(o,a)}),n}var xe=/%(\d[a-f0-9])/gi,ke={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(r){return encodeURIComponent(r).replace(xe,(e,n)=>ke[n]??e)}function S(r){return`${r}`}var R=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new q,e.fromString){if(e.fromObject)throw new A(2805,!1);this.map=De(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(S):[S(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(S(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(S(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var W=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _e(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ge(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Te(r){return typeof Blob<"u"&&r instanceof Blob}function Ee(r){return typeof FormData<"u"&&r instanceof FormData}function Fe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var _="Content-Type",z="Accept",Q="X-Request-URL",be="text/plain",Pe="application/json",Ne=`${Pe}, ${be}, */*`,F=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(_e(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new W,!this.params)this.params=new R,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let l=n.indexOf("?"),a=l===-1?"?":l<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ge(this.body)||Te(this.body)||Ee(this.body)||Fe(this.body)?this.body:this.body instanceof R?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Ee(this.body)?null:Te(this.body)?this.body.type||null:ge(this.body)?null:typeof this.body=="string"?be:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pe:null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,l=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((P,u)=>P.set(u,e.setHeaders[u]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((P,u)=>P.set(u,e.setParams[u]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:l,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),U=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},C=class r extends U{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},B=class r extends U{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},w=class extends U{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ae=200,Le=204;function $(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var je=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof F)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof R?f=s.params:f=new R({fromObject:s.params})),i=new F(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=J(i).pipe(se(a=>this.handler.handle(a)));if(n instanceof F||s.observe==="events")return o;let l=o.pipe(te(a=>a instanceof B));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(k(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new A(2806,!1);return a.body}));case"blob":return l.pipe(k(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new A(2807,!1);return a.body}));case"text":return l.pipe(k(a=>{if(a.body!==null&&typeof a.body!="string")throw new A(2808,!1);return a.body}));case"json":default:return l.pipe(k(a=>a.body))}case"response":return l;default:throw new A(2809,!1)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new R().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,$(s,t))}post(n,t,s={}){return this.request("POST",n,$(s,t))}put(n,t,s={}){return this.request("PUT",n,$(s,t))}static \u0275fac=function(t){return new(t||r)(v(L))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),Ue=/^\)\]\}',?\n/;function ve(r){if(r.url)return r.url;let e=Q.toLocaleLowerCase();return r.headers.get(e)}var Me=new E(""),G=(()=>{class r{fetchImpl=m(K,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(ue);handle(n){return new V(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(Y,i=>t.error(new w({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let u=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,ne({signal:t},i)));Be(u),s.next({type:b.Sent}),o=await u}catch(u){s.error(new w({error:u,status:u.status??0,statusText:u.statusText,url:n.urlWithParams,headers:u.headers}));return}let l=new g(o.headers),a=o.statusText,f=ve(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new C({headers:l,status:p,statusText:a,url:f})),o.body){let u=o.headers.get("content-length"),I=[],c=o.body.getReader(),d=0,T,M,h=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:N,value:x}=await c.read();if(N)break;if(I.push(x),d+=x.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(T??=new TextDecoder).decode(x,{stream:!0}):void 0;let ee=()=>s.next({type:b.DownloadProgress,total:u?+u:void 0,loaded:d,partialText:M});h?h.run(ee):ee()}}});let D=this.concatChunks(I,d);try{let N=o.headers.get(_)??"";y=this.parseBody(n,D,N)}catch(N){s.error(new w({error:N,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ve(o)??n.urlWithParams}));return}}p===0&&(p=y?Ae:0),p>=200&&p<300?(s.next(new B({body:y,headers:l,status:p,statusText:a,url:f})),s.complete()):s.error(new w({error:y,headers:l,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(Ue,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has(z)||(t[z]=Ne),!n.headers.has(_)){let i=n.detectContentTypeHeader();i!==null&&(t[_]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),K=class{};function Y(){}function Be(r){r.then(Y,Y)}function Se(r,e){return e(r)}function ze(r,e,n){return(t,s)=>de(n,()=>e(t,i=>r(i,s)))}var Z=new E(""),Ce=new E(""),Xe=new E("",{providedIn:"root",factory:()=>!0});var we=(()=>{class r extends L{backend;injector;chain=null;pendingTasks=m(le);contributeToStability=m(Xe);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Z),...this.injector.get(Ce,[])]));this.chain=t.reduceRight((s,i)=>ze(s,i,this.injector),Se)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(oe(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(v(j),v(ce))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var Ve=/^\)\]\}',?\n/,Je=RegExp(`^${Q}:`,"m");function $e(r){return"responseURL"in r&&r.responseURL?r.responseURL:Je.test(r.getAllResponseHeaders())?r.getResponseHeader(Q):null}var Re=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?re(t.\u0275loadImpl()):J(null)).pipe(ie(()=>new V(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,d)=>o.setRequestHeader(c,d.join(","))),n.headers.has(z)||o.setRequestHeader(z,Ne),!n.headers.has(_)){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader(_,c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let l=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",d=new g(o.getAllResponseHeaders()),T=$e(o)||n.url;return a=new C({headers:d,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:d,statusText:T,url:M}=f(),h=null;d!==Le&&(h=typeof o.response>"u"?o.responseText:o.response),d===0&&(d=h?Ae:0);let D=d>=200&&d<300;if(n.responseType==="json"&&typeof h=="string"){let N=h;h=h.replace(Ve,"");try{h=h!==""?JSON.parse(h):null}catch(x){h=N,D&&(D=!1,h={error:x,text:h})}}D?(i.next(new B({body:h,headers:c,status:d,statusText:T,url:M||void 0})),i.complete()):i.error(new w({error:h,headers:c,status:d,statusText:T,url:M||void 0}))},y=c=>{let{url:d}=f(),T=new w({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:d||void 0});i.error(T)},P=!1,u=c=>{P||(i.next(f()),P=!0);let d={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),n.responseType==="text"&&o.responseText&&(d.partialText=o.responseText),i.next(d)},I=c=>{let d={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),i.next(d)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",u),l!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(l),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",u),l!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(v(ye))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),Oe=new E(""),Ge="XSRF-TOKEN",qe=new E("",{providedIn:"root",factory:()=>Ge}),We="X-XSRF-TOKEN",Ke=new E("",{providedIn:"root",factory:()=>We}),X=class{},Ye=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pe(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(v(fe),v(he),v(qe))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Qe(r,e){let n=r.url.toLowerCase();if(!m(Oe)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(X).getToken(),s=m(Ke);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var H=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(H||{});function Ie(r,e){return{\u0275kind:r,\u0275providers:e}}function On(...r){let e=[je,Re,we,{provide:L,useExisting:we},{provide:j,useFactory:()=>m(Me,{optional:!0})??m(Re)},{provide:Z,useValue:Qe,multi:!0},{provide:Oe,useValue:!0},{provide:X,useClass:Ye}];for(let n of r)e.push(...n.\u0275providers);return ae(e)}function In(r){return Ie(H.Interceptors,r.map(e=>({provide:Z,useValue:e,multi:!0})))}function Dn(){return Ie(H.Fetch,[G,{provide:Me,useExisting:G},{provide:j,useExisting:G}])}export{g as a,B as b,je as c,On as d,In as e,Dn as f};
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-NYZVIDDD.js";import{a as te}from"./chunk-UKJSH5XP.js";import"./chunk-ON2SWJPL.js";import{a as Q}from"./chunk-KEHATBLP.js";import"./chunk-RHW5QVAY.js";import"./chunk-ZVBVR6H4.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-QTTYDT3P.js";import"./chunk-C4IFBLYB.js";import"./chunk-PX25CWH6.js";import{b as z,e as q}from"./chunk-7WCKE7GY.js";import"./chunk-BIHIR35J.js";import{a as W,g as j,l as J}from"./chunk-6WLXFV43.js";import{b as H}from"./chunk-DYCJPQSE.js";import"./chunk-TKVTCBLW.js";import"./chunk-FQMZSQUI.js";import"./chunk-2IDHF5MN.js";import"./chunk-OD5LGCQE.js";import{D as g,E as u,Eb as p,Fb as r,Gb as F,Hb as L,Ib as U,Kb as A,M as E,Oa as s,X as P,Zb as C,_a as y,cc as w,db as v,dc as X,ec as V,lb as d,nb as D,pb as G,qb as K,r as O,sa as c,ub as i,vb as a,wb as l,yc as k,zc as h}from"./chunk-GM25ACCR.js";import"./chunk-7CGTOI24.js";function ie(S,t){S&1&&(i(0,"spk-icon",19),C(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",19),C(1,"warning"),a())}var m=class S{#a=P(z);#i=P(Q);#e=P(H);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=k(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=k(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=k(()=>this.backupFilePath()!==this.#t);backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:17,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintenance`;let T;T=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let b;b=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let f;f=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,T,b,f,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintenance"],["spk-button","",3,"click","disabled"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),p(4,0),l(5,"spk-icon"),r(),a()(),i(6,"article")(7,"h1"),F(8,1),a(),i(9,"p"),F(10,2),a()(),i(11,"article")(12,"h2"),F(13,3),a(),i(14,"p"),F(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),p(18,5),l(19,"spk-icon"),r(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),p(21,6),l(22,"spk-icon"),r(),a(),i(23,"button",17),A("click",function(){return e.restoreDatabase()}),p(24,7),l(25,"spk-icon"),r(),a()()(),i(26,"article")(27,"h2"),F(28,8),a(),i(29,"spk-form-field")(30,"input",18),V("ngModelChange",function(T){return X(e.backupFilePath,T)||(e.backupFilePath=T),T}),a(),v(31,ie,2,0,"spk-icon",19)(32,ne,2,0,"spk-icon",19),a(),i(33,"div",20)(34,"button",16),A("click",function(){return e.resetDatabasePath()}),p(35,9),l(36,"spk-icon"),r(),a(),i(37,"button",16),A("click",function(){return e.saveDatabasePath()}),p(38,10),l(39,"spk-icon"),r(),a(),i(40,"button",16),A("click",function(){return e.saveAndRepairDatabasePath()}),p(41,11),l(42,"spk-icon"),r(),a(),i(43,"button",16),A("click",function(){return e.moveDatabasePath()}),p(44,12),l(45,"spk-icon"),r(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),D("loader",e.isRepairing()),d("disabled",!e.isValidatedPath()),s(3),D("loader",e.isDeleting()),d("disabled",!e.isValidatedPath()),s(3),D("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged()))}},dependencies:[ee,Y,Z,x,te,j,J,W,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
1
+ import{a as ae}from"./chunk-HTNYQE2B.js";import{a as te}from"./chunk-VAOJO535.js";import"./chunk-SZ64OOBT.js";import{a as Q}from"./chunk-VOGYVLLM.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-T2OUHRUV.js";import"./chunk-FSGJ5KIH.js";import"./chunk-I3C2AEHI.js";import{b as z,e as q}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as W,g as j,l as J}from"./chunk-WX7L7V6J.js";import{b as H}from"./chunk-PTDSOPNK.js";import"./chunk-MZ473NLM.js";import"./chunk-DE4NDI5F.js";import"./chunk-CKPICCFH.js";import"./chunk-PFYOWXZZ.js";import{$b as C,Ac as k,Bc as h,E as g,F as u,Gb as p,Hb as r,Ib as F,Jb as L,Kb as U,Mb as A,N as E,Qa as s,Y as P,ab as y,ec as w,fb as v,fc as X,gc as V,nb as d,pb as D,r as O,rb as G,sb as K,ua as c,wb as i,xb as a,yb as l}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function ie(S,t){S&1&&(i(0,"spk-icon",19),C(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",19),C(1,"warning"),a())}var m=class S{#a=P(z);#i=P(Q);#e=P(H);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=k(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=k(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=k(()=>this.backupFilePath()!==this.#t);backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:17,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintenance`;let T;T=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let b;b=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let f;f=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,T,b,f,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintenance"],["spk-button","",3,"click","disabled"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),p(4,0),l(5,"spk-icon"),r(),a()(),i(6,"article")(7,"h1"),F(8,1),a(),i(9,"p"),F(10,2),a()(),i(11,"article")(12,"h2"),F(13,3),a(),i(14,"p"),F(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),p(18,5),l(19,"spk-icon"),r(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),p(21,6),l(22,"spk-icon"),r(),a(),i(23,"button",17),A("click",function(){return e.restoreDatabase()}),p(24,7),l(25,"spk-icon"),r(),a()()(),i(26,"article")(27,"h2"),F(28,8),a(),i(29,"spk-form-field")(30,"input",18),V("ngModelChange",function(T){return X(e.backupFilePath,T)||(e.backupFilePath=T),T}),a(),v(31,ie,2,0,"spk-icon",19)(32,ne,2,0,"spk-icon",19),a(),i(33,"div",20)(34,"button",16),A("click",function(){return e.resetDatabasePath()}),p(35,9),l(36,"spk-icon"),r(),a(),i(37,"button",16),A("click",function(){return e.saveDatabasePath()}),p(38,10),l(39,"spk-icon"),r(),a(),i(40,"button",16),A("click",function(){return e.saveAndRepairDatabasePath()}),p(41,11),l(42,"spk-icon"),r(),a(),i(43,"button",16),A("click",function(){return e.moveDatabasePath()}),p(44,12),l(45,"spk-icon"),r(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),D("loader",e.isRepairing()),d("disabled",!e.isValidatedPath()),s(3),D("loader",e.isDeleting()),d("disabled",!e.isValidatedPath()),s(3),D("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged()))}},dependencies:[ee,Y,Z,x,te,j,J,W,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
@@ -0,0 +1 @@
1
+ import{g as k}from"./chunk-4LYA3XAH.js";import{n as x}from"./chunk-QO6SPSAF.js";import"./chunk-6DH6O5YE.js";import"./chunk-TQGG56ZZ.js";import"./chunk-VN7JM6M3.js";import"./chunk-KSP3JQHY.js";import{a as g}from"./chunk-HTNYQE2B.js";import"./chunk-SAVY3OEX.js";import{a as X}from"./chunk-VAOJO535.js";import"./chunk-7L42EO7J.js";import"./chunk-SZ64OOBT.js";import"./chunk-VOGYVLLM.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-FSGJ5KIH.js";import"./chunk-I3C2AEHI.js";import{a as I,b as G,c as W,d as h,e as y,f as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{q as w,v as K}from"./chunk-WX7L7V6J.js";import"./chunk-PTDSOPNK.js";import"./chunk-MZ473NLM.js";import"./chunk-DE4NDI5F.js";import"./chunk-CKPICCFH.js";import"./chunk-PFYOWXZZ.js";import{Bc as N,Gb as _,Hb as F,Nb as E,Qa as d,Y as c,ab as A,fb as $,kc as M,lc as T,mc as R,nb as r,pb as L,sb as O,ua as C,wb as i,xb as n,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var b=()=>["/restore-from-files/destination"],z=()=>["/restore-from-files/encryption"],B=()=>["/restore-from-files/select-files"],U=()=>["/restore-from-files/options"],j=e=>["/restore-draft",e,"select-files"],H=e=>["/restore-draft",e,"options"],V=e=>["/restore",e,"select-files"],q=e=>["/restore",e,"options"],J=e=>["/restore",e,"progress"];function Q(e,o){e&1&&(i(0,"div",9),_(1,0),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,1),a(5,"spk-radio"),F(),n(),i(6,"div",9),_(7,2),a(8,"spk-radio"),F(),n(),i(9,"div",9),_(10,3),a(11,"spk-radio"),F(),n()),e&2&&(r("routerLink",T(4,b)),d(3),r("routerLink",T(5,z)),d(3),r("routerLink",T(6,B)),d(3),r("routerLink",T(7,U)))}function Y(e,o){if(e&1&&(i(0,"div",9),_(1,4),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,5),a(5,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(2,j,t.backupId())),d(3),r("routerLink",R(4,H,t.backupId()))}}function Z(e,o){if(e&1&&(i(0,"div",9),_(1,6),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,7),a(5,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(2,V,t.backupId())),d(3),r("routerLink",R(4,q,t.backupId()))}}function ee(e,o){if(e&1&&(i(0,"div",9),_(1,8),a(2,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(1,J,t.backupId()))}}var D=class e{#t=c(G);#i=c(h);#e=c(k);#n=g(this.#t.params);#o=g(this.#t.url);#a=g(this.#t.children[0].url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;isProgressPage=C(!1);paramsChanged=N(()=>{let o=this.#a(),t=this.#n()?.id,s=!!this.#o()?.find(S=>S.path==="restore-draft"),p=!!this.#o()?.find(S=>S.path==="restore-from-files"),u=!!o?.find(S=>S.path==="progress");this.isProgressPage.set(u),this.#e.init(t,p,p||s)});ngOnInit(){this.#i.events.subscribe(o=>{if(o instanceof I){let t=o.urlAfterRedirects;this.isProgressPage.set(t.includes("progress"))}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=A({type:e,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(t,s){t&2&&L("full-width",s.isProgressPage())},features:[M([k,x])],decls:8,vars:2,consts:()=>{let o;o=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let p;p=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let u;u=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let S;S=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let f;f=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let P;P=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let m;return m=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Progress `,[o,t,s,p,u,S,f,P,m,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(a(0,"app-status-bar"),i(1,"spk-stepper"),$(2,Q,12,8)(3,Y,6,6)(4,Z,6,6)(5,ee,3,3,"div",9),n(),i(6,"section"),a(7,"router-outlet"),n()),t&2&&(d(2),O(s.isFileRestore()?2:s.isDraft()?3:4),d(3),O(s.isProgressPage()?5:-1))},dependencies:[K,w,X,W,y,v],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{D as default};
@@ -1 +1 @@
1
- import{l as m}from"./chunk-2IDHF5MN.js";import{X as s,bb as p}from"./chunk-GM25ACCR.js";var f=class a{decimalPipe=s(m);transform(t,e=!1){if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let r=this.#t(),n=r?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(r?1e3:1024));i=Math.min(i,n.length-1);let l=t/Math.pow(r?1e3:1024,i),o=this.decimalPipe.transform(l,"1.0-2");return o?`${o} ${e?n[i]:n[i].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(r=>e.includes(r)):!1}static \u0275fac=function(e){return new(e||a)};static \u0275pipe=p({name:"bytes",type:a,pure:!0})};export{f as a};
1
+ import{l as m}from"./chunk-CKPICCFH.js";import{Y as s,db as p}from"./chunk-W2F756OF.js";var f=class a{decimalPipe=s(m);transform(t,e=!1){if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let r=this.#t(),n=r?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(r?1e3:1024));i=Math.min(i,n.length-1);let l=t/Math.pow(r?1e3:1024,i),o=this.decimalPipe.transform(l,"1.0-2");return o?`${o} ${e?n[i]:n[i].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(r=>e.includes(r)):!1}static \u0275fac=function(e){return new(e||a)};static \u0275pipe=p({name:"bytes",type:a,pure:!0})};export{f as a};
@@ -0,0 +1 @@
1
+ import{g as a,h as b,i as c}from"./chunk-QO6SPSAF.js";import"./chunk-6DH6O5YE.js";import"./chunk-TQGG56ZZ.js";import"./chunk-VN7JM6M3.js";import"./chunk-KSP3JQHY.js";import"./chunk-HTNYQE2B.js";import"./chunk-SAVY3OEX.js";import"./chunk-7L42EO7J.js";import"./chunk-RHW5QVAY.js";import"./chunk-T2OUHRUV.js";import"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import"./chunk-WX7L7V6J.js";import"./chunk-PTDSOPNK.js";import"./chunk-MZ473NLM.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-5H7QZHN7.js";import"./chunk-7EYE3BSS.js";import"./chunk-WX7L7V6J.js";import"./chunk-PTDSOPNK.js";import"./chunk-MZ473NLM.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as default};
@@ -1 +1 @@
1
- import{a as k}from"./chunk-UKJSH5XP.js";import"./chunk-ON2SWJPL.js";import"./chunk-KEHATBLP.js";import"./chunk-RHW5QVAY.js";import"./chunk-ZVBVR6H4.js";import"./chunk-QTTYDT3P.js";import"./chunk-C4IFBLYB.js";import"./chunk-PX25CWH6.js";import{e as S}from"./chunk-7WCKE7GY.js";import"./chunk-BIHIR35J.js";import{a as T,g as M,h as f}from"./chunk-6WLXFV43.js";import"./chunk-DYCJPQSE.js";import"./chunk-TKVTCBLW.js";import"./chunk-FQMZSQUI.js";import"./chunk-2IDHF5MN.js";import"./chunk-OD5LGCQE.js";import{Eb as s,Fb as l,Gb as i,Oa as c,_a as D,jc as d,lb as r,ub as e,vb as n,wb as _}from"./chunk-GM25ACCR.js";import"./chunk-7CGTOI24.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
1
+ import{a as k}from"./chunk-VAOJO535.js";import"./chunk-SZ64OOBT.js";import"./chunk-VOGYVLLM.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-FSGJ5KIH.js";import"./chunk-I3C2AEHI.js";import{e as S}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as T,g as M,h as f}from"./chunk-WX7L7V6J.js";import"./chunk-PTDSOPNK.js";import"./chunk-MZ473NLM.js";import"./chunk-DE4NDI5F.js";import"./chunk-CKPICCFH.js";import"./chunk-PFYOWXZZ.js";import{Gb as s,Hb as l,Ib as i,Qa as c,ab as D,lc as d,nb as r,wb as e,xb as n,yb as _}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
@@ -1 +1 @@
1
- import{U as it}from"./chunk-GM25ACCR.js";var ot=60,ut=ot*60,dt=ut*24,At=dt*7,C=1e3,w=ot*C,k=ut*C,b=dt*C,Z=At*C,W="millisecond",I="second",A="minute",E="hour",p="day",U="week",S="month",X="quarter",y="year",x="date",ct="YYYY-MM-DDTHH:mm:ssZ",rt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var nt=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},Et=function(t){var r=-t.utcOffset(),e=Math.abs(r),n=Math.floor(e/60),s=e%60;return(r<=0?"+":"-")+nt(n,2,"0")+":"+nt(s,2,"0")},Nt=function i(t,r){if(t.date()<r.date())return-i(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),n=t.clone().add(e,S),s=r-n<0,a=t.clone().add(e+(s?-1:1),S);return+(-(e+(r-n)/(s?n-a:a-n))||0)},Tt=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},Ht=function(t){var r={M:S,y,w:U,d:p,D:x,h:E,m:A,s:I,ms:W,Q:X};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},wt=function(t){return t===void 0},lt={s:nt,z:Et,m:Nt,a:Tt,p:Ht,u:wt};var P="en",F={};F[P]=ht;var mt="$isDayjsObject",st=function(t){return t instanceof Q||!!(t&&t[mt])},K=function i(t,r,e){var n;if(!t)return P;if(typeof t=="string"){var s=t.toLowerCase();F[s]&&(n=s),r&&(F[s]=r,n=s);var a=t.split("-");if(!n&&a.length>1)return i(a[0])}else{var o=t.name;F[o]=t,n=o}return!e&&n&&(P=n),n||!e&&P},m=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new Q(e)},xt=function(t,r){return m(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},f=lt;f.l=K;f.i=st;f.w=xt;var kt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(f.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var n=r.match(ft);if(n){var s=n[2]-1||0,a=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(r)},Q=function(){function i(r){this.$L=K(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[mt]=!0}var t=i.prototype;return t.parse=function(e){this.$d=kt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return f},t.isValid=function(){return this.$d.toString()!==rt},t.isSame=function(e,n){var s=m(e);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(e,n){return m(e)<this.startOf(n)},t.isBefore=function(e,n){return this.endOf(n)<m(e)},t.$g=function(e,n,s){return f.u(e)?this[n]:this.set(s,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,n){var s=this,a=f.u(n)?!0:n,o=f.p(e),u=function(O,M){var l=f.w(s.$u?Date.UTC(s.$y,M,O):new Date(s.$y,M,O),s);return a?l:l.endOf(p)},d=function(O,M){var l=[0,0,0,0],D=[23,59,59,999];return f.w(s.toDate()[O].apply(s.toDate("s"),(a?l:D).slice(M)),s)},c=this.$W,_=this.$M,h=this.$D,v="set"+(this.$u?"UTC":"");switch(o){case y:return a?u(1,0):u(31,11);case S:return a?u(1,_):u(0,_+1);case U:{var $=this.$locale().weekStart||0,T=(c<$?c+7:c)-$;return u(a?h-T:h+(6-T),_)}case p:case x:return d(v+"Hours",0);case E:return d(v+"Minutes",1);case A:return d(v+"Seconds",2);case I:return d(v+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,n){var s,a=f.p(e),o="set"+(this.$u?"UTC":""),u=(s={},s[p]=o+"Date",s[x]=o+"Date",s[S]=o+"Month",s[y]=o+"FullYear",s[E]=o+"Hours",s[A]=o+"Minutes",s[I]=o+"Seconds",s[W]=o+"Milliseconds",s)[a],d=a===p?this.$D+(n-this.$W):n;if(a===S||a===y){var c=this.clone().set(x,1);c.$d[u](d),c.init(),this.$d=c.set(x,Math.min(this.$D,c.daysInMonth())).$d}else u&&this.$d[u](d);return this.init(),this},t.set=function(e,n){return this.clone().$set(e,n)},t.get=function(e){return this[f.p(e)]()},t.add=function(e,n){var s=this,a;e=Number(e);var o=f.p(n),u=function(h){var v=m(s);return f.w(v.date(v.date()+Math.round(h*e)),s)};if(o===S)return this.set(S,this.$M+e);if(o===y)return this.set(y,this.$y+e);if(o===p)return u(1);if(o===U)return u(7);var d=(a={},a[A]=w,a[E]=k,a[I]=C,a)[o]||1,c=this.$d.getTime()+e*d;return f.w(c,this)},t.subtract=function(e,n){return this.add(e*-1,n)},t.format=function(e){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||rt;var a=e||ct,o=f.z(this),u=this.$H,d=this.$m,c=this.$M,_=s.weekdays,h=s.months,v=s.meridiem,$=function(l,D,H,R){return l&&(l[D]||l(n,a))||H[D].slice(0,R)},T=function(l){return f.s(u%12||12,l,"0")},Y=v||function(M,l,D){var H=M<12?"AM":"PM";return D?H.toLowerCase():H},O=function(l){switch(l){case"YY":return String(n.$y).slice(-2);case"YYYY":return f.s(n.$y,4,"0");case"M":return c+1;case"MM":return f.s(c+1,2,"0");case"MMM":return $(s.monthsShort,c,h,3);case"MMMM":return $(h,c);case"D":return n.$D;case"DD":return f.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return $(s.weekdaysMin,n.$W,_,2);case"ddd":return $(s.weekdaysShort,n.$W,_,3);case"dddd":return _[n.$W];case"H":return String(u);case"HH":return f.s(u,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return Y(u,d,!0);case"A":return Y(u,d,!1);case"m":return String(d);case"mm":return f.s(d,2,"0");case"s":return String(n.$s);case"ss":return f.s(n.$s,2,"0");case"SSS":return f.s(n.$ms,3,"0");case"Z":return o;default:break}return null};return a.replace(B,function(M,l){return l||O(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,n,s){var a=this,o=f.p(n),u=m(e),d=(u.utcOffset()-this.utcOffset())*w,c=this-u,_=function(){return f.m(a,u)},h;switch(o){case y:h=_()/12;break;case S:h=_();break;case X:h=_()/3;break;case U:h=(c-d)/Z;break;case p:h=(c-d)/b;break;case E:h=c/k;break;case A:h=c/w;break;case I:h=c/C;break;default:h=c;break}return s?h:f.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return F[this.$L]},t.locale=function(e,n){if(!e)return this.$L;var s=this.clone(),a=K(e,n,!0);return a&&(s.$L=a),s},t.clone=function(){return f.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},i}(),_t=Q.prototype;m.prototype=_t;[["$ms",W],["$s",I],["$m",A],["$H",E],["$W",p],["$M",S],["$y",y],["$D",x]].forEach(function(i){_t[i[1]]=function(t){return this.$g(t,i[0],i[1])}});m.extend=function(i,t){return i.$i||(i(t,Q,m),i.$i=!0),m};m.locale=K;m.isDayjs=st;m.unix=function(i){return m(i*1e3)};m.en=F[P];m.Ls=F;m.p={};var g=m;var tt=b*365,at=tt/12,bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z={years:tt,months:at,days:b,hours:k,minutes:w,seconds:C,milliseconds:1,weeks:Z},q=function(t){return t instanceof $t},vt,N,V=function(t,r,e){return new $t(t,e,r.$l)},G=function(t){return N.p(t)+"s"},St=function(t){return t<0},j=function(t){return St(t)?Math.ceil(t):Math.floor(t)},Ft=function(t){return Math.abs(t)},J=function(t,r){return t?St(t)?{negative:!0,format:""+Ft(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},$t=function(){function i(r,e,n){var s=this;if(this.$d={},this.$l=n,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return V(r*z[G(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(d){s.$d[G(d)]=r[d]}),this.calMilliseconds(),this;if(typeof r=="string"){var a=r.match(bt);if(a){var o=a.slice(2),u=o.map(function(d){return d!=null?Number(d):0});return this.$d.years=u[0],this.$d.months=u[1],this.$d.weeks=u[2],this.$d.days=u[3],this.$d.hours=u[4],this.$d.minutes=u[5],this.$d.seconds=u[6],this.calMilliseconds(),this}}return this}var t=i.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(e.$d[s]||0)*z[s]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=j(e/tt),e%=tt,this.$d.months=j(e/at),e%=at,this.$d.days=j(e/b),e%=b,this.$d.hours=j(e/k),e%=k,this.$d.minutes=j(e/w),e%=w,this.$d.seconds=j(e/C),e%=C,this.$d.milliseconds=e},t.toISOString=function(){var e=J(this.$d.years,"Y"),n=J(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var a=J(s,"D"),o=J(this.$d.hours,"H"),u=J(this.$d.minutes,"M"),d=this.$d.seconds||0;this.$d.milliseconds&&(d+=this.$d.milliseconds/1e3,d=Math.round(d*1e3)/1e3);var c=J(d,"S"),_=e.negative||n.negative||a.negative||o.negative||u.negative||c.negative,h=o.format||u.format||c.format?"T":"",v=_?"-":"",$=v+"P"+e.format+n.format+a.format+h+o.format+u.format+c.format;return $==="P"||$==="-P"?"P0D":$},t.toJSON=function(){return this.toISOString()},t.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:N.s(this.$d.years,2,"0"),YYYY:N.s(this.$d.years,4,"0"),M:this.$d.months,MM:N.s(this.$d.months,2,"0"),D:this.$d.days,DD:N.s(this.$d.days,2,"0"),H:this.$d.hours,HH:N.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:N.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:N.s(this.$d.seconds,2,"0"),SSS:N.s(this.$d.milliseconds,3,"0")};return n.replace(B,function(a,o){return o||String(s[a])})},t.as=function(e){return this.$ms/z[G(e)]},t.get=function(e){var n=this.$ms,s=G(e);return s==="milliseconds"?n%=1e3:s==="weeks"?n=j(n/z[s]):n=this.$d[s],n||0},t.add=function(e,n,s){var a;return n?a=e*z[G(n)]:q(e)?a=e.$ms:a=V(e,this).$ms,V(this.$ms+a*(s?-1:1),this)},t.subtract=function(e,n){return this.add(e,n,!0)},t.locale=function(e){var n=this.clone();return n.$l=e,n},t.clone=function(){return V(this.$ms,this)},t.humanize=function(e){return vt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},i}(),Mt=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Dt=function(i,t,r){vt=r,N=r().$utils(),r.duration=function(s,a){var o=r.locale();return V(s,{$l:o},a)},r.isDuration=q;var e=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,a){return q(s)?Mt(this,s,1):e.bind(this)(s,a)},t.prototype.subtract=function(s,a){return q(s)?Mt(this,s,-1):n.bind(this)(s,a)}};var pt=function(i,t,r){i=i||{};var e=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=n,e.fromToBase=function(o,u,d,c,_){for(var h=d.$locale().relativeTime||n,v=i.thresholds||[{l:"s",r:44,d:I},{l:"m",r:89},{l:"mm",r:44,d:A},{l:"h",r:89},{l:"hh",r:21,d:E},{l:"d",r:35},{l:"dd",r:25,d:p},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:y}],$=v.length,T,Y,O,M=0;M<$;M+=1){var l=v[M];l.d&&(T=c?r(o).diff(d,l.d,!0):d.diff(o,l.d,!0));var D=(i.rounding||Math.round)(Math.abs(T));if(O=T>0,D<=l.r||!l.r){D<=1&&M>0&&(l=v[M-1]);var H=h[l.l];_&&(D=_(""+D)),typeof H=="string"?Y=H.replace("%d",D):Y=H(D,u,l.l,O);break}}if(u)return Y;var R=O?h.future:h.past;return typeof R=="function"?R(Y):R.replace("%s",Y)};function s(o,u,d,c){return e.fromToBase(o,u,d,c)}e.to=function(o,u){return s(o,u,this,!0)},e.from=function(o,u){return s(o,u,this)};var a=function(u){return u.$u?r.utc():r()};e.toNow=function(o){return this.to(a(this),o)},e.fromNow=function(o){return this.from(a(this),o)}};var yt={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(t){return t+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};g.locale(yt,null,!0);var Ct=yt;var jt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function L(i,t,r){var e=jt[r];return Array.isArray(e)&&(e=e[t?0:1]),e.replace("%d",i)}var gt={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L}};g.locale(gt,null,!0);var Lt=gt;var Yt={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){var r=t===1?"er":"";return""+t+r}};g.locale(Yt,null,!0);var Ot=Yt;var It={da:Ct,de:Lt,fr:Ot};var Ut=new it("Dayjs"),fr={provide:Ut,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return g.extend(pt),g.extend(Dt),g.locale(It[t]),g}};export{Ut as a,fr as b};
1
+ import{V as it}from"./chunk-W2F756OF.js";var ot=60,ut=ot*60,dt=ut*24,At=dt*7,C=1e3,w=ot*C,k=ut*C,b=dt*C,Z=At*C,W="millisecond",I="second",A="minute",E="hour",p="day",U="week",S="month",X="quarter",y="year",x="date",ct="YYYY-MM-DDTHH:mm:ssZ",rt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var nt=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},Et=function(t){var r=-t.utcOffset(),e=Math.abs(r),n=Math.floor(e/60),s=e%60;return(r<=0?"+":"-")+nt(n,2,"0")+":"+nt(s,2,"0")},Nt=function i(t,r){if(t.date()<r.date())return-i(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),n=t.clone().add(e,S),s=r-n<0,a=t.clone().add(e+(s?-1:1),S);return+(-(e+(r-n)/(s?n-a:a-n))||0)},Tt=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},Ht=function(t){var r={M:S,y,w:U,d:p,D:x,h:E,m:A,s:I,ms:W,Q:X};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},wt=function(t){return t===void 0},lt={s:nt,z:Et,m:Nt,a:Tt,p:Ht,u:wt};var P="en",F={};F[P]=ht;var mt="$isDayjsObject",st=function(t){return t instanceof Q||!!(t&&t[mt])},K=function i(t,r,e){var n;if(!t)return P;if(typeof t=="string"){var s=t.toLowerCase();F[s]&&(n=s),r&&(F[s]=r,n=s);var a=t.split("-");if(!n&&a.length>1)return i(a[0])}else{var o=t.name;F[o]=t,n=o}return!e&&n&&(P=n),n||!e&&P},m=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new Q(e)},xt=function(t,r){return m(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},f=lt;f.l=K;f.i=st;f.w=xt;var kt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(f.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var n=r.match(ft);if(n){var s=n[2]-1||0,a=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(r)},Q=function(){function i(r){this.$L=K(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[mt]=!0}var t=i.prototype;return t.parse=function(e){this.$d=kt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return f},t.isValid=function(){return this.$d.toString()!==rt},t.isSame=function(e,n){var s=m(e);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(e,n){return m(e)<this.startOf(n)},t.isBefore=function(e,n){return this.endOf(n)<m(e)},t.$g=function(e,n,s){return f.u(e)?this[n]:this.set(s,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,n){var s=this,a=f.u(n)?!0:n,o=f.p(e),u=function(O,M){var l=f.w(s.$u?Date.UTC(s.$y,M,O):new Date(s.$y,M,O),s);return a?l:l.endOf(p)},d=function(O,M){var l=[0,0,0,0],D=[23,59,59,999];return f.w(s.toDate()[O].apply(s.toDate("s"),(a?l:D).slice(M)),s)},c=this.$W,_=this.$M,h=this.$D,v="set"+(this.$u?"UTC":"");switch(o){case y:return a?u(1,0):u(31,11);case S:return a?u(1,_):u(0,_+1);case U:{var $=this.$locale().weekStart||0,T=(c<$?c+7:c)-$;return u(a?h-T:h+(6-T),_)}case p:case x:return d(v+"Hours",0);case E:return d(v+"Minutes",1);case A:return d(v+"Seconds",2);case I:return d(v+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,n){var s,a=f.p(e),o="set"+(this.$u?"UTC":""),u=(s={},s[p]=o+"Date",s[x]=o+"Date",s[S]=o+"Month",s[y]=o+"FullYear",s[E]=o+"Hours",s[A]=o+"Minutes",s[I]=o+"Seconds",s[W]=o+"Milliseconds",s)[a],d=a===p?this.$D+(n-this.$W):n;if(a===S||a===y){var c=this.clone().set(x,1);c.$d[u](d),c.init(),this.$d=c.set(x,Math.min(this.$D,c.daysInMonth())).$d}else u&&this.$d[u](d);return this.init(),this},t.set=function(e,n){return this.clone().$set(e,n)},t.get=function(e){return this[f.p(e)]()},t.add=function(e,n){var s=this,a;e=Number(e);var o=f.p(n),u=function(h){var v=m(s);return f.w(v.date(v.date()+Math.round(h*e)),s)};if(o===S)return this.set(S,this.$M+e);if(o===y)return this.set(y,this.$y+e);if(o===p)return u(1);if(o===U)return u(7);var d=(a={},a[A]=w,a[E]=k,a[I]=C,a)[o]||1,c=this.$d.getTime()+e*d;return f.w(c,this)},t.subtract=function(e,n){return this.add(e*-1,n)},t.format=function(e){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||rt;var a=e||ct,o=f.z(this),u=this.$H,d=this.$m,c=this.$M,_=s.weekdays,h=s.months,v=s.meridiem,$=function(l,D,H,R){return l&&(l[D]||l(n,a))||H[D].slice(0,R)},T=function(l){return f.s(u%12||12,l,"0")},Y=v||function(M,l,D){var H=M<12?"AM":"PM";return D?H.toLowerCase():H},O=function(l){switch(l){case"YY":return String(n.$y).slice(-2);case"YYYY":return f.s(n.$y,4,"0");case"M":return c+1;case"MM":return f.s(c+1,2,"0");case"MMM":return $(s.monthsShort,c,h,3);case"MMMM":return $(h,c);case"D":return n.$D;case"DD":return f.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return $(s.weekdaysMin,n.$W,_,2);case"ddd":return $(s.weekdaysShort,n.$W,_,3);case"dddd":return _[n.$W];case"H":return String(u);case"HH":return f.s(u,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return Y(u,d,!0);case"A":return Y(u,d,!1);case"m":return String(d);case"mm":return f.s(d,2,"0");case"s":return String(n.$s);case"ss":return f.s(n.$s,2,"0");case"SSS":return f.s(n.$ms,3,"0");case"Z":return o;default:break}return null};return a.replace(B,function(M,l){return l||O(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,n,s){var a=this,o=f.p(n),u=m(e),d=(u.utcOffset()-this.utcOffset())*w,c=this-u,_=function(){return f.m(a,u)},h;switch(o){case y:h=_()/12;break;case S:h=_();break;case X:h=_()/3;break;case U:h=(c-d)/Z;break;case p:h=(c-d)/b;break;case E:h=c/k;break;case A:h=c/w;break;case I:h=c/C;break;default:h=c;break}return s?h:f.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return F[this.$L]},t.locale=function(e,n){if(!e)return this.$L;var s=this.clone(),a=K(e,n,!0);return a&&(s.$L=a),s},t.clone=function(){return f.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},i}(),_t=Q.prototype;m.prototype=_t;[["$ms",W],["$s",I],["$m",A],["$H",E],["$W",p],["$M",S],["$y",y],["$D",x]].forEach(function(i){_t[i[1]]=function(t){return this.$g(t,i[0],i[1])}});m.extend=function(i,t){return i.$i||(i(t,Q,m),i.$i=!0),m};m.locale=K;m.isDayjs=st;m.unix=function(i){return m(i*1e3)};m.en=F[P];m.Ls=F;m.p={};var g=m;var tt=b*365,at=tt/12,bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z={years:tt,months:at,days:b,hours:k,minutes:w,seconds:C,milliseconds:1,weeks:Z},q=function(t){return t instanceof $t},vt,N,V=function(t,r,e){return new $t(t,e,r.$l)},G=function(t){return N.p(t)+"s"},St=function(t){return t<0},j=function(t){return St(t)?Math.ceil(t):Math.floor(t)},Ft=function(t){return Math.abs(t)},J=function(t,r){return t?St(t)?{negative:!0,format:""+Ft(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},$t=function(){function i(r,e,n){var s=this;if(this.$d={},this.$l=n,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return V(r*z[G(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(d){s.$d[G(d)]=r[d]}),this.calMilliseconds(),this;if(typeof r=="string"){var a=r.match(bt);if(a){var o=a.slice(2),u=o.map(function(d){return d!=null?Number(d):0});return this.$d.years=u[0],this.$d.months=u[1],this.$d.weeks=u[2],this.$d.days=u[3],this.$d.hours=u[4],this.$d.minutes=u[5],this.$d.seconds=u[6],this.calMilliseconds(),this}}return this}var t=i.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(e.$d[s]||0)*z[s]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=j(e/tt),e%=tt,this.$d.months=j(e/at),e%=at,this.$d.days=j(e/b),e%=b,this.$d.hours=j(e/k),e%=k,this.$d.minutes=j(e/w),e%=w,this.$d.seconds=j(e/C),e%=C,this.$d.milliseconds=e},t.toISOString=function(){var e=J(this.$d.years,"Y"),n=J(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var a=J(s,"D"),o=J(this.$d.hours,"H"),u=J(this.$d.minutes,"M"),d=this.$d.seconds||0;this.$d.milliseconds&&(d+=this.$d.milliseconds/1e3,d=Math.round(d*1e3)/1e3);var c=J(d,"S"),_=e.negative||n.negative||a.negative||o.negative||u.negative||c.negative,h=o.format||u.format||c.format?"T":"",v=_?"-":"",$=v+"P"+e.format+n.format+a.format+h+o.format+u.format+c.format;return $==="P"||$==="-P"?"P0D":$},t.toJSON=function(){return this.toISOString()},t.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:N.s(this.$d.years,2,"0"),YYYY:N.s(this.$d.years,4,"0"),M:this.$d.months,MM:N.s(this.$d.months,2,"0"),D:this.$d.days,DD:N.s(this.$d.days,2,"0"),H:this.$d.hours,HH:N.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:N.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:N.s(this.$d.seconds,2,"0"),SSS:N.s(this.$d.milliseconds,3,"0")};return n.replace(B,function(a,o){return o||String(s[a])})},t.as=function(e){return this.$ms/z[G(e)]},t.get=function(e){var n=this.$ms,s=G(e);return s==="milliseconds"?n%=1e3:s==="weeks"?n=j(n/z[s]):n=this.$d[s],n||0},t.add=function(e,n,s){var a;return n?a=e*z[G(n)]:q(e)?a=e.$ms:a=V(e,this).$ms,V(this.$ms+a*(s?-1:1),this)},t.subtract=function(e,n){return this.add(e,n,!0)},t.locale=function(e){var n=this.clone();return n.$l=e,n},t.clone=function(){return V(this.$ms,this)},t.humanize=function(e){return vt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},i}(),Mt=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Dt=function(i,t,r){vt=r,N=r().$utils(),r.duration=function(s,a){var o=r.locale();return V(s,{$l:o},a)},r.isDuration=q;var e=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,a){return q(s)?Mt(this,s,1):e.bind(this)(s,a)},t.prototype.subtract=function(s,a){return q(s)?Mt(this,s,-1):n.bind(this)(s,a)}};var pt=function(i,t,r){i=i||{};var e=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=n,e.fromToBase=function(o,u,d,c,_){for(var h=d.$locale().relativeTime||n,v=i.thresholds||[{l:"s",r:44,d:I},{l:"m",r:89},{l:"mm",r:44,d:A},{l:"h",r:89},{l:"hh",r:21,d:E},{l:"d",r:35},{l:"dd",r:25,d:p},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:y}],$=v.length,T,Y,O,M=0;M<$;M+=1){var l=v[M];l.d&&(T=c?r(o).diff(d,l.d,!0):d.diff(o,l.d,!0));var D=(i.rounding||Math.round)(Math.abs(T));if(O=T>0,D<=l.r||!l.r){D<=1&&M>0&&(l=v[M-1]);var H=h[l.l];_&&(D=_(""+D)),typeof H=="string"?Y=H.replace("%d",D):Y=H(D,u,l.l,O);break}}if(u)return Y;var R=O?h.future:h.past;return typeof R=="function"?R(Y):R.replace("%s",Y)};function s(o,u,d,c){return e.fromToBase(o,u,d,c)}e.to=function(o,u){return s(o,u,this,!0)},e.from=function(o,u){return s(o,u,this)};var a=function(u){return u.$u?r.utc():r()};e.toNow=function(o){return this.to(a(this),o)},e.fromNow=function(o){return this.from(a(this),o)}};var yt={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(t){return t+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};g.locale(yt,null,!0);var Ct=yt;var jt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function L(i,t,r){var e=jt[r];return Array.isArray(e)&&(e=e[t?0:1]),e.replace("%d",i)}var gt={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L}};g.locale(gt,null,!0);var Lt=gt;var Yt={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){var r=t===1?"er":"";return""+t+r}};g.locale(Yt,null,!0);var Ot=Yt;var It={da:Ct,de:Lt,fr:Ot};var Ut=new it("Dayjs"),fr={provide:Ut,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return g.extend(pt),g.extend(Dt),g.locale(It[t]),g}};export{Ut as a,fr as b};
@@ -1 +1 @@
1
- import{a as D,c}from"./chunk-TKVTCBLW.js";import{A as k,M as g,R as d,W as l,n as I,o as m,r as R,x as O}from"./chunk-GM25ACCR.js";import{a as y,b as T}from"./chunk-7CGTOI24.js";var v=class{_fns;constructor(){this._fns=[]}eject(e){let i=this._fns.indexOf(e);i!==-1&&(this._fns=[...this._fns.slice(0,i),...this._fns.slice(i+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new v}};var A=class extends Error{url;status;statusText;body;request;constructor(e,i,a){super(a),this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=e}};var h=p=>typeof p=="string",P=p=>h(p)&&p!=="",f=p=>p instanceof Blob,G=p=>p instanceof FormData,L=p=>{try{return btoa(p)}catch{return Buffer.from(p).toString("base64")}},j=p=>{let e=[],i=(r,n)=>{e.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(n))}`)},a=(r,n)=>{n!=null&&(n instanceof Date?i(r,n.toISOString()):Array.isArray(n)?n.forEach(o=>a(r,o)):typeof n=="object"?Object.entries(n).forEach(([o,u])=>a(`${r}[${o}]`,u)):i(r,n))};return Object.entries(p).forEach(([r,n])=>a(r,n)),e.length?`?${e.join("&")}`:""},F=(p,e)=>{let i=p.ENCODE_PATH||encodeURI,a=e.url.replace("{api-version}",p.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?i(String(e.path[o])):n),r=p.BASE+a;return e.query?r+j(e.query):r},N=p=>{if(p.formData){let e=new FormData,i=(a,r)=>{h(r)||f(r)?e.append(a,r):e.append(a,JSON.stringify(r))};return Object.entries(p.formData).filter(([,a])=>a!=null).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>i(a,n)):i(a,r)}),e}},V=async(p,e)=>typeof e=="function"?e(p):e,U=(p,e)=>O({token:V(e,p.TOKEN),username:V(e,p.USERNAME),password:V(e,p.PASSWORD),additionalHeaders:V(e,p.HEADERS)}).pipe(R(({token:i,username:a,password:r,additionalHeaders:n})=>{let o=Object.entries(y(y({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[B,b])=>T(y({},u),{[B]:String(b)}),{});if(P(i)&&(o.Authorization=`Bearer ${i}`),P(a)&&P(r)){let u=L(`${a}:${r}`);o.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:f(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":h(e.body)?o["Content-Type"]="text/plain":G(e.body)||(o["Content-Type"]="application/json")),new D(o)})),M=p=>{if(p.body)return p.mediaType?.includes("application/json")||p.mediaType?.includes("+json")?JSON.stringify(p.body):h(p.body)||f(p.body)||G(p.body)?p.body:JSON.stringify(p.body)},K=(p,e,i,a,r,n,o)=>i.request(e.method,a,{headers:o,body:r??n,withCredentials:p.WITH_CREDENTIALS,observe:"response"}),z=(p,e)=>{if(e){let i=p.headers.get(e);if(h(i))return i}},W=p=>{if(p.status!==204&&p.body!==null)return p.body},$=(p,e)=>{let a=y({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},p.errors)[e.status];if(a)throw new A(p,e,a);if(!e.ok){let r=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new A(p,e,`Generic Error: status: ${r}; status text: ${n}; body: ${o}`)}},s=(p,e,i)=>{let a=F(p,i),r=N(i),n=M(i);return U(p,i).pipe(g(o=>K(p,i,e,a,n,r,o)),g(async o=>{for(let w of p.interceptors.response._fns)o=await w(o);let u=W(o),B=z(o,i.responseHeader),b=u;return i.responseTransformer&&o.ok&&(b=await i.responseTransformer(u)),{url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:B??b}}),k(o=>o.status?I({url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):m(()=>o)),R(o=>($(i,o),o.body)),k(o=>m(()=>o)))};var S=class p{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},E=class p{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},C=class p{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},q=class p{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},x=class p{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},H=class p{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})};export{S as a,E as b,C as c,H as d};
1
+ import{a as D,c}from"./chunk-MZ473NLM.js";import{B as k,N as v,S as d,X as l,n as I,o as m,r as R,x as O}from"./chunk-W2F756OF.js";import{a as y,b as f}from"./chunk-7CGTOI24.js";var P=class{_fns;constructor(){this._fns=[]}eject(e){let i=this._fns.indexOf(e);i!==-1&&(this._fns=[...this._fns.slice(0,i),...this._fns.slice(i+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new P}};var A=class extends Error{url;status;statusText;body;request;constructor(e,i,r){super(r),this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=e}};var h=p=>typeof p=="string",g=p=>h(p)&&p!=="",T=p=>p instanceof Blob,G=p=>p instanceof FormData,w=p=>{try{return btoa(p)}catch{return Buffer.from(p).toString("base64")}},F=p=>{let e=[],i=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},r=(a,n)=>{n!=null&&(n instanceof Date?i(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>r(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,u])=>r(`${a}[${o}]`,u)):i(a,n))};return Object.entries(p).forEach(([a,n])=>r(a,n)),e.length?`?${e.join("&")}`:""},j=(p,e)=>{let i=p.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",p.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?i(String(e.path[o])):n),a=p.BASE+r;return e.query?a+F(e.query):a},N=p=>{if(p.formData){let e=new FormData,i=(r,a)=>{h(a)||T(a)?e.append(r,a):e.append(r,JSON.stringify(a))};return Object.entries(p.formData).filter(([,r])=>r!=null).forEach(([r,a])=>{Array.isArray(a)?a.forEach(n=>i(r,n)):i(r,a)}),e}},V=async(p,e)=>typeof e=="function"?e(p):e,U=(p,e)=>O({token:V(e,p.TOKEN),username:V(e,p.USERNAME),password:V(e,p.PASSWORD),additionalHeaders:V(e,p.HEADERS)}).pipe(R(({token:i,username:r,password:a,additionalHeaders:n})=>{let o=Object.entries(y(y({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[B,b])=>f(y({},u),{[B]:String(b)}),{});if(g(i)&&(o.Authorization=`Bearer ${i}`),g(r)&&g(a)){let u=w(`${r}:${a}`);o.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:T(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":h(e.body)?o["Content-Type"]="text/plain":G(e.body)||(o["Content-Type"]="application/json")),new D(o)})),M=p=>{if(p.body)return p.mediaType?.includes("application/json")||p.mediaType?.includes("+json")?JSON.stringify(p.body):h(p.body)||T(p.body)||G(p.body)?p.body:JSON.stringify(p.body)},K=(p,e,i,r,a,n,o)=>i.request(e.method,r,{headers:o,body:a??n,withCredentials:p.WITH_CREDENTIALS,observe:"response"}),z=(p,e)=>{if(e){let i=p.headers.get(e);if(h(i))return i}},W=p=>{if(p.status!==204&&p.body!==null)return p.body},$=(p,e)=>{let r=y({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},p.errors)[e.status];if(r)throw new A(p,e,r);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new A(p,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(p,e,i)=>{let r=j(p,i),a=N(i),n=M(i);return U(p,i).pipe(v(o=>K(p,i,e,r,n,a,o)),v(async o=>{for(let H of p.interceptors.response._fns)o=await H(o);let u=W(o),B=z(o,i.responseHeader),b=u;return i.responseTransformer&&o.ok&&(b=await i.responseTransformer(u)),{url:r,ok:o.ok,status:o.status,statusText:o.statusText,body:B??b}}),k(o=>o.status?I({url:r,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):m(()=>o)),R(o=>($(i,o),o.body)),k(o=>m(()=>o)))};var S=class p{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},E=class p{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV2BackupListFilesets(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return s(t,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},C=class p{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},q=class p{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},x=class p{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},L=class p{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})};export{S as a,E as b,C as c,L as d};